From 068b47fc6cbe48ccf0ef8c4aeb281ff1c0b1b963 Mon Sep 17 00:00:00 2001 From: Darrell Tunnell Date: Sun, 30 Jul 2017 15:26:36 +0100 Subject: [PATCH 01/86] Closes #19 - Use URI as tenant identifier. --- src/Dotnettency.Sample/Startup.cs | 5 +- src/Dotnettency.Sample/TenantShellFactory.cs | 10 ++-- src/Dotnettency/MultitenancyOptionsBuilder.cs | 35 ++++------- ...stnameAndPortTenantDistinguisherFactory.cs | 31 ---------- .../HostnameTenantDistinguisherFactory.cs | 20 ------- .../RequestUriTenantDistinguisherFactory.cs | 22 +++++++ ...stnameAndPortTenantDistinguisherFactory.cs | 33 ----------- .../TenantDistinguisher.cs | 14 ++--- src/Dotnettency/UriHelper.cs | 58 +++++++++++++++++++ src/Sample.Mvc/Startup.cs | 3 +- src/Sample.Mvc/TenantShellFactory.cs | 10 ++-- 11 files changed, 112 insertions(+), 129 deletions(-) delete mode 100644 src/Dotnettency/TenantDistinguisher/HostnameAndPortTenantDistinguisherFactory.cs delete mode 100644 src/Dotnettency/TenantDistinguisher/HostnameTenantDistinguisherFactory.cs create mode 100644 src/Dotnettency/TenantDistinguisher/RequestUriTenantDistinguisherFactory.cs delete mode 100644 src/Dotnettency/TenantDistinguisher/SchemeHostnameAndPortTenantDistinguisherFactory.cs create mode 100644 src/Dotnettency/UriHelper.cs diff --git a/src/Dotnettency.Sample/Startup.cs b/src/Dotnettency.Sample/Startup.cs index 8575bdb..92a88a4 100644 --- a/src/Dotnettency.Sample/Startup.cs +++ b/src/Dotnettency.Sample/Startup.cs @@ -25,8 +25,7 @@ public IServiceProvider ConfigureServices(IServiceCollection services) { var serviceProvider = services.AddMultiTenancy((options) => { - options - .DistinguishTenantsBySchemeHostnameAndPort() // The distinguisher used to identify one tenant from another. + options .InitialiseTenant() // factory class to load tenant when it needs to be initialised for the first time. Can use overload to provide a delegate instead. .ConfigureTenantMiddleware((middlewareOptions) => { @@ -113,7 +112,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF // The tenant shell to access context for the tenant - even if the tenant is null var tenantShellAccessor = context.RequestServices.GetRequiredService>(); var tenantShell = await tenantShellAccessor.CurrentTenantShell.Value; - + string tenantShellId = tenantShell == null ? "{NULL TENANT SHELL}" : tenantShell.Id.ToString(); string tenantName = tenant == null ? "{NULL TENANT}" : tenant.Name; diff --git a/src/Dotnettency.Sample/TenantShellFactory.cs b/src/Dotnettency.Sample/TenantShellFactory.cs index 957a16e..e0d9218 100644 --- a/src/Dotnettency.Sample/TenantShellFactory.cs +++ b/src/Dotnettency.Sample/TenantShellFactory.cs @@ -8,7 +8,7 @@ public class TenantShellFactory : ITenantShellFactory { public async Task> Get(TenantDistinguisher distinguisher) { - if (distinguisher.Key == "http://localhost:63291") + if (distinguisher.Uri.Port == 5004) { Guid tenantId = Guid.Parse("b17fcd22-0db1-47c0-9fef-1aa1cb09605e"); var tenant = new Tenant(tenantId) { Name = "Foo" }; @@ -16,23 +16,23 @@ public async Task> Get(TenantDistinguisher distinguisher) return result; } - if (distinguisher.Key.Contains(":5000") || distinguisher.Key.Contains(":5001")) + if (distinguisher.Uri.Port == 5000 || distinguisher.Uri.Port == 5001) { Guid tenantId = Guid.Parse("049c8cc4-3660-41c7-92f0-85430452be22"); var tenant = new Tenant(tenantId) { Name = "Bar" }; - var result = new TenantShell(tenant, "http://localhost:5000", "http://localhost:5001"); // additional distinguishers to map this same tenant shell instance too. + var result = new TenantShell(tenant, new Uri("http://localhost:5000"), new Uri("http://localhost:5001")); // additional distinguishers to map this same tenant shell instance too. return result; } // for an unknown tenant, we can either create the tenant shell as a NULL tenant by returning a TenantShell(null), // which results in the TenantShell being created, and will explicitly have to be reloaded() in order for this method to be called again. - if (distinguisher.Key.Contains("5002")) + if (distinguisher.Uri.Port == 5002) { var result = new TenantShell(null); return result; } - if (distinguisher.Key.Contains("5003")) + if (distinguisher.Uri.Port == 5003) { // or we can return null - which means we wil keep attempting to resolve the tenant on every subsequent request until a result is returned in future. diff --git a/src/Dotnettency/MultitenancyOptionsBuilder.cs b/src/Dotnettency/MultitenancyOptionsBuilder.cs index 046a64c..2c8093e 100644 --- a/src/Dotnettency/MultitenancyOptionsBuilder.cs +++ b/src/Dotnettency/MultitenancyOptionsBuilder.cs @@ -25,6 +25,9 @@ public MultitenancyOptionsBuilder(IServiceCollection serviceCollection) Services.AddScoped>(); Services.AddScoped, TenantShellAccessor>(); + // By default, we use a URI from the request to identify tenants. + Services.AddSingleton, RequestUriTenantDistinguisherFactory>(); + // Support injection of TTenant (has side effect that may block during injection) Services.AddScoped((sp => { @@ -37,7 +40,7 @@ public MultitenancyOptionsBuilder(IServiceCollection serviceCollection) // minor contention on Lazy<> Services.AddScoped>((sp => { - return sp.GetRequiredService>().CurrentTenant.Value; + return sp.GetRequiredService>().CurrentTenant.Value; })); @@ -49,34 +52,20 @@ public MultitenancyOptionsBuilder(IServiceCollection serviceCollection) //public IServiceProvider ServiceProvider { get; set; } + /// + /// Call this to override the service used to provide a URI for the current request. The URI is used as an identifier + /// for a tenant to be loaded. + /// + /// + /// public MultitenancyOptionsBuilder DistinguishTenantsWith() where T : class, ITenantDistinguisherFactory { Services.AddSingleton, T>(); return this; + } - } - - public MultitenancyOptionsBuilder DistinguishTenantsByHostname() - { - Services.AddSingleton, HostnameTenantDistinguisherFactory>(); - return this; - - } - - public MultitenancyOptionsBuilder DistinguishTenantsByHostnameWithPort() - { - Services.AddSingleton, HostnameAndPortTenantDistinguisherFactory>(); - return this; - } - - public MultitenancyOptionsBuilder DistinguishTenantsBySchemeHostnameAndPort() - { - Services.AddSingleton, SchemeHostnameAndPortTenantDistinguisherFactory>(); - return this; - - } - + public IServiceCollection Services { get; set; } public MultitenancyOptionsBuilder InitialiseTenant() diff --git a/src/Dotnettency/TenantDistinguisher/HostnameAndPortTenantDistinguisherFactory.cs b/src/Dotnettency/TenantDistinguisher/HostnameAndPortTenantDistinguisherFactory.cs deleted file mode 100644 index 364f565..0000000 --- a/src/Dotnettency/TenantDistinguisher/HostnameAndPortTenantDistinguisherFactory.cs +++ /dev/null @@ -1,31 +0,0 @@ -using Microsoft.AspNetCore.Http; - -namespace Dotnettency -{ - public class HostnameAndPortTenantDistinguisherFactory : HttpContextTenantDistinguisherFactory - where TTenant : class - { - - public HostnameAndPortTenantDistinguisherFactory(IHttpContextAccessor httpContextAccessor) : base(httpContextAccessor) - { - } - - protected override TenantDistinguisher GetTenantDistinguisher(HttpContext context) - { - var value = GetHostNameWithPortNumber(context); - var identity = new TenantDistinguisher(value); - return identity; - } - - public string GetHostNameWithPortNumber(HttpContext context) - { - var host = context.Request.Host; - var port = host.Port.HasValue ? host.Port.Value : (context.Request.IsHttps ? DefaultHttpsPort : DefaultHttpPort); - - // var hostName = context.Request.Host.Value.ToLower(); - string identfier = $"{host.Host}:{port}"; - return identfier.ToLowerInvariant(); - - } - } -} \ No newline at end of file diff --git a/src/Dotnettency/TenantDistinguisher/HostnameTenantDistinguisherFactory.cs b/src/Dotnettency/TenantDistinguisher/HostnameTenantDistinguisherFactory.cs deleted file mode 100644 index 6c5ee6c..0000000 --- a/src/Dotnettency/TenantDistinguisher/HostnameTenantDistinguisherFactory.cs +++ /dev/null @@ -1,20 +0,0 @@ -using Microsoft.AspNetCore.Http; - -namespace Dotnettency -{ - public class HostnameTenantDistinguisherFactory : HttpContextTenantDistinguisherFactory - where TTenant : class - { - public HostnameTenantDistinguisherFactory(IHttpContextAccessor httpContextAccessor) : base(httpContextAccessor) - { - } - - protected override TenantDistinguisher GetTenantDistinguisher(HttpContext context) - { - var host = context.Request.Host.Host.ToLowerInvariant(); - var identity = new TenantDistinguisher(host); - return identity; - } - - } -} \ No newline at end of file diff --git a/src/Dotnettency/TenantDistinguisher/RequestUriTenantDistinguisherFactory.cs b/src/Dotnettency/TenantDistinguisher/RequestUriTenantDistinguisherFactory.cs new file mode 100644 index 0000000..244fa2e --- /dev/null +++ b/src/Dotnettency/TenantDistinguisher/RequestUriTenantDistinguisherFactory.cs @@ -0,0 +1,22 @@ +using Microsoft.AspNetCore.Http; + +namespace Dotnettency +{ + public class RequestUriTenantDistinguisherFactory : HttpContextTenantDistinguisherFactory + where TTenant : class + { + + public RequestUriTenantDistinguisherFactory(IHttpContextAccessor httpContextAccessor) : base(httpContextAccessor) + { + } + + protected override TenantDistinguisher GetTenantDistinguisher(HttpContext context) + { + var uri = context.Request.GetUri(); + var identity = new TenantDistinguisher(uri); + return identity; + } + + + } +} \ No newline at end of file diff --git a/src/Dotnettency/TenantDistinguisher/SchemeHostnameAndPortTenantDistinguisherFactory.cs b/src/Dotnettency/TenantDistinguisher/SchemeHostnameAndPortTenantDistinguisherFactory.cs deleted file mode 100644 index 642f877..0000000 --- a/src/Dotnettency/TenantDistinguisher/SchemeHostnameAndPortTenantDistinguisherFactory.cs +++ /dev/null @@ -1,33 +0,0 @@ -using Microsoft.AspNetCore.Http; - -namespace Dotnettency -{ - - public class SchemeHostnameAndPortTenantDistinguisherFactory : HttpContextTenantDistinguisherFactory - where TTenant : class - { - - public SchemeHostnameAndPortTenantDistinguisherFactory(IHttpContextAccessor httpContextAccessor) : base(httpContextAccessor) - { - } - - protected override TenantDistinguisher GetTenantDistinguisher(HttpContext context) - { - var value = GetSchemeAndHostNameAndPortNumber(context); - var identity = new TenantDistinguisher(value); - return identity; - } - - public string GetSchemeAndHostNameAndPortNumber(HttpContext context) - { - - var host = context.Request.Host; - var port = host.Port.HasValue ? host.Port.Value : (context.Request.IsHttps ? DefaultHttpsPort : DefaultHttpPort); - - // var hostName = context.Request.Host.Value.ToLower(); - string identfier = $"{context.Request.Scheme}://{host.Host}:{port}"; - return identfier.ToLowerInvariant(); - - } - } -} \ No newline at end of file diff --git a/src/Dotnettency/TenantDistinguisher/TenantDistinguisher.cs b/src/Dotnettency/TenantDistinguisher/TenantDistinguisher.cs index ff85b8b..deb0201 100644 --- a/src/Dotnettency/TenantDistinguisher/TenantDistinguisher.cs +++ b/src/Dotnettency/TenantDistinguisher/TenantDistinguisher.cs @@ -4,14 +4,14 @@ namespace Dotnettency { public class TenantDistinguisher : IEquatable { - public TenantDistinguisher(string key) + public TenantDistinguisher(Uri key) { - Key = key; + Uri = key; } - public string Key { get; set; } + public Uri Uri { get; set; } - public static implicit operator TenantDistinguisher(string key) + public static implicit operator TenantDistinguisher(Uri key) { TenantDistinguisher value = new TenantDistinguisher(key); return value; @@ -20,11 +20,11 @@ public static implicit operator TenantDistinguisher(string key) public override int GetHashCode() { - if (Key == null) + if (Uri == null) { return 0; } - return Key.GetHashCode(); + return Uri.GetHashCode(); } public override bool Equals(object other) @@ -34,7 +34,7 @@ public override bool Equals(object other) public bool Equals(TenantDistinguisher other) { - return other != null && other.Key == Key; + return other != null && other.Uri == Uri; } } diff --git a/src/Dotnettency/UriHelper.cs b/src/Dotnettency/UriHelper.cs new file mode 100644 index 0000000..4971115 --- /dev/null +++ b/src/Dotnettency/UriHelper.cs @@ -0,0 +1,58 @@ +// Copyright (c) .NET Foundation. All rights reserved. + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at + +// http://www.apache.org/licenses/LICENSE-2.0 + +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. + +// THIS FILE ORIGINATED FROM: https://github.com/aspnet/HttpAbstractions/blob/ab0185a0b8d0b7a80a6169fd78a45f00a28e057d/src/Microsoft.AspNetCore.Http.Extensions/UriHelper.cs +// I (Darrell William Tunnell) have copied and made amendments to this file (as per below), and am including this as a "prominent notice" in conjunction with the licence requirements of the Apache licence version 2.0. +using Microsoft.AspNetCore.Http; +using System; +using System.Text; + +namespace Dotnettency +{ + /// + /// A helper class for constructing Uris from a Request. + /// + public static class UriHelper + { + + private const string SchemeDelimiter = "://"; + + /// + /// Returns the combined components of the request URL as a URI. + /// + /// The request to assemble the uri pieces from. + /// + public static Uri GetUri(this HttpRequest request) + { + + var host = request.Host.Value; + var pathBase = request.PathBase.Value; + var path = request.Path.Value; + var queryString = request.QueryString.Value; + + // PERF: Calculate string length to allocate correct buffer size for StringBuilder. + var length = request.Scheme.Length + SchemeDelimiter.Length + host.Length + + pathBase.Length + path.Length + queryString.Length; + + return new Uri(new StringBuilder(length) + .Append(request.Scheme) + .Append(SchemeDelimiter) + .Append(host) + .Append(pathBase) + .Append(path) + .Append(queryString) + .ToString()); + } + } +} \ No newline at end of file diff --git a/src/Sample.Mvc/Startup.cs b/src/Sample.Mvc/Startup.cs index 8ba8ca6..f36c723 100644 --- a/src/Sample.Mvc/Startup.cs +++ b/src/Sample.Mvc/Startup.cs @@ -28,8 +28,7 @@ public IServiceProvider ConfigureServices(IServiceCollection services) var serviceProvider = services.AddMultiTenancy((options) => { - options - .DistinguishTenantsBySchemeHostnameAndPort() // The distinguisher used to identify one tenant from another. + options .InitialiseTenant() // factory class to load tenant when it needs to be initialised for the first time. Can use overload to provide a delegate instead. .ConfigureTenantMiddleware((middlewareOptions) => { diff --git a/src/Sample.Mvc/TenantShellFactory.cs b/src/Sample.Mvc/TenantShellFactory.cs index d56f661..8ee2c48 100644 --- a/src/Sample.Mvc/TenantShellFactory.cs +++ b/src/Sample.Mvc/TenantShellFactory.cs @@ -8,7 +8,7 @@ public class TenantShellFactory : ITenantShellFactory { public async Task> Get(TenantDistinguisher distinguisher) { - if (distinguisher.Key == "http://localhost:5004") + if (distinguisher.Uri.Port == 5004) { Guid tenantId = Guid.Parse("b17fcd22-0db1-47c0-9fef-1aa1cb09605e"); var tenant = new Tenant(tenantId) { Name = "Foo" }; @@ -16,23 +16,23 @@ public async Task> Get(TenantDistinguisher distinguisher) return result; } - if (distinguisher.Key.Contains(":5000") || distinguisher.Key.Contains(":5001")) + if (distinguisher.Uri.Port == 5000 || distinguisher.Uri.Port == 5001) { Guid tenantId = Guid.Parse("049c8cc4-3660-41c7-92f0-85430452be22"); var tenant = new Tenant(tenantId) { Name = "Bar" }; - var result = new TenantShell(tenant, "http://localhost:5000", "http://localhost:5001"); // additional distinguishers to map this same tenant shell instance too. + var result = new TenantShell(tenant, new Uri("http://localhost:5000"), new Uri("http://localhost:5001")); // additional distinguishers to map this same tenant shell instance too. return result; } // for an unknown tenant, we can either create the tenant shell as a NULL tenant by returning a TenantShell(null), // which results in the TenantShell being created, and will explicitly have to be reloaded() in order for this method to be called again. - if (distinguisher.Key.Contains("5002")) + if (distinguisher.Uri.Port == 5002) { var result = new TenantShell(null); return result; } - if (distinguisher.Key.Contains("5003")) + if (distinguisher.Uri.Port == 5003) { // or we can return null - which means we wil keep attempting to resolve the tenant on every subsequent request until a result is returned in future. From 30c6e1c7b1e2e23b81464262581711a9b00635b7 Mon Sep 17 00:00:00 2001 From: Darrell Tunnell Date: Sun, 30 Jul 2017 14:23:32 +0100 Subject: [PATCH 02/86] Created new project. --- src/Dotnettency.Modules/Dotnettency.Modules.csproj | 11 +++++++++++ src/src.sln | 14 ++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 src/Dotnettency.Modules/Dotnettency.Modules.csproj diff --git a/src/Dotnettency.Modules/Dotnettency.Modules.csproj b/src/Dotnettency.Modules/Dotnettency.Modules.csproj new file mode 100644 index 0000000..ed766a7 --- /dev/null +++ b/src/Dotnettency.Modules/Dotnettency.Modules.csproj @@ -0,0 +1,11 @@ + + + + netstandard1.4 + + + + + + + \ No newline at end of file diff --git a/src/src.sln b/src/src.sln index bcf5a3d..b1a12da 100644 --- a/src/src.sln +++ b/src/src.sln @@ -24,6 +24,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Sample.Mvc", "Sample.Mvc\Sa EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dotnettency.HostingEnvironment", "Dotnettency.HostingEnvironment\Dotnettency.HostingEnvironment.csproj", "{E2CAD9E5-6843-4A9B-9A0B-1F4E1F42A6A4}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dotnettency.Modules", "Dotnettency.Modules\Dotnettency.Modules.csproj", "{720AC644-94A4-4AA9-AD12-543AB87BC2FC}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -118,6 +120,18 @@ Global {E2CAD9E5-6843-4A9B-9A0B-1F4E1F42A6A4}.Release|x64.Build.0 = Release|Any CPU {E2CAD9E5-6843-4A9B-9A0B-1F4E1F42A6A4}.Release|x86.ActiveCfg = Release|Any CPU {E2CAD9E5-6843-4A9B-9A0B-1F4E1F42A6A4}.Release|x86.Build.0 = Release|Any CPU + {720AC644-94A4-4AA9-AD12-543AB87BC2FC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {720AC644-94A4-4AA9-AD12-543AB87BC2FC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {720AC644-94A4-4AA9-AD12-543AB87BC2FC}.Debug|x64.ActiveCfg = Debug|Any CPU + {720AC644-94A4-4AA9-AD12-543AB87BC2FC}.Debug|x64.Build.0 = Debug|Any CPU + {720AC644-94A4-4AA9-AD12-543AB87BC2FC}.Debug|x86.ActiveCfg = Debug|Any CPU + {720AC644-94A4-4AA9-AD12-543AB87BC2FC}.Debug|x86.Build.0 = Debug|Any CPU + {720AC644-94A4-4AA9-AD12-543AB87BC2FC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {720AC644-94A4-4AA9-AD12-543AB87BC2FC}.Release|Any CPU.Build.0 = Release|Any CPU + {720AC644-94A4-4AA9-AD12-543AB87BC2FC}.Release|x64.ActiveCfg = Release|Any CPU + {720AC644-94A4-4AA9-AD12-543AB87BC2FC}.Release|x64.Build.0 = Release|Any CPU + {720AC644-94A4-4AA9-AD12-543AB87BC2FC}.Release|x86.ActiveCfg = Release|Any CPU + {720AC644-94A4-4AA9-AD12-543AB87BC2FC}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE From 62baa148d4213a49a5afa44e8086277815a70176 Mon Sep 17 00:00:00 2001 From: Darrell Tunnell Date: Sun, 30 Jul 2017 16:57:35 +0100 Subject: [PATCH 03/86] #16 - Started on per module containers. --- ...ureMapContainerBuilderOptionsExtensions.cs | 124 ++++++++++-------- .../StructureMapTenantContainerAdaptor.cs | 16 +++ .../AdaptedContainerBuilderOptions.cs | 28 ++++ .../Container/ITenantContainerAdaptor.cs | 10 +- .../Dotnettency.Modules.csproj | 7 +- src/Dotnettency.Modules/IModule.cs | 11 ++ ...ModuleContainerBuilderOptionsExtensions.cs | 51 +++++++ src/Dotnettency.Sample/Sample.csproj | 1 + src/Dotnettency.Sample/Startup.cs | 24 ++-- ...MultiTenancyServiceCollectionExtensions.cs | 2 +- src/Dotnettency/MultitenancyOptionsBuilder.cs | 2 +- 11 files changed, 205 insertions(+), 71 deletions(-) create mode 100644 src/Dotnettency.Container/AdaptedContainerBuilderOptions.cs create mode 100644 src/Dotnettency.Modules/IModule.cs create mode 100644 src/Dotnettency.Modules/ModuleContainerBuilderOptionsExtensions.cs diff --git a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapContainerBuilderOptionsExtensions.cs b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapContainerBuilderOptionsExtensions.cs index 2f44fb7..ab2d47e 100644 --- a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapContainerBuilderOptionsExtensions.cs +++ b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapContainerBuilderOptionsExtensions.cs @@ -6,64 +6,62 @@ namespace Dotnettency { + public static class StructureMapContainerBuilderOptionsExtensions { - public static ContainerBuilderOptions WithStructureMap(this ContainerBuilderOptions options, - Action configureTenant) - where TTenant : class - { - - - // Set a func, that is only invoked when the ServiceProvider is required. This ensures it runs after all other configuration methods - // which is important as other methods can still add new services to the servicecollection after this one is invoked and we - // dont want them to be missed when populating the container. - options.Builder.BuildServiceProvider = new Func(() => - { - var container = new StructureMap.Container(); - container.Populate(options.Builder.Services); - container.Configure(_ => - _.For>() - .Use(new StructureMapTenantContainerBuilder(container, configureTenant)) - ); - return container.GetInstance(); - }); - - return options; - } - - public static ContainerBuilderOptions WithStructureMap(this ContainerBuilderOptions options, - Action configureTenant) - where TTenant : class - { - - // Set a func, that is only invoked when the ServiceProvider is required. This ensures it runs after all other configuration methods - // which is important as other methods can still add new services to the servicecollection after this one is invoked and we - // dont want them to be missed when populating the container. - options.Builder.BuildServiceProvider = new Func(() => - { - var container = new StructureMap.Container(); - container.Populate(options.Builder.Services); - - container.Configure(_ => - _.For>() - .Use(new StructureMapTenantContainerBuilder(container, (tenant, config) => configureTenant(config))) - ); - return container.GetInstance(); - }); - - return options; - - } - - public static ContainerBuilderOptions WithStructureMapServiceCollection(this ContainerBuilderOptions options, + //public static ContainerBuilderOptions WithStructureMap(this ContainerBuilderOptions options, + // Action configureTenant) + // where TTenant : class + //{ + + + // // Set a func, that is only invoked when the ServiceProvider is required. This ensures it runs after all other configuration methods + // // which is important as other methods can still add new services to the servicecollection after this one is invoked and we + // // dont want them to be missed when populating the container. + // options.Builder.BuildServiceProvider = new Func(() => + // { + // var container = new StructureMap.Container(); + // container.Populate(options.Builder.Services); + // container.Configure(_ => + // _.For>() + // .Use(new StructureMapTenantContainerBuilder(container, configureTenant)) + // ); + // return container.GetInstance(); + // }); + + // return options; + //} + + //public static AdaptedContainerBuilderOptions WithStructureMap(this ContainerBuilderOptions options, + // Action configureTenant) + // where TTenant : class + //{ + + // // Set a func, that is only invoked when the ServiceProvider is required. This ensures it runs after all other configuration methods + // // which is important as other methods can still add new services to the servicecollection after this one is invoked and we + // // dont want them to be missed when populating the container. + // options.Builder.BuildServiceProvider = new Func(() => + // { + // var container = new StructureMap.Container(); + // container.Populate(options.Builder.Services); + + // container.Configure(_ => + // _.For>() + // .Use(new StructureMapTenantContainerBuilder(container, (tenant, config) => configureTenant(config))) + // ); + // return container.GetInstance(); + // }); + + // return options; + + //} + + public static AdaptedContainerBuilderOptions WithStructureMapServiceCollection(this ContainerBuilderOptions options, Action configureTenant) where TTenant : class { - // Set a func, that is only invoked when the ServiceProvider is required. This ensures it runs after all other configuration methods - // which is important as other methods can still add new services to the servicecollection after this one is invoked and we - // dont want them to be missed when populating the container. - options.Builder.BuildServiceProvider = new Func(() => + var adaptorFactory = new Func(() => { var container = new StructureMap.Container(); container.Populate(options.Builder.Services); @@ -78,14 +76,26 @@ public static ContainerBuilderOptions WithStructureMapServiceCollection })) ); - // now configure nested container per tenant. - return container.GetInstance(); + var adaptor = new StructureMapTenantContainerAdaptor(container); + return adaptor; }); - return options; - } + var adapted = new AdaptedContainerBuilderOptions(options, adaptorFactory); - } + // Set a func, that is only invoked when the ServiceProvider is required. This ensures it runs after all other configuration methods + // which is important as other methods can still add new services to the servicecollection after this one is invoked and we + // dont want them to be missed when populating the container. + //options.Builder.BuildServiceProvider = new Func(() => + //{ + + // // now configure nested container per tenant. + // return container.GetInstance(); + //}); + + return adapted; + } + + } } \ No newline at end of file diff --git a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerAdaptor.cs b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerAdaptor.cs index fff313d..9b11de9 100644 --- a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerAdaptor.cs +++ b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerAdaptor.cs @@ -1,5 +1,6 @@ using StructureMap; using System; +using Microsoft.Extensions.DependencyInjection; namespace Dotnettency.Container { @@ -23,11 +24,26 @@ public StructureMapTenantContainerAdaptor(IContainer container) public Guid ContainerId => _id; + public void Configure(Action configure) + { + _container.Configure(_ => + { + var services = new ServiceCollection(); + configure(services); + _.Populate(services); + }); + } + public ITenantContainerAdaptor CreateNestedContainer() { return new StructureMapTenantContainerAdaptor(_container.GetNestedContainer()); } + public ITenantContainerAdaptor CreateChildContainer() + { + return new StructureMapTenantContainerAdaptor(_container.CreateChildContainer()); + } + public void Dispose() { _container.Dispose(); diff --git a/src/Dotnettency.Container/AdaptedContainerBuilderOptions.cs b/src/Dotnettency.Container/AdaptedContainerBuilderOptions.cs new file mode 100644 index 0000000..d533d56 --- /dev/null +++ b/src/Dotnettency.Container/AdaptedContainerBuilderOptions.cs @@ -0,0 +1,28 @@ +using Dotnettency.Container; +using System; + + +namespace Dotnettency.Container +{ + public class AdaptedContainerBuilderOptions + where TTenant : class + { + + public AdaptedContainerBuilderOptions(ContainerBuilderOptions parentOptions, Func adaptorFactory) + { + ContainerBuilderOptions = parentOptions; + TenantContainerAdaptor = adaptorFactory; + + ContainerBuilderOptions.Builder.ServiceProviderFactory = new Func(() => + { + return TenantContainerAdaptor().ServiceProvider.Value; + }); + } + + + public ContainerBuilderOptions ContainerBuilderOptions { get; set; } + + public Func TenantContainerAdaptor { get; set; } + + } +} \ No newline at end of file diff --git a/src/Dotnettency.Container/Container/ITenantContainerAdaptor.cs b/src/Dotnettency.Container/Container/ITenantContainerAdaptor.cs index c7ef490..3ee6aab 100644 --- a/src/Dotnettency.Container/Container/ITenantContainerAdaptor.cs +++ b/src/Dotnettency.Container/Container/ITenantContainerAdaptor.cs @@ -1,4 +1,5 @@ -using System; +using Microsoft.Extensions.DependencyInjection; +using System; namespace Dotnettency.Container { @@ -6,10 +7,17 @@ public interface ITenantContainerAdaptor : IDisposable { Lazy ServiceProvider { get; } ITenantContainerAdaptor CreateNestedContainer(); + ITenantContainerAdaptor CreateChildContainer(); string ContainerName { get; } Guid ContainerId { get; } + /// + /// Used to add services to a container AFTER its initialised. + /// + /// + void Configure(Action configure); + } diff --git a/src/Dotnettency.Modules/Dotnettency.Modules.csproj b/src/Dotnettency.Modules/Dotnettency.Modules.csproj index ed766a7..69310ac 100644 --- a/src/Dotnettency.Modules/Dotnettency.Modules.csproj +++ b/src/Dotnettency.Modules/Dotnettency.Modules.csproj @@ -1,10 +1,15 @@  - netstandard1.4 + netstandard1.3 + + + + + diff --git a/src/Dotnettency.Modules/IModule.cs b/src/Dotnettency.Modules/IModule.cs new file mode 100644 index 0000000..4967c90 --- /dev/null +++ b/src/Dotnettency.Modules/IModule.cs @@ -0,0 +1,11 @@ +using Microsoft.AspNetCore.Builder; +using Microsoft.Extensions.DependencyInjection; + +namespace Dotnettency.Modules +{ + public interface IModule + { + void ConfigureModule(IServiceCollection services); + void ConfigureModulePipeline(IApplicationBuilder appBuilder); + } +} diff --git a/src/Dotnettency.Modules/ModuleContainerBuilderOptionsExtensions.cs b/src/Dotnettency.Modules/ModuleContainerBuilderOptionsExtensions.cs new file mode 100644 index 0000000..152513e --- /dev/null +++ b/src/Dotnettency.Modules/ModuleContainerBuilderOptionsExtensions.cs @@ -0,0 +1,51 @@ +using Dotnettency.Container; +using Dotnettency.Modules; +using Microsoft.Extensions.DependencyInjection; +using System; +using System.Collections.Generic; + +namespace Dotnettency +{ + public static class ModuleContainerBuilderOptionsExtensions + { + // WithModules() - TODO: simply bootstraps the tenants container with modules. + + + /// + /// Creates a nested container for each module to register its servies in - keeps isolation between modules. + // and modules can't polute tenant level container. + /// + /// + /// + /// + /// + public static ContainerBuilderOptions WithModuleContainers(this AdaptedContainerBuilderOptions options) + where TTenant : class + { + + var wrappedFunc = options.TenantContainerAdaptor; + + options.TenantContainerAdaptor = new Func(() => + { + var adaptor = wrappedFunc(); // builds the tenants container and gets it adaptor. + + // TODO: discover modules dynamically here. (i.e scanning, or some service). + var modules = new List(); + var moduleContainers = new List>(); + + // for each module create a nested container. + foreach (var module in modules) + { + var moduleContainer = adaptor.CreateChildContainer(); + moduleContainer.Configure(module.ConfigureModule); + moduleContainers.Add(new Tuple(module, moduleContainer)); + } + + return adaptor; + }); + + return options.ContainerBuilderOptions; + } + } + +} \ No newline at end of file diff --git a/src/Dotnettency.Sample/Sample.csproj b/src/Dotnettency.Sample/Sample.csproj index 4661d30..9a5871f 100644 --- a/src/Dotnettency.Sample/Sample.csproj +++ b/src/Dotnettency.Sample/Sample.csproj @@ -32,6 +32,7 @@ + diff --git a/src/Dotnettency.Sample/Startup.cs b/src/Dotnettency.Sample/Startup.cs index 92a88a4..a0e143d 100644 --- a/src/Dotnettency.Sample/Startup.cs +++ b/src/Dotnettency.Sample/Startup.cs @@ -25,8 +25,18 @@ public IServiceProvider ConfigureServices(IServiceCollection services) { var serviceProvider = services.AddMultiTenancy((options) => { - options + options .InitialiseTenant() // factory class to load tenant when it needs to be initialised for the first time. Can use overload to provide a delegate instead. + .ConfigureTenantContainers((containerBuilder) => + { + // Extension methods available here for supported containers. We are using structuremap.. + // We are using an overload that allows us to configure structuremap with familiar IServiceCollection. + containerBuilder.WithStructureMapServiceCollection((tenant, tenantServices) => + { + tenantServices.AddSingleton(); + }) + .WithModuleContainers(); // Creates a child container per IModule. + }) .ConfigureTenantMiddleware((middlewareOptions) => { // This method is called when need to initialise the middleware pipeline for a tenant (i.e on first request for the tenant) @@ -38,17 +48,11 @@ public IServiceProvider ConfigureServices(IServiceCollection services) { appBuilder.UseWelcomePage("/welcome"); } + + // }); }) // Configure per tenant containers. - .ConfigureTenantContainers((containerBuilder) => - { - // Extension methods available here for supported containers. We are using structuremap.. - // We are using an overload that allows us to configure structuremap with familiar IServiceCollection. - containerBuilder.WithStructureMapServiceCollection((tenant, tenantServices) => - { - tenantServices.AddSingleton(); - }); - }) + // configure per tenant hosting environment. .ConfigurePerTenantHostingEnvironment(_environment, (tenantHostingEnvironmentOptions) => { diff --git a/src/Dotnettency/MultiTenancyServiceCollectionExtensions.cs b/src/Dotnettency/MultiTenancyServiceCollectionExtensions.cs index 47cd6c2..4bc4a3e 100644 --- a/src/Dotnettency/MultiTenancyServiceCollectionExtensions.cs +++ b/src/Dotnettency/MultiTenancyServiceCollectionExtensions.cs @@ -16,7 +16,7 @@ public static IServiceProvider AddMultiTenancy(this IServiceCollection } // var serviceProvider = optionsBuilder.Build(); - Func serviceProviderBuilder = optionsBuilder.BuildServiceProvider; + Func serviceProviderBuilder = optionsBuilder.ServiceProviderFactory; if (serviceProviderBuilder != null) { IServiceProvider sp = serviceProviderBuilder(); diff --git a/src/Dotnettency/MultitenancyOptionsBuilder.cs b/src/Dotnettency/MultitenancyOptionsBuilder.cs index 2c8093e..d43dd59 100644 --- a/src/Dotnettency/MultitenancyOptionsBuilder.cs +++ b/src/Dotnettency/MultitenancyOptionsBuilder.cs @@ -46,7 +46,7 @@ public MultitenancyOptionsBuilder(IServiceCollection serviceCollection) } - public Func BuildServiceProvider { get; set; } + public Func ServiceProviderFactory { get; set; } From e35e8655a011b1bbc83bd48973c2e4770ff2c14a Mon Sep 17 00:00:00 2001 From: Darrell Tunnell Date: Tue, 1 Aug 2017 22:11:03 +0100 Subject: [PATCH 04/86] #16 routed modules working. --- .../Dotnettency.Container.StructureMap.csproj | 1 - .../StructureMap/AspNetConstructorSelector.cs | 28 ++++ .../StructureMap/ContainerExtensions.cs | 142 ++++++++++++++++++ .../StructureMap/HelperExtensions.cs | 49 ++++++ ...ureMapContainerBuilderOptionsExtensions.cs | 8 +- .../StructureMapServiceProvider.cs | 38 +++++ .../StructureMapServiceScopeFactory.cs | 43 ++++++ .../StructureMapTenantContainerAdaptor.cs | 15 +- .../AdaptedContainerBuilderOptions.cs | 6 +- .../Container/ITenantContainerAdaptor.cs | 2 +- .../ContainerBuilderOptions.cs | 1 + .../ITenantContainerAccessor.cs | 11 ++ .../TenantContainerAccessor.cs | 40 +++++ .../TenantContainerMiddleware.cs | 19 +-- .../UseBuilderExtensions.cs | 14 +- .../DelegateModuleFactory.cs | 64 ++++++++ .../DelegateModuleShellFactory.cs | 24 +++ .../Dotnettency.Modules.csproj | 9 ++ src/Dotnettency.Modules/IModule.cs | 8 +- src/Dotnettency.Modules/IModuleFactory.cs | 54 +++++++ src/Dotnettency.Modules/IModuleManager.cs | 15 ++ .../IModuleShellFactory.cs | 12 ++ ...ModuleContainerBuilderOptionsExtensions.cs | 139 +++++++++++++---- src/Dotnettency.Modules/ModuleManager.cs | 63 ++++++++ .../ModuleRegisterBuilder.cs | 45 ++++++ src/Dotnettency.Modules/ModuleRouteContext.cs | 40 +++++ src/Dotnettency.Modules/ModuleShell.cs | 99 ++++++++++++ src/Dotnettency.Modules/ModuleShellOptions.cs | 9 ++ .../ModuleShellOptionsBuilder.cs | 38 +++++ src/Dotnettency.Modules/ModulesMiddleware.cs | 76 ++++++++++ src/Dotnettency.Modules/ModulesRouter.cs | 116 ++++++++++++++ .../ServiceCollectionExtensions.cs | 19 +++ .../UseModulesBuilderExtensions.cs | 24 +++ src/Dotnettency.Sample/Module.cs | 76 ++++++++++ src/Dotnettency.Sample/Startup.cs | 33 +++- 35 files changed, 1318 insertions(+), 62 deletions(-) create mode 100644 src/Dotnettency.Container.StructureMap/StructureMap/AspNetConstructorSelector.cs create mode 100644 src/Dotnettency.Container.StructureMap/StructureMap/ContainerExtensions.cs create mode 100644 src/Dotnettency.Container.StructureMap/StructureMap/HelperExtensions.cs create mode 100644 src/Dotnettency.Container.StructureMap/StructureMap/StructureMapServiceProvider.cs create mode 100644 src/Dotnettency.Container.StructureMap/StructureMap/StructureMapServiceScopeFactory.cs create mode 100644 src/Dotnettency.Container/ITenantContainerAccessor.cs create mode 100644 src/Dotnettency.Container/TenantContainerAccessor.cs create mode 100644 src/Dotnettency.Modules/DelegateModuleFactory.cs create mode 100644 src/Dotnettency.Modules/DelegateModuleShellFactory.cs create mode 100644 src/Dotnettency.Modules/IModuleFactory.cs create mode 100644 src/Dotnettency.Modules/IModuleManager.cs create mode 100644 src/Dotnettency.Modules/IModuleShellFactory.cs create mode 100644 src/Dotnettency.Modules/ModuleManager.cs create mode 100644 src/Dotnettency.Modules/ModuleRegisterBuilder.cs create mode 100644 src/Dotnettency.Modules/ModuleRouteContext.cs create mode 100644 src/Dotnettency.Modules/ModuleShell.cs create mode 100644 src/Dotnettency.Modules/ModuleShellOptions.cs create mode 100644 src/Dotnettency.Modules/ModuleShellOptionsBuilder.cs create mode 100644 src/Dotnettency.Modules/ModulesMiddleware.cs create mode 100644 src/Dotnettency.Modules/ModulesRouter.cs create mode 100644 src/Dotnettency.Modules/ServiceCollectionExtensions.cs create mode 100644 src/Dotnettency.Modules/UseModulesBuilderExtensions.cs create mode 100644 src/Dotnettency.Sample/Module.cs diff --git a/src/Dotnettency.Container.StructureMap/Dotnettency.Container.StructureMap.csproj b/src/Dotnettency.Container.StructureMap/Dotnettency.Container.StructureMap.csproj index 44ed53d..12d2be3 100644 --- a/src/Dotnettency.Container.StructureMap/Dotnettency.Container.StructureMap.csproj +++ b/src/Dotnettency.Container.StructureMap/Dotnettency.Container.StructureMap.csproj @@ -13,7 +13,6 @@ - diff --git a/src/Dotnettency.Container.StructureMap/StructureMap/AspNetConstructorSelector.cs b/src/Dotnettency.Container.StructureMap/StructureMap/AspNetConstructorSelector.cs new file mode 100644 index 0000000..3eea8c3 --- /dev/null +++ b/src/Dotnettency.Container.StructureMap/StructureMap/AspNetConstructorSelector.cs @@ -0,0 +1,28 @@ + + +/// Taken from https://github.com/structuremap/StructureMap.Microsoft.DependencyInjection/blob/0d20c416c5423f5153a71589f5082a9b234b123c/src/StructureMap.Microsoft.DependencyInjection/HelperExtensions.cs +/// Licenced under MIT Licence. +/// With changes by Darrell Tunnell. +/// +using StructureMap.Graph; +using StructureMap.Pipeline; +using System; +using System.Linq; +using System.Reflection; + +internal class AspNetConstructorSelector : IConstructorSelector +{ + + // ASP.NET expects registered services to be considered when selecting a ctor, SM doesn't by default. + + public ConstructorInfo Find(Type pluggedType, DependencyCollection dependencies, PluginGraph graph) => + + pluggedType.GetTypeInfo() + .DeclaredConstructors + .Where(ctor => ctor.IsConstructor && !ctor.IsPrivate) // IsConstructor is false for static constructors + .Select(ctor => new { Constructor = ctor, Parameters = ctor.GetParameters() }) + .Where(x => x.Parameters.All(param => graph.HasFamily(param.ParameterType) || dependencies.Any(dep => dep.Type == param.ParameterType))) + .OrderByDescending(x => x.Parameters.Length) + .Select(x => x.Constructor) + .FirstOrDefault(); +} \ No newline at end of file diff --git a/src/Dotnettency.Container.StructureMap/StructureMap/ContainerExtensions.cs b/src/Dotnettency.Container.StructureMap/StructureMap/ContainerExtensions.cs new file mode 100644 index 0000000..5856889 --- /dev/null +++ b/src/Dotnettency.Container.StructureMap/StructureMap/ContainerExtensions.cs @@ -0,0 +1,142 @@ +/// Taken from https://github.com/structuremap/StructureMap.Microsoft.DependencyInjection/ +/// Licenced under MIT Licence. +/// With changes by Darrell Tunnell. +/// +using Dotnettency.Container.StructureMap.StructureMap; +using Microsoft.Extensions.DependencyInjection; +using StructureMap; +using StructureMap.Pipeline; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; + +namespace Dotnettency.Container.StructureMap +{ + + public static partial class ContainerExtensions + { + + /// + /// Populates the container using the specified service descriptors. + /// + /// + /// This method should only be called once per container. + /// + /// The container. + /// The service descriptors. + public static void Populate(this IContainer container, IEnumerable descriptors) + { + container.Configure(config => config.Populate(descriptors)); + } + + + + /// + /// Populates the container using the specified service descriptors. + /// + /// + /// This method should only be called once per container. + /// + /// The configuration. + /// The service descriptors. + public static void Populate(this ConfigurationExpression config, IEnumerable descriptors) + { + Populate((Registry)config, descriptors); + } + + + + /// + /// Populates the registry using the specified service descriptors. + /// + /// + /// This method should only be called once per container. + /// + /// The registry. + /// The service descriptors. + public static void Populate(this Registry registry, IEnumerable descriptors) + { + + // HACK: We insert this action in order to prevent Populate being called twice on the same container. + // registry.Configure(ThrowIfMarkerInterfaceIsRegistered); + // registry.For(); + + registry.Policies.ConstructorSelector(); + + registry.For() + .LifecycleIs(Lifecycles.Container) + .Use(); + + registry.For() + .LifecycleIs(Lifecycles.Container) + .Use(); + + registry.Register(descriptors); + + } + + //private static void ThrowIfMarkerInterfaceIsRegistered(PluginGraph graph) + //{ + + // if (graph.HasFamily()) + + // { + + // throw new InvalidOperationException("Populate should only be called once per container."); + + // } + + //} + + + + private static void Register(this IProfileRegistry registry, IEnumerable descriptors) + + { + + foreach (var descriptor in descriptors) + + { + + registry.Register(descriptor); + + } + + } + + + + private static void Register(this IProfileRegistry registry, ServiceDescriptor descriptor) + { + if (descriptor.ImplementationType != null) + { + registry.For(descriptor.ServiceType) + .LifecycleIs(descriptor.Lifetime) + .Use(descriptor.ImplementationType); + return; + } + + if (descriptor.ImplementationFactory != null) + { + registry.For(descriptor.ServiceType) + .LifecycleIs(descriptor.Lifetime) + .Use(descriptor.CreateFactory()); + return; + } + + registry.For(descriptor.ServiceType) + .LifecycleIs(descriptor.Lifetime) + .Use(descriptor.ImplementationInstance); + + } + + + + private static Expression> CreateFactory(this ServiceDescriptor descriptor) + { + return context => descriptor.ImplementationFactory(context.GetInstance()); + } + + // private interface IMarkerInterface { } + } +} diff --git a/src/Dotnettency.Container.StructureMap/StructureMap/HelperExtensions.cs b/src/Dotnettency.Container.StructureMap/StructureMap/HelperExtensions.cs new file mode 100644 index 0000000..6909ff3 --- /dev/null +++ b/src/Dotnettency.Container.StructureMap/StructureMap/HelperExtensions.cs @@ -0,0 +1,49 @@ +/// Taken from https://github.com/structuremap/StructureMap.Microsoft.DependencyInjection/blob/0d20c416c5423f5153a71589f5082a9b234b123c/src/StructureMap.Microsoft.DependencyInjection/HelperExtensions.cs +/// Licenced under MIT Licence. +/// With changes by Darrell Tunnell. + +using Microsoft.Extensions.DependencyInjection; +using StructureMap.Configuration.DSL.Expressions; +using StructureMap.Graph; +using StructureMap.Pipeline; +using System; +using System.Collections.Generic; +using System.Reflection; + +namespace Dotnettency.Container.StructureMap.StructureMap +{ + + internal static class HelperExtensions + { + public static bool IsGenericEnumerable(this Type type) + { + return type.GetTypeInfo().IsGenericType && type.GetGenericTypeDefinition() == typeof(IEnumerable<>); + } + + + public static GenericFamilyExpression LifecycleIs(this GenericFamilyExpression instance, ServiceLifetime lifetime) + { + switch (lifetime) + { + case ServiceLifetime.Singleton: + return instance.LifecycleIs(Lifecycles.Singleton); + + case ServiceLifetime.Scoped: + return instance.LifecycleIs(Lifecycles.Container); + + case ServiceLifetime.Transient: + return instance.LifecycleIs(Lifecycles.Unique); + + default: + throw new ArgumentOutOfRangeException(nameof(lifetime), lifetime, null); + } + } + + + public static bool HasFamily(this PluginGraph graph) + { + return graph.HasFamily(typeof(TPlugin)); + } + + } +} \ No newline at end of file diff --git a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapContainerBuilderOptionsExtensions.cs b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapContainerBuilderOptionsExtensions.cs index ab2d47e..f8e4770 100644 --- a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapContainerBuilderOptionsExtensions.cs +++ b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapContainerBuilderOptionsExtensions.cs @@ -1,8 +1,7 @@ using Dotnettency.Container; using Microsoft.Extensions.DependencyInjection; -using StructureMap; using System; - +using Dotnettency.Container.StructureMap; namespace Dotnettency { @@ -63,9 +62,12 @@ public static AdaptedContainerBuilderOptions WithStructureMapServiceCol var adaptorFactory = new Func(() => { + // host level container. var container = new StructureMap.Container(); container.Populate(options.Builder.Services); + // add ITenantContainerBuilder service to the host container + // This service can be used to build a child container (adaptor) for a particular tenant, when required. container.Configure(_ => _.For>() .Use(new StructureMapTenantContainerBuilder(container, (tenant, configurationExpression) => @@ -93,7 +95,7 @@ public static AdaptedContainerBuilderOptions WithStructureMapServiceCol // // now configure nested container per tenant. // return container.GetInstance(); //}); - + return adapted; } diff --git a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapServiceProvider.cs b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapServiceProvider.cs new file mode 100644 index 0000000..3ef5d9e --- /dev/null +++ b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapServiceProvider.cs @@ -0,0 +1,38 @@ +/// Taken from https://github.com/structuremap/StructureMap.Microsoft.DependencyInjection/ +/// Licenced under MIT Licence. +/// With changes by Darrell Tunnell. +/// +using Dotnettency.Container.StructureMap.StructureMap; +using Microsoft.Extensions.DependencyInjection; +using StructureMap; +using System; + +namespace Dotnettency.Container.StructureMap +{ + public sealed class StructureMapServiceProvider : IServiceProvider, ISupportRequiredService + { + public StructureMapServiceProvider(IContainer container) + { + Container = container; + } + + private IContainer Container { get; } + + public object GetService(Type serviceType) + { + if (serviceType.IsGenericEnumerable()) + { + // Ideally we'd like to call TryGetInstance here as well, + // but StructureMap does't like it for some weird reason. + return GetRequiredService(serviceType); + } + + return Container.TryGetInstance(serviceType); + } + + public object GetRequiredService(Type serviceType) + { + return Container.GetInstance(serviceType); + } + } +} diff --git a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapServiceScopeFactory.cs b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapServiceScopeFactory.cs new file mode 100644 index 0000000..d358417 --- /dev/null +++ b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapServiceScopeFactory.cs @@ -0,0 +1,43 @@ +using Microsoft.Extensions.DependencyInjection; +using StructureMap; +using System; + +namespace Dotnettency.Container.StructureMap +{ + public static partial class ContainerExtensions + { + internal sealed class StructureMapServiceScopeFactory : IServiceScopeFactory + { + public StructureMapServiceScopeFactory(IContainer container) + { + Container = container; + } + + private IContainer Container { get; } + + public IServiceScope CreateScope() + { + return new StructureMapServiceScope(Container.GetNestedContainer()); + } + + + private class StructureMapServiceScope : IServiceScope + { + + public StructureMapServiceScope(IContainer container) + { + Container = container; + ServiceProvider = container.GetInstance(); + } + + private IContainer Container { get; } + + public IServiceProvider ServiceProvider { get; } + + public void Dispose() => Container.Dispose(); + + } + + } + } +} \ No newline at end of file diff --git a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerAdaptor.cs b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerAdaptor.cs index 9b11de9..1f7c489 100644 --- a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerAdaptor.cs +++ b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerAdaptor.cs @@ -1,6 +1,7 @@ using StructureMap; using System; using Microsoft.Extensions.DependencyInjection; +using Dotnettency.Container.StructureMap; namespace Dotnettency.Container { @@ -13,12 +14,16 @@ public StructureMapTenantContainerAdaptor(IContainer container) { _container = container; _id = Guid.NewGuid(); - ServiceProvider = new Lazy(() => - { - return _container.GetInstance(); - }); + //ServiceProvider = new Lazy(() => + //{ + // return + //}); + } + public IServiceProvider GetServiceProvider() + { + return _container.GetInstance(); } - public Lazy ServiceProvider { get; } + public string ContainerName => _container.Name; diff --git a/src/Dotnettency.Container/AdaptedContainerBuilderOptions.cs b/src/Dotnettency.Container/AdaptedContainerBuilderOptions.cs index d533d56..febe524 100644 --- a/src/Dotnettency.Container/AdaptedContainerBuilderOptions.cs +++ b/src/Dotnettency.Container/AdaptedContainerBuilderOptions.cs @@ -11,18 +11,18 @@ public class AdaptedContainerBuilderOptions public AdaptedContainerBuilderOptions(ContainerBuilderOptions parentOptions, Func adaptorFactory) { ContainerBuilderOptions = parentOptions; - TenantContainerAdaptor = adaptorFactory; + HostContainerAdaptor = adaptorFactory; ContainerBuilderOptions.Builder.ServiceProviderFactory = new Func(() => { - return TenantContainerAdaptor().ServiceProvider.Value; + return HostContainerAdaptor().GetServiceProvider(); }); } public ContainerBuilderOptions ContainerBuilderOptions { get; set; } - public Func TenantContainerAdaptor { get; set; } + public Func HostContainerAdaptor { get; set; } } } \ No newline at end of file diff --git a/src/Dotnettency.Container/Container/ITenantContainerAdaptor.cs b/src/Dotnettency.Container/Container/ITenantContainerAdaptor.cs index 3ee6aab..9a974b0 100644 --- a/src/Dotnettency.Container/Container/ITenantContainerAdaptor.cs +++ b/src/Dotnettency.Container/Container/ITenantContainerAdaptor.cs @@ -5,7 +5,7 @@ namespace Dotnettency.Container { public interface ITenantContainerAdaptor : IDisposable { - Lazy ServiceProvider { get; } + IServiceProvider GetServiceProvider(); ITenantContainerAdaptor CreateNestedContainer(); ITenantContainerAdaptor CreateChildContainer(); diff --git a/src/Dotnettency.Container/ContainerBuilderOptions.cs b/src/Dotnettency.Container/ContainerBuilderOptions.cs index 08b4e03..97db532 100644 --- a/src/Dotnettency.Container/ContainerBuilderOptions.cs +++ b/src/Dotnettency.Container/ContainerBuilderOptions.cs @@ -11,6 +11,7 @@ public ContainerBuilderOptions(MultitenancyOptionsBuilder builder) { Builder = builder; builder.Services.AddSingleton, TenantContainerBuilderFactory>(); + builder.Services.AddScoped, TenantContainerAccessor>(); } public MultitenancyOptionsBuilder Builder { get; set; } diff --git a/src/Dotnettency.Container/ITenantContainerAccessor.cs b/src/Dotnettency.Container/ITenantContainerAccessor.cs new file mode 100644 index 0000000..db32473 --- /dev/null +++ b/src/Dotnettency.Container/ITenantContainerAccessor.cs @@ -0,0 +1,11 @@ +using System; +using System.Threading.Tasks; + +namespace Dotnettency.Container +{ + public interface ITenantContainerAccessor + where TTenant : class + { + Lazy> TenantContainer { get; } + } +} \ No newline at end of file diff --git a/src/Dotnettency.Container/TenantContainerAccessor.cs b/src/Dotnettency.Container/TenantContainerAccessor.cs new file mode 100644 index 0000000..0f91fe7 --- /dev/null +++ b/src/Dotnettency.Container/TenantContainerAccessor.cs @@ -0,0 +1,40 @@ +using System; +using System.Threading.Tasks; + +namespace Dotnettency.Container +{ + public class TenantContainerAccessor : ITenantContainerAccessor + where TTenant : class + { + private readonly ITenantShellAccessor _tenantShellAccessor; + private readonly ITenantContainerFactory _containerFactory; + + public TenantContainerAccessor(ITenantShellAccessor tenantShellAccessor, ITenantContainerFactory factory) + { + _tenantShellAccessor = tenantShellAccessor; + _containerFactory = factory; + + TenantContainer = new Lazy>(async () => + { + // return new Task(async () => + //{ + var tenantShell = await tenantShellAccessor.CurrentTenantShell.Value; + if (tenantShell == null) + { + return null; + } + + var tenant = tenantShell?.Tenant; + var lazy = tenantShell.GetOrAddContainer(() => + { + return factory.Get(tenant); + }); + var container = await lazy.Value; + return container; + }); + } + + public Lazy> TenantContainer { get; private set; } + + } +} \ No newline at end of file diff --git a/src/Dotnettency.Container/TenantContainerMiddleware.cs b/src/Dotnettency.Container/TenantContainerMiddleware.cs index 71e5a9b..e51e634 100644 --- a/src/Dotnettency.Container/TenantContainerMiddleware.cs +++ b/src/Dotnettency.Container/TenantContainerMiddleware.cs @@ -5,6 +5,7 @@ namespace Dotnettency.Container { + public class TenantContainerMiddleware where TTenant : class { @@ -25,30 +26,26 @@ public TenantContainerMiddleware( _factory = factory; } - public async Task Invoke(HttpContext context, ITenantShellAccessor tenantShellAccessor) + public async Task Invoke(HttpContext context, ITenantContainerAccessor tenantContainerAccessor) { // log.LogDebug("Using multitenancy provider {multitenancyProvidertype}.", tenantAccessor.GetType().Name); - var tenantShell = await tenantShellAccessor.CurrentTenantShell.Value; - if (tenantShell == null) + var tenantContainer = await tenantContainerAccessor.TenantContainer.Value; + if (tenantContainer == null) { await _next.Invoke(context); return; } - - var tenant = tenantShell?.Tenant; - var lazy = tenantShell.GetOrAddContainer(()=>_factory.Get(tenant)); - var currentTenantContainer = await lazy.Value; - - using (var scope = currentTenantContainer.CreateNestedContainer()) + // Replace request services with a nested version (for lifetime management - used to encpasulate a request). + using (var scope = tenantContainer.CreateNestedContainer()) { _log.LogDebug("Setting Request: {containerId} - {containerName}", scope.ContainerId, scope.ContainerName); var oldRequestServices = context.RequestServices; - context.RequestServices = scope.ServiceProvider.Value; - await _next.Invoke(context); + context.RequestServices = scope.GetServiceProvider(); + await _next.Invoke(context); // module middleware should be next - which will replace again with module specific container (nested). _log.LogDebug("Restoring Request Container"); context.RequestServices = oldRequestServices; } diff --git a/src/Dotnettency.Container/UseBuilderExtensions.cs b/src/Dotnettency.Container/UseBuilderExtensions.cs index 9e1edab..385d863 100644 --- a/src/Dotnettency.Container/UseBuilderExtensions.cs +++ b/src/Dotnettency.Container/UseBuilderExtensions.cs @@ -3,11 +3,23 @@ namespace Dotnettency { + + //public class MultitenenancyContainerMiddlewareOptionsBuilder + // where TTenant : class + //{ + // private readonly MultitenancyMiddlewareOptionsBuilder _parentOptions; + + // public MultitenenancyContainerMiddlewareOptionsBuilder(MultitenancyMiddlewareOptionsBuilder parentOptions) + // { + // _parentOptions = parentOptions; + // } + //} + public static class UseBuilderExtensions { public static MultitenancyMiddlewareOptionsBuilder UsePerTenantContainers(this MultitenancyMiddlewareOptionsBuilder builder) where TTenant : class - { + { builder.ApplicationBuilder.UseMiddleware>(); return builder; } diff --git a/src/Dotnettency.Modules/DelegateModuleFactory.cs b/src/Dotnettency.Modules/DelegateModuleFactory.cs new file mode 100644 index 0000000..31faf8a --- /dev/null +++ b/src/Dotnettency.Modules/DelegateModuleFactory.cs @@ -0,0 +1,64 @@ +using Dotnettency.Container; +using System; +using System.Collections.Generic; +using System.Threading.Tasks; + +namespace Dotnettency.Modules +{ + public class DelegateModuleFactory : IModuleFactory + where TTenant : class + where TModule : IModule + { + + private readonly Func> _getModulesDelegate; + + public DelegateModuleFactory(Func> getModulesDelegate) + { + _getModulesDelegate = getModulesDelegate; + } + + public Task> GetModulesForTenant(ITenantContainerAdaptor container, TTenant tenant) + { + return Task.Run(() => + { + return _getModulesDelegate(container, tenant); + }); + } + } + + //public class ModuleShell + // where TModule : IModule + //{ + + // private readonly Func _moduleContainerFactory; + + // public ModuleShell(IModule module, Func moduleContainerFactory) + // { + // Module = module; + // _moduleContainerFactory = moduleContainerFactory; + // } + + // public IModule Module { get; } + + // public void Restart() + // { + // if (Container != null) + // { + // Container.Dispose(); + // Container = null; + // } + // // Get the module container + // Container = _moduleContainerFactory(); + + + + // } + + // /// + // /// The curent container that is used for this modules services. + // /// + // /// Could be the Application, Tenant, or Module container depending on how modules are being isolated. + // private ITenantContainerAdaptor Container { get; set; } + + //} +} diff --git a/src/Dotnettency.Modules/DelegateModuleShellFactory.cs b/src/Dotnettency.Modules/DelegateModuleShellFactory.cs new file mode 100644 index 0000000..14f0d60 --- /dev/null +++ b/src/Dotnettency.Modules/DelegateModuleShellFactory.cs @@ -0,0 +1,24 @@ +using Dotnettency.Modules; +using System; + +namespace Dotnettency +{ + public class DelegateModuleShellFactory : IModuleShellFactory + where TTenant : class + where TModule : IModule + { + + private readonly Func> _factoryDelegate; + + public DelegateModuleShellFactory(Func> factoryDelegate) + { + _factoryDelegate = factoryDelegate; + } + + public ModuleShell GetModuleShell(TTenant tenant, TModule module) + { + return _factoryDelegate(tenant, module); + } + } + +} \ No newline at end of file diff --git a/src/Dotnettency.Modules/Dotnettency.Modules.csproj b/src/Dotnettency.Modules/Dotnettency.Modules.csproj index 69310ac..8ca3dbe 100644 --- a/src/Dotnettency.Modules/Dotnettency.Modules.csproj +++ b/src/Dotnettency.Modules/Dotnettency.Modules.csproj @@ -5,6 +5,15 @@ + + + + + + + + + diff --git a/src/Dotnettency.Modules/IModule.cs b/src/Dotnettency.Modules/IModule.cs index 4967c90..6faade2 100644 --- a/src/Dotnettency.Modules/IModule.cs +++ b/src/Dotnettency.Modules/IModule.cs @@ -1,11 +1,15 @@ using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Routing; using Microsoft.Extensions.DependencyInjection; +//using Microsoft.AspNetCore.Routing; namespace Dotnettency.Modules { public interface IModule { - void ConfigureModule(IServiceCollection services); - void ConfigureModulePipeline(IApplicationBuilder appBuilder); + void ConfigureServices(IServiceCollection services); + void ConfigureRoutes(IRouteBuilder routes); + void ConfigureMiddleware(IApplicationBuilder appBuilder); } + } diff --git a/src/Dotnettency.Modules/IModuleFactory.cs b/src/Dotnettency.Modules/IModuleFactory.cs new file mode 100644 index 0000000..96750d6 --- /dev/null +++ b/src/Dotnettency.Modules/IModuleFactory.cs @@ -0,0 +1,54 @@ +using Dotnettency.Container; +using System.Collections.Generic; +using System.Threading.Tasks; + +namespace Dotnettency.Modules +{ + public interface IModuleFactory + where TModule : IModule + { + /// + /// Returns all the modules that are enabled for a particular tenant. + /// + /// The tenant for whom modules need to be retreived. + /// Container that can be used to activate modules for this tenant. Typically the tenants container. + /// + Task> GetModulesForTenant(ITenantContainerAdaptor container, TTenant tenant); + } + + //public class ModuleShell + // where TModule : IModule + //{ + + // private readonly Func _moduleContainerFactory; + + // public ModuleShell(IModule module, Func moduleContainerFactory) + // { + // Module = module; + // _moduleContainerFactory = moduleContainerFactory; + // } + + // public IModule Module { get; } + + // public void Restart() + // { + // if (Container != null) + // { + // Container.Dispose(); + // Container = null; + // } + // // Get the module container + // Container = _moduleContainerFactory(); + + + + // } + + // /// + // /// The curent container that is used for this modules services. + // /// + // /// Could be the Application, Tenant, or Module container depending on how modules are being isolated. + // private ITenantContainerAdaptor Container { get; set; } + + //} +} diff --git a/src/Dotnettency.Modules/IModuleManager.cs b/src/Dotnettency.Modules/IModuleManager.cs new file mode 100644 index 0000000..3094c8b --- /dev/null +++ b/src/Dotnettency.Modules/IModuleManager.cs @@ -0,0 +1,15 @@ +using Dotnettency.Container; +using Microsoft.AspNetCore.Builder; +using System; +using System.Threading.Tasks; + +namespace Dotnettency.Modules +{ + public interface IModuleManager + where TModule : IModule + { + Task EnsureModulesStarted(Func> containerFactory, IApplicationBuilder rootAppBuilder); + + ModulesRouter GetModulesRouter(); + } +} diff --git a/src/Dotnettency.Modules/IModuleShellFactory.cs b/src/Dotnettency.Modules/IModuleShellFactory.cs new file mode 100644 index 0000000..6c9987d --- /dev/null +++ b/src/Dotnettency.Modules/IModuleShellFactory.cs @@ -0,0 +1,12 @@ +using Dotnettency.Modules; + +namespace Dotnettency +{ + public interface IModuleShellFactory + where TTenant : class + where TModule : IModule + { + ModuleShell GetModuleShell(TTenant tenant, TModule module); + } + +} \ No newline at end of file diff --git a/src/Dotnettency.Modules/ModuleContainerBuilderOptionsExtensions.cs b/src/Dotnettency.Modules/ModuleContainerBuilderOptionsExtensions.cs index 152513e..ed62259 100644 --- a/src/Dotnettency.Modules/ModuleContainerBuilderOptionsExtensions.cs +++ b/src/Dotnettency.Modules/ModuleContainerBuilderOptionsExtensions.cs @@ -6,46 +6,121 @@ namespace Dotnettency { - public static class ModuleContainerBuilderOptionsExtensions + +} + +public class ModuleOptionsBuilder + where TTenant : class + where TModule : IModule +{ + + private readonly AdaptedContainerBuilderOptions _parentOptions; + + public ModuleOptionsBuilder(AdaptedContainerBuilderOptions parentOptions) + { + _parentOptions = parentOptions; + } + + public ModuleOptionsBuilder ActivateModules(Func> factoryDelegate) + where TModule : IModule { - // WithModules() - TODO: simply bootstraps the tenants container with modules. - - - /// - /// Creates a nested container for each module to register its servies in - keeps isolation between modules. - // and modules can't polute tenant level container. - /// - /// - /// - /// - /// - public static ContainerBuilderOptions WithModuleContainers(this AdaptedContainerBuilderOptions options) - where TTenant : class + var factory = new DelegateModuleFactory(factoryDelegate); + // Add a service to the host container that can be used to get modules for a tenant. + _parentOptions.ContainerBuilderOptions.Builder.Services.AddSingleton>(factory); + return this; + } + + /// + /// Allows you to configure additonal options for the shell for modules. + /// + /// + /// + public ModuleOptionsBuilder ConfigureModuleShellOptions(Action> configure) + where TModule : IModule + { + + var factory = new DelegateModuleShellFactory((t, m) => { + var builder = new ModuleShellOptionsBuilder(t, m); + configure(builder); + var moduleShellOptions = builder.Build(); + return new ModuleShell(m, moduleShellOptions); + }); + + // Add a service to the host container that can be used get the ModuleShell for a tenant's module. + _parentOptions.ContainerBuilderOptions.Builder.Services.AddSingleton>(factory); + + return this; + } + + ///// + ///// Creates a nested container for each module to register its servies in - keeps isolation between modules. + //// and modules can't polute tenant level container. + ///// + ///// + ///// + ///// + ///// + //public static ModuleOptionsBuilder OnConfigureModuleShell(Action> configure) + //{ - var wrappedFunc = options.TenantContainerAdaptor; + // var builder = new ModuleShellOptionsBuilder(); + // configure(builder); + // return this; - options.TenantContainerAdaptor = new Func(() => - { - var adaptor = wrappedFunc(); // builds the tenants container and gets it adaptor. + // var wrappedFunc = options.HostContainerAdaptor; - // TODO: discover modules dynamically here. (i.e scanning, or some service). - var modules = new List(); - var moduleContainers = new List>(); - // for each module create a nested container. - foreach (var module in modules) - { - var moduleContainer = adaptor.CreateChildContainer(); - moduleContainer.Configure(module.ConfigureModule); - moduleContainers.Add(new Tuple(module, moduleContainer)); - } + // options.HostContainerAdaptor = new Func(() => + // { + // var adaptor = wrappedFunc(); // builds the tenants container and gets it adaptor. - return adaptor; - }); + // // add another service to the container that can be called by middleware to intialise our modules. + // adaptor.Configure((services) => + // { + // services.AddSingleton<> - return options.ContainerBuilderOptions; - } + + + + // }); + + // // TODO: discover modules dynamically here. (i.e scanning, or some service). + // var modules = new List(); + // var moduleContainers = new List>(); + + // // for each module create a nested container. + // foreach (var module in modules) + // { + // var moduleContainer = adaptor.CreateChildContainer(); + // moduleContainer.Configure(module.ConfigureModule); + // moduleContainers.Add(new Tuple(module, moduleContainer)); + // } + + // return adaptor; + // }); + + // return options.ContainerBuilderOptions; + //} + + +} + +public static class ModuleContainerBuilderOptionsExtensions +{ + + public static ContainerBuilderOptions HasModules(this AdaptedContainerBuilderOptions options, Action> configure) + where TTenant : class + // where TModule : IModule + { + var builder = new ModuleOptionsBuilder(options); + configure(builder); + return options.ContainerBuilderOptions; } + // WithModules() - TODO: simply bootstraps the tenants container with modules. + + + +} } \ No newline at end of file diff --git a/src/Dotnettency.Modules/ModuleManager.cs b/src/Dotnettency.Modules/ModuleManager.cs new file mode 100644 index 0000000..75a0ece --- /dev/null +++ b/src/Dotnettency.Modules/ModuleManager.cs @@ -0,0 +1,63 @@ +using Dotnettency.Container; +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Routing; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +namespace Dotnettency.Modules +{ + + public class ModuleManager : IModuleManager + where TModule : IModule + { + + // private readonly SemaphoreSlim _semaphore = new SemaphoreSlim(1, 1); + + public ModuleManager() + { + Modules = new List>(); + } + + private List> Modules { get; set; } + + public void AddModule(ModuleShell module) + { + Modules.Add(module); + } + + public ModulesRouter ModulesRouter { get; set; } + + public async Task EnsureModulesStarted(Func> containerFactory, IApplicationBuilder rootAppBuilder) + { + var allModules = Modules.ToArray(); + + var defaultRouteHandler = new RouteHandler(context => + { + var routeValues = context.GetRouteData().Values; + return context.Response.WriteAsync( + $"Hello! Route values: {string.Join(", ", routeValues)}"); + }); + + var modulesRouter = new ModulesRouter(rootAppBuilder, defaultRouteHandler); + //todo: PERF: make the EnsureStarted task on each module a lazy so that its only run once and we dont create new tasks on every request. + var startAllModules = allModules.Select(m => m.EnsureStarted(containerFactory, rootAppBuilder, modulesRouter)); + await Task.WhenAll(startAllModules); + ModulesRouter = modulesRouter; + // + + //foreach (var module in allModules) + //{ + // // TODO: Use await all to bootstrap modules in parralell! + // await EnsureModulesStarted(module, containerFactory, rootAppBuilder); + //} + } + + public ModulesRouter GetModulesRouter() + { + return ModulesRouter; + } + } +} diff --git a/src/Dotnettency.Modules/ModuleRegisterBuilder.cs b/src/Dotnettency.Modules/ModuleRegisterBuilder.cs new file mode 100644 index 0000000..91752c2 --- /dev/null +++ b/src/Dotnettency.Modules/ModuleRegisterBuilder.cs @@ -0,0 +1,45 @@ +using Microsoft.Extensions.DependencyInjection; +using System; + +namespace Dotnettency.Modules +{ + public class ModuleRegisterBuilder + where TModule : class, IModule + { + private IServiceCollection _services; + public ModuleRegisterBuilder(IServiceCollection servicies) + { + _services = servicies; + _services.AddRouting(); // needed for modular routing. + } + + public ModuleRegisterBuilder AddModule() + where TImplementation : class, TModule + { + _services.AddTransient(); + return this; + } + + public void OnSetupModule(Action> configureModuleOptionsBuilder) + { + // var moduleShell = new + _services.AddSingleton, ModuleManager>((sp) => + { + var allModules = sp.GetServices(); + var moduleManager = new ModuleManager(); + foreach (var item in allModules) + { + var moduleOptionsBuilder = new ModuleShellOptionsBuilder(item); + configureModuleOptionsBuilder(moduleOptionsBuilder); + var moduleShellOptions = moduleOptionsBuilder.Build(); + var moduleShell = new ModuleShell(item, moduleShellOptions); + moduleManager.AddModule(moduleShell); + } + return moduleManager; + }); + + } + + + } +} diff --git a/src/Dotnettency.Modules/ModuleRouteContext.cs b/src/Dotnettency.Modules/ModuleRouteContext.cs new file mode 100644 index 0000000..4246ef6 --- /dev/null +++ b/src/Dotnettency.Modules/ModuleRouteContext.cs @@ -0,0 +1,40 @@ +using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Routing; + +namespace Dotnettency.Modules +{ + public class ModuleRouteContext : RouteContext + { + private readonly RouteContext _parentRouteContext; + + public ModuleRouteContext(HttpContext httpContext, RouteContext parentRouteContext) : base(httpContext) + { + _parentRouteContext = parentRouteContext; + this.RouteData = _parentRouteContext.RouteData; + NotMatched = false; + } + + public bool NotMatched { get; set; } + + public RouteContext ParentRouteContext { get; set; } + } + + public class ModulesRouteContext : RouteContext + where TModule : IModule + // where TTenant : class + { + // private readonly RouteContext _parentRouteContext; + + public ModulesRouteContext(HttpContext httpContext) : base(httpContext) + { + // NotMatched = false; + } + + public ModuleShell ModuleShell { get; set; } + + //public bool NotMatched { get; set; } + + // public RouteContext ParentRouteContext { get; set; } + } + +} diff --git a/src/Dotnettency.Modules/ModuleShell.cs b/src/Dotnettency.Modules/ModuleShell.cs new file mode 100644 index 0000000..269e6cb --- /dev/null +++ b/src/Dotnettency.Modules/ModuleShell.cs @@ -0,0 +1,99 @@ +using Dotnettency.Container; +using Microsoft.AspNetCore.Builder; +using System; +using System.Threading.Tasks; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.AspNetCore.Routing; +using Microsoft.AspNetCore.Http; + +namespace Dotnettency.Modules +{ + public class ModuleShell + where TModule : IModule + { + + public ModuleShellOptions Options { get; } + + public ModuleShell(TModule module, ModuleShellOptions options) + { + Options = options; + Module = module; + } + + public TModule Module { get; set; } + + public bool IsStarted { get; private set; } + + public ITenantContainerAdaptor Container { get; set; } + public IApplicationBuilder AppBuilder { get; private set; } + public IRouter Router { get; private set; } + + public RequestDelegate MiddlewarePipeline { get; set; } + + internal async Task EnsureStarted(Func> containerFactory, IApplicationBuilder rootAppBuilder, ModulesRouter modulesRouter) + { + if (IsStarted) + { + return; + } + + var container = await containerFactory(); + if (Options.IsIsolated) // means module is routable and isolated. Services are registered into container per module, and module can configure its own middleware. + { + container = container.CreateChildContainer(); + } + + container.Configure((services) => + { + if (Options.IsIsolated) + { + services.AddRouting(); + } + Module.ConfigureServices(services); + }); + + Container = container; + + + // Configure routes. + // only isolated modules can have routing. + if (Options.IsIsolated) + { + modulesRouter.AddModuleRouter((moduleRouteBuilder) => + { + // var appBuilder = rootAppBuilder.New(); + //appBuilder.ApplicationServices = Container.GetServiceProvider(); + // var routeBuilder = new RouteBuilder(appBuilder, modulesRouter); + Module.ConfigureRoutes(moduleRouteBuilder); + + var moduleRouter = moduleRouteBuilder.Build(); + moduleRouteBuilder.ApplicationBuilder.UseRouter(moduleRouter); + this.Router = moduleRouter; + + //TODO: Not sure it makes sense for an isolated module to have its own middleware pipeline. + // As means evauating routes twice - i.e we evaluate the routes to route to the correct module, + // then because the router is in the middleware pipeline if we invoke the middleware pipeline + // we will evaulate the routes again. + // perhaps we don't add the routing to the modules middleware pipeline, but then + + + AppBuilder = moduleRouteBuilder.ApplicationBuilder; + MiddlewarePipeline = AppBuilder.Build(); + + return this; + }, Container.GetServiceProvider()); + + } + else + { + // non isolated modules can directly configure middleware in the tenants pipeline. + Module.ConfigureMiddleware(rootAppBuilder); + } + + IsStarted = true; + + + } + } + +} diff --git a/src/Dotnettency.Modules/ModuleShellOptions.cs b/src/Dotnettency.Modules/ModuleShellOptions.cs new file mode 100644 index 0000000..721aaa4 --- /dev/null +++ b/src/Dotnettency.Modules/ModuleShellOptions.cs @@ -0,0 +1,9 @@ +namespace Dotnettency +{ + public class ModuleShellOptions + { + public bool IsIsolated { get; set; } + + } + +} diff --git a/src/Dotnettency.Modules/ModuleShellOptionsBuilder.cs b/src/Dotnettency.Modules/ModuleShellOptionsBuilder.cs new file mode 100644 index 0000000..e476a7b --- /dev/null +++ b/src/Dotnettency.Modules/ModuleShellOptionsBuilder.cs @@ -0,0 +1,38 @@ +using Dotnettency.Modules; + +namespace Dotnettency +{ + public class ModuleShellOptionsBuilder + // where TTenant : class + where TModule : IModule + { + + private ModuleShellOptions _moduleShellOptions = new ModuleShellOptions(); + + public ModuleShellOptionsBuilder(TModule module) + { + Module = module; + // Tenant = tenant; + } + + + + public ModuleShellOptionsBuilder UseIsolatedContainer() + { + _moduleShellOptions.IsIsolated = true; + return this; + } + + public TModule Module { get; set; } + + //// public TTenant Tenant { get; set; } + + internal ModuleShellOptions Build() + { + return _moduleShellOptions; + + } + + } + +} diff --git a/src/Dotnettency.Modules/ModulesMiddleware.cs b/src/Dotnettency.Modules/ModulesMiddleware.cs new file mode 100644 index 0000000..08bf660 --- /dev/null +++ b/src/Dotnettency.Modules/ModulesMiddleware.cs @@ -0,0 +1,76 @@ +using System.Threading.Tasks; +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Http; +using Microsoft.Extensions.Logging; +using Dotnettency.Container; + +namespace Dotnettency.Modules +{ + + public class ModulesMiddleware + where TTenant : class + where TModule : IModule + { + + private readonly RequestDelegate _next; + private readonly IApplicationBuilder _rootApp; + private readonly ILogger> _logger; + private readonly IModuleManager _moduleManager; + + public ModulesMiddleware( + RequestDelegate next, + IApplicationBuilder rootApp, + ILogger> logger, + IModuleManager moduleManager + ) + { + _next = next; + _rootApp = rootApp; + _logger = logger; + _moduleManager = moduleManager; + } + + + public async Task Invoke(HttpContext context, ITenantContainerAccessor tenantContainerAccessor) + { + + // need to ensure all modules are initialised. + await _moduleManager.EnsureModulesStarted(() => + { + return tenantContainerAccessor.TenantContainer.Value; + }, _rootApp); + + var router = _moduleManager.GetModulesRouter(); + var routeContext = new Modules.ModulesRouteContext(context); + + // context.GetRouteData().Routers.Add(router); + await router.RouteAsync(routeContext); + + if (routeContext.Handler == null) + { + _logger.LogInformation("Request did not match routes for any modules.."); + await _next.Invoke(context); + } + else + { + // we can also store the modules container. + // context.Features[typeof(IRoutingFeature)] = new RoutingFeature() + var routedModule = routeContext.ModuleShell; + _logger.LogInformation("Request matched module {0}", routedModule.Module.GetType().Name); + + + // Replace request services with a nested version of the routed modules container. + using (var scope = routedModule.Container.CreateNestedContainer()) + { + + _logger.LogDebug("Setting Request: {containerId} - {containerName}", scope.ContainerId, scope.ContainerName); + var oldRequestServices = context.RequestServices; + context.RequestServices = scope.GetServiceProvider(); + await routeContext.Handler(routeContext.HttpContext); + _logger.LogDebug("Restoring Request Container"); + context.RequestServices = oldRequestServices; + } + } + } + } +} diff --git a/src/Dotnettency.Modules/ModulesRouter.cs b/src/Dotnettency.Modules/ModulesRouter.cs new file mode 100644 index 0000000..ce73d93 --- /dev/null +++ b/src/Dotnettency.Modules/ModulesRouter.cs @@ -0,0 +1,116 @@ +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Routing; + +namespace Dotnettency.Modules +{ + + public class ModulesRouter : IRouter + where TModule : IModule + { + + private IApplicationBuilder _appBuilder; + + //public List RoutedModules { get; set; } + + public ModulesRouter(IApplicationBuilder appBuilder, RouteHandler defaultRouteHandler) + { + DefaultRouteHandler = defaultRouteHandler; + _appBuilder = appBuilder; + RoutedModules = new LinkedList>(); + + // if adding a new module, we want the first modules default route handler to be chained to the last, so that we can evaluate a null match. + NullMatchRouteHandler = new RouteHandler(context => + { + // context.Items["NUL"] + return null; + + //context.GetRouteData(). + //var routeValues = context.GetRouteData().Values; + //return context.Response.WriteAsync( + // $"Hello! Route values: {string.Join(", ", routeValues)}"); + }); + + } + + public LinkedList> RoutedModules { get; set; } + + + public void AddModuleRouter(Func> configureModuleRoutes, IServiceProvider moduleServicesProvider) + { + + var appBuilder = _appBuilder.New(); + appBuilder.ApplicationServices = moduleServicesProvider; + + + var routeBuilder = new RouteBuilder(appBuilder, NullMatchRouteHandler); + var moduleShell = configureModuleRoutes(routeBuilder); + + var newNode = new LinkedListNode>(moduleShell); + RoutedModules.AddLast(newNode); + //// swap out the previous nodes defualt handler to a null handler. + //var previous = newNode.Previous; + //if (previous != null) + //{ + // newNode.Value.Router.de + //} + + } + + public VirtualPathData GetVirtualPath(VirtualPathContext context) + { + var currentNode = RoutedModules.First; + while ((currentNode != null)) + { + var module = currentNode.Value; + var moduleRouter = module.Router; + var virtulPath = moduleRouter.GetVirtualPath(context); + if (virtulPath != null) + { + return virtulPath; + } + currentNode = currentNode.Next; + } + return null; + } + + public async Task RouteAsync(RouteContext context) + { + + var moduleRouteContext = new ModuleRouteContext(context.HttpContext, context); + var currentNode = RoutedModules.First; + while ((currentNode != null)) + { + var module = currentNode.Value; + await module.Router.RouteAsync(moduleRouteContext); + if (moduleRouteContext.Handler != null) + { + var modulesRouteContext = context as ModulesRouteContext; + modulesRouteContext.ModuleShell = currentNode.Value; + context.Handler = moduleRouteContext.Handler; + return; + } + else + { + currentNode = currentNode.Next; + } + //if (moduleRouteContext.NotMatched) + //{ + // currentNode = currentNode.Next; + // continue; + //} + + + } + } + + public RouteHandler DefaultRouteHandler { get; set; } + + public RouteHandler NullMatchRouteHandler { get; set; } + + + } + +} diff --git a/src/Dotnettency.Modules/ServiceCollectionExtensions.cs b/src/Dotnettency.Modules/ServiceCollectionExtensions.cs new file mode 100644 index 0000000..ef3831a --- /dev/null +++ b/src/Dotnettency.Modules/ServiceCollectionExtensions.cs @@ -0,0 +1,19 @@ +using Microsoft.Extensions.DependencyInjection; +using System; + +namespace Dotnettency.Modules +{ + + public static class ServiceCollectionExtensions + { + + public static IServiceCollection AddModules(this IServiceCollection servicies, + Action> registerModules) + where TModule : class, IModule + { + var registerModulesBuilder = new ModuleRegisterBuilder(servicies); + registerModules(registerModulesBuilder); + return servicies; + } + } +} diff --git a/src/Dotnettency.Modules/UseModulesBuilderExtensions.cs b/src/Dotnettency.Modules/UseModulesBuilderExtensions.cs new file mode 100644 index 0000000..456e06e --- /dev/null +++ b/src/Dotnettency.Modules/UseModulesBuilderExtensions.cs @@ -0,0 +1,24 @@ +using Dotnettency.Modules; +using Microsoft.AspNetCore.Builder; + +namespace Dotnettency +{ + public static class UseModulesBuilderExtensions + { + public static MultitenancyMiddlewareOptionsBuilder UseModules(this MultitenancyMiddlewareOptionsBuilder builder) + where TTenant : class + where TModule : IModule + { + builder.ApplicationBuilder.UseMiddleware>(builder.ApplicationBuilder); + return builder; + } + + public static IApplicationBuilder UseModules(this IApplicationBuilder builder) + where TTenant : class + where TModule : IModule + { + builder.UseMiddleware>(builder); + return builder; + } + } +} \ No newline at end of file diff --git a/src/Dotnettency.Sample/Module.cs b/src/Dotnettency.Sample/Module.cs new file mode 100644 index 0000000..1a0040d --- /dev/null +++ b/src/Dotnettency.Sample/Module.cs @@ -0,0 +1,76 @@ +using Microsoft.AspNetCore.Builder; +using Microsoft.Extensions.DependencyInjection; +using System; +using Dotnettency.Modules; +using Microsoft.AspNetCore.Routing; +using Microsoft.AspNetCore.Http; + +namespace Sample +{ + public abstract class BaseModule : IModule + { + public abstract void ConfigureServices(IServiceCollection services); + + public abstract void ConfigureMiddleware(IApplicationBuilder appBuilder); + + public virtual void ConfigureRoutes(IRouteBuilder routes) + { + + } + + public bool IsSystemModule { get; set; } + + } + public class SystemModule : BaseModule + { + public SystemModule() + { + IsSystemModule = true; + } + + public override void ConfigureServices(IServiceCollection services) + { + // throw new NotImplementedException(); + } + + public override void ConfigureMiddleware(IApplicationBuilder appBuilder) + { + // throw new NotImplementedException(); + } + } + + public class IsolatedModule : BaseModule + { + public IsolatedModule() + { + IsSystemModule = false; + } + + public override void ConfigureServices(IServiceCollection services) + { + services.AddRouting(); + } + + public override void ConfigureRoutes(IRouteBuilder routes) + { + routes.MapGet("special", context => +{ + return context.Response.WriteAsync("Isolated Module"); +}); + + // routes.MapRoute("special", "special/thing"); + // routes.MapRoute("default", "{controller=Home}/{action=Index}/{Id?}"); + } + + public override void ConfigureMiddleware(IApplicationBuilder appBuilder) + { + + //appBuilder.UseRouter((routeBuilder) => + //{ + // routeBuilder.DefaultHandler = defaultRouteHandler; + // routeBuilder.MapRoute("default", "{controller=Home}/{action=Index}/{Id?}"); + //}); + // throw new NotImplementedException(); + } + } +} diff --git a/src/Dotnettency.Sample/Startup.cs b/src/Dotnettency.Sample/Startup.cs index a0e143d..52cd1a8 100644 --- a/src/Dotnettency.Sample/Startup.cs +++ b/src/Dotnettency.Sample/Startup.cs @@ -8,6 +8,7 @@ using System.Text; using Microsoft.Net.Http.Headers; using Newtonsoft.Json; +using Dotnettency.Modules; namespace Sample { @@ -34,8 +35,32 @@ public IServiceProvider ConfigureServices(IServiceCollection services) containerBuilder.WithStructureMapServiceCollection((tenant, tenantServices) => { tenantServices.AddSingleton(); - }) - .WithModuleContainers(); // Creates a child container per IModule. + + tenantServices.AddModules((modules) => + { + // Only load these modules for tenant Bar. + if (tenant.Name == "Bar") + { + modules.AddModule() + .AddModule(); + } + + modules.OnSetupModule((moduleOptions) => + { + + if (!moduleOptions.Module.IsSystemModule) + { + // We will load this modules services into isolated container for the module + // This means the modules services won't pollute the tenants container. + moduleOptions.UseIsolatedContainer(); + } + }); + + + }); + }); + + // .WithModuleContainers(); // Creates a child container per IModule. }) .ConfigureTenantMiddleware((middlewareOptions) => { @@ -44,11 +69,12 @@ public IServiceProvider ConfigureServices(IServiceCollection services) { appBuilder.UseStaticFiles(); // This demonstrates static files middleware, but below I am also using per tenant hosting environment which means each tenant can see its own static files in addition to the main application level static files. + appBuilder.UseModules(); + if (context.Tenant?.Name == "Foo") { appBuilder.UseWelcomePage("/welcome"); } - // }); }) // Configure per tenant containers. @@ -100,6 +126,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF hostingEnvironmentOptions.UseTenantWebRootFileProvider(); }) .UsePerTenantMiddlewarePipeline(); + // .UseModules(); }); // app.UseMiddleware>(); From d476f2d4df6dc93b32ec03c0933f019fe034069c Mon Sep 17 00:00:00 2001 From: Darrell Tunnell Date: Thu, 3 Aug 2017 02:42:03 +0100 Subject: [PATCH 05/86] #16 - refactored --- .../StructureMapTenantContainerAdaptor.cs | 18 +- src/Dotnettency.Modules/IModule.cs | 15 +- src/Dotnettency.Modules/IModuleManager.cs | 2 +- src/Dotnettency.Modules/IRoutedModule.cs | 25 +++ src/Dotnettency.Modules/IRoutedModuleShell.cs | 24 +++ src/Dotnettency.Modules/ISharedModule.cs | 21 +++ src/Dotnettency.Modules/ModuleBase.cs | 9 + src/Dotnettency.Modules/ModuleManager.cs | 103 ++++++++--- .../ModuleRegisterBuilder.cs | 40 +++- src/Dotnettency.Modules/ModuleRouteContext.cs | 18 -- src/Dotnettency.Modules/ModuleShell.cs | 174 +++++++++++++----- src/Dotnettency.Modules/ModuleShellOptions.cs | 4 +- .../ModuleShellOptionsBuilder.cs | 16 +- src/Dotnettency.Modules/ModulesMiddleware.cs | 18 +- .../ModulesRouteContext.cs | 24 +++ src/Dotnettency.Modules/ModulesRouter.cs | 63 ++++--- src/Dotnettency.Modules/RoutedModuleBase.cs | 26 +++ src/Dotnettency.Modules/RoutingFeature.cs | 10 + src/Dotnettency.Modules/SharedModuleBase.cs | 18 ++ src/Dotnettency.Sample/Module.cs | 76 -------- .../Modules/SampleRoutedModule.cs | 32 ++++ .../Modules/SampleSharedModule.cs | 19 ++ src/Dotnettency.Sample/Startup.cs | 41 +++-- 23 files changed, 550 insertions(+), 246 deletions(-) create mode 100644 src/Dotnettency.Modules/IRoutedModule.cs create mode 100644 src/Dotnettency.Modules/IRoutedModuleShell.cs create mode 100644 src/Dotnettency.Modules/ISharedModule.cs create mode 100644 src/Dotnettency.Modules/ModuleBase.cs create mode 100644 src/Dotnettency.Modules/ModulesRouteContext.cs create mode 100644 src/Dotnettency.Modules/RoutedModuleBase.cs create mode 100644 src/Dotnettency.Modules/RoutingFeature.cs create mode 100644 src/Dotnettency.Modules/SharedModuleBase.cs delete mode 100644 src/Dotnettency.Sample/Module.cs create mode 100644 src/Dotnettency.Sample/Modules/SampleRoutedModule.cs create mode 100644 src/Dotnettency.Sample/Modules/SampleSharedModule.cs diff --git a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerAdaptor.cs b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerAdaptor.cs index 1f7c489..ac9bfba 100644 --- a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerAdaptor.cs +++ b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerAdaptor.cs @@ -2,6 +2,7 @@ using System; using Microsoft.Extensions.DependencyInjection; using Dotnettency.Container.StructureMap; +using System.Threading.Tasks; namespace Dotnettency.Container { @@ -23,7 +24,7 @@ public IServiceProvider GetServiceProvider() { return _container.GetInstance(); } - + public string ContainerName => _container.Name; @@ -31,12 +32,15 @@ public IServiceProvider GetServiceProvider() public void Configure(Action configure) { - _container.Configure(_ => - { - var services = new ServiceCollection(); - configure(services); - _.Populate(services); - }); + //return Task.Run(() => + //{ + _container.Configure(_ => + { + var services = new ServiceCollection(); + configure(services); + _.Populate(services); + }); + // }); } public ITenantContainerAdaptor CreateNestedContainer() diff --git a/src/Dotnettency.Modules/IModule.cs b/src/Dotnettency.Modules/IModule.cs index 6faade2..6f0be63 100644 --- a/src/Dotnettency.Modules/IModule.cs +++ b/src/Dotnettency.Modules/IModule.cs @@ -1,15 +1,10 @@ -using Microsoft.AspNetCore.Builder; -using Microsoft.AspNetCore.Routing; -using Microsoft.Extensions.DependencyInjection; -//using Microsoft.AspNetCore.Routing; - -namespace Dotnettency.Modules +namespace Dotnettency.Modules { + /// + /// A marker interface for all modules. + /// public interface IModule { - void ConfigureServices(IServiceCollection services); - void ConfigureRoutes(IRouteBuilder routes); - void ConfigureMiddleware(IApplicationBuilder appBuilder); + } - } diff --git a/src/Dotnettency.Modules/IModuleManager.cs b/src/Dotnettency.Modules/IModuleManager.cs index 3094c8b..6e9bdec 100644 --- a/src/Dotnettency.Modules/IModuleManager.cs +++ b/src/Dotnettency.Modules/IModuleManager.cs @@ -8,7 +8,7 @@ namespace Dotnettency.Modules public interface IModuleManager where TModule : IModule { - Task EnsureModulesStarted(Func> containerFactory, IApplicationBuilder rootAppBuilder); + Task EnsureStarted(Func> containerFactory, IApplicationBuilder rootAppBuilder); ModulesRouter GetModulesRouter(); } diff --git a/src/Dotnettency.Modules/IRoutedModule.cs b/src/Dotnettency.Modules/IRoutedModule.cs new file mode 100644 index 0000000..f7b57dc --- /dev/null +++ b/src/Dotnettency.Modules/IRoutedModule.cs @@ -0,0 +1,25 @@ +using Microsoft.AspNetCore.Routing; +using Microsoft.Extensions.DependencyInjection; +//using Microsoft.AspNetCore.Routing; + +namespace Dotnettency.Modules +{ + /// + /// An is given its own container that it can configure with services, so that they are isolated from any other modules. + /// The must configure some Routes in it's method, as these are the routes + /// under which this modules container will be restored into RequestServices for an incoming request. /// + /// + /// + /// During an incoming request the + /// from the routes to each 's and if it finds one that can handle the current request it then + /// restores that modules child container into RequestServices. + /// A container with no routes is not valid, because it can never be restored during routing of an incoming request. + /// + public interface IRoutedModule : IModule + { + void ConfigureRoutes(IRouteBuilder routes); + void ConfigureServices(IServiceCollection services); + } + + +} diff --git a/src/Dotnettency.Modules/IRoutedModuleShell.cs b/src/Dotnettency.Modules/IRoutedModuleShell.cs new file mode 100644 index 0000000..27e6707 --- /dev/null +++ b/src/Dotnettency.Modules/IRoutedModuleShell.cs @@ -0,0 +1,24 @@ +using System; +using System.Threading.Tasks; +using Dotnettency.Container; +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Routing; +using Microsoft.Extensions.DependencyInjection; + +namespace Dotnettency.Modules +{ + public interface IModuleShell + where TModule : IModule + { + IApplicationBuilder AppBuilder { get; } + ITenantContainerAdaptor Container { get; set; } + bool IsStarted { get; } + RequestDelegate MiddlewarePipeline { get; set; } + IModule Module { get; set; } + ModuleShellOptions Options { get; } + IRouter Router { get; } + + Task EnsureStarted(Func> containerFactory, IApplicationBuilder rootAppBuilder, IServiceCollection sharedServices); + } +} \ No newline at end of file diff --git a/src/Dotnettency.Modules/ISharedModule.cs b/src/Dotnettency.Modules/ISharedModule.cs new file mode 100644 index 0000000..446a9dc --- /dev/null +++ b/src/Dotnettency.Modules/ISharedModule.cs @@ -0,0 +1,21 @@ +using System; +using System.Threading.Tasks; +using Dotnettency.Container; +using Microsoft.AspNetCore.Builder; +using Microsoft.Extensions.DependencyInjection; +//using Microsoft.AspNetCore.Routing; + +namespace Dotnettency.Modules +{ + /// + /// An can configures services and middleware that can have a direct impact on all downstream 's. + /// It can register services into the container shared by all modules, and it can add middleware to the middleware pipeline that is invoked before module routing. + /// + public interface ISharedModule : IModule + { + void ConfigureMiddleware(IApplicationBuilder appBuilder); + void ConfigureServices(IServiceCollection services); + } + + +} diff --git a/src/Dotnettency.Modules/ModuleBase.cs b/src/Dotnettency.Modules/ModuleBase.cs new file mode 100644 index 0000000..aba0fbd --- /dev/null +++ b/src/Dotnettency.Modules/ModuleBase.cs @@ -0,0 +1,9 @@ +using Dotnettency.Modules; + +namespace Dotnettency.Modules +{ + public class ModuleBase : IModule + { + + } +} diff --git a/src/Dotnettency.Modules/ModuleManager.cs b/src/Dotnettency.Modules/ModuleManager.cs index 75a0ece..acc0ace 100644 --- a/src/Dotnettency.Modules/ModuleManager.cs +++ b/src/Dotnettency.Modules/ModuleManager.cs @@ -2,9 +2,11 @@ using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Routing; +using Microsoft.Extensions.DependencyInjection; using System; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.Threading.Tasks; namespace Dotnettency.Modules @@ -14,45 +16,98 @@ public class ModuleManager : IModuleManager where TModule : IModule { - // private readonly SemaphoreSlim _semaphore = new SemaphoreSlim(1, 1); + private readonly SemaphoreSlim _semaphore = new SemaphoreSlim(1, 1); - public ModuleManager() + public bool Started { get; private set; } + + public ModuleManager(ModulesRouter modulesRouter) { - Modules = new List>(); + Modules = new List>(); + ModulesRouter = modulesRouter; } - private List> Modules { get; set; } + private List> Modules { get; set; } - public void AddModule(ModuleShell module) + public void AddModule(IModuleShell module) { Modules.Add(module); } public ModulesRouter ModulesRouter { get; set; } - public async Task EnsureModulesStarted(Func> containerFactory, IApplicationBuilder rootAppBuilder) + public async Task EnsureStarted(Func> containerFactory, IApplicationBuilder rootAppBuilder) { - var allModules = Modules.ToArray(); + if (Started) + { + return; + } - var defaultRouteHandler = new RouteHandler(context => + await _semaphore.WaitAsync(); + try { - var routeValues = context.GetRouteData().Values; - return context.Response.WriteAsync( - $"Hello! Route values: {string.Join(", ", routeValues)}"); - }); - - var modulesRouter = new ModulesRouter(rootAppBuilder, defaultRouteHandler); - //todo: PERF: make the EnsureStarted task on each module a lazy so that its only run once and we dont create new tasks on every request. - var startAllModules = allModules.Select(m => m.EnsureStarted(containerFactory, rootAppBuilder, modulesRouter)); - await Task.WhenAll(startAllModules); - ModulesRouter = modulesRouter; - // + if (Started) + { + return; + } + + var allModules = Modules.ToArray(); + + //var defaultRouteHandler = new RouteHandler(context => + //{ + // var routeValues = context.GetRouteData().Values; + // return context.Response.WriteAsync( + // $"Hello! Route values: {string.Join(", ", routeValues)}"); + //}); + + // var modulesRouter = new ModulesRouter(rootAppBuilder, defaultRouteHandler); + //todo: PERF: make the EnsureStarted task on each module a lazy so that its only run once and we dont create new tasks on every request. + // start shared modules first, as these are for libraries that add services and middleware that can impact downstream / routed modules. + + + + // allModules.Select(a=>a.Module).OfType(); + + var container = await containerFactory(); + + container.Configure(async sharedServices => + { + await Task.WhenAll(allModules.Select(m => m.EnsureStarted(containerFactory, rootAppBuilder, sharedServices))); + + //foreach (var item in allModules) + //{ + // var sharedModule = item as ModuleShell; + // var routedModule = item as RoutedModuleShell; + + //} + + //var sharedModules = allModules.OfType>().ToArray(); + //if (sharedModules.Any()) + //{ + + + //} + + }); + + + // configure all ISharedModules into the same ServiceCollection to avoid duplicate registrations. + + + + // configure all IRoutedModules + var routedModules = allModules.OfType>().ToArray(); + // routed modules can't add to tenant level services. + await Task.WhenAll(routedModules.Select(m => m.EnsureStarted(containerFactory, rootAppBuilder, null))); + + // ModulesRouter = modulesRouter; + Started = true; + + } + finally + { + _semaphore.Release(); + } - //foreach (var module in allModules) - //{ - // // TODO: Use await all to bootstrap modules in parralell! - // await EnsureModulesStarted(module, containerFactory, rootAppBuilder); - //} } public ModulesRouter GetModulesRouter() diff --git a/src/Dotnettency.Modules/ModuleRegisterBuilder.cs b/src/Dotnettency.Modules/ModuleRegisterBuilder.cs index 91752c2..d4efccb 100644 --- a/src/Dotnettency.Modules/ModuleRegisterBuilder.cs +++ b/src/Dotnettency.Modules/ModuleRegisterBuilder.cs @@ -1,4 +1,7 @@ -using Microsoft.Extensions.DependencyInjection; +using Dotnettency.Container; +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Routing; +using Microsoft.Extensions.DependencyInjection; using System; namespace Dotnettency.Modules @@ -20,26 +23,51 @@ public ModuleRegisterBuilder AddModule() return this; } - public void OnSetupModule(Action> configureModuleOptionsBuilder) + public void OnSetupModule(Action> configureModuleOptionsBuilder, RouteHandler defaultRouteHandler) { // var moduleShell = new + var modulesRouter = new ModulesRouter(defaultRouteHandler); + // _services.AddSingleton(modulesRouter); + _services.AddSingleton, ModuleManager>((sp) => { var allModules = sp.GetServices(); - var moduleManager = new ModuleManager(); + + var moduleManager = new ModuleManager(modulesRouter); + + // shared modules all popualte the same service collection + // var services = new ServiceCollection(); + foreach (var item in allModules) { var moduleOptionsBuilder = new ModuleShellOptionsBuilder(item); configureModuleOptionsBuilder(moduleOptionsBuilder); var moduleShellOptions = moduleOptionsBuilder.Build(); - var moduleShell = new ModuleShell(item, moduleShellOptions); - moduleManager.AddModule(moduleShell); + + var routedModule = item as IRoutedModule; + if (routedModule != null) // these need to be routed. + { + // modulesRouter. + // var routedModuleOptions = moduleShellOptions as ModuleShellOptions; + var routedModuleShell = new RoutedModuleShell(item, moduleShellOptions, modulesRouter); + // var moduleShell = routedModuleShell as IModuleShell; + moduleManager.AddModule(routedModuleShell); + } + else + { + + var nonRoutedModuleShell = new ModuleShell(item, moduleShellOptions); + // var moduleShell = routedModuleShell as IModuleShell; + moduleManager.AddModule(nonRoutedModuleShell); + } + } return moduleManager; }); } + } + - } } diff --git a/src/Dotnettency.Modules/ModuleRouteContext.cs b/src/Dotnettency.Modules/ModuleRouteContext.cs index 4246ef6..488ae30 100644 --- a/src/Dotnettency.Modules/ModuleRouteContext.cs +++ b/src/Dotnettency.Modules/ModuleRouteContext.cs @@ -19,22 +19,4 @@ public ModuleRouteContext(HttpContext httpContext, RouteContext parentRouteConte public RouteContext ParentRouteContext { get; set; } } - public class ModulesRouteContext : RouteContext - where TModule : IModule - // where TTenant : class - { - // private readonly RouteContext _parentRouteContext; - - public ModulesRouteContext(HttpContext httpContext) : base(httpContext) - { - // NotMatched = false; - } - - public ModuleShell ModuleShell { get; set; } - - //public bool NotMatched { get; set; } - - // public RouteContext ParentRouteContext { get; set; } - } - } diff --git a/src/Dotnettency.Modules/ModuleShell.cs b/src/Dotnettency.Modules/ModuleShell.cs index 269e6cb..798573e 100644 --- a/src/Dotnettency.Modules/ModuleShell.cs +++ b/src/Dotnettency.Modules/ModuleShell.cs @@ -8,19 +8,24 @@ namespace Dotnettency.Modules { - public class ModuleShell - where TModule : IModule + + public class RoutedModuleShell : IModuleShell + where TModule : IModule { + //private IRoutedModule routedModule; + + private ModulesRouter _modulesRouter; - public ModuleShellOptions Options { get; } + public ModuleShellOptions Options { get; } - public ModuleShell(TModule module, ModuleShellOptions options) + public RoutedModuleShell(TModule module, ModuleShellOptions options, ModulesRouter modulesRouter) { Options = options; Module = module; + _modulesRouter = modulesRouter; } - public TModule Module { get; set; } + public IModule Module { get; set; } public bool IsStarted { get; private set; } @@ -30,7 +35,7 @@ public ModuleShell(TModule module, ModuleShellOptions options) public RequestDelegate MiddlewarePipeline { get; set; } - internal async Task EnsureStarted(Func> containerFactory, IApplicationBuilder rootAppBuilder, ModulesRouter modulesRouter) + public async Task EnsureStarted(Func> containerFactory, IApplicationBuilder rootAppBuilder, IServiceCollection sharedServices) { if (IsStarted) { @@ -38,62 +43,139 @@ internal async Task EnsureStarted(Func> containerF } var container = await containerFactory(); - if (Options.IsIsolated) // means module is routable and isolated. Services are registered into container per module, and module can configure its own middleware. - { - container = container.CreateChildContainer(); - } + var routedModule = Module as IRoutedModule; + container = container.CreateChildContainer(); container.Configure((services) => { - if (Options.IsIsolated) - { - services.AddRouting(); - } - Module.ConfigureServices(services); + services.AddRouting(); //it's assumed routing is required for a routed module! + routedModule.ConfigureServices(services); }); Container = container; + var routedModuleShell = this as ModuleShell; + + var moduleAppBuilder = rootAppBuilder.New(); + + var moduleServicesProvider = Container.GetServiceProvider(); + moduleAppBuilder.ApplicationServices = moduleServicesProvider; + + var moduleRouteBuilder = new RouteBuilder(moduleAppBuilder, _modulesRouter.NullMatchRouteHandler); + routedModule.ConfigureRoutes(moduleRouteBuilder); + var moduleRouter = moduleRouteBuilder.Build(); + moduleRouteBuilder.ApplicationBuilder.UseRouter(moduleRouter); + AppBuilder = moduleRouteBuilder.ApplicationBuilder; + MiddlewarePipeline = AppBuilder.Build(); + + this.Router = moduleRouter; + + // Must register this module with the module router. + _modulesRouter.AddModuleRouter(this); + + IsStarted = true; + + + } + } + + + public class ModuleShell : IModuleShell + where TModule : IModule + { + + public ModuleShellOptions Options { get; } + + // public Func ServicesFactory { get; } + + public ModuleShell(TModule module, ModuleShellOptions options) + { + Options = options; + Module = module; + // ServicesFactory = servicesFactory; + //Services = services; + } + + public IModule Module { get; set; } + + public bool IsStarted { get; private set; } + + public ITenantContainerAdaptor Container { get; set; } + public IApplicationBuilder AppBuilder { get; private set; } + public IRouter Router { get; private set; } + + public RequestDelegate MiddlewarePipeline { get; set; } + + //internal async Task EnsureStarted(Func> containerFactory, IApplicationBuilder rootAppBuilder, ModulesRouter modulesRouter) + //{ + // if (IsStarted) + // { + // return; + // } + + // var container = await containerFactory(); + // var routedModule = Module as IRoutedModule; + // container = container.CreateChildContainer(); + + // container.Configure((services) => + // { + // services.AddRouting(); //it's assumed routing is required for a routed module! + // routedModule.ConfigureServices(services); + // }); + + // Container = container; + + // var routedModuleShell = this as ModuleShell; + // // Must register this module with the module router. + // modulesRouter.AddModuleRouter((moduleRouteBuilder) => + // { + // routedModule.ConfigureRoutes(moduleRouteBuilder); + // var moduleRouter = moduleRouteBuilder.Build(); + // moduleRouteBuilder.ApplicationBuilder.UseRouter(moduleRouter); + // this.Router = moduleRouter; + + // AppBuilder = moduleRouteBuilder.ApplicationBuilder; + // MiddlewarePipeline = AppBuilder.Build(); + + // return routedModuleShell; + // }, Container.GetServiceProvider()); + + + // IsStarted = true; - // Configure routes. - // only isolated modules can have routing. - if (Options.IsIsolated) - { - modulesRouter.AddModuleRouter((moduleRouteBuilder) => - { - // var appBuilder = rootAppBuilder.New(); - //appBuilder.ApplicationServices = Container.GetServiceProvider(); - // var routeBuilder = new RouteBuilder(appBuilder, modulesRouter); - Module.ConfigureRoutes(moduleRouteBuilder); - - var moduleRouter = moduleRouteBuilder.Build(); - moduleRouteBuilder.ApplicationBuilder.UseRouter(moduleRouter); - this.Router = moduleRouter; - - //TODO: Not sure it makes sense for an isolated module to have its own middleware pipeline. - // As means evauating routes twice - i.e we evaluate the routes to route to the correct module, - // then because the router is in the middleware pipeline if we invoke the middleware pipeline - // we will evaulate the routes again. - // perhaps we don't add the routing to the modules middleware pipeline, but then - - - AppBuilder = moduleRouteBuilder.ApplicationBuilder; - MiddlewarePipeline = AppBuilder.Build(); - - return this; - }, Container.GetServiceProvider()); + //} + + public async Task EnsureStarted(Func> containerFactory, IApplicationBuilder rootAppBuilder, IServiceCollection sharedServices) + { + if (IsStarted) + { + return; } - else + + var container = await containerFactory(); + + // configure container. + var sharedModule = Module as ISharedModule; + if (sharedModule != null) { - // non isolated modules can directly configure middleware in the tenants pipeline. - Module.ConfigureMiddleware(rootAppBuilder); + // var services = ServicesFactory(); + sharedModule.ConfigureServices(sharedServices); + //container.Configure((services) => + //{ + + //}); } - IsStarted = true; + Container = container; + // configure middleware. + sharedModule.ConfigureMiddleware(rootAppBuilder); + IsStarted = true; } + + } } diff --git a/src/Dotnettency.Modules/ModuleShellOptions.cs b/src/Dotnettency.Modules/ModuleShellOptions.cs index 721aaa4..54d2fcb 100644 --- a/src/Dotnettency.Modules/ModuleShellOptions.cs +++ b/src/Dotnettency.Modules/ModuleShellOptions.cs @@ -1,8 +1,8 @@ namespace Dotnettency { - public class ModuleShellOptions + public class ModuleShellOptions { - public bool IsIsolated { get; set; } + public bool IsolatedServices { get; set; } } diff --git a/src/Dotnettency.Modules/ModuleShellOptionsBuilder.cs b/src/Dotnettency.Modules/ModuleShellOptionsBuilder.cs index e476a7b..eb77bf8 100644 --- a/src/Dotnettency.Modules/ModuleShellOptionsBuilder.cs +++ b/src/Dotnettency.Modules/ModuleShellOptionsBuilder.cs @@ -7,7 +7,7 @@ public class ModuleShellOptionsBuilder where TModule : IModule { - private ModuleShellOptions _moduleShellOptions = new ModuleShellOptions(); + private ModuleShellOptions _moduleShellOptions = new ModuleShellOptions(); public ModuleShellOptionsBuilder(TModule module) { @@ -15,19 +15,17 @@ public ModuleShellOptionsBuilder(TModule module) // Tenant = tenant; } - - - public ModuleShellOptionsBuilder UseIsolatedContainer() - { - _moduleShellOptions.IsIsolated = true; - return this; - } + //public ModuleShellOptionsBuilder UseIsolatedContainer() + //{ + // _moduleShellOptions.IsRoutedModule = true; + // return this; + //} public TModule Module { get; set; } //// public TTenant Tenant { get; set; } - internal ModuleShellOptions Build() + internal ModuleShellOptions Build() { return _moduleShellOptions; diff --git a/src/Dotnettency.Modules/ModulesMiddleware.cs b/src/Dotnettency.Modules/ModulesMiddleware.cs index 08bf660..e358297 100644 --- a/src/Dotnettency.Modules/ModulesMiddleware.cs +++ b/src/Dotnettency.Modules/ModulesMiddleware.cs @@ -3,6 +3,7 @@ using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Logging; using Dotnettency.Container; +using Microsoft.AspNetCore.Routing; namespace Dotnettency.Modules { @@ -21,7 +22,7 @@ public ModulesMiddleware( RequestDelegate next, IApplicationBuilder rootApp, ILogger> logger, - IModuleManager moduleManager + IModuleManager moduleManager ) { _next = next; @@ -35,15 +36,15 @@ public async Task Invoke(HttpContext context, ITenantContainerAccessor { // need to ensure all modules are initialised. - await _moduleManager.EnsureModulesStarted(() => + await _moduleManager.EnsureStarted(() => { return tenantContainerAccessor.TenantContainer.Value; }, _rootApp); var router = _moduleManager.GetModulesRouter(); - var routeContext = new Modules.ModulesRouteContext(context); - - // context.GetRouteData().Routers.Add(router); + var routeContext = new ModulesRouteContext(context); + routeContext.RouteData.Routers.Add(router); + // context.GetRouteData().Routers.Add(router); await router.RouteAsync(routeContext); if (routeContext.Handler == null) @@ -56,6 +57,12 @@ await _moduleManager.EnsureModulesStarted(() => // we can also store the modules container. // context.Features[typeof(IRoutingFeature)] = new RoutingFeature() var routedModule = routeContext.ModuleShell; + + routeContext.HttpContext.Features[typeof(IRoutingFeature)] = new RoutingFeature() + { + RouteData = routeContext.RouteData, + }; + // context.GetRouteData().PushState(routeContext., routeContext.RouteData,) _logger.LogInformation("Request matched module {0}", routedModule.Module.GetType().Name); @@ -73,4 +80,5 @@ await _moduleManager.EnsureModulesStarted(() => } } } + } diff --git a/src/Dotnettency.Modules/ModulesRouteContext.cs b/src/Dotnettency.Modules/ModulesRouteContext.cs new file mode 100644 index 0000000..e9a8a8e --- /dev/null +++ b/src/Dotnettency.Modules/ModulesRouteContext.cs @@ -0,0 +1,24 @@ +using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Routing; + +namespace Dotnettency.Modules +{ + public class ModulesRouteContext : RouteContext + where TModule : IModule + // where TTenant : class + { + // private readonly RouteContext _parentRouteContext; + + public ModulesRouteContext(HttpContext httpContext) : base(httpContext) + { + // NotMatched = false; + } + + public IModuleShell ModuleShell { get; set; } + + //public bool NotMatched { get; set; } + + // public RouteContext ParentRouteContext { get; set; } + } + +} diff --git a/src/Dotnettency.Modules/ModulesRouter.cs b/src/Dotnettency.Modules/ModulesRouter.cs index ce73d93..66eddef 100644 --- a/src/Dotnettency.Modules/ModulesRouter.cs +++ b/src/Dotnettency.Modules/ModulesRouter.cs @@ -1,25 +1,24 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using System.Threading.Tasks; -using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Routing; namespace Dotnettency.Modules { + public class ModulesRouter : IRouter where TModule : IModule { - private IApplicationBuilder _appBuilder; + // private IApplicationBuilder _appBuilder; //public List RoutedModules { get; set; } - public ModulesRouter(IApplicationBuilder appBuilder, RouteHandler defaultRouteHandler) + public ModulesRouter(RouteHandler defaultRouteHandler) { DefaultRouteHandler = defaultRouteHandler; - _appBuilder = appBuilder; - RoutedModules = new LinkedList>(); + // _appBuilder = appBuilder; + RoutedModules = new LinkedList>(); // if adding a new module, we want the first modules default route handler to be chained to the last, so that we can evaluate a null match. NullMatchRouteHandler = new RouteHandler(context => @@ -35,29 +34,32 @@ public ModulesRouter(IApplicationBuilder appBuilder, RouteHandler defaultRouteHa } - public LinkedList> RoutedModules { get; set; } - + public LinkedList> RoutedModules { get; set; } - public void AddModuleRouter(Func> configureModuleRoutes, IServiceProvider moduleServicesProvider) + public void AddModuleRouter(RoutedModuleShell routedModuleShell) { + var newNode = new LinkedListNode>(routedModuleShell); + RoutedModules.AddLast(routedModuleShell); + } - var appBuilder = _appBuilder.New(); - appBuilder.ApplicationServices = moduleServicesProvider; + //public void AddModuleRouter(Func> configureModuleRoutes, IServiceProvider moduleServicesProvider, IApplicationBuilder defaultAppBuilder) + //{ + // var moduleAppBuilder = defaultAppBuilder.New(); + // moduleAppBuilder.ApplicationServices = moduleServicesProvider; - var routeBuilder = new RouteBuilder(appBuilder, NullMatchRouteHandler); - var moduleShell = configureModuleRoutes(routeBuilder); + // var routeBuilder = new RouteBuilder(moduleAppBuilder, NullMatchRouteHandler); + // var moduleShell = configureModuleRoutes(routeBuilder); - var newNode = new LinkedListNode>(moduleShell); - RoutedModules.AddLast(newNode); - //// swap out the previous nodes defualt handler to a null handler. - //var previous = newNode.Previous; - //if (previous != null) - //{ - // newNode.Value.Router.de - //} - } + // //// swap out the previous nodes defualt handler to a null handler. + // //var previous = newNode.Previous; + // //if (previous != null) + // //{ + // // newNode.Value.Router.de + // //} + + //} public VirtualPathData GetVirtualPath(VirtualPathContext context) { @@ -77,19 +79,28 @@ public VirtualPathData GetVirtualPath(VirtualPathContext context) } public async Task RouteAsync(RouteContext context) - { + { var moduleRouteContext = new ModuleRouteContext(context.HttpContext, context); - var currentNode = RoutedModules.First; + + var currentNode = RoutedModules.First; while ((currentNode != null)) { var module = currentNode.Value; + + // context.HttpContext.GetRouteData().Routers.Add(router); await module.Router.RouteAsync(moduleRouteContext); if (moduleRouteContext.Handler != null) { var modulesRouteContext = context as ModulesRouteContext; - modulesRouteContext.ModuleShell = currentNode.Value; + var cast = currentNode.Value as IModuleShell; + modulesRouteContext.ModuleShell = cast; + + var existingRouteData = context.HttpContext.GetRouteData(); context.Handler = moduleRouteContext.Handler; + context.RouteData = moduleRouteContext.RouteData; + + // existingRouteData.PushState(module.Router, context.RouteData.Values, context.RouteData.DataTokens); return; } else diff --git a/src/Dotnettency.Modules/RoutedModuleBase.cs b/src/Dotnettency.Modules/RoutedModuleBase.cs new file mode 100644 index 0000000..bcabb0d --- /dev/null +++ b/src/Dotnettency.Modules/RoutedModuleBase.cs @@ -0,0 +1,26 @@ +using Microsoft.AspNetCore.Routing; +using Microsoft.Extensions.DependencyInjection; + +namespace Dotnettency.Modules +{ + public class RoutedModuleBase : ModuleBase, IRoutedModule + { + public RoutedModuleBase() + { + // IsSystemModule = false; + } + + public virtual void ConfigureRoutes(IRouteBuilder routes) + { + //routes.MapGet("special", context => + //{ + // return context.Response.WriteAsync("Isolated Module"); + //}); + } + + public virtual void ConfigureServices(IServiceCollection services) + { + // throw new NotImplementedException(); + } + } +} diff --git a/src/Dotnettency.Modules/RoutingFeature.cs b/src/Dotnettency.Modules/RoutingFeature.cs new file mode 100644 index 0000000..998c010 --- /dev/null +++ b/src/Dotnettency.Modules/RoutingFeature.cs @@ -0,0 +1,10 @@ +using Microsoft.AspNetCore.Routing; + +namespace Dotnettency.Modules +{ + public class RoutingFeature : IRoutingFeature + { + public RouteData RouteData { get; set; } + } + +} diff --git a/src/Dotnettency.Modules/SharedModuleBase.cs b/src/Dotnettency.Modules/SharedModuleBase.cs new file mode 100644 index 0000000..1dbde2c --- /dev/null +++ b/src/Dotnettency.Modules/SharedModuleBase.cs @@ -0,0 +1,18 @@ +using Microsoft.AspNetCore.Builder; +using Microsoft.Extensions.DependencyInjection; + +namespace Dotnettency.Modules +{ + public abstract class SharedModuleBase : ModuleBase, ISharedModule + { + public virtual void ConfigureMiddleware(IApplicationBuilder appBuilder) + { + // throw new NotImplementedException(); + } + + public virtual void ConfigureServices(IServiceCollection services) + { + // throw new NotImplementedException(); + } + } +} diff --git a/src/Dotnettency.Sample/Module.cs b/src/Dotnettency.Sample/Module.cs deleted file mode 100644 index 1a0040d..0000000 --- a/src/Dotnettency.Sample/Module.cs +++ /dev/null @@ -1,76 +0,0 @@ -using Microsoft.AspNetCore.Builder; -using Microsoft.Extensions.DependencyInjection; -using System; -using Dotnettency.Modules; -using Microsoft.AspNetCore.Routing; -using Microsoft.AspNetCore.Http; - -namespace Sample -{ - public abstract class BaseModule : IModule - { - public abstract void ConfigureServices(IServiceCollection services); - - public abstract void ConfigureMiddleware(IApplicationBuilder appBuilder); - - public virtual void ConfigureRoutes(IRouteBuilder routes) - { - - } - - public bool IsSystemModule { get; set; } - - } - public class SystemModule : BaseModule - { - public SystemModule() - { - IsSystemModule = true; - } - - public override void ConfigureServices(IServiceCollection services) - { - // throw new NotImplementedException(); - } - - public override void ConfigureMiddleware(IApplicationBuilder appBuilder) - { - // throw new NotImplementedException(); - } - } - - public class IsolatedModule : BaseModule - { - public IsolatedModule() - { - IsSystemModule = false; - } - - public override void ConfigureServices(IServiceCollection services) - { - services.AddRouting(); - } - - public override void ConfigureRoutes(IRouteBuilder routes) - { - routes.MapGet("special", context => -{ - return context.Response.WriteAsync("Isolated Module"); -}); - - // routes.MapRoute("special", "special/thing"); - // routes.MapRoute("default", "{controller=Home}/{action=Index}/{Id?}"); - } - - public override void ConfigureMiddleware(IApplicationBuilder appBuilder) - { - - //appBuilder.UseRouter((routeBuilder) => - //{ - // routeBuilder.DefaultHandler = defaultRouteHandler; - // routeBuilder.MapRoute("default", "{controller=Home}/{action=Index}/{Id?}"); - //}); - // throw new NotImplementedException(); - } - } -} diff --git a/src/Dotnettency.Sample/Modules/SampleRoutedModule.cs b/src/Dotnettency.Sample/Modules/SampleRoutedModule.cs new file mode 100644 index 0000000..aa35eec --- /dev/null +++ b/src/Dotnettency.Sample/Modules/SampleRoutedModule.cs @@ -0,0 +1,32 @@ +using Dotnettency.Modules; +using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Routing; +using Microsoft.Extensions.DependencyInjection; + +namespace Sample +{ + public class SampleRoutedModule : RoutedModuleBase + { + public SampleRoutedModule() + { + // IsSystemModule = false; + } + + public override void ConfigureRoutes(IRouteBuilder routes) + { + RequestDelegate handler = (c) => + { + var name = c.GetRouteValue("name"); + return c.Response.WriteAsync($"Hi {name}, from module: {this.GetType().Name}"); + }; + + routes.MapGet("hello/{name}", handler); + + } + + public override void ConfigureServices(IServiceCollection services) + { + // throw new NotImplementedException(); + } + } +} diff --git a/src/Dotnettency.Sample/Modules/SampleSharedModule.cs b/src/Dotnettency.Sample/Modules/SampleSharedModule.cs new file mode 100644 index 0000000..0cd2c65 --- /dev/null +++ b/src/Dotnettency.Sample/Modules/SampleSharedModule.cs @@ -0,0 +1,19 @@ +using Microsoft.AspNetCore.Builder; +using Microsoft.Extensions.DependencyInjection; +using Dotnettency.Modules; + +namespace Sample +{ + public class SampleSharedModule : SharedModuleBase + { + public override void ConfigureMiddleware(IApplicationBuilder appBuilder) + { + + } + + public override void ConfigureServices(IServiceCollection services) + { + + } + } +} diff --git a/src/Dotnettency.Sample/Startup.cs b/src/Dotnettency.Sample/Startup.cs index 52cd1a8..873a446 100644 --- a/src/Dotnettency.Sample/Startup.cs +++ b/src/Dotnettency.Sample/Startup.cs @@ -9,6 +9,7 @@ using Microsoft.Net.Http.Headers; using Newtonsoft.Json; using Dotnettency.Modules; +using Microsoft.AspNetCore.Routing; namespace Sample { @@ -36,27 +37,35 @@ public IServiceProvider ConfigureServices(IServiceCollection services) { tenantServices.AddSingleton(); - tenantServices.AddModules((modules) => + tenantServices.AddModules((modules) => { // Only load these modules for tenant Bar. - if (tenant.Name == "Bar") + if (tenant?.Name == "Bar") { - modules.AddModule() - .AddModule(); + // Enable a routed module (i.e a module that handles requests. + modules.AddModule() + // Enable a shared module, this is a module that provides dependencies that all modules can consume. + .AddModule(); } modules.OnSetupModule((moduleOptions) => { - - if (!moduleOptions.Module.IsSystemModule) - { - // We will load this modules services into isolated container for the module - // This means the modules services won't pollute the tenants container. - moduleOptions.UseIsolatedContainer(); - } - }); - - + // Here you have access to the common base for all of your modules so you can configure any + // additional properties on them. + //if (!moduleOptions.Module.) + //{ + // + //} + }, (new RouteHandler(context => + { + // context.Items["NUL"] + return null; + + //context.GetRouteData(). + //var routeValues = context.GetRouteData().Values; + //return context.Response.WriteAsync( + // $"Hello! Route values: {string.Join(", ", routeValues)}"); + }))); }); }); @@ -69,7 +78,7 @@ public IServiceProvider ConfigureServices(IServiceCollection services) { appBuilder.UseStaticFiles(); // This demonstrates static files middleware, but below I am also using per tenant hosting environment which means each tenant can see its own static files in addition to the main application level static files. - appBuilder.UseModules(); + appBuilder.UseModules(); if (context.Tenant?.Name == "Foo") { @@ -126,7 +135,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF hostingEnvironmentOptions.UseTenantWebRootFileProvider(); }) .UsePerTenantMiddlewarePipeline(); - // .UseModules(); + // .UseModules(); }); // app.UseMiddleware>(); From b985da8124fc4b45fc9b520e135560af1096a2df Mon Sep 17 00:00:00 2001 From: Darrell Date: Sun, 6 Aug 2017 14:34:17 +0100 Subject: [PATCH 06/86] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index f7ec88e..1d7cf72 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,7 @@ Mutlitenancy library for dotnet applications. Heavily inspired by [saaskit](https://github.com/saaskit/saaskit) +Read the tutorial series here: http://darrelltunnell.net/tags/dotnettency/ See the [sample app for a full display of all the current features](https://github.com/dazinator/Dotnettency/tree/master/src/Dotnettency.Sample) or if you want to see MVC in action, checkout the [MVC sample](https://github.com/dazinator/Dotnettency/tree/develop/src/Sample.Mvc) which include: - Tenant resolution From 6207e355dee5ff93d898f1cce956840b9294ef19 Mon Sep 17 00:00:00 2001 From: Darrell Date: Sun, 6 Aug 2017 14:36:21 +0100 Subject: [PATCH 07/86] Update README.md --- README.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1d7cf72..1b128cd 100644 --- a/README.md +++ b/README.md @@ -10,20 +10,28 @@ Mutlitenancy library for dotnet applications. Heavily inspired by [saaskit](https://github.com/saaskit/saaskit) -Read the tutorial series here: http://darrelltunnell.net/tags/dotnettency/ -See the [sample app for a full display of all the current features](https://github.com/dazinator/Dotnettency/tree/master/src/Dotnettency.Sample) or if you want to see MVC in action, checkout the [MVC sample](https://github.com/dazinator/Dotnettency/tree/develop/src/Sample.Mvc) which include: +## Resources + + - Tutorial series here: http://darrelltunnell.net/tags/dotnettency/ + - See the [sample app for a full display of all the current features](https://github.com/dazinator/Dotnettency/tree/master/src/Dotnettency.Sample) or if you want to see MVC in action, checkout the [MVC sample](https://github.com/dazinator/Dotnettency/tree/develop/src/Sample.Mvc) + +## Features - Tenant resolution - Per Tenant Middleware Pipeline - Per Tenant Containers - Per Tenant HostingEnvironment +- Modules (Shared and Routed) -Tenant Resolution +## Tenant Injection Once configured in `startup.cs` you can: - Inject `TTenant` directly. (Has potential to be blocking) - Inject `ITenantAccessor` in order to lazily access the current tenant in a non blocking way. + +## Tenant Shell Injection + - Inject `ITenantShellAccessor` in order to access context for the currnet tenant, which is primarily used by: - Extensions (such as Middleware, or Container) - which store things for the tenant in the `ITenantShellAccessor`'s concurrent property bag. - Tenant Admin screens - if you need to "Restart" a tenant, then the idea is, you can resolve the `ITenantShellAccessor` and then use extension methods (provided by the dotnettency extensions such as Middleware pipeline, or Container) to allow you to control the state of the running tenant - for example to trigger rebuild of the tenant's container, or pipeline on the next request. From 5f9f2ac91c9cba6c3db1964c95691512eea233f0 Mon Sep 17 00:00:00 2001 From: Darrell Date: Mon, 7 Aug 2017 13:20:02 +0100 Subject: [PATCH 08/86] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1b128cd..480d3cd 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,8 @@ Heavily inspired by [saaskit](https://github.com/saaskit/saaskit) ## Resources - Tutorial series here: http://darrelltunnell.net/tags/dotnettency/ - - See the [sample app for a full display of all the current features](https://github.com/dazinator/Dotnettency/tree/master/src/Dotnettency.Sample) or if you want to see MVC in action, checkout the [MVC sample](https://github.com/dazinator/Dotnettency/tree/develop/src/Sample.Mvc) + - Various samples here: https://github.com/dazinator/Dotnettency.Samples + - More extensive [sample app for a full display of all the current features](https://github.com/dazinator/Dotnettency/tree/master/src/Dotnettency.Sample) or if you want to see MVC in action, checkout the [MVC sample](https://github.com/dazinator/Dotnettency/tree/develop/src/Sample.Mvc) ## Features From d54ca2ef6851ac634f946f2e3a1788d81fa581e3 Mon Sep 17 00:00:00 2001 From: Darrell Date: Tue, 8 Aug 2017 15:36:33 +0100 Subject: [PATCH 09/86] Update README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 480d3cd..a7b1c75 100644 --- a/README.md +++ b/README.md @@ -28,8 +28,9 @@ Heavily inspired by [saaskit](https://github.com/saaskit/saaskit) Once configured in `startup.cs` you can: -- Inject `TTenant` directly. (Has potential to be blocking) -- Inject `ITenantAccessor` in order to lazily access the current tenant in a non blocking way. +- Inject `TTenant` directly (may block whilst resolving current tenant). +- Inject `Task` - Allows you to `await` the current `Tenant` (so non blocking). `Task` is convenient. +- Inject `ITenantAccessor`. This is similar to injecting `Task` in that it provides lazy access the current tenant in a non blocking way. For convenience it's now easier to just inject `Task` instead, unless you want a more descriptive API. ## Tenant Shell Injection From 4a24c950ca562dfb4cce796e8cd260a8017bd455 Mon Sep 17 00:00:00 2001 From: Darrell Tunnell Date: Wed, 9 Aug 2017 13:42:16 +0100 Subject: [PATCH 10/86] Started on nancy. --- ...ureMapContainerBuilderOptionsExtensions.cs | 2 +- .../StructureMapTenantContainerAdaptor.cs | 23 +- .../StructureMapTenantContainerBuilder.cs | 5 +- .../Container/ITenantContainerAdaptor.cs | 18 ++ .../ContainerBuilderOptions.cs | 1 + .../ITenantRequestContainerAccessor.cs | 11 + .../PerRequestContainer.cs | 77 ++++++ .../TenantContainerMiddleware.cs | 21 +- .../TenantRequestContainerAccessor.cs | 51 ++++ .../TenantShellContainerExtensions.cs | 1 + .../AlreadyKnownRouteResolver.cs | 55 +++++ .../CustomNancyModuleBuilder.cs | 151 ++++++++++++ .../Dotnettency.Modules.Nancy.csproj | 16 ++ .../ITenantNancyBootstrapperAccessor.cs | 11 + .../ITenantNancyBootstrapperFactory.cs | 11 + .../Module/TestNancyModule.cs | 55 +++++ .../Module/TestNancyRoutedModule.cs | 36 +++ .../NancyMiddleware.cs | 69 ++++++ .../ServiceCollectionExtensions.cs | 18 ++ .../TenantContainerNancyBootstrapper.cs | 223 ++++++++++++++++++ .../TenantNancyBootstrapperAccessor.cs | 42 ++++ .../TenantNancyBootstrapperFactory.cs | 24 ++ .../TenantShellNancyExtensions.cs | 22 ++ .../Modules/SampleRoutedModule.cs | 1 + src/Dotnettency.Sample/Sample.csproj | 4 +- src/Dotnettency.Sample/Startup.cs | 7 + src/NuGet.config | 9 + src/src.sln | 22 +- 28 files changed, 955 insertions(+), 31 deletions(-) create mode 100644 src/Dotnettency.Container/ITenantRequestContainerAccessor.cs create mode 100644 src/Dotnettency.Container/PerRequestContainer.cs create mode 100644 src/Dotnettency.Container/TenantRequestContainerAccessor.cs create mode 100644 src/Dotnettency.Modules.Nancy/AlreadyKnownRouteResolver.cs create mode 100644 src/Dotnettency.Modules.Nancy/CustomNancyModuleBuilder.cs create mode 100644 src/Dotnettency.Modules.Nancy/Dotnettency.Modules.Nancy.csproj create mode 100644 src/Dotnettency.Modules.Nancy/ITenantNancyBootstrapperAccessor.cs create mode 100644 src/Dotnettency.Modules.Nancy/ITenantNancyBootstrapperFactory.cs create mode 100644 src/Dotnettency.Modules.Nancy/Module/TestNancyModule.cs create mode 100644 src/Dotnettency.Modules.Nancy/Module/TestNancyRoutedModule.cs create mode 100644 src/Dotnettency.Modules.Nancy/NancyMiddleware.cs create mode 100644 src/Dotnettency.Modules.Nancy/ServiceCollectionExtensions.cs create mode 100644 src/Dotnettency.Modules.Nancy/TenantContainerNancyBootstrapper.cs create mode 100644 src/Dotnettency.Modules.Nancy/TenantNancyBootstrapperAccessor.cs create mode 100644 src/Dotnettency.Modules.Nancy/TenantNancyBootstrapperFactory.cs create mode 100644 src/Dotnettency.Modules.Nancy/TenantShellNancyExtensions.cs create mode 100644 src/NuGet.config diff --git a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapContainerBuilderOptionsExtensions.cs b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapContainerBuilderOptionsExtensions.cs index f8e4770..0f5e65e 100644 --- a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapContainerBuilderOptionsExtensions.cs +++ b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapContainerBuilderOptionsExtensions.cs @@ -78,7 +78,7 @@ public static AdaptedContainerBuilderOptions WithStructureMapServiceCol })) ); - var adaptor = new StructureMapTenantContainerAdaptor(container); + var adaptor = new StructureMapTenantContainerAdaptor(container, ContainerRole.Root); return adaptor; }); diff --git a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerAdaptor.cs b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerAdaptor.cs index ac9bfba..7e4ff65 100644 --- a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerAdaptor.cs +++ b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerAdaptor.cs @@ -11,10 +11,11 @@ public class StructureMapTenantContainerAdaptor : ITenantContainerAdaptor private readonly IContainer _container; private readonly Guid _id; - public StructureMapTenantContainerAdaptor(IContainer container) + public StructureMapTenantContainerAdaptor(IContainer container, ContainerRole role) { _container = container; _id = Guid.NewGuid(); + Role = role; //ServiceProvider = new Lazy(() => //{ // return @@ -26,6 +27,8 @@ public IServiceProvider GetServiceProvider() } + public ContainerRole Role { get; set; } + public string ContainerName => _container.Name; public Guid ContainerId => _id; @@ -34,23 +37,23 @@ public void Configure(Action configure) { //return Task.Run(() => //{ - _container.Configure(_ => - { - var services = new ServiceCollection(); - configure(services); - _.Populate(services); - }); - // }); + _container.Configure(_ => + { + var services = new ServiceCollection(); + configure(services); + _.Populate(services); + }); + // }); } public ITenantContainerAdaptor CreateNestedContainer() { - return new StructureMapTenantContainerAdaptor(_container.GetNestedContainer()); + return new StructureMapTenantContainerAdaptor(_container.GetNestedContainer(), ContainerRole.Scoped); } public ITenantContainerAdaptor CreateChildContainer() { - return new StructureMapTenantContainerAdaptor(_container.CreateChildContainer()); + return new StructureMapTenantContainerAdaptor(_container.CreateChildContainer(), ContainerRole.Child); } public void Dispose() diff --git a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerBuilder.cs b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerBuilder.cs index 140f755..879b3c5 100644 --- a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerBuilder.cs +++ b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerBuilder.cs @@ -1,5 +1,4 @@ -using Dotnettency.Container; -using StructureMap; +using StructureMap; using System; using System.Threading.Tasks; @@ -25,7 +24,7 @@ public virtual Task BuildAsync(TTenant tenant) var tenantContainer = Container.CreateChildContainer(); tenantContainer.Configure(config => Configure(tenant, config)); - ITenantContainerAdaptor adaptor = new StructureMapTenantContainerAdaptor(tenantContainer); + ITenantContainerAdaptor adaptor = new StructureMapTenantContainerAdaptor(tenantContainer, ContainerRole.Child); return Task.FromResult(adaptor); } } diff --git a/src/Dotnettency.Container/Container/ITenantContainerAdaptor.cs b/src/Dotnettency.Container/Container/ITenantContainerAdaptor.cs index 9a974b0..c5e3264 100644 --- a/src/Dotnettency.Container/Container/ITenantContainerAdaptor.cs +++ b/src/Dotnettency.Container/Container/ITenantContainerAdaptor.cs @@ -12,6 +12,8 @@ public interface ITenantContainerAdaptor : IDisposable string ContainerName { get; } Guid ContainerId { get; } + ContainerRole Role { get; } + /// /// Used to add services to a container AFTER its initialised. /// @@ -20,5 +22,21 @@ public interface ITenantContainerAdaptor : IDisposable } + public enum ContainerRole + { + /// + /// The root application level container. + /// + Root = 0, + /// + /// A child container, derived from a parent. + /// + Child = 1, + /// + /// A child container that is scoped for some lifetime such as a request. + /// + Scoped = 2 + } + } diff --git a/src/Dotnettency.Container/ContainerBuilderOptions.cs b/src/Dotnettency.Container/ContainerBuilderOptions.cs index 97db532..9ee32d0 100644 --- a/src/Dotnettency.Container/ContainerBuilderOptions.cs +++ b/src/Dotnettency.Container/ContainerBuilderOptions.cs @@ -12,6 +12,7 @@ public ContainerBuilderOptions(MultitenancyOptionsBuilder builder) Builder = builder; builder.Services.AddSingleton, TenantContainerBuilderFactory>(); builder.Services.AddScoped, TenantContainerAccessor>(); + builder.Services.AddScoped, TenantRequestContainerAccessor>(); } public MultitenancyOptionsBuilder Builder { get; set; } diff --git a/src/Dotnettency.Container/ITenantRequestContainerAccessor.cs b/src/Dotnettency.Container/ITenantRequestContainerAccessor.cs new file mode 100644 index 0000000..1b03e38 --- /dev/null +++ b/src/Dotnettency.Container/ITenantRequestContainerAccessor.cs @@ -0,0 +1,11 @@ +using System; +using System.Threading.Tasks; + +namespace Dotnettency.Container +{ + public interface ITenantRequestContainerAccessor + where TTenant : class + { + Lazy> TenantRequestContainer { get; } + } +} \ No newline at end of file diff --git a/src/Dotnettency.Container/PerRequestContainer.cs b/src/Dotnettency.Container/PerRequestContainer.cs new file mode 100644 index 0000000..1818f67 --- /dev/null +++ b/src/Dotnettency.Container/PerRequestContainer.cs @@ -0,0 +1,77 @@ +using System; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Http; + +namespace Dotnettency.Container +{ + public class PerRequestContainer : IDisposable + { + + private bool _hasSwapped = false; + + public PerRequestContainer(ITenantContainerAdaptor requestContainer, HttpContext httpContext) + { + RequestContainer = requestContainer; + HttpContext = httpContext; + HttpContext.Items[nameof(PerRequestContainer)] = requestContainer; + + //var sp = requestContainer.GetServiceProvider(); + + //var sp = requestContainer.GetServiceProvider(); + //var scopeFactory = sp.GetRequiredService(); + //var scope = scopeFactory.CreateScope(); + + + + //var scope = RequestContainer.GetServiceProvider(); + + // Replace request services with a nested version (for lifetime management - used to encpasulate a request). + //using (var scope = tenantContainer.CreateNestedContainer()) + //{ + //_logger.LogDebug("Setting Request: {containerId} - {containerName}", scope.ContainerId, scope.ContainerName); + //var oldRequestServices = context.RequestServices; + //context.RequestServices = scope.GetServiceProvider(); + //// await _next.Invoke(context); // module middleware should be next - which will replace again with module specific container (nested). + //// _log.LogDebug("Restoring Request Container"); + //context.RequestServices = oldRequestServices; + //} + + + //var scopeFactory = sp.GetRequiredService(); + // var scope = new StructureMapServiceScope() + // Scope = scopeFactory.CreateScope(); + } + + public HttpContext HttpContext { get; } + + public ITenantContainerAdaptor RequestContainer { get; } + + public async Task ExecuteWithinSwappedRequestContainer(Task task) + { + if(!_hasSwapped) + { + IServiceProvider oldServiceProvider = HttpContext.RequestServices; + try + { + HttpContext.RequestServices = RequestContainer.GetServiceProvider(); + await task; + } + finally + { + HttpContext.RequestServices = oldServiceProvider; + // throw; + } + _hasSwapped = true; + } + + } + // public IServiceScope Scope { get; } + + public void Dispose() + { + HttpContext.Items.Remove(nameof(PerRequestContainer)); + RequestContainer.Dispose(); + // Scope.Dispose(); + } + } +} \ No newline at end of file diff --git a/src/Dotnettency.Container/TenantContainerMiddleware.cs b/src/Dotnettency.Container/TenantContainerMiddleware.cs index e51e634..9b51522 100644 --- a/src/Dotnettency.Container/TenantContainerMiddleware.cs +++ b/src/Dotnettency.Container/TenantContainerMiddleware.cs @@ -5,7 +5,6 @@ namespace Dotnettency.Container { - public class TenantContainerMiddleware where TTenant : class { @@ -19,35 +18,29 @@ public class TenantContainerMiddleware public TenantContainerMiddleware( RequestDelegate next, ILoggerFactory loggerFactory, - ITenantContainerFactory factory) + ITenantContainerFactory factory) { _next = next; _log = loggerFactory.CreateLogger>(); _factory = factory; } - public async Task Invoke(HttpContext context, ITenantContainerAccessor tenantContainerAccessor) + public async Task Invoke(HttpContext context, ITenantRequestContainerAccessor tenantRequestContainerAccessor) { // log.LogDebug("Using multitenancy provider {multitenancyProvidertype}.", tenantAccessor.GetType().Name); - - var tenantContainer = await tenantContainerAccessor.TenantContainer.Value; - if (tenantContainer == null) + var requestContainer = await tenantRequestContainerAccessor.TenantRequestContainer.Value; + if (requestContainer == null) { await _next.Invoke(context); return; } // Replace request services with a nested version (for lifetime management - used to encpasulate a request). - using (var scope = tenantContainer.CreateNestedContainer()) + using (requestContainer) { - - _log.LogDebug("Setting Request: {containerId} - {containerName}", scope.ContainerId, scope.ContainerName); - var oldRequestServices = context.RequestServices; - context.RequestServices = scope.GetServiceProvider(); - await _next.Invoke(context); // module middleware should be next - which will replace again with module specific container (nested). - _log.LogDebug("Restoring Request Container"); - context.RequestServices = oldRequestServices; + _log.LogDebug("Setting Request Container: {containerId} - {containerName}", requestContainer.RequestContainer.ContainerId, requestContainer.RequestContainer.ContainerName); + await requestContainer.ExecuteWithinSwappedRequestContainer(_next.Invoke(context)); } } diff --git a/src/Dotnettency.Container/TenantRequestContainerAccessor.cs b/src/Dotnettency.Container/TenantRequestContainerAccessor.cs new file mode 100644 index 0000000..6ccad9b --- /dev/null +++ b/src/Dotnettency.Container/TenantRequestContainerAccessor.cs @@ -0,0 +1,51 @@ +using System; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Http; +using Microsoft.Extensions.Logging; + +namespace Dotnettency.Container +{ + public class TenantRequestContainerAccessor : ITenantRequestContainerAccessor + where TTenant : class + { + private readonly ITenantShellAccessor _tenantShellAccessor; + private readonly ITenantContainerFactory _containerFactory; + + private readonly IHttpContextAccessor _httpContextAccessor; + private readonly ITenantContainerAccessor _tenantContainerAccessor; + + private readonly ILogger> _logger; + + public TenantRequestContainerAccessor( + ILogger> logger, + IHttpContextAccessor httpContextAccessor, + ITenantContainerAccessor tenantContainerAccessor) + { + _logger = logger; + _httpContextAccessor = httpContextAccessor; + _tenantContainerAccessor = tenantContainerAccessor; + + TenantRequestContainer = new Lazy>(async () => + { + var tenantContainer = await tenantContainerAccessor.TenantContainer.Value; + if (tenantContainer == null) + { + return null; + } + + var httpContext = _httpContextAccessor.HttpContext; + if (httpContext == null) + { + return null; + } + + var requestContainer = tenantContainer.CreateNestedContainer(); + var tenantRequestContainer = new PerRequestContainer(requestContainer, httpContext); + return tenantRequestContainer; + }); + } + + public Lazy> TenantRequestContainer { get; private set; } + + } +} \ No newline at end of file diff --git a/src/Dotnettency.Container/TenantShellContainerExtensions.cs b/src/Dotnettency.Container/TenantShellContainerExtensions.cs index c72cb69..7c8fab6 100644 --- a/src/Dotnettency.Container/TenantShellContainerExtensions.cs +++ b/src/Dotnettency.Container/TenantShellContainerExtensions.cs @@ -17,5 +17,6 @@ public static Lazy> GetOrAddContainer(thi }) as Lazy>; return result; } + } } \ No newline at end of file diff --git a/src/Dotnettency.Modules.Nancy/AlreadyKnownRouteResolver.cs b/src/Dotnettency.Modules.Nancy/AlreadyKnownRouteResolver.cs new file mode 100644 index 0000000..c80f803 --- /dev/null +++ b/src/Dotnettency.Modules.Nancy/AlreadyKnownRouteResolver.cs @@ -0,0 +1,55 @@ +using Nancy; +using Nancy.Configuration; +using System.Linq; +using nancyrouting = global::Nancy.Routing; + +namespace Dotnettency.Modules.Nancy +{ + public class AlreadyKnownRouteResolver : nancyrouting.IRouteResolver + { + private readonly global::Nancy.Routing.Route _route; + private readonly INancyModule _module; + private readonly nancyrouting.Trie.MatchResult _matchResult; + private readonly GlobalizationConfiguration _globalizationConfiguraton; + + public AlreadyKnownRouteResolver() + { + } + + public AlreadyKnownRouteResolver(INancyEnvironment environment, nancyrouting.Route route, INancyModule module, nancyrouting.Trie.MatchResult matchResult) + { + _globalizationConfiguraton = environment.GetValue(); + _route = route; + _module = module; + _matchResult = matchResult; + } + + public nancyrouting.ResolveResult Resolve(NancyContext context) + { + return BuildResult(context, _matchResult); + } + + private nancyrouting.ResolveResult BuildResult(NancyContext context, nancyrouting.Trie.MatchResult result) + { + + context.NegotiationContext.SetModule(_module); + var route = _module.Routes.ElementAt(result.RouteIndex); + var parameters = DynamicDictionary.Create(result.Parameters, _globalizationConfiguraton); + + return new nancyrouting.ResolveResult + { + Route = route, + Parameters = parameters, + Before = _module.Before, + After = _module.After, + OnError = _module.OnError + }; + + } + + + } + + + +} \ No newline at end of file diff --git a/src/Dotnettency.Modules.Nancy/CustomNancyModuleBuilder.cs b/src/Dotnettency.Modules.Nancy/CustomNancyModuleBuilder.cs new file mode 100644 index 0000000..133d955 --- /dev/null +++ b/src/Dotnettency.Modules.Nancy/CustomNancyModuleBuilder.cs @@ -0,0 +1,151 @@ +using System; +using System.Threading.Tasks; + +namespace Dotnettency.Modules.Nancy +{ + ///// + ///// Default implementation for building a full configured instance. + ///// + //public class CustomNancyModuleBuilder : INancyModuleBuilder + //{ + + // private readonly IViewFactory viewFactory; + // private readonly IResponseFormatterFactory responseFormatterFactory; + // private readonly IModelBinderLocator modelBinderLocator; + // private readonly IModelValidatorLocator validatorLocator; + // private readonly IRouteBuilder routeBuilder; + + // /// + // /// Initializes a new instance of the class. + // /// + // /// The instance that should be assigned to the module. + // /// An instance that should be used to create a response formatter for the module. + // /// A instance that should be assigned to the module. + // /// A instance that should be assigned to the module. + // public CustomNancyModuleBuilder(IViewFactory viewFactory, + // IResponseFormatterFactory responseFormatterFactory, + // IModelBinderLocator modelBinderLocator, + // IModelValidatorLocator validatorLocator, + // IRouteBuilder routeBuilder) + // { + + // this.viewFactory = viewFactory; + // this.responseFormatterFactory = responseFormatterFactory; + // this.modelBinderLocator = modelBinderLocator; + // this.validatorLocator = validatorLocator; + // this.routeBuilder = routeBuilder; + // } + + + + // /// + // /// Builds a fully configured instance, based upon the provided . + // /// + // /// The that should be configured. + // /// The current request context. + // /// A fully configured instance. + // public INancyModule BuildModule(INancyModule module, NancyContext context) + // { + // module.Context = context; + // module.Response = this.responseFormatterFactory.Create(context); + // module.ViewFactory = this.viewFactory; + // module.ModelBinderLocator = this.modelBinderLocator; + // module.ValidatorLocator = this.validatorLocator; + + // IApplicationBuilder appBuilder = GetAppBuilder(); + // INancyModule[] nancyModules = GetNancyModules(); + + // foreach (var nancyModule in nancyModules) + // { + // var customRouter = ConvertNancyModuleRoutesToAspNetCoreRouter(module.Routes.ToArray(), appBuilder); + // } + + // return module; + // } + + // private INancyModule[] GetNancyModules() + // { + // throw new NotImplementedException(); + // } + + // private IApplicationBuilder GetAppBuilder() + // { + // throw new NotImplementedException(); + // } + + // private CustomRouter ConvertNancyModuleRoutesToAspNetCoreRouter(Nancy.Routing.Route[] routes, IApplicationBuilder appBuilder) + // { + + + // var router = new CustomRouter(routes, appBuilder); + // return router; + // } + + + // public class CustomRouter : IRouter + // { + // private Nancy.Routing.Route[] _routes; + // private IApplicationBuilder _appBuilder; + + // public Nancy.Routing.Route MatchedRoute { get; set; } + + // public INancyModule MatchedModule { get; set; } + + // public CustomRouter(Nancy.Routing.Route[] routes, IApplicationBuilder appBuilder) + // { + // _routes = routes; + // _appBuilder = appBuilder; + + // // create a new owin pipeline for the nancy module to operate within. + // var owinBridge = appBuilder.UseOwin(addToPipeline => + // { + // addToPipeline(next => + // { + // var owinAppBuilder = new AppBuilder(); + // owinAppBuilder.Properties["builder.DefaultApp"] = next; + // owinAppBuilder.UseNancy(); + // // Uses the owin middleware. + // owinAppBuilder.UseNancy((options) => + // { + // options.Bootstrapper = new CustomBootstrapper(() => + // { + // return new AlreadyKnownRouteResolver(null, this.MatchedRoute, this.MatchedModule) + // }); + // }); + // return owinAppBuilder.Build(); + + // }); + + // }).Build(); + + // } + + // public Microsoft.AspNetCore.Http.RequestDelegate OwinBridge { get; internal set; } + + // public VirtualPathData GetVirtualPath(VirtualPathContext context) + // { + // throw new NotImplementedException(); + // } + + // public Task RouteAsync(RouteContext context) + // { + // var result = FindMatchingRoute(context, _routes); + // if (result != null) + // { + // context.Handler = + // } + + // } + + // public int MyProperty { get; set; } + + // private object FindMatchingRoute(RouteContext context, Nancy.Routing.Route[] routes) + // { + // throw new NotImplementedException(); + // } + + + // } + + //} +} \ No newline at end of file diff --git a/src/Dotnettency.Modules.Nancy/Dotnettency.Modules.Nancy.csproj b/src/Dotnettency.Modules.Nancy/Dotnettency.Modules.Nancy.csproj new file mode 100644 index 0000000..e0c3ff3 --- /dev/null +++ b/src/Dotnettency.Modules.Nancy/Dotnettency.Modules.Nancy.csproj @@ -0,0 +1,16 @@ + + + + netstandard2.0 + + + + + + + + + + + + diff --git a/src/Dotnettency.Modules.Nancy/ITenantNancyBootstrapperAccessor.cs b/src/Dotnettency.Modules.Nancy/ITenantNancyBootstrapperAccessor.cs new file mode 100644 index 0000000..3e5705a --- /dev/null +++ b/src/Dotnettency.Modules.Nancy/ITenantNancyBootstrapperAccessor.cs @@ -0,0 +1,11 @@ +using System; +using System.Threading.Tasks; + +namespace Dotnettency.Modules.Nancy +{ + public interface ITenantNancyBootstrapperAccessor + where TTenant : class + { + Lazy>> Bootstrapper { get; } + } +} \ No newline at end of file diff --git a/src/Dotnettency.Modules.Nancy/ITenantNancyBootstrapperFactory.cs b/src/Dotnettency.Modules.Nancy/ITenantNancyBootstrapperFactory.cs new file mode 100644 index 0000000..98af090 --- /dev/null +++ b/src/Dotnettency.Modules.Nancy/ITenantNancyBootstrapperFactory.cs @@ -0,0 +1,11 @@ +using Dotnettency.Modules.Nancy; +using System.Threading.Tasks; + +namespace Dotnettency.Modules.Nancy +{ + public interface ITenantNancyBootstrapperFactory + where TTenant : class + { + Task> Get(TTenant currentTenant); + } +} \ No newline at end of file diff --git a/src/Dotnettency.Modules.Nancy/Module/TestNancyModule.cs b/src/Dotnettency.Modules.Nancy/Module/TestNancyModule.cs new file mode 100644 index 0000000..7744d23 --- /dev/null +++ b/src/Dotnettency.Modules.Nancy/Module/TestNancyModule.cs @@ -0,0 +1,55 @@ +using Nancy; +//using AppFunc = Func, Task>; + +namespace Dotnettency.Modules.Nancy +{ + public class TestNancyModule : NancyModule + { + + + + public TestNancyModule() + { + Get("/greet/{name}", x => + { + return string.Concat("Hello ", x.name); + }); + + + // IApplicationBuilder appBuilder = null; + + //foreach (var module in NancyModules) + //{ + // // Create an owin bridge for each owin module. + // module.OwinBridge = appBuilder.UseOwin(addToPipeline => + // { + // addToPipeline(next => + // { + + // var owinAppBuilder = new AppBuilder(); + // owinAppBuilder.Properties["builder.DefaultApp"] = next; + // // Uses the owin middleware. + // owinAppBuilder.UseNancy((options) => { options.Bootstrapper = new CustomBootstrapper(); }); + + + // return owinAppBuilder.Build(); + + // }); + + // }).Build(); + + + + // module.OwinPipeline = appBuilder.UseOwin(pipeline => + // { + // pipeline(next => + // { + // // do something before + // app.UseNancy(); + // // do something after + // }); + // }); + //} + } + } +} diff --git a/src/Dotnettency.Modules.Nancy/Module/TestNancyRoutedModule.cs b/src/Dotnettency.Modules.Nancy/Module/TestNancyRoutedModule.cs new file mode 100644 index 0000000..5e4804b --- /dev/null +++ b/src/Dotnettency.Modules.Nancy/Module/TestNancyRoutedModule.cs @@ -0,0 +1,36 @@ +using Dotnettency.Modules; +using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Routing; +using Microsoft.Extensions.DependencyInjection; + +namespace Dotnettency.Modules.Nancy +{ + public class TestNancyRoutedModule : RoutedModuleBase + { + public TestNancyRoutedModule() + { + // IsSystemModule = false; + } + + public override void ConfigureRoutes(IRouteBuilder routes) + { + + RequestDelegate handler = (c) => + { + var name = c.GetRouteValue("name"); + return c.Response.WriteAsync($"Hi {name}, from module: {this.GetType().Name}"); + }; + + // routes.MapMiddlewareRoute + + // routes.MapMiddlewareRoute + routes.MapGet("hello/{name}", handler); + + } + + public override void ConfigureServices(IServiceCollection services) + { + // throw new NotImplementedException(); + } + } +} diff --git a/src/Dotnettency.Modules.Nancy/NancyMiddleware.cs b/src/Dotnettency.Modules.Nancy/NancyMiddleware.cs new file mode 100644 index 0000000..828e313 --- /dev/null +++ b/src/Dotnettency.Modules.Nancy/NancyMiddleware.cs @@ -0,0 +1,69 @@ +using System.Threading.Tasks; +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Http; +using Microsoft.Extensions.Logging; +using Dotnettency.Container; +using Microsoft.AspNetCore.Routing; +using Dotnettency.Modules.Nancy; +using System; + +namespace Dotnettency.Modules +{ + + public class NancyMiddleware + where TTenant : class + { + + private readonly RequestDelegate _next; + private readonly IApplicationBuilder _rootApp; + private readonly ILogger> _logger; + // private readonly IModuleManager _moduleManager; + + public NancyMiddleware( + RequestDelegate next, + IApplicationBuilder rootApp, + ILogger> logger + ) + { + _next = next; + _rootApp = rootApp; + _logger = logger; + // _moduleManager = moduleManager; + } + + + + public async Task Invoke(HttpContext context, ITenantNancyBootstrapperAccessor tenantNancyBootstrapper, ITenantContainerAccessor tenantContainerAccessor, ITenantRequestContainerAccessor tenantRequestContainerAccessor) + { + + // get the nancy bootstrapper, + // adjust its request container - give it the current request container to return. + // get the nancy engine + + var tenantContainer = await tenantContainerAccessor.TenantContainer.Value; + var tenantRequestContainer = await tenantRequestContainerAccessor.TenantRequestContainer.Value; + var nancyBootstrapper = await tenantNancyBootstrapper.Bootstrapper.Value; + + if (tenantContainer == null || tenantRequestContainer == null || nancyBootstrapper == null) + { + await _next.Invoke(context); + return; + } + + // swap out nancy request services. + ITenantContainerAdaptor old = nancyBootstrapper.RequestContainerAdaptor; + try + { + nancyBootstrapper.RequestContainerAdaptor = tenantRequestContainer.RequestContainer; + + // proceed with nancy request. + throw new NotImplementedException(); + await _next.Invoke(context); + } + finally + { + nancyBootstrapper.RequestContainerAdaptor = old; + } + } + } +} diff --git a/src/Dotnettency.Modules.Nancy/ServiceCollectionExtensions.cs b/src/Dotnettency.Modules.Nancy/ServiceCollectionExtensions.cs new file mode 100644 index 0000000..153a84d --- /dev/null +++ b/src/Dotnettency.Modules.Nancy/ServiceCollectionExtensions.cs @@ -0,0 +1,18 @@ +using Microsoft.Extensions.DependencyInjection; +using Sample; + +namespace Dotnettency.Modules.Nancy +{ + + public static class ServiceCollectionExtensions + { + + public static IServiceCollection AddNancy(this IServiceCollection services) + where TTenant : class + { + services.AddScoped, TenantNancyBootstrapperFactory>(); + services.AddScoped, TenantNancyBootstrapperAccessor>(); + return services; + } + } +} diff --git a/src/Dotnettency.Modules.Nancy/TenantContainerNancyBootstrapper.cs b/src/Dotnettency.Modules.Nancy/TenantContainerNancyBootstrapper.cs new file mode 100644 index 0000000..ea2ea59 --- /dev/null +++ b/src/Dotnettency.Modules.Nancy/TenantContainerNancyBootstrapper.cs @@ -0,0 +1,223 @@ +using System; +using System.Collections.Generic; +using Dotnettency.Container; +using Nancy; +using Nancy.Bootstrapper; +using Nancy.Configuration; +using Nancy.Diagnostics; +using System.Linq; +using Microsoft.Extensions.DependencyInjection; +using Nancy.ViewEngines; + +namespace Dotnettency.Modules.Nancy +{ + + public class TenantContainerNancyBootstrapper : NancyBootstrapperWithRequestContainerBase, IDisposable + where TTenant : class + { + + private readonly ITenantContainerAdaptor _applicationContainer; + + private bool isDisposing = false; + + public ITenantContainerAdaptor RequestContainerAdaptor { get; set; } + + + //public int ITenantContainerAdaptor { get; set; } + + public TenantContainerNancyBootstrapper(ITenantContainerAdaptor applicationContainer) + { + _applicationContainer = applicationContainer; + } + + #region Container Factories + + protected override ITenantContainerAdaptor GetApplicationContainer() + { + return _applicationContainer; + } + + protected override ITenantContainerAdaptor CreateRequestContainer(NancyContext context) + { + var perRequestContainer = RequestContainerAdaptor; + return perRequestContainer; + } + + + #endregion + + #region From ApplicationContainer + + protected override IEnumerable GetAllModules(ITenantContainerAdaptor container) + { + var sp = this.ApplicationContainer.GetServiceProvider(); + return sp.GetServices(); + } + + public override INancyEnvironment GetEnvironment() + { + var sp = this.ApplicationContainer.GetServiceProvider(); + return sp.GetService(); + } + + protected override IEnumerable GetApplicationStartupTasks() + { + var sp = this.ApplicationContainer.GetServiceProvider(); + return sp.GetServices(); + } + + protected override IDiagnostics GetDiagnostics() + { + var sp = ApplicationContainer.GetServiceProvider(); + return sp.GetService(); + } + + protected override INancyEngine GetEngineInternal() + { + var sp = ApplicationContainer.GetServiceProvider(); + return sp.GetService(); + } + + protected override INancyEnvironmentConfigurator GetEnvironmentConfigurator() + { + var sp = ApplicationContainer.GetServiceProvider(); + return sp.GetService(); + } + + protected override IEnumerable GetRegistrationTasks() + { + var sp = ApplicationContainer.GetServiceProvider(); + return sp.GetServices(); + } + + #endregion + + + protected override INancyModule GetModule(ITenantContainerAdaptor container, Type moduleType) + { + var sp = container.GetServiceProvider(); + return (INancyModule)sp.GetService(moduleType); + } + + protected override IEnumerable RegisterAndGetRequestStartupTasks(ITenantContainerAdaptor container, Type[] requestStartupTypes) + { + var sp = container.GetServiceProvider(); + return requestStartupTypes.Select(sp.GetService).Cast().ToArray(); + } + + protected override void RegisterBootstrapperTypes(ITenantContainerAdaptor applicationContainer) + { + applicationContainer.Configure((services) => + { + services.AddSingleton(this); + services.AddSingleton(); + }); + } + + protected override void RegisterCollectionTypes(ITenantContainerAdaptor container, IEnumerable collectionTypeRegistrationsn) + { + container.Configure((services) => + { + foreach (var collectionTypeRegistration in collectionTypeRegistrationsn) + { + foreach (var implementationType in collectionTypeRegistration.ImplementationTypes) + { + RegisterType( + collectionTypeRegistration.RegistrationType, + implementationType, + container.Role == ContainerRole.Scoped ? Lifetime.PerRequest : collectionTypeRegistration.Lifetime, + services); + } + } + }); + } + + protected override void RegisterTypes(ITenantContainerAdaptor container, IEnumerable typeRegistrations) + { + container.Configure((services) => + { + foreach (var typeRegistration in typeRegistrations) + { + + RegisterType( + typeRegistration.RegistrationType, + typeRegistration.ImplementationType, + container.Role == ContainerRole.Scoped ? Lifetime.PerRequest : typeRegistration.Lifetime, + services); + } + }); + } + protected override void RegisterInstances(ITenantContainerAdaptor container, IEnumerable instanceRegistrations) + { + container.Configure((services) => + { + foreach (var instanceRegistration in instanceRegistrations) + { + services.AddSingleton(instanceRegistration.RegistrationType, instanceRegistration.Implementation); + } + }); + } + + protected override void RegisterNancyEnvironment(ITenantContainerAdaptor container, INancyEnvironment environment) + { + container.Configure((services) => + { + services.AddSingleton(environment); + }); + } + + protected override void RegisterRequestContainerModules(ITenantContainerAdaptor container, IEnumerable moduleRegistrationTypes) + { + container.Configure((services) => + { + foreach (var registrationType in moduleRegistrationTypes) + { + services.AddTransient(typeof(INancyModule), registrationType.ModuleType); + } + }); + } + + #region Helper Methods + + protected void RegisterType(Type registrationType, Type implementationType, Lifetime lifetime, IServiceCollection services) + { + switch (lifetime) + { + case Lifetime.Transient: + services.AddTransient(registrationType, implementationType); + break; + + case Lifetime.Singleton: + services.AddSingleton(registrationType, implementationType); + break; + case Lifetime.PerRequest: + services.AddScoped(registrationType, implementationType); + break; + default: + throw new ArgumentOutOfRangeException("lifetime", lifetime, String.Format("Unknown Lifetime: {0}.", lifetime)); + } + + } + + #endregion + + //protected override Func InternalConfiguration + //{ + // get + // { + // return NancyInternalConfiguration.WithOverrides(x => x.NancyModuleBuilder = typeof(CustomNancyModuleBuilder)); + // } + //} + + public new void Dispose() + { + if (this.isDisposing) + { + return; + } + + this.isDisposing = true; + base.Dispose(); + } + } +} diff --git a/src/Dotnettency.Modules.Nancy/TenantNancyBootstrapperAccessor.cs b/src/Dotnettency.Modules.Nancy/TenantNancyBootstrapperAccessor.cs new file mode 100644 index 0000000..e275170 --- /dev/null +++ b/src/Dotnettency.Modules.Nancy/TenantNancyBootstrapperAccessor.cs @@ -0,0 +1,42 @@ +using Dotnettency; +using Dotnettency.Modules.Nancy; +using System; +using System.Threading.Tasks; + +namespace Sample +{ + public class TenantNancyBootstrapperAccessor : ITenantNancyBootstrapperAccessor + where TTenant : class + { + private readonly ITenantShellAccessor _tenantShellAccessor; + private readonly ITenantNancyBootstrapperFactory _factory; + + public TenantNancyBootstrapperAccessor(ITenantShellAccessor tenantShellAccessor, ITenantNancyBootstrapperFactory factory) + { + _tenantShellAccessor = tenantShellAccessor; + _factory = factory; + + Bootstrapper = new Lazy>>(async () => + { + // return new Task(async () => + //{ + var tenantShell = await tenantShellAccessor.CurrentTenantShell.Value; + if (tenantShell == null) + { + return null; + } + + var tenant = tenantShell?.Tenant; + var lazy = tenantShell.GetOrAddNancyBootstrapper(() => + { + return factory.Get(tenant); + }); + var container = await lazy.Value; + return container; + }); + } + + public Lazy>> Bootstrapper { get; private set; } + + } +} \ No newline at end of file diff --git a/src/Dotnettency.Modules.Nancy/TenantNancyBootstrapperFactory.cs b/src/Dotnettency.Modules.Nancy/TenantNancyBootstrapperFactory.cs new file mode 100644 index 0000000..796f836 --- /dev/null +++ b/src/Dotnettency.Modules.Nancy/TenantNancyBootstrapperFactory.cs @@ -0,0 +1,24 @@ +using Dotnettency.Container; +using Dotnettency.Modules.Nancy; +using System.Threading.Tasks; + +namespace Dotnettency.Modules.Nancy +{ + public class TenantNancyBootstrapperFactory : ITenantNancyBootstrapperFactory + where TTenant : class + { + + private readonly ITenantContainerAccessor _tenantContainerAccessor; + + public TenantNancyBootstrapperFactory(ITenantContainerAccessor tenantContainerAccessor) + { + _tenantContainerAccessor = tenantContainerAccessor; + } + + public async Task> Get(TTenant currentTenant) + { + var tenantContainer = await _tenantContainerAccessor.TenantContainer.Value; + return new TenantContainerNancyBootstrapper(tenantContainer); + } + } +} \ No newline at end of file diff --git a/src/Dotnettency.Modules.Nancy/TenantShellNancyExtensions.cs b/src/Dotnettency.Modules.Nancy/TenantShellNancyExtensions.cs new file mode 100644 index 0000000..c2bca0e --- /dev/null +++ b/src/Dotnettency.Modules.Nancy/TenantShellNancyExtensions.cs @@ -0,0 +1,22 @@ +using System; +using System.Threading.Tasks; +using Dotnettency.Modules.Nancy; + +namespace Dotnettency +{ + public static class TenantShellNancyExtensions + { + public static Lazy>> GetOrAddNancyBootstrapper(this TenantShell tenantShell, Func>> nancyBootstrapper) + where TTenant : class + { + var result = tenantShell.Properties.GetOrAdd(nameof(TenantShellNancyExtensions), + (a) => + { + // var factory = containerAdaptorFactory(); + return new Lazy>>(nancyBootstrapper); + }) as Lazy>>; + return result; + } + + } +} \ No newline at end of file diff --git a/src/Dotnettency.Sample/Modules/SampleRoutedModule.cs b/src/Dotnettency.Sample/Modules/SampleRoutedModule.cs index aa35eec..c955944 100644 --- a/src/Dotnettency.Sample/Modules/SampleRoutedModule.cs +++ b/src/Dotnettency.Sample/Modules/SampleRoutedModule.cs @@ -5,6 +5,7 @@ namespace Sample { + public class SampleRoutedModule : RoutedModuleBase { public SampleRoutedModule() diff --git a/src/Dotnettency.Sample/Sample.csproj b/src/Dotnettency.Sample/Sample.csproj index 9a5871f..6030da6 100644 --- a/src/Dotnettency.Sample/Sample.csproj +++ b/src/Dotnettency.Sample/Sample.csproj @@ -1,7 +1,7 @@  - netcoreapp1.1 + netcoreapp2.0 @@ -25,7 +25,9 @@ + + diff --git a/src/Dotnettency.Sample/Startup.cs b/src/Dotnettency.Sample/Startup.cs index 873a446..cffcc1c 100644 --- a/src/Dotnettency.Sample/Startup.cs +++ b/src/Dotnettency.Sample/Startup.cs @@ -138,6 +138,13 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF // .UseModules(); }); + //app.UseOwin(x => + //{ + // x.UseMyMiddleware(new MyMiddlewareOptions()); + // x.UseNancy(); + //}); + + // app.UseMiddleware>(); // app. app.Run(async (context) => diff --git a/src/NuGet.config b/src/NuGet.config new file mode 100644 index 0000000..b72ae19 --- /dev/null +++ b/src/NuGet.config @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/src/src.sln b/src/src.sln index b1a12da..0907654 100644 --- a/src/src.sln +++ b/src/src.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 -VisualStudioVersion = 15.0.26430.16 +VisualStudioVersion = 15.0.26730.0 MinimumVisualStudioVersion = 15.0.26124.0 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dotnettency", "Dotnettency\Dotnettency.csproj", "{27306262-FF3C-4B52-A2CD-ED49F613B200}" EndProject @@ -17,6 +17,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution ProjectSection(SolutionItems) = preProject ..\appveyor.yml = ..\appveyor.yml ..\LICENSE = ..\LICENSE + NuGet.config = NuGet.config ..\README.md = ..\README.md EndProjectSection EndProject @@ -24,7 +25,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Sample.Mvc", "Sample.Mvc\Sa EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dotnettency.HostingEnvironment", "Dotnettency.HostingEnvironment\Dotnettency.HostingEnvironment.csproj", "{E2CAD9E5-6843-4A9B-9A0B-1F4E1F42A6A4}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dotnettency.Modules", "Dotnettency.Modules\Dotnettency.Modules.csproj", "{720AC644-94A4-4AA9-AD12-543AB87BC2FC}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dotnettency.Modules", "Dotnettency.Modules\Dotnettency.Modules.csproj", "{720AC644-94A4-4AA9-AD12-543AB87BC2FC}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dotnettency.Modules.Nancy", "Dotnettency.Modules.Nancy\Dotnettency.Modules.Nancy.csproj", "{6CFD80AD-DC8C-4228-B467-EE070CEE11AC}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -132,8 +135,23 @@ Global {720AC644-94A4-4AA9-AD12-543AB87BC2FC}.Release|x64.Build.0 = Release|Any CPU {720AC644-94A4-4AA9-AD12-543AB87BC2FC}.Release|x86.ActiveCfg = Release|Any CPU {720AC644-94A4-4AA9-AD12-543AB87BC2FC}.Release|x86.Build.0 = Release|Any CPU + {6CFD80AD-DC8C-4228-B467-EE070CEE11AC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6CFD80AD-DC8C-4228-B467-EE070CEE11AC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6CFD80AD-DC8C-4228-B467-EE070CEE11AC}.Debug|x64.ActiveCfg = Debug|Any CPU + {6CFD80AD-DC8C-4228-B467-EE070CEE11AC}.Debug|x64.Build.0 = Debug|Any CPU + {6CFD80AD-DC8C-4228-B467-EE070CEE11AC}.Debug|x86.ActiveCfg = Debug|Any CPU + {6CFD80AD-DC8C-4228-B467-EE070CEE11AC}.Debug|x86.Build.0 = Debug|Any CPU + {6CFD80AD-DC8C-4228-B467-EE070CEE11AC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6CFD80AD-DC8C-4228-B467-EE070CEE11AC}.Release|Any CPU.Build.0 = Release|Any CPU + {6CFD80AD-DC8C-4228-B467-EE070CEE11AC}.Release|x64.ActiveCfg = Release|Any CPU + {6CFD80AD-DC8C-4228-B467-EE070CEE11AC}.Release|x64.Build.0 = Release|Any CPU + {6CFD80AD-DC8C-4228-B467-EE070CEE11AC}.Release|x86.ActiveCfg = Release|Any CPU + {6CFD80AD-DC8C-4228-B467-EE070CEE11AC}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {CDE5153E-0835-41A9-A40E-3E930F41F681} + EndGlobalSection EndGlobal From 31a908ff184558eef7c65a05bda1f32162f0ec72 Mon Sep 17 00:00:00 2001 From: Darrell Tunnell Date: Wed, 9 Aug 2017 23:33:55 +0100 Subject: [PATCH 11/86] More work on nancy middleware. --- appveyor.yml | 2 +- src/Dotnettency.Modules.Nancy/NancyHandler.cs | 182 ++++++++++++++++++ .../NancyMiddleware.cs | 9 +- .../NancyPassThroughOptions.cs | 24 +++ src/Dotnettency.Sample/TenantShellFactory.cs | 10 +- src/Sample.Mvc/TenantShellFactory.cs | 10 +- 6 files changed, 220 insertions(+), 17 deletions(-) create mode 100644 src/Dotnettency.Modules.Nancy/NancyHandler.cs create mode 100644 src/Dotnettency.Modules.Nancy/NancyPassThroughOptions.cs diff --git a/appveyor.yml b/appveyor.yml index 3876051..e4d5d4d 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -5,7 +5,7 @@ skip_tags: true install: - choco install gitversion.portable -pre -y - cinst gitlink -version 2.4.1 -y -image: Visual Studio 2017 +image: Visual Studio 2017 Preview assembly_info: patch: false before_build: diff --git a/src/Dotnettency.Modules.Nancy/NancyHandler.cs b/src/Dotnettency.Modules.Nancy/NancyHandler.cs new file mode 100644 index 0000000..7233274 --- /dev/null +++ b/src/Dotnettency.Modules.Nancy/NancyHandler.cs @@ -0,0 +1,182 @@ +using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Http.Features; +using Nancy; +using Nancy.IO; +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Linq; +using System.Threading.Tasks; + +namespace Dotnettency.Container +{ + /// + /// Bridges the communication between Nancy and ASP.NET CORE based hosting. + /// + public class NancyHandler + { + private readonly INancyEngine engine; + + /// + /// Initializes a new instance of the type for the specified . + /// + /// An instance, that should be used by the handler. + public NancyHandler(INancyEngine engine) + { + this.engine = engine; + } + + /// + /// Processes the ASP.NET request with Nancy. + /// + /// The of the request. + public async Task ProcessRequest(HttpContext httpContext, Func performPassThrough, RequestDelegate next) + { + var request = CreateNancyRequest(httpContext); + using (var nancyContext = await this.engine.HandleRequest(request).ConfigureAwait(false)) + { + await SetNancyResponseToHttpResponse(httpContext, nancyContext, performPassThrough, next); + } + } + + private async Task SetNancyResponseToHttpResponse(HttpContext httpContext, NancyContext nancyContext, Func performPassThrough, RequestDelegate next) + { + if (performPassThrough(nancyContext)) + { + await next.Invoke(httpContext); + } + + SetHttpResponseHeaders(httpContext, nancyContext.Response); + + if (nancyContext.Response.ContentType != null) + { + httpContext.Response.ContentType = nancyContext.Response.ContentType; + } + + //if (IsOutputBufferDisabled()) + //{ + // context.Response.BufferOutput = false; + //} + + httpContext.Response.StatusCode = (int)nancyContext.Response.StatusCode; + + if (nancyContext.Response.ReasonPhrase != null) + { + httpContext.Response.HttpContext.Features.Get().ReasonPhrase = nancyContext.Response.ReasonPhrase; + } + // response.Contents.Invoke(new NancyResponseStream(context.Response.f)); + nancyContext.Response.Contents.Invoke(httpContext.Response.Body); + } + + private static Request CreateNancyRequest(HttpContext context) + { + var incomingHeaders = context.Request.Headers.ToDictionary(a => a.Key, b => b.Value.AsEnumerable()); + + var expectedRequestLength = + GetExpectedRequestLength(incomingHeaders); + + var basePath = context.Request.PathBase.HasValue ? context.Request.PathBase.Value.TrimEnd('/') : ""; + var path = context.Request.Path.Value; + + // var path = context.Request.Url.AbsolutePath.Substring(basePath.Length); + path = string.IsNullOrWhiteSpace(path) ? "/" : path; + var uri = context.Request.GetUri(); + var nancyUrl = new Url + { + Scheme = uri.Scheme, + HostName = uri.Host, + Port = uri.Port, + BasePath = basePath, + Path = path, + Query = uri.Query, + }; + + + var clientCert = context.Connection.ClientCertificate; + //if (clientCert != null && clientCert.RawData != null && clientCert.RawData.Length != 0) + //{ + // // certificate = cert.RawData; + //} + + //using (var requestBodyStream = new MemoryStream()) + //{ + // var requestBody = context.Request.Body; + // await requestBody.CopyToAsync(requestBodyStream); + // requestBodyStream.Seek(0, SeekOrigin.Begin); + + //} + + RequestStream body = null; + + if (expectedRequestLength != 0) + { + // requestBodyStream.Seek(0, SeekOrigin.Begin); + + body = RequestStream.FromStream(context.Request.Body, expectedRequestLength, StaticConfiguration.DisableRequestStreamSwitching ?? true); + } + + var protocol = context.Request.Protocol; + // var protocolVersion = context.Request.ServerVariables["HTTP_VERSION"]; + var method = context.Request.Method; + var remoteIp = context.Connection.RemoteIpAddress.ToString(); + + + return new Request( + method.ToUpperInvariant(), + nancyUrl, + body, + incomingHeaders, + remoteIp, + clientCert, + protocol); + } + + private static long GetExpectedRequestLength(IDictionary> incomingHeaders) + { + if (incomingHeaders == null) + { + return 0; + } + + if (!incomingHeaders.ContainsKey("Content-Length")) + { + return 0; + } + + var headerValue = + incomingHeaders["Content-Length"].SingleOrDefault(); + + if (headerValue == null) + { + return 0; + } + + long contentLength; + if (!long.TryParse(headerValue, NumberStyles.Any, CultureInfo.InvariantCulture, out contentLength)) + { + return 0; + } + + return contentLength; + } + + private static void SetHttpResponseHeaders(HttpContext context, Response response) + { + context.Response.OnStarting(state => + { + var httpContext = (HttpContext)state; + foreach (var header in response.Headers.ToDictionary(x => x.Key, x => x.Value)) + { + httpContext.Response.Headers.Add(header.Key, header.Value); + } + + foreach (var cookie in response.Cookies.ToArray()) + { + httpContext.Response.Headers.Add("Set-Cookie", cookie.ToString()); + } + + return Task.FromResult(0); + }, context); + } + } +} diff --git a/src/Dotnettency.Modules.Nancy/NancyMiddleware.cs b/src/Dotnettency.Modules.Nancy/NancyMiddleware.cs index 828e313..fbb4832 100644 --- a/src/Dotnettency.Modules.Nancy/NancyMiddleware.cs +++ b/src/Dotnettency.Modules.Nancy/NancyMiddleware.cs @@ -3,9 +3,7 @@ using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Logging; using Dotnettency.Container; -using Microsoft.AspNetCore.Routing; using Dotnettency.Modules.Nancy; -using System; namespace Dotnettency.Modules { @@ -55,10 +53,9 @@ public async Task Invoke(HttpContext context, ITenantNancyBootstrapperAccessor + /// Extensions for the NancyOptions class. + /// + public static class NancyPassThroughOptions + { + /// + /// Tells the NancyMiddleware to pass through when + /// response has one of the given status codes. + /// + /// The Nancy options. + /// The HTTP status code. + public static Func PassThroughWhenStatusCodesAre(params global::Nancy.HttpStatusCode[] httpStatusCode) + { + Func func = context => httpStatusCode.Any(code => context.Response.StatusCode == code); + return func; + } + } +} diff --git a/src/Dotnettency.Sample/TenantShellFactory.cs b/src/Dotnettency.Sample/TenantShellFactory.cs index e0d9218..0142e40 100644 --- a/src/Dotnettency.Sample/TenantShellFactory.cs +++ b/src/Dotnettency.Sample/TenantShellFactory.cs @@ -6,14 +6,14 @@ namespace Sample { public class TenantShellFactory : ITenantShellFactory { - public async Task> Get(TenantDistinguisher distinguisher) + public Task> Get(TenantDistinguisher distinguisher) { if (distinguisher.Uri.Port == 5004) { Guid tenantId = Guid.Parse("b17fcd22-0db1-47c0-9fef-1aa1cb09605e"); var tenant = new Tenant(tenantId) { Name = "Foo" }; var result = new TenantShell(tenant); - return result; + return Task.FromResult(result); } if (distinguisher.Uri.Port == 5000 || distinguisher.Uri.Port == 5001) @@ -21,7 +21,7 @@ public async Task> Get(TenantDistinguisher distinguisher) Guid tenantId = Guid.Parse("049c8cc4-3660-41c7-92f0-85430452be22"); var tenant = new Tenant(tenantId) { Name = "Bar" }; var result = new TenantShell(tenant, new Uri("http://localhost:5000"), new Uri("http://localhost:5001")); // additional distinguishers to map this same tenant shell instance too. - return result; + return Task.FromResult(result); } // for an unknown tenant, we can either create the tenant shell as a NULL tenant by returning a TenantShell(null), @@ -29,7 +29,7 @@ public async Task> Get(TenantDistinguisher distinguisher) if (distinguisher.Uri.Port == 5002) { var result = new TenantShell(null); - return result; + return Task.FromResult(result); } if (distinguisher.Uri.Port == 5003) @@ -37,7 +37,7 @@ public async Task> Get(TenantDistinguisher distinguisher) // or we can return null - which means we wil keep attempting to resolve the tenant on every subsequent request until a result is returned in future. // (i.e allows tenant to be created in backend in a few moments time). - return null; + return Task.FromResult>(null); ; } throw new NotImplementedException("Please make request on ports 5000 - 5003 to see various behaviour. Can also use 63291 when launching under IISExpress"); diff --git a/src/Sample.Mvc/TenantShellFactory.cs b/src/Sample.Mvc/TenantShellFactory.cs index 8ee2c48..2985a8a 100644 --- a/src/Sample.Mvc/TenantShellFactory.cs +++ b/src/Sample.Mvc/TenantShellFactory.cs @@ -6,14 +6,14 @@ namespace Sample.Mvc { public class TenantShellFactory : ITenantShellFactory { - public async Task> Get(TenantDistinguisher distinguisher) + public Task> Get(TenantDistinguisher distinguisher) { if (distinguisher.Uri.Port == 5004) { Guid tenantId = Guid.Parse("b17fcd22-0db1-47c0-9fef-1aa1cb09605e"); var tenant = new Tenant(tenantId) { Name = "Foo" }; var result = new TenantShell(tenant); - return result; + return Task.FromResult(result); } if (distinguisher.Uri.Port == 5000 || distinguisher.Uri.Port == 5001) @@ -21,7 +21,7 @@ public async Task> Get(TenantDistinguisher distinguisher) Guid tenantId = Guid.Parse("049c8cc4-3660-41c7-92f0-85430452be22"); var tenant = new Tenant(tenantId) { Name = "Bar" }; var result = new TenantShell(tenant, new Uri("http://localhost:5000"), new Uri("http://localhost:5001")); // additional distinguishers to map this same tenant shell instance too. - return result; + return Task.FromResult(result); } // for an unknown tenant, we can either create the tenant shell as a NULL tenant by returning a TenantShell(null), @@ -29,7 +29,7 @@ public async Task> Get(TenantDistinguisher distinguisher) if (distinguisher.Uri.Port == 5002) { var result = new TenantShell(null); - return result; + return Task.FromResult(result); } if (distinguisher.Uri.Port == 5003) @@ -37,7 +37,7 @@ public async Task> Get(TenantDistinguisher distinguisher) // or we can return null - which means we wil keep attempting to resolve the tenant on every subsequent request until a result is returned in future. // (i.e allows tenant to be created in backend in a few moments time). - return null; + return Task.FromResult>(null); ; } throw new NotImplementedException("Please make request on ports 5000 - 5003 to see various behaviour. Can also use 63291 when launching under IISExpress"); From 114e851ace14bac8711ecc176f5974c2f781eda0 Mon Sep 17 00:00:00 2001 From: Darrell Tunnell Date: Fri, 11 Aug 2017 20:28:28 +0100 Subject: [PATCH 12/86] minor tweaks --- .../TenantContainerMiddleware.cs | 9 ++-- src/Dotnettency.Modules/IModuleShell.cs | 20 +++++++++ src/Dotnettency.Modules/IRoutedModuleShell.cs | 18 ++------ src/Dotnettency.Modules/ModuleShell.cs | 5 +-- src/Dotnettency.Modules/ModulesRouter.cs | 41 ++++--------------- 5 files changed, 38 insertions(+), 55 deletions(-) create mode 100644 src/Dotnettency.Modules/IModuleShell.cs diff --git a/src/Dotnettency.Container/TenantContainerMiddleware.cs b/src/Dotnettency.Container/TenantContainerMiddleware.cs index 9b51522..54ac206 100644 --- a/src/Dotnettency.Container/TenantContainerMiddleware.cs +++ b/src/Dotnettency.Container/TenantContainerMiddleware.cs @@ -13,16 +13,17 @@ public class TenantContainerMiddleware private readonly ILogger _log; private readonly ITenantContainerFactory _factory; - private Lazy> _containerFactory; + // private Lazy> _containerFactory; public TenantContainerMiddleware( RequestDelegate next, - ILoggerFactory loggerFactory, - ITenantContainerFactory factory) + ILoggerFactory loggerFactory + // ITenantContainerFactory factory + ) { _next = next; _log = loggerFactory.CreateLogger>(); - _factory = factory; + // _factory = factory; } public async Task Invoke(HttpContext context, ITenantRequestContainerAccessor tenantRequestContainerAccessor) diff --git a/src/Dotnettency.Modules/IModuleShell.cs b/src/Dotnettency.Modules/IModuleShell.cs new file mode 100644 index 0000000..fcd597a --- /dev/null +++ b/src/Dotnettency.Modules/IModuleShell.cs @@ -0,0 +1,20 @@ +using System; +using System.Threading.Tasks; +using Dotnettency.Container; +using Microsoft.AspNetCore.Builder; +using Microsoft.Extensions.DependencyInjection; + +namespace Dotnettency.Modules +{ + + public interface IModuleShell + where TModule : IModule + { + IApplicationBuilder AppBuilder { get; } + ITenantContainerAdaptor Container { get; set; } + bool IsStarted { get; } + IModule Module { get; set; } + ModuleShellOptions Options { get; } + Task EnsureStarted(Func> containerFactory, IApplicationBuilder rootAppBuilder, IServiceCollection sharedServices); + } +} \ No newline at end of file diff --git a/src/Dotnettency.Modules/IRoutedModuleShell.cs b/src/Dotnettency.Modules/IRoutedModuleShell.cs index 27e6707..103a0ba 100644 --- a/src/Dotnettency.Modules/IRoutedModuleShell.cs +++ b/src/Dotnettency.Modules/IRoutedModuleShell.cs @@ -1,24 +1,12 @@ -using System; -using System.Threading.Tasks; -using Dotnettency.Container; -using Microsoft.AspNetCore.Builder; -using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Routing; -using Microsoft.Extensions.DependencyInjection; namespace Dotnettency.Modules { - public interface IModuleShell - where TModule : IModule + public interface IRoutedModuleShell : IModuleShell + where TModule : IModule { - IApplicationBuilder AppBuilder { get; } - ITenantContainerAdaptor Container { get; set; } - bool IsStarted { get; } RequestDelegate MiddlewarePipeline { get; set; } - IModule Module { get; set; } - ModuleShellOptions Options { get; } IRouter Router { get; } - - Task EnsureStarted(Func> containerFactory, IApplicationBuilder rootAppBuilder, IServiceCollection sharedServices); } } \ No newline at end of file diff --git a/src/Dotnettency.Modules/ModuleShell.cs b/src/Dotnettency.Modules/ModuleShell.cs index 798573e..bbfa666 100644 --- a/src/Dotnettency.Modules/ModuleShell.cs +++ b/src/Dotnettency.Modules/ModuleShell.cs @@ -9,7 +9,7 @@ namespace Dotnettency.Modules { - public class RoutedModuleShell : IModuleShell + public class RoutedModuleShell : IRoutedModuleShell where TModule : IModule { //private IRoutedModule routedModule; @@ -102,9 +102,8 @@ public ModuleShell(TModule module, ModuleShellOptions options) public ITenantContainerAdaptor Container { get; set; } public IApplicationBuilder AppBuilder { get; private set; } - public IRouter Router { get; private set; } - public RequestDelegate MiddlewarePipeline { get; set; } + //internal async Task EnsureStarted(Func> containerFactory, IApplicationBuilder rootAppBuilder, ModulesRouter modulesRouter) //{ diff --git a/src/Dotnettency.Modules/ModulesRouter.cs b/src/Dotnettency.Modules/ModulesRouter.cs index 66eddef..b652a87 100644 --- a/src/Dotnettency.Modules/ModulesRouter.cs +++ b/src/Dotnettency.Modules/ModulesRouter.cs @@ -4,21 +4,15 @@ namespace Dotnettency.Modules { - - public class ModulesRouter : IRouter where TModule : IModule { - // private IApplicationBuilder _appBuilder; - - //public List RoutedModules { get; set; } - public ModulesRouter(RouteHandler defaultRouteHandler) { DefaultRouteHandler = defaultRouteHandler; // _appBuilder = appBuilder; - RoutedModules = new LinkedList>(); + RoutedModules = new LinkedList>(); // if adding a new module, we want the first modules default route handler to be chained to the last, so that we can evaluate a null match. NullMatchRouteHandler = new RouteHandler(context => @@ -34,33 +28,14 @@ public ModulesRouter(RouteHandler defaultRouteHandler) } - public LinkedList> RoutedModules { get; set; } + public LinkedList> RoutedModules { get; set; } - public void AddModuleRouter(RoutedModuleShell routedModuleShell) + public void AddModuleRouter(IRoutedModuleShell routedModuleShell) { - var newNode = new LinkedListNode>(routedModuleShell); + var newNode = new LinkedListNode>(routedModuleShell); RoutedModules.AddLast(routedModuleShell); } - //public void AddModuleRouter(Func> configureModuleRoutes, IServiceProvider moduleServicesProvider, IApplicationBuilder defaultAppBuilder) - //{ - - // var moduleAppBuilder = defaultAppBuilder.New(); - // moduleAppBuilder.ApplicationServices = moduleServicesProvider; - - // var routeBuilder = new RouteBuilder(moduleAppBuilder, NullMatchRouteHandler); - // var moduleShell = configureModuleRoutes(routeBuilder); - - - // //// swap out the previous nodes defualt handler to a null handler. - // //var previous = newNode.Previous; - // //if (previous != null) - // //{ - // // newNode.Value.Router.de - // //} - - //} - public VirtualPathData GetVirtualPath(VirtualPathContext context) { var currentNode = RoutedModules.First; @@ -82,13 +57,13 @@ public async Task RouteAsync(RouteContext context) { var moduleRouteContext = new ModuleRouteContext(context.HttpContext, context); - - var currentNode = RoutedModules.First; + + var currentNode = RoutedModules.First; while ((currentNode != null)) { var module = currentNode.Value; - // context.HttpContext.GetRouteData().Routers.Add(router); + // context.HttpContext.GetRouteData().Routers.Add(router); await module.Router.RouteAsync(moduleRouteContext); if (moduleRouteContext.Handler != null) { @@ -100,7 +75,7 @@ public async Task RouteAsync(RouteContext context) context.Handler = moduleRouteContext.Handler; context.RouteData = moduleRouteContext.RouteData; - // existingRouteData.PushState(module.Router, context.RouteData.Values, context.RouteData.DataTokens); + // existingRouteData.PushState(module.Router, context.RouteData.Values, context.RouteData.DataTokens); return; } else From de4dd52fec5f0a8a21e7a33cdd799a5d8050bda7 Mon Sep 17 00:00:00 2001 From: Darrell Tunnell Date: Sat, 12 Aug 2017 19:44:25 +0100 Subject: [PATCH 13/86] wip - Tenant service isnt being resolved --- ...DelegateTenantMiddlewarePipelineFactory.cs | 10 +- .../Dotnettency.MiddlewarePipeline.csproj | 1 + .../ITenantMiddlewarePipelineFactory.cs | 6 +- .../TenantPipelineMiddleware.cs | 11 +- .../TenantShellPipelineExtensions.cs | 5 +- .../Dotnettency.Modules.Mvc.csproj | 15 + .../ModuleRegisterBuilderExtensions.cs | 18 ++ .../MvcModulesBuilder.cs | 88 ++++++ .../AlreadyKnownRouteResolver.cs | 0 .../CustomNancyModuleBuilder.cs | 0 .../{ => NancyImpl}/NancyHandler.cs | 0 .../NancyPassThroughOptions.cs | 0 .../TenantContainerNancyBootstrapper.cs | 0 .../NancyModuleManager.cs | 286 ++++++++++++++++++ .../NancyModuleRegisterBuilder.cs | 70 +++++ .../NancyModuleShellOptionsBuilder.cs | 36 +++ .../NancyModulesRouter.cs | 103 +++++++ .../ServiceCollectionExtensions.cs | 11 + src/Dotnettency.Modules/IModuleManager.cs | 4 +- src/Dotnettency.Modules/IModuleShell.cs | 9 +- src/Dotnettency.Modules/IRoutedModuleShell.cs | 12 - src/Dotnettency.Modules/ISharedModule.cs | 5 +- src/Dotnettency.Modules/ModuleManager.cs | 44 +-- .../ModuleRegisterBuilder.cs | 31 +- .../ModuleRegisterBuilderExtensions.cs | 14 + src/Dotnettency.Modules/ModuleShell.cs | 116 ++----- src/Dotnettency.Modules/ModuleShellOptions.cs | 25 +- .../ModuleShellOptionsBuilder.cs | 31 +- .../ModulesRouteContext.cs | 3 +- src/Dotnettency.Modules/ModulesRouter.cs | 36 +-- .../ServiceCollectionExtensions.cs | 8 +- src/Dotnettency.Sample/Startup.cs | 73 +++-- .../Info.txt | 1 + .../Info.txt | 1 + .../Program.cs | 25 ++ .../README.md | 40 +++ .../Sample.PerTenantHostingEnvironment.csproj | 31 ++ .../SomeTenantService.cs | 61 ++++ .../Startup.cs | 145 +++++++++ .../Tenant.cs | 17 ++ .../TenantShellFactory.cs | 47 +++ .../TenantStartup.cs | 19 ++ .../DefaultTenant.html | 10 + .../BarTenant.html | 10 + .../Index.html | 10 + .../wwwroot/index.html | 10 + src/src.sln | 16 +- 47 files changed, 1263 insertions(+), 251 deletions(-) create mode 100644 src/Dotnettency.Modules.Mvc/Dotnettency.Modules.Mvc.csproj create mode 100644 src/Dotnettency.Modules.Mvc/ModuleRegisterBuilderExtensions.cs create mode 100644 src/Dotnettency.Modules.Mvc/MvcModulesBuilder.cs rename src/Dotnettency.Modules.Nancy/{ => NancyImpl}/AlreadyKnownRouteResolver.cs (100%) rename src/Dotnettency.Modules.Nancy/{ => NancyImpl}/CustomNancyModuleBuilder.cs (100%) rename src/Dotnettency.Modules.Nancy/{ => NancyImpl}/NancyHandler.cs (100%) rename src/Dotnettency.Modules.Nancy/{ => NancyImpl}/NancyPassThroughOptions.cs (100%) rename src/Dotnettency.Modules.Nancy/{ => NancyImpl}/TenantContainerNancyBootstrapper.cs (100%) create mode 100644 src/Dotnettency.Modules.Nancy/NancyModuleManager.cs create mode 100644 src/Dotnettency.Modules.Nancy/NancyModuleRegisterBuilder.cs create mode 100644 src/Dotnettency.Modules.Nancy/NancyModuleShellOptionsBuilder.cs create mode 100644 src/Dotnettency.Modules.Nancy/NancyModulesRouter.cs delete mode 100644 src/Dotnettency.Modules/IRoutedModuleShell.cs create mode 100644 src/Dotnettency.Modules/ModuleRegisterBuilderExtensions.cs create mode 100644 src/Sample.PerTenantHostingEnvironment/.tenants/049c8cc4-3660-41c7-92f0-85430452be22/Info.txt create mode 100644 src/Sample.PerTenantHostingEnvironment/Info.txt create mode 100644 src/Sample.PerTenantHostingEnvironment/Program.cs create mode 100644 src/Sample.PerTenantHostingEnvironment/README.md create mode 100644 src/Sample.PerTenantHostingEnvironment/Sample.PerTenantHostingEnvironment.csproj create mode 100644 src/Sample.PerTenantHostingEnvironment/SomeTenantService.cs create mode 100644 src/Sample.PerTenantHostingEnvironment/Startup.cs create mode 100644 src/Sample.PerTenantHostingEnvironment/Tenant.cs create mode 100644 src/Sample.PerTenantHostingEnvironment/TenantShellFactory.cs create mode 100644 src/Sample.PerTenantHostingEnvironment/TenantStartup.cs create mode 100644 src/Sample.PerTenantHostingEnvironment/wwwroot/.tenants/00000000-0000-0000-0000-000000000000/DefaultTenant.html create mode 100644 src/Sample.PerTenantHostingEnvironment/wwwroot/.tenants/049c8cc4-3660-41c7-92f0-85430452be22/BarTenant.html create mode 100644 src/Sample.PerTenantHostingEnvironment/wwwroot/.tenants/049c8cc4-3660-41c7-92f0-85430452be22/Index.html create mode 100644 src/Sample.PerTenantHostingEnvironment/wwwroot/index.html diff --git a/src/Dotnettency.MiddlewarePipeline/DelegateTenantMiddlewarePipelineFactory.cs b/src/Dotnettency.MiddlewarePipeline/DelegateTenantMiddlewarePipelineFactory.cs index 47b1ac3..88dc7e2 100644 --- a/src/Dotnettency.MiddlewarePipeline/DelegateTenantMiddlewarePipelineFactory.cs +++ b/src/Dotnettency.MiddlewarePipeline/DelegateTenantMiddlewarePipelineFactory.cs @@ -3,6 +3,7 @@ using Microsoft.AspNetCore.Http; using Dotnettency.MiddlewarePipeline; using Microsoft.AspNetCore.Builder; +using Dotnettency.Container; namespace Dotnettency { @@ -18,19 +19,20 @@ public DelegateTenantMiddlewarePipelineFactory(Action Get(IApplicationBuilder appBuilder, TTenant tenant, ITenantContainerAccessor tenantContainerAccessor, RequestDelegate next) { //return Task.Run(() => //{ - return BuildTenantPipeline(appBuilder, tenant, requestServices, next); + return await BuildTenantPipeline(appBuilder, tenant, tenantContainerAccessor, next); // }); } - protected virtual RequestDelegate BuildTenantPipeline(IApplicationBuilder rootApp, TTenant tenant, IServiceProvider requestServices, RequestDelegate next) + protected virtual async Task BuildTenantPipeline(IApplicationBuilder rootApp, TTenant tenant, ITenantContainerAccessor tenantContainer, RequestDelegate next) { var branchBuilder = rootApp.New(); - rootApp.ApplicationServices = requestServices; + var appServices = await tenantContainer.TenantContainer.Value; + branchBuilder.ApplicationServices = appServices.GetServiceProvider(); var builderContext = new TenantPipelineBuilderContext { // TenantContext = tenantContext, diff --git a/src/Dotnettency.MiddlewarePipeline/Dotnettency.MiddlewarePipeline.csproj b/src/Dotnettency.MiddlewarePipeline/Dotnettency.MiddlewarePipeline.csproj index 0eec7fa..69be1e1 100644 --- a/src/Dotnettency.MiddlewarePipeline/Dotnettency.MiddlewarePipeline.csproj +++ b/src/Dotnettency.MiddlewarePipeline/Dotnettency.MiddlewarePipeline.csproj @@ -15,6 +15,7 @@ + diff --git a/src/Dotnettency.MiddlewarePipeline/ITenantMiddlewarePipelineFactory.cs b/src/Dotnettency.MiddlewarePipeline/ITenantMiddlewarePipelineFactory.cs index cba1eca..d125003 100644 --- a/src/Dotnettency.MiddlewarePipeline/ITenantMiddlewarePipelineFactory.cs +++ b/src/Dotnettency.MiddlewarePipeline/ITenantMiddlewarePipelineFactory.cs @@ -1,12 +1,14 @@ -using Microsoft.AspNetCore.Builder; +using Dotnettency.Container; +using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Http; using System; +using System.Threading.Tasks; namespace Dotnettency { public interface ITenantMiddlewarePipelineFactory where TTenant : class { - RequestDelegate Get(IApplicationBuilder appBuilder, TTenant tenant, IServiceProvider requestServices, RequestDelegate next); + Task Get(IApplicationBuilder appBuilder, TTenant tenant, ITenantContainerAccessor tenantContainerAccessor, RequestDelegate next); } } \ No newline at end of file diff --git a/src/Dotnettency.MiddlewarePipeline/TenantPipelineMiddleware.cs b/src/Dotnettency.MiddlewarePipeline/TenantPipelineMiddleware.cs index c359876..c4bb10e 100644 --- a/src/Dotnettency.MiddlewarePipeline/TenantPipelineMiddleware.cs +++ b/src/Dotnettency.MiddlewarePipeline/TenantPipelineMiddleware.cs @@ -3,6 +3,7 @@ using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Logging; +using Dotnettency.Container; namespace Dotnettency.MiddlewarePipeline { @@ -31,17 +32,19 @@ public TenantPipelineMiddleware( } - public async Task Invoke(HttpContext context, ITenantShellAccessor tenantShellAccessor) + public async Task Invoke(HttpContext context, ITenantContainerAccessor tenantContainerAccessor, ITenantShellAccessor tenantShellAccessor) { var tenantShell = await tenantShellAccessor.CurrentTenantShell.Value; if (tenantShell != null) { var tenant = tenantShell?.Tenant; - var tenantPipeline = tenantShell.GetOrAddMiddlewarePipeline(new Lazy(() => + var tenantPipeline = tenantShell.GetOrAddMiddlewarePipeline(new Lazy>(() => { - return _factory.Get(_rootApp, tenant, context.RequestServices, _next); + //await tenantContainerAccessor. + return _factory.Get(_rootApp, tenant, tenantContainerAccessor, _next); })); - await tenantPipeline.Value(context); + var requestDelegate = await tenantPipeline.Value; + await requestDelegate(context); } else { diff --git a/src/Dotnettency.MiddlewarePipeline/TenantShellPipelineExtensions.cs b/src/Dotnettency.MiddlewarePipeline/TenantShellPipelineExtensions.cs index 5fdfb48..cbc9da3 100644 --- a/src/Dotnettency.MiddlewarePipeline/TenantShellPipelineExtensions.cs +++ b/src/Dotnettency.MiddlewarePipeline/TenantShellPipelineExtensions.cs @@ -1,14 +1,15 @@ using System; using Microsoft.AspNetCore.Http; +using System.Threading.Tasks; namespace Dotnettency.MiddlewarePipeline { public static class TenantShellPipelineExtensions { - public static Lazy GetOrAddMiddlewarePipeline(this TenantShell tenantShell, Lazy requestDelegateFactory) + public static Lazy> GetOrAddMiddlewarePipeline(this TenantShell tenantShell, Lazy> requestDelegateFactory) where TTenant : class { - var result = tenantShell.Properties.GetOrAdd(nameof(TenantShellPipelineExtensions), requestDelegateFactory) as Lazy; + var result = tenantShell.Properties.GetOrAdd(nameof(TenantShellPipelineExtensions), requestDelegateFactory) as Lazy>; return result; } } diff --git a/src/Dotnettency.Modules.Mvc/Dotnettency.Modules.Mvc.csproj b/src/Dotnettency.Modules.Mvc/Dotnettency.Modules.Mvc.csproj new file mode 100644 index 0000000..dd3afd6 --- /dev/null +++ b/src/Dotnettency.Modules.Mvc/Dotnettency.Modules.Mvc.csproj @@ -0,0 +1,15 @@ + + + + netstandard1.6 + + + + + + + + + + + diff --git a/src/Dotnettency.Modules.Mvc/ModuleRegisterBuilderExtensions.cs b/src/Dotnettency.Modules.Mvc/ModuleRegisterBuilderExtensions.cs new file mode 100644 index 0000000..28ba258 --- /dev/null +++ b/src/Dotnettency.Modules.Mvc/ModuleRegisterBuilderExtensions.cs @@ -0,0 +1,18 @@ +using Microsoft.AspNetCore.Mvc; +using System; + +namespace Dotnettency.Modules +{ + public static class ModuleRegisterBuilderExtensions + { + public static MvcModulesBuilder AddMvcModules(this ModuleRegisterBuilder builder, Action mvcOptionsSetup = null) + where TModule : class, IRoutedModule + { + var mvcModulesBuilder = new MvcModulesBuilder(builder, mvcOptionsSetup); + return mvcModulesBuilder; + } + } + + + +} diff --git a/src/Dotnettency.Modules.Mvc/MvcModulesBuilder.cs b/src/Dotnettency.Modules.Mvc/MvcModulesBuilder.cs new file mode 100644 index 0000000..025d731 --- /dev/null +++ b/src/Dotnettency.Modules.Mvc/MvcModulesBuilder.cs @@ -0,0 +1,88 @@ +using Microsoft.AspNetCore.Mvc.Internal; +using Microsoft.AspNetCore.Routing; +using Microsoft.Extensions.DependencyInjection; +using System; + +namespace Dotnettency.Modules +{ + public class MvcModulesBuilder + where TModule : class, IRoutedModule + { + public MvcModulesBuilder(ModuleRegisterBuilder parentBuilder, Action mvcOptionsSetup = null) + { + ParentBuilder = parentBuilder; + if (mvcOptionsSetup != null) + { + parentBuilder.Services.AddMvc(mvcOptionsSetup); + } + else + { + parentBuilder.Services.AddMvc(); + } + // DefaultRouteHandler = new MvcRouteHandler + + } + + + + + /// + /// + /// + /// The default route handler to use when no module route match. + /// + public ModuleRegisterBuilder Build(Action> configureModuleOptionsBuilder, IRouteHandler defaultRouteHandler) + { + + + var services = ParentBuilder.Services; + services.AddSingleton, ModuleManager>((sp) => + { + var routeHandler = DefaultRouteHandler ?? sp.GetRequiredService(); + var allModules = sp.GetServices(); + + var modulesRouter = new ModulesRouter(routeHandler); + var moduleManager = new ModuleManager(modulesRouter); + + // shared modules all popualte the same service collection + // var services = new ServiceCollection(); + + foreach (var item in allModules) + { + var moduleOptionsBuilder = new ModuleShellOptionsBuilder(item); + configureModuleOptionsBuilder(moduleOptionsBuilder); + var moduleShellOptions = moduleOptionsBuilder.Build(); + + var routedModule = item as IRoutedModule; + if (routedModule != null) // these need to be routed. + { + // modulesRouter. + // var routedModuleOptions = moduleShellOptions as ModuleShellOptions; + var routedModuleShell = new RoutedModuleShell(item, moduleShellOptions, modulesRouter); + // var moduleShell = routedModuleShell as IModuleShell; + moduleManager.AddModule(routedModuleShell); + } + else + { + + var nonRoutedModuleShell = new ModuleShell(item, moduleShellOptions); + // var moduleShell = routedModuleShell as IModuleShell; + moduleManager.AddModule(nonRoutedModuleShell); + } + + } + return moduleManager; + }); + + return ParentBuilder; + } + + + + public ModuleRegisterBuilder ParentBuilder { get; set; } + + } + + + +} diff --git a/src/Dotnettency.Modules.Nancy/AlreadyKnownRouteResolver.cs b/src/Dotnettency.Modules.Nancy/NancyImpl/AlreadyKnownRouteResolver.cs similarity index 100% rename from src/Dotnettency.Modules.Nancy/AlreadyKnownRouteResolver.cs rename to src/Dotnettency.Modules.Nancy/NancyImpl/AlreadyKnownRouteResolver.cs diff --git a/src/Dotnettency.Modules.Nancy/CustomNancyModuleBuilder.cs b/src/Dotnettency.Modules.Nancy/NancyImpl/CustomNancyModuleBuilder.cs similarity index 100% rename from src/Dotnettency.Modules.Nancy/CustomNancyModuleBuilder.cs rename to src/Dotnettency.Modules.Nancy/NancyImpl/CustomNancyModuleBuilder.cs diff --git a/src/Dotnettency.Modules.Nancy/NancyHandler.cs b/src/Dotnettency.Modules.Nancy/NancyImpl/NancyHandler.cs similarity index 100% rename from src/Dotnettency.Modules.Nancy/NancyHandler.cs rename to src/Dotnettency.Modules.Nancy/NancyImpl/NancyHandler.cs diff --git a/src/Dotnettency.Modules.Nancy/NancyPassThroughOptions.cs b/src/Dotnettency.Modules.Nancy/NancyImpl/NancyPassThroughOptions.cs similarity index 100% rename from src/Dotnettency.Modules.Nancy/NancyPassThroughOptions.cs rename to src/Dotnettency.Modules.Nancy/NancyImpl/NancyPassThroughOptions.cs diff --git a/src/Dotnettency.Modules.Nancy/TenantContainerNancyBootstrapper.cs b/src/Dotnettency.Modules.Nancy/NancyImpl/TenantContainerNancyBootstrapper.cs similarity index 100% rename from src/Dotnettency.Modules.Nancy/TenantContainerNancyBootstrapper.cs rename to src/Dotnettency.Modules.Nancy/NancyImpl/TenantContainerNancyBootstrapper.cs diff --git a/src/Dotnettency.Modules.Nancy/NancyModuleManager.cs b/src/Dotnettency.Modules.Nancy/NancyModuleManager.cs new file mode 100644 index 0000000..5bd5409 --- /dev/null +++ b/src/Dotnettency.Modules.Nancy/NancyModuleManager.cs @@ -0,0 +1,286 @@ +using Dotnettency.Container; +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Routing; +using Microsoft.Extensions.DependencyInjection; +using Nancy; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; + +namespace Dotnettency.Modules +{ + public interface INancyModuleManager + where TModule : INancyModule + { + Task EnsureStarted(Func> containerFactory, IApplicationBuilder rootAppBuilder); + + NancyModulesRouter GetModulesRouter(); + } + + public interface INancyModuleShell + where TModule : INancyModule + { + IApplicationBuilder AppBuilder { get; } + ITenantContainerAdaptor Container { get; set; } + bool IsStarted { get; } + INancyModule Module { get; set; } + ModuleShellOptions Options { get; } + Task EnsureStarted(Func> containerFactory, IApplicationBuilder rootAppBuilder, IServiceCollection sharedServices); + } + + public interface IRoutedNancyModuleShell : INancyModuleShell + where TModule : INancyModule + { + RequestDelegate MiddlewarePipeline { get; set; } + IRouter Router { get; } + } + + public class RoutedNancyModuleShell : IRoutedNancyModuleShell + where TModule : INancyModule + { + //private IRoutedModule routedModule; + + private NancyModulesRouter _modulesRouter; + + public ModuleShellOptions Options { get; } + + public RoutedNancyModuleShell(TModule module, ModuleShellOptions options, NancyModulesRouter modulesRouter) + { + Options = options; + Module = module; + _modulesRouter = modulesRouter; + } + + public INancyModule Module { get; set; } + + public bool IsStarted { get; private set; } + + public ITenantContainerAdaptor Container { get; set; } + public IApplicationBuilder AppBuilder { get; private set; } + public IRouter Router { get; private set; } + + public RequestDelegate MiddlewarePipeline { get; set; } + + public async Task EnsureStarted(Func> containerFactory, IApplicationBuilder rootAppBuilder, IServiceCollection sharedServices) + { + if (IsStarted) + { + return; + } + + var container = await containerFactory(); + var routedModule = Module as IRoutedModule; + container = container.CreateChildContainer(); + + container.Configure((services) => + { + services.AddRouting(); //it's assumed routing is required for a routed module! + routedModule.ConfigureServices(services); + }); + + Container = container; + + var routedModuleShell = this as NancyModuleShell; + + var moduleAppBuilder = rootAppBuilder.New(); + + var moduleServicesProvider = Container.GetServiceProvider(); + moduleAppBuilder.ApplicationServices = moduleServicesProvider; + + var moduleRouteBuilder = new RouteBuilder(moduleAppBuilder, _modulesRouter.NullMatchRouteHandler); + routedModule.ConfigureRoutes(moduleRouteBuilder); + var moduleRouter = moduleRouteBuilder.Build(); + moduleRouteBuilder.ApplicationBuilder.UseRouter(moduleRouter); + AppBuilder = moduleRouteBuilder.ApplicationBuilder; + MiddlewarePipeline = AppBuilder.Build(); + + this.Router = moduleRouter; + + // Must register this module with the module router. + _modulesRouter.AddModuleRouter(this); + + IsStarted = true; + + + } + } + + public class NancyModuleShell : IModuleShell + where TModule : IModule + { + + public ModuleShellOptions Options { get; } + + // public Func ServicesFactory { get; } + + public NancyModuleShell(TModule module, ModuleShellOptions options) + { + Options = options; + Module = module; + // ServicesFactory = servicesFactory; + //Services = services; + } + + public IModule Module { get; set; } + + public bool IsStarted { get; private set; } + + public ITenantContainerAdaptor Container { get; set; } + public IApplicationBuilder AppBuilder { get; private set; } + + public async Task EnsureStarted(Func> containerFactory, IApplicationBuilder rootAppBuilder, IServiceCollection sharedServices) + { + if (IsStarted) + { + return; + } + + var container = await containerFactory(); + + // configure container. + var sharedModule = Module as ISharedModule; + if (sharedModule != null) + { + // var services = ServicesFactory(); + sharedModule.ConfigureServices(sharedServices); + //container.Configure((services) => + //{ + + //}); + } + + Container = container; + + // configure middleware. + sharedModule.ConfigureMiddleware(rootAppBuilder); + + IsStarted = true; + } + + + } + + public class NancyModulesRouteContext : RouteContext + where TModule : INancyModule + // where TTenant : class + { + // private readonly RouteContext _parentRouteContext; + + public NancyModulesRouteContext(HttpContext httpContext) : base(httpContext) + { + // NotMatched = false; + } + + public INancyModuleShell ModuleShell { get; set; } + + //public bool NotMatched { get; set; } + + // public RouteContext ParentRouteContext { get; set; } + } + + public class NancyModuleManager : INancyModuleManager + where TModule : INancyModule + { + private readonly SemaphoreSlim _semaphore = new SemaphoreSlim(1, 1); + + public bool Started { get; private set; } + + public NancyModuleManager(NancyModulesRouter modulesRouter) + { + Modules = new List>(); + ModulesRouter = modulesRouter; + } + + private List> Modules { get; set; } + + public void AddModule(INancyModuleShell module) + { + Modules.Add(module); + } + + public NancyModulesRouter ModulesRouter { get; set; } + + public async Task EnsureStarted(Func> containerFactory, IApplicationBuilder rootAppBuilder) + { + if (Started) + { + return; + } + + await _semaphore.WaitAsync(); + try + { + if (Started) + { + return; + } + + var allModules = Modules.ToArray(); + + //var defaultRouteHandler = new RouteHandler(context => + //{ + // var routeValues = context.GetRouteData().Values; + // return context.Response.WriteAsync( + // $"Hello! Route values: {string.Join(", ", routeValues)}"); + //}); + + // var modulesRouter = new ModulesRouter(rootAppBuilder, defaultRouteHandler); + //todo: PERF: make the EnsureStarted task on each module a lazy so that its only run once and we dont create new tasks on every request. + // start shared modules first, as these are for libraries that add services and middleware that can impact downstream / routed modules. + + + + // allModules.Select(a=>a.Module).OfType(); + + var container = await containerFactory(); + + container.Configure(async sharedServices => + { + await Task.WhenAll(allModules.Select(m => m.EnsureStarted(containerFactory, rootAppBuilder, sharedServices))); + + //foreach (var item in allModules) + //{ + // var sharedModule = item as ModuleShell; + // var routedModule = item as RoutedModuleShell; + + //} + + //var sharedModules = allModules.OfType>().ToArray(); + //if (sharedModules.Any()) + //{ + + + //} + + }); + + + // configure all ISharedModules into the same ServiceCollection to avoid duplicate registrations. + + + + // configure all IRoutedModules + var routedModules = allModules.OfType>().ToArray(); + // routed modules can't add to tenant level services. + await Task.WhenAll(routedModules.Select(m => m.EnsureStarted(containerFactory, rootAppBuilder, null))); + + // ModulesRouter = modulesRouter; + Started = true; + + } + finally + { + _semaphore.Release(); + } + + } + + public NancyModulesRouter GetModulesRouter() + { + return ModulesRouter; + } + } +} diff --git a/src/Dotnettency.Modules.Nancy/NancyModuleRegisterBuilder.cs b/src/Dotnettency.Modules.Nancy/NancyModuleRegisterBuilder.cs new file mode 100644 index 0000000..588e0eb --- /dev/null +++ b/src/Dotnettency.Modules.Nancy/NancyModuleRegisterBuilder.cs @@ -0,0 +1,70 @@ +using Microsoft.AspNetCore.Routing; +using Microsoft.Extensions.DependencyInjection; +using Nancy; +using System; + +namespace Dotnettency.Modules +{ + public class NancyModuleRegisterBuilder + where TModule : class, INancyModule + { + private IServiceCollection _services; + public NancyModuleRegisterBuilder(IServiceCollection servicies) + { + _services = servicies; + _services.AddRouting(); // needed for modular routing. + } + + public NancyModuleRegisterBuilder AddModule() + where TImplementation : class, TModule + { + _services.AddTransient(); + return this; + } + + public void OnSetupModule(Action> configureModuleOptionsBuilder, RouteHandler defaultRouteHandler) + { + // var moduleShell = new + var modulesRouter = new NancyModulesRouter(defaultRouteHandler); + // _services.AddSingleton(modulesRouter); + + _services.AddSingleton, NancyModuleManager>((sp) => + { + var allModules = sp.GetServices(); + var moduleManager = new NancyModuleManager(modulesRouter); + + // shared modules all popualte the same service collection + // var services = new ServiceCollection(); + foreach (var item in allModules) + { + var moduleOptionsBuilder = new NancyModuleShellOptionsBuilder(item); + configureModuleOptionsBuilder(moduleOptionsBuilder); + var moduleShellOptions = moduleOptionsBuilder.Build(); + + var routedModule = item as IRoutedModule; + if (routedModule != null) // these need to be routed. + { + // modulesRouter. + // var routedModuleOptions = moduleShellOptions as ModuleShellOptions; + var routedModuleShell = new RoutedNancyModuleShell(item, moduleShellOptions, modulesRouter); + // var moduleShell = routedModuleShell as IModuleShell; + moduleManager.AddModule(routedModuleShell); + } + else + { + + var nonRoutedModuleShell = new NancyModuleShell(item, moduleShellOptions); + // var moduleShell = routedModuleShell as IModuleShell; + moduleManager.AddModule(nonRoutedModuleShell); + } + + } + return moduleManager; + }); + + } + } + + + +} diff --git a/src/Dotnettency.Modules.Nancy/NancyModuleShellOptionsBuilder.cs b/src/Dotnettency.Modules.Nancy/NancyModuleShellOptionsBuilder.cs new file mode 100644 index 0000000..4c7f6d5 --- /dev/null +++ b/src/Dotnettency.Modules.Nancy/NancyModuleShellOptionsBuilder.cs @@ -0,0 +1,36 @@ +using Nancy; + +namespace Dotnettency +{ + public class NancyModuleShellOptionsBuilder + // where TTenant : class + where TModule : INancyModule + { + + private ModuleShellOptions _moduleShellOptions = new ModuleShellOptions(); + + public NancyModuleShellOptionsBuilder(TModule module) + { + Module = module; + // Tenant = tenant; + } + + //public ModuleShellOptionsBuilder UseIsolatedContainer() + //{ + // _moduleShellOptions.IsRoutedModule = true; + // return this; + //} + + public TModule Module { get; set; } + + //// public TTenant Tenant { get; set; } + + internal ModuleShellOptions Build() + { + return _moduleShellOptions; + + } + + } + +} diff --git a/src/Dotnettency.Modules.Nancy/NancyModulesRouter.cs b/src/Dotnettency.Modules.Nancy/NancyModulesRouter.cs new file mode 100644 index 0000000..246aece --- /dev/null +++ b/src/Dotnettency.Modules.Nancy/NancyModulesRouter.cs @@ -0,0 +1,103 @@ +using System.Collections.Generic; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Routing; +using Nancy; + +namespace Dotnettency.Modules +{ + public class NancyModulesRouter : IRouter + where TModule : INancyModule + { + + public NancyModulesRouter(RouteHandler defaultRouteHandler) + { + DefaultRouteHandler = defaultRouteHandler; + // _appBuilder = appBuilder; + RoutedModules = new LinkedList>(); + + // if adding a new module, we want the first modules default route handler to be chained to the last, so that we can evaluate a null match. + NullMatchRouteHandler = new RouteHandler(context => + { + // context.Items["NUL"] + return null; + + //context.GetRouteData(). + //var routeValues = context.GetRouteData().Values; + //return context.Response.WriteAsync( + // $"Hello! Route values: {string.Join(", ", routeValues)}"); + }); + + } + + public LinkedList> RoutedModules { get; set; } + + public void AddModuleRouter(IRoutedNancyModuleShell routedModuleShell) + { + var newNode = new LinkedListNode>(routedModuleShell); + RoutedModules.AddLast(routedModuleShell); + } + + public VirtualPathData GetVirtualPath(VirtualPathContext context) + { + var currentNode = RoutedModules.First; + while ((currentNode != null)) + { + var module = currentNode.Value; + var moduleRouter = module.Router; + var virtulPath = moduleRouter.GetVirtualPath(context); + if (virtulPath != null) + { + return virtulPath; + } + currentNode = currentNode.Next; + } + return null; + } + + public async Task RouteAsync(RouteContext context) + { + + var moduleRouteContext = new ModuleRouteContext(context.HttpContext, context); + + var currentNode = RoutedModules.First; + while ((currentNode != null)) + { + var module = currentNode.Value; + + // context.HttpContext.GetRouteData().Routers.Add(router); + await module.Router.RouteAsync(moduleRouteContext); + if (moduleRouteContext.Handler != null) + { + var modulesRouteContext = context as NancyModulesRouteContext; + var cast = currentNode.Value as INancyModuleShell; + modulesRouteContext.ModuleShell = cast; + + var existingRouteData = context.HttpContext.GetRouteData(); + context.Handler = moduleRouteContext.Handler; + context.RouteData = moduleRouteContext.RouteData; + + // existingRouteData.PushState(module.Router, context.RouteData.Values, context.RouteData.DataTokens); + return; + } + else + { + currentNode = currentNode.Next; + } + //if (moduleRouteContext.NotMatched) + //{ + // currentNode = currentNode.Next; + // continue; + //} + + + } + } + + public RouteHandler DefaultRouteHandler { get; set; } + + public RouteHandler NullMatchRouteHandler { get; set; } + + + } + +} diff --git a/src/Dotnettency.Modules.Nancy/ServiceCollectionExtensions.cs b/src/Dotnettency.Modules.Nancy/ServiceCollectionExtensions.cs index 153a84d..80151e6 100644 --- a/src/Dotnettency.Modules.Nancy/ServiceCollectionExtensions.cs +++ b/src/Dotnettency.Modules.Nancy/ServiceCollectionExtensions.cs @@ -1,5 +1,7 @@ using Microsoft.Extensions.DependencyInjection; +using Nancy; using Sample; +using System; namespace Dotnettency.Modules.Nancy { @@ -14,5 +16,14 @@ public static IServiceCollection AddNancy(this IServiceCollection servi services.AddScoped, TenantNancyBootstrapperAccessor>(); return services; } + + public static IServiceCollection AddNancyModules(this IServiceCollection servicies, + Action> registerModules) + where TModule : class, INancyModule + { + var registerModulesBuilder = new NancyModuleRegisterBuilder(servicies); + registerModules(registerModulesBuilder); + return servicies; + } } } diff --git a/src/Dotnettency.Modules/IModuleManager.cs b/src/Dotnettency.Modules/IModuleManager.cs index 6e9bdec..d214192 100644 --- a/src/Dotnettency.Modules/IModuleManager.cs +++ b/src/Dotnettency.Modules/IModuleManager.cs @@ -1,15 +1,15 @@ using Dotnettency.Container; using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Routing; using System; using System.Threading.Tasks; namespace Dotnettency.Modules { public interface IModuleManager - where TModule : IModule { Task EnsureStarted(Func> containerFactory, IApplicationBuilder rootAppBuilder); - ModulesRouter GetModulesRouter(); + IRouter GetModulesRouter(); } } diff --git a/src/Dotnettency.Modules/IModuleShell.cs b/src/Dotnettency.Modules/IModuleShell.cs index fcd597a..a2b1852 100644 --- a/src/Dotnettency.Modules/IModuleShell.cs +++ b/src/Dotnettency.Modules/IModuleShell.cs @@ -3,18 +3,19 @@ using Dotnettency.Container; using Microsoft.AspNetCore.Builder; using Microsoft.Extensions.DependencyInjection; +using Microsoft.AspNetCore.Routing; namespace Dotnettency.Modules { - public interface IModuleShell - where TModule : IModule + public interface IModuleShell { IApplicationBuilder AppBuilder { get; } ITenantContainerAdaptor Container { get; set; } bool IsStarted { get; } - IModule Module { get; set; } - ModuleShellOptions Options { get; } + TModule Module { get; } + IRouter Router { get; } + ModuleShellOptions Options { get; } Task EnsureStarted(Func> containerFactory, IApplicationBuilder rootAppBuilder, IServiceCollection sharedServices); } } \ No newline at end of file diff --git a/src/Dotnettency.Modules/IRoutedModuleShell.cs b/src/Dotnettency.Modules/IRoutedModuleShell.cs deleted file mode 100644 index 103a0ba..0000000 --- a/src/Dotnettency.Modules/IRoutedModuleShell.cs +++ /dev/null @@ -1,12 +0,0 @@ -using Microsoft.AspNetCore.Http; -using Microsoft.AspNetCore.Routing; - -namespace Dotnettency.Modules -{ - public interface IRoutedModuleShell : IModuleShell - where TModule : IModule - { - RequestDelegate MiddlewarePipeline { get; set; } - IRouter Router { get; } - } -} \ No newline at end of file diff --git a/src/Dotnettency.Modules/ISharedModule.cs b/src/Dotnettency.Modules/ISharedModule.cs index 446a9dc..1e36d5a 100644 --- a/src/Dotnettency.Modules/ISharedModule.cs +++ b/src/Dotnettency.Modules/ISharedModule.cs @@ -1,7 +1,4 @@ -using System; -using System.Threading.Tasks; -using Dotnettency.Container; -using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Builder; using Microsoft.Extensions.DependencyInjection; //using Microsoft.AspNetCore.Routing; diff --git a/src/Dotnettency.Modules/ModuleManager.cs b/src/Dotnettency.Modules/ModuleManager.cs index acc0ace..37a114e 100644 --- a/src/Dotnettency.Modules/ModuleManager.cs +++ b/src/Dotnettency.Modules/ModuleManager.cs @@ -13,7 +13,6 @@ namespace Dotnettency.Modules { public class ModuleManager : IModuleManager - where TModule : IModule { private readonly SemaphoreSlim _semaphore = new SemaphoreSlim(1, 1); @@ -52,53 +51,12 @@ public async Task EnsureStarted(Func> containerFac var allModules = Modules.ToArray(); - //var defaultRouteHandler = new RouteHandler(context => - //{ - // var routeValues = context.GetRouteData().Values; - // return context.Response.WriteAsync( - // $"Hello! Route values: {string.Join(", ", routeValues)}"); - //}); - - // var modulesRouter = new ModulesRouter(rootAppBuilder, defaultRouteHandler); - //todo: PERF: make the EnsureStarted task on each module a lazy so that its only run once and we dont create new tasks on every request. - // start shared modules first, as these are for libraries that add services and middleware that can impact downstream / routed modules. - - - - // allModules.Select(a=>a.Module).OfType(); - var container = await containerFactory(); container.Configure(async sharedServices => { await Task.WhenAll(allModules.Select(m => m.EnsureStarted(containerFactory, rootAppBuilder, sharedServices))); - - //foreach (var item in allModules) - //{ - // var sharedModule = item as ModuleShell; - // var routedModule = item as RoutedModuleShell; - - //} - - //var sharedModules = allModules.OfType>().ToArray(); - //if (sharedModules.Any()) - //{ - - - //} - }); - - - // configure all ISharedModules into the same ServiceCollection to avoid duplicate registrations. - - - - // configure all IRoutedModules - var routedModules = allModules.OfType>().ToArray(); - // routed modules can't add to tenant level services. - await Task.WhenAll(routedModules.Select(m => m.EnsureStarted(containerFactory, rootAppBuilder, null))); - // ModulesRouter = modulesRouter; Started = true; @@ -110,7 +68,7 @@ public async Task EnsureStarted(Func> containerFac } - public ModulesRouter GetModulesRouter() + public IRouter GetModulesRouter() { return ModulesRouter; } diff --git a/src/Dotnettency.Modules/ModuleRegisterBuilder.cs b/src/Dotnettency.Modules/ModuleRegisterBuilder.cs index d4efccb..cd5db48 100644 --- a/src/Dotnettency.Modules/ModuleRegisterBuilder.cs +++ b/src/Dotnettency.Modules/ModuleRegisterBuilder.cs @@ -10,9 +10,12 @@ public class ModuleRegisterBuilder where TModule : class, IModule { private IServiceCollection _services; - public ModuleRegisterBuilder(IServiceCollection servicies) + private IRouteHandler _defaultRouteHandler; + + public ModuleRegisterBuilder(IServiceCollection servicies, IRouteHandler defaultRouteHandler) { _services = servicies; + _defaultRouteHandler = defaultRouteHandler; _services.AddRouting(); // needed for modular routing. } @@ -23,10 +26,12 @@ public ModuleRegisterBuilder AddModule() return this; } - public void OnSetupModule(Action> configureModuleOptionsBuilder, RouteHandler defaultRouteHandler) + public void OnSetupModule(Action> configureModuleOptionsBuilder) { // var moduleShell = new - var modulesRouter = new ModulesRouter(defaultRouteHandler); + + + var modulesRouter = new ModulesRouter(_defaultRouteHandler); // _services.AddSingleton(modulesRouter); _services.AddSingleton, ModuleManager>((sp) => @@ -43,24 +48,8 @@ public void OnSetupModule(Action> configureMo var moduleOptionsBuilder = new ModuleShellOptionsBuilder(item); configureModuleOptionsBuilder(moduleOptionsBuilder); var moduleShellOptions = moduleOptionsBuilder.Build(); - - var routedModule = item as IRoutedModule; - if (routedModule != null) // these need to be routed. - { - // modulesRouter. - // var routedModuleOptions = moduleShellOptions as ModuleShellOptions; - var routedModuleShell = new RoutedModuleShell(item, moduleShellOptions, modulesRouter); - // var moduleShell = routedModuleShell as IModuleShell; - moduleManager.AddModule(routedModuleShell); - } - else - { - - var nonRoutedModuleShell = new ModuleShell(item, moduleShellOptions); - // var moduleShell = routedModuleShell as IModuleShell; - moduleManager.AddModule(nonRoutedModuleShell); - } - + var moduleShell = new ModuleShell(item, moduleShellOptions); + moduleManager.AddModule(moduleShell); } return moduleManager; }); diff --git a/src/Dotnettency.Modules/ModuleRegisterBuilderExtensions.cs b/src/Dotnettency.Modules/ModuleRegisterBuilderExtensions.cs new file mode 100644 index 0000000..ad9d3c4 --- /dev/null +++ b/src/Dotnettency.Modules/ModuleRegisterBuilderExtensions.cs @@ -0,0 +1,14 @@ +using Microsoft.Extensions.DependencyInjection; +using System; + +namespace Dotnettency.Modules +{ + public static class ModuleRegisterBuilderExtensions + { + + + } + + + +} diff --git a/src/Dotnettency.Modules/ModuleShell.cs b/src/Dotnettency.Modules/ModuleShell.cs index bbfa666..f747a0b 100644 --- a/src/Dotnettency.Modules/ModuleShell.cs +++ b/src/Dotnettency.Modules/ModuleShell.cs @@ -4,106 +4,28 @@ using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; using Microsoft.AspNetCore.Routing; -using Microsoft.AspNetCore.Http; namespace Dotnettency.Modules { - - public class RoutedModuleShell : IRoutedModuleShell - where TModule : IModule - { - //private IRoutedModule routedModule; - - private ModulesRouter _modulesRouter; - - public ModuleShellOptions Options { get; } - - public RoutedModuleShell(TModule module, ModuleShellOptions options, ModulesRouter modulesRouter) - { - Options = options; - Module = module; - _modulesRouter = modulesRouter; - } - - public IModule Module { get; set; } - - public bool IsStarted { get; private set; } - - public ITenantContainerAdaptor Container { get; set; } - public IApplicationBuilder AppBuilder { get; private set; } - public IRouter Router { get; private set; } - - public RequestDelegate MiddlewarePipeline { get; set; } - - public async Task EnsureStarted(Func> containerFactory, IApplicationBuilder rootAppBuilder, IServiceCollection sharedServices) - { - if (IsStarted) - { - return; - } - - var container = await containerFactory(); - var routedModule = Module as IRoutedModule; - container = container.CreateChildContainer(); - - container.Configure((services) => - { - services.AddRouting(); //it's assumed routing is required for a routed module! - routedModule.ConfigureServices(services); - }); - - Container = container; - - var routedModuleShell = this as ModuleShell; - - var moduleAppBuilder = rootAppBuilder.New(); - - var moduleServicesProvider = Container.GetServiceProvider(); - moduleAppBuilder.ApplicationServices = moduleServicesProvider; - - var moduleRouteBuilder = new RouteBuilder(moduleAppBuilder, _modulesRouter.NullMatchRouteHandler); - routedModule.ConfigureRoutes(moduleRouteBuilder); - var moduleRouter = moduleRouteBuilder.Build(); - moduleRouteBuilder.ApplicationBuilder.UseRouter(moduleRouter); - AppBuilder = moduleRouteBuilder.ApplicationBuilder; - MiddlewarePipeline = AppBuilder.Build(); - - this.Router = moduleRouter; - - // Must register this module with the module router. - _modulesRouter.AddModuleRouter(this); - - IsStarted = true; - - - } - } - - public class ModuleShell : IModuleShell - where TModule : IModule { + public ModuleShellOptions Options { get; } + // public Func ServicesFactory { get; } - public ModuleShellOptions Options { get; } - - // public Func ServicesFactory { get; } - - public ModuleShell(TModule module, ModuleShellOptions options) + public ModuleShell(TModule module, ModuleShellOptions options) { Options = options; Module = module; - // ServicesFactory = servicesFactory; - //Services = services; } - public IModule Module { get; set; } + public TModule Module { get; set; } public bool IsStarted { get; private set; } public ITenantContainerAdaptor Container { get; set; } public IApplicationBuilder AppBuilder { get; private set; } - + public IRouter Router { get; set; } //internal async Task EnsureStarted(Func> containerFactory, IApplicationBuilder rootAppBuilder, ModulesRouter modulesRouter) //{ @@ -155,21 +77,29 @@ public async Task EnsureStarted(Func> containerFac var container = await containerFactory(); // configure container. - var sharedModule = Module as ISharedModule; - if (sharedModule != null) - { - // var services = ServicesFactory(); - sharedModule.ConfigureServices(sharedServices); - //container.Configure((services) => - //{ + Options.OnConfigureSharedServices?.Invoke(sharedServices); - //}); + if (Options.OnConfigureModuleServices != null) + { + container = container.CreateChildContainer(); + container.Configure((services) => + { + services.AddRouting(); //it's assumed routing is required for a routed module! + Options.OnConfigureModuleServices(services); + }); } Container = container; - // configure middleware. - sharedModule.ConfigureMiddleware(rootAppBuilder); + Options.OnConfigureMiddleware?.Invoke(rootAppBuilder); + + if (Options.GetRouter != null) + { + var moduleAppBuilder = rootAppBuilder.New(); + var moduleServicesProvider = Container.GetServiceProvider(); + moduleAppBuilder.ApplicationServices = moduleServicesProvider; + this.Router = Options.GetRouter(moduleAppBuilder); + } IsStarted = true; } diff --git a/src/Dotnettency.Modules/ModuleShellOptions.cs b/src/Dotnettency.Modules/ModuleShellOptions.cs index 54d2fcb..27acc6d 100644 --- a/src/Dotnettency.Modules/ModuleShellOptions.cs +++ b/src/Dotnettency.Modules/ModuleShellOptions.cs @@ -1,9 +1,30 @@ -namespace Dotnettency +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Routing; +using Microsoft.Extensions.DependencyInjection; +using System; + +namespace Dotnettency { - public class ModuleShellOptions + public class ModuleShellOptions { public bool IsolatedServices { get; set; } + public Action OnConfigureSharedServices { get; set; } + + public Action OnConfigureModuleServices { get; set; } + + public Action OnConfigureMiddleware { get; set; } + + public Func GetRouter { get; set; } + + public IRouteHandler NoMatchingRouteHandler { get; set; } = new RouteHandler(context => + { + // context.Items["NUL"] + return null; + + }); + + } } diff --git a/src/Dotnettency.Modules/ModuleShellOptionsBuilder.cs b/src/Dotnettency.Modules/ModuleShellOptionsBuilder.cs index eb77bf8..ac02b21 100644 --- a/src/Dotnettency.Modules/ModuleShellOptionsBuilder.cs +++ b/src/Dotnettency.Modules/ModuleShellOptionsBuilder.cs @@ -1,13 +1,15 @@ using Dotnettency.Modules; +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Routing; +using Microsoft.Extensions.DependencyInjection; +using System; namespace Dotnettency { public class ModuleShellOptionsBuilder - // where TTenant : class - where TModule : IModule { - private ModuleShellOptions _moduleShellOptions = new ModuleShellOptions(); + private ModuleShellOptions _moduleShellOptions = new ModuleShellOptions(); public ModuleShellOptionsBuilder(TModule module) { @@ -25,7 +27,28 @@ public ModuleShellOptionsBuilder(TModule module) //// public TTenant Tenant { get; set; } - internal ModuleShellOptions Build() + public ModuleShellOptionsBuilder SetOnConfigureSharedServices(Action onConfigure) + { + _moduleShellOptions.OnConfigureSharedServices = onConfigure; + return this; + } + + + + public ModuleShellOptionsBuilder SetOnConfigureMiddleware(Action onConfigureMiddleware) + { + _moduleShellOptions.OnConfigureMiddleware = onConfigureMiddleware; + return this; + } + + public ModuleShellOptionsBuilder UseRouterFactory(Func router, Action onConfigure) + { + _moduleShellOptions.OnConfigureModuleServices = onConfigure; + _moduleShellOptions.GetRouter = router; + return this; + + } + internal ModuleShellOptions Build() { return _moduleShellOptions; diff --git a/src/Dotnettency.Modules/ModulesRouteContext.cs b/src/Dotnettency.Modules/ModulesRouteContext.cs index e9a8a8e..a5a2ae2 100644 --- a/src/Dotnettency.Modules/ModulesRouteContext.cs +++ b/src/Dotnettency.Modules/ModulesRouteContext.cs @@ -3,8 +3,7 @@ namespace Dotnettency.Modules { - public class ModulesRouteContext : RouteContext - where TModule : IModule + public class ModulesRouteContext : RouteContext // where TTenant : class { // private readonly RouteContext _parentRouteContext; diff --git a/src/Dotnettency.Modules/ModulesRouter.cs b/src/Dotnettency.Modules/ModulesRouter.cs index b652a87..e9572db 100644 --- a/src/Dotnettency.Modules/ModulesRouter.cs +++ b/src/Dotnettency.Modules/ModulesRouter.cs @@ -5,34 +5,20 @@ namespace Dotnettency.Modules { public class ModulesRouter : IRouter - where TModule : IModule { - - public ModulesRouter(RouteHandler defaultRouteHandler) + public ModulesRouter(IRouteHandler defaultRouteHandler) { DefaultRouteHandler = defaultRouteHandler; // _appBuilder = appBuilder; - RoutedModules = new LinkedList>(); - - // if adding a new module, we want the first modules default route handler to be chained to the last, so that we can evaluate a null match. - NullMatchRouteHandler = new RouteHandler(context => - { - // context.Items["NUL"] - return null; - - //context.GetRouteData(). - //var routeValues = context.GetRouteData().Values; - //return context.Response.WriteAsync( - // $"Hello! Route values: {string.Join(", ", routeValues)}"); - }); - + RoutedModules = new LinkedList>(); + // NullMatchRouteHandler = nullMatchRouteHandler; } - public LinkedList> RoutedModules { get; set; } + public LinkedList> RoutedModules { get; set; } - public void AddModuleRouter(IRoutedModuleShell routedModuleShell) + public void AddModuleRouter(IModuleShell routedModuleShell) { - var newNode = new LinkedListNode>(routedModuleShell); + var newNode = new LinkedListNode>(routedModuleShell); RoutedModules.AddLast(routedModuleShell); } @@ -55,7 +41,6 @@ public VirtualPathData GetVirtualPath(VirtualPathContext context) public async Task RouteAsync(RouteContext context) { - var moduleRouteContext = new ModuleRouteContext(context.HttpContext, context); var currentNode = RoutedModules.First; @@ -92,11 +77,8 @@ public async Task RouteAsync(RouteContext context) } } - public RouteHandler DefaultRouteHandler { get; set; } - - public RouteHandler NullMatchRouteHandler { get; set; } - + public IRouteHandler DefaultRouteHandler { get; set; } + // public IRouteHandler NullMatchRouteHandler { get; set; } } - -} +} \ No newline at end of file diff --git a/src/Dotnettency.Modules/ServiceCollectionExtensions.cs b/src/Dotnettency.Modules/ServiceCollectionExtensions.cs index ef3831a..f829e46 100644 --- a/src/Dotnettency.Modules/ServiceCollectionExtensions.cs +++ b/src/Dotnettency.Modules/ServiceCollectionExtensions.cs @@ -1,4 +1,5 @@ -using Microsoft.Extensions.DependencyInjection; +using Microsoft.AspNetCore.Routing; +using Microsoft.Extensions.DependencyInjection; using System; namespace Dotnettency.Modules @@ -8,12 +9,15 @@ public static class ServiceCollectionExtensions { public static IServiceCollection AddModules(this IServiceCollection servicies, + IRouteHandler defaultRouteHandler, Action> registerModules) where TModule : class, IModule { - var registerModulesBuilder = new ModuleRegisterBuilder(servicies); + var registerModulesBuilder = new ModuleRegisterBuilder(servicies, defaultRouteHandler); registerModules(registerModulesBuilder); return servicies; } + + } } diff --git a/src/Dotnettency.Sample/Startup.cs b/src/Dotnettency.Sample/Startup.cs index cffcc1c..cbf813b 100644 --- a/src/Dotnettency.Sample/Startup.cs +++ b/src/Dotnettency.Sample/Startup.cs @@ -37,35 +37,64 @@ public IServiceProvider ConfigureServices(IServiceCollection services) { tenantServices.AddSingleton(); - tenantServices.AddModules((modules) => + var defaultRouteHandler = new RouteHandler(context => + { + // default route handler when no routed modules match. + // could return default mvc route handler, or something else. + // Return null to not handle the request so it can flow through to next middleware. + return null; + }); + + var moMatchRouteHandler = new RouteHandler(context => + { + // default route handler when a single module router fails to match. + // Return null so it can flow through to the next module + return null; + }); + + tenantServices.AddModules(defaultRouteHandler, (modules) => { - // Only load these modules for tenant Bar. + // Only load these two modules for tenant Bar. if (tenant?.Name == "Bar") { - // Enable a routed module (i.e a module that handles requests. modules.AddModule() - // Enable a shared module, this is a module that provides dependencies that all modules can consume. .AddModule(); } + // Configure each modules shell. This allows the module to participate in: + // 1. Configuring tenant / application level services + // 2. Optionally providing an IRouter so that the services can be isolated and restored only when the router handles the request. modules.OnSetupModule((moduleOptions) => { - // Here you have access to the common base for all of your modules so you can configure any - // additional properties on them. - //if (!moduleOptions.Module.) - //{ - // - //} - }, (new RouteHandler(context => - { - // context.Items["NUL"] - return null; - - //context.GetRouteData(). - //var routeValues = context.GetRouteData().Values; - //return context.Response.WriteAsync( - // $"Hello! Route values: {string.Join(", ", routeValues)}"); - }))); + // we allow ISharedModules to configure services at tenant level, and middleware at tenant level. + var sharedModule = moduleOptions.Module as ISharedModule; + if (sharedModule != null) + { + moduleOptions.SetOnConfigureSharedServices((moduleServices) => + { + sharedModule.ConfigureServices(moduleServices); + }); + moduleOptions.SetOnConfigureMiddleware((appBuilder) => + { + sharedModule.ConfigureMiddleware(appBuilder); + }); + } + + // We allow IRoutedModules to partipate in configuring their own isolated services, associated with their router + var routedModule = moduleOptions.Module as IRoutedModule; + if (routedModule != null) + { + + moduleOptions.UseRouterFactory((moduleAppBuilder) => + { + var moduleRouteBuilder = new RouteBuilder(moduleAppBuilder, moMatchRouteHandler); + routedModule.ConfigureRoutes(moduleRouteBuilder); + var moduleRouter = moduleRouteBuilder.Build(); + return moduleRouter; + }, moduleServices => routedModule.ConfigureServices(moduleServices)); + } + + }); }); }); @@ -135,7 +164,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF hostingEnvironmentOptions.UseTenantWebRootFileProvider(); }) .UsePerTenantMiddlewarePipeline(); - // .UseModules(); + //.UseModules(); }); //app.UseOwin(x => @@ -163,7 +192,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF string tenantShellId = tenantShell == null ? "{NULL TENANT SHELL}" : tenantShell.Id.ToString(); string tenantName = tenant == null ? "{NULL TENANT}" : tenant.Name; - string injectedTenantName = someTenantService?.TenantName == null ? "{NULL TENANT}" : someTenantService?.TenantName; + string injectedTenantName = someTenantService?.TenantName == null ? "{NULL SERVICE}" : someTenantService?.TenantName; // Accessing a content file. string fileContent = someTenantService?.GetContentFile("/Info.txt"); diff --git a/src/Sample.PerTenantHostingEnvironment/.tenants/049c8cc4-3660-41c7-92f0-85430452be22/Info.txt b/src/Sample.PerTenantHostingEnvironment/.tenants/049c8cc4-3660-41c7-92f0-85430452be22/Info.txt new file mode 100644 index 0000000..b614dd1 --- /dev/null +++ b/src/Sample.PerTenantHostingEnvironment/.tenants/049c8cc4-3660-41c7-92f0-85430452be22/Info.txt @@ -0,0 +1 @@ +Bar tenant content file. Not accessible to other tenants. \ No newline at end of file diff --git a/src/Sample.PerTenantHostingEnvironment/Info.txt b/src/Sample.PerTenantHostingEnvironment/Info.txt new file mode 100644 index 0000000..cfc8431 --- /dev/null +++ b/src/Sample.PerTenantHostingEnvironment/Info.txt @@ -0,0 +1 @@ +Host level content file, accessbile to all tenants. \ No newline at end of file diff --git a/src/Sample.PerTenantHostingEnvironment/Program.cs b/src/Sample.PerTenantHostingEnvironment/Program.cs new file mode 100644 index 0000000..1e1b7fc --- /dev/null +++ b/src/Sample.PerTenantHostingEnvironment/Program.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Hosting; + +namespace Sample.PerTenantHostingEnvironment +{ + public class Program + { + public static void Main(string[] args) + { + var host = new WebHostBuilder() + .UseKestrel() + .UseContentRoot(Directory.GetCurrentDirectory()) + .UseIISIntegration() + .UseStartup() + .UseUrls("http://*:5000", "http://*:5001", "http://*:5002", "http://*:5003") + .Build(); + + host.Run(); + } + } +} diff --git a/src/Sample.PerTenantHostingEnvironment/README.md b/src/Sample.PerTenantHostingEnvironment/README.md new file mode 100644 index 0000000..d74f0b2 --- /dev/null +++ b/src/Sample.PerTenantHostingEnvironment/README.md @@ -0,0 +1,40 @@ +Start this sample running, then browse to: + +- http://localhost:5001/Index.html +- http://localhost:5002/Index.html +- http://localhost:5003/Index.html + +on ports 5000 and 5001 (Both are tenant BAR) you get this: + +![image](https://user-images.githubusercontent.com/3176632/28713866-d240b8c2-7388-11e7-932c-a638cfa7514f.png) + +On 5002 (Tenant Foo) you get this: + +![image](https://user-images.githubusercontent.com/3176632/28713886-e702d45c-7388-11e7-85c4-d8d052667a3a.png) + +The project structure looks like this - but focus on where Index.html is which demonstrates that the file can be overridden on a per tenant basis (The GUID's are tenant's id's) + +![image](https://user-images.githubusercontent.com/3176632/28713742-4b6ef37c-7388-11e7-9214-41988fafdbba.png) + +Each tenant gets an `IHostingEnvironment` which has a ContentRootFileProvider and WebRootFileProvider which is a composite IFileProvider encapsulating the host level folder, plus its tenant specific one, ie. for tenant foo, its WebRootFileProvider sees these root directories:- + +- wwwroot +- wwwroot/.tenants/049c8cc4-3660-41c7-92f0-85430452be22/ + +Placing the tenant's root directory i a subfolder that has a period in the folder name i.e `.tenants` ensures its a hidden directory in terms of the first `IFileProvider` looking at `wwwroot`. This means tenants cannot access each others directories virtue of navigating through the first root folder path. + +This means tenants can also have files that are only visible for that tenant - they just need to be in the tenant specific folder only. + +![image](https://user-images.githubusercontent.com/3176632/28714079-ae16fd02-7389-11e7-8717-ad6c7a8a96ad.png) + +This isn't necessarily anything new or exciting in terms of how IFileProviders work. However in terms of how static files middleware works, you can see in the sample, that all I do is add the static files middleware with its vanilla / default configuration (didn't have to configure it's IFileProvider etc) to the tenant middleware pipeline - and now it behaves like this automatically, virtue of PerTenantHostingEnvironment. + +I would expect all other middlewares to behave similar - i.e when added to the per tenant middleware pipeline (in conjunction with using PerTenantHostingEnvironment), they only get a Tenant view of the world. +I am going to experiment with an MVC sample next to see what that does in terms of things like razor, view components, etc. In theory I think it means all the same concepts should apply - i.e you will be able to override all those things on a per tenant basis too, without having to configure any custom services. This is great if you need +to customise a particular tenants home razor page for example. + +The same concept also applies to the "Content" file system.. browse on the various ports (5000-5003) on the default url to see a json result which includes the contents of reading a content file on `/Info.txt` - for some tenants `/Info.txt` resolves to the `tenant isolated` file. For others it resolves to the system level (i.e common) file. + +Let me know if you find this interesting or useful! + + diff --git a/src/Sample.PerTenantHostingEnvironment/Sample.PerTenantHostingEnvironment.csproj b/src/Sample.PerTenantHostingEnvironment/Sample.PerTenantHostingEnvironment.csproj new file mode 100644 index 0000000..973187f --- /dev/null +++ b/src/Sample.PerTenantHostingEnvironment/Sample.PerTenantHostingEnvironment.csproj @@ -0,0 +1,31 @@ + + + + netcoreapp1.1 + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Sample.PerTenantHostingEnvironment/SomeTenantService.cs b/src/Sample.PerTenantHostingEnvironment/SomeTenantService.cs new file mode 100644 index 0000000..9b0c32e --- /dev/null +++ b/src/Sample.PerTenantHostingEnvironment/SomeTenantService.cs @@ -0,0 +1,61 @@ +using Microsoft.AspNetCore.Hosting; +using System; +using System.IO; + +namespace Sample.PerTenantHostingEnvironment +{ + public class SomeTenantService + { + private readonly IHostingEnvironment _hostingEnv; + + public SomeTenantService(Tenant tenant, + IHostingEnvironment hostingEnv) + { + Id = Guid.NewGuid(); + TenantName = tenant?.Name; + _hostingEnv = hostingEnv; + } + public Guid Id { get; set; } + + public string TenantName { get; set; } + + public string GetContentFile(string path) + { + //var allFiles = _hostingEnv.ContentRootFileProvider.GetDirectoryContents(""); + //foreach (var item in allFiles) + //{ + + //} + var file = _hostingEnv.ContentRootFileProvider.GetFileInfo(path); + if (!file.Exists) + { + return string.Empty; + } + using (var reader = new StreamReader(file.CreateReadStream())) + { + var contents = reader.ReadToEnd(); + return contents; + }; + } + + public string GetWebRootFile(string path) + { + //var allFiles = _hostingEnv.ContentRootFileProvider.GetDirectoryContents(""); + //foreach (var item in allFiles) + //{ + + //} + var file = _hostingEnv.WebRootFileProvider.GetFileInfo(path); + if (!file.Exists) + { + return string.Empty; + } + using (var reader = new StreamReader(file.CreateReadStream())) + { + var contents = reader.ReadToEnd(); + return contents; + }; + } + + } +} diff --git a/src/Sample.PerTenantHostingEnvironment/Startup.cs b/src/Sample.PerTenantHostingEnvironment/Startup.cs new file mode 100644 index 0000000..414413e --- /dev/null +++ b/src/Sample.PerTenantHostingEnvironment/Startup.cs @@ -0,0 +1,145 @@ +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Hosting; +using Microsoft.AspNetCore.Http; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Logging; +using Dotnettency; +using System; +using System.Text; +using Microsoft.Net.Http.Headers; +using Newtonsoft.Json; + +namespace Sample.PerTenantHostingEnvironment +{ + public class Startup + { + private readonly IHostingEnvironment _environment; + public Startup(IHostingEnvironment environment) + { + _environment = environment; + } + + // This method gets called by the runtime. Use this method to add services to the container. + // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940 + public IServiceProvider ConfigureServices(IServiceCollection services) + { + var serviceProvider = services.AddMultiTenancy((options) => + { + options + .DistinguishTenantsBySchemeHostnameAndPort() // The distinguisher used to identify one tenant from another. + .InitialiseTenant() // factory class to load tenant when it needs to be initialised for the first time. Can use overload to provide a delegate instead. + .ConfigureTenantMiddleware((middlewareOptions) => + { + // This method is called when need to initialise the middleware pipeline for a tenant (i.e on first request for the tenant) + middlewareOptions.OnInitialiseTenantPipeline((context, appBuilder) => + { + appBuilder.UseStaticFiles(); // This demonstrates static files middleware, but below I am also using per tenant hosting environment which means each tenant can see its own static files in addition to the main application level static files. + + if (context.Tenant?.Name == "Foo") + { + appBuilder.UseWelcomePage("/welcome"); + } + }); + }) // Configure per tenant containers. + .ConfigureTenantContainers((containerBuilder) => + { + // Extension methods available here for supported containers. We are using structuremap.. + // We are using an overload that allows us to configure structuremap with familiar IServiceCollection. + containerBuilder.WithStructureMapServiceCollection((tenant, tenantServices) => + { + tenantServices.AddSingleton(); + }); + }) + // configure per tenant hosting environment. + .ConfigurePerTenantHostingEnvironment(_environment, (tenantHostingEnvironmentOptions) => + { + tenantHostingEnvironmentOptions.OnInitialiseTenantContentRoot((contentRootOptions) => + { + // WE use a tenant's guid id to partition one tenants files from another on disk. + // NOTE: We use an empty guid for NULL tenants, so that all NULL tenants share the same location. + var tenantGuid = (contentRootOptions.Tenant?.TenantGuid).GetValueOrDefault(); + contentRootOptions.TenantPartitionId(tenantGuid) + .AllowAccessTo(_environment.ContentRootFileProvider); // We allow the tenant content root file provider to access to the environments content root. + }); + + tenantHostingEnvironmentOptions.OnInitialiseTenantWebRoot((webRootOptions) => + { + // WE use the tenant's guid id to partition one tenants files from another on disk. + var tenantGuid = (webRootOptions.Tenant?.TenantGuid).GetValueOrDefault(); + webRootOptions.TenantPartitionId(tenantGuid) + .AllowAccessTo(_environment.WebRootFileProvider); // We allow the tenant web root file provider to access the environments web root files. + }); + }); + }); + + // When using tenant containers, must return IServiceProvider. + return serviceProvider; + } + + public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) + { + loggerFactory.AddConsole(); + + if (env.IsDevelopment()) + { + app.UseDeveloperExceptionPage(); + } + + // Add the multitenancy middleware. + app.UseMultitenancy((options) => + { + options + .UsePerTenantContainers() + .UsePerTenantHostingEnvironment((hostingEnvironmentOptions) => + { + // using tenant content root and web root. + hostingEnvironmentOptions.UseTenantContentRootFileProvider(); + hostingEnvironmentOptions.UseTenantWebRootFileProvider(); + }) + .UsePerTenantMiddlewarePipeline(); + }); + + // app.UseMiddleware>(); + // app. + app.Run(async (context) => + { + // Use ITenantAccessor to access the current tenant. + var tenantAccessor = context.RequestServices.GetRequiredService>(); + var tenant = await tenantAccessor.CurrentTenant.Value; + + // This service was registered as singleton in tenant container. + var someTenantService = context.RequestServices.GetService(); + + // The tenant shell to access context for the tenant - even if the tenant is null + var tenantShellAccessor = context.RequestServices.GetRequiredService>(); + var tenantShell = await tenantShellAccessor.CurrentTenantShell.Value; + + + var messageBuilder = new StringBuilder(); + + string tenantShellId = tenantShell == null ? "{NULL TENANT SHELL}" : tenantShell.Id.ToString(); + string tenantName = tenant == null ? "{NULL TENANT}" : tenant.Name; + string injectedTenantName = someTenantService?.TenantName == null ? "{NULL TENANT}" : someTenantService?.TenantName; + + string fileContent = someTenantService?.GetContentFile("/Info.txt"); + context.Response.ContentType = new MediaTypeHeaderValue("application/json").ToString(); + var result = new + { + TenantShellId = tenantShellId, + TenantName = tenantName, + TenantScopedServiceId = someTenantService?.Id, + InjectedTenantName = injectedTenantName, + TenantContentFile = fileContent + }; + + var jsonResult = JsonConvert.SerializeObject(result); + await context.Response.WriteAsync(jsonResult, Encoding.UTF8); + + + // context.Response. + + // for null tenants we could optionally redirect somewhere? + }); + } + } +} diff --git a/src/Sample.PerTenantHostingEnvironment/Tenant.cs b/src/Sample.PerTenantHostingEnvironment/Tenant.cs new file mode 100644 index 0000000..d9678c2 --- /dev/null +++ b/src/Sample.PerTenantHostingEnvironment/Tenant.cs @@ -0,0 +1,17 @@ +using System; + +namespace Sample.PerTenantHostingEnvironment +{ + public class Tenant + { + public Tenant(Guid tenantGuid) + { + + TenantGuid = tenantGuid; + // Id = Guid.NewGuid(); + } + // public int Id { get; set; } + public Guid TenantGuid { get; set; } + public string Name { get; set; } + } +} diff --git a/src/Sample.PerTenantHostingEnvironment/TenantShellFactory.cs b/src/Sample.PerTenantHostingEnvironment/TenantShellFactory.cs new file mode 100644 index 0000000..e090150 --- /dev/null +++ b/src/Sample.PerTenantHostingEnvironment/TenantShellFactory.cs @@ -0,0 +1,47 @@ +using Dotnettency; +using System; +using System.Threading.Tasks; + +namespace Sample.PerTenantHostingEnvironment +{ + public class TenantShellFactory : ITenantShellFactory + { + public async Task> Get(TenantDistinguisher distinguisher) + { + if (distinguisher.Key == "http://localhost:63291") + { + Guid tenantId = Guid.Parse("b17fcd22-0db1-47c0-9fef-1aa1cb09605e"); + var tenant = new Tenant(tenantId) { Name = "Foo" }; + var result = new TenantShell(tenant); + return result; + } + + if (distinguisher.Key.Contains(":5000") || distinguisher.Key.Contains(":5001")) + { + Guid tenantId = Guid.Parse("049c8cc4-3660-41c7-92f0-85430452be22"); + var tenant = new Tenant(tenantId) { Name = "Bar" }; + var result = new TenantShell(tenant, "http://localhost:5000", "http://localhost:5001"); // additional distinguishers to map this same tenant shell instance too. + return result; + } + + // for an unknown tenant, we can either create the tenant shell as a NULL tenant by returning a TenantShell(null), + // which results in the TenantShell being created, and will explicitly have to be reloaded() in order for this method to be called again. + if (distinguisher.Key.Contains("5002")) + { + var result = new TenantShell(null); + return result; + } + + if (distinguisher.Key.Contains("5003")) + { + + // or we can return null - which means we wil keep attempting to resolve the tenant on every subsequent request until a result is returned in future. + // (i.e allows tenant to be created in backend in a few moments time). + return null; + } + + throw new NotImplementedException("Please make request on ports 5000 - 5003 to see various behaviour. Can also use 63291 when launching under IISExpress"); + + } + } +} diff --git a/src/Sample.PerTenantHostingEnvironment/TenantStartup.cs b/src/Sample.PerTenantHostingEnvironment/TenantStartup.cs new file mode 100644 index 0000000..16abe4a --- /dev/null +++ b/src/Sample.PerTenantHostingEnvironment/TenantStartup.cs @@ -0,0 +1,19 @@ +using Dotnettency.Container; +using Microsoft.Extensions.DependencyInjection; + +namespace Sample.PerTenantHostingEnvironment +{ + public class TenantStartup : ITenantStartup + { + public TenantStartup() + { + + } + + public void ConfigureServices(IServiceCollection services) + { + // var tenantService = new SomeTenantService() { Id = Guid.NewGuid() }; + // services.AddSingleton(tenantService); + } + } +} \ No newline at end of file diff --git a/src/Sample.PerTenantHostingEnvironment/wwwroot/.tenants/00000000-0000-0000-0000-000000000000/DefaultTenant.html b/src/Sample.PerTenantHostingEnvironment/wwwroot/.tenants/00000000-0000-0000-0000-000000000000/DefaultTenant.html new file mode 100644 index 0000000..f09d6f6 --- /dev/null +++ b/src/Sample.PerTenantHostingEnvironment/wwwroot/.tenants/00000000-0000-0000-0000-000000000000/DefaultTenant.html @@ -0,0 +1,10 @@ + + + + + Default Tenant Only + + + This file is isolated for the default tenant only. Other tenants can't access it. + + \ No newline at end of file diff --git a/src/Sample.PerTenantHostingEnvironment/wwwroot/.tenants/049c8cc4-3660-41c7-92f0-85430452be22/BarTenant.html b/src/Sample.PerTenantHostingEnvironment/wwwroot/.tenants/049c8cc4-3660-41c7-92f0-85430452be22/BarTenant.html new file mode 100644 index 0000000..0aed29a --- /dev/null +++ b/src/Sample.PerTenantHostingEnvironment/wwwroot/.tenants/049c8cc4-3660-41c7-92f0-85430452be22/BarTenant.html @@ -0,0 +1,10 @@ + + + + + Bar Tenant Only + + + This static file only exists for the Bar tenant. + + \ No newline at end of file diff --git a/src/Sample.PerTenantHostingEnvironment/wwwroot/.tenants/049c8cc4-3660-41c7-92f0-85430452be22/Index.html b/src/Sample.PerTenantHostingEnvironment/wwwroot/.tenants/049c8cc4-3660-41c7-92f0-85430452be22/Index.html new file mode 100644 index 0000000..aad9246 --- /dev/null +++ b/src/Sample.PerTenantHostingEnvironment/wwwroot/.tenants/049c8cc4-3660-41c7-92f0-85430452be22/Index.html @@ -0,0 +1,10 @@ + + + + + Bar Tenant Override + + + This is the an override of Index.html for the BAR tenant. + + \ No newline at end of file diff --git a/src/Sample.PerTenantHostingEnvironment/wwwroot/index.html b/src/Sample.PerTenantHostingEnvironment/wwwroot/index.html new file mode 100644 index 0000000..bf5d149 --- /dev/null +++ b/src/Sample.PerTenantHostingEnvironment/wwwroot/index.html @@ -0,0 +1,10 @@ + + + + + Host level + + + This is the default / host level index.html + + \ No newline at end of file diff --git a/src/src.sln b/src/src.sln index 0907654..a37e96b 100644 --- a/src/src.sln +++ b/src/src.sln @@ -27,7 +27,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dotnettency.HostingEnvironm EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dotnettency.Modules", "Dotnettency.Modules\Dotnettency.Modules.csproj", "{720AC644-94A4-4AA9-AD12-543AB87BC2FC}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dotnettency.Modules.Nancy", "Dotnettency.Modules.Nancy\Dotnettency.Modules.Nancy.csproj", "{6CFD80AD-DC8C-4228-B467-EE070CEE11AC}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dotnettency.Modules.Nancy", "Dotnettency.Modules.Nancy\Dotnettency.Modules.Nancy.csproj", "{6CFD80AD-DC8C-4228-B467-EE070CEE11AC}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dotnettency.Modules.Mvc", "Dotnettency.Modules.Mvc\Dotnettency.Modules.Mvc.csproj", "{E614BEB1-198A-4965-A4E9-52C19403A847}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -147,6 +149,18 @@ Global {6CFD80AD-DC8C-4228-B467-EE070CEE11AC}.Release|x64.Build.0 = Release|Any CPU {6CFD80AD-DC8C-4228-B467-EE070CEE11AC}.Release|x86.ActiveCfg = Release|Any CPU {6CFD80AD-DC8C-4228-B467-EE070CEE11AC}.Release|x86.Build.0 = Release|Any CPU + {E614BEB1-198A-4965-A4E9-52C19403A847}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E614BEB1-198A-4965-A4E9-52C19403A847}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E614BEB1-198A-4965-A4E9-52C19403A847}.Debug|x64.ActiveCfg = Debug|Any CPU + {E614BEB1-198A-4965-A4E9-52C19403A847}.Debug|x64.Build.0 = Debug|Any CPU + {E614BEB1-198A-4965-A4E9-52C19403A847}.Debug|x86.ActiveCfg = Debug|Any CPU + {E614BEB1-198A-4965-A4E9-52C19403A847}.Debug|x86.Build.0 = Debug|Any CPU + {E614BEB1-198A-4965-A4E9-52C19403A847}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E614BEB1-198A-4965-A4E9-52C19403A847}.Release|Any CPU.Build.0 = Release|Any CPU + {E614BEB1-198A-4965-A4E9-52C19403A847}.Release|x64.ActiveCfg = Release|Any CPU + {E614BEB1-198A-4965-A4E9-52C19403A847}.Release|x64.Build.0 = Release|Any CPU + {E614BEB1-198A-4965-A4E9-52C19403A847}.Release|x86.ActiveCfg = Release|Any CPU + {E614BEB1-198A-4965-A4E9-52C19403A847}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE From 8d2611942cd5f33a29e9e865faed0bbe7e2c4800 Mon Sep 17 00:00:00 2001 From: Darrell Tunnell Date: Mon, 14 Aug 2017 02:20:37 +0100 Subject: [PATCH 14/86] Fixed issue with incorrect httpcontext and requestservices. Refactoring. Issue outstanding with per tenant modules. --- .../StructureMap/ContainerExtensions.cs | 8 +- ...ureMapContainerBuilderOptionsExtensions.cs | 17 ++-- .../StructureMapServiceProvider.cs | 2 +- .../StructureMapServiceScopeFactory.cs | 34 ++++++++ .../StructureMapTenantContainerAdaptor.cs | 38 ++++++-- .../StructureMapTenantContainerBuilder.cs | 69 +++++++++------ .../StructureMap/TenantContainerBuilder.cs | 42 +++++++++ .../AdaptedContainerBuilderOptions.cs | 2 +- .../ContainerBuilderOptions.cs | 2 +- .../ITenantContainerAdaptor.cs | 4 +- .../ITenantContainerFactory.cs | 0 .../ITenantRequestContainerAccessor.cs | 10 +-- .../{Container => }/ITenantStartup.cs | 0 .../PerRequestContainer.cs | 37 ++++---- .../TenantContainerBuilder.cs | 30 +++++++ .../TenantContainerBuilderFactory.cs | 0 .../{Container => }/TenantContainerFactory.cs | 0 .../TenantContainerMiddleware.cs | 46 ++++++---- .../TenantRequestContainerAccessor.cs | 86 +++++++++---------- .../UseBuilderExtensions.cs | 2 +- ...HostingEnvironmentContentRootMiddleware.cs | 4 +- ...nantHostingEnvironmentWebRootMiddleware.cs | 4 +- ...DelegateTenantMiddlewarePipelineFactory.cs | 34 ++++---- .../ITenantMiddlewarePipelineFactory.cs | 6 +- .../ITenantPipelineAccessor.cs | 13 +++ .../TenantPipelineAccessor.cs | 54 ++++++++++++ .../TenantPipelineMiddleware.cs | 25 ++---- .../TenantPipelineOptionsBuilder.cs | 2 +- .../UsePerTenantBuilderExtensions.cs | 2 +- .../Dotnettency.Modules.csproj | 1 + src/Dotnettency.Modules/ModuleManager.cs | 7 ++ .../ModuleRegisterBuilderExtensions.cs | 14 --- src/Dotnettency.Modules/ModuleShell.cs | 43 +--------- src/Dotnettency.Modules/ModuleShellOptions.cs | 2 +- .../ModuleShellOptionsBuilder.cs | 25 ++---- src/Dotnettency.Modules/ModulesMiddleware.cs | 11 +-- .../ModulesRouteContext.cs | 7 +- src/Dotnettency.Modules/RoutingFeature.cs | 1 - .../ServiceCollectionExtensions.cs | 3 - .../UseModulesBuilderExtensions.cs | 16 ++-- .../UseModulesOptionsBuilder.cs | 28 ++++++ src/Dotnettency.Sample/Program.cs | 2 +- src/Dotnettency.Sample/Startup.cs | 57 +++++++++--- src/Sample.Mvc/Startup.cs | 2 +- 44 files changed, 505 insertions(+), 287 deletions(-) create mode 100644 src/Dotnettency.Container.StructureMap/StructureMap/TenantContainerBuilder.cs rename src/Dotnettency.Container/{Container => }/ITenantContainerAdaptor.cs (88%) rename src/Dotnettency.Container/{Container => }/ITenantContainerFactory.cs (100%) rename src/Dotnettency.Container/{Container => }/ITenantStartup.cs (100%) create mode 100644 src/Dotnettency.Container/TenantContainerBuilder.cs rename src/Dotnettency.Container/{Container => }/TenantContainerBuilderFactory.cs (100%) rename src/Dotnettency.Container/{Container => }/TenantContainerFactory.cs (100%) create mode 100644 src/Dotnettency.MiddlewarePipeline/ITenantPipelineAccessor.cs create mode 100644 src/Dotnettency.MiddlewarePipeline/TenantPipelineAccessor.cs delete mode 100644 src/Dotnettency.Modules/ModuleRegisterBuilderExtensions.cs create mode 100644 src/Dotnettency.Modules/UseModulesOptionsBuilder.cs diff --git a/src/Dotnettency.Container.StructureMap/StructureMap/ContainerExtensions.cs b/src/Dotnettency.Container.StructureMap/StructureMap/ContainerExtensions.cs index 5856889..c4eeebd 100644 --- a/src/Dotnettency.Container.StructureMap/StructureMap/ContainerExtensions.cs +++ b/src/Dotnettency.Container.StructureMap/StructureMap/ContainerExtensions.cs @@ -63,13 +63,15 @@ public static void Populate(this Registry registry, IEnumerable(); - registry.For() + registry.For() .LifecycleIs(Lifecycles.Container) - .Use(); + .Use(); + + registry.Forward(); registry.For() .LifecycleIs(Lifecycles.Container) - .Use(); + .Use(); registry.Register(descriptors); diff --git a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapContainerBuilderOptionsExtensions.cs b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapContainerBuilderOptionsExtensions.cs index 0f5e65e..0e4f921 100644 --- a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapContainerBuilderOptionsExtensions.cs +++ b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapContainerBuilderOptionsExtensions.cs @@ -55,7 +55,7 @@ public static class StructureMapContainerBuilderOptionsExtensions //} - public static AdaptedContainerBuilderOptions WithStructureMapServiceCollection(this ContainerBuilderOptions options, + public static AdaptedContainerBuilderOptions WithStructureMap(this ContainerBuilderOptions options, Action configureTenant) where TTenant : class { @@ -65,20 +65,17 @@ public static AdaptedContainerBuilderOptions WithStructureMapServiceCol // host level container. var container = new StructureMap.Container(); container.Populate(options.Builder.Services); - + var adaptedContainer = container.GetInstance(); // add ITenantContainerBuilder service to the host container // This service can be used to build a child container (adaptor) for a particular tenant, when required. container.Configure(_ => _.For>() - .Use(new StructureMapTenantContainerBuilder(container, (tenant, configurationExpression) => - { - var tenantServices = new ServiceCollection(); - configureTenant(tenant, tenantServices); - configurationExpression.Populate(tenantServices); - })) + .Use(new TenantContainerBuilder(adaptedContainer, configureTenant)) ); - var adaptor = new StructureMapTenantContainerAdaptor(container, ContainerRole.Root); + // new StructureMap.Pipeline.ExplicitArguments("role", ContainerRole.Root) + var adaptor = container.GetInstance(); + // new StructureMapTenantContainerAdaptor(container, ContainerRole.Root); return adaptor; }); @@ -95,7 +92,7 @@ public static AdaptedContainerBuilderOptions WithStructureMapServiceCol // // now configure nested container per tenant. // return container.GetInstance(); //}); - + return adapted; } diff --git a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapServiceProvider.cs b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapServiceProvider.cs index 3ef5d9e..5e00fd9 100644 --- a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapServiceProvider.cs +++ b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapServiceProvider.cs @@ -9,7 +9,7 @@ namespace Dotnettency.Container.StructureMap { - public sealed class StructureMapServiceProvider : IServiceProvider, ISupportRequiredService + public class StructureMapServiceProvider : IServiceProvider, ISupportRequiredService { public StructureMapServiceProvider(IContainer container) { diff --git a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapServiceScopeFactory.cs b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapServiceScopeFactory.cs index d358417..b5e8307 100644 --- a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapServiceScopeFactory.cs +++ b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapServiceScopeFactory.cs @@ -6,6 +6,40 @@ namespace Dotnettency.Container.StructureMap { public static partial class ContainerExtensions { + internal sealed class TenantContainerServiceScopeFactory : IServiceScopeFactory + { + public TenantContainerServiceScopeFactory(ITenantContainerAdaptor container) + { + Container = container; // new StructureMapTenantContainerAdaptor(container, ContainerRole.Root); + } + + private ITenantContainerAdaptor Container { get; } + + public IServiceScope CreateScope() + { + return new TenantContainerServiceScope(Container.CreateNestedContainer()); + } + + + private class TenantContainerServiceScope : IServiceScope + { + + public TenantContainerServiceScope(ITenantContainerAdaptor container) + { + Container = container; + ServiceProvider = Container; + } + + private ITenantContainerAdaptor Container { get; } + + public IServiceProvider ServiceProvider { get; } + + public void Dispose() => Container.Dispose(); + + } + + } + internal sealed class StructureMapServiceScopeFactory : IServiceScopeFactory { public StructureMapServiceScopeFactory(IContainer container) diff --git a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerAdaptor.cs b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerAdaptor.cs index 7e4ff65..1b897ef 100644 --- a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerAdaptor.cs +++ b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerAdaptor.cs @@ -3,29 +3,41 @@ using Microsoft.Extensions.DependencyInjection; using Dotnettency.Container.StructureMap; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; namespace Dotnettency.Container { - public class StructureMapTenantContainerAdaptor : ITenantContainerAdaptor + public class StructureMapTenantContainerAdaptor : StructureMapServiceProvider, ITenantContainerAdaptor { private readonly IContainer _container; private readonly Guid _id; + private readonly ILogger _logger; - public StructureMapTenantContainerAdaptor(IContainer container, ContainerRole role) + public StructureMapTenantContainerAdaptor(ILogger logger, IContainer container, ContainerRole role = ContainerRole.Root) : base(container) { + _logger = logger; _container = container; _id = Guid.NewGuid(); Role = role; + if (role == ContainerRole.Root) + { + _logger.LogDebug("Root Container Adaptor Created: {id}, {containerNAme}, {role}", _id, _container.Name, _container.Role); + } + else + { + _logger.LogDebug("Container Created: {id}, {role}", _id, _container.Name, _container.Role); + } + // _logger.LogInformation("Tenant Container Adaptor Created: {id}, {containerNAme}, {role}", _id, _container.Name, _container.Role); //ServiceProvider = new Lazy(() => //{ // return //}); } - public IServiceProvider GetServiceProvider() - { - return _container.GetInstance(); - } + //private IServiceProvider GetServiceProvider() + //{ + // return _container.GetInstance(); + //} public ContainerRole Role { get; set; } @@ -39,6 +51,7 @@ public void Configure(Action configure) //{ _container.Configure(_ => { + _logger.LogDebug("Configuring container: {id}, {containerNAme}, {role}", _id, _container.Name, _container.Role); var services = new ServiceCollection(); configure(services); _.Populate(services); @@ -48,17 +61,26 @@ public void Configure(Action configure) public ITenantContainerAdaptor CreateNestedContainer() { - return new StructureMapTenantContainerAdaptor(_container.GetNestedContainer(), ContainerRole.Scoped); + _logger.LogDebug("Creating nested container from container: {id}, {containerNAme}, {role}", _id, _container.Name, _container.Role); + return new StructureMapTenantContainerAdaptor(_logger, _container.GetNestedContainer(), ContainerRole.Scoped); } public ITenantContainerAdaptor CreateChildContainer() { - return new StructureMapTenantContainerAdaptor(_container.CreateChildContainer(), ContainerRole.Child); + _logger.LogDebug("Creating child container from container: {id}, {containerNAme}, {role}", _id, _container.Name, _container.Role); + return new StructureMapTenantContainerAdaptor(_logger, _container.CreateChildContainer(), ContainerRole.Child); } public void Dispose() { + _logger.LogDebug("Disposing of container: {id}, {containerNAme}, {role}", _id, _container.Name, _container.Role); _container.Dispose(); } + + //public new object GetService(Type serviceType) + //{ + // var sp = GetServiceProvider(); + // return sp.GetService(serviceType); + //} } } \ No newline at end of file diff --git a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerBuilder.cs b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerBuilder.cs index 879b3c5..fe855b4 100644 --- a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerBuilder.cs +++ b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerBuilder.cs @@ -1,33 +1,54 @@ using StructureMap; +using StructureMap.Pipeline; using System; using System.Threading.Tasks; namespace Dotnettency.Container { - public class StructureMapTenantContainerBuilder : ITenantContainerBuilder - { - public StructureMapTenantContainerBuilder(IContainer container, Action configure) - { - // Ensure.Argument.NotNull(container, nameof(container)); - // Ensure.Argument.NotNull(configure, nameof(configure)); - - Container = container; - Configure = configure; - } - - protected IContainer Container { get; } - protected Action Configure { get; } - - public virtual Task BuildAsync(TTenant tenant) - { - // Ensure.Argument.NotNull(tenant, nameof(tenant)); - - var tenantContainer = Container.CreateChildContainer(); - tenantContainer.Configure(config => Configure(tenant, config)); - ITenantContainerAdaptor adaptor = new StructureMapTenantContainerAdaptor(tenantContainer, ContainerRole.Child); - return Task.FromResult(adaptor); - } - } + //public class StructureMapTenantContainerBuilder : ITenantContainerBuilder + //{ + // public StructureMapTenantContainerBuilder(IContainer container, Action configure) + // { + // // Ensure.Argument.NotNull(container, nameof(container)); + // // Ensure.Argument.NotNull(configure, nameof(configure)); + + // Container = container; + // Configure = configure; + // } + + // protected IContainer Container { get; } + // protected Action Configure { get; } + + // public virtual Task BuildAsync(TTenant tenant) + // { + // // Ensure.Argument.NotNull(tenant, nameof(tenant)); + + // var tenantContainer = Container.CreateChildContainer(); + + + + + // tenantContainer.Configure(config => + // { + // // config.For() + // //.LifecycleIs(Lifecycles.Container) + // //.Use(); + // Configure(tenant, config); + // }); + // var report = tenantContainer.WhatDoIHave(); + // ITenantContainerAdaptor adaptor = tenantContainer.GetInstance(); + + // //new StructureMapTenantContainerAdaptor(tenantContainer, ContainerRole.Child); + + // // IServiceScopeFactory + + // // var sp = adaptor.GetServiceProvider(); + + + + // return Task.FromResult(adaptor); + // } + //} } \ No newline at end of file diff --git a/src/Dotnettency.Container.StructureMap/StructureMap/TenantContainerBuilder.cs b/src/Dotnettency.Container.StructureMap/StructureMap/TenantContainerBuilder.cs new file mode 100644 index 0000000..cb311d7 --- /dev/null +++ b/src/Dotnettency.Container.StructureMap/StructureMap/TenantContainerBuilder.cs @@ -0,0 +1,42 @@ +using Microsoft.Extensions.DependencyInjection; +using System; +using System.Threading.Tasks; + +namespace Dotnettency.Container +{ + //public class TenantContainerBuilder : ITenantContainerBuilder + //{ + // private readonly ITenantContainerAdaptor _parentContainer; + // private readonly Action _configureTenant; + + // public TenantContainerBuilder(ITenantContainerAdaptor parentContainer, Action configureTenant) + // { + // _parentContainer = parentContainer; + // _configureTenant = configureTenant; + // } + + // public Task BuildAsync(TTenant tenant) + // { + + // var tenantContainer = _parentContainer.CreateChildContainer(); + // tenantContainer.Configure(config => + // { + // // config.For() + // //.LifecycleIs(Lifecycles.Container) + // //.Use(); + // _configureTenant(tenant, config); + // }); + // //var report = tenantContainer.WhatDoIHave(); + // // ITenantContainerAdaptor adaptor = tenantContainer.GetInstance(); + + // //new StructureMapTenantContainerAdaptor(tenantContainer, ContainerRole.Child); + + // // IServiceScopeFactory + + // // var sp = adaptor.GetServiceProvider(); + // return Task.FromResult(tenantContainer); + // } + //} + + +} \ No newline at end of file diff --git a/src/Dotnettency.Container/AdaptedContainerBuilderOptions.cs b/src/Dotnettency.Container/AdaptedContainerBuilderOptions.cs index febe524..c312fcf 100644 --- a/src/Dotnettency.Container/AdaptedContainerBuilderOptions.cs +++ b/src/Dotnettency.Container/AdaptedContainerBuilderOptions.cs @@ -15,7 +15,7 @@ public AdaptedContainerBuilderOptions(ContainerBuilderOptions parentOpt ContainerBuilderOptions.Builder.ServiceProviderFactory = new Func(() => { - return HostContainerAdaptor().GetServiceProvider(); + return HostContainerAdaptor(); }); } diff --git a/src/Dotnettency.Container/ContainerBuilderOptions.cs b/src/Dotnettency.Container/ContainerBuilderOptions.cs index 9ee32d0..2b7e743 100644 --- a/src/Dotnettency.Container/ContainerBuilderOptions.cs +++ b/src/Dotnettency.Container/ContainerBuilderOptions.cs @@ -12,7 +12,7 @@ public ContainerBuilderOptions(MultitenancyOptionsBuilder builder) Builder = builder; builder.Services.AddSingleton, TenantContainerBuilderFactory>(); builder.Services.AddScoped, TenantContainerAccessor>(); - builder.Services.AddScoped, TenantRequestContainerAccessor>(); + // builder.Services.AddScoped, TenantRequestContainerAccessor>(); } public MultitenancyOptionsBuilder Builder { get; set; } diff --git a/src/Dotnettency.Container/Container/ITenantContainerAdaptor.cs b/src/Dotnettency.Container/ITenantContainerAdaptor.cs similarity index 88% rename from src/Dotnettency.Container/Container/ITenantContainerAdaptor.cs rename to src/Dotnettency.Container/ITenantContainerAdaptor.cs index c5e3264..44fb212 100644 --- a/src/Dotnettency.Container/Container/ITenantContainerAdaptor.cs +++ b/src/Dotnettency.Container/ITenantContainerAdaptor.cs @@ -3,9 +3,9 @@ namespace Dotnettency.Container { - public interface ITenantContainerAdaptor : IDisposable + public interface ITenantContainerAdaptor : IServiceProvider, IDisposable { - IServiceProvider GetServiceProvider(); + // IServiceProvider GetServiceProvider(); ITenantContainerAdaptor CreateNestedContainer(); ITenantContainerAdaptor CreateChildContainer(); diff --git a/src/Dotnettency.Container/Container/ITenantContainerFactory.cs b/src/Dotnettency.Container/ITenantContainerFactory.cs similarity index 100% rename from src/Dotnettency.Container/Container/ITenantContainerFactory.cs rename to src/Dotnettency.Container/ITenantContainerFactory.cs diff --git a/src/Dotnettency.Container/ITenantRequestContainerAccessor.cs b/src/Dotnettency.Container/ITenantRequestContainerAccessor.cs index 1b03e38..2556d09 100644 --- a/src/Dotnettency.Container/ITenantRequestContainerAccessor.cs +++ b/src/Dotnettency.Container/ITenantRequestContainerAccessor.cs @@ -3,9 +3,9 @@ namespace Dotnettency.Container { - public interface ITenantRequestContainerAccessor - where TTenant : class - { - Lazy> TenantRequestContainer { get; } - } + //public interface ITenantRequestContainerAccessor + // where TTenant : class + //{ + // Lazy> TenantRequestContainer { get; } + //} } \ No newline at end of file diff --git a/src/Dotnettency.Container/Container/ITenantStartup.cs b/src/Dotnettency.Container/ITenantStartup.cs similarity index 100% rename from src/Dotnettency.Container/Container/ITenantStartup.cs rename to src/Dotnettency.Container/ITenantStartup.cs diff --git a/src/Dotnettency.Container/PerRequestContainer.cs b/src/Dotnettency.Container/PerRequestContainer.cs index 1818f67..b6f0a18 100644 --- a/src/Dotnettency.Container/PerRequestContainer.cs +++ b/src/Dotnettency.Container/PerRequestContainer.cs @@ -7,13 +7,12 @@ namespace Dotnettency.Container public class PerRequestContainer : IDisposable { - private bool _hasSwapped = false; + // private bool _hasSwapped = false; - public PerRequestContainer(ITenantContainerAdaptor requestContainer, HttpContext httpContext) + public PerRequestContainer(ITenantContainerAdaptor requestContainer) { RequestContainer = requestContainer; - HttpContext = httpContext; - HttpContext.Items[nameof(PerRequestContainer)] = requestContainer; + //var sp = requestContainer.GetServiceProvider(); @@ -42,35 +41,41 @@ public PerRequestContainer(ITenantContainerAdaptor requestContainer, HttpContext // Scope = scopeFactory.CreateScope(); } - public HttpContext HttpContext { get; } + // public HttpContext HttpContext { get; } public ITenantContainerAdaptor RequestContainer { get; } - public async Task ExecuteWithinSwappedRequestContainer(Task task) + private Action OnDispose { get; set; } + + public async Task ExecuteWithinSwappedRequestContainer(RequestDelegate request, HttpContext context) { - if(!_hasSwapped) - { - IServiceProvider oldServiceProvider = HttpContext.RequestServices; + if (!context.Items.ContainsKey(nameof(PerRequestContainer))) + { + context.Items[nameof(PerRequestContainer)] = this; + IServiceProvider oldServiceProvider = context.RequestServices; try { - HttpContext.RequestServices = RequestContainer.GetServiceProvider(); - await task; + OnDispose = () => + { + context.Items.Remove(nameof(PerRequestContainer)); + RequestContainer.Dispose(); + }; + context.RequestServices = RequestContainer; + await request.Invoke(context); } finally { - HttpContext.RequestServices = oldServiceProvider; + context.RequestServices = oldServiceProvider; // throw; } - _hasSwapped = true; } - + } // public IServiceScope Scope { get; } public void Dispose() { - HttpContext.Items.Remove(nameof(PerRequestContainer)); - RequestContainer.Dispose(); + OnDispose(); // Scope.Dispose(); } } diff --git a/src/Dotnettency.Container/TenantContainerBuilder.cs b/src/Dotnettency.Container/TenantContainerBuilder.cs new file mode 100644 index 0000000..9150360 --- /dev/null +++ b/src/Dotnettency.Container/TenantContainerBuilder.cs @@ -0,0 +1,30 @@ +using Microsoft.Extensions.DependencyInjection; +using System; +using System.Threading.Tasks; + +namespace Dotnettency.Container +{ + public class TenantContainerBuilder : ITenantContainerBuilder + { + private readonly ITenantContainerAdaptor _parentContainer; + private readonly Action _configureTenant; + + public TenantContainerBuilder(ITenantContainerAdaptor parentContainer, Action configureTenant) + { + _parentContainer = parentContainer; + _configureTenant = configureTenant; + } + + public Task BuildAsync(TTenant tenant) + { + var tenantContainer = _parentContainer.CreateChildContainer(); + tenantContainer.Configure(config => + { + _configureTenant(tenant, config); + }); + return Task.FromResult(tenantContainer); + } + } + + +} \ No newline at end of file diff --git a/src/Dotnettency.Container/Container/TenantContainerBuilderFactory.cs b/src/Dotnettency.Container/TenantContainerBuilderFactory.cs similarity index 100% rename from src/Dotnettency.Container/Container/TenantContainerBuilderFactory.cs rename to src/Dotnettency.Container/TenantContainerBuilderFactory.cs diff --git a/src/Dotnettency.Container/Container/TenantContainerFactory.cs b/src/Dotnettency.Container/TenantContainerFactory.cs similarity index 100% rename from src/Dotnettency.Container/Container/TenantContainerFactory.cs rename to src/Dotnettency.Container/TenantContainerFactory.cs diff --git a/src/Dotnettency.Container/TenantContainerMiddleware.cs b/src/Dotnettency.Container/TenantContainerMiddleware.cs index 54ac206..d6a8a90 100644 --- a/src/Dotnettency.Container/TenantContainerMiddleware.cs +++ b/src/Dotnettency.Container/TenantContainerMiddleware.cs @@ -2,6 +2,7 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Logging; +using Microsoft.AspNetCore.Builder; namespace Dotnettency.Container { @@ -10,39 +11,50 @@ public class TenantContainerMiddleware { private readonly RequestDelegate _next; - private readonly ILogger _log; - private readonly ITenantContainerFactory _factory; - - // private Lazy> _containerFactory; + private readonly ILogger> _logger; + private readonly IApplicationBuilder _appBuilder; public TenantContainerMiddleware( RequestDelegate next, - ILoggerFactory loggerFactory - // ITenantContainerFactory factory - ) + ILogger> logger, + IApplicationBuilder appBuilder) { _next = next; - _log = loggerFactory.CreateLogger>(); - // _factory = factory; + _logger = logger; + _appBuilder = appBuilder; } - public async Task Invoke(HttpContext context, ITenantRequestContainerAccessor tenantRequestContainerAccessor) + public async Task Invoke(HttpContext context, ITenantContainerAccessor tenantContainerAccessor) { // log.LogDebug("Using multitenancy provider {multitenancyProvidertype}.", tenantAccessor.GetType().Name); - - var requestContainer = await tenantRequestContainerAccessor.TenantRequestContainer.Value; - if (requestContainer == null) + _logger.LogDebug("Tenant Container Middleware - Start."); + var tenantContainer = await tenantContainerAccessor.TenantContainer.Value; + if (tenantContainer == null) { + _logger.LogDebug("Tenant Container Middleware - No tenant container."); await _next.Invoke(context); return; } - // Replace request services with a nested version (for lifetime management - used to encpasulate a request). - using (requestContainer) + IServiceProvider oldAppBuilderServices = _appBuilder.ApplicationServices; + try { - _log.LogDebug("Setting Request Container: {containerId} - {containerName}", requestContainer.RequestContainer.ContainerId, requestContainer.RequestContainer.ContainerName); - await requestContainer.ExecuteWithinSwappedRequestContainer(_next.Invoke(context)); + _logger.LogDebug("Setting AppBuilder Services to Tenant Container: {containerId} - {containerName}", tenantContainer.ContainerId, tenantContainer.ContainerName); + _appBuilder.ApplicationServices = tenantContainer; + // Replace request services with a nested version (for lifetime management - used to encpasulate a request). + using (var perRequestContainer = new PerRequestContainer(tenantContainer.CreateNestedContainer())) + { + _logger.LogDebug("Setting Request Container: {containerId} - {containerName}", perRequestContainer.RequestContainer.ContainerId, perRequestContainer.RequestContainer.ContainerName); + await perRequestContainer.ExecuteWithinSwappedRequestContainer(_next, context); + _logger.LogDebug("Restoring Request Container"); + } } + finally + { + _logger.LogDebug("Restoring AppBuilder Services"); + _appBuilder.ApplicationServices = oldAppBuilderServices; + } + } } diff --git a/src/Dotnettency.Container/TenantRequestContainerAccessor.cs b/src/Dotnettency.Container/TenantRequestContainerAccessor.cs index 6ccad9b..4ab78b0 100644 --- a/src/Dotnettency.Container/TenantRequestContainerAccessor.cs +++ b/src/Dotnettency.Container/TenantRequestContainerAccessor.cs @@ -5,47 +5,47 @@ namespace Dotnettency.Container { - public class TenantRequestContainerAccessor : ITenantRequestContainerAccessor - where TTenant : class - { - private readonly ITenantShellAccessor _tenantShellAccessor; - private readonly ITenantContainerFactory _containerFactory; - - private readonly IHttpContextAccessor _httpContextAccessor; - private readonly ITenantContainerAccessor _tenantContainerAccessor; - - private readonly ILogger> _logger; - - public TenantRequestContainerAccessor( - ILogger> logger, - IHttpContextAccessor httpContextAccessor, - ITenantContainerAccessor tenantContainerAccessor) - { - _logger = logger; - _httpContextAccessor = httpContextAccessor; - _tenantContainerAccessor = tenantContainerAccessor; - - TenantRequestContainer = new Lazy>(async () => - { - var tenantContainer = await tenantContainerAccessor.TenantContainer.Value; - if (tenantContainer == null) - { - return null; - } - - var httpContext = _httpContextAccessor.HttpContext; - if (httpContext == null) - { - return null; - } - - var requestContainer = tenantContainer.CreateNestedContainer(); - var tenantRequestContainer = new PerRequestContainer(requestContainer, httpContext); - return tenantRequestContainer; - }); - } - - public Lazy> TenantRequestContainer { get; private set; } - - } + //public class TenantRequestContainerAccessor : ITenantRequestContainerAccessor + // where TTenant : class + //{ + // private readonly ITenantShellAccessor _tenantShellAccessor; + // private readonly ITenantContainerFactory _containerFactory; + + // private readonly IHttpContextAccessor _httpContextAccessor; + // private readonly ITenantContainerAccessor _tenantContainerAccessor; + + // private readonly ILogger> _logger; + + // public TenantRequestContainerAccessor( + // ILogger> logger, + // IHttpContextAccessor httpContextAccessor, + // ITenantContainerAccessor tenantContainerAccessor) + // { + // _logger = logger; + // _httpContextAccessor = httpContextAccessor; + // _tenantContainerAccessor = tenantContainerAccessor; + + // TenantRequestContainer = new Lazy>(async () => + // { + // var tenantContainer = await tenantContainerAccessor.TenantContainer.Value; + // if (tenantContainer == null) + // { + // return null; + // } + + // var httpContext = _httpContextAccessor.HttpContext; + // if (httpContext == null) + // { + // return null; + // } + + // var requestContainer = tenantContainer.CreateNestedContainer(); + // var tenantRequestContainer = new PerRequestContainer(requestContainer, httpContext); + // return tenantRequestContainer; + // }); + // } + + // public Lazy> TenantRequestContainer { get; private set; } + + //} } \ No newline at end of file diff --git a/src/Dotnettency.Container/UseBuilderExtensions.cs b/src/Dotnettency.Container/UseBuilderExtensions.cs index 385d863..02f3a79 100644 --- a/src/Dotnettency.Container/UseBuilderExtensions.cs +++ b/src/Dotnettency.Container/UseBuilderExtensions.cs @@ -20,7 +20,7 @@ public static class UseBuilderExtensions public static MultitenancyMiddlewareOptionsBuilder UsePerTenantContainers(this MultitenancyMiddlewareOptionsBuilder builder) where TTenant : class { - builder.ApplicationBuilder.UseMiddleware>(); + builder.ApplicationBuilder.UseMiddleware>(builder.ApplicationBuilder); return builder; } } diff --git a/src/Dotnettency.HostingEnvironment/TenantHostingEnvironmentContentRootMiddleware.cs b/src/Dotnettency.HostingEnvironment/TenantHostingEnvironmentContentRootMiddleware.cs index 3fe2e51..a33def1 100644 --- a/src/Dotnettency.HostingEnvironment/TenantHostingEnvironmentContentRootMiddleware.cs +++ b/src/Dotnettency.HostingEnvironment/TenantHostingEnvironmentContentRootMiddleware.cs @@ -48,17 +48,19 @@ public async Task Invoke(HttpContext context, ITenantShellAccessor tena var oldContentRootFilePrvovider = hosting.ContentRootFileProvider; try { + _logger.LogDebug("Hosting Environment Middleware - Swapping Content Root FileProvider."); hosting.ContentRootFileProvider = tenantContentRootFileSystem.Value.FileProvider; await _next(context); } finally { + _logger.LogDebug("Hosting Environment Middleware - Restoring Content Root FileProvider."); hosting.ContentRootFileProvider = tenantContentRootFileSystem.Value.FileProvider; } } else { - _logger.LogDebug("Null tenant shell - No Tenant ContentRoot File Provider."); + _logger.LogDebug("Hosting Environment Middleware - Null tenant shell - No Tenant ContentRoot File Provider."); await _next(context); } diff --git a/src/Dotnettency.HostingEnvironment/TenantHostingEnvironmentWebRootMiddleware.cs b/src/Dotnettency.HostingEnvironment/TenantHostingEnvironmentWebRootMiddleware.cs index 6865659..a6eff56 100644 --- a/src/Dotnettency.HostingEnvironment/TenantHostingEnvironmentWebRootMiddleware.cs +++ b/src/Dotnettency.HostingEnvironment/TenantHostingEnvironmentWebRootMiddleware.cs @@ -47,17 +47,19 @@ public async Task Invoke(HttpContext context, ITenantShellAccessor tena var oldWebRootFilePrvovider = hosting.WebRootFileProvider; try { + _logger.LogDebug("Hosting Environment Middleware - Swapping Web Root FileProvider."); hosting.WebRootFileProvider = tenantFileSystem.Value.FileProvider; await _next(context); } finally { + _logger.LogDebug("Hosting Environment Middleware - Restoring Web Root FileProvider."); hosting.ContentRootFileProvider = tenantFileSystem.Value.FileProvider; } } else { - _logger.LogDebug("Null tenant shell - No Tenant Web Root File Provider."); + _logger.LogDebug("Hosting Environment Middleware - Null tenant shell - No Tenant WebRoot File Provider."); await _next(context); } } diff --git a/src/Dotnettency.MiddlewarePipeline/DelegateTenantMiddlewarePipelineFactory.cs b/src/Dotnettency.MiddlewarePipeline/DelegateTenantMiddlewarePipelineFactory.cs index 88dc7e2..0aa153e 100644 --- a/src/Dotnettency.MiddlewarePipeline/DelegateTenantMiddlewarePipelineFactory.cs +++ b/src/Dotnettency.MiddlewarePipeline/DelegateTenantMiddlewarePipelineFactory.cs @@ -19,31 +19,35 @@ public DelegateTenantMiddlewarePipelineFactory(Action Get(IApplicationBuilder appBuilder, TTenant tenant, ITenantContainerAccessor tenantContainerAccessor, RequestDelegate next) + public async Task Create(IApplicationBuilder appBuilder, TTenant tenant, RequestDelegate next) { //return Task.Run(() => //{ - return await BuildTenantPipeline(appBuilder, tenant, tenantContainerAccessor, next); + return await BuildTenantPipeline(appBuilder, tenant, next); // }); } - protected virtual async Task BuildTenantPipeline(IApplicationBuilder rootApp, TTenant tenant, ITenantContainerAccessor tenantContainer, RequestDelegate next) + protected virtual Task BuildTenantPipeline(IApplicationBuilder rootApp, TTenant tenant, RequestDelegate next) { + return Task.Run(() => + { - var branchBuilder = rootApp.New(); - var appServices = await tenantContainer.TenantContainer.Value; - branchBuilder.ApplicationServices = appServices.GetServiceProvider(); - var builderContext = new TenantPipelineBuilderContext - { - // TenantContext = tenantContext, - Tenant = tenant - }; + var branchBuilder = rootApp.New(); + // var appServices = await tenantContainer.TenantContainer.Value; + // branchBuilder.ApplicationServices = appServices; + var builderContext = new TenantPipelineBuilderContext + { + // TenantContext = tenantContext, + Tenant = tenant + }; - _configuration(builderContext, branchBuilder); + _configuration(builderContext, branchBuilder); + + // register root pipeline at the end of the tenant branch + branchBuilder.Run(next); + return branchBuilder.Build(); + }); - // register root pipeline at the end of the tenant branch - branchBuilder.Run(next); - return branchBuilder.Build(); } } diff --git a/src/Dotnettency.MiddlewarePipeline/ITenantMiddlewarePipelineFactory.cs b/src/Dotnettency.MiddlewarePipeline/ITenantMiddlewarePipelineFactory.cs index d125003..fa7b8ef 100644 --- a/src/Dotnettency.MiddlewarePipeline/ITenantMiddlewarePipelineFactory.cs +++ b/src/Dotnettency.MiddlewarePipeline/ITenantMiddlewarePipelineFactory.cs @@ -1,7 +1,5 @@ -using Dotnettency.Container; -using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Http; -using System; using System.Threading.Tasks; namespace Dotnettency @@ -9,6 +7,6 @@ namespace Dotnettency public interface ITenantMiddlewarePipelineFactory where TTenant : class { - Task Get(IApplicationBuilder appBuilder, TTenant tenant, ITenantContainerAccessor tenantContainerAccessor, RequestDelegate next); + Task Create(IApplicationBuilder appBuilder, TTenant tenant, RequestDelegate next); } } \ No newline at end of file diff --git a/src/Dotnettency.MiddlewarePipeline/ITenantPipelineAccessor.cs b/src/Dotnettency.MiddlewarePipeline/ITenantPipelineAccessor.cs new file mode 100644 index 0000000..3e8efdc --- /dev/null +++ b/src/Dotnettency.MiddlewarePipeline/ITenantPipelineAccessor.cs @@ -0,0 +1,13 @@ +using System; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Builder; + +namespace Dotnettency.MiddlewarePipeline +{ + public interface ITenantPipelineAccessor + where TTenant : class + { + Func>> TenantPipeline { get; } + } +} diff --git a/src/Dotnettency.MiddlewarePipeline/TenantPipelineAccessor.cs b/src/Dotnettency.MiddlewarePipeline/TenantPipelineAccessor.cs new file mode 100644 index 0000000..279ea06 --- /dev/null +++ b/src/Dotnettency.MiddlewarePipeline/TenantPipelineAccessor.cs @@ -0,0 +1,54 @@ +using System; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Http; +using Dotnettency.Container; + +namespace Dotnettency.MiddlewarePipeline +{ + public class TenantPipelineAccessor : ITenantPipelineAccessor + where TTenant : class + { + private readonly ITenantShellAccessor _tenantShellAccessor; + private readonly ITenantMiddlewarePipelineFactory _tenantPipelineFactory; + + public TenantPipelineAccessor( + ITenantMiddlewarePipelineFactory tenantPipelineFactory, + TenantShellAccessor tenantShellAccessor) + { + _tenantShellAccessor = tenantShellAccessor; + _tenantPipelineFactory = tenantPipelineFactory; + + TenantPipeline = new Func>>((appBuilder, next) => + { + var lazy = new Lazy>(async () => + { + + var tenantShell = await _tenantShellAccessor.CurrentTenantShell.Value; + if (tenantShell != null) + { + var tenant = tenantShell?.Tenant; + var tenantPipeline = tenantShell.GetOrAddMiddlewarePipeline(new Lazy>(() => + { + return _tenantPipelineFactory.Create(appBuilder, tenant, next); + })); + var requestDelegate = await tenantPipeline.Value; + return requestDelegate; + }// + else + { + return next; + // _logger.LogDebug("Null tenant shell - No Tenant Middleware Pipeline to execute."); + // await _next(context); + } + }); + return lazy; + }); + } + + public Func>> TenantPipeline { get; } + + } + + +} diff --git a/src/Dotnettency.MiddlewarePipeline/TenantPipelineMiddleware.cs b/src/Dotnettency.MiddlewarePipeline/TenantPipelineMiddleware.cs index c4bb10e..2291ae1 100644 --- a/src/Dotnettency.MiddlewarePipeline/TenantPipelineMiddleware.cs +++ b/src/Dotnettency.MiddlewarePipeline/TenantPipelineMiddleware.cs @@ -15,36 +15,29 @@ public class TenantPipelineMiddleware private readonly RequestDelegate _next; private readonly IApplicationBuilder _rootApp; private readonly ILogger> _logger; - private readonly ITenantMiddlewarePipelineFactory _factory; - + public TenantPipelineMiddleware( RequestDelegate next, IApplicationBuilder rootApp, - ILogger> logger, - ITenantMiddlewarePipelineFactory factory) + ILogger> logger ) { _next = next; _rootApp = rootApp; _logger = logger; - _factory = factory; + //_factory = factory; } - public async Task Invoke(HttpContext context, ITenantContainerAccessor tenantContainerAccessor, ITenantShellAccessor tenantShellAccessor) + public async Task Invoke(HttpContext context, ITenantPipelineAccessor tenantPipelineAccessor) { - var tenantShell = await tenantShellAccessor.CurrentTenantShell.Value; - if (tenantShell != null) + _logger.LogDebug("Tenant Pipeline Middleware - Getting Tenant Pipeline."); + var tenantPipeline = await tenantPipelineAccessor.TenantPipeline(_rootApp, _next).Value; + if (tenantPipeline != null) { - var tenant = tenantShell?.Tenant; - var tenantPipeline = tenantShell.GetOrAddMiddlewarePipeline(new Lazy>(() => - { - //await tenantContainerAccessor. - return _factory.Get(_rootApp, tenant, tenantContainerAccessor, _next); - })); - var requestDelegate = await tenantPipeline.Value; - await requestDelegate(context); + _logger.LogDebug("Tenant Pipeline Middleware - Executing Pipeline."); + await tenantPipeline(context); } else { diff --git a/src/Dotnettency.MiddlewarePipeline/TenantPipelineOptionsBuilder.cs b/src/Dotnettency.MiddlewarePipeline/TenantPipelineOptionsBuilder.cs index 5cfec72..763965d 100644 --- a/src/Dotnettency.MiddlewarePipeline/TenantPipelineOptionsBuilder.cs +++ b/src/Dotnettency.MiddlewarePipeline/TenantPipelineOptionsBuilder.cs @@ -15,11 +15,11 @@ public TenantPipelineOptionsBuilder(MultitenancyOptionsBuilder builder) _builder = builder; } - public MultitenancyOptionsBuilder OnInitialiseTenantPipeline(Action, IApplicationBuilder> configuration) { var factory = new DelegateTenantMiddlewarePipelineFactory(configuration); _builder.Services.AddSingleton>(factory); + _builder.Services.AddSingleton, TenantPipelineAccessor>(); return _builder; } } diff --git a/src/Dotnettency.MiddlewarePipeline/UsePerTenantBuilderExtensions.cs b/src/Dotnettency.MiddlewarePipeline/UsePerTenantBuilderExtensions.cs index 4ee422d..5e40937 100644 --- a/src/Dotnettency.MiddlewarePipeline/UsePerTenantBuilderExtensions.cs +++ b/src/Dotnettency.MiddlewarePipeline/UsePerTenantBuilderExtensions.cs @@ -7,7 +7,7 @@ public static class UsePerTenantBuilderExtensions { public static MultitenancyMiddlewareOptionsBuilder UsePerTenantMiddlewarePipeline(this MultitenancyMiddlewareOptionsBuilder builder) where TTenant : class - { + { builder.ApplicationBuilder.UseMiddleware>(builder.ApplicationBuilder); return builder; } diff --git a/src/Dotnettency.Modules/Dotnettency.Modules.csproj b/src/Dotnettency.Modules/Dotnettency.Modules.csproj index 8ca3dbe..d4b6e68 100644 --- a/src/Dotnettency.Modules/Dotnettency.Modules.csproj +++ b/src/Dotnettency.Modules/Dotnettency.Modules.csproj @@ -18,6 +18,7 @@ + diff --git a/src/Dotnettency.Modules/ModuleManager.cs b/src/Dotnettency.Modules/ModuleManager.cs index 37a114e..bc93b0a 100644 --- a/src/Dotnettency.Modules/ModuleManager.cs +++ b/src/Dotnettency.Modules/ModuleManager.cs @@ -57,6 +57,13 @@ public async Task EnsureStarted(Func> containerFac { await Task.WhenAll(allModules.Select(m => m.EnsureStarted(containerFactory, rootAppBuilder, sharedServices))); }); + + // collate routers + foreach (var module in allModules.Where(m => m.Router != null)) + { + this.ModulesRouter.AddModuleRouter(module); + } + // ModulesRouter = modulesRouter; Started = true; diff --git a/src/Dotnettency.Modules/ModuleRegisterBuilderExtensions.cs b/src/Dotnettency.Modules/ModuleRegisterBuilderExtensions.cs deleted file mode 100644 index ad9d3c4..0000000 --- a/src/Dotnettency.Modules/ModuleRegisterBuilderExtensions.cs +++ /dev/null @@ -1,14 +0,0 @@ -using Microsoft.Extensions.DependencyInjection; -using System; - -namespace Dotnettency.Modules -{ - public static class ModuleRegisterBuilderExtensions - { - - - } - - - -} diff --git a/src/Dotnettency.Modules/ModuleShell.cs b/src/Dotnettency.Modules/ModuleShell.cs index f747a0b..84f4d41 100644 --- a/src/Dotnettency.Modules/ModuleShell.cs +++ b/src/Dotnettency.Modules/ModuleShell.cs @@ -27,46 +27,6 @@ public ModuleShell(TModule module, ModuleShellOptions options) public IRouter Router { get; set; } - //internal async Task EnsureStarted(Func> containerFactory, IApplicationBuilder rootAppBuilder, ModulesRouter modulesRouter) - //{ - // if (IsStarted) - // { - // return; - // } - - // var container = await containerFactory(); - // var routedModule = Module as IRoutedModule; - // container = container.CreateChildContainer(); - - // container.Configure((services) => - // { - // services.AddRouting(); //it's assumed routing is required for a routed module! - // routedModule.ConfigureServices(services); - // }); - - // Container = container; - - // var routedModuleShell = this as ModuleShell; - // // Must register this module with the module router. - // modulesRouter.AddModuleRouter((moduleRouteBuilder) => - // { - // routedModule.ConfigureRoutes(moduleRouteBuilder); - // var moduleRouter = moduleRouteBuilder.Build(); - // moduleRouteBuilder.ApplicationBuilder.UseRouter(moduleRouter); - // this.Router = moduleRouter; - - // AppBuilder = moduleRouteBuilder.ApplicationBuilder; - // MiddlewarePipeline = AppBuilder.Build(); - - // return routedModuleShell; - // }, Container.GetServiceProvider()); - - - // IsStarted = true; - - - //} - public async Task EnsureStarted(Func> containerFactory, IApplicationBuilder rootAppBuilder, IServiceCollection sharedServices) { if (IsStarted) @@ -96,7 +56,7 @@ public async Task EnsureStarted(Func> containerFac if (Options.GetRouter != null) { var moduleAppBuilder = rootAppBuilder.New(); - var moduleServicesProvider = Container.GetServiceProvider(); + var moduleServicesProvider = Container; moduleAppBuilder.ApplicationServices = moduleServicesProvider; this.Router = Options.GetRouter(moduleAppBuilder); } @@ -104,7 +64,6 @@ public async Task EnsureStarted(Func> containerFac IsStarted = true; } - } } diff --git a/src/Dotnettency.Modules/ModuleShellOptions.cs b/src/Dotnettency.Modules/ModuleShellOptions.cs index 27acc6d..58f5a9c 100644 --- a/src/Dotnettency.Modules/ModuleShellOptions.cs +++ b/src/Dotnettency.Modules/ModuleShellOptions.cs @@ -7,7 +7,7 @@ namespace Dotnettency { public class ModuleShellOptions { - public bool IsolatedServices { get; set; } + // public bool IsolatedServices { get; set; } public Action OnConfigureSharedServices { get; set; } diff --git a/src/Dotnettency.Modules/ModuleShellOptionsBuilder.cs b/src/Dotnettency.Modules/ModuleShellOptionsBuilder.cs index ac02b21..0b72c4f 100644 --- a/src/Dotnettency.Modules/ModuleShellOptionsBuilder.cs +++ b/src/Dotnettency.Modules/ModuleShellOptionsBuilder.cs @@ -8,52 +8,37 @@ namespace Dotnettency { public class ModuleShellOptionsBuilder { - private ModuleShellOptions _moduleShellOptions = new ModuleShellOptions(); public ModuleShellOptionsBuilder(TModule module) { Module = module; - // Tenant = tenant; } - //public ModuleShellOptionsBuilder UseIsolatedContainer() - //{ - // _moduleShellOptions.IsRoutedModule = true; - // return this; - //} - public TModule Module { get; set; } - //// public TTenant Tenant { get; set; } - - public ModuleShellOptionsBuilder SetOnConfigureSharedServices(Action onConfigure) + public ModuleShellOptionsBuilder HasSharedServices(Action onConfigure) { _moduleShellOptions.OnConfigureSharedServices = onConfigure; return this; } - - - public ModuleShellOptionsBuilder SetOnConfigureMiddleware(Action onConfigureMiddleware) + public ModuleShellOptionsBuilder HasMiddlewareConfiguration(Action onConfigureMiddleware) { _moduleShellOptions.OnConfigureMiddleware = onConfigureMiddleware; return this; } - public ModuleShellOptionsBuilder UseRouterFactory(Func router, Action onConfigure) + public ModuleShellOptionsBuilder HasRoutedContainer(Func router, Action onConfigure) { _moduleShellOptions.OnConfigureModuleServices = onConfigure; _moduleShellOptions.GetRouter = router; return this; - } + internal ModuleShellOptions Build() { return _moduleShellOptions; - } - } - -} +} \ No newline at end of file diff --git a/src/Dotnettency.Modules/ModulesMiddleware.cs b/src/Dotnettency.Modules/ModulesMiddleware.cs index e358297..d926d8d 100644 --- a/src/Dotnettency.Modules/ModulesMiddleware.cs +++ b/src/Dotnettency.Modules/ModulesMiddleware.cs @@ -7,10 +7,8 @@ namespace Dotnettency.Modules { - public class ModulesMiddleware where TTenant : class - where TModule : IModule { private readonly RequestDelegate _next; @@ -34,7 +32,6 @@ IModuleManager moduleManager public async Task Invoke(HttpContext context, ITenantContainerAccessor tenantContainerAccessor) { - // need to ensure all modules are initialised. await _moduleManager.EnsureStarted(() => { @@ -44,12 +41,12 @@ await _moduleManager.EnsureStarted(() => var router = _moduleManager.GetModulesRouter(); var routeContext = new ModulesRouteContext(context); routeContext.RouteData.Routers.Add(router); - // context.GetRouteData().Routers.Add(router); + // context.GetRouteData().Routers.Add(router); await router.RouteAsync(routeContext); if (routeContext.Handler == null) { - _logger.LogInformation("Request did not match routes for any modules.."); + _logger.LogDebug("Request did not match routes for any modules.."); await _next.Invoke(context); } else @@ -63,7 +60,7 @@ await _moduleManager.EnsureStarted(() => RouteData = routeContext.RouteData, }; // context.GetRouteData().PushState(routeContext., routeContext.RouteData,) - _logger.LogInformation("Request matched module {0}", routedModule.Module.GetType().Name); + _logger.LogDebug("Request matched module {0}", routedModule.Module.GetType().Name); // Replace request services with a nested version of the routed modules container. @@ -72,7 +69,7 @@ await _moduleManager.EnsureStarted(() => _logger.LogDebug("Setting Request: {containerId} - {containerName}", scope.ContainerId, scope.ContainerName); var oldRequestServices = context.RequestServices; - context.RequestServices = scope.GetServiceProvider(); + context.RequestServices = scope; await routeContext.Handler(routeContext.HttpContext); _logger.LogDebug("Restoring Request Container"); context.RequestServices = oldRequestServices; diff --git a/src/Dotnettency.Modules/ModulesRouteContext.cs b/src/Dotnettency.Modules/ModulesRouteContext.cs index a5a2ae2..74a5f70 100644 --- a/src/Dotnettency.Modules/ModulesRouteContext.cs +++ b/src/Dotnettency.Modules/ModulesRouteContext.cs @@ -3,10 +3,8 @@ namespace Dotnettency.Modules { - public class ModulesRouteContext : RouteContext - // where TTenant : class + public class ModulesRouteContext : RouteContext { - // private readonly RouteContext _parentRouteContext; public ModulesRouteContext(HttpContext httpContext) : base(httpContext) { @@ -15,9 +13,6 @@ public ModulesRouteContext(HttpContext httpContext) : base(httpContext) public IModuleShell ModuleShell { get; set; } - //public bool NotMatched { get; set; } - - // public RouteContext ParentRouteContext { get; set; } } } diff --git a/src/Dotnettency.Modules/RoutingFeature.cs b/src/Dotnettency.Modules/RoutingFeature.cs index 998c010..c2b7e24 100644 --- a/src/Dotnettency.Modules/RoutingFeature.cs +++ b/src/Dotnettency.Modules/RoutingFeature.cs @@ -6,5 +6,4 @@ public class RoutingFeature : IRoutingFeature { public RouteData RouteData { get; set; } } - } diff --git a/src/Dotnettency.Modules/ServiceCollectionExtensions.cs b/src/Dotnettency.Modules/ServiceCollectionExtensions.cs index f829e46..351e92d 100644 --- a/src/Dotnettency.Modules/ServiceCollectionExtensions.cs +++ b/src/Dotnettency.Modules/ServiceCollectionExtensions.cs @@ -7,7 +7,6 @@ namespace Dotnettency.Modules public static class ServiceCollectionExtensions { - public static IServiceCollection AddModules(this IServiceCollection servicies, IRouteHandler defaultRouteHandler, Action> registerModules) @@ -17,7 +16,5 @@ public static IServiceCollection AddModules(this IServiceCollection ser registerModules(registerModulesBuilder); return servicies; } - - } } diff --git a/src/Dotnettency.Modules/UseModulesBuilderExtensions.cs b/src/Dotnettency.Modules/UseModulesBuilderExtensions.cs index 456e06e..9427c42 100644 --- a/src/Dotnettency.Modules/UseModulesBuilderExtensions.cs +++ b/src/Dotnettency.Modules/UseModulesBuilderExtensions.cs @@ -1,24 +1,28 @@ -using Dotnettency.Modules; +using Dotnettency.Container.StructureMap; +using Dotnettency.Modules; using Microsoft.AspNetCore.Builder; +using Microsoft.Extensions.DependencyInjection; namespace Dotnettency { public static class UseModulesBuilderExtensions { - public static MultitenancyMiddlewareOptionsBuilder UseModules(this MultitenancyMiddlewareOptionsBuilder builder) + public static UseModulesOptionsBuilder UseModules(this MultitenancyMiddlewareOptionsBuilder builder) where TTenant : class - where TModule : IModule { - builder.ApplicationBuilder.UseMiddleware>(builder.ApplicationBuilder); - return builder; + var optionsBuilder = new UseModulesOptionsBuilder(builder); + return optionsBuilder; } public static IApplicationBuilder UseModules(this IApplicationBuilder builder) where TTenant : class where TModule : IModule { - builder.UseMiddleware>(builder); + var container = builder.ApplicationServices; + var resolved = container.GetRequiredService(typeof(IModuleManager)); + builder.UseMiddleware>(builder, resolved); return builder; } } + } \ No newline at end of file diff --git a/src/Dotnettency.Modules/UseModulesOptionsBuilder.cs b/src/Dotnettency.Modules/UseModulesOptionsBuilder.cs new file mode 100644 index 0000000..3ff1b47 --- /dev/null +++ b/src/Dotnettency.Modules/UseModulesOptionsBuilder.cs @@ -0,0 +1,28 @@ +using Dotnettency.Modules; +using Microsoft.AspNetCore.Builder; +using Microsoft.Extensions.DependencyInjection; + +namespace Dotnettency +{ + public class UseModulesOptionsBuilder + where TTenant : class + { + private MultitenancyMiddlewareOptionsBuilder _parent; + + public UseModulesOptionsBuilder(MultitenancyMiddlewareOptionsBuilder parent) + { + _parent = parent; + } + + public MultitenancyMiddlewareOptionsBuilder OfType() + { + var container = _parent.ApplicationBuilder.ApplicationServices; + var resolved = container.GetRequiredService(typeof(IModuleManager)); + _parent.ApplicationBuilder.UseMiddleware>(_parent.ApplicationBuilder, resolved); + + // _parent.ApplicationBuilder.UseMiddleware>(_parent.ApplicationBuilder); + return _parent; + } + } + +} \ No newline at end of file diff --git a/src/Dotnettency.Sample/Program.cs b/src/Dotnettency.Sample/Program.cs index e622b95..a49fc0f 100644 --- a/src/Dotnettency.Sample/Program.cs +++ b/src/Dotnettency.Sample/Program.cs @@ -12,7 +12,7 @@ public static void Main(string[] args) .UseContentRoot(Directory.GetCurrentDirectory()) .UseIISIntegration() .UseStartup() - .UseUrls("http://*:5000", "http://*:5001", "http://*:5002", "http://*:5003") + .UseUrls("http://*:5000", "http://*:5001", "http://*:5002", "http://*:5003", "http://*:5004") .Build(); host.Run(); diff --git a/src/Dotnettency.Sample/Startup.cs b/src/Dotnettency.Sample/Startup.cs index cbf813b..e9b1ca1 100644 --- a/src/Dotnettency.Sample/Startup.cs +++ b/src/Dotnettency.Sample/Startup.cs @@ -10,21 +10,29 @@ using Newtonsoft.Json; using Dotnettency.Modules; using Microsoft.AspNetCore.Routing; +using Dotnettency.Container.StructureMap; +using Dotnettency.Container; namespace Sample { public class Startup { private readonly IHostingEnvironment _environment; - public Startup(IHostingEnvironment environment) + private readonly ILoggerFactory _loggerFactory; + + public Startup(IHostingEnvironment environment, ILoggerFactory loggerFactory) { _environment = environment; + _loggerFactory = loggerFactory; } // This method gets called by the runtime. Use this method to add services to the container. // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940 public IServiceProvider ConfigureServices(IServiceCollection services) { + _loggerFactory.AddConsole(); + var logger = _loggerFactory.CreateLogger(); + var serviceProvider = services.AddMultiTenancy((options) => { options @@ -33,9 +41,16 @@ public IServiceProvider ConfigureServices(IServiceCollection services) { // Extension methods available here for supported containers. We are using structuremap.. // We are using an overload that allows us to configure structuremap with familiar IServiceCollection. - containerBuilder.WithStructureMapServiceCollection((tenant, tenantServices) => + containerBuilder.WithStructureMap((tenant, tenantServices) => { - tenantServices.AddSingleton(); + tenantServices.AddSingleton((sp) => + { + //var logger = sp.GetRequiredService>(); + logger.LogDebug("Resolving SomeTenantService"); + return new SomeTenantService(tenant, sp.GetRequiredService()); + }); + + // tenantServices.AddSingleton(); var defaultRouteHandler = new RouteHandler(context => { @@ -66,16 +81,19 @@ public IServiceProvider ConfigureServices(IServiceCollection services) // 2. Optionally providing an IRouter so that the services can be isolated and restored only when the router handles the request. modules.OnSetupModule((moduleOptions) => { + logger.LogDebug("Setting up module: " + moduleOptions.Module.GetType().FullName); // we allow ISharedModules to configure services at tenant level, and middleware at tenant level. var sharedModule = moduleOptions.Module as ISharedModule; if (sharedModule != null) { - moduleOptions.SetOnConfigureSharedServices((moduleServices) => + moduleOptions.HasSharedServices((moduleServices) => { + logger.LogDebug("Module is adding to tenant services"); sharedModule.ConfigureServices(moduleServices); }); - moduleOptions.SetOnConfigureMiddleware((appBuilder) => + moduleOptions.HasMiddlewareConfiguration((appBuilder) => { + logger.LogDebug("Module is adding to tenant middleware pipeline"); sharedModule.ConfigureMiddleware(appBuilder); }); } @@ -84,14 +102,15 @@ public IServiceProvider ConfigureServices(IServiceCollection services) var routedModule = moduleOptions.Module as IRoutedModule; if (routedModule != null) { - - moduleOptions.UseRouterFactory((moduleAppBuilder) => + logger.LogDebug("Module is confoguring router"); + moduleOptions.HasRoutedContainer((moduleAppBuilder) => { var moduleRouteBuilder = new RouteBuilder(moduleAppBuilder, moMatchRouteHandler); routedModule.ConfigureRoutes(moduleRouteBuilder); var moduleRouter = moduleRouteBuilder.Build(); return moduleRouter; - }, moduleServices => routedModule.ConfigureServices(moduleServices)); + }, + moduleServices => routedModule.ConfigureServices(moduleServices)); } }); @@ -102,10 +121,12 @@ public IServiceProvider ConfigureServices(IServiceCollection services) }) .ConfigureTenantMiddleware((middlewareOptions) => { + // This method is called when need to initialise the middleware pipeline for a tenant (i.e on first request for the tenant) middlewareOptions.OnInitialiseTenantPipeline((context, appBuilder) => { - appBuilder.UseStaticFiles(); // This demonstrates static files middleware, but below I am also using per tenant hosting environment which means each tenant can see its own static files in addition to the main application level static files. + logger.LogDebug("Configuring tenant middleware pipeline for tenant: " + context.Tenant?.Name); + // appBuilder.UseStaticFiles(); // This demonstrates static files middleware, but below I am also using per tenant hosting environment which means each tenant can see its own static files in addition to the main application level static files. appBuilder.UseModules(); @@ -145,7 +166,7 @@ public IServiceProvider ConfigureServices(IServiceCollection services) public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) { - loggerFactory.AddConsole(); + // loggerFactory.AddConsole(); if (env.IsDevelopment()) { @@ -164,7 +185,8 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF hostingEnvironmentOptions.UseTenantWebRootFileProvider(); }) .UsePerTenantMiddlewarePipeline(); - //.UseModules(); + //.UseModules(); + }); //app.UseOwin(x => @@ -178,12 +200,19 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF // app. app.Run(async (context) => { + var logger = context.RequestServices.GetRequiredService>(); + logger.LogDebug("App Run.."); + + var container = context.RequestServices as ITenantContainerAdaptor; + logger.LogDebug("App Run Container Is: {id}, {containerNAme}, {role}", container.ContainerId, container.ContainerName, container.Role); + + // Use ITenantAccessor to access the current tenant. - var tenantAccessor = context.RequestServices.GetRequiredService>(); + var tenantAccessor = container.GetRequiredService>(); var tenant = await tenantAccessor.CurrentTenant.Value; // This service was registered as singleton in tenant container. - var someTenantService = context.RequestServices.GetService(); + var someTenantService = container.GetService(); // The tenant shell to access context for the tenant - even if the tenant is null var tenantShellAccessor = context.RequestServices.GetRequiredService>(); @@ -208,7 +237,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF var jsonResult = JsonConvert.SerializeObject(result); await context.Response.WriteAsync(jsonResult, Encoding.UTF8); - + logger.LogDebug("App Run Finished.."); // context.Response. diff --git a/src/Sample.Mvc/Startup.cs b/src/Sample.Mvc/Startup.cs index f36c723..1a929d2 100644 --- a/src/Sample.Mvc/Startup.cs +++ b/src/Sample.Mvc/Startup.cs @@ -47,7 +47,7 @@ public IServiceProvider ConfigureServices(IServiceCollection services) { // Extension methods available here for supported containers. We are using structuremap.. // We are using an overload that allows us to configure structuremap with familiar IServiceCollection. - containerBuilder.WithStructureMapServiceCollection((tenant, tenantServices) => + containerBuilder.WithStructureMap((tenant, tenantServices) => { // tenantServices.AddSingleton(); }); From 12f27a300c788002df239c42f3ba394cf0ad9400 Mon Sep 17 00:00:00 2001 From: Darrell Tunnell Date: Mon, 14 Aug 2017 12:30:01 +0100 Subject: [PATCH 15/86] Modules working. --- .../TenantPipelineAccessor.cs | 1 - .../TenantPipelineOptionsBuilder.cs | 2 +- .../UseModulesBuilderExtensions.cs | 6 ++--- .../UseModulesOptionsBuilder.cs | 6 ++--- src/Dotnettency/MultitenancyOptionsBuilder.cs | 2 +- ...uestAuthorityTenantDistinguisherFactory.cs | 21 +++++++++++++++ .../RequestUriTenantDistinguisherFactory.cs | 22 --------------- .../TenantDistinguisher.cs | 1 - src/Dotnettency/UriHelper.cs | 27 +++++++++++++++++++ 9 files changed, 56 insertions(+), 32 deletions(-) create mode 100644 src/Dotnettency/TenantDistinguisher/RequestAuthorityTenantDistinguisherFactory.cs delete mode 100644 src/Dotnettency/TenantDistinguisher/RequestUriTenantDistinguisherFactory.cs diff --git a/src/Dotnettency.MiddlewarePipeline/TenantPipelineAccessor.cs b/src/Dotnettency.MiddlewarePipeline/TenantPipelineAccessor.cs index 279ea06..8378ccd 100644 --- a/src/Dotnettency.MiddlewarePipeline/TenantPipelineAccessor.cs +++ b/src/Dotnettency.MiddlewarePipeline/TenantPipelineAccessor.cs @@ -2,7 +2,6 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Http; -using Dotnettency.Container; namespace Dotnettency.MiddlewarePipeline { diff --git a/src/Dotnettency.MiddlewarePipeline/TenantPipelineOptionsBuilder.cs b/src/Dotnettency.MiddlewarePipeline/TenantPipelineOptionsBuilder.cs index 763965d..33a8ce6 100644 --- a/src/Dotnettency.MiddlewarePipeline/TenantPipelineOptionsBuilder.cs +++ b/src/Dotnettency.MiddlewarePipeline/TenantPipelineOptionsBuilder.cs @@ -19,7 +19,7 @@ public MultitenancyOptionsBuilder OnInitialiseTenantPipeline(Action(configuration); _builder.Services.AddSingleton>(factory); - _builder.Services.AddSingleton, TenantPipelineAccessor>(); + _builder.Services.AddScoped, TenantPipelineAccessor>(); return _builder; } } diff --git a/src/Dotnettency.Modules/UseModulesBuilderExtensions.cs b/src/Dotnettency.Modules/UseModulesBuilderExtensions.cs index 9427c42..19963d3 100644 --- a/src/Dotnettency.Modules/UseModulesBuilderExtensions.cs +++ b/src/Dotnettency.Modules/UseModulesBuilderExtensions.cs @@ -18,9 +18,9 @@ public static IApplicationBuilder UseModules(this IApplication where TTenant : class where TModule : IModule { - var container = builder.ApplicationServices; - var resolved = container.GetRequiredService(typeof(IModuleManager)); - builder.UseMiddleware>(builder, resolved); + // var container = builder.ApplicationServices; + // var resolved = container.GetRequiredService(typeof(IModuleManager)); + builder.UseMiddleware>(builder); return builder; } } diff --git a/src/Dotnettency.Modules/UseModulesOptionsBuilder.cs b/src/Dotnettency.Modules/UseModulesOptionsBuilder.cs index 3ff1b47..3794fec 100644 --- a/src/Dotnettency.Modules/UseModulesOptionsBuilder.cs +++ b/src/Dotnettency.Modules/UseModulesOptionsBuilder.cs @@ -16,9 +16,9 @@ public UseModulesOptionsBuilder(MultitenancyMiddlewareOptionsBuilder pa public MultitenancyMiddlewareOptionsBuilder OfType() { - var container = _parent.ApplicationBuilder.ApplicationServices; - var resolved = container.GetRequiredService(typeof(IModuleManager)); - _parent.ApplicationBuilder.UseMiddleware>(_parent.ApplicationBuilder, resolved); + // var container = _parent.ApplicationBuilder.ApplicationServices; + // var resolved = container.GetRequiredService(typeof(IModuleManager)); + _parent.ApplicationBuilder.UseMiddleware>(_parent.ApplicationBuilder); // _parent.ApplicationBuilder.UseMiddleware>(_parent.ApplicationBuilder); return _parent; diff --git a/src/Dotnettency/MultitenancyOptionsBuilder.cs b/src/Dotnettency/MultitenancyOptionsBuilder.cs index d43dd59..699eff2 100644 --- a/src/Dotnettency/MultitenancyOptionsBuilder.cs +++ b/src/Dotnettency/MultitenancyOptionsBuilder.cs @@ -26,7 +26,7 @@ public MultitenancyOptionsBuilder(IServiceCollection serviceCollection) Services.AddScoped, TenantShellAccessor>(); // By default, we use a URI from the request to identify tenants. - Services.AddSingleton, RequestUriTenantDistinguisherFactory>(); + Services.AddSingleton, RequestAuthorityTenantDistinguisherFactory>(); // Support injection of TTenant (has side effect that may block during injection) Services.AddScoped((sp => diff --git a/src/Dotnettency/TenantDistinguisher/RequestAuthorityTenantDistinguisherFactory.cs b/src/Dotnettency/TenantDistinguisher/RequestAuthorityTenantDistinguisherFactory.cs new file mode 100644 index 0000000..5f4fce9 --- /dev/null +++ b/src/Dotnettency/TenantDistinguisher/RequestAuthorityTenantDistinguisherFactory.cs @@ -0,0 +1,21 @@ +using Microsoft.AspNetCore.Http; + +namespace Dotnettency +{ + public class RequestAuthorityTenantDistinguisherFactory : HttpContextTenantDistinguisherFactory + where TTenant : class + { + public RequestAuthorityTenantDistinguisherFactory(IHttpContextAccessor httpContextAccessor) : base(httpContextAccessor) + { + } + + protected override TenantDistinguisher GetTenantDistinguisher(HttpContext context) + { + var uri = context.Request.GetAuthorityUri(); + // identify requests by authority only + // uri. + var identity = new TenantDistinguisher(uri); + return identity; + } + } +} \ No newline at end of file diff --git a/src/Dotnettency/TenantDistinguisher/RequestUriTenantDistinguisherFactory.cs b/src/Dotnettency/TenantDistinguisher/RequestUriTenantDistinguisherFactory.cs deleted file mode 100644 index 244fa2e..0000000 --- a/src/Dotnettency/TenantDistinguisher/RequestUriTenantDistinguisherFactory.cs +++ /dev/null @@ -1,22 +0,0 @@ -using Microsoft.AspNetCore.Http; - -namespace Dotnettency -{ - public class RequestUriTenantDistinguisherFactory : HttpContextTenantDistinguisherFactory - where TTenant : class - { - - public RequestUriTenantDistinguisherFactory(IHttpContextAccessor httpContextAccessor) : base(httpContextAccessor) - { - } - - protected override TenantDistinguisher GetTenantDistinguisher(HttpContext context) - { - var uri = context.Request.GetUri(); - var identity = new TenantDistinguisher(uri); - return identity; - } - - - } -} \ No newline at end of file diff --git a/src/Dotnettency/TenantDistinguisher/TenantDistinguisher.cs b/src/Dotnettency/TenantDistinguisher/TenantDistinguisher.cs index deb0201..b3bd7ca 100644 --- a/src/Dotnettency/TenantDistinguisher/TenantDistinguisher.cs +++ b/src/Dotnettency/TenantDistinguisher/TenantDistinguisher.cs @@ -17,7 +17,6 @@ public static implicit operator TenantDistinguisher(Uri key) return value; } - public override int GetHashCode() { if (Uri == null) diff --git a/src/Dotnettency/UriHelper.cs b/src/Dotnettency/UriHelper.cs index 4971115..bcfd856 100644 --- a/src/Dotnettency/UriHelper.cs +++ b/src/Dotnettency/UriHelper.cs @@ -54,5 +54,32 @@ public static Uri GetUri(this HttpRequest request) .Append(queryString) .ToString()); } + + /// + /// Returns the combined components of the request URL authority. + /// + /// The request to assemble the uri pieces from. + /// + public static Uri GetAuthorityUri(this HttpRequest request) + { + + var host = request.Host.Value; + var pathBase = request.PathBase.Value; + // var path = request.Path.Value; + var queryString = request.QueryString.Value; + + // PERF: Calculate string length to allocate correct buffer size for StringBuilder. + var length = request.Scheme.Length + SchemeDelimiter.Length + host.Length + + pathBase.Length; + + return new Uri(new StringBuilder(length) + .Append(request.Scheme) + .Append(SchemeDelimiter) + .Append(host) + .Append(pathBase) + //.Append(path) + .Append(queryString) + .ToString()); + } } } \ No newline at end of file From 547fdeb7bead1fd6bb1aa54f7c2d8cfce2d7e336 Mon Sep 17 00:00:00 2001 From: Darrell Tunnell Date: Mon, 14 Aug 2017 15:04:42 +0100 Subject: [PATCH 16/86] Modules working. Nancy support in progress. --- .../ContainerBuilderOptions.cs | 2 +- .../ITenantRequestContainerAccessor.cs | 10 +- .../PerRequestContainer.cs | 6 +- .../TenantContainerMiddleware.cs | 6 +- .../TenantRequestContainerAccessor.cs | 76 ++--- .../ModuleRegisterBuilderExtensions.cs | 31 +- .../MvcModulesBuilder.cs | 12 +- .../TenantContainerNancyBootstrapper.cs | 18 +- .../NancyMiddleware.cs | 4 +- .../NancyModuleManager.cs | 286 ------------------ .../NancyModuleRegisterBuilder.cs | 70 ----- .../NancyModuleShellOptionsBuilder.cs | 36 --- .../NancyModulesRouter.cs | 103 ------- .../ServiceCollectionExtensions.cs | 9 +- .../ModuleRegisterBuilder.cs | 71 +++-- .../ServiceCollectionExtensions.cs | 5 +- src/Dotnettency.Sample/Startup.cs | 16 +- src/src.sln | 16 +- 18 files changed, 129 insertions(+), 648 deletions(-) delete mode 100644 src/Dotnettency.Modules.Nancy/NancyModuleManager.cs delete mode 100644 src/Dotnettency.Modules.Nancy/NancyModuleRegisterBuilder.cs delete mode 100644 src/Dotnettency.Modules.Nancy/NancyModuleShellOptionsBuilder.cs delete mode 100644 src/Dotnettency.Modules.Nancy/NancyModulesRouter.cs diff --git a/src/Dotnettency.Container/ContainerBuilderOptions.cs b/src/Dotnettency.Container/ContainerBuilderOptions.cs index 2b7e743..9ee32d0 100644 --- a/src/Dotnettency.Container/ContainerBuilderOptions.cs +++ b/src/Dotnettency.Container/ContainerBuilderOptions.cs @@ -12,7 +12,7 @@ public ContainerBuilderOptions(MultitenancyOptionsBuilder builder) Builder = builder; builder.Services.AddSingleton, TenantContainerBuilderFactory>(); builder.Services.AddScoped, TenantContainerAccessor>(); - // builder.Services.AddScoped, TenantRequestContainerAccessor>(); + builder.Services.AddScoped, TenantRequestContainerAccessor>(); } public MultitenancyOptionsBuilder Builder { get; set; } diff --git a/src/Dotnettency.Container/ITenantRequestContainerAccessor.cs b/src/Dotnettency.Container/ITenantRequestContainerAccessor.cs index 2556d09..1b03e38 100644 --- a/src/Dotnettency.Container/ITenantRequestContainerAccessor.cs +++ b/src/Dotnettency.Container/ITenantRequestContainerAccessor.cs @@ -3,9 +3,9 @@ namespace Dotnettency.Container { - //public interface ITenantRequestContainerAccessor - // where TTenant : class - //{ - // Lazy> TenantRequestContainer { get; } - //} + public interface ITenantRequestContainerAccessor + where TTenant : class + { + Lazy> TenantRequestContainer { get; } + } } \ No newline at end of file diff --git a/src/Dotnettency.Container/PerRequestContainer.cs b/src/Dotnettency.Container/PerRequestContainer.cs index b6f0a18..c96e212 100644 --- a/src/Dotnettency.Container/PerRequestContainer.cs +++ b/src/Dotnettency.Container/PerRequestContainer.cs @@ -69,13 +69,17 @@ public async Task ExecuteWithinSwappedRequestContainer(RequestDelegate request, // throw; } } + else + { + await request.Invoke(context); + } } // public IServiceScope Scope { get; } public void Dispose() { - OnDispose(); + OnDispose?.Invoke(); // Scope.Dispose(); } } diff --git a/src/Dotnettency.Container/TenantContainerMiddleware.cs b/src/Dotnettency.Container/TenantContainerMiddleware.cs index d6a8a90..17ef854 100644 --- a/src/Dotnettency.Container/TenantContainerMiddleware.cs +++ b/src/Dotnettency.Container/TenantContainerMiddleware.cs @@ -24,7 +24,7 @@ public TenantContainerMiddleware( _appBuilder = appBuilder; } - public async Task Invoke(HttpContext context, ITenantContainerAccessor tenantContainerAccessor) + public async Task Invoke(HttpContext context, ITenantContainerAccessor tenantContainerAccessor, ITenantRequestContainerAccessor requestContainerAccessor) { // log.LogDebug("Using multitenancy provider {multitenancyProvidertype}.", tenantAccessor.GetType().Name); _logger.LogDebug("Tenant Container Middleware - Start."); @@ -41,8 +41,10 @@ public async Task Invoke(HttpContext context, ITenantContainerAccessor { _logger.LogDebug("Setting AppBuilder Services to Tenant Container: {containerId} - {containerName}", tenantContainer.ContainerId, tenantContainer.ContainerName); _appBuilder.ApplicationServices = tenantContainer; + var perRequestContainer = await requestContainerAccessor.TenantRequestContainer.Value; + // Replace request services with a nested version (for lifetime management - used to encpasulate a request). - using (var perRequestContainer = new PerRequestContainer(tenantContainer.CreateNestedContainer())) + using (perRequestContainer) { _logger.LogDebug("Setting Request Container: {containerId} - {containerName}", perRequestContainer.RequestContainer.ContainerId, perRequestContainer.RequestContainer.ContainerName); await perRequestContainer.ExecuteWithinSwappedRequestContainer(_next, context); diff --git a/src/Dotnettency.Container/TenantRequestContainerAccessor.cs b/src/Dotnettency.Container/TenantRequestContainerAccessor.cs index 4ab78b0..3412262 100644 --- a/src/Dotnettency.Container/TenantRequestContainerAccessor.cs +++ b/src/Dotnettency.Container/TenantRequestContainerAccessor.cs @@ -1,51 +1,39 @@ using System; using System.Threading.Tasks; -using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Logging; namespace Dotnettency.Container { - //public class TenantRequestContainerAccessor : ITenantRequestContainerAccessor - // where TTenant : class - //{ - // private readonly ITenantShellAccessor _tenantShellAccessor; - // private readonly ITenantContainerFactory _containerFactory; - - // private readonly IHttpContextAccessor _httpContextAccessor; - // private readonly ITenantContainerAccessor _tenantContainerAccessor; - - // private readonly ILogger> _logger; - - // public TenantRequestContainerAccessor( - // ILogger> logger, - // IHttpContextAccessor httpContextAccessor, - // ITenantContainerAccessor tenantContainerAccessor) - // { - // _logger = logger; - // _httpContextAccessor = httpContextAccessor; - // _tenantContainerAccessor = tenantContainerAccessor; - - // TenantRequestContainer = new Lazy>(async () => - // { - // var tenantContainer = await tenantContainerAccessor.TenantContainer.Value; - // if (tenantContainer == null) - // { - // return null; - // } - - // var httpContext = _httpContextAccessor.HttpContext; - // if (httpContext == null) - // { - // return null; - // } - - // var requestContainer = tenantContainer.CreateNestedContainer(); - // var tenantRequestContainer = new PerRequestContainer(requestContainer, httpContext); - // return tenantRequestContainer; - // }); - // } - - // public Lazy> TenantRequestContainer { get; private set; } - - //} + public class TenantRequestContainerAccessor : ITenantRequestContainerAccessor + where TTenant : class + { + // private readonly ITenantShellAccessor _tenantShellAccessor; + //private readonly ITenantContainerFactory _containerFactory; + private readonly ITenantContainerAccessor _tenantContainerAccessor; + private readonly ILogger> _logger; + + public TenantRequestContainerAccessor( + ILogger> logger, + ITenantContainerAccessor tenantContainerAccessor) + { + _logger = logger; + _tenantContainerAccessor = tenantContainerAccessor; + + TenantRequestContainer = new Lazy>(async () => + { + var tenantContainer = await tenantContainerAccessor.TenantContainer.Value; + if (tenantContainer == null) + { + return null; + } + + var requestContainer = tenantContainer.CreateNestedContainer(); + var tenantRequestContainer = new PerRequestContainer(requestContainer); + return tenantRequestContainer; + }); + } + + public Lazy> TenantRequestContainer { get; private set; } + + } } \ No newline at end of file diff --git a/src/Dotnettency.Modules.Mvc/ModuleRegisterBuilderExtensions.cs b/src/Dotnettency.Modules.Mvc/ModuleRegisterBuilderExtensions.cs index 28ba258..e08f58a 100644 --- a/src/Dotnettency.Modules.Mvc/ModuleRegisterBuilderExtensions.cs +++ b/src/Dotnettency.Modules.Mvc/ModuleRegisterBuilderExtensions.cs @@ -1,15 +1,40 @@ using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Internal; +using Microsoft.Extensions.DependencyInjection; using System; namespace Dotnettency.Modules { public static class ModuleRegisterBuilderExtensions { - public static MvcModulesBuilder AddMvcModules(this ModuleRegisterBuilder builder, Action mvcOptionsSetup = null) + + public static IServiceCollection AddMvcModules(this IServiceCollection servicies, + Action> registerModules) + where TModule : class, IModule + { + var routeHandler = DefaultRouteHandler ?? sp.GetRequiredService(); + var registerModulesBuilder = new ModuleRegisterBuilder(servicies, defaultRouteHandler); + registerModules(registerModulesBuilder); + return servicies; + } + + public static ModuleRegisterBuilder ConfigureMvc(this ModuleRegisterBuilder builder, Action mvcOptionsSetup = null) where TModule : class, IRoutedModule { - var mvcModulesBuilder = new MvcModulesBuilder(builder, mvcOptionsSetup); - return mvcModulesBuilder; + if (mvcOptionsSetup != null) + { + builder.Services.AddMvc(mvcOptionsSetup); + } + else + { + builder.Services.AddMvc(); + } + + var routeHandler = sp.GetRequiredService(); + + return builder; + + } } diff --git a/src/Dotnettency.Modules.Mvc/MvcModulesBuilder.cs b/src/Dotnettency.Modules.Mvc/MvcModulesBuilder.cs index 025d731..e24e92b 100644 --- a/src/Dotnettency.Modules.Mvc/MvcModulesBuilder.cs +++ b/src/Dotnettency.Modules.Mvc/MvcModulesBuilder.cs @@ -8,7 +8,7 @@ namespace Dotnettency.Modules public class MvcModulesBuilder where TModule : class, IRoutedModule { - public MvcModulesBuilder(ModuleRegisterBuilder parentBuilder, Action mvcOptionsSetup = null) + public MvcModulesBuilder(ModuleRegisterBuilder parentBuilder, Action mvcOptionsSetup = null) { ParentBuilder = parentBuilder; if (mvcOptionsSetup != null) @@ -19,13 +19,9 @@ public MvcModulesBuilder(ModuleRegisterBuilder parentBuilder, Action /// /// @@ -33,8 +29,6 @@ public MvcModulesBuilder(ModuleRegisterBuilder parentBuilder, Action public ModuleRegisterBuilder Build(Action> configureModuleOptionsBuilder, IRouteHandler defaultRouteHandler) { - - var services = ParentBuilder.Services; services.AddSingleton, ModuleManager>((sp) => { @@ -77,8 +71,6 @@ public ModuleRegisterBuilder Build(Action ParentBuilder { get; set; } } diff --git a/src/Dotnettency.Modules.Nancy/NancyImpl/TenantContainerNancyBootstrapper.cs b/src/Dotnettency.Modules.Nancy/NancyImpl/TenantContainerNancyBootstrapper.cs index ea2ea59..e304f2a 100644 --- a/src/Dotnettency.Modules.Nancy/NancyImpl/TenantContainerNancyBootstrapper.cs +++ b/src/Dotnettency.Modules.Nancy/NancyImpl/TenantContainerNancyBootstrapper.cs @@ -50,43 +50,43 @@ protected override ITenantContainerAdaptor CreateRequestContainer(NancyContext c protected override IEnumerable GetAllModules(ITenantContainerAdaptor container) { - var sp = this.ApplicationContainer.GetServiceProvider(); + var sp = this.ApplicationContainer; return sp.GetServices(); } public override INancyEnvironment GetEnvironment() { - var sp = this.ApplicationContainer.GetServiceProvider(); + var sp = this.ApplicationContainer; return sp.GetService(); } protected override IEnumerable GetApplicationStartupTasks() { - var sp = this.ApplicationContainer.GetServiceProvider(); + var sp = this.ApplicationContainer; return sp.GetServices(); } protected override IDiagnostics GetDiagnostics() { - var sp = ApplicationContainer.GetServiceProvider(); + var sp = ApplicationContainer; return sp.GetService(); } protected override INancyEngine GetEngineInternal() { - var sp = ApplicationContainer.GetServiceProvider(); + var sp = ApplicationContainer; return sp.GetService(); } protected override INancyEnvironmentConfigurator GetEnvironmentConfigurator() { - var sp = ApplicationContainer.GetServiceProvider(); + var sp = ApplicationContainer; return sp.GetService(); } protected override IEnumerable GetRegistrationTasks() { - var sp = ApplicationContainer.GetServiceProvider(); + var sp = ApplicationContainer; return sp.GetServices(); } @@ -95,13 +95,13 @@ protected override IEnumerable GetRegistrationTasks() protected override INancyModule GetModule(ITenantContainerAdaptor container, Type moduleType) { - var sp = container.GetServiceProvider(); + var sp = container; return (INancyModule)sp.GetService(moduleType); } protected override IEnumerable RegisterAndGetRequestStartupTasks(ITenantContainerAdaptor container, Type[] requestStartupTypes) { - var sp = container.GetServiceProvider(); + var sp = container; return requestStartupTypes.Select(sp.GetService).Cast().ToArray(); } diff --git a/src/Dotnettency.Modules.Nancy/NancyMiddleware.cs b/src/Dotnettency.Modules.Nancy/NancyMiddleware.cs index fbb4832..9cb6d8f 100644 --- a/src/Dotnettency.Modules.Nancy/NancyMiddleware.cs +++ b/src/Dotnettency.Modules.Nancy/NancyMiddleware.cs @@ -38,11 +38,11 @@ public async Task Invoke(HttpContext context, ITenantNancyBootstrapperAccessor - where TModule : INancyModule - { - Task EnsureStarted(Func> containerFactory, IApplicationBuilder rootAppBuilder); - - NancyModulesRouter GetModulesRouter(); - } - - public interface INancyModuleShell - where TModule : INancyModule - { - IApplicationBuilder AppBuilder { get; } - ITenantContainerAdaptor Container { get; set; } - bool IsStarted { get; } - INancyModule Module { get; set; } - ModuleShellOptions Options { get; } - Task EnsureStarted(Func> containerFactory, IApplicationBuilder rootAppBuilder, IServiceCollection sharedServices); - } - - public interface IRoutedNancyModuleShell : INancyModuleShell - where TModule : INancyModule - { - RequestDelegate MiddlewarePipeline { get; set; } - IRouter Router { get; } - } - - public class RoutedNancyModuleShell : IRoutedNancyModuleShell - where TModule : INancyModule - { - //private IRoutedModule routedModule; - - private NancyModulesRouter _modulesRouter; - - public ModuleShellOptions Options { get; } - - public RoutedNancyModuleShell(TModule module, ModuleShellOptions options, NancyModulesRouter modulesRouter) - { - Options = options; - Module = module; - _modulesRouter = modulesRouter; - } - - public INancyModule Module { get; set; } - - public bool IsStarted { get; private set; } - - public ITenantContainerAdaptor Container { get; set; } - public IApplicationBuilder AppBuilder { get; private set; } - public IRouter Router { get; private set; } - - public RequestDelegate MiddlewarePipeline { get; set; } - - public async Task EnsureStarted(Func> containerFactory, IApplicationBuilder rootAppBuilder, IServiceCollection sharedServices) - { - if (IsStarted) - { - return; - } - - var container = await containerFactory(); - var routedModule = Module as IRoutedModule; - container = container.CreateChildContainer(); - - container.Configure((services) => - { - services.AddRouting(); //it's assumed routing is required for a routed module! - routedModule.ConfigureServices(services); - }); - - Container = container; - - var routedModuleShell = this as NancyModuleShell; - - var moduleAppBuilder = rootAppBuilder.New(); - - var moduleServicesProvider = Container.GetServiceProvider(); - moduleAppBuilder.ApplicationServices = moduleServicesProvider; - - var moduleRouteBuilder = new RouteBuilder(moduleAppBuilder, _modulesRouter.NullMatchRouteHandler); - routedModule.ConfigureRoutes(moduleRouteBuilder); - var moduleRouter = moduleRouteBuilder.Build(); - moduleRouteBuilder.ApplicationBuilder.UseRouter(moduleRouter); - AppBuilder = moduleRouteBuilder.ApplicationBuilder; - MiddlewarePipeline = AppBuilder.Build(); - - this.Router = moduleRouter; - - // Must register this module with the module router. - _modulesRouter.AddModuleRouter(this); - - IsStarted = true; - - - } - } - - public class NancyModuleShell : IModuleShell - where TModule : IModule - { - - public ModuleShellOptions Options { get; } - - // public Func ServicesFactory { get; } - - public NancyModuleShell(TModule module, ModuleShellOptions options) - { - Options = options; - Module = module; - // ServicesFactory = servicesFactory; - //Services = services; - } - - public IModule Module { get; set; } - - public bool IsStarted { get; private set; } - - public ITenantContainerAdaptor Container { get; set; } - public IApplicationBuilder AppBuilder { get; private set; } - - public async Task EnsureStarted(Func> containerFactory, IApplicationBuilder rootAppBuilder, IServiceCollection sharedServices) - { - if (IsStarted) - { - return; - } - - var container = await containerFactory(); - - // configure container. - var sharedModule = Module as ISharedModule; - if (sharedModule != null) - { - // var services = ServicesFactory(); - sharedModule.ConfigureServices(sharedServices); - //container.Configure((services) => - //{ - - //}); - } - - Container = container; - - // configure middleware. - sharedModule.ConfigureMiddleware(rootAppBuilder); - - IsStarted = true; - } - - - } - - public class NancyModulesRouteContext : RouteContext - where TModule : INancyModule - // where TTenant : class - { - // private readonly RouteContext _parentRouteContext; - - public NancyModulesRouteContext(HttpContext httpContext) : base(httpContext) - { - // NotMatched = false; - } - - public INancyModuleShell ModuleShell { get; set; } - - //public bool NotMatched { get; set; } - - // public RouteContext ParentRouteContext { get; set; } - } - - public class NancyModuleManager : INancyModuleManager - where TModule : INancyModule - { - private readonly SemaphoreSlim _semaphore = new SemaphoreSlim(1, 1); - - public bool Started { get; private set; } - - public NancyModuleManager(NancyModulesRouter modulesRouter) - { - Modules = new List>(); - ModulesRouter = modulesRouter; - } - - private List> Modules { get; set; } - - public void AddModule(INancyModuleShell module) - { - Modules.Add(module); - } - - public NancyModulesRouter ModulesRouter { get; set; } - - public async Task EnsureStarted(Func> containerFactory, IApplicationBuilder rootAppBuilder) - { - if (Started) - { - return; - } - - await _semaphore.WaitAsync(); - try - { - if (Started) - { - return; - } - - var allModules = Modules.ToArray(); - - //var defaultRouteHandler = new RouteHandler(context => - //{ - // var routeValues = context.GetRouteData().Values; - // return context.Response.WriteAsync( - // $"Hello! Route values: {string.Join(", ", routeValues)}"); - //}); - - // var modulesRouter = new ModulesRouter(rootAppBuilder, defaultRouteHandler); - //todo: PERF: make the EnsureStarted task on each module a lazy so that its only run once and we dont create new tasks on every request. - // start shared modules first, as these are for libraries that add services and middleware that can impact downstream / routed modules. - - - - // allModules.Select(a=>a.Module).OfType(); - - var container = await containerFactory(); - - container.Configure(async sharedServices => - { - await Task.WhenAll(allModules.Select(m => m.EnsureStarted(containerFactory, rootAppBuilder, sharedServices))); - - //foreach (var item in allModules) - //{ - // var sharedModule = item as ModuleShell; - // var routedModule = item as RoutedModuleShell; - - //} - - //var sharedModules = allModules.OfType>().ToArray(); - //if (sharedModules.Any()) - //{ - - - //} - - }); - - - // configure all ISharedModules into the same ServiceCollection to avoid duplicate registrations. - - - - // configure all IRoutedModules - var routedModules = allModules.OfType>().ToArray(); - // routed modules can't add to tenant level services. - await Task.WhenAll(routedModules.Select(m => m.EnsureStarted(containerFactory, rootAppBuilder, null))); - - // ModulesRouter = modulesRouter; - Started = true; - - } - finally - { - _semaphore.Release(); - } - - } - - public NancyModulesRouter GetModulesRouter() - { - return ModulesRouter; - } - } -} diff --git a/src/Dotnettency.Modules.Nancy/NancyModuleRegisterBuilder.cs b/src/Dotnettency.Modules.Nancy/NancyModuleRegisterBuilder.cs deleted file mode 100644 index 588e0eb..0000000 --- a/src/Dotnettency.Modules.Nancy/NancyModuleRegisterBuilder.cs +++ /dev/null @@ -1,70 +0,0 @@ -using Microsoft.AspNetCore.Routing; -using Microsoft.Extensions.DependencyInjection; -using Nancy; -using System; - -namespace Dotnettency.Modules -{ - public class NancyModuleRegisterBuilder - where TModule : class, INancyModule - { - private IServiceCollection _services; - public NancyModuleRegisterBuilder(IServiceCollection servicies) - { - _services = servicies; - _services.AddRouting(); // needed for modular routing. - } - - public NancyModuleRegisterBuilder AddModule() - where TImplementation : class, TModule - { - _services.AddTransient(); - return this; - } - - public void OnSetupModule(Action> configureModuleOptionsBuilder, RouteHandler defaultRouteHandler) - { - // var moduleShell = new - var modulesRouter = new NancyModulesRouter(defaultRouteHandler); - // _services.AddSingleton(modulesRouter); - - _services.AddSingleton, NancyModuleManager>((sp) => - { - var allModules = sp.GetServices(); - var moduleManager = new NancyModuleManager(modulesRouter); - - // shared modules all popualte the same service collection - // var services = new ServiceCollection(); - foreach (var item in allModules) - { - var moduleOptionsBuilder = new NancyModuleShellOptionsBuilder(item); - configureModuleOptionsBuilder(moduleOptionsBuilder); - var moduleShellOptions = moduleOptionsBuilder.Build(); - - var routedModule = item as IRoutedModule; - if (routedModule != null) // these need to be routed. - { - // modulesRouter. - // var routedModuleOptions = moduleShellOptions as ModuleShellOptions; - var routedModuleShell = new RoutedNancyModuleShell(item, moduleShellOptions, modulesRouter); - // var moduleShell = routedModuleShell as IModuleShell; - moduleManager.AddModule(routedModuleShell); - } - else - { - - var nonRoutedModuleShell = new NancyModuleShell(item, moduleShellOptions); - // var moduleShell = routedModuleShell as IModuleShell; - moduleManager.AddModule(nonRoutedModuleShell); - } - - } - return moduleManager; - }); - - } - } - - - -} diff --git a/src/Dotnettency.Modules.Nancy/NancyModuleShellOptionsBuilder.cs b/src/Dotnettency.Modules.Nancy/NancyModuleShellOptionsBuilder.cs deleted file mode 100644 index 4c7f6d5..0000000 --- a/src/Dotnettency.Modules.Nancy/NancyModuleShellOptionsBuilder.cs +++ /dev/null @@ -1,36 +0,0 @@ -using Nancy; - -namespace Dotnettency -{ - public class NancyModuleShellOptionsBuilder - // where TTenant : class - where TModule : INancyModule - { - - private ModuleShellOptions _moduleShellOptions = new ModuleShellOptions(); - - public NancyModuleShellOptionsBuilder(TModule module) - { - Module = module; - // Tenant = tenant; - } - - //public ModuleShellOptionsBuilder UseIsolatedContainer() - //{ - // _moduleShellOptions.IsRoutedModule = true; - // return this; - //} - - public TModule Module { get; set; } - - //// public TTenant Tenant { get; set; } - - internal ModuleShellOptions Build() - { - return _moduleShellOptions; - - } - - } - -} diff --git a/src/Dotnettency.Modules.Nancy/NancyModulesRouter.cs b/src/Dotnettency.Modules.Nancy/NancyModulesRouter.cs deleted file mode 100644 index 246aece..0000000 --- a/src/Dotnettency.Modules.Nancy/NancyModulesRouter.cs +++ /dev/null @@ -1,103 +0,0 @@ -using System.Collections.Generic; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Routing; -using Nancy; - -namespace Dotnettency.Modules -{ - public class NancyModulesRouter : IRouter - where TModule : INancyModule - { - - public NancyModulesRouter(RouteHandler defaultRouteHandler) - { - DefaultRouteHandler = defaultRouteHandler; - // _appBuilder = appBuilder; - RoutedModules = new LinkedList>(); - - // if adding a new module, we want the first modules default route handler to be chained to the last, so that we can evaluate a null match. - NullMatchRouteHandler = new RouteHandler(context => - { - // context.Items["NUL"] - return null; - - //context.GetRouteData(). - //var routeValues = context.GetRouteData().Values; - //return context.Response.WriteAsync( - // $"Hello! Route values: {string.Join(", ", routeValues)}"); - }); - - } - - public LinkedList> RoutedModules { get; set; } - - public void AddModuleRouter(IRoutedNancyModuleShell routedModuleShell) - { - var newNode = new LinkedListNode>(routedModuleShell); - RoutedModules.AddLast(routedModuleShell); - } - - public VirtualPathData GetVirtualPath(VirtualPathContext context) - { - var currentNode = RoutedModules.First; - while ((currentNode != null)) - { - var module = currentNode.Value; - var moduleRouter = module.Router; - var virtulPath = moduleRouter.GetVirtualPath(context); - if (virtulPath != null) - { - return virtulPath; - } - currentNode = currentNode.Next; - } - return null; - } - - public async Task RouteAsync(RouteContext context) - { - - var moduleRouteContext = new ModuleRouteContext(context.HttpContext, context); - - var currentNode = RoutedModules.First; - while ((currentNode != null)) - { - var module = currentNode.Value; - - // context.HttpContext.GetRouteData().Routers.Add(router); - await module.Router.RouteAsync(moduleRouteContext); - if (moduleRouteContext.Handler != null) - { - var modulesRouteContext = context as NancyModulesRouteContext; - var cast = currentNode.Value as INancyModuleShell; - modulesRouteContext.ModuleShell = cast; - - var existingRouteData = context.HttpContext.GetRouteData(); - context.Handler = moduleRouteContext.Handler; - context.RouteData = moduleRouteContext.RouteData; - - // existingRouteData.PushState(module.Router, context.RouteData.Values, context.RouteData.DataTokens); - return; - } - else - { - currentNode = currentNode.Next; - } - //if (moduleRouteContext.NotMatched) - //{ - // currentNode = currentNode.Next; - // continue; - //} - - - } - } - - public RouteHandler DefaultRouteHandler { get; set; } - - public RouteHandler NullMatchRouteHandler { get; set; } - - - } - -} diff --git a/src/Dotnettency.Modules.Nancy/ServiceCollectionExtensions.cs b/src/Dotnettency.Modules.Nancy/ServiceCollectionExtensions.cs index 80151e6..0679a42 100644 --- a/src/Dotnettency.Modules.Nancy/ServiceCollectionExtensions.cs +++ b/src/Dotnettency.Modules.Nancy/ServiceCollectionExtensions.cs @@ -17,13 +17,6 @@ public static IServiceCollection AddNancy(this IServiceCollection servi return services; } - public static IServiceCollection AddNancyModules(this IServiceCollection servicies, - Action> registerModules) - where TModule : class, INancyModule - { - var registerModulesBuilder = new NancyModuleRegisterBuilder(servicies); - registerModules(registerModulesBuilder); - return servicies; - } + } } diff --git a/src/Dotnettency.Modules/ModuleRegisterBuilder.cs b/src/Dotnettency.Modules/ModuleRegisterBuilder.cs index cd5db48..adbf178 100644 --- a/src/Dotnettency.Modules/ModuleRegisterBuilder.cs +++ b/src/Dotnettency.Modules/ModuleRegisterBuilder.cs @@ -9,54 +9,51 @@ namespace Dotnettency.Modules public class ModuleRegisterBuilder where TModule : class, IModule { - private IServiceCollection _services; - private IRouteHandler _defaultRouteHandler; + public Func DefaultRouteHandlerFactory { get; set; } - public ModuleRegisterBuilder(IServiceCollection servicies, IRouteHandler defaultRouteHandler) + public ModuleRegisterBuilder(IServiceCollection servicies) { - _services = servicies; - _defaultRouteHandler = defaultRouteHandler; - _services.AddRouting(); // needed for modular routing. + Services = servicies; + DefaultRouteHandlerFactory = () => + { + return new RouteHandler(context => + { + return null; + }); + }; + Services.AddRouting(); // needed for modular routing. } public ModuleRegisterBuilder AddModule() where TImplementation : class, TModule { - _services.AddTransient(); + Services.AddTransient(); return this; } public void OnSetupModule(Action> configureModuleOptionsBuilder) - { - // var moduleShell = new - - - var modulesRouter = new ModulesRouter(_defaultRouteHandler); - // _services.AddSingleton(modulesRouter); - - _services.AddSingleton, ModuleManager>((sp) => - { - var allModules = sp.GetServices(); - - var moduleManager = new ModuleManager(modulesRouter); - - // shared modules all popualte the same service collection - // var services = new ServiceCollection(); - - foreach (var item in allModules) + { + Services.AddSingleton, ModuleManager>((sp) => { - var moduleOptionsBuilder = new ModuleShellOptionsBuilder(item); - configureModuleOptionsBuilder(moduleOptionsBuilder); - var moduleShellOptions = moduleOptionsBuilder.Build(); - var moduleShell = new ModuleShell(item, moduleShellOptions); - moduleManager.AddModule(moduleShell); - } - return moduleManager; - }); - + var routeHandler = DefaultRouteHandlerFactory(); + var modulesRouter = new ModulesRouter(routeHandler); + + var allModules = sp.GetServices(); + + var moduleManager = new ModuleManager(modulesRouter); + + foreach (var item in allModules) + { + var moduleOptionsBuilder = new ModuleShellOptionsBuilder(item); + configureModuleOptionsBuilder(moduleOptionsBuilder); + var moduleShellOptions = moduleOptionsBuilder.Build(); + var moduleShell = new ModuleShell(item, moduleShellOptions); + moduleManager.AddModule(moduleShell); + } + return moduleManager; + }); } - } - - -} + public IServiceCollection Services { get; set; } + } +} \ No newline at end of file diff --git a/src/Dotnettency.Modules/ServiceCollectionExtensions.cs b/src/Dotnettency.Modules/ServiceCollectionExtensions.cs index 351e92d..82b340c 100644 --- a/src/Dotnettency.Modules/ServiceCollectionExtensions.cs +++ b/src/Dotnettency.Modules/ServiceCollectionExtensions.cs @@ -7,12 +7,11 @@ namespace Dotnettency.Modules public static class ServiceCollectionExtensions { - public static IServiceCollection AddModules(this IServiceCollection servicies, - IRouteHandler defaultRouteHandler, + public static IServiceCollection AddModules(this IServiceCollection servicies, Action> registerModules) where TModule : class, IModule { - var registerModulesBuilder = new ModuleRegisterBuilder(servicies, defaultRouteHandler); + var registerModulesBuilder = new ModuleRegisterBuilder(servicies); registerModules(registerModulesBuilder); return servicies; } diff --git a/src/Dotnettency.Sample/Startup.cs b/src/Dotnettency.Sample/Startup.cs index e9b1ca1..e623c65 100644 --- a/src/Dotnettency.Sample/Startup.cs +++ b/src/Dotnettency.Sample/Startup.cs @@ -50,16 +50,6 @@ public IServiceProvider ConfigureServices(IServiceCollection services) return new SomeTenantService(tenant, sp.GetRequiredService()); }); - // tenantServices.AddSingleton(); - - var defaultRouteHandler = new RouteHandler(context => - { - // default route handler when no routed modules match. - // could return default mvc route handler, or something else. - // Return null to not handle the request so it can flow through to next middleware. - return null; - }); - var moMatchRouteHandler = new RouteHandler(context => { // default route handler when a single module router fails to match. @@ -67,7 +57,7 @@ public IServiceProvider ConfigureServices(IServiceCollection services) return null; }); - tenantServices.AddModules(defaultRouteHandler, (modules) => + tenantServices.AddModules((modules) => { // Only load these two modules for tenant Bar. if (tenant?.Name == "Bar") @@ -109,7 +99,7 @@ public IServiceProvider ConfigureServices(IServiceCollection services) routedModule.ConfigureRoutes(moduleRouteBuilder); var moduleRouter = moduleRouteBuilder.Build(); return moduleRouter; - }, + }, moduleServices => routedModule.ConfigureServices(moduleServices)); } @@ -205,7 +195,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF var container = context.RequestServices as ITenantContainerAdaptor; logger.LogDebug("App Run Container Is: {id}, {containerNAme}, {role}", container.ContainerId, container.ContainerName, container.Role); - + // Use ITenantAccessor to access the current tenant. var tenantAccessor = container.GetRequiredService>(); diff --git a/src/src.sln b/src/src.sln index a37e96b..59ee024 100644 --- a/src/src.sln +++ b/src/src.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 -VisualStudioVersion = 15.0.26730.0 +VisualStudioVersion = 15.0.26730.3 MinimumVisualStudioVersion = 15.0.26124.0 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dotnettency", "Dotnettency\Dotnettency.csproj", "{27306262-FF3C-4B52-A2CD-ED49F613B200}" EndProject @@ -29,8 +29,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dotnettency.Modules", "Dotn EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dotnettency.Modules.Nancy", "Dotnettency.Modules.Nancy\Dotnettency.Modules.Nancy.csproj", "{6CFD80AD-DC8C-4228-B467-EE070CEE11AC}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dotnettency.Modules.Mvc", "Dotnettency.Modules.Mvc\Dotnettency.Modules.Mvc.csproj", "{E614BEB1-198A-4965-A4E9-52C19403A847}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -149,18 +147,6 @@ Global {6CFD80AD-DC8C-4228-B467-EE070CEE11AC}.Release|x64.Build.0 = Release|Any CPU {6CFD80AD-DC8C-4228-B467-EE070CEE11AC}.Release|x86.ActiveCfg = Release|Any CPU {6CFD80AD-DC8C-4228-B467-EE070CEE11AC}.Release|x86.Build.0 = Release|Any CPU - {E614BEB1-198A-4965-A4E9-52C19403A847}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {E614BEB1-198A-4965-A4E9-52C19403A847}.Debug|Any CPU.Build.0 = Debug|Any CPU - {E614BEB1-198A-4965-A4E9-52C19403A847}.Debug|x64.ActiveCfg = Debug|Any CPU - {E614BEB1-198A-4965-A4E9-52C19403A847}.Debug|x64.Build.0 = Debug|Any CPU - {E614BEB1-198A-4965-A4E9-52C19403A847}.Debug|x86.ActiveCfg = Debug|Any CPU - {E614BEB1-198A-4965-A4E9-52C19403A847}.Debug|x86.Build.0 = Debug|Any CPU - {E614BEB1-198A-4965-A4E9-52C19403A847}.Release|Any CPU.ActiveCfg = Release|Any CPU - {E614BEB1-198A-4965-A4E9-52C19403A847}.Release|Any CPU.Build.0 = Release|Any CPU - {E614BEB1-198A-4965-A4E9-52C19403A847}.Release|x64.ActiveCfg = Release|Any CPU - {E614BEB1-198A-4965-A4E9-52C19403A847}.Release|x64.Build.0 = Release|Any CPU - {E614BEB1-198A-4965-A4E9-52C19403A847}.Release|x86.ActiveCfg = Release|Any CPU - {E614BEB1-198A-4965-A4E9-52C19403A847}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE From 1da9643e450aa78886b583ae683aa1150798e4c8 Mon Sep 17 00:00:00 2001 From: Darrell Tunnell Date: Thu, 24 Aug 2017 14:35:29 +0100 Subject: [PATCH 17/86] fixes #21 - only dispose of container at end of request. --- .../TenantContainerMiddleware.cs | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/Dotnettency.Container/TenantContainerMiddleware.cs b/src/Dotnettency.Container/TenantContainerMiddleware.cs index 17ef854..e818318 100644 --- a/src/Dotnettency.Container/TenantContainerMiddleware.cs +++ b/src/Dotnettency.Container/TenantContainerMiddleware.cs @@ -21,7 +21,7 @@ public TenantContainerMiddleware( { _next = next; _logger = logger; - _appBuilder = appBuilder; + _appBuilder = appBuilder; } public async Task Invoke(HttpContext context, ITenantContainerAccessor tenantContainerAccessor, ITenantRequestContainerAccessor requestContainerAccessor) @@ -42,14 +42,15 @@ public async Task Invoke(HttpContext context, ITenantContainerAccessor _logger.LogDebug("Setting AppBuilder Services to Tenant Container: {containerId} - {containerName}", tenantContainer.ContainerId, tenantContainer.ContainerName); _appBuilder.ApplicationServices = tenantContainer; var perRequestContainer = await requestContainerAccessor.TenantRequestContainer.Value; - + + // Ensure container is disposed at end of request. + context.Response.RegisterForDispose(perRequestContainer); // Replace request services with a nested version (for lifetime management - used to encpasulate a request). - using (perRequestContainer) - { - _logger.LogDebug("Setting Request Container: {containerId} - {containerName}", perRequestContainer.RequestContainer.ContainerId, perRequestContainer.RequestContainer.ContainerName); - await perRequestContainer.ExecuteWithinSwappedRequestContainer(_next, context); - _logger.LogDebug("Restoring Request Container"); - } + + _logger.LogDebug("Setting Request Container: {containerId} - {containerName}", perRequestContainer.RequestContainer.ContainerId, perRequestContainer.RequestContainer.ContainerName); + await perRequestContainer.ExecuteWithinSwappedRequestContainer(_next, context); + _logger.LogDebug("Restoring Request Container"); + } finally { From 09a375dddcc6510e826ba3f93f427a444fd45f33 Mon Sep 17 00:00:00 2001 From: Darrell Tunnell Date: Sun, 17 Sep 2017 16:23:36 +0100 Subject: [PATCH 18/86] #14 - simplify fluent api for module registration. --- .../ModuleRegisterBuilder.cs | 51 ++++++++++++++++- .../ServiceCollectionExtensions.cs | 4 ++ src/Dotnettency.Sample/Startup.cs | 55 ++----------------- 3 files changed, 59 insertions(+), 51 deletions(-) diff --git a/src/Dotnettency.Modules/ModuleRegisterBuilder.cs b/src/Dotnettency.Modules/ModuleRegisterBuilder.cs index adbf178..d4575ee 100644 --- a/src/Dotnettency.Modules/ModuleRegisterBuilder.cs +++ b/src/Dotnettency.Modules/ModuleRegisterBuilder.cs @@ -31,6 +31,56 @@ public ModuleRegisterBuilder AddModule() return this; } + public void ConfigureModules() + { + var moMatchRouteHandler = new RouteHandler(context => + { + return null; + }); + + ConfigureModules(moMatchRouteHandler); + } + + public void ConfigureModules(IRouter moMatchRouteHandler) + { + OnSetupModule((moduleOptions) => + { + // TODO: visitor design pattern might be better suite here.. + var sharedModule = moduleOptions.Module as ISharedModule; + if (sharedModule != null) + { + // Modules adds services to tenant level container. + moduleOptions.HasSharedServices((moduleServices) => + { + // logger.LogDebug("Module is adding to tenant services"); + sharedModule.ConfigureServices(moduleServices); + }); + // Module adds middleware to tenant level pipeline. + moduleOptions.HasMiddlewareConfiguration((appBuilder) => + { + // logger.LogDebug("Module is adding to tenant middleware pipeline"); + sharedModule.ConfigureMiddleware(appBuilder); + }); + } + + // We allow IRoutedModules to partipate in configuring their own isolated services, associated with their router + var routedModule = moduleOptions.Module as IRoutedModule; + if (routedModule != null) + { + // logger.LogDebug("Module is confoguring router"); + // module has its own container, that is associated with certain routes. + moduleOptions.HasRoutedContainer((moduleAppBuilder) => + { + var moduleRouteBuilder = new RouteBuilder(moduleAppBuilder, moMatchRouteHandler); + routedModule.ConfigureRoutes(moduleRouteBuilder); + var moduleRouter = moduleRouteBuilder.Build(); + return moduleRouter; + }, + moduleServices => routedModule.ConfigureServices(moduleServices)); + } + }); + } + public void OnSetupModule(Action> configureModuleOptionsBuilder) { Services.AddSingleton, ModuleManager>((sp) => @@ -39,7 +89,6 @@ public void OnSetupModule(Action> configureMo var modulesRouter = new ModulesRouter(routeHandler); var allModules = sp.GetServices(); - var moduleManager = new ModuleManager(modulesRouter); foreach (var item in allModules) diff --git a/src/Dotnettency.Modules/ServiceCollectionExtensions.cs b/src/Dotnettency.Modules/ServiceCollectionExtensions.cs index 82b340c..755624c 100644 --- a/src/Dotnettency.Modules/ServiceCollectionExtensions.cs +++ b/src/Dotnettency.Modules/ServiceCollectionExtensions.cs @@ -13,6 +13,10 @@ public static IServiceCollection AddModules(this IServiceCollection ser { var registerModulesBuilder = new ModuleRegisterBuilder(servicies); registerModules(registerModulesBuilder); + + + + return servicies; } } diff --git a/src/Dotnettency.Sample/Startup.cs b/src/Dotnettency.Sample/Startup.cs index e623c65..7b25cdc 100644 --- a/src/Dotnettency.Sample/Startup.cs +++ b/src/Dotnettency.Sample/Startup.cs @@ -48,14 +48,7 @@ public IServiceProvider ConfigureServices(IServiceCollection services) //var logger = sp.GetRequiredService>(); logger.LogDebug("Resolving SomeTenantService"); return new SomeTenantService(tenant, sp.GetRequiredService()); - }); - - var moMatchRouteHandler = new RouteHandler(context => - { - // default route handler when a single module router fails to match. - // Return null so it can flow through to the next module - return null; - }); + }); tenantServices.AddModules((modules) => { @@ -63,47 +56,10 @@ public IServiceProvider ConfigureServices(IServiceCollection services) if (tenant?.Name == "Bar") { modules.AddModule() - .AddModule(); - } - - // Configure each modules shell. This allows the module to participate in: - // 1. Configuring tenant / application level services - // 2. Optionally providing an IRouter so that the services can be isolated and restored only when the router handles the request. - modules.OnSetupModule((moduleOptions) => - { - logger.LogDebug("Setting up module: " + moduleOptions.Module.GetType().FullName); - // we allow ISharedModules to configure services at tenant level, and middleware at tenant level. - var sharedModule = moduleOptions.Module as ISharedModule; - if (sharedModule != null) - { - moduleOptions.HasSharedServices((moduleServices) => - { - logger.LogDebug("Module is adding to tenant services"); - sharedModule.ConfigureServices(moduleServices); - }); - moduleOptions.HasMiddlewareConfiguration((appBuilder) => - { - logger.LogDebug("Module is adding to tenant middleware pipeline"); - sharedModule.ConfigureMiddleware(appBuilder); - }); - } - - // We allow IRoutedModules to partipate in configuring their own isolated services, associated with their router - var routedModule = moduleOptions.Module as IRoutedModule; - if (routedModule != null) - { - logger.LogDebug("Module is confoguring router"); - moduleOptions.HasRoutedContainer((moduleAppBuilder) => - { - var moduleRouteBuilder = new RouteBuilder(moduleAppBuilder, moMatchRouteHandler); - routedModule.ConfigureRoutes(moduleRouteBuilder); - var moduleRouter = moduleRouteBuilder.Build(); - return moduleRouter; - }, - moduleServices => routedModule.ConfigureServices(moduleServices)); - } - - }); + .AddModule() + .ConfigureModules(); + } + }); }); @@ -111,7 +67,6 @@ public IServiceProvider ConfigureServices(IServiceCollection services) }) .ConfigureTenantMiddleware((middlewareOptions) => { - // This method is called when need to initialise the middleware pipeline for a tenant (i.e on first request for the tenant) middlewareOptions.OnInitialiseTenantPipeline((context, appBuilder) => { From 61b430e3b55b34df0b0f7be9087e7742d2fa3670 Mon Sep 17 00:00:00 2001 From: Darrell Tunnell Date: Sun, 17 Sep 2017 16:28:53 +0100 Subject: [PATCH 19/86] Correction for sample --- src/Dotnettency.Sample/Startup.cs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/Dotnettency.Sample/Startup.cs b/src/Dotnettency.Sample/Startup.cs index 7b25cdc..61c098f 100644 --- a/src/Dotnettency.Sample/Startup.cs +++ b/src/Dotnettency.Sample/Startup.cs @@ -48,7 +48,7 @@ public IServiceProvider ConfigureServices(IServiceCollection services) //var logger = sp.GetRequiredService>(); logger.LogDebug("Resolving SomeTenantService"); return new SomeTenantService(tenant, sp.GetRequiredService()); - }); + }); tenantServices.AddModules((modules) => { @@ -56,10 +56,12 @@ public IServiceProvider ConfigureServices(IServiceCollection services) if (tenant?.Name == "Bar") { modules.AddModule() - .AddModule() - .ConfigureModules(); - } - + .AddModule(); + } + + modules.ConfigureModules(); + + }); }); From 4da07ec831120ab600ad4e548d4af5665c2d2dcb Mon Sep 17 00:00:00 2001 From: Darrell Tunnell Date: Sun, 17 Sep 2017 16:30:04 +0100 Subject: [PATCH 20/86] Added a comment. --- src/Dotnettency.Sample/Startup.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Dotnettency.Sample/Startup.cs b/src/Dotnettency.Sample/Startup.cs index 61c098f..c3ed9a8 100644 --- a/src/Dotnettency.Sample/Startup.cs +++ b/src/Dotnettency.Sample/Startup.cs @@ -77,8 +77,9 @@ public IServiceProvider ConfigureServices(IServiceCollection services) appBuilder.UseModules(); + // welcome page only enabled for tenant FOO. if (context.Tenant?.Name == "Foo") - { + { appBuilder.UseWelcomePage("/welcome"); } // From b7130f9965f3ec6a20f040849be422077d2a3578 Mon Sep 17 00:00:00 2001 From: Darrell Date: Wed, 4 Oct 2017 12:19:09 +0100 Subject: [PATCH 21/86] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a7b1c75..4aefec2 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Heavily inspired by [saaskit](https://github.com/saaskit/saaskit) ## Tenant Injection -Once configured in `startup.cs` you can: +Once configured in `startup.cs` you can resolve the current tenant in any one of the following ways: - Inject `TTenant` directly (may block whilst resolving current tenant). - Inject `Task` - Allows you to `await` the current `Tenant` (so non blocking). `Task` is convenient. From c8f2e1dc1f88a2a7e8277af6e20be181115a48e5 Mon Sep 17 00:00:00 2001 From: Darrell Date: Wed, 4 Oct 2017 12:21:17 +0100 Subject: [PATCH 22/86] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 4aefec2..fa083d9 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,8 @@ Once configured in `startup.cs` you can resolve the current tenant in any one of ## Tenant Shell Injection +The `TenantShell` stores additional context for a Tenant, such as it's `Container` and it's `MiddlewarePipeline`. + - Inject `ITenantShellAccessor` in order to access context for the currnet tenant, which is primarily used by: - Extensions (such as Middleware, or Container) - which store things for the tenant in the `ITenantShellAccessor`'s concurrent property bag. - Tenant Admin screens - if you need to "Restart" a tenant, then the idea is, you can resolve the `ITenantShellAccessor` and then use extension methods (provided by the dotnettency extensions such as Middleware pipeline, or Container) to allow you to control the state of the running tenant - for example to trigger rebuild of the tenant's container, or pipeline on the next request. From 528a749ea97e0311b6cedf34b2c3f44dc051a5dd Mon Sep 17 00:00:00 2001 From: Valentin Zwick Date: Sun, 5 Nov 2017 20:38:18 +0100 Subject: [PATCH 23/86] Cleanup/Beautification Dotnettency --- ...MultiTenancyServiceCollectionExtensions.cs | 21 ++------- .../MultitenancyMiddlewareOptionsBuilder.cs | 5 +- src/Dotnettency/MultitenancyOptionsBuilder.cs | 46 ++++++------------- src/Dotnettency/TenantAccessor.cs | 12 ++--- .../HttpContextTenantDistinguisherFactory.cs | 5 +- .../ITenantDistinguisherFactory.cs | 1 - ...uestAuthorityTenantDistinguisherFactory.cs | 7 +-- .../TenantDistinguisher.cs | 18 +++----- .../TenantDistinguisherAccessor.cs | 11 +---- .../ConcurrentDictionaryTenantShellCache.cs | 4 +- .../TenantShell/DelegateTenantShellFactory.cs | 2 +- .../TenantShell/ITenantShellCache.cs | 2 - .../TenantShell/ITenantShellFactory.cs | 3 +- src/Dotnettency/TenantShell/TenantShell.cs | 32 ++++++------- .../TenantShell/TenantShellResolver.cs | 21 ++------- src/Dotnettency/TenantShellAccessor.cs | 16 ++----- src/Dotnettency/UriHelper.cs | 7 +-- 17 files changed, 65 insertions(+), 148 deletions(-) diff --git a/src/Dotnettency/MultiTenancyServiceCollectionExtensions.cs b/src/Dotnettency/MultiTenancyServiceCollectionExtensions.cs index 4bc4a3e..24a4b02 100644 --- a/src/Dotnettency/MultiTenancyServiceCollectionExtensions.cs +++ b/src/Dotnettency/MultiTenancyServiceCollectionExtensions.cs @@ -5,26 +5,15 @@ namespace Dotnettency { public static class MultitenancyServiceCollectionExtensions { - public static IServiceProvider AddMultiTenancy(this IServiceCollection serviceCollection, Action> configure) where TTenant : class { var optionsBuilder = new MultitenancyOptionsBuilder(serviceCollection); - if (configure != null) - { - configure(optionsBuilder); - } - // var serviceProvider = optionsBuilder.Build(); - - Func serviceProviderBuilder = optionsBuilder.ServiceProviderFactory; - if (serviceProviderBuilder != null) - { - IServiceProvider sp = serviceProviderBuilder(); - return sp; - } - - return null; - //return optionsBuilder.ServiceProvider; + configure?.Invoke(optionsBuilder); + + return (optionsBuilder.ServiceProviderFactory != null) + ? optionsBuilder.ServiceProviderFactory() + : null; } } } diff --git a/src/Dotnettency/MultitenancyMiddlewareOptionsBuilder.cs b/src/Dotnettency/MultitenancyMiddlewareOptionsBuilder.cs index eba1a46..605db21 100644 --- a/src/Dotnettency/MultitenancyMiddlewareOptionsBuilder.cs +++ b/src/Dotnettency/MultitenancyMiddlewareOptionsBuilder.cs @@ -3,11 +3,12 @@ namespace Dotnettency { public class MultitenancyMiddlewareOptionsBuilder - { + { + public IApplicationBuilder ApplicationBuilder { get; set; } + public MultitenancyMiddlewareOptionsBuilder(IApplicationBuilder app) { ApplicationBuilder = app; } - public IApplicationBuilder ApplicationBuilder { get; set; } } } \ No newline at end of file diff --git a/src/Dotnettency/MultitenancyOptionsBuilder.cs b/src/Dotnettency/MultitenancyOptionsBuilder.cs index 699eff2..789b914 100644 --- a/src/Dotnettency/MultitenancyOptionsBuilder.cs +++ b/src/Dotnettency/MultitenancyOptionsBuilder.cs @@ -1,24 +1,25 @@ -using System; +using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjection; -using Microsoft.AspNetCore.Http; -using System.Threading.Tasks; +using System; namespace Dotnettency { - public class MultitenancyOptionsBuilder where TTenant : class { + public Func ServiceProviderFactory { get; set; } + public IServiceCollection Services { get; set; } public MultitenancyOptionsBuilder(IServiceCollection serviceCollection) { Services = serviceCollection; - // add default services + // Add default services Services.AddSingleton(); Services.AddScoped, TenantAccessor>(); + // Tenant shell cache is special in that it houses the tenant shell for each tenant, and each - // tenant shell has state that needs to be kept local to the applicatioin (i.e the tenants container or middleware pipeline.) + // tenant shell has state that needs to be kept local to the application (i.e the tenant's container or middleware pipeline.) // Therefore it should always be a local / in-memory based cache as will have will have fundamentally non-serialisable state. Services.AddSingleton, ConcurrentDictionaryTenantShellCache>(); Services.AddSingleton, TenantShellResolver>(); @@ -29,29 +30,18 @@ public MultitenancyOptionsBuilder(IServiceCollection serviceCollection) Services.AddSingleton, RequestAuthorityTenantDistinguisherFactory>(); // Support injection of TTenant (has side effect that may block during injection) - Services.AddScoped((sp => - { + Services.AddScoped(sp => { var accessor = sp.GetRequiredService>(); - var tenant = accessor.CurrentTenant.Value.Result; - return tenant; - })); + return accessor.CurrentTenant.Value.Result; + }); // Support injection of Task - a convenience that allows non blocking access to tenant when required // minor contention on Lazy<> - Services.AddScoped>((sp => - { + Services.AddScoped(sp => { return sp.GetRequiredService>().CurrentTenant.Value; - })); - - + }); } - - public Func ServiceProviderFactory { get; set; } - - - - //public IServiceProvider ServiceProvider { get; set; } - + /// /// Call this to override the service used to provide a URI for the current request. The URI is used as an identifier /// for a tenant to be loaded. @@ -65,15 +55,11 @@ public MultitenancyOptionsBuilder DistinguishTenantsWith() return this; } - - public IServiceCollection Services { get; set; } - public MultitenancyOptionsBuilder InitialiseTenant() - where T : class, ITenantShellFactory + where T : class, ITenantShellFactory { Services.AddSingleton, T>(); return this; - } public MultitenancyOptionsBuilder InitialiseTenant(Func> factoryMethod) @@ -83,6 +69,4 @@ public MultitenancyOptionsBuilder InitialiseTenant(Func : ITenantAccessor - where TTenant : class + where TTenant : class { - private readonly ITenantShellAccessor _tenantShellAccessor; + public Lazy> CurrentTenant { get; private set; } + public TenantAccessor(ITenantShellAccessor tenantShellAccessor) { _tenantShellAccessor = tenantShellAccessor; @@ -19,12 +19,6 @@ public TenantAccessor(ITenantShellAccessor tenantShellAccessor) var tenantShell = await _tenantShellAccessor.CurrentTenantShell?.Value; return tenantShell?.Tenant; }); - } - - public Lazy> CurrentTenant { get; } - - } - } diff --git a/src/Dotnettency/TenantDistinguisher/HttpContextTenantDistinguisherFactory.cs b/src/Dotnettency/TenantDistinguisher/HttpContextTenantDistinguisherFactory.cs index 2772297..b0ba16b 100644 --- a/src/Dotnettency/TenantDistinguisher/HttpContextTenantDistinguisherFactory.cs +++ b/src/Dotnettency/TenantDistinguisher/HttpContextTenantDistinguisherFactory.cs @@ -7,6 +7,7 @@ public abstract class HttpContextTenantDistinguisherFactory : ITenantDi where TTenant : class { private readonly IHttpContextAccessor _httpContextAccesor; + protected IHttpContextAccessor HttpContextAccessor => _httpContextAccesor; protected const int DefaultHttpPort = 80; protected const int DefaultHttpsPort = 443; @@ -27,9 +28,5 @@ public virtual Task IdentifyContext() } protected abstract TenantDistinguisher GetTenantDistinguisher(HttpContext context); - - - protected IHttpContextAccessor HttpContextAccessor { get { return _httpContextAccesor; } } } - } diff --git a/src/Dotnettency/TenantDistinguisher/ITenantDistinguisherFactory.cs b/src/Dotnettency/TenantDistinguisher/ITenantDistinguisherFactory.cs index 38209f6..5091f26 100644 --- a/src/Dotnettency/TenantDistinguisher/ITenantDistinguisherFactory.cs +++ b/src/Dotnettency/TenantDistinguisher/ITenantDistinguisherFactory.cs @@ -6,6 +6,5 @@ public interface ITenantDistinguisherFactory where TTenant : class { Task IdentifyContext(); - } } diff --git a/src/Dotnettency/TenantDistinguisher/RequestAuthorityTenantDistinguisherFactory.cs b/src/Dotnettency/TenantDistinguisher/RequestAuthorityTenantDistinguisherFactory.cs index 5f4fce9..f773138 100644 --- a/src/Dotnettency/TenantDistinguisher/RequestAuthorityTenantDistinguisherFactory.cs +++ b/src/Dotnettency/TenantDistinguisher/RequestAuthorityTenantDistinguisherFactory.cs @@ -3,7 +3,7 @@ namespace Dotnettency { public class RequestAuthorityTenantDistinguisherFactory : HttpContextTenantDistinguisherFactory - where TTenant : class + where TTenant : class { public RequestAuthorityTenantDistinguisherFactory(IHttpContextAccessor httpContextAccessor) : base(httpContextAccessor) { @@ -12,10 +12,7 @@ public RequestAuthorityTenantDistinguisherFactory(IHttpContextAccessor httpConte protected override TenantDistinguisher GetTenantDistinguisher(HttpContext context) { var uri = context.Request.GetAuthorityUri(); - // identify requests by authority only - // uri. - var identity = new TenantDistinguisher(uri); - return identity; + return new TenantDistinguisher(uri); } } } \ No newline at end of file diff --git a/src/Dotnettency/TenantDistinguisher/TenantDistinguisher.cs b/src/Dotnettency/TenantDistinguisher/TenantDistinguisher.cs index b3bd7ca..d8e80a7 100644 --- a/src/Dotnettency/TenantDistinguisher/TenantDistinguisher.cs +++ b/src/Dotnettency/TenantDistinguisher/TenantDistinguisher.cs @@ -4,19 +4,24 @@ namespace Dotnettency { public class TenantDistinguisher : IEquatable { + public Uri Uri { get; set; } + public TenantDistinguisher(Uri key) { Uri = key; } - public Uri Uri { get; set; } - public static implicit operator TenantDistinguisher(Uri key) { TenantDistinguisher value = new TenantDistinguisher(key); return value; } + public bool Equals(TenantDistinguisher other) + { + return other != null && other.Uri == Uri; + } + public override int GetHashCode() { if (Uri == null) @@ -30,14 +35,5 @@ public override bool Equals(object other) { return Equals(other as TenantDistinguisher); } - - public bool Equals(TenantDistinguisher other) - { - return other != null && other.Uri == Uri; - } } - - - - } diff --git a/src/Dotnettency/TenantDistinguisher/TenantDistinguisherAccessor.cs b/src/Dotnettency/TenantDistinguisher/TenantDistinguisherAccessor.cs index ad61f63..af8dd74 100644 --- a/src/Dotnettency/TenantDistinguisher/TenantDistinguisherAccessor.cs +++ b/src/Dotnettency/TenantDistinguisher/TenantDistinguisherAccessor.cs @@ -3,12 +3,13 @@ namespace Dotnettency { - // scoped so that each request has public class TenantDistinguisherAccessor where TTenant : class { private ITenantDistinguisherFactory _factory; + public Lazy> TenantDistinguisher { get; private set; } + public TenantDistinguisherAccessor(ITenantDistinguisherFactory factory) { _factory = factory; @@ -17,13 +18,5 @@ public TenantDistinguisherAccessor(ITenantDistinguisherFactory factory) return _factory.IdentifyContext(); }); } - - - public Lazy> TenantDistinguisher { get; } } - - - - - } diff --git a/src/Dotnettency/TenantShell/ConcurrentDictionaryTenantShellCache.cs b/src/Dotnettency/TenantShell/ConcurrentDictionaryTenantShellCache.cs index 3388cc0..662dc12 100644 --- a/src/Dotnettency/TenantShell/ConcurrentDictionaryTenantShellCache.cs +++ b/src/Dotnettency/TenantShell/ConcurrentDictionaryTenantShellCache.cs @@ -4,9 +4,8 @@ namespace Dotnettency { public class ConcurrentDictionaryTenantShellCache : ITenantShellCache - where TTenant : class + where TTenant : class { - private readonly ConcurrentDictionary> _mappings; public ConcurrentDictionaryTenantShellCache() @@ -29,5 +28,4 @@ public bool TryGetValue(TenantDistinguisher key, out TenantShell value) return _mappings.TryGetValue(key, out value); } } - } diff --git a/src/Dotnettency/TenantShell/DelegateTenantShellFactory.cs b/src/Dotnettency/TenantShell/DelegateTenantShellFactory.cs index b18eaa6..9ea8bd2 100644 --- a/src/Dotnettency/TenantShell/DelegateTenantShellFactory.cs +++ b/src/Dotnettency/TenantShell/DelegateTenantShellFactory.cs @@ -4,7 +4,7 @@ namespace Dotnettency { public class DelegateTenantShellFactory : ITenantShellFactory - where TTenant : class + where TTenant : class { private readonly Func> _factory; diff --git a/src/Dotnettency/TenantShell/ITenantShellCache.cs b/src/Dotnettency/TenantShell/ITenantShellCache.cs index 8452a28..09b7432 100644 --- a/src/Dotnettency/TenantShell/ITenantShellCache.cs +++ b/src/Dotnettency/TenantShell/ITenantShellCache.cs @@ -5,12 +5,10 @@ namespace Dotnettency public interface ITenantShellCache where TTenant : class { - TenantShell AddOrUpdate(TenantDistinguisher key, Func> addValueFactory, Func, TenantShell> updateValueFactory); TenantShell AddOrUpdate(TenantDistinguisher key, TenantShell addValue, Func, TenantShell> updateValueFactory); bool TryGetValue(TenantDistinguisher key, out TenantShell value); - } } diff --git a/src/Dotnettency/TenantShell/ITenantShellFactory.cs b/src/Dotnettency/TenantShell/ITenantShellFactory.cs index 2ea189b..91e96fd 100644 --- a/src/Dotnettency/TenantShell/ITenantShellFactory.cs +++ b/src/Dotnettency/TenantShell/ITenantShellFactory.cs @@ -3,9 +3,8 @@ namespace Dotnettency { public interface ITenantShellFactory - where TTenant : class + where TTenant : class { Task> Get(TenantDistinguisher identifier); } - } diff --git a/src/Dotnettency/TenantShell/TenantShell.cs b/src/Dotnettency/TenantShell/TenantShell.cs index c30126b..2e7484f 100644 --- a/src/Dotnettency/TenantShell/TenantShell.cs +++ b/src/Dotnettency/TenantShell/TenantShell.cs @@ -7,21 +7,7 @@ namespace Dotnettency public class TenantShell where TTenant : class { - public TenantShell(TTenant tenant, params TenantDistinguisher[] distinguishers) - { - Id = Guid.NewGuid(); - Tenant = tenant; - Properties = new ConcurrentDictionary(); - Distinguishers = new HashSet(); - if (distinguishers != null) - { - foreach (var item in distinguishers) - { - Distinguishers.Add(item); - } - } - - } + public ConcurrentDictionary Properties { get; private set; } /// /// Uniquely identifies this tenant. @@ -35,8 +21,20 @@ public TenantShell(TTenant tenant, params TenantDistinguisher[] distinguishers) /// internal HashSet Distinguishers { get; set; } - public ConcurrentDictionary Properties { get; } - + public TenantShell(TTenant tenant, params TenantDistinguisher[] distinguishers) + { + Id = Guid.NewGuid(); + Tenant = tenant; + Properties = new ConcurrentDictionary(); + Distinguishers = new HashSet(); + if (distinguishers != null) + { + foreach (var item in distinguishers) + { + Distinguishers.Add(item); + } + } + } } } diff --git a/src/Dotnettency/TenantShell/TenantShellResolver.cs b/src/Dotnettency/TenantShell/TenantShellResolver.cs index 6583587..4d6f80f 100644 --- a/src/Dotnettency/TenantShell/TenantShellResolver.cs +++ b/src/Dotnettency/TenantShell/TenantShellResolver.cs @@ -6,7 +6,6 @@ namespace Dotnettency public class TenantShellResolver : ITenantShellResolver where TTenant : class { - private readonly ITenantShellCache _cache; private readonly SemaphoreSlim _semaphore = new SemaphoreSlim(1, 1); @@ -26,7 +25,8 @@ public async Task> ResolveTenant(TenantDistinguisher identi try { await _semaphore.WaitAsync(); - // Check again incase this is another thread that got queued at the semephor. + + // Double locking if (_cache.TryGetValue(identifier, out result)) { return result; @@ -35,7 +35,6 @@ public async Task> ResolveTenant(TenantDistinguisher identi var tenantResult = await tenantFactory.Get(identifier); if (tenantResult == null) { - // don't create null shell tenants - future requests with this identifier will still not find a shell for the tenant, // so they will keep flowing through to ask the factory for the tenant. This is better if you are creating new tenants dynamically and a request is // recieved with the tenants identifier, before the tenant has been set up in the source. It means the request will resolve to a null @@ -43,20 +42,10 @@ public async Task> ResolveTenant(TenantDistinguisher identi // the cache, at which point the factory will stop being used for subsequent requests. return null; } - - //if (CreateNullTenants) - //{ - // create a shell for the null tenant, and add to cache. Future requests with same identifier - // will yeild the cached shell for the null tenant. - //var defaultTenantValue = default(TTenant); - //var shellForNullTenant = new TenantShell(defaultTenantValue, identifier); - //_mappings.AddOrUpdate(identifier, shellForNullTenant, (a, b) => { return shellForNullTenant; }); - //return shellForNullTenant; - - //// } - + // We got a new shell tenant, so add it to the cache under its identifier, and any additional identifiers. _cache.AddOrUpdate(identifier, tenantResult, (a, b) => { return tenantResult; }); + bool distinguisherFound = false; foreach (var item in tenantResult.Distinguishers) { @@ -73,13 +62,11 @@ public async Task> ResolveTenant(TenantDistinguisher identi } return tenantResult; - // todo } finally { _semaphore.Release(); } - } } } diff --git a/src/Dotnettency/TenantShellAccessor.cs b/src/Dotnettency/TenantShellAccessor.cs index f2e6035..4fe1a37 100644 --- a/src/Dotnettency/TenantShellAccessor.cs +++ b/src/Dotnettency/TenantShellAccessor.cs @@ -3,15 +3,15 @@ namespace Dotnettency { - public class TenantShellAccessor : ITenantShellAccessor - where TTenant : class + where TTenant : class { - private readonly ITenantShellFactory _tenantFactory; private readonly TenantDistinguisherAccessor _tenantDistinguisherAccessor; private readonly ITenantShellResolver _tenantResolver; + public Lazy>> CurrentTenantShell { get; private set; } + public TenantShellAccessor(ITenantShellFactory tenantFactory, TenantDistinguisherAccessor tenantDistinguisherAccessor, ITenantShellResolver tenantResolver) @@ -22,22 +22,14 @@ public TenantShellAccessor(ITenantShellFactory tenantFactory, CurrentTenantShell = new Lazy>>(async () => { - // return new Task(async () => - //{ var identifier = await _tenantDistinguisherAccessor.TenantDistinguisher.Value; if (identifier == null) { return null; } - // grab the tenant id for the context id. - // if we don't have one then - var tenantShell = await _tenantResolver.ResolveTenant(identifier, _tenantFactory); - return tenantShell; + return await _tenantResolver.ResolveTenant(identifier, _tenantFactory); }); } - - public Lazy>> CurrentTenantShell { get; } - } } diff --git a/src/Dotnettency/UriHelper.cs b/src/Dotnettency/UriHelper.cs index bcfd856..b071743 100644 --- a/src/Dotnettency/UriHelper.cs +++ b/src/Dotnettency/UriHelper.cs @@ -25,7 +25,6 @@ namespace Dotnettency /// public static class UriHelper { - private const string SchemeDelimiter = "://"; /// @@ -35,7 +34,6 @@ public static class UriHelper /// public static Uri GetUri(this HttpRequest request) { - var host = request.Host.Value; var pathBase = request.PathBase.Value; var path = request.Path.Value; @@ -62,10 +60,8 @@ public static Uri GetUri(this HttpRequest request) /// public static Uri GetAuthorityUri(this HttpRequest request) { - var host = request.Host.Value; var pathBase = request.PathBase.Value; - // var path = request.Path.Value; var queryString = request.QueryString.Value; // PERF: Calculate string length to allocate correct buffer size for StringBuilder. @@ -77,9 +73,8 @@ public static Uri GetAuthorityUri(this HttpRequest request) .Append(SchemeDelimiter) .Append(host) .Append(pathBase) - //.Append(path) .Append(queryString) .ToString()); } } -} \ No newline at end of file +} From 7dd7664ad8f4ccb49cef08e1c89b6891548012d8 Mon Sep 17 00:00:00 2001 From: Valentin Zwick Date: Sun, 5 Nov 2017 20:54:21 +0100 Subject: [PATCH 24/86] Cleanup/Beautification Dotnettency.Container --- .../AdaptedContainerBuilderOptions.cs | 18 ++--- .../ConfigureBuilderExtensions.cs | 9 +-- .../ContainerBuilderOptions.cs | 7 +- src/Dotnettency.Container/ContainerRole.cs | 18 +++++ .../ITenantContainerAccessor.cs | 2 +- .../ITenantContainerAdaptor.cs | 20 ----- .../ITenantContainerBuilder.cs | 2 +- .../ITenantContainerFactory.cs | 5 +- .../ITenantRequestContainerAccessor.cs | 4 +- src/Dotnettency.Container/ITenantStartup.cs | 20 ----- .../PerRequestContainer.cs | 81 ++++++------------- .../TenantContainerAccessor.cs | 16 ++-- .../TenantContainerBuilder.cs | 6 +- .../TenantContainerBuilderFactory.cs | 11 +-- .../TenantContainerFactory.cs | 9 +-- .../TenantContainerMiddleware.cs | 17 ++-- .../TenantRequestContainerAccessor.cs | 10 +-- .../TenantShellContainerExtensions.cs | 18 ++--- .../UseBuilderExtensions.cs | 13 --- 19 files changed, 89 insertions(+), 197 deletions(-) create mode 100644 src/Dotnettency.Container/ContainerRole.cs diff --git a/src/Dotnettency.Container/AdaptedContainerBuilderOptions.cs b/src/Dotnettency.Container/AdaptedContainerBuilderOptions.cs index c312fcf..b8eb384 100644 --- a/src/Dotnettency.Container/AdaptedContainerBuilderOptions.cs +++ b/src/Dotnettency.Container/AdaptedContainerBuilderOptions.cs @@ -1,28 +1,22 @@ -using Dotnettency.Container; -using System; - +using System; namespace Dotnettency.Container { public class AdaptedContainerBuilderOptions - where TTenant : class + where TTenant : class { + public ContainerBuilderOptions ContainerBuilderOptions { get; set; } + public Func HostContainerAdaptorFactory { get; set; } public AdaptedContainerBuilderOptions(ContainerBuilderOptions parentOptions, Func adaptorFactory) { ContainerBuilderOptions = parentOptions; - HostContainerAdaptor = adaptorFactory; + HostContainerAdaptorFactory = adaptorFactory; ContainerBuilderOptions.Builder.ServiceProviderFactory = new Func(() => { - return HostContainerAdaptor(); + return HostContainerAdaptorFactory(); }); } - - - public ContainerBuilderOptions ContainerBuilderOptions { get; set; } - - public Func HostContainerAdaptor { get; set; } - } } \ No newline at end of file diff --git a/src/Dotnettency.Container/ConfigureBuilderExtensions.cs b/src/Dotnettency.Container/ConfigureBuilderExtensions.cs index 5b3a90b..a52f3e6 100644 --- a/src/Dotnettency.Container/ConfigureBuilderExtensions.cs +++ b/src/Dotnettency.Container/ConfigureBuilderExtensions.cs @@ -1,5 +1,5 @@ -using System; -using Dotnettency.Container; +using Dotnettency.Container; +using System; namespace Dotnettency { @@ -9,10 +9,7 @@ public static MultitenancyOptionsBuilder ConfigureTenantContainers(optionsBuilder); - if (configure != null) - { - configure(containerOptionsBuilder); - } + configure?.Invoke(containerOptionsBuilder); return optionsBuilder; } } diff --git a/src/Dotnettency.Container/ContainerBuilderOptions.cs b/src/Dotnettency.Container/ContainerBuilderOptions.cs index 9ee32d0..39c0411 100644 --- a/src/Dotnettency.Container/ContainerBuilderOptions.cs +++ b/src/Dotnettency.Container/ContainerBuilderOptions.cs @@ -2,10 +2,10 @@ namespace Dotnettency.Container { - public class ContainerBuilderOptions where TTenant : class { + public MultitenancyOptionsBuilder Builder { get; set; } public ContainerBuilderOptions(MultitenancyOptionsBuilder builder) { @@ -14,8 +14,5 @@ public ContainerBuilderOptions(MultitenancyOptionsBuilder builder) builder.Services.AddScoped, TenantContainerAccessor>(); builder.Services.AddScoped, TenantRequestContainerAccessor>(); } - - public MultitenancyOptionsBuilder Builder { get; set; } - } -} \ No newline at end of file +} diff --git a/src/Dotnettency.Container/ContainerRole.cs b/src/Dotnettency.Container/ContainerRole.cs new file mode 100644 index 0000000..168e37a --- /dev/null +++ b/src/Dotnettency.Container/ContainerRole.cs @@ -0,0 +1,18 @@ +namespace Dotnettency.Container +{ + public enum ContainerRole + { + /// + /// The root application level container. + /// + Root = 0, + /// + /// A child container, derived from a parent. + /// + Child = 1, + /// + /// A child container that is scoped for some lifetime such as a request. + /// + Scoped = 2 + } +} diff --git a/src/Dotnettency.Container/ITenantContainerAccessor.cs b/src/Dotnettency.Container/ITenantContainerAccessor.cs index db32473..e3a4a6d 100644 --- a/src/Dotnettency.Container/ITenantContainerAccessor.cs +++ b/src/Dotnettency.Container/ITenantContainerAccessor.cs @@ -8,4 +8,4 @@ public interface ITenantContainerAccessor { Lazy> TenantContainer { get; } } -} \ No newline at end of file +} diff --git a/src/Dotnettency.Container/ITenantContainerAdaptor.cs b/src/Dotnettency.Container/ITenantContainerAdaptor.cs index 44fb212..2054c68 100644 --- a/src/Dotnettency.Container/ITenantContainerAdaptor.cs +++ b/src/Dotnettency.Container/ITenantContainerAdaptor.cs @@ -5,7 +5,6 @@ namespace Dotnettency.Container { public interface ITenantContainerAdaptor : IServiceProvider, IDisposable { - // IServiceProvider GetServiceProvider(); ITenantContainerAdaptor CreateNestedContainer(); ITenantContainerAdaptor CreateChildContainer(); @@ -19,24 +18,5 @@ public interface ITenantContainerAdaptor : IServiceProvider, IDisposable /// /// void Configure(Action configure); - - } - - public enum ContainerRole - { - /// - /// The root application level container. - /// - Root = 0, - /// - /// A child container, derived from a parent. - /// - Child = 1, - /// - /// A child container that is scoped for some lifetime such as a request. - /// - Scoped = 2 } - - } diff --git a/src/Dotnettency.Container/ITenantContainerBuilder.cs b/src/Dotnettency.Container/ITenantContainerBuilder.cs index dd3600f..f10aabe 100644 --- a/src/Dotnettency.Container/ITenantContainerBuilder.cs +++ b/src/Dotnettency.Container/ITenantContainerBuilder.cs @@ -6,4 +6,4 @@ public interface ITenantContainerBuilder { Task BuildAsync(TTenant tenant); } -} \ No newline at end of file +} diff --git a/src/Dotnettency.Container/ITenantContainerFactory.cs b/src/Dotnettency.Container/ITenantContainerFactory.cs index a7bb0f1..ddf93ed 100644 --- a/src/Dotnettency.Container/ITenantContainerFactory.cs +++ b/src/Dotnettency.Container/ITenantContainerFactory.cs @@ -3,11 +3,8 @@ namespace Dotnettency.Container { public interface ITenantContainerFactory - where TTenant : class + where TTenant : class { - // Task Resolve(TenantIdentifier identifier); Task Get(TTenant currentTenant); } - - } diff --git a/src/Dotnettency.Container/ITenantRequestContainerAccessor.cs b/src/Dotnettency.Container/ITenantRequestContainerAccessor.cs index 1b03e38..7d4a00c 100644 --- a/src/Dotnettency.Container/ITenantRequestContainerAccessor.cs +++ b/src/Dotnettency.Container/ITenantRequestContainerAccessor.cs @@ -4,8 +4,8 @@ namespace Dotnettency.Container { public interface ITenantRequestContainerAccessor - where TTenant : class + where TTenant : class { Lazy> TenantRequestContainer { get; } } -} \ No newline at end of file +} diff --git a/src/Dotnettency.Container/ITenantStartup.cs b/src/Dotnettency.Container/ITenantStartup.cs index 110d7b3..9bb53c1 100644 --- a/src/Dotnettency.Container/ITenantStartup.cs +++ b/src/Dotnettency.Container/ITenantStartup.cs @@ -6,24 +6,4 @@ public interface ITenantStartup { void ConfigureServices(IServiceCollection services); } - - - //public class ConfigureTenantFromServicesTenantContainerFactory : ITenantContainerFactory - // where TTenant : class - //{ - - // public ConfigureTenantFromServicesTenantContainerFactory() - // { - - // } - - // public Task Get(TenantIdentifier identifier) - // { - // throw new NotImplementedException(); - // } - //} - - - - } diff --git a/src/Dotnettency.Container/PerRequestContainer.cs b/src/Dotnettency.Container/PerRequestContainer.cs index c96e212..6439706 100644 --- a/src/Dotnettency.Container/PerRequestContainer.cs +++ b/src/Dotnettency.Container/PerRequestContainer.cs @@ -6,81 +6,46 @@ namespace Dotnettency.Container { public class PerRequestContainer : IDisposable { + private Action _onDispose { get; set; } - // private bool _hasSwapped = false; + public ITenantContainerAdaptor RequestContainer { get; } public PerRequestContainer(ITenantContainerAdaptor requestContainer) { RequestContainer = requestContainer; - - - //var sp = requestContainer.GetServiceProvider(); - - //var sp = requestContainer.GetServiceProvider(); - //var scopeFactory = sp.GetRequiredService(); - //var scope = scopeFactory.CreateScope(); - - - - //var scope = RequestContainer.GetServiceProvider(); - - // Replace request services with a nested version (for lifetime management - used to encpasulate a request). - //using (var scope = tenantContainer.CreateNestedContainer()) - //{ - //_logger.LogDebug("Setting Request: {containerId} - {containerName}", scope.ContainerId, scope.ContainerName); - //var oldRequestServices = context.RequestServices; - //context.RequestServices = scope.GetServiceProvider(); - //// await _next.Invoke(context); // module middleware should be next - which will replace again with module specific container (nested). - //// _log.LogDebug("Restoring Request Container"); - //context.RequestServices = oldRequestServices; - //} - - - //var scopeFactory = sp.GetRequiredService(); - // var scope = new StructureMapServiceScope() - // Scope = scopeFactory.CreateScope(); } - // public HttpContext HttpContext { get; } - - public ITenantContainerAdaptor RequestContainer { get; } - - private Action OnDispose { get; set; } - public async Task ExecuteWithinSwappedRequestContainer(RequestDelegate request, HttpContext context) { - if (!context.Items.ContainsKey(nameof(PerRequestContainer))) + if (context.Items.ContainsKey(nameof(PerRequestContainer))) { - context.Items[nameof(PerRequestContainer)] = this; - IServiceProvider oldServiceProvider = context.RequestServices; - try - { - OnDispose = () => - { - context.Items.Remove(nameof(PerRequestContainer)); - RequestContainer.Dispose(); - }; - context.RequestServices = RequestContainer; - await request.Invoke(context); - } - finally - { - context.RequestServices = oldServiceProvider; - // throw; - } + await request.Invoke(context); + return; } - else + + context.Items[nameof(PerRequestContainer)] = this; + var oldServiceProvider = context.RequestServices; + + try { + _onDispose = () => + { + context.Items.Remove(nameof(PerRequestContainer)); + RequestContainer.Dispose(); + }; + + context.RequestServices = RequestContainer; await request.Invoke(context); } - + finally + { + context.RequestServices = oldServiceProvider; + } } - // public IServiceScope Scope { get; } public void Dispose() { - OnDispose?.Invoke(); - // Scope.Dispose(); + _onDispose?.Invoke(); } } -} \ No newline at end of file +} diff --git a/src/Dotnettency.Container/TenantContainerAccessor.cs b/src/Dotnettency.Container/TenantContainerAccessor.cs index 0f91fe7..9c84043 100644 --- a/src/Dotnettency.Container/TenantContainerAccessor.cs +++ b/src/Dotnettency.Container/TenantContainerAccessor.cs @@ -9,6 +9,8 @@ public class TenantContainerAccessor : ITenantContainerAccessor _tenantShellAccessor; private readonly ITenantContainerFactory _containerFactory; + public Lazy> TenantContainer { get; private set; } + public TenantContainerAccessor(ITenantShellAccessor tenantShellAccessor, ITenantContainerFactory factory) { _tenantShellAccessor = tenantShellAccessor; @@ -16,25 +18,21 @@ public TenantContainerAccessor(ITenantShellAccessor tenantShellAccessor TenantContainer = new Lazy>(async () => { - // return new Task(async () => - //{ var tenantShell = await tenantShellAccessor.CurrentTenantShell.Value; + if (tenantShell == null) { return null; } var tenant = tenantShell?.Tenant; - var lazy = tenantShell.GetOrAddContainer(() => + var lazy = tenantShell.GetOrAddContainer(() => { return factory.Get(tenant); }); - var container = await lazy.Value; - return container; + + return await lazy.Value; }); } - - public Lazy> TenantContainer { get; private set; } - } -} \ No newline at end of file +} diff --git a/src/Dotnettency.Container/TenantContainerBuilder.cs b/src/Dotnettency.Container/TenantContainerBuilder.cs index 9150360..d1a3af5 100644 --- a/src/Dotnettency.Container/TenantContainerBuilder.cs +++ b/src/Dotnettency.Container/TenantContainerBuilder.cs @@ -18,13 +18,13 @@ public TenantContainerBuilder(ITenantContainerAdaptor parentContainer, Action BuildAsync(TTenant tenant) { var tenantContainer = _parentContainer.CreateChildContainer(); + tenantContainer.Configure(config => { _configureTenant(tenant, config); }); + return Task.FromResult(tenantContainer); } } - - -} \ No newline at end of file +} diff --git a/src/Dotnettency.Container/TenantContainerBuilderFactory.cs b/src/Dotnettency.Container/TenantContainerBuilderFactory.cs index 1550967..528f3e7 100644 --- a/src/Dotnettency.Container/TenantContainerBuilderFactory.cs +++ b/src/Dotnettency.Container/TenantContainerBuilderFactory.cs @@ -5,22 +5,19 @@ namespace Dotnettency.Container { public class TenantContainerBuilderFactory : TenantContainerFactory - where TTenant : class + where TTenant : class { - private readonly IServiceProvider _serviceProvider; - public TenantContainerBuilderFactory(IServiceProvider servicePrvider) - : base(servicePrvider) + public TenantContainerBuilderFactory(IServiceProvider serviceProvider) : base(serviceProvider) { - _serviceProvider = servicePrvider; + _serviceProvider = serviceProvider; } protected override async Task BuildContainer(TTenant currentTenant) { var builder = _serviceProvider.GetRequiredService>(); - var container = await builder.BuildAsync(currentTenant); - return container; + return await builder.BuildAsync(currentTenant); } } } diff --git a/src/Dotnettency.Container/TenantContainerFactory.cs b/src/Dotnettency.Container/TenantContainerFactory.cs index 4d9f968..616fc36 100644 --- a/src/Dotnettency.Container/TenantContainerFactory.cs +++ b/src/Dotnettency.Container/TenantContainerFactory.cs @@ -6,11 +6,8 @@ namespace Dotnettency.Container public abstract class TenantContainerFactory : ITenantContainerFactory where TTenant : class { - // private static readonly ConcurrentDictionary> _tenantContainers = new ConcurrentDictionary>(); - private readonly IServiceProvider _serviceProvider; - // private readonly ConcurrentDictionary<> public TenantContainerFactory(IServiceProvider serviceProvider) { _serviceProvider = serviceProvider; @@ -18,13 +15,9 @@ public TenantContainerFactory(IServiceProvider serviceProvider) public async Task Get(TTenant currentTenant) { - ITenantContainerAdaptor newContainer = await BuildContainer(currentTenant); - return newContainer; + return await BuildContainer(currentTenant); } protected abstract Task BuildContainer(TTenant currentTenant); - - } - } diff --git a/src/Dotnettency.Container/TenantContainerMiddleware.cs b/src/Dotnettency.Container/TenantContainerMiddleware.cs index e818318..c42b7e7 100644 --- a/src/Dotnettency.Container/TenantContainerMiddleware.cs +++ b/src/Dotnettency.Container/TenantContainerMiddleware.cs @@ -7,9 +7,8 @@ namespace Dotnettency.Container { public class TenantContainerMiddleware - where TTenant : class + where TTenant : class { - private readonly RequestDelegate _next; private readonly ILogger> _logger; private readonly IApplicationBuilder _appBuilder; @@ -26,8 +25,8 @@ public TenantContainerMiddleware( public async Task Invoke(HttpContext context, ITenantContainerAccessor tenantContainerAccessor, ITenantRequestContainerAccessor requestContainerAccessor) { - // log.LogDebug("Using multitenancy provider {multitenancyProvidertype}.", tenantAccessor.GetType().Name); _logger.LogDebug("Tenant Container Middleware - Start."); + var tenantContainer = await tenantContainerAccessor.TenantContainer.Value; if (tenantContainer == null) { @@ -36,7 +35,8 @@ public async Task Invoke(HttpContext context, ITenantContainerAccessor return; } - IServiceProvider oldAppBuilderServices = _appBuilder.ApplicationServices; + var oldAppBuilderServices = _appBuilder.ApplicationServices; + try { _logger.LogDebug("Setting AppBuilder Services to Tenant Container: {containerId} - {containerName}", tenantContainer.ContainerId, tenantContainer.ContainerName); @@ -45,20 +45,17 @@ public async Task Invoke(HttpContext context, ITenantContainerAccessor // Ensure container is disposed at end of request. context.Response.RegisterForDispose(perRequestContainer); - // Replace request services with a nested version (for lifetime management - used to encpasulate a request). - + + // Replace request services with a nested version (for lifetime management - used to encpasulate a request). _logger.LogDebug("Setting Request Container: {containerId} - {containerName}", perRequestContainer.RequestContainer.ContainerId, perRequestContainer.RequestContainer.ContainerName); await perRequestContainer.ExecuteWithinSwappedRequestContainer(_next, context); _logger.LogDebug("Restoring Request Container"); - } finally { _logger.LogDebug("Restoring AppBuilder Services"); _appBuilder.ApplicationServices = oldAppBuilderServices; } - - } } -} \ No newline at end of file +} diff --git a/src/Dotnettency.Container/TenantRequestContainerAccessor.cs b/src/Dotnettency.Container/TenantRequestContainerAccessor.cs index 3412262..05eaba8 100644 --- a/src/Dotnettency.Container/TenantRequestContainerAccessor.cs +++ b/src/Dotnettency.Container/TenantRequestContainerAccessor.cs @@ -7,11 +7,11 @@ namespace Dotnettency.Container public class TenantRequestContainerAccessor : ITenantRequestContainerAccessor where TTenant : class { - // private readonly ITenantShellAccessor _tenantShellAccessor; - //private readonly ITenantContainerFactory _containerFactory; private readonly ITenantContainerAccessor _tenantContainerAccessor; private readonly ILogger> _logger; + public Lazy> TenantRequestContainer { get; private set; } + public TenantRequestContainerAccessor( ILogger> logger, ITenantContainerAccessor tenantContainerAccessor) @@ -28,12 +28,8 @@ public TenantRequestContainerAccessor( } var requestContainer = tenantContainer.CreateNestedContainer(); - var tenantRequestContainer = new PerRequestContainer(requestContainer); - return tenantRequestContainer; + return new PerRequestContainer(requestContainer); }); } - - public Lazy> TenantRequestContainer { get; private set; } - } } \ No newline at end of file diff --git a/src/Dotnettency.Container/TenantShellContainerExtensions.cs b/src/Dotnettency.Container/TenantShellContainerExtensions.cs index 7c8fab6..6a98cc0 100644 --- a/src/Dotnettency.Container/TenantShellContainerExtensions.cs +++ b/src/Dotnettency.Container/TenantShellContainerExtensions.cs @@ -1,6 +1,6 @@ -using System; +using Dotnettency.Container; +using System; using System.Threading.Tasks; -using Dotnettency.Container; namespace Dotnettency { @@ -9,14 +9,10 @@ public static class TenantShellContainerExtensions public static Lazy> GetOrAddContainer(this TenantShell tenantShell, Func> containerAdaptorFactory) where TTenant : class { - var result = tenantShell.Properties.GetOrAdd(nameof(TenantShellContainerExtensions), - (a) => - { - // var factory = containerAdaptorFactory(); - return new Lazy>(containerAdaptorFactory); - }) as Lazy>; - return result; + return tenantShell.Properties.GetOrAdd(nameof(TenantShellContainerExtensions), (a) => + { + return new Lazy>(containerAdaptorFactory); + }) as Lazy>; } - } -} \ No newline at end of file +} diff --git a/src/Dotnettency.Container/UseBuilderExtensions.cs b/src/Dotnettency.Container/UseBuilderExtensions.cs index 02f3a79..b6de39e 100644 --- a/src/Dotnettency.Container/UseBuilderExtensions.cs +++ b/src/Dotnettency.Container/UseBuilderExtensions.cs @@ -3,18 +3,6 @@ namespace Dotnettency { - - //public class MultitenenancyContainerMiddlewareOptionsBuilder - // where TTenant : class - //{ - // private readonly MultitenancyMiddlewareOptionsBuilder _parentOptions; - - // public MultitenenancyContainerMiddlewareOptionsBuilder(MultitenancyMiddlewareOptionsBuilder parentOptions) - // { - // _parentOptions = parentOptions; - // } - //} - public static class UseBuilderExtensions { public static MultitenancyMiddlewareOptionsBuilder UsePerTenantContainers(this MultitenancyMiddlewareOptionsBuilder builder) @@ -25,4 +13,3 @@ public static MultitenancyMiddlewareOptionsBuilder UsePerTenantContaine } } } - From 77566b78e694ff4eded50c2fe24e8b5a305740f3 Mon Sep 17 00:00:00 2001 From: Valentin Zwick Date: Sun, 5 Nov 2017 21:04:56 +0100 Subject: [PATCH 25/86] Cleanup/Beautification Dotnettency.HostingEnvironment --- ...ePerHostingEnvironmentBuilderExtensions.cs | 20 ++---- ...antContentRootFileSystemProviderFactory.cs | 15 ++--- ...eTenantWebRootFileSystemProviderFactory.cs | 12 ++-- ...nantContentRootFileSystemProviderFatory.cs | 4 +- .../ITenantWebRootFileSystemProviderFatory.cs | 4 +- ...tingEnvironmentMiddlewareOptionsBuilder.cs | 5 +- .../TenantFileSystemBuilderContext.cs | 21 +++---- .../TenantHostingEnvironment.cs | 25 +++----- ...HostingEnvironmentContentRootMiddleware.cs | 62 +++++++++---------- .../TenantHostingEnvironmentOptionsBuilder.cs | 51 ++------------- ...nantHostingEnvironmentWebRootMiddleware.cs | 59 +++++++++--------- .../TenantShellFileSystemExtensions.cs | 21 ++----- ...sePerTenantHostingEnvironmentExtensions.cs | 7 ++- 13 files changed, 107 insertions(+), 199 deletions(-) diff --git a/src/Dotnettency.HostingEnvironment/ConfigurePerHostingEnvironmentBuilderExtensions.cs b/src/Dotnettency.HostingEnvironment/ConfigurePerHostingEnvironmentBuilderExtensions.cs index 6fdb378..b2ecd23 100644 --- a/src/Dotnettency.HostingEnvironment/ConfigurePerHostingEnvironmentBuilderExtensions.cs +++ b/src/Dotnettency.HostingEnvironment/ConfigurePerHostingEnvironmentBuilderExtensions.cs @@ -1,32 +1,20 @@ using Dotnettency.HostingEnvironment; using Microsoft.AspNetCore.Hosting; -using Microsoft.Extensions.DependencyInjection; using System; namespace Dotnettency { public static class ConfigurePerHostingEnvironmentBuilderExtensions { - public static MultitenancyOptionsBuilder ConfigurePerTenantHostingEnvironment(this MultitenancyOptionsBuilder optionsBuilder, IHostingEnvironment env, Action> configure) + public static MultitenancyOptionsBuilder ConfigurePerTenantHostingEnvironment( + this MultitenancyOptionsBuilder optionsBuilder, + IHostingEnvironment env, + Action> configure) where TTenant : class { var builder = new TenantHostingEnvironmentOptionsBuilder(optionsBuilder, env); configure?.Invoke(builder); return optionsBuilder; } - - //public static IServiceCollection ConfigurePerTenantHostingEnvironment(this IServiceCollection services, IHostingEnvironment env, Action> configure) - // where TTenant : class - //{ - - // services.AddScoped((sp) => - // { - // return new TenantHostingEnvironment(env); - // }); - - // var builder = new TenantHostingEnvironmentOptionsBuilder(services, env); - // configure?.Invoke(builder); - // return services; - //} } } diff --git a/src/Dotnettency.HostingEnvironment/DelegateTenantContentRootFileSystemProviderFactory.cs b/src/Dotnettency.HostingEnvironment/DelegateTenantContentRootFileSystemProviderFactory.cs index 2e1d28a..478cc12 100644 --- a/src/Dotnettency.HostingEnvironment/DelegateTenantContentRootFileSystemProviderFactory.cs +++ b/src/Dotnettency.HostingEnvironment/DelegateTenantContentRootFileSystemProviderFactory.cs @@ -1,11 +1,10 @@ -using System; -using DotNet.Cabinets; +using DotNet.Cabinets; using Microsoft.AspNetCore.Hosting; +using System; using System.IO; namespace Dotnettency.HostingEnvironment { - public class DelegateTenantContentRootFileSystemProviderFactory : ITenantContentRootFileSystemProviderFatory where TTenant : class { @@ -14,21 +13,19 @@ public class DelegateTenantContentRootFileSystemProviderFactory : ITena public DelegateTenantContentRootFileSystemProviderFactory( IHostingEnvironment hostingEnv, - Action> configureContentRoot - ) + Action> configureContentRoot) { _parentHostingEnvironment = hostingEnv; _configureContentRoot = configureContentRoot; - //_configureWebRoot = configureWebRoot; } public ICabinet GetContentRoot(TTenant tenant) { var defaultTenantsBaseFolderPath = Path.Combine(_parentHostingEnvironment.ContentRootPath, ".tenants\\"); var builder = new TenantFileSystemBuilderContext(tenant, defaultTenantsBaseFolderPath); + _configureContentRoot(builder); - var cab = builder.Build(); - return cab; + return builder.Build(); } } -} \ No newline at end of file +} diff --git a/src/Dotnettency.HostingEnvironment/DelegateTenantWebRootFileSystemProviderFactory.cs b/src/Dotnettency.HostingEnvironment/DelegateTenantWebRootFileSystemProviderFactory.cs index 5ff90aa..e99978c 100644 --- a/src/Dotnettency.HostingEnvironment/DelegateTenantWebRootFileSystemProviderFactory.cs +++ b/src/Dotnettency.HostingEnvironment/DelegateTenantWebRootFileSystemProviderFactory.cs @@ -1,20 +1,19 @@ -using System; -using DotNet.Cabinets; +using DotNet.Cabinets; using Microsoft.AspNetCore.Hosting; +using System; using System.IO; namespace Dotnettency.HostingEnvironment { public class DelegateTenantWebRootFileSystemProviderFactory : ITenantWebRootFileSystemProviderFatory - where TTenant : class + where TTenant : class { private readonly Action> _configureWebRoot; private readonly IHostingEnvironment _parentHostingEnvironment; public DelegateTenantWebRootFileSystemProviderFactory( IHostingEnvironment hostingEnv, - Action> configureWebRoot - ) + Action> configureWebRoot) { _parentHostingEnvironment = hostingEnv; _configureWebRoot = configureWebRoot; @@ -25,8 +24,7 @@ public ICabinet GetWebRoot(TTenant tenant) var defaultTenantsBaseFolderPath = Path.Combine(_parentHostingEnvironment.WebRootPath, ".tenants\\"); var builder = new TenantFileSystemBuilderContext(tenant, defaultTenantsBaseFolderPath); _configureWebRoot(builder); - var cab = builder.Build(); - return cab; + return builder.Build(); } } } \ No newline at end of file diff --git a/src/Dotnettency.HostingEnvironment/ITenantContentRootFileSystemProviderFatory.cs b/src/Dotnettency.HostingEnvironment/ITenantContentRootFileSystemProviderFatory.cs index f52ed9d..a916b39 100644 --- a/src/Dotnettency.HostingEnvironment/ITenantContentRootFileSystemProviderFatory.cs +++ b/src/Dotnettency.HostingEnvironment/ITenantContentRootFileSystemProviderFatory.cs @@ -3,8 +3,8 @@ namespace Dotnettency.HostingEnvironment { public interface ITenantContentRootFileSystemProviderFatory - where TTenant : class + where TTenant : class { ICabinet GetContentRoot(TTenant tenant); } -} \ No newline at end of file +} diff --git a/src/Dotnettency.HostingEnvironment/ITenantWebRootFileSystemProviderFatory.cs b/src/Dotnettency.HostingEnvironment/ITenantWebRootFileSystemProviderFatory.cs index 636b695..eb136f8 100644 --- a/src/Dotnettency.HostingEnvironment/ITenantWebRootFileSystemProviderFatory.cs +++ b/src/Dotnettency.HostingEnvironment/ITenantWebRootFileSystemProviderFatory.cs @@ -3,8 +3,8 @@ namespace Dotnettency.HostingEnvironment { public interface ITenantWebRootFileSystemProviderFatory - where TTenant : class + where TTenant : class { ICabinet GetWebRoot(TTenant tenant); } -} \ No newline at end of file +} diff --git a/src/Dotnettency.HostingEnvironment/PerTenantHostingEnvironmentMiddlewareOptionsBuilder.cs b/src/Dotnettency.HostingEnvironment/PerTenantHostingEnvironmentMiddlewareOptionsBuilder.cs index d61b435..61e5d4c 100644 --- a/src/Dotnettency.HostingEnvironment/PerTenantHostingEnvironmentMiddlewareOptionsBuilder.cs +++ b/src/Dotnettency.HostingEnvironment/PerTenantHostingEnvironmentMiddlewareOptionsBuilder.cs @@ -4,7 +4,7 @@ namespace Dotnettency { public class PerTenantHostingEnvironmentMiddlewareOptionsBuilder - where TTenant : class + where TTenant : class { private MultitenancyMiddlewareOptionsBuilder _builder; @@ -24,6 +24,5 @@ public PerTenantHostingEnvironmentMiddlewareOptionsBuilder UseTenantWeb _builder.ApplicationBuilder.UseMiddleware>(_builder.ApplicationBuilder); return this; } - } -} \ No newline at end of file +} diff --git a/src/Dotnettency.HostingEnvironment/TenantFileSystemBuilderContext.cs b/src/Dotnettency.HostingEnvironment/TenantFileSystemBuilderContext.cs index 4710c5c..11cb656 100644 --- a/src/Dotnettency.HostingEnvironment/TenantFileSystemBuilderContext.cs +++ b/src/Dotnettency.HostingEnvironment/TenantFileSystemBuilderContext.cs @@ -9,22 +9,17 @@ public class TenantFileSystemBuilderContext where TTenant : class { private IFileProvider _parentFileProvider; - // private readonly IHostingEnvironment _parentHostEnvironment; + + public TTenant Tenant { get; set; } + public Guid PartitionId { get; set; } + public string BaseFolder { get; set; } public TenantFileSystemBuilderContext(TTenant tenant, string defaultTenantsBaseFolder) { Tenant = tenant; - //_parentHostEnvironment = parentHostEnvironment; BaseFolder = defaultTenantsBaseFolder; - } - - public TTenant Tenant { get; set; } - - public Guid PartitionId { get; set; } - - public string BaseFolder { get; set; } - + public TenantFileSystemBuilderContext AllowAccessTo(IFileProvider chainedFileProvider) { _parentFileProvider = chainedFileProvider; @@ -46,9 +41,7 @@ public ICabinet Build() } var cabinetStorage = new PhysicalFileStorageProvider(BaseFolder, PartitionId); - var fp = _parentFileProvider; - var cabinet = new Cabinet(cabinetStorage, fp); - return cabinet; + return new Cabinet(cabinetStorage, _parentFileProvider); } } -} \ No newline at end of file +} diff --git a/src/Dotnettency.HostingEnvironment/TenantHostingEnvironment.cs b/src/Dotnettency.HostingEnvironment/TenantHostingEnvironment.cs index d8ced89..2919309 100644 --- a/src/Dotnettency.HostingEnvironment/TenantHostingEnvironment.cs +++ b/src/Dotnettency.HostingEnvironment/TenantHostingEnvironment.cs @@ -1,20 +1,23 @@ using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.FileProviders; -using System; namespace Dotnettency.HostingEnvironment { public class TenantHostingEnvironment : IHostingEnvironment where TTenant : class { - - // private readonly ITenantShellAccessor _tenantShellAccessor; + public IHostingEnvironment Parent { get; set; } + public string EnvironmentName { get; set; } + public string ApplicationName { get; set; } + public string WebRootPath { get; set; } + public IFileProvider WebRootFileProvider { get; set; } + public string ContentRootPath { get; set; } + public IFileProvider ContentRootFileProvider { get; set; } public TenantHostingEnvironment(IHostingEnvironment parent) { // Default to parent hosting environment, but allow properties to be overriden for the tenant. Parent = parent; - // _tenantShellAccessor = tenantShellAccessor; EnvironmentName = parent.EnvironmentName; ApplicationName = parent.ApplicationName; @@ -23,19 +26,5 @@ public TenantHostingEnvironment(IHostingEnvironment parent) ContentRootPath = parent.ContentRootPath; ContentRootFileProvider = parent.ContentRootFileProvider; } - - public IHostingEnvironment Parent { get; set; } - - public string EnvironmentName - { - get; set; - } - - //private string _ApplicationName; - public string ApplicationName { get; set; } - public string WebRootPath { get; set; } - public IFileProvider WebRootFileProvider { get; set; } - public string ContentRootPath { get; set; } - public IFileProvider ContentRootFileProvider { get; set; } } } diff --git a/src/Dotnettency.HostingEnvironment/TenantHostingEnvironmentContentRootMiddleware.cs b/src/Dotnettency.HostingEnvironment/TenantHostingEnvironmentContentRootMiddleware.cs index a33def1..2be8c34 100644 --- a/src/Dotnettency.HostingEnvironment/TenantHostingEnvironmentContentRootMiddleware.cs +++ b/src/Dotnettency.HostingEnvironment/TenantHostingEnvironmentContentRootMiddleware.cs @@ -1,69 +1,63 @@ -using System; -using System.Threading.Tasks; +using DotNet.Cabinets; using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Logging; -using DotNet.Cabinets; -using Microsoft.AspNetCore.Hosting; +using System; +using System.Threading.Tasks; namespace Dotnettency.HostingEnvironment { - public class TenantHostingEnvironmentContentRootMiddleware where TTenant : class { - private readonly RequestDelegate _next; private readonly IApplicationBuilder _rootApp; private readonly ILogger> _logger; private readonly ITenantContentRootFileSystemProviderFatory _factory; - - + public TenantHostingEnvironmentContentRootMiddleware( RequestDelegate next, IApplicationBuilder rootApp, ILogger> logger, ITenantContentRootFileSystemProviderFatory factory) - { _next = next; _rootApp = rootApp; _logger = logger; _factory = factory; } - - + public async Task Invoke(HttpContext context, ITenantShellAccessor tenantShellAccessor, IHostingEnvironment hosting) { var tenantShell = await tenantShellAccessor.CurrentTenantShell.Value; - if (tenantShell != null) - { - var tenant = tenantShell?.Tenant; - var tenantContentRootFileSystem = tenantShell.GetOrAddTenantContentRootFileSystem(new Lazy(() => - { - return _factory.GetContentRoot(tenant); - })); - - // swap out IFileProvider on IHostingEnvironment - var oldContentRootFilePrvovider = hosting.ContentRootFileProvider; - try - { - _logger.LogDebug("Hosting Environment Middleware - Swapping Content Root FileProvider."); - hosting.ContentRootFileProvider = tenantContentRootFileSystem.Value.FileProvider; - await _next(context); - } - finally - { - _logger.LogDebug("Hosting Environment Middleware - Restoring Content Root FileProvider."); - hosting.ContentRootFileProvider = tenantContentRootFileSystem.Value.FileProvider; - } - } - else + if (tenantShell == null) { _logger.LogDebug("Hosting Environment Middleware - Null tenant shell - No Tenant ContentRoot File Provider."); await _next(context); + return; } + var tenant = tenantShell?.Tenant; + var tenantContentRootFileSystem = tenantShell.GetOrAddTenantContentRootFileSystem(new Lazy(() => + { + return _factory.GetContentRoot(tenant); + })); + + // Swap out IFileProvider on IHostingEnvironment + var oldContentRootFilePrvovider = hosting.ContentRootFileProvider; + + try + { + _logger.LogDebug("Hosting Environment Middleware - Swapping Content Root FileProvider."); + hosting.ContentRootFileProvider = tenantContentRootFileSystem.Value.FileProvider; + await _next(context); + } + finally + { + _logger.LogDebug("Hosting Environment Middleware - Restoring Content Root FileProvider."); + hosting.ContentRootFileProvider = tenantContentRootFileSystem.Value.FileProvider; + } } } } diff --git a/src/Dotnettency.HostingEnvironment/TenantHostingEnvironmentOptionsBuilder.cs b/src/Dotnettency.HostingEnvironment/TenantHostingEnvironmentOptionsBuilder.cs index fb28a57..1c1d9a2 100644 --- a/src/Dotnettency.HostingEnvironment/TenantHostingEnvironmentOptionsBuilder.cs +++ b/src/Dotnettency.HostingEnvironment/TenantHostingEnvironmentOptionsBuilder.cs @@ -4,27 +4,27 @@ namespace Dotnettency.HostingEnvironment { - public class TenantHostingEnvironmentOptionsBuilder where TTenant : class { private readonly IHostingEnvironment _parentHostingEnvironment; + public MultitenancyOptionsBuilder Builder { get; set; } + public TenantHostingEnvironmentOptionsBuilder(MultitenancyOptionsBuilder builder, IHostingEnvironment hostingEnvironment) { Builder = builder; _parentHostingEnvironment = hostingEnvironment; - // Override the singleton registration of IHostingEnvironment with a scoped version so that we can configure it for the tenant + + // Override the singleton registration of IHostingEnvironment with + // a scoped version so that we can configure it for the tenant // early on in each request. Builder.Services.AddScoped((sp) => { return new TenantHostingEnvironment(hostingEnvironment); }); - } - public MultitenancyOptionsBuilder Builder { get; set; } - public MultitenancyOptionsBuilder OnInitialiseTenantContentRoot(Action> configureContentRoot) { var factory = new DelegateTenantContentRootFileSystemProviderFactory(_parentHostingEnvironment, configureContentRoot); @@ -38,44 +38,5 @@ public MultitenancyOptionsBuilder OnInitialiseTenantWebRoot(Action>(factory); return Builder; } - } - - //public class TenantHostingEnvironmentServiceCollectionBuilder - // where TTenant : class - //{ - // //private readonly IHostingEnvironment _parentHostingEnvironment; - - // public TenantHostingEnvironmentServiceCollectionBuilder(IServiceCollection services, IHostingEnvironment hostingEnvironment) - // { - // // Builder = builder; - // // _parentHostingEnvironment = hostingEnvironment; - // // Override the singleton registration of IHostingEnvironment with a scoped version so that we can configure it for the tenant - // // early on in each request. - // services.AddScoped((sp) => - // { - // return new TenantHostingEnvironment(hostingEnvironment); - // }); - - // } - - // public IServiceCollection Services { get; set; } - - // //public MultitenancyOptionsBuilder Builder { get; set; } - - // public IServiceCollection OnInitialiseTenantContentRoot(IHostingEnvironment env, Action> configureContentRoot) - // { - // var factory = new DelegateTenantContentRootFileSystemProviderFactory(env, configureContentRoot); - // Services.AddSingleton>(factory); - // return Builder; - // } - - // public MultitenancyOptionsBuilder OnInitialiseTenantWebRoot(IHostingEnvironment env, Action> configureWebRoot) - // { - // var factory = new DelegateTenantWebRootFileSystemProviderFactory(env, configureWebRoot); - // Builder.Services.AddSingleton>(factory); - // return Builder; - // } - - //} -} \ No newline at end of file +} diff --git a/src/Dotnettency.HostingEnvironment/TenantHostingEnvironmentWebRootMiddleware.cs b/src/Dotnettency.HostingEnvironment/TenantHostingEnvironmentWebRootMiddleware.cs index a6eff56..449ccb6 100644 --- a/src/Dotnettency.HostingEnvironment/TenantHostingEnvironmentWebRootMiddleware.cs +++ b/src/Dotnettency.HostingEnvironment/TenantHostingEnvironmentWebRootMiddleware.cs @@ -1,23 +1,21 @@ -using System; -using System.Threading.Tasks; +using DotNet.Cabinets; using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Logging; -using DotNet.Cabinets; -using Microsoft.AspNetCore.Hosting; +using System; +using System.Threading.Tasks; namespace Dotnettency.HostingEnvironment { public class TenantHostingEnvironmentWebRootMiddleware - where TTenant : class + where TTenant : class { - private readonly RequestDelegate _next; private readonly IApplicationBuilder _rootApp; private readonly ILogger> _logger; private readonly ITenantWebRootFileSystemProviderFatory _factory; - public TenantHostingEnvironmentWebRootMiddleware( RequestDelegate next, IApplicationBuilder rootApp, @@ -31,36 +29,37 @@ public TenantHostingEnvironmentWebRootMiddleware( _factory = factory; } - public async Task Invoke(HttpContext context, ITenantShellAccessor tenantShellAccessor, IHostingEnvironment hosting) { var tenantShell = await tenantShellAccessor.CurrentTenantShell.Value; - if (tenantShell != null) - { - var tenant = tenantShell?.Tenant; - var tenantFileSystem = tenantShell.GetOrAddTenantWebRootFileSystem(new Lazy(() => - { - return _factory.GetWebRoot(tenant); - })); - // swap out IFileProvider on IHostingEnvironment - var oldWebRootFilePrvovider = hosting.WebRootFileProvider; - try - { - _logger.LogDebug("Hosting Environment Middleware - Swapping Web Root FileProvider."); - hosting.WebRootFileProvider = tenantFileSystem.Value.FileProvider; - await _next(context); - } - finally - { - _logger.LogDebug("Hosting Environment Middleware - Restoring Web Root FileProvider."); - hosting.ContentRootFileProvider = tenantFileSystem.Value.FileProvider; - } - } - else + if (tenantShell == null) { _logger.LogDebug("Hosting Environment Middleware - Null tenant shell - No Tenant WebRoot File Provider."); await _next(context); + return; + } + + var tenant = tenantShell?.Tenant; + + var tenantFileSystem = tenantShell.GetOrAddTenantWebRootFileSystem(new Lazy(() => + { + return _factory.GetWebRoot(tenant); + })); + + // Swap out IFileProvider on IHostingEnvironment + var oldWebRootFilePrvovider = hosting.WebRootFileProvider; + + try + { + _logger.LogDebug("Hosting Environment Middleware - Swapping Web Root FileProvider."); + hosting.WebRootFileProvider = tenantFileSystem.Value.FileProvider; + await _next(context); + } + finally + { + _logger.LogDebug("Hosting Environment Middleware - Restoring Web Root FileProvider."); + hosting.ContentRootFileProvider = tenantFileSystem.Value.FileProvider; } } } diff --git a/src/Dotnettency.HostingEnvironment/TenantShellFileSystemExtensions.cs b/src/Dotnettency.HostingEnvironment/TenantShellFileSystemExtensions.cs index eaf61a9..00073c6 100644 --- a/src/Dotnettency.HostingEnvironment/TenantShellFileSystemExtensions.cs +++ b/src/Dotnettency.HostingEnvironment/TenantShellFileSystemExtensions.cs @@ -1,34 +1,23 @@ -using System; -using DotNet.Cabinets; -using Microsoft.AspNetCore.Hosting; +using DotNet.Cabinets; +using System; namespace Dotnettency.HostingEnvironment { public static class TenantShellFileSystemExtensions { - private const string ConentRootKey = nameof(TenantShellFileSystemExtensions) + "-ContentRoot"; private const string WebRootKey = nameof(TenantShellFileSystemExtensions) + "-WebRoot"; - //public static Lazy GetOrAddTenantHostingEnvironment(this TenantShell tenantShell, Lazy factory) - // where TTenant : class - //{ - // var result = tenantShell.Properties.GetOrAdd(ConentRootKey, factory) as Lazy; - // return result; - //} - public static Lazy GetOrAddTenantContentRootFileSystem(this TenantShell tenantShell, Lazy factory) where TTenant : class { - var result = tenantShell.Properties.GetOrAdd(ConentRootKey, factory) as Lazy; - return result; + return tenantShell.Properties.GetOrAdd(ConentRootKey, factory) as Lazy; } public static Lazy GetOrAddTenantWebRootFileSystem(this TenantShell tenantShell, Lazy factory) - where TTenant : class + where TTenant : class { - var result = tenantShell.Properties.GetOrAdd(WebRootKey, factory) as Lazy; - return result; + return tenantShell.Properties.GetOrAdd(WebRootKey, factory) as Lazy; } } } diff --git a/src/Dotnettency.HostingEnvironment/UsePerTenantHostingEnvironmentExtensions.cs b/src/Dotnettency.HostingEnvironment/UsePerTenantHostingEnvironmentExtensions.cs index 98d76bc..5b32c56 100644 --- a/src/Dotnettency.HostingEnvironment/UsePerTenantHostingEnvironmentExtensions.cs +++ b/src/Dotnettency.HostingEnvironment/UsePerTenantHostingEnvironmentExtensions.cs @@ -2,10 +2,11 @@ namespace Dotnettency { - public static class UsePerTenantHostingEnvironmentExtensions { - public static MultitenancyMiddlewareOptionsBuilder UsePerTenantHostingEnvironment(this MultitenancyMiddlewareOptionsBuilder builder, Action> configure) + public static MultitenancyMiddlewareOptionsBuilder UsePerTenantHostingEnvironment( + this MultitenancyMiddlewareOptionsBuilder builder, + Action> configure) where TTenant : class { var optionsBuilder = new PerTenantHostingEnvironmentMiddlewareOptionsBuilder(builder); @@ -13,4 +14,4 @@ public static MultitenancyMiddlewareOptionsBuilder UsePerTenantHostingE return builder; } } -} \ No newline at end of file +} From 44302f8be7ad09b636bd4190989fae5721031f83 Mon Sep 17 00:00:00 2001 From: Valentin Zwick Date: Sun, 5 Nov 2017 21:11:58 +0100 Subject: [PATCH 26/86] Cleanup/Beautification Dotnettency.MiddlewarePipeline --- ...DelegateTenantMiddlewarePipelineFactory.cs | 53 +++++++------------ .../ITenantMiddlewarePipelineFactory.cs | 4 +- .../ITenantPipelineAccessor.cs | 8 +-- .../MultitenancyOptionsBuilderExtensions.cs | 4 -- .../TenantPipelineAccessor.cs | 39 ++++++-------- .../TenantPipelineBuilderContext.cs | 1 - .../TenantPipelineMiddleware.cs | 16 ++---- .../TenantPipelineOptionsBuilder.cs | 3 +- .../TenantShellPipelineExtensions.cs | 7 ++- .../UsePerTenantBuilderExtensions.cs | 2 +- 10 files changed, 49 insertions(+), 88 deletions(-) diff --git a/src/Dotnettency.MiddlewarePipeline/DelegateTenantMiddlewarePipelineFactory.cs b/src/Dotnettency.MiddlewarePipeline/DelegateTenantMiddlewarePipelineFactory.cs index 0aa153e..0fe4379 100644 --- a/src/Dotnettency.MiddlewarePipeline/DelegateTenantMiddlewarePipelineFactory.cs +++ b/src/Dotnettency.MiddlewarePipeline/DelegateTenantMiddlewarePipelineFactory.cs @@ -1,17 +1,14 @@ -using System.Threading.Tasks; -using System; -using Microsoft.AspNetCore.Http; -using Dotnettency.MiddlewarePipeline; +using Dotnettency.MiddlewarePipeline; using Microsoft.AspNetCore.Builder; -using Dotnettency.Container; +using Microsoft.AspNetCore.Http; +using System; +using System.Threading.Tasks; namespace Dotnettency { public class DelegateTenantMiddlewarePipelineFactory : ITenantMiddlewarePipelineFactory - where TTenant : class + where TTenant : class { - // private readonly Func _factory; - private readonly Action, IApplicationBuilder> _configuration; public DelegateTenantMiddlewarePipelineFactory(Action, IApplicationBuilder> configuration) @@ -21,37 +18,25 @@ public DelegateTenantMiddlewarePipelineFactory(Action Create(IApplicationBuilder appBuilder, TTenant tenant, RequestDelegate next) { - //return Task.Run(() => - //{ return await BuildTenantPipeline(appBuilder, tenant, next); - // }); } protected virtual Task BuildTenantPipeline(IApplicationBuilder rootApp, TTenant tenant, RequestDelegate next) { - return Task.Run(() => - { - - var branchBuilder = rootApp.New(); - // var appServices = await tenantContainer.TenantContainer.Value; - // branchBuilder.ApplicationServices = appServices; - var builderContext = new TenantPipelineBuilderContext - { - // TenantContext = tenantContext, - Tenant = tenant - }; - - _configuration(builderContext, branchBuilder); - - // register root pipeline at the end of the tenant branch - branchBuilder.Run(next); - return branchBuilder.Build(); - }); - + return Task.Run(() => + { + var branchBuilder = rootApp.New(); + var builderContext = new TenantPipelineBuilderContext + { + Tenant = tenant + }; + + _configuration(builderContext, branchBuilder); + + // register root pipeline at the end of the tenant branch + branchBuilder.Run(next); + return branchBuilder.Build(); + }); } } - - - - } diff --git a/src/Dotnettency.MiddlewarePipeline/ITenantMiddlewarePipelineFactory.cs b/src/Dotnettency.MiddlewarePipeline/ITenantMiddlewarePipelineFactory.cs index fa7b8ef..bff565a 100644 --- a/src/Dotnettency.MiddlewarePipeline/ITenantMiddlewarePipelineFactory.cs +++ b/src/Dotnettency.MiddlewarePipeline/ITenantMiddlewarePipelineFactory.cs @@ -5,8 +5,8 @@ namespace Dotnettency { public interface ITenantMiddlewarePipelineFactory - where TTenant : class + where TTenant : class { Task Create(IApplicationBuilder appBuilder, TTenant tenant, RequestDelegate next); } -} \ No newline at end of file +} diff --git a/src/Dotnettency.MiddlewarePipeline/ITenantPipelineAccessor.cs b/src/Dotnettency.MiddlewarePipeline/ITenantPipelineAccessor.cs index 3e8efdc..0169e50 100644 --- a/src/Dotnettency.MiddlewarePipeline/ITenantPipelineAccessor.cs +++ b/src/Dotnettency.MiddlewarePipeline/ITenantPipelineAccessor.cs @@ -1,12 +1,12 @@ -using System; -using System.Threading.Tasks; +using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Http; -using Microsoft.AspNetCore.Builder; +using System; +using System.Threading.Tasks; namespace Dotnettency.MiddlewarePipeline { public interface ITenantPipelineAccessor - where TTenant : class + where TTenant : class { Func>> TenantPipeline { get; } } diff --git a/src/Dotnettency.MiddlewarePipeline/MultitenancyOptionsBuilderExtensions.cs b/src/Dotnettency.MiddlewarePipeline/MultitenancyOptionsBuilderExtensions.cs index e7dda97..3c976ee 100644 --- a/src/Dotnettency.MiddlewarePipeline/MultitenancyOptionsBuilderExtensions.cs +++ b/src/Dotnettency.MiddlewarePipeline/MultitenancyOptionsBuilderExtensions.cs @@ -5,7 +5,6 @@ namespace Dotnettency { public static class MultitenancyOptionsBuilderExtensions { - public static MultitenancyOptionsBuilder ConfigureTenantMiddleware(this MultitenancyOptionsBuilder builder, Action> configureOptions) where TTenant : class { @@ -13,8 +12,5 @@ public static MultitenancyOptionsBuilder ConfigureTenantMiddleware : ITenantPipelineAccessor - where TTenant : class + where TTenant : class { private readonly ITenantShellAccessor _tenantShellAccessor; private readonly ITenantMiddlewarePipelineFactory _tenantPipelineFactory; + public Func>> TenantPipeline { get; private set; } + public TenantPipelineAccessor( - ITenantMiddlewarePipelineFactory tenantPipelineFactory, + ITenantMiddlewarePipelineFactory tenantPipelineFactory, TenantShellAccessor tenantShellAccessor) { _tenantShellAccessor = tenantShellAccessor; _tenantPipelineFactory = tenantPipelineFactory; - + TenantPipeline = new Func>>((appBuilder, next) => { - var lazy = new Lazy>(async () => + return new Lazy>(async () => { - var tenantShell = await _tenantShellAccessor.CurrentTenantShell.Value; - if (tenantShell != null) - { - var tenant = tenantShell?.Tenant; - var tenantPipeline = tenantShell.GetOrAddMiddlewarePipeline(new Lazy>(() => - { - return _tenantPipelineFactory.Create(appBuilder, tenant, next); - })); - var requestDelegate = await tenantPipeline.Value; - return requestDelegate; - }// - else + if (tenantShell == null) { return next; - // _logger.LogDebug("Null tenant shell - No Tenant Middleware Pipeline to execute."); - // await _next(context); } + + var tenant = tenantShell?.Tenant; + var tenantPipeline = tenantShell.GetOrAddMiddlewarePipeline(new Lazy>(() => + { + return _tenantPipelineFactory.Create(appBuilder, tenant, next); + })); + + return await tenantPipeline.Value; }); - return lazy; }); } - - public Func>> TenantPipeline { get; } - } - - } diff --git a/src/Dotnettency.MiddlewarePipeline/TenantPipelineBuilderContext.cs b/src/Dotnettency.MiddlewarePipeline/TenantPipelineBuilderContext.cs index cad50bd..2fcedaf 100644 --- a/src/Dotnettency.MiddlewarePipeline/TenantPipelineBuilderContext.cs +++ b/src/Dotnettency.MiddlewarePipeline/TenantPipelineBuilderContext.cs @@ -3,6 +3,5 @@ public class TenantPipelineBuilderContext { public TTenant Tenant { get; set; } - } } diff --git a/src/Dotnettency.MiddlewarePipeline/TenantPipelineMiddleware.cs b/src/Dotnettency.MiddlewarePipeline/TenantPipelineMiddleware.cs index 2291ae1..abcfc95 100644 --- a/src/Dotnettency.MiddlewarePipeline/TenantPipelineMiddleware.cs +++ b/src/Dotnettency.MiddlewarePipeline/TenantPipelineMiddleware.cs @@ -1,39 +1,32 @@ -using System; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Logging; -using Dotnettency.Container; +using System.Threading.Tasks; namespace Dotnettency.MiddlewarePipeline { - public class TenantPipelineMiddleware where TTenant : class { - private readonly RequestDelegate _next; private readonly IApplicationBuilder _rootApp; private readonly ILogger> _logger; - public TenantPipelineMiddleware( RequestDelegate next, IApplicationBuilder rootApp, - ILogger> logger ) - + ILogger> logger) { _next = next; _rootApp = rootApp; _logger = logger; - //_factory = factory; } - public async Task Invoke(HttpContext context, ITenantPipelineAccessor tenantPipelineAccessor) { _logger.LogDebug("Tenant Pipeline Middleware - Getting Tenant Pipeline."); var tenantPipeline = await tenantPipelineAccessor.TenantPipeline(_rootApp, _next).Value; + if (tenantPipeline != null) { _logger.LogDebug("Tenant Pipeline Middleware - Executing Pipeline."); @@ -44,7 +37,6 @@ public async Task Invoke(HttpContext context, ITenantPipelineAccessor t _logger.LogDebug("Null tenant shell - No Tenant Middleware Pipeline to execute."); await _next(context); } - } } } diff --git a/src/Dotnettency.MiddlewarePipeline/TenantPipelineOptionsBuilder.cs b/src/Dotnettency.MiddlewarePipeline/TenantPipelineOptionsBuilder.cs index 33a8ce6..41c2cc1 100644 --- a/src/Dotnettency.MiddlewarePipeline/TenantPipelineOptionsBuilder.cs +++ b/src/Dotnettency.MiddlewarePipeline/TenantPipelineOptionsBuilder.cs @@ -7,7 +7,6 @@ namespace Dotnettency.MiddlewarePipeline public class TenantPipelineOptionsBuilder where TTenant : class { - private readonly MultitenancyOptionsBuilder _builder; public TenantPipelineOptionsBuilder(MultitenancyOptionsBuilder builder) @@ -23,4 +22,4 @@ public MultitenancyOptionsBuilder OnInitialiseTenantPipeline(Action> GetOrAddMiddlewarePipeline(this TenantShell tenantShell, Lazy> requestDelegateFactory) where TTenant : class { - var result = tenantShell.Properties.GetOrAdd(nameof(TenantShellPipelineExtensions), requestDelegateFactory) as Lazy>; - return result; + return tenantShell.Properties.GetOrAdd(nameof(TenantShellPipelineExtensions), requestDelegateFactory) as Lazy>; } } } diff --git a/src/Dotnettency.MiddlewarePipeline/UsePerTenantBuilderExtensions.cs b/src/Dotnettency.MiddlewarePipeline/UsePerTenantBuilderExtensions.cs index 5e40937..5402ffa 100644 --- a/src/Dotnettency.MiddlewarePipeline/UsePerTenantBuilderExtensions.cs +++ b/src/Dotnettency.MiddlewarePipeline/UsePerTenantBuilderExtensions.cs @@ -12,4 +12,4 @@ public static MultitenancyMiddlewareOptionsBuilder UsePerTenantMiddlewa return builder; } } -} \ No newline at end of file +} From 1c50e0d79edf311e544d663c35de5f66b2cc391a Mon Sep 17 00:00:00 2001 From: Valentin Zwick Date: Sun, 5 Nov 2017 21:29:05 +0100 Subject: [PATCH 27/86] Cleanup/Beautification Dotnettency.Modules --- src/Dotnettency.Modules/IModule.cs | 1 - src/Dotnettency.Modules/IModuleManager.cs | 1 - src/Dotnettency.Modules/IModuleShell.cs | 11 ++-- src/Dotnettency.Modules/IRoutedModule.cs | 5 +- src/Dotnettency.Modules/ISharedModule.cs | 3 -- src/Dotnettency.Modules/ModuleBase.cs | 5 +- src/Dotnettency.Modules/ModuleManager.cs | 26 ++++------ .../ModuleRegisterBuilder.cs | 27 ++++------ src/Dotnettency.Modules/ModuleRouteContext.cs | 11 ++-- src/Dotnettency.Modules/ModuleShell.cs | 27 ++++------ src/Dotnettency.Modules/ModuleShellOptions.cs | 17 ++----- .../ModuleShellOptionsBuilder.cs | 9 ++-- src/Dotnettency.Modules/ModulesMiddleware.cs | 51 ++++++++----------- .../ModulesRouteContext.cs | 6 +-- src/Dotnettency.Modules/ModulesRouter.cs | 32 ++++-------- src/Dotnettency.Modules/RoutedModuleBase.cs | 6 --- .../ServiceCollectionExtensions.cs | 16 ++---- src/Dotnettency.Modules/SharedModuleBase.cs | 2 - .../UseModulesBuilderExtensions.cs | 16 ++---- .../UseModulesOptionsBuilder.cs | 8 +-- 20 files changed, 91 insertions(+), 189 deletions(-) diff --git a/src/Dotnettency.Modules/IModule.cs b/src/Dotnettency.Modules/IModule.cs index 6f0be63..73a64b1 100644 --- a/src/Dotnettency.Modules/IModule.cs +++ b/src/Dotnettency.Modules/IModule.cs @@ -5,6 +5,5 @@ /// public interface IModule { - } } diff --git a/src/Dotnettency.Modules/IModuleManager.cs b/src/Dotnettency.Modules/IModuleManager.cs index d214192..d02354d 100644 --- a/src/Dotnettency.Modules/IModuleManager.cs +++ b/src/Dotnettency.Modules/IModuleManager.cs @@ -9,7 +9,6 @@ namespace Dotnettency.Modules public interface IModuleManager { Task EnsureStarted(Func> containerFactory, IApplicationBuilder rootAppBuilder); - IRouter GetModulesRouter(); } } diff --git a/src/Dotnettency.Modules/IModuleShell.cs b/src/Dotnettency.Modules/IModuleShell.cs index a2b1852..084536e 100644 --- a/src/Dotnettency.Modules/IModuleShell.cs +++ b/src/Dotnettency.Modules/IModuleShell.cs @@ -1,13 +1,12 @@ -using System; -using System.Threading.Tasks; -using Dotnettency.Container; +using Dotnettency.Container; using Microsoft.AspNetCore.Builder; -using Microsoft.Extensions.DependencyInjection; using Microsoft.AspNetCore.Routing; +using Microsoft.Extensions.DependencyInjection; +using System; +using System.Threading.Tasks; namespace Dotnettency.Modules { - public interface IModuleShell { IApplicationBuilder AppBuilder { get; } @@ -18,4 +17,4 @@ public interface IModuleShell ModuleShellOptions Options { get; } Task EnsureStarted(Func> containerFactory, IApplicationBuilder rootAppBuilder, IServiceCollection sharedServices); } -} \ No newline at end of file +} diff --git a/src/Dotnettency.Modules/IRoutedModule.cs b/src/Dotnettency.Modules/IRoutedModule.cs index f7b57dc..85504b7 100644 --- a/src/Dotnettency.Modules/IRoutedModule.cs +++ b/src/Dotnettency.Modules/IRoutedModule.cs @@ -1,13 +1,12 @@ using Microsoft.AspNetCore.Routing; using Microsoft.Extensions.DependencyInjection; -//using Microsoft.AspNetCore.Routing; namespace Dotnettency.Modules { /// /// An is given its own container that it can configure with services, so that they are isolated from any other modules. /// The must configure some Routes in it's method, as these are the routes - /// under which this modules container will be restored into RequestServices for an incoming request. /// + /// under which this modules container will be restored into RequestServices for an incoming request. /// /// /// During an incoming request the @@ -20,6 +19,4 @@ public interface IRoutedModule : IModule void ConfigureRoutes(IRouteBuilder routes); void ConfigureServices(IServiceCollection services); } - - } diff --git a/src/Dotnettency.Modules/ISharedModule.cs b/src/Dotnettency.Modules/ISharedModule.cs index 1e36d5a..29cbfe9 100644 --- a/src/Dotnettency.Modules/ISharedModule.cs +++ b/src/Dotnettency.Modules/ISharedModule.cs @@ -1,6 +1,5 @@ using Microsoft.AspNetCore.Builder; using Microsoft.Extensions.DependencyInjection; -//using Microsoft.AspNetCore.Routing; namespace Dotnettency.Modules { @@ -13,6 +12,4 @@ public interface ISharedModule : IModule void ConfigureMiddleware(IApplicationBuilder appBuilder); void ConfigureServices(IServiceCollection services); } - - } diff --git a/src/Dotnettency.Modules/ModuleBase.cs b/src/Dotnettency.Modules/ModuleBase.cs index aba0fbd..ab0e94c 100644 --- a/src/Dotnettency.Modules/ModuleBase.cs +++ b/src/Dotnettency.Modules/ModuleBase.cs @@ -1,9 +1,6 @@ -using Dotnettency.Modules; - -namespace Dotnettency.Modules +namespace Dotnettency.Modules { public class ModuleBase : IModule { - } } diff --git a/src/Dotnettency.Modules/ModuleManager.cs b/src/Dotnettency.Modules/ModuleManager.cs index bc93b0a..b37ebab 100644 --- a/src/Dotnettency.Modules/ModuleManager.cs +++ b/src/Dotnettency.Modules/ModuleManager.cs @@ -1,8 +1,6 @@ using Dotnettency.Container; using Microsoft.AspNetCore.Builder; -using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Routing; -using Microsoft.Extensions.DependencyInjection; using System; using System.Collections.Generic; using System.Linq; @@ -11,29 +9,25 @@ namespace Dotnettency.Modules { - public class ModuleManager : IModuleManager { - private readonly SemaphoreSlim _semaphore = new SemaphoreSlim(1, 1); + private List> _modules { get; set; } public bool Started { get; private set; } + public ModulesRouter ModulesRouter { get; set; } public ModuleManager(ModulesRouter modulesRouter) { - Modules = new List>(); + _modules = new List>(); ModulesRouter = modulesRouter; } - - private List> Modules { get; set; } - + public void AddModule(IModuleShell module) { - Modules.Add(module); + _modules.Add(module); } - public ModulesRouter ModulesRouter { get; set; } - public async Task EnsureStarted(Func> containerFactory, IApplicationBuilder rootAppBuilder) { if (Started) @@ -44,12 +38,13 @@ public async Task EnsureStarted(Func> containerFac await _semaphore.WaitAsync(); try { + // Double lock if (Started) { return; } - var allModules = Modules.ToArray(); + var allModules = _modules.ToArray(); var container = await containerFactory(); @@ -58,21 +53,18 @@ public async Task EnsureStarted(Func> containerFac await Task.WhenAll(allModules.Select(m => m.EnsureStarted(containerFactory, rootAppBuilder, sharedServices))); }); - // collate routers + // Collate routers foreach (var module in allModules.Where(m => m.Router != null)) { - this.ModulesRouter.AddModuleRouter(module); + ModulesRouter.AddModuleRouter(module); } - // ModulesRouter = modulesRouter; Started = true; - } finally { _semaphore.Release(); } - } public IRouter GetModulesRouter() diff --git a/src/Dotnettency.Modules/ModuleRegisterBuilder.cs b/src/Dotnettency.Modules/ModuleRegisterBuilder.cs index d4575ee..c7ce6b0 100644 --- a/src/Dotnettency.Modules/ModuleRegisterBuilder.cs +++ b/src/Dotnettency.Modules/ModuleRegisterBuilder.cs @@ -1,6 +1,4 @@ -using Dotnettency.Container; -using Microsoft.AspNetCore.Builder; -using Microsoft.AspNetCore.Routing; +using Microsoft.AspNetCore.Routing; using Microsoft.Extensions.DependencyInjection; using System; @@ -10,6 +8,7 @@ public class ModuleRegisterBuilder where TModule : class, IModule { public Func DefaultRouteHandlerFactory { get; set; } + public IServiceCollection Services { get; set; } public ModuleRegisterBuilder(IServiceCollection servicies) { @@ -20,7 +19,7 @@ public ModuleRegisterBuilder(IServiceCollection servicies) { return null; }); - }; + }; Services.AddRouting(); // needed for modular routing. } @@ -44,31 +43,26 @@ public void ConfigureModules() public void ConfigureModules(IRouter moMatchRouteHandler) { OnSetupModule((moduleOptions) => - { + { // TODO: visitor design pattern might be better suite here.. - var sharedModule = moduleOptions.Module as ISharedModule; - if (sharedModule != null) + if (moduleOptions.Module is ISharedModule sharedModule) { // Modules adds services to tenant level container. moduleOptions.HasSharedServices((moduleServices) => { - // logger.LogDebug("Module is adding to tenant services"); sharedModule.ConfigureServices(moduleServices); }); // Module adds middleware to tenant level pipeline. moduleOptions.HasMiddlewareConfiguration((appBuilder) => { - // logger.LogDebug("Module is adding to tenant middleware pipeline"); sharedModule.ConfigureMiddleware(appBuilder); }); } // We allow IRoutedModules to partipate in configuring their own isolated services, associated with their router - var routedModule = moduleOptions.Module as IRoutedModule; - if (routedModule != null) + if (moduleOptions.Module is IRoutedModule routedModule) { - // logger.LogDebug("Module is confoguring router"); - // module has its own container, that is associated with certain routes. + // Module has its own container, that is associated with certain routes. moduleOptions.HasRoutedContainer((moduleAppBuilder) => { var moduleRouteBuilder = new RouteBuilder(moduleAppBuilder, moMatchRouteHandler); @@ -82,7 +76,7 @@ public void ConfigureModules(IRouter moMatchRouteHandler) } public void OnSetupModule(Action> configureModuleOptionsBuilder) - { + { Services.AddSingleton, ModuleManager>((sp) => { var routeHandler = DefaultRouteHandlerFactory(); @@ -99,10 +93,9 @@ public void OnSetupModule(Action> configureMo var moduleShell = new ModuleShell(item, moduleShellOptions); moduleManager.AddModule(moduleShell); } + return moduleManager; }); } - - public IServiceCollection Services { get; set; } } -} \ No newline at end of file +} diff --git a/src/Dotnettency.Modules/ModuleRouteContext.cs b/src/Dotnettency.Modules/ModuleRouteContext.cs index 488ae30..a0d26e5 100644 --- a/src/Dotnettency.Modules/ModuleRouteContext.cs +++ b/src/Dotnettency.Modules/ModuleRouteContext.cs @@ -7,16 +7,13 @@ public class ModuleRouteContext : RouteContext { private readonly RouteContext _parentRouteContext; + public bool NotMatched { get; set; } + public RouteContext ParentRouteContext { get; set; } + public ModuleRouteContext(HttpContext httpContext, RouteContext parentRouteContext) : base(httpContext) { _parentRouteContext = parentRouteContext; - this.RouteData = _parentRouteContext.RouteData; - NotMatched = false; + RouteData = _parentRouteContext.RouteData; } - - public bool NotMatched { get; set; } - - public RouteContext ParentRouteContext { get; set; } } - } diff --git a/src/Dotnettency.Modules/ModuleShell.cs b/src/Dotnettency.Modules/ModuleShell.cs index 84f4d41..ee89bec 100644 --- a/src/Dotnettency.Modules/ModuleShell.cs +++ b/src/Dotnettency.Modules/ModuleShell.cs @@ -1,16 +1,20 @@ using Dotnettency.Container; using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Routing; +using Microsoft.Extensions.DependencyInjection; using System; using System.Threading.Tasks; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.AspNetCore.Routing; namespace Dotnettency.Modules { public class ModuleShell : IModuleShell { - public ModuleShellOptions Options { get; } - // public Func ServicesFactory { get; } + public ModuleShellOptions Options { get; private set; } + public TModule Module { get; set; } + public bool IsStarted { get; private set; } + public ITenantContainerAdaptor Container { get; set; } + public IApplicationBuilder AppBuilder { get; private set; } + public IRouter Router { get; set; } public ModuleShell(TModule module, ModuleShellOptions options) { @@ -18,15 +22,6 @@ public ModuleShell(TModule module, ModuleShellOptions options) Module = module; } - public TModule Module { get; set; } - - public bool IsStarted { get; private set; } - - public ITenantContainerAdaptor Container { get; set; } - public IApplicationBuilder AppBuilder { get; private set; } - - public IRouter Router { get; set; } - public async Task EnsureStarted(Func> containerFactory, IApplicationBuilder rootAppBuilder, IServiceCollection sharedServices) { if (IsStarted) @@ -36,7 +31,7 @@ public async Task EnsureStarted(Func> containerFac var container = await containerFactory(); - // configure container. + // Configure container. Options.OnConfigureSharedServices?.Invoke(sharedServices); if (Options.OnConfigureModuleServices != null) @@ -58,12 +53,10 @@ public async Task EnsureStarted(Func> containerFac var moduleAppBuilder = rootAppBuilder.New(); var moduleServicesProvider = Container; moduleAppBuilder.ApplicationServices = moduleServicesProvider; - this.Router = Options.GetRouter(moduleAppBuilder); + Router = Options.GetRouter(moduleAppBuilder); } IsStarted = true; } - } - } diff --git a/src/Dotnettency.Modules/ModuleShellOptions.cs b/src/Dotnettency.Modules/ModuleShellOptions.cs index 58f5a9c..059a13c 100644 --- a/src/Dotnettency.Modules/ModuleShellOptions.cs +++ b/src/Dotnettency.Modules/ModuleShellOptions.cs @@ -7,24 +7,13 @@ namespace Dotnettency { public class ModuleShellOptions { - // public bool IsolatedServices { get; set; } - public Action OnConfigureSharedServices { get; set; } - public Action OnConfigureModuleServices { get; set; } - public Action OnConfigureMiddleware { get; set; } - public Func GetRouter { get; set; } - public IRouteHandler NoMatchingRouteHandler { get; set; } = new RouteHandler(context => - { - // context.Items["NUL"] - return null; - - }); - - + { + return null; + }); } - } diff --git a/src/Dotnettency.Modules/ModuleShellOptionsBuilder.cs b/src/Dotnettency.Modules/ModuleShellOptionsBuilder.cs index 0b72c4f..c9faf3b 100644 --- a/src/Dotnettency.Modules/ModuleShellOptionsBuilder.cs +++ b/src/Dotnettency.Modules/ModuleShellOptionsBuilder.cs @@ -1,5 +1,4 @@ -using Dotnettency.Modules; -using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Routing; using Microsoft.Extensions.DependencyInjection; using System; @@ -10,13 +9,13 @@ public class ModuleShellOptionsBuilder { private ModuleShellOptions _moduleShellOptions = new ModuleShellOptions(); + public TModule Module { get; set; } + public ModuleShellOptionsBuilder(TModule module) { Module = module; } - public TModule Module { get; set; } - public ModuleShellOptionsBuilder HasSharedServices(Action onConfigure) { _moduleShellOptions.OnConfigureSharedServices = onConfigure; @@ -41,4 +40,4 @@ internal ModuleShellOptions Build() return _moduleShellOptions; } } -} \ No newline at end of file +} diff --git a/src/Dotnettency.Modules/ModulesMiddleware.cs b/src/Dotnettency.Modules/ModulesMiddleware.cs index d926d8d..a81ea8f 100644 --- a/src/Dotnettency.Modules/ModulesMiddleware.cs +++ b/src/Dotnettency.Modules/ModulesMiddleware.cs @@ -1,16 +1,15 @@ -using System.Threading.Tasks; +using Dotnettency.Container; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Http; -using Microsoft.Extensions.Logging; -using Dotnettency.Container; using Microsoft.AspNetCore.Routing; +using Microsoft.Extensions.Logging; +using System.Threading.Tasks; namespace Dotnettency.Modules { public class ModulesMiddleware where TTenant : class { - private readonly RequestDelegate _next; private readonly IApplicationBuilder _rootApp; private readonly ILogger> _logger; @@ -20,8 +19,7 @@ public ModulesMiddleware( RequestDelegate next, IApplicationBuilder rootApp, ILogger> logger, - IModuleManager moduleManager - ) + IModuleManager moduleManager) { _next = next; _rootApp = rootApp; @@ -29,7 +27,6 @@ IModuleManager moduleManager _moduleManager = moduleManager; } - public async Task Invoke(HttpContext context, ITenantContainerAccessor tenantContainerAccessor) { // need to ensure all modules are initialised. @@ -41,41 +38,35 @@ await _moduleManager.EnsureStarted(() => var router = _moduleManager.GetModulesRouter(); var routeContext = new ModulesRouteContext(context); routeContext.RouteData.Routers.Add(router); - // context.GetRouteData().Routers.Add(router); + await router.RouteAsync(routeContext); if (routeContext.Handler == null) { _logger.LogDebug("Request did not match routes for any modules.."); await _next.Invoke(context); + return; } - else - { - // we can also store the modules container. - // context.Features[typeof(IRoutingFeature)] = new RoutingFeature() - var routedModule = routeContext.ModuleShell; - routeContext.HttpContext.Features[typeof(IRoutingFeature)] = new RoutingFeature() - { - RouteData = routeContext.RouteData, - }; - // context.GetRouteData().PushState(routeContext., routeContext.RouteData,) - _logger.LogDebug("Request matched module {0}", routedModule.Module.GetType().Name); + var routedModule = routeContext.ModuleShell; + routeContext.HttpContext.Features[typeof(IRoutingFeature)] = new RoutingFeature() + { + RouteData = routeContext.RouteData, + }; - // Replace request services with a nested version of the routed modules container. - using (var scope = routedModule.Container.CreateNestedContainer()) - { + _logger.LogDebug("Request matched module {0}", routedModule.Module.GetType().Name); - _logger.LogDebug("Setting Request: {containerId} - {containerName}", scope.ContainerId, scope.ContainerName); - var oldRequestServices = context.RequestServices; - context.RequestServices = scope; - await routeContext.Handler(routeContext.HttpContext); - _logger.LogDebug("Restoring Request Container"); - context.RequestServices = oldRequestServices; - } + // Replace request services with a nested version of the routed modules container. + using (var scope = routedModule.Container.CreateNestedContainer()) + { + _logger.LogDebug("Setting Request: {containerId} - {containerName}", scope.ContainerId, scope.ContainerName); + var oldRequestServices = context.RequestServices; + context.RequestServices = scope; + await routeContext.Handler(routeContext.HttpContext); + _logger.LogDebug("Restoring Request Container"); + context.RequestServices = oldRequestServices; } } } - } diff --git a/src/Dotnettency.Modules/ModulesRouteContext.cs b/src/Dotnettency.Modules/ModulesRouteContext.cs index 74a5f70..68afd71 100644 --- a/src/Dotnettency.Modules/ModulesRouteContext.cs +++ b/src/Dotnettency.Modules/ModulesRouteContext.cs @@ -5,14 +5,10 @@ namespace Dotnettency.Modules { public class ModulesRouteContext : RouteContext { + public IModuleShell ModuleShell { get; set; } public ModulesRouteContext(HttpContext httpContext) : base(httpContext) { - // NotMatched = false; } - - public IModuleShell ModuleShell { get; set; } - } - } diff --git a/src/Dotnettency.Modules/ModulesRouter.cs b/src/Dotnettency.Modules/ModulesRouter.cs index e9572db..b113f27 100644 --- a/src/Dotnettency.Modules/ModulesRouter.cs +++ b/src/Dotnettency.Modules/ModulesRouter.cs @@ -1,21 +1,20 @@ -using System.Collections.Generic; +using Microsoft.AspNetCore.Routing; +using System.Collections.Generic; using System.Threading.Tasks; -using Microsoft.AspNetCore.Routing; namespace Dotnettency.Modules { public class ModulesRouter : IRouter { + public LinkedList> RoutedModules { get; set; } + public IRouteHandler DefaultRouteHandler { get; set; } + public ModulesRouter(IRouteHandler defaultRouteHandler) { DefaultRouteHandler = defaultRouteHandler; - // _appBuilder = appBuilder; RoutedModules = new LinkedList>(); - // NullMatchRouteHandler = nullMatchRouteHandler; } - public LinkedList> RoutedModules { get; set; } - public void AddModuleRouter(IModuleShell routedModuleShell) { var newNode = new LinkedListNode>(routedModuleShell); @@ -25,30 +24,33 @@ public void AddModuleRouter(IModuleShell routedModuleShell) public VirtualPathData GetVirtualPath(VirtualPathContext context) { var currentNode = RoutedModules.First; + while ((currentNode != null)) { var module = currentNode.Value; var moduleRouter = module.Router; var virtulPath = moduleRouter.GetVirtualPath(context); + if (virtulPath != null) { return virtulPath; } + currentNode = currentNode.Next; } + return null; } public async Task RouteAsync(RouteContext context) { var moduleRouteContext = new ModuleRouteContext(context.HttpContext, context); - var currentNode = RoutedModules.First; + while ((currentNode != null)) { var module = currentNode.Value; - // context.HttpContext.GetRouteData().Routers.Add(router); await module.Router.RouteAsync(moduleRouteContext); if (moduleRouteContext.Handler != null) { @@ -60,25 +62,13 @@ public async Task RouteAsync(RouteContext context) context.Handler = moduleRouteContext.Handler; context.RouteData = moduleRouteContext.RouteData; - // existingRouteData.PushState(module.Router, context.RouteData.Values, context.RouteData.DataTokens); return; } else { currentNode = currentNode.Next; } - //if (moduleRouteContext.NotMatched) - //{ - // currentNode = currentNode.Next; - // continue; - //} - - } } - - public IRouteHandler DefaultRouteHandler { get; set; } - - // public IRouteHandler NullMatchRouteHandler { get; set; } } -} \ No newline at end of file +} diff --git a/src/Dotnettency.Modules/RoutedModuleBase.cs b/src/Dotnettency.Modules/RoutedModuleBase.cs index bcabb0d..02a3e5c 100644 --- a/src/Dotnettency.Modules/RoutedModuleBase.cs +++ b/src/Dotnettency.Modules/RoutedModuleBase.cs @@ -7,20 +7,14 @@ public class RoutedModuleBase : ModuleBase, IRoutedModule { public RoutedModuleBase() { - // IsSystemModule = false; } public virtual void ConfigureRoutes(IRouteBuilder routes) { - //routes.MapGet("special", context => - //{ - // return context.Response.WriteAsync("Isolated Module"); - //}); } public virtual void ConfigureServices(IServiceCollection services) { - // throw new NotImplementedException(); } } } diff --git a/src/Dotnettency.Modules/ServiceCollectionExtensions.cs b/src/Dotnettency.Modules/ServiceCollectionExtensions.cs index 755624c..81f7ad4 100644 --- a/src/Dotnettency.Modules/ServiceCollectionExtensions.cs +++ b/src/Dotnettency.Modules/ServiceCollectionExtensions.cs @@ -1,23 +1,17 @@ -using Microsoft.AspNetCore.Routing; -using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.DependencyInjection; using System; namespace Dotnettency.Modules { - public static class ServiceCollectionExtensions { - public static IServiceCollection AddModules(this IServiceCollection servicies, + public static IServiceCollection AddModules(this IServiceCollection services, Action> registerModules) - where TModule : class, IModule + where TModule : class, IModule { - var registerModulesBuilder = new ModuleRegisterBuilder(servicies); + var registerModulesBuilder = new ModuleRegisterBuilder(services); registerModules(registerModulesBuilder); - - - - - return servicies; + return services; } } } diff --git a/src/Dotnettency.Modules/SharedModuleBase.cs b/src/Dotnettency.Modules/SharedModuleBase.cs index 1dbde2c..deabb67 100644 --- a/src/Dotnettency.Modules/SharedModuleBase.cs +++ b/src/Dotnettency.Modules/SharedModuleBase.cs @@ -7,12 +7,10 @@ public abstract class SharedModuleBase : ModuleBase, ISharedModule { public virtual void ConfigureMiddleware(IApplicationBuilder appBuilder) { - // throw new NotImplementedException(); } public virtual void ConfigureServices(IServiceCollection services) { - // throw new NotImplementedException(); } } } diff --git a/src/Dotnettency.Modules/UseModulesBuilderExtensions.cs b/src/Dotnettency.Modules/UseModulesBuilderExtensions.cs index 19963d3..0470672 100644 --- a/src/Dotnettency.Modules/UseModulesBuilderExtensions.cs +++ b/src/Dotnettency.Modules/UseModulesBuilderExtensions.cs @@ -1,7 +1,5 @@ -using Dotnettency.Container.StructureMap; -using Dotnettency.Modules; +using Dotnettency.Modules; using Microsoft.AspNetCore.Builder; -using Microsoft.Extensions.DependencyInjection; namespace Dotnettency { @@ -10,19 +8,15 @@ public static class UseModulesBuilderExtensions public static UseModulesOptionsBuilder UseModules(this MultitenancyMiddlewareOptionsBuilder builder) where TTenant : class { - var optionsBuilder = new UseModulesOptionsBuilder(builder); - return optionsBuilder; + return new UseModulesOptionsBuilder(builder); } public static IApplicationBuilder UseModules(this IApplicationBuilder builder) - where TTenant : class - where TModule : IModule + where TTenant : class + where TModule : IModule { - // var container = builder.ApplicationServices; - // var resolved = container.GetRequiredService(typeof(IModuleManager)); builder.UseMiddleware>(builder); return builder; } } - -} \ No newline at end of file +} diff --git a/src/Dotnettency.Modules/UseModulesOptionsBuilder.cs b/src/Dotnettency.Modules/UseModulesOptionsBuilder.cs index 3794fec..e21c62f 100644 --- a/src/Dotnettency.Modules/UseModulesOptionsBuilder.cs +++ b/src/Dotnettency.Modules/UseModulesOptionsBuilder.cs @@ -1,6 +1,5 @@ using Dotnettency.Modules; using Microsoft.AspNetCore.Builder; -using Microsoft.Extensions.DependencyInjection; namespace Dotnettency { @@ -16,13 +15,8 @@ public UseModulesOptionsBuilder(MultitenancyMiddlewareOptionsBuilder pa public MultitenancyMiddlewareOptionsBuilder OfType() { - // var container = _parent.ApplicationBuilder.ApplicationServices; - // var resolved = container.GetRequiredService(typeof(IModuleManager)); _parent.ApplicationBuilder.UseMiddleware>(_parent.ApplicationBuilder); - - // _parent.ApplicationBuilder.UseMiddleware>(_parent.ApplicationBuilder); return _parent; } } - -} \ No newline at end of file +} From 70fde361a5e47bc072abbafe78c694eb9dfbe9f4 Mon Sep 17 00:00:00 2001 From: Valentin Zwick Date: Mon, 6 Nov 2017 11:28:36 +0100 Subject: [PATCH 28/86] Apparently, Dotnettency.Container.StructureMap slipped through in the cleanup --- .../StructureMap/AspNetConstructorSelector.cs | 9 +-- .../StructureMap/ContainerExtensions.cs | 52 ++----------- .../StructureMap/HelperExtensions.cs | 6 +- ...ureMapContainerBuilderOptionsExtensions.cs | 74 ++----------------- .../StructureMapServiceProvider.cs | 10 +-- .../StructureMapServiceScopeFactory.cs | 52 ++++++------- .../StructureMapTenantContainerAdaptor.cs | 39 +++------- .../StructureMapTenantContainerBuilder.cs | 54 -------------- .../StructureMap/TenantContainerBuilder.cs | 42 ----------- 9 files changed, 50 insertions(+), 288 deletions(-) delete mode 100644 src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerBuilder.cs delete mode 100644 src/Dotnettency.Container.StructureMap/StructureMap/TenantContainerBuilder.cs diff --git a/src/Dotnettency.Container.StructureMap/StructureMap/AspNetConstructorSelector.cs b/src/Dotnettency.Container.StructureMap/StructureMap/AspNetConstructorSelector.cs index 3eea8c3..10ff1ae 100644 --- a/src/Dotnettency.Container.StructureMap/StructureMap/AspNetConstructorSelector.cs +++ b/src/Dotnettency.Container.StructureMap/StructureMap/AspNetConstructorSelector.cs @@ -1,6 +1,4 @@ - - -/// Taken from https://github.com/structuremap/StructureMap.Microsoft.DependencyInjection/blob/0d20c416c5423f5153a71589f5082a9b234b123c/src/StructureMap.Microsoft.DependencyInjection/HelperExtensions.cs +/// Taken from https://github.com/structuremap/StructureMap.Microsoft.DependencyInjection/blob/0d20c416c5423f5153a71589f5082a9b234b123c/src/StructureMap.Microsoft.DependencyInjection/HelperExtensions.cs /// Licenced under MIT Licence. /// With changes by Darrell Tunnell. /// @@ -12,11 +10,8 @@ internal class AspNetConstructorSelector : IConstructorSelector { - // ASP.NET expects registered services to be considered when selecting a ctor, SM doesn't by default. - public ConstructorInfo Find(Type pluggedType, DependencyCollection dependencies, PluginGraph graph) => - pluggedType.GetTypeInfo() .DeclaredConstructors .Where(ctor => ctor.IsConstructor && !ctor.IsPrivate) // IsConstructor is false for static constructors @@ -25,4 +20,4 @@ public ConstructorInfo Find(Type pluggedType, DependencyCollection dependencies, .OrderByDescending(x => x.Parameters.Length) .Select(x => x.Constructor) .FirstOrDefault(); -} \ No newline at end of file +} diff --git a/src/Dotnettency.Container.StructureMap/StructureMap/ContainerExtensions.cs b/src/Dotnettency.Container.StructureMap/StructureMap/ContainerExtensions.cs index c4eeebd..52acb9d 100644 --- a/src/Dotnettency.Container.StructureMap/StructureMap/ContainerExtensions.cs +++ b/src/Dotnettency.Container.StructureMap/StructureMap/ContainerExtensions.cs @@ -12,10 +12,8 @@ namespace Dotnettency.Container.StructureMap { - public static partial class ContainerExtensions { - /// /// Populates the container using the specified service descriptors. /// @@ -28,9 +26,7 @@ public static void Populate(this IContainer container, IEnumerable config.Populate(descriptors)); } - - - + /// /// Populates the container using the specified service descriptors. /// @@ -43,9 +39,7 @@ public static void Populate(this ConfigurationExpression config, IEnumerable /// Populates the registry using the specified service descriptors. /// @@ -56,11 +50,6 @@ public static void Populate(this ConfigurationExpression config, IEnumerableThe service descriptors. public static void Populate(this Registry registry, IEnumerable descriptors) { - - // HACK: We insert this action in order to prevent Populate being called twice on the same container. - // registry.Configure(ThrowIfMarkerInterfaceIsRegistered); - // registry.For(); - registry.Policies.ConstructorSelector(); registry.For() @@ -74,40 +63,16 @@ public static void Populate(this Registry registry, IEnumerable(); registry.Register(descriptors); - } - - //private static void ThrowIfMarkerInterfaceIsRegistered(PluginGraph graph) - //{ - - // if (graph.HasFamily()) - - // { - - // throw new InvalidOperationException("Populate should only be called once per container."); - - // } - - //} - - - + private static void Register(this IProfileRegistry registry, IEnumerable descriptors) - { - foreach (var descriptor in descriptors) - { - registry.Register(descriptor); - } - } - - private static void Register(this IProfileRegistry registry, ServiceDescriptor descriptor) { if (descriptor.ImplementationType != null) @@ -121,24 +86,19 @@ private static void Register(this IProfileRegistry registry, ServiceDescriptor d if (descriptor.ImplementationFactory != null) { registry.For(descriptor.ServiceType) - .LifecycleIs(descriptor.Lifetime) - .Use(descriptor.CreateFactory()); + .LifecycleIs(descriptor.Lifetime) + .Use(descriptor.CreateFactory()); return; } registry.For(descriptor.ServiceType) .LifecycleIs(descriptor.Lifetime) .Use(descriptor.ImplementationInstance); - } - - - + private static Expression> CreateFactory(this ServiceDescriptor descriptor) { return context => descriptor.ImplementationFactory(context.GetInstance()); } - - // private interface IMarkerInterface { } } } diff --git a/src/Dotnettency.Container.StructureMap/StructureMap/HelperExtensions.cs b/src/Dotnettency.Container.StructureMap/StructureMap/HelperExtensions.cs index 6909ff3..0df722e 100644 --- a/src/Dotnettency.Container.StructureMap/StructureMap/HelperExtensions.cs +++ b/src/Dotnettency.Container.StructureMap/StructureMap/HelperExtensions.cs @@ -12,7 +12,6 @@ namespace Dotnettency.Container.StructureMap.StructureMap { - internal static class HelperExtensions { public static bool IsGenericEnumerable(this Type type) @@ -20,7 +19,6 @@ public static bool IsGenericEnumerable(this Type type) return type.GetTypeInfo().IsGenericType && type.GetGenericTypeDefinition() == typeof(IEnumerable<>); } - public static GenericFamilyExpression LifecycleIs(this GenericFamilyExpression instance, ServiceLifetime lifetime) { switch (lifetime) @@ -39,11 +37,9 @@ public static GenericFamilyExpression LifecycleIs(this GenericFamilyExpression i } } - public static bool HasFamily(this PluginGraph graph) { return graph.HasFamily(typeof(TPlugin)); } - } -} \ No newline at end of file +} diff --git a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapContainerBuilderOptionsExtensions.cs b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapContainerBuilderOptionsExtensions.cs index 0e4f921..3db6574 100644 --- a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapContainerBuilderOptionsExtensions.cs +++ b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapContainerBuilderOptionsExtensions.cs @@ -1,65 +1,16 @@ using Dotnettency.Container; +using Dotnettency.Container.StructureMap; using Microsoft.Extensions.DependencyInjection; using System; -using Dotnettency.Container.StructureMap; namespace Dotnettency { - public static class StructureMapContainerBuilderOptionsExtensions { - //public static ContainerBuilderOptions WithStructureMap(this ContainerBuilderOptions options, - // Action configureTenant) - // where TTenant : class - //{ - - - // // Set a func, that is only invoked when the ServiceProvider is required. This ensures it runs after all other configuration methods - // // which is important as other methods can still add new services to the servicecollection after this one is invoked and we - // // dont want them to be missed when populating the container. - // options.Builder.BuildServiceProvider = new Func(() => - // { - // var container = new StructureMap.Container(); - // container.Populate(options.Builder.Services); - // container.Configure(_ => - // _.For>() - // .Use(new StructureMapTenantContainerBuilder(container, configureTenant)) - // ); - // return container.GetInstance(); - // }); - - // return options; - //} - - //public static AdaptedContainerBuilderOptions WithStructureMap(this ContainerBuilderOptions options, - // Action configureTenant) - // where TTenant : class - //{ - - // // Set a func, that is only invoked when the ServiceProvider is required. This ensures it runs after all other configuration methods - // // which is important as other methods can still add new services to the servicecollection after this one is invoked and we - // // dont want them to be missed when populating the container. - // options.Builder.BuildServiceProvider = new Func(() => - // { - // var container = new StructureMap.Container(); - // container.Populate(options.Builder.Services); - - // container.Configure(_ => - // _.For>() - // .Use(new StructureMapTenantContainerBuilder(container, (tenant, config) => configureTenant(config))) - // ); - // return container.GetInstance(); - // }); - - // return options; - - //} - public static AdaptedContainerBuilderOptions WithStructureMap(this ContainerBuilderOptions options, - Action configureTenant) - where TTenant : class + Action configureTenant) + where TTenant : class { - var adaptorFactory = new Func(() => { // host level container. @@ -73,28 +24,13 @@ public static AdaptedContainerBuilderOptions WithStructureMap( .Use(new TenantContainerBuilder(adaptedContainer, configureTenant)) ); - // new StructureMap.Pipeline.ExplicitArguments("role", ContainerRole.Root) var adaptor = container.GetInstance(); - // new StructureMapTenantContainerAdaptor(container, ContainerRole.Root); return adaptor; }); var adapted = new AdaptedContainerBuilderOptions(options, adaptorFactory); - - // Set a func, that is only invoked when the ServiceProvider is required. This ensures it runs after all other configuration methods - // which is important as other methods can still add new services to the servicecollection after this one is invoked and we - // dont want them to be missed when populating the container. - - - //options.Builder.BuildServiceProvider = new Func(() => - //{ - - // // now configure nested container per tenant. - // return container.GetInstance(); - //}); - + return adapted; } - } -} \ No newline at end of file +} diff --git a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapServiceProvider.cs b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapServiceProvider.cs index 5e00fd9..1f09f4a 100644 --- a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapServiceProvider.cs +++ b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapServiceProvider.cs @@ -11,13 +11,13 @@ namespace Dotnettency.Container.StructureMap { public class StructureMapServiceProvider : IServiceProvider, ISupportRequiredService { + private IContainer _container { get; } + public StructureMapServiceProvider(IContainer container) { - Container = container; + _container = container; } - private IContainer Container { get; } - public object GetService(Type serviceType) { if (serviceType.IsGenericEnumerable()) @@ -27,12 +27,12 @@ public object GetService(Type serviceType) return GetRequiredService(serviceType); } - return Container.TryGetInstance(serviceType); + return _container.TryGetInstance(serviceType); } public object GetRequiredService(Type serviceType) { - return Container.GetInstance(serviceType); + return _container.GetInstance(serviceType); } } } diff --git a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapServiceScopeFactory.cs b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapServiceScopeFactory.cs index b5e8307..8512547 100644 --- a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapServiceScopeFactory.cs +++ b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapServiceScopeFactory.cs @@ -8,70 +8,62 @@ public static partial class ContainerExtensions { internal sealed class TenantContainerServiceScopeFactory : IServiceScopeFactory { + private readonly ITenantContainerAdaptor _container; + public TenantContainerServiceScopeFactory(ITenantContainerAdaptor container) { - Container = container; // new StructureMapTenantContainerAdaptor(container, ContainerRole.Root); + _container = container; } - private ITenantContainerAdaptor Container { get; } - public IServiceScope CreateScope() { - return new TenantContainerServiceScope(Container.CreateNestedContainer()); + return new TenantContainerServiceScope(_container.CreateNestedContainer()); } - - + private class TenantContainerServiceScope : IServiceScope { + private readonly ITenantContainerAdaptor _container; + + public IServiceProvider ServiceProvider { get; } public TenantContainerServiceScope(ITenantContainerAdaptor container) { - Container = container; - ServiceProvider = Container; + _container = container; + ServiceProvider = _container; } - private ITenantContainerAdaptor Container { get; } - - public IServiceProvider ServiceProvider { get; } - - public void Dispose() => Container.Dispose(); - + public void Dispose() => _container.Dispose(); } - } internal sealed class StructureMapServiceScopeFactory : IServiceScopeFactory { + private readonly IContainer _container; + public StructureMapServiceScopeFactory(IContainer container) { - Container = container; + _container = container; } - private IContainer Container { get; } - public IServiceScope CreateScope() { - return new StructureMapServiceScope(Container.GetNestedContainer()); + return new StructureMapServiceScope(_container.GetNestedContainer()); } - - + private class StructureMapServiceScope : IServiceScope { + private readonly IContainer _container; + + public IServiceProvider ServiceProvider { get; } public StructureMapServiceScope(IContainer container) { - Container = container; + _container = container; ServiceProvider = container.GetInstance(); } - private IContainer Container { get; } - - public IServiceProvider ServiceProvider { get; } - - public void Dispose() => Container.Dispose(); - + public void Dispose() => _container.Dispose(); } - } } -} \ No newline at end of file +} diff --git a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerAdaptor.cs b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerAdaptor.cs index 1b897ef..ed8225b 100644 --- a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerAdaptor.cs +++ b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerAdaptor.cs @@ -1,9 +1,8 @@ -using StructureMap; -using System; +using Dotnettency.Container.StructureMap; using Microsoft.Extensions.DependencyInjection; -using Dotnettency.Container.StructureMap; -using System.Threading.Tasks; using Microsoft.Extensions.Logging; +using StructureMap; +using System; namespace Dotnettency.Container { @@ -13,12 +12,17 @@ public class StructureMapTenantContainerAdaptor : StructureMapServiceProvider, I private readonly Guid _id; private readonly ILogger _logger; + public ContainerRole Role { get; set; } + public string ContainerName => _container.Name; + public Guid ContainerId => _id; + public StructureMapTenantContainerAdaptor(ILogger logger, IContainer container, ContainerRole role = ContainerRole.Root) : base(container) { _logger = logger; _container = container; _id = Guid.NewGuid(); Role = role; + if (role == ContainerRole.Root) { _logger.LogDebug("Root Container Adaptor Created: {id}, {containerNAme}, {role}", _id, _container.Name, _container.Role); @@ -27,28 +31,10 @@ public StructureMapTenantContainerAdaptor(ILogger(() => - //{ - // return - //}); } - //private IServiceProvider GetServiceProvider() - //{ - // return _container.GetInstance(); - //} - - public ContainerRole Role { get; set; } - - public string ContainerName => _container.Name; - - public Guid ContainerId => _id; - public void Configure(Action configure) { - //return Task.Run(() => - //{ _container.Configure(_ => { _logger.LogDebug("Configuring container: {id}, {containerNAme}, {role}", _id, _container.Name, _container.Role); @@ -56,7 +42,6 @@ public void Configure(Action configure) configure(services); _.Populate(services); }); - // }); } public ITenantContainerAdaptor CreateNestedContainer() @@ -76,11 +61,5 @@ public void Dispose() _logger.LogDebug("Disposing of container: {id}, {containerNAme}, {role}", _id, _container.Name, _container.Role); _container.Dispose(); } - - //public new object GetService(Type serviceType) - //{ - // var sp = GetServiceProvider(); - // return sp.GetService(serviceType); - //} } -} \ No newline at end of file +} diff --git a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerBuilder.cs b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerBuilder.cs deleted file mode 100644 index fe855b4..0000000 --- a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerBuilder.cs +++ /dev/null @@ -1,54 +0,0 @@ -using StructureMap; -using StructureMap.Pipeline; -using System; -using System.Threading.Tasks; - -namespace Dotnettency.Container -{ - //public class StructureMapTenantContainerBuilder : ITenantContainerBuilder - //{ - // public StructureMapTenantContainerBuilder(IContainer container, Action configure) - // { - // // Ensure.Argument.NotNull(container, nameof(container)); - // // Ensure.Argument.NotNull(configure, nameof(configure)); - - // Container = container; - // Configure = configure; - // } - - // protected IContainer Container { get; } - // protected Action Configure { get; } - - // public virtual Task BuildAsync(TTenant tenant) - // { - // // Ensure.Argument.NotNull(tenant, nameof(tenant)); - - // var tenantContainer = Container.CreateChildContainer(); - - - - - // tenantContainer.Configure(config => - // { - // // config.For() - // //.LifecycleIs(Lifecycles.Container) - // //.Use(); - // Configure(tenant, config); - // }); - // var report = tenantContainer.WhatDoIHave(); - // ITenantContainerAdaptor adaptor = tenantContainer.GetInstance(); - - // //new StructureMapTenantContainerAdaptor(tenantContainer, ContainerRole.Child); - - // // IServiceScopeFactory - - // // var sp = adaptor.GetServiceProvider(); - - - - // return Task.FromResult(adaptor); - // } - //} - - -} \ No newline at end of file diff --git a/src/Dotnettency.Container.StructureMap/StructureMap/TenantContainerBuilder.cs b/src/Dotnettency.Container.StructureMap/StructureMap/TenantContainerBuilder.cs deleted file mode 100644 index cb311d7..0000000 --- a/src/Dotnettency.Container.StructureMap/StructureMap/TenantContainerBuilder.cs +++ /dev/null @@ -1,42 +0,0 @@ -using Microsoft.Extensions.DependencyInjection; -using System; -using System.Threading.Tasks; - -namespace Dotnettency.Container -{ - //public class TenantContainerBuilder : ITenantContainerBuilder - //{ - // private readonly ITenantContainerAdaptor _parentContainer; - // private readonly Action _configureTenant; - - // public TenantContainerBuilder(ITenantContainerAdaptor parentContainer, Action configureTenant) - // { - // _parentContainer = parentContainer; - // _configureTenant = configureTenant; - // } - - // public Task BuildAsync(TTenant tenant) - // { - - // var tenantContainer = _parentContainer.CreateChildContainer(); - // tenantContainer.Configure(config => - // { - // // config.For() - // //.LifecycleIs(Lifecycles.Container) - // //.Use(); - // _configureTenant(tenant, config); - // }); - // //var report = tenantContainer.WhatDoIHave(); - // // ITenantContainerAdaptor adaptor = tenantContainer.GetInstance(); - - // //new StructureMapTenantContainerAdaptor(tenantContainer, ContainerRole.Child); - - // // IServiceScopeFactory - - // // var sp = adaptor.GetServiceProvider(); - // return Task.FromResult(tenantContainer); - // } - //} - - -} \ No newline at end of file From 1f4a39ae29d83ec33d6447c253c049ab87680ca5 Mon Sep 17 00:00:00 2001 From: Valentin Zwick Date: Mon, 6 Nov 2017 12:29:43 +0100 Subject: [PATCH 29/86] Properties below constructors --- .../StructureMapServiceProvider.cs | 2 +- .../StructureMapServiceScopeFactory.cs | 8 ++--- .../StructureMapTenantContainerAdaptor.cs | 8 ++--- .../AdaptedContainerBuilderOptions.cs | 6 ++-- .../ContainerBuilderOptions.cs | 4 +-- .../ITenantContainerAdaptor.cs | 9 +++--- .../PerRequestContainer.cs | 6 ++-- .../TenantContainerAccessor.cs | 4 +-- .../TenantRequestContainerAccessor.cs | 4 +-- .../TenantFileSystemBuilderContext.cs | 10 +++---- .../TenantHostingEnvironment.cs | 16 +++++----- .../TenantHostingEnvironmentOptionsBuilder.cs | 6 ++-- .../TenantShellFileSystemExtensions.cs | 4 +-- .../MultitenancyOptionsBuilderExtensions.cs | 4 ++- .../TenantPipelineAccessor.cs | 4 +-- .../MultitenancyMiddlewareOptionsBuilder.cs | 4 +-- src/Dotnettency/MultitenancyOptionsBuilder.cs | 8 ++--- src/Dotnettency/TenantAccessor.cs | 4 +-- .../HttpContextTenantDistinguisherFactory.cs | 2 +- .../TenantDistinguisher.cs | 4 +-- .../TenantDistinguisherAccessor.cs | 4 +-- .../ConcurrentDictionaryTenantShellCache.cs | 8 +++-- src/Dotnettency/TenantShell/TenantShell.cs | 30 +++++++++---------- src/Dotnettency/TenantShellAccessor.cs | 4 +-- 24 files changed, 84 insertions(+), 79 deletions(-) diff --git a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapServiceProvider.cs b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapServiceProvider.cs index 1f09f4a..5ad4736 100644 --- a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapServiceProvider.cs +++ b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapServiceProvider.cs @@ -11,7 +11,7 @@ namespace Dotnettency.Container.StructureMap { public class StructureMapServiceProvider : IServiceProvider, ISupportRequiredService { - private IContainer _container { get; } + private IContainer _container; public StructureMapServiceProvider(IContainer container) { diff --git a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapServiceScopeFactory.cs b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapServiceScopeFactory.cs index 8512547..0f0f9f1 100644 --- a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapServiceScopeFactory.cs +++ b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapServiceScopeFactory.cs @@ -24,14 +24,14 @@ private class TenantContainerServiceScope : IServiceScope { private readonly ITenantContainerAdaptor _container; - public IServiceProvider ServiceProvider { get; } - public TenantContainerServiceScope(ITenantContainerAdaptor container) { _container = container; ServiceProvider = _container; } + public IServiceProvider ServiceProvider { get; private set; } + public void Dispose() => _container.Dispose(); } } @@ -54,14 +54,14 @@ private class StructureMapServiceScope : IServiceScope { private readonly IContainer _container; - public IServiceProvider ServiceProvider { get; } - public StructureMapServiceScope(IContainer container) { _container = container; ServiceProvider = container.GetInstance(); } + public IServiceProvider ServiceProvider { get; private set; } + public void Dispose() => _container.Dispose(); } } diff --git a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerAdaptor.cs b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerAdaptor.cs index ed8225b..8a976dc 100644 --- a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerAdaptor.cs +++ b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerAdaptor.cs @@ -12,10 +12,6 @@ public class StructureMapTenantContainerAdaptor : StructureMapServiceProvider, I private readonly Guid _id; private readonly ILogger _logger; - public ContainerRole Role { get; set; } - public string ContainerName => _container.Name; - public Guid ContainerId => _id; - public StructureMapTenantContainerAdaptor(ILogger logger, IContainer container, ContainerRole role = ContainerRole.Root) : base(container) { _logger = logger; @@ -33,6 +29,10 @@ public StructureMapTenantContainerAdaptor(ILogger _container.Name; + public Guid ContainerId => _id; + public void Configure(Action configure) { _container.Configure(_ => diff --git a/src/Dotnettency.Container/AdaptedContainerBuilderOptions.cs b/src/Dotnettency.Container/AdaptedContainerBuilderOptions.cs index b8eb384..89c8871 100644 --- a/src/Dotnettency.Container/AdaptedContainerBuilderOptions.cs +++ b/src/Dotnettency.Container/AdaptedContainerBuilderOptions.cs @@ -5,9 +5,6 @@ namespace Dotnettency.Container public class AdaptedContainerBuilderOptions where TTenant : class { - public ContainerBuilderOptions ContainerBuilderOptions { get; set; } - public Func HostContainerAdaptorFactory { get; set; } - public AdaptedContainerBuilderOptions(ContainerBuilderOptions parentOptions, Func adaptorFactory) { ContainerBuilderOptions = parentOptions; @@ -18,5 +15,8 @@ public AdaptedContainerBuilderOptions(ContainerBuilderOptions parentOpt return HostContainerAdaptorFactory(); }); } + + public ContainerBuilderOptions ContainerBuilderOptions { get; set; } + public Func HostContainerAdaptorFactory { get; set; } } } \ No newline at end of file diff --git a/src/Dotnettency.Container/ContainerBuilderOptions.cs b/src/Dotnettency.Container/ContainerBuilderOptions.cs index 39c0411..1f8a43c 100644 --- a/src/Dotnettency.Container/ContainerBuilderOptions.cs +++ b/src/Dotnettency.Container/ContainerBuilderOptions.cs @@ -5,8 +5,6 @@ namespace Dotnettency.Container public class ContainerBuilderOptions where TTenant : class { - public MultitenancyOptionsBuilder Builder { get; set; } - public ContainerBuilderOptions(MultitenancyOptionsBuilder builder) { Builder = builder; @@ -14,5 +12,7 @@ public ContainerBuilderOptions(MultitenancyOptionsBuilder builder) builder.Services.AddScoped, TenantContainerAccessor>(); builder.Services.AddScoped, TenantRequestContainerAccessor>(); } + + public MultitenancyOptionsBuilder Builder { get; set; } } } diff --git a/src/Dotnettency.Container/ITenantContainerAdaptor.cs b/src/Dotnettency.Container/ITenantContainerAdaptor.cs index 2054c68..495b734 100644 --- a/src/Dotnettency.Container/ITenantContainerAdaptor.cs +++ b/src/Dotnettency.Container/ITenantContainerAdaptor.cs @@ -8,15 +8,14 @@ public interface ITenantContainerAdaptor : IServiceProvider, IDisposable ITenantContainerAdaptor CreateNestedContainer(); ITenantContainerAdaptor CreateChildContainer(); - string ContainerName { get; } - Guid ContainerId { get; } - - ContainerRole Role { get; } - /// /// Used to add services to a container AFTER its initialised. /// /// void Configure(Action configure); + + string ContainerName { get; } + Guid ContainerId { get; } + ContainerRole Role { get; } } } diff --git a/src/Dotnettency.Container/PerRequestContainer.cs b/src/Dotnettency.Container/PerRequestContainer.cs index 6439706..707b0df 100644 --- a/src/Dotnettency.Container/PerRequestContainer.cs +++ b/src/Dotnettency.Container/PerRequestContainer.cs @@ -6,15 +6,15 @@ namespace Dotnettency.Container { public class PerRequestContainer : IDisposable { - private Action _onDispose { get; set; } - - public ITenantContainerAdaptor RequestContainer { get; } + private Action _onDispose; public PerRequestContainer(ITenantContainerAdaptor requestContainer) { RequestContainer = requestContainer; } + public ITenantContainerAdaptor RequestContainer { get; } + public async Task ExecuteWithinSwappedRequestContainer(RequestDelegate request, HttpContext context) { if (context.Items.ContainsKey(nameof(PerRequestContainer))) diff --git a/src/Dotnettency.Container/TenantContainerAccessor.cs b/src/Dotnettency.Container/TenantContainerAccessor.cs index 9c84043..a11f20a 100644 --- a/src/Dotnettency.Container/TenantContainerAccessor.cs +++ b/src/Dotnettency.Container/TenantContainerAccessor.cs @@ -9,8 +9,6 @@ public class TenantContainerAccessor : ITenantContainerAccessor _tenantShellAccessor; private readonly ITenantContainerFactory _containerFactory; - public Lazy> TenantContainer { get; private set; } - public TenantContainerAccessor(ITenantShellAccessor tenantShellAccessor, ITenantContainerFactory factory) { _tenantShellAccessor = tenantShellAccessor; @@ -34,5 +32,7 @@ public TenantContainerAccessor(ITenantShellAccessor tenantShellAccessor return await lazy.Value; }); } + + public Lazy> TenantContainer { get; private set; } } } diff --git a/src/Dotnettency.Container/TenantRequestContainerAccessor.cs b/src/Dotnettency.Container/TenantRequestContainerAccessor.cs index 05eaba8..2a6d9f8 100644 --- a/src/Dotnettency.Container/TenantRequestContainerAccessor.cs +++ b/src/Dotnettency.Container/TenantRequestContainerAccessor.cs @@ -10,8 +10,6 @@ public class TenantRequestContainerAccessor : ITenantRequestContainerAc private readonly ITenantContainerAccessor _tenantContainerAccessor; private readonly ILogger> _logger; - public Lazy> TenantRequestContainer { get; private set; } - public TenantRequestContainerAccessor( ILogger> logger, ITenantContainerAccessor tenantContainerAccessor) @@ -31,5 +29,7 @@ public TenantRequestContainerAccessor( return new PerRequestContainer(requestContainer); }); } + + public Lazy> TenantRequestContainer { get; private set; } } } \ No newline at end of file diff --git a/src/Dotnettency.HostingEnvironment/TenantFileSystemBuilderContext.cs b/src/Dotnettency.HostingEnvironment/TenantFileSystemBuilderContext.cs index 11cb656..89202b5 100644 --- a/src/Dotnettency.HostingEnvironment/TenantFileSystemBuilderContext.cs +++ b/src/Dotnettency.HostingEnvironment/TenantFileSystemBuilderContext.cs @@ -10,16 +10,16 @@ public class TenantFileSystemBuilderContext { private IFileProvider _parentFileProvider; - public TTenant Tenant { get; set; } - public Guid PartitionId { get; set; } - public string BaseFolder { get; set; } - public TenantFileSystemBuilderContext(TTenant tenant, string defaultTenantsBaseFolder) { Tenant = tenant; BaseFolder = defaultTenantsBaseFolder; } - + + public TTenant Tenant { get; set; } + public Guid PartitionId { get; set; } + public string BaseFolder { get; set; } + public TenantFileSystemBuilderContext AllowAccessTo(IFileProvider chainedFileProvider) { _parentFileProvider = chainedFileProvider; diff --git a/src/Dotnettency.HostingEnvironment/TenantHostingEnvironment.cs b/src/Dotnettency.HostingEnvironment/TenantHostingEnvironment.cs index 2919309..ce9e7ab 100644 --- a/src/Dotnettency.HostingEnvironment/TenantHostingEnvironment.cs +++ b/src/Dotnettency.HostingEnvironment/TenantHostingEnvironment.cs @@ -6,14 +6,6 @@ namespace Dotnettency.HostingEnvironment public class TenantHostingEnvironment : IHostingEnvironment where TTenant : class { - public IHostingEnvironment Parent { get; set; } - public string EnvironmentName { get; set; } - public string ApplicationName { get; set; } - public string WebRootPath { get; set; } - public IFileProvider WebRootFileProvider { get; set; } - public string ContentRootPath { get; set; } - public IFileProvider ContentRootFileProvider { get; set; } - public TenantHostingEnvironment(IHostingEnvironment parent) { // Default to parent hosting environment, but allow properties to be overriden for the tenant. @@ -26,5 +18,13 @@ public TenantHostingEnvironment(IHostingEnvironment parent) ContentRootPath = parent.ContentRootPath; ContentRootFileProvider = parent.ContentRootFileProvider; } + + public IHostingEnvironment Parent { get; set; } + public string EnvironmentName { get; set; } + public string ApplicationName { get; set; } + public string WebRootPath { get; set; } + public IFileProvider WebRootFileProvider { get; set; } + public string ContentRootPath { get; set; } + public IFileProvider ContentRootFileProvider { get; set; } } } diff --git a/src/Dotnettency.HostingEnvironment/TenantHostingEnvironmentOptionsBuilder.cs b/src/Dotnettency.HostingEnvironment/TenantHostingEnvironmentOptionsBuilder.cs index 1c1d9a2..ca10cc8 100644 --- a/src/Dotnettency.HostingEnvironment/TenantHostingEnvironmentOptionsBuilder.cs +++ b/src/Dotnettency.HostingEnvironment/TenantHostingEnvironmentOptionsBuilder.cs @@ -9,8 +9,6 @@ public class TenantHostingEnvironmentOptionsBuilder { private readonly IHostingEnvironment _parentHostingEnvironment; - public MultitenancyOptionsBuilder Builder { get; set; } - public TenantHostingEnvironmentOptionsBuilder(MultitenancyOptionsBuilder builder, IHostingEnvironment hostingEnvironment) { Builder = builder; @@ -23,7 +21,9 @@ public TenantHostingEnvironmentOptionsBuilder(MultitenancyOptionsBuilder(hostingEnvironment); }); - } + } + + public MultitenancyOptionsBuilder Builder { get; set; } public MultitenancyOptionsBuilder OnInitialiseTenantContentRoot(Action> configureContentRoot) { diff --git a/src/Dotnettency.HostingEnvironment/TenantShellFileSystemExtensions.cs b/src/Dotnettency.HostingEnvironment/TenantShellFileSystemExtensions.cs index 00073c6..aaaa550 100644 --- a/src/Dotnettency.HostingEnvironment/TenantShellFileSystemExtensions.cs +++ b/src/Dotnettency.HostingEnvironment/TenantShellFileSystemExtensions.cs @@ -5,13 +5,13 @@ namespace Dotnettency.HostingEnvironment { public static class TenantShellFileSystemExtensions { - private const string ConentRootKey = nameof(TenantShellFileSystemExtensions) + "-ContentRoot"; + private const string ContentRootKey = nameof(TenantShellFileSystemExtensions) + "-ContentRoot"; private const string WebRootKey = nameof(TenantShellFileSystemExtensions) + "-WebRoot"; public static Lazy GetOrAddTenantContentRootFileSystem(this TenantShell tenantShell, Lazy factory) where TTenant : class { - return tenantShell.Properties.GetOrAdd(ConentRootKey, factory) as Lazy; + return tenantShell.Properties.GetOrAdd(ContentRootKey, factory) as Lazy; } public static Lazy GetOrAddTenantWebRootFileSystem(this TenantShell tenantShell, Lazy factory) diff --git a/src/Dotnettency.MiddlewarePipeline/MultitenancyOptionsBuilderExtensions.cs b/src/Dotnettency.MiddlewarePipeline/MultitenancyOptionsBuilderExtensions.cs index 3c976ee..345fc60 100644 --- a/src/Dotnettency.MiddlewarePipeline/MultitenancyOptionsBuilderExtensions.cs +++ b/src/Dotnettency.MiddlewarePipeline/MultitenancyOptionsBuilderExtensions.cs @@ -5,7 +5,9 @@ namespace Dotnettency { public static class MultitenancyOptionsBuilderExtensions { - public static MultitenancyOptionsBuilder ConfigureTenantMiddleware(this MultitenancyOptionsBuilder builder, Action> configureOptions) + public static MultitenancyOptionsBuilder ConfigureTenantMiddleware( + this MultitenancyOptionsBuilder builder, + Action> configureOptions) where TTenant : class { var optsBuilder = new TenantPipelineOptionsBuilder(builder); diff --git a/src/Dotnettency.MiddlewarePipeline/TenantPipelineAccessor.cs b/src/Dotnettency.MiddlewarePipeline/TenantPipelineAccessor.cs index c26202b..fff628c 100644 --- a/src/Dotnettency.MiddlewarePipeline/TenantPipelineAccessor.cs +++ b/src/Dotnettency.MiddlewarePipeline/TenantPipelineAccessor.cs @@ -11,8 +11,6 @@ public class TenantPipelineAccessor : ITenantPipelineAccessor private readonly ITenantShellAccessor _tenantShellAccessor; private readonly ITenantMiddlewarePipelineFactory _tenantPipelineFactory; - public Func>> TenantPipeline { get; private set; } - public TenantPipelineAccessor( ITenantMiddlewarePipelineFactory tenantPipelineFactory, TenantShellAccessor tenantShellAccessor) @@ -40,5 +38,7 @@ public TenantPipelineAccessor( }); }); } + + public Func>> TenantPipeline { get; private set; } } } diff --git a/src/Dotnettency/MultitenancyMiddlewareOptionsBuilder.cs b/src/Dotnettency/MultitenancyMiddlewareOptionsBuilder.cs index 605db21..2f37860 100644 --- a/src/Dotnettency/MultitenancyMiddlewareOptionsBuilder.cs +++ b/src/Dotnettency/MultitenancyMiddlewareOptionsBuilder.cs @@ -4,11 +4,11 @@ namespace Dotnettency { public class MultitenancyMiddlewareOptionsBuilder { - public IApplicationBuilder ApplicationBuilder { get; set; } - public MultitenancyMiddlewareOptionsBuilder(IApplicationBuilder app) { ApplicationBuilder = app; } + + public IApplicationBuilder ApplicationBuilder { get; set; } } } \ No newline at end of file diff --git a/src/Dotnettency/MultitenancyOptionsBuilder.cs b/src/Dotnettency/MultitenancyOptionsBuilder.cs index 789b914..b778947 100644 --- a/src/Dotnettency/MultitenancyOptionsBuilder.cs +++ b/src/Dotnettency/MultitenancyOptionsBuilder.cs @@ -7,9 +7,6 @@ namespace Dotnettency public class MultitenancyOptionsBuilder where TTenant : class { - public Func ServiceProviderFactory { get; set; } - public IServiceCollection Services { get; set; } - public MultitenancyOptionsBuilder(IServiceCollection serviceCollection) { Services = serviceCollection; @@ -41,7 +38,10 @@ public MultitenancyOptionsBuilder(IServiceCollection serviceCollection) return sp.GetRequiredService>().CurrentTenant.Value; }); } - + + public Func ServiceProviderFactory { get; set; } + public IServiceCollection Services { get; set; } + /// /// Call this to override the service used to provide a URI for the current request. The URI is used as an identifier /// for a tenant to be loaded. diff --git a/src/Dotnettency/TenantAccessor.cs b/src/Dotnettency/TenantAccessor.cs index 2b88f96..ce062d1 100644 --- a/src/Dotnettency/TenantAccessor.cs +++ b/src/Dotnettency/TenantAccessor.cs @@ -8,8 +8,6 @@ public class TenantAccessor : ITenantAccessor { private readonly ITenantShellAccessor _tenantShellAccessor; - public Lazy> CurrentTenant { get; private set; } - public TenantAccessor(ITenantShellAccessor tenantShellAccessor) { _tenantShellAccessor = tenantShellAccessor; @@ -20,5 +18,7 @@ public TenantAccessor(ITenantShellAccessor tenantShellAccessor) return tenantShell?.Tenant; }); } + + public Lazy> CurrentTenant { get; private set; } } } diff --git a/src/Dotnettency/TenantDistinguisher/HttpContextTenantDistinguisherFactory.cs b/src/Dotnettency/TenantDistinguisher/HttpContextTenantDistinguisherFactory.cs index b0ba16b..0509668 100644 --- a/src/Dotnettency/TenantDistinguisher/HttpContextTenantDistinguisherFactory.cs +++ b/src/Dotnettency/TenantDistinguisher/HttpContextTenantDistinguisherFactory.cs @@ -12,7 +12,7 @@ public abstract class HttpContextTenantDistinguisherFactory : ITenantDi protected const int DefaultHttpPort = 80; protected const int DefaultHttpsPort = 443; - public HttpContextTenantDistinguisherFactory(IHttpContextAccessor httpContextAccessor) + protected HttpContextTenantDistinguisherFactory(IHttpContextAccessor httpContextAccessor) { _httpContextAccesor = httpContextAccessor; } diff --git a/src/Dotnettency/TenantDistinguisher/TenantDistinguisher.cs b/src/Dotnettency/TenantDistinguisher/TenantDistinguisher.cs index d8e80a7..ba8f94a 100644 --- a/src/Dotnettency/TenantDistinguisher/TenantDistinguisher.cs +++ b/src/Dotnettency/TenantDistinguisher/TenantDistinguisher.cs @@ -4,13 +4,13 @@ namespace Dotnettency { public class TenantDistinguisher : IEquatable { - public Uri Uri { get; set; } - public TenantDistinguisher(Uri key) { Uri = key; } + public Uri Uri { get; set; } + public static implicit operator TenantDistinguisher(Uri key) { TenantDistinguisher value = new TenantDistinguisher(key); diff --git a/src/Dotnettency/TenantDistinguisher/TenantDistinguisherAccessor.cs b/src/Dotnettency/TenantDistinguisher/TenantDistinguisherAccessor.cs index af8dd74..1520d54 100644 --- a/src/Dotnettency/TenantDistinguisher/TenantDistinguisherAccessor.cs +++ b/src/Dotnettency/TenantDistinguisher/TenantDistinguisherAccessor.cs @@ -8,8 +8,6 @@ public class TenantDistinguisherAccessor { private ITenantDistinguisherFactory _factory; - public Lazy> TenantDistinguisher { get; private set; } - public TenantDistinguisherAccessor(ITenantDistinguisherFactory factory) { _factory = factory; @@ -18,5 +16,7 @@ public TenantDistinguisherAccessor(ITenantDistinguisherFactory factory) return _factory.IdentifyContext(); }); } + + public Lazy> TenantDistinguisher { get; private set; } } } diff --git a/src/Dotnettency/TenantShell/ConcurrentDictionaryTenantShellCache.cs b/src/Dotnettency/TenantShell/ConcurrentDictionaryTenantShellCache.cs index 662dc12..4ab3ce7 100644 --- a/src/Dotnettency/TenantShell/ConcurrentDictionaryTenantShellCache.cs +++ b/src/Dotnettency/TenantShell/ConcurrentDictionaryTenantShellCache.cs @@ -13,12 +13,16 @@ public ConcurrentDictionaryTenantShellCache() _mappings = new ConcurrentDictionary>(); } - public TenantShell AddOrUpdate(TenantDistinguisher key, Func> addValueFactory, Func, TenantShell> updateValueFactory) + public TenantShell AddOrUpdate(TenantDistinguisher key, + Func> addValueFactory, + Func, TenantShell> updateValueFactory) { return _mappings.AddOrUpdate(key, addValueFactory, updateValueFactory); } - public TenantShell AddOrUpdate(TenantDistinguisher key, TenantShell addValue, Func, TenantShell> updateValueFactory) + public TenantShell AddOrUpdate(TenantDistinguisher key, + TenantShell addValue, + Func, TenantShell> updateValueFactory) { return _mappings.AddOrUpdate(key, addValue, updateValueFactory); } diff --git a/src/Dotnettency/TenantShell/TenantShell.cs b/src/Dotnettency/TenantShell/TenantShell.cs index 2e7484f..1979887 100644 --- a/src/Dotnettency/TenantShell/TenantShell.cs +++ b/src/Dotnettency/TenantShell/TenantShell.cs @@ -7,20 +7,6 @@ namespace Dotnettency public class TenantShell where TTenant : class { - public ConcurrentDictionary Properties { get; private set; } - - /// - /// Uniquely identifies this tenant. - /// - public Guid Id { get; set; } - - public TTenant Tenant { get; set; } - - /// - /// Represents context distinguihers for this same tenant. Allows future request with any of these distinguishers to be mapped to this same tenant. - /// - internal HashSet Distinguishers { get; set; } - public TenantShell(TTenant tenant, params TenantDistinguisher[] distinguishers) { Id = Guid.NewGuid(); @@ -36,5 +22,19 @@ public TenantShell(TTenant tenant, params TenantDistinguisher[] distinguishers) } } } - } + + public ConcurrentDictionary Properties { get; private set; } + + /// + /// Uniquely identifies this tenant. + /// + public Guid Id { get; set; } + + public TTenant Tenant { get; set; } + + /// + /// Represents context distinguihers for this same tenant. Allows future request with any of these distinguishers to be mapped to this same tenant. + /// + internal HashSet Distinguishers { get; set; } + } } diff --git a/src/Dotnettency/TenantShellAccessor.cs b/src/Dotnettency/TenantShellAccessor.cs index 4fe1a37..a4ef058 100644 --- a/src/Dotnettency/TenantShellAccessor.cs +++ b/src/Dotnettency/TenantShellAccessor.cs @@ -10,8 +10,6 @@ public class TenantShellAccessor : ITenantShellAccessor private readonly TenantDistinguisherAccessor _tenantDistinguisherAccessor; private readonly ITenantShellResolver _tenantResolver; - public Lazy>> CurrentTenantShell { get; private set; } - public TenantShellAccessor(ITenantShellFactory tenantFactory, TenantDistinguisherAccessor tenantDistinguisherAccessor, ITenantShellResolver tenantResolver) @@ -31,5 +29,7 @@ public TenantShellAccessor(ITenantShellFactory tenantFactory, return await _tenantResolver.ResolveTenant(identifier, _tenantFactory); }); } + + public Lazy>> CurrentTenantShell { get; private set; } } } From cc7fdde572755b955079618bc43d3c6c9846d683 Mon Sep 17 00:00:00 2001 From: Valentin Zwick Date: Mon, 6 Nov 2017 12:33:49 +0100 Subject: [PATCH 30/86] Explicit private set for PerRequestContainer.RequestContainer --- src/Dotnettency.Container/PerRequestContainer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Dotnettency.Container/PerRequestContainer.cs b/src/Dotnettency.Container/PerRequestContainer.cs index 707b0df..d7d0d42 100644 --- a/src/Dotnettency.Container/PerRequestContainer.cs +++ b/src/Dotnettency.Container/PerRequestContainer.cs @@ -13,7 +13,7 @@ public PerRequestContainer(ITenantContainerAdaptor requestContainer) RequestContainer = requestContainer; } - public ITenantContainerAdaptor RequestContainer { get; } + public ITenantContainerAdaptor RequestContainer { get; private set; } public async Task ExecuteWithinSwappedRequestContainer(RequestDelegate request, HttpContext context) { From 0a66fc8613690e4ca76ca42ba2a87ce2181819d7 Mon Sep 17 00:00:00 2001 From: Darrell Tunnell Date: Wed, 15 Nov 2017 17:20:40 +0000 Subject: [PATCH 31/86] Refactored to move asp.net core related functionality into seperate packages. Allows dotnettency features to be used more cleanly from non asp.net core apps such as xamarin. --- ...daptedContainerBuilderOptionsExtensions.cs | 16 ++ .../Dotnettency.AspNetCore.Container.csproj | 12 ++ .../ITenantRequestContainerAccessor.cs | 2 +- ...ancyMiddlewareOptionsBuilderExtensions.cs} | 5 +- .../PerRequestContainer.cs | 3 +- .../TenantContainerMiddleware.cs | 6 +- .../TenantRequestContainerAccessor.cs | 3 +- ...ePerHostingEnvironmentBuilderExtensions.cs | 2 +- ...antContentRootFileSystemProviderFactory.cs | 5 +- ...eTenantWebRootFileSystemProviderFactory.cs | 5 +- ...ency.AspNetCore.HostingEnvironment.csproj} | 2 + ...nantContentRootFileSystemProviderFatory.cs | 10 ++ .../ITenantWebRootFileSystemProviderFatory.cs | 10 ++ ...tingEnvironmentMiddlewareOptionsBuilder.cs | 5 +- .../TenantHostingEnvironment.cs | 2 +- ...HostingEnvironmentContentRootMiddleware.cs | 6 +- .../TenantHostingEnvironmentOptionsBuilder.cs | 9 +- ...nantHostingEnvironmentWebRootMiddleware.cs | 6 +- ...lHostingEnvironmentFileSystemExtensions.cs | 24 +++ ...sePerTenantHostingEnvironmentExtensions.cs | 4 +- ...DelegateTenantMiddlewarePipelineFactory.cs | 5 +- ...ency.AspNetCore.MiddlewarePipeline.csproj} | 1 + .../ITenantMiddlewarePipelineFactory.cs | 2 +- .../ITenantPipelineAccessor.cs | 2 +- .../MultitenancyOptionsBuilderExtensions.cs | 2 +- .../TenantPipelineAccessor.cs | 2 +- .../TenantPipelineBuilderContext.cs | 2 +- .../TenantPipelineMiddleware.cs | 2 +- .../TenantPipelineOptionsBuilder.cs | 2 +- .../TenantShellPipelineExtensions.cs | 2 +- .../UsePerTenantBuilderExtensions.cs | 3 +- ...tnettency.AspNetCore.Modules.Nancy.csproj} | 3 +- .../ITenantNancyBootstrapperAccessor.cs | 2 +- .../ITenantNancyBootstrapperFactory.cs | 5 +- .../Module/TestNancyModule.cs | 2 +- .../Module/TestNancyRoutedModule.cs | 5 +- .../NancyImpl/AlreadyKnownRouteResolver.cs | 2 +- .../NancyImpl/CustomNancyModuleBuilder.cs | 2 +- .../NancyImpl/NancyHandler.cs | 2 +- .../NancyImpl/NancyPassThroughOptions.cs | 2 +- .../TenantContainerNancyBootstrapper.cs | 2 +- .../NancyMiddleware.cs | 4 +- .../ServiceCollectionExtensions.cs | 8 +- .../TenantNancyBootstrapperAccessor.cs | 3 +- .../TenantNancyBootstrapperFactory.cs | 3 +- .../TenantShellNancyExtensions.cs | 2 +- .../DelegateModuleFactory.cs | 0 .../DelegateModuleShellFactory.cs | 0 .../Dotnettency.AspNetCore.Modules.csproj} | 1 + .../IModule.cs | 2 +- .../IModuleFactory.cs | 0 .../IModuleManager.cs | 2 +- .../IModuleShell.cs | 2 +- .../IModuleShellFactory.cs | 0 .../IRoutedModule.cs | 2 +- .../ISharedModule.cs | 2 +- .../ModuleBase.cs | 2 +- ...ModuleContainerBuilderOptionsExtensions.cs | 0 .../ModuleManager.cs | 2 +- .../ModuleRegisterBuilder.cs | 2 +- .../ModuleRouteContext.cs | 2 +- .../ModuleShell.cs | 2 +- .../ModuleShellOptions.cs | 2 +- .../ModuleShellOptionsBuilder.cs | 2 +- .../ModulesMiddleware.cs | 2 +- .../ModulesRouteContext.cs | 2 +- .../ModulesRouter.cs | 2 +- .../RoutedModuleBase.cs | 2 +- .../RoutingFeature.cs | 2 +- .../ServiceCollectionExtensions.cs | 5 +- .../SharedModuleBase.cs | 2 +- .../UseModulesBuilderExtensions.cs | 3 +- .../UseModulesOptionsBuilder.cs | 3 +- .../ApplicationBuilderExtensions.cs | 3 +- .../Dotnettency.AspNetCore.csproj | 13 ++ .../HttpContextTenantDistinguisherFactory.cs | 2 +- .../MultitenancyMiddlewareOptionsBuilder.cs | 2 +- .../MultitenancyOptionsBuilder.cs | 18 +++ ...uestAuthorityTenantDistinguisherFactory.cs | 2 +- .../UriHelper.cs | 0 .../ContainerBuilderOptions.cs | 2 +- ...nantContentRootFileSystemProviderFatory.cs | 10 -- .../ITenantWebRootFileSystemProviderFatory.cs | 10 -- .../TenantShellFileSystemExtensions.cs | 23 --- .../Modules/SampleRoutedModule.cs | 2 +- .../Modules/SampleSharedModule.cs | 4 +- src/Dotnettency.Sample/Sample.csproj | 7 +- src/Dotnettency.Sample/Startup.cs | 4 +- .../Dotnettency.TenantFileSystem.csproj | 15 ++ .../TenantFileSystemBuilderContext.cs | 9 +- .../TenantShellFileSystemExtensions.cs | 15 ++ src/Dotnettency/Dotnettency.csproj | 4 +- src/Dotnettency/MultitenancyOptionsBuilder.cs | 13 +- src/Sample.Mvc/Sample.Mvc.csproj | 5 +- src/Sample.Mvc/Startup.cs | 4 - src/src.sln | 150 +++++++++++------- 96 files changed, 359 insertions(+), 215 deletions(-) create mode 100644 src/Dotnettency.AspNetCore.Container/AdaptedContainerBuilderOptionsExtensions.cs create mode 100644 src/Dotnettency.AspNetCore.Container/Dotnettency.AspNetCore.Container.csproj rename src/{Dotnettency.Container => Dotnettency.AspNetCore.Container}/ITenantRequestContainerAccessor.cs (84%) rename src/{Dotnettency.Container/UseBuilderExtensions.cs => Dotnettency.AspNetCore.Container/MultitenancyMiddlewareOptionsBuilderExtensions.cs} (75%) rename src/{Dotnettency.Container => Dotnettency.AspNetCore.Container}/PerRequestContainer.cs (95%) rename src/{Dotnettency.Container => Dotnettency.AspNetCore.Container}/TenantContainerMiddleware.cs (96%) rename src/{Dotnettency.Container => Dotnettency.AspNetCore.Container}/TenantRequestContainerAccessor.cs (94%) rename src/{Dotnettency.HostingEnvironment => Dotnettency.AspNetCore.HostingEnvironment}/ConfigurePerHostingEnvironmentBuilderExtensions.cs (92%) rename src/{Dotnettency.HostingEnvironment => Dotnettency.AspNetCore.HostingEnvironment}/DelegateTenantContentRootFileSystemProviderFactory.cs (87%) rename src/{Dotnettency.HostingEnvironment => Dotnettency.AspNetCore.HostingEnvironment}/DelegateTenantWebRootFileSystemProviderFactory.cs (87%) rename src/{Dotnettency.HostingEnvironment/Dotnettency.HostingEnvironment.csproj => Dotnettency.AspNetCore.HostingEnvironment/Dotnettency.AspNetCore.HostingEnvironment.csproj} (79%) create mode 100644 src/Dotnettency.AspNetCore.HostingEnvironment/ITenantContentRootFileSystemProviderFatory.cs create mode 100644 src/Dotnettency.AspNetCore.HostingEnvironment/ITenantWebRootFileSystemProviderFatory.cs rename src/{Dotnettency.HostingEnvironment => Dotnettency.AspNetCore.HostingEnvironment}/PerTenantHostingEnvironmentMiddlewareOptionsBuilder.cs (90%) rename src/{Dotnettency.HostingEnvironment => Dotnettency.AspNetCore.HostingEnvironment}/TenantHostingEnvironment.cs (95%) rename src/{Dotnettency.HostingEnvironment => Dotnettency.AspNetCore.HostingEnvironment}/TenantHostingEnvironmentContentRootMiddleware.cs (91%) rename src/{Dotnettency.HostingEnvironment => Dotnettency.AspNetCore.HostingEnvironment}/TenantHostingEnvironmentOptionsBuilder.cs (89%) rename src/{Dotnettency.HostingEnvironment => Dotnettency.AspNetCore.HostingEnvironment}/TenantHostingEnvironmentWebRootMiddleware.cs (91%) create mode 100644 src/Dotnettency.AspNetCore.HostingEnvironment/TenantShellHostingEnvironmentFileSystemExtensions.cs rename src/{Dotnettency.HostingEnvironment => Dotnettency.AspNetCore.HostingEnvironment}/UsePerTenantHostingEnvironmentExtensions.cs (86%) rename src/{Dotnettency.MiddlewarePipeline => Dotnettency.AspNetCore.MiddlewarePipeline}/DelegateTenantMiddlewarePipelineFactory.cs (93%) rename src/{Dotnettency.MiddlewarePipeline/Dotnettency.MiddlewarePipeline.csproj => Dotnettency.AspNetCore.MiddlewarePipeline/Dotnettency.AspNetCore.MiddlewarePipeline.csproj} (91%) rename src/{Dotnettency.MiddlewarePipeline => Dotnettency.AspNetCore.MiddlewarePipeline}/ITenantMiddlewarePipelineFactory.cs (86%) rename src/{Dotnettency.MiddlewarePipeline => Dotnettency.AspNetCore.MiddlewarePipeline}/ITenantPipelineAccessor.cs (86%) rename src/{Dotnettency.MiddlewarePipeline => Dotnettency.AspNetCore.MiddlewarePipeline}/MultitenancyOptionsBuilderExtensions.cs (91%) rename src/{Dotnettency.MiddlewarePipeline => Dotnettency.AspNetCore.MiddlewarePipeline}/TenantPipelineAccessor.cs (97%) rename src/{Dotnettency.MiddlewarePipeline => Dotnettency.AspNetCore.MiddlewarePipeline}/TenantPipelineBuilderContext.cs (67%) rename src/{Dotnettency.MiddlewarePipeline => Dotnettency.AspNetCore.MiddlewarePipeline}/TenantPipelineMiddleware.cs (96%) rename src/{Dotnettency.MiddlewarePipeline => Dotnettency.AspNetCore.MiddlewarePipeline}/TenantPipelineOptionsBuilder.cs (94%) rename src/{Dotnettency.MiddlewarePipeline => Dotnettency.AspNetCore.MiddlewarePipeline}/TenantShellPipelineExtensions.cs (91%) rename src/{Dotnettency.MiddlewarePipeline => Dotnettency.AspNetCore.MiddlewarePipeline}/UsePerTenantBuilderExtensions.cs (85%) rename src/{Dotnettency.Modules.Nancy/Dotnettency.Modules.Nancy.csproj => Dotnettency.AspNetCore.Modules.Nancy/Dotnettency.AspNetCore.Modules.Nancy.csproj} (62%) rename src/{Dotnettency.Modules.Nancy => Dotnettency.AspNetCore.Modules.Nancy}/ITenantNancyBootstrapperAccessor.cs (83%) rename src/{Dotnettency.Modules.Nancy => Dotnettency.AspNetCore.Modules.Nancy}/ITenantNancyBootstrapperFactory.cs (65%) rename src/{Dotnettency.Modules.Nancy => Dotnettency.AspNetCore.Modules.Nancy}/Module/TestNancyModule.cs (96%) rename src/{Dotnettency.Modules.Nancy => Dotnettency.AspNetCore.Modules.Nancy}/Module/TestNancyRoutedModule.cs (89%) rename src/{Dotnettency.Modules.Nancy => Dotnettency.AspNetCore.Modules.Nancy}/NancyImpl/AlreadyKnownRouteResolver.cs (97%) rename src/{Dotnettency.Modules.Nancy => Dotnettency.AspNetCore.Modules.Nancy}/NancyImpl/CustomNancyModuleBuilder.cs (99%) rename src/{Dotnettency.Modules.Nancy => Dotnettency.AspNetCore.Modules.Nancy}/NancyImpl/NancyHandler.cs (99%) rename src/{Dotnettency.Modules.Nancy => Dotnettency.AspNetCore.Modules.Nancy}/NancyImpl/NancyPassThroughOptions.cs (94%) rename src/{Dotnettency.Modules.Nancy => Dotnettency.AspNetCore.Modules.Nancy}/NancyImpl/TenantContainerNancyBootstrapper.cs (99%) rename src/{Dotnettency.Modules.Nancy => Dotnettency.AspNetCore.Modules.Nancy}/NancyMiddleware.cs (96%) rename src/{Dotnettency.Modules.Nancy => Dotnettency.AspNetCore.Modules.Nancy}/ServiceCollectionExtensions.cs (79%) rename src/{Dotnettency.Modules.Nancy => Dotnettency.AspNetCore.Modules.Nancy}/TenantNancyBootstrapperAccessor.cs (96%) rename src/{Dotnettency.Modules.Nancy => Dotnettency.AspNetCore.Modules.Nancy}/TenantNancyBootstrapperFactory.cs (91%) rename src/{Dotnettency.Modules.Nancy => Dotnettency.AspNetCore.Modules.Nancy}/TenantShellNancyExtensions.cs (94%) rename src/{Dotnettency.Modules => Dotnettency.AspNetCore.Modules}/DelegateModuleFactory.cs (100%) rename src/{Dotnettency.Modules => Dotnettency.AspNetCore.Modules}/DelegateModuleShellFactory.cs (100%) rename src/{Dotnettency.Modules/Dotnettency.Modules.csproj => Dotnettency.AspNetCore.Modules/Dotnettency.AspNetCore.Modules.csproj} (91%) rename src/{Dotnettency.Modules => Dotnettency.AspNetCore.Modules}/IModule.cs (74%) rename src/{Dotnettency.Modules => Dotnettency.AspNetCore.Modules}/IModuleFactory.cs (100%) rename src/{Dotnettency.Modules => Dotnettency.AspNetCore.Modules}/IModuleManager.cs (89%) rename src/{Dotnettency.Modules => Dotnettency.AspNetCore.Modules}/IModuleShell.cs (94%) rename src/{Dotnettency.Modules => Dotnettency.AspNetCore.Modules}/IModuleShellFactory.cs (100%) rename src/{Dotnettency.Modules => Dotnettency.AspNetCore.Modules}/IRoutedModule.cs (96%) rename src/{Dotnettency.Modules => Dotnettency.AspNetCore.Modules}/ISharedModule.cs (93%) rename src/{Dotnettency.Modules => Dotnettency.AspNetCore.Modules}/ModuleBase.cs (55%) rename src/{Dotnettency.Modules => Dotnettency.AspNetCore.Modules}/ModuleContainerBuilderOptionsExtensions.cs (100%) rename src/{Dotnettency.Modules => Dotnettency.AspNetCore.Modules}/ModuleManager.cs (98%) rename src/{Dotnettency.Modules => Dotnettency.AspNetCore.Modules}/ModuleRegisterBuilder.cs (98%) rename src/{Dotnettency.Modules => Dotnettency.AspNetCore.Modules}/ModuleRouteContext.cs (93%) rename src/{Dotnettency.Modules => Dotnettency.AspNetCore.Modules}/ModuleShell.cs (98%) rename src/{Dotnettency.Modules => Dotnettency.AspNetCore.Modules}/ModuleShellOptions.cs (94%) rename src/{Dotnettency.Modules => Dotnettency.AspNetCore.Modules}/ModuleShellOptionsBuilder.cs (97%) rename src/{Dotnettency.Modules => Dotnettency.AspNetCore.Modules}/ModulesMiddleware.cs (98%) rename src/{Dotnettency.Modules => Dotnettency.AspNetCore.Modules}/ModulesRouteContext.cs (88%) rename src/{Dotnettency.Modules => Dotnettency.AspNetCore.Modules}/ModulesRouter.cs (98%) rename src/{Dotnettency.Modules => Dotnettency.AspNetCore.Modules}/RoutedModuleBase.cs (90%) rename src/{Dotnettency.Modules => Dotnettency.AspNetCore.Modules}/RoutingFeature.cs (79%) rename src/{Dotnettency.Modules => Dotnettency.AspNetCore.Modules}/ServiceCollectionExtensions.cs (81%) rename src/{Dotnettency.Modules => Dotnettency.AspNetCore.Modules}/SharedModuleBase.cs (90%) rename src/{Dotnettency.Modules => Dotnettency.AspNetCore.Modules}/UseModulesBuilderExtensions.cs (90%) rename src/{Dotnettency.Modules => Dotnettency.AspNetCore.Modules}/UseModulesOptionsBuilder.cs (89%) rename src/{Dotnettency => Dotnettency.AspNetCore}/ApplicationBuilderExtensions.cs (86%) create mode 100644 src/Dotnettency.AspNetCore/Dotnettency.AspNetCore.csproj rename src/{Dotnettency/TenantDistinguisher => Dotnettency.AspNetCore}/HttpContextTenantDistinguisherFactory.cs (97%) rename src/{Dotnettency => Dotnettency.AspNetCore}/MultitenancyMiddlewareOptionsBuilder.cs (90%) create mode 100644 src/Dotnettency.AspNetCore/MultitenancyOptionsBuilder.cs rename src/{Dotnettency/TenantDistinguisher => Dotnettency.AspNetCore}/RequestAuthorityTenantDistinguisherFactory.cs (94%) rename src/{Dotnettency => Dotnettency.AspNetCore}/UriHelper.cs (100%) delete mode 100644 src/Dotnettency.HostingEnvironment/ITenantContentRootFileSystemProviderFatory.cs delete mode 100644 src/Dotnettency.HostingEnvironment/ITenantWebRootFileSystemProviderFatory.cs delete mode 100644 src/Dotnettency.HostingEnvironment/TenantShellFileSystemExtensions.cs create mode 100644 src/Dotnettency.TenantFileSystem/Dotnettency.TenantFileSystem.csproj rename src/{Dotnettency.HostingEnvironment => Dotnettency.TenantFileSystem}/TenantFileSystemBuilderContext.cs (74%) create mode 100644 src/Dotnettency.TenantFileSystem/TenantShellFileSystemExtensions.cs diff --git a/src/Dotnettency.AspNetCore.Container/AdaptedContainerBuilderOptionsExtensions.cs b/src/Dotnettency.AspNetCore.Container/AdaptedContainerBuilderOptionsExtensions.cs new file mode 100644 index 0000000..5625cbf --- /dev/null +++ b/src/Dotnettency.AspNetCore.Container/AdaptedContainerBuilderOptionsExtensions.cs @@ -0,0 +1,16 @@ +using Dotnettency.AspNetCore.Container; +using Dotnettency.Container; +using Microsoft.Extensions.DependencyInjection; + +namespace Dotnettency +{ + public static class AdaptedContainerBuilderOptionsExtensions + { + public static AdaptedContainerBuilderOptions AddPerRequestContainerServices(this AdaptedContainerBuilderOptions options) + where TTenant : class + { + options.ContainerBuilderOptions.Builder.Services.AddScoped, TenantRequestContainerAccessor>(); + return options; + } + } +} diff --git a/src/Dotnettency.AspNetCore.Container/Dotnettency.AspNetCore.Container.csproj b/src/Dotnettency.AspNetCore.Container/Dotnettency.AspNetCore.Container.csproj new file mode 100644 index 0000000..c08203c --- /dev/null +++ b/src/Dotnettency.AspNetCore.Container/Dotnettency.AspNetCore.Container.csproj @@ -0,0 +1,12 @@ + + + + netstandard1.3 + + + + + + + + diff --git a/src/Dotnettency.Container/ITenantRequestContainerAccessor.cs b/src/Dotnettency.AspNetCore.Container/ITenantRequestContainerAccessor.cs similarity index 84% rename from src/Dotnettency.Container/ITenantRequestContainerAccessor.cs rename to src/Dotnettency.AspNetCore.Container/ITenantRequestContainerAccessor.cs index 7d4a00c..088f1c3 100644 --- a/src/Dotnettency.Container/ITenantRequestContainerAccessor.cs +++ b/src/Dotnettency.AspNetCore.Container/ITenantRequestContainerAccessor.cs @@ -1,7 +1,7 @@ using System; using System.Threading.Tasks; -namespace Dotnettency.Container +namespace Dotnettency.AspNetCore.Container { public interface ITenantRequestContainerAccessor where TTenant : class diff --git a/src/Dotnettency.Container/UseBuilderExtensions.cs b/src/Dotnettency.AspNetCore.Container/MultitenancyMiddlewareOptionsBuilderExtensions.cs similarity index 75% rename from src/Dotnettency.Container/UseBuilderExtensions.cs rename to src/Dotnettency.AspNetCore.Container/MultitenancyMiddlewareOptionsBuilderExtensions.cs index b6de39e..66b86ad 100644 --- a/src/Dotnettency.Container/UseBuilderExtensions.cs +++ b/src/Dotnettency.AspNetCore.Container/MultitenancyMiddlewareOptionsBuilderExtensions.cs @@ -1,9 +1,10 @@ -using Dotnettency.Container; +using Dotnettency.AspNetCore; +using Dotnettency.AspNetCore.Container; using Microsoft.AspNetCore.Builder; namespace Dotnettency { - public static class UseBuilderExtensions + public static class MultitenancyMiddlewareOptionsBuilderExtensions { public static MultitenancyMiddlewareOptionsBuilder UsePerTenantContainers(this MultitenancyMiddlewareOptionsBuilder builder) where TTenant : class diff --git a/src/Dotnettency.Container/PerRequestContainer.cs b/src/Dotnettency.AspNetCore.Container/PerRequestContainer.cs similarity index 95% rename from src/Dotnettency.Container/PerRequestContainer.cs rename to src/Dotnettency.AspNetCore.Container/PerRequestContainer.cs index d7d0d42..2801609 100644 --- a/src/Dotnettency.Container/PerRequestContainer.cs +++ b/src/Dotnettency.AspNetCore.Container/PerRequestContainer.cs @@ -1,8 +1,9 @@ using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; +using Dotnettency.Container; -namespace Dotnettency.Container +namespace Dotnettency.AspNetCore.Container { public class PerRequestContainer : IDisposable { diff --git a/src/Dotnettency.Container/TenantContainerMiddleware.cs b/src/Dotnettency.AspNetCore.Container/TenantContainerMiddleware.cs similarity index 96% rename from src/Dotnettency.Container/TenantContainerMiddleware.cs rename to src/Dotnettency.AspNetCore.Container/TenantContainerMiddleware.cs index c42b7e7..a05e9ab 100644 --- a/src/Dotnettency.Container/TenantContainerMiddleware.cs +++ b/src/Dotnettency.AspNetCore.Container/TenantContainerMiddleware.cs @@ -1,10 +1,10 @@ -using System; -using System.Threading.Tasks; +using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Logging; using Microsoft.AspNetCore.Builder; +using Dotnettency.Container; -namespace Dotnettency.Container +namespace Dotnettency.AspNetCore.Container { public class TenantContainerMiddleware where TTenant : class diff --git a/src/Dotnettency.Container/TenantRequestContainerAccessor.cs b/src/Dotnettency.AspNetCore.Container/TenantRequestContainerAccessor.cs similarity index 94% rename from src/Dotnettency.Container/TenantRequestContainerAccessor.cs rename to src/Dotnettency.AspNetCore.Container/TenantRequestContainerAccessor.cs index 2a6d9f8..93609d6 100644 --- a/src/Dotnettency.Container/TenantRequestContainerAccessor.cs +++ b/src/Dotnettency.AspNetCore.Container/TenantRequestContainerAccessor.cs @@ -1,8 +1,9 @@ using System; using System.Threading.Tasks; using Microsoft.Extensions.Logging; +using Dotnettency.Container; -namespace Dotnettency.Container +namespace Dotnettency.AspNetCore.Container { public class TenantRequestContainerAccessor : ITenantRequestContainerAccessor where TTenant : class diff --git a/src/Dotnettency.HostingEnvironment/ConfigurePerHostingEnvironmentBuilderExtensions.cs b/src/Dotnettency.AspNetCore.HostingEnvironment/ConfigurePerHostingEnvironmentBuilderExtensions.cs similarity index 92% rename from src/Dotnettency.HostingEnvironment/ConfigurePerHostingEnvironmentBuilderExtensions.cs rename to src/Dotnettency.AspNetCore.HostingEnvironment/ConfigurePerHostingEnvironmentBuilderExtensions.cs index b2ecd23..2a05ae3 100644 --- a/src/Dotnettency.HostingEnvironment/ConfigurePerHostingEnvironmentBuilderExtensions.cs +++ b/src/Dotnettency.AspNetCore.HostingEnvironment/ConfigurePerHostingEnvironmentBuilderExtensions.cs @@ -1,4 +1,4 @@ -using Dotnettency.HostingEnvironment; +using Dotnettency.AspNetCore.HostingEnvironment; using Microsoft.AspNetCore.Hosting; using System; diff --git a/src/Dotnettency.HostingEnvironment/DelegateTenantContentRootFileSystemProviderFactory.cs b/src/Dotnettency.AspNetCore.HostingEnvironment/DelegateTenantContentRootFileSystemProviderFactory.cs similarity index 87% rename from src/Dotnettency.HostingEnvironment/DelegateTenantContentRootFileSystemProviderFactory.cs rename to src/Dotnettency.AspNetCore.HostingEnvironment/DelegateTenantContentRootFileSystemProviderFactory.cs index 478cc12..be8dd43 100644 --- a/src/Dotnettency.HostingEnvironment/DelegateTenantContentRootFileSystemProviderFactory.cs +++ b/src/Dotnettency.AspNetCore.HostingEnvironment/DelegateTenantContentRootFileSystemProviderFactory.cs @@ -1,11 +1,12 @@ using DotNet.Cabinets; +using Dotnettency.TenantFileSystem; using Microsoft.AspNetCore.Hosting; using System; using System.IO; -namespace Dotnettency.HostingEnvironment +namespace Dotnettency.AspNetCore.HostingEnvironment { - public class DelegateTenantContentRootFileSystemProviderFactory : ITenantContentRootFileSystemProviderFatory + public class DelegateTenantContentRootFileSystemProviderFactory : ITenantContentRootFileSystemProviderFactory where TTenant : class { private readonly Action> _configureContentRoot; diff --git a/src/Dotnettency.HostingEnvironment/DelegateTenantWebRootFileSystemProviderFactory.cs b/src/Dotnettency.AspNetCore.HostingEnvironment/DelegateTenantWebRootFileSystemProviderFactory.cs similarity index 87% rename from src/Dotnettency.HostingEnvironment/DelegateTenantWebRootFileSystemProviderFactory.cs rename to src/Dotnettency.AspNetCore.HostingEnvironment/DelegateTenantWebRootFileSystemProviderFactory.cs index e99978c..c7f32bb 100644 --- a/src/Dotnettency.HostingEnvironment/DelegateTenantWebRootFileSystemProviderFactory.cs +++ b/src/Dotnettency.AspNetCore.HostingEnvironment/DelegateTenantWebRootFileSystemProviderFactory.cs @@ -1,11 +1,12 @@ using DotNet.Cabinets; +using Dotnettency.TenantFileSystem; using Microsoft.AspNetCore.Hosting; using System; using System.IO; -namespace Dotnettency.HostingEnvironment +namespace Dotnettency.AspNetCore.HostingEnvironment { - public class DelegateTenantWebRootFileSystemProviderFactory : ITenantWebRootFileSystemProviderFatory + public class DelegateTenantWebRootFileSystemProviderFactory : ITenantWebRootFileSystemProviderFactory where TTenant : class { private readonly Action> _configureWebRoot; diff --git a/src/Dotnettency.HostingEnvironment/Dotnettency.HostingEnvironment.csproj b/src/Dotnettency.AspNetCore.HostingEnvironment/Dotnettency.AspNetCore.HostingEnvironment.csproj similarity index 79% rename from src/Dotnettency.HostingEnvironment/Dotnettency.HostingEnvironment.csproj rename to src/Dotnettency.AspNetCore.HostingEnvironment/Dotnettency.AspNetCore.HostingEnvironment.csproj index 9065c71..4db36d1 100644 --- a/src/Dotnettency.HostingEnvironment/Dotnettency.HostingEnvironment.csproj +++ b/src/Dotnettency.AspNetCore.HostingEnvironment/Dotnettency.AspNetCore.HostingEnvironment.csproj @@ -15,6 +15,8 @@ + + diff --git a/src/Dotnettency.AspNetCore.HostingEnvironment/ITenantContentRootFileSystemProviderFatory.cs b/src/Dotnettency.AspNetCore.HostingEnvironment/ITenantContentRootFileSystemProviderFatory.cs new file mode 100644 index 0000000..d0e9e33 --- /dev/null +++ b/src/Dotnettency.AspNetCore.HostingEnvironment/ITenantContentRootFileSystemProviderFatory.cs @@ -0,0 +1,10 @@ +using DotNet.Cabinets; + +namespace Dotnettency.AspNetCore.HostingEnvironment +{ + public interface ITenantContentRootFileSystemProviderFactory + where TTenant : class + { + ICabinet GetContentRoot(TTenant tenant); + } +} diff --git a/src/Dotnettency.AspNetCore.HostingEnvironment/ITenantWebRootFileSystemProviderFatory.cs b/src/Dotnettency.AspNetCore.HostingEnvironment/ITenantWebRootFileSystemProviderFatory.cs new file mode 100644 index 0000000..fb692cb --- /dev/null +++ b/src/Dotnettency.AspNetCore.HostingEnvironment/ITenantWebRootFileSystemProviderFatory.cs @@ -0,0 +1,10 @@ +using DotNet.Cabinets; + +namespace Dotnettency.AspNetCore.HostingEnvironment +{ + public interface ITenantWebRootFileSystemProviderFactory + where TTenant : class + { + ICabinet GetWebRoot(TTenant tenant); + } +} diff --git a/src/Dotnettency.HostingEnvironment/PerTenantHostingEnvironmentMiddlewareOptionsBuilder.cs b/src/Dotnettency.AspNetCore.HostingEnvironment/PerTenantHostingEnvironmentMiddlewareOptionsBuilder.cs similarity index 90% rename from src/Dotnettency.HostingEnvironment/PerTenantHostingEnvironmentMiddlewareOptionsBuilder.cs rename to src/Dotnettency.AspNetCore.HostingEnvironment/PerTenantHostingEnvironmentMiddlewareOptionsBuilder.cs index 61e5d4c..7fab047 100644 --- a/src/Dotnettency.HostingEnvironment/PerTenantHostingEnvironmentMiddlewareOptionsBuilder.cs +++ b/src/Dotnettency.AspNetCore.HostingEnvironment/PerTenantHostingEnvironmentMiddlewareOptionsBuilder.cs @@ -1,7 +1,6 @@ -using Dotnettency.HostingEnvironment; -using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Builder; -namespace Dotnettency +namespace Dotnettency.AspNetCore.HostingEnvironment { public class PerTenantHostingEnvironmentMiddlewareOptionsBuilder where TTenant : class diff --git a/src/Dotnettency.HostingEnvironment/TenantHostingEnvironment.cs b/src/Dotnettency.AspNetCore.HostingEnvironment/TenantHostingEnvironment.cs similarity index 95% rename from src/Dotnettency.HostingEnvironment/TenantHostingEnvironment.cs rename to src/Dotnettency.AspNetCore.HostingEnvironment/TenantHostingEnvironment.cs index ce9e7ab..8933ea3 100644 --- a/src/Dotnettency.HostingEnvironment/TenantHostingEnvironment.cs +++ b/src/Dotnettency.AspNetCore.HostingEnvironment/TenantHostingEnvironment.cs @@ -1,7 +1,7 @@ using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.FileProviders; -namespace Dotnettency.HostingEnvironment +namespace Dotnettency.AspNetCore.HostingEnvironment { public class TenantHostingEnvironment : IHostingEnvironment where TTenant : class diff --git a/src/Dotnettency.HostingEnvironment/TenantHostingEnvironmentContentRootMiddleware.cs b/src/Dotnettency.AspNetCore.HostingEnvironment/TenantHostingEnvironmentContentRootMiddleware.cs similarity index 91% rename from src/Dotnettency.HostingEnvironment/TenantHostingEnvironmentContentRootMiddleware.cs rename to src/Dotnettency.AspNetCore.HostingEnvironment/TenantHostingEnvironmentContentRootMiddleware.cs index 2be8c34..8fdb2d4 100644 --- a/src/Dotnettency.HostingEnvironment/TenantHostingEnvironmentContentRootMiddleware.cs +++ b/src/Dotnettency.AspNetCore.HostingEnvironment/TenantHostingEnvironmentContentRootMiddleware.cs @@ -6,7 +6,7 @@ using System; using System.Threading.Tasks; -namespace Dotnettency.HostingEnvironment +namespace Dotnettency.AspNetCore.HostingEnvironment { public class TenantHostingEnvironmentContentRootMiddleware where TTenant : class @@ -14,13 +14,13 @@ public class TenantHostingEnvironmentContentRootMiddleware private readonly RequestDelegate _next; private readonly IApplicationBuilder _rootApp; private readonly ILogger> _logger; - private readonly ITenantContentRootFileSystemProviderFatory _factory; + private readonly ITenantContentRootFileSystemProviderFactory _factory; public TenantHostingEnvironmentContentRootMiddleware( RequestDelegate next, IApplicationBuilder rootApp, ILogger> logger, - ITenantContentRootFileSystemProviderFatory factory) + ITenantContentRootFileSystemProviderFactory factory) { _next = next; _rootApp = rootApp; diff --git a/src/Dotnettency.HostingEnvironment/TenantHostingEnvironmentOptionsBuilder.cs b/src/Dotnettency.AspNetCore.HostingEnvironment/TenantHostingEnvironmentOptionsBuilder.cs similarity index 89% rename from src/Dotnettency.HostingEnvironment/TenantHostingEnvironmentOptionsBuilder.cs rename to src/Dotnettency.AspNetCore.HostingEnvironment/TenantHostingEnvironmentOptionsBuilder.cs index ca10cc8..9f478db 100644 --- a/src/Dotnettency.HostingEnvironment/TenantHostingEnvironmentOptionsBuilder.cs +++ b/src/Dotnettency.AspNetCore.HostingEnvironment/TenantHostingEnvironmentOptionsBuilder.cs @@ -1,8 +1,9 @@ -using Microsoft.AspNetCore.Hosting; +using Dotnettency.TenantFileSystem; +using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.DependencyInjection; using System; -namespace Dotnettency.HostingEnvironment +namespace Dotnettency.AspNetCore.HostingEnvironment { public class TenantHostingEnvironmentOptionsBuilder where TTenant : class @@ -28,14 +29,14 @@ public TenantHostingEnvironmentOptionsBuilder(MultitenancyOptionsBuilder OnInitialiseTenantContentRoot(Action> configureContentRoot) { var factory = new DelegateTenantContentRootFileSystemProviderFactory(_parentHostingEnvironment, configureContentRoot); - Builder.Services.AddSingleton>(factory); + Builder.Services.AddSingleton>(factory); return Builder; } public MultitenancyOptionsBuilder OnInitialiseTenantWebRoot(Action> configureWebRoot) { var factory = new DelegateTenantWebRootFileSystemProviderFactory(_parentHostingEnvironment, configureWebRoot); - Builder.Services.AddSingleton>(factory); + Builder.Services.AddSingleton>(factory); return Builder; } } diff --git a/src/Dotnettency.HostingEnvironment/TenantHostingEnvironmentWebRootMiddleware.cs b/src/Dotnettency.AspNetCore.HostingEnvironment/TenantHostingEnvironmentWebRootMiddleware.cs similarity index 91% rename from src/Dotnettency.HostingEnvironment/TenantHostingEnvironmentWebRootMiddleware.cs rename to src/Dotnettency.AspNetCore.HostingEnvironment/TenantHostingEnvironmentWebRootMiddleware.cs index 449ccb6..4445746 100644 --- a/src/Dotnettency.HostingEnvironment/TenantHostingEnvironmentWebRootMiddleware.cs +++ b/src/Dotnettency.AspNetCore.HostingEnvironment/TenantHostingEnvironmentWebRootMiddleware.cs @@ -6,7 +6,7 @@ using System; using System.Threading.Tasks; -namespace Dotnettency.HostingEnvironment +namespace Dotnettency.AspNetCore.HostingEnvironment { public class TenantHostingEnvironmentWebRootMiddleware where TTenant : class @@ -14,13 +14,13 @@ public class TenantHostingEnvironmentWebRootMiddleware private readonly RequestDelegate _next; private readonly IApplicationBuilder _rootApp; private readonly ILogger> _logger; - private readonly ITenantWebRootFileSystemProviderFatory _factory; + private readonly ITenantWebRootFileSystemProviderFactory _factory; public TenantHostingEnvironmentWebRootMiddleware( RequestDelegate next, IApplicationBuilder rootApp, ILogger> logger, - ITenantWebRootFileSystemProviderFatory factory) + ITenantWebRootFileSystemProviderFactory factory) { _next = next; diff --git a/src/Dotnettency.AspNetCore.HostingEnvironment/TenantShellHostingEnvironmentFileSystemExtensions.cs b/src/Dotnettency.AspNetCore.HostingEnvironment/TenantShellHostingEnvironmentFileSystemExtensions.cs new file mode 100644 index 0000000..1ac94f4 --- /dev/null +++ b/src/Dotnettency.AspNetCore.HostingEnvironment/TenantShellHostingEnvironmentFileSystemExtensions.cs @@ -0,0 +1,24 @@ +using DotNet.Cabinets; +using Dotnettency.TenantFileSystem; +using System; + +namespace Dotnettency.AspNetCore.HostingEnvironment +{ + public static class TenantShellHostingEnvironmentFileSystemExtensions + { + private const string ContentRootKey = nameof(TenantShellHostingEnvironmentFileSystemExtensions) + "-ContentRoot"; + private const string WebRootKey = nameof(TenantShellHostingEnvironmentFileSystemExtensions) + "-WebRoot"; + + public static Lazy GetOrAddTenantContentRootFileSystem(this TenantShell tenantShell, Lazy factory) + where TTenant : class + { + return tenantShell.GetOrAddTenantFileSystem(ContentRootKey, factory) as Lazy; + } + + public static Lazy GetOrAddTenantWebRootFileSystem(this TenantShell tenantShell, Lazy factory) + where TTenant : class + { + return tenantShell.GetOrAddTenantFileSystem(WebRootKey, factory) as Lazy; + } + } +} diff --git a/src/Dotnettency.HostingEnvironment/UsePerTenantHostingEnvironmentExtensions.cs b/src/Dotnettency.AspNetCore.HostingEnvironment/UsePerTenantHostingEnvironmentExtensions.cs similarity index 86% rename from src/Dotnettency.HostingEnvironment/UsePerTenantHostingEnvironmentExtensions.cs rename to src/Dotnettency.AspNetCore.HostingEnvironment/UsePerTenantHostingEnvironmentExtensions.cs index 5b32c56..362e151 100644 --- a/src/Dotnettency.HostingEnvironment/UsePerTenantHostingEnvironmentExtensions.cs +++ b/src/Dotnettency.AspNetCore.HostingEnvironment/UsePerTenantHostingEnvironmentExtensions.cs @@ -1,4 +1,6 @@ -using System; +using Dotnettency.AspNetCore; +using Dotnettency.AspNetCore.HostingEnvironment; +using System; namespace Dotnettency { diff --git a/src/Dotnettency.MiddlewarePipeline/DelegateTenantMiddlewarePipelineFactory.cs b/src/Dotnettency.AspNetCore.MiddlewarePipeline/DelegateTenantMiddlewarePipelineFactory.cs similarity index 93% rename from src/Dotnettency.MiddlewarePipeline/DelegateTenantMiddlewarePipelineFactory.cs rename to src/Dotnettency.AspNetCore.MiddlewarePipeline/DelegateTenantMiddlewarePipelineFactory.cs index 0fe4379..3d371c9 100644 --- a/src/Dotnettency.MiddlewarePipeline/DelegateTenantMiddlewarePipelineFactory.cs +++ b/src/Dotnettency.AspNetCore.MiddlewarePipeline/DelegateTenantMiddlewarePipelineFactory.cs @@ -1,10 +1,9 @@ -using Dotnettency.MiddlewarePipeline; -using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Http; using System; using System.Threading.Tasks; -namespace Dotnettency +namespace Dotnettency.AspNetCore.MiddlewarePipeline { public class DelegateTenantMiddlewarePipelineFactory : ITenantMiddlewarePipelineFactory where TTenant : class diff --git a/src/Dotnettency.MiddlewarePipeline/Dotnettency.MiddlewarePipeline.csproj b/src/Dotnettency.AspNetCore.MiddlewarePipeline/Dotnettency.AspNetCore.MiddlewarePipeline.csproj similarity index 91% rename from src/Dotnettency.MiddlewarePipeline/Dotnettency.MiddlewarePipeline.csproj rename to src/Dotnettency.AspNetCore.MiddlewarePipeline/Dotnettency.AspNetCore.MiddlewarePipeline.csproj index 69be1e1..ecaac6f 100644 --- a/src/Dotnettency.MiddlewarePipeline/Dotnettency.MiddlewarePipeline.csproj +++ b/src/Dotnettency.AspNetCore.MiddlewarePipeline/Dotnettency.AspNetCore.MiddlewarePipeline.csproj @@ -15,6 +15,7 @@ + diff --git a/src/Dotnettency.MiddlewarePipeline/ITenantMiddlewarePipelineFactory.cs b/src/Dotnettency.AspNetCore.MiddlewarePipeline/ITenantMiddlewarePipelineFactory.cs similarity index 86% rename from src/Dotnettency.MiddlewarePipeline/ITenantMiddlewarePipelineFactory.cs rename to src/Dotnettency.AspNetCore.MiddlewarePipeline/ITenantMiddlewarePipelineFactory.cs index bff565a..b03d36d 100644 --- a/src/Dotnettency.MiddlewarePipeline/ITenantMiddlewarePipelineFactory.cs +++ b/src/Dotnettency.AspNetCore.MiddlewarePipeline/ITenantMiddlewarePipelineFactory.cs @@ -2,7 +2,7 @@ using Microsoft.AspNetCore.Http; using System.Threading.Tasks; -namespace Dotnettency +namespace Dotnettency.AspNetCore.MiddlewarePipeline { public interface ITenantMiddlewarePipelineFactory where TTenant : class diff --git a/src/Dotnettency.MiddlewarePipeline/ITenantPipelineAccessor.cs b/src/Dotnettency.AspNetCore.MiddlewarePipeline/ITenantPipelineAccessor.cs similarity index 86% rename from src/Dotnettency.MiddlewarePipeline/ITenantPipelineAccessor.cs rename to src/Dotnettency.AspNetCore.MiddlewarePipeline/ITenantPipelineAccessor.cs index 0169e50..e13cb58 100644 --- a/src/Dotnettency.MiddlewarePipeline/ITenantPipelineAccessor.cs +++ b/src/Dotnettency.AspNetCore.MiddlewarePipeline/ITenantPipelineAccessor.cs @@ -3,7 +3,7 @@ using System; using System.Threading.Tasks; -namespace Dotnettency.MiddlewarePipeline +namespace Dotnettency.AspNetCore.MiddlewarePipeline { public interface ITenantPipelineAccessor where TTenant : class diff --git a/src/Dotnettency.MiddlewarePipeline/MultitenancyOptionsBuilderExtensions.cs b/src/Dotnettency.AspNetCore.MiddlewarePipeline/MultitenancyOptionsBuilderExtensions.cs similarity index 91% rename from src/Dotnettency.MiddlewarePipeline/MultitenancyOptionsBuilderExtensions.cs rename to src/Dotnettency.AspNetCore.MiddlewarePipeline/MultitenancyOptionsBuilderExtensions.cs index 345fc60..ccab04e 100644 --- a/src/Dotnettency.MiddlewarePipeline/MultitenancyOptionsBuilderExtensions.cs +++ b/src/Dotnettency.AspNetCore.MiddlewarePipeline/MultitenancyOptionsBuilderExtensions.cs @@ -1,4 +1,4 @@ -using Dotnettency.MiddlewarePipeline; +using Dotnettency.AspNetCore.MiddlewarePipeline; using System; namespace Dotnettency diff --git a/src/Dotnettency.MiddlewarePipeline/TenantPipelineAccessor.cs b/src/Dotnettency.AspNetCore.MiddlewarePipeline/TenantPipelineAccessor.cs similarity index 97% rename from src/Dotnettency.MiddlewarePipeline/TenantPipelineAccessor.cs rename to src/Dotnettency.AspNetCore.MiddlewarePipeline/TenantPipelineAccessor.cs index fff628c..3c80836 100644 --- a/src/Dotnettency.MiddlewarePipeline/TenantPipelineAccessor.cs +++ b/src/Dotnettency.AspNetCore.MiddlewarePipeline/TenantPipelineAccessor.cs @@ -3,7 +3,7 @@ using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Http; -namespace Dotnettency.MiddlewarePipeline +namespace Dotnettency.AspNetCore.MiddlewarePipeline { public class TenantPipelineAccessor : ITenantPipelineAccessor where TTenant : class diff --git a/src/Dotnettency.MiddlewarePipeline/TenantPipelineBuilderContext.cs b/src/Dotnettency.AspNetCore.MiddlewarePipeline/TenantPipelineBuilderContext.cs similarity index 67% rename from src/Dotnettency.MiddlewarePipeline/TenantPipelineBuilderContext.cs rename to src/Dotnettency.AspNetCore.MiddlewarePipeline/TenantPipelineBuilderContext.cs index 2fcedaf..bd29055 100644 --- a/src/Dotnettency.MiddlewarePipeline/TenantPipelineBuilderContext.cs +++ b/src/Dotnettency.AspNetCore.MiddlewarePipeline/TenantPipelineBuilderContext.cs @@ -1,4 +1,4 @@ -namespace Dotnettency.MiddlewarePipeline +namespace Dotnettency.AspNetCore.MiddlewarePipeline { public class TenantPipelineBuilderContext { diff --git a/src/Dotnettency.MiddlewarePipeline/TenantPipelineMiddleware.cs b/src/Dotnettency.AspNetCore.MiddlewarePipeline/TenantPipelineMiddleware.cs similarity index 96% rename from src/Dotnettency.MiddlewarePipeline/TenantPipelineMiddleware.cs rename to src/Dotnettency.AspNetCore.MiddlewarePipeline/TenantPipelineMiddleware.cs index abcfc95..c2bb633 100644 --- a/src/Dotnettency.MiddlewarePipeline/TenantPipelineMiddleware.cs +++ b/src/Dotnettency.AspNetCore.MiddlewarePipeline/TenantPipelineMiddleware.cs @@ -3,7 +3,7 @@ using Microsoft.Extensions.Logging; using System.Threading.Tasks; -namespace Dotnettency.MiddlewarePipeline +namespace Dotnettency.AspNetCore.MiddlewarePipeline { public class TenantPipelineMiddleware where TTenant : class diff --git a/src/Dotnettency.MiddlewarePipeline/TenantPipelineOptionsBuilder.cs b/src/Dotnettency.AspNetCore.MiddlewarePipeline/TenantPipelineOptionsBuilder.cs similarity index 94% rename from src/Dotnettency.MiddlewarePipeline/TenantPipelineOptionsBuilder.cs rename to src/Dotnettency.AspNetCore.MiddlewarePipeline/TenantPipelineOptionsBuilder.cs index 41c2cc1..2cb150f 100644 --- a/src/Dotnettency.MiddlewarePipeline/TenantPipelineOptionsBuilder.cs +++ b/src/Dotnettency.AspNetCore.MiddlewarePipeline/TenantPipelineOptionsBuilder.cs @@ -2,7 +2,7 @@ using Microsoft.Extensions.DependencyInjection; using System; -namespace Dotnettency.MiddlewarePipeline +namespace Dotnettency.AspNetCore.MiddlewarePipeline { public class TenantPipelineOptionsBuilder where TTenant : class diff --git a/src/Dotnettency.MiddlewarePipeline/TenantShellPipelineExtensions.cs b/src/Dotnettency.AspNetCore.MiddlewarePipeline/TenantShellPipelineExtensions.cs similarity index 91% rename from src/Dotnettency.MiddlewarePipeline/TenantShellPipelineExtensions.cs rename to src/Dotnettency.AspNetCore.MiddlewarePipeline/TenantShellPipelineExtensions.cs index 23e9201..6cb7614 100644 --- a/src/Dotnettency.MiddlewarePipeline/TenantShellPipelineExtensions.cs +++ b/src/Dotnettency.AspNetCore.MiddlewarePipeline/TenantShellPipelineExtensions.cs @@ -2,7 +2,7 @@ using System; using System.Threading.Tasks; -namespace Dotnettency.MiddlewarePipeline +namespace Dotnettency.AspNetCore.MiddlewarePipeline { public static class TenantShellPipelineExtensions { diff --git a/src/Dotnettency.MiddlewarePipeline/UsePerTenantBuilderExtensions.cs b/src/Dotnettency.AspNetCore.MiddlewarePipeline/UsePerTenantBuilderExtensions.cs similarity index 85% rename from src/Dotnettency.MiddlewarePipeline/UsePerTenantBuilderExtensions.cs rename to src/Dotnettency.AspNetCore.MiddlewarePipeline/UsePerTenantBuilderExtensions.cs index 5402ffa..c4e9e9c 100644 --- a/src/Dotnettency.MiddlewarePipeline/UsePerTenantBuilderExtensions.cs +++ b/src/Dotnettency.AspNetCore.MiddlewarePipeline/UsePerTenantBuilderExtensions.cs @@ -1,4 +1,5 @@ -using Dotnettency.MiddlewarePipeline; +using Dotnettency.AspNetCore; +using Dotnettency.AspNetCore.MiddlewarePipeline; using Microsoft.AspNetCore.Builder; namespace Dotnettency diff --git a/src/Dotnettency.Modules.Nancy/Dotnettency.Modules.Nancy.csproj b/src/Dotnettency.AspNetCore.Modules.Nancy/Dotnettency.AspNetCore.Modules.Nancy.csproj similarity index 62% rename from src/Dotnettency.Modules.Nancy/Dotnettency.Modules.Nancy.csproj rename to src/Dotnettency.AspNetCore.Modules.Nancy/Dotnettency.AspNetCore.Modules.Nancy.csproj index e0c3ff3..9a0b032 100644 --- a/src/Dotnettency.Modules.Nancy/Dotnettency.Modules.Nancy.csproj +++ b/src/Dotnettency.AspNetCore.Modules.Nancy/Dotnettency.AspNetCore.Modules.Nancy.csproj @@ -5,7 +5,8 @@ - + + diff --git a/src/Dotnettency.Modules.Nancy/ITenantNancyBootstrapperAccessor.cs b/src/Dotnettency.AspNetCore.Modules.Nancy/ITenantNancyBootstrapperAccessor.cs similarity index 83% rename from src/Dotnettency.Modules.Nancy/ITenantNancyBootstrapperAccessor.cs rename to src/Dotnettency.AspNetCore.Modules.Nancy/ITenantNancyBootstrapperAccessor.cs index 3e5705a..754c64b 100644 --- a/src/Dotnettency.Modules.Nancy/ITenantNancyBootstrapperAccessor.cs +++ b/src/Dotnettency.AspNetCore.Modules.Nancy/ITenantNancyBootstrapperAccessor.cs @@ -1,7 +1,7 @@ using System; using System.Threading.Tasks; -namespace Dotnettency.Modules.Nancy +namespace Dotnettency.AspNetCore.Modules.Nancy { public interface ITenantNancyBootstrapperAccessor where TTenant : class diff --git a/src/Dotnettency.Modules.Nancy/ITenantNancyBootstrapperFactory.cs b/src/Dotnettency.AspNetCore.Modules.Nancy/ITenantNancyBootstrapperFactory.cs similarity index 65% rename from src/Dotnettency.Modules.Nancy/ITenantNancyBootstrapperFactory.cs rename to src/Dotnettency.AspNetCore.Modules.Nancy/ITenantNancyBootstrapperFactory.cs index 98af090..2fe4d16 100644 --- a/src/Dotnettency.Modules.Nancy/ITenantNancyBootstrapperFactory.cs +++ b/src/Dotnettency.AspNetCore.Modules.Nancy/ITenantNancyBootstrapperFactory.cs @@ -1,7 +1,6 @@ -using Dotnettency.Modules.Nancy; -using System.Threading.Tasks; +using System.Threading.Tasks; -namespace Dotnettency.Modules.Nancy +namespace Dotnettency.AspNetCore.Modules.Nancy { public interface ITenantNancyBootstrapperFactory where TTenant : class diff --git a/src/Dotnettency.Modules.Nancy/Module/TestNancyModule.cs b/src/Dotnettency.AspNetCore.Modules.Nancy/Module/TestNancyModule.cs similarity index 96% rename from src/Dotnettency.Modules.Nancy/Module/TestNancyModule.cs rename to src/Dotnettency.AspNetCore.Modules.Nancy/Module/TestNancyModule.cs index 7744d23..94aa14a 100644 --- a/src/Dotnettency.Modules.Nancy/Module/TestNancyModule.cs +++ b/src/Dotnettency.AspNetCore.Modules.Nancy/Module/TestNancyModule.cs @@ -1,7 +1,7 @@ using Nancy; //using AppFunc = Func, Task>; -namespace Dotnettency.Modules.Nancy +namespace Dotnettency.AspNetCore.Modules.Nancy { public class TestNancyModule : NancyModule { diff --git a/src/Dotnettency.Modules.Nancy/Module/TestNancyRoutedModule.cs b/src/Dotnettency.AspNetCore.Modules.Nancy/Module/TestNancyRoutedModule.cs similarity index 89% rename from src/Dotnettency.Modules.Nancy/Module/TestNancyRoutedModule.cs rename to src/Dotnettency.AspNetCore.Modules.Nancy/Module/TestNancyRoutedModule.cs index 5e4804b..2c71802 100644 --- a/src/Dotnettency.Modules.Nancy/Module/TestNancyRoutedModule.cs +++ b/src/Dotnettency.AspNetCore.Modules.Nancy/Module/TestNancyRoutedModule.cs @@ -1,9 +1,8 @@ -using Dotnettency.Modules; -using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Routing; using Microsoft.Extensions.DependencyInjection; -namespace Dotnettency.Modules.Nancy +namespace Dotnettency.AspNetCore.Modules.Nancy { public class TestNancyRoutedModule : RoutedModuleBase { diff --git a/src/Dotnettency.Modules.Nancy/NancyImpl/AlreadyKnownRouteResolver.cs b/src/Dotnettency.AspNetCore.Modules.Nancy/NancyImpl/AlreadyKnownRouteResolver.cs similarity index 97% rename from src/Dotnettency.Modules.Nancy/NancyImpl/AlreadyKnownRouteResolver.cs rename to src/Dotnettency.AspNetCore.Modules.Nancy/NancyImpl/AlreadyKnownRouteResolver.cs index c80f803..a3d10f1 100644 --- a/src/Dotnettency.Modules.Nancy/NancyImpl/AlreadyKnownRouteResolver.cs +++ b/src/Dotnettency.AspNetCore.Modules.Nancy/NancyImpl/AlreadyKnownRouteResolver.cs @@ -3,7 +3,7 @@ using System.Linq; using nancyrouting = global::Nancy.Routing; -namespace Dotnettency.Modules.Nancy +namespace Dotnettency.AspNetCore.Modules.Nancy { public class AlreadyKnownRouteResolver : nancyrouting.IRouteResolver { diff --git a/src/Dotnettency.Modules.Nancy/NancyImpl/CustomNancyModuleBuilder.cs b/src/Dotnettency.AspNetCore.Modules.Nancy/NancyImpl/CustomNancyModuleBuilder.cs similarity index 99% rename from src/Dotnettency.Modules.Nancy/NancyImpl/CustomNancyModuleBuilder.cs rename to src/Dotnettency.AspNetCore.Modules.Nancy/NancyImpl/CustomNancyModuleBuilder.cs index 133d955..5f24367 100644 --- a/src/Dotnettency.Modules.Nancy/NancyImpl/CustomNancyModuleBuilder.cs +++ b/src/Dotnettency.AspNetCore.Modules.Nancy/NancyImpl/CustomNancyModuleBuilder.cs @@ -1,7 +1,7 @@ using System; using System.Threading.Tasks; -namespace Dotnettency.Modules.Nancy +namespace Dotnettency.AspNetCore.Modules.Nancy { ///// ///// Default implementation for building a full configured instance. diff --git a/src/Dotnettency.Modules.Nancy/NancyImpl/NancyHandler.cs b/src/Dotnettency.AspNetCore.Modules.Nancy/NancyImpl/NancyHandler.cs similarity index 99% rename from src/Dotnettency.Modules.Nancy/NancyImpl/NancyHandler.cs rename to src/Dotnettency.AspNetCore.Modules.Nancy/NancyImpl/NancyHandler.cs index 7233274..a93437c 100644 --- a/src/Dotnettency.Modules.Nancy/NancyImpl/NancyHandler.cs +++ b/src/Dotnettency.AspNetCore.Modules.Nancy/NancyImpl/NancyHandler.cs @@ -8,7 +8,7 @@ using System.Linq; using System.Threading.Tasks; -namespace Dotnettency.Container +namespace Dotnettency.AspNetCore.Container { /// /// Bridges the communication between Nancy and ASP.NET CORE based hosting. diff --git a/src/Dotnettency.Modules.Nancy/NancyImpl/NancyPassThroughOptions.cs b/src/Dotnettency.AspNetCore.Modules.Nancy/NancyImpl/NancyPassThroughOptions.cs similarity index 94% rename from src/Dotnettency.Modules.Nancy/NancyImpl/NancyPassThroughOptions.cs rename to src/Dotnettency.AspNetCore.Modules.Nancy/NancyImpl/NancyPassThroughOptions.cs index 3319d04..75d5f04 100644 --- a/src/Dotnettency.Modules.Nancy/NancyImpl/NancyPassThroughOptions.cs +++ b/src/Dotnettency.AspNetCore.Modules.Nancy/NancyImpl/NancyPassThroughOptions.cs @@ -2,7 +2,7 @@ using Nancy; using System.Linq; -namespace Dotnettency.Modules.Nancy +namespace Dotnettency.AspNetCore.Modules.Nancy { /// /// Extensions for the NancyOptions class. diff --git a/src/Dotnettency.Modules.Nancy/NancyImpl/TenantContainerNancyBootstrapper.cs b/src/Dotnettency.AspNetCore.Modules.Nancy/NancyImpl/TenantContainerNancyBootstrapper.cs similarity index 99% rename from src/Dotnettency.Modules.Nancy/NancyImpl/TenantContainerNancyBootstrapper.cs rename to src/Dotnettency.AspNetCore.Modules.Nancy/NancyImpl/TenantContainerNancyBootstrapper.cs index e304f2a..2bf9115 100644 --- a/src/Dotnettency.Modules.Nancy/NancyImpl/TenantContainerNancyBootstrapper.cs +++ b/src/Dotnettency.AspNetCore.Modules.Nancy/NancyImpl/TenantContainerNancyBootstrapper.cs @@ -9,7 +9,7 @@ using Microsoft.Extensions.DependencyInjection; using Nancy.ViewEngines; -namespace Dotnettency.Modules.Nancy +namespace Dotnettency.AspNetCore.Modules.Nancy { public class TenantContainerNancyBootstrapper : NancyBootstrapperWithRequestContainerBase, IDisposable diff --git a/src/Dotnettency.Modules.Nancy/NancyMiddleware.cs b/src/Dotnettency.AspNetCore.Modules.Nancy/NancyMiddleware.cs similarity index 96% rename from src/Dotnettency.Modules.Nancy/NancyMiddleware.cs rename to src/Dotnettency.AspNetCore.Modules.Nancy/NancyMiddleware.cs index 9cb6d8f..f05a46f 100644 --- a/src/Dotnettency.Modules.Nancy/NancyMiddleware.cs +++ b/src/Dotnettency.AspNetCore.Modules.Nancy/NancyMiddleware.cs @@ -3,9 +3,9 @@ using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Logging; using Dotnettency.Container; -using Dotnettency.Modules.Nancy; +using Dotnettency.AspNetCore.Container; -namespace Dotnettency.Modules +namespace Dotnettency.AspNetCore.Modules.Nancy { public class NancyMiddleware diff --git a/src/Dotnettency.Modules.Nancy/ServiceCollectionExtensions.cs b/src/Dotnettency.AspNetCore.Modules.Nancy/ServiceCollectionExtensions.cs similarity index 79% rename from src/Dotnettency.Modules.Nancy/ServiceCollectionExtensions.cs rename to src/Dotnettency.AspNetCore.Modules.Nancy/ServiceCollectionExtensions.cs index 0679a42..791e046 100644 --- a/src/Dotnettency.Modules.Nancy/ServiceCollectionExtensions.cs +++ b/src/Dotnettency.AspNetCore.Modules.Nancy/ServiceCollectionExtensions.cs @@ -1,9 +1,7 @@ -using Microsoft.Extensions.DependencyInjection; -using Nancy; -using Sample; -using System; +using Dotnettency.AspNetCore.Modules.Nancy; +using Microsoft.Extensions.DependencyInjection; -namespace Dotnettency.Modules.Nancy +namespace Dotnettency { public static class ServiceCollectionExtensions diff --git a/src/Dotnettency.Modules.Nancy/TenantNancyBootstrapperAccessor.cs b/src/Dotnettency.AspNetCore.Modules.Nancy/TenantNancyBootstrapperAccessor.cs similarity index 96% rename from src/Dotnettency.Modules.Nancy/TenantNancyBootstrapperAccessor.cs rename to src/Dotnettency.AspNetCore.Modules.Nancy/TenantNancyBootstrapperAccessor.cs index e275170..8e12428 100644 --- a/src/Dotnettency.Modules.Nancy/TenantNancyBootstrapperAccessor.cs +++ b/src/Dotnettency.AspNetCore.Modules.Nancy/TenantNancyBootstrapperAccessor.cs @@ -1,9 +1,8 @@ using Dotnettency; -using Dotnettency.Modules.Nancy; using System; using System.Threading.Tasks; -namespace Sample +namespace Dotnettency.AspNetCore.Modules.Nancy { public class TenantNancyBootstrapperAccessor : ITenantNancyBootstrapperAccessor where TTenant : class diff --git a/src/Dotnettency.Modules.Nancy/TenantNancyBootstrapperFactory.cs b/src/Dotnettency.AspNetCore.Modules.Nancy/TenantNancyBootstrapperFactory.cs similarity index 91% rename from src/Dotnettency.Modules.Nancy/TenantNancyBootstrapperFactory.cs rename to src/Dotnettency.AspNetCore.Modules.Nancy/TenantNancyBootstrapperFactory.cs index 796f836..6e289a5 100644 --- a/src/Dotnettency.Modules.Nancy/TenantNancyBootstrapperFactory.cs +++ b/src/Dotnettency.AspNetCore.Modules.Nancy/TenantNancyBootstrapperFactory.cs @@ -1,8 +1,7 @@ using Dotnettency.Container; -using Dotnettency.Modules.Nancy; using System.Threading.Tasks; -namespace Dotnettency.Modules.Nancy +namespace Dotnettency.AspNetCore.Modules.Nancy { public class TenantNancyBootstrapperFactory : ITenantNancyBootstrapperFactory where TTenant : class diff --git a/src/Dotnettency.Modules.Nancy/TenantShellNancyExtensions.cs b/src/Dotnettency.AspNetCore.Modules.Nancy/TenantShellNancyExtensions.cs similarity index 94% rename from src/Dotnettency.Modules.Nancy/TenantShellNancyExtensions.cs rename to src/Dotnettency.AspNetCore.Modules.Nancy/TenantShellNancyExtensions.cs index c2bca0e..1b766f0 100644 --- a/src/Dotnettency.Modules.Nancy/TenantShellNancyExtensions.cs +++ b/src/Dotnettency.AspNetCore.Modules.Nancy/TenantShellNancyExtensions.cs @@ -1,6 +1,6 @@ using System; using System.Threading.Tasks; -using Dotnettency.Modules.Nancy; +using Dotnettency.AspNetCore.Modules.Nancy; namespace Dotnettency { diff --git a/src/Dotnettency.Modules/DelegateModuleFactory.cs b/src/Dotnettency.AspNetCore.Modules/DelegateModuleFactory.cs similarity index 100% rename from src/Dotnettency.Modules/DelegateModuleFactory.cs rename to src/Dotnettency.AspNetCore.Modules/DelegateModuleFactory.cs diff --git a/src/Dotnettency.Modules/DelegateModuleShellFactory.cs b/src/Dotnettency.AspNetCore.Modules/DelegateModuleShellFactory.cs similarity index 100% rename from src/Dotnettency.Modules/DelegateModuleShellFactory.cs rename to src/Dotnettency.AspNetCore.Modules/DelegateModuleShellFactory.cs diff --git a/src/Dotnettency.Modules/Dotnettency.Modules.csproj b/src/Dotnettency.AspNetCore.Modules/Dotnettency.AspNetCore.Modules.csproj similarity index 91% rename from src/Dotnettency.Modules/Dotnettency.Modules.csproj rename to src/Dotnettency.AspNetCore.Modules/Dotnettency.AspNetCore.Modules.csproj index d4b6e68..16b643d 100644 --- a/src/Dotnettency.Modules/Dotnettency.Modules.csproj +++ b/src/Dotnettency.AspNetCore.Modules/Dotnettency.AspNetCore.Modules.csproj @@ -18,6 +18,7 @@ + diff --git a/src/Dotnettency.Modules/IModule.cs b/src/Dotnettency.AspNetCore.Modules/IModule.cs similarity index 74% rename from src/Dotnettency.Modules/IModule.cs rename to src/Dotnettency.AspNetCore.Modules/IModule.cs index 73a64b1..f7b48d7 100644 --- a/src/Dotnettency.Modules/IModule.cs +++ b/src/Dotnettency.AspNetCore.Modules/IModule.cs @@ -1,4 +1,4 @@ -namespace Dotnettency.Modules +namespace Dotnettency.AspNetCore.Modules { /// /// A marker interface for all modules. diff --git a/src/Dotnettency.Modules/IModuleFactory.cs b/src/Dotnettency.AspNetCore.Modules/IModuleFactory.cs similarity index 100% rename from src/Dotnettency.Modules/IModuleFactory.cs rename to src/Dotnettency.AspNetCore.Modules/IModuleFactory.cs diff --git a/src/Dotnettency.Modules/IModuleManager.cs b/src/Dotnettency.AspNetCore.Modules/IModuleManager.cs similarity index 89% rename from src/Dotnettency.Modules/IModuleManager.cs rename to src/Dotnettency.AspNetCore.Modules/IModuleManager.cs index d02354d..d74d76b 100644 --- a/src/Dotnettency.Modules/IModuleManager.cs +++ b/src/Dotnettency.AspNetCore.Modules/IModuleManager.cs @@ -4,7 +4,7 @@ using System; using System.Threading.Tasks; -namespace Dotnettency.Modules +namespace Dotnettency.AspNetCore.Modules { public interface IModuleManager { diff --git a/src/Dotnettency.Modules/IModuleShell.cs b/src/Dotnettency.AspNetCore.Modules/IModuleShell.cs similarity index 94% rename from src/Dotnettency.Modules/IModuleShell.cs rename to src/Dotnettency.AspNetCore.Modules/IModuleShell.cs index 084536e..1f5a0ca 100644 --- a/src/Dotnettency.Modules/IModuleShell.cs +++ b/src/Dotnettency.AspNetCore.Modules/IModuleShell.cs @@ -5,7 +5,7 @@ using System; using System.Threading.Tasks; -namespace Dotnettency.Modules +namespace Dotnettency.AspNetCore.Modules { public interface IModuleShell { diff --git a/src/Dotnettency.Modules/IModuleShellFactory.cs b/src/Dotnettency.AspNetCore.Modules/IModuleShellFactory.cs similarity index 100% rename from src/Dotnettency.Modules/IModuleShellFactory.cs rename to src/Dotnettency.AspNetCore.Modules/IModuleShellFactory.cs diff --git a/src/Dotnettency.Modules/IRoutedModule.cs b/src/Dotnettency.AspNetCore.Modules/IRoutedModule.cs similarity index 96% rename from src/Dotnettency.Modules/IRoutedModule.cs rename to src/Dotnettency.AspNetCore.Modules/IRoutedModule.cs index 85504b7..d154adc 100644 --- a/src/Dotnettency.Modules/IRoutedModule.cs +++ b/src/Dotnettency.AspNetCore.Modules/IRoutedModule.cs @@ -1,7 +1,7 @@ using Microsoft.AspNetCore.Routing; using Microsoft.Extensions.DependencyInjection; -namespace Dotnettency.Modules +namespace Dotnettency.AspNetCore.Modules { /// /// An is given its own container that it can configure with services, so that they are isolated from any other modules. diff --git a/src/Dotnettency.Modules/ISharedModule.cs b/src/Dotnettency.AspNetCore.Modules/ISharedModule.cs similarity index 93% rename from src/Dotnettency.Modules/ISharedModule.cs rename to src/Dotnettency.AspNetCore.Modules/ISharedModule.cs index 29cbfe9..d863eaa 100644 --- a/src/Dotnettency.Modules/ISharedModule.cs +++ b/src/Dotnettency.AspNetCore.Modules/ISharedModule.cs @@ -1,7 +1,7 @@ using Microsoft.AspNetCore.Builder; using Microsoft.Extensions.DependencyInjection; -namespace Dotnettency.Modules +namespace Dotnettency.AspNetCore.Modules { /// /// An can configures services and middleware that can have a direct impact on all downstream 's. diff --git a/src/Dotnettency.Modules/ModuleBase.cs b/src/Dotnettency.AspNetCore.Modules/ModuleBase.cs similarity index 55% rename from src/Dotnettency.Modules/ModuleBase.cs rename to src/Dotnettency.AspNetCore.Modules/ModuleBase.cs index ab0e94c..b33ee40 100644 --- a/src/Dotnettency.Modules/ModuleBase.cs +++ b/src/Dotnettency.AspNetCore.Modules/ModuleBase.cs @@ -1,4 +1,4 @@ -namespace Dotnettency.Modules +namespace Dotnettency.AspNetCore.Modules { public class ModuleBase : IModule { diff --git a/src/Dotnettency.Modules/ModuleContainerBuilderOptionsExtensions.cs b/src/Dotnettency.AspNetCore.Modules/ModuleContainerBuilderOptionsExtensions.cs similarity index 100% rename from src/Dotnettency.Modules/ModuleContainerBuilderOptionsExtensions.cs rename to src/Dotnettency.AspNetCore.Modules/ModuleContainerBuilderOptionsExtensions.cs diff --git a/src/Dotnettency.Modules/ModuleManager.cs b/src/Dotnettency.AspNetCore.Modules/ModuleManager.cs similarity index 98% rename from src/Dotnettency.Modules/ModuleManager.cs rename to src/Dotnettency.AspNetCore.Modules/ModuleManager.cs index b37ebab..6465e34 100644 --- a/src/Dotnettency.Modules/ModuleManager.cs +++ b/src/Dotnettency.AspNetCore.Modules/ModuleManager.cs @@ -7,7 +7,7 @@ using System.Threading; using System.Threading.Tasks; -namespace Dotnettency.Modules +namespace Dotnettency.AspNetCore.Modules { public class ModuleManager : IModuleManager { diff --git a/src/Dotnettency.Modules/ModuleRegisterBuilder.cs b/src/Dotnettency.AspNetCore.Modules/ModuleRegisterBuilder.cs similarity index 98% rename from src/Dotnettency.Modules/ModuleRegisterBuilder.cs rename to src/Dotnettency.AspNetCore.Modules/ModuleRegisterBuilder.cs index c7ce6b0..06acea2 100644 --- a/src/Dotnettency.Modules/ModuleRegisterBuilder.cs +++ b/src/Dotnettency.AspNetCore.Modules/ModuleRegisterBuilder.cs @@ -2,7 +2,7 @@ using Microsoft.Extensions.DependencyInjection; using System; -namespace Dotnettency.Modules +namespace Dotnettency.AspNetCore.Modules { public class ModuleRegisterBuilder where TModule : class, IModule diff --git a/src/Dotnettency.Modules/ModuleRouteContext.cs b/src/Dotnettency.AspNetCore.Modules/ModuleRouteContext.cs similarity index 93% rename from src/Dotnettency.Modules/ModuleRouteContext.cs rename to src/Dotnettency.AspNetCore.Modules/ModuleRouteContext.cs index a0d26e5..c772197 100644 --- a/src/Dotnettency.Modules/ModuleRouteContext.cs +++ b/src/Dotnettency.AspNetCore.Modules/ModuleRouteContext.cs @@ -1,7 +1,7 @@ using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Routing; -namespace Dotnettency.Modules +namespace Dotnettency.AspNetCore.Modules { public class ModuleRouteContext : RouteContext { diff --git a/src/Dotnettency.Modules/ModuleShell.cs b/src/Dotnettency.AspNetCore.Modules/ModuleShell.cs similarity index 98% rename from src/Dotnettency.Modules/ModuleShell.cs rename to src/Dotnettency.AspNetCore.Modules/ModuleShell.cs index ee89bec..cc8e5b1 100644 --- a/src/Dotnettency.Modules/ModuleShell.cs +++ b/src/Dotnettency.AspNetCore.Modules/ModuleShell.cs @@ -5,7 +5,7 @@ using System; using System.Threading.Tasks; -namespace Dotnettency.Modules +namespace Dotnettency.AspNetCore.Modules { public class ModuleShell : IModuleShell { diff --git a/src/Dotnettency.Modules/ModuleShellOptions.cs b/src/Dotnettency.AspNetCore.Modules/ModuleShellOptions.cs similarity index 94% rename from src/Dotnettency.Modules/ModuleShellOptions.cs rename to src/Dotnettency.AspNetCore.Modules/ModuleShellOptions.cs index 059a13c..1a38b9d 100644 --- a/src/Dotnettency.Modules/ModuleShellOptions.cs +++ b/src/Dotnettency.AspNetCore.Modules/ModuleShellOptions.cs @@ -3,7 +3,7 @@ using Microsoft.Extensions.DependencyInjection; using System; -namespace Dotnettency +namespace Dotnettency.AspNetCore.Modules { public class ModuleShellOptions { diff --git a/src/Dotnettency.Modules/ModuleShellOptionsBuilder.cs b/src/Dotnettency.AspNetCore.Modules/ModuleShellOptionsBuilder.cs similarity index 97% rename from src/Dotnettency.Modules/ModuleShellOptionsBuilder.cs rename to src/Dotnettency.AspNetCore.Modules/ModuleShellOptionsBuilder.cs index c9faf3b..8d8b0dd 100644 --- a/src/Dotnettency.Modules/ModuleShellOptionsBuilder.cs +++ b/src/Dotnettency.AspNetCore.Modules/ModuleShellOptionsBuilder.cs @@ -3,7 +3,7 @@ using Microsoft.Extensions.DependencyInjection; using System; -namespace Dotnettency +namespace Dotnettency.AspNetCore.Modules { public class ModuleShellOptionsBuilder { diff --git a/src/Dotnettency.Modules/ModulesMiddleware.cs b/src/Dotnettency.AspNetCore.Modules/ModulesMiddleware.cs similarity index 98% rename from src/Dotnettency.Modules/ModulesMiddleware.cs rename to src/Dotnettency.AspNetCore.Modules/ModulesMiddleware.cs index a81ea8f..640a690 100644 --- a/src/Dotnettency.Modules/ModulesMiddleware.cs +++ b/src/Dotnettency.AspNetCore.Modules/ModulesMiddleware.cs @@ -5,7 +5,7 @@ using Microsoft.Extensions.Logging; using System.Threading.Tasks; -namespace Dotnettency.Modules +namespace Dotnettency.AspNetCore.Modules { public class ModulesMiddleware where TTenant : class diff --git a/src/Dotnettency.Modules/ModulesRouteContext.cs b/src/Dotnettency.AspNetCore.Modules/ModulesRouteContext.cs similarity index 88% rename from src/Dotnettency.Modules/ModulesRouteContext.cs rename to src/Dotnettency.AspNetCore.Modules/ModulesRouteContext.cs index 68afd71..c5f7599 100644 --- a/src/Dotnettency.Modules/ModulesRouteContext.cs +++ b/src/Dotnettency.AspNetCore.Modules/ModulesRouteContext.cs @@ -1,7 +1,7 @@ using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Routing; -namespace Dotnettency.Modules +namespace Dotnettency.AspNetCore.Modules { public class ModulesRouteContext : RouteContext { diff --git a/src/Dotnettency.Modules/ModulesRouter.cs b/src/Dotnettency.AspNetCore.Modules/ModulesRouter.cs similarity index 98% rename from src/Dotnettency.Modules/ModulesRouter.cs rename to src/Dotnettency.AspNetCore.Modules/ModulesRouter.cs index b113f27..6c133c7 100644 --- a/src/Dotnettency.Modules/ModulesRouter.cs +++ b/src/Dotnettency.AspNetCore.Modules/ModulesRouter.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.Threading.Tasks; -namespace Dotnettency.Modules +namespace Dotnettency.AspNetCore.Modules { public class ModulesRouter : IRouter { diff --git a/src/Dotnettency.Modules/RoutedModuleBase.cs b/src/Dotnettency.AspNetCore.Modules/RoutedModuleBase.cs similarity index 90% rename from src/Dotnettency.Modules/RoutedModuleBase.cs rename to src/Dotnettency.AspNetCore.Modules/RoutedModuleBase.cs index 02a3e5c..a78f6ca 100644 --- a/src/Dotnettency.Modules/RoutedModuleBase.cs +++ b/src/Dotnettency.AspNetCore.Modules/RoutedModuleBase.cs @@ -1,7 +1,7 @@ using Microsoft.AspNetCore.Routing; using Microsoft.Extensions.DependencyInjection; -namespace Dotnettency.Modules +namespace Dotnettency.AspNetCore.Modules { public class RoutedModuleBase : ModuleBase, IRoutedModule { diff --git a/src/Dotnettency.Modules/RoutingFeature.cs b/src/Dotnettency.AspNetCore.Modules/RoutingFeature.cs similarity index 79% rename from src/Dotnettency.Modules/RoutingFeature.cs rename to src/Dotnettency.AspNetCore.Modules/RoutingFeature.cs index c2b7e24..8977240 100644 --- a/src/Dotnettency.Modules/RoutingFeature.cs +++ b/src/Dotnettency.AspNetCore.Modules/RoutingFeature.cs @@ -1,6 +1,6 @@ using Microsoft.AspNetCore.Routing; -namespace Dotnettency.Modules +namespace Dotnettency.AspNetCore.Modules { public class RoutingFeature : IRoutingFeature { diff --git a/src/Dotnettency.Modules/ServiceCollectionExtensions.cs b/src/Dotnettency.AspNetCore.Modules/ServiceCollectionExtensions.cs similarity index 81% rename from src/Dotnettency.Modules/ServiceCollectionExtensions.cs rename to src/Dotnettency.AspNetCore.Modules/ServiceCollectionExtensions.cs index 81f7ad4..79ccc26 100644 --- a/src/Dotnettency.Modules/ServiceCollectionExtensions.cs +++ b/src/Dotnettency.AspNetCore.Modules/ServiceCollectionExtensions.cs @@ -1,7 +1,8 @@ -using Microsoft.Extensions.DependencyInjection; +using Dotnettency.AspNetCore.Modules; +using Microsoft.Extensions.DependencyInjection; using System; -namespace Dotnettency.Modules +namespace Dotnettency { public static class ServiceCollectionExtensions { diff --git a/src/Dotnettency.Modules/SharedModuleBase.cs b/src/Dotnettency.AspNetCore.Modules/SharedModuleBase.cs similarity index 90% rename from src/Dotnettency.Modules/SharedModuleBase.cs rename to src/Dotnettency.AspNetCore.Modules/SharedModuleBase.cs index deabb67..3689bb2 100644 --- a/src/Dotnettency.Modules/SharedModuleBase.cs +++ b/src/Dotnettency.AspNetCore.Modules/SharedModuleBase.cs @@ -1,7 +1,7 @@ using Microsoft.AspNetCore.Builder; using Microsoft.Extensions.DependencyInjection; -namespace Dotnettency.Modules +namespace Dotnettency.AspNetCore.Modules { public abstract class SharedModuleBase : ModuleBase, ISharedModule { diff --git a/src/Dotnettency.Modules/UseModulesBuilderExtensions.cs b/src/Dotnettency.AspNetCore.Modules/UseModulesBuilderExtensions.cs similarity index 90% rename from src/Dotnettency.Modules/UseModulesBuilderExtensions.cs rename to src/Dotnettency.AspNetCore.Modules/UseModulesBuilderExtensions.cs index 0470672..9791dac 100644 --- a/src/Dotnettency.Modules/UseModulesBuilderExtensions.cs +++ b/src/Dotnettency.AspNetCore.Modules/UseModulesBuilderExtensions.cs @@ -1,4 +1,5 @@ -using Dotnettency.Modules; +using Dotnettency.AspNetCore; +using Dotnettency.AspNetCore.Modules; using Microsoft.AspNetCore.Builder; namespace Dotnettency diff --git a/src/Dotnettency.Modules/UseModulesOptionsBuilder.cs b/src/Dotnettency.AspNetCore.Modules/UseModulesOptionsBuilder.cs similarity index 89% rename from src/Dotnettency.Modules/UseModulesOptionsBuilder.cs rename to src/Dotnettency.AspNetCore.Modules/UseModulesOptionsBuilder.cs index e21c62f..220c770 100644 --- a/src/Dotnettency.Modules/UseModulesOptionsBuilder.cs +++ b/src/Dotnettency.AspNetCore.Modules/UseModulesOptionsBuilder.cs @@ -1,4 +1,5 @@ -using Dotnettency.Modules; +using Dotnettency.AspNetCore; +using Dotnettency.AspNetCore.Modules; using Microsoft.AspNetCore.Builder; namespace Dotnettency diff --git a/src/Dotnettency/ApplicationBuilderExtensions.cs b/src/Dotnettency.AspNetCore/ApplicationBuilderExtensions.cs similarity index 86% rename from src/Dotnettency/ApplicationBuilderExtensions.cs rename to src/Dotnettency.AspNetCore/ApplicationBuilderExtensions.cs index eb734a7..5b9af20 100644 --- a/src/Dotnettency/ApplicationBuilderExtensions.cs +++ b/src/Dotnettency.AspNetCore/ApplicationBuilderExtensions.cs @@ -1,4 +1,5 @@ -using Microsoft.AspNetCore.Builder; +using Dotnettency.AspNetCore; +using Microsoft.AspNetCore.Builder; using System; namespace Dotnettency diff --git a/src/Dotnettency.AspNetCore/Dotnettency.AspNetCore.csproj b/src/Dotnettency.AspNetCore/Dotnettency.AspNetCore.csproj new file mode 100644 index 0000000..1a34e41 --- /dev/null +++ b/src/Dotnettency.AspNetCore/Dotnettency.AspNetCore.csproj @@ -0,0 +1,13 @@ + + + + netstandard1.3 + + + + + + + + + diff --git a/src/Dotnettency/TenantDistinguisher/HttpContextTenantDistinguisherFactory.cs b/src/Dotnettency.AspNetCore/HttpContextTenantDistinguisherFactory.cs similarity index 97% rename from src/Dotnettency/TenantDistinguisher/HttpContextTenantDistinguisherFactory.cs rename to src/Dotnettency.AspNetCore/HttpContextTenantDistinguisherFactory.cs index 0509668..9d27b05 100644 --- a/src/Dotnettency/TenantDistinguisher/HttpContextTenantDistinguisherFactory.cs +++ b/src/Dotnettency.AspNetCore/HttpContextTenantDistinguisherFactory.cs @@ -1,7 +1,7 @@ using Microsoft.AspNetCore.Http; using System.Threading.Tasks; -namespace Dotnettency +namespace Dotnettency.AspNetCore { public abstract class HttpContextTenantDistinguisherFactory : ITenantDistinguisherFactory where TTenant : class diff --git a/src/Dotnettency/MultitenancyMiddlewareOptionsBuilder.cs b/src/Dotnettency.AspNetCore/MultitenancyMiddlewareOptionsBuilder.cs similarity index 90% rename from src/Dotnettency/MultitenancyMiddlewareOptionsBuilder.cs rename to src/Dotnettency.AspNetCore/MultitenancyMiddlewareOptionsBuilder.cs index 2f37860..8217534 100644 --- a/src/Dotnettency/MultitenancyMiddlewareOptionsBuilder.cs +++ b/src/Dotnettency.AspNetCore/MultitenancyMiddlewareOptionsBuilder.cs @@ -1,6 +1,6 @@ using Microsoft.AspNetCore.Builder; -namespace Dotnettency +namespace Dotnettency.AspNetCore { public class MultitenancyMiddlewareOptionsBuilder { diff --git a/src/Dotnettency.AspNetCore/MultitenancyOptionsBuilder.cs b/src/Dotnettency.AspNetCore/MultitenancyOptionsBuilder.cs new file mode 100644 index 0000000..0ec83c4 --- /dev/null +++ b/src/Dotnettency.AspNetCore/MultitenancyOptionsBuilder.cs @@ -0,0 +1,18 @@ +using Dotnettency.AspNetCore; +using Microsoft.AspNetCore.Http; +using Microsoft.Extensions.DependencyInjection; + +namespace Dotnettency +{ + public static class MultitenancyOptionsBuilderExtensions + { + + public static MultitenancyOptionsBuilder AddDefaultHttpServices(this MultitenancyOptionsBuilder builder) + where TTenant : class + { + builder.Services.AddSingleton, RequestAuthorityTenantDistinguisherFactory>(); + builder.Services.AddSingleton(); + return builder; + } + } +} diff --git a/src/Dotnettency/TenantDistinguisher/RequestAuthorityTenantDistinguisherFactory.cs b/src/Dotnettency.AspNetCore/RequestAuthorityTenantDistinguisherFactory.cs similarity index 94% rename from src/Dotnettency/TenantDistinguisher/RequestAuthorityTenantDistinguisherFactory.cs rename to src/Dotnettency.AspNetCore/RequestAuthorityTenantDistinguisherFactory.cs index f773138..def9ac6 100644 --- a/src/Dotnettency/TenantDistinguisher/RequestAuthorityTenantDistinguisherFactory.cs +++ b/src/Dotnettency.AspNetCore/RequestAuthorityTenantDistinguisherFactory.cs @@ -1,6 +1,6 @@ using Microsoft.AspNetCore.Http; -namespace Dotnettency +namespace Dotnettency.AspNetCore { public class RequestAuthorityTenantDistinguisherFactory : HttpContextTenantDistinguisherFactory where TTenant : class diff --git a/src/Dotnettency/UriHelper.cs b/src/Dotnettency.AspNetCore/UriHelper.cs similarity index 100% rename from src/Dotnettency/UriHelper.cs rename to src/Dotnettency.AspNetCore/UriHelper.cs diff --git a/src/Dotnettency.Container/ContainerBuilderOptions.cs b/src/Dotnettency.Container/ContainerBuilderOptions.cs index 1f8a43c..b7b09c2 100644 --- a/src/Dotnettency.Container/ContainerBuilderOptions.cs +++ b/src/Dotnettency.Container/ContainerBuilderOptions.cs @@ -10,7 +10,7 @@ public ContainerBuilderOptions(MultitenancyOptionsBuilder builder) Builder = builder; builder.Services.AddSingleton, TenantContainerBuilderFactory>(); builder.Services.AddScoped, TenantContainerAccessor>(); - builder.Services.AddScoped, TenantRequestContainerAccessor>(); + // builder.Services.AddScoped, TenantRequestContainerAccessor>(); } public MultitenancyOptionsBuilder Builder { get; set; } diff --git a/src/Dotnettency.HostingEnvironment/ITenantContentRootFileSystemProviderFatory.cs b/src/Dotnettency.HostingEnvironment/ITenantContentRootFileSystemProviderFatory.cs deleted file mode 100644 index a916b39..0000000 --- a/src/Dotnettency.HostingEnvironment/ITenantContentRootFileSystemProviderFatory.cs +++ /dev/null @@ -1,10 +0,0 @@ -using DotNet.Cabinets; - -namespace Dotnettency.HostingEnvironment -{ - public interface ITenantContentRootFileSystemProviderFatory - where TTenant : class - { - ICabinet GetContentRoot(TTenant tenant); - } -} diff --git a/src/Dotnettency.HostingEnvironment/ITenantWebRootFileSystemProviderFatory.cs b/src/Dotnettency.HostingEnvironment/ITenantWebRootFileSystemProviderFatory.cs deleted file mode 100644 index eb136f8..0000000 --- a/src/Dotnettency.HostingEnvironment/ITenantWebRootFileSystemProviderFatory.cs +++ /dev/null @@ -1,10 +0,0 @@ -using DotNet.Cabinets; - -namespace Dotnettency.HostingEnvironment -{ - public interface ITenantWebRootFileSystemProviderFatory - where TTenant : class - { - ICabinet GetWebRoot(TTenant tenant); - } -} diff --git a/src/Dotnettency.HostingEnvironment/TenantShellFileSystemExtensions.cs b/src/Dotnettency.HostingEnvironment/TenantShellFileSystemExtensions.cs deleted file mode 100644 index aaaa550..0000000 --- a/src/Dotnettency.HostingEnvironment/TenantShellFileSystemExtensions.cs +++ /dev/null @@ -1,23 +0,0 @@ -using DotNet.Cabinets; -using System; - -namespace Dotnettency.HostingEnvironment -{ - public static class TenantShellFileSystemExtensions - { - private const string ContentRootKey = nameof(TenantShellFileSystemExtensions) + "-ContentRoot"; - private const string WebRootKey = nameof(TenantShellFileSystemExtensions) + "-WebRoot"; - - public static Lazy GetOrAddTenantContentRootFileSystem(this TenantShell tenantShell, Lazy factory) - where TTenant : class - { - return tenantShell.Properties.GetOrAdd(ContentRootKey, factory) as Lazy; - } - - public static Lazy GetOrAddTenantWebRootFileSystem(this TenantShell tenantShell, Lazy factory) - where TTenant : class - { - return tenantShell.Properties.GetOrAdd(WebRootKey, factory) as Lazy; - } - } -} diff --git a/src/Dotnettency.Sample/Modules/SampleRoutedModule.cs b/src/Dotnettency.Sample/Modules/SampleRoutedModule.cs index c955944..a6a20e9 100644 --- a/src/Dotnettency.Sample/Modules/SampleRoutedModule.cs +++ b/src/Dotnettency.Sample/Modules/SampleRoutedModule.cs @@ -1,4 +1,4 @@ -using Dotnettency.Modules; +using Dotnettency.AspNetCore.Modules; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Routing; using Microsoft.Extensions.DependencyInjection; diff --git a/src/Dotnettency.Sample/Modules/SampleSharedModule.cs b/src/Dotnettency.Sample/Modules/SampleSharedModule.cs index 0cd2c65..9f45d07 100644 --- a/src/Dotnettency.Sample/Modules/SampleSharedModule.cs +++ b/src/Dotnettency.Sample/Modules/SampleSharedModule.cs @@ -1,6 +1,6 @@ -using Microsoft.AspNetCore.Builder; +using Dotnettency.AspNetCore.Modules; +using Microsoft.AspNetCore.Builder; using Microsoft.Extensions.DependencyInjection; -using Dotnettency.Modules; namespace Sample { diff --git a/src/Dotnettency.Sample/Sample.csproj b/src/Dotnettency.Sample/Sample.csproj index 6030da6..2a0f33c 100644 --- a/src/Dotnettency.Sample/Sample.csproj +++ b/src/Dotnettency.Sample/Sample.csproj @@ -31,10 +31,11 @@ + + + + - - - diff --git a/src/Dotnettency.Sample/Startup.cs b/src/Dotnettency.Sample/Startup.cs index c3ed9a8..1e81759 100644 --- a/src/Dotnettency.Sample/Startup.cs +++ b/src/Dotnettency.Sample/Startup.cs @@ -8,10 +8,8 @@ using System.Text; using Microsoft.Net.Http.Headers; using Newtonsoft.Json; -using Dotnettency.Modules; -using Microsoft.AspNetCore.Routing; -using Dotnettency.Container.StructureMap; using Dotnettency.Container; +using Dotnettency.AspNetCore.Modules; namespace Sample { diff --git a/src/Dotnettency.TenantFileSystem/Dotnettency.TenantFileSystem.csproj b/src/Dotnettency.TenantFileSystem/Dotnettency.TenantFileSystem.csproj new file mode 100644 index 0000000..33bd397 --- /dev/null +++ b/src/Dotnettency.TenantFileSystem/Dotnettency.TenantFileSystem.csproj @@ -0,0 +1,15 @@ + + + + netstandard1.3 + + + + + + + + + + + diff --git a/src/Dotnettency.HostingEnvironment/TenantFileSystemBuilderContext.cs b/src/Dotnettency.TenantFileSystem/TenantFileSystemBuilderContext.cs similarity index 74% rename from src/Dotnettency.HostingEnvironment/TenantFileSystemBuilderContext.cs rename to src/Dotnettency.TenantFileSystem/TenantFileSystemBuilderContext.cs index 89202b5..7b09796 100644 --- a/src/Dotnettency.HostingEnvironment/TenantFileSystemBuilderContext.cs +++ b/src/Dotnettency.TenantFileSystem/TenantFileSystemBuilderContext.cs @@ -3,7 +3,7 @@ using System; using System.IO; -namespace Dotnettency.HostingEnvironment +namespace Dotnettency.TenantFileSystem { public class TenantFileSystemBuilderContext where TTenant : class @@ -20,6 +20,11 @@ public TenantFileSystemBuilderContext(TTenant tenant, string defaultTenantsBaseF public Guid PartitionId { get; set; } public string BaseFolder { get; set; } + /// + /// Chains another file provider to this tenants file system, so that the tenant can access those additional files (Read and Copy on Write access) + /// + /// + /// public TenantFileSystemBuilderContext AllowAccessTo(IFileProvider chainedFileProvider) { _parentFileProvider = chainedFileProvider; @@ -34,7 +39,7 @@ public TenantFileSystemBuilderContext TenantPartitionId(Guid guid) public ICabinet Build() { - // Base folder needs to exist. This is the folder where the tenant specific folder will be created within. + // Base physical folder needs to exist. This is the folder where the tenant specific folder will be created within. if (!Directory.Exists(BaseFolder)) { Directory.CreateDirectory(BaseFolder); diff --git a/src/Dotnettency.TenantFileSystem/TenantShellFileSystemExtensions.cs b/src/Dotnettency.TenantFileSystem/TenantShellFileSystemExtensions.cs new file mode 100644 index 0000000..0eaf050 --- /dev/null +++ b/src/Dotnettency.TenantFileSystem/TenantShellFileSystemExtensions.cs @@ -0,0 +1,15 @@ +using DotNet.Cabinets; +using System; + +namespace Dotnettency.TenantFileSystem +{ + public static class TenantShellFileSystemExtensions + { + public static Lazy GetOrAddTenantFileSystem(this TenantShell tenantShell, string key, Lazy factory) + where TTenant : class + { + return tenantShell.Properties.GetOrAdd(key, factory) as Lazy; + } + + } +} diff --git a/src/Dotnettency/Dotnettency.csproj b/src/Dotnettency/Dotnettency.csproj index 64bb7e4..526fa04 100644 --- a/src/Dotnettency/Dotnettency.csproj +++ b/src/Dotnettency/Dotnettency.csproj @@ -10,9 +10,7 @@ Multitenancy,tenant - - - + diff --git a/src/Dotnettency/MultitenancyOptionsBuilder.cs b/src/Dotnettency/MultitenancyOptionsBuilder.cs index b778947..fbbf102 100644 --- a/src/Dotnettency/MultitenancyOptionsBuilder.cs +++ b/src/Dotnettency/MultitenancyOptionsBuilder.cs @@ -1,5 +1,4 @@ -using Microsoft.AspNetCore.Http; -using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.DependencyInjection; using System; namespace Dotnettency @@ -10,11 +9,15 @@ public class MultitenancyOptionsBuilder public MultitenancyOptionsBuilder(IServiceCollection serviceCollection) { Services = serviceCollection; + AddDefaultServices(Services); + } + protected virtual void AddDefaultServices(IServiceCollection serviceCollection) + { // Add default services - Services.AddSingleton(); + // Services.AddSingleton(); Services.AddScoped, TenantAccessor>(); - + // Tenant shell cache is special in that it houses the tenant shell for each tenant, and each // tenant shell has state that needs to be kept local to the application (i.e the tenant's container or middleware pipeline.) // Therefore it should always be a local / in-memory based cache as will have will have fundamentally non-serialisable state. @@ -24,7 +27,7 @@ public MultitenancyOptionsBuilder(IServiceCollection serviceCollection) Services.AddScoped, TenantShellAccessor>(); // By default, we use a URI from the request to identify tenants. - Services.AddSingleton, RequestAuthorityTenantDistinguisherFactory>(); + // Services.AddSingleton, RequestAuthorityTenantDistinguisherFactory>(); // Support injection of TTenant (has side effect that may block during injection) Services.AddScoped(sp => { diff --git a/src/Sample.Mvc/Sample.Mvc.csproj b/src/Sample.Mvc/Sample.Mvc.csproj index b978d9c..7b4ecd4 100644 --- a/src/Sample.Mvc/Sample.Mvc.csproj +++ b/src/Sample.Mvc/Sample.Mvc.csproj @@ -19,10 +19,11 @@ + + + - - diff --git a/src/Sample.Mvc/Startup.cs b/src/Sample.Mvc/Startup.cs index 1a929d2..fbe8bb9 100644 --- a/src/Sample.Mvc/Startup.cs +++ b/src/Sample.Mvc/Startup.cs @@ -1,13 +1,9 @@ using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; -using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Dotnettency; using System; -using System.Text; -using Microsoft.Net.Http.Headers; -using Newtonsoft.Json; namespace Sample.Mvc { diff --git a/src/src.sln b/src/src.sln index 59ee024..42ee07f 100644 --- a/src/src.sln +++ b/src/src.sln @@ -1,12 +1,10 @@  Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 -VisualStudioVersion = 15.0.26730.3 +VisualStudioVersion = 15.0.27004.2009 MinimumVisualStudioVersion = 15.0.26124.0 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dotnettency", "Dotnettency\Dotnettency.csproj", "{27306262-FF3C-4B52-A2CD-ED49F613B200}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dotnettency.MiddlewarePipeline", "Dotnettency.MiddlewarePipeline\Dotnettency.MiddlewarePipeline.csproj", "{2C2F65D3-8902-481B-8343-CE6A86825D9E}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Sample", "Dotnettency.Sample\Sample.csproj", "{4C346402-1A2A-4C65-A95F-8E696EE5CEC3}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dotnettency.Container", "Dotnettency.Container\Dotnettency.Container.csproj", "{9D449854-6932-436B-B9F6-FC298273C6F5}" @@ -23,11 +21,19 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Sample.Mvc", "Sample.Mvc\Sample.Mvc.csproj", "{35717DCE-7CC2-482F-A699-2FF157C2258F}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dotnettency.HostingEnvironment", "Dotnettency.HostingEnvironment\Dotnettency.HostingEnvironment.csproj", "{E2CAD9E5-6843-4A9B-9A0B-1F4E1F42A6A4}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dotnettency.AspNetCore", "Dotnettency.AspNetCore\Dotnettency.AspNetCore.csproj", "{043BB5D3-63EC-4BD4-8FA6-A5BC62EB7A1E}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dotnettency.AspNetCore.Container", "Dotnettency.AspNetCore.Container\Dotnettency.AspNetCore.Container.csproj", "{A0540A48-8F67-4A52-9B54-7801C22F5679}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dotnettency.TenantFileSystem", "Dotnettency.TenantFileSystem\Dotnettency.TenantFileSystem.csproj", "{AF9243F7-FE10-45EF-B936-FD790585304A}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dotnettency.AspNetCore.HostingEnvironment", "Dotnettency.AspNetCore.HostingEnvironment\Dotnettency.AspNetCore.HostingEnvironment.csproj", "{7CB875C0-91D8-48E2-99EE-5D4C479E2AE6}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dotnettency.AspNetCore.MiddlewarePipeline", "Dotnettency.AspNetCore.MiddlewarePipeline\Dotnettency.AspNetCore.MiddlewarePipeline.csproj", "{5F5F8ABA-516B-44EB-AA76-CAD866D8B894}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dotnettency.Modules", "Dotnettency.Modules\Dotnettency.Modules.csproj", "{720AC644-94A4-4AA9-AD12-543AB87BC2FC}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dotnettency.AspNetCore.Modules", "Dotnettency.AspNetCore.Modules\Dotnettency.AspNetCore.Modules.csproj", "{FC2B17BA-694B-4D43-A5B7-A0CC4F5BC280}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dotnettency.Modules.Nancy", "Dotnettency.Modules.Nancy\Dotnettency.Modules.Nancy.csproj", "{6CFD80AD-DC8C-4228-B467-EE070CEE11AC}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dotnettency.AspNetCore.Modules.Nancy", "Dotnettency.AspNetCore.Modules.Nancy\Dotnettency.AspNetCore.Modules.Nancy.csproj", "{7848C00C-E4C4-470D-8FAE-FE959ABD701F}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -51,18 +57,6 @@ Global {27306262-FF3C-4B52-A2CD-ED49F613B200}.Release|x64.Build.0 = Release|Any CPU {27306262-FF3C-4B52-A2CD-ED49F613B200}.Release|x86.ActiveCfg = Release|Any CPU {27306262-FF3C-4B52-A2CD-ED49F613B200}.Release|x86.Build.0 = Release|Any CPU - {2C2F65D3-8902-481B-8343-CE6A86825D9E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {2C2F65D3-8902-481B-8343-CE6A86825D9E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {2C2F65D3-8902-481B-8343-CE6A86825D9E}.Debug|x64.ActiveCfg = Debug|Any CPU - {2C2F65D3-8902-481B-8343-CE6A86825D9E}.Debug|x64.Build.0 = Debug|Any CPU - {2C2F65D3-8902-481B-8343-CE6A86825D9E}.Debug|x86.ActiveCfg = Debug|Any CPU - {2C2F65D3-8902-481B-8343-CE6A86825D9E}.Debug|x86.Build.0 = Debug|Any CPU - {2C2F65D3-8902-481B-8343-CE6A86825D9E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {2C2F65D3-8902-481B-8343-CE6A86825D9E}.Release|Any CPU.Build.0 = Release|Any CPU - {2C2F65D3-8902-481B-8343-CE6A86825D9E}.Release|x64.ActiveCfg = Release|Any CPU - {2C2F65D3-8902-481B-8343-CE6A86825D9E}.Release|x64.Build.0 = Release|Any CPU - {2C2F65D3-8902-481B-8343-CE6A86825D9E}.Release|x86.ActiveCfg = Release|Any CPU - {2C2F65D3-8902-481B-8343-CE6A86825D9E}.Release|x86.Build.0 = Release|Any CPU {4C346402-1A2A-4C65-A95F-8E696EE5CEC3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {4C346402-1A2A-4C65-A95F-8E696EE5CEC3}.Debug|Any CPU.Build.0 = Debug|Any CPU {4C346402-1A2A-4C65-A95F-8E696EE5CEC3}.Debug|x64.ActiveCfg = Debug|Any CPU @@ -111,42 +105,90 @@ Global {35717DCE-7CC2-482F-A699-2FF157C2258F}.Release|x64.Build.0 = Release|Any CPU {35717DCE-7CC2-482F-A699-2FF157C2258F}.Release|x86.ActiveCfg = Release|Any CPU {35717DCE-7CC2-482F-A699-2FF157C2258F}.Release|x86.Build.0 = Release|Any CPU - {E2CAD9E5-6843-4A9B-9A0B-1F4E1F42A6A4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {E2CAD9E5-6843-4A9B-9A0B-1F4E1F42A6A4}.Debug|Any CPU.Build.0 = Debug|Any CPU - {E2CAD9E5-6843-4A9B-9A0B-1F4E1F42A6A4}.Debug|x64.ActiveCfg = Debug|Any CPU - {E2CAD9E5-6843-4A9B-9A0B-1F4E1F42A6A4}.Debug|x64.Build.0 = Debug|Any CPU - {E2CAD9E5-6843-4A9B-9A0B-1F4E1F42A6A4}.Debug|x86.ActiveCfg = Debug|Any CPU - {E2CAD9E5-6843-4A9B-9A0B-1F4E1F42A6A4}.Debug|x86.Build.0 = Debug|Any CPU - {E2CAD9E5-6843-4A9B-9A0B-1F4E1F42A6A4}.Release|Any CPU.ActiveCfg = Release|Any CPU - {E2CAD9E5-6843-4A9B-9A0B-1F4E1F42A6A4}.Release|Any CPU.Build.0 = Release|Any CPU - {E2CAD9E5-6843-4A9B-9A0B-1F4E1F42A6A4}.Release|x64.ActiveCfg = Release|Any CPU - {E2CAD9E5-6843-4A9B-9A0B-1F4E1F42A6A4}.Release|x64.Build.0 = Release|Any CPU - {E2CAD9E5-6843-4A9B-9A0B-1F4E1F42A6A4}.Release|x86.ActiveCfg = Release|Any CPU - {E2CAD9E5-6843-4A9B-9A0B-1F4E1F42A6A4}.Release|x86.Build.0 = Release|Any CPU - {720AC644-94A4-4AA9-AD12-543AB87BC2FC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {720AC644-94A4-4AA9-AD12-543AB87BC2FC}.Debug|Any CPU.Build.0 = Debug|Any CPU - {720AC644-94A4-4AA9-AD12-543AB87BC2FC}.Debug|x64.ActiveCfg = Debug|Any CPU - {720AC644-94A4-4AA9-AD12-543AB87BC2FC}.Debug|x64.Build.0 = Debug|Any CPU - {720AC644-94A4-4AA9-AD12-543AB87BC2FC}.Debug|x86.ActiveCfg = Debug|Any CPU - {720AC644-94A4-4AA9-AD12-543AB87BC2FC}.Debug|x86.Build.0 = Debug|Any CPU - {720AC644-94A4-4AA9-AD12-543AB87BC2FC}.Release|Any CPU.ActiveCfg = Release|Any CPU - {720AC644-94A4-4AA9-AD12-543AB87BC2FC}.Release|Any CPU.Build.0 = Release|Any CPU - {720AC644-94A4-4AA9-AD12-543AB87BC2FC}.Release|x64.ActiveCfg = Release|Any CPU - {720AC644-94A4-4AA9-AD12-543AB87BC2FC}.Release|x64.Build.0 = Release|Any CPU - {720AC644-94A4-4AA9-AD12-543AB87BC2FC}.Release|x86.ActiveCfg = Release|Any CPU - {720AC644-94A4-4AA9-AD12-543AB87BC2FC}.Release|x86.Build.0 = Release|Any CPU - {6CFD80AD-DC8C-4228-B467-EE070CEE11AC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {6CFD80AD-DC8C-4228-B467-EE070CEE11AC}.Debug|Any CPU.Build.0 = Debug|Any CPU - {6CFD80AD-DC8C-4228-B467-EE070CEE11AC}.Debug|x64.ActiveCfg = Debug|Any CPU - {6CFD80AD-DC8C-4228-B467-EE070CEE11AC}.Debug|x64.Build.0 = Debug|Any CPU - {6CFD80AD-DC8C-4228-B467-EE070CEE11AC}.Debug|x86.ActiveCfg = Debug|Any CPU - {6CFD80AD-DC8C-4228-B467-EE070CEE11AC}.Debug|x86.Build.0 = Debug|Any CPU - {6CFD80AD-DC8C-4228-B467-EE070CEE11AC}.Release|Any CPU.ActiveCfg = Release|Any CPU - {6CFD80AD-DC8C-4228-B467-EE070CEE11AC}.Release|Any CPU.Build.0 = Release|Any CPU - {6CFD80AD-DC8C-4228-B467-EE070CEE11AC}.Release|x64.ActiveCfg = Release|Any CPU - {6CFD80AD-DC8C-4228-B467-EE070CEE11AC}.Release|x64.Build.0 = Release|Any CPU - {6CFD80AD-DC8C-4228-B467-EE070CEE11AC}.Release|x86.ActiveCfg = Release|Any CPU - {6CFD80AD-DC8C-4228-B467-EE070CEE11AC}.Release|x86.Build.0 = Release|Any CPU + {043BB5D3-63EC-4BD4-8FA6-A5BC62EB7A1E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {043BB5D3-63EC-4BD4-8FA6-A5BC62EB7A1E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {043BB5D3-63EC-4BD4-8FA6-A5BC62EB7A1E}.Debug|x64.ActiveCfg = Debug|Any CPU + {043BB5D3-63EC-4BD4-8FA6-A5BC62EB7A1E}.Debug|x64.Build.0 = Debug|Any CPU + {043BB5D3-63EC-4BD4-8FA6-A5BC62EB7A1E}.Debug|x86.ActiveCfg = Debug|Any CPU + {043BB5D3-63EC-4BD4-8FA6-A5BC62EB7A1E}.Debug|x86.Build.0 = Debug|Any CPU + {043BB5D3-63EC-4BD4-8FA6-A5BC62EB7A1E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {043BB5D3-63EC-4BD4-8FA6-A5BC62EB7A1E}.Release|Any CPU.Build.0 = Release|Any CPU + {043BB5D3-63EC-4BD4-8FA6-A5BC62EB7A1E}.Release|x64.ActiveCfg = Release|Any CPU + {043BB5D3-63EC-4BD4-8FA6-A5BC62EB7A1E}.Release|x64.Build.0 = Release|Any CPU + {043BB5D3-63EC-4BD4-8FA6-A5BC62EB7A1E}.Release|x86.ActiveCfg = Release|Any CPU + {043BB5D3-63EC-4BD4-8FA6-A5BC62EB7A1E}.Release|x86.Build.0 = Release|Any CPU + {A0540A48-8F67-4A52-9B54-7801C22F5679}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A0540A48-8F67-4A52-9B54-7801C22F5679}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A0540A48-8F67-4A52-9B54-7801C22F5679}.Debug|x64.ActiveCfg = Debug|Any CPU + {A0540A48-8F67-4A52-9B54-7801C22F5679}.Debug|x64.Build.0 = Debug|Any CPU + {A0540A48-8F67-4A52-9B54-7801C22F5679}.Debug|x86.ActiveCfg = Debug|Any CPU + {A0540A48-8F67-4A52-9B54-7801C22F5679}.Debug|x86.Build.0 = Debug|Any CPU + {A0540A48-8F67-4A52-9B54-7801C22F5679}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A0540A48-8F67-4A52-9B54-7801C22F5679}.Release|Any CPU.Build.0 = Release|Any CPU + {A0540A48-8F67-4A52-9B54-7801C22F5679}.Release|x64.ActiveCfg = Release|Any CPU + {A0540A48-8F67-4A52-9B54-7801C22F5679}.Release|x64.Build.0 = Release|Any CPU + {A0540A48-8F67-4A52-9B54-7801C22F5679}.Release|x86.ActiveCfg = Release|Any CPU + {A0540A48-8F67-4A52-9B54-7801C22F5679}.Release|x86.Build.0 = Release|Any CPU + {AF9243F7-FE10-45EF-B936-FD790585304A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {AF9243F7-FE10-45EF-B936-FD790585304A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {AF9243F7-FE10-45EF-B936-FD790585304A}.Debug|x64.ActiveCfg = Debug|Any CPU + {AF9243F7-FE10-45EF-B936-FD790585304A}.Debug|x64.Build.0 = Debug|Any CPU + {AF9243F7-FE10-45EF-B936-FD790585304A}.Debug|x86.ActiveCfg = Debug|Any CPU + {AF9243F7-FE10-45EF-B936-FD790585304A}.Debug|x86.Build.0 = Debug|Any CPU + {AF9243F7-FE10-45EF-B936-FD790585304A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {AF9243F7-FE10-45EF-B936-FD790585304A}.Release|Any CPU.Build.0 = Release|Any CPU + {AF9243F7-FE10-45EF-B936-FD790585304A}.Release|x64.ActiveCfg = Release|Any CPU + {AF9243F7-FE10-45EF-B936-FD790585304A}.Release|x64.Build.0 = Release|Any CPU + {AF9243F7-FE10-45EF-B936-FD790585304A}.Release|x86.ActiveCfg = Release|Any CPU + {AF9243F7-FE10-45EF-B936-FD790585304A}.Release|x86.Build.0 = Release|Any CPU + {7CB875C0-91D8-48E2-99EE-5D4C479E2AE6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7CB875C0-91D8-48E2-99EE-5D4C479E2AE6}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7CB875C0-91D8-48E2-99EE-5D4C479E2AE6}.Debug|x64.ActiveCfg = Debug|Any CPU + {7CB875C0-91D8-48E2-99EE-5D4C479E2AE6}.Debug|x64.Build.0 = Debug|Any CPU + {7CB875C0-91D8-48E2-99EE-5D4C479E2AE6}.Debug|x86.ActiveCfg = Debug|Any CPU + {7CB875C0-91D8-48E2-99EE-5D4C479E2AE6}.Debug|x86.Build.0 = Debug|Any CPU + {7CB875C0-91D8-48E2-99EE-5D4C479E2AE6}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7CB875C0-91D8-48E2-99EE-5D4C479E2AE6}.Release|Any CPU.Build.0 = Release|Any CPU + {7CB875C0-91D8-48E2-99EE-5D4C479E2AE6}.Release|x64.ActiveCfg = Release|Any CPU + {7CB875C0-91D8-48E2-99EE-5D4C479E2AE6}.Release|x64.Build.0 = Release|Any CPU + {7CB875C0-91D8-48E2-99EE-5D4C479E2AE6}.Release|x86.ActiveCfg = Release|Any CPU + {7CB875C0-91D8-48E2-99EE-5D4C479E2AE6}.Release|x86.Build.0 = Release|Any CPU + {5F5F8ABA-516B-44EB-AA76-CAD866D8B894}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5F5F8ABA-516B-44EB-AA76-CAD866D8B894}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5F5F8ABA-516B-44EB-AA76-CAD866D8B894}.Debug|x64.ActiveCfg = Debug|Any CPU + {5F5F8ABA-516B-44EB-AA76-CAD866D8B894}.Debug|x64.Build.0 = Debug|Any CPU + {5F5F8ABA-516B-44EB-AA76-CAD866D8B894}.Debug|x86.ActiveCfg = Debug|Any CPU + {5F5F8ABA-516B-44EB-AA76-CAD866D8B894}.Debug|x86.Build.0 = Debug|Any CPU + {5F5F8ABA-516B-44EB-AA76-CAD866D8B894}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5F5F8ABA-516B-44EB-AA76-CAD866D8B894}.Release|Any CPU.Build.0 = Release|Any CPU + {5F5F8ABA-516B-44EB-AA76-CAD866D8B894}.Release|x64.ActiveCfg = Release|Any CPU + {5F5F8ABA-516B-44EB-AA76-CAD866D8B894}.Release|x64.Build.0 = Release|Any CPU + {5F5F8ABA-516B-44EB-AA76-CAD866D8B894}.Release|x86.ActiveCfg = Release|Any CPU + {5F5F8ABA-516B-44EB-AA76-CAD866D8B894}.Release|x86.Build.0 = Release|Any CPU + {FC2B17BA-694B-4D43-A5B7-A0CC4F5BC280}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FC2B17BA-694B-4D43-A5B7-A0CC4F5BC280}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FC2B17BA-694B-4D43-A5B7-A0CC4F5BC280}.Debug|x64.ActiveCfg = Debug|Any CPU + {FC2B17BA-694B-4D43-A5B7-A0CC4F5BC280}.Debug|x64.Build.0 = Debug|Any CPU + {FC2B17BA-694B-4D43-A5B7-A0CC4F5BC280}.Debug|x86.ActiveCfg = Debug|Any CPU + {FC2B17BA-694B-4D43-A5B7-A0CC4F5BC280}.Debug|x86.Build.0 = Debug|Any CPU + {FC2B17BA-694B-4D43-A5B7-A0CC4F5BC280}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FC2B17BA-694B-4D43-A5B7-A0CC4F5BC280}.Release|Any CPU.Build.0 = Release|Any CPU + {FC2B17BA-694B-4D43-A5B7-A0CC4F5BC280}.Release|x64.ActiveCfg = Release|Any CPU + {FC2B17BA-694B-4D43-A5B7-A0CC4F5BC280}.Release|x64.Build.0 = Release|Any CPU + {FC2B17BA-694B-4D43-A5B7-A0CC4F5BC280}.Release|x86.ActiveCfg = Release|Any CPU + {FC2B17BA-694B-4D43-A5B7-A0CC4F5BC280}.Release|x86.Build.0 = Release|Any CPU + {7848C00C-E4C4-470D-8FAE-FE959ABD701F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7848C00C-E4C4-470D-8FAE-FE959ABD701F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7848C00C-E4C4-470D-8FAE-FE959ABD701F}.Debug|x64.ActiveCfg = Debug|Any CPU + {7848C00C-E4C4-470D-8FAE-FE959ABD701F}.Debug|x64.Build.0 = Debug|Any CPU + {7848C00C-E4C4-470D-8FAE-FE959ABD701F}.Debug|x86.ActiveCfg = Debug|Any CPU + {7848C00C-E4C4-470D-8FAE-FE959ABD701F}.Debug|x86.Build.0 = Debug|Any CPU + {7848C00C-E4C4-470D-8FAE-FE959ABD701F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7848C00C-E4C4-470D-8FAE-FE959ABD701F}.Release|Any CPU.Build.0 = Release|Any CPU + {7848C00C-E4C4-470D-8FAE-FE959ABD701F}.Release|x64.ActiveCfg = Release|Any CPU + {7848C00C-E4C4-470D-8FAE-FE959ABD701F}.Release|x64.Build.0 = Release|Any CPU + {7848C00C-E4C4-470D-8FAE-FE959ABD701F}.Release|x86.ActiveCfg = Release|Any CPU + {7848C00C-E4C4-470D-8FAE-FE959ABD701F}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE From ed95e797e42c3a07cc29d3b4393baad1b5d63635 Mon Sep 17 00:00:00 2001 From: Darrell Tunnell Date: Wed, 15 Nov 2017 17:41:09 +0000 Subject: [PATCH 32/86] Added default services. --- src/Dotnettency.Sample/Startup.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Dotnettency.Sample/Startup.cs b/src/Dotnettency.Sample/Startup.cs index 1e81759..44d4019 100644 --- a/src/Dotnettency.Sample/Startup.cs +++ b/src/Dotnettency.Sample/Startup.cs @@ -34,6 +34,7 @@ public IServiceProvider ConfigureServices(IServiceCollection services) var serviceProvider = services.AddMultiTenancy((options) => { options + .AddDefaultHttpServices() .InitialiseTenant() // factory class to load tenant when it needs to be initialised for the first time. Can use overload to provide a delegate instead. .ConfigureTenantContainers((containerBuilder) => { From d7223f6beb58a479016021cff28737c537672953 Mon Sep 17 00:00:00 2001 From: Darrell Tunnell Date: Wed, 15 Nov 2017 17:59:00 +0000 Subject: [PATCH 33/86] Fixed a few issues in samples after refactoring. --- ...daptedContainerBuilderOptionsExtensions.cs | 2 +- .../Dotnettency.AspNetCore.Modules.csproj | 3 +- src/Dotnettency.Sample/Startup.cs | 5 ++-- src/Sample.Mvc/Startup.cs | 8 ++++-- src/src.sln | 28 +++++++++---------- 5 files changed, 24 insertions(+), 22 deletions(-) diff --git a/src/Dotnettency.AspNetCore.Container/AdaptedContainerBuilderOptionsExtensions.cs b/src/Dotnettency.AspNetCore.Container/AdaptedContainerBuilderOptionsExtensions.cs index 5625cbf..f46ccd8 100644 --- a/src/Dotnettency.AspNetCore.Container/AdaptedContainerBuilderOptionsExtensions.cs +++ b/src/Dotnettency.AspNetCore.Container/AdaptedContainerBuilderOptionsExtensions.cs @@ -6,7 +6,7 @@ namespace Dotnettency { public static class AdaptedContainerBuilderOptionsExtensions { - public static AdaptedContainerBuilderOptions AddPerRequestContainerServices(this AdaptedContainerBuilderOptions options) + public static AdaptedContainerBuilderOptions AddPerRequestContainerMiddlewareServices(this AdaptedContainerBuilderOptions options) where TTenant : class { options.ContainerBuilderOptions.Builder.Services.AddScoped, TenantRequestContainerAccessor>(); diff --git a/src/Dotnettency.AspNetCore.Modules/Dotnettency.AspNetCore.Modules.csproj b/src/Dotnettency.AspNetCore.Modules/Dotnettency.AspNetCore.Modules.csproj index 16b643d..03428c9 100644 --- a/src/Dotnettency.AspNetCore.Modules/Dotnettency.AspNetCore.Modules.csproj +++ b/src/Dotnettency.AspNetCore.Modules/Dotnettency.AspNetCore.Modules.csproj @@ -13,8 +13,7 @@ - - + diff --git a/src/Dotnettency.Sample/Startup.cs b/src/Dotnettency.Sample/Startup.cs index 44d4019..cbbee06 100644 --- a/src/Dotnettency.Sample/Startup.cs +++ b/src/Dotnettency.Sample/Startup.cs @@ -62,7 +62,8 @@ public IServiceProvider ConfigureServices(IServiceCollection services) }); - }); + }) + .AddPerRequestContainerMiddlewareServices(); // .WithModuleContainers(); // Creates a child container per IModule. }) @@ -78,7 +79,7 @@ public IServiceProvider ConfigureServices(IServiceCollection services) // welcome page only enabled for tenant FOO. if (context.Tenant?.Name == "Foo") - { + { appBuilder.UseWelcomePage("/welcome"); } // diff --git a/src/Sample.Mvc/Startup.cs b/src/Sample.Mvc/Startup.cs index fbe8bb9..5fb466e 100644 --- a/src/Sample.Mvc/Startup.cs +++ b/src/Sample.Mvc/Startup.cs @@ -24,7 +24,8 @@ public IServiceProvider ConfigureServices(IServiceCollection services) var serviceProvider = services.AddMultiTenancy((options) => { - options + options + .AddDefaultHttpServices() .InitialiseTenant() // factory class to load tenant when it needs to be initialised for the first time. Can use overload to provide a delegate instead. .ConfigureTenantMiddleware((middlewareOptions) => { @@ -46,7 +47,8 @@ public IServiceProvider ConfigureServices(IServiceCollection services) containerBuilder.WithStructureMap((tenant, tenantServices) => { // tenantServices.AddSingleton(); - }); + }) + .AddPerRequestContainerMiddlewareServices(); // becuase we use per-request tenant container middleware. }) // configure per tenant hosting environment. .ConfigurePerTenantHostingEnvironment(_environment, (tenantHostingEnvironmentOptions) => @@ -104,7 +106,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF template: "{controller=Home}/{action=Index}/{id?}"); }); - // app.UseMvc(); + // app.UseMvc(); } } } \ No newline at end of file diff --git a/src/src.sln b/src/src.sln index 42ee07f..f53c640 100644 --- a/src/src.sln +++ b/src/src.sln @@ -31,10 +31,10 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dotnettency.AspNetCore.Host EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dotnettency.AspNetCore.MiddlewarePipeline", "Dotnettency.AspNetCore.MiddlewarePipeline\Dotnettency.AspNetCore.MiddlewarePipeline.csproj", "{5F5F8ABA-516B-44EB-AA76-CAD866D8B894}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dotnettency.AspNetCore.Modules", "Dotnettency.AspNetCore.Modules\Dotnettency.AspNetCore.Modules.csproj", "{FC2B17BA-694B-4D43-A5B7-A0CC4F5BC280}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dotnettency.AspNetCore.Modules.Nancy", "Dotnettency.AspNetCore.Modules.Nancy\Dotnettency.AspNetCore.Modules.Nancy.csproj", "{7848C00C-E4C4-470D-8FAE-FE959ABD701F}" EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dotnettency.AspNetCore.Modules", "Dotnettency.AspNetCore.Modules\Dotnettency.AspNetCore.Modules.csproj", "{05195457-36B8-4D50-A1C8-9CA1FF8BC944}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -165,18 +165,6 @@ Global {5F5F8ABA-516B-44EB-AA76-CAD866D8B894}.Release|x64.Build.0 = Release|Any CPU {5F5F8ABA-516B-44EB-AA76-CAD866D8B894}.Release|x86.ActiveCfg = Release|Any CPU {5F5F8ABA-516B-44EB-AA76-CAD866D8B894}.Release|x86.Build.0 = Release|Any CPU - {FC2B17BA-694B-4D43-A5B7-A0CC4F5BC280}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {FC2B17BA-694B-4D43-A5B7-A0CC4F5BC280}.Debug|Any CPU.Build.0 = Debug|Any CPU - {FC2B17BA-694B-4D43-A5B7-A0CC4F5BC280}.Debug|x64.ActiveCfg = Debug|Any CPU - {FC2B17BA-694B-4D43-A5B7-A0CC4F5BC280}.Debug|x64.Build.0 = Debug|Any CPU - {FC2B17BA-694B-4D43-A5B7-A0CC4F5BC280}.Debug|x86.ActiveCfg = Debug|Any CPU - {FC2B17BA-694B-4D43-A5B7-A0CC4F5BC280}.Debug|x86.Build.0 = Debug|Any CPU - {FC2B17BA-694B-4D43-A5B7-A0CC4F5BC280}.Release|Any CPU.ActiveCfg = Release|Any CPU - {FC2B17BA-694B-4D43-A5B7-A0CC4F5BC280}.Release|Any CPU.Build.0 = Release|Any CPU - {FC2B17BA-694B-4D43-A5B7-A0CC4F5BC280}.Release|x64.ActiveCfg = Release|Any CPU - {FC2B17BA-694B-4D43-A5B7-A0CC4F5BC280}.Release|x64.Build.0 = Release|Any CPU - {FC2B17BA-694B-4D43-A5B7-A0CC4F5BC280}.Release|x86.ActiveCfg = Release|Any CPU - {FC2B17BA-694B-4D43-A5B7-A0CC4F5BC280}.Release|x86.Build.0 = Release|Any CPU {7848C00C-E4C4-470D-8FAE-FE959ABD701F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {7848C00C-E4C4-470D-8FAE-FE959ABD701F}.Debug|Any CPU.Build.0 = Debug|Any CPU {7848C00C-E4C4-470D-8FAE-FE959ABD701F}.Debug|x64.ActiveCfg = Debug|Any CPU @@ -189,6 +177,18 @@ Global {7848C00C-E4C4-470D-8FAE-FE959ABD701F}.Release|x64.Build.0 = Release|Any CPU {7848C00C-E4C4-470D-8FAE-FE959ABD701F}.Release|x86.ActiveCfg = Release|Any CPU {7848C00C-E4C4-470D-8FAE-FE959ABD701F}.Release|x86.Build.0 = Release|Any CPU + {05195457-36B8-4D50-A1C8-9CA1FF8BC944}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {05195457-36B8-4D50-A1C8-9CA1FF8BC944}.Debug|Any CPU.Build.0 = Debug|Any CPU + {05195457-36B8-4D50-A1C8-9CA1FF8BC944}.Debug|x64.ActiveCfg = Debug|Any CPU + {05195457-36B8-4D50-A1C8-9CA1FF8BC944}.Debug|x64.Build.0 = Debug|Any CPU + {05195457-36B8-4D50-A1C8-9CA1FF8BC944}.Debug|x86.ActiveCfg = Debug|Any CPU + {05195457-36B8-4D50-A1C8-9CA1FF8BC944}.Debug|x86.Build.0 = Debug|Any CPU + {05195457-36B8-4D50-A1C8-9CA1FF8BC944}.Release|Any CPU.ActiveCfg = Release|Any CPU + {05195457-36B8-4D50-A1C8-9CA1FF8BC944}.Release|Any CPU.Build.0 = Release|Any CPU + {05195457-36B8-4D50-A1C8-9CA1FF8BC944}.Release|x64.ActiveCfg = Release|Any CPU + {05195457-36B8-4D50-A1C8-9CA1FF8BC944}.Release|x64.Build.0 = Release|Any CPU + {05195457-36B8-4D50-A1C8-9CA1FF8BC944}.Release|x86.ActiveCfg = Release|Any CPU + {05195457-36B8-4D50-A1C8-9CA1FF8BC944}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE From c6a894ca1ed6ffd43d9064a06a4f750159f6f076 Mon Sep 17 00:00:00 2001 From: Darrell Tunnell Date: Wed, 15 Nov 2017 18:15:41 +0000 Subject: [PATCH 34/86] Added gitversion config yml --- src/GitVersion.yml | 10 ++++++++++ src/src.sln | 1 + 2 files changed, 11 insertions(+) create mode 100644 src/GitVersion.yml diff --git a/src/GitVersion.yml b/src/GitVersion.yml new file mode 100644 index 0000000..caba56a --- /dev/null +++ b/src/GitVersion.yml @@ -0,0 +1,10 @@ +branches: + feature: + regex: feature?[/-] + mode: ContinuousDelivery + tag: useBranchName + increment: Inherit + prevent-increment-of-merged-branch-version: false + track-merge-target: false + tracks-release-branches: false + is-release-branch: false \ No newline at end of file diff --git a/src/src.sln b/src/src.sln index f53c640..b28a8c7 100644 --- a/src/src.sln +++ b/src/src.sln @@ -14,6 +14,7 @@ EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{4FB5543E-ED1F-4B32-A770-2675A16E508F}" ProjectSection(SolutionItems) = preProject ..\appveyor.yml = ..\appveyor.yml + GitVersion.yml = GitVersion.yml ..\LICENSE = ..\LICENSE NuGet.config = NuGet.config ..\README.md = ..\README.md From bca2f29463b3d875e543fae87d6120032cadb57f Mon Sep 17 00:00:00 2001 From: Darrell Tunnell Date: Wed, 15 Nov 2017 18:21:16 +0000 Subject: [PATCH 35/86] Moved gitversion.yml --- src/GitVersion.yml => GitVersion.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename src/GitVersion.yml => GitVersion.yml (100%) diff --git a/src/GitVersion.yml b/GitVersion.yml similarity index 100% rename from src/GitVersion.yml rename to GitVersion.yml From 761c96dec3d655916fd0653093e019a22bfe17b0 Mon Sep 17 00:00:00 2001 From: Darrell Tunnell Date: Thu, 16 Nov 2017 14:30:29 +0000 Subject: [PATCH 36/86] Removed regex from gitversion yml --- GitVersion.yml | 3 +-- src/src.sln | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/GitVersion.yml b/GitVersion.yml index caba56a..6890472 100644 --- a/GitVersion.yml +++ b/GitVersion.yml @@ -1,6 +1,5 @@ branches: - feature: - regex: feature?[/-] + feature: mode: ContinuousDelivery tag: useBranchName increment: Inherit diff --git a/src/src.sln b/src/src.sln index b28a8c7..cb3e316 100644 --- a/src/src.sln +++ b/src/src.sln @@ -14,7 +14,7 @@ EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{4FB5543E-ED1F-4B32-A770-2675A16E508F}" ProjectSection(SolutionItems) = preProject ..\appveyor.yml = ..\appveyor.yml - GitVersion.yml = GitVersion.yml + ..\GitVersion.yml = ..\GitVersion.yml ..\LICENSE = ..\LICENSE NuGet.config = NuGet.config ..\README.md = ..\README.md @@ -26,7 +26,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dotnettency.AspNetCore", "D EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dotnettency.AspNetCore.Container", "Dotnettency.AspNetCore.Container\Dotnettency.AspNetCore.Container.csproj", "{A0540A48-8F67-4A52-9B54-7801C22F5679}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dotnettency.TenantFileSystem", "Dotnettency.TenantFileSystem\Dotnettency.TenantFileSystem.csproj", "{AF9243F7-FE10-45EF-B936-FD790585304A}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dotnettency.TenantFileSystem", "Dotnettency.TenantFileSystem\Dotnettency.TenantFileSystem.csproj", "{AF9243F7-FE10-45EF-B936-FD790585304A}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dotnettency.AspNetCore.HostingEnvironment", "Dotnettency.AspNetCore.HostingEnvironment\Dotnettency.AspNetCore.HostingEnvironment.csproj", "{7CB875C0-91D8-48E2-99EE-5D4C479E2AE6}" EndProject From 147054614742eef3119214f590405bd55f8fd906 Mon Sep 17 00:00:00 2001 From: Darrell Tunnell Date: Thu, 16 Nov 2017 14:38:04 +0000 Subject: [PATCH 37/86] Fixes to gitversion.yml --- GitVersion.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/GitVersion.yml b/GitVersion.yml index 6890472..d82ec73 100644 --- a/GitVersion.yml +++ b/GitVersion.yml @@ -4,6 +4,4 @@ branches: tag: useBranchName increment: Inherit prevent-increment-of-merged-branch-version: false - track-merge-target: false - tracks-release-branches: false - is-release-branch: false \ No newline at end of file + track-merge-target: false \ No newline at end of file From 6af2b101664b2e259a0c55898850f8c9e9e357fc Mon Sep 17 00:00:00 2001 From: Darrell Tunnell Date: Thu, 16 Nov 2017 16:31:43 +0000 Subject: [PATCH 38/86] another attempt at gitversion branch configuration --- GitVersion.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GitVersion.yml b/GitVersion.yml index d82ec73..ad7aaf9 100644 --- a/GitVersion.yml +++ b/GitVersion.yml @@ -1,5 +1,5 @@ branches: - feature: + (feature)?[/-]:: mode: ContinuousDelivery tag: useBranchName increment: Inherit From b2cbc73a7f027389067ff8283b5b8411a25d86c1 Mon Sep 17 00:00:00 2001 From: Darrell Tunnell Date: Thu, 16 Nov 2017 16:43:29 +0000 Subject: [PATCH 39/86] Attempt to switch build to full semver. --- GitVersion.yml | 1 + appveyor.yml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/GitVersion.yml b/GitVersion.yml index ad7aaf9..a8791c6 100644 --- a/GitVersion.yml +++ b/GitVersion.yml @@ -1,3 +1,4 @@ +next-version: 0.3.0 branches: (feature)?[/-]:: mode: ContinuousDelivery diff --git a/appveyor.yml b/appveyor.yml index e4d5d4d..574ae75 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -10,13 +10,13 @@ assembly_info: patch: false before_build: - ps: gitversion /l console /output buildserver -- cmd: msbuild %path_to_sln% /t:restore /p:PackageVersion=%GitVersion_NuGetVersion% +- cmd: msbuild %path_to_sln% /t:restore /p:PackageVersion=%GitVersion_FullSemVer% build: project: '%path_to_sln%' verbosity: minimal after_build: - cmd: gitlink . -u https://github.com/%APPVEYOR_REPO_NAME% -b %APPVEYOR_REPO_BRANCH% -s %APPVEYOR_REPO_COMMIT% -f %path_to_sln% -- cmd: msbuild %path_to_sln% /t:Pack /p:PackageVersion=%GitVersion_NuGetVersion% +- cmd: msbuild %path_to_sln% /t:Pack /p:PackageVersion=%GitVersion_FullSemVer% artifacts: - path: /src/**/*.nupkg deploy: From 010df785f9faa8ff37cbd7988168573e80135ae4 Mon Sep 17 00:00:00 2001 From: Darrell Tunnell Date: Thu, 16 Nov 2017 17:13:35 +0000 Subject: [PATCH 40/86] +semver: breaking - amended gitversion config --- GitVersion.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/GitVersion.yml b/GitVersion.yml index a8791c6..d25365f 100644 --- a/GitVersion.yml +++ b/GitVersion.yml @@ -1,8 +1,11 @@ -next-version: 0.3.0 +major-version-bump-message: '\+semver:\s?(breaking|major)' +minor-version-bump-message: '\+semver:\s?(feature|minor)' +patch-version-bump-message: '\+semver:\s?(fix|patch)' +commit-message-incrementing: Enabled branches: - (feature)?[/-]:: - mode: ContinuousDelivery - tag: useBranchName - increment: Inherit - prevent-increment-of-merged-branch-version: false - track-merge-target: false \ No newline at end of file + features?[/-]: + mode: ContinuousDelivery + tag: useBranchName + increment: Inherit + prevent-increment-of-merged-branch-version: false + track-merge-target: false \ No newline at end of file From 18da5475e2256b80137cc3527f1a71163c4c71ba Mon Sep 17 00:00:00 2001 From: Darrell Tunnell Date: Thu, 16 Nov 2017 17:21:43 +0000 Subject: [PATCH 41/86] Correction to gitversion yml --- GitVersion.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/GitVersion.yml b/GitVersion.yml index d25365f..9506d4c 100644 --- a/GitVersion.yml +++ b/GitVersion.yml @@ -4,8 +4,8 @@ patch-version-bump-message: '\+semver:\s?(fix|patch)' commit-message-incrementing: Enabled branches: features?[/-]: - mode: ContinuousDelivery - tag: useBranchName - increment: Inherit - prevent-increment-of-merged-branch-version: false - track-merge-target: false \ No newline at end of file + mode: ContinuousDelivery + tag: useBranchName + increment: Inherit + prevent-increment-of-merged-branch-version: false + track-merge-target: false \ No newline at end of file From 66a9f67597cbc0a1df2f67fe3a95790b70c010ad Mon Sep 17 00:00:00 2001 From: Darrell Tunnell Date: Mon, 20 Nov 2017 17:29:23 +0000 Subject: [PATCH 42/86] Tenant Container Events. Closes #28 --- .../TenantRequestContainerAccessor.cs | 6 ++- .../ModuleRegisterBuilder.cs | 3 ++ ...ureMapContainerBuilderOptionsExtensions.cs | 8 ++-- .../ContainerBuilderOptions.cs | 37 ++++++++++++++++++- .../ITenantContainerEvents.cs | 12 ++++++ .../ITenantContainerEventsPublisher.cs | 14 +++++++ .../TenantContainerBuilder.cs | 9 ++++- .../TenantContainerEventsOptions.cs | 36 ++++++++++++++++++ .../TenantContainerEventsPublisher.cs | 33 +++++++++++++++++ src/Dotnettency.Sample/Startup.cs | 21 +++++++++-- 10 files changed, 170 insertions(+), 9 deletions(-) create mode 100644 src/Dotnettency.Container/ITenantContainerEvents.cs create mode 100644 src/Dotnettency.Container/ITenantContainerEventsPublisher.cs create mode 100644 src/Dotnettency.Container/TenantContainerEventsOptions.cs create mode 100644 src/Dotnettency.Container/TenantContainerEventsPublisher.cs diff --git a/src/Dotnettency.AspNetCore.Container/TenantRequestContainerAccessor.cs b/src/Dotnettency.AspNetCore.Container/TenantRequestContainerAccessor.cs index 93609d6..f1bb2bd 100644 --- a/src/Dotnettency.AspNetCore.Container/TenantRequestContainerAccessor.cs +++ b/src/Dotnettency.AspNetCore.Container/TenantRequestContainerAccessor.cs @@ -10,13 +10,16 @@ public class TenantRequestContainerAccessor : ITenantRequestContainerAc { private readonly ITenantContainerAccessor _tenantContainerAccessor; private readonly ILogger> _logger; + private readonly ITenantContainerEventsPublisher _containerEventsPublisher; public TenantRequestContainerAccessor( ILogger> logger, - ITenantContainerAccessor tenantContainerAccessor) + ITenantContainerAccessor tenantContainerAccessor, + ITenantContainerEventsPublisher containerEventsPublisher) { _logger = logger; _tenantContainerAccessor = tenantContainerAccessor; + _containerEventsPublisher = containerEventsPublisher; TenantRequestContainer = new Lazy>(async () => { @@ -27,6 +30,7 @@ public TenantRequestContainerAccessor( } var requestContainer = tenantContainer.CreateNestedContainer(); + _containerEventsPublisher?.PublishNestedTenantContainerCreated(requestContainer); return new PerRequestContainer(requestContainer); }); } diff --git a/src/Dotnettency.AspNetCore.Modules/ModuleRegisterBuilder.cs b/src/Dotnettency.AspNetCore.Modules/ModuleRegisterBuilder.cs index 06acea2..e204714 100644 --- a/src/Dotnettency.AspNetCore.Modules/ModuleRegisterBuilder.cs +++ b/src/Dotnettency.AspNetCore.Modules/ModuleRegisterBuilder.cs @@ -85,6 +85,9 @@ public void OnSetupModule(Action> configureMo var allModules = sp.GetServices(); var moduleManager = new ModuleManager(modulesRouter); + // todo consider notifying subscribers when new module container is created. + // var containerEventsPublisher = sp.GetServices>(); + foreach (var item in allModules) { var moduleOptionsBuilder = new ModuleShellOptionsBuilder(item); diff --git a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapContainerBuilderOptionsExtensions.cs b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapContainerBuilderOptionsExtensions.cs index 3db6574..9b14d3b 100644 --- a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapContainerBuilderOptionsExtensions.cs +++ b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapContainerBuilderOptionsExtensions.cs @@ -17,19 +17,21 @@ public static AdaptedContainerBuilderOptions WithStructureMap( var container = new StructureMap.Container(); container.Populate(options.Builder.Services); var adaptedContainer = container.GetInstance(); + + var containerEventsPublisher = container.TryGetInstance>(); // add ITenantContainerBuilder service to the host container // This service can be used to build a child container (adaptor) for a particular tenant, when required. container.Configure(_ => _.For>() - .Use(new TenantContainerBuilder(adaptedContainer, configureTenant)) + .Use(new TenantContainerBuilder(adaptedContainer, configureTenant, containerEventsPublisher)) ); - var adaptor = container.GetInstance(); + var adaptor = container.GetInstance(); return adaptor; }); var adapted = new AdaptedContainerBuilderOptions(options, adaptorFactory); - + return adapted; } } diff --git a/src/Dotnettency.Container/ContainerBuilderOptions.cs b/src/Dotnettency.Container/ContainerBuilderOptions.cs index b7b09c2..29ade7b 100644 --- a/src/Dotnettency.Container/ContainerBuilderOptions.cs +++ b/src/Dotnettency.Container/ContainerBuilderOptions.cs @@ -1,18 +1,53 @@ using Microsoft.Extensions.DependencyInjection; +using System; namespace Dotnettency.Container { public class ContainerBuilderOptions where TTenant : class { + public ContainerBuilderOptions(MultitenancyOptionsBuilder builder) { Builder = builder; + ContainerEventsOptions = new TenantContainerEventsOptions(this); + builder.Services.AddSingleton, TenantContainerBuilderFactory>(); builder.Services.AddScoped, TenantContainerAccessor>(); - // builder.Services.AddScoped, TenantRequestContainerAccessor>(); + + builder.Services.AddSingleton>((sp) => + { + var tenantAccessor = sp.GetRequiredService>(); + var events = new TenantContainerEventsPublisher(tenantAccessor); + + var containerEventsOptions = this.ContainerEventsOptions; + foreach (var item in containerEventsOptions.TenantContainerCreatedCallbacks) + { + events.TenantContainerCreated += item; + } + + foreach (var item in containerEventsOptions.NestedTenantContainerCreatedCallbacks) + { + events.NestedTenantContainerCreated += item; + } + return events; + }); + builder.Services.AddSingleton>((sp) => + { + return sp.GetRequiredService>(); + }); + } public MultitenancyOptionsBuilder Builder { get; set; } + + public TenantContainerEventsOptions ContainerEventsOptions { get; set; } + + public ContainerBuilderOptions Events(Action> containerLifecycleOptions) + { + containerLifecycleOptions?.Invoke(ContainerEventsOptions); + return this; + } + } } diff --git a/src/Dotnettency.Container/ITenantContainerEvents.cs b/src/Dotnettency.Container/ITenantContainerEvents.cs new file mode 100644 index 0000000..73768d4 --- /dev/null +++ b/src/Dotnettency.Container/ITenantContainerEvents.cs @@ -0,0 +1,12 @@ +using System; +using System.Threading.Tasks; + +namespace Dotnettency.Container +{ + public interface ITenantContainerEvents + where TTenant : class + { + event Action, IServiceProvider> TenantContainerCreated; + event Action, IServiceProvider> NestedTenantContainerCreated; + } +} \ No newline at end of file diff --git a/src/Dotnettency.Container/ITenantContainerEventsPublisher.cs b/src/Dotnettency.Container/ITenantContainerEventsPublisher.cs new file mode 100644 index 0000000..5b11ea2 --- /dev/null +++ b/src/Dotnettency.Container/ITenantContainerEventsPublisher.cs @@ -0,0 +1,14 @@ +using System; + +namespace Dotnettency.Container +{ + public interface ITenantContainerEventsPublisher : ITenantContainerEvents + where TTenantOrModule : class + { + + void PublishTenantContainerCreated(IServiceProvider serviceProvider); + + void PublishNestedTenantContainerCreated(IServiceProvider serviceProvider); + + } +} \ No newline at end of file diff --git a/src/Dotnettency.Container/TenantContainerBuilder.cs b/src/Dotnettency.Container/TenantContainerBuilder.cs index d1a3af5..96e9517 100644 --- a/src/Dotnettency.Container/TenantContainerBuilder.cs +++ b/src/Dotnettency.Container/TenantContainerBuilder.cs @@ -5,14 +5,19 @@ namespace Dotnettency.Container { public class TenantContainerBuilder : ITenantContainerBuilder + where TTenant : class { private readonly ITenantContainerAdaptor _parentContainer; private readonly Action _configureTenant; + private readonly ITenantContainerEventsPublisher _containerEventsPublisher; - public TenantContainerBuilder(ITenantContainerAdaptor parentContainer, Action configureTenant) + public TenantContainerBuilder(ITenantContainerAdaptor parentContainer, + Action configureTenant, + ITenantContainerEventsPublisher containerEventsPublisher) { _parentContainer = parentContainer; _configureTenant = configureTenant; + _containerEventsPublisher = containerEventsPublisher; } public Task BuildAsync(TTenant tenant) @@ -24,6 +29,8 @@ public Task BuildAsync(TTenant tenant) _configureTenant(tenant, config); }); + _containerEventsPublisher?.PublishTenantContainerCreated(tenantContainer); + return Task.FromResult(tenantContainer); } } diff --git a/src/Dotnettency.Container/TenantContainerEventsOptions.cs b/src/Dotnettency.Container/TenantContainerEventsOptions.cs new file mode 100644 index 0000000..6811f2c --- /dev/null +++ b/src/Dotnettency.Container/TenantContainerEventsOptions.cs @@ -0,0 +1,36 @@ +using System; +using System.Collections.Generic; +using System.Threading.Tasks; + +namespace Dotnettency.Container +{ + public class TenantContainerEventsOptions + where TTenant : class + { + + public TenantContainerEventsOptions(ContainerBuilderOptions parentOptions) + { + ParentOptions = parentOptions; + TenantContainerCreatedCallbacks = new List, IServiceProvider>>(); + NestedTenantContainerCreatedCallbacks = new List, IServiceProvider>>(); + } + + public ContainerBuilderOptions ParentOptions { get; set; } + + public List, IServiceProvider>> TenantContainerCreatedCallbacks { get; set; } + public List, IServiceProvider>> NestedTenantContainerCreatedCallbacks { get; set; } + + public TenantContainerEventsOptions OnTenantContainerCreated(Action, IServiceProvider> callback) + { + TenantContainerCreatedCallbacks.Add(callback); + return this; + } + + public TenantContainerEventsOptions OnNestedTenantContainerCreated(Action, IServiceProvider> callback) + { + NestedTenantContainerCreatedCallbacks.Add(callback); + return this; + } + + } +} \ No newline at end of file diff --git a/src/Dotnettency.Container/TenantContainerEventsPublisher.cs b/src/Dotnettency.Container/TenantContainerEventsPublisher.cs new file mode 100644 index 0000000..7b9df99 --- /dev/null +++ b/src/Dotnettency.Container/TenantContainerEventsPublisher.cs @@ -0,0 +1,33 @@ +using System; +using System.Threading.Tasks; + +namespace Dotnettency.Container +{ + public class TenantContainerEventsPublisher : ITenantContainerEventsPublisher + where TTenant : class + { + + public event Action, IServiceProvider> TenantContainerCreated; + + public event Action, IServiceProvider> NestedTenantContainerCreated; + + private readonly ITenantAccessor _tenantAccessor; + + public TenantContainerEventsPublisher(ITenantAccessor tenantAccessor) + { + _tenantAccessor = tenantAccessor; + } + + public void PublishNestedTenantContainerCreated(IServiceProvider serviceProvider) + { + var tenant = _tenantAccessor.CurrentTenant?.Value; + NestedTenantContainerCreated?.Invoke(tenant, serviceProvider); + } + + public void PublishTenantContainerCreated(IServiceProvider serviceProvider) + { + var tenant = _tenantAccessor.CurrentTenant?.Value; + TenantContainerCreated?.Invoke(tenant, serviceProvider); + } + } +} \ No newline at end of file diff --git a/src/Dotnettency.Sample/Startup.cs b/src/Dotnettency.Sample/Startup.cs index cbbee06..7e0df3b 100644 --- a/src/Dotnettency.Sample/Startup.cs +++ b/src/Dotnettency.Sample/Startup.cs @@ -40,7 +40,22 @@ public IServiceProvider ConfigureServices(IServiceCollection services) { // Extension methods available here for supported containers. We are using structuremap.. // We are using an overload that allows us to configure structuremap with familiar IServiceCollection. - containerBuilder.WithStructureMap((tenant, tenantServices) => + containerBuilder.Events((events) => + { + // callback invoked after tenant container is created. + events.OnTenantContainerCreated(async (tenantResolver, tenantServiceProvider) => + { + var tenant = await tenantResolver; + + }) + // callback invoked after a nested container is created for a tenant. i.e typically during a request. + .OnNestedTenantContainerCreated(async (tenantResolver, tenantServiceProvider) => + { + var tenant = await tenantResolver; + + }); + }) + .WithStructureMap((tenant, tenantServices) => { tenantServices.AddSingleton((sp) => { @@ -62,8 +77,8 @@ public IServiceProvider ConfigureServices(IServiceCollection services) }); - }) - .AddPerRequestContainerMiddlewareServices(); + }) + .AddPerRequestContainerMiddlewareServices(); // .WithModuleContainers(); // Creates a child container per IModule. }) From e671009d06665c407c3311272253bef1ee8333e9 Mon Sep 17 00:00:00 2001 From: Darrell Tunnell Date: Wed, 3 Jan 2018 12:34:54 +0000 Subject: [PATCH 43/86] wip on routing --- .../NancyImpl/NancyHandler.cs | 4 +-- .../Dotnettency.AspNetCore.csproj | 1 + .../WIP/MultiTenancyRouteBuilder.cs | 32 +++++++++++++++++ .../WIP/RouteBuilderExtensions.cs | 12 +++++++ .../WIP/TenantRouter.cs | 35 +++++++++++++++++++ src/Dotnettency.Sample/Startup.cs | 10 +++--- .../TenantShell/TenantShellResolver.cs | 3 +- 7 files changed, 88 insertions(+), 9 deletions(-) create mode 100644 src/Dotnettency.AspNetCore/WIP/MultiTenancyRouteBuilder.cs create mode 100644 src/Dotnettency.AspNetCore/WIP/RouteBuilderExtensions.cs create mode 100644 src/Dotnettency.AspNetCore/WIP/TenantRouter.cs diff --git a/src/Dotnettency.AspNetCore.Modules.Nancy/NancyImpl/NancyHandler.cs b/src/Dotnettency.AspNetCore.Modules.Nancy/NancyImpl/NancyHandler.cs index a93437c..ce88fef 100644 --- a/src/Dotnettency.AspNetCore.Modules.Nancy/NancyImpl/NancyHandler.cs +++ b/src/Dotnettency.AspNetCore.Modules.Nancy/NancyImpl/NancyHandler.cs @@ -151,8 +151,8 @@ private static long GetExpectedRequestLength(IDictionary + diff --git a/src/Dotnettency.AspNetCore/WIP/MultiTenancyRouteBuilder.cs b/src/Dotnettency.AspNetCore/WIP/MultiTenancyRouteBuilder.cs new file mode 100644 index 0000000..3335350 --- /dev/null +++ b/src/Dotnettency.AspNetCore/WIP/MultiTenancyRouteBuilder.cs @@ -0,0 +1,32 @@ +using System; +using System.Collections.Generic; +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Routing; + +namespace Sample +{ + public class MultiTenancyRouteBuilder : IRouteBuilder + { + public MultiTenancyRouteBuilder(IApplicationBuilder builder, IServiceProvider serviceProvider) + { + ApplicationBuilder = builder; + ServiceProvider = serviceProvider; + DefaultHandler = null; + Routes = new List(); + } + + public IApplicationBuilder ApplicationBuilder { get; set; } + + public IRouter DefaultHandler { get; set; } + + public IServiceProvider ServiceProvider { get; set; } + + public IList Routes { get; set; } + + public IRouter Build() + { + //return new ContainerRouter() + throw new NotImplementedException(); + } + } +} diff --git a/src/Dotnettency.AspNetCore/WIP/RouteBuilderExtensions.cs b/src/Dotnettency.AspNetCore/WIP/RouteBuilderExtensions.cs new file mode 100644 index 0000000..6e79b15 --- /dev/null +++ b/src/Dotnettency.AspNetCore/WIP/RouteBuilderExtensions.cs @@ -0,0 +1,12 @@ +using Microsoft.AspNetCore.Routing; + +namespace Sample +{ + public static class RouteBuilderExtensions + { + public static void MapTenant(this IRouteBuilder routeBuilder, string name, ITenantDistinguisherFactory tenantDistinguisher) + { + routeBuilder.Routes.Add(new TenantRouter(name)); + } + } +} diff --git a/src/Dotnettency.AspNetCore/WIP/TenantRouter.cs b/src/Dotnettency.AspNetCore/WIP/TenantRouter.cs new file mode 100644 index 0000000..67fd15a --- /dev/null +++ b/src/Dotnettency.AspNetCore/WIP/TenantRouter.cs @@ -0,0 +1,35 @@ +using System.Threading.Tasks; +using Dotnettency; +using Microsoft.AspNetCore.Routing; + +namespace Sample +{ + public class TenantContainerRouter : INamedRouter + where TTenant : class + { + private readonly ITenantDistinguisherFactory _tenantDistinguisherFactory; + + public TenantContainerRouter(string name, ITenantDistinguisherFactory tenantDistinguisherFactory) + { + Name = name; + _tenantDistinguisherFactory = tenantDistinguisherFactory; + } + + public string Name { get; set; } + + public VirtualPathData GetVirtualPath(VirtualPathContext context) + { + throw new System.NotImplementedException(); + // return new VirtualPathData(this,"") + } + + public Task RouteAsync(RouteContext context) + { + + // context.han + + var tenantDistinguisher = _tenantDistinguisherFactory.IdentifyContext(); + throw new System.NotImplementedException(); + } + } +} diff --git a/src/Dotnettency.Sample/Startup.cs b/src/Dotnettency.Sample/Startup.cs index 7e0df3b..0b1c943 100644 --- a/src/Dotnettency.Sample/Startup.cs +++ b/src/Dotnettency.Sample/Startup.cs @@ -37,9 +37,7 @@ public IServiceProvider ConfigureServices(IServiceCollection services) .AddDefaultHttpServices() .InitialiseTenant() // factory class to load tenant when it needs to be initialised for the first time. Can use overload to provide a delegate instead. .ConfigureTenantContainers((containerBuilder) => - { - // Extension methods available here for supported containers. We are using structuremap.. - // We are using an overload that allows us to configure structuremap with familiar IServiceCollection. + { containerBuilder.Events((events) => { // callback invoked after tenant container is created. @@ -54,7 +52,9 @@ public IServiceProvider ConfigureServices(IServiceCollection services) var tenant = await tenantResolver; }); - }) + }) + // Extension methods available here for supported containers. We are using structuremap.. + // We are using an overload that allows us to configure structuremap with familiar IServiceCollection. .WithStructureMap((tenant, tenantServices) => { tenantServices.AddSingleton((sp) => @@ -184,7 +184,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF string tenantShellId = tenantShell == null ? "{NULL TENANT SHELL}" : tenantShell.Id.ToString(); string tenantName = tenant == null ? "{NULL TENANT}" : tenant.Name; - string injectedTenantName = someTenantService?.TenantName == null ? "{NULL SERVICE}" : someTenantService?.TenantName; + string injectedTenantName = someTenantService?.TenantName ?? "{NULL SERVICE}"; // Accessing a content file. string fileContent = someTenantService?.GetContentFile("/Info.txt"); diff --git a/src/Dotnettency/TenantShell/TenantShellResolver.cs b/src/Dotnettency/TenantShell/TenantShellResolver.cs index aa47c15..63dfc69 100644 --- a/src/Dotnettency/TenantShell/TenantShellResolver.cs +++ b/src/Dotnettency/TenantShell/TenantShellResolver.cs @@ -16,8 +16,7 @@ public TenantShellResolver(ITenantShellCache tenantShellCache) public async Task> ResolveTenant(TenantDistinguisher identifier, ITenantShellFactory tenantFactory) { - TenantShell result; - if (_cache.TryGetValue(identifier, out result)) + if (_cache.TryGetValue(identifier, out TenantShell result)) { return result; } From 7c4141389744d01cd5d20da157578d831f19e42a Mon Sep 17 00:00:00 2001 From: Darrell Tunnell Date: Wed, 3 Jan 2018 18:03:43 +0000 Subject: [PATCH 44/86] Basic routing implementation working. --- .../PerRequestContainer.cs | 27 ++-- .../RouteBuilderExtensions.cs | 18 +++ .../TenantContainerRouter.cs | 112 +++++++++++++++ ...DelegateTenantMiddlewarePipelineFactory.cs | 12 +- .../ITenantMiddlewarePipelineFactory.cs | 3 +- .../ITenantPipelineAccessor.cs | 2 +- .../RouteBuilderExtensions.cs | 17 +++ .../TenantMiddlewarePipelineRouter.cs | 65 +++++++++ .../TenantPipelineAccessor.cs | 6 +- .../TenantPipelineMiddleware.cs | 2 +- .../WIP/MultiTenancyRouteBuilder.cs | 32 ----- .../WIP/RouteBuilderExtensions.cs | 12 -- .../WIP/TenantRouter.cs | 35 ----- src/Dotnettency.Sample/Startup.cs | 130 +++++++++++------- 14 files changed, 320 insertions(+), 153 deletions(-) create mode 100644 src/Dotnettency.AspNetCore.Container/RouteBuilderExtensions.cs create mode 100644 src/Dotnettency.AspNetCore.Container/TenantContainerRouter.cs create mode 100644 src/Dotnettency.AspNetCore.MiddlewarePipeline/RouteBuilderExtensions.cs create mode 100644 src/Dotnettency.AspNetCore.MiddlewarePipeline/TenantMiddlewarePipelineRouter.cs delete mode 100644 src/Dotnettency.AspNetCore/WIP/MultiTenancyRouteBuilder.cs delete mode 100644 src/Dotnettency.AspNetCore/WIP/RouteBuilderExtensions.cs delete mode 100644 src/Dotnettency.AspNetCore/WIP/TenantRouter.cs diff --git a/src/Dotnettency.AspNetCore.Container/PerRequestContainer.cs b/src/Dotnettency.AspNetCore.Container/PerRequestContainer.cs index 2801609..e18b864 100644 --- a/src/Dotnettency.AspNetCore.Container/PerRequestContainer.cs +++ b/src/Dotnettency.AspNetCore.Container/PerRequestContainer.cs @@ -9,31 +9,32 @@ public class PerRequestContainer : IDisposable { private Action _onDispose; + private string _key; + public PerRequestContainer(ITenantContainerAdaptor requestContainer) { RequestContainer = requestContainer; + _key = nameof(PerRequestContainer) + RequestContainer.ContainerId; } public ITenantContainerAdaptor RequestContainer { get; private set; } - - public async Task ExecuteWithinSwappedRequestContainer(RequestDelegate request, HttpContext context) - { - if (context.Items.ContainsKey(nameof(PerRequestContainer))) - { - await request.Invoke(context); - return; - } - context.Items[nameof(PerRequestContainer)] = this; + public async Task ExecuteWithinSwappedRequestContainer(RequestDelegate request, HttpContext context) + { var oldServiceProvider = context.RequestServices; try { - _onDispose = () => + if (!context.Items.ContainsKey(_key)) { - context.Items.Remove(nameof(PerRequestContainer)); - RequestContainer.Dispose(); - }; + context.Items[_key] = this; + + _onDispose = () => + { + context.Items.Remove(_key); + RequestContainer.Dispose(); + }; + } context.RequestServices = RequestContainer; await request.Invoke(context); diff --git a/src/Dotnettency.AspNetCore.Container/RouteBuilderExtensions.cs b/src/Dotnettency.AspNetCore.Container/RouteBuilderExtensions.cs new file mode 100644 index 0000000..ff7de5b --- /dev/null +++ b/src/Dotnettency.AspNetCore.Container/RouteBuilderExtensions.cs @@ -0,0 +1,18 @@ +using Dotnettency.AspNetCore.Routing; +using Microsoft.AspNetCore.Routing; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Logging; +using System; + +namespace Dotnettency +{ + public static class RouteBuilderExtensions + { + public static void MapTenantContainer(this IRouteBuilder routeBuilder, Action configureChildRoutes) + where TTenant : class + { + var logger = routeBuilder.ApplicationBuilder.ApplicationServices.GetRequiredService>>(); + routeBuilder.Routes.Add(new TenantContainerRouter(nameof(TenantContainerRouter), logger, routeBuilder.ApplicationBuilder, configureChildRoutes)); + } + } +} diff --git a/src/Dotnettency.AspNetCore.Container/TenantContainerRouter.cs b/src/Dotnettency.AspNetCore.Container/TenantContainerRouter.cs new file mode 100644 index 0000000..50d4820 --- /dev/null +++ b/src/Dotnettency.AspNetCore.Container/TenantContainerRouter.cs @@ -0,0 +1,112 @@ +using System; +using System.Threading.Tasks; +using Dotnettency.AspNetCore.Container; +using Dotnettency.Container; +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Routing; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Logging; + +namespace Dotnettency.AspNetCore.Routing +{ + + public class TenantContainerRouter : INamedRouter + where TTenant : class + { + + private readonly ILogger> _logger; + private readonly IApplicationBuilder _rootAppBuilder; + private readonly Action _configureChildRoutes; + + public TenantContainerRouter(string name, ILogger> logger, IApplicationBuilder rootAppBuilder, Action configureChildRoutes) + { + Name = name; + _logger = logger; + _rootAppBuilder = rootAppBuilder; + _configureChildRoutes = configureChildRoutes; + var routeBuilder = new RouteBuilder(rootAppBuilder, null); + configureChildRoutes(routeBuilder); + ChildRouter = routeBuilder.Build(); + + // _tenantDistinguisherFactory = tenantDistinguisherFactory; + } + + public string Name { get; set; } + + public IRouter ChildRouter { get; set; } + + public VirtualPathData GetVirtualPath(VirtualPathContext context) + { + return null; + // throw new System.NotImplementedException(); + // return new VirtualPathData(this,"") + } + + public async Task RouteAsync(RouteContext context) + { + + // context.han + var tenantContainerAccessor = context.HttpContext.RequestServices.GetRequiredService>(); + var requestContainerAccessor = context.HttpContext.RequestServices.GetRequiredService>(); + + + _logger.LogDebug("Tenant Container Middleware - Start."); + + var tenantContainer = await tenantContainerAccessor.TenantContainer.Value; + if (tenantContainer == null) + { + _logger.LogDebug("Tenant Container Middleware - No tenant container."); + //await _next.Invoke(context); + return; + } + + // var oldAppBuilderServices = _appBuilder.ApplicationServices; + + //try + //{ + + context.RouteData.Routers.Add(this); + context.RouteData.DataTokens.Add("TenantContainer", tenantContainer); + context.RouteData.DataTokens.Add("RootAppBuilder", _rootAppBuilder); + await ChildRouter.RouteAsync(context); + + // If we have any downstream route handler, wrap it with per request container before executing. + if (context.Handler != null) + { + var wrapped = context.Handler; + context.Handler = async (httpContext) => + { + var perRequestContainer = await requestContainerAccessor.TenantRequestContainer.Value; + context.HttpContext.Response.RegisterForDispose(perRequestContainer); + _logger.LogDebug("Setting Request Container: {containerId} - {containerName}", perRequestContainer.RequestContainer.ContainerId, perRequestContainer.RequestContainer.ContainerName); + await perRequestContainer.ExecuteWithinSwappedRequestContainer(wrapped, context.HttpContext); + _logger.LogDebug("Restored Request Container"); + }; + } + + // _logger.LogDebug("Setting AppBuilder Services to Tenant Container: {containerId} - {containerName}", tenantContainer.ContainerId, tenantContainer.ContainerName); + // _appBuilder.ApplicationServices = tenantContainer; + // var perRequestContainer = await requestContainerAccessor.TenantRequestContainer.Value; + + // Ensure container is disposed at end of request. + + // Replace request services with a nested version (for lifetime management - used to encpasulate a request). + // await perRequestContainer.ExecuteWithinSwappedRequestContainer(_next, context); + //} + //finally + //{ + // // _logger.LogDebug("Restoring AppBuilder Services"); + // // _appBuilder.ApplicationServices = oldAppBuilderServices; + //} + + + + } + + private Task WrapRequest(HttpContext context) + { + throw new NotImplementedException(); + } + } +} diff --git a/src/Dotnettency.AspNetCore.MiddlewarePipeline/DelegateTenantMiddlewarePipelineFactory.cs b/src/Dotnettency.AspNetCore.MiddlewarePipeline/DelegateTenantMiddlewarePipelineFactory.cs index 3d371c9..1538f13 100644 --- a/src/Dotnettency.AspNetCore.MiddlewarePipeline/DelegateTenantMiddlewarePipelineFactory.cs +++ b/src/Dotnettency.AspNetCore.MiddlewarePipeline/DelegateTenantMiddlewarePipelineFactory.cs @@ -15,16 +15,17 @@ public DelegateTenantMiddlewarePipelineFactory(Action Create(IApplicationBuilder appBuilder, TTenant tenant, RequestDelegate next) + public async Task Create(IApplicationBuilder appBuilder, IServiceProvider serviceProviderOverride, TTenant tenant, RequestDelegate next) { - return await BuildTenantPipeline(appBuilder, tenant, next); + return await BuildTenantPipeline(appBuilder, serviceProviderOverride, tenant, next); } - protected virtual Task BuildTenantPipeline(IApplicationBuilder rootApp, TTenant tenant, RequestDelegate next) + protected virtual Task BuildTenantPipeline(IApplicationBuilder rootApp, IServiceProvider serviceProviderOverride, TTenant tenant, RequestDelegate next) { return Task.Run(() => { var branchBuilder = rootApp.New(); + branchBuilder.ApplicationServices = serviceProviderOverride; var builderContext = new TenantPipelineBuilderContext { Tenant = tenant @@ -33,7 +34,10 @@ protected virtual Task BuildTenantPipeline(IApplicationBuilder _configuration(builderContext, branchBuilder); // register root pipeline at the end of the tenant branch - branchBuilder.Run(next); + if(next!=null) + { + branchBuilder.Run(next); + } return branchBuilder.Build(); }); } diff --git a/src/Dotnettency.AspNetCore.MiddlewarePipeline/ITenantMiddlewarePipelineFactory.cs b/src/Dotnettency.AspNetCore.MiddlewarePipeline/ITenantMiddlewarePipelineFactory.cs index b03d36d..7696a90 100644 --- a/src/Dotnettency.AspNetCore.MiddlewarePipeline/ITenantMiddlewarePipelineFactory.cs +++ b/src/Dotnettency.AspNetCore.MiddlewarePipeline/ITenantMiddlewarePipelineFactory.cs @@ -1,5 +1,6 @@ using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Http; +using System; using System.Threading.Tasks; namespace Dotnettency.AspNetCore.MiddlewarePipeline @@ -7,6 +8,6 @@ namespace Dotnettency.AspNetCore.MiddlewarePipeline public interface ITenantMiddlewarePipelineFactory where TTenant : class { - Task Create(IApplicationBuilder appBuilder, TTenant tenant, RequestDelegate next); + Task Create(IApplicationBuilder appBuilder, IServiceProvider serviceProviderOverride, TTenant tenant, RequestDelegate next); } } diff --git a/src/Dotnettency.AspNetCore.MiddlewarePipeline/ITenantPipelineAccessor.cs b/src/Dotnettency.AspNetCore.MiddlewarePipeline/ITenantPipelineAccessor.cs index e13cb58..3e493c3 100644 --- a/src/Dotnettency.AspNetCore.MiddlewarePipeline/ITenantPipelineAccessor.cs +++ b/src/Dotnettency.AspNetCore.MiddlewarePipeline/ITenantPipelineAccessor.cs @@ -8,6 +8,6 @@ namespace Dotnettency.AspNetCore.MiddlewarePipeline public interface ITenantPipelineAccessor where TTenant : class { - Func>> TenantPipeline { get; } + Func>> TenantPipeline { get; } } } diff --git a/src/Dotnettency.AspNetCore.MiddlewarePipeline/RouteBuilderExtensions.cs b/src/Dotnettency.AspNetCore.MiddlewarePipeline/RouteBuilderExtensions.cs new file mode 100644 index 0000000..6731354 --- /dev/null +++ b/src/Dotnettency.AspNetCore.MiddlewarePipeline/RouteBuilderExtensions.cs @@ -0,0 +1,17 @@ +using Dotnettency.AspNetCore.Routing; +using Microsoft.AspNetCore.Routing; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Logging; + +namespace Dotnettency +{ + public static class RouteBuilderExtensions + { + public static void MapTenantMiddlewarePipeline(this IRouteBuilder routeBuilder) + where TTenant : class + { + var logger = routeBuilder.ApplicationBuilder.ApplicationServices.GetRequiredService>>(); + routeBuilder.Routes.Add(new TenantMiddlewarePipelineRouter(nameof(TenantMiddlewarePipelineRouter), logger, routeBuilder.ApplicationBuilder)); + } + } +} diff --git a/src/Dotnettency.AspNetCore.MiddlewarePipeline/TenantMiddlewarePipelineRouter.cs b/src/Dotnettency.AspNetCore.MiddlewarePipeline/TenantMiddlewarePipelineRouter.cs new file mode 100644 index 0000000..56a1f5c --- /dev/null +++ b/src/Dotnettency.AspNetCore.MiddlewarePipeline/TenantMiddlewarePipelineRouter.cs @@ -0,0 +1,65 @@ +using System.Threading.Tasks; +using Dotnettency.AspNetCore.MiddlewarePipeline; +using Dotnettency.Container; +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Routing; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Logging; + +namespace Dotnettency.AspNetCore.Routing +{ + + public class TenantMiddlewarePipelineRouter : INamedRouter + where TTenant : class + { + + private readonly ILogger> _logger; + private readonly IApplicationBuilder _rootAppBuilder; + + public TenantMiddlewarePipelineRouter(string name, ILogger> logger, IApplicationBuilder rootAppBuilder) + { + Name = name; + _logger = logger; + _rootAppBuilder = rootAppBuilder; + // ChildRouter = new RouteCollection(); + // _tenantDistinguisherFactory = tenantDistinguisherFactory; + } + + public string Name { get; set; } + + // public IRouter ChildRouter { get; set; } + + public VirtualPathData GetVirtualPath(VirtualPathContext context) + { + return null; + // throw new System.NotImplementedException(); + // return new VirtualPathData(this,"") + } + + public async Task RouteAsync(RouteContext context) + { + + // context.han + var tenantContainerAccessor = context.HttpContext.RequestServices.GetRequiredService>(); + var tenantContainer = await tenantContainerAccessor.TenantContainer.Value; + var tenantPipelineAccessor = context.HttpContext.RequestServices.GetRequiredService>(); + + _logger.LogDebug("Tenant Pipeline Router - Getting Tenant Pipeline."); + var tenantPipeline = await tenantPipelineAccessor.TenantPipeline(_rootAppBuilder, tenantContainer, null).Value; + + if (tenantPipeline != null) + { + _logger.LogDebug("Tenant Pipeline Router - Executing Pipeline."); + context.RouteData.Routers.Add(this); + //context.RouteData.DataTokens.Add("TenanMiddlewarePipeline", tenantPipeline); + context.Handler = tenantPipeline; + } + else + { + _logger.LogDebug("No Tenant Middleware Pipeline to execute."); + return; + } + + } + } +} diff --git a/src/Dotnettency.AspNetCore.MiddlewarePipeline/TenantPipelineAccessor.cs b/src/Dotnettency.AspNetCore.MiddlewarePipeline/TenantPipelineAccessor.cs index 3c80836..e11ad81 100644 --- a/src/Dotnettency.AspNetCore.MiddlewarePipeline/TenantPipelineAccessor.cs +++ b/src/Dotnettency.AspNetCore.MiddlewarePipeline/TenantPipelineAccessor.cs @@ -18,7 +18,7 @@ public TenantPipelineAccessor( _tenantShellAccessor = tenantShellAccessor; _tenantPipelineFactory = tenantPipelineFactory; - TenantPipeline = new Func>>((appBuilder, next) => + TenantPipeline = new Func>>((appBuilder, sp, next) => { return new Lazy>(async () => { @@ -31,7 +31,7 @@ public TenantPipelineAccessor( var tenant = tenantShell?.Tenant; var tenantPipeline = tenantShell.GetOrAddMiddlewarePipeline(new Lazy>(() => { - return _tenantPipelineFactory.Create(appBuilder, tenant, next); + return _tenantPipelineFactory.Create(appBuilder, sp, tenant, next); })); return await tenantPipeline.Value; @@ -39,6 +39,6 @@ public TenantPipelineAccessor( }); } - public Func>> TenantPipeline { get; private set; } + public Func>> TenantPipeline { get; private set; } } } diff --git a/src/Dotnettency.AspNetCore.MiddlewarePipeline/TenantPipelineMiddleware.cs b/src/Dotnettency.AspNetCore.MiddlewarePipeline/TenantPipelineMiddleware.cs index c2bb633..b653188 100644 --- a/src/Dotnettency.AspNetCore.MiddlewarePipeline/TenantPipelineMiddleware.cs +++ b/src/Dotnettency.AspNetCore.MiddlewarePipeline/TenantPipelineMiddleware.cs @@ -25,7 +25,7 @@ public TenantPipelineMiddleware( public async Task Invoke(HttpContext context, ITenantPipelineAccessor tenantPipelineAccessor) { _logger.LogDebug("Tenant Pipeline Middleware - Getting Tenant Pipeline."); - var tenantPipeline = await tenantPipelineAccessor.TenantPipeline(_rootApp, _next).Value; + var tenantPipeline = await tenantPipelineAccessor.TenantPipeline(_rootApp, _rootApp.ApplicationServices, _next).Value; if (tenantPipeline != null) { diff --git a/src/Dotnettency.AspNetCore/WIP/MultiTenancyRouteBuilder.cs b/src/Dotnettency.AspNetCore/WIP/MultiTenancyRouteBuilder.cs deleted file mode 100644 index 3335350..0000000 --- a/src/Dotnettency.AspNetCore/WIP/MultiTenancyRouteBuilder.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Collections.Generic; -using Microsoft.AspNetCore.Builder; -using Microsoft.AspNetCore.Routing; - -namespace Sample -{ - public class MultiTenancyRouteBuilder : IRouteBuilder - { - public MultiTenancyRouteBuilder(IApplicationBuilder builder, IServiceProvider serviceProvider) - { - ApplicationBuilder = builder; - ServiceProvider = serviceProvider; - DefaultHandler = null; - Routes = new List(); - } - - public IApplicationBuilder ApplicationBuilder { get; set; } - - public IRouter DefaultHandler { get; set; } - - public IServiceProvider ServiceProvider { get; set; } - - public IList Routes { get; set; } - - public IRouter Build() - { - //return new ContainerRouter() - throw new NotImplementedException(); - } - } -} diff --git a/src/Dotnettency.AspNetCore/WIP/RouteBuilderExtensions.cs b/src/Dotnettency.AspNetCore/WIP/RouteBuilderExtensions.cs deleted file mode 100644 index 6e79b15..0000000 --- a/src/Dotnettency.AspNetCore/WIP/RouteBuilderExtensions.cs +++ /dev/null @@ -1,12 +0,0 @@ -using Microsoft.AspNetCore.Routing; - -namespace Sample -{ - public static class RouteBuilderExtensions - { - public static void MapTenant(this IRouteBuilder routeBuilder, string name, ITenantDistinguisherFactory tenantDistinguisher) - { - routeBuilder.Routes.Add(new TenantRouter(name)); - } - } -} diff --git a/src/Dotnettency.AspNetCore/WIP/TenantRouter.cs b/src/Dotnettency.AspNetCore/WIP/TenantRouter.cs deleted file mode 100644 index 67fd15a..0000000 --- a/src/Dotnettency.AspNetCore/WIP/TenantRouter.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System.Threading.Tasks; -using Dotnettency; -using Microsoft.AspNetCore.Routing; - -namespace Sample -{ - public class TenantContainerRouter : INamedRouter - where TTenant : class - { - private readonly ITenantDistinguisherFactory _tenantDistinguisherFactory; - - public TenantContainerRouter(string name, ITenantDistinguisherFactory tenantDistinguisherFactory) - { - Name = name; - _tenantDistinguisherFactory = tenantDistinguisherFactory; - } - - public string Name { get; set; } - - public VirtualPathData GetVirtualPath(VirtualPathContext context) - { - throw new System.NotImplementedException(); - // return new VirtualPathData(this,"") - } - - public Task RouteAsync(RouteContext context) - { - - // context.han - - var tenantDistinguisher = _tenantDistinguisherFactory.IdentifyContext(); - throw new System.NotImplementedException(); - } - } -} diff --git a/src/Dotnettency.Sample/Startup.cs b/src/Dotnettency.Sample/Startup.cs index 0b1c943..08f9829 100644 --- a/src/Dotnettency.Sample/Startup.cs +++ b/src/Dotnettency.Sample/Startup.cs @@ -10,6 +10,7 @@ using Newtonsoft.Json; using Dotnettency.Container; using Dotnettency.AspNetCore.Modules; +using System.Threading.Tasks; namespace Sample { @@ -28,6 +29,8 @@ public Startup(IHostingEnvironment environment, ILoggerFactory loggerFactory) // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940 public IServiceProvider ConfigureServices(IServiceCollection services) { + services.AddRouting(); + _loggerFactory.AddConsole(); var logger = _loggerFactory.CreateLogger(); @@ -37,7 +40,7 @@ public IServiceProvider ConfigureServices(IServiceCollection services) .AddDefaultHttpServices() .InitialiseTenant() // factory class to load tenant when it needs to be initialised for the first time. Can use overload to provide a delegate instead. .ConfigureTenantContainers((containerBuilder) => - { + { containerBuilder.Events((events) => { // callback invoked after tenant container is created. @@ -52,7 +55,7 @@ public IServiceProvider ConfigureServices(IServiceCollection services) var tenant = await tenantResolver; }); - }) + }) // Extension methods available here for supported containers. We are using structuremap.. // We are using an overload that allows us to configure structuremap with familiar IServiceCollection. .WithStructureMap((tenant, tenantServices) => @@ -77,7 +80,7 @@ public IServiceProvider ConfigureServices(IServiceCollection services) }); - }) + }) .AddPerRequestContainerMiddlewareServices(); // .WithModuleContainers(); // Creates a child container per IModule. @@ -97,8 +100,11 @@ public IServiceProvider ConfigureServices(IServiceCollection services) { appBuilder.UseWelcomePage("/welcome"); } - // + // display info. + appBuilder.Run(DisplayInfo); }); + + }) // Configure per tenant containers. // configure per tenant hosting environment. @@ -137,21 +143,43 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF } // Add the multitenancy middleware. - app.UseMultitenancy((options) => - { - options - .UsePerTenantContainers() - .UsePerTenantHostingEnvironment((hostingEnvironmentOptions) => - { - // using tenant content root and web root. - hostingEnvironmentOptions.UseTenantContentRootFileProvider(); - hostingEnvironmentOptions.UseTenantWebRootFileProvider(); - }) - .UsePerTenantMiddlewarePipeline(); - //.UseModules(); + //var defaultRouteHandler = new RouteHandler(context => + //{ + // var routeValues = context.GetRouteData().Values; + // return context.Response.WriteAsync( + // $"Hello! Route values: {string.Join(", ", routeValues)}"); + //}); + //var routeBuilder = new RouteBuilder(app); + // routeBuilder.MapTenantContainer() + app.UseRouter((routeBuilder) => + { + routeBuilder.MapTenantContainer((childRouteBuilder) => + { + childRouteBuilder.MapTenantMiddlewarePipeline(); + }); }); + // This will run only if no routes above were handled. + app.Run(DisplayInfo); + + // var router = new TenantContainerRouter("tenantRouter", ) + //app.UseMultitenancy((options) => + //{ + // options + // //.UsePerTenantContainers() + + // .UsePerTenantHostingEnvironment((hostingEnvironmentOptions) => + // { + // // using tenant content root and web root. + // hostingEnvironmentOptions.UseTenantContentRootFileProvider(); + // hostingEnvironmentOptions.UseTenantWebRootFileProvider(); + // }) + // .UsePerTenantMiddlewarePipeline(); + // //.UseModules(); + + //}); + //app.UseOwin(x => //{ // x.UseMyMiddleware(new MyMiddlewareOptions()); @@ -161,51 +189,51 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF // app.UseMiddleware>(); // app. - app.Run(async (context) => - { - var logger = context.RequestServices.GetRequiredService>(); - logger.LogDebug("App Run.."); - - var container = context.RequestServices as ITenantContainerAdaptor; - logger.LogDebug("App Run Container Is: {id}, {containerNAme}, {role}", container.ContainerId, container.ContainerName, container.Role); + } - // Use ITenantAccessor to access the current tenant. - var tenantAccessor = container.GetRequiredService>(); - var tenant = await tenantAccessor.CurrentTenant.Value; + public async Task DisplayInfo(HttpContext context) + { + var logger = context.RequestServices.GetRequiredService>(); + logger.LogDebug("App Run.."); - // This service was registered as singleton in tenant container. - var someTenantService = container.GetService(); + var container = context.RequestServices as ITenantContainerAdaptor; + logger.LogDebug("App Run Container Is: {id}, {containerNAme}, {role}", container.ContainerId, container.ContainerName, container.Role); - // The tenant shell to access context for the tenant - even if the tenant is null - var tenantShellAccessor = context.RequestServices.GetRequiredService>(); - var tenantShell = await tenantShellAccessor.CurrentTenantShell.Value; + // Use ITenantAccessor to access the current tenant. + var tenantAccessor = container.GetRequiredService>(); + var tenant = await tenantAccessor.CurrentTenant.Value; - string tenantShellId = tenantShell == null ? "{NULL TENANT SHELL}" : tenantShell.Id.ToString(); - string tenantName = tenant == null ? "{NULL TENANT}" : tenant.Name; - string injectedTenantName = someTenantService?.TenantName ?? "{NULL SERVICE}"; + // This service was registered as singleton in tenant container. + var someTenantService = container.GetService(); - // Accessing a content file. - string fileContent = someTenantService?.GetContentFile("/Info.txt"); - context.Response.ContentType = new MediaTypeHeaderValue("application/json").ToString(); - var result = new - { - TenantShellId = tenantShellId, - TenantName = tenantName, - TenantScopedServiceId = someTenantService?.Id, - InjectedTenantName = injectedTenantName, - TenantContentFile = fileContent - }; + // The tenant shell to access context for the tenant - even if the tenant is null + var tenantShellAccessor = context.RequestServices.GetRequiredService>(); + var tenantShell = await tenantShellAccessor.CurrentTenantShell.Value; - var jsonResult = JsonConvert.SerializeObject(result); - await context.Response.WriteAsync(jsonResult, Encoding.UTF8); - logger.LogDebug("App Run Finished.."); - // context.Response. + string tenantShellId = tenantShell == null ? "{NULL TENANT SHELL}" : tenantShell.Id.ToString(); + string tenantName = tenant == null ? "{NULL TENANT}" : tenant.Name; + string injectedTenantName = someTenantService?.TenantName ?? "{NULL SERVICE}"; - // for null tenants we could optionally redirect somewhere? - }); + // Accessing a content file. + string fileContent = someTenantService?.GetContentFile("/Info.txt"); + context.Response.ContentType = new MediaTypeHeaderValue("application/json").ToString(); + var result = new + { + TenantShellId = tenantShellId, + TenantName = tenantName, + TenantScopedServiceId = someTenantService?.Id, + InjectedTenantName = injectedTenantName, + TenantContentFile = fileContent + }; + + var jsonResult = JsonConvert.SerializeObject(result); + await context.Response.WriteAsync(jsonResult, Encoding.UTF8); + logger.LogDebug("App Run Finished.."); } + + } } From c56ad6c9040970d53b12a1f252fb8198d9e6c30a Mon Sep 17 00:00:00 2001 From: Darrell Tunnell Date: Wed, 3 Jan 2018 18:43:13 +0000 Subject: [PATCH 45/86] Corrected log statement, and comment changes. --- src/Dotnettency.Sample/Startup.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Dotnettency.Sample/Startup.cs b/src/Dotnettency.Sample/Startup.cs index 08f9829..72c3294 100644 --- a/src/Dotnettency.Sample/Startup.cs +++ b/src/Dotnettency.Sample/Startup.cs @@ -90,7 +90,7 @@ public IServiceProvider ConfigureServices(IServiceCollection services) // This method is called when need to initialise the middleware pipeline for a tenant (i.e on first request for the tenant) middlewareOptions.OnInitialiseTenantPipeline((context, appBuilder) => { - logger.LogDebug("Configuring tenant middleware pipeline for tenant: " + context.Tenant?.Name); + logger.LogDebug("Configuring tenant middleware pipeline for tenant: " + context.Tenant?.Name ?? ""); // appBuilder.UseStaticFiles(); // This demonstrates static files middleware, but below I am also using per tenant hosting environment which means each tenant can see its own static files in addition to the main application level static files. appBuilder.UseModules(); @@ -155,12 +155,13 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF app.UseRouter((routeBuilder) => { routeBuilder.MapTenantContainer((childRouteBuilder) => - { - childRouteBuilder.MapTenantMiddlewarePipeline(); + { + // If any of these routes match, they will be executed within the tenants container. + childRouteBuilder.MapTenantMiddlewarePipeline(); // handled by the tenant's middleware pipeline - if there is one. }); }); - // This will run only if no routes above were handled. + // This will only be reached if no routes above were executed. app.Run(DisplayInfo); // var router = new TenantContainerRouter("tenantRouter", ) From d98a9cdf98eabc0a6eca53d4bf0aa73be9742252 Mon Sep 17 00:00:00 2001 From: Darrell Tunnell Date: Sun, 7 Jan 2018 20:55:05 +0000 Subject: [PATCH 46/86] Sample is working using new routing functionality.. --- ...daptedContainerBuilderOptionsExtensions.cs | 2 +- .../RouteBuilderExtensions.cs | 4 +- .../TenantContainerRouter.cs | 36 +------ .../WIP/ContainerRouter.cs | 77 +++++++++++++++ .../IServiceCollectionExtensions.cs | 19 ++++ .../ITenantPipelineAccessor.cs | 2 +- .../MultitenancyOptionsBuilderExtensions.cs | 5 + .../RouteBuilderExtensions.cs | 25 ++++- .../TenantMiddlewarePipelineRouter.cs | 24 +++-- .../TenantPipelineAccessor.cs | 15 ++- .../TenantPipelineMiddleware.cs | 4 +- .../UsePerTenantBuilderExtensions.cs | 2 + .../MultitenancyOptionsBuilder.cs | 1 + src/Dotnettency.Sample/Startup.cs | 93 ++++++------------- 14 files changed, 185 insertions(+), 124 deletions(-) create mode 100644 src/Dotnettency.AspNetCore.Container/WIP/ContainerRouter.cs create mode 100644 src/Dotnettency.AspNetCore.MiddlewarePipeline/IServiceCollectionExtensions.cs diff --git a/src/Dotnettency.AspNetCore.Container/AdaptedContainerBuilderOptionsExtensions.cs b/src/Dotnettency.AspNetCore.Container/AdaptedContainerBuilderOptionsExtensions.cs index f46ccd8..b2b19ae 100644 --- a/src/Dotnettency.AspNetCore.Container/AdaptedContainerBuilderOptionsExtensions.cs +++ b/src/Dotnettency.AspNetCore.Container/AdaptedContainerBuilderOptionsExtensions.cs @@ -11,6 +11,6 @@ public static AdaptedContainerBuilderOptions AddPerRequestContainerMidd { options.ContainerBuilderOptions.Builder.Services.AddScoped, TenantRequestContainerAccessor>(); return options; - } + } } } diff --git a/src/Dotnettency.AspNetCore.Container/RouteBuilderExtensions.cs b/src/Dotnettency.AspNetCore.Container/RouteBuilderExtensions.cs index ff7de5b..8359ba1 100644 --- a/src/Dotnettency.AspNetCore.Container/RouteBuilderExtensions.cs +++ b/src/Dotnettency.AspNetCore.Container/RouteBuilderExtensions.cs @@ -8,11 +8,11 @@ namespace Dotnettency { public static class RouteBuilderExtensions { - public static void MapTenantContainer(this IRouteBuilder routeBuilder, Action configureChildRoutes) + public static void EnsureTenantContainer(this IRouteBuilder routeBuilder, Action configureChildRoutes) where TTenant : class { var logger = routeBuilder.ApplicationBuilder.ApplicationServices.GetRequiredService>>(); routeBuilder.Routes.Add(new TenantContainerRouter(nameof(TenantContainerRouter), logger, routeBuilder.ApplicationBuilder, configureChildRoutes)); } - } + } } diff --git a/src/Dotnettency.AspNetCore.Container/TenantContainerRouter.cs b/src/Dotnettency.AspNetCore.Container/TenantContainerRouter.cs index 50d4820..c10ab4b 100644 --- a/src/Dotnettency.AspNetCore.Container/TenantContainerRouter.cs +++ b/src/Dotnettency.AspNetCore.Container/TenantContainerRouter.cs @@ -3,7 +3,6 @@ using Dotnettency.AspNetCore.Container; using Dotnettency.Container; using Microsoft.AspNetCore.Builder; -using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Routing; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; @@ -28,8 +27,6 @@ public TenantContainerRouter(string name, ILogger var routeBuilder = new RouteBuilder(rootAppBuilder, null); configureChildRoutes(routeBuilder); ChildRouter = routeBuilder.Build(); - - // _tenantDistinguisherFactory = tenantDistinguisherFactory; } public string Name { get; set; } @@ -39,8 +36,6 @@ public TenantContainerRouter(string name, ILogger public VirtualPathData GetVirtualPath(VirtualPathContext context) { return null; - // throw new System.NotImplementedException(); - // return new VirtualPathData(this,"") } public async Task RouteAsync(RouteContext context) @@ -50,22 +45,15 @@ public async Task RouteAsync(RouteContext context) var tenantContainerAccessor = context.HttpContext.RequestServices.GetRequiredService>(); var requestContainerAccessor = context.HttpContext.RequestServices.GetRequiredService>(); - _logger.LogDebug("Tenant Container Middleware - Start."); var tenantContainer = await tenantContainerAccessor.TenantContainer.Value; if (tenantContainer == null) { _logger.LogDebug("Tenant Container Middleware - No tenant container."); - //await _next.Invoke(context); return; } - // var oldAppBuilderServices = _appBuilder.ApplicationServices; - - //try - //{ - context.RouteData.Routers.Add(this); context.RouteData.DataTokens.Add("TenantContainer", tenantContainer); context.RouteData.DataTokens.Add("RootAppBuilder", _rootAppBuilder); @@ -85,28 +73,6 @@ public async Task RouteAsync(RouteContext context) }; } - // _logger.LogDebug("Setting AppBuilder Services to Tenant Container: {containerId} - {containerName}", tenantContainer.ContainerId, tenantContainer.ContainerName); - // _appBuilder.ApplicationServices = tenantContainer; - // var perRequestContainer = await requestContainerAccessor.TenantRequestContainer.Value; - - // Ensure container is disposed at end of request. - - // Replace request services with a nested version (for lifetime management - used to encpasulate a request). - // await perRequestContainer.ExecuteWithinSwappedRequestContainer(_next, context); - //} - //finally - //{ - // // _logger.LogDebug("Restoring AppBuilder Services"); - // // _appBuilder.ApplicationServices = oldAppBuilderServices; - //} - - - - } - - private Task WrapRequest(HttpContext context) - { - throw new NotImplementedException(); - } + } } } diff --git a/src/Dotnettency.AspNetCore.Container/WIP/ContainerRouter.cs b/src/Dotnettency.AspNetCore.Container/WIP/ContainerRouter.cs new file mode 100644 index 0000000..6e94b13 --- /dev/null +++ b/src/Dotnettency.AspNetCore.Container/WIP/ContainerRouter.cs @@ -0,0 +1,77 @@ +using System; +using System.Threading.Tasks; +using Dotnettency.AspNetCore.Container; +using Dotnettency.Container; +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Routing; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Logging; + +namespace Dotnettency.AspNetCore.Routing +{ + public class ContainerRouter : INamedRouter + where TTenant : class + { + + private readonly ILogger> _logger; + private readonly IApplicationBuilder _rootAppBuilder; + private readonly Action _configureChildRoutes; + + public ContainerRouter(string name, ILogger> logger, IApplicationBuilder rootAppBuilder, Action configureChildRoutes) + { + Name = name; + _logger = logger; + _rootAppBuilder = rootAppBuilder; + _configureChildRoutes = configureChildRoutes; + var routeBuilder = new RouteBuilder(rootAppBuilder, null); + configureChildRoutes(routeBuilder); + ChildRouter = routeBuilder.Build(); + } + + public string Name { get; set; } + + public IRouter ChildRouter { get; set; } + + public VirtualPathData GetVirtualPath(VirtualPathContext context) + { + return null; + } + + public async Task RouteAsync(RouteContext context) + { + + // context.han + var tenantContainerAccessor = context.HttpContext.RequestServices.GetRequiredService>(); + var requestContainerAccessor = context.HttpContext.RequestServices.GetRequiredService>(); + + _logger.LogDebug("Tenant Container Middleware - Start."); + + var tenantContainer = await tenantContainerAccessor.TenantContainer.Value; + if (tenantContainer == null) + { + _logger.LogDebug("Tenant Container Middleware - No tenant container."); + //await _next.Invoke(context); + return; + } + + context.RouteData.Routers.Add(this); + context.RouteData.DataTokens.Add("TenantContainer", tenantContainer); + context.RouteData.DataTokens.Add("RootAppBuilder", _rootAppBuilder); + await ChildRouter.RouteAsync(context); + + // If we have any downstream route handler, wrap it with per request container before executing. + if (context.Handler != null) + { + var wrapped = context.Handler; + context.Handler = async (httpContext) => + { + var perRequestContainer = await requestContainerAccessor.TenantRequestContainer.Value; + context.HttpContext.Response.RegisterForDispose(perRequestContainer); + _logger.LogDebug("Setting Request Container: {containerId} - {containerName}", perRequestContainer.RequestContainer.ContainerId, perRequestContainer.RequestContainer.ContainerName); + await perRequestContainer.ExecuteWithinSwappedRequestContainer(wrapped, context.HttpContext); + _logger.LogDebug("Restored Request Container"); + }; + } + } + } +} diff --git a/src/Dotnettency.AspNetCore.MiddlewarePipeline/IServiceCollectionExtensions.cs b/src/Dotnettency.AspNetCore.MiddlewarePipeline/IServiceCollectionExtensions.cs new file mode 100644 index 0000000..2c5616b --- /dev/null +++ b/src/Dotnettency.AspNetCore.MiddlewarePipeline/IServiceCollectionExtensions.cs @@ -0,0 +1,19 @@ +using Dotnettency.AspNetCore.MiddlewarePipeline; +using Dotnettency.Container; +using Microsoft.Extensions.DependencyInjection; + +namespace Dotnettency +{ + public static class IServiceCollectionExtensions + { + + public static AdaptedContainerBuilderOptions AddPerTenantMiddlewarePipelineServices(this AdaptedContainerBuilderOptions options) + where TTenant : class + { + options.ContainerBuilderOptions.Builder.Services.AddScoped, TenantPipelineAccessor>(); + return options; + } + } + + +} diff --git a/src/Dotnettency.AspNetCore.MiddlewarePipeline/ITenantPipelineAccessor.cs b/src/Dotnettency.AspNetCore.MiddlewarePipeline/ITenantPipelineAccessor.cs index 3e493c3..eb84859 100644 --- a/src/Dotnettency.AspNetCore.MiddlewarePipeline/ITenantPipelineAccessor.cs +++ b/src/Dotnettency.AspNetCore.MiddlewarePipeline/ITenantPipelineAccessor.cs @@ -8,6 +8,6 @@ namespace Dotnettency.AspNetCore.MiddlewarePipeline public interface ITenantPipelineAccessor where TTenant : class { - Func>> TenantPipeline { get; } + Func, Lazy>> TenantPipeline { get; } } } diff --git a/src/Dotnettency.AspNetCore.MiddlewarePipeline/MultitenancyOptionsBuilderExtensions.cs b/src/Dotnettency.AspNetCore.MiddlewarePipeline/MultitenancyOptionsBuilderExtensions.cs index ccab04e..14ad8c7 100644 --- a/src/Dotnettency.AspNetCore.MiddlewarePipeline/MultitenancyOptionsBuilderExtensions.cs +++ b/src/Dotnettency.AspNetCore.MiddlewarePipeline/MultitenancyOptionsBuilderExtensions.cs @@ -1,10 +1,12 @@ using Dotnettency.AspNetCore.MiddlewarePipeline; +using Microsoft.Extensions.DependencyInjection; using System; namespace Dotnettency { public static class MultitenancyOptionsBuilderExtensions { + [Obsolete("Use AddPerTenantMiddleware() instead, and then in Configure() call the the new IRouteBuilder extensions methods to route through a tenant middleware pipeline.")] public static MultitenancyOptionsBuilder ConfigureTenantMiddleware( this MultitenancyOptionsBuilder builder, Action> configureOptions) @@ -14,5 +16,8 @@ public static MultitenancyOptionsBuilder ConfigureTenantMiddleware(this IRouteBuilder routeBuilder) + public static void MapTenantMiddlewarePipeline(this IRouteBuilder routeBuilder, Action, IApplicationBuilder> configuration) where TTenant : class { var logger = routeBuilder.ApplicationBuilder.ApplicationServices.GetRequiredService>>(); - routeBuilder.Routes.Add(new TenantMiddlewarePipelineRouter(nameof(TenantMiddlewarePipelineRouter), logger, routeBuilder.ApplicationBuilder)); + var tenantShellAccessor = routeBuilder.ApplicationBuilder.ApplicationServices.GetRequiredService>(); + var factory = new DelegateTenantMiddlewarePipelineFactory(configuration); + //var pipelineAccessor = new TenantPipelineAccessor(factory, tenantShellAccessor); + + + var router = new TenantMiddlewarePipelineRouter(nameof(TenantMiddlewarePipelineRouter), logger, routeBuilder.ApplicationBuilder, factory); + + // _builder.Services.AddSingleton>(factory); + // _builder.Services.AddScoped, TenantPipelineAccessor>(); + // return _builder; + + routeBuilder.Routes.Add(router); } + + + + + } } diff --git a/src/Dotnettency.AspNetCore.MiddlewarePipeline/TenantMiddlewarePipelineRouter.cs b/src/Dotnettency.AspNetCore.MiddlewarePipeline/TenantMiddlewarePipelineRouter.cs index 56a1f5c..2282e8f 100644 --- a/src/Dotnettency.AspNetCore.MiddlewarePipeline/TenantMiddlewarePipelineRouter.cs +++ b/src/Dotnettency.AspNetCore.MiddlewarePipeline/TenantMiddlewarePipelineRouter.cs @@ -15,14 +15,19 @@ public class TenantMiddlewarePipelineRouter : INamedRouter private readonly ILogger> _logger; private readonly IApplicationBuilder _rootAppBuilder; + // private readonly ITenantPipelineAccessor _pipelineAccessor; + private readonly ITenantMiddlewarePipelineFactory _pipelineFactory; - public TenantMiddlewarePipelineRouter(string name, ILogger> logger, IApplicationBuilder rootAppBuilder) + public TenantMiddlewarePipelineRouter(string name, + ILogger> logger, + IApplicationBuilder rootAppBuilder, + ITenantMiddlewarePipelineFactory pipelineFactory) { Name = name; _logger = logger; _rootAppBuilder = rootAppBuilder; - // ChildRouter = new RouteCollection(); - // _tenantDistinguisherFactory = tenantDistinguisherFactory; + _pipelineFactory = pipelineFactory; + } public string Name { get; set; } @@ -40,12 +45,17 @@ public async Task RouteAsync(RouteContext context) { // context.han - var tenantContainerAccessor = context.HttpContext.RequestServices.GetRequiredService>(); + var sp = context.HttpContext.RequestServices; + var tenantContainerAccessor = sp.GetRequiredService>(); var tenantContainer = await tenantContainerAccessor.TenantContainer.Value; - var tenantPipelineAccessor = context.HttpContext.RequestServices.GetRequiredService>(); + + // Microsoft.Extensions.DependencyInjection.ActivatorUtilities.GetServiceOrCreateInstance<> + var tenantPipelineAccessor = tenantContainer.GetRequiredService>(); + + _logger.LogDebug("Tenant Pipeline Router - Getting Tenant Pipeline."); - var tenantPipeline = await tenantPipelineAccessor.TenantPipeline(_rootAppBuilder, tenantContainer, null).Value; + var tenantPipeline = await tenantPipelineAccessor.TenantPipeline(_rootAppBuilder, tenantContainer, null, _pipelineFactory).Value; if (tenantPipeline != null) { @@ -58,7 +68,7 @@ public async Task RouteAsync(RouteContext context) { _logger.LogDebug("No Tenant Middleware Pipeline to execute."); return; - } + } } } diff --git a/src/Dotnettency.AspNetCore.MiddlewarePipeline/TenantPipelineAccessor.cs b/src/Dotnettency.AspNetCore.MiddlewarePipeline/TenantPipelineAccessor.cs index e11ad81..83c6f56 100644 --- a/src/Dotnettency.AspNetCore.MiddlewarePipeline/TenantPipelineAccessor.cs +++ b/src/Dotnettency.AspNetCore.MiddlewarePipeline/TenantPipelineAccessor.cs @@ -9,16 +9,13 @@ public class TenantPipelineAccessor : ITenantPipelineAccessor where TTenant : class { private readonly ITenantShellAccessor _tenantShellAccessor; - private readonly ITenantMiddlewarePipelineFactory _tenantPipelineFactory; - public TenantPipelineAccessor( - ITenantMiddlewarePipelineFactory tenantPipelineFactory, - TenantShellAccessor tenantShellAccessor) + public TenantPipelineAccessor( + ITenantShellAccessor tenantShellAccessor) { _tenantShellAccessor = tenantShellAccessor; - _tenantPipelineFactory = tenantPipelineFactory; - TenantPipeline = new Func>>((appBuilder, sp, next) => + TenantPipeline = new Func, Lazy>>((appBuilder, sp, next, factory) => { return new Lazy>(async () => { @@ -30,8 +27,8 @@ public TenantPipelineAccessor( var tenant = tenantShell?.Tenant; var tenantPipeline = tenantShell.GetOrAddMiddlewarePipeline(new Lazy>(() => - { - return _tenantPipelineFactory.Create(appBuilder, sp, tenant, next); + { + return factory.Create(appBuilder, sp, tenant, next); })); return await tenantPipeline.Value; @@ -39,6 +36,6 @@ public TenantPipelineAccessor( }); } - public Func>> TenantPipeline { get; private set; } + public Func, Lazy>> TenantPipeline { get; private set; } } } diff --git a/src/Dotnettency.AspNetCore.MiddlewarePipeline/TenantPipelineMiddleware.cs b/src/Dotnettency.AspNetCore.MiddlewarePipeline/TenantPipelineMiddleware.cs index b653188..1434d3f 100644 --- a/src/Dotnettency.AspNetCore.MiddlewarePipeline/TenantPipelineMiddleware.cs +++ b/src/Dotnettency.AspNetCore.MiddlewarePipeline/TenantPipelineMiddleware.cs @@ -22,10 +22,10 @@ public TenantPipelineMiddleware( _logger = logger; } - public async Task Invoke(HttpContext context, ITenantPipelineAccessor tenantPipelineAccessor) + public async Task Invoke(HttpContext context, ITenantPipelineAccessor tenantPipelineAccessor, ITenantMiddlewarePipelineFactory tenantPipelineFactory) { _logger.LogDebug("Tenant Pipeline Middleware - Getting Tenant Pipeline."); - var tenantPipeline = await tenantPipelineAccessor.TenantPipeline(_rootApp, _rootApp.ApplicationServices, _next).Value; + var tenantPipeline = await tenantPipelineAccessor.TenantPipeline(_rootApp, _rootApp.ApplicationServices, _next, tenantPipelineFactory).Value; if (tenantPipeline != null) { diff --git a/src/Dotnettency.AspNetCore.MiddlewarePipeline/UsePerTenantBuilderExtensions.cs b/src/Dotnettency.AspNetCore.MiddlewarePipeline/UsePerTenantBuilderExtensions.cs index c4e9e9c..d6094cd 100644 --- a/src/Dotnettency.AspNetCore.MiddlewarePipeline/UsePerTenantBuilderExtensions.cs +++ b/src/Dotnettency.AspNetCore.MiddlewarePipeline/UsePerTenantBuilderExtensions.cs @@ -13,4 +13,6 @@ public static MultitenancyMiddlewareOptionsBuilder UsePerTenantMiddlewa return builder; } } + + } diff --git a/src/Dotnettency.AspNetCore/MultitenancyOptionsBuilder.cs b/src/Dotnettency.AspNetCore/MultitenancyOptionsBuilder.cs index 0ec83c4..f86e835 100644 --- a/src/Dotnettency.AspNetCore/MultitenancyOptionsBuilder.cs +++ b/src/Dotnettency.AspNetCore/MultitenancyOptionsBuilder.cs @@ -12,6 +12,7 @@ public static MultitenancyOptionsBuilder AddDefaultHttpServices, RequestAuthorityTenantDistinguisherFactory>(); builder.Services.AddSingleton(); + return builder; } } diff --git a/src/Dotnettency.Sample/Startup.cs b/src/Dotnettency.Sample/Startup.cs index 72c3294..907b3fd 100644 --- a/src/Dotnettency.Sample/Startup.cs +++ b/src/Dotnettency.Sample/Startup.cs @@ -60,6 +60,10 @@ public IServiceProvider ConfigureServices(IServiceCollection services) // We are using an overload that allows us to configure structuremap with familiar IServiceCollection. .WithStructureMap((tenant, tenantServices) => { + + + + tenantServices.AddSingleton((sp) => { //var logger = sp.GetRequiredService>(); @@ -81,32 +85,10 @@ public IServiceProvider ConfigureServices(IServiceCollection services) }); }) - .AddPerRequestContainerMiddlewareServices(); - + .AddPerRequestContainerMiddlewareServices() + .AddPerTenantMiddlewarePipelineServices(); // allows tenants to have there own middleware pipeline accessor stored in their tenant containers. // .WithModuleContainers(); // Creates a child container per IModule. }) - .ConfigureTenantMiddleware((middlewareOptions) => - { - // This method is called when need to initialise the middleware pipeline for a tenant (i.e on first request for the tenant) - middlewareOptions.OnInitialiseTenantPipeline((context, appBuilder) => - { - logger.LogDebug("Configuring tenant middleware pipeline for tenant: " + context.Tenant?.Name ?? ""); - // appBuilder.UseStaticFiles(); // This demonstrates static files middleware, but below I am also using per tenant hosting environment which means each tenant can see its own static files in addition to the main application level static files. - - appBuilder.UseModules(); - - // welcome page only enabled for tenant FOO. - if (context.Tenant?.Name == "Foo") - { - appBuilder.UseWelcomePage("/welcome"); - } - // display info. - appBuilder.Run(DisplayInfo); - }); - - - }) // Configure per tenant containers. - // configure per tenant hosting environment. .ConfigurePerTenantHostingEnvironment(_environment, (tenantHostingEnvironmentOptions) => { @@ -142,54 +124,37 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF app.UseDeveloperExceptionPage(); } - // Add the multitenancy middleware. - //var defaultRouteHandler = new RouteHandler(context => - //{ - // var routeValues = context.GetRouteData().Values; - // return context.Response.WriteAsync( - // $"Hello! Route values: {string.Join(", ", routeValues)}"); - //}); - - //var routeBuilder = new RouteBuilder(app); - // routeBuilder.MapTenantContainer() - app.UseRouter((routeBuilder) => + app.UseRouter(((routeBuilder) => { - routeBuilder.MapTenantContainer((childRouteBuilder) => - { - // If any of these routes match, they will be executed within the tenants container. - childRouteBuilder.MapTenantMiddlewarePipeline(); // handled by the tenant's middleware pipeline - if there is one. - }); - }); + // Makes sure that should any child route match, then the tenant container is restored prior to that route handling the request. + routeBuilder.EnsureTenantContainer((childRouteBuilder) => + { + // Adds a route that will handle the request via the current tenants middleware pipleine. + childRouteBuilder.MapTenantMiddlewarePipeline((context, appBuilder) => + { - // This will only be reached if no routes above were executed. - app.Run(DisplayInfo); + var logger = appBuilder.ApplicationServices.GetRequiredService>(); + logger.LogDebug("Configuring tenant middleware pipeline for tenant: " + context.Tenant?.Name ?? ""); + // appBuilder.UseStaticFiles(); // This demonstrates static files middleware, but below I am also using per tenant hosting environment which means each tenant can see its own static files in addition to the main application level static files. - // var router = new TenantContainerRouter("tenantRouter", ) - //app.UseMultitenancy((options) => - //{ - // options - // //.UsePerTenantContainers() + appBuilder.UseModules(); - // .UsePerTenantHostingEnvironment((hostingEnvironmentOptions) => - // { - // // using tenant content root and web root. - // hostingEnvironmentOptions.UseTenantContentRootFileProvider(); - // hostingEnvironmentOptions.UseTenantWebRootFileProvider(); - // }) - // .UsePerTenantMiddlewarePipeline(); - // //.UseModules(); + // welcome page only enabled for tenant FOO. + if (context.Tenant?.Name == "Foo") + { + appBuilder.UseWelcomePage("/welcome"); + } + // display info. + appBuilder.Run(DisplayInfo); - //}); + }); // handled by the tenant's middleware pipeline - if there is one. + }); + })); - //app.UseOwin(x => - //{ - // x.UseMyMiddleware(new MyMiddlewareOptions()); - // x.UseNancy(); - //}); + // This will only be reached if no routes were resolved above. + app.Run(DisplayInfo); - // app.UseMiddleware>(); - // app. } From 512a5dae5c0e8e1ed44f8fd544bf48e3dc032f00 Mon Sep 17 00:00:00 2001 From: Darrell Tunnell Date: Sat, 24 Mar 2018 13:52:13 +0000 Subject: [PATCH 47/86] Updated sample index page --- src/Sample.Mvc/Views/Home/Index.cshtml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Sample.Mvc/Views/Home/Index.cshtml b/src/Sample.Mvc/Views/Home/Index.cshtml index 92e7a1b..095b580 100644 --- a/src/Sample.Mvc/Views/Home/Index.cshtml +++ b/src/Sample.Mvc/Views/Home/Index.cshtml @@ -53,6 +53,7 @@ Foo
  • From 84ea480aa39ed9e0623232adb971205802d37bfa Mon Sep 17 00:00:00 2001 From: Darrell Tunnell Date: Sat, 24 Mar 2018 14:47:53 +0000 Subject: [PATCH 48/86] Removed nancy stuff, as now in seperate branch. --- .../MultitenancyOptionsBuilderExtensions.cs | 2 - ...otnettency.AspNetCore.Modules.Nancy.csproj | 17 -- .../ITenantNancyBootstrapperAccessor.cs | 11 - .../ITenantNancyBootstrapperFactory.cs | 10 - .../Module/TestNancyModule.cs | 55 ----- .../Module/TestNancyRoutedModule.cs | 35 --- .../NancyImpl/AlreadyKnownRouteResolver.cs | 55 ----- .../NancyImpl/CustomNancyModuleBuilder.cs | 151 ------------ .../NancyImpl/NancyHandler.cs | 182 -------------- .../NancyImpl/NancyPassThroughOptions.cs | 24 -- .../TenantContainerNancyBootstrapper.cs | 223 ------------------ .../NancyMiddleware.cs | 66 ------ .../ServiceCollectionExtensions.cs | 20 -- .../TenantNancyBootstrapperAccessor.cs | 41 ---- .../TenantNancyBootstrapperFactory.cs | 23 -- .../TenantShellNancyExtensions.cs | 22 -- .../IServiceCollectionExtensions.cs | 23 ++ .../MultitenancyOptionsBuilder.cs | 19 -- ...uestAuthorityTenantDistinguisherFactory.cs | 1 + src/Dotnettency.Sample/Startup.cs | 5 +- .../Dotnettency.Tests.csproj | 13 + src/Dotnettency.Tests/FooTest.cs | 15 ++ src/Sample.Mvc/Startup.cs | 5 +- src/src.sln | 30 +-- 24 files changed, 74 insertions(+), 974 deletions(-) delete mode 100644 src/Dotnettency.AspNetCore.Modules.Nancy/Dotnettency.AspNetCore.Modules.Nancy.csproj delete mode 100644 src/Dotnettency.AspNetCore.Modules.Nancy/ITenantNancyBootstrapperAccessor.cs delete mode 100644 src/Dotnettency.AspNetCore.Modules.Nancy/ITenantNancyBootstrapperFactory.cs delete mode 100644 src/Dotnettency.AspNetCore.Modules.Nancy/Module/TestNancyModule.cs delete mode 100644 src/Dotnettency.AspNetCore.Modules.Nancy/Module/TestNancyRoutedModule.cs delete mode 100644 src/Dotnettency.AspNetCore.Modules.Nancy/NancyImpl/AlreadyKnownRouteResolver.cs delete mode 100644 src/Dotnettency.AspNetCore.Modules.Nancy/NancyImpl/CustomNancyModuleBuilder.cs delete mode 100644 src/Dotnettency.AspNetCore.Modules.Nancy/NancyImpl/NancyHandler.cs delete mode 100644 src/Dotnettency.AspNetCore.Modules.Nancy/NancyImpl/NancyPassThroughOptions.cs delete mode 100644 src/Dotnettency.AspNetCore.Modules.Nancy/NancyImpl/TenantContainerNancyBootstrapper.cs delete mode 100644 src/Dotnettency.AspNetCore.Modules.Nancy/NancyMiddleware.cs delete mode 100644 src/Dotnettency.AspNetCore.Modules.Nancy/ServiceCollectionExtensions.cs delete mode 100644 src/Dotnettency.AspNetCore.Modules.Nancy/TenantNancyBootstrapperAccessor.cs delete mode 100644 src/Dotnettency.AspNetCore.Modules.Nancy/TenantNancyBootstrapperFactory.cs delete mode 100644 src/Dotnettency.AspNetCore.Modules.Nancy/TenantShellNancyExtensions.cs create mode 100644 src/Dotnettency.AspNetCore/IServiceCollectionExtensions.cs delete mode 100644 src/Dotnettency.AspNetCore/MultitenancyOptionsBuilder.cs create mode 100644 src/Dotnettency.Tests/Dotnettency.Tests.csproj create mode 100644 src/Dotnettency.Tests/FooTest.cs diff --git a/src/Dotnettency.AspNetCore.MiddlewarePipeline/MultitenancyOptionsBuilderExtensions.cs b/src/Dotnettency.AspNetCore.MiddlewarePipeline/MultitenancyOptionsBuilderExtensions.cs index 14ad8c7..b6cd1dc 100644 --- a/src/Dotnettency.AspNetCore.MiddlewarePipeline/MultitenancyOptionsBuilderExtensions.cs +++ b/src/Dotnettency.AspNetCore.MiddlewarePipeline/MultitenancyOptionsBuilderExtensions.cs @@ -1,12 +1,10 @@ using Dotnettency.AspNetCore.MiddlewarePipeline; -using Microsoft.Extensions.DependencyInjection; using System; namespace Dotnettency { public static class MultitenancyOptionsBuilderExtensions { - [Obsolete("Use AddPerTenantMiddleware() instead, and then in Configure() call the the new IRouteBuilder extensions methods to route through a tenant middleware pipeline.")] public static MultitenancyOptionsBuilder ConfigureTenantMiddleware( this MultitenancyOptionsBuilder builder, Action> configureOptions) diff --git a/src/Dotnettency.AspNetCore.Modules.Nancy/Dotnettency.AspNetCore.Modules.Nancy.csproj b/src/Dotnettency.AspNetCore.Modules.Nancy/Dotnettency.AspNetCore.Modules.Nancy.csproj deleted file mode 100644 index 9a0b032..0000000 --- a/src/Dotnettency.AspNetCore.Modules.Nancy/Dotnettency.AspNetCore.Modules.Nancy.csproj +++ /dev/null @@ -1,17 +0,0 @@ - - - - netstandard2.0 - - - - - - - - - - - - - diff --git a/src/Dotnettency.AspNetCore.Modules.Nancy/ITenantNancyBootstrapperAccessor.cs b/src/Dotnettency.AspNetCore.Modules.Nancy/ITenantNancyBootstrapperAccessor.cs deleted file mode 100644 index 754c64b..0000000 --- a/src/Dotnettency.AspNetCore.Modules.Nancy/ITenantNancyBootstrapperAccessor.cs +++ /dev/null @@ -1,11 +0,0 @@ -using System; -using System.Threading.Tasks; - -namespace Dotnettency.AspNetCore.Modules.Nancy -{ - public interface ITenantNancyBootstrapperAccessor - where TTenant : class - { - Lazy>> Bootstrapper { get; } - } -} \ No newline at end of file diff --git a/src/Dotnettency.AspNetCore.Modules.Nancy/ITenantNancyBootstrapperFactory.cs b/src/Dotnettency.AspNetCore.Modules.Nancy/ITenantNancyBootstrapperFactory.cs deleted file mode 100644 index 2fe4d16..0000000 --- a/src/Dotnettency.AspNetCore.Modules.Nancy/ITenantNancyBootstrapperFactory.cs +++ /dev/null @@ -1,10 +0,0 @@ -using System.Threading.Tasks; - -namespace Dotnettency.AspNetCore.Modules.Nancy -{ - public interface ITenantNancyBootstrapperFactory - where TTenant : class - { - Task> Get(TTenant currentTenant); - } -} \ No newline at end of file diff --git a/src/Dotnettency.AspNetCore.Modules.Nancy/Module/TestNancyModule.cs b/src/Dotnettency.AspNetCore.Modules.Nancy/Module/TestNancyModule.cs deleted file mode 100644 index 94aa14a..0000000 --- a/src/Dotnettency.AspNetCore.Modules.Nancy/Module/TestNancyModule.cs +++ /dev/null @@ -1,55 +0,0 @@ -using Nancy; -//using AppFunc = Func, Task>; - -namespace Dotnettency.AspNetCore.Modules.Nancy -{ - public class TestNancyModule : NancyModule - { - - - - public TestNancyModule() - { - Get("/greet/{name}", x => - { - return string.Concat("Hello ", x.name); - }); - - - // IApplicationBuilder appBuilder = null; - - //foreach (var module in NancyModules) - //{ - // // Create an owin bridge for each owin module. - // module.OwinBridge = appBuilder.UseOwin(addToPipeline => - // { - // addToPipeline(next => - // { - - // var owinAppBuilder = new AppBuilder(); - // owinAppBuilder.Properties["builder.DefaultApp"] = next; - // // Uses the owin middleware. - // owinAppBuilder.UseNancy((options) => { options.Bootstrapper = new CustomBootstrapper(); }); - - - // return owinAppBuilder.Build(); - - // }); - - // }).Build(); - - - - // module.OwinPipeline = appBuilder.UseOwin(pipeline => - // { - // pipeline(next => - // { - // // do something before - // app.UseNancy(); - // // do something after - // }); - // }); - //} - } - } -} diff --git a/src/Dotnettency.AspNetCore.Modules.Nancy/Module/TestNancyRoutedModule.cs b/src/Dotnettency.AspNetCore.Modules.Nancy/Module/TestNancyRoutedModule.cs deleted file mode 100644 index 2c71802..0000000 --- a/src/Dotnettency.AspNetCore.Modules.Nancy/Module/TestNancyRoutedModule.cs +++ /dev/null @@ -1,35 +0,0 @@ -using Microsoft.AspNetCore.Http; -using Microsoft.AspNetCore.Routing; -using Microsoft.Extensions.DependencyInjection; - -namespace Dotnettency.AspNetCore.Modules.Nancy -{ - public class TestNancyRoutedModule : RoutedModuleBase - { - public TestNancyRoutedModule() - { - // IsSystemModule = false; - } - - public override void ConfigureRoutes(IRouteBuilder routes) - { - - RequestDelegate handler = (c) => - { - var name = c.GetRouteValue("name"); - return c.Response.WriteAsync($"Hi {name}, from module: {this.GetType().Name}"); - }; - - // routes.MapMiddlewareRoute - - // routes.MapMiddlewareRoute - routes.MapGet("hello/{name}", handler); - - } - - public override void ConfigureServices(IServiceCollection services) - { - // throw new NotImplementedException(); - } - } -} diff --git a/src/Dotnettency.AspNetCore.Modules.Nancy/NancyImpl/AlreadyKnownRouteResolver.cs b/src/Dotnettency.AspNetCore.Modules.Nancy/NancyImpl/AlreadyKnownRouteResolver.cs deleted file mode 100644 index a3d10f1..0000000 --- a/src/Dotnettency.AspNetCore.Modules.Nancy/NancyImpl/AlreadyKnownRouteResolver.cs +++ /dev/null @@ -1,55 +0,0 @@ -using Nancy; -using Nancy.Configuration; -using System.Linq; -using nancyrouting = global::Nancy.Routing; - -namespace Dotnettency.AspNetCore.Modules.Nancy -{ - public class AlreadyKnownRouteResolver : nancyrouting.IRouteResolver - { - private readonly global::Nancy.Routing.Route _route; - private readonly INancyModule _module; - private readonly nancyrouting.Trie.MatchResult _matchResult; - private readonly GlobalizationConfiguration _globalizationConfiguraton; - - public AlreadyKnownRouteResolver() - { - } - - public AlreadyKnownRouteResolver(INancyEnvironment environment, nancyrouting.Route route, INancyModule module, nancyrouting.Trie.MatchResult matchResult) - { - _globalizationConfiguraton = environment.GetValue(); - _route = route; - _module = module; - _matchResult = matchResult; - } - - public nancyrouting.ResolveResult Resolve(NancyContext context) - { - return BuildResult(context, _matchResult); - } - - private nancyrouting.ResolveResult BuildResult(NancyContext context, nancyrouting.Trie.MatchResult result) - { - - context.NegotiationContext.SetModule(_module); - var route = _module.Routes.ElementAt(result.RouteIndex); - var parameters = DynamicDictionary.Create(result.Parameters, _globalizationConfiguraton); - - return new nancyrouting.ResolveResult - { - Route = route, - Parameters = parameters, - Before = _module.Before, - After = _module.After, - OnError = _module.OnError - }; - - } - - - } - - - -} \ No newline at end of file diff --git a/src/Dotnettency.AspNetCore.Modules.Nancy/NancyImpl/CustomNancyModuleBuilder.cs b/src/Dotnettency.AspNetCore.Modules.Nancy/NancyImpl/CustomNancyModuleBuilder.cs deleted file mode 100644 index 5f24367..0000000 --- a/src/Dotnettency.AspNetCore.Modules.Nancy/NancyImpl/CustomNancyModuleBuilder.cs +++ /dev/null @@ -1,151 +0,0 @@ -using System; -using System.Threading.Tasks; - -namespace Dotnettency.AspNetCore.Modules.Nancy -{ - ///// - ///// Default implementation for building a full configured instance. - ///// - //public class CustomNancyModuleBuilder : INancyModuleBuilder - //{ - - // private readonly IViewFactory viewFactory; - // private readonly IResponseFormatterFactory responseFormatterFactory; - // private readonly IModelBinderLocator modelBinderLocator; - // private readonly IModelValidatorLocator validatorLocator; - // private readonly IRouteBuilder routeBuilder; - - // /// - // /// Initializes a new instance of the class. - // /// - // /// The instance that should be assigned to the module. - // /// An instance that should be used to create a response formatter for the module. - // /// A instance that should be assigned to the module. - // /// A instance that should be assigned to the module. - // public CustomNancyModuleBuilder(IViewFactory viewFactory, - // IResponseFormatterFactory responseFormatterFactory, - // IModelBinderLocator modelBinderLocator, - // IModelValidatorLocator validatorLocator, - // IRouteBuilder routeBuilder) - // { - - // this.viewFactory = viewFactory; - // this.responseFormatterFactory = responseFormatterFactory; - // this.modelBinderLocator = modelBinderLocator; - // this.validatorLocator = validatorLocator; - // this.routeBuilder = routeBuilder; - // } - - - - // /// - // /// Builds a fully configured instance, based upon the provided . - // /// - // /// The that should be configured. - // /// The current request context. - // /// A fully configured instance. - // public INancyModule BuildModule(INancyModule module, NancyContext context) - // { - // module.Context = context; - // module.Response = this.responseFormatterFactory.Create(context); - // module.ViewFactory = this.viewFactory; - // module.ModelBinderLocator = this.modelBinderLocator; - // module.ValidatorLocator = this.validatorLocator; - - // IApplicationBuilder appBuilder = GetAppBuilder(); - // INancyModule[] nancyModules = GetNancyModules(); - - // foreach (var nancyModule in nancyModules) - // { - // var customRouter = ConvertNancyModuleRoutesToAspNetCoreRouter(module.Routes.ToArray(), appBuilder); - // } - - // return module; - // } - - // private INancyModule[] GetNancyModules() - // { - // throw new NotImplementedException(); - // } - - // private IApplicationBuilder GetAppBuilder() - // { - // throw new NotImplementedException(); - // } - - // private CustomRouter ConvertNancyModuleRoutesToAspNetCoreRouter(Nancy.Routing.Route[] routes, IApplicationBuilder appBuilder) - // { - - - // var router = new CustomRouter(routes, appBuilder); - // return router; - // } - - - // public class CustomRouter : IRouter - // { - // private Nancy.Routing.Route[] _routes; - // private IApplicationBuilder _appBuilder; - - // public Nancy.Routing.Route MatchedRoute { get; set; } - - // public INancyModule MatchedModule { get; set; } - - // public CustomRouter(Nancy.Routing.Route[] routes, IApplicationBuilder appBuilder) - // { - // _routes = routes; - // _appBuilder = appBuilder; - - // // create a new owin pipeline for the nancy module to operate within. - // var owinBridge = appBuilder.UseOwin(addToPipeline => - // { - // addToPipeline(next => - // { - // var owinAppBuilder = new AppBuilder(); - // owinAppBuilder.Properties["builder.DefaultApp"] = next; - // owinAppBuilder.UseNancy(); - // // Uses the owin middleware. - // owinAppBuilder.UseNancy((options) => - // { - // options.Bootstrapper = new CustomBootstrapper(() => - // { - // return new AlreadyKnownRouteResolver(null, this.MatchedRoute, this.MatchedModule) - // }); - // }); - // return owinAppBuilder.Build(); - - // }); - - // }).Build(); - - // } - - // public Microsoft.AspNetCore.Http.RequestDelegate OwinBridge { get; internal set; } - - // public VirtualPathData GetVirtualPath(VirtualPathContext context) - // { - // throw new NotImplementedException(); - // } - - // public Task RouteAsync(RouteContext context) - // { - // var result = FindMatchingRoute(context, _routes); - // if (result != null) - // { - // context.Handler = - // } - - // } - - // public int MyProperty { get; set; } - - // private object FindMatchingRoute(RouteContext context, Nancy.Routing.Route[] routes) - // { - // throw new NotImplementedException(); - // } - - - // } - - //} -} \ No newline at end of file diff --git a/src/Dotnettency.AspNetCore.Modules.Nancy/NancyImpl/NancyHandler.cs b/src/Dotnettency.AspNetCore.Modules.Nancy/NancyImpl/NancyHandler.cs deleted file mode 100644 index ce88fef..0000000 --- a/src/Dotnettency.AspNetCore.Modules.Nancy/NancyImpl/NancyHandler.cs +++ /dev/null @@ -1,182 +0,0 @@ -using Microsoft.AspNetCore.Http; -using Microsoft.AspNetCore.Http.Features; -using Nancy; -using Nancy.IO; -using System; -using System.Collections.Generic; -using System.Globalization; -using System.Linq; -using System.Threading.Tasks; - -namespace Dotnettency.AspNetCore.Container -{ - /// - /// Bridges the communication between Nancy and ASP.NET CORE based hosting. - /// - public class NancyHandler - { - private readonly INancyEngine engine; - - /// - /// Initializes a new instance of the type for the specified . - /// - /// An instance, that should be used by the handler. - public NancyHandler(INancyEngine engine) - { - this.engine = engine; - } - - /// - /// Processes the ASP.NET request with Nancy. - /// - /// The of the request. - public async Task ProcessRequest(HttpContext httpContext, Func performPassThrough, RequestDelegate next) - { - var request = CreateNancyRequest(httpContext); - using (var nancyContext = await this.engine.HandleRequest(request).ConfigureAwait(false)) - { - await SetNancyResponseToHttpResponse(httpContext, nancyContext, performPassThrough, next); - } - } - - private async Task SetNancyResponseToHttpResponse(HttpContext httpContext, NancyContext nancyContext, Func performPassThrough, RequestDelegate next) - { - if (performPassThrough(nancyContext)) - { - await next.Invoke(httpContext); - } - - SetHttpResponseHeaders(httpContext, nancyContext.Response); - - if (nancyContext.Response.ContentType != null) - { - httpContext.Response.ContentType = nancyContext.Response.ContentType; - } - - //if (IsOutputBufferDisabled()) - //{ - // context.Response.BufferOutput = false; - //} - - httpContext.Response.StatusCode = (int)nancyContext.Response.StatusCode; - - if (nancyContext.Response.ReasonPhrase != null) - { - httpContext.Response.HttpContext.Features.Get().ReasonPhrase = nancyContext.Response.ReasonPhrase; - } - // response.Contents.Invoke(new NancyResponseStream(context.Response.f)); - nancyContext.Response.Contents.Invoke(httpContext.Response.Body); - } - - private static Request CreateNancyRequest(HttpContext context) - { - var incomingHeaders = context.Request.Headers.ToDictionary(a => a.Key, b => b.Value.AsEnumerable()); - - var expectedRequestLength = - GetExpectedRequestLength(incomingHeaders); - - var basePath = context.Request.PathBase.HasValue ? context.Request.PathBase.Value.TrimEnd('/') : ""; - var path = context.Request.Path.Value; - - // var path = context.Request.Url.AbsolutePath.Substring(basePath.Length); - path = string.IsNullOrWhiteSpace(path) ? "/" : path; - var uri = context.Request.GetUri(); - var nancyUrl = new Url - { - Scheme = uri.Scheme, - HostName = uri.Host, - Port = uri.Port, - BasePath = basePath, - Path = path, - Query = uri.Query, - }; - - - var clientCert = context.Connection.ClientCertificate; - //if (clientCert != null && clientCert.RawData != null && clientCert.RawData.Length != 0) - //{ - // // certificate = cert.RawData; - //} - - //using (var requestBodyStream = new MemoryStream()) - //{ - // var requestBody = context.Request.Body; - // await requestBody.CopyToAsync(requestBodyStream); - // requestBodyStream.Seek(0, SeekOrigin.Begin); - - //} - - RequestStream body = null; - - if (expectedRequestLength != 0) - { - // requestBodyStream.Seek(0, SeekOrigin.Begin); - - body = RequestStream.FromStream(context.Request.Body, expectedRequestLength, StaticConfiguration.DisableRequestStreamSwitching ?? true); - } - - var protocol = context.Request.Protocol; - // var protocolVersion = context.Request.ServerVariables["HTTP_VERSION"]; - var method = context.Request.Method; - var remoteIp = context.Connection.RemoteIpAddress.ToString(); - - - return new Request( - method.ToUpperInvariant(), - nancyUrl, - body, - incomingHeaders, - remoteIp, - clientCert, - protocol); - } - - private static long GetExpectedRequestLength(IDictionary> incomingHeaders) - { - if (incomingHeaders == null) - { - return 0; - } - - if (!incomingHeaders.ContainsKey("Content-Length")) - { - return 0; - } - - var headerValue = - incomingHeaders["Content-Length"].SingleOrDefault(); - - if (headerValue == null) - { - return 0; - } - - //long contentLength; - if (!long.TryParse(headerValue, NumberStyles.Any, CultureInfo.InvariantCulture, out long contentLength)) - { - return 0; - } - - return contentLength; - } - - private static void SetHttpResponseHeaders(HttpContext context, Response response) - { - context.Response.OnStarting(state => - { - var httpContext = (HttpContext)state; - foreach (var header in response.Headers.ToDictionary(x => x.Key, x => x.Value)) - { - httpContext.Response.Headers.Add(header.Key, header.Value); - } - - foreach (var cookie in response.Cookies.ToArray()) - { - httpContext.Response.Headers.Add("Set-Cookie", cookie.ToString()); - } - - return Task.FromResult(0); - }, context); - } - } -} diff --git a/src/Dotnettency.AspNetCore.Modules.Nancy/NancyImpl/NancyPassThroughOptions.cs b/src/Dotnettency.AspNetCore.Modules.Nancy/NancyImpl/NancyPassThroughOptions.cs deleted file mode 100644 index 75d5f04..0000000 --- a/src/Dotnettency.AspNetCore.Modules.Nancy/NancyImpl/NancyPassThroughOptions.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System; -using Nancy; -using System.Linq; - -namespace Dotnettency.AspNetCore.Modules.Nancy -{ - /// - /// Extensions for the NancyOptions class. - /// - public static class NancyPassThroughOptions - { - /// - /// Tells the NancyMiddleware to pass through when - /// response has one of the given status codes. - /// - /// The Nancy options. - /// The HTTP status code. - public static Func PassThroughWhenStatusCodesAre(params global::Nancy.HttpStatusCode[] httpStatusCode) - { - Func func = context => httpStatusCode.Any(code => context.Response.StatusCode == code); - return func; - } - } -} diff --git a/src/Dotnettency.AspNetCore.Modules.Nancy/NancyImpl/TenantContainerNancyBootstrapper.cs b/src/Dotnettency.AspNetCore.Modules.Nancy/NancyImpl/TenantContainerNancyBootstrapper.cs deleted file mode 100644 index 2bf9115..0000000 --- a/src/Dotnettency.AspNetCore.Modules.Nancy/NancyImpl/TenantContainerNancyBootstrapper.cs +++ /dev/null @@ -1,223 +0,0 @@ -using System; -using System.Collections.Generic; -using Dotnettency.Container; -using Nancy; -using Nancy.Bootstrapper; -using Nancy.Configuration; -using Nancy.Diagnostics; -using System.Linq; -using Microsoft.Extensions.DependencyInjection; -using Nancy.ViewEngines; - -namespace Dotnettency.AspNetCore.Modules.Nancy -{ - - public class TenantContainerNancyBootstrapper : NancyBootstrapperWithRequestContainerBase, IDisposable - where TTenant : class - { - - private readonly ITenantContainerAdaptor _applicationContainer; - - private bool isDisposing = false; - - public ITenantContainerAdaptor RequestContainerAdaptor { get; set; } - - - //public int ITenantContainerAdaptor { get; set; } - - public TenantContainerNancyBootstrapper(ITenantContainerAdaptor applicationContainer) - { - _applicationContainer = applicationContainer; - } - - #region Container Factories - - protected override ITenantContainerAdaptor GetApplicationContainer() - { - return _applicationContainer; - } - - protected override ITenantContainerAdaptor CreateRequestContainer(NancyContext context) - { - var perRequestContainer = RequestContainerAdaptor; - return perRequestContainer; - } - - - #endregion - - #region From ApplicationContainer - - protected override IEnumerable GetAllModules(ITenantContainerAdaptor container) - { - var sp = this.ApplicationContainer; - return sp.GetServices(); - } - - public override INancyEnvironment GetEnvironment() - { - var sp = this.ApplicationContainer; - return sp.GetService(); - } - - protected override IEnumerable GetApplicationStartupTasks() - { - var sp = this.ApplicationContainer; - return sp.GetServices(); - } - - protected override IDiagnostics GetDiagnostics() - { - var sp = ApplicationContainer; - return sp.GetService(); - } - - protected override INancyEngine GetEngineInternal() - { - var sp = ApplicationContainer; - return sp.GetService(); - } - - protected override INancyEnvironmentConfigurator GetEnvironmentConfigurator() - { - var sp = ApplicationContainer; - return sp.GetService(); - } - - protected override IEnumerable GetRegistrationTasks() - { - var sp = ApplicationContainer; - return sp.GetServices(); - } - - #endregion - - - protected override INancyModule GetModule(ITenantContainerAdaptor container, Type moduleType) - { - var sp = container; - return (INancyModule)sp.GetService(moduleType); - } - - protected override IEnumerable RegisterAndGetRequestStartupTasks(ITenantContainerAdaptor container, Type[] requestStartupTypes) - { - var sp = container; - return requestStartupTypes.Select(sp.GetService).Cast().ToArray(); - } - - protected override void RegisterBootstrapperTypes(ITenantContainerAdaptor applicationContainer) - { - applicationContainer.Configure((services) => - { - services.AddSingleton(this); - services.AddSingleton(); - }); - } - - protected override void RegisterCollectionTypes(ITenantContainerAdaptor container, IEnumerable collectionTypeRegistrationsn) - { - container.Configure((services) => - { - foreach (var collectionTypeRegistration in collectionTypeRegistrationsn) - { - foreach (var implementationType in collectionTypeRegistration.ImplementationTypes) - { - RegisterType( - collectionTypeRegistration.RegistrationType, - implementationType, - container.Role == ContainerRole.Scoped ? Lifetime.PerRequest : collectionTypeRegistration.Lifetime, - services); - } - } - }); - } - - protected override void RegisterTypes(ITenantContainerAdaptor container, IEnumerable typeRegistrations) - { - container.Configure((services) => - { - foreach (var typeRegistration in typeRegistrations) - { - - RegisterType( - typeRegistration.RegistrationType, - typeRegistration.ImplementationType, - container.Role == ContainerRole.Scoped ? Lifetime.PerRequest : typeRegistration.Lifetime, - services); - } - }); - } - protected override void RegisterInstances(ITenantContainerAdaptor container, IEnumerable instanceRegistrations) - { - container.Configure((services) => - { - foreach (var instanceRegistration in instanceRegistrations) - { - services.AddSingleton(instanceRegistration.RegistrationType, instanceRegistration.Implementation); - } - }); - } - - protected override void RegisterNancyEnvironment(ITenantContainerAdaptor container, INancyEnvironment environment) - { - container.Configure((services) => - { - services.AddSingleton(environment); - }); - } - - protected override void RegisterRequestContainerModules(ITenantContainerAdaptor container, IEnumerable moduleRegistrationTypes) - { - container.Configure((services) => - { - foreach (var registrationType in moduleRegistrationTypes) - { - services.AddTransient(typeof(INancyModule), registrationType.ModuleType); - } - }); - } - - #region Helper Methods - - protected void RegisterType(Type registrationType, Type implementationType, Lifetime lifetime, IServiceCollection services) - { - switch (lifetime) - { - case Lifetime.Transient: - services.AddTransient(registrationType, implementationType); - break; - - case Lifetime.Singleton: - services.AddSingleton(registrationType, implementationType); - break; - case Lifetime.PerRequest: - services.AddScoped(registrationType, implementationType); - break; - default: - throw new ArgumentOutOfRangeException("lifetime", lifetime, String.Format("Unknown Lifetime: {0}.", lifetime)); - } - - } - - #endregion - - //protected override Func InternalConfiguration - //{ - // get - // { - // return NancyInternalConfiguration.WithOverrides(x => x.NancyModuleBuilder = typeof(CustomNancyModuleBuilder)); - // } - //} - - public new void Dispose() - { - if (this.isDisposing) - { - return; - } - - this.isDisposing = true; - base.Dispose(); - } - } -} diff --git a/src/Dotnettency.AspNetCore.Modules.Nancy/NancyMiddleware.cs b/src/Dotnettency.AspNetCore.Modules.Nancy/NancyMiddleware.cs deleted file mode 100644 index f05a46f..0000000 --- a/src/Dotnettency.AspNetCore.Modules.Nancy/NancyMiddleware.cs +++ /dev/null @@ -1,66 +0,0 @@ -using System.Threading.Tasks; -using Microsoft.AspNetCore.Builder; -using Microsoft.AspNetCore.Http; -using Microsoft.Extensions.Logging; -using Dotnettency.Container; -using Dotnettency.AspNetCore.Container; - -namespace Dotnettency.AspNetCore.Modules.Nancy -{ - - public class NancyMiddleware - where TTenant : class - { - - private readonly RequestDelegate _next; - private readonly IApplicationBuilder _rootApp; - private readonly ILogger> _logger; - // private readonly IModuleManager _moduleManager; - - public NancyMiddleware( - RequestDelegate next, - IApplicationBuilder rootApp, - ILogger> logger - ) - { - _next = next; - _rootApp = rootApp; - _logger = logger; - // _moduleManager = moduleManager; - } - - - - public async Task Invoke(HttpContext context, ITenantNancyBootstrapperAccessor tenantNancyBootstrapper, ITenantContainerAccessor tenantContainerAccessor, ITenantRequestContainerAccessor tenantRequestContainerAccessor) - { - - // get the nancy bootstrapper, - // adjust its request container - give it the current request container to return. - // get the nancy engine - - // var tenantContainer = await tenantContainerAccessor.TenantContainer.Value; - var tenantRequestContainer = await tenantRequestContainerAccessor.TenantRequestContainer.Value; - var nancyBootstrapper = await tenantNancyBootstrapper.Bootstrapper.Value; - - if (tenantRequestContainer == null || nancyBootstrapper == null) - { - await _next.Invoke(context); - return; - } - - // swap out nancy request services. - ITenantContainerAdaptor old = nancyBootstrapper.RequestContainerAdaptor; - try - { - nancyBootstrapper.RequestContainerAdaptor = tenantRequestContainer.RequestContainer; - var engine = nancyBootstrapper.GetEngine(); - var nancyHandler = new NancyHandler(engine); - await nancyHandler.ProcessRequest(context, NancyPassThroughOptions.PassThroughWhenStatusCodesAre(global::Nancy.HttpStatusCode.NotFound), _next); - } - finally - { - nancyBootstrapper.RequestContainerAdaptor = old; - } - } - } -} diff --git a/src/Dotnettency.AspNetCore.Modules.Nancy/ServiceCollectionExtensions.cs b/src/Dotnettency.AspNetCore.Modules.Nancy/ServiceCollectionExtensions.cs deleted file mode 100644 index 791e046..0000000 --- a/src/Dotnettency.AspNetCore.Modules.Nancy/ServiceCollectionExtensions.cs +++ /dev/null @@ -1,20 +0,0 @@ -using Dotnettency.AspNetCore.Modules.Nancy; -using Microsoft.Extensions.DependencyInjection; - -namespace Dotnettency -{ - - public static class ServiceCollectionExtensions - { - - public static IServiceCollection AddNancy(this IServiceCollection services) - where TTenant : class - { - services.AddScoped, TenantNancyBootstrapperFactory>(); - services.AddScoped, TenantNancyBootstrapperAccessor>(); - return services; - } - - - } -} diff --git a/src/Dotnettency.AspNetCore.Modules.Nancy/TenantNancyBootstrapperAccessor.cs b/src/Dotnettency.AspNetCore.Modules.Nancy/TenantNancyBootstrapperAccessor.cs deleted file mode 100644 index 8e12428..0000000 --- a/src/Dotnettency.AspNetCore.Modules.Nancy/TenantNancyBootstrapperAccessor.cs +++ /dev/null @@ -1,41 +0,0 @@ -using Dotnettency; -using System; -using System.Threading.Tasks; - -namespace Dotnettency.AspNetCore.Modules.Nancy -{ - public class TenantNancyBootstrapperAccessor : ITenantNancyBootstrapperAccessor - where TTenant : class - { - private readonly ITenantShellAccessor _tenantShellAccessor; - private readonly ITenantNancyBootstrapperFactory _factory; - - public TenantNancyBootstrapperAccessor(ITenantShellAccessor tenantShellAccessor, ITenantNancyBootstrapperFactory factory) - { - _tenantShellAccessor = tenantShellAccessor; - _factory = factory; - - Bootstrapper = new Lazy>>(async () => - { - // return new Task(async () => - //{ - var tenantShell = await tenantShellAccessor.CurrentTenantShell.Value; - if (tenantShell == null) - { - return null; - } - - var tenant = tenantShell?.Tenant; - var lazy = tenantShell.GetOrAddNancyBootstrapper(() => - { - return factory.Get(tenant); - }); - var container = await lazy.Value; - return container; - }); - } - - public Lazy>> Bootstrapper { get; private set; } - - } -} \ No newline at end of file diff --git a/src/Dotnettency.AspNetCore.Modules.Nancy/TenantNancyBootstrapperFactory.cs b/src/Dotnettency.AspNetCore.Modules.Nancy/TenantNancyBootstrapperFactory.cs deleted file mode 100644 index 6e289a5..0000000 --- a/src/Dotnettency.AspNetCore.Modules.Nancy/TenantNancyBootstrapperFactory.cs +++ /dev/null @@ -1,23 +0,0 @@ -using Dotnettency.Container; -using System.Threading.Tasks; - -namespace Dotnettency.AspNetCore.Modules.Nancy -{ - public class TenantNancyBootstrapperFactory : ITenantNancyBootstrapperFactory - where TTenant : class - { - - private readonly ITenantContainerAccessor _tenantContainerAccessor; - - public TenantNancyBootstrapperFactory(ITenantContainerAccessor tenantContainerAccessor) - { - _tenantContainerAccessor = tenantContainerAccessor; - } - - public async Task> Get(TTenant currentTenant) - { - var tenantContainer = await _tenantContainerAccessor.TenantContainer.Value; - return new TenantContainerNancyBootstrapper(tenantContainer); - } - } -} \ No newline at end of file diff --git a/src/Dotnettency.AspNetCore.Modules.Nancy/TenantShellNancyExtensions.cs b/src/Dotnettency.AspNetCore.Modules.Nancy/TenantShellNancyExtensions.cs deleted file mode 100644 index 1b766f0..0000000 --- a/src/Dotnettency.AspNetCore.Modules.Nancy/TenantShellNancyExtensions.cs +++ /dev/null @@ -1,22 +0,0 @@ -using System; -using System.Threading.Tasks; -using Dotnettency.AspNetCore.Modules.Nancy; - -namespace Dotnettency -{ - public static class TenantShellNancyExtensions - { - public static Lazy>> GetOrAddNancyBootstrapper(this TenantShell tenantShell, Func>> nancyBootstrapper) - where TTenant : class - { - var result = tenantShell.Properties.GetOrAdd(nameof(TenantShellNancyExtensions), - (a) => - { - // var factory = containerAdaptorFactory(); - return new Lazy>>(nancyBootstrapper); - }) as Lazy>>; - return result; - } - - } -} \ No newline at end of file diff --git a/src/Dotnettency.AspNetCore/IServiceCollectionExtensions.cs b/src/Dotnettency.AspNetCore/IServiceCollectionExtensions.cs new file mode 100644 index 0000000..8da5e12 --- /dev/null +++ b/src/Dotnettency.AspNetCore/IServiceCollectionExtensions.cs @@ -0,0 +1,23 @@ +using Microsoft.AspNetCore.Http; +using Microsoft.Extensions.DependencyInjection; +using System; + +namespace Dotnettency +{ + public static class IServiceCollectionExtensions + { + public static IServiceProvider AddAspNetCoreMultiTenancy(this IServiceCollection serviceCollection, Action> configure) + where TTenant : class + { + + var sp = serviceCollection.AddMultiTenancy((builder) => + { + builder.Services.AddSingleton(); + configure(builder); + }); + + return sp; + } + } + +} \ No newline at end of file diff --git a/src/Dotnettency.AspNetCore/MultitenancyOptionsBuilder.cs b/src/Dotnettency.AspNetCore/MultitenancyOptionsBuilder.cs deleted file mode 100644 index f86e835..0000000 --- a/src/Dotnettency.AspNetCore/MultitenancyOptionsBuilder.cs +++ /dev/null @@ -1,19 +0,0 @@ -using Dotnettency.AspNetCore; -using Microsoft.AspNetCore.Http; -using Microsoft.Extensions.DependencyInjection; - -namespace Dotnettency -{ - public static class MultitenancyOptionsBuilderExtensions - { - - public static MultitenancyOptionsBuilder AddDefaultHttpServices(this MultitenancyOptionsBuilder builder) - where TTenant : class - { - builder.Services.AddSingleton, RequestAuthorityTenantDistinguisherFactory>(); - builder.Services.AddSingleton(); - - return builder; - } - } -} diff --git a/src/Dotnettency.AspNetCore/RequestAuthorityTenantDistinguisherFactory.cs b/src/Dotnettency.AspNetCore/RequestAuthorityTenantDistinguisherFactory.cs index def9ac6..ca98958 100644 --- a/src/Dotnettency.AspNetCore/RequestAuthorityTenantDistinguisherFactory.cs +++ b/src/Dotnettency.AspNetCore/RequestAuthorityTenantDistinguisherFactory.cs @@ -15,4 +15,5 @@ protected override TenantDistinguisher GetTenantDistinguisher(HttpContext contex return new TenantDistinguisher(uri); } } + } \ No newline at end of file diff --git a/src/Dotnettency.Sample/Startup.cs b/src/Dotnettency.Sample/Startup.cs index 907b3fd..8bba332 100644 --- a/src/Dotnettency.Sample/Startup.cs +++ b/src/Dotnettency.Sample/Startup.cs @@ -11,6 +11,7 @@ using Dotnettency.Container; using Dotnettency.AspNetCore.Modules; using System.Threading.Tasks; +using Dotnettency.AspNetCore; namespace Sample { @@ -34,10 +35,10 @@ public IServiceProvider ConfigureServices(IServiceCollection services) _loggerFactory.AddConsole(); var logger = _loggerFactory.CreateLogger(); - var serviceProvider = services.AddMultiTenancy((options) => + var serviceProvider = services.AddAspNetCoreMultiTenancy((options) => { options - .AddDefaultHttpServices() + .DistinguishTenantsWith>() .InitialiseTenant() // factory class to load tenant when it needs to be initialised for the first time. Can use overload to provide a delegate instead. .ConfigureTenantContainers((containerBuilder) => { diff --git a/src/Dotnettency.Tests/Dotnettency.Tests.csproj b/src/Dotnettency.Tests/Dotnettency.Tests.csproj new file mode 100644 index 0000000..5764dcd --- /dev/null +++ b/src/Dotnettency.Tests/Dotnettency.Tests.csproj @@ -0,0 +1,13 @@ + + + + netcoreapp2.0 + + + + + + + + + diff --git a/src/Dotnettency.Tests/FooTest.cs b/src/Dotnettency.Tests/FooTest.cs new file mode 100644 index 0000000..465284f --- /dev/null +++ b/src/Dotnettency.Tests/FooTest.cs @@ -0,0 +1,15 @@ +using System; +using Xunit; + +namespace Dotnettency.Tests +{ + public class FooTest + { + + [Fact] + public void Foo() + { + + } + } +} diff --git a/src/Sample.Mvc/Startup.cs b/src/Sample.Mvc/Startup.cs index 5fb466e..f7a2e6f 100644 --- a/src/Sample.Mvc/Startup.cs +++ b/src/Sample.Mvc/Startup.cs @@ -4,6 +4,7 @@ using Microsoft.Extensions.Logging; using Dotnettency; using System; +using Dotnettency.AspNetCore; namespace Sample.Mvc { @@ -22,10 +23,10 @@ public IServiceProvider ConfigureServices(IServiceCollection services) services.AddMvc(); - var serviceProvider = services.AddMultiTenancy((options) => + var serviceProvider = services.AddAspNetCoreMultiTenancy((options) => { options - .AddDefaultHttpServices() + .DistinguishTenantsWith>() .InitialiseTenant() // factory class to load tenant when it needs to be initialised for the first time. Can use overload to provide a delegate instead. .ConfigureTenantMiddleware((middlewareOptions) => { diff --git a/src/src.sln b/src/src.sln index cb3e316..cb7c437 100644 --- a/src/src.sln +++ b/src/src.sln @@ -32,10 +32,12 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dotnettency.AspNetCore.Host EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dotnettency.AspNetCore.MiddlewarePipeline", "Dotnettency.AspNetCore.MiddlewarePipeline\Dotnettency.AspNetCore.MiddlewarePipeline.csproj", "{5F5F8ABA-516B-44EB-AA76-CAD866D8B894}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dotnettency.AspNetCore.Modules.Nancy", "Dotnettency.AspNetCore.Modules.Nancy\Dotnettency.AspNetCore.Modules.Nancy.csproj", "{7848C00C-E4C4-470D-8FAE-FE959ABD701F}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dotnettency.AspNetCore.Modules", "Dotnettency.AspNetCore.Modules\Dotnettency.AspNetCore.Modules.csproj", "{05195457-36B8-4D50-A1C8-9CA1FF8BC944}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dotnettency.Tests", "Dotnettency.Tests\Dotnettency.Tests.csproj", "{27BFCF41-5919-4DD6-B923-2E5F3D43AC2C}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Samples", "Samples", "{8A66EA6A-F09D-4941-8E92-4DDFDA911D42}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -166,18 +168,6 @@ Global {5F5F8ABA-516B-44EB-AA76-CAD866D8B894}.Release|x64.Build.0 = Release|Any CPU {5F5F8ABA-516B-44EB-AA76-CAD866D8B894}.Release|x86.ActiveCfg = Release|Any CPU {5F5F8ABA-516B-44EB-AA76-CAD866D8B894}.Release|x86.Build.0 = Release|Any CPU - {7848C00C-E4C4-470D-8FAE-FE959ABD701F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {7848C00C-E4C4-470D-8FAE-FE959ABD701F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {7848C00C-E4C4-470D-8FAE-FE959ABD701F}.Debug|x64.ActiveCfg = Debug|Any CPU - {7848C00C-E4C4-470D-8FAE-FE959ABD701F}.Debug|x64.Build.0 = Debug|Any CPU - {7848C00C-E4C4-470D-8FAE-FE959ABD701F}.Debug|x86.ActiveCfg = Debug|Any CPU - {7848C00C-E4C4-470D-8FAE-FE959ABD701F}.Debug|x86.Build.0 = Debug|Any CPU - {7848C00C-E4C4-470D-8FAE-FE959ABD701F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {7848C00C-E4C4-470D-8FAE-FE959ABD701F}.Release|Any CPU.Build.0 = Release|Any CPU - {7848C00C-E4C4-470D-8FAE-FE959ABD701F}.Release|x64.ActiveCfg = Release|Any CPU - {7848C00C-E4C4-470D-8FAE-FE959ABD701F}.Release|x64.Build.0 = Release|Any CPU - {7848C00C-E4C4-470D-8FAE-FE959ABD701F}.Release|x86.ActiveCfg = Release|Any CPU - {7848C00C-E4C4-470D-8FAE-FE959ABD701F}.Release|x86.Build.0 = Release|Any CPU {05195457-36B8-4D50-A1C8-9CA1FF8BC944}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {05195457-36B8-4D50-A1C8-9CA1FF8BC944}.Debug|Any CPU.Build.0 = Debug|Any CPU {05195457-36B8-4D50-A1C8-9CA1FF8BC944}.Debug|x64.ActiveCfg = Debug|Any CPU @@ -190,6 +180,18 @@ Global {05195457-36B8-4D50-A1C8-9CA1FF8BC944}.Release|x64.Build.0 = Release|Any CPU {05195457-36B8-4D50-A1C8-9CA1FF8BC944}.Release|x86.ActiveCfg = Release|Any CPU {05195457-36B8-4D50-A1C8-9CA1FF8BC944}.Release|x86.Build.0 = Release|Any CPU + {27BFCF41-5919-4DD6-B923-2E5F3D43AC2C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {27BFCF41-5919-4DD6-B923-2E5F3D43AC2C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {27BFCF41-5919-4DD6-B923-2E5F3D43AC2C}.Debug|x64.ActiveCfg = Debug|Any CPU + {27BFCF41-5919-4DD6-B923-2E5F3D43AC2C}.Debug|x64.Build.0 = Debug|Any CPU + {27BFCF41-5919-4DD6-B923-2E5F3D43AC2C}.Debug|x86.ActiveCfg = Debug|Any CPU + {27BFCF41-5919-4DD6-B923-2E5F3D43AC2C}.Debug|x86.Build.0 = Debug|Any CPU + {27BFCF41-5919-4DD6-B923-2E5F3D43AC2C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {27BFCF41-5919-4DD6-B923-2E5F3D43AC2C}.Release|Any CPU.Build.0 = Release|Any CPU + {27BFCF41-5919-4DD6-B923-2E5F3D43AC2C}.Release|x64.ActiveCfg = Release|Any CPU + {27BFCF41-5919-4DD6-B923-2E5F3D43AC2C}.Release|x64.Build.0 = Release|Any CPU + {27BFCF41-5919-4DD6-B923-2E5F3D43AC2C}.Release|x86.ActiveCfg = Release|Any CPU + {27BFCF41-5919-4DD6-B923-2E5F3D43AC2C}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE From cdd5a2251e7fbf4f0effddc6eb7cf03af7791d76 Mon Sep 17 00:00:00 2001 From: Darrell Tunnell Date: Sat, 24 Mar 2018 15:00:13 +0000 Subject: [PATCH 49/86] Register service by default --- src/Dotnettency.AspNetCore/IServiceCollectionExtensions.cs | 5 ++++- src/Dotnettency.Sample/Startup.cs | 3 +-- src/Sample.Mvc/Startup.cs | 1 - 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Dotnettency.AspNetCore/IServiceCollectionExtensions.cs b/src/Dotnettency.AspNetCore/IServiceCollectionExtensions.cs index 8da5e12..34c9d29 100644 --- a/src/Dotnettency.AspNetCore/IServiceCollectionExtensions.cs +++ b/src/Dotnettency.AspNetCore/IServiceCollectionExtensions.cs @@ -1,4 +1,5 @@ -using Microsoft.AspNetCore.Http; +using Dotnettency.AspNetCore; +using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjection; using System; @@ -13,6 +14,8 @@ public static IServiceProvider AddAspNetCoreMultiTenancy(this IServiceC var sp = serviceCollection.AddMultiTenancy((builder) => { builder.Services.AddSingleton(); + builder.Services.AddSingleton, RequestAuthorityTenantDistinguisherFactory>(); + configure(builder); }); diff --git a/src/Dotnettency.Sample/Startup.cs b/src/Dotnettency.Sample/Startup.cs index 8bba332..99ad04e 100644 --- a/src/Dotnettency.Sample/Startup.cs +++ b/src/Dotnettency.Sample/Startup.cs @@ -37,8 +37,7 @@ public IServiceProvider ConfigureServices(IServiceCollection services) var serviceProvider = services.AddAspNetCoreMultiTenancy((options) => { - options - .DistinguishTenantsWith>() + options .InitialiseTenant() // factory class to load tenant when it needs to be initialised for the first time. Can use overload to provide a delegate instead. .ConfigureTenantContainers((containerBuilder) => { diff --git a/src/Sample.Mvc/Startup.cs b/src/Sample.Mvc/Startup.cs index f7a2e6f..3e44ed8 100644 --- a/src/Sample.Mvc/Startup.cs +++ b/src/Sample.Mvc/Startup.cs @@ -26,7 +26,6 @@ public IServiceProvider ConfigureServices(IServiceCollection services) var serviceProvider = services.AddAspNetCoreMultiTenancy((options) => { options - .DistinguishTenantsWith>() .InitialiseTenant() // factory class to load tenant when it needs to be initialised for the first time. Can use overload to provide a delegate instead. .ConfigureTenantMiddleware((middlewareOptions) => { From f8194e444293cdff74d37a618f230a270390764c Mon Sep 17 00:00:00 2001 From: Darrell Tunnell Date: Sun, 29 Apr 2018 12:23:20 +0100 Subject: [PATCH 50/86] #32 - Multitenant dbcontext --- .../Dotnettency.EFCore.csproj | 10 ++ .../MultitenantDbContext.cs | 110 ++++++++++++++++++ src/Dotnettency.EFCore/README.md | 77 ++++++++++++ src/src.sln | 20 +++- 4 files changed, 216 insertions(+), 1 deletion(-) create mode 100644 src/Dotnettency.EFCore/Dotnettency.EFCore.csproj create mode 100644 src/Dotnettency.EFCore/MultitenantDbContext.cs create mode 100644 src/Dotnettency.EFCore/README.md diff --git a/src/Dotnettency.EFCore/Dotnettency.EFCore.csproj b/src/Dotnettency.EFCore/Dotnettency.EFCore.csproj new file mode 100644 index 0000000..47cab64 --- /dev/null +++ b/src/Dotnettency.EFCore/Dotnettency.EFCore.csproj @@ -0,0 +1,10 @@ + + + + netstandard2.0 + + + + + + diff --git a/src/Dotnettency.EFCore/MultitenantDbContext.cs b/src/Dotnettency.EFCore/MultitenantDbContext.cs new file mode 100644 index 0000000..214a8e2 --- /dev/null +++ b/src/Dotnettency.EFCore/MultitenantDbContext.cs @@ -0,0 +1,110 @@ +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.ChangeTracking; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Threading; +using System.Threading.Tasks; + +namespace Dotnettency.EFCore +{ + public abstract class MultitenantDbContext : DbContext + where TDbContext : DbContext + where TTenant : class + { + private readonly Task _tenant; + private Lazy _tenantId; + + private TIdType TenantId + { + get + { + return _tenantId.Value; + } + } + + private static List> _setTenantIdOnSaveCallbacks = new List>(); + + public MultitenantDbContext(DbContextOptions options, Task tenant) : base(options) + { + _tenant = tenant; + _tenantId = new Lazy(() => + { + var t = _tenant.Result; + return GetTenantId(t); + }); + } + + protected virtual TIdType GetTenantId(TTenant tenant) + { + return default(TIdType); + } + + + protected void HasTenantIdFilter(ModelBuilder modelBuilder, string tenantIdPropertyName, Expression> idExpression) + where T : class + { + + modelBuilder.Entity().Property(tenantIdPropertyName); + + var newExp = Expression.Lambda>( + Expression.Equal(idExpression.Body, Expression.Property(Expression.Constant(this), + typeof(MultitenantDbContext), + nameof(TenantId))), idExpression.Parameters); + + modelBuilder.Entity().HasQueryFilter(newExp); + + Action action = (db) => + { + SetTenantIdProperty(tenantIdPropertyName, TenantId, db); + }; + _setTenantIdOnSaveCallbacks.Add(action); + + } + + public override int SaveChanges(bool acceptAllChangesOnSuccess) + { + SetTenantIdOnSave(); + return base.SaveChanges(acceptAllChangesOnSuccess); + } + + public override int SaveChanges() + { + SetTenantIdOnSave(); + return base.SaveChanges(); + } + + public override async Task SaveChangesAsync(CancellationToken cancellationToken = default(CancellationToken)) + { + SetTenantIdOnSave(); + return await base.SaveChangesAsync(cancellationToken); + } + + public override async Task SaveChangesAsync(bool acceptAllChangesOnSuccess, CancellationToken cancellationToken = default(CancellationToken)) + { + SetTenantIdOnSave(); + return await base.SaveChangesAsync(acceptAllChangesOnSuccess, cancellationToken); + } + + private static void SetTenantIdProperty(string propertyName, TIdType id, DbContext db) + where TEntity : class + { + foreach (var item in db.ChangeTracker.Entries()) + { + if (item.State == EntityState.Added) + { + item.Property(propertyName).CurrentValue = id; + } + } + } + + private void SetTenantIdOnSave() + { + ChangeTracker.DetectChanges(); + foreach (var item in _setTenantIdOnSaveCallbacks) + { + item(this); + } + } + } +} \ No newline at end of file diff --git a/src/Dotnettency.EFCore/README.md b/src/Dotnettency.EFCore/README.md new file mode 100644 index 0000000..7e6efe0 --- /dev/null +++ b/src/Dotnettency.EFCore/README.md @@ -0,0 +1,77 @@ + +## Who is this for? + +This is for people who want to use EFCore and a single database, so store data for multiple tenants. +When using their DbContext to query the database, it will automatically filter any relevant records based on the current Tenant ID. +When inerting new records, it will automatically set the Tenant ID on those records based on the current Tenant ID. + +## Show Me + +Ok, but you can also refer to the [sample](https://github.com/dazinator/Dotnettency.Samples/tree/aspnetcore20/src/Sample.EFCore.MultitenantDb) + +The following assumes you have already defined your `Tenant` class as per the basic sample and you are now adding EF Core to the mix. + +Create an Entity: + +```csharp + public class Blog + { + public int BlogId { get; set; } + public string Url { get; set; } + public int Rating { get; set; } + public List Posts { get; set; } + } +``` + +Notice it doesn't have a TenantId property. + +Derive your DbContext: + +``` + + public class SampleMultitenantDbContext : MultitenantDbContext + { + + private const string TenantIdPropertyName = "TenantId"; + + public SampleMultitenantDbContext(DbContextOptions options, Task tenant) : base(options, tenant) + { + } + + public DbSet Blogs { get; set; } + + protected override Guid GetTenantId(Tenant tenant) + { + return tenant.TenantGuid; + } + + protected override void OnModelCreating(ModelBuilder modelBuilder) + { + base.OnModelCreating(modelBuilder); + HasTenantIdFilter(modelBuilder, TenantIdPropertyName, (b) => EF.Property(b, TenantIdPropertyName)); + } + + } +``` + + +That's it. Use your `DbContext` has normal. +You will find that when you query blog entities, they will automatically be filtered by the current tenant ID. +You will find that when you insert new blog entities, they will automatically get a TenantID set to the current tenent and you can see this in the database. + + +## Explain + +Most of the magic happens in `OnModelCreating` when you call `HasTenantIdFilter` method from the base class. +This get's EF to configure: + +1. A shadow property for the entity to hold the TenantId value. +2. A global query filter for that entity. This means whenever you query this entity it will automatically apply a filter based on the current tenant ID. + +`MultitenantDbContext` doesn't stop there. It also records the fact that `Blog` is an entity that requires a TenantId. +When you call `SaveChanges` on your DbContext, it will look for any new `Blog` entities to be inserted, and will automatically set the shadow property TenantId to the +current Tenant Id value before they are insterted into the database. + +Notice that you have to override `GetTenantId()`. This is the actual value that will be stored in the database, and used in filter queries. +You are supplied with the current dotnettency `Tenant` so you can use whatver properties of your Tenant class to decide what Id value should be returned. + diff --git a/src/src.sln b/src/src.sln index cb7c437..4c520bd 100644 --- a/src/src.sln +++ b/src/src.sln @@ -34,10 +34,12 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dotnettency.AspNetCore.Midd EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dotnettency.AspNetCore.Modules", "Dotnettency.AspNetCore.Modules\Dotnettency.AspNetCore.Modules.csproj", "{05195457-36B8-4D50-A1C8-9CA1FF8BC944}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dotnettency.Tests", "Dotnettency.Tests\Dotnettency.Tests.csproj", "{27BFCF41-5919-4DD6-B923-2E5F3D43AC2C}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dotnettency.Tests", "Dotnettency.Tests\Dotnettency.Tests.csproj", "{27BFCF41-5919-4DD6-B923-2E5F3D43AC2C}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Samples", "Samples", "{8A66EA6A-F09D-4941-8E92-4DDFDA911D42}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dotnettency.EFCore", "Dotnettency.EFCore\Dotnettency.EFCore.csproj", "{2A7B6E93-5999-4941-9E59-DC9D0DA977E5}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -192,10 +194,26 @@ Global {27BFCF41-5919-4DD6-B923-2E5F3D43AC2C}.Release|x64.Build.0 = Release|Any CPU {27BFCF41-5919-4DD6-B923-2E5F3D43AC2C}.Release|x86.ActiveCfg = Release|Any CPU {27BFCF41-5919-4DD6-B923-2E5F3D43AC2C}.Release|x86.Build.0 = Release|Any CPU + {2A7B6E93-5999-4941-9E59-DC9D0DA977E5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2A7B6E93-5999-4941-9E59-DC9D0DA977E5}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2A7B6E93-5999-4941-9E59-DC9D0DA977E5}.Debug|x64.ActiveCfg = Debug|Any CPU + {2A7B6E93-5999-4941-9E59-DC9D0DA977E5}.Debug|x64.Build.0 = Debug|Any CPU + {2A7B6E93-5999-4941-9E59-DC9D0DA977E5}.Debug|x86.ActiveCfg = Debug|Any CPU + {2A7B6E93-5999-4941-9E59-DC9D0DA977E5}.Debug|x86.Build.0 = Debug|Any CPU + {2A7B6E93-5999-4941-9E59-DC9D0DA977E5}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2A7B6E93-5999-4941-9E59-DC9D0DA977E5}.Release|Any CPU.Build.0 = Release|Any CPU + {2A7B6E93-5999-4941-9E59-DC9D0DA977E5}.Release|x64.ActiveCfg = Release|Any CPU + {2A7B6E93-5999-4941-9E59-DC9D0DA977E5}.Release|x64.Build.0 = Release|Any CPU + {2A7B6E93-5999-4941-9E59-DC9D0DA977E5}.Release|x86.ActiveCfg = Release|Any CPU + {2A7B6E93-5999-4941-9E59-DC9D0DA977E5}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {4C346402-1A2A-4C65-A95F-8E696EE5CEC3} = {8A66EA6A-F09D-4941-8E92-4DDFDA911D42} + {35717DCE-7CC2-482F-A699-2FF157C2258F} = {8A66EA6A-F09D-4941-8E92-4DDFDA911D42} + EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {CDE5153E-0835-41A9-A40E-3E930F41F681} EndGlobalSection From d88de9112acbb46546d4cf473af975af3a7ae5a7 Mon Sep 17 00:00:00 2001 From: Darrell Tunnell Date: Sun, 29 Apr 2018 12:29:37 +0100 Subject: [PATCH 51/86] #32 - Updated readme --- README.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index fa083d9..5a5dd79 100644 --- a/README.md +++ b/README.md @@ -3,12 +3,16 @@ Mutlitenancy library for dotnet applications. | Branch | Build Status | Dotnettency Core Library | Middleware | Container | StructureMap | | ------------- | ------------- | ----- | ----- | ----- | ----- | -| Master |[![Build status](https://ci.appveyor.com/api/projects/status/2xi1nts54u2hamv3/branch/master?svg=true)](https://ci.appveyor.com/project/dazinator/dotnettency/branch/master) | [![Dotnettency](https://img.shields.io/nuget/v/Dotnettency.svg)](https://www.nuget.org/packages/Dotnettency/) | [![MiddlewarePipeline](https://img.shields.io/nuget/v/Dotnettency.MiddlewarePipeline.svg)](https://www.nuget.org/packages/Dotnettency.MiddlewarePipeline/) | [![Container](https://img.shields.io/nuget/v/Dotnettency.Container.svg)](https://www.nuget.org/packages/Dotnettency.Container/) | [![StructureMap](https://img.shields.io/nuget/v/Dotnettency.Container.StructureMap.svg)](https://www.nuget.org/packages/Dotnettency.Container.StructureMap/) | -| Develop | [![Build status](https://ci.appveyor.com/api/projects/status/2xi1nts54u2hamv3/branch/develop?svg=true)](https://ci.appveyor.com/project/dazinator/dotnettency/branch/develop) | [![Dotnettency](https://img.shields.io/nuget/vpre/Dotnettency.svg)](https://www.nuget.org/packages/Dotnettency/) | [![MiddlewarePipeline](https://img.shields.io/nuget/vpre/Dotnettency.MiddlewarePipeline.svg)](https://www.nuget.org/packages/Dotnettency.MiddlewarePipeline/) | [![Container](https://img.shields.io/nuget/vpre/Dotnettency.Container.svg)](https://www.nuget.org/packages/Dotnettency.Container/) | [![StructureMap](https://img.shields.io/nuget/vpre/Dotnettency.Container.StructureMap.svg)](https://www.nuget.org/packages/Dotnettency.Container.StructureMap/) | +| Master | [![Build status](https://ci.appveyor.com/api/projects/status/2xi1nts54u2hamv3/branch/master?svg=true)](https://ci.appveyor.com/project/dazinator/dotnettency/branch/master) | +| Develop | [![Build status](https://ci.appveyor.com/api/projects/status/2xi1nts54u2hamv3/branch/develop?svg=true)](https://ci.appveyor.com/project/dazinator/dotnettency/branch/develop) | +| Branch | Dotnettency Core Library | Middleware | Container | StructureMap | EF Core | +| ------------- | ------------- | ----- | ----- | ----- | ----- | +| Master | [![Dotnettency](https://img.shields.io/nuget/v/Dotnettency.svg)](https://www.nuget.org/packages/Dotnettency/) | [![MiddlewarePipeline](https://img.shields.io/nuget/v/Dotnettency.MiddlewarePipeline.svg)](https://www.nuget.org/packages/Dotnettency.MiddlewarePipeline/) | [![Container](https://img.shields.io/nuget/v/Dotnettency.Container.svg)](https://www.nuget.org/packages/Dotnettency.Container/) | [![StructureMap](https://img.shields.io/nuget/v/Dotnettency.Container.StructureMap.svg)](https://www.nuget.org/packages/Dotnettency.Container.StructureMap/) | | [![EF Core](https://img.shields.io/nuget/v/Dotnettency.EFCore.svg)](https://www.nuget.org/packages/Dotnettency.EFCore/) | +| Develop | [![Dotnettency](https://img.shields.io/nuget/vpre/Dotnettency.svg)](https://www.nuget.org/packages/Dotnettency/) | [![MiddlewarePipeline](https://img.shields.io/nuget/vpre/Dotnettency.MiddlewarePipeline.svg)](https://www.nuget.org/packages/Dotnettency.MiddlewarePipeline/) | [![Container](https://img.shields.io/nuget/vpre/Dotnettency.Container.svg)](https://www.nuget.org/packages/Dotnettency.Container/) | [![StructureMap](https://img.shields.io/nuget/vpre/Dotnettency.Container.StructureMap.svg)](https://www.nuget.org/packages/Dotnettency.Container.StructureMap/) | [![EF Core](https://img.shields.io/nuget/vpre/Dotnettency.EFCore.svg)](https://www.nuget.org/packages/Dotnettency.EFCore/) | -Heavily inspired by [saaskit](https://github.com/saaskit/saaskit) +Inspired by [saaskit](https://github.com/saaskit/saaskit) ## Resources @@ -23,6 +27,7 @@ Heavily inspired by [saaskit](https://github.com/saaskit/saaskit) - Per Tenant Containers - Per Tenant HostingEnvironment - Modules (Shared and Routed) +- Multitenant EF Core DbContext ## Tenant Injection From af646391274016c497d2f693f19793b4a53cd5d0 Mon Sep 17 00:00:00 2001 From: Darrell Tunnell Date: Sun, 29 Apr 2018 12:31:26 +0100 Subject: [PATCH 52/86] #32 - updated readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5a5dd79..fbcdb94 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ c# Dotnettency Mutlitenancy library for dotnet applications. -| Branch | Build Status | Dotnettency Core Library | Middleware | Container | StructureMap | +| Branch | Build Status | | ------------- | ------------- | ----- | ----- | ----- | ----- | | Master | [![Build status](https://ci.appveyor.com/api/projects/status/2xi1nts54u2hamv3/branch/master?svg=true)](https://ci.appveyor.com/project/dazinator/dotnettency/branch/master) | | Develop | [![Build status](https://ci.appveyor.com/api/projects/status/2xi1nts54u2hamv3/branch/develop?svg=true)](https://ci.appveyor.com/project/dazinator/dotnettency/branch/develop) | From 43b546855a4f0a9f2164fccaf4f107b204716233 Mon Sep 17 00:00:00 2001 From: Darrell Tunnell Date: Sun, 29 Apr 2018 12:32:34 +0100 Subject: [PATCH 53/86] Corrected reame formatting --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fbcdb94..85be98c 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ c# Dotnettency Mutlitenancy library for dotnet applications. | Branch | Build Status | -| ------------- | ------------- | ----- | ----- | ----- | ----- | +| ------------- | ------------- | | Master | [![Build status](https://ci.appveyor.com/api/projects/status/2xi1nts54u2hamv3/branch/master?svg=true)](https://ci.appveyor.com/project/dazinator/dotnettency/branch/master) | | Develop | [![Build status](https://ci.appveyor.com/api/projects/status/2xi1nts54u2hamv3/branch/develop?svg=true)](https://ci.appveyor.com/project/dazinator/dotnettency/branch/develop) | From 72aa4403120b38650661aa5b4e0acd049f2af878 Mon Sep 17 00:00:00 2001 From: dazinator Date: Sun, 19 Aug 2018 10:53:44 +0100 Subject: [PATCH 54/86] Enhanced logging, and special casing mvcroutehandler --- .../TenantRequestContainerAccessor.cs | 2 +- .../StructureMap/AspNetConstructorSelector.cs | 95 +++++++++++++++++-- ...ureMapContainerBuilderOptionsExtensions.cs | 3 +- .../StructureMapServiceScopeFactory.cs | 2 +- .../StructureMapTenantContainerAdaptor.cs | 44 ++++++--- .../ITenantContainerAdaptor.cs | 4 +- .../TenantContainerBuilder.cs | 2 +- 7 files changed, 125 insertions(+), 27 deletions(-) diff --git a/src/Dotnettency.AspNetCore.Container/TenantRequestContainerAccessor.cs b/src/Dotnettency.AspNetCore.Container/TenantRequestContainerAccessor.cs index f1bb2bd..8f40af3 100644 --- a/src/Dotnettency.AspNetCore.Container/TenantRequestContainerAccessor.cs +++ b/src/Dotnettency.AspNetCore.Container/TenantRequestContainerAccessor.cs @@ -29,7 +29,7 @@ public TenantRequestContainerAccessor( return null; } - var requestContainer = tenantContainer.CreateNestedContainer(); + var requestContainer = tenantContainer.CreateNestedContainer(tenantContainer.ContainerName + " - Request "); _containerEventsPublisher?.PublishNestedTenantContainerCreated(requestContainer); return new PerRequestContainer(requestContainer); }); diff --git a/src/Dotnettency.Container.StructureMap/StructureMap/AspNetConstructorSelector.cs b/src/Dotnettency.Container.StructureMap/StructureMap/AspNetConstructorSelector.cs index 10ff1ae..4b17567 100644 --- a/src/Dotnettency.Container.StructureMap/StructureMap/AspNetConstructorSelector.cs +++ b/src/Dotnettency.Container.StructureMap/StructureMap/AspNetConstructorSelector.cs @@ -2,6 +2,7 @@ /// Licenced under MIT Licence. /// With changes by Darrell Tunnell. /// +using Dotnettency.Container.StructureMap.StructureMap; using StructureMap.Graph; using StructureMap.Pipeline; using System; @@ -11,13 +12,91 @@ internal class AspNetConstructorSelector : IConstructorSelector { // ASP.NET expects registered services to be considered when selecting a ctor, SM doesn't by default. - public ConstructorInfo Find(Type pluggedType, DependencyCollection dependencies, PluginGraph graph) => - pluggedType.GetTypeInfo() - .DeclaredConstructors - .Where(ctor => ctor.IsConstructor && !ctor.IsPrivate) // IsConstructor is false for static constructors - .Select(ctor => new { Constructor = ctor, Parameters = ctor.GetParameters() }) - .Where(x => x.Parameters.All(param => graph.HasFamily(param.ParameterType) || dependencies.Any(dep => dep.Type == param.ParameterType))) - .OrderByDescending(x => x.Parameters.Length) + public ConstructorInfo Find(Type pluggedType, DependencyCollection dependencies, PluginGraph graph) + { + var typeInfo = pluggedType.GetTypeInfo(); + var constructors = typeInfo.DeclaredConstructors; + + //MvcRouteHandler + ConstructorInfo chosenConstructor; + + if (typeInfo.Name == "MvcRouteHandler") + { + var chosenCtor = constructors + .Where(PublicConstructors) + .Select(ctor => new Holder(ctor)) + .ToArray().OrderBy(x => x.Order).FirstOrDefault(); + chosenConstructor = chosenCtor.Constructor; + } + + + var publicConstructors = constructors + .Where(PublicConstructors) + .Select(ctor => new Holder(ctor)) + .ToArray(); + + + var validConstructors = publicConstructors + .Where(x => x.CanSatisfy(dependencies, graph)) + .ToArray(); + + chosenConstructor = validConstructors + .OrderByDescending(x => x.Order) .Select(x => x.Constructor) .FirstOrDefault(); -} + + return chosenConstructor; + } + + private static bool PublicConstructors(ConstructorInfo constructor) + { + // IsConstructor is false for static constructors. + return constructor.IsConstructor && !constructor.IsPrivate; + } + + private struct Holder + { + public Holder(ConstructorInfo constructor) + { + Constructor = constructor; + Parameters = constructor.GetParameters(); + } + + public ConstructorInfo Constructor { get; } + + public int Order => Parameters.Length; + + private ParameterInfo[] Parameters { get; } + + public bool CanSatisfy(DependencyCollection dependencies, PluginGraph graph) + { + foreach (var parameter in Parameters) + { + var type = parameter.ParameterType; + + if (type.IsGenericEnumerable()) + { + // Because graph.HasFamily returns false for IEnumerable, + // we unwrap the generic argument and pass that instead. + type = type.GenericTypeArguments[0]; + } + + if (graph.HasFamily(type)) + { + continue; + } + + if (dependencies.Any(dep => dep.Type == type)) + { + continue; + } + + + + return false; + } + + return true; + } + } +} \ No newline at end of file diff --git a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapContainerBuilderOptionsExtensions.cs b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapContainerBuilderOptionsExtensions.cs index 9b14d3b..01aa103 100644 --- a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapContainerBuilderOptionsExtensions.cs +++ b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapContainerBuilderOptionsExtensions.cs @@ -7,7 +7,8 @@ namespace Dotnettency { public static class StructureMapContainerBuilderOptionsExtensions { - public static AdaptedContainerBuilderOptions WithStructureMap(this ContainerBuilderOptions options, + public static AdaptedContainerBuilderOptions WithStructureMap( + this ContainerBuilderOptions options, Action configureTenant) where TTenant : class { diff --git a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapServiceScopeFactory.cs b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapServiceScopeFactory.cs index 0f0f9f1..42fd76f 100644 --- a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapServiceScopeFactory.cs +++ b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapServiceScopeFactory.cs @@ -17,7 +17,7 @@ public TenantContainerServiceScopeFactory(ITenantContainerAdaptor container) public IServiceScope CreateScope() { - return new TenantContainerServiceScope(_container.CreateNestedContainer()); + return new TenantContainerServiceScope(_container.CreateNestedContainer(_container.ContainerName + " - Scoped()")); } private class TenantContainerServiceScope : IServiceScope diff --git a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerAdaptor.cs b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerAdaptor.cs index 8a976dc..0214d8d 100644 --- a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerAdaptor.cs +++ b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerAdaptor.cs @@ -12,54 +12,72 @@ public class StructureMapTenantContainerAdaptor : StructureMapServiceProvider, I private readonly Guid _id; private readonly ILogger _logger; - public StructureMapTenantContainerAdaptor(ILogger logger, IContainer container, ContainerRole role = ContainerRole.Root) : base(container) + public StructureMapTenantContainerAdaptor(ILogger logger, + IContainer container, + ContainerRole role = ContainerRole.Root, + string name = "") : base(container) { _logger = logger; _container = container; _id = Guid.NewGuid(); - Role = role; + Role = role; + + if(name == null) + { + ContainerName = _container.Name; + } + else + { + ContainerName = name; + } if (role == ContainerRole.Root) { - _logger.LogDebug("Root Container Adaptor Created: {id}, {containerNAme}, {role}", _id, _container.Name, _container.Role); + _logger.LogDebug("Root Container Created: {id}, {containerNAme}, {role}", _id, ContainerName, Role); } else { - _logger.LogDebug("Container Created: {id}, {role}", _id, _container.Name, _container.Role); + _logger.LogDebug("Container Created: {id}, {role}", _id, ContainerName, _container.Role); } } public ContainerRole Role { get; set; } - public string ContainerName => _container.Name; + public string ContainerName { get; set; } public Guid ContainerId => _id; public void Configure(Action configure) { _container.Configure(_ => { - _logger.LogDebug("Configuring container: {id}, {containerNAme}, {role}", _id, _container.Name, _container.Role); + _logger.LogDebug("Configuring container: {id}, {containerNAme}, {role}", _id, ContainerName, _container.Role); var services = new ServiceCollection(); configure(services); _.Populate(services); + + _logger.LogDebug("Root Container Adaptor Created: {id}, {containerNAme}, {role}", _id, ContainerName, _container.Role); + + }); } - public ITenantContainerAdaptor CreateNestedContainer() + public ITenantContainerAdaptor CreateNestedContainer(string Name) { - _logger.LogDebug("Creating nested container from container: {id}, {containerNAme}, {role}", _id, _container.Name, _container.Role); - return new StructureMapTenantContainerAdaptor(_logger, _container.GetNestedContainer(), ContainerRole.Scoped); + _logger.LogDebug("Creating nested container from container: {id}, {containerNAme}, {role}", _id, ContainerName, _container.Role); + return new StructureMapTenantContainerAdaptor(_logger, _container.GetNestedContainer(), ContainerRole.Scoped, Name); } - public ITenantContainerAdaptor CreateChildContainer() + public ITenantContainerAdaptor CreateChildContainer(string Name) { - _logger.LogDebug("Creating child container from container: {id}, {containerNAme}, {role}", _id, _container.Name, _container.Role); - return new StructureMapTenantContainerAdaptor(_logger, _container.CreateChildContainer(), ContainerRole.Child); + _logger.LogDebug("Creating child container from container: {id}, {containerNAme}, {role}", _id, ContainerName, _container.Role); + return new StructureMapTenantContainerAdaptor(_logger, _container.CreateChildContainer(), ContainerRole.Child, Name); } public void Dispose() { - _logger.LogDebug("Disposing of container: {id}, {containerNAme}, {role}", _id, _container.Name, _container.Role); + _logger.LogDebug("Disposing of container: {id}, {containerNAme}, {role}", _id, ContainerName, _container.Role); _container.Dispose(); } + + } } diff --git a/src/Dotnettency.Container/ITenantContainerAdaptor.cs b/src/Dotnettency.Container/ITenantContainerAdaptor.cs index 495b734..c78eac1 100644 --- a/src/Dotnettency.Container/ITenantContainerAdaptor.cs +++ b/src/Dotnettency.Container/ITenantContainerAdaptor.cs @@ -5,8 +5,8 @@ namespace Dotnettency.Container { public interface ITenantContainerAdaptor : IServiceProvider, IDisposable { - ITenantContainerAdaptor CreateNestedContainer(); - ITenantContainerAdaptor CreateChildContainer(); + ITenantContainerAdaptor CreateNestedContainer(string Name); + ITenantContainerAdaptor CreateChildContainer(string Name); /// /// Used to add services to a container AFTER its initialised. diff --git a/src/Dotnettency.Container/TenantContainerBuilder.cs b/src/Dotnettency.Container/TenantContainerBuilder.cs index 96e9517..bf36f64 100644 --- a/src/Dotnettency.Container/TenantContainerBuilder.cs +++ b/src/Dotnettency.Container/TenantContainerBuilder.cs @@ -22,7 +22,7 @@ public TenantContainerBuilder(ITenantContainerAdaptor parentContainer, public Task BuildAsync(TTenant tenant) { - var tenantContainer = _parentContainer.CreateChildContainer(); + var tenantContainer = _parentContainer.CreateChildContainer("Tenant: " + tenant.ToString()); tenantContainer.Configure(config => { From 232d0d2116c37af7e6f3e591316acc04fddda169 Mon Sep 17 00:00:00 2001 From: Darrell Tunnell Date: Sun, 19 Aug 2018 15:14:36 +0100 Subject: [PATCH 55/86] Fixed some compilation errors --- src/Dotnettency.AspNetCore.Modules/ModuleShell.cs | 2 +- src/Dotnettency.AspNetCore.Modules/ModulesMiddleware.cs | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Dotnettency.AspNetCore.Modules/ModuleShell.cs b/src/Dotnettency.AspNetCore.Modules/ModuleShell.cs index cc8e5b1..9d1dca3 100644 --- a/src/Dotnettency.AspNetCore.Modules/ModuleShell.cs +++ b/src/Dotnettency.AspNetCore.Modules/ModuleShell.cs @@ -36,7 +36,7 @@ public async Task EnsureStarted(Func> containerFac if (Options.OnConfigureModuleServices != null) { - container = container.CreateChildContainer(); + container = container.CreateChildContainer($"Module:{Module?.GetType().Name}"); container.Configure((services) => { services.AddRouting(); //it's assumed routing is required for a routed module! diff --git a/src/Dotnettency.AspNetCore.Modules/ModulesMiddleware.cs b/src/Dotnettency.AspNetCore.Modules/ModulesMiddleware.cs index 640a690..858bcde 100644 --- a/src/Dotnettency.AspNetCore.Modules/ModulesMiddleware.cs +++ b/src/Dotnettency.AspNetCore.Modules/ModulesMiddleware.cs @@ -55,10 +55,12 @@ await _moduleManager.EnsureStarted(() => RouteData = routeContext.RouteData, }; - _logger.LogDebug("Request matched module {0}", routedModule.Module.GetType().Name); + var moduleName = routedModule.Module.GetType().Name; + + _logger.LogDebug("Request matched module {0}", moduleName); // Replace request services with a nested version of the routed modules container. - using (var scope = routedModule.Container.CreateNestedContainer()) + using (var scope = routedModule.Container.CreateNestedContainer($"ModulesMiddleware:{moduleName}")) { _logger.LogDebug("Setting Request: {containerId} - {containerName}", scope.ContainerId, scope.ContainerName); var oldRequestServices = context.RequestServices; From eb184614b9985bd0c61b83dbddd6140eef908d6c Mon Sep 17 00:00:00 2001 From: Darrell Tunnell Date: Sun, 19 Aug 2018 15:15:09 +0100 Subject: [PATCH 56/86] #37 - Repro tests added --- .../Dotnettency.Tests.csproj | 20 +- src/Dotnettency.Tests/FooTest.cs | 15 - src/Dotnettency.Tests/OptionsTests.cs | 264 ++++++++++++++++++ 3 files changed, 280 insertions(+), 19 deletions(-) delete mode 100644 src/Dotnettency.Tests/FooTest.cs create mode 100644 src/Dotnettency.Tests/OptionsTests.cs diff --git a/src/Dotnettency.Tests/Dotnettency.Tests.csproj b/src/Dotnettency.Tests/Dotnettency.Tests.csproj index 5764dcd..3992a5a 100644 --- a/src/Dotnettency.Tests/Dotnettency.Tests.csproj +++ b/src/Dotnettency.Tests/Dotnettency.Tests.csproj @@ -1,13 +1,25 @@ - + netcoreapp2.0 - - - + + + + + + + + + all + runtime; build; native; contentfiles; analyzers + + + + + diff --git a/src/Dotnettency.Tests/FooTest.cs b/src/Dotnettency.Tests/FooTest.cs deleted file mode 100644 index 465284f..0000000 --- a/src/Dotnettency.Tests/FooTest.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System; -using Xunit; - -namespace Dotnettency.Tests -{ - public class FooTest - { - - [Fact] - public void Foo() - { - - } - } -} diff --git a/src/Dotnettency.Tests/OptionsTests.cs b/src/Dotnettency.Tests/OptionsTests.cs new file mode 100644 index 0000000..eaca22b --- /dev/null +++ b/src/Dotnettency.Tests/OptionsTests.cs @@ -0,0 +1,264 @@ +using Dotnettency.Container; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Options; +using StructureMap; +using System; +using System.Threading.Tasks; +using Xunit; + +namespace Dotnettency.Tests +{ + + public class MyOptions + { + public bool Prop { get; set; } + + } + public class FooTest + { + + + [Fact] + public void Options_Configure_Root_Resolve_Root() + { + // ServiceProvider serviceProvider = services.BuildServiceProvider(); + StructureMap.Container container = new StructureMap.Container(); + container.Configure((a)=> { + + ServiceCollection services = new ServiceCollection(); + services.AddOptions(); + services.Configure((b) => + { + b.Prop = true; + }); + a.Populate(services); + }); + + // container.Populate(services); + + IServiceProvider sp = container.GetInstance(); + IOptions options = sp.GetRequiredService>(); + Assert.True(options.Value?.Prop); + + } + + + [Fact] + public void Options_Populate_Root_Resolve_Root() + { + + ServiceCollection services = new ServiceCollection(); + services.AddOptions(); + services.Configure((a) => + { + a.Prop = true; + }); + // ServiceProvider serviceProvider = services.BuildServiceProvider(); + + + StructureMap.Container container = new StructureMap.Container(); + container.Populate(services); + + // container.Populate(services); + + IServiceProvider sp = container.GetInstance(); + IOptions options = sp.GetRequiredService>(); + Assert.True(options.Value?.Prop); + + } + + [Fact] + public void Options_Configure_Child_Resolve_Child() + { + + ServiceCollection services = new ServiceCollection(); + + StructureMap.Container container = new StructureMap.Container(); + container.Populate(services); + + var childContainer = container.CreateChildContainer(); + childContainer.Configure((a) => + { + var childServices = new ServiceCollection(); + childServices.AddOptions(); + childServices.Configure((b) => + { + b.Prop = true; + }); + a.Populate(childServices); + }); + + // container.Populate(services); + + IServiceProvider sp = childContainer.GetInstance(); + IOptions options = sp.GetRequiredService>(); + Assert.True(options.Value?.Prop); + + } + + [Fact] + public void Options_Populate_Child_Resolve_Child() + { + + ServiceCollection services = new ServiceCollection(); + + StructureMap.Container container = new StructureMap.Container(); + container.Populate(services); + + var childContainer = container.CreateChildContainer(); + + var childServices = new ServiceCollection(); + childServices.AddOptions(); + childServices.Configure((b) => + { + b.Prop = true; + }); + + childContainer.Populate(childServices); + + // container.Populate(services); + + IServiceProvider sp = childContainer.GetInstance(); + IOptions options = sp.GetRequiredService>(); + Assert.True(options.Value?.Prop); + + } + + [Fact] + public void Options_Populate_Root_Resolve_Root_Using_TenantContainerAdaptor() + { + + ServiceCollection services = new ServiceCollection(); + services.AddOptions(); + services.AddLogging(); + services.Configure((a) => + { + a.Prop = true; + }); + ServiceProvider serviceProvider = services.BuildServiceProvider(); + + + StructureMap.Container container = new StructureMap.Container(); + Dotnettency.Container.StructureMap.ContainerExtensions.Populate(container, services); + + // container.Populate(services); + + ITenantContainerAdaptor sp = container.GetInstance(); + IOptions options = sp.GetRequiredService>(); + Assert.True(options.Value?.Prop); + + } + + [Fact] + public void Options_Populate_Root_Resolve_Child_Using_TenantContainerAdaptor() + { + + ServiceCollection services = new ServiceCollection(); + services.AddOptions(); + services.AddLogging(); + services.Configure((a) => + { + a.Prop = true; + }); + ServiceProvider serviceProvider = services.BuildServiceProvider(); + + + StructureMap.Container container = new StructureMap.Container(); + Dotnettency.Container.StructureMap.ContainerExtensions.Populate(container, services); + + // container.Populate(services); + + ITenantContainerAdaptor sp = container.GetInstance(); + + ITenantContainerAdaptor childSp = sp.CreateChildContainer("Child"); + + IOptions options = childSp.GetRequiredService>(); + Assert.True(options.Value?.Prop); + + + } + + [Fact] + public void Options_Populate_Root_Resolve_Nested_Using_TenantContainerAdaptor() + { + + ServiceCollection services = new ServiceCollection(); + services.AddOptions(); + services.AddLogging(); + services.Configure((a) => + { + a.Prop = true; + }); + ServiceProvider serviceProvider = services.BuildServiceProvider(); + + + StructureMap.Container container = new StructureMap.Container(); + Dotnettency.Container.StructureMap.ContainerExtensions.Populate(container, services); + + // container.Populate(services); + + ITenantContainerAdaptor sp = container.GetInstance(); + + ITenantContainerAdaptor childSp = sp.CreateChildContainer("Child"); + var nestedSp = childSp.CreateChildContainer("Nested"); + + + IOptions options = nestedSp.GetRequiredService>(); + Assert.True(options.Value?.Prop); + + } + + [Fact] + public async Task Options_Configure_Child_Resolve_Child_Using_TenantContainerAdaptor() + { + + ServiceCollection services = new ServiceCollection(); + services.AddLogging(); + + // ServiceProvider serviceProvider = services.BuildServiceProvider(); + + + StructureMap.Container container = new StructureMap.Container(); + Dotnettency.Container.StructureMap.ContainerExtensions.Populate(container, services); + + var adaptedContainer = container.GetInstance(); + var containerEventsPublisher = container.TryGetInstance>(); + + container.Configure(_ => + _.For>() + .Use(new TenantContainerBuilder(adaptedContainer, (s, t)=> { + + t.AddOptions(); + t.Configure((a) => + { + a.Prop = true; + }); + + }, containerEventsPublisher)) + ); + + // container.Populate(services); + + var tenantContainerBuilder = adaptedContainer.GetRequiredService>(); + var tenantContainer = await tenantContainerBuilder.BuildAsync(new MyTenant()); + + IOptions options = tenantContainer.GetRequiredService>(); + Assert.True(options.Value?.Prop); + + } + + + } + + public class MyTenant + { + + } + + + +} + + + + From 8bd31758a0f0c6ae201a2297569829508596f178 Mon Sep 17 00:00:00 2001 From: Darrell Tunnell Date: Sun, 19 Aug 2018 16:54:22 +0100 Subject: [PATCH 57/86] #8 - autofac wip. --- .../TenantRequestContainerAccessor.cs | 9 +- .../ModuleManager.cs | 18 +- .../ModuleShell.cs | 4 +- ...utofacContainerBuilderOptionsExtensions.cs | 49 + .../AutofacTenantContainerAdaptor.cs | 119 + .../Dotnettency.Container.Autofac.csproj | 22 + .../StructureMap/ContainerExtensions.cs | 5 +- .../StructureMapServiceScopeFactory.cs | 63 +- .../StructureMapTenantContainerAdaptor.cs | 20 +- .../ITenantContainerAdaptor.cs | 6 +- .../TenantContainerBuilder.cs | 6 +- .../TenantContainerServiceScopeFactory.cs | 40 + src/Dotnettency.Sample/Startup.cs | 65 +- ...ApplicationMiddlewareDiagnosticListener.cs | 42 + src/Sample.RazorPages/Pages/About.cshtml | 9 + src/Sample.RazorPages/Pages/About.cshtml.cs | 18 + src/Sample.RazorPages/Pages/Basic.cshtml | 8 + src/Sample.RazorPages/Pages/Basic.cshtml.cs | 17 + src/Sample.RazorPages/Pages/Contact.cshtml | 19 + src/Sample.RazorPages/Pages/Contact.cshtml.cs | 18 + src/Sample.RazorPages/Pages/Error.cshtml | 23 + src/Sample.RazorPages/Pages/Error.cshtml.cs | 21 + src/Sample.RazorPages/Pages/Index.cshtml | 9 + src/Sample.RazorPages/Pages/Index.cshtml.cs | 17 + src/Sample.RazorPages/Pages/_Layout.cshtml | 71 + .../Pages/_ValidationScriptsPartial.cshtml | 18 + .../Pages/_ViewImports.cshtml | 3 + src/Sample.RazorPages/Pages/_ViewStart.cshtml | 3 + src/Sample.RazorPages/Program.cs | 21 + .../Sample.RazorPages.csproj | 23 + src/Sample.RazorPages/Startup.cs | 440 + src/Sample.RazorPages/Tenant.cs | 21 + .../TenantMiddlewareDiagnosticListener.cs | 43 + src/Sample.RazorPages/TenantShellFactory.cs | 34 + .../appsettings.Development.json | 10 + src/Sample.RazorPages/appsettings.json | 8 + src/Sample.RazorPages/bundleconfig.json | 24 + src/Sample.RazorPages/wwwroot/css/site.css | 35 + .../wwwroot/css/site.min.css | 1 + src/Sample.RazorPages/wwwroot/favicon.ico | Bin 0 -> 32038 bytes .../wwwroot/images/banner1.svg | 1 + .../wwwroot/images/banner2.svg | 1 + .../wwwroot/images/banner3.svg | 1 + .../wwwroot/images/banner4.svg | 1 + src/Sample.RazorPages/wwwroot/js/site.js | 1 + src/Sample.RazorPages/wwwroot/js/site.min.js | 0 .../wwwroot/lib/bootstrap/.bower.json | 45 + .../wwwroot/lib/bootstrap/LICENSE | 21 + .../bootstrap/dist/css/bootstrap-theme.css | 587 + .../dist/css/bootstrap-theme.css.map | 1 + .../dist/css/bootstrap-theme.min.css.map | 1 + .../lib/bootstrap/dist/css/bootstrap.css | 6757 +++++++++++ .../lib/bootstrap/dist/css/bootstrap.css.map | 1 + .../bootstrap/dist/css/bootstrap.min.css.map | 1 + .../fonts/glyphicons-halflings-regular.eot | Bin 0 -> 20127 bytes .../fonts/glyphicons-halflings-regular.svg | 288 + .../fonts/glyphicons-halflings-regular.ttf | Bin 0 -> 45404 bytes .../fonts/glyphicons-halflings-regular.woff | Bin 0 -> 23424 bytes .../fonts/glyphicons-halflings-regular.woff2 | Bin 0 -> 18028 bytes .../lib/bootstrap/dist/js/bootstrap.js | 2377 ++++ .../wwwroot/lib/bootstrap/dist/js/npm.js | 13 + .../jquery-validation-unobtrusive/.bower.json | 44 + .../jquery.validate.unobtrusive.js | 416 + .../jquery.validate.unobtrusive.min.js | 5 + .../wwwroot/lib/jquery-validation/.bower.json | 40 + .../wwwroot/lib/jquery-validation/LICENSE.md | 22 + .../dist/additional-methods.js | 998 ++ .../jquery-validation/dist/jquery.validate.js | 1398 +++ .../wwwroot/lib/jquery/.bower.json | 25 + .../wwwroot/lib/jquery/LICENSE.txt | 36 + .../wwwroot/lib/jquery/dist/jquery.js | 9831 +++++++++++++++++ .../wwwroot/lib/jquery/dist/jquery.min.map | 1 + src/src.sln | 31 +- 73 files changed, 24233 insertions(+), 93 deletions(-) create mode 100644 src/Dotnettency.Container.Autofac/AutofacContainerBuilderOptionsExtensions.cs create mode 100644 src/Dotnettency.Container.Autofac/AutofacTenantContainerAdaptor.cs create mode 100644 src/Dotnettency.Container.Autofac/Dotnettency.Container.Autofac.csproj create mode 100644 src/Dotnettency.Container/TenantContainerServiceScopeFactory.cs create mode 100644 src/Sample.RazorPages/ApplicationMiddlewareDiagnosticListener.cs create mode 100644 src/Sample.RazorPages/Pages/About.cshtml create mode 100644 src/Sample.RazorPages/Pages/About.cshtml.cs create mode 100644 src/Sample.RazorPages/Pages/Basic.cshtml create mode 100644 src/Sample.RazorPages/Pages/Basic.cshtml.cs create mode 100644 src/Sample.RazorPages/Pages/Contact.cshtml create mode 100644 src/Sample.RazorPages/Pages/Contact.cshtml.cs create mode 100644 src/Sample.RazorPages/Pages/Error.cshtml create mode 100644 src/Sample.RazorPages/Pages/Error.cshtml.cs create mode 100644 src/Sample.RazorPages/Pages/Index.cshtml create mode 100644 src/Sample.RazorPages/Pages/Index.cshtml.cs create mode 100644 src/Sample.RazorPages/Pages/_Layout.cshtml create mode 100644 src/Sample.RazorPages/Pages/_ValidationScriptsPartial.cshtml create mode 100644 src/Sample.RazorPages/Pages/_ViewImports.cshtml create mode 100644 src/Sample.RazorPages/Pages/_ViewStart.cshtml create mode 100644 src/Sample.RazorPages/Program.cs create mode 100644 src/Sample.RazorPages/Sample.RazorPages.csproj create mode 100644 src/Sample.RazorPages/Startup.cs create mode 100644 src/Sample.RazorPages/Tenant.cs create mode 100644 src/Sample.RazorPages/TenantMiddlewareDiagnosticListener.cs create mode 100644 src/Sample.RazorPages/TenantShellFactory.cs create mode 100644 src/Sample.RazorPages/appsettings.Development.json create mode 100644 src/Sample.RazorPages/appsettings.json create mode 100644 src/Sample.RazorPages/bundleconfig.json create mode 100644 src/Sample.RazorPages/wwwroot/css/site.css create mode 100644 src/Sample.RazorPages/wwwroot/css/site.min.css create mode 100644 src/Sample.RazorPages/wwwroot/favicon.ico create mode 100644 src/Sample.RazorPages/wwwroot/images/banner1.svg create mode 100644 src/Sample.RazorPages/wwwroot/images/banner2.svg create mode 100644 src/Sample.RazorPages/wwwroot/images/banner3.svg create mode 100644 src/Sample.RazorPages/wwwroot/images/banner4.svg create mode 100644 src/Sample.RazorPages/wwwroot/js/site.js create mode 100644 src/Sample.RazorPages/wwwroot/js/site.min.js create mode 100644 src/Sample.RazorPages/wwwroot/lib/bootstrap/.bower.json create mode 100644 src/Sample.RazorPages/wwwroot/lib/bootstrap/LICENSE create mode 100644 src/Sample.RazorPages/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.css create mode 100644 src/Sample.RazorPages/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.css.map create mode 100644 src/Sample.RazorPages/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.min.css.map create mode 100644 src/Sample.RazorPages/wwwroot/lib/bootstrap/dist/css/bootstrap.css create mode 100644 src/Sample.RazorPages/wwwroot/lib/bootstrap/dist/css/bootstrap.css.map create mode 100644 src/Sample.RazorPages/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css.map create mode 100644 src/Sample.RazorPages/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot create mode 100644 src/Sample.RazorPages/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.svg create mode 100644 src/Sample.RazorPages/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf create mode 100644 src/Sample.RazorPages/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff create mode 100644 src/Sample.RazorPages/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 create mode 100644 src/Sample.RazorPages/wwwroot/lib/bootstrap/dist/js/bootstrap.js create mode 100644 src/Sample.RazorPages/wwwroot/lib/bootstrap/dist/js/npm.js create mode 100644 src/Sample.RazorPages/wwwroot/lib/jquery-validation-unobtrusive/.bower.json create mode 100644 src/Sample.RazorPages/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js create mode 100644 src/Sample.RazorPages/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js create mode 100644 src/Sample.RazorPages/wwwroot/lib/jquery-validation/.bower.json create mode 100644 src/Sample.RazorPages/wwwroot/lib/jquery-validation/LICENSE.md create mode 100644 src/Sample.RazorPages/wwwroot/lib/jquery-validation/dist/additional-methods.js create mode 100644 src/Sample.RazorPages/wwwroot/lib/jquery-validation/dist/jquery.validate.js create mode 100644 src/Sample.RazorPages/wwwroot/lib/jquery/.bower.json create mode 100644 src/Sample.RazorPages/wwwroot/lib/jquery/LICENSE.txt create mode 100644 src/Sample.RazorPages/wwwroot/lib/jquery/dist/jquery.js create mode 100644 src/Sample.RazorPages/wwwroot/lib/jquery/dist/jquery.min.map diff --git a/src/Dotnettency.AspNetCore.Container/TenantRequestContainerAccessor.cs b/src/Dotnettency.AspNetCore.Container/TenantRequestContainerAccessor.cs index 8f40af3..996690f 100644 --- a/src/Dotnettency.AspNetCore.Container/TenantRequestContainerAccessor.cs +++ b/src/Dotnettency.AspNetCore.Container/TenantRequestContainerAccessor.cs @@ -2,6 +2,7 @@ using System.Threading.Tasks; using Microsoft.Extensions.Logging; using Dotnettency.Container; +using Microsoft.AspNetCore.Http; namespace Dotnettency.AspNetCore.Container { @@ -9,14 +10,17 @@ public class TenantRequestContainerAccessor : ITenantRequestContainerAc where TTenant : class { private readonly ITenantContainerAccessor _tenantContainerAccessor; + private readonly IHttpContextAccessor _httpContextAccessor; private readonly ILogger> _logger; private readonly ITenantContainerEventsPublisher _containerEventsPublisher; public TenantRequestContainerAccessor( + IHttpContextAccessor httpContextAccessor, ILogger> logger, ITenantContainerAccessor tenantContainerAccessor, ITenantContainerEventsPublisher containerEventsPublisher) { + _httpContextAccessor = httpContextAccessor; _logger = logger; _tenantContainerAccessor = tenantContainerAccessor; _containerEventsPublisher = containerEventsPublisher; @@ -29,7 +33,10 @@ public TenantRequestContainerAccessor( return null; } - var requestContainer = tenantContainer.CreateNestedContainer(tenantContainer.ContainerName + " - Request "); + var requestId = _httpContextAccessor.HttpContext.TraceIdentifier; + var requestContainer = tenantContainer.CreateNestedContainer($"{tenantContainer.ContainerName} - Request {requestId}"); + logger.LogDebug("Creating container name: {ContainerName} and RequestId: {RequestId}", tenantContainer.ContainerName, requestId); + _containerEventsPublisher?.PublishNestedTenantContainerCreated(requestContainer); return new PerRequestContainer(requestContainer); }); diff --git a/src/Dotnettency.AspNetCore.Modules/ModuleManager.cs b/src/Dotnettency.AspNetCore.Modules/ModuleManager.cs index 6465e34..0814cfa 100644 --- a/src/Dotnettency.AspNetCore.Modules/ModuleManager.cs +++ b/src/Dotnettency.AspNetCore.Modules/ModuleManager.cs @@ -48,16 +48,18 @@ public async Task EnsureStarted(Func> containerFac var container = await containerFactory(); - container.Configure(async sharedServices => - { - await Task.WhenAll(allModules.Select(m => m.EnsureStarted(containerFactory, rootAppBuilder, sharedServices))); - }); + throw new NotImplementedException(); + // consider rebuilding container? + //container.Configure(async sharedServices => + //{ + // await Task.WhenAll(allModules.Select(m => m.EnsureStarted(containerFactory, rootAppBuilder, sharedServices))); + //}); // Collate routers - foreach (var module in allModules.Where(m => m.Router != null)) - { - ModulesRouter.AddModuleRouter(module); - } + //foreach (var module in allModules.Where(m => m.Router != null)) + //{ + // ModulesRouter.AddModuleRouter(module); + //} Started = true; } diff --git a/src/Dotnettency.AspNetCore.Modules/ModuleShell.cs b/src/Dotnettency.AspNetCore.Modules/ModuleShell.cs index 9d1dca3..f9fb4b9 100644 --- a/src/Dotnettency.AspNetCore.Modules/ModuleShell.cs +++ b/src/Dotnettency.AspNetCore.Modules/ModuleShell.cs @@ -36,12 +36,12 @@ public async Task EnsureStarted(Func> containerFac if (Options.OnConfigureModuleServices != null) { - container = container.CreateChildContainer($"Module:{Module?.GetType().Name}"); - container.Configure((services) => + container = container.CreateChildContainerAndConfigure($"Module:{Module?.GetType().Name}", (services) => { services.AddRouting(); //it's assumed routing is required for a routed module! Options.OnConfigureModuleServices(services); }); + // container.Configure(); } Container = container; diff --git a/src/Dotnettency.Container.Autofac/AutofacContainerBuilderOptionsExtensions.cs b/src/Dotnettency.Container.Autofac/AutofacContainerBuilderOptionsExtensions.cs new file mode 100644 index 0000000..d23970a --- /dev/null +++ b/src/Dotnettency.Container.Autofac/AutofacContainerBuilderOptionsExtensions.cs @@ -0,0 +1,49 @@ +using Autofac; +using Autofac.Extensions.DependencyInjection; +using Dotnettency.Container; +using Microsoft.Extensions.DependencyInjection; +using System; + +namespace Dotnettency +{ + public static class AutofacContainerBuilderOptionsExtensions + { + public static AdaptedContainerBuilderOptions WithAutofac( + this ContainerBuilderOptions options, + Action configureTenant) + where TTenant : class + { + var adaptorFactory = new Func(() => + { + // host level container. + var builder = new ContainerBuilder(); + builder.Populate(options.Builder.Services); + + var container = builder.Build(); + var adaptedContainer = container.Resolve(); + + ITenantContainerEventsPublisher containerEventsPublisher; + // bool containerEventsPublisher = + container.TryResolve>(out containerEventsPublisher); + // add ITenantContainerBuilder service to the host container + // This service can be used to build a child container (adaptor) for a particular tenant, when required. + + var updateBuilder = new ContainerBuilder(); + updateBuilder.RegisterInstance(new TenantContainerBuilder(adaptedContainer, configureTenant, containerEventsPublisher)).As>(); + updateBuilder.Update(container); + + + //container.Configure(_ => + // _.For>() + // .Use() + // ); + + var adaptor = container.Resolve(); + return adaptor; + }); + + var adapted = new AdaptedContainerBuilderOptions(options, adaptorFactory); + return adapted; + } + } +} diff --git a/src/Dotnettency.Container.Autofac/AutofacTenantContainerAdaptor.cs b/src/Dotnettency.Container.Autofac/AutofacTenantContainerAdaptor.cs new file mode 100644 index 0000000..55f26ce --- /dev/null +++ b/src/Dotnettency.Container.Autofac/AutofacTenantContainerAdaptor.cs @@ -0,0 +1,119 @@ +using Autofac; +using Autofac.Extensions.DependencyInjection; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Logging; +using System; + +namespace Dotnettency.Container +{ + + public class AutofacTenantContainerAdaptor : AutofacServiceProvider, ITenantContainerAdaptor + { + /// + /// Marker object-tag for the tenant-level lifetime scope. + /// + internal static readonly object TenantLifetimeScopeTag = "tenantLifetime"; + + private readonly ILifetimeScope _container; + private readonly Guid _id; + private readonly ILogger _logger; + + public AutofacTenantContainerAdaptor( + ILogger logger, + ILifetimeScope container, + ContainerRole role = ContainerRole.Root, + string name = "") : base(container) + { + _logger = logger; + _container = container; + _id = Guid.NewGuid(); + Role = role; + + if (name == null) + { + ContainerName = _container.Tag?.ToString() ?? "NULL"; + } + else + { + ContainerName = name; + } + + if (role == ContainerRole.Root) + { + _logger.LogDebug("Root Container Created: {id}, {containerNAme}, {role}", _id, ContainerName, Role); + } + else + { + _logger.LogDebug("Container Created: {id}", _id, ContainerName); + } + } + + public ContainerRole Role { get; set; } + public string ContainerName { get; set; } + public Guid ContainerId => _id; + + //public void Configure(Action configure) + //{ + + // _logger.LogDebug("Configuring container: {id}, {containerNAme}, {role}", _id, ContainerName, Role); + // ServiceCollection services = new ServiceCollection(); + // configure(services); + + // ContainerBuilder builder = new ContainerBuilder(); + // builder.Populate(services); + // builder.Update(_container); + + // _logger.LogDebug("Configured container: {id}, {containerNAme}, {role}", _id, ContainerName, Role); + //} + + public ITenantContainerAdaptor CreateNestedContainer(string Name) + { + throw new NotImplementedException(); + //_logger.LogDebug("Creating nested container from container: {id}, {containerNAme}, {role}", _id, ContainerName, _container.Role); + //ILifetimeScope perRequestScope = _container.BeginLifetimeScope() + + + //return new AutofacTenantContainerAdaptor(_logger, _container.CHI(), ContainerRole.Scoped, Name); + } + + public ITenantContainerAdaptor CreateChildContainer(string Name) + { + throw new NotImplementedException(); + // _logger.LogDebug("Creating child container from container: {id}, {containerNAme}, {role}", _id, ContainerName, _container.Role); + // return new AutofacTenantContainerAdaptor(_logger, _container.CreateChildContainer(), ContainerRole.Child, Name); + } + + public void Dispose() + { + _logger.LogDebug("Disposing of container: {id}, {containerNAme}, {role}", _id, ContainerName, Role); + _container.Dispose(); + base.Dispose(); + } + + public ITenantContainerAdaptor CreateChildContainerAndConfigure(string Name, Action configure) + { + var scope = _container.BeginLifetimeScope(TenantLifetimeScopeTag, (builder) => + { + ServiceCollection services = new ServiceCollection(); + configure(services); + builder.Populate(services); + }); + + _logger.LogDebug("Creating child container from container: {id}, {containerNAme}, {role}", _id, ContainerName, Role); + return new AutofacTenantContainerAdaptor(_logger, scope, ContainerRole.Child, Name); + } + + public ITenantContainerAdaptor CreateNestedContainerAndConfigure(string Name, Action configure) + { + var scope = _container.BeginLifetimeScope((builder) => + { + ServiceCollection services = new ServiceCollection(); + configure(services); + builder.Populate(services); + }); + + _logger.LogDebug("Creating child container from container: {id}, {containerNAme}, {role}", _id, ContainerName, Role); + return new AutofacTenantContainerAdaptor(_logger, scope, ContainerRole.Scoped, Name); + } + } +} diff --git a/src/Dotnettency.Container.Autofac/Dotnettency.Container.Autofac.csproj b/src/Dotnettency.Container.Autofac/Dotnettency.Container.Autofac.csproj new file mode 100644 index 0000000..7f49991 --- /dev/null +++ b/src/Dotnettency.Container.Autofac/Dotnettency.Container.Autofac.csproj @@ -0,0 +1,22 @@ + + + + netstandard1.3 + + Autofac container support, for the dotnettency Mutlitenancy library for dotnet standard compatible applications. + Darrell Tunnell + false + https://github.com/dazinator/Dotnettency + Multitenancy,tenant,container,autofac + + + + + + + + + + + + \ No newline at end of file diff --git a/src/Dotnettency.Container.StructureMap/StructureMap/ContainerExtensions.cs b/src/Dotnettency.Container.StructureMap/StructureMap/ContainerExtensions.cs index 52acb9d..1749ae6 100644 --- a/src/Dotnettency.Container.StructureMap/StructureMap/ContainerExtensions.cs +++ b/src/Dotnettency.Container.StructureMap/StructureMap/ContainerExtensions.cs @@ -2,6 +2,7 @@ /// Licenced under MIT Licence. /// With changes by Darrell Tunnell. /// +using Dotnettency.Container; using Dotnettency.Container.StructureMap.StructureMap; using Microsoft.Extensions.DependencyInjection; using StructureMap; @@ -12,7 +13,7 @@ namespace Dotnettency.Container.StructureMap { - public static partial class ContainerExtensions + public static class ContainerExtensions { /// /// Populates the container using the specified service descriptors. @@ -60,7 +61,7 @@ public static void Populate(this Registry registry, IEnumerable() .LifecycleIs(Lifecycles.Container) - .Use(); + .Use< TenantContainerServiceScopeFactory>(); registry.Register(descriptors); } diff --git a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapServiceScopeFactory.cs b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapServiceScopeFactory.cs index 42fd76f..e94c34f 100644 --- a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapServiceScopeFactory.cs +++ b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapServiceScopeFactory.cs @@ -4,66 +4,37 @@ namespace Dotnettency.Container.StructureMap { - public static partial class ContainerExtensions + public sealed class StructureMapServiceScopeFactory : IServiceScopeFactory { - internal sealed class TenantContainerServiceScopeFactory : IServiceScopeFactory - { - private readonly ITenantContainerAdaptor _container; - - public TenantContainerServiceScopeFactory(ITenantContainerAdaptor container) - { - _container = container; - } + private readonly IContainer _container; - public IServiceScope CreateScope() - { - return new TenantContainerServiceScope(_container.CreateNestedContainer(_container.ContainerName + " - Scoped()")); - } - - private class TenantContainerServiceScope : IServiceScope - { - private readonly ITenantContainerAdaptor _container; - - public TenantContainerServiceScope(ITenantContainerAdaptor container) - { - _container = container; - ServiceProvider = _container; - } - - public IServiceProvider ServiceProvider { get; private set; } + public StructureMapServiceScopeFactory(IContainer container) + { + _container = container; + } - public void Dispose() => _container.Dispose(); - } + public IServiceScope CreateScope() + { + return new StructureMapServiceScope(_container.GetNestedContainer()); } - internal sealed class StructureMapServiceScopeFactory : IServiceScopeFactory + private class StructureMapServiceScope : IServiceScope { private readonly IContainer _container; - public StructureMapServiceScopeFactory(IContainer container) + public StructureMapServiceScope(IContainer container) { _container = container; + ServiceProvider = container.GetInstance(); } - public IServiceScope CreateScope() - { - return new StructureMapServiceScope(_container.GetNestedContainer()); - } - - private class StructureMapServiceScope : IServiceScope - { - private readonly IContainer _container; - - public StructureMapServiceScope(IContainer container) - { - _container = container; - ServiceProvider = container.GetInstance(); - } - - public IServiceProvider ServiceProvider { get; private set; } + public IServiceProvider ServiceProvider { get; private set; } - public void Dispose() => _container.Dispose(); + public void Dispose() + { + _container.Dispose(); } } } } + diff --git a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerAdaptor.cs b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerAdaptor.cs index 0214d8d..e95f639 100644 --- a/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerAdaptor.cs +++ b/src/Dotnettency.Container.StructureMap/StructureMap/StructureMapTenantContainerAdaptor.cs @@ -20,9 +20,9 @@ public StructureMapTenantContainerAdaptor(ILogger configure) _container.Configure(_ => { _logger.LogDebug("Configuring container: {id}, {containerNAme}, {role}", _id, ContainerName, _container.Role); - var services = new ServiceCollection(); + ServiceCollection services = new ServiceCollection(); configure(services); _.Populate(services); @@ -78,6 +78,18 @@ public void Dispose() _container.Dispose(); } - + public ITenantContainerAdaptor CreateChildContainerAndConfigure(string Name, Action configure) + { + ITenantContainerAdaptor container = CreateChildContainer(Name); + Configure(configure); + return container; + } + + public ITenantContainerAdaptor CreateNestedContainerAndConfigure(string Name, Action configure) + { + ITenantContainerAdaptor container = CreateNestedContainer(Name); + Configure(configure); + return container; + } } } diff --git a/src/Dotnettency.Container/ITenantContainerAdaptor.cs b/src/Dotnettency.Container/ITenantContainerAdaptor.cs index c78eac1..a6ac98d 100644 --- a/src/Dotnettency.Container/ITenantContainerAdaptor.cs +++ b/src/Dotnettency.Container/ITenantContainerAdaptor.cs @@ -8,11 +8,15 @@ public interface ITenantContainerAdaptor : IServiceProvider, IDisposable ITenantContainerAdaptor CreateNestedContainer(string Name); ITenantContainerAdaptor CreateChildContainer(string Name); + ITenantContainerAdaptor CreateChildContainerAndConfigure(string Name, Action configure); + ITenantContainerAdaptor CreateNestedContainerAndConfigure(string Name, Action configure); + + /// /// Used to add services to a container AFTER its initialised. /// /// - void Configure(Action configure); + // void Configure(Action configure); string ContainerName { get; } Guid ContainerId { get; } diff --git a/src/Dotnettency.Container/TenantContainerBuilder.cs b/src/Dotnettency.Container/TenantContainerBuilder.cs index bf36f64..b1a6558 100644 --- a/src/Dotnettency.Container/TenantContainerBuilder.cs +++ b/src/Dotnettency.Container/TenantContainerBuilder.cs @@ -22,13 +22,13 @@ public TenantContainerBuilder(ITenantContainerAdaptor parentContainer, public Task BuildAsync(TTenant tenant) { - var tenantContainer = _parentContainer.CreateChildContainer("Tenant: " + tenant.ToString()); - - tenantContainer.Configure(config => + var tenantContainer = _parentContainer.CreateChildContainerAndConfigure("Tenant: " + tenant.ToString(), config => { _configureTenant(tenant, config); }); + // tenantContainer.Configure(); + _containerEventsPublisher?.PublishTenantContainerCreated(tenantContainer); return Task.FromResult(tenantContainer); diff --git a/src/Dotnettency.Container/TenantContainerServiceScopeFactory.cs b/src/Dotnettency.Container/TenantContainerServiceScopeFactory.cs new file mode 100644 index 0000000..00acf0a --- /dev/null +++ b/src/Dotnettency.Container/TenantContainerServiceScopeFactory.cs @@ -0,0 +1,40 @@ +using Microsoft.Extensions.DependencyInjection; +using System; + +namespace Dotnettency.Container +{ + + public sealed class TenantContainerServiceScopeFactory : IServiceScopeFactory + { + private readonly ITenantContainerAdaptor _container; + + public TenantContainerServiceScopeFactory(ITenantContainerAdaptor container) + { + _container = container; + } + + public IServiceScope CreateScope() + { + return new TenantContainerServiceScope(_container.CreateNestedContainer(_container.ContainerName + " - Scoped()")); + } + + private class TenantContainerServiceScope : IServiceScope + { + private readonly ITenantContainerAdaptor _container; + + public TenantContainerServiceScope(ITenantContainerAdaptor container) + { + _container = container; + ServiceProvider = _container; + } + + public IServiceProvider ServiceProvider { get; private set; } + + public void Dispose() + { + _container.Dispose(); + } + } + } + +} diff --git a/src/Dotnettency.Sample/Startup.cs b/src/Dotnettency.Sample/Startup.cs index 99ad04e..74d3ac7 100644 --- a/src/Dotnettency.Sample/Startup.cs +++ b/src/Dotnettency.Sample/Startup.cs @@ -1,20 +1,30 @@ -using Microsoft.AspNetCore.Builder; +using Dotnettency; +using Dotnettency.AspNetCore.Modules; +using Dotnettency.Container; +using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; -using Dotnettency; -using System; -using System.Text; +using Microsoft.Extensions.Options; using Microsoft.Net.Http.Headers; using Newtonsoft.Json; -using Dotnettency.Container; -using Dotnettency.AspNetCore.Modules; +using System; +using System.Text; using System.Threading.Tasks; -using Dotnettency.AspNetCore; namespace Sample { + + public class MyOptions + { + + public bool Foo { get; set; } + + + } + + public class Startup { private readonly IHostingEnvironment _environment; @@ -33,11 +43,11 @@ public IServiceProvider ConfigureServices(IServiceCollection services) services.AddRouting(); _loggerFactory.AddConsole(); - var logger = _loggerFactory.CreateLogger(); + ILogger logger = _loggerFactory.CreateLogger(); - var serviceProvider = services.AddAspNetCoreMultiTenancy((options) => + IServiceProvider serviceProvider = services.AddAspNetCoreMultiTenancy((options) => { - options + options .InitialiseTenant() // factory class to load tenant when it needs to be initialised for the first time. Can use overload to provide a delegate instead. .ConfigureTenantContainers((containerBuilder) => { @@ -46,13 +56,15 @@ public IServiceProvider ConfigureServices(IServiceCollection services) // callback invoked after tenant container is created. events.OnTenantContainerCreated(async (tenantResolver, tenantServiceProvider) => { - var tenant = await tenantResolver; + Tenant tenant = await tenantResolver; + + }) // callback invoked after a nested container is created for a tenant. i.e typically during a request. .OnNestedTenantContainerCreated(async (tenantResolver, tenantServiceProvider) => { - var tenant = await tenantResolver; + Tenant tenant = await tenantResolver; }); }) @@ -62,7 +74,8 @@ public IServiceProvider ConfigureServices(IServiceCollection services) { - + tenantServices.AddOptions(); + tenantServices.Configure((a) => { a.Foo = true; }); tenantServices.AddSingleton((sp) => { @@ -96,7 +109,7 @@ public IServiceProvider ConfigureServices(IServiceCollection services) { // WE use a tenant's guid id to partition one tenants files from another on disk. // NOTE: We use an empty guid for NULL tenants, so that all NULL tenants share the same location. - var tenantGuid = (contentRootOptions.Tenant?.TenantGuid).GetValueOrDefault(); + Guid tenantGuid = (contentRootOptions.Tenant?.TenantGuid).GetValueOrDefault(); contentRootOptions.TenantPartitionId(tenantGuid) .AllowAccessTo(_environment.ContentRootFileProvider); // We allow the tenant content root file provider to access to the environments content root. }); @@ -104,7 +117,7 @@ public IServiceProvider ConfigureServices(IServiceCollection services) tenantHostingEnvironmentOptions.OnInitialiseTenantWebRoot((webRootOptions) => { // WE use the tenant's guid id to partition one tenants files from another on disk. - var tenantGuid = (webRootOptions.Tenant?.TenantGuid).GetValueOrDefault(); + Guid tenantGuid = (webRootOptions.Tenant?.TenantGuid).GetValueOrDefault(); webRootOptions.TenantPartitionId(tenantGuid) .AllowAccessTo(_environment.WebRootFileProvider); // We allow the tenant web root file provider to access the environments web root files. }); @@ -133,7 +146,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF childRouteBuilder.MapTenantMiddlewarePipeline((context, appBuilder) => { - var logger = appBuilder.ApplicationServices.GetRequiredService>(); + ILogger logger = appBuilder.ApplicationServices.GetRequiredService>(); logger.LogDebug("Configuring tenant middleware pipeline for tenant: " + context.Tenant?.Name ?? ""); // appBuilder.UseStaticFiles(); // This demonstrates static files middleware, but below I am also using per tenant hosting environment which means each tenant can see its own static files in addition to the main application level static files. @@ -160,24 +173,25 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF public async Task DisplayInfo(HttpContext context) { - var logger = context.RequestServices.GetRequiredService>(); + ILogger logger = context.RequestServices.GetRequiredService>(); logger.LogDebug("App Run.."); - var container = context.RequestServices as ITenantContainerAdaptor; + ITenantContainerAdaptor container = context.RequestServices as ITenantContainerAdaptor; logger.LogDebug("App Run Container Is: {id}, {containerNAme}, {role}", container.ContainerId, container.ContainerName, container.Role); // Use ITenantAccessor to access the current tenant. - var tenantAccessor = container.GetRequiredService>(); - var tenant = await tenantAccessor.CurrentTenant.Value; + ITenantAccessor tenantAccessor = container.GetRequiredService>(); + Tenant tenant = await tenantAccessor.CurrentTenant.Value; // This service was registered as singleton in tenant container. - var someTenantService = container.GetService(); + SomeTenantService someTenantService = container.GetService(); // The tenant shell to access context for the tenant - even if the tenant is null - var tenantShellAccessor = context.RequestServices.GetRequiredService>(); - var tenantShell = await tenantShellAccessor.CurrentTenantShell.Value; + ITenantShellAccessor tenantShellAccessor = context.RequestServices.GetRequiredService>(); + TenantShell tenantShell = await tenantShellAccessor.CurrentTenantShell.Value; + var myOptions = context.RequestServices.GetRequiredService>(); string tenantShellId = tenantShell == null ? "{NULL TENANT SHELL}" : tenantShell.Id.ToString(); string tenantName = tenant == null ? "{NULL TENANT}" : tenant.Name; @@ -192,10 +206,11 @@ public async Task DisplayInfo(HttpContext context) TenantName = tenantName, TenantScopedServiceId = someTenantService?.Id, InjectedTenantName = injectedTenantName, - TenantContentFile = fileContent + TenantContentFile = fileContent, + OptionsFoo= myOptions.Value.Foo }; - var jsonResult = JsonConvert.SerializeObject(result); + string jsonResult = JsonConvert.SerializeObject(result); await context.Response.WriteAsync(jsonResult, Encoding.UTF8); logger.LogDebug("App Run Finished.."); } diff --git a/src/Sample.RazorPages/ApplicationMiddlewareDiagnosticListener.cs b/src/Sample.RazorPages/ApplicationMiddlewareDiagnosticListener.cs new file mode 100644 index 0000000..0f911fd --- /dev/null +++ b/src/Sample.RazorPages/ApplicationMiddlewareDiagnosticListener.cs @@ -0,0 +1,42 @@ +using System; +using Microsoft.Extensions.DiagnosticAdapter; +using Microsoft.AspNetCore.Http; + +namespace Sample.RazorPages +{ + public class ApplicationMiddlewareDiagnosticListener + { + + public ApplicationMiddlewareDiagnosticListener() + { + + } + + [DiagnosticName("Microsoft.AspNetCore.MiddlewareAnalysis.MiddlewareStarting")] + public virtual void OnMiddlewareStarting(HttpContext httpContext, string name) + { + WriteMessage($"Application MiddlewareStarting: {name}; {httpContext.Request.Path}"); + } + + [DiagnosticName("Microsoft.AspNetCore.MiddlewareAnalysis.MiddlewareException")] + public virtual void OnMiddlewareException(Exception exception, string name) + { + WriteMessage($"Application MiddlewareException: {name}; {exception.Message}"); + } + + [DiagnosticName("Microsoft.AspNetCore.MiddlewareAnalysis.MiddlewareFinished")] + public virtual void OnMiddlewareFinished(HttpContext httpContext, string name) + { + WriteMessage($"Application MiddlewareFinished: {name}; {httpContext.Response.StatusCode}"); + } + + private void WriteMessage(string message) + { + var oldColor = Console.ForegroundColor; + Console.ForegroundColor = ConsoleColor.DarkYellow; + Console.WriteLine(message); + Console.ForegroundColor = oldColor; + } + + } +} diff --git a/src/Sample.RazorPages/Pages/About.cshtml b/src/Sample.RazorPages/Pages/About.cshtml new file mode 100644 index 0000000..3c090d1 --- /dev/null +++ b/src/Sample.RazorPages/Pages/About.cshtml @@ -0,0 +1,9 @@ +@page +@model AboutModel +@{ + ViewData["Title"] = "About"; +} +

    @ViewData["Title"]

    +

    @Model.Message

    + +

    Use this area to provide additional information.

    diff --git a/src/Sample.RazorPages/Pages/About.cshtml.cs b/src/Sample.RazorPages/Pages/About.cshtml.cs new file mode 100644 index 0000000..a5af082 --- /dev/null +++ b/src/Sample.RazorPages/Pages/About.cshtml.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Mvc.RazorPages; + +namespace Sample.RazorPages.Pages +{ + public class AboutModel : PageModel + { + public string Message { get; set; } + + public void OnGet() + { + Message = "Your application description page."; + } + } +} diff --git a/src/Sample.RazorPages/Pages/Basic.cshtml b/src/Sample.RazorPages/Pages/Basic.cshtml new file mode 100644 index 0000000..f3145a6 --- /dev/null +++ b/src/Sample.RazorPages/Pages/Basic.cshtml @@ -0,0 +1,8 @@ +@page +@model Sample.RazorPages.Pages.BasicModel +@{ + ViewData["Title"] = "Basic"; +} + +

    Basic

    + diff --git a/src/Sample.RazorPages/Pages/Basic.cshtml.cs b/src/Sample.RazorPages/Pages/Basic.cshtml.cs new file mode 100644 index 0000000..b272500 --- /dev/null +++ b/src/Sample.RazorPages/Pages/Basic.cshtml.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.RazorPages; + +namespace Sample.RazorPages.Pages +{ + public class BasicModel : PageModel + { + public void OnGet() + { + + } + } +} \ No newline at end of file diff --git a/src/Sample.RazorPages/Pages/Contact.cshtml b/src/Sample.RazorPages/Pages/Contact.cshtml new file mode 100644 index 0000000..b683c82 --- /dev/null +++ b/src/Sample.RazorPages/Pages/Contact.cshtml @@ -0,0 +1,19 @@ +@page +@model ContactModel +@{ + ViewData["Title"] = "Contact"; +} +

    @ViewData["Title"]

    +

    @Model.Message

    + +
    + One Microsoft Way
    + Redmond, WA 98052-6399
    + P: + 425.555.0100 +
    + +
    + Support: Support@example.com
    + Marketing: Marketing@example.com +
    diff --git a/src/Sample.RazorPages/Pages/Contact.cshtml.cs b/src/Sample.RazorPages/Pages/Contact.cshtml.cs new file mode 100644 index 0000000..6c9a245 --- /dev/null +++ b/src/Sample.RazorPages/Pages/Contact.cshtml.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Mvc.RazorPages; + +namespace Sample.RazorPages.Pages +{ + public class ContactModel : PageModel + { + public string Message { get; set; } + + public void OnGet() + { + Message = "Your contact page."; + } + } +} diff --git a/src/Sample.RazorPages/Pages/Error.cshtml b/src/Sample.RazorPages/Pages/Error.cshtml new file mode 100644 index 0000000..b1f3143 --- /dev/null +++ b/src/Sample.RazorPages/Pages/Error.cshtml @@ -0,0 +1,23 @@ +@page +@model ErrorModel +@{ + ViewData["Title"] = "Error"; +} + +

    Error.

    +

    An error occurred while processing your request.

    + +@if (Model.ShowRequestId) +{ +

    + Request ID: @Model.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/src/Sample.RazorPages/Pages/Error.cshtml.cs b/src/Sample.RazorPages/Pages/Error.cshtml.cs new file mode 100644 index 0000000..b86aec9 --- /dev/null +++ b/src/Sample.RazorPages/Pages/Error.cshtml.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Mvc.RazorPages; + +namespace Sample.RazorPages.Pages +{ + public class ErrorModel : PageModel + { + public string RequestId { get; set; } + + public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); + + public void OnGet() + { + RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier; + } + } +} diff --git a/src/Sample.RazorPages/Pages/Index.cshtml b/src/Sample.RazorPages/Pages/Index.cshtml new file mode 100644 index 0000000..2ae83c4 --- /dev/null +++ b/src/Sample.RazorPages/Pages/Index.cshtml @@ -0,0 +1,9 @@ +@page +@model IndexModel +@{ + ViewData["Title"] = "Home page"; +} + +
    +

    Boo!

    +
    diff --git a/src/Sample.RazorPages/Pages/Index.cshtml.cs b/src/Sample.RazorPages/Pages/Index.cshtml.cs new file mode 100644 index 0000000..7033b2f --- /dev/null +++ b/src/Sample.RazorPages/Pages/Index.cshtml.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.RazorPages; + +namespace Sample.RazorPages.Pages +{ + public class IndexModel : PageModel + { + public void OnGet() + { + + } + } +} diff --git a/src/Sample.RazorPages/Pages/_Layout.cshtml b/src/Sample.RazorPages/Pages/_Layout.cshtml new file mode 100644 index 0000000..04712e7 --- /dev/null +++ b/src/Sample.RazorPages/Pages/_Layout.cshtml @@ -0,0 +1,71 @@ + + + + + + @ViewData["Title"] - Sample.RazorPages + + + + + + + + + + + + +
    + @RenderBody() +
    +
    +

    © 2017 - Sample.RazorPages

    +
    +
    + + + + + + + + + + + + + @RenderSection("Scripts", required: false) + + diff --git a/src/Sample.RazorPages/Pages/_ValidationScriptsPartial.cshtml b/src/Sample.RazorPages/Pages/_ValidationScriptsPartial.cshtml new file mode 100644 index 0000000..a2b13b3 --- /dev/null +++ b/src/Sample.RazorPages/Pages/_ValidationScriptsPartial.cshtml @@ -0,0 +1,18 @@ + + + + + + + + diff --git a/src/Sample.RazorPages/Pages/_ViewImports.cshtml b/src/Sample.RazorPages/Pages/_ViewImports.cshtml new file mode 100644 index 0000000..5da5b12 --- /dev/null +++ b/src/Sample.RazorPages/Pages/_ViewImports.cshtml @@ -0,0 +1,3 @@ +@using Sample.RazorPages +@namespace Sample.RazorPages.Pages +@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers diff --git a/src/Sample.RazorPages/Pages/_ViewStart.cshtml b/src/Sample.RazorPages/Pages/_ViewStart.cshtml new file mode 100644 index 0000000..a5f1004 --- /dev/null +++ b/src/Sample.RazorPages/Pages/_ViewStart.cshtml @@ -0,0 +1,3 @@ +@{ + Layout = "_Layout"; +} diff --git a/src/Sample.RazorPages/Program.cs b/src/Sample.RazorPages/Program.cs new file mode 100644 index 0000000..66f4897 --- /dev/null +++ b/src/Sample.RazorPages/Program.cs @@ -0,0 +1,21 @@ +using Microsoft.AspNetCore; +using Microsoft.AspNetCore.Hosting; +using StructureMap.AspNetCore; + +namespace Sample.RazorPages +{ + public class Program + { + public static void Main(string[] args) + { + BuildWebHost(args).Run(); + } + + public static IWebHost BuildWebHost(string[] args) => + WebHost.CreateDefaultBuilder(args) + .UseUrls("http://*:5000", "http://*:5001", "http://*:5002", "http://*:5003", "http://*:5004") + .UseStructureMap() + .UseStartup() + .Build(); + } +} diff --git a/src/Sample.RazorPages/Sample.RazorPages.csproj b/src/Sample.RazorPages/Sample.RazorPages.csproj new file mode 100644 index 0000000..e90e312 --- /dev/null +++ b/src/Sample.RazorPages/Sample.RazorPages.csproj @@ -0,0 +1,23 @@ + + + netcoreapp2.0 + + + + + + + + + + + + + + + + + + + + diff --git a/src/Sample.RazorPages/Startup.cs b/src/Sample.RazorPages/Startup.cs new file mode 100644 index 0000000..95884eb --- /dev/null +++ b/src/Sample.RazorPages/Startup.cs @@ -0,0 +1,440 @@ +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Hosting; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Logging; +using Dotnettency; +using Microsoft.Extensions.Configuration; +using System; +using Microsoft.AspNetCore.Mvc.Infrastructure; +using System.Diagnostics; +using Microsoft.AspNetCore.Routing; +using Microsoft.AspNetCore.Mvc.Internal; +using Microsoft.AspNetCore.Mvc; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Http; +using Dotnettency.Container; +using System.Net.Http.Headers; +using Newtonsoft.Json; +using System.Text; +using Microsoft.Extensions.Primitives; + +namespace Sample.RazorPages +{ + + public static class AttributeRouting + { + /// + /// Creates an attribute route using the provided services and provided target router. + /// + /// The application services. + /// An attribute route. + public static IRouter CreateAttributeMegaRoute(IServiceProvider services) + { + if (services == null) + { + throw new ArgumentNullException(nameof(services)); + } + + var provider = services.GetRequiredService(); + + return new AttributeRoute(provider, + services, + actions => + { + var handler = services.GetRequiredService(); + handler.Actions = actions; + return handler; + }); + } + } + + public class MyActionContextAccessor : IActionContextAccessor + { + public ActionContext ActionContext { get; set; } + } + + public class Startup + { + private readonly IHostingEnvironment _environment; + private readonly ILoggerFactory _loggerFactory; + private readonly IConfiguration _configuration; + + public Startup(IHostingEnvironment environment, ILoggerFactory loggerFactory, IConfiguration configuration) + { + _environment = environment; + _loggerFactory = loggerFactory; + _configuration = configuration; + } + + + public IServiceProvider ConfigureServices(IServiceCollection services) + { + // services.AddRouting(); + // services.AddMiddlewareAnalysis(); + // services.AddMvc(); + + _loggerFactory.AddConsole(); + var logger = _loggerFactory.CreateLogger(); + + + var serviceProvider = services.AddAspNetCoreMultiTenancy((options) => + { + options + .InitialiseTenant() // factory class to load tenant when it needs to be initialised for the first time. Can use overload to provide a delegate instead. + .ConfigureTenantContainers((containerBuilder) => + { + containerBuilder.Events((events) => + { + //// callback invoked after tenant container is created. + //events.OnTenantContainerCreated(async (tenantResolver, tenantServiceProvider) => + //{ + // var tenant = await tenantResolver; + + //}) + //// callback invoked after a nested container is created for a tenant. i.e typically during a request. + //.OnNestedTenantContainerCreated(async (tenantResolver, tenantServiceProvider) => + //{ + // var tenant = await tenantResolver; + + //}); + }) + // Extension methods available here for supported containers. We are using structuremap.. + // We are using an overload that allows us to configure structuremap with familiar IServiceCollection. + .WithStructureMap((tenant, tenantServices) => + { + // var actionContextAccessor = new MyActionContextAccessor(); + // tenantServices.AddSingleton(actionContextAccessor); + + var mvcBuilder = tenantServices.AddMvc(); + // mvcBuilder.AddRazorPagesOptions((r) => { r. }); + + }) + .AddPerRequestContainerMiddlewareServices() + .AddPerTenantMiddlewarePipelineServices(); // allows tenants to have there own middleware pipeline accessor stored in their tenant containers. + // .WithModuleContainers(); // Creates a child container per IModule. + }) + .ConfigureTenantMiddleware((a) => + { + a.OnInitialiseTenantPipeline((b, c) => + { + var log = c.ApplicationServices.GetRequiredService>(); + c.UseWelcomePage("/welcome"); + + c.UseStaticFiles(); + UseMvc(c); + + }); + }); + + }); + + // When using tenant containers, must return IServiceProvider. + return serviceProvider; + // return services.BuildServiceProvider(); + } + + + //// This method gets called by the runtime. Use this method to add services to the container. + //// For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940 + //public IServiceProvider ConfigureServices(IServiceCollection services) + //{ + // // services.AddRouting(); + // services.AddMiddlewareAnalysis(); + + // _loggerFactory.AddConsole(); + // var logger = _loggerFactory.CreateLogger(); + + + + // var serviceProvider = services.AddAspNetCoreMultiTenancy((options) => + // { + // options + // .InitialiseTenant() // factory class to load tenant when it needs to be initialised for the first time. Can use overload to provide a delegate instead. + // .ConfigureTenantContainers((containerBuilder) => + // { + // containerBuilder.Events((events) => + // { + // // callback invoked after tenant container is created. + // events.OnTenantContainerCreated(async (tenantResolver, tenantServiceProvider) => + // { + // var tenant = await tenantResolver; + + // //var routeHandler = tenantServiceProvider.GetRequiredService(); + // //var routeContext = CreateRouteContext("Get", null); + // //var routes = routeHandler.RouteAsync(CreateRouteContext()); + // // var diagnosticListener = tenantServiceProvider.GetRequiredService(); + // // var listener = new TenantMiddlewareDiagnosticListener(tenant); + // // diagnosticListener.SubscribeWithAdapter(listener); + + // }) + // // callback invoked after a nested container is created for a tenant. i.e typically during a request. + // .OnNestedTenantContainerCreated(async (tenantResolver, tenantServiceProvider) => + // { + // var tenant = await tenantResolver; + + // }); + // }) + // // Extension methods available here for supported containers. We are using structuremap.. + // // We are using an overload that allows us to configure structuremap with familiar IServiceCollection. + // .WithStructureMap((tenant, tenantServices) => + // { + // // ActionContextAccessor actionContextAccessor = null; + // // tenantServices.AddMvc(); + + // tenantServices.AddMvc().AddRazorPagesOptions(razorOptions => + // { + // razorOptions.RootDirectory = "/Pages"; + + // }); + + + // //tenantServices.AddSingleton((sp)=> { + // // var instance = Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateInstance(sp, actionContextAccessor); + // // return instance; + // //}); + + + // //_.ForConcreteType().Configure + + // //// StructureMap parses the expression passed + // //// into the method below to determine the + // //// constructor + // //.SelectConstructor(() => new Thingie(null)); + + + // // tenantServices.AddMiddlewareAnalysis(); + // var actionContextAccessor = new MyActionContextAccessor(); + // tenantServices.AddSingleton(actionContextAccessor); + // // tenantServices.AddMvc(); + + // }) + // .AddPerRequestContainerMiddlewareServices() + // .AddPerTenantMiddlewarePipelineServices(); // allows tenants to have there own middleware pipeline accessor stored in their tenant containers. + // // .WithModuleContainers(); // Creates a child container per IModule. + // }) + // .ConfigureTenantMiddleware((a) => + // { + // a.OnInitialiseTenantPipeline((b, c) => + // { + // var log = c.ApplicationServices.GetRequiredService>(); + + // // logger.LogDebug("Configuring tenant middleware pipeline for tenant: " + b.Tenant?.Name ?? ""); + // // c.UseWelcomePage("/welcome"); + // // var contextAccessor = c.ApplicationServices.GetRequiredService(); + // c.UseWelcomePage(); + // UseMvcWithDefaultRoute(c); + // c.Run(DisplayInfo); + // // UseMvc(c); + // // c.UseMvcWithDefaultRoute(); + // // c.UseMvc((r)=> { r.}); + // // display info. + + // }); + // }); + + // }); + + // // When using tenant containers, must return IServiceProvider. + // return serviceProvider; + // // return services.BuildServiceProvider(); + //} + + public IConfiguration Configuration { get; } + + // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. + public void Configure(IApplicationBuilder app, DiagnosticListener diagnosticListener, IHostingEnvironment env) + { + + // var listener = new ApplicationMiddlewareDiagnosticListener(); + // diagnosticListener.SubscribeWithAdapter(listener); + + // app.UseMvc(); + + app = app.UseMultitenancy((options) => + { + options.UsePerTenantContainers(); + options.UsePerTenantMiddlewarePipeline(); + }); + + // app.UseStaticFiles(); + // UseMvc(app); + + + // app.Run(DisplayInfo); + + //app.UseRouter(((routeBuilder) => + //{ + // // Makes sure that should any child route match, then the tenant container is restored prior to that route handling the request. + // routeBuilder.EnsureTenantContainer((childRouteBuilder) => + // { + // // Adds a route that will handle the request via the current tenants middleware pipleine. + // childRouteBuilder.MapTenantMiddlewarePipeline((context, appBuilder) => + // { + + // var logger = appBuilder.ApplicationServices.GetRequiredService>(); + // logger.LogDebug("Configuring tenant middleware pipeline for tenant: " + context.Tenant?.Name ?? ""); + + + // if (env.IsDevelopment()) + // { + // appBuilder.UseBrowserLink(); + // appBuilder.UseDeveloperExceptionPage(); + // } + // else + // { + // appBuilder.UseExceptionHandler("/Error"); + // } + + // appBuilder.UseStaticFiles(); + + // // appBuilder.UseStaticFiles(); // This demonstrates static files middleware, but below I am also using per tenant hosting environment which means each tenant can see its own static files in addition to the main application level static files. + + // // appBuilder.UseModules(); + + // // welcome page only enabled for tenant FOO. + // if (context.Tenant?.Name == "Foo") + // { + // appBuilder.UseWelcomePage("/welcome"); + // } + + // appBuilder.UseMvc(); + // // display info. + // // appBuilder.Run(DisplayInfo); + + // }); // handled by the tenant's middleware pipeline - if there is one. + // }); + //})); + + + } + + /// + /// Adds MVC to the request execution pipeline + /// with a default route named 'default' and the following template: + /// '{controller=Home}/{action=Index}/{id?}'. + /// + /// The . + /// A reference to this instance after the operation has completed. + public static IApplicationBuilder UseMvcWithDefaultRoute(IApplicationBuilder app) + { + if (app == null) + { + throw new ArgumentNullException(nameof(app)); + } + + return UseMvc(app, routes => + { + routes.MapRoute( + name: "default", + template: "{controller=Home}/{action=Index}/{id?}"); + }); + } + + public static IApplicationBuilder UseMvc(IApplicationBuilder app) + { + if (app == null) + { + throw new ArgumentNullException(nameof(app)); + } + + return UseMvc(app, routes => + { + }); + } + + + /// + /// Adds MVC to the request execution pipeline. + /// + /// The . + /// A callback to configure MVC routes. + /// A reference to this instance after the operation has completed. + public static IApplicationBuilder UseMvc( + IApplicationBuilder app, + Action configureRoutes) + { + if (app == null) + { + throw new ArgumentNullException(nameof(app)); + } + + if (configureRoutes == null) + { + throw new ArgumentNullException(nameof(configureRoutes)); + } + + // Verify if AddMvc was done before calling UseMvc + // We use the MvcMarkerService to make sure if all the services were added. + if (app.ApplicationServices.GetService(typeof(MvcMarkerService)) == null) + { + throw new InvalidOperationException(); + } + + var middlewarePipelineBuilder = app.ApplicationServices.GetRequiredService(); + middlewarePipelineBuilder.ApplicationBuilder = app.New(); + middlewarePipelineBuilder.ApplicationBuilder.ApplicationServices = app.ApplicationServices; + var handler = app.ApplicationServices.GetRequiredService(); + + var routes = new RouteBuilder(app) + { + DefaultHandler = handler, + }; + + configureRoutes(routes); + + routes.Routes.Insert(0, AttributeRouting.CreateAttributeMegaRoute(app.ApplicationServices)); + // routes.MapRoute( + //name: "foo", + //template: "{controller=Home}/{action=Index}/{id?}"); + + return app.UseRouter(routes.Build()); + } + + + public async Task DisplayInfo(HttpContext context) + { + var logger = context.RequestServices.GetRequiredService>(); + logger.LogDebug("App Run.."); + + var container = context.RequestServices as ITenantContainerAdaptor; + logger.LogDebug("App Run Container Is: {id}, {containerNAme}, {role}", container.ContainerId, container.ContainerName, container.Role); + + + // Use ITenantAccessor to access the current tenant. + var tenantAccessor = container.GetRequiredService>(); + var tenant = await tenantAccessor.CurrentTenant.Value; + + // This service was registered as singleton in tenant container. + // var someTenantService = container.GetService(); + + // The tenant shell to access context for the tenant - even if the tenant is null + var tenantShellAccessor = context.RequestServices.GetRequiredService>(); + var tenantShell = await tenantShellAccessor.CurrentTenantShell.Value; + + + string tenantShellId = tenantShell == null ? "{NULL TENANT SHELL}" : tenantShell.Id.ToString(); + string tenantName = tenant == null ? "{NULL TENANT}" : tenant.Name; + // string injectedTenantName = someTenantService?.TenantName ?? "{NULL SERVICE}"; + + // Accessing a content file. + // string fileContent = someTenantService?.GetContentFile("/Info.txt"); + context.Response.ContentType = new MediaTypeHeaderValue("application/json").ToString(); + var result = new + { + TenantShellId = tenantShellId, + TenantName = tenantName, + // TenantScopedServiceId = someTenantService?.Id, + // InjectedTenantName = injectedTenantName, + // TenantContentFile = fileContent + }; + + var jsonResult = JsonConvert.SerializeObject(result); + await context.Response.WriteAsync(jsonResult, Encoding.UTF8); + logger.LogDebug("App Run Finished.."); + } + } + + + +} + diff --git a/src/Sample.RazorPages/Tenant.cs b/src/Sample.RazorPages/Tenant.cs new file mode 100644 index 0000000..012eb1f --- /dev/null +++ b/src/Sample.RazorPages/Tenant.cs @@ -0,0 +1,21 @@ +using System; + +namespace Sample.RazorPages +{ + public class Tenant + { + public Tenant(Guid tenantGuid, string name) + { + TenantGuid = tenantGuid; + Name = name; + } + + public Guid TenantGuid { get; set; } + public string Name { get; set; } + + public override string ToString() + { + return Name; + } + } +} diff --git a/src/Sample.RazorPages/TenantMiddlewareDiagnosticListener.cs b/src/Sample.RazorPages/TenantMiddlewareDiagnosticListener.cs new file mode 100644 index 0000000..72dae51 --- /dev/null +++ b/src/Sample.RazorPages/TenantMiddlewareDiagnosticListener.cs @@ -0,0 +1,43 @@ +using System; +using Microsoft.Extensions.DiagnosticAdapter; +using Microsoft.AspNetCore.Http; + +namespace Sample.RazorPages +{ + public class TenantMiddlewareDiagnosticListener + { + + public Tenant Tenant { get; set; } + + public TenantMiddlewareDiagnosticListener(Tenant tenant) + { + Tenant = tenant; + } + + [DiagnosticName("Microsoft.AspNetCore.MiddlewareAnalysis.MiddlewareStarting")] + public virtual void OnMiddlewareStarting(HttpContext httpContext, string name) + { + WriteMessage($"{Tenant?.Name ?? "NULL"} MiddlewareStarting: {name}; {httpContext.Request.Path}"); + } + + [DiagnosticName("Microsoft.AspNetCore.MiddlewareAnalysis.MiddlewareException")] + public virtual void OnMiddlewareException(Exception exception, string name) + { + WriteMessage($"{Tenant?.Name ?? "NULL"} MiddlewareException: {name}; {exception.Message}"); + } + + [DiagnosticName("Microsoft.AspNetCore.MiddlewareAnalysis.MiddlewareFinished")] + public virtual void OnMiddlewareFinished(HttpContext httpContext, string name) + { + WriteMessage($"{Tenant?.Name ?? "NULL"}MiddlewareFinished: {name}; {httpContext.Response.StatusCode}"); + } + + private void WriteMessage(string message) + { + var oldColor = Console.ForegroundColor; + Console.ForegroundColor = ConsoleColor.Magenta; + Console.WriteLine(message); + Console.ForegroundColor = oldColor; + } + } +} diff --git a/src/Sample.RazorPages/TenantShellFactory.cs b/src/Sample.RazorPages/TenantShellFactory.cs new file mode 100644 index 0000000..8b6c69c --- /dev/null +++ b/src/Sample.RazorPages/TenantShellFactory.cs @@ -0,0 +1,34 @@ +using System.Threading.Tasks; +using Dotnettency; +using System; + +namespace Sample.RazorPages +{ + public class TenantShellFactory : ITenantShellFactory + { + public Task> Get(TenantDistinguisher distinguisher) + { + if (distinguisher.Uri.Port == 5000 || distinguisher.Uri.Port == 5001) + { + Guid tenantId = Guid.Parse("049c8cc4-3660-41c7-92f0-85430452be22"); + var tenant = new Tenant(tenantId, "Moogle"); + // Also adding any additional Uri's that should be mapped to this same tenant. + var result = new TenantShell(tenant, new Uri("http://localhost:5000"), + new Uri("http://localhost:5001")); + return Task.FromResult(result); + } + + if (distinguisher.Uri.Port == 5002) + { + Guid tenantId = Guid.Parse("b17fcd22-0db1-47c0-9fef-1aa1cb09605e"); + var tenant = new Tenant(tenantId, "Gicrosoft"); + var result = new TenantShell(tenant); + return Task.FromResult(result); + } + + + throw new NotImplementedException("Please make request on ports 5000 - 5003 to see various behaviour."); + + } + } +} diff --git a/src/Sample.RazorPages/appsettings.Development.json b/src/Sample.RazorPages/appsettings.Development.json new file mode 100644 index 0000000..fa8ce71 --- /dev/null +++ b/src/Sample.RazorPages/appsettings.Development.json @@ -0,0 +1,10 @@ +{ + "Logging": { + "IncludeScopes": false, + "LogLevel": { + "Default": "Debug", + "System": "Information", + "Microsoft": "Information" + } + } +} diff --git a/src/Sample.RazorPages/appsettings.json b/src/Sample.RazorPages/appsettings.json new file mode 100644 index 0000000..5fff67b --- /dev/null +++ b/src/Sample.RazorPages/appsettings.json @@ -0,0 +1,8 @@ +{ + "Logging": { + "IncludeScopes": false, + "LogLevel": { + "Default": "Warning" + } + } +} diff --git a/src/Sample.RazorPages/bundleconfig.json b/src/Sample.RazorPages/bundleconfig.json new file mode 100644 index 0000000..6d3f9a5 --- /dev/null +++ b/src/Sample.RazorPages/bundleconfig.json @@ -0,0 +1,24 @@ +// Configure bundling and minification for the project. +// More info at https://go.microsoft.com/fwlink/?LinkId=808241 +[ + { + "outputFileName": "wwwroot/css/site.min.css", + // An array of relative input file paths. Globbing patterns supported + "inputFiles": [ + "wwwroot/css/site.css" + ] + }, + { + "outputFileName": "wwwroot/js/site.min.js", + "inputFiles": [ + "wwwroot/js/site.js" + ], + // Optionally specify minification options + "minify": { + "enabled": true, + "renameLocals": true + }, + // Optionally generate .map file + "sourceMap": false + } +] diff --git a/src/Sample.RazorPages/wwwroot/css/site.css b/src/Sample.RazorPages/wwwroot/css/site.css new file mode 100644 index 0000000..465ee54 --- /dev/null +++ b/src/Sample.RazorPages/wwwroot/css/site.css @@ -0,0 +1,35 @@ +body { + padding-top: 50px; + padding-bottom: 20px; +} + +/* Wrapping element */ +/* Set some basic padding to keep content from hitting the edges */ +.body-content { + padding-left: 15px; + padding-right: 15px; +} + +/* Carousel */ +.carousel-caption p { + font-size: 20px; + line-height: 1.4; +} + +/* Make .svg files in the carousel display properly in older browsers */ +.carousel-inner .item img[src$=".svg"] { + width: 100%; +} + +/* QR code generator */ +#qrCode { + margin: 15px; +} + +/* Hide/rearrange for smaller screens */ +@media screen and (max-width: 767px) { + /* Hide captions */ + .carousel-caption { + display: none; + } +} diff --git a/src/Sample.RazorPages/wwwroot/css/site.min.css b/src/Sample.RazorPages/wwwroot/css/site.min.css new file mode 100644 index 0000000..5e93e30 --- /dev/null +++ b/src/Sample.RazorPages/wwwroot/css/site.min.css @@ -0,0 +1 @@ +body{padding-top:50px;padding-bottom:20px}.body-content{padding-left:15px;padding-right:15px}.carousel-caption p{font-size:20px;line-height:1.4}.carousel-inner .item img[src$=".svg"]{width:100%}#qrCode{margin:15px}@media screen and (max-width:767px){.carousel-caption{display:none}} \ No newline at end of file diff --git a/src/Sample.RazorPages/wwwroot/favicon.ico b/src/Sample.RazorPages/wwwroot/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..a3a799985c43bc7309d701b2cad129023377dc71 GIT binary patch literal 32038 zcmeHwX>eTEbtY7aYbrGrkNjgie?1jXjZ#zP%3n{}GObKv$BxI7Sl;Bwl5E+Qtj&t8 z*p|m4DO#HoJC-FyvNnp8NP<{Na0LMnTtO21(rBP}?EAiNjWgeO?z`{3ZoURUQlV2d zY1Pqv{m|X_oO91|?^z!6@@~od!@OH>&BN;>c@O+yUfy5w>LccTKJJ&`-k<%M^Zvi( z<$dKp=jCnNX5Qa+M_%6g|IEv~4R84q9|7E=|Ho(Wz3f-0wPjaRL;W*N^>q%^KGRr7 zxbjSORb_c&eO;oV_DZ7ua!sPH=0c+W;`vzJ#j~-x3uj};50#vqo*0w4!LUqs*UCh9 zvy2S%$#8$K4EOa&e@~aBS65_hc~Mpu=454VT2^KzWqEpBA=ME|O;1cn?8p<+{MKJf zbK#@1wzL44m$k(?85=Obido7=C|xWKe%66$z)NrzRwR>?hK?_bbwT z@Da?lBrBL}Zemo1@!9pYRau&!ld17h{f+UV0sY(R{ET$PBB|-=Nr@l-nY6w8HEAw* zRMIQU`24Jl_IFEPcS=_HdrOP5yf81z_?@M>83Vv65$QFr9nPg(wr`Ke8 zaY4ogdnMA*F7a4Q1_uXadTLUpCk;$ZPRRJ^sMOch;rlbvUGc1R9=u;dr9YANbQ<4Z z#P|Cp9BP$FXNPolgyr1XGt$^lFPF}rmBF5rj1Kh5%dforrP8W}_qJL$2qMBS-#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3sNKYKCQFU4LGKJ$n@Je$&w9@E$X z^p@iJ(v&`1(tq~1zc>0Vow-KR&vm!GUzT?Eqgnc)leZ9p)-Z*C!zqb=-$XG0 z^!8RfuQs5s>Q~qcz92(a_Q+KH?C*vCTr~UdTiR`JGuNH8v(J|FTiSEcPrBpmHRtmd zI2Jng0J=bXK);YY^rM?jzn?~X-Pe`GbAy{D)Y6D&1GY-EBcy%Bq?bKh?A>DD9DD!p z?{q02wno2sraGUkZv5dx+J8)&K$)No43Zr(*S`FEdL!4C)}WE}vJd%{S6-3VUw>Wp z?Aasv`T0^%P$2vE?L+Qhj~qB~K%eW)xH(=b_jU}TLD&BP*Pc9hz@Z=e0nkpLkWl}> z_5J^i(9Z7$(XG9~I3sY)`OGZ#_L06+Dy4E>UstcP-rU@xJ$&rxvo!n1Ao`P~KLU-8 z{zDgN4-&A6N!kPSYbQ&7sLufi`YtE2uN$S?e&5n>Y4(q#|KP!cc1j)T^QrUXMPFaP z_SoYO8S8G}Z$?AL4`;pE?7J5K8yWqy23>cCT2{=-)+A$X^-I9=e!@J@A&-;Ufc)`H}c(VI&;0x zrrGv()5mjP%jXzS{^|29?bLNXS0bC%p!YXI!;O457rjCEEzMkGf~B3$T}dXBO23tP z+Ci>;5UoM?C@bU@f9G1^X3=ly&ZeFH<@|RnOG--A&)fd)AUgjw?%izq{p(KJ`EP0v z2mU)P!+3t@X14DA=E2RR-|p${GZ9ETX=d+kJRZL$nSa0daI@&oUUxnZg0xd_xu>Vz lzF#z5%kSKX?YLH3ll^(hI(_`L*t#Iva2Ede*Z;>H_ \ No newline at end of file diff --git a/src/Sample.RazorPages/wwwroot/images/banner2.svg b/src/Sample.RazorPages/wwwroot/images/banner2.svg new file mode 100644 index 0000000..9679c60 --- /dev/null +++ b/src/Sample.RazorPages/wwwroot/images/banner2.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/Sample.RazorPages/wwwroot/images/banner3.svg b/src/Sample.RazorPages/wwwroot/images/banner3.svg new file mode 100644 index 0000000..9be2c25 --- /dev/null +++ b/src/Sample.RazorPages/wwwroot/images/banner3.svg @@ -0,0 +1 @@ +banner3b \ No newline at end of file diff --git a/src/Sample.RazorPages/wwwroot/images/banner4.svg b/src/Sample.RazorPages/wwwroot/images/banner4.svg new file mode 100644 index 0000000..38b3d7c --- /dev/null +++ b/src/Sample.RazorPages/wwwroot/images/banner4.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/Sample.RazorPages/wwwroot/js/site.js b/src/Sample.RazorPages/wwwroot/js/site.js new file mode 100644 index 0000000..82ecce7 --- /dev/null +++ b/src/Sample.RazorPages/wwwroot/js/site.js @@ -0,0 +1 @@ +// Write your Javascript code. diff --git a/src/Sample.RazorPages/wwwroot/js/site.min.js b/src/Sample.RazorPages/wwwroot/js/site.min.js new file mode 100644 index 0000000..e69de29 diff --git a/src/Sample.RazorPages/wwwroot/lib/bootstrap/.bower.json b/src/Sample.RazorPages/wwwroot/lib/bootstrap/.bower.json new file mode 100644 index 0000000..1e99b62 --- /dev/null +++ b/src/Sample.RazorPages/wwwroot/lib/bootstrap/.bower.json @@ -0,0 +1,45 @@ +{ + "name": "bootstrap", + "description": "The most popular front-end framework for developing responsive, mobile first projects on the web.", + "keywords": [ + "css", + "js", + "less", + "mobile-first", + "responsive", + "front-end", + "framework", + "web" + ], + "homepage": "http://getbootstrap.com", + "license": "MIT", + "moduleType": "globals", + "main": [ + "less/bootstrap.less", + "dist/js/bootstrap.js" + ], + "ignore": [ + "/.*", + "_config.yml", + "CNAME", + "composer.json", + "CONTRIBUTING.md", + "docs", + "js/tests", + "test-infra" + ], + "dependencies": { + "jquery": "1.9.1 - 3" + }, + "version": "3.3.7", + "_release": "3.3.7", + "_resolution": { + "type": "version", + "tag": "v3.3.7", + "commit": "0b9c4a4007c44201dce9a6cc1a38407005c26c86" + }, + "_source": "https://github.com/twbs/bootstrap.git", + "_target": "v3.3.7", + "_originalSource": "bootstrap", + "_direct": true +} \ No newline at end of file diff --git a/src/Sample.RazorPages/wwwroot/lib/bootstrap/LICENSE b/src/Sample.RazorPages/wwwroot/lib/bootstrap/LICENSE new file mode 100644 index 0000000..7a30002 --- /dev/null +++ b/src/Sample.RazorPages/wwwroot/lib/bootstrap/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2011-2016 Twitter, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/src/Sample.RazorPages/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.css b/src/Sample.RazorPages/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.css new file mode 100644 index 0000000..31d8882 --- /dev/null +++ b/src/Sample.RazorPages/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.css @@ -0,0 +1,587 @@ +/*! + * Bootstrap v3.3.7 (http://getbootstrap.com) + * Copyright 2011-2016 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + */ +.btn-default, +.btn-primary, +.btn-success, +.btn-info, +.btn-warning, +.btn-danger { + text-shadow: 0 -1px 0 rgba(0, 0, 0, .2); + -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075); +} +.btn-default:active, +.btn-primary:active, +.btn-success:active, +.btn-info:active, +.btn-warning:active, +.btn-danger:active, +.btn-default.active, +.btn-primary.active, +.btn-success.active, +.btn-info.active, +.btn-warning.active, +.btn-danger.active { + -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); + box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); +} +.btn-default.disabled, +.btn-primary.disabled, +.btn-success.disabled, +.btn-info.disabled, +.btn-warning.disabled, +.btn-danger.disabled, +.btn-default[disabled], +.btn-primary[disabled], +.btn-success[disabled], +.btn-info[disabled], +.btn-warning[disabled], +.btn-danger[disabled], +fieldset[disabled] .btn-default, +fieldset[disabled] .btn-primary, +fieldset[disabled] .btn-success, +fieldset[disabled] .btn-info, +fieldset[disabled] .btn-warning, +fieldset[disabled] .btn-danger { + -webkit-box-shadow: none; + box-shadow: none; +} +.btn-default .badge, +.btn-primary .badge, +.btn-success .badge, +.btn-info .badge, +.btn-warning .badge, +.btn-danger .badge { + text-shadow: none; +} +.btn:active, +.btn.active { + background-image: none; +} +.btn-default { + text-shadow: 0 1px 0 #fff; + background-image: -webkit-linear-gradient(top, #fff 0%, #e0e0e0 100%); + background-image: -o-linear-gradient(top, #fff 0%, #e0e0e0 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#e0e0e0)); + background-image: linear-gradient(to bottom, #fff 0%, #e0e0e0 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe0e0e0', GradientType=0); + filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); + background-repeat: repeat-x; + border-color: #dbdbdb; + border-color: #ccc; +} +.btn-default:hover, +.btn-default:focus { + background-color: #e0e0e0; + background-position: 0 -15px; +} +.btn-default:active, +.btn-default.active { + background-color: #e0e0e0; + border-color: #dbdbdb; +} +.btn-default.disabled, +.btn-default[disabled], +fieldset[disabled] .btn-default, +.btn-default.disabled:hover, +.btn-default[disabled]:hover, +fieldset[disabled] .btn-default:hover, +.btn-default.disabled:focus, +.btn-default[disabled]:focus, +fieldset[disabled] .btn-default:focus, +.btn-default.disabled.focus, +.btn-default[disabled].focus, +fieldset[disabled] .btn-default.focus, +.btn-default.disabled:active, +.btn-default[disabled]:active, +fieldset[disabled] .btn-default:active, +.btn-default.disabled.active, +.btn-default[disabled].active, +fieldset[disabled] .btn-default.active { + background-color: #e0e0e0; + background-image: none; +} +.btn-primary { + background-image: -webkit-linear-gradient(top, #337ab7 0%, #265a88 100%); + background-image: -o-linear-gradient(top, #337ab7 0%, #265a88 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#265a88)); + background-image: linear-gradient(to bottom, #337ab7 0%, #265a88 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff265a88', GradientType=0); + filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); + background-repeat: repeat-x; + border-color: #245580; +} +.btn-primary:hover, +.btn-primary:focus { + background-color: #265a88; + background-position: 0 -15px; +} +.btn-primary:active, +.btn-primary.active { + background-color: #265a88; + border-color: #245580; +} +.btn-primary.disabled, +.btn-primary[disabled], +fieldset[disabled] .btn-primary, +.btn-primary.disabled:hover, +.btn-primary[disabled]:hover, +fieldset[disabled] .btn-primary:hover, +.btn-primary.disabled:focus, +.btn-primary[disabled]:focus, +fieldset[disabled] .btn-primary:focus, +.btn-primary.disabled.focus, +.btn-primary[disabled].focus, +fieldset[disabled] .btn-primary.focus, +.btn-primary.disabled:active, +.btn-primary[disabled]:active, +fieldset[disabled] .btn-primary:active, +.btn-primary.disabled.active, +.btn-primary[disabled].active, +fieldset[disabled] .btn-primary.active { + background-color: #265a88; + background-image: none; +} +.btn-success { + background-image: -webkit-linear-gradient(top, #5cb85c 0%, #419641 100%); + background-image: -o-linear-gradient(top, #5cb85c 0%, #419641 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#5cb85c), to(#419641)); + background-image: linear-gradient(to bottom, #5cb85c 0%, #419641 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff419641', GradientType=0); + filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); + background-repeat: repeat-x; + border-color: #3e8f3e; +} +.btn-success:hover, +.btn-success:focus { + background-color: #419641; + background-position: 0 -15px; +} +.btn-success:active, +.btn-success.active { + background-color: #419641; + border-color: #3e8f3e; +} +.btn-success.disabled, +.btn-success[disabled], +fieldset[disabled] .btn-success, +.btn-success.disabled:hover, +.btn-success[disabled]:hover, +fieldset[disabled] .btn-success:hover, +.btn-success.disabled:focus, +.btn-success[disabled]:focus, +fieldset[disabled] .btn-success:focus, +.btn-success.disabled.focus, +.btn-success[disabled].focus, +fieldset[disabled] .btn-success.focus, +.btn-success.disabled:active, +.btn-success[disabled]:active, +fieldset[disabled] .btn-success:active, +.btn-success.disabled.active, +.btn-success[disabled].active, +fieldset[disabled] .btn-success.active { + background-color: #419641; + background-image: none; +} +.btn-info { + background-image: -webkit-linear-gradient(top, #5bc0de 0%, #2aabd2 100%); + background-image: -o-linear-gradient(top, #5bc0de 0%, #2aabd2 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#5bc0de), to(#2aabd2)); + background-image: linear-gradient(to bottom, #5bc0de 0%, #2aabd2 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2aabd2', GradientType=0); + filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); + background-repeat: repeat-x; + border-color: #28a4c9; +} +.btn-info:hover, +.btn-info:focus { + background-color: #2aabd2; + background-position: 0 -15px; +} +.btn-info:active, +.btn-info.active { + background-color: #2aabd2; + border-color: #28a4c9; +} +.btn-info.disabled, +.btn-info[disabled], +fieldset[disabled] .btn-info, +.btn-info.disabled:hover, +.btn-info[disabled]:hover, +fieldset[disabled] .btn-info:hover, +.btn-info.disabled:focus, +.btn-info[disabled]:focus, +fieldset[disabled] .btn-info:focus, +.btn-info.disabled.focus, +.btn-info[disabled].focus, +fieldset[disabled] .btn-info.focus, +.btn-info.disabled:active, +.btn-info[disabled]:active, +fieldset[disabled] .btn-info:active, +.btn-info.disabled.active, +.btn-info[disabled].active, +fieldset[disabled] .btn-info.active { + background-color: #2aabd2; + background-image: none; +} +.btn-warning { + background-image: -webkit-linear-gradient(top, #f0ad4e 0%, #eb9316 100%); + background-image: -o-linear-gradient(top, #f0ad4e 0%, #eb9316 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#f0ad4e), to(#eb9316)); + background-image: linear-gradient(to bottom, #f0ad4e 0%, #eb9316 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffeb9316', GradientType=0); + filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); + background-repeat: repeat-x; + border-color: #e38d13; +} +.btn-warning:hover, +.btn-warning:focus { + background-color: #eb9316; + background-position: 0 -15px; +} +.btn-warning:active, +.btn-warning.active { + background-color: #eb9316; + border-color: #e38d13; +} +.btn-warning.disabled, +.btn-warning[disabled], +fieldset[disabled] .btn-warning, +.btn-warning.disabled:hover, +.btn-warning[disabled]:hover, +fieldset[disabled] .btn-warning:hover, +.btn-warning.disabled:focus, +.btn-warning[disabled]:focus, +fieldset[disabled] .btn-warning:focus, +.btn-warning.disabled.focus, +.btn-warning[disabled].focus, +fieldset[disabled] .btn-warning.focus, +.btn-warning.disabled:active, +.btn-warning[disabled]:active, +fieldset[disabled] .btn-warning:active, +.btn-warning.disabled.active, +.btn-warning[disabled].active, +fieldset[disabled] .btn-warning.active { + background-color: #eb9316; + background-image: none; +} +.btn-danger { + background-image: -webkit-linear-gradient(top, #d9534f 0%, #c12e2a 100%); + background-image: -o-linear-gradient(top, #d9534f 0%, #c12e2a 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#d9534f), to(#c12e2a)); + background-image: linear-gradient(to bottom, #d9534f 0%, #c12e2a 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc12e2a', GradientType=0); + filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); + background-repeat: repeat-x; + border-color: #b92c28; +} +.btn-danger:hover, +.btn-danger:focus { + background-color: #c12e2a; + background-position: 0 -15px; +} +.btn-danger:active, +.btn-danger.active { + background-color: #c12e2a; + border-color: #b92c28; +} +.btn-danger.disabled, +.btn-danger[disabled], +fieldset[disabled] .btn-danger, +.btn-danger.disabled:hover, +.btn-danger[disabled]:hover, +fieldset[disabled] .btn-danger:hover, +.btn-danger.disabled:focus, +.btn-danger[disabled]:focus, +fieldset[disabled] .btn-danger:focus, +.btn-danger.disabled.focus, +.btn-danger[disabled].focus, +fieldset[disabled] .btn-danger.focus, +.btn-danger.disabled:active, +.btn-danger[disabled]:active, +fieldset[disabled] .btn-danger:active, +.btn-danger.disabled.active, +.btn-danger[disabled].active, +fieldset[disabled] .btn-danger.active { + background-color: #c12e2a; + background-image: none; +} +.thumbnail, +.img-thumbnail { + -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .075); + box-shadow: 0 1px 2px rgba(0, 0, 0, .075); +} +.dropdown-menu > li > a:hover, +.dropdown-menu > li > a:focus { + background-color: #e8e8e8; + background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%); + background-image: -o-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#e8e8e8)); + background-image: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0); + background-repeat: repeat-x; +} +.dropdown-menu > .active > a, +.dropdown-menu > .active > a:hover, +.dropdown-menu > .active > a:focus { + background-color: #2e6da4; + background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%); + background-image: -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2e6da4)); + background-image: linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0); + background-repeat: repeat-x; +} +.navbar-default { + background-image: -webkit-linear-gradient(top, #fff 0%, #f8f8f8 100%); + background-image: -o-linear-gradient(top, #fff 0%, #f8f8f8 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#f8f8f8)); + background-image: linear-gradient(to bottom, #fff 0%, #f8f8f8 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff8f8f8', GradientType=0); + filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); + background-repeat: repeat-x; + border-radius: 4px; + -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 5px rgba(0, 0, 0, .075); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 5px rgba(0, 0, 0, .075); +} +.navbar-default .navbar-nav > .open > a, +.navbar-default .navbar-nav > .active > a { + background-image: -webkit-linear-gradient(top, #dbdbdb 0%, #e2e2e2 100%); + background-image: -o-linear-gradient(top, #dbdbdb 0%, #e2e2e2 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#dbdbdb), to(#e2e2e2)); + background-image: linear-gradient(to bottom, #dbdbdb 0%, #e2e2e2 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdbdbdb', endColorstr='#ffe2e2e2', GradientType=0); + background-repeat: repeat-x; + -webkit-box-shadow: inset 0 3px 9px rgba(0, 0, 0, .075); + box-shadow: inset 0 3px 9px rgba(0, 0, 0, .075); +} +.navbar-brand, +.navbar-nav > li > a { + text-shadow: 0 1px 0 rgba(255, 255, 255, .25); +} +.navbar-inverse { + background-image: -webkit-linear-gradient(top, #3c3c3c 0%, #222 100%); + background-image: -o-linear-gradient(top, #3c3c3c 0%, #222 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#3c3c3c), to(#222)); + background-image: linear-gradient(to bottom, #3c3c3c 0%, #222 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff3c3c3c', endColorstr='#ff222222', GradientType=0); + filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); + background-repeat: repeat-x; + border-radius: 4px; +} +.navbar-inverse .navbar-nav > .open > a, +.navbar-inverse .navbar-nav > .active > a { + background-image: -webkit-linear-gradient(top, #080808 0%, #0f0f0f 100%); + background-image: -o-linear-gradient(top, #080808 0%, #0f0f0f 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#080808), to(#0f0f0f)); + background-image: linear-gradient(to bottom, #080808 0%, #0f0f0f 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff080808', endColorstr='#ff0f0f0f', GradientType=0); + background-repeat: repeat-x; + -webkit-box-shadow: inset 0 3px 9px rgba(0, 0, 0, .25); + box-shadow: inset 0 3px 9px rgba(0, 0, 0, .25); +} +.navbar-inverse .navbar-brand, +.navbar-inverse .navbar-nav > li > a { + text-shadow: 0 -1px 0 rgba(0, 0, 0, .25); +} +.navbar-static-top, +.navbar-fixed-top, +.navbar-fixed-bottom { + border-radius: 0; +} +@media (max-width: 767px) { + .navbar .navbar-nav .open .dropdown-menu > .active > a, + .navbar .navbar-nav .open .dropdown-menu > .active > a:hover, + .navbar .navbar-nav .open .dropdown-menu > .active > a:focus { + color: #fff; + background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%); + background-image: -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2e6da4)); + background-image: linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0); + background-repeat: repeat-x; + } +} +.alert { + text-shadow: 0 1px 0 rgba(255, 255, 255, .2); + -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(0, 0, 0, .05); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(0, 0, 0, .05); +} +.alert-success { + background-image: -webkit-linear-gradient(top, #dff0d8 0%, #c8e5bc 100%); + background-image: -o-linear-gradient(top, #dff0d8 0%, #c8e5bc 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#dff0d8), to(#c8e5bc)); + background-image: linear-gradient(to bottom, #dff0d8 0%, #c8e5bc 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffc8e5bc', GradientType=0); + background-repeat: repeat-x; + border-color: #b2dba1; +} +.alert-info { + background-image: -webkit-linear-gradient(top, #d9edf7 0%, #b9def0 100%); + background-image: -o-linear-gradient(top, #d9edf7 0%, #b9def0 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#d9edf7), to(#b9def0)); + background-image: linear-gradient(to bottom, #d9edf7 0%, #b9def0 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffb9def0', GradientType=0); + background-repeat: repeat-x; + border-color: #9acfea; +} +.alert-warning { + background-image: -webkit-linear-gradient(top, #fcf8e3 0%, #f8efc0 100%); + background-image: -o-linear-gradient(top, #fcf8e3 0%, #f8efc0 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#fcf8e3), to(#f8efc0)); + background-image: linear-gradient(to bottom, #fcf8e3 0%, #f8efc0 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fff8efc0', GradientType=0); + background-repeat: repeat-x; + border-color: #f5e79e; +} +.alert-danger { + background-image: -webkit-linear-gradient(top, #f2dede 0%, #e7c3c3 100%); + background-image: -o-linear-gradient(top, #f2dede 0%, #e7c3c3 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#f2dede), to(#e7c3c3)); + background-image: linear-gradient(to bottom, #f2dede 0%, #e7c3c3 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffe7c3c3', GradientType=0); + background-repeat: repeat-x; + border-color: #dca7a7; +} +.progress { + background-image: -webkit-linear-gradient(top, #ebebeb 0%, #f5f5f5 100%); + background-image: -o-linear-gradient(top, #ebebeb 0%, #f5f5f5 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#ebebeb), to(#f5f5f5)); + background-image: linear-gradient(to bottom, #ebebeb 0%, #f5f5f5 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffebebeb', endColorstr='#fff5f5f5', GradientType=0); + background-repeat: repeat-x; +} +.progress-bar { + background-image: -webkit-linear-gradient(top, #337ab7 0%, #286090 100%); + background-image: -o-linear-gradient(top, #337ab7 0%, #286090 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#286090)); + background-image: linear-gradient(to bottom, #337ab7 0%, #286090 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff286090', GradientType=0); + background-repeat: repeat-x; +} +.progress-bar-success { + background-image: -webkit-linear-gradient(top, #5cb85c 0%, #449d44 100%); + background-image: -o-linear-gradient(top, #5cb85c 0%, #449d44 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#5cb85c), to(#449d44)); + background-image: linear-gradient(to bottom, #5cb85c 0%, #449d44 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff449d44', GradientType=0); + background-repeat: repeat-x; +} +.progress-bar-info { + background-image: -webkit-linear-gradient(top, #5bc0de 0%, #31b0d5 100%); + background-image: -o-linear-gradient(top, #5bc0de 0%, #31b0d5 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#5bc0de), to(#31b0d5)); + background-image: linear-gradient(to bottom, #5bc0de 0%, #31b0d5 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff31b0d5', GradientType=0); + background-repeat: repeat-x; +} +.progress-bar-warning { + background-image: -webkit-linear-gradient(top, #f0ad4e 0%, #ec971f 100%); + background-image: -o-linear-gradient(top, #f0ad4e 0%, #ec971f 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#f0ad4e), to(#ec971f)); + background-image: linear-gradient(to bottom, #f0ad4e 0%, #ec971f 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffec971f', GradientType=0); + background-repeat: repeat-x; +} +.progress-bar-danger { + background-image: -webkit-linear-gradient(top, #d9534f 0%, #c9302c 100%); + background-image: -o-linear-gradient(top, #d9534f 0%, #c9302c 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#d9534f), to(#c9302c)); + background-image: linear-gradient(to bottom, #d9534f 0%, #c9302c 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc9302c', GradientType=0); + background-repeat: repeat-x; +} +.progress-bar-striped { + background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); + background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); + background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); +} +.list-group { + border-radius: 4px; + -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .075); + box-shadow: 0 1px 2px rgba(0, 0, 0, .075); +} +.list-group-item.active, +.list-group-item.active:hover, +.list-group-item.active:focus { + text-shadow: 0 -1px 0 #286090; + background-image: -webkit-linear-gradient(top, #337ab7 0%, #2b669a 100%); + background-image: -o-linear-gradient(top, #337ab7 0%, #2b669a 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2b669a)); + background-image: linear-gradient(to bottom, #337ab7 0%, #2b669a 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2b669a', GradientType=0); + background-repeat: repeat-x; + border-color: #2b669a; +} +.list-group-item.active .badge, +.list-group-item.active:hover .badge, +.list-group-item.active:focus .badge { + text-shadow: none; +} +.panel { + -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .05); + box-shadow: 0 1px 2px rgba(0, 0, 0, .05); +} +.panel-default > .panel-heading { + background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%); + background-image: -o-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#e8e8e8)); + background-image: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0); + background-repeat: repeat-x; +} +.panel-primary > .panel-heading { + background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%); + background-image: -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2e6da4)); + background-image: linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0); + background-repeat: repeat-x; +} +.panel-success > .panel-heading { + background-image: -webkit-linear-gradient(top, #dff0d8 0%, #d0e9c6 100%); + background-image: -o-linear-gradient(top, #dff0d8 0%, #d0e9c6 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#dff0d8), to(#d0e9c6)); + background-image: linear-gradient(to bottom, #dff0d8 0%, #d0e9c6 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffd0e9c6', GradientType=0); + background-repeat: repeat-x; +} +.panel-info > .panel-heading { + background-image: -webkit-linear-gradient(top, #d9edf7 0%, #c4e3f3 100%); + background-image: -o-linear-gradient(top, #d9edf7 0%, #c4e3f3 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#d9edf7), to(#c4e3f3)); + background-image: linear-gradient(to bottom, #d9edf7 0%, #c4e3f3 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffc4e3f3', GradientType=0); + background-repeat: repeat-x; +} +.panel-warning > .panel-heading { + background-image: -webkit-linear-gradient(top, #fcf8e3 0%, #faf2cc 100%); + background-image: -o-linear-gradient(top, #fcf8e3 0%, #faf2cc 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#fcf8e3), to(#faf2cc)); + background-image: linear-gradient(to bottom, #fcf8e3 0%, #faf2cc 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fffaf2cc', GradientType=0); + background-repeat: repeat-x; +} +.panel-danger > .panel-heading { + background-image: -webkit-linear-gradient(top, #f2dede 0%, #ebcccc 100%); + background-image: -o-linear-gradient(top, #f2dede 0%, #ebcccc 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#f2dede), to(#ebcccc)); + background-image: linear-gradient(to bottom, #f2dede 0%, #ebcccc 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffebcccc', GradientType=0); + background-repeat: repeat-x; +} +.well { + background-image: -webkit-linear-gradient(top, #e8e8e8 0%, #f5f5f5 100%); + background-image: -o-linear-gradient(top, #e8e8e8 0%, #f5f5f5 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#e8e8e8), to(#f5f5f5)); + background-image: linear-gradient(to bottom, #e8e8e8 0%, #f5f5f5 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe8e8e8', endColorstr='#fff5f5f5', GradientType=0); + background-repeat: repeat-x; + border-color: #dcdcdc; + -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, .05), 0 1px 0 rgba(255, 255, 255, .1); + box-shadow: inset 0 1px 3px rgba(0, 0, 0, .05), 0 1px 0 rgba(255, 255, 255, .1); +} +/*# sourceMappingURL=bootstrap-theme.css.map */ diff --git a/src/Sample.RazorPages/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.css.map b/src/Sample.RazorPages/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.css.map new file mode 100644 index 0000000..d876f60 --- /dev/null +++ b/src/Sample.RazorPages/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["bootstrap-theme.css","less/theme.less","less/mixins/vendor-prefixes.less","less/mixins/gradients.less","less/mixins/reset-filter.less"],"names":[],"mappings":"AAAA;;;;GAIG;ACeH;;;;;;EAME,yCAAA;EC2CA,4FAAA;EACQ,oFAAA;CFvDT;ACgBC;;;;;;;;;;;;ECsCA,yDAAA;EACQ,iDAAA;CFxCT;ACMC;;;;;;;;;;;;;;;;;;ECiCA,yBAAA;EACQ,iBAAA;CFnBT;AC/BD;;;;;;EAuBI,kBAAA;CDgBH;ACyBC;;EAEE,uBAAA;CDvBH;AC4BD;EErEI,sEAAA;EACA,iEAAA;EACA,2FAAA;EAAA,oEAAA;EAEA,uHAAA;ECnBF,oEAAA;EH4CA,4BAAA;EACA,sBAAA;EAuC2C,0BAAA;EAA2B,mBAAA;CDjBvE;ACpBC;;EAEE,0BAAA;EACA,6BAAA;CDsBH;ACnBC;;EAEE,0BAAA;EACA,sBAAA;CDqBH;ACfG;;;;;;;;;;;;;;;;;;EAME,0BAAA;EACA,uBAAA;CD6BL;ACbD;EEtEI,yEAAA;EACA,oEAAA;EACA,8FAAA;EAAA,uEAAA;EAEA,uHAAA;ECnBF,oEAAA;EH4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A,uEAAA;EACA,4BAAA;EACA,uHAAA;CHkfH;ACvPD;EE/PI,yEAAA;EACA,oEAAA;EACA,8FAAA;EAAA,uEAAA;EACA,4BAAA;EACA,uHAAA;CHyfH;AC7PD;EEhQI,yEAAA;EACA,oEAAA;EACA,8FAAA;EAAA,uEAAA;EACA,4BAAA;EACA,uHAAA;CHggBH;ACnQD;EEjQI,yEAAA;EACA,oEAAA;EACA,8FAAA;EAAA,uEAAA;EACA,4BAAA;EACA,uHAAA;CHugBH;ACnQD;EExQI,yEAAA;EACA,oEAAA;EACA,8FAAA;EAAA,uEAAA;EACA,4BAAA;EACA,uHAAA;EFsQF,sBAAA;EC3NA,0FAAA;EACQ,kFAAA;CFqeT","file":"bootstrap-theme.css","sourcesContent":["/*!\n * Bootstrap v3.3.7 (http://getbootstrap.com)\n * Copyright 2011-2016 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n */\n.btn-default,\n.btn-primary,\n.btn-success,\n.btn-info,\n.btn-warning,\n.btn-danger {\n text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);\n -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);\n}\n.btn-default:active,\n.btn-primary:active,\n.btn-success:active,\n.btn-info:active,\n.btn-warning:active,\n.btn-danger:active,\n.btn-default.active,\n.btn-primary.active,\n.btn-success.active,\n.btn-info.active,\n.btn-warning.active,\n.btn-danger.active {\n -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);\n box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);\n}\n.btn-default.disabled,\n.btn-primary.disabled,\n.btn-success.disabled,\n.btn-info.disabled,\n.btn-warning.disabled,\n.btn-danger.disabled,\n.btn-default[disabled],\n.btn-primary[disabled],\n.btn-success[disabled],\n.btn-info[disabled],\n.btn-warning[disabled],\n.btn-danger[disabled],\nfieldset[disabled] .btn-default,\nfieldset[disabled] .btn-primary,\nfieldset[disabled] .btn-success,\nfieldset[disabled] .btn-info,\nfieldset[disabled] .btn-warning,\nfieldset[disabled] .btn-danger {\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n.btn-default .badge,\n.btn-primary .badge,\n.btn-success .badge,\n.btn-info .badge,\n.btn-warning .badge,\n.btn-danger .badge {\n text-shadow: none;\n}\n.btn:active,\n.btn.active {\n background-image: none;\n}\n.btn-default {\n background-image: -webkit-linear-gradient(top, #fff 0%, #e0e0e0 100%);\n background-image: -o-linear-gradient(top, #fff 0%, #e0e0e0 100%);\n background-image: linear-gradient(to bottom, #fff 0%, #e0e0e0 100%);\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe0e0e0', GradientType=0);\n filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n background-repeat: repeat-x;\n border-color: #dbdbdb;\n text-shadow: 0 1px 0 #fff;\n border-color: #ccc;\n}\n.btn-default:hover,\n.btn-default:focus {\n background-color: #e0e0e0;\n background-position: 0 -15px;\n}\n.btn-default:active,\n.btn-default.active {\n background-color: #e0e0e0;\n border-color: #dbdbdb;\n}\n.btn-default.disabled,\n.btn-default[disabled],\nfieldset[disabled] .btn-default,\n.btn-default.disabled:hover,\n.btn-default[disabled]:hover,\nfieldset[disabled] .btn-default:hover,\n.btn-default.disabled:focus,\n.btn-default[disabled]:focus,\nfieldset[disabled] .btn-default:focus,\n.btn-default.disabled.focus,\n.btn-default[disabled].focus,\nfieldset[disabled] .btn-default.focus,\n.btn-default.disabled:active,\n.btn-default[disabled]:active,\nfieldset[disabled] .btn-default:active,\n.btn-default.disabled.active,\n.btn-default[disabled].active,\nfieldset[disabled] .btn-default.active {\n background-color: #e0e0e0;\n background-image: none;\n}\n.btn-primary {\n background-image: -webkit-linear-gradient(top, #337ab7 0%, #265a88 100%);\n background-image: -o-linear-gradient(top, #337ab7 0%, #265a88 100%);\n background-image: linear-gradient(to bottom, #337ab7 0%, #265a88 100%);\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff265a88', GradientType=0);\n filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n background-repeat: repeat-x;\n border-color: #245580;\n}\n.btn-primary:hover,\n.btn-primary:focus {\n background-color: #265a88;\n background-position: 0 -15px;\n}\n.btn-primary:active,\n.btn-primary.active {\n background-color: #265a88;\n border-color: #245580;\n}\n.btn-primary.disabled,\n.btn-primary[disabled],\nfieldset[disabled] .btn-primary,\n.btn-primary.disabled:hover,\n.btn-primary[disabled]:hover,\nfieldset[disabled] .btn-primary:hover,\n.btn-primary.disabled:focus,\n.btn-primary[disabled]:focus,\nfieldset[disabled] .btn-primary:focus,\n.btn-primary.disabled.focus,\n.btn-primary[disabled].focus,\nfieldset[disabled] .btn-primary.focus,\n.btn-primary.disabled:active,\n.btn-primary[disabled]:active,\nfieldset[disabled] .btn-primary:active,\n.btn-primary.disabled.active,\n.btn-primary[disabled].active,\nfieldset[disabled] .btn-primary.active {\n background-color: #265a88;\n background-image: none;\n}\n.btn-success {\n background-image: -webkit-linear-gradient(top, #5cb85c 0%, #419641 100%);\n background-image: -o-linear-gradient(top, #5cb85c 0%, #419641 100%);\n background-image: linear-gradient(to bottom, #5cb85c 0%, #419641 100%);\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff419641', GradientType=0);\n filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n background-repeat: repeat-x;\n border-color: #3e8f3e;\n}\n.btn-success:hover,\n.btn-success:focus {\n background-color: #419641;\n background-position: 0 -15px;\n}\n.btn-success:active,\n.btn-success.active {\n background-color: #419641;\n border-color: #3e8f3e;\n}\n.btn-success.disabled,\n.btn-success[disabled],\nfieldset[disabled] .btn-success,\n.btn-success.disabled:hover,\n.btn-success[disabled]:hover,\nfieldset[disabled] .btn-success:hover,\n.btn-success.disabled:focus,\n.btn-success[disabled]:focus,\nfieldset[disabled] .btn-success:focus,\n.btn-success.disabled.focus,\n.btn-success[disabled].focus,\nfieldset[disabled] .btn-success.focus,\n.btn-success.disabled:active,\n.btn-success[disabled]:active,\nfieldset[disabled] .btn-success:active,\n.btn-success.disabled.active,\n.btn-success[disabled].active,\nfieldset[disabled] .btn-success.active {\n background-color: #419641;\n background-image: none;\n}\n.btn-info {\n background-image: -webkit-linear-gradient(top, #5bc0de 0%, #2aabd2 100%);\n background-image: -o-linear-gradient(top, #5bc0de 0%, #2aabd2 100%);\n background-image: linear-gradient(to bottom, #5bc0de 0%, #2aabd2 100%);\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2aabd2', GradientType=0);\n filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n background-repeat: repeat-x;\n border-color: #28a4c9;\n}\n.btn-info:hover,\n.btn-info:focus {\n background-color: #2aabd2;\n background-position: 0 -15px;\n}\n.btn-info:active,\n.btn-info.active {\n background-color: #2aabd2;\n border-color: #28a4c9;\n}\n.btn-info.disabled,\n.btn-info[disabled],\nfieldset[disabled] .btn-info,\n.btn-info.disabled:hover,\n.btn-info[disabled]:hover,\nfieldset[disabled] .btn-info:hover,\n.btn-info.disabled:focus,\n.btn-info[disabled]:focus,\nfieldset[disabled] .btn-info:focus,\n.btn-info.disabled.focus,\n.btn-info[disabled].focus,\nfieldset[disabled] .btn-info.focus,\n.btn-info.disabled:active,\n.btn-info[disabled]:active,\nfieldset[disabled] .btn-info:active,\n.btn-info.disabled.active,\n.btn-info[disabled].active,\nfieldset[disabled] .btn-info.active {\n background-color: #2aabd2;\n background-image: none;\n}\n.btn-warning {\n background-image: -webkit-linear-gradient(top, #f0ad4e 0%, #eb9316 100%);\n background-image: -o-linear-gradient(top, #f0ad4e 0%, #eb9316 100%);\n background-image: linear-gradient(to bottom, #f0ad4e 0%, #eb9316 100%);\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffeb9316', GradientType=0);\n filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n background-repeat: repeat-x;\n border-color: #e38d13;\n}\n.btn-warning:hover,\n.btn-warning:focus {\n background-color: #eb9316;\n background-position: 0 -15px;\n}\n.btn-warning:active,\n.btn-warning.active {\n background-color: #eb9316;\n border-color: #e38d13;\n}\n.btn-warning.disabled,\n.btn-warning[disabled],\nfieldset[disabled] .btn-warning,\n.btn-warning.disabled:hover,\n.btn-warning[disabled]:hover,\nfieldset[disabled] .btn-warning:hover,\n.btn-warning.disabled:focus,\n.btn-warning[disabled]:focus,\nfieldset[disabled] .btn-warning:focus,\n.btn-warning.disabled.focus,\n.btn-warning[disabled].focus,\nfieldset[disabled] .btn-warning.focus,\n.btn-warning.disabled:active,\n.btn-warning[disabled]:active,\nfieldset[disabled] .btn-warning:active,\n.btn-warning.disabled.active,\n.btn-warning[disabled].active,\nfieldset[disabled] .btn-warning.active {\n background-color: #eb9316;\n background-image: none;\n}\n.btn-danger {\n background-image: -webkit-linear-gradient(top, #d9534f 0%, #c12e2a 100%);\n background-image: -o-linear-gradient(top, #d9534f 0%, #c12e2a 100%);\n background-image: linear-gradient(to bottom, #d9534f 0%, #c12e2a 100%);\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc12e2a', GradientType=0);\n filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n background-repeat: repeat-x;\n border-color: #b92c28;\n}\n.btn-danger:hover,\n.btn-danger:focus {\n background-color: #c12e2a;\n background-position: 0 -15px;\n}\n.btn-danger:active,\n.btn-danger.active {\n background-color: #c12e2a;\n border-color: #b92c28;\n}\n.btn-danger.disabled,\n.btn-danger[disabled],\nfieldset[disabled] .btn-danger,\n.btn-danger.disabled:hover,\n.btn-danger[disabled]:hover,\nfieldset[disabled] .btn-danger:hover,\n.btn-danger.disabled:focus,\n.btn-danger[disabled]:focus,\nfieldset[disabled] .btn-danger:focus,\n.btn-danger.disabled.focus,\n.btn-danger[disabled].focus,\nfieldset[disabled] .btn-danger.focus,\n.btn-danger.disabled:active,\n.btn-danger[disabled]:active,\nfieldset[disabled] .btn-danger:active,\n.btn-danger.disabled.active,\n.btn-danger[disabled].active,\nfieldset[disabled] .btn-danger.active {\n background-color: #c12e2a;\n background-image: none;\n}\n.thumbnail,\n.img-thumbnail {\n -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075);\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075);\n}\n.dropdown-menu > li > a:hover,\n.dropdown-menu > li > a:focus {\n background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);\n background-image: -o-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);\n background-image: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);\n background-color: #e8e8e8;\n}\n.dropdown-menu > .active > a,\n.dropdown-menu > .active > a:hover,\n.dropdown-menu > .active > a:focus {\n background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%);\n background-image: -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%);\n background-image: linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);\n background-color: #2e6da4;\n}\n.navbar-default {\n background-image: -webkit-linear-gradient(top, #ffffff 0%, #f8f8f8 100%);\n background-image: -o-linear-gradient(top, #ffffff 0%, #f8f8f8 100%);\n background-image: linear-gradient(to bottom, #ffffff 0%, #f8f8f8 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff8f8f8', GradientType=0);\n filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n border-radius: 4px;\n -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 5px rgba(0, 0, 0, 0.075);\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 5px rgba(0, 0, 0, 0.075);\n}\n.navbar-default .navbar-nav > .open > a,\n.navbar-default .navbar-nav > .active > a {\n background-image: -webkit-linear-gradient(top, #dbdbdb 0%, #e2e2e2 100%);\n background-image: -o-linear-gradient(top, #dbdbdb 0%, #e2e2e2 100%);\n background-image: linear-gradient(to bottom, #dbdbdb 0%, #e2e2e2 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdbdbdb', endColorstr='#ffe2e2e2', GradientType=0);\n -webkit-box-shadow: inset 0 3px 9px rgba(0, 0, 0, 0.075);\n box-shadow: inset 0 3px 9px rgba(0, 0, 0, 0.075);\n}\n.navbar-brand,\n.navbar-nav > li > a {\n text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);\n}\n.navbar-inverse {\n background-image: -webkit-linear-gradient(top, #3c3c3c 0%, #222 100%);\n background-image: -o-linear-gradient(top, #3c3c3c 0%, #222 100%);\n background-image: linear-gradient(to bottom, #3c3c3c 0%, #222 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff3c3c3c', endColorstr='#ff222222', GradientType=0);\n filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n border-radius: 4px;\n}\n.navbar-inverse .navbar-nav > .open > a,\n.navbar-inverse .navbar-nav > .active > a {\n background-image: -webkit-linear-gradient(top, #080808 0%, #0f0f0f 100%);\n background-image: -o-linear-gradient(top, #080808 0%, #0f0f0f 100%);\n background-image: linear-gradient(to bottom, #080808 0%, #0f0f0f 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff080808', endColorstr='#ff0f0f0f', GradientType=0);\n -webkit-box-shadow: inset 0 3px 9px rgba(0, 0, 0, 0.25);\n box-shadow: inset 0 3px 9px rgba(0, 0, 0, 0.25);\n}\n.navbar-inverse .navbar-brand,\n.navbar-inverse .navbar-nav > li > a {\n text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);\n}\n.navbar-static-top,\n.navbar-fixed-top,\n.navbar-fixed-bottom {\n border-radius: 0;\n}\n@media (max-width: 767px) {\n .navbar .navbar-nav .open .dropdown-menu > .active > a,\n .navbar .navbar-nav .open .dropdown-menu > .active > a:hover,\n .navbar .navbar-nav .open .dropdown-menu > .active > a:focus {\n color: #fff;\n background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%);\n background-image: -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%);\n background-image: linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);\n }\n}\n.alert {\n text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);\n -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 2px rgba(0, 0, 0, 0.05);\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 2px rgba(0, 0, 0, 0.05);\n}\n.alert-success {\n background-image: -webkit-linear-gradient(top, #dff0d8 0%, #c8e5bc 100%);\n background-image: -o-linear-gradient(top, #dff0d8 0%, #c8e5bc 100%);\n background-image: linear-gradient(to bottom, #dff0d8 0%, #c8e5bc 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffc8e5bc', GradientType=0);\n border-color: #b2dba1;\n}\n.alert-info {\n background-image: -webkit-linear-gradient(top, #d9edf7 0%, #b9def0 100%);\n background-image: -o-linear-gradient(top, #d9edf7 0%, #b9def0 100%);\n background-image: linear-gradient(to bottom, #d9edf7 0%, #b9def0 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffb9def0', GradientType=0);\n border-color: #9acfea;\n}\n.alert-warning {\n background-image: -webkit-linear-gradient(top, #fcf8e3 0%, #f8efc0 100%);\n background-image: -o-linear-gradient(top, #fcf8e3 0%, #f8efc0 100%);\n background-image: linear-gradient(to bottom, #fcf8e3 0%, #f8efc0 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fff8efc0', GradientType=0);\n border-color: #f5e79e;\n}\n.alert-danger {\n background-image: -webkit-linear-gradient(top, #f2dede 0%, #e7c3c3 100%);\n background-image: -o-linear-gradient(top, #f2dede 0%, #e7c3c3 100%);\n background-image: linear-gradient(to bottom, #f2dede 0%, #e7c3c3 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffe7c3c3', GradientType=0);\n border-color: #dca7a7;\n}\n.progress {\n background-image: -webkit-linear-gradient(top, #ebebeb 0%, #f5f5f5 100%);\n background-image: -o-linear-gradient(top, #ebebeb 0%, #f5f5f5 100%);\n background-image: linear-gradient(to bottom, #ebebeb 0%, #f5f5f5 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffebebeb', endColorstr='#fff5f5f5', GradientType=0);\n}\n.progress-bar {\n background-image: -webkit-linear-gradient(top, #337ab7 0%, #286090 100%);\n background-image: -o-linear-gradient(top, #337ab7 0%, #286090 100%);\n background-image: linear-gradient(to bottom, #337ab7 0%, #286090 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff286090', GradientType=0);\n}\n.progress-bar-success {\n background-image: -webkit-linear-gradient(top, #5cb85c 0%, #449d44 100%);\n background-image: -o-linear-gradient(top, #5cb85c 0%, #449d44 100%);\n background-image: linear-gradient(to bottom, #5cb85c 0%, #449d44 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff449d44', GradientType=0);\n}\n.progress-bar-info {\n background-image: -webkit-linear-gradient(top, #5bc0de 0%, #31b0d5 100%);\n background-image: -o-linear-gradient(top, #5bc0de 0%, #31b0d5 100%);\n background-image: linear-gradient(to bottom, #5bc0de 0%, #31b0d5 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff31b0d5', GradientType=0);\n}\n.progress-bar-warning {\n background-image: -webkit-linear-gradient(top, #f0ad4e 0%, #ec971f 100%);\n background-image: -o-linear-gradient(top, #f0ad4e 0%, #ec971f 100%);\n background-image: linear-gradient(to bottom, #f0ad4e 0%, #ec971f 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffec971f', GradientType=0);\n}\n.progress-bar-danger {\n background-image: -webkit-linear-gradient(top, #d9534f 0%, #c9302c 100%);\n background-image: -o-linear-gradient(top, #d9534f 0%, #c9302c 100%);\n background-image: linear-gradient(to bottom, #d9534f 0%, #c9302c 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc9302c', GradientType=0);\n}\n.progress-bar-striped {\n background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n}\n.list-group {\n border-radius: 4px;\n -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075);\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075);\n}\n.list-group-item.active,\n.list-group-item.active:hover,\n.list-group-item.active:focus {\n text-shadow: 0 -1px 0 #286090;\n background-image: -webkit-linear-gradient(top, #337ab7 0%, #2b669a 100%);\n background-image: -o-linear-gradient(top, #337ab7 0%, #2b669a 100%);\n background-image: linear-gradient(to bottom, #337ab7 0%, #2b669a 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2b669a', GradientType=0);\n border-color: #2b669a;\n}\n.list-group-item.active .badge,\n.list-group-item.active:hover .badge,\n.list-group-item.active:focus .badge {\n text-shadow: none;\n}\n.panel {\n -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);\n}\n.panel-default > .panel-heading {\n background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);\n background-image: -o-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);\n background-image: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);\n}\n.panel-primary > .panel-heading {\n background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%);\n background-image: -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%);\n background-image: linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);\n}\n.panel-success > .panel-heading {\n background-image: -webkit-linear-gradient(top, #dff0d8 0%, #d0e9c6 100%);\n background-image: -o-linear-gradient(top, #dff0d8 0%, #d0e9c6 100%);\n background-image: linear-gradient(to bottom, #dff0d8 0%, #d0e9c6 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffd0e9c6', GradientType=0);\n}\n.panel-info > .panel-heading {\n background-image: -webkit-linear-gradient(top, #d9edf7 0%, #c4e3f3 100%);\n background-image: -o-linear-gradient(top, #d9edf7 0%, #c4e3f3 100%);\n background-image: linear-gradient(to bottom, #d9edf7 0%, #c4e3f3 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffc4e3f3', GradientType=0);\n}\n.panel-warning > .panel-heading {\n background-image: -webkit-linear-gradient(top, #fcf8e3 0%, #faf2cc 100%);\n background-image: -o-linear-gradient(top, #fcf8e3 0%, #faf2cc 100%);\n background-image: linear-gradient(to bottom, #fcf8e3 0%, #faf2cc 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fffaf2cc', GradientType=0);\n}\n.panel-danger > .panel-heading {\n background-image: -webkit-linear-gradient(top, #f2dede 0%, #ebcccc 100%);\n background-image: -o-linear-gradient(top, #f2dede 0%, #ebcccc 100%);\n background-image: linear-gradient(to bottom, #f2dede 0%, #ebcccc 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffebcccc', GradientType=0);\n}\n.well {\n background-image: -webkit-linear-gradient(top, #e8e8e8 0%, #f5f5f5 100%);\n background-image: -o-linear-gradient(top, #e8e8e8 0%, #f5f5f5 100%);\n background-image: linear-gradient(to bottom, #e8e8e8 0%, #f5f5f5 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe8e8e8', endColorstr='#fff5f5f5', GradientType=0);\n border-color: #dcdcdc;\n -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 0 rgba(255, 255, 255, 0.1);\n box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 0 rgba(255, 255, 255, 0.1);\n}\n/*# sourceMappingURL=bootstrap-theme.css.map */","/*!\n * Bootstrap v3.3.7 (http://getbootstrap.com)\n * Copyright 2011-2016 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n */\n\n//\n// Load core variables and mixins\n// --------------------------------------------------\n\n@import \"variables.less\";\n@import \"mixins.less\";\n\n\n//\n// Buttons\n// --------------------------------------------------\n\n// Common styles\n.btn-default,\n.btn-primary,\n.btn-success,\n.btn-info,\n.btn-warning,\n.btn-danger {\n text-shadow: 0 -1px 0 rgba(0,0,0,.2);\n @shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 1px rgba(0,0,0,.075);\n .box-shadow(@shadow);\n\n // Reset the shadow\n &:active,\n &.active {\n .box-shadow(inset 0 3px 5px rgba(0,0,0,.125));\n }\n\n &.disabled,\n &[disabled],\n fieldset[disabled] & {\n .box-shadow(none);\n }\n\n .badge {\n text-shadow: none;\n }\n}\n\n// Mixin for generating new styles\n.btn-styles(@btn-color: #555) {\n #gradient > .vertical(@start-color: @btn-color; @end-color: darken(@btn-color, 12%));\n .reset-filter(); // Disable gradients for IE9 because filter bleeds through rounded corners; see https://github.com/twbs/bootstrap/issues/10620\n background-repeat: repeat-x;\n border-color: darken(@btn-color, 14%);\n\n &:hover,\n &:focus {\n background-color: darken(@btn-color, 12%);\n background-position: 0 -15px;\n }\n\n &:active,\n &.active {\n background-color: darken(@btn-color, 12%);\n border-color: darken(@btn-color, 14%);\n }\n\n &.disabled,\n &[disabled],\n fieldset[disabled] & {\n &,\n &:hover,\n &:focus,\n &.focus,\n &:active,\n &.active {\n background-color: darken(@btn-color, 12%);\n background-image: none;\n }\n }\n}\n\n// Common styles\n.btn {\n // Remove the gradient for the pressed/active state\n &:active,\n &.active {\n background-image: none;\n }\n}\n\n// Apply the mixin to the buttons\n.btn-default { .btn-styles(@btn-default-bg); text-shadow: 0 1px 0 #fff; border-color: #ccc; }\n.btn-primary { .btn-styles(@btn-primary-bg); }\n.btn-success { .btn-styles(@btn-success-bg); }\n.btn-info { .btn-styles(@btn-info-bg); }\n.btn-warning { .btn-styles(@btn-warning-bg); }\n.btn-danger { .btn-styles(@btn-danger-bg); }\n\n\n//\n// Images\n// --------------------------------------------------\n\n.thumbnail,\n.img-thumbnail {\n .box-shadow(0 1px 2px rgba(0,0,0,.075));\n}\n\n\n//\n// Dropdowns\n// --------------------------------------------------\n\n.dropdown-menu > li > a:hover,\n.dropdown-menu > li > a:focus {\n #gradient > .vertical(@start-color: @dropdown-link-hover-bg; @end-color: darken(@dropdown-link-hover-bg, 5%));\n background-color: darken(@dropdown-link-hover-bg, 5%);\n}\n.dropdown-menu > .active > a,\n.dropdown-menu > .active > a:hover,\n.dropdown-menu > .active > a:focus {\n #gradient > .vertical(@start-color: @dropdown-link-active-bg; @end-color: darken(@dropdown-link-active-bg, 5%));\n background-color: darken(@dropdown-link-active-bg, 5%);\n}\n\n\n//\n// Navbar\n// --------------------------------------------------\n\n// Default navbar\n.navbar-default {\n #gradient > .vertical(@start-color: lighten(@navbar-default-bg, 10%); @end-color: @navbar-default-bg);\n .reset-filter(); // Remove gradient in IE<10 to fix bug where dropdowns don't get triggered\n border-radius: @navbar-border-radius;\n @shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 5px rgba(0,0,0,.075);\n .box-shadow(@shadow);\n\n .navbar-nav > .open > a,\n .navbar-nav > .active > a {\n #gradient > .vertical(@start-color: darken(@navbar-default-link-active-bg, 5%); @end-color: darken(@navbar-default-link-active-bg, 2%));\n .box-shadow(inset 0 3px 9px rgba(0,0,0,.075));\n }\n}\n.navbar-brand,\n.navbar-nav > li > a {\n text-shadow: 0 1px 0 rgba(255,255,255,.25);\n}\n\n// Inverted navbar\n.navbar-inverse {\n #gradient > .vertical(@start-color: lighten(@navbar-inverse-bg, 10%); @end-color: @navbar-inverse-bg);\n .reset-filter(); // Remove gradient in IE<10 to fix bug where dropdowns don't get triggered; see https://github.com/twbs/bootstrap/issues/10257\n border-radius: @navbar-border-radius;\n .navbar-nav > .open > a,\n .navbar-nav > .active > a {\n #gradient > .vertical(@start-color: @navbar-inverse-link-active-bg; @end-color: lighten(@navbar-inverse-link-active-bg, 2.5%));\n .box-shadow(inset 0 3px 9px rgba(0,0,0,.25));\n }\n\n .navbar-brand,\n .navbar-nav > li > a {\n text-shadow: 0 -1px 0 rgba(0,0,0,.25);\n }\n}\n\n// Undo rounded corners in static and fixed navbars\n.navbar-static-top,\n.navbar-fixed-top,\n.navbar-fixed-bottom {\n border-radius: 0;\n}\n\n// Fix active state of dropdown items in collapsed mode\n@media (max-width: @grid-float-breakpoint-max) {\n .navbar .navbar-nav .open .dropdown-menu > .active > a {\n &,\n &:hover,\n &:focus {\n color: #fff;\n #gradient > .vertical(@start-color: @dropdown-link-active-bg; @end-color: darken(@dropdown-link-active-bg, 5%));\n }\n }\n}\n\n\n//\n// Alerts\n// --------------------------------------------------\n\n// Common styles\n.alert {\n text-shadow: 0 1px 0 rgba(255,255,255,.2);\n @shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 1px 2px rgba(0,0,0,.05);\n .box-shadow(@shadow);\n}\n\n// Mixin for generating new styles\n.alert-styles(@color) {\n #gradient > .vertical(@start-color: @color; @end-color: darken(@color, 7.5%));\n border-color: darken(@color, 15%);\n}\n\n// Apply the mixin to the alerts\n.alert-success { .alert-styles(@alert-success-bg); }\n.alert-info { .alert-styles(@alert-info-bg); }\n.alert-warning { .alert-styles(@alert-warning-bg); }\n.alert-danger { .alert-styles(@alert-danger-bg); }\n\n\n//\n// Progress bars\n// --------------------------------------------------\n\n// Give the progress background some depth\n.progress {\n #gradient > .vertical(@start-color: darken(@progress-bg, 4%); @end-color: @progress-bg)\n}\n\n// Mixin for generating new styles\n.progress-bar-styles(@color) {\n #gradient > .vertical(@start-color: @color; @end-color: darken(@color, 10%));\n}\n\n// Apply the mixin to the progress bars\n.progress-bar { .progress-bar-styles(@progress-bar-bg); }\n.progress-bar-success { .progress-bar-styles(@progress-bar-success-bg); }\n.progress-bar-info { .progress-bar-styles(@progress-bar-info-bg); }\n.progress-bar-warning { .progress-bar-styles(@progress-bar-warning-bg); }\n.progress-bar-danger { .progress-bar-styles(@progress-bar-danger-bg); }\n\n// Reset the striped class because our mixins don't do multiple gradients and\n// the above custom styles override the new `.progress-bar-striped` in v3.2.0.\n.progress-bar-striped {\n #gradient > .striped();\n}\n\n\n//\n// List groups\n// --------------------------------------------------\n\n.list-group {\n border-radius: @border-radius-base;\n .box-shadow(0 1px 2px rgba(0,0,0,.075));\n}\n.list-group-item.active,\n.list-group-item.active:hover,\n.list-group-item.active:focus {\n text-shadow: 0 -1px 0 darken(@list-group-active-bg, 10%);\n #gradient > .vertical(@start-color: @list-group-active-bg; @end-color: darken(@list-group-active-bg, 7.5%));\n border-color: darken(@list-group-active-border, 7.5%);\n\n .badge {\n text-shadow: none;\n }\n}\n\n\n//\n// Panels\n// --------------------------------------------------\n\n// Common styles\n.panel {\n .box-shadow(0 1px 2px rgba(0,0,0,.05));\n}\n\n// Mixin for generating new styles\n.panel-heading-styles(@color) {\n #gradient > .vertical(@start-color: @color; @end-color: darken(@color, 5%));\n}\n\n// Apply the mixin to the panel headings only\n.panel-default > .panel-heading { .panel-heading-styles(@panel-default-heading-bg); }\n.panel-primary > .panel-heading { .panel-heading-styles(@panel-primary-heading-bg); }\n.panel-success > .panel-heading { .panel-heading-styles(@panel-success-heading-bg); }\n.panel-info > .panel-heading { .panel-heading-styles(@panel-info-heading-bg); }\n.panel-warning > .panel-heading { .panel-heading-styles(@panel-warning-heading-bg); }\n.panel-danger > .panel-heading { .panel-heading-styles(@panel-danger-heading-bg); }\n\n\n//\n// Wells\n// --------------------------------------------------\n\n.well {\n #gradient > .vertical(@start-color: darken(@well-bg, 5%); @end-color: @well-bg);\n border-color: darken(@well-bg, 10%);\n @shadow: inset 0 1px 3px rgba(0,0,0,.05), 0 1px 0 rgba(255,255,255,.1);\n .box-shadow(@shadow);\n}\n","// Vendor Prefixes\n//\n// All vendor mixins are deprecated as of v3.2.0 due to the introduction of\n// Autoprefixer in our Gruntfile. They have been removed in v4.\n\n// - Animations\n// - Backface visibility\n// - Box shadow\n// - Box sizing\n// - Content columns\n// - Hyphens\n// - Placeholder text\n// - Transformations\n// - Transitions\n// - User Select\n\n\n// Animations\n.animation(@animation) {\n -webkit-animation: @animation;\n -o-animation: @animation;\n animation: @animation;\n}\n.animation-name(@name) {\n -webkit-animation-name: @name;\n animation-name: @name;\n}\n.animation-duration(@duration) {\n -webkit-animation-duration: @duration;\n animation-duration: @duration;\n}\n.animation-timing-function(@timing-function) {\n -webkit-animation-timing-function: @timing-function;\n animation-timing-function: @timing-function;\n}\n.animation-delay(@delay) {\n -webkit-animation-delay: @delay;\n animation-delay: @delay;\n}\n.animation-iteration-count(@iteration-count) {\n -webkit-animation-iteration-count: @iteration-count;\n animation-iteration-count: @iteration-count;\n}\n.animation-direction(@direction) {\n -webkit-animation-direction: @direction;\n animation-direction: @direction;\n}\n.animation-fill-mode(@fill-mode) {\n -webkit-animation-fill-mode: @fill-mode;\n animation-fill-mode: @fill-mode;\n}\n\n// Backface visibility\n// Prevent browsers from flickering when using CSS 3D transforms.\n// Default value is `visible`, but can be changed to `hidden`\n\n.backface-visibility(@visibility) {\n -webkit-backface-visibility: @visibility;\n -moz-backface-visibility: @visibility;\n backface-visibility: @visibility;\n}\n\n// Drop shadows\n//\n// Note: Deprecated `.box-shadow()` as of v3.1.0 since all of Bootstrap's\n// supported browsers that have box shadow capabilities now support it.\n\n.box-shadow(@shadow) {\n -webkit-box-shadow: @shadow; // iOS <4.3 & Android <4.1\n box-shadow: @shadow;\n}\n\n// Box sizing\n.box-sizing(@boxmodel) {\n -webkit-box-sizing: @boxmodel;\n -moz-box-sizing: @boxmodel;\n box-sizing: @boxmodel;\n}\n\n// CSS3 Content Columns\n.content-columns(@column-count; @column-gap: @grid-gutter-width) {\n -webkit-column-count: @column-count;\n -moz-column-count: @column-count;\n column-count: @column-count;\n -webkit-column-gap: @column-gap;\n -moz-column-gap: @column-gap;\n column-gap: @column-gap;\n}\n\n// Optional hyphenation\n.hyphens(@mode: auto) {\n word-wrap: break-word;\n -webkit-hyphens: @mode;\n -moz-hyphens: @mode;\n -ms-hyphens: @mode; // IE10+\n -o-hyphens: @mode;\n hyphens: @mode;\n}\n\n// Placeholder text\n.placeholder(@color: @input-color-placeholder) {\n // Firefox\n &::-moz-placeholder {\n color: @color;\n opacity: 1; // Override Firefox's unusual default opacity; see https://github.com/twbs/bootstrap/pull/11526\n }\n &:-ms-input-placeholder { color: @color; } // Internet Explorer 10+\n &::-webkit-input-placeholder { color: @color; } // Safari and Chrome\n}\n\n// Transformations\n.scale(@ratio) {\n -webkit-transform: scale(@ratio);\n -ms-transform: scale(@ratio); // IE9 only\n -o-transform: scale(@ratio);\n transform: scale(@ratio);\n}\n.scale(@ratioX; @ratioY) {\n -webkit-transform: scale(@ratioX, @ratioY);\n -ms-transform: scale(@ratioX, @ratioY); // IE9 only\n -o-transform: scale(@ratioX, @ratioY);\n transform: scale(@ratioX, @ratioY);\n}\n.scaleX(@ratio) {\n -webkit-transform: scaleX(@ratio);\n -ms-transform: scaleX(@ratio); // IE9 only\n -o-transform: scaleX(@ratio);\n transform: scaleX(@ratio);\n}\n.scaleY(@ratio) {\n -webkit-transform: scaleY(@ratio);\n -ms-transform: scaleY(@ratio); // IE9 only\n -o-transform: scaleY(@ratio);\n transform: scaleY(@ratio);\n}\n.skew(@x; @y) {\n -webkit-transform: skewX(@x) skewY(@y);\n -ms-transform: skewX(@x) skewY(@y); // See https://github.com/twbs/bootstrap/issues/4885; IE9+\n -o-transform: skewX(@x) skewY(@y);\n transform: skewX(@x) skewY(@y);\n}\n.translate(@x; @y) {\n -webkit-transform: translate(@x, @y);\n -ms-transform: translate(@x, @y); // IE9 only\n -o-transform: translate(@x, @y);\n transform: translate(@x, @y);\n}\n.translate3d(@x; @y; @z) {\n -webkit-transform: translate3d(@x, @y, @z);\n transform: translate3d(@x, @y, @z);\n}\n.rotate(@degrees) {\n -webkit-transform: rotate(@degrees);\n -ms-transform: rotate(@degrees); // IE9 only\n -o-transform: rotate(@degrees);\n transform: rotate(@degrees);\n}\n.rotateX(@degrees) {\n -webkit-transform: rotateX(@degrees);\n -ms-transform: rotateX(@degrees); // IE9 only\n -o-transform: rotateX(@degrees);\n transform: rotateX(@degrees);\n}\n.rotateY(@degrees) {\n -webkit-transform: rotateY(@degrees);\n -ms-transform: rotateY(@degrees); // IE9 only\n -o-transform: rotateY(@degrees);\n transform: rotateY(@degrees);\n}\n.perspective(@perspective) {\n -webkit-perspective: @perspective;\n -moz-perspective: @perspective;\n perspective: @perspective;\n}\n.perspective-origin(@perspective) {\n -webkit-perspective-origin: @perspective;\n -moz-perspective-origin: @perspective;\n perspective-origin: @perspective;\n}\n.transform-origin(@origin) {\n -webkit-transform-origin: @origin;\n -moz-transform-origin: @origin;\n -ms-transform-origin: @origin; // IE9 only\n transform-origin: @origin;\n}\n\n\n// Transitions\n\n.transition(@transition) {\n -webkit-transition: @transition;\n -o-transition: @transition;\n transition: @transition;\n}\n.transition-property(@transition-property) {\n -webkit-transition-property: @transition-property;\n transition-property: @transition-property;\n}\n.transition-delay(@transition-delay) {\n -webkit-transition-delay: @transition-delay;\n transition-delay: @transition-delay;\n}\n.transition-duration(@transition-duration) {\n -webkit-transition-duration: @transition-duration;\n transition-duration: @transition-duration;\n}\n.transition-timing-function(@timing-function) {\n -webkit-transition-timing-function: @timing-function;\n transition-timing-function: @timing-function;\n}\n.transition-transform(@transition) {\n -webkit-transition: -webkit-transform @transition;\n -moz-transition: -moz-transform @transition;\n -o-transition: -o-transform @transition;\n transition: transform @transition;\n}\n\n\n// User select\n// For selecting text on the page\n\n.user-select(@select) {\n -webkit-user-select: @select;\n -moz-user-select: @select;\n -ms-user-select: @select; // IE10+\n user-select: @select;\n}\n","// Gradients\n\n#gradient {\n\n // Horizontal gradient, from left to right\n //\n // Creates two color stops, start and end, by specifying a color and position for each color stop.\n // Color stops are not available in IE9 and below.\n .horizontal(@start-color: #555; @end-color: #333; @start-percent: 0%; @end-percent: 100%) {\n background-image: -webkit-linear-gradient(left, @start-color @start-percent, @end-color @end-percent); // Safari 5.1-6, Chrome 10+\n background-image: -o-linear-gradient(left, @start-color @start-percent, @end-color @end-percent); // Opera 12\n background-image: linear-gradient(to right, @start-color @start-percent, @end-color @end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+\n background-repeat: repeat-x;\n filter: e(%(\"progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)\",argb(@start-color),argb(@end-color))); // IE9 and down\n }\n\n // Vertical gradient, from top to bottom\n //\n // Creates two color stops, start and end, by specifying a color and position for each color stop.\n // Color stops are not available in IE9 and below.\n .vertical(@start-color: #555; @end-color: #333; @start-percent: 0%; @end-percent: 100%) {\n background-image: -webkit-linear-gradient(top, @start-color @start-percent, @end-color @end-percent); // Safari 5.1-6, Chrome 10+\n background-image: -o-linear-gradient(top, @start-color @start-percent, @end-color @end-percent); // Opera 12\n background-image: linear-gradient(to bottom, @start-color @start-percent, @end-color @end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+\n background-repeat: repeat-x;\n filter: e(%(\"progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)\",argb(@start-color),argb(@end-color))); // IE9 and down\n }\n\n .directional(@start-color: #555; @end-color: #333; @deg: 45deg) {\n background-repeat: repeat-x;\n background-image: -webkit-linear-gradient(@deg, @start-color, @end-color); // Safari 5.1-6, Chrome 10+\n background-image: -o-linear-gradient(@deg, @start-color, @end-color); // Opera 12\n background-image: linear-gradient(@deg, @start-color, @end-color); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+\n }\n .horizontal-three-colors(@start-color: #00b3ee; @mid-color: #7a43b6; @color-stop: 50%; @end-color: #c3325f) {\n background-image: -webkit-linear-gradient(left, @start-color, @mid-color @color-stop, @end-color);\n background-image: -o-linear-gradient(left, @start-color, @mid-color @color-stop, @end-color);\n background-image: linear-gradient(to right, @start-color, @mid-color @color-stop, @end-color);\n background-repeat: no-repeat;\n filter: e(%(\"progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)\",argb(@start-color),argb(@end-color))); // IE9 and down, gets no color-stop at all for proper fallback\n }\n .vertical-three-colors(@start-color: #00b3ee; @mid-color: #7a43b6; @color-stop: 50%; @end-color: #c3325f) {\n background-image: -webkit-linear-gradient(@start-color, @mid-color @color-stop, @end-color);\n background-image: -o-linear-gradient(@start-color, @mid-color @color-stop, @end-color);\n background-image: linear-gradient(@start-color, @mid-color @color-stop, @end-color);\n background-repeat: no-repeat;\n filter: e(%(\"progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)\",argb(@start-color),argb(@end-color))); // IE9 and down, gets no color-stop at all for proper fallback\n }\n .radial(@inner-color: #555; @outer-color: #333) {\n background-image: -webkit-radial-gradient(circle, @inner-color, @outer-color);\n background-image: radial-gradient(circle, @inner-color, @outer-color);\n background-repeat: no-repeat;\n }\n .striped(@color: rgba(255,255,255,.15); @angle: 45deg) {\n background-image: -webkit-linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);\n background-image: -o-linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);\n background-image: linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);\n }\n}\n","// Reset filters for IE\n//\n// When you need to remove a gradient background, do not forget to use this to reset\n// the IE filter for IE9 and below.\n\n.reset-filter() {\n filter: e(%(\"progid:DXImageTransform.Microsoft.gradient(enabled = false)\"));\n}\n"]} \ No newline at end of file diff --git a/src/Sample.RazorPages/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.min.css.map b/src/Sample.RazorPages/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.min.css.map new file mode 100644 index 0000000..94813e9 --- /dev/null +++ b/src/Sample.RazorPages/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.min.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["less/theme.less","less/mixins/vendor-prefixes.less","less/mixins/gradients.less","less/mixins/reset-filter.less"],"names":[],"mappings":";;;;AAmBA,YAAA,aAAA,UAAA,aAAA,aAAA,aAME,YAAA,EAAA,KAAA,EAAA,eC2CA,mBAAA,MAAA,EAAA,IAAA,EAAA,sBAAA,EAAA,IAAA,IAAA,iBACQ,WAAA,MAAA,EAAA,IAAA,EAAA,sBAAA,EAAA,IAAA,IAAA,iBDvCR,mBAAA,mBAAA,oBAAA,oBAAA,iBAAA,iBAAA,oBAAA,oBAAA,oBAAA,oBAAA,oBAAA,oBCsCA,mBAAA,MAAA,EAAA,IAAA,IAAA,iBACQ,WAAA,MAAA,EAAA,IAAA,IAAA,iBDlCR,qBAAA,sBAAA,sBAAA,uBAAA,mBAAA,oBAAA,sBAAA,uBAAA,sBAAA,uBAAA,sBAAA,uBAAA,+BAAA,gCAAA,6BAAA,gCAAA,gCAAA,gCCiCA,mBAAA,KACQ,WAAA,KDlDV,mBAAA,oBAAA,iBAAA,oBAAA,oBAAA,oBAuBI,YAAA,KAyCF,YAAA,YAEE,iBAAA,KAKJ,aErEI,YAAA,EAAA,IAAA,EAAA,KACA,iBAAA,iDACA,iBAAA,4CAAA,iBAAA,qEAEA,iBAAA,+CCnBF,OAAA,+GH4CA,OAAA,0DACA,kBAAA,SAuC2C,aAAA,QAA2B,aAAA,KArCtE,mBAAA,mBAEE,iBAAA,QACA,oBAAA,EAAA,MAGF,oBAAA,oBAEE,iBAAA,QACA,aAAA,QAMA,sBAAA,6BAAA,4BAAA,6BAAA,4BAAA,4BAAA,uBAAA,8BAAA,6BAAA,8BAAA,6BAAA,6BAAA,gCAAA,uCAA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PJ,8BEhQI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,SF6PJ,6BEjQI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,SFoQJ,MExQI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,SFsQF,aAAA,QC3NA,mBAAA,MAAA,EAAA,IAAA,IAAA,gBAAA,EAAA,IAAA,EAAA,qBACQ,WAAA,MAAA,EAAA,IAAA,IAAA,gBAAA,EAAA,IAAA,EAAA","sourcesContent":["/*!\n * Bootstrap v3.3.7 (http://getbootstrap.com)\n * Copyright 2011-2016 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n */\n\n//\n// Load core variables and mixins\n// --------------------------------------------------\n\n@import \"variables.less\";\n@import \"mixins.less\";\n\n\n//\n// Buttons\n// --------------------------------------------------\n\n// Common styles\n.btn-default,\n.btn-primary,\n.btn-success,\n.btn-info,\n.btn-warning,\n.btn-danger {\n text-shadow: 0 -1px 0 rgba(0,0,0,.2);\n @shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 1px rgba(0,0,0,.075);\n .box-shadow(@shadow);\n\n // Reset the shadow\n &:active,\n &.active {\n .box-shadow(inset 0 3px 5px rgba(0,0,0,.125));\n }\n\n &.disabled,\n &[disabled],\n fieldset[disabled] & {\n .box-shadow(none);\n }\n\n .badge {\n text-shadow: none;\n }\n}\n\n// Mixin for generating new styles\n.btn-styles(@btn-color: #555) {\n #gradient > .vertical(@start-color: @btn-color; @end-color: darken(@btn-color, 12%));\n .reset-filter(); // Disable gradients for IE9 because filter bleeds through rounded corners; see https://github.com/twbs/bootstrap/issues/10620\n background-repeat: repeat-x;\n border-color: darken(@btn-color, 14%);\n\n &:hover,\n &:focus {\n background-color: darken(@btn-color, 12%);\n background-position: 0 -15px;\n }\n\n &:active,\n &.active {\n background-color: darken(@btn-color, 12%);\n border-color: darken(@btn-color, 14%);\n }\n\n &.disabled,\n &[disabled],\n fieldset[disabled] & {\n &,\n &:hover,\n &:focus,\n &.focus,\n &:active,\n &.active {\n background-color: darken(@btn-color, 12%);\n background-image: none;\n }\n }\n}\n\n// Common styles\n.btn {\n // Remove the gradient for the pressed/active state\n &:active,\n &.active {\n background-image: none;\n }\n}\n\n// Apply the mixin to the buttons\n.btn-default { .btn-styles(@btn-default-bg); text-shadow: 0 1px 0 #fff; border-color: #ccc; }\n.btn-primary { .btn-styles(@btn-primary-bg); }\n.btn-success { .btn-styles(@btn-success-bg); }\n.btn-info { .btn-styles(@btn-info-bg); }\n.btn-warning { .btn-styles(@btn-warning-bg); }\n.btn-danger { .btn-styles(@btn-danger-bg); }\n\n\n//\n// Images\n// --------------------------------------------------\n\n.thumbnail,\n.img-thumbnail {\n .box-shadow(0 1px 2px rgba(0,0,0,.075));\n}\n\n\n//\n// Dropdowns\n// --------------------------------------------------\n\n.dropdown-menu > li > a:hover,\n.dropdown-menu > li > a:focus {\n #gradient > .vertical(@start-color: @dropdown-link-hover-bg; @end-color: darken(@dropdown-link-hover-bg, 5%));\n background-color: darken(@dropdown-link-hover-bg, 5%);\n}\n.dropdown-menu > .active > a,\n.dropdown-menu > .active > a:hover,\n.dropdown-menu > .active > a:focus {\n #gradient > .vertical(@start-color: @dropdown-link-active-bg; @end-color: darken(@dropdown-link-active-bg, 5%));\n background-color: darken(@dropdown-link-active-bg, 5%);\n}\n\n\n//\n// Navbar\n// --------------------------------------------------\n\n// Default navbar\n.navbar-default {\n #gradient > .vertical(@start-color: lighten(@navbar-default-bg, 10%); @end-color: @navbar-default-bg);\n .reset-filter(); // Remove gradient in IE<10 to fix bug where dropdowns don't get triggered\n border-radius: @navbar-border-radius;\n @shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 5px rgba(0,0,0,.075);\n .box-shadow(@shadow);\n\n .navbar-nav > .open > a,\n .navbar-nav > .active > a {\n #gradient > .vertical(@start-color: darken(@navbar-default-link-active-bg, 5%); @end-color: darken(@navbar-default-link-active-bg, 2%));\n .box-shadow(inset 0 3px 9px rgba(0,0,0,.075));\n }\n}\n.navbar-brand,\n.navbar-nav > li > a {\n text-shadow: 0 1px 0 rgba(255,255,255,.25);\n}\n\n// Inverted navbar\n.navbar-inverse {\n #gradient > .vertical(@start-color: lighten(@navbar-inverse-bg, 10%); @end-color: @navbar-inverse-bg);\n .reset-filter(); // Remove gradient in IE<10 to fix bug where dropdowns don't get triggered; see https://github.com/twbs/bootstrap/issues/10257\n border-radius: @navbar-border-radius;\n .navbar-nav > .open > a,\n .navbar-nav > .active > a {\n #gradient > .vertical(@start-color: @navbar-inverse-link-active-bg; @end-color: lighten(@navbar-inverse-link-active-bg, 2.5%));\n .box-shadow(inset 0 3px 9px rgba(0,0,0,.25));\n }\n\n .navbar-brand,\n .navbar-nav > li > a {\n text-shadow: 0 -1px 0 rgba(0,0,0,.25);\n }\n}\n\n// Undo rounded corners in static and fixed navbars\n.navbar-static-top,\n.navbar-fixed-top,\n.navbar-fixed-bottom {\n border-radius: 0;\n}\n\n// Fix active state of dropdown items in collapsed mode\n@media (max-width: @grid-float-breakpoint-max) {\n .navbar .navbar-nav .open .dropdown-menu > .active > a {\n &,\n &:hover,\n &:focus {\n color: #fff;\n #gradient > .vertical(@start-color: @dropdown-link-active-bg; @end-color: darken(@dropdown-link-active-bg, 5%));\n }\n }\n}\n\n\n//\n// Alerts\n// --------------------------------------------------\n\n// Common styles\n.alert {\n text-shadow: 0 1px 0 rgba(255,255,255,.2);\n @shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 1px 2px rgba(0,0,0,.05);\n .box-shadow(@shadow);\n}\n\n// Mixin for generating new styles\n.alert-styles(@color) {\n #gradient > .vertical(@start-color: @color; @end-color: darken(@color, 7.5%));\n border-color: darken(@color, 15%);\n}\n\n// Apply the mixin to the alerts\n.alert-success { .alert-styles(@alert-success-bg); }\n.alert-info { .alert-styles(@alert-info-bg); }\n.alert-warning { .alert-styles(@alert-warning-bg); }\n.alert-danger { .alert-styles(@alert-danger-bg); }\n\n\n//\n// Progress bars\n// --------------------------------------------------\n\n// Give the progress background some depth\n.progress {\n #gradient > .vertical(@start-color: darken(@progress-bg, 4%); @end-color: @progress-bg)\n}\n\n// Mixin for generating new styles\n.progress-bar-styles(@color) {\n #gradient > .vertical(@start-color: @color; @end-color: darken(@color, 10%));\n}\n\n// Apply the mixin to the progress bars\n.progress-bar { .progress-bar-styles(@progress-bar-bg); }\n.progress-bar-success { .progress-bar-styles(@progress-bar-success-bg); }\n.progress-bar-info { .progress-bar-styles(@progress-bar-info-bg); }\n.progress-bar-warning { .progress-bar-styles(@progress-bar-warning-bg); }\n.progress-bar-danger { .progress-bar-styles(@progress-bar-danger-bg); }\n\n// Reset the striped class because our mixins don't do multiple gradients and\n// the above custom styles override the new `.progress-bar-striped` in v3.2.0.\n.progress-bar-striped {\n #gradient > .striped();\n}\n\n\n//\n// List groups\n// --------------------------------------------------\n\n.list-group {\n border-radius: @border-radius-base;\n .box-shadow(0 1px 2px rgba(0,0,0,.075));\n}\n.list-group-item.active,\n.list-group-item.active:hover,\n.list-group-item.active:focus {\n text-shadow: 0 -1px 0 darken(@list-group-active-bg, 10%);\n #gradient > .vertical(@start-color: @list-group-active-bg; @end-color: darken(@list-group-active-bg, 7.5%));\n border-color: darken(@list-group-active-border, 7.5%);\n\n .badge {\n text-shadow: none;\n }\n}\n\n\n//\n// Panels\n// --------------------------------------------------\n\n// Common styles\n.panel {\n .box-shadow(0 1px 2px rgba(0,0,0,.05));\n}\n\n// Mixin for generating new styles\n.panel-heading-styles(@color) {\n #gradient > .vertical(@start-color: @color; @end-color: darken(@color, 5%));\n}\n\n// Apply the mixin to the panel headings only\n.panel-default > .panel-heading { .panel-heading-styles(@panel-default-heading-bg); }\n.panel-primary > .panel-heading { .panel-heading-styles(@panel-primary-heading-bg); }\n.panel-success > .panel-heading { .panel-heading-styles(@panel-success-heading-bg); }\n.panel-info > .panel-heading { .panel-heading-styles(@panel-info-heading-bg); }\n.panel-warning > .panel-heading { .panel-heading-styles(@panel-warning-heading-bg); }\n.panel-danger > .panel-heading { .panel-heading-styles(@panel-danger-heading-bg); }\n\n\n//\n// Wells\n// --------------------------------------------------\n\n.well {\n #gradient > .vertical(@start-color: darken(@well-bg, 5%); @end-color: @well-bg);\n border-color: darken(@well-bg, 10%);\n @shadow: inset 0 1px 3px rgba(0,0,0,.05), 0 1px 0 rgba(255,255,255,.1);\n .box-shadow(@shadow);\n}\n","// Vendor Prefixes\n//\n// All vendor mixins are deprecated as of v3.2.0 due to the introduction of\n// Autoprefixer in our Gruntfile. They have been removed in v4.\n\n// - Animations\n// - Backface visibility\n// - Box shadow\n// - Box sizing\n// - Content columns\n// - Hyphens\n// - Placeholder text\n// - Transformations\n// - Transitions\n// - User Select\n\n\n// Animations\n.animation(@animation) {\n -webkit-animation: @animation;\n -o-animation: @animation;\n animation: @animation;\n}\n.animation-name(@name) {\n -webkit-animation-name: @name;\n animation-name: @name;\n}\n.animation-duration(@duration) {\n -webkit-animation-duration: @duration;\n animation-duration: @duration;\n}\n.animation-timing-function(@timing-function) {\n -webkit-animation-timing-function: @timing-function;\n animation-timing-function: @timing-function;\n}\n.animation-delay(@delay) {\n -webkit-animation-delay: @delay;\n animation-delay: @delay;\n}\n.animation-iteration-count(@iteration-count) {\n -webkit-animation-iteration-count: @iteration-count;\n animation-iteration-count: @iteration-count;\n}\n.animation-direction(@direction) {\n -webkit-animation-direction: @direction;\n animation-direction: @direction;\n}\n.animation-fill-mode(@fill-mode) {\n -webkit-animation-fill-mode: @fill-mode;\n animation-fill-mode: @fill-mode;\n}\n\n// Backface visibility\n// Prevent browsers from flickering when using CSS 3D transforms.\n// Default value is `visible`, but can be changed to `hidden`\n\n.backface-visibility(@visibility) {\n -webkit-backface-visibility: @visibility;\n -moz-backface-visibility: @visibility;\n backface-visibility: @visibility;\n}\n\n// Drop shadows\n//\n// Note: Deprecated `.box-shadow()` as of v3.1.0 since all of Bootstrap's\n// supported browsers that have box shadow capabilities now support it.\n\n.box-shadow(@shadow) {\n -webkit-box-shadow: @shadow; // iOS <4.3 & Android <4.1\n box-shadow: @shadow;\n}\n\n// Box sizing\n.box-sizing(@boxmodel) {\n -webkit-box-sizing: @boxmodel;\n -moz-box-sizing: @boxmodel;\n box-sizing: @boxmodel;\n}\n\n// CSS3 Content Columns\n.content-columns(@column-count; @column-gap: @grid-gutter-width) {\n -webkit-column-count: @column-count;\n -moz-column-count: @column-count;\n column-count: @column-count;\n -webkit-column-gap: @column-gap;\n -moz-column-gap: @column-gap;\n column-gap: @column-gap;\n}\n\n// Optional hyphenation\n.hyphens(@mode: auto) {\n word-wrap: break-word;\n -webkit-hyphens: @mode;\n -moz-hyphens: @mode;\n -ms-hyphens: @mode; // IE10+\n -o-hyphens: @mode;\n hyphens: @mode;\n}\n\n// Placeholder text\n.placeholder(@color: @input-color-placeholder) {\n // Firefox\n &::-moz-placeholder {\n color: @color;\n opacity: 1; // Override Firefox's unusual default opacity; see https://github.com/twbs/bootstrap/pull/11526\n }\n &:-ms-input-placeholder { color: @color; } // Internet Explorer 10+\n &::-webkit-input-placeholder { color: @color; } // Safari and Chrome\n}\n\n// Transformations\n.scale(@ratio) {\n -webkit-transform: scale(@ratio);\n -ms-transform: scale(@ratio); // IE9 only\n -o-transform: scale(@ratio);\n transform: scale(@ratio);\n}\n.scale(@ratioX; @ratioY) {\n -webkit-transform: scale(@ratioX, @ratioY);\n -ms-transform: scale(@ratioX, @ratioY); // IE9 only\n -o-transform: scale(@ratioX, @ratioY);\n transform: scale(@ratioX, @ratioY);\n}\n.scaleX(@ratio) {\n -webkit-transform: scaleX(@ratio);\n -ms-transform: scaleX(@ratio); // IE9 only\n -o-transform: scaleX(@ratio);\n transform: scaleX(@ratio);\n}\n.scaleY(@ratio) {\n -webkit-transform: scaleY(@ratio);\n -ms-transform: scaleY(@ratio); // IE9 only\n -o-transform: scaleY(@ratio);\n transform: scaleY(@ratio);\n}\n.skew(@x; @y) {\n -webkit-transform: skewX(@x) skewY(@y);\n -ms-transform: skewX(@x) skewY(@y); // See https://github.com/twbs/bootstrap/issues/4885; IE9+\n -o-transform: skewX(@x) skewY(@y);\n transform: skewX(@x) skewY(@y);\n}\n.translate(@x; @y) {\n -webkit-transform: translate(@x, @y);\n -ms-transform: translate(@x, @y); // IE9 only\n -o-transform: translate(@x, @y);\n transform: translate(@x, @y);\n}\n.translate3d(@x; @y; @z) {\n -webkit-transform: translate3d(@x, @y, @z);\n transform: translate3d(@x, @y, @z);\n}\n.rotate(@degrees) {\n -webkit-transform: rotate(@degrees);\n -ms-transform: rotate(@degrees); // IE9 only\n -o-transform: rotate(@degrees);\n transform: rotate(@degrees);\n}\n.rotateX(@degrees) {\n -webkit-transform: rotateX(@degrees);\n -ms-transform: rotateX(@degrees); // IE9 only\n -o-transform: rotateX(@degrees);\n transform: rotateX(@degrees);\n}\n.rotateY(@degrees) {\n -webkit-transform: rotateY(@degrees);\n -ms-transform: rotateY(@degrees); // IE9 only\n -o-transform: rotateY(@degrees);\n transform: rotateY(@degrees);\n}\n.perspective(@perspective) {\n -webkit-perspective: @perspective;\n -moz-perspective: @perspective;\n perspective: @perspective;\n}\n.perspective-origin(@perspective) {\n -webkit-perspective-origin: @perspective;\n -moz-perspective-origin: @perspective;\n perspective-origin: @perspective;\n}\n.transform-origin(@origin) {\n -webkit-transform-origin: @origin;\n -moz-transform-origin: @origin;\n -ms-transform-origin: @origin; // IE9 only\n transform-origin: @origin;\n}\n\n\n// Transitions\n\n.transition(@transition) {\n -webkit-transition: @transition;\n -o-transition: @transition;\n transition: @transition;\n}\n.transition-property(@transition-property) {\n -webkit-transition-property: @transition-property;\n transition-property: @transition-property;\n}\n.transition-delay(@transition-delay) {\n -webkit-transition-delay: @transition-delay;\n transition-delay: @transition-delay;\n}\n.transition-duration(@transition-duration) {\n -webkit-transition-duration: @transition-duration;\n transition-duration: @transition-duration;\n}\n.transition-timing-function(@timing-function) {\n -webkit-transition-timing-function: @timing-function;\n transition-timing-function: @timing-function;\n}\n.transition-transform(@transition) {\n -webkit-transition: -webkit-transform @transition;\n -moz-transition: -moz-transform @transition;\n -o-transition: -o-transform @transition;\n transition: transform @transition;\n}\n\n\n// User select\n// For selecting text on the page\n\n.user-select(@select) {\n -webkit-user-select: @select;\n -moz-user-select: @select;\n -ms-user-select: @select; // IE10+\n user-select: @select;\n}\n","// Gradients\n\n#gradient {\n\n // Horizontal gradient, from left to right\n //\n // Creates two color stops, start and end, by specifying a color and position for each color stop.\n // Color stops are not available in IE9 and below.\n .horizontal(@start-color: #555; @end-color: #333; @start-percent: 0%; @end-percent: 100%) {\n background-image: -webkit-linear-gradient(left, @start-color @start-percent, @end-color @end-percent); // Safari 5.1-6, Chrome 10+\n background-image: -o-linear-gradient(left, @start-color @start-percent, @end-color @end-percent); // Opera 12\n background-image: linear-gradient(to right, @start-color @start-percent, @end-color @end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+\n background-repeat: repeat-x;\n filter: e(%(\"progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)\",argb(@start-color),argb(@end-color))); // IE9 and down\n }\n\n // Vertical gradient, from top to bottom\n //\n // Creates two color stops, start and end, by specifying a color and position for each color stop.\n // Color stops are not available in IE9 and below.\n .vertical(@start-color: #555; @end-color: #333; @start-percent: 0%; @end-percent: 100%) {\n background-image: -webkit-linear-gradient(top, @start-color @start-percent, @end-color @end-percent); // Safari 5.1-6, Chrome 10+\n background-image: -o-linear-gradient(top, @start-color @start-percent, @end-color @end-percent); // Opera 12\n background-image: linear-gradient(to bottom, @start-color @start-percent, @end-color @end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+\n background-repeat: repeat-x;\n filter: e(%(\"progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)\",argb(@start-color),argb(@end-color))); // IE9 and down\n }\n\n .directional(@start-color: #555; @end-color: #333; @deg: 45deg) {\n background-repeat: repeat-x;\n background-image: -webkit-linear-gradient(@deg, @start-color, @end-color); // Safari 5.1-6, Chrome 10+\n background-image: -o-linear-gradient(@deg, @start-color, @end-color); // Opera 12\n background-image: linear-gradient(@deg, @start-color, @end-color); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+\n }\n .horizontal-three-colors(@start-color: #00b3ee; @mid-color: #7a43b6; @color-stop: 50%; @end-color: #c3325f) {\n background-image: -webkit-linear-gradient(left, @start-color, @mid-color @color-stop, @end-color);\n background-image: -o-linear-gradient(left, @start-color, @mid-color @color-stop, @end-color);\n background-image: linear-gradient(to right, @start-color, @mid-color @color-stop, @end-color);\n background-repeat: no-repeat;\n filter: e(%(\"progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)\",argb(@start-color),argb(@end-color))); // IE9 and down, gets no color-stop at all for proper fallback\n }\n .vertical-three-colors(@start-color: #00b3ee; @mid-color: #7a43b6; @color-stop: 50%; @end-color: #c3325f) {\n background-image: -webkit-linear-gradient(@start-color, @mid-color @color-stop, @end-color);\n background-image: -o-linear-gradient(@start-color, @mid-color @color-stop, @end-color);\n background-image: linear-gradient(@start-color, @mid-color @color-stop, @end-color);\n background-repeat: no-repeat;\n filter: e(%(\"progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)\",argb(@start-color),argb(@end-color))); // IE9 and down, gets no color-stop at all for proper fallback\n }\n .radial(@inner-color: #555; @outer-color: #333) {\n background-image: -webkit-radial-gradient(circle, @inner-color, @outer-color);\n background-image: radial-gradient(circle, @inner-color, @outer-color);\n background-repeat: no-repeat;\n }\n .striped(@color: rgba(255,255,255,.15); @angle: 45deg) {\n background-image: -webkit-linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);\n background-image: -o-linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);\n background-image: linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);\n }\n}\n","// Reset filters for IE\n//\n// When you need to remove a gradient background, do not forget to use this to reset\n// the IE filter for IE9 and below.\n\n.reset-filter() {\n filter: e(%(\"progid:DXImageTransform.Microsoft.gradient(enabled = false)\"));\n}\n"]} \ No newline at end of file diff --git a/src/Sample.RazorPages/wwwroot/lib/bootstrap/dist/css/bootstrap.css b/src/Sample.RazorPages/wwwroot/lib/bootstrap/dist/css/bootstrap.css new file mode 100644 index 0000000..6167622 --- /dev/null +++ b/src/Sample.RazorPages/wwwroot/lib/bootstrap/dist/css/bootstrap.css @@ -0,0 +1,6757 @@ +/*! + * Bootstrap v3.3.7 (http://getbootstrap.com) + * Copyright 2011-2016 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + */ +/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */ +html { + font-family: sans-serif; + -webkit-text-size-adjust: 100%; + -ms-text-size-adjust: 100%; +} +body { + margin: 0; +} +article, +aside, +details, +figcaption, +figure, +footer, +header, +hgroup, +main, +menu, +nav, +section, +summary { + display: block; +} +audio, +canvas, +progress, +video { + display: inline-block; + vertical-align: baseline; +} +audio:not([controls]) { + display: none; + height: 0; +} +[hidden], +template { + display: none; +} +a { + background-color: transparent; +} +a:active, +a:hover { + outline: 0; +} +abbr[title] { + border-bottom: 1px dotted; +} +b, +strong { + font-weight: bold; +} +dfn { + font-style: italic; +} +h1 { + margin: .67em 0; + font-size: 2em; +} +mark { + color: #000; + background: #ff0; +} +small { + font-size: 80%; +} +sub, +sup { + position: relative; + font-size: 75%; + line-height: 0; + vertical-align: baseline; +} +sup { + top: -.5em; +} +sub { + bottom: -.25em; +} +img { + border: 0; +} +svg:not(:root) { + overflow: hidden; +} +figure { + margin: 1em 40px; +} +hr { + height: 0; + -webkit-box-sizing: content-box; + -moz-box-sizing: content-box; + box-sizing: content-box; +} +pre { + overflow: auto; +} +code, +kbd, +pre, +samp { + font-family: monospace, monospace; + font-size: 1em; +} +button, +input, +optgroup, +select, +textarea { + margin: 0; + font: inherit; + color: inherit; +} +button { + overflow: visible; +} +button, +select { + text-transform: none; +} +button, +html input[type="button"], +input[type="reset"], +input[type="submit"] { + -webkit-appearance: button; + cursor: pointer; +} +button[disabled], +html input[disabled] { + cursor: default; +} +button::-moz-focus-inner, +input::-moz-focus-inner { + padding: 0; + border: 0; +} +input { + line-height: normal; +} +input[type="checkbox"], +input[type="radio"] { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + padding: 0; +} +input[type="number"]::-webkit-inner-spin-button, +input[type="number"]::-webkit-outer-spin-button { + height: auto; +} +input[type="search"] { + -webkit-box-sizing: content-box; + -moz-box-sizing: content-box; + box-sizing: content-box; + -webkit-appearance: textfield; +} +input[type="search"]::-webkit-search-cancel-button, +input[type="search"]::-webkit-search-decoration { + -webkit-appearance: none; +} +fieldset { + padding: .35em .625em .75em; + margin: 0 2px; + border: 1px solid #c0c0c0; +} +legend { + padding: 0; + border: 0; +} +textarea { + overflow: auto; +} +optgroup { + font-weight: bold; +} +table { + border-spacing: 0; + border-collapse: collapse; +} +td, +th { + padding: 0; +} +/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */ +@media print { + *, + *:before, + *:after { + color: #000 !important; + text-shadow: none !important; + background: transparent !important; + -webkit-box-shadow: none !important; + box-shadow: none !important; + } + a, + a:visited { + text-decoration: underline; + } + a[href]:after { + content: " (" attr(href) ")"; + } + abbr[title]:after { + content: " (" attr(title) ")"; + } + a[href^="#"]:after, + a[href^="javascript:"]:after { + content: ""; + } + pre, + blockquote { + border: 1px solid #999; + + page-break-inside: avoid; + } + thead { + display: table-header-group; + } + tr, + img { + page-break-inside: avoid; + } + img { + max-width: 100% !important; + } + p, + h2, + h3 { + orphans: 3; + widows: 3; + } + h2, + h3 { + page-break-after: avoid; + } + .navbar { + display: none; + } + .btn > .caret, + .dropup > .btn > .caret { + border-top-color: #000 !important; + } + .label { + border: 1px solid #000; + } + .table { + border-collapse: collapse !important; + } + .table td, + .table th { + background-color: #fff !important; + } + .table-bordered th, + .table-bordered td { + border: 1px solid #ddd !important; + } +} +@font-face { + font-family: 'Glyphicons Halflings'; + + src: url('../fonts/glyphicons-halflings-regular.eot'); + src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff2') format('woff2'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg'); +} +.glyphicon { + position: relative; + top: 1px; + display: inline-block; + font-family: 'Glyphicons Halflings'; + font-style: normal; + font-weight: normal; + line-height: 1; + + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} +.glyphicon-asterisk:before { + content: "\002a"; +} +.glyphicon-plus:before { + content: "\002b"; +} +.glyphicon-euro:before, +.glyphicon-eur:before { + content: "\20ac"; +} +.glyphicon-minus:before { + content: "\2212"; +} +.glyphicon-cloud:before { + content: "\2601"; +} +.glyphicon-envelope:before { + content: "\2709"; +} +.glyphicon-pencil:before { + content: "\270f"; +} +.glyphicon-glass:before { + content: "\e001"; +} +.glyphicon-music:before { + content: "\e002"; +} +.glyphicon-search:before { + content: "\e003"; +} +.glyphicon-heart:before { + content: "\e005"; +} +.glyphicon-star:before { + content: "\e006"; +} +.glyphicon-star-empty:before { + content: "\e007"; +} +.glyphicon-user:before { + content: "\e008"; +} +.glyphicon-film:before { + content: "\e009"; +} +.glyphicon-th-large:before { + content: "\e010"; +} +.glyphicon-th:before { + content: "\e011"; +} +.glyphicon-th-list:before { + content: "\e012"; +} +.glyphicon-ok:before { + content: "\e013"; +} +.glyphicon-remove:before { + content: "\e014"; +} +.glyphicon-zoom-in:before { + content: "\e015"; +} +.glyphicon-zoom-out:before { + content: "\e016"; +} +.glyphicon-off:before { + content: "\e017"; +} +.glyphicon-signal:before { + content: "\e018"; +} +.glyphicon-cog:before { + content: "\e019"; +} +.glyphicon-trash:before { + content: "\e020"; +} +.glyphicon-home:before { + content: "\e021"; +} +.glyphicon-file:before { + content: "\e022"; +} +.glyphicon-time:before { + content: "\e023"; +} +.glyphicon-road:before { + content: "\e024"; +} +.glyphicon-download-alt:before { + content: "\e025"; +} +.glyphicon-download:before { + content: "\e026"; +} +.glyphicon-upload:before { + content: "\e027"; +} +.glyphicon-inbox:before { + content: "\e028"; +} +.glyphicon-play-circle:before { + content: "\e029"; +} +.glyphicon-repeat:before { + content: "\e030"; +} +.glyphicon-refresh:before { + content: "\e031"; +} +.glyphicon-list-alt:before { + content: "\e032"; +} +.glyphicon-lock:before { + content: "\e033"; +} +.glyphicon-flag:before { + content: "\e034"; +} +.glyphicon-headphones:before { + content: "\e035"; +} +.glyphicon-volume-off:before { + content: "\e036"; +} +.glyphicon-volume-down:before { + content: "\e037"; +} +.glyphicon-volume-up:before { + content: "\e038"; +} +.glyphicon-qrcode:before { + content: "\e039"; +} +.glyphicon-barcode:before { + content: "\e040"; +} +.glyphicon-tag:before { + content: "\e041"; +} +.glyphicon-tags:before { + content: "\e042"; +} +.glyphicon-book:before { + content: "\e043"; +} +.glyphicon-bookmark:before { + content: "\e044"; +} +.glyphicon-print:before { + content: "\e045"; +} +.glyphicon-camera:before { + content: "\e046"; +} +.glyphicon-font:before { + content: "\e047"; +} +.glyphicon-bold:before { + content: "\e048"; +} +.glyphicon-italic:before { + content: "\e049"; +} +.glyphicon-text-height:before { + content: "\e050"; +} +.glyphicon-text-width:before { + content: "\e051"; +} +.glyphicon-align-left:before { + content: "\e052"; +} +.glyphicon-align-center:before { + content: "\e053"; +} +.glyphicon-align-right:before { + content: "\e054"; +} +.glyphicon-align-justify:before { + content: "\e055"; +} +.glyphicon-list:before { + content: "\e056"; +} +.glyphicon-indent-left:before { + content: "\e057"; +} +.glyphicon-indent-right:before { + content: "\e058"; +} +.glyphicon-facetime-video:before { + content: "\e059"; +} +.glyphicon-picture:before { + content: "\e060"; +} +.glyphicon-map-marker:before { + content: "\e062"; +} +.glyphicon-adjust:before { + content: "\e063"; +} +.glyphicon-tint:before { + content: "\e064"; +} +.glyphicon-edit:before { + content: "\e065"; +} +.glyphicon-share:before { + content: "\e066"; +} +.glyphicon-check:before { + content: "\e067"; +} +.glyphicon-move:before { + content: "\e068"; +} +.glyphicon-step-backward:before { + content: "\e069"; +} +.glyphicon-fast-backward:before { + content: "\e070"; +} +.glyphicon-backward:before { + content: "\e071"; +} +.glyphicon-play:before { + content: "\e072"; +} +.glyphicon-pause:before { + content: "\e073"; +} +.glyphicon-stop:before { + content: "\e074"; +} +.glyphicon-forward:before { + content: "\e075"; +} +.glyphicon-fast-forward:before { + content: "\e076"; +} +.glyphicon-step-forward:before { + content: "\e077"; +} +.glyphicon-eject:before { + content: "\e078"; +} +.glyphicon-chevron-left:before { + content: "\e079"; +} +.glyphicon-chevron-right:before { + content: "\e080"; +} +.glyphicon-plus-sign:before { + content: "\e081"; +} +.glyphicon-minus-sign:before { + content: "\e082"; +} +.glyphicon-remove-sign:before { + content: "\e083"; +} +.glyphicon-ok-sign:before { + content: "\e084"; +} +.glyphicon-question-sign:before { + content: "\e085"; +} +.glyphicon-info-sign:before { + content: "\e086"; +} +.glyphicon-screenshot:before { + content: "\e087"; +} +.glyphicon-remove-circle:before { + content: "\e088"; +} +.glyphicon-ok-circle:before { + content: "\e089"; +} +.glyphicon-ban-circle:before { + content: "\e090"; +} +.glyphicon-arrow-left:before { + content: "\e091"; +} +.glyphicon-arrow-right:before { + content: "\e092"; +} +.glyphicon-arrow-up:before { + content: "\e093"; +} +.glyphicon-arrow-down:before { + content: "\e094"; +} +.glyphicon-share-alt:before { + content: "\e095"; +} +.glyphicon-resize-full:before { + content: "\e096"; +} +.glyphicon-resize-small:before { + content: "\e097"; +} +.glyphicon-exclamation-sign:before { + content: "\e101"; +} +.glyphicon-gift:before { + content: "\e102"; +} +.glyphicon-leaf:before { + content: "\e103"; +} +.glyphicon-fire:before { + content: "\e104"; +} +.glyphicon-eye-open:before { + content: "\e105"; +} +.glyphicon-eye-close:before { + content: "\e106"; +} +.glyphicon-warning-sign:before { + content: "\e107"; +} +.glyphicon-plane:before { + content: "\e108"; +} +.glyphicon-calendar:before { + content: "\e109"; +} +.glyphicon-random:before { + content: "\e110"; +} +.glyphicon-comment:before { + content: "\e111"; +} +.glyphicon-magnet:before { + content: "\e112"; +} +.glyphicon-chevron-up:before { + content: "\e113"; +} +.glyphicon-chevron-down:before { + content: "\e114"; +} +.glyphicon-retweet:before { + content: "\e115"; +} +.glyphicon-shopping-cart:before { + content: "\e116"; +} +.glyphicon-folder-close:before { + content: "\e117"; +} +.glyphicon-folder-open:before { + content: "\e118"; +} +.glyphicon-resize-vertical:before { + content: "\e119"; +} +.glyphicon-resize-horizontal:before { + content: "\e120"; +} +.glyphicon-hdd:before { + content: "\e121"; +} +.glyphicon-bullhorn:before { + content: "\e122"; +} +.glyphicon-bell:before { + content: "\e123"; +} +.glyphicon-certificate:before { + content: "\e124"; +} +.glyphicon-thumbs-up:before { + content: "\e125"; +} +.glyphicon-thumbs-down:before { + content: "\e126"; +} +.glyphicon-hand-right:before { + content: "\e127"; +} +.glyphicon-hand-left:before { + content: "\e128"; +} +.glyphicon-hand-up:before { + content: "\e129"; +} +.glyphicon-hand-down:before { + content: "\e130"; +} +.glyphicon-circle-arrow-right:before { + content: "\e131"; +} +.glyphicon-circle-arrow-left:before { + content: "\e132"; +} +.glyphicon-circle-arrow-up:before { + content: "\e133"; +} +.glyphicon-circle-arrow-down:before { + content: "\e134"; +} +.glyphicon-globe:before { + content: "\e135"; +} +.glyphicon-wrench:before { + content: "\e136"; +} +.glyphicon-tasks:before { + content: "\e137"; +} +.glyphicon-filter:before { + content: "\e138"; +} +.glyphicon-briefcase:before { + content: "\e139"; +} +.glyphicon-fullscreen:before { + content: "\e140"; +} +.glyphicon-dashboard:before { + content: "\e141"; +} +.glyphicon-paperclip:before { + content: "\e142"; +} +.glyphicon-heart-empty:before { + content: "\e143"; +} +.glyphicon-link:before { + content: "\e144"; +} +.glyphicon-phone:before { + content: "\e145"; +} +.glyphicon-pushpin:before { + content: "\e146"; +} +.glyphicon-usd:before { + content: "\e148"; +} +.glyphicon-gbp:before { + content: "\e149"; +} +.glyphicon-sort:before { + content: "\e150"; +} +.glyphicon-sort-by-alphabet:before { + content: "\e151"; +} +.glyphicon-sort-by-alphabet-alt:before { + content: "\e152"; +} +.glyphicon-sort-by-order:before { + content: "\e153"; +} +.glyphicon-sort-by-order-alt:before { + content: "\e154"; +} +.glyphicon-sort-by-attributes:before { + content: "\e155"; +} +.glyphicon-sort-by-attributes-alt:before { + content: "\e156"; +} +.glyphicon-unchecked:before { + content: "\e157"; +} +.glyphicon-expand:before { + content: "\e158"; +} +.glyphicon-collapse-down:before { + content: "\e159"; +} +.glyphicon-collapse-up:before { + content: "\e160"; +} +.glyphicon-log-in:before { + content: "\e161"; +} +.glyphicon-flash:before { + content: "\e162"; +} +.glyphicon-log-out:before { + content: "\e163"; +} +.glyphicon-new-window:before { + content: "\e164"; +} +.glyphicon-record:before { + content: "\e165"; +} +.glyphicon-save:before { + content: "\e166"; +} +.glyphicon-open:before { + content: "\e167"; +} +.glyphicon-saved:before { + content: "\e168"; +} +.glyphicon-import:before { + content: "\e169"; +} +.glyphicon-export:before { + content: "\e170"; +} +.glyphicon-send:before { + content: "\e171"; +} +.glyphicon-floppy-disk:before { + content: "\e172"; +} +.glyphicon-floppy-saved:before { + content: "\e173"; +} +.glyphicon-floppy-remove:before { + content: "\e174"; +} +.glyphicon-floppy-save:before { + content: "\e175"; +} +.glyphicon-floppy-open:before { + content: "\e176"; +} +.glyphicon-credit-card:before { + content: "\e177"; +} +.glyphicon-transfer:before { + content: "\e178"; +} +.glyphicon-cutlery:before { + content: "\e179"; +} +.glyphicon-header:before { + content: "\e180"; +} +.glyphicon-compressed:before { + content: "\e181"; +} +.glyphicon-earphone:before { + content: "\e182"; +} +.glyphicon-phone-alt:before { + content: "\e183"; +} +.glyphicon-tower:before { + content: "\e184"; +} +.glyphicon-stats:before { + content: "\e185"; +} +.glyphicon-sd-video:before { + content: "\e186"; +} +.glyphicon-hd-video:before { + content: "\e187"; +} +.glyphicon-subtitles:before { + content: "\e188"; +} +.glyphicon-sound-stereo:before { + content: "\e189"; +} +.glyphicon-sound-dolby:before { + content: "\e190"; +} +.glyphicon-sound-5-1:before { + content: "\e191"; +} +.glyphicon-sound-6-1:before { + content: "\e192"; +} +.glyphicon-sound-7-1:before { + content: "\e193"; +} +.glyphicon-copyright-mark:before { + content: "\e194"; +} +.glyphicon-registration-mark:before { + content: "\e195"; +} +.glyphicon-cloud-download:before { + content: "\e197"; +} +.glyphicon-cloud-upload:before { + content: "\e198"; +} +.glyphicon-tree-conifer:before { + content: "\e199"; +} +.glyphicon-tree-deciduous:before { + content: "\e200"; +} +.glyphicon-cd:before { + content: "\e201"; +} +.glyphicon-save-file:before { + content: "\e202"; +} +.glyphicon-open-file:before { + content: "\e203"; +} +.glyphicon-level-up:before { + content: "\e204"; +} +.glyphicon-copy:before { + content: "\e205"; +} +.glyphicon-paste:before { + content: "\e206"; +} +.glyphicon-alert:before { + content: "\e209"; +} +.glyphicon-equalizer:before { + content: "\e210"; +} +.glyphicon-king:before { + content: "\e211"; +} +.glyphicon-queen:before { + content: "\e212"; +} +.glyphicon-pawn:before { + content: "\e213"; +} +.glyphicon-bishop:before { + content: "\e214"; +} +.glyphicon-knight:before { + content: "\e215"; +} +.glyphicon-baby-formula:before { + content: "\e216"; +} +.glyphicon-tent:before { + content: "\26fa"; +} +.glyphicon-blackboard:before { + content: "\e218"; +} +.glyphicon-bed:before { + content: "\e219"; +} +.glyphicon-apple:before { + content: "\f8ff"; +} +.glyphicon-erase:before { + content: "\e221"; +} +.glyphicon-hourglass:before { + content: "\231b"; +} +.glyphicon-lamp:before { + content: "\e223"; +} +.glyphicon-duplicate:before { + content: "\e224"; +} +.glyphicon-piggy-bank:before { + content: "\e225"; +} +.glyphicon-scissors:before { + content: "\e226"; +} +.glyphicon-bitcoin:before { + content: "\e227"; +} +.glyphicon-btc:before { + content: "\e227"; +} +.glyphicon-xbt:before { + content: "\e227"; +} +.glyphicon-yen:before { + content: "\00a5"; +} +.glyphicon-jpy:before { + content: "\00a5"; +} +.glyphicon-ruble:before { + content: "\20bd"; +} +.glyphicon-rub:before { + content: "\20bd"; +} +.glyphicon-scale:before { + content: "\e230"; +} +.glyphicon-ice-lolly:before { + content: "\e231"; +} +.glyphicon-ice-lolly-tasted:before { + content: "\e232"; +} +.glyphicon-education:before { + content: "\e233"; +} +.glyphicon-option-horizontal:before { + content: "\e234"; +} +.glyphicon-option-vertical:before { + content: "\e235"; +} +.glyphicon-menu-hamburger:before { + content: "\e236"; +} +.glyphicon-modal-window:before { + content: "\e237"; +} +.glyphicon-oil:before { + content: "\e238"; +} +.glyphicon-grain:before { + content: "\e239"; +} +.glyphicon-sunglasses:before { + content: "\e240"; +} +.glyphicon-text-size:before { + content: "\e241"; +} +.glyphicon-text-color:before { + content: "\e242"; +} +.glyphicon-text-background:before { + content: "\e243"; +} +.glyphicon-object-align-top:before { + content: "\e244"; +} +.glyphicon-object-align-bottom:before { + content: "\e245"; +} +.glyphicon-object-align-horizontal:before { + content: "\e246"; +} +.glyphicon-object-align-left:before { + content: "\e247"; +} +.glyphicon-object-align-vertical:before { + content: "\e248"; +} +.glyphicon-object-align-right:before { + content: "\e249"; +} +.glyphicon-triangle-right:before { + content: "\e250"; +} +.glyphicon-triangle-left:before { + content: "\e251"; +} +.glyphicon-triangle-bottom:before { + content: "\e252"; +} +.glyphicon-triangle-top:before { + content: "\e253"; +} +.glyphicon-console:before { + content: "\e254"; +} +.glyphicon-superscript:before { + content: "\e255"; +} +.glyphicon-subscript:before { + content: "\e256"; +} +.glyphicon-menu-left:before { + content: "\e257"; +} +.glyphicon-menu-right:before { + content: "\e258"; +} +.glyphicon-menu-down:before { + content: "\e259"; +} +.glyphicon-menu-up:before { + content: "\e260"; +} +* { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +*:before, +*:after { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +html { + font-size: 10px; + + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); +} +body { + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + font-size: 14px; + line-height: 1.42857143; + color: #333; + background-color: #fff; +} +input, +button, +select, +textarea { + font-family: inherit; + font-size: inherit; + line-height: inherit; +} +a { + color: #337ab7; + text-decoration: none; +} +a:hover, +a:focus { + color: #23527c; + text-decoration: underline; +} +a:focus { + outline: 5px auto -webkit-focus-ring-color; + outline-offset: -2px; +} +figure { + margin: 0; +} +img { + vertical-align: middle; +} +.img-responsive, +.thumbnail > img, +.thumbnail a > img, +.carousel-inner > .item > img, +.carousel-inner > .item > a > img { + display: block; + max-width: 100%; + height: auto; +} +.img-rounded { + border-radius: 6px; +} +.img-thumbnail { + display: inline-block; + max-width: 100%; + height: auto; + padding: 4px; + line-height: 1.42857143; + background-color: #fff; + border: 1px solid #ddd; + border-radius: 4px; + -webkit-transition: all .2s ease-in-out; + -o-transition: all .2s ease-in-out; + transition: all .2s ease-in-out; +} +.img-circle { + border-radius: 50%; +} +hr { + margin-top: 20px; + margin-bottom: 20px; + border: 0; + border-top: 1px solid #eee; +} +.sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + border: 0; +} +.sr-only-focusable:active, +.sr-only-focusable:focus { + position: static; + width: auto; + height: auto; + margin: 0; + overflow: visible; + clip: auto; +} +[role="button"] { + cursor: pointer; +} +h1, +h2, +h3, +h4, +h5, +h6, +.h1, +.h2, +.h3, +.h4, +.h5, +.h6 { + font-family: inherit; + font-weight: 500; + line-height: 1.1; + color: inherit; +} +h1 small, +h2 small, +h3 small, +h4 small, +h5 small, +h6 small, +.h1 small, +.h2 small, +.h3 small, +.h4 small, +.h5 small, +.h6 small, +h1 .small, +h2 .small, +h3 .small, +h4 .small, +h5 .small, +h6 .small, +.h1 .small, +.h2 .small, +.h3 .small, +.h4 .small, +.h5 .small, +.h6 .small { + font-weight: normal; + line-height: 1; + color: #777; +} +h1, +.h1, +h2, +.h2, +h3, +.h3 { + margin-top: 20px; + margin-bottom: 10px; +} +h1 small, +.h1 small, +h2 small, +.h2 small, +h3 small, +.h3 small, +h1 .small, +.h1 .small, +h2 .small, +.h2 .small, +h3 .small, +.h3 .small { + font-size: 65%; +} +h4, +.h4, +h5, +.h5, +h6, +.h6 { + margin-top: 10px; + margin-bottom: 10px; +} +h4 small, +.h4 small, +h5 small, +.h5 small, +h6 small, +.h6 small, +h4 .small, +.h4 .small, +h5 .small, +.h5 .small, +h6 .small, +.h6 .small { + font-size: 75%; +} +h1, +.h1 { + font-size: 36px; +} +h2, +.h2 { + font-size: 30px; +} +h3, +.h3 { + font-size: 24px; +} +h4, +.h4 { + font-size: 18px; +} +h5, +.h5 { + font-size: 14px; +} +h6, +.h6 { + font-size: 12px; +} +p { + margin: 0 0 10px; +} +.lead { + margin-bottom: 20px; + font-size: 16px; + font-weight: 300; + line-height: 1.4; +} +@media (min-width: 768px) { + .lead { + font-size: 21px; + } +} +small, +.small { + font-size: 85%; +} +mark, +.mark { + padding: .2em; + background-color: #fcf8e3; +} +.text-left { + text-align: left; +} +.text-right { + text-align: right; +} +.text-center { + text-align: center; +} +.text-justify { + text-align: justify; +} +.text-nowrap { + white-space: nowrap; +} +.text-lowercase { + text-transform: lowercase; +} +.text-uppercase { + text-transform: uppercase; +} +.text-capitalize { + text-transform: capitalize; +} +.text-muted { + color: #777; +} +.text-primary { + color: #337ab7; +} +a.text-primary:hover, +a.text-primary:focus { + color: #286090; +} +.text-success { + color: #3c763d; +} +a.text-success:hover, +a.text-success:focus { + color: #2b542c; +} +.text-info { + color: #31708f; +} +a.text-info:hover, +a.text-info:focus { + color: #245269; +} +.text-warning { + color: #8a6d3b; +} +a.text-warning:hover, +a.text-warning:focus { + color: #66512c; +} +.text-danger { + color: #a94442; +} +a.text-danger:hover, +a.text-danger:focus { + color: #843534; +} +.bg-primary { + color: #fff; + background-color: #337ab7; +} +a.bg-primary:hover, +a.bg-primary:focus { + background-color: #286090; +} +.bg-success { + background-color: #dff0d8; +} +a.bg-success:hover, +a.bg-success:focus { + background-color: #c1e2b3; +} +.bg-info { + background-color: #d9edf7; +} +a.bg-info:hover, +a.bg-info:focus { + background-color: #afd9ee; +} +.bg-warning { + background-color: #fcf8e3; +} +a.bg-warning:hover, +a.bg-warning:focus { + background-color: #f7ecb5; +} +.bg-danger { + background-color: #f2dede; +} +a.bg-danger:hover, +a.bg-danger:focus { + background-color: #e4b9b9; +} +.page-header { + padding-bottom: 9px; + margin: 40px 0 20px; + border-bottom: 1px solid #eee; +} +ul, +ol { + margin-top: 0; + margin-bottom: 10px; +} +ul ul, +ol ul, +ul ol, +ol ol { + margin-bottom: 0; +} +.list-unstyled { + padding-left: 0; + list-style: none; +} +.list-inline { + padding-left: 0; + margin-left: -5px; + list-style: none; +} +.list-inline > li { + display: inline-block; + padding-right: 5px; + padding-left: 5px; +} +dl { + margin-top: 0; + margin-bottom: 20px; +} +dt, +dd { + line-height: 1.42857143; +} +dt { + font-weight: bold; +} +dd { + margin-left: 0; +} +@media (min-width: 768px) { + .dl-horizontal dt { + float: left; + width: 160px; + overflow: hidden; + clear: left; + text-align: right; + text-overflow: ellipsis; + white-space: nowrap; + } + .dl-horizontal dd { + margin-left: 180px; + } +} +abbr[title], +abbr[data-original-title] { + cursor: help; + border-bottom: 1px dotted #777; +} +.initialism { + font-size: 90%; + text-transform: uppercase; +} +blockquote { + padding: 10px 20px; + margin: 0 0 20px; + font-size: 17.5px; + border-left: 5px solid #eee; +} +blockquote p:last-child, +blockquote ul:last-child, +blockquote ol:last-child { + margin-bottom: 0; +} +blockquote footer, +blockquote small, +blockquote .small { + display: block; + font-size: 80%; + line-height: 1.42857143; + color: #777; +} +blockquote footer:before, +blockquote small:before, +blockquote .small:before { + content: '\2014 \00A0'; +} +.blockquote-reverse, +blockquote.pull-right { + padding-right: 15px; + padding-left: 0; + text-align: right; + border-right: 5px solid #eee; + border-left: 0; +} +.blockquote-reverse footer:before, +blockquote.pull-right footer:before, +.blockquote-reverse small:before, +blockquote.pull-right small:before, +.blockquote-reverse .small:before, +blockquote.pull-right .small:before { + content: ''; +} +.blockquote-reverse footer:after, +blockquote.pull-right footer:after, +.blockquote-reverse small:after, +blockquote.pull-right small:after, +.blockquote-reverse .small:after, +blockquote.pull-right .small:after { + content: '\00A0 \2014'; +} +address { + margin-bottom: 20px; + font-style: normal; + line-height: 1.42857143; +} +code, +kbd, +pre, +samp { + font-family: Menlo, Monaco, Consolas, "Courier New", monospace; +} +code { + padding: 2px 4px; + font-size: 90%; + color: #c7254e; + background-color: #f9f2f4; + border-radius: 4px; +} +kbd { + padding: 2px 4px; + font-size: 90%; + color: #fff; + background-color: #333; + border-radius: 3px; + -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .25); + box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .25); +} +kbd kbd { + padding: 0; + font-size: 100%; + font-weight: bold; + -webkit-box-shadow: none; + box-shadow: none; +} +pre { + display: block; + padding: 9.5px; + margin: 0 0 10px; + font-size: 13px; + line-height: 1.42857143; + color: #333; + word-break: break-all; + word-wrap: break-word; + background-color: #f5f5f5; + border: 1px solid #ccc; + border-radius: 4px; +} +pre code { + padding: 0; + font-size: inherit; + color: inherit; + white-space: pre-wrap; + background-color: transparent; + border-radius: 0; +} +.pre-scrollable { + max-height: 340px; + overflow-y: scroll; +} +.container { + padding-right: 15px; + padding-left: 15px; + margin-right: auto; + margin-left: auto; +} +@media (min-width: 768px) { + .container { + width: 750px; + } +} +@media (min-width: 992px) { + .container { + width: 970px; + } +} +@media (min-width: 1200px) { + .container { + width: 1170px; + } +} +.container-fluid { + padding-right: 15px; + padding-left: 15px; + margin-right: auto; + margin-left: auto; +} +.row { + margin-right: -15px; + margin-left: -15px; +} +.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 { + position: relative; + min-height: 1px; + padding-right: 15px; + padding-left: 15px; +} +.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 { + float: left; +} +.col-xs-12 { + width: 100%; +} +.col-xs-11 { + width: 91.66666667%; +} +.col-xs-10 { + width: 83.33333333%; +} +.col-xs-9 { + width: 75%; +} +.col-xs-8 { + width: 66.66666667%; +} +.col-xs-7 { + width: 58.33333333%; +} +.col-xs-6 { + width: 50%; +} +.col-xs-5 { + width: 41.66666667%; +} +.col-xs-4 { + width: 33.33333333%; +} +.col-xs-3 { + width: 25%; +} +.col-xs-2 { + width: 16.66666667%; +} +.col-xs-1 { + width: 8.33333333%; +} +.col-xs-pull-12 { + right: 100%; +} +.col-xs-pull-11 { + right: 91.66666667%; +} +.col-xs-pull-10 { + right: 83.33333333%; +} +.col-xs-pull-9 { + right: 75%; +} +.col-xs-pull-8 { + right: 66.66666667%; +} +.col-xs-pull-7 { + right: 58.33333333%; +} +.col-xs-pull-6 { + right: 50%; +} +.col-xs-pull-5 { + right: 41.66666667%; +} +.col-xs-pull-4 { + right: 33.33333333%; +} +.col-xs-pull-3 { + right: 25%; +} +.col-xs-pull-2 { + right: 16.66666667%; +} +.col-xs-pull-1 { + right: 8.33333333%; +} +.col-xs-pull-0 { + right: auto; +} +.col-xs-push-12 { + left: 100%; +} +.col-xs-push-11 { + left: 91.66666667%; +} +.col-xs-push-10 { + left: 83.33333333%; +} +.col-xs-push-9 { + left: 75%; +} +.col-xs-push-8 { + left: 66.66666667%; +} +.col-xs-push-7 { + left: 58.33333333%; +} +.col-xs-push-6 { + left: 50%; +} +.col-xs-push-5 { + left: 41.66666667%; +} +.col-xs-push-4 { + left: 33.33333333%; +} +.col-xs-push-3 { + left: 25%; +} +.col-xs-push-2 { + left: 16.66666667%; +} +.col-xs-push-1 { + left: 8.33333333%; +} +.col-xs-push-0 { + left: auto; +} +.col-xs-offset-12 { + margin-left: 100%; +} +.col-xs-offset-11 { + margin-left: 91.66666667%; +} +.col-xs-offset-10 { + margin-left: 83.33333333%; +} +.col-xs-offset-9 { + margin-left: 75%; +} +.col-xs-offset-8 { + margin-left: 66.66666667%; +} +.col-xs-offset-7 { + margin-left: 58.33333333%; +} +.col-xs-offset-6 { + margin-left: 50%; +} +.col-xs-offset-5 { + margin-left: 41.66666667%; +} +.col-xs-offset-4 { + margin-left: 33.33333333%; +} +.col-xs-offset-3 { + margin-left: 25%; +} +.col-xs-offset-2 { + margin-left: 16.66666667%; +} +.col-xs-offset-1 { + margin-left: 8.33333333%; +} +.col-xs-offset-0 { + margin-left: 0; +} +@media (min-width: 768px) { + .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 { + float: left; + } + .col-sm-12 { + width: 100%; + } + .col-sm-11 { + width: 91.66666667%; + } + .col-sm-10 { + width: 83.33333333%; + } + .col-sm-9 { + width: 75%; + } + .col-sm-8 { + width: 66.66666667%; + } + .col-sm-7 { + width: 58.33333333%; + } + .col-sm-6 { + width: 50%; + } + .col-sm-5 { + width: 41.66666667%; + } + .col-sm-4 { + width: 33.33333333%; + } + .col-sm-3 { + width: 25%; + } + .col-sm-2 { + width: 16.66666667%; + } + .col-sm-1 { + width: 8.33333333%; + } + .col-sm-pull-12 { + right: 100%; + } + .col-sm-pull-11 { + right: 91.66666667%; + } + .col-sm-pull-10 { + right: 83.33333333%; + } + .col-sm-pull-9 { + right: 75%; + } + .col-sm-pull-8 { + right: 66.66666667%; + } + .col-sm-pull-7 { + right: 58.33333333%; + } + .col-sm-pull-6 { + right: 50%; + } + .col-sm-pull-5 { + right: 41.66666667%; + } + .col-sm-pull-4 { + right: 33.33333333%; + } + .col-sm-pull-3 { + right: 25%; + } + .col-sm-pull-2 { + right: 16.66666667%; + } + .col-sm-pull-1 { + right: 8.33333333%; + } + .col-sm-pull-0 { + right: auto; + } + .col-sm-push-12 { + left: 100%; + } + .col-sm-push-11 { + left: 91.66666667%; + } + .col-sm-push-10 { + left: 83.33333333%; + } + .col-sm-push-9 { + left: 75%; + } + .col-sm-push-8 { + left: 66.66666667%; + } + .col-sm-push-7 { + left: 58.33333333%; + } + .col-sm-push-6 { + left: 50%; + } + .col-sm-push-5 { + left: 41.66666667%; + } + .col-sm-push-4 { + left: 33.33333333%; + } + .col-sm-push-3 { + left: 25%; + } + .col-sm-push-2 { + left: 16.66666667%; + } + .col-sm-push-1 { + left: 8.33333333%; + } + .col-sm-push-0 { + left: auto; + } + .col-sm-offset-12 { + margin-left: 100%; + } + .col-sm-offset-11 { + margin-left: 91.66666667%; + } + .col-sm-offset-10 { + margin-left: 83.33333333%; + } + .col-sm-offset-9 { + margin-left: 75%; + } + .col-sm-offset-8 { + margin-left: 66.66666667%; + } + .col-sm-offset-7 { + margin-left: 58.33333333%; + } + .col-sm-offset-6 { + margin-left: 50%; + } + .col-sm-offset-5 { + margin-left: 41.66666667%; + } + .col-sm-offset-4 { + margin-left: 33.33333333%; + } + .col-sm-offset-3 { + margin-left: 25%; + } + .col-sm-offset-2 { + margin-left: 16.66666667%; + } + .col-sm-offset-1 { + margin-left: 8.33333333%; + } + .col-sm-offset-0 { + margin-left: 0; + } +} +@media (min-width: 992px) { + .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 { + float: left; + } + .col-md-12 { + width: 100%; + } + .col-md-11 { + width: 91.66666667%; + } + .col-md-10 { + width: 83.33333333%; + } + .col-md-9 { + width: 75%; + } + .col-md-8 { + width: 66.66666667%; + } + .col-md-7 { + width: 58.33333333%; + } + .col-md-6 { + width: 50%; + } + .col-md-5 { + width: 41.66666667%; + } + .col-md-4 { + width: 33.33333333%; + } + .col-md-3 { + width: 25%; + } + .col-md-2 { + width: 16.66666667%; + } + .col-md-1 { + width: 8.33333333%; + } + .col-md-pull-12 { + right: 100%; + } + .col-md-pull-11 { + right: 91.66666667%; + } + .col-md-pull-10 { + right: 83.33333333%; + } + .col-md-pull-9 { + right: 75%; + } + .col-md-pull-8 { + right: 66.66666667%; + } + .col-md-pull-7 { + right: 58.33333333%; + } + .col-md-pull-6 { + right: 50%; + } + .col-md-pull-5 { + right: 41.66666667%; + } + .col-md-pull-4 { + right: 33.33333333%; + } + .col-md-pull-3 { + right: 25%; + } + .col-md-pull-2 { + right: 16.66666667%; + } + .col-md-pull-1 { + right: 8.33333333%; + } + .col-md-pull-0 { + right: auto; + } + .col-md-push-12 { + left: 100%; + } + .col-md-push-11 { + left: 91.66666667%; + } + .col-md-push-10 { + left: 83.33333333%; + } + .col-md-push-9 { + left: 75%; + } + .col-md-push-8 { + left: 66.66666667%; + } + .col-md-push-7 { + left: 58.33333333%; + } + .col-md-push-6 { + left: 50%; + } + .col-md-push-5 { + left: 41.66666667%; + } + .col-md-push-4 { + left: 33.33333333%; + } + .col-md-push-3 { + left: 25%; + } + .col-md-push-2 { + left: 16.66666667%; + } + .col-md-push-1 { + left: 8.33333333%; + } + .col-md-push-0 { + left: auto; + } + .col-md-offset-12 { + margin-left: 100%; + } + .col-md-offset-11 { + margin-left: 91.66666667%; + } + .col-md-offset-10 { + margin-left: 83.33333333%; + } + .col-md-offset-9 { + margin-left: 75%; + } + .col-md-offset-8 { + margin-left: 66.66666667%; + } + .col-md-offset-7 { + margin-left: 58.33333333%; + } + .col-md-offset-6 { + margin-left: 50%; + } + .col-md-offset-5 { + margin-left: 41.66666667%; + } + .col-md-offset-4 { + margin-left: 33.33333333%; + } + .col-md-offset-3 { + margin-left: 25%; + } + .col-md-offset-2 { + margin-left: 16.66666667%; + } + .col-md-offset-1 { + margin-left: 8.33333333%; + } + .col-md-offset-0 { + margin-left: 0; + } +} +@media (min-width: 1200px) { + .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 { + float: left; + } + .col-lg-12 { + width: 100%; + } + .col-lg-11 { + width: 91.66666667%; + } + .col-lg-10 { + width: 83.33333333%; + } + .col-lg-9 { + width: 75%; + } + .col-lg-8 { + width: 66.66666667%; + } + .col-lg-7 { + width: 58.33333333%; + } + .col-lg-6 { + width: 50%; + } + .col-lg-5 { + width: 41.66666667%; + } + .col-lg-4 { + width: 33.33333333%; + } + .col-lg-3 { + width: 25%; + } + .col-lg-2 { + width: 16.66666667%; + } + .col-lg-1 { + width: 8.33333333%; + } + .col-lg-pull-12 { + right: 100%; + } + .col-lg-pull-11 { + right: 91.66666667%; + } + .col-lg-pull-10 { + right: 83.33333333%; + } + .col-lg-pull-9 { + right: 75%; + } + .col-lg-pull-8 { + right: 66.66666667%; + } + .col-lg-pull-7 { + right: 58.33333333%; + } + .col-lg-pull-6 { + right: 50%; + } + .col-lg-pull-5 { + right: 41.66666667%; + } + .col-lg-pull-4 { + right: 33.33333333%; + } + .col-lg-pull-3 { + right: 25%; + } + .col-lg-pull-2 { + right: 16.66666667%; + } + .col-lg-pull-1 { + right: 8.33333333%; + } + .col-lg-pull-0 { + right: auto; + } + .col-lg-push-12 { + left: 100%; + } + .col-lg-push-11 { + left: 91.66666667%; + } + .col-lg-push-10 { + left: 83.33333333%; + } + .col-lg-push-9 { + left: 75%; + } + .col-lg-push-8 { + left: 66.66666667%; + } + .col-lg-push-7 { + left: 58.33333333%; + } + .col-lg-push-6 { + left: 50%; + } + .col-lg-push-5 { + left: 41.66666667%; + } + .col-lg-push-4 { + left: 33.33333333%; + } + .col-lg-push-3 { + left: 25%; + } + .col-lg-push-2 { + left: 16.66666667%; + } + .col-lg-push-1 { + left: 8.33333333%; + } + .col-lg-push-0 { + left: auto; + } + .col-lg-offset-12 { + margin-left: 100%; + } + .col-lg-offset-11 { + margin-left: 91.66666667%; + } + .col-lg-offset-10 { + margin-left: 83.33333333%; + } + .col-lg-offset-9 { + margin-left: 75%; + } + .col-lg-offset-8 { + margin-left: 66.66666667%; + } + .col-lg-offset-7 { + margin-left: 58.33333333%; + } + .col-lg-offset-6 { + margin-left: 50%; + } + .col-lg-offset-5 { + margin-left: 41.66666667%; + } + .col-lg-offset-4 { + margin-left: 33.33333333%; + } + .col-lg-offset-3 { + margin-left: 25%; + } + .col-lg-offset-2 { + margin-left: 16.66666667%; + } + .col-lg-offset-1 { + margin-left: 8.33333333%; + } + .col-lg-offset-0 { + margin-left: 0; + } +} +table { + background-color: transparent; +} +caption { + padding-top: 8px; + padding-bottom: 8px; + color: #777; + text-align: left; +} +th { + text-align: left; +} +.table { + width: 100%; + max-width: 100%; + margin-bottom: 20px; +} +.table > thead > tr > th, +.table > tbody > tr > th, +.table > tfoot > tr > th, +.table > thead > tr > td, +.table > tbody > tr > td, +.table > tfoot > tr > td { + padding: 8px; + line-height: 1.42857143; + vertical-align: top; + border-top: 1px solid #ddd; +} +.table > thead > tr > th { + vertical-align: bottom; + border-bottom: 2px solid #ddd; +} +.table > caption + thead > tr:first-child > th, +.table > colgroup + thead > tr:first-child > th, +.table > thead:first-child > tr:first-child > th, +.table > caption + thead > tr:first-child > td, +.table > colgroup + thead > tr:first-child > td, +.table > thead:first-child > tr:first-child > td { + border-top: 0; +} +.table > tbody + tbody { + border-top: 2px solid #ddd; +} +.table .table { + background-color: #fff; +} +.table-condensed > thead > tr > th, +.table-condensed > tbody > tr > th, +.table-condensed > tfoot > tr > th, +.table-condensed > thead > tr > td, +.table-condensed > tbody > tr > td, +.table-condensed > tfoot > tr > td { + padding: 5px; +} +.table-bordered { + border: 1px solid #ddd; +} +.table-bordered > thead > tr > th, +.table-bordered > tbody > tr > th, +.table-bordered > tfoot > tr > th, +.table-bordered > thead > tr > td, +.table-bordered > tbody > tr > td, +.table-bordered > tfoot > tr > td { + border: 1px solid #ddd; +} +.table-bordered > thead > tr > th, +.table-bordered > thead > tr > td { + border-bottom-width: 2px; +} +.table-striped > tbody > tr:nth-of-type(odd) { + background-color: #f9f9f9; +} +.table-hover > tbody > tr:hover { + background-color: #f5f5f5; +} +table col[class*="col-"] { + position: static; + display: table-column; + float: none; +} +table td[class*="col-"], +table th[class*="col-"] { + position: static; + display: table-cell; + float: none; +} +.table > thead > tr > td.active, +.table > tbody > tr > td.active, +.table > tfoot > tr > td.active, +.table > thead > tr > th.active, +.table > tbody > tr > th.active, +.table > tfoot > tr > th.active, +.table > thead > tr.active > td, +.table > tbody > tr.active > td, +.table > tfoot > tr.active > td, +.table > thead > tr.active > th, +.table > tbody > tr.active > th, +.table > tfoot > tr.active > th { + background-color: #f5f5f5; +} +.table-hover > tbody > tr > td.active:hover, +.table-hover > tbody > tr > th.active:hover, +.table-hover > tbody > tr.active:hover > td, +.table-hover > tbody > tr:hover > .active, +.table-hover > tbody > tr.active:hover > th { + background-color: #e8e8e8; +} +.table > thead > tr > td.success, +.table > tbody > tr > td.success, +.table > tfoot > tr > td.success, +.table > thead > tr > th.success, +.table > tbody > tr > th.success, +.table > tfoot > tr > th.success, +.table > thead > tr.success > td, +.table > tbody > tr.success > td, +.table > tfoot > tr.success > td, +.table > thead > tr.success > th, +.table > tbody > tr.success > th, +.table > tfoot > tr.success > th { + background-color: #dff0d8; +} +.table-hover > tbody > tr > td.success:hover, +.table-hover > tbody > tr > th.success:hover, +.table-hover > tbody > tr.success:hover > td, +.table-hover > tbody > tr:hover > .success, +.table-hover > tbody > tr.success:hover > th { + background-color: #d0e9c6; +} +.table > thead > tr > td.info, +.table > tbody > tr > td.info, +.table > tfoot > tr > td.info, +.table > thead > tr > th.info, +.table > tbody > tr > th.info, +.table > tfoot > tr > th.info, +.table > thead > tr.info > td, +.table > tbody > tr.info > td, +.table > tfoot > tr.info > td, +.table > thead > tr.info > th, +.table > tbody > tr.info > th, +.table > tfoot > tr.info > th { + background-color: #d9edf7; +} +.table-hover > tbody > tr > td.info:hover, +.table-hover > tbody > tr > th.info:hover, +.table-hover > tbody > tr.info:hover > td, +.table-hover > tbody > tr:hover > .info, +.table-hover > tbody > tr.info:hover > th { + background-color: #c4e3f3; +} +.table > thead > tr > td.warning, +.table > tbody > tr > td.warning, +.table > tfoot > tr > td.warning, +.table > thead > tr > th.warning, +.table > tbody > tr > th.warning, +.table > tfoot > tr > th.warning, +.table > thead > tr.warning > td, +.table > tbody > tr.warning > td, +.table > tfoot > tr.warning > td, +.table > thead > tr.warning > th, +.table > tbody > tr.warning > th, +.table > tfoot > tr.warning > th { + background-color: #fcf8e3; +} +.table-hover > tbody > tr > td.warning:hover, +.table-hover > tbody > tr > th.warning:hover, +.table-hover > tbody > tr.warning:hover > td, +.table-hover > tbody > tr:hover > .warning, +.table-hover > tbody > tr.warning:hover > th { + background-color: #faf2cc; +} +.table > thead > tr > td.danger, +.table > tbody > tr > td.danger, +.table > tfoot > tr > td.danger, +.table > thead > tr > th.danger, +.table > tbody > tr > th.danger, +.table > tfoot > tr > th.danger, +.table > thead > tr.danger > td, +.table > tbody > tr.danger > td, +.table > tfoot > tr.danger > td, +.table > thead > tr.danger > th, +.table > tbody > tr.danger > th, +.table > tfoot > tr.danger > th { + background-color: #f2dede; +} +.table-hover > tbody > tr > td.danger:hover, +.table-hover > tbody > tr > th.danger:hover, +.table-hover > tbody > tr.danger:hover > td, +.table-hover > tbody > tr:hover > .danger, +.table-hover > tbody > tr.danger:hover > th { + background-color: #ebcccc; +} +.table-responsive { + min-height: .01%; + overflow-x: auto; +} +@media screen and (max-width: 767px) { + .table-responsive { + width: 100%; + margin-bottom: 15px; + overflow-y: hidden; + -ms-overflow-style: -ms-autohiding-scrollbar; + border: 1px solid #ddd; + } + .table-responsive > .table { + margin-bottom: 0; + } + .table-responsive > .table > thead > tr > th, + .table-responsive > .table > tbody > tr > th, + .table-responsive > .table > tfoot > tr > th, + .table-responsive > .table > thead > tr > td, + .table-responsive > .table > tbody > tr > td, + .table-responsive > .table > tfoot > tr > td { + white-space: nowrap; + } + .table-responsive > .table-bordered { + border: 0; + } + .table-responsive > .table-bordered > thead > tr > th:first-child, + .table-responsive > .table-bordered > tbody > tr > th:first-child, + .table-responsive > .table-bordered > tfoot > tr > th:first-child, + .table-responsive > .table-bordered > thead > tr > td:first-child, + .table-responsive > .table-bordered > tbody > tr > td:first-child, + .table-responsive > .table-bordered > tfoot > tr > td:first-child { + border-left: 0; + } + .table-responsive > .table-bordered > thead > tr > th:last-child, + .table-responsive > .table-bordered > tbody > tr > th:last-child, + .table-responsive > .table-bordered > tfoot > tr > th:last-child, + .table-responsive > .table-bordered > thead > tr > td:last-child, + .table-responsive > .table-bordered > tbody > tr > td:last-child, + .table-responsive > .table-bordered > tfoot > tr > td:last-child { + border-right: 0; + } + .table-responsive > .table-bordered > tbody > tr:last-child > th, + .table-responsive > .table-bordered > tfoot > tr:last-child > th, + .table-responsive > .table-bordered > tbody > tr:last-child > td, + .table-responsive > .table-bordered > tfoot > tr:last-child > td { + border-bottom: 0; + } +} +fieldset { + min-width: 0; + padding: 0; + margin: 0; + border: 0; +} +legend { + display: block; + width: 100%; + padding: 0; + margin-bottom: 20px; + font-size: 21px; + line-height: inherit; + color: #333; + border: 0; + border-bottom: 1px solid #e5e5e5; +} +label { + display: inline-block; + max-width: 100%; + margin-bottom: 5px; + font-weight: bold; +} +input[type="search"] { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +input[type="radio"], +input[type="checkbox"] { + margin: 4px 0 0; + margin-top: 1px \9; + line-height: normal; +} +input[type="file"] { + display: block; +} +input[type="range"] { + display: block; + width: 100%; +} +select[multiple], +select[size] { + height: auto; +} +input[type="file"]:focus, +input[type="radio"]:focus, +input[type="checkbox"]:focus { + outline: 5px auto -webkit-focus-ring-color; + outline-offset: -2px; +} +output { + display: block; + padding-top: 7px; + font-size: 14px; + line-height: 1.42857143; + color: #555; +} +.form-control { + display: block; + width: 100%; + height: 34px; + padding: 6px 12px; + font-size: 14px; + line-height: 1.42857143; + color: #555; + background-color: #fff; + background-image: none; + border: 1px solid #ccc; + border-radius: 4px; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); + -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s; + -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; + transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; +} +.form-control:focus { + border-color: #66afe9; + outline: 0; + -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6); + box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6); +} +.form-control::-moz-placeholder { + color: #999; + opacity: 1; +} +.form-control:-ms-input-placeholder { + color: #999; +} +.form-control::-webkit-input-placeholder { + color: #999; +} +.form-control::-ms-expand { + background-color: transparent; + border: 0; +} +.form-control[disabled], +.form-control[readonly], +fieldset[disabled] .form-control { + background-color: #eee; + opacity: 1; +} +.form-control[disabled], +fieldset[disabled] .form-control { + cursor: not-allowed; +} +textarea.form-control { + height: auto; +} +input[type="search"] { + -webkit-appearance: none; +} +@media screen and (-webkit-min-device-pixel-ratio: 0) { + input[type="date"].form-control, + input[type="time"].form-control, + input[type="datetime-local"].form-control, + input[type="month"].form-control { + line-height: 34px; + } + input[type="date"].input-sm, + input[type="time"].input-sm, + input[type="datetime-local"].input-sm, + input[type="month"].input-sm, + .input-group-sm input[type="date"], + .input-group-sm input[type="time"], + .input-group-sm input[type="datetime-local"], + .input-group-sm input[type="month"] { + line-height: 30px; + } + input[type="date"].input-lg, + input[type="time"].input-lg, + input[type="datetime-local"].input-lg, + input[type="month"].input-lg, + .input-group-lg input[type="date"], + .input-group-lg input[type="time"], + .input-group-lg input[type="datetime-local"], + .input-group-lg input[type="month"] { + line-height: 46px; + } +} +.form-group { + margin-bottom: 15px; +} +.radio, +.checkbox { + position: relative; + display: block; + margin-top: 10px; + margin-bottom: 10px; +} +.radio label, +.checkbox label { + min-height: 20px; + padding-left: 20px; + margin-bottom: 0; + font-weight: normal; + cursor: pointer; +} +.radio input[type="radio"], +.radio-inline input[type="radio"], +.checkbox input[type="checkbox"], +.checkbox-inline input[type="checkbox"] { + position: absolute; + margin-top: 4px \9; + margin-left: -20px; +} +.radio + .radio, +.checkbox + .checkbox { + margin-top: -5px; +} +.radio-inline, +.checkbox-inline { + position: relative; + display: inline-block; + padding-left: 20px; + margin-bottom: 0; + font-weight: normal; + vertical-align: middle; + cursor: pointer; +} +.radio-inline + .radio-inline, +.checkbox-inline + .checkbox-inline { + margin-top: 0; + margin-left: 10px; +} +input[type="radio"][disabled], +input[type="checkbox"][disabled], +input[type="radio"].disabled, +input[type="checkbox"].disabled, +fieldset[disabled] input[type="radio"], +fieldset[disabled] input[type="checkbox"] { + cursor: not-allowed; +} +.radio-inline.disabled, +.checkbox-inline.disabled, +fieldset[disabled] .radio-inline, +fieldset[disabled] .checkbox-inline { + cursor: not-allowed; +} +.radio.disabled label, +.checkbox.disabled label, +fieldset[disabled] .radio label, +fieldset[disabled] .checkbox label { + cursor: not-allowed; +} +.form-control-static { + min-height: 34px; + padding-top: 7px; + padding-bottom: 7px; + margin-bottom: 0; +} +.form-control-static.input-lg, +.form-control-static.input-sm { + padding-right: 0; + padding-left: 0; +} +.input-sm { + height: 30px; + padding: 5px 10px; + font-size: 12px; + line-height: 1.5; + border-radius: 3px; +} +select.input-sm { + height: 30px; + line-height: 30px; +} +textarea.input-sm, +select[multiple].input-sm { + height: auto; +} +.form-group-sm .form-control { + height: 30px; + padding: 5px 10px; + font-size: 12px; + line-height: 1.5; + border-radius: 3px; +} +.form-group-sm select.form-control { + height: 30px; + line-height: 30px; +} +.form-group-sm textarea.form-control, +.form-group-sm select[multiple].form-control { + height: auto; +} +.form-group-sm .form-control-static { + height: 30px; + min-height: 32px; + padding: 6px 10px; + font-size: 12px; + line-height: 1.5; +} +.input-lg { + height: 46px; + padding: 10px 16px; + font-size: 18px; + line-height: 1.3333333; + border-radius: 6px; +} +select.input-lg { + height: 46px; + line-height: 46px; +} +textarea.input-lg, +select[multiple].input-lg { + height: auto; +} +.form-group-lg .form-control { + height: 46px; + padding: 10px 16px; + font-size: 18px; + line-height: 1.3333333; + border-radius: 6px; +} +.form-group-lg select.form-control { + height: 46px; + line-height: 46px; +} +.form-group-lg textarea.form-control, +.form-group-lg select[multiple].form-control { + height: auto; +} +.form-group-lg .form-control-static { + height: 46px; + min-height: 38px; + padding: 11px 16px; + font-size: 18px; + line-height: 1.3333333; +} +.has-feedback { + position: relative; +} +.has-feedback .form-control { + padding-right: 42.5px; +} +.form-control-feedback { + position: absolute; + top: 0; + right: 0; + z-index: 2; + display: block; + width: 34px; + height: 34px; + line-height: 34px; + text-align: center; + pointer-events: none; +} +.input-lg + .form-control-feedback, +.input-group-lg + .form-control-feedback, +.form-group-lg .form-control + .form-control-feedback { + width: 46px; + height: 46px; + line-height: 46px; +} +.input-sm + .form-control-feedback, +.input-group-sm + .form-control-feedback, +.form-group-sm .form-control + .form-control-feedback { + width: 30px; + height: 30px; + line-height: 30px; +} +.has-success .help-block, +.has-success .control-label, +.has-success .radio, +.has-success .checkbox, +.has-success .radio-inline, +.has-success .checkbox-inline, +.has-success.radio label, +.has-success.checkbox label, +.has-success.radio-inline label, +.has-success.checkbox-inline label { + color: #3c763d; +} +.has-success .form-control { + border-color: #3c763d; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); +} +.has-success .form-control:focus { + border-color: #2b542c; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #67b168; + box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #67b168; +} +.has-success .input-group-addon { + color: #3c763d; + background-color: #dff0d8; + border-color: #3c763d; +} +.has-success .form-control-feedback { + color: #3c763d; +} +.has-warning .help-block, +.has-warning .control-label, +.has-warning .radio, +.has-warning .checkbox, +.has-warning .radio-inline, +.has-warning .checkbox-inline, +.has-warning.radio label, +.has-warning.checkbox label, +.has-warning.radio-inline label, +.has-warning.checkbox-inline label { + color: #8a6d3b; +} +.has-warning .form-control { + border-color: #8a6d3b; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); +} +.has-warning .form-control:focus { + border-color: #66512c; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #c0a16b; + box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #c0a16b; +} +.has-warning .input-group-addon { + color: #8a6d3b; + background-color: #fcf8e3; + border-color: #8a6d3b; +} +.has-warning .form-control-feedback { + color: #8a6d3b; +} +.has-error .help-block, +.has-error .control-label, +.has-error .radio, +.has-error .checkbox, +.has-error .radio-inline, +.has-error .checkbox-inline, +.has-error.radio label, +.has-error.checkbox label, +.has-error.radio-inline label, +.has-error.checkbox-inline label { + color: #a94442; +} +.has-error .form-control { + border-color: #a94442; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); +} +.has-error .form-control:focus { + border-color: #843534; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483; + box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483; +} +.has-error .input-group-addon { + color: #a94442; + background-color: #f2dede; + border-color: #a94442; +} +.has-error .form-control-feedback { + color: #a94442; +} +.has-feedback label ~ .form-control-feedback { + top: 25px; +} +.has-feedback label.sr-only ~ .form-control-feedback { + top: 0; +} +.help-block { + display: block; + margin-top: 5px; + margin-bottom: 10px; + color: #737373; +} +@media (min-width: 768px) { + .form-inline .form-group { + display: inline-block; + margin-bottom: 0; + vertical-align: middle; + } + .form-inline .form-control { + display: inline-block; + width: auto; + vertical-align: middle; + } + .form-inline .form-control-static { + display: inline-block; + } + .form-inline .input-group { + display: inline-table; + vertical-align: middle; + } + .form-inline .input-group .input-group-addon, + .form-inline .input-group .input-group-btn, + .form-inline .input-group .form-control { + width: auto; + } + .form-inline .input-group > .form-control { + width: 100%; + } + .form-inline .control-label { + margin-bottom: 0; + vertical-align: middle; + } + .form-inline .radio, + .form-inline .checkbox { + display: inline-block; + margin-top: 0; + margin-bottom: 0; + vertical-align: middle; + } + .form-inline .radio label, + .form-inline .checkbox label { + padding-left: 0; + } + .form-inline .radio input[type="radio"], + .form-inline .checkbox input[type="checkbox"] { + position: relative; + margin-left: 0; + } + .form-inline .has-feedback .form-control-feedback { + top: 0; + } +} +.form-horizontal .radio, +.form-horizontal .checkbox, +.form-horizontal .radio-inline, +.form-horizontal .checkbox-inline { + padding-top: 7px; + margin-top: 0; + margin-bottom: 0; +} +.form-horizontal .radio, +.form-horizontal .checkbox { + min-height: 27px; +} +.form-horizontal .form-group { + margin-right: -15px; + margin-left: -15px; +} +@media (min-width: 768px) { + .form-horizontal .control-label { + padding-top: 7px; + margin-bottom: 0; + text-align: right; + } +} +.form-horizontal .has-feedback .form-control-feedback { + right: 15px; +} +@media (min-width: 768px) { + .form-horizontal .form-group-lg .control-label { + padding-top: 11px; + font-size: 18px; + } +} +@media (min-width: 768px) { + .form-horizontal .form-group-sm .control-label { + padding-top: 6px; + font-size: 12px; + } +} +.btn { + display: inline-block; + padding: 6px 12px; + margin-bottom: 0; + font-size: 14px; + font-weight: normal; + line-height: 1.42857143; + text-align: center; + white-space: nowrap; + vertical-align: middle; + -ms-touch-action: manipulation; + touch-action: manipulation; + cursor: pointer; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + background-image: none; + border: 1px solid transparent; + border-radius: 4px; +} +.btn:focus, +.btn:active:focus, +.btn.active:focus, +.btn.focus, +.btn:active.focus, +.btn.active.focus { + outline: 5px auto -webkit-focus-ring-color; + outline-offset: -2px; +} +.btn:hover, +.btn:focus, +.btn.focus { + color: #333; + text-decoration: none; +} +.btn:active, +.btn.active { + background-image: none; + outline: 0; + -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); + box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); +} +.btn.disabled, +.btn[disabled], +fieldset[disabled] .btn { + cursor: not-allowed; + filter: alpha(opacity=65); + -webkit-box-shadow: none; + box-shadow: none; + opacity: .65; +} +a.btn.disabled, +fieldset[disabled] a.btn { + pointer-events: none; +} +.btn-default { + color: #333; + background-color: #fff; + border-color: #ccc; +} +.btn-default:focus, +.btn-default.focus { + color: #333; + background-color: #e6e6e6; + border-color: #8c8c8c; +} +.btn-default:hover { + color: #333; + background-color: #e6e6e6; + border-color: #adadad; +} +.btn-default:active, +.btn-default.active, +.open > .dropdown-toggle.btn-default { + color: #333; + background-color: #e6e6e6; + border-color: #adadad; +} +.btn-default:active:hover, +.btn-default.active:hover, +.open > .dropdown-toggle.btn-default:hover, +.btn-default:active:focus, +.btn-default.active:focus, +.open > .dropdown-toggle.btn-default:focus, +.btn-default:active.focus, +.btn-default.active.focus, +.open > .dropdown-toggle.btn-default.focus { + color: #333; + background-color: #d4d4d4; + border-color: #8c8c8c; +} +.btn-default:active, +.btn-default.active, +.open > .dropdown-toggle.btn-default { + background-image: none; +} +.btn-default.disabled:hover, +.btn-default[disabled]:hover, +fieldset[disabled] .btn-default:hover, +.btn-default.disabled:focus, +.btn-default[disabled]:focus, +fieldset[disabled] .btn-default:focus, +.btn-default.disabled.focus, +.btn-default[disabled].focus, +fieldset[disabled] .btn-default.focus { + background-color: #fff; + border-color: #ccc; +} +.btn-default .badge { + color: #fff; + background-color: #333; +} +.btn-primary { + color: #fff; + background-color: #337ab7; + border-color: #2e6da4; +} +.btn-primary:focus, +.btn-primary.focus { + color: #fff; + background-color: #286090; + border-color: #122b40; +} +.btn-primary:hover { + color: #fff; + background-color: #286090; + border-color: #204d74; +} +.btn-primary:active, +.btn-primary.active, +.open > .dropdown-toggle.btn-primary { + color: #fff; + background-color: #286090; + border-color: #204d74; +} +.btn-primary:active:hover, +.btn-primary.active:hover, +.open > .dropdown-toggle.btn-primary:hover, +.btn-primary:active:focus, +.btn-primary.active:focus, +.open > .dropdown-toggle.btn-primary:focus, +.btn-primary:active.focus, +.btn-primary.active.focus, +.open > .dropdown-toggle.btn-primary.focus { + color: #fff; + background-color: #204d74; + border-color: #122b40; +} +.btn-primary:active, +.btn-primary.active, +.open > .dropdown-toggle.btn-primary { + background-image: none; +} +.btn-primary.disabled:hover, +.btn-primary[disabled]:hover, +fieldset[disabled] .btn-primary:hover, +.btn-primary.disabled:focus, +.btn-primary[disabled]:focus, +fieldset[disabled] .btn-primary:focus, +.btn-primary.disabled.focus, +.btn-primary[disabled].focus, +fieldset[disabled] .btn-primary.focus { + background-color: #337ab7; + border-color: #2e6da4; +} +.btn-primary .badge { + color: #337ab7; + background-color: #fff; +} +.btn-success { + color: #fff; + background-color: #5cb85c; + border-color: #4cae4c; +} +.btn-success:focus, +.btn-success.focus { + color: #fff; + background-color: #449d44; + border-color: #255625; +} +.btn-success:hover { + color: #fff; + background-color: #449d44; + border-color: #398439; +} +.btn-success:active, +.btn-success.active, +.open > .dropdown-toggle.btn-success { + color: #fff; + background-color: #449d44; + border-color: #398439; +} +.btn-success:active:hover, +.btn-success.active:hover, +.open > .dropdown-toggle.btn-success:hover, +.btn-success:active:focus, +.btn-success.active:focus, +.open > .dropdown-toggle.btn-success:focus, +.btn-success:active.focus, +.btn-success.active.focus, +.open > .dropdown-toggle.btn-success.focus { + color: #fff; + background-color: #398439; + border-color: #255625; +} +.btn-success:active, +.btn-success.active, +.open > .dropdown-toggle.btn-success { + background-image: none; +} +.btn-success.disabled:hover, +.btn-success[disabled]:hover, +fieldset[disabled] .btn-success:hover, +.btn-success.disabled:focus, +.btn-success[disabled]:focus, +fieldset[disabled] .btn-success:focus, +.btn-success.disabled.focus, +.btn-success[disabled].focus, +fieldset[disabled] .btn-success.focus { + background-color: #5cb85c; + border-color: #4cae4c; +} +.btn-success .badge { + color: #5cb85c; + background-color: #fff; +} +.btn-info { + color: #fff; + background-color: #5bc0de; + border-color: #46b8da; +} +.btn-info:focus, +.btn-info.focus { + color: #fff; + background-color: #31b0d5; + border-color: #1b6d85; +} +.btn-info:hover { + color: #fff; + background-color: #31b0d5; + border-color: #269abc; +} +.btn-info:active, +.btn-info.active, +.open > .dropdown-toggle.btn-info { + color: #fff; + background-color: #31b0d5; + border-color: #269abc; +} +.btn-info:active:hover, +.btn-info.active:hover, +.open > .dropdown-toggle.btn-info:hover, +.btn-info:active:focus, +.btn-info.active:focus, +.open > .dropdown-toggle.btn-info:focus, +.btn-info:active.focus, +.btn-info.active.focus, +.open > .dropdown-toggle.btn-info.focus { + color: #fff; + background-color: #269abc; + border-color: #1b6d85; +} +.btn-info:active, +.btn-info.active, +.open > .dropdown-toggle.btn-info { + background-image: none; +} +.btn-info.disabled:hover, +.btn-info[disabled]:hover, +fieldset[disabled] .btn-info:hover, +.btn-info.disabled:focus, +.btn-info[disabled]:focus, +fieldset[disabled] .btn-info:focus, +.btn-info.disabled.focus, +.btn-info[disabled].focus, +fieldset[disabled] .btn-info.focus { + background-color: #5bc0de; + border-color: #46b8da; +} +.btn-info .badge { + color: #5bc0de; + background-color: #fff; +} +.btn-warning { + color: #fff; + background-color: #f0ad4e; + border-color: #eea236; +} +.btn-warning:focus, +.btn-warning.focus { + color: #fff; + background-color: #ec971f; + border-color: #985f0d; +} +.btn-warning:hover { + color: #fff; + background-color: #ec971f; + border-color: #d58512; +} +.btn-warning:active, +.btn-warning.active, +.open > .dropdown-toggle.btn-warning { + color: #fff; + background-color: #ec971f; + border-color: #d58512; +} +.btn-warning:active:hover, +.btn-warning.active:hover, +.open > .dropdown-toggle.btn-warning:hover, +.btn-warning:active:focus, +.btn-warning.active:focus, +.open > .dropdown-toggle.btn-warning:focus, +.btn-warning:active.focus, +.btn-warning.active.focus, +.open > .dropdown-toggle.btn-warning.focus { + color: #fff; + background-color: #d58512; + border-color: #985f0d; +} +.btn-warning:active, +.btn-warning.active, +.open > .dropdown-toggle.btn-warning { + background-image: none; +} +.btn-warning.disabled:hover, +.btn-warning[disabled]:hover, +fieldset[disabled] .btn-warning:hover, +.btn-warning.disabled:focus, +.btn-warning[disabled]:focus, +fieldset[disabled] .btn-warning:focus, +.btn-warning.disabled.focus, +.btn-warning[disabled].focus, +fieldset[disabled] .btn-warning.focus { + background-color: #f0ad4e; + border-color: #eea236; +} +.btn-warning .badge { + color: #f0ad4e; + background-color: #fff; +} +.btn-danger { + color: #fff; + background-color: #d9534f; + border-color: #d43f3a; +} +.btn-danger:focus, +.btn-danger.focus { + color: #fff; + background-color: #c9302c; + border-color: #761c19; +} +.btn-danger:hover { + color: #fff; + background-color: #c9302c; + border-color: #ac2925; +} +.btn-danger:active, +.btn-danger.active, +.open > .dropdown-toggle.btn-danger { + color: #fff; + background-color: #c9302c; + border-color: #ac2925; +} +.btn-danger:active:hover, +.btn-danger.active:hover, +.open > .dropdown-toggle.btn-danger:hover, +.btn-danger:active:focus, +.btn-danger.active:focus, +.open > .dropdown-toggle.btn-danger:focus, +.btn-danger:active.focus, +.btn-danger.active.focus, +.open > .dropdown-toggle.btn-danger.focus { + color: #fff; + background-color: #ac2925; + border-color: #761c19; +} +.btn-danger:active, +.btn-danger.active, +.open > .dropdown-toggle.btn-danger { + background-image: none; +} +.btn-danger.disabled:hover, +.btn-danger[disabled]:hover, +fieldset[disabled] .btn-danger:hover, +.btn-danger.disabled:focus, +.btn-danger[disabled]:focus, +fieldset[disabled] .btn-danger:focus, +.btn-danger.disabled.focus, +.btn-danger[disabled].focus, +fieldset[disabled] .btn-danger.focus { + background-color: #d9534f; + border-color: #d43f3a; +} +.btn-danger .badge { + color: #d9534f; + background-color: #fff; +} +.btn-link { + font-weight: normal; + color: #337ab7; + border-radius: 0; +} +.btn-link, +.btn-link:active, +.btn-link.active, +.btn-link[disabled], +fieldset[disabled] .btn-link { + background-color: transparent; + -webkit-box-shadow: none; + box-shadow: none; +} +.btn-link, +.btn-link:hover, +.btn-link:focus, +.btn-link:active { + border-color: transparent; +} +.btn-link:hover, +.btn-link:focus { + color: #23527c; + text-decoration: underline; + background-color: transparent; +} +.btn-link[disabled]:hover, +fieldset[disabled] .btn-link:hover, +.btn-link[disabled]:focus, +fieldset[disabled] .btn-link:focus { + color: #777; + text-decoration: none; +} +.btn-lg, +.btn-group-lg > .btn { + padding: 10px 16px; + font-size: 18px; + line-height: 1.3333333; + border-radius: 6px; +} +.btn-sm, +.btn-group-sm > .btn { + padding: 5px 10px; + font-size: 12px; + line-height: 1.5; + border-radius: 3px; +} +.btn-xs, +.btn-group-xs > .btn { + padding: 1px 5px; + font-size: 12px; + line-height: 1.5; + border-radius: 3px; +} +.btn-block { + display: block; + width: 100%; +} +.btn-block + .btn-block { + margin-top: 5px; +} +input[type="submit"].btn-block, +input[type="reset"].btn-block, +input[type="button"].btn-block { + width: 100%; +} +.fade { + opacity: 0; + -webkit-transition: opacity .15s linear; + -o-transition: opacity .15s linear; + transition: opacity .15s linear; +} +.fade.in { + opacity: 1; +} +.collapse { + display: none; +} +.collapse.in { + display: block; +} +tr.collapse.in { + display: table-row; +} +tbody.collapse.in { + display: table-row-group; +} +.collapsing { + position: relative; + height: 0; + overflow: hidden; + -webkit-transition-timing-function: ease; + -o-transition-timing-function: ease; + transition-timing-function: ease; + -webkit-transition-duration: .35s; + -o-transition-duration: .35s; + transition-duration: .35s; + -webkit-transition-property: height, visibility; + -o-transition-property: height, visibility; + transition-property: height, visibility; +} +.caret { + display: inline-block; + width: 0; + height: 0; + margin-left: 2px; + vertical-align: middle; + border-top: 4px dashed; + border-top: 4px solid \9; + border-right: 4px solid transparent; + border-left: 4px solid transparent; +} +.dropup, +.dropdown { + position: relative; +} +.dropdown-toggle:focus { + outline: 0; +} +.dropdown-menu { + position: absolute; + top: 100%; + left: 0; + z-index: 1000; + display: none; + float: left; + min-width: 160px; + padding: 5px 0; + margin: 2px 0 0; + font-size: 14px; + text-align: left; + list-style: none; + background-color: #fff; + -webkit-background-clip: padding-box; + background-clip: padding-box; + border: 1px solid #ccc; + border: 1px solid rgba(0, 0, 0, .15); + border-radius: 4px; + -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, .175); + box-shadow: 0 6px 12px rgba(0, 0, 0, .175); +} +.dropdown-menu.pull-right { + right: 0; + left: auto; +} +.dropdown-menu .divider { + height: 1px; + margin: 9px 0; + overflow: hidden; + background-color: #e5e5e5; +} +.dropdown-menu > li > a { + display: block; + padding: 3px 20px; + clear: both; + font-weight: normal; + line-height: 1.42857143; + color: #333; + white-space: nowrap; +} +.dropdown-menu > li > a:hover, +.dropdown-menu > li > a:focus { + color: #262626; + text-decoration: none; + background-color: #f5f5f5; +} +.dropdown-menu > .active > a, +.dropdown-menu > .active > a:hover, +.dropdown-menu > .active > a:focus { + color: #fff; + text-decoration: none; + background-color: #337ab7; + outline: 0; +} +.dropdown-menu > .disabled > a, +.dropdown-menu > .disabled > a:hover, +.dropdown-menu > .disabled > a:focus { + color: #777; +} +.dropdown-menu > .disabled > a:hover, +.dropdown-menu > .disabled > a:focus { + text-decoration: none; + cursor: not-allowed; + background-color: transparent; + background-image: none; + filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); +} +.open > .dropdown-menu { + display: block; +} +.open > a { + outline: 0; +} +.dropdown-menu-right { + right: 0; + left: auto; +} +.dropdown-menu-left { + right: auto; + left: 0; +} +.dropdown-header { + display: block; + padding: 3px 20px; + font-size: 12px; + line-height: 1.42857143; + color: #777; + white-space: nowrap; +} +.dropdown-backdrop { + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 990; +} +.pull-right > .dropdown-menu { + right: 0; + left: auto; +} +.dropup .caret, +.navbar-fixed-bottom .dropdown .caret { + content: ""; + border-top: 0; + border-bottom: 4px dashed; + border-bottom: 4px solid \9; +} +.dropup .dropdown-menu, +.navbar-fixed-bottom .dropdown .dropdown-menu { + top: auto; + bottom: 100%; + margin-bottom: 2px; +} +@media (min-width: 768px) { + .navbar-right .dropdown-menu { + right: 0; + left: auto; + } + .navbar-right .dropdown-menu-left { + right: auto; + left: 0; + } +} +.btn-group, +.btn-group-vertical { + position: relative; + display: inline-block; + vertical-align: middle; +} +.btn-group > .btn, +.btn-group-vertical > .btn { + position: relative; + float: left; +} +.btn-group > .btn:hover, +.btn-group-vertical > .btn:hover, +.btn-group > .btn:focus, +.btn-group-vertical > .btn:focus, +.btn-group > .btn:active, +.btn-group-vertical > .btn:active, +.btn-group > .btn.active, +.btn-group-vertical > .btn.active { + z-index: 2; +} +.btn-group .btn + .btn, +.btn-group .btn + .btn-group, +.btn-group .btn-group + .btn, +.btn-group .btn-group + .btn-group { + margin-left: -1px; +} +.btn-toolbar { + margin-left: -5px; +} +.btn-toolbar .btn, +.btn-toolbar .btn-group, +.btn-toolbar .input-group { + float: left; +} +.btn-toolbar > .btn, +.btn-toolbar > .btn-group, +.btn-toolbar > .input-group { + margin-left: 5px; +} +.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) { + border-radius: 0; +} +.btn-group > .btn:first-child { + margin-left: 0; +} +.btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) { + border-top-right-radius: 0; + border-bottom-right-radius: 0; +} +.btn-group > .btn:last-child:not(:first-child), +.btn-group > .dropdown-toggle:not(:first-child) { + border-top-left-radius: 0; + border-bottom-left-radius: 0; +} +.btn-group > .btn-group { + float: left; +} +.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn { + border-radius: 0; +} +.btn-group > .btn-group:first-child:not(:last-child) > .btn:last-child, +.btn-group > .btn-group:first-child:not(:last-child) > .dropdown-toggle { + border-top-right-radius: 0; + border-bottom-right-radius: 0; +} +.btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child { + border-top-left-radius: 0; + border-bottom-left-radius: 0; +} +.btn-group .dropdown-toggle:active, +.btn-group.open .dropdown-toggle { + outline: 0; +} +.btn-group > .btn + .dropdown-toggle { + padding-right: 8px; + padding-left: 8px; +} +.btn-group > .btn-lg + .dropdown-toggle { + padding-right: 12px; + padding-left: 12px; +} +.btn-group.open .dropdown-toggle { + -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); + box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); +} +.btn-group.open .dropdown-toggle.btn-link { + -webkit-box-shadow: none; + box-shadow: none; +} +.btn .caret { + margin-left: 0; +} +.btn-lg .caret { + border-width: 5px 5px 0; + border-bottom-width: 0; +} +.dropup .btn-lg .caret { + border-width: 0 5px 5px; +} +.btn-group-vertical > .btn, +.btn-group-vertical > .btn-group, +.btn-group-vertical > .btn-group > .btn { + display: block; + float: none; + width: 100%; + max-width: 100%; +} +.btn-group-vertical > .btn-group > .btn { + float: none; +} +.btn-group-vertical > .btn + .btn, +.btn-group-vertical > .btn + .btn-group, +.btn-group-vertical > .btn-group + .btn, +.btn-group-vertical > .btn-group + .btn-group { + margin-top: -1px; + margin-left: 0; +} +.btn-group-vertical > .btn:not(:first-child):not(:last-child) { + border-radius: 0; +} +.btn-group-vertical > .btn:first-child:not(:last-child) { + border-top-left-radius: 4px; + border-top-right-radius: 4px; + border-bottom-right-radius: 0; + border-bottom-left-radius: 0; +} +.btn-group-vertical > .btn:last-child:not(:first-child) { + border-top-left-radius: 0; + border-top-right-radius: 0; + border-bottom-right-radius: 4px; + border-bottom-left-radius: 4px; +} +.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn { + border-radius: 0; +} +.btn-group-vertical > .btn-group:first-child:not(:last-child) > .btn:last-child, +.btn-group-vertical > .btn-group:first-child:not(:last-child) > .dropdown-toggle { + border-bottom-right-radius: 0; + border-bottom-left-radius: 0; +} +.btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child { + border-top-left-radius: 0; + border-top-right-radius: 0; +} +.btn-group-justified { + display: table; + width: 100%; + table-layout: fixed; + border-collapse: separate; +} +.btn-group-justified > .btn, +.btn-group-justified > .btn-group { + display: table-cell; + float: none; + width: 1%; +} +.btn-group-justified > .btn-group .btn { + width: 100%; +} +.btn-group-justified > .btn-group .dropdown-menu { + left: auto; +} +[data-toggle="buttons"] > .btn input[type="radio"], +[data-toggle="buttons"] > .btn-group > .btn input[type="radio"], +[data-toggle="buttons"] > .btn input[type="checkbox"], +[data-toggle="buttons"] > .btn-group > .btn input[type="checkbox"] { + position: absolute; + clip: rect(0, 0, 0, 0); + pointer-events: none; +} +.input-group { + position: relative; + display: table; + border-collapse: separate; +} +.input-group[class*="col-"] { + float: none; + padding-right: 0; + padding-left: 0; +} +.input-group .form-control { + position: relative; + z-index: 2; + float: left; + width: 100%; + margin-bottom: 0; +} +.input-group .form-control:focus { + z-index: 3; +} +.input-group-lg > .form-control, +.input-group-lg > .input-group-addon, +.input-group-lg > .input-group-btn > .btn { + height: 46px; + padding: 10px 16px; + font-size: 18px; + line-height: 1.3333333; + border-radius: 6px; +} +select.input-group-lg > .form-control, +select.input-group-lg > .input-group-addon, +select.input-group-lg > .input-group-btn > .btn { + height: 46px; + line-height: 46px; +} +textarea.input-group-lg > .form-control, +textarea.input-group-lg > .input-group-addon, +textarea.input-group-lg > .input-group-btn > .btn, +select[multiple].input-group-lg > .form-control, +select[multiple].input-group-lg > .input-group-addon, +select[multiple].input-group-lg > .input-group-btn > .btn { + height: auto; +} +.input-group-sm > .form-control, +.input-group-sm > .input-group-addon, +.input-group-sm > .input-group-btn > .btn { + height: 30px; + padding: 5px 10px; + font-size: 12px; + line-height: 1.5; + border-radius: 3px; +} +select.input-group-sm > .form-control, +select.input-group-sm > .input-group-addon, +select.input-group-sm > .input-group-btn > .btn { + height: 30px; + line-height: 30px; +} +textarea.input-group-sm > .form-control, +textarea.input-group-sm > .input-group-addon, +textarea.input-group-sm > .input-group-btn > .btn, +select[multiple].input-group-sm > .form-control, +select[multiple].input-group-sm > .input-group-addon, +select[multiple].input-group-sm > .input-group-btn > .btn { + height: auto; +} +.input-group-addon, +.input-group-btn, +.input-group .form-control { + display: table-cell; +} +.input-group-addon:not(:first-child):not(:last-child), +.input-group-btn:not(:first-child):not(:last-child), +.input-group .form-control:not(:first-child):not(:last-child) { + border-radius: 0; +} +.input-group-addon, +.input-group-btn { + width: 1%; + white-space: nowrap; + vertical-align: middle; +} +.input-group-addon { + padding: 6px 12px; + font-size: 14px; + font-weight: normal; + line-height: 1; + color: #555; + text-align: center; + background-color: #eee; + border: 1px solid #ccc; + border-radius: 4px; +} +.input-group-addon.input-sm { + padding: 5px 10px; + font-size: 12px; + border-radius: 3px; +} +.input-group-addon.input-lg { + padding: 10px 16px; + font-size: 18px; + border-radius: 6px; +} +.input-group-addon input[type="radio"], +.input-group-addon input[type="checkbox"] { + margin-top: 0; +} +.input-group .form-control:first-child, +.input-group-addon:first-child, +.input-group-btn:first-child > .btn, +.input-group-btn:first-child > .btn-group > .btn, +.input-group-btn:first-child > .dropdown-toggle, +.input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle), +.input-group-btn:last-child > .btn-group:not(:last-child) > .btn { + border-top-right-radius: 0; + border-bottom-right-radius: 0; +} +.input-group-addon:first-child { + border-right: 0; +} +.input-group .form-control:last-child, +.input-group-addon:last-child, +.input-group-btn:last-child > .btn, +.input-group-btn:last-child > .btn-group > .btn, +.input-group-btn:last-child > .dropdown-toggle, +.input-group-btn:first-child > .btn:not(:first-child), +.input-group-btn:first-child > .btn-group:not(:first-child) > .btn { + border-top-left-radius: 0; + border-bottom-left-radius: 0; +} +.input-group-addon:last-child { + border-left: 0; +} +.input-group-btn { + position: relative; + font-size: 0; + white-space: nowrap; +} +.input-group-btn > .btn { + position: relative; +} +.input-group-btn > .btn + .btn { + margin-left: -1px; +} +.input-group-btn > .btn:hover, +.input-group-btn > .btn:focus, +.input-group-btn > .btn:active { + z-index: 2; +} +.input-group-btn:first-child > .btn, +.input-group-btn:first-child > .btn-group { + margin-right: -1px; +} +.input-group-btn:last-child > .btn, +.input-group-btn:last-child > .btn-group { + z-index: 2; + margin-left: -1px; +} +.nav { + padding-left: 0; + margin-bottom: 0; + list-style: none; +} +.nav > li { + position: relative; + display: block; +} +.nav > li > a { + position: relative; + display: block; + padding: 10px 15px; +} +.nav > li > a:hover, +.nav > li > a:focus { + text-decoration: none; + background-color: #eee; +} +.nav > li.disabled > a { + color: #777; +} +.nav > li.disabled > a:hover, +.nav > li.disabled > a:focus { + color: #777; + text-decoration: none; + cursor: not-allowed; + background-color: transparent; +} +.nav .open > a, +.nav .open > a:hover, +.nav .open > a:focus { + background-color: #eee; + border-color: #337ab7; +} +.nav .nav-divider { + height: 1px; + margin: 9px 0; + overflow: hidden; + background-color: #e5e5e5; +} +.nav > li > a > img { + max-width: none; +} +.nav-tabs { + border-bottom: 1px solid #ddd; +} +.nav-tabs > li { + float: left; + margin-bottom: -1px; +} +.nav-tabs > li > a { + margin-right: 2px; + line-height: 1.42857143; + border: 1px solid transparent; + border-radius: 4px 4px 0 0; +} +.nav-tabs > li > a:hover { + border-color: #eee #eee #ddd; +} +.nav-tabs > li.active > a, +.nav-tabs > li.active > a:hover, +.nav-tabs > li.active > a:focus { + color: #555; + cursor: default; + background-color: #fff; + border: 1px solid #ddd; + border-bottom-color: transparent; +} +.nav-tabs.nav-justified { + width: 100%; + border-bottom: 0; +} +.nav-tabs.nav-justified > li { + float: none; +} +.nav-tabs.nav-justified > li > a { + margin-bottom: 5px; + text-align: center; +} +.nav-tabs.nav-justified > .dropdown .dropdown-menu { + top: auto; + left: auto; +} +@media (min-width: 768px) { + .nav-tabs.nav-justified > li { + display: table-cell; + width: 1%; + } + .nav-tabs.nav-justified > li > a { + margin-bottom: 0; + } +} +.nav-tabs.nav-justified > li > a { + margin-right: 0; + border-radius: 4px; +} +.nav-tabs.nav-justified > .active > a, +.nav-tabs.nav-justified > .active > a:hover, +.nav-tabs.nav-justified > .active > a:focus { + border: 1px solid #ddd; +} +@media (min-width: 768px) { + .nav-tabs.nav-justified > li > a { + border-bottom: 1px solid #ddd; + border-radius: 4px 4px 0 0; + } + .nav-tabs.nav-justified > .active > a, + .nav-tabs.nav-justified > .active > a:hover, + .nav-tabs.nav-justified > .active > a:focus { + border-bottom-color: #fff; + } +} +.nav-pills > li { + float: left; +} +.nav-pills > li > a { + border-radius: 4px; +} +.nav-pills > li + li { + margin-left: 2px; +} +.nav-pills > li.active > a, +.nav-pills > li.active > a:hover, +.nav-pills > li.active > a:focus { + color: #fff; + background-color: #337ab7; +} +.nav-stacked > li { + float: none; +} +.nav-stacked > li + li { + margin-top: 2px; + margin-left: 0; +} +.nav-justified { + width: 100%; +} +.nav-justified > li { + float: none; +} +.nav-justified > li > a { + margin-bottom: 5px; + text-align: center; +} +.nav-justified > .dropdown .dropdown-menu { + top: auto; + left: auto; +} +@media (min-width: 768px) { + .nav-justified > li { + display: table-cell; + width: 1%; + } + .nav-justified > li > a { + margin-bottom: 0; + } +} +.nav-tabs-justified { + border-bottom: 0; +} +.nav-tabs-justified > li > a { + margin-right: 0; + border-radius: 4px; +} +.nav-tabs-justified > .active > a, +.nav-tabs-justified > .active > a:hover, +.nav-tabs-justified > .active > a:focus { + border: 1px solid #ddd; +} +@media (min-width: 768px) { + .nav-tabs-justified > li > a { + border-bottom: 1px solid #ddd; + border-radius: 4px 4px 0 0; + } + .nav-tabs-justified > .active > a, + .nav-tabs-justified > .active > a:hover, + .nav-tabs-justified > .active > a:focus { + border-bottom-color: #fff; + } +} +.tab-content > .tab-pane { + display: none; +} +.tab-content > .active { + display: block; +} +.nav-tabs .dropdown-menu { + margin-top: -1px; + border-top-left-radius: 0; + border-top-right-radius: 0; +} +.navbar { + position: relative; + min-height: 50px; + margin-bottom: 20px; + border: 1px solid transparent; +} +@media (min-width: 768px) { + .navbar { + border-radius: 4px; + } +} +@media (min-width: 768px) { + .navbar-header { + float: left; + } +} +.navbar-collapse { + padding-right: 15px; + padding-left: 15px; + overflow-x: visible; + -webkit-overflow-scrolling: touch; + border-top: 1px solid transparent; + -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); +} +.navbar-collapse.in { + overflow-y: auto; +} +@media (min-width: 768px) { + .navbar-collapse { + width: auto; + border-top: 0; + -webkit-box-shadow: none; + box-shadow: none; + } + .navbar-collapse.collapse { + display: block !important; + height: auto !important; + padding-bottom: 0; + overflow: visible !important; + } + .navbar-collapse.in { + overflow-y: visible; + } + .navbar-fixed-top .navbar-collapse, + .navbar-static-top .navbar-collapse, + .navbar-fixed-bottom .navbar-collapse { + padding-right: 0; + padding-left: 0; + } +} +.navbar-fixed-top .navbar-collapse, +.navbar-fixed-bottom .navbar-collapse { + max-height: 340px; +} +@media (max-device-width: 480px) and (orientation: landscape) { + .navbar-fixed-top .navbar-collapse, + .navbar-fixed-bottom .navbar-collapse { + max-height: 200px; + } +} +.container > .navbar-header, +.container-fluid > .navbar-header, +.container > .navbar-collapse, +.container-fluid > .navbar-collapse { + margin-right: -15px; + margin-left: -15px; +} +@media (min-width: 768px) { + .container > .navbar-header, + .container-fluid > .navbar-header, + .container > .navbar-collapse, + .container-fluid > .navbar-collapse { + margin-right: 0; + margin-left: 0; + } +} +.navbar-static-top { + z-index: 1000; + border-width: 0 0 1px; +} +@media (min-width: 768px) { + .navbar-static-top { + border-radius: 0; + } +} +.navbar-fixed-top, +.navbar-fixed-bottom { + position: fixed; + right: 0; + left: 0; + z-index: 1030; +} +@media (min-width: 768px) { + .navbar-fixed-top, + .navbar-fixed-bottom { + border-radius: 0; + } +} +.navbar-fixed-top { + top: 0; + border-width: 0 0 1px; +} +.navbar-fixed-bottom { + bottom: 0; + margin-bottom: 0; + border-width: 1px 0 0; +} +.navbar-brand { + float: left; + height: 50px; + padding: 15px 15px; + font-size: 18px; + line-height: 20px; +} +.navbar-brand:hover, +.navbar-brand:focus { + text-decoration: none; +} +.navbar-brand > img { + display: block; +} +@media (min-width: 768px) { + .navbar > .container .navbar-brand, + .navbar > .container-fluid .navbar-brand { + margin-left: -15px; + } +} +.navbar-toggle { + position: relative; + float: right; + padding: 9px 10px; + margin-top: 8px; + margin-right: 15px; + margin-bottom: 8px; + background-color: transparent; + background-image: none; + border: 1px solid transparent; + border-radius: 4px; +} +.navbar-toggle:focus { + outline: 0; +} +.navbar-toggle .icon-bar { + display: block; + width: 22px; + height: 2px; + border-radius: 1px; +} +.navbar-toggle .icon-bar + .icon-bar { + margin-top: 4px; +} +@media (min-width: 768px) { + .navbar-toggle { + display: none; + } +} +.navbar-nav { + margin: 7.5px -15px; +} +.navbar-nav > li > a { + padding-top: 10px; + padding-bottom: 10px; + line-height: 20px; +} +@media (max-width: 767px) { + .navbar-nav .open .dropdown-menu { + position: static; + float: none; + width: auto; + margin-top: 0; + background-color: transparent; + border: 0; + -webkit-box-shadow: none; + box-shadow: none; + } + .navbar-nav .open .dropdown-menu > li > a, + .navbar-nav .open .dropdown-menu .dropdown-header { + padding: 5px 15px 5px 25px; + } + .navbar-nav .open .dropdown-menu > li > a { + line-height: 20px; + } + .navbar-nav .open .dropdown-menu > li > a:hover, + .navbar-nav .open .dropdown-menu > li > a:focus { + background-image: none; + } +} +@media (min-width: 768px) { + .navbar-nav { + float: left; + margin: 0; + } + .navbar-nav > li { + float: left; + } + .navbar-nav > li > a { + padding-top: 15px; + padding-bottom: 15px; + } +} +.navbar-form { + padding: 10px 15px; + margin-top: 8px; + margin-right: -15px; + margin-bottom: 8px; + margin-left: -15px; + border-top: 1px solid transparent; + border-bottom: 1px solid transparent; + -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 1px 0 rgba(255, 255, 255, .1); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 1px 0 rgba(255, 255, 255, .1); +} +@media (min-width: 768px) { + .navbar-form .form-group { + display: inline-block; + margin-bottom: 0; + vertical-align: middle; + } + .navbar-form .form-control { + display: inline-block; + width: auto; + vertical-align: middle; + } + .navbar-form .form-control-static { + display: inline-block; + } + .navbar-form .input-group { + display: inline-table; + vertical-align: middle; + } + .navbar-form .input-group .input-group-addon, + .navbar-form .input-group .input-group-btn, + .navbar-form .input-group .form-control { + width: auto; + } + .navbar-form .input-group > .form-control { + width: 100%; + } + .navbar-form .control-label { + margin-bottom: 0; + vertical-align: middle; + } + .navbar-form .radio, + .navbar-form .checkbox { + display: inline-block; + margin-top: 0; + margin-bottom: 0; + vertical-align: middle; + } + .navbar-form .radio label, + .navbar-form .checkbox label { + padding-left: 0; + } + .navbar-form .radio input[type="radio"], + .navbar-form .checkbox input[type="checkbox"] { + position: relative; + margin-left: 0; + } + .navbar-form .has-feedback .form-control-feedback { + top: 0; + } +} +@media (max-width: 767px) { + .navbar-form .form-group { + margin-bottom: 5px; + } + .navbar-form .form-group:last-child { + margin-bottom: 0; + } +} +@media (min-width: 768px) { + .navbar-form { + width: auto; + padding-top: 0; + padding-bottom: 0; + margin-right: 0; + margin-left: 0; + border: 0; + -webkit-box-shadow: none; + box-shadow: none; + } +} +.navbar-nav > li > .dropdown-menu { + margin-top: 0; + border-top-left-radius: 0; + border-top-right-radius: 0; +} +.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu { + margin-bottom: 0; + border-top-left-radius: 4px; + border-top-right-radius: 4px; + border-bottom-right-radius: 0; + border-bottom-left-radius: 0; +} +.navbar-btn { + margin-top: 8px; + margin-bottom: 8px; +} +.navbar-btn.btn-sm { + margin-top: 10px; + margin-bottom: 10px; +} +.navbar-btn.btn-xs { + margin-top: 14px; + margin-bottom: 14px; +} +.navbar-text { + margin-top: 15px; + margin-bottom: 15px; +} +@media (min-width: 768px) { + .navbar-text { + float: left; + margin-right: 15px; + margin-left: 15px; + } +} +@media (min-width: 768px) { + .navbar-left { + float: left !important; + } + .navbar-right { + float: right !important; + margin-right: -15px; + } + .navbar-right ~ .navbar-right { + margin-right: 0; + } +} +.navbar-default { + background-color: #f8f8f8; + border-color: #e7e7e7; +} +.navbar-default .navbar-brand { + color: #777; +} +.navbar-default .navbar-brand:hover, +.navbar-default .navbar-brand:focus { + color: #5e5e5e; + background-color: transparent; +} +.navbar-default .navbar-text { + color: #777; +} +.navbar-default .navbar-nav > li > a { + color: #777; +} +.navbar-default .navbar-nav > li > a:hover, +.navbar-default .navbar-nav > li > a:focus { + color: #333; + background-color: transparent; +} +.navbar-default .navbar-nav > .active > a, +.navbar-default .navbar-nav > .active > a:hover, +.navbar-default .navbar-nav > .active > a:focus { + color: #555; + background-color: #e7e7e7; +} +.navbar-default .navbar-nav > .disabled > a, +.navbar-default .navbar-nav > .disabled > a:hover, +.navbar-default .navbar-nav > .disabled > a:focus { + color: #ccc; + background-color: transparent; +} +.navbar-default .navbar-toggle { + border-color: #ddd; +} +.navbar-default .navbar-toggle:hover, +.navbar-default .navbar-toggle:focus { + background-color: #ddd; +} +.navbar-default .navbar-toggle .icon-bar { + background-color: #888; +} +.navbar-default .navbar-collapse, +.navbar-default .navbar-form { + border-color: #e7e7e7; +} +.navbar-default .navbar-nav > .open > a, +.navbar-default .navbar-nav > .open > a:hover, +.navbar-default .navbar-nav > .open > a:focus { + color: #555; + background-color: #e7e7e7; +} +@media (max-width: 767px) { + .navbar-default .navbar-nav .open .dropdown-menu > li > a { + color: #777; + } + .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover, + .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus { + color: #333; + background-color: transparent; + } + .navbar-default .navbar-nav .open .dropdown-menu > .active > a, + .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover, + .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus { + color: #555; + background-color: #e7e7e7; + } + .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a, + .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover, + .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus { + color: #ccc; + background-color: transparent; + } +} +.navbar-default .navbar-link { + color: #777; +} +.navbar-default .navbar-link:hover { + color: #333; +} +.navbar-default .btn-link { + color: #777; +} +.navbar-default .btn-link:hover, +.navbar-default .btn-link:focus { + color: #333; +} +.navbar-default .btn-link[disabled]:hover, +fieldset[disabled] .navbar-default .btn-link:hover, +.navbar-default .btn-link[disabled]:focus, +fieldset[disabled] .navbar-default .btn-link:focus { + color: #ccc; +} +.navbar-inverse { + background-color: #222; + border-color: #080808; +} +.navbar-inverse .navbar-brand { + color: #9d9d9d; +} +.navbar-inverse .navbar-brand:hover, +.navbar-inverse .navbar-brand:focus { + color: #fff; + background-color: transparent; +} +.navbar-inverse .navbar-text { + color: #9d9d9d; +} +.navbar-inverse .navbar-nav > li > a { + color: #9d9d9d; +} +.navbar-inverse .navbar-nav > li > a:hover, +.navbar-inverse .navbar-nav > li > a:focus { + color: #fff; + background-color: transparent; +} +.navbar-inverse .navbar-nav > .active > a, +.navbar-inverse .navbar-nav > .active > a:hover, +.navbar-inverse .navbar-nav > .active > a:focus { + color: #fff; + background-color: #080808; +} +.navbar-inverse .navbar-nav > .disabled > a, +.navbar-inverse .navbar-nav > .disabled > a:hover, +.navbar-inverse .navbar-nav > .disabled > a:focus { + color: #444; + background-color: transparent; +} +.navbar-inverse .navbar-toggle { + border-color: #333; +} +.navbar-inverse .navbar-toggle:hover, +.navbar-inverse .navbar-toggle:focus { + background-color: #333; +} +.navbar-inverse .navbar-toggle .icon-bar { + background-color: #fff; +} +.navbar-inverse .navbar-collapse, +.navbar-inverse .navbar-form { + border-color: #101010; +} +.navbar-inverse .navbar-nav > .open > a, +.navbar-inverse .navbar-nav > .open > a:hover, +.navbar-inverse .navbar-nav > .open > a:focus { + color: #fff; + background-color: #080808; +} +@media (max-width: 767px) { + .navbar-inverse .navbar-nav .open .dropdown-menu > .dropdown-header { + border-color: #080808; + } + .navbar-inverse .navbar-nav .open .dropdown-menu .divider { + background-color: #080808; + } + .navbar-inverse .navbar-nav .open .dropdown-menu > li > a { + color: #9d9d9d; + } + .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover, + .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus { + color: #fff; + background-color: transparent; + } + .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a, + .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover, + .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus { + color: #fff; + background-color: #080808; + } + .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a, + .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:hover, + .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:focus { + color: #444; + background-color: transparent; + } +} +.navbar-inverse .navbar-link { + color: #9d9d9d; +} +.navbar-inverse .navbar-link:hover { + color: #fff; +} +.navbar-inverse .btn-link { + color: #9d9d9d; +} +.navbar-inverse .btn-link:hover, +.navbar-inverse .btn-link:focus { + color: #fff; +} +.navbar-inverse .btn-link[disabled]:hover, +fieldset[disabled] .navbar-inverse .btn-link:hover, +.navbar-inverse .btn-link[disabled]:focus, +fieldset[disabled] .navbar-inverse .btn-link:focus { + color: #444; +} +.breadcrumb { + padding: 8px 15px; + margin-bottom: 20px; + list-style: none; + background-color: #f5f5f5; + border-radius: 4px; +} +.breadcrumb > li { + display: inline-block; +} +.breadcrumb > li + li:before { + padding: 0 5px; + color: #ccc; + content: "/\00a0"; +} +.breadcrumb > .active { + color: #777; +} +.pagination { + display: inline-block; + padding-left: 0; + margin: 20px 0; + border-radius: 4px; +} +.pagination > li { + display: inline; +} +.pagination > li > a, +.pagination > li > span { + position: relative; + float: left; + padding: 6px 12px; + margin-left: -1px; + line-height: 1.42857143; + color: #337ab7; + text-decoration: none; + background-color: #fff; + border: 1px solid #ddd; +} +.pagination > li:first-child > a, +.pagination > li:first-child > span { + margin-left: 0; + border-top-left-radius: 4px; + border-bottom-left-radius: 4px; +} +.pagination > li:last-child > a, +.pagination > li:last-child > span { + border-top-right-radius: 4px; + border-bottom-right-radius: 4px; +} +.pagination > li > a:hover, +.pagination > li > span:hover, +.pagination > li > a:focus, +.pagination > li > span:focus { + z-index: 2; + color: #23527c; + background-color: #eee; + border-color: #ddd; +} +.pagination > .active > a, +.pagination > .active > span, +.pagination > .active > a:hover, +.pagination > .active > span:hover, +.pagination > .active > a:focus, +.pagination > .active > span:focus { + z-index: 3; + color: #fff; + cursor: default; + background-color: #337ab7; + border-color: #337ab7; +} +.pagination > .disabled > span, +.pagination > .disabled > span:hover, +.pagination > .disabled > span:focus, +.pagination > .disabled > a, +.pagination > .disabled > a:hover, +.pagination > .disabled > a:focus { + color: #777; + cursor: not-allowed; + background-color: #fff; + border-color: #ddd; +} +.pagination-lg > li > a, +.pagination-lg > li > span { + padding: 10px 16px; + font-size: 18px; + line-height: 1.3333333; +} +.pagination-lg > li:first-child > a, +.pagination-lg > li:first-child > span { + border-top-left-radius: 6px; + border-bottom-left-radius: 6px; +} +.pagination-lg > li:last-child > a, +.pagination-lg > li:last-child > span { + border-top-right-radius: 6px; + border-bottom-right-radius: 6px; +} +.pagination-sm > li > a, +.pagination-sm > li > span { + padding: 5px 10px; + font-size: 12px; + line-height: 1.5; +} +.pagination-sm > li:first-child > a, +.pagination-sm > li:first-child > span { + border-top-left-radius: 3px; + border-bottom-left-radius: 3px; +} +.pagination-sm > li:last-child > a, +.pagination-sm > li:last-child > span { + border-top-right-radius: 3px; + border-bottom-right-radius: 3px; +} +.pager { + padding-left: 0; + margin: 20px 0; + text-align: center; + list-style: none; +} +.pager li { + display: inline; +} +.pager li > a, +.pager li > span { + display: inline-block; + padding: 5px 14px; + background-color: #fff; + border: 1px solid #ddd; + border-radius: 15px; +} +.pager li > a:hover, +.pager li > a:focus { + text-decoration: none; + background-color: #eee; +} +.pager .next > a, +.pager .next > span { + float: right; +} +.pager .previous > a, +.pager .previous > span { + float: left; +} +.pager .disabled > a, +.pager .disabled > a:hover, +.pager .disabled > a:focus, +.pager .disabled > span { + color: #777; + cursor: not-allowed; + background-color: #fff; +} +.label { + display: inline; + padding: .2em .6em .3em; + font-size: 75%; + font-weight: bold; + line-height: 1; + color: #fff; + text-align: center; + white-space: nowrap; + vertical-align: baseline; + border-radius: .25em; +} +a.label:hover, +a.label:focus { + color: #fff; + text-decoration: none; + cursor: pointer; +} +.label:empty { + display: none; +} +.btn .label { + position: relative; + top: -1px; +} +.label-default { + background-color: #777; +} +.label-default[href]:hover, +.label-default[href]:focus { + background-color: #5e5e5e; +} +.label-primary { + background-color: #337ab7; +} +.label-primary[href]:hover, +.label-primary[href]:focus { + background-color: #286090; +} +.label-success { + background-color: #5cb85c; +} +.label-success[href]:hover, +.label-success[href]:focus { + background-color: #449d44; +} +.label-info { + background-color: #5bc0de; +} +.label-info[href]:hover, +.label-info[href]:focus { + background-color: #31b0d5; +} +.label-warning { + background-color: #f0ad4e; +} +.label-warning[href]:hover, +.label-warning[href]:focus { + background-color: #ec971f; +} +.label-danger { + background-color: #d9534f; +} +.label-danger[href]:hover, +.label-danger[href]:focus { + background-color: #c9302c; +} +.badge { + display: inline-block; + min-width: 10px; + padding: 3px 7px; + font-size: 12px; + font-weight: bold; + line-height: 1; + color: #fff; + text-align: center; + white-space: nowrap; + vertical-align: middle; + background-color: #777; + border-radius: 10px; +} +.badge:empty { + display: none; +} +.btn .badge { + position: relative; + top: -1px; +} +.btn-xs .badge, +.btn-group-xs > .btn .badge { + top: 0; + padding: 1px 5px; +} +a.badge:hover, +a.badge:focus { + color: #fff; + text-decoration: none; + cursor: pointer; +} +.list-group-item.active > .badge, +.nav-pills > .active > a > .badge { + color: #337ab7; + background-color: #fff; +} +.list-group-item > .badge { + float: right; +} +.list-group-item > .badge + .badge { + margin-right: 5px; +} +.nav-pills > li > a > .badge { + margin-left: 3px; +} +.jumbotron { + padding-top: 30px; + padding-bottom: 30px; + margin-bottom: 30px; + color: inherit; + background-color: #eee; +} +.jumbotron h1, +.jumbotron .h1 { + color: inherit; +} +.jumbotron p { + margin-bottom: 15px; + font-size: 21px; + font-weight: 200; +} +.jumbotron > hr { + border-top-color: #d5d5d5; +} +.container .jumbotron, +.container-fluid .jumbotron { + padding-right: 15px; + padding-left: 15px; + border-radius: 6px; +} +.jumbotron .container { + max-width: 100%; +} +@media screen and (min-width: 768px) { + .jumbotron { + padding-top: 48px; + padding-bottom: 48px; + } + .container .jumbotron, + .container-fluid .jumbotron { + padding-right: 60px; + padding-left: 60px; + } + .jumbotron h1, + .jumbotron .h1 { + font-size: 63px; + } +} +.thumbnail { + display: block; + padding: 4px; + margin-bottom: 20px; + line-height: 1.42857143; + background-color: #fff; + border: 1px solid #ddd; + border-radius: 4px; + -webkit-transition: border .2s ease-in-out; + -o-transition: border .2s ease-in-out; + transition: border .2s ease-in-out; +} +.thumbnail > img, +.thumbnail a > img { + margin-right: auto; + margin-left: auto; +} +a.thumbnail:hover, +a.thumbnail:focus, +a.thumbnail.active { + border-color: #337ab7; +} +.thumbnail .caption { + padding: 9px; + color: #333; +} +.alert { + padding: 15px; + margin-bottom: 20px; + border: 1px solid transparent; + border-radius: 4px; +} +.alert h4 { + margin-top: 0; + color: inherit; +} +.alert .alert-link { + font-weight: bold; +} +.alert > p, +.alert > ul { + margin-bottom: 0; +} +.alert > p + p { + margin-top: 5px; +} +.alert-dismissable, +.alert-dismissible { + padding-right: 35px; +} +.alert-dismissable .close, +.alert-dismissible .close { + position: relative; + top: -2px; + right: -21px; + color: inherit; +} +.alert-success { + color: #3c763d; + background-color: #dff0d8; + border-color: #d6e9c6; +} +.alert-success hr { + border-top-color: #c9e2b3; +} +.alert-success .alert-link { + color: #2b542c; +} +.alert-info { + color: #31708f; + background-color: #d9edf7; + border-color: #bce8f1; +} +.alert-info hr { + border-top-color: #a6e1ec; +} +.alert-info .alert-link { + color: #245269; +} +.alert-warning { + color: #8a6d3b; + background-color: #fcf8e3; + border-color: #faebcc; +} +.alert-warning hr { + border-top-color: #f7e1b5; +} +.alert-warning .alert-link { + color: #66512c; +} +.alert-danger { + color: #a94442; + background-color: #f2dede; + border-color: #ebccd1; +} +.alert-danger hr { + border-top-color: #e4b9c0; +} +.alert-danger .alert-link { + color: #843534; +} +@-webkit-keyframes progress-bar-stripes { + from { + background-position: 40px 0; + } + to { + background-position: 0 0; + } +} +@-o-keyframes progress-bar-stripes { + from { + background-position: 40px 0; + } + to { + background-position: 0 0; + } +} +@keyframes progress-bar-stripes { + from { + background-position: 40px 0; + } + to { + background-position: 0 0; + } +} +.progress { + height: 20px; + margin-bottom: 20px; + overflow: hidden; + background-color: #f5f5f5; + border-radius: 4px; + -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1); + box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1); +} +.progress-bar { + float: left; + width: 0; + height: 100%; + font-size: 12px; + line-height: 20px; + color: #fff; + text-align: center; + background-color: #337ab7; + -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15); + box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15); + -webkit-transition: width .6s ease; + -o-transition: width .6s ease; + transition: width .6s ease; +} +.progress-striped .progress-bar, +.progress-bar-striped { + background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); + background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); + background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); + -webkit-background-size: 40px 40px; + background-size: 40px 40px; +} +.progress.active .progress-bar, +.progress-bar.active { + -webkit-animation: progress-bar-stripes 2s linear infinite; + -o-animation: progress-bar-stripes 2s linear infinite; + animation: progress-bar-stripes 2s linear infinite; +} +.progress-bar-success { + background-color: #5cb85c; +} +.progress-striped .progress-bar-success { + background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); + background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); + background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); +} +.progress-bar-info { + background-color: #5bc0de; +} +.progress-striped .progress-bar-info { + background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); + background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); + background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); +} +.progress-bar-warning { + background-color: #f0ad4e; +} +.progress-striped .progress-bar-warning { + background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); + background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); + background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); +} +.progress-bar-danger { + background-color: #d9534f; +} +.progress-striped .progress-bar-danger { + background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); + background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); + background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); +} +.media { + margin-top: 15px; +} +.media:first-child { + margin-top: 0; +} +.media, +.media-body { + overflow: hidden; + zoom: 1; +} +.media-body { + width: 10000px; +} +.media-object { + display: block; +} +.media-object.img-thumbnail { + max-width: none; +} +.media-right, +.media > .pull-right { + padding-left: 10px; +} +.media-left, +.media > .pull-left { + padding-right: 10px; +} +.media-left, +.media-right, +.media-body { + display: table-cell; + vertical-align: top; +} +.media-middle { + vertical-align: middle; +} +.media-bottom { + vertical-align: bottom; +} +.media-heading { + margin-top: 0; + margin-bottom: 5px; +} +.media-list { + padding-left: 0; + list-style: none; +} +.list-group { + padding-left: 0; + margin-bottom: 20px; +} +.list-group-item { + position: relative; + display: block; + padding: 10px 15px; + margin-bottom: -1px; + background-color: #fff; + border: 1px solid #ddd; +} +.list-group-item:first-child { + border-top-left-radius: 4px; + border-top-right-radius: 4px; +} +.list-group-item:last-child { + margin-bottom: 0; + border-bottom-right-radius: 4px; + border-bottom-left-radius: 4px; +} +a.list-group-item, +button.list-group-item { + color: #555; +} +a.list-group-item .list-group-item-heading, +button.list-group-item .list-group-item-heading { + color: #333; +} +a.list-group-item:hover, +button.list-group-item:hover, +a.list-group-item:focus, +button.list-group-item:focus { + color: #555; + text-decoration: none; + background-color: #f5f5f5; +} +button.list-group-item { + width: 100%; + text-align: left; +} +.list-group-item.disabled, +.list-group-item.disabled:hover, +.list-group-item.disabled:focus { + color: #777; + cursor: not-allowed; + background-color: #eee; +} +.list-group-item.disabled .list-group-item-heading, +.list-group-item.disabled:hover .list-group-item-heading, +.list-group-item.disabled:focus .list-group-item-heading { + color: inherit; +} +.list-group-item.disabled .list-group-item-text, +.list-group-item.disabled:hover .list-group-item-text, +.list-group-item.disabled:focus .list-group-item-text { + color: #777; +} +.list-group-item.active, +.list-group-item.active:hover, +.list-group-item.active:focus { + z-index: 2; + color: #fff; + background-color: #337ab7; + border-color: #337ab7; +} +.list-group-item.active .list-group-item-heading, +.list-group-item.active:hover .list-group-item-heading, +.list-group-item.active:focus .list-group-item-heading, +.list-group-item.active .list-group-item-heading > small, +.list-group-item.active:hover .list-group-item-heading > small, +.list-group-item.active:focus .list-group-item-heading > small, +.list-group-item.active .list-group-item-heading > .small, +.list-group-item.active:hover .list-group-item-heading > .small, +.list-group-item.active:focus .list-group-item-heading > .small { + color: inherit; +} +.list-group-item.active .list-group-item-text, +.list-group-item.active:hover .list-group-item-text, +.list-group-item.active:focus .list-group-item-text { + color: #c7ddef; +} +.list-group-item-success { + color: #3c763d; + background-color: #dff0d8; +} +a.list-group-item-success, +button.list-group-item-success { + color: #3c763d; +} +a.list-group-item-success .list-group-item-heading, +button.list-group-item-success .list-group-item-heading { + color: inherit; +} +a.list-group-item-success:hover, +button.list-group-item-success:hover, +a.list-group-item-success:focus, +button.list-group-item-success:focus { + color: #3c763d; + background-color: #d0e9c6; +} +a.list-group-item-success.active, +button.list-group-item-success.active, +a.list-group-item-success.active:hover, +button.list-group-item-success.active:hover, +a.list-group-item-success.active:focus, +button.list-group-item-success.active:focus { + color: #fff; + background-color: #3c763d; + border-color: #3c763d; +} +.list-group-item-info { + color: #31708f; + background-color: #d9edf7; +} +a.list-group-item-info, +button.list-group-item-info { + color: #31708f; +} +a.list-group-item-info .list-group-item-heading, +button.list-group-item-info .list-group-item-heading { + color: inherit; +} +a.list-group-item-info:hover, +button.list-group-item-info:hover, +a.list-group-item-info:focus, +button.list-group-item-info:focus { + color: #31708f; + background-color: #c4e3f3; +} +a.list-group-item-info.active, +button.list-group-item-info.active, +a.list-group-item-info.active:hover, +button.list-group-item-info.active:hover, +a.list-group-item-info.active:focus, +button.list-group-item-info.active:focus { + color: #fff; + background-color: #31708f; + border-color: #31708f; +} +.list-group-item-warning { + color: #8a6d3b; + background-color: #fcf8e3; +} +a.list-group-item-warning, +button.list-group-item-warning { + color: #8a6d3b; +} +a.list-group-item-warning .list-group-item-heading, +button.list-group-item-warning .list-group-item-heading { + color: inherit; +} +a.list-group-item-warning:hover, +button.list-group-item-warning:hover, +a.list-group-item-warning:focus, +button.list-group-item-warning:focus { + color: #8a6d3b; + background-color: #faf2cc; +} +a.list-group-item-warning.active, +button.list-group-item-warning.active, +a.list-group-item-warning.active:hover, +button.list-group-item-warning.active:hover, +a.list-group-item-warning.active:focus, +button.list-group-item-warning.active:focus { + color: #fff; + background-color: #8a6d3b; + border-color: #8a6d3b; +} +.list-group-item-danger { + color: #a94442; + background-color: #f2dede; +} +a.list-group-item-danger, +button.list-group-item-danger { + color: #a94442; +} +a.list-group-item-danger .list-group-item-heading, +button.list-group-item-danger .list-group-item-heading { + color: inherit; +} +a.list-group-item-danger:hover, +button.list-group-item-danger:hover, +a.list-group-item-danger:focus, +button.list-group-item-danger:focus { + color: #a94442; + background-color: #ebcccc; +} +a.list-group-item-danger.active, +button.list-group-item-danger.active, +a.list-group-item-danger.active:hover, +button.list-group-item-danger.active:hover, +a.list-group-item-danger.active:focus, +button.list-group-item-danger.active:focus { + color: #fff; + background-color: #a94442; + border-color: #a94442; +} +.list-group-item-heading { + margin-top: 0; + margin-bottom: 5px; +} +.list-group-item-text { + margin-bottom: 0; + line-height: 1.3; +} +.panel { + margin-bottom: 20px; + background-color: #fff; + border: 1px solid transparent; + border-radius: 4px; + -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .05); + box-shadow: 0 1px 1px rgba(0, 0, 0, .05); +} +.panel-body { + padding: 15px; +} +.panel-heading { + padding: 10px 15px; + border-bottom: 1px solid transparent; + border-top-left-radius: 3px; + border-top-right-radius: 3px; +} +.panel-heading > .dropdown .dropdown-toggle { + color: inherit; +} +.panel-title { + margin-top: 0; + margin-bottom: 0; + font-size: 16px; + color: inherit; +} +.panel-title > a, +.panel-title > small, +.panel-title > .small, +.panel-title > small > a, +.panel-title > .small > a { + color: inherit; +} +.panel-footer { + padding: 10px 15px; + background-color: #f5f5f5; + border-top: 1px solid #ddd; + border-bottom-right-radius: 3px; + border-bottom-left-radius: 3px; +} +.panel > .list-group, +.panel > .panel-collapse > .list-group { + margin-bottom: 0; +} +.panel > .list-group .list-group-item, +.panel > .panel-collapse > .list-group .list-group-item { + border-width: 1px 0; + border-radius: 0; +} +.panel > .list-group:first-child .list-group-item:first-child, +.panel > .panel-collapse > .list-group:first-child .list-group-item:first-child { + border-top: 0; + border-top-left-radius: 3px; + border-top-right-radius: 3px; +} +.panel > .list-group:last-child .list-group-item:last-child, +.panel > .panel-collapse > .list-group:last-child .list-group-item:last-child { + border-bottom: 0; + border-bottom-right-radius: 3px; + border-bottom-left-radius: 3px; +} +.panel > .panel-heading + .panel-collapse > .list-group .list-group-item:first-child { + border-top-left-radius: 0; + border-top-right-radius: 0; +} +.panel-heading + .list-group .list-group-item:first-child { + border-top-width: 0; +} +.list-group + .panel-footer { + border-top-width: 0; +} +.panel > .table, +.panel > .table-responsive > .table, +.panel > .panel-collapse > .table { + margin-bottom: 0; +} +.panel > .table caption, +.panel > .table-responsive > .table caption, +.panel > .panel-collapse > .table caption { + padding-right: 15px; + padding-left: 15px; +} +.panel > .table:first-child, +.panel > .table-responsive:first-child > .table:first-child { + border-top-left-radius: 3px; + border-top-right-radius: 3px; +} +.panel > .table:first-child > thead:first-child > tr:first-child, +.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child, +.panel > .table:first-child > tbody:first-child > tr:first-child, +.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child { + border-top-left-radius: 3px; + border-top-right-radius: 3px; +} +.panel > .table:first-child > thead:first-child > tr:first-child td:first-child, +.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:first-child, +.panel > .table:first-child > tbody:first-child > tr:first-child td:first-child, +.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:first-child, +.panel > .table:first-child > thead:first-child > tr:first-child th:first-child, +.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:first-child, +.panel > .table:first-child > tbody:first-child > tr:first-child th:first-child, +.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:first-child { + border-top-left-radius: 3px; +} +.panel > .table:first-child > thead:first-child > tr:first-child td:last-child, +.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:last-child, +.panel > .table:first-child > tbody:first-child > tr:first-child td:last-child, +.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:last-child, +.panel > .table:first-child > thead:first-child > tr:first-child th:last-child, +.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:last-child, +.panel > .table:first-child > tbody:first-child > tr:first-child th:last-child, +.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:last-child { + border-top-right-radius: 3px; +} +.panel > .table:last-child, +.panel > .table-responsive:last-child > .table:last-child { + border-bottom-right-radius: 3px; + border-bottom-left-radius: 3px; +} +.panel > .table:last-child > tbody:last-child > tr:last-child, +.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child, +.panel > .table:last-child > tfoot:last-child > tr:last-child, +.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child { + border-bottom-right-radius: 3px; + border-bottom-left-radius: 3px; +} +.panel > .table:last-child > tbody:last-child > tr:last-child td:first-child, +.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:first-child, +.panel > .table:last-child > tfoot:last-child > tr:last-child td:first-child, +.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:first-child, +.panel > .table:last-child > tbody:last-child > tr:last-child th:first-child, +.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:first-child, +.panel > .table:last-child > tfoot:last-child > tr:last-child th:first-child, +.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:first-child { + border-bottom-left-radius: 3px; +} +.panel > .table:last-child > tbody:last-child > tr:last-child td:last-child, +.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:last-child, +.panel > .table:last-child > tfoot:last-child > tr:last-child td:last-child, +.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:last-child, +.panel > .table:last-child > tbody:last-child > tr:last-child th:last-child, +.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:last-child, +.panel > .table:last-child > tfoot:last-child > tr:last-child th:last-child, +.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:last-child { + border-bottom-right-radius: 3px; +} +.panel > .panel-body + .table, +.panel > .panel-body + .table-responsive, +.panel > .table + .panel-body, +.panel > .table-responsive + .panel-body { + border-top: 1px solid #ddd; +} +.panel > .table > tbody:first-child > tr:first-child th, +.panel > .table > tbody:first-child > tr:first-child td { + border-top: 0; +} +.panel > .table-bordered, +.panel > .table-responsive > .table-bordered { + border: 0; +} +.panel > .table-bordered > thead > tr > th:first-child, +.panel > .table-responsive > .table-bordered > thead > tr > th:first-child, +.panel > .table-bordered > tbody > tr > th:first-child, +.panel > .table-responsive > .table-bordered > tbody > tr > th:first-child, +.panel > .table-bordered > tfoot > tr > th:first-child, +.panel > .table-responsive > .table-bordered > tfoot > tr > th:first-child, +.panel > .table-bordered > thead > tr > td:first-child, +.panel > .table-responsive > .table-bordered > thead > tr > td:first-child, +.panel > .table-bordered > tbody > tr > td:first-child, +.panel > .table-responsive > .table-bordered > tbody > tr > td:first-child, +.panel > .table-bordered > tfoot > tr > td:first-child, +.panel > .table-responsive > .table-bordered > tfoot > tr > td:first-child { + border-left: 0; +} +.panel > .table-bordered > thead > tr > th:last-child, +.panel > .table-responsive > .table-bordered > thead > tr > th:last-child, +.panel > .table-bordered > tbody > tr > th:last-child, +.panel > .table-responsive > .table-bordered > tbody > tr > th:last-child, +.panel > .table-bordered > tfoot > tr > th:last-child, +.panel > .table-responsive > .table-bordered > tfoot > tr > th:last-child, +.panel > .table-bordered > thead > tr > td:last-child, +.panel > .table-responsive > .table-bordered > thead > tr > td:last-child, +.panel > .table-bordered > tbody > tr > td:last-child, +.panel > .table-responsive > .table-bordered > tbody > tr > td:last-child, +.panel > .table-bordered > tfoot > tr > td:last-child, +.panel > .table-responsive > .table-bordered > tfoot > tr > td:last-child { + border-right: 0; +} +.panel > .table-bordered > thead > tr:first-child > td, +.panel > .table-responsive > .table-bordered > thead > tr:first-child > td, +.panel > .table-bordered > tbody > tr:first-child > td, +.panel > .table-responsive > .table-bordered > tbody > tr:first-child > td, +.panel > .table-bordered > thead > tr:first-child > th, +.panel > .table-responsive > .table-bordered > thead > tr:first-child > th, +.panel > .table-bordered > tbody > tr:first-child > th, +.panel > .table-responsive > .table-bordered > tbody > tr:first-child > th { + border-bottom: 0; +} +.panel > .table-bordered > tbody > tr:last-child > td, +.panel > .table-responsive > .table-bordered > tbody > tr:last-child > td, +.panel > .table-bordered > tfoot > tr:last-child > td, +.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > td, +.panel > .table-bordered > tbody > tr:last-child > th, +.panel > .table-responsive > .table-bordered > tbody > tr:last-child > th, +.panel > .table-bordered > tfoot > tr:last-child > th, +.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > th { + border-bottom: 0; +} +.panel > .table-responsive { + margin-bottom: 0; + border: 0; +} +.panel-group { + margin-bottom: 20px; +} +.panel-group .panel { + margin-bottom: 0; + border-radius: 4px; +} +.panel-group .panel + .panel { + margin-top: 5px; +} +.panel-group .panel-heading { + border-bottom: 0; +} +.panel-group .panel-heading + .panel-collapse > .panel-body, +.panel-group .panel-heading + .panel-collapse > .list-group { + border-top: 1px solid #ddd; +} +.panel-group .panel-footer { + border-top: 0; +} +.panel-group .panel-footer + .panel-collapse .panel-body { + border-bottom: 1px solid #ddd; +} +.panel-default { + border-color: #ddd; +} +.panel-default > .panel-heading { + color: #333; + background-color: #f5f5f5; + border-color: #ddd; +} +.panel-default > .panel-heading + .panel-collapse > .panel-body { + border-top-color: #ddd; +} +.panel-default > .panel-heading .badge { + color: #f5f5f5; + background-color: #333; +} +.panel-default > .panel-footer + .panel-collapse > .panel-body { + border-bottom-color: #ddd; +} +.panel-primary { + border-color: #337ab7; +} +.panel-primary > .panel-heading { + color: #fff; + background-color: #337ab7; + border-color: #337ab7; +} +.panel-primary > .panel-heading + .panel-collapse > .panel-body { + border-top-color: #337ab7; +} +.panel-primary > .panel-heading .badge { + color: #337ab7; + background-color: #fff; +} +.panel-primary > .panel-footer + .panel-collapse > .panel-body { + border-bottom-color: #337ab7; +} +.panel-success { + border-color: #d6e9c6; +} +.panel-success > .panel-heading { + color: #3c763d; + background-color: #dff0d8; + border-color: #d6e9c6; +} +.panel-success > .panel-heading + .panel-collapse > .panel-body { + border-top-color: #d6e9c6; +} +.panel-success > .panel-heading .badge { + color: #dff0d8; + background-color: #3c763d; +} +.panel-success > .panel-footer + .panel-collapse > .panel-body { + border-bottom-color: #d6e9c6; +} +.panel-info { + border-color: #bce8f1; +} +.panel-info > .panel-heading { + color: #31708f; + background-color: #d9edf7; + border-color: #bce8f1; +} +.panel-info > .panel-heading + .panel-collapse > .panel-body { + border-top-color: #bce8f1; +} +.panel-info > .panel-heading .badge { + color: #d9edf7; + background-color: #31708f; +} +.panel-info > .panel-footer + .panel-collapse > .panel-body { + border-bottom-color: #bce8f1; +} +.panel-warning { + border-color: #faebcc; +} +.panel-warning > .panel-heading { + color: #8a6d3b; + background-color: #fcf8e3; + border-color: #faebcc; +} +.panel-warning > .panel-heading + .panel-collapse > .panel-body { + border-top-color: #faebcc; +} +.panel-warning > .panel-heading .badge { + color: #fcf8e3; + background-color: #8a6d3b; +} +.panel-warning > .panel-footer + .panel-collapse > .panel-body { + border-bottom-color: #faebcc; +} +.panel-danger { + border-color: #ebccd1; +} +.panel-danger > .panel-heading { + color: #a94442; + background-color: #f2dede; + border-color: #ebccd1; +} +.panel-danger > .panel-heading + .panel-collapse > .panel-body { + border-top-color: #ebccd1; +} +.panel-danger > .panel-heading .badge { + color: #f2dede; + background-color: #a94442; +} +.panel-danger > .panel-footer + .panel-collapse > .panel-body { + border-bottom-color: #ebccd1; +} +.embed-responsive { + position: relative; + display: block; + height: 0; + padding: 0; + overflow: hidden; +} +.embed-responsive .embed-responsive-item, +.embed-responsive iframe, +.embed-responsive embed, +.embed-responsive object, +.embed-responsive video { + position: absolute; + top: 0; + bottom: 0; + left: 0; + width: 100%; + height: 100%; + border: 0; +} +.embed-responsive-16by9 { + padding-bottom: 56.25%; +} +.embed-responsive-4by3 { + padding-bottom: 75%; +} +.well { + min-height: 20px; + padding: 19px; + margin-bottom: 20px; + background-color: #f5f5f5; + border: 1px solid #e3e3e3; + border-radius: 4px; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05); +} +.well blockquote { + border-color: #ddd; + border-color: rgba(0, 0, 0, .15); +} +.well-lg { + padding: 24px; + border-radius: 6px; +} +.well-sm { + padding: 9px; + border-radius: 3px; +} +.close { + float: right; + font-size: 21px; + font-weight: bold; + line-height: 1; + color: #000; + text-shadow: 0 1px 0 #fff; + filter: alpha(opacity=20); + opacity: .2; +} +.close:hover, +.close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + filter: alpha(opacity=50); + opacity: .5; +} +button.close { + -webkit-appearance: none; + padding: 0; + cursor: pointer; + background: transparent; + border: 0; +} +.modal-open { + overflow: hidden; +} +.modal { + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 1050; + display: none; + overflow: hidden; + -webkit-overflow-scrolling: touch; + outline: 0; +} +.modal.fade .modal-dialog { + -webkit-transition: -webkit-transform .3s ease-out; + -o-transition: -o-transform .3s ease-out; + transition: transform .3s ease-out; + -webkit-transform: translate(0, -25%); + -ms-transform: translate(0, -25%); + -o-transform: translate(0, -25%); + transform: translate(0, -25%); +} +.modal.in .modal-dialog { + -webkit-transform: translate(0, 0); + -ms-transform: translate(0, 0); + -o-transform: translate(0, 0); + transform: translate(0, 0); +} +.modal-open .modal { + overflow-x: hidden; + overflow-y: auto; +} +.modal-dialog { + position: relative; + width: auto; + margin: 10px; +} +.modal-content { + position: relative; + background-color: #fff; + -webkit-background-clip: padding-box; + background-clip: padding-box; + border: 1px solid #999; + border: 1px solid rgba(0, 0, 0, .2); + border-radius: 6px; + outline: 0; + -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, .5); + box-shadow: 0 3px 9px rgba(0, 0, 0, .5); +} +.modal-backdrop { + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 1040; + background-color: #000; +} +.modal-backdrop.fade { + filter: alpha(opacity=0); + opacity: 0; +} +.modal-backdrop.in { + filter: alpha(opacity=50); + opacity: .5; +} +.modal-header { + padding: 15px; + border-bottom: 1px solid #e5e5e5; +} +.modal-header .close { + margin-top: -2px; +} +.modal-title { + margin: 0; + line-height: 1.42857143; +} +.modal-body { + position: relative; + padding: 15px; +} +.modal-footer { + padding: 15px; + text-align: right; + border-top: 1px solid #e5e5e5; +} +.modal-footer .btn + .btn { + margin-bottom: 0; + margin-left: 5px; +} +.modal-footer .btn-group .btn + .btn { + margin-left: -1px; +} +.modal-footer .btn-block + .btn-block { + margin-left: 0; +} +.modal-scrollbar-measure { + position: absolute; + top: -9999px; + width: 50px; + height: 50px; + overflow: scroll; +} +@media (min-width: 768px) { + .modal-dialog { + width: 600px; + margin: 30px auto; + } + .modal-content { + -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, .5); + box-shadow: 0 5px 15px rgba(0, 0, 0, .5); + } + .modal-sm { + width: 300px; + } +} +@media (min-width: 992px) { + .modal-lg { + width: 900px; + } +} +.tooltip { + position: absolute; + z-index: 1070; + display: block; + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + font-size: 12px; + font-style: normal; + font-weight: normal; + line-height: 1.42857143; + text-align: left; + text-align: start; + text-decoration: none; + text-shadow: none; + text-transform: none; + letter-spacing: normal; + word-break: normal; + word-spacing: normal; + word-wrap: normal; + white-space: normal; + filter: alpha(opacity=0); + opacity: 0; + + line-break: auto; +} +.tooltip.in { + filter: alpha(opacity=90); + opacity: .9; +} +.tooltip.top { + padding: 5px 0; + margin-top: -3px; +} +.tooltip.right { + padding: 0 5px; + margin-left: 3px; +} +.tooltip.bottom { + padding: 5px 0; + margin-top: 3px; +} +.tooltip.left { + padding: 0 5px; + margin-left: -3px; +} +.tooltip-inner { + max-width: 200px; + padding: 3px 8px; + color: #fff; + text-align: center; + background-color: #000; + border-radius: 4px; +} +.tooltip-arrow { + position: absolute; + width: 0; + height: 0; + border-color: transparent; + border-style: solid; +} +.tooltip.top .tooltip-arrow { + bottom: 0; + left: 50%; + margin-left: -5px; + border-width: 5px 5px 0; + border-top-color: #000; +} +.tooltip.top-left .tooltip-arrow { + right: 5px; + bottom: 0; + margin-bottom: -5px; + border-width: 5px 5px 0; + border-top-color: #000; +} +.tooltip.top-right .tooltip-arrow { + bottom: 0; + left: 5px; + margin-bottom: -5px; + border-width: 5px 5px 0; + border-top-color: #000; +} +.tooltip.right .tooltip-arrow { + top: 50%; + left: 0; + margin-top: -5px; + border-width: 5px 5px 5px 0; + border-right-color: #000; +} +.tooltip.left .tooltip-arrow { + top: 50%; + right: 0; + margin-top: -5px; + border-width: 5px 0 5px 5px; + border-left-color: #000; +} +.tooltip.bottom .tooltip-arrow { + top: 0; + left: 50%; + margin-left: -5px; + border-width: 0 5px 5px; + border-bottom-color: #000; +} +.tooltip.bottom-left .tooltip-arrow { + top: 0; + right: 5px; + margin-top: -5px; + border-width: 0 5px 5px; + border-bottom-color: #000; +} +.tooltip.bottom-right .tooltip-arrow { + top: 0; + left: 5px; + margin-top: -5px; + border-width: 0 5px 5px; + border-bottom-color: #000; +} +.popover { + position: absolute; + top: 0; + left: 0; + z-index: 1060; + display: none; + max-width: 276px; + padding: 1px; + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + font-size: 14px; + font-style: normal; + font-weight: normal; + line-height: 1.42857143; + text-align: left; + text-align: start; + text-decoration: none; + text-shadow: none; + text-transform: none; + letter-spacing: normal; + word-break: normal; + word-spacing: normal; + word-wrap: normal; + white-space: normal; + background-color: #fff; + -webkit-background-clip: padding-box; + background-clip: padding-box; + border: 1px solid #ccc; + border: 1px solid rgba(0, 0, 0, .2); + border-radius: 6px; + -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, .2); + box-shadow: 0 5px 10px rgba(0, 0, 0, .2); + + line-break: auto; +} +.popover.top { + margin-top: -10px; +} +.popover.right { + margin-left: 10px; +} +.popover.bottom { + margin-top: 10px; +} +.popover.left { + margin-left: -10px; +} +.popover-title { + padding: 8px 14px; + margin: 0; + font-size: 14px; + background-color: #f7f7f7; + border-bottom: 1px solid #ebebeb; + border-radius: 5px 5px 0 0; +} +.popover-content { + padding: 9px 14px; +} +.popover > .arrow, +.popover > .arrow:after { + position: absolute; + display: block; + width: 0; + height: 0; + border-color: transparent; + border-style: solid; +} +.popover > .arrow { + border-width: 11px; +} +.popover > .arrow:after { + content: ""; + border-width: 10px; +} +.popover.top > .arrow { + bottom: -11px; + left: 50%; + margin-left: -11px; + border-top-color: #999; + border-top-color: rgba(0, 0, 0, .25); + border-bottom-width: 0; +} +.popover.top > .arrow:after { + bottom: 1px; + margin-left: -10px; + content: " "; + border-top-color: #fff; + border-bottom-width: 0; +} +.popover.right > .arrow { + top: 50%; + left: -11px; + margin-top: -11px; + border-right-color: #999; + border-right-color: rgba(0, 0, 0, .25); + border-left-width: 0; +} +.popover.right > .arrow:after { + bottom: -10px; + left: 1px; + content: " "; + border-right-color: #fff; + border-left-width: 0; +} +.popover.bottom > .arrow { + top: -11px; + left: 50%; + margin-left: -11px; + border-top-width: 0; + border-bottom-color: #999; + border-bottom-color: rgba(0, 0, 0, .25); +} +.popover.bottom > .arrow:after { + top: 1px; + margin-left: -10px; + content: " "; + border-top-width: 0; + border-bottom-color: #fff; +} +.popover.left > .arrow { + top: 50%; + right: -11px; + margin-top: -11px; + border-right-width: 0; + border-left-color: #999; + border-left-color: rgba(0, 0, 0, .25); +} +.popover.left > .arrow:after { + right: 1px; + bottom: -10px; + content: " "; + border-right-width: 0; + border-left-color: #fff; +} +.carousel { + position: relative; +} +.carousel-inner { + position: relative; + width: 100%; + overflow: hidden; +} +.carousel-inner > .item { + position: relative; + display: none; + -webkit-transition: .6s ease-in-out left; + -o-transition: .6s ease-in-out left; + transition: .6s ease-in-out left; +} +.carousel-inner > .item > img, +.carousel-inner > .item > a > img { + line-height: 1; +} +@media all and (transform-3d), (-webkit-transform-3d) { + .carousel-inner > .item { + -webkit-transition: -webkit-transform .6s ease-in-out; + -o-transition: -o-transform .6s ease-in-out; + transition: transform .6s ease-in-out; + + -webkit-backface-visibility: hidden; + backface-visibility: hidden; + -webkit-perspective: 1000px; + perspective: 1000px; + } + .carousel-inner > .item.next, + .carousel-inner > .item.active.right { + left: 0; + -webkit-transform: translate3d(100%, 0, 0); + transform: translate3d(100%, 0, 0); + } + .carousel-inner > .item.prev, + .carousel-inner > .item.active.left { + left: 0; + -webkit-transform: translate3d(-100%, 0, 0); + transform: translate3d(-100%, 0, 0); + } + .carousel-inner > .item.next.left, + .carousel-inner > .item.prev.right, + .carousel-inner > .item.active { + left: 0; + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); + } +} +.carousel-inner > .active, +.carousel-inner > .next, +.carousel-inner > .prev { + display: block; +} +.carousel-inner > .active { + left: 0; +} +.carousel-inner > .next, +.carousel-inner > .prev { + position: absolute; + top: 0; + width: 100%; +} +.carousel-inner > .next { + left: 100%; +} +.carousel-inner > .prev { + left: -100%; +} +.carousel-inner > .next.left, +.carousel-inner > .prev.right { + left: 0; +} +.carousel-inner > .active.left { + left: -100%; +} +.carousel-inner > .active.right { + left: 100%; +} +.carousel-control { + position: absolute; + top: 0; + bottom: 0; + left: 0; + width: 15%; + font-size: 20px; + color: #fff; + text-align: center; + text-shadow: 0 1px 2px rgba(0, 0, 0, .6); + background-color: rgba(0, 0, 0, 0); + filter: alpha(opacity=50); + opacity: .5; +} +.carousel-control.left { + background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .0001) 100%); + background-image: -o-linear-gradient(left, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .0001) 100%); + background-image: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, .5)), to(rgba(0, 0, 0, .0001))); + background-image: linear-gradient(to right, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .0001) 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1); + background-repeat: repeat-x; +} +.carousel-control.right { + right: 0; + left: auto; + background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, .0001) 0%, rgba(0, 0, 0, .5) 100%); + background-image: -o-linear-gradient(left, rgba(0, 0, 0, .0001) 0%, rgba(0, 0, 0, .5) 100%); + background-image: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, .0001)), to(rgba(0, 0, 0, .5))); + background-image: linear-gradient(to right, rgba(0, 0, 0, .0001) 0%, rgba(0, 0, 0, .5) 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1); + background-repeat: repeat-x; +} +.carousel-control:hover, +.carousel-control:focus { + color: #fff; + text-decoration: none; + filter: alpha(opacity=90); + outline: 0; + opacity: .9; +} +.carousel-control .icon-prev, +.carousel-control .icon-next, +.carousel-control .glyphicon-chevron-left, +.carousel-control .glyphicon-chevron-right { + position: absolute; + top: 50%; + z-index: 5; + display: inline-block; + margin-top: -10px; +} +.carousel-control .icon-prev, +.carousel-control .glyphicon-chevron-left { + left: 50%; + margin-left: -10px; +} +.carousel-control .icon-next, +.carousel-control .glyphicon-chevron-right { + right: 50%; + margin-right: -10px; +} +.carousel-control .icon-prev, +.carousel-control .icon-next { + width: 20px; + height: 20px; + font-family: serif; + line-height: 1; +} +.carousel-control .icon-prev:before { + content: '\2039'; +} +.carousel-control .icon-next:before { + content: '\203a'; +} +.carousel-indicators { + position: absolute; + bottom: 10px; + left: 50%; + z-index: 15; + width: 60%; + padding-left: 0; + margin-left: -30%; + text-align: center; + list-style: none; +} +.carousel-indicators li { + display: inline-block; + width: 10px; + height: 10px; + margin: 1px; + text-indent: -999px; + cursor: pointer; + background-color: #000 \9; + background-color: rgba(0, 0, 0, 0); + border: 1px solid #fff; + border-radius: 10px; +} +.carousel-indicators .active { + width: 12px; + height: 12px; + margin: 0; + background-color: #fff; +} +.carousel-caption { + position: absolute; + right: 15%; + bottom: 20px; + left: 15%; + z-index: 10; + padding-top: 20px; + padding-bottom: 20px; + color: #fff; + text-align: center; + text-shadow: 0 1px 2px rgba(0, 0, 0, .6); +} +.carousel-caption .btn { + text-shadow: none; +} +@media screen and (min-width: 768px) { + .carousel-control .glyphicon-chevron-left, + .carousel-control .glyphicon-chevron-right, + .carousel-control .icon-prev, + .carousel-control .icon-next { + width: 30px; + height: 30px; + margin-top: -10px; + font-size: 30px; + } + .carousel-control .glyphicon-chevron-left, + .carousel-control .icon-prev { + margin-left: -10px; + } + .carousel-control .glyphicon-chevron-right, + .carousel-control .icon-next { + margin-right: -10px; + } + .carousel-caption { + right: 20%; + left: 20%; + padding-bottom: 30px; + } + .carousel-indicators { + bottom: 20px; + } +} +.clearfix:before, +.clearfix:after, +.dl-horizontal dd:before, +.dl-horizontal dd:after, +.container:before, +.container:after, +.container-fluid:before, +.container-fluid:after, +.row:before, +.row:after, +.form-horizontal .form-group:before, +.form-horizontal .form-group:after, +.btn-toolbar:before, +.btn-toolbar:after, +.btn-group-vertical > .btn-group:before, +.btn-group-vertical > .btn-group:after, +.nav:before, +.nav:after, +.navbar:before, +.navbar:after, +.navbar-header:before, +.navbar-header:after, +.navbar-collapse:before, +.navbar-collapse:after, +.pager:before, +.pager:after, +.panel-body:before, +.panel-body:after, +.modal-header:before, +.modal-header:after, +.modal-footer:before, +.modal-footer:after { + display: table; + content: " "; +} +.clearfix:after, +.dl-horizontal dd:after, +.container:after, +.container-fluid:after, +.row:after, +.form-horizontal .form-group:after, +.btn-toolbar:after, +.btn-group-vertical > .btn-group:after, +.nav:after, +.navbar:after, +.navbar-header:after, +.navbar-collapse:after, +.pager:after, +.panel-body:after, +.modal-header:after, +.modal-footer:after { + clear: both; +} +.center-block { + display: block; + margin-right: auto; + margin-left: auto; +} +.pull-right { + float: right !important; +} +.pull-left { + float: left !important; +} +.hide { + display: none !important; +} +.show { + display: block !important; +} +.invisible { + visibility: hidden; +} +.text-hide { + font: 0/0 a; + color: transparent; + text-shadow: none; + background-color: transparent; + border: 0; +} +.hidden { + display: none !important; +} +.affix { + position: fixed; +} +@-ms-viewport { + width: device-width; +} +.visible-xs, +.visible-sm, +.visible-md, +.visible-lg { + display: none !important; +} +.visible-xs-block, +.visible-xs-inline, +.visible-xs-inline-block, +.visible-sm-block, +.visible-sm-inline, +.visible-sm-inline-block, +.visible-md-block, +.visible-md-inline, +.visible-md-inline-block, +.visible-lg-block, +.visible-lg-inline, +.visible-lg-inline-block { + display: none !important; +} +@media (max-width: 767px) { + .visible-xs { + display: block !important; + } + table.visible-xs { + display: table !important; + } + tr.visible-xs { + display: table-row !important; + } + th.visible-xs, + td.visible-xs { + display: table-cell !important; + } +} +@media (max-width: 767px) { + .visible-xs-block { + display: block !important; + } +} +@media (max-width: 767px) { + .visible-xs-inline { + display: inline !important; + } +} +@media (max-width: 767px) { + .visible-xs-inline-block { + display: inline-block !important; + } +} +@media (min-width: 768px) and (max-width: 991px) { + .visible-sm { + display: block !important; + } + table.visible-sm { + display: table !important; + } + tr.visible-sm { + display: table-row !important; + } + th.visible-sm, + td.visible-sm { + display: table-cell !important; + } +} +@media (min-width: 768px) and (max-width: 991px) { + .visible-sm-block { + display: block !important; + } +} +@media (min-width: 768px) and (max-width: 991px) { + .visible-sm-inline { + display: inline !important; + } +} +@media (min-width: 768px) and (max-width: 991px) { + .visible-sm-inline-block { + display: inline-block !important; + } +} +@media (min-width: 992px) and (max-width: 1199px) { + .visible-md { + display: block !important; + } + table.visible-md { + display: table !important; + } + tr.visible-md { + display: table-row !important; + } + th.visible-md, + td.visible-md { + display: table-cell !important; + } +} +@media (min-width: 992px) and (max-width: 1199px) { + .visible-md-block { + display: block !important; + } +} +@media (min-width: 992px) and (max-width: 1199px) { + .visible-md-inline { + display: inline !important; + } +} +@media (min-width: 992px) and (max-width: 1199px) { + .visible-md-inline-block { + display: inline-block !important; + } +} +@media (min-width: 1200px) { + .visible-lg { + display: block !important; + } + table.visible-lg { + display: table !important; + } + tr.visible-lg { + display: table-row !important; + } + th.visible-lg, + td.visible-lg { + display: table-cell !important; + } +} +@media (min-width: 1200px) { + .visible-lg-block { + display: block !important; + } +} +@media (min-width: 1200px) { + .visible-lg-inline { + display: inline !important; + } +} +@media (min-width: 1200px) { + .visible-lg-inline-block { + display: inline-block !important; + } +} +@media (max-width: 767px) { + .hidden-xs { + display: none !important; + } +} +@media (min-width: 768px) and (max-width: 991px) { + .hidden-sm { + display: none !important; + } +} +@media (min-width: 992px) and (max-width: 1199px) { + .hidden-md { + display: none !important; + } +} +@media (min-width: 1200px) { + .hidden-lg { + display: none !important; + } +} +.visible-print { + display: none !important; +} +@media print { + .visible-print { + display: block !important; + } + table.visible-print { + display: table !important; + } + tr.visible-print { + display: table-row !important; + } + th.visible-print, + td.visible-print { + display: table-cell !important; + } +} +.visible-print-block { + display: none !important; +} +@media print { + .visible-print-block { + display: block !important; + } +} +.visible-print-inline { + display: none !important; +} +@media print { + .visible-print-inline { + display: inline !important; + } +} +.visible-print-inline-block { + display: none !important; +} +@media print { + .visible-print-inline-block { + display: inline-block !important; + } +} +@media print { + .hidden-print { + display: none !important; + } +} +/*# sourceMappingURL=bootstrap.css.map */ diff --git a/src/Sample.RazorPages/wwwroot/lib/bootstrap/dist/css/bootstrap.css.map b/src/Sample.RazorPages/wwwroot/lib/bootstrap/dist/css/bootstrap.css.map new file mode 100644 index 0000000..f010c82 --- /dev/null +++ b/src/Sample.RazorPages/wwwroot/lib/bootstrap/dist/css/bootstrap.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["bootstrap.css","less/normalize.less","less/print.less","less/glyphicons.less","less/scaffolding.less","less/mixins/vendor-prefixes.less","less/mixins/tab-focus.less","less/mixins/image.less","less/type.less","less/mixins/text-emphasis.less","less/mixins/background-variant.less","less/mixins/text-overflow.less","less/code.less","less/grid.less","less/mixins/grid.less","less/mixins/grid-framework.less","less/tables.less","less/mixins/table-row.less","less/forms.less","less/mixins/forms.less","less/buttons.less","less/mixins/buttons.less","less/mixins/opacity.less","less/component-animations.less","less/dropdowns.less","less/mixins/nav-divider.less","less/mixins/reset-filter.less","less/button-groups.less","less/mixins/border-radius.less","less/input-groups.less","less/navs.less","less/navbar.less","less/mixins/nav-vertical-align.less","less/utilities.less","less/breadcrumbs.less","less/pagination.less","less/mixins/pagination.less","less/pager.less","less/labels.less","less/mixins/labels.less","less/badges.less","less/jumbotron.less","less/thumbnails.less","less/alerts.less","less/mixins/alerts.less","less/progress-bars.less","less/mixins/gradients.less","less/mixins/progress-bar.less","less/media.less","less/list-group.less","less/mixins/list-group.less","less/panels.less","less/mixins/panels.less","less/responsive-embed.less","less/wells.less","less/close.less","less/modals.less","less/tooltip.less","less/mixins/reset-text.less","less/popovers.less","less/carousel.less","less/mixins/clearfix.less","less/mixins/center-block.less","less/mixins/hide-text.less","less/responsive-utilities.less","less/mixins/responsive-visibility.less"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,4EAA4E;ACG5E;EACE,wBAAA;EACA,2BAAA;EACA,+BAAA;CDDD;ACQD;EACE,UAAA;CDND;ACmBD;;;;;;;;;;;;;EAaE,eAAA;CDjBD;ACyBD;;;;EAIE,sBAAA;EACA,yBAAA;CDvBD;AC+BD;EACE,cAAA;EACA,UAAA;CD7BD;ACqCD;;EAEE,cAAA;CDnCD;AC6CD;EACE,8BAAA;CD3CD;ACmDD;;EAEE,WAAA;CDjDD;AC2DD;EACE,0BAAA;CDzDD;ACgED;;EAEE,kBAAA;CD9DD;ACqED;EACE,mBAAA;CDnED;AC2ED;EACE,eAAA;EACA,iBAAA;CDzED;ACgFD;EACE,iBAAA;EACA,YAAA;CD9ED;ACqFD;EACE,eAAA;CDnFD;AC0FD;;EAEE,eAAA;EACA,eAAA;EACA,mBAAA;EACA,yBAAA;CDxFD;AC2FD;EACE,YAAA;CDzFD;AC4FD;EACE,gBAAA;CD1FD;ACoGD;EACE,UAAA;CDlGD;ACyGD;EACE,iBAAA;CDvGD;ACiHD;EACE,iBAAA;CD/GD;ACsHD;EACE,gCAAA;KAAA,6BAAA;UAAA,wBAAA;EACA,UAAA;CDpHD;AC2HD;EACE,eAAA;CDzHD;ACgID;;;;EAIE,kCAAA;EACA,eAAA;CD9HD;ACgJD;;;;;EAKE,eAAA;EACA,cAAA;EACA,UAAA;CD9ID;ACqJD;EACE,kBAAA;CDnJD;AC6JD;;EAEE,qBAAA;CD3JD;ACsKD;;;;EAIE,2BAAA;EACA,gBAAA;CDpKD;AC2KD;;EAEE,gBAAA;CDzKD;ACgLD;;EAEE,UAAA;EACA,WAAA;CD9KD;ACsLD;EACE,oBAAA;CDpLD;AC+LD;;EAEE,+BAAA;KAAA,4BAAA;UAAA,uBAAA;EACA,WAAA;CD7LD;AC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fkgED;EengED;IACE,oBAAA;GfqgED;EetgED;IACE,WAAA;GfwgED;EezgED;IACE,oBAAA;Gf2gED;Ee5gED;IACE,oBAAA;Gf8gED;Ee/gED;IACE,WAAA;GfihED;EelhED;IACE,oBAAA;GfohED;EerhED;IACE,mBAAA;GfuhED;EezgED;IACE,YAAA;Gf2gED;Ee5gED;IACE,oBAAA;Gf8gED;Ee/gED;IACE,oBAAA;GfihED;EelhED;IACE,WAAA;GfohED;EerhED;IACE,oBAAA;GfuhED;EexhED;IACE,oBAAA;Gf0hED;Ee3hED;IACE,WAAA;Gf6hED;Ee9hED;IACE,oBAAA;GfgiED;EejiED;IACE,oBAAA;GfmiED;EepiED;IACE,WAAA;GfsiED;EeviED;IACE,oBAAA;GfyiED;Ee1iED;IACE,mBAAA;Gf4iED;EexiED;IACE,YAAA;Gf0iED;Ee1jED;IACE,WAAA;Gf4jED;Ee7jED;IACE,mBAAA;Gf+jED;EehkED;IACE,mBAAA;GfkkED;EenkED;IACE,UAAA;GfqkED;EetkED;IACE,mBAAA;GfwkED;EezkED;IACE,mBAAA;Gf2kED;Ee5kED;IACE,UAAA;Gf8kED;Ee/kED;IACE,mBAAA;GfilED;EellED;IACE,mBAAA;GfolED;EerlED;IACE,UAAA;GfulED;EexlED;IACE,mBAAA;Gf0lED;Ee3lED;IACE,kBAAA;Gf6lED;EezlED;IACE,WAAA;Gf2lED;Ee7kED;IACE,kBAAA;Gf+kED;EehlED;IACE,0BAAA;GfklED;EenlED;IACE,0BAAA;GfqlED;EetlED;IACE,iBAAA;GfwlED;EezlED;IACE,0BAAA;Gf2lED;Ee5lED;IACE,0BAAA;Gf8lED;Ee/lED;IACE,iBAAA;GfimED;EelmED;IACE,0BAAA;GfomED;EermED;IACE,0BAAA;GfumED;EexmED;IACE,iBAAA;Gf0mED;Ee3mED;IACE,0BAAA;Gf6mED;Ee9mED;IACE,yBAAA;GfgnED;EejnED;IACE,gBAAA;GfmnED;CACF;AgBvrED;EACE,8BAAA;ChByr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;EiEphND;IAAU,0BAAA;GjEuhNT;EiEthND;IAAU,8BAAA;GjEyhNT;EiExhND;;IACU,+BAAA;GjE2hNT;CACF;AgE93MD;EACE,yBAAA;ChEg4MD;AgE33MD;EAqBA;IAvBI,0BAAA;GhEi4MD;CACF;AgE/3MD;EACE,yBAAA;ChEi4MD;AgE53MD;EAcA;IAhBI,2BAAA;GhEk4MD;CACF;AgEh4MD;EACE,yBAAA;ChEk4MD;AgE73MD;EAOA;IATI,iCAAA;GhEm4MD;CACF;AgE53MD;EACA;ICrLE,yBAAA;GjEojNC;CACF","file":"bootstrap.css","sourcesContent":["/*!\n * Bootstrap v3.3.7 (http://getbootstrap.com)\n * Copyright 2011-2016 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n */\n/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */\nhtml {\n font-family: sans-serif;\n -ms-text-size-adjust: 100%;\n -webkit-text-size-adjust: 100%;\n}\nbody {\n margin: 0;\n}\narticle,\naside,\ndetails,\nfigcaption,\nfigure,\nfooter,\nheader,\nhgroup,\nmain,\nmenu,\nnav,\nsection,\nsummary {\n display: block;\n}\naudio,\ncanvas,\nprogress,\nvideo {\n display: inline-block;\n vertical-align: baseline;\n}\naudio:not([controls]) {\n display: none;\n height: 0;\n}\n[hidden],\ntemplate {\n display: none;\n}\na {\n background-color: transparent;\n}\na:active,\na:hover {\n outline: 0;\n}\nabbr[title] {\n border-bottom: 1px dotted;\n}\nb,\nstrong {\n font-weight: bold;\n}\ndfn {\n font-style: italic;\n}\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\nmark {\n background: #ff0;\n color: #000;\n}\nsmall {\n font-size: 80%;\n}\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\nsup {\n top: -0.5em;\n}\nsub {\n bottom: -0.25em;\n}\nimg {\n border: 0;\n}\nsvg:not(:root) {\n overflow: hidden;\n}\nfigure {\n margin: 1em 40px;\n}\nhr {\n box-sizing: content-box;\n height: 0;\n}\npre {\n overflow: auto;\n}\ncode,\nkbd,\npre,\nsamp {\n font-family: monospace, monospace;\n font-size: 1em;\n}\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n color: inherit;\n font: inherit;\n margin: 0;\n}\nbutton {\n overflow: visible;\n}\nbutton,\nselect {\n text-transform: none;\n}\nbutton,\nhtml input[type=\"button\"],\ninput[type=\"reset\"],\ninput[type=\"submit\"] {\n -webkit-appearance: button;\n cursor: pointer;\n}\nbutton[disabled],\nhtml input[disabled] {\n cursor: default;\n}\nbutton::-moz-focus-inner,\ninput::-moz-focus-inner {\n border: 0;\n padding: 0;\n}\ninput {\n line-height: normal;\n}\ninput[type=\"checkbox\"],\ninput[type=\"radio\"] {\n box-sizing: border-box;\n padding: 0;\n}\ninput[type=\"number\"]::-webkit-inner-spin-button,\ninput[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\ninput[type=\"search\"] {\n -webkit-appearance: textfield;\n box-sizing: content-box;\n}\ninput[type=\"search\"]::-webkit-search-cancel-button,\ninput[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\nfieldset {\n border: 1px solid #c0c0c0;\n margin: 0 2px;\n padding: 0.35em 0.625em 0.75em;\n}\nlegend {\n border: 0;\n padding: 0;\n}\ntextarea {\n overflow: auto;\n}\noptgroup {\n font-weight: bold;\n}\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\ntd,\nth {\n padding: 0;\n}\n/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */\n@media print {\n *,\n *:before,\n *:after {\n background: transparent !important;\n color: #000 !important;\n box-shadow: none !important;\n text-shadow: none !important;\n }\n a,\n a:visited {\n text-decoration: underline;\n }\n a[href]:after {\n content: \" (\" attr(href) \")\";\n }\n abbr[title]:after {\n content: \" (\" attr(title) \")\";\n }\n a[href^=\"#\"]:after,\n a[href^=\"javascript:\"]:after {\n content: \"\";\n }\n pre,\n blockquote {\n border: 1px solid #999;\n page-break-inside: avoid;\n }\n thead {\n display: table-header-group;\n }\n tr,\n img {\n page-break-inside: avoid;\n }\n img {\n max-width: 100% !important;\n }\n p,\n h2,\n h3 {\n orphans: 3;\n widows: 3;\n }\n h2,\n h3 {\n page-break-after: avoid;\n }\n .navbar {\n display: none;\n }\n .btn > .caret,\n .dropup > .btn > .caret {\n border-top-color: #000 !important;\n }\n .label {\n border: 1px solid #000;\n }\n .table {\n border-collapse: collapse !important;\n }\n .table td,\n .table th {\n background-color: #fff !important;\n }\n .table-bordered th,\n .table-bordered td {\n border: 1px solid #ddd !important;\n }\n}\n@font-face {\n font-family: 'Glyphicons Halflings';\n src: url('../fonts/glyphicons-halflings-regular.eot');\n src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff2') format('woff2'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');\n}\n.glyphicon {\n position: relative;\n top: 1px;\n display: inline-block;\n font-family: 'Glyphicons Halflings';\n font-style: normal;\n font-weight: normal;\n line-height: 1;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n.glyphicon-asterisk:before {\n content: \"\\002a\";\n}\n.glyphicon-plus:before {\n content: \"\\002b\";\n}\n.glyphicon-euro:before,\n.glyphicon-eur:before {\n content: \"\\20ac\";\n}\n.glyphicon-minus:before {\n content: \"\\2212\";\n}\n.glyphicon-cloud:before {\n content: \"\\2601\";\n}\n.glyphicon-envelope:before {\n content: \"\\2709\";\n}\n.glyphicon-pencil:before {\n content: \"\\270f\";\n}\n.glyphicon-glass:before {\n content: \"\\e001\";\n}\n.glyphicon-music:before {\n content: \"\\e002\";\n}\n.glyphicon-search:before {\n content: \"\\e003\";\n}\n.glyphicon-heart:before {\n content: \"\\e005\";\n}\n.glyphicon-star:before {\n content: \"\\e006\";\n}\n.glyphicon-star-empty:before {\n content: \"\\e007\";\n}\n.glyphicon-user:before {\n content: \"\\e008\";\n}\n.glyphicon-film:before {\n content: \"\\e009\";\n}\n.glyphicon-th-large:before {\n content: \"\\e010\";\n}\n.glyphicon-th:before {\n content: \"\\e011\";\n}\n.glyphicon-th-list:before {\n content: \"\\e012\";\n}\n.glyphicon-ok:before {\n content: \"\\e013\";\n}\n.glyphicon-remove:before {\n content: \"\\e014\";\n}\n.glyphicon-zoom-in:before {\n content: \"\\e015\";\n}\n.glyphicon-zoom-out:before {\n content: \"\\e016\";\n}\n.glyphicon-off:before {\n content: \"\\e017\";\n}\n.glyphicon-signal:before {\n content: \"\\e018\";\n}\n.glyphicon-cog:before {\n content: \"\\e019\";\n}\n.glyphicon-trash:before {\n content: \"\\e020\";\n}\n.glyphicon-home:before {\n content: \"\\e021\";\n}\n.glyphicon-file:before {\n content: \"\\e022\";\n}\n.glyphicon-time:before {\n content: \"\\e023\";\n}\n.glyphicon-road:before {\n content: \"\\e024\";\n}\n.glyphicon-download-alt:before {\n content: \"\\e025\";\n}\n.glyphicon-download:before {\n content: \"\\e026\";\n}\n.glyphicon-upload:before {\n content: \"\\e027\";\n}\n.glyphicon-inbox:before {\n content: \"\\e028\";\n}\n.glyphicon-play-circle:before {\n content: \"\\e029\";\n}\n.glyphicon-repeat:before {\n content: \"\\e030\";\n}\n.glyphicon-refresh:before {\n content: \"\\e031\";\n}\n.glyphicon-list-alt:before {\n content: \"\\e032\";\n}\n.glyphicon-lock:before {\n content: \"\\e033\";\n}\n.glyphicon-flag:before {\n content: \"\\e034\";\n}\n.glyphicon-headphones:before {\n content: \"\\e035\";\n}\n.glyphicon-volume-off:before {\n content: \"\\e036\";\n}\n.glyphicon-volume-down:before {\n content: \"\\e037\";\n}\n.glyphicon-volume-up:before {\n content: \"\\e038\";\n}\n.glyphicon-qrcode:before {\n content: \"\\e039\";\n}\n.glyphicon-barcode:before {\n content: \"\\e040\";\n}\n.glyphicon-tag:before {\n content: \"\\e041\";\n}\n.glyphicon-tags:before {\n content: \"\\e042\";\n}\n.glyphicon-book:before {\n content: \"\\e043\";\n}\n.glyphicon-bookmark:before {\n content: \"\\e044\";\n}\n.glyphicon-print:before {\n content: \"\\e045\";\n}\n.glyphicon-camera:before {\n content: \"\\e046\";\n}\n.glyphicon-font:before {\n content: \"\\e047\";\n}\n.glyphicon-bold:before {\n content: \"\\e048\";\n}\n.glyphicon-italic:before {\n content: \"\\e049\";\n}\n.glyphicon-text-height:before {\n content: \"\\e050\";\n}\n.glyphicon-text-width:before {\n content: \"\\e051\";\n}\n.glyphicon-align-left:before {\n content: \"\\e052\";\n}\n.glyphicon-align-center:before {\n content: \"\\e053\";\n}\n.glyphicon-align-right:before {\n content: \"\\e054\";\n}\n.glyphicon-align-justify:before {\n content: \"\\e055\";\n}\n.glyphicon-list:before {\n content: \"\\e056\";\n}\n.glyphicon-indent-left:before {\n content: \"\\e057\";\n}\n.glyphicon-indent-right:before {\n content: \"\\e058\";\n}\n.glyphicon-facetime-video:before {\n content: \"\\e059\";\n}\n.glyphicon-picture:before {\n content: \"\\e060\";\n}\n.glyphicon-map-marker:before {\n content: \"\\e062\";\n}\n.glyphicon-adjust:before {\n content: \"\\e063\";\n}\n.glyphicon-tint:before {\n content: \"\\e064\";\n}\n.glyphicon-edit:before {\n content: \"\\e065\";\n}\n.glyphicon-share:before {\n content: \"\\e066\";\n}\n.glyphicon-check:before {\n content: \"\\e067\";\n}\n.glyphicon-move:before {\n content: \"\\e068\";\n}\n.glyphicon-step-backward:before {\n content: \"\\e069\";\n}\n.glyphicon-fast-backward:before {\n content: \"\\e070\";\n}\n.glyphicon-backward:before {\n content: \"\\e071\";\n}\n.glyphicon-play:before {\n content: \"\\e072\";\n}\n.glyphicon-pause:before {\n content: \"\\e073\";\n}\n.glyphicon-stop:before {\n content: \"\\e074\";\n}\n.glyphicon-forward:before {\n content: \"\\e075\";\n}\n.glyphicon-fast-forward:before {\n content: \"\\e076\";\n}\n.glyphicon-step-forward:before {\n content: \"\\e077\";\n}\n.glyphicon-eject:before {\n content: \"\\e078\";\n}\n.glyphicon-chevron-left:before {\n content: \"\\e079\";\n}\n.glyphicon-chevron-right:before {\n content: \"\\e080\";\n}\n.glyphicon-plus-sign:before {\n content: \"\\e081\";\n}\n.glyphicon-minus-sign:before {\n content: \"\\e082\";\n}\n.glyphicon-remove-sign:before {\n content: \"\\e083\";\n}\n.glyphicon-ok-sign:before {\n content: \"\\e084\";\n}\n.glyphicon-question-sign:before {\n content: \"\\e085\";\n}\n.glyphicon-info-sign:before {\n content: \"\\e086\";\n}\n.glyphicon-screenshot:before {\n content: \"\\e087\";\n}\n.glyphicon-remove-circle:before {\n content: \"\\e088\";\n}\n.glyphicon-ok-circle:before {\n content: \"\\e089\";\n}\n.glyphicon-ban-circle:before {\n content: \"\\e090\";\n}\n.glyphicon-arrow-left:before {\n content: \"\\e091\";\n}\n.glyphicon-arrow-right:before {\n content: \"\\e092\";\n}\n.glyphicon-arrow-up:before {\n content: \"\\e093\";\n}\n.glyphicon-arrow-down:before {\n content: \"\\e094\";\n}\n.glyphicon-share-alt:before {\n content: \"\\e095\";\n}\n.glyphicon-resize-full:before {\n content: \"\\e096\";\n}\n.glyphicon-resize-small:before {\n content: \"\\e097\";\n}\n.glyphicon-exclamation-sign:before {\n content: \"\\e101\";\n}\n.glyphicon-gift:before {\n content: \"\\e102\";\n}\n.glyphicon-leaf:before {\n content: \"\\e103\";\n}\n.glyphicon-fire:before {\n content: \"\\e104\";\n}\n.glyphicon-eye-open:before {\n content: \"\\e105\";\n}\n.glyphicon-eye-close:before {\n content: \"\\e106\";\n}\n.glyphicon-warning-sign:before {\n content: \"\\e107\";\n}\n.glyphicon-plane:before {\n content: \"\\e108\";\n}\n.glyphicon-calendar:before {\n content: \"\\e109\";\n}\n.glyphicon-random:before {\n content: \"\\e110\";\n}\n.glyphicon-comment:before {\n content: \"\\e111\";\n}\n.glyphicon-magnet:before {\n content: \"\\e112\";\n}\n.glyphicon-chevron-up:before {\n content: \"\\e113\";\n}\n.glyphicon-chevron-down:before {\n content: \"\\e114\";\n}\n.glyphicon-retweet:before {\n content: \"\\e115\";\n}\n.glyphicon-shopping-cart:before {\n content: \"\\e116\";\n}\n.glyphicon-folder-close:before {\n content: \"\\e117\";\n}\n.glyphicon-folder-open:before {\n content: \"\\e118\";\n}\n.glyphicon-resize-vertical:before {\n content: \"\\e119\";\n}\n.glyphicon-resize-horizontal:before {\n content: \"\\e120\";\n}\n.glyphicon-hdd:before {\n content: \"\\e121\";\n}\n.glyphicon-bullhorn:before {\n content: \"\\e122\";\n}\n.glyphicon-bell:before {\n content: \"\\e123\";\n}\n.glyphicon-certificate:before {\n content: \"\\e124\";\n}\n.glyphicon-thumbs-up:before {\n content: \"\\e125\";\n}\n.glyphicon-thumbs-down:before {\n content: \"\\e126\";\n}\n.glyphicon-hand-right:before {\n content: \"\\e127\";\n}\n.glyphicon-hand-left:before {\n content: \"\\e128\";\n}\n.glyphicon-hand-up:before {\n content: \"\\e129\";\n}\n.glyphicon-hand-down:before {\n content: \"\\e130\";\n}\n.glyphicon-circle-arrow-right:before {\n content: \"\\e131\";\n}\n.glyphicon-circle-arrow-left:before {\n content: \"\\e132\";\n}\n.glyphicon-circle-arrow-up:before {\n content: \"\\e133\";\n}\n.glyphicon-circle-arrow-down:before {\n content: \"\\e134\";\n}\n.glyphicon-globe:before {\n content: \"\\e135\";\n}\n.glyphicon-wrench:before {\n content: \"\\e136\";\n}\n.glyphicon-tasks:before {\n content: \"\\e137\";\n}\n.glyphicon-filter:before {\n content: \"\\e138\";\n}\n.glyphicon-briefcase:before {\n content: \"\\e139\";\n}\n.glyphicon-fullscreen:before {\n content: \"\\e140\";\n}\n.glyphicon-dashboard:before {\n content: \"\\e141\";\n}\n.glyphicon-paperclip:before {\n content: \"\\e142\";\n}\n.glyphicon-heart-empty:before {\n content: \"\\e143\";\n}\n.glyphicon-link:before {\n content: \"\\e144\";\n}\n.glyphicon-phone:before {\n content: \"\\e145\";\n}\n.glyphicon-pushpin:before {\n content: \"\\e146\";\n}\n.glyphicon-usd:before {\n content: \"\\e148\";\n}\n.glyphicon-gbp:before {\n content: \"\\e149\";\n}\n.glyphicon-sort:before {\n content: \"\\e150\";\n}\n.glyphicon-sort-by-alphabet:before {\n content: \"\\e151\";\n}\n.glyphicon-sort-by-alphabet-alt:before {\n content: \"\\e152\";\n}\n.glyphicon-sort-by-order:before {\n content: \"\\e153\";\n}\n.glyphicon-sort-by-order-alt:before {\n content: \"\\e154\";\n}\n.glyphicon-sort-by-attributes:before {\n content: \"\\e155\";\n}\n.glyphicon-sort-by-attributes-alt:before {\n content: \"\\e156\";\n}\n.glyphicon-unchecked:before {\n content: \"\\e157\";\n}\n.glyphicon-expand:before {\n content: \"\\e158\";\n}\n.glyphicon-collapse-down:before {\n content: \"\\e159\";\n}\n.glyphicon-collapse-up:before {\n content: \"\\e160\";\n}\n.glyphicon-log-in:before {\n content: \"\\e161\";\n}\n.glyphicon-flash:before {\n content: \"\\e162\";\n}\n.glyphicon-log-out:before {\n content: \"\\e163\";\n}\n.glyphicon-new-window:before {\n content: \"\\e164\";\n}\n.glyphicon-record:before {\n content: \"\\e165\";\n}\n.glyphicon-save:before {\n content: \"\\e166\";\n}\n.glyphicon-open:before {\n content: \"\\e167\";\n}\n.glyphicon-saved:before {\n content: \"\\e168\";\n}\n.glyphicon-import:before {\n content: \"\\e169\";\n}\n.glyphicon-export:before {\n content: \"\\e170\";\n}\n.glyphicon-send:before {\n content: \"\\e171\";\n}\n.glyphicon-floppy-disk:before {\n content: \"\\e172\";\n}\n.glyphicon-floppy-saved:before {\n content: \"\\e173\";\n}\n.glyphicon-floppy-remove:before {\n content: \"\\e174\";\n}\n.glyphicon-floppy-save:before {\n content: \"\\e175\";\n}\n.glyphicon-floppy-open:before {\n content: \"\\e176\";\n}\n.glyphicon-credit-card:before {\n content: \"\\e177\";\n}\n.glyphicon-transfer:before {\n content: \"\\e178\";\n}\n.glyphicon-cutlery:before {\n content: \"\\e179\";\n}\n.glyphicon-header:before {\n content: \"\\e180\";\n}\n.glyphicon-compressed:before {\n content: \"\\e181\";\n}\n.glyphicon-earphone:before {\n content: \"\\e182\";\n}\n.glyphicon-phone-alt:before {\n content: \"\\e183\";\n}\n.glyphicon-tower:before {\n content: \"\\e184\";\n}\n.glyphicon-stats:before {\n content: \"\\e185\";\n}\n.glyphicon-sd-video:before {\n content: \"\\e186\";\n}\n.glyphicon-hd-video:before {\n content: \"\\e187\";\n}\n.glyphicon-subtitles:before {\n content: \"\\e188\";\n}\n.glyphicon-sound-stereo:before {\n content: \"\\e189\";\n}\n.glyphicon-sound-dolby:before {\n content: \"\\e190\";\n}\n.glyphicon-sound-5-1:before {\n content: \"\\e191\";\n}\n.glyphicon-sound-6-1:before {\n content: \"\\e192\";\n}\n.glyphicon-sound-7-1:before {\n content: \"\\e193\";\n}\n.glyphicon-copyright-mark:before {\n content: \"\\e194\";\n}\n.glyphicon-registration-mark:before {\n content: \"\\e195\";\n}\n.glyphicon-cloud-download:before {\n content: \"\\e197\";\n}\n.glyphicon-cloud-upload:before {\n content: \"\\e198\";\n}\n.glyphicon-tree-conifer:before {\n content: \"\\e199\";\n}\n.glyphicon-tree-deciduous:before {\n content: \"\\e200\";\n}\n.glyphicon-cd:before {\n content: \"\\e201\";\n}\n.glyphicon-save-file:before {\n content: \"\\e202\";\n}\n.glyphicon-open-file:before {\n content: \"\\e203\";\n}\n.glyphicon-level-up:before {\n content: \"\\e204\";\n}\n.glyphicon-copy:before {\n content: \"\\e205\";\n}\n.glyphicon-paste:before {\n content: \"\\e206\";\n}\n.glyphicon-alert:before {\n content: \"\\e209\";\n}\n.glyphicon-equalizer:before {\n content: \"\\e210\";\n}\n.glyphicon-king:before {\n content: \"\\e211\";\n}\n.glyphicon-queen:before {\n content: \"\\e212\";\n}\n.glyphicon-pawn:before {\n content: \"\\e213\";\n}\n.glyphicon-bishop:before {\n content: \"\\e214\";\n}\n.glyphicon-knight:before {\n content: \"\\e215\";\n}\n.glyphicon-baby-formula:before {\n content: \"\\e216\";\n}\n.glyphicon-tent:before {\n content: \"\\26fa\";\n}\n.glyphicon-blackboard:before {\n content: \"\\e218\";\n}\n.glyphicon-bed:before {\n content: \"\\e219\";\n}\n.glyphicon-apple:before {\n content: \"\\f8ff\";\n}\n.glyphicon-erase:before {\n content: \"\\e221\";\n}\n.glyphicon-hourglass:before {\n content: \"\\231b\";\n}\n.glyphicon-lamp:before {\n content: \"\\e223\";\n}\n.glyphicon-duplicate:before {\n content: \"\\e224\";\n}\n.glyphicon-piggy-bank:before {\n content: \"\\e225\";\n}\n.glyphicon-scissors:before {\n content: \"\\e226\";\n}\n.glyphicon-bitcoin:before {\n content: \"\\e227\";\n}\n.glyphicon-btc:before {\n content: \"\\e227\";\n}\n.glyphicon-xbt:before {\n content: \"\\e227\";\n}\n.glyphicon-yen:before {\n content: \"\\00a5\";\n}\n.glyphicon-jpy:before {\n content: \"\\00a5\";\n}\n.glyphicon-ruble:before {\n content: \"\\20bd\";\n}\n.glyphicon-rub:before {\n content: \"\\20bd\";\n}\n.glyphicon-scale:before {\n content: \"\\e230\";\n}\n.glyphicon-ice-lolly:before {\n content: \"\\e231\";\n}\n.glyphicon-ice-lolly-tasted:before {\n content: \"\\e232\";\n}\n.glyphicon-education:before {\n content: \"\\e233\";\n}\n.glyphicon-option-horizontal:before {\n content: \"\\e234\";\n}\n.glyphicon-option-vertical:before {\n content: \"\\e235\";\n}\n.glyphicon-menu-hamburger:before {\n content: \"\\e236\";\n}\n.glyphicon-modal-window:before {\n content: \"\\e237\";\n}\n.glyphicon-oil:before {\n content: \"\\e238\";\n}\n.glyphicon-grain:before {\n content: \"\\e239\";\n}\n.glyphicon-sunglasses:before {\n content: \"\\e240\";\n}\n.glyphicon-text-size:before {\n content: \"\\e241\";\n}\n.glyphicon-text-color:before {\n content: \"\\e242\";\n}\n.glyphicon-text-background:before {\n content: \"\\e243\";\n}\n.glyphicon-object-align-top:before {\n content: \"\\e244\";\n}\n.glyphicon-object-align-bottom:before {\n content: \"\\e245\";\n}\n.glyphicon-object-align-horizontal:before {\n content: \"\\e246\";\n}\n.glyphicon-object-align-left:before {\n content: \"\\e247\";\n}\n.glyphicon-object-align-vertical:before {\n content: \"\\e248\";\n}\n.glyphicon-object-align-right:before {\n content: \"\\e249\";\n}\n.glyphicon-triangle-right:before {\n content: \"\\e250\";\n}\n.glyphicon-triangle-left:before {\n content: \"\\e251\";\n}\n.glyphicon-triangle-bottom:before {\n content: \"\\e252\";\n}\n.glyphicon-triangle-top:before {\n content: \"\\e253\";\n}\n.glyphicon-console:before {\n content: \"\\e254\";\n}\n.glyphicon-superscript:before {\n content: \"\\e255\";\n}\n.glyphicon-subscript:before {\n content: \"\\e256\";\n}\n.glyphicon-menu-left:before {\n content: \"\\e257\";\n}\n.glyphicon-menu-right:before {\n content: \"\\e258\";\n}\n.glyphicon-menu-down:before {\n content: \"\\e259\";\n}\n.glyphicon-menu-up:before {\n content: \"\\e260\";\n}\n* {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\n*:before,\n*:after {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\nhtml {\n font-size: 10px;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\nbody {\n font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n font-size: 14px;\n line-height: 1.42857143;\n color: #333333;\n background-color: #fff;\n}\ninput,\nbutton,\nselect,\ntextarea {\n font-family: inherit;\n font-size: inherit;\n line-height: inherit;\n}\na {\n color: #337ab7;\n text-decoration: none;\n}\na:hover,\na:focus {\n color: #23527c;\n text-decoration: underline;\n}\na:focus {\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: -2px;\n}\nfigure {\n margin: 0;\n}\nimg {\n vertical-align: middle;\n}\n.img-responsive,\n.thumbnail > img,\n.thumbnail a > img,\n.carousel-inner > .item > img,\n.carousel-inner > .item > a > img {\n display: block;\n max-width: 100%;\n height: auto;\n}\n.img-rounded {\n border-radius: 6px;\n}\n.img-thumbnail {\n padding: 4px;\n line-height: 1.42857143;\n background-color: #fff;\n border: 1px solid #ddd;\n border-radius: 4px;\n -webkit-transition: all 0.2s ease-in-out;\n -o-transition: all 0.2s ease-in-out;\n transition: all 0.2s ease-in-out;\n display: inline-block;\n max-width: 100%;\n height: auto;\n}\n.img-circle {\n border-radius: 50%;\n}\nhr {\n margin-top: 20px;\n margin-bottom: 20px;\n border: 0;\n border-top: 1px solid #eeeeee;\n}\n.sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n border: 0;\n}\n.sr-only-focusable:active,\n.sr-only-focusable:focus {\n position: static;\n width: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n clip: auto;\n}\n[role=\"button\"] {\n cursor: pointer;\n}\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\n.h1,\n.h2,\n.h3,\n.h4,\n.h5,\n.h6 {\n font-family: inherit;\n font-weight: 500;\n line-height: 1.1;\n color: inherit;\n}\nh1 small,\nh2 small,\nh3 small,\nh4 small,\nh5 small,\nh6 small,\n.h1 small,\n.h2 small,\n.h3 small,\n.h4 small,\n.h5 small,\n.h6 small,\nh1 .small,\nh2 .small,\nh3 .small,\nh4 .small,\nh5 .small,\nh6 .small,\n.h1 .small,\n.h2 .small,\n.h3 .small,\n.h4 .small,\n.h5 .small,\n.h6 .small {\n font-weight: normal;\n line-height: 1;\n color: #777777;\n}\nh1,\n.h1,\nh2,\n.h2,\nh3,\n.h3 {\n margin-top: 20px;\n margin-bottom: 10px;\n}\nh1 small,\n.h1 small,\nh2 small,\n.h2 small,\nh3 small,\n.h3 small,\nh1 .small,\n.h1 .small,\nh2 .small,\n.h2 .small,\nh3 .small,\n.h3 .small {\n font-size: 65%;\n}\nh4,\n.h4,\nh5,\n.h5,\nh6,\n.h6 {\n margin-top: 10px;\n margin-bottom: 10px;\n}\nh4 small,\n.h4 small,\nh5 small,\n.h5 small,\nh6 small,\n.h6 small,\nh4 .small,\n.h4 .small,\nh5 .small,\n.h5 .small,\nh6 .small,\n.h6 .small {\n font-size: 75%;\n}\nh1,\n.h1 {\n font-size: 36px;\n}\nh2,\n.h2 {\n font-size: 30px;\n}\nh3,\n.h3 {\n font-size: 24px;\n}\nh4,\n.h4 {\n font-size: 18px;\n}\nh5,\n.h5 {\n font-size: 14px;\n}\nh6,\n.h6 {\n font-size: 12px;\n}\np {\n margin: 0 0 10px;\n}\n.lead {\n margin-bottom: 20px;\n font-size: 16px;\n font-weight: 300;\n line-height: 1.4;\n}\n@media (min-width: 768px) {\n .lead {\n font-size: 21px;\n }\n}\nsmall,\n.small {\n font-size: 85%;\n}\nmark,\n.mark {\n background-color: #fcf8e3;\n padding: .2em;\n}\n.text-left {\n text-align: left;\n}\n.text-right {\n text-align: right;\n}\n.text-center {\n text-align: center;\n}\n.text-justify {\n text-align: justify;\n}\n.text-nowrap {\n white-space: nowrap;\n}\n.text-lowercase {\n text-transform: lowercase;\n}\n.text-uppercase {\n text-transform: uppercase;\n}\n.text-capitalize {\n text-transform: capitalize;\n}\n.text-muted {\n color: #777777;\n}\n.text-primary {\n color: #337ab7;\n}\na.text-primary:hover,\na.text-primary:focus {\n color: #286090;\n}\n.text-success {\n color: #3c763d;\n}\na.text-success:hover,\na.text-success:focus {\n color: #2b542c;\n}\n.text-info {\n color: #31708f;\n}\na.text-info:hover,\na.text-info:focus {\n color: #245269;\n}\n.text-warning {\n color: #8a6d3b;\n}\na.text-warning:hover,\na.text-warning:focus {\n color: #66512c;\n}\n.text-danger {\n color: #a94442;\n}\na.text-danger:hover,\na.text-danger:focus {\n color: #843534;\n}\n.bg-primary {\n color: #fff;\n background-color: #337ab7;\n}\na.bg-primary:hover,\na.bg-primary:focus {\n background-color: #286090;\n}\n.bg-success {\n background-color: #dff0d8;\n}\na.bg-success:hover,\na.bg-success:focus {\n background-color: #c1e2b3;\n}\n.bg-info {\n background-color: #d9edf7;\n}\na.bg-info:hover,\na.bg-info:focus {\n background-color: #afd9ee;\n}\n.bg-warning {\n background-color: #fcf8e3;\n}\na.bg-warning:hover,\na.bg-warning:focus {\n background-color: #f7ecb5;\n}\n.bg-danger {\n background-color: #f2dede;\n}\na.bg-danger:hover,\na.bg-danger:focus {\n background-color: #e4b9b9;\n}\n.page-header {\n padding-bottom: 9px;\n margin: 40px 0 20px;\n border-bottom: 1px solid #eeeeee;\n}\nul,\nol {\n margin-top: 0;\n margin-bottom: 10px;\n}\nul ul,\nol ul,\nul ol,\nol ol {\n margin-bottom: 0;\n}\n.list-unstyled {\n padding-left: 0;\n list-style: none;\n}\n.list-inline {\n padding-left: 0;\n list-style: none;\n margin-left: -5px;\n}\n.list-inline > li {\n display: inline-block;\n padding-left: 5px;\n padding-right: 5px;\n}\ndl {\n margin-top: 0;\n margin-bottom: 20px;\n}\ndt,\ndd {\n line-height: 1.42857143;\n}\ndt {\n font-weight: bold;\n}\ndd {\n margin-left: 0;\n}\n@media (min-width: 768px) {\n .dl-horizontal dt {\n float: left;\n width: 160px;\n clear: left;\n text-align: right;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .dl-horizontal dd {\n margin-left: 180px;\n }\n}\nabbr[title],\nabbr[data-original-title] {\n cursor: help;\n border-bottom: 1px dotted #777777;\n}\n.initialism {\n font-size: 90%;\n text-transform: uppercase;\n}\nblockquote {\n padding: 10px 20px;\n margin: 0 0 20px;\n font-size: 17.5px;\n border-left: 5px solid #eeeeee;\n}\nblockquote p:last-child,\nblockquote ul:last-child,\nblockquote ol:last-child {\n margin-bottom: 0;\n}\nblockquote footer,\nblockquote small,\nblockquote .small {\n display: block;\n font-size: 80%;\n line-height: 1.42857143;\n color: #777777;\n}\nblockquote footer:before,\nblockquote small:before,\nblockquote .small:before {\n content: '\\2014 \\00A0';\n}\n.blockquote-reverse,\nblockquote.pull-right {\n padding-right: 15px;\n padding-left: 0;\n border-right: 5px solid #eeeeee;\n border-left: 0;\n text-align: right;\n}\n.blockquote-reverse footer:before,\nblockquote.pull-right footer:before,\n.blockquote-reverse small:before,\nblockquote.pull-right small:before,\n.blockquote-reverse .small:before,\nblockquote.pull-right .small:before {\n content: '';\n}\n.blockquote-reverse footer:after,\nblockquote.pull-right footer:after,\n.blockquote-reverse small:after,\nblockquote.pull-right small:after,\n.blockquote-reverse .small:after,\nblockquote.pull-right .small:after {\n content: '\\00A0 \\2014';\n}\naddress {\n margin-bottom: 20px;\n font-style: normal;\n line-height: 1.42857143;\n}\ncode,\nkbd,\npre,\nsamp {\n font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace;\n}\ncode {\n padding: 2px 4px;\n font-size: 90%;\n color: #c7254e;\n background-color: #f9f2f4;\n border-radius: 4px;\n}\nkbd {\n padding: 2px 4px;\n font-size: 90%;\n color: #fff;\n background-color: #333;\n border-radius: 3px;\n box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25);\n}\nkbd kbd {\n padding: 0;\n font-size: 100%;\n font-weight: bold;\n box-shadow: none;\n}\npre {\n display: block;\n padding: 9.5px;\n margin: 0 0 10px;\n font-size: 13px;\n line-height: 1.42857143;\n word-break: break-all;\n word-wrap: break-word;\n color: #333333;\n background-color: #f5f5f5;\n border: 1px solid #ccc;\n border-radius: 4px;\n}\npre code {\n padding: 0;\n font-size: inherit;\n color: inherit;\n white-space: pre-wrap;\n background-color: transparent;\n border-radius: 0;\n}\n.pre-scrollable {\n max-height: 340px;\n overflow-y: scroll;\n}\n.container {\n margin-right: auto;\n margin-left: auto;\n padding-left: 15px;\n padding-right: 15px;\n}\n@media (min-width: 768px) {\n .container {\n width: 750px;\n }\n}\n@media (min-width: 992px) {\n .container {\n width: 970px;\n }\n}\n@media (min-width: 1200px) {\n .container {\n width: 1170px;\n }\n}\n.container-fluid {\n margin-right: auto;\n margin-left: auto;\n padding-left: 15px;\n padding-right: 15px;\n}\n.row {\n margin-left: -15px;\n margin-right: -15px;\n}\n.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {\n position: relative;\n min-height: 1px;\n padding-left: 15px;\n padding-right: 15px;\n}\n.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 {\n float: left;\n}\n.col-xs-12 {\n width: 100%;\n}\n.col-xs-11 {\n width: 91.66666667%;\n}\n.col-xs-10 {\n width: 83.33333333%;\n}\n.col-xs-9 {\n width: 75%;\n}\n.col-xs-8 {\n width: 66.66666667%;\n}\n.col-xs-7 {\n width: 58.33333333%;\n}\n.col-xs-6 {\n width: 50%;\n}\n.col-xs-5 {\n width: 41.66666667%;\n}\n.col-xs-4 {\n width: 33.33333333%;\n}\n.col-xs-3 {\n width: 25%;\n}\n.col-xs-2 {\n width: 16.66666667%;\n}\n.col-xs-1 {\n width: 8.33333333%;\n}\n.col-xs-pull-12 {\n right: 100%;\n}\n.col-xs-pull-11 {\n right: 91.66666667%;\n}\n.col-xs-pull-10 {\n right: 83.33333333%;\n}\n.col-xs-pull-9 {\n right: 75%;\n}\n.col-xs-pull-8 {\n right: 66.66666667%;\n}\n.col-xs-pull-7 {\n right: 58.33333333%;\n}\n.col-xs-pull-6 {\n right: 50%;\n}\n.col-xs-pull-5 {\n right: 41.66666667%;\n}\n.col-xs-pull-4 {\n right: 33.33333333%;\n}\n.col-xs-pull-3 {\n right: 25%;\n}\n.col-xs-pull-2 {\n right: 16.66666667%;\n}\n.col-xs-pull-1 {\n right: 8.33333333%;\n}\n.col-xs-pull-0 {\n right: auto;\n}\n.col-xs-push-12 {\n left: 100%;\n}\n.col-xs-push-11 {\n left: 91.66666667%;\n}\n.col-xs-push-10 {\n left: 83.33333333%;\n}\n.col-xs-push-9 {\n left: 75%;\n}\n.col-xs-push-8 {\n left: 66.66666667%;\n}\n.col-xs-push-7 {\n left: 58.33333333%;\n}\n.col-xs-push-6 {\n left: 50%;\n}\n.col-xs-push-5 {\n left: 41.66666667%;\n}\n.col-xs-push-4 {\n left: 33.33333333%;\n}\n.col-xs-push-3 {\n left: 25%;\n}\n.col-xs-push-2 {\n left: 16.66666667%;\n}\n.col-xs-push-1 {\n left: 8.33333333%;\n}\n.col-xs-push-0 {\n left: auto;\n}\n.col-xs-offset-12 {\n margin-left: 100%;\n}\n.col-xs-offset-11 {\n margin-left: 91.66666667%;\n}\n.col-xs-offset-10 {\n margin-left: 83.33333333%;\n}\n.col-xs-offset-9 {\n margin-left: 75%;\n}\n.col-xs-offset-8 {\n margin-left: 66.66666667%;\n}\n.col-xs-offset-7 {\n margin-left: 58.33333333%;\n}\n.col-xs-offset-6 {\n margin-left: 50%;\n}\n.col-xs-offset-5 {\n margin-left: 41.66666667%;\n}\n.col-xs-offset-4 {\n margin-left: 33.33333333%;\n}\n.col-xs-offset-3 {\n margin-left: 25%;\n}\n.col-xs-offset-2 {\n margin-left: 16.66666667%;\n}\n.col-xs-offset-1 {\n margin-left: 8.33333333%;\n}\n.col-xs-offset-0 {\n margin-left: 0%;\n}\n@media (min-width: 768px) {\n .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {\n float: left;\n }\n .col-sm-12 {\n width: 100%;\n }\n .col-sm-11 {\n width: 91.66666667%;\n }\n .col-sm-10 {\n width: 83.33333333%;\n }\n .col-sm-9 {\n width: 75%;\n }\n .col-sm-8 {\n width: 66.66666667%;\n }\n .col-sm-7 {\n width: 58.33333333%;\n }\n .col-sm-6 {\n width: 50%;\n }\n .col-sm-5 {\n width: 41.66666667%;\n }\n .col-sm-4 {\n width: 33.33333333%;\n }\n .col-sm-3 {\n width: 25%;\n }\n .col-sm-2 {\n width: 16.66666667%;\n }\n .col-sm-1 {\n width: 8.33333333%;\n }\n .col-sm-pull-12 {\n right: 100%;\n }\n .col-sm-pull-11 {\n right: 91.66666667%;\n }\n .col-sm-pull-10 {\n right: 83.33333333%;\n }\n .col-sm-pull-9 {\n right: 75%;\n }\n .col-sm-pull-8 {\n right: 66.66666667%;\n }\n .col-sm-pull-7 {\n right: 58.33333333%;\n }\n .col-sm-pull-6 {\n right: 50%;\n }\n .col-sm-pull-5 {\n right: 41.66666667%;\n }\n .col-sm-pull-4 {\n right: 33.33333333%;\n }\n .col-sm-pull-3 {\n right: 25%;\n }\n .col-sm-pull-2 {\n right: 16.66666667%;\n }\n .col-sm-pull-1 {\n right: 8.33333333%;\n }\n .col-sm-pull-0 {\n right: auto;\n }\n .col-sm-push-12 {\n left: 100%;\n }\n .col-sm-push-11 {\n left: 91.66666667%;\n }\n .col-sm-push-10 {\n left: 83.33333333%;\n }\n .col-sm-push-9 {\n left: 75%;\n }\n .col-sm-push-8 {\n left: 66.66666667%;\n }\n .col-sm-push-7 {\n left: 58.33333333%;\n }\n .col-sm-push-6 {\n left: 50%;\n }\n .col-sm-push-5 {\n left: 41.66666667%;\n }\n .col-sm-push-4 {\n left: 33.33333333%;\n }\n .col-sm-push-3 {\n left: 25%;\n }\n .col-sm-push-2 {\n left: 16.66666667%;\n }\n .col-sm-push-1 {\n left: 8.33333333%;\n }\n .col-sm-push-0 {\n left: auto;\n }\n .col-sm-offset-12 {\n margin-left: 100%;\n }\n .col-sm-offset-11 {\n margin-left: 91.66666667%;\n }\n .col-sm-offset-10 {\n margin-left: 83.33333333%;\n }\n .col-sm-offset-9 {\n margin-left: 75%;\n }\n .col-sm-offset-8 {\n margin-left: 66.66666667%;\n }\n .col-sm-offset-7 {\n margin-left: 58.33333333%;\n }\n .col-sm-offset-6 {\n margin-left: 50%;\n }\n .col-sm-offset-5 {\n margin-left: 41.66666667%;\n }\n .col-sm-offset-4 {\n margin-left: 33.33333333%;\n }\n .col-sm-offset-3 {\n margin-left: 25%;\n }\n .col-sm-offset-2 {\n margin-left: 16.66666667%;\n }\n .col-sm-offset-1 {\n margin-left: 8.33333333%;\n }\n .col-sm-offset-0 {\n margin-left: 0%;\n }\n}\n@media (min-width: 992px) {\n .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {\n float: left;\n }\n .col-md-12 {\n width: 100%;\n }\n .col-md-11 {\n width: 91.66666667%;\n }\n .col-md-10 {\n width: 83.33333333%;\n }\n .col-md-9 {\n width: 75%;\n }\n .col-md-8 {\n width: 66.66666667%;\n }\n .col-md-7 {\n width: 58.33333333%;\n }\n .col-md-6 {\n width: 50%;\n }\n .col-md-5 {\n width: 41.66666667%;\n }\n .col-md-4 {\n width: 33.33333333%;\n }\n .col-md-3 {\n width: 25%;\n }\n .col-md-2 {\n width: 16.66666667%;\n }\n .col-md-1 {\n width: 8.33333333%;\n }\n .col-md-pull-12 {\n right: 100%;\n }\n .col-md-pull-11 {\n right: 91.66666667%;\n }\n .col-md-pull-10 {\n right: 83.33333333%;\n }\n .col-md-pull-9 {\n right: 75%;\n }\n .col-md-pull-8 {\n right: 66.66666667%;\n }\n .col-md-pull-7 {\n right: 58.33333333%;\n }\n .col-md-pull-6 {\n right: 50%;\n }\n .col-md-pull-5 {\n right: 41.66666667%;\n }\n .col-md-pull-4 {\n right: 33.33333333%;\n }\n .col-md-pull-3 {\n right: 25%;\n }\n .col-md-pull-2 {\n right: 16.66666667%;\n }\n .col-md-pull-1 {\n right: 8.33333333%;\n }\n .col-md-pull-0 {\n right: auto;\n }\n .col-md-push-12 {\n left: 100%;\n }\n .col-md-push-11 {\n left: 91.66666667%;\n }\n .col-md-push-10 {\n left: 83.33333333%;\n }\n .col-md-push-9 {\n left: 75%;\n }\n .col-md-push-8 {\n left: 66.66666667%;\n }\n .col-md-push-7 {\n left: 58.33333333%;\n }\n .col-md-push-6 {\n left: 50%;\n }\n .col-md-push-5 {\n left: 41.66666667%;\n }\n .col-md-push-4 {\n left: 33.33333333%;\n }\n .col-md-push-3 {\n left: 25%;\n }\n .col-md-push-2 {\n left: 16.66666667%;\n }\n .col-md-push-1 {\n left: 8.33333333%;\n }\n .col-md-push-0 {\n left: auto;\n }\n .col-md-offset-12 {\n margin-left: 100%;\n }\n .col-md-offset-11 {\n margin-left: 91.66666667%;\n }\n .col-md-offset-10 {\n margin-left: 83.33333333%;\n }\n .col-md-offset-9 {\n margin-left: 75%;\n }\n .col-md-offset-8 {\n margin-left: 66.66666667%;\n }\n .col-md-offset-7 {\n margin-left: 58.33333333%;\n }\n .col-md-offset-6 {\n margin-left: 50%;\n }\n .col-md-offset-5 {\n margin-left: 41.66666667%;\n }\n .col-md-offset-4 {\n margin-left: 33.33333333%;\n }\n .col-md-offset-3 {\n margin-left: 25%;\n }\n .col-md-offset-2 {\n margin-left: 16.66666667%;\n }\n .col-md-offset-1 {\n margin-left: 8.33333333%;\n }\n .col-md-offset-0 {\n margin-left: 0%;\n }\n}\n@media (min-width: 1200px) {\n .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {\n float: left;\n }\n .col-lg-12 {\n width: 100%;\n }\n .col-lg-11 {\n width: 91.66666667%;\n }\n .col-lg-10 {\n width: 83.33333333%;\n }\n .col-lg-9 {\n width: 75%;\n }\n .col-lg-8 {\n width: 66.66666667%;\n }\n .col-lg-7 {\n width: 58.33333333%;\n }\n .col-lg-6 {\n width: 50%;\n }\n .col-lg-5 {\n width: 41.66666667%;\n }\n .col-lg-4 {\n width: 33.33333333%;\n }\n .col-lg-3 {\n width: 25%;\n }\n .col-lg-2 {\n width: 16.66666667%;\n }\n .col-lg-1 {\n width: 8.33333333%;\n }\n .col-lg-pull-12 {\n right: 100%;\n }\n .col-lg-pull-11 {\n right: 91.66666667%;\n }\n .col-lg-pull-10 {\n right: 83.33333333%;\n }\n .col-lg-pull-9 {\n right: 75%;\n }\n .col-lg-pull-8 {\n right: 66.66666667%;\n }\n .col-lg-pull-7 {\n right: 58.33333333%;\n }\n .col-lg-pull-6 {\n right: 50%;\n }\n .col-lg-pull-5 {\n right: 41.66666667%;\n }\n .col-lg-pull-4 {\n right: 33.33333333%;\n }\n .col-lg-pull-3 {\n right: 25%;\n }\n .col-lg-pull-2 {\n right: 16.66666667%;\n }\n .col-lg-pull-1 {\n right: 8.33333333%;\n }\n .col-lg-pull-0 {\n right: auto;\n }\n .col-lg-push-12 {\n left: 100%;\n }\n .col-lg-push-11 {\n left: 91.66666667%;\n }\n .col-lg-push-10 {\n left: 83.33333333%;\n }\n .col-lg-push-9 {\n left: 75%;\n }\n .col-lg-push-8 {\n left: 66.66666667%;\n }\n .col-lg-push-7 {\n left: 58.33333333%;\n }\n .col-lg-push-6 {\n left: 50%;\n }\n .col-lg-push-5 {\n left: 41.66666667%;\n }\n .col-lg-push-4 {\n left: 33.33333333%;\n }\n .col-lg-push-3 {\n left: 25%;\n }\n .col-lg-push-2 {\n left: 16.66666667%;\n }\n .col-lg-push-1 {\n left: 8.33333333%;\n }\n .col-lg-push-0 {\n left: auto;\n }\n .col-lg-offset-12 {\n margin-left: 100%;\n }\n .col-lg-offset-11 {\n margin-left: 91.66666667%;\n }\n .col-lg-offset-10 {\n margin-left: 83.33333333%;\n }\n .col-lg-offset-9 {\n margin-left: 75%;\n }\n .col-lg-offset-8 {\n margin-left: 66.66666667%;\n }\n .col-lg-offset-7 {\n margin-left: 58.33333333%;\n }\n .col-lg-offset-6 {\n margin-left: 50%;\n }\n .col-lg-offset-5 {\n margin-left: 41.66666667%;\n }\n .col-lg-offset-4 {\n margin-left: 33.33333333%;\n }\n .col-lg-offset-3 {\n margin-left: 25%;\n }\n .col-lg-offset-2 {\n margin-left: 16.66666667%;\n }\n .col-lg-offset-1 {\n margin-left: 8.33333333%;\n }\n .col-lg-offset-0 {\n margin-left: 0%;\n }\n}\ntable {\n background-color: transparent;\n}\ncaption {\n padding-top: 8px;\n padding-bottom: 8px;\n color: #777777;\n text-align: left;\n}\nth {\n text-align: left;\n}\n.table {\n width: 100%;\n max-width: 100%;\n margin-bottom: 20px;\n}\n.table > thead > tr > th,\n.table > tbody > tr > th,\n.table > tfoot > tr > th,\n.table > thead > tr > td,\n.table > tbody > tr > td,\n.table > tfoot > tr > td {\n padding: 8px;\n line-height: 1.42857143;\n vertical-align: top;\n border-top: 1px solid #ddd;\n}\n.table > thead > tr > th {\n vertical-align: bottom;\n border-bottom: 2px solid #ddd;\n}\n.table > caption + thead > tr:first-child > th,\n.table > colgroup + thead > tr:first-child > th,\n.table > thead:first-child > tr:first-child > th,\n.table > caption + thead > tr:first-child > td,\n.table > colgroup + thead > tr:first-child > td,\n.table > thead:first-child > tr:first-child > td {\n border-top: 0;\n}\n.table > tbody + tbody {\n border-top: 2px solid #ddd;\n}\n.table .table {\n background-color: #fff;\n}\n.table-condensed > thead > tr > th,\n.table-condensed > tbody > tr > th,\n.table-condensed > tfoot > tr > th,\n.table-condensed > thead > tr > td,\n.table-condensed > tbody > tr > td,\n.table-condensed > tfoot > tr > td {\n padding: 5px;\n}\n.table-bordered {\n border: 1px solid #ddd;\n}\n.table-bordered > thead > tr > th,\n.table-bordered > tbody > tr > th,\n.table-bordered > tfoot > tr > th,\n.table-bordered > thead > tr > td,\n.table-bordered > tbody > tr > td,\n.table-bordered > tfoot > tr > td {\n border: 1px solid #ddd;\n}\n.table-bordered > thead > tr > th,\n.table-bordered > thead > tr > td {\n border-bottom-width: 2px;\n}\n.table-striped > tbody > tr:nth-of-type(odd) {\n background-color: #f9f9f9;\n}\n.table-hover > tbody > tr:hover {\n background-color: #f5f5f5;\n}\ntable col[class*=\"col-\"] {\n position: static;\n float: none;\n display: table-column;\n}\ntable td[class*=\"col-\"],\ntable th[class*=\"col-\"] {\n position: static;\n float: none;\n display: table-cell;\n}\n.table > thead > tr > td.active,\n.table > tbody > tr > td.active,\n.table > tfoot > tr > td.active,\n.table > thead > tr > th.active,\n.table > tbody > tr > th.active,\n.table > tfoot > tr > th.active,\n.table > thead > tr.active > td,\n.table > tbody > tr.active > td,\n.table > tfoot > tr.active > td,\n.table > thead > tr.active > th,\n.table > tbody > tr.active > th,\n.table > tfoot > tr.active > th {\n background-color: #f5f5f5;\n}\n.table-hover > tbody > tr > td.active:hover,\n.table-hover > tbody > tr > th.active:hover,\n.table-hover > tbody > tr.active:hover > td,\n.table-hover > tbody > tr:hover > .active,\n.table-hover > tbody > tr.active:hover > th {\n background-color: #e8e8e8;\n}\n.table > thead > tr > td.success,\n.table > tbody > tr > td.success,\n.table > tfoot > tr > td.success,\n.table > thead > tr > th.success,\n.table > tbody > tr > th.success,\n.table > tfoot > tr > th.success,\n.table > thead > tr.success > td,\n.table > tbody > tr.success > td,\n.table > tfoot > tr.success > td,\n.table > thead > tr.success > th,\n.table > tbody > tr.success > th,\n.table > tfoot > tr.success > th {\n background-color: #dff0d8;\n}\n.table-hover > tbody > tr > td.success:hover,\n.table-hover > tbody > tr > th.success:hover,\n.table-hover > tbody > tr.success:hover > td,\n.table-hover > tbody > tr:hover > .success,\n.table-hover > tbody > tr.success:hover > th {\n background-color: #d0e9c6;\n}\n.table > thead > tr > td.info,\n.table > tbody > tr > td.info,\n.table > tfoot > tr > td.info,\n.table > thead > tr > th.info,\n.table > tbody > tr > th.info,\n.table > tfoot > tr > th.info,\n.table > thead > tr.info > td,\n.table > tbody > tr.info > td,\n.table > tfoot > tr.info > td,\n.table > thead > tr.info > th,\n.table > tbody > tr.info > th,\n.table > tfoot > tr.info > th {\n background-color: #d9edf7;\n}\n.table-hover > tbody > tr > td.info:hover,\n.table-hover > tbody > tr > th.info:hover,\n.table-hover > tbody > tr.info:hover > td,\n.table-hover > tbody > tr:hover > .info,\n.table-hover > tbody > tr.info:hover > th {\n background-color: #c4e3f3;\n}\n.table > thead > tr > td.warning,\n.table > tbody > tr > td.warning,\n.table > tfoot > tr > td.warning,\n.table > thead > tr > th.warning,\n.table > tbody > tr > th.warning,\n.table > tfoot > tr > th.warning,\n.table > thead > tr.warning > td,\n.table > tbody > tr.warning > td,\n.table > tfoot > tr.warning > td,\n.table > thead > tr.warning > th,\n.table > tbody > tr.warning > th,\n.table > tfoot > tr.warning > th {\n background-color: #fcf8e3;\n}\n.table-hover > tbody > tr > td.warning:hover,\n.table-hover > tbody > tr > th.warning:hover,\n.table-hover > tbody > tr.warning:hover > td,\n.table-hover > tbody > tr:hover > .warning,\n.table-hover > tbody > tr.warning:hover > th {\n background-color: #faf2cc;\n}\n.table > thead > tr > td.danger,\n.table > tbody > tr > td.danger,\n.table > tfoot > tr > td.danger,\n.table > thead > tr > th.danger,\n.table > tbody > tr > th.danger,\n.table > tfoot > tr > th.danger,\n.table > thead > tr.danger > td,\n.table > tbody > tr.danger > td,\n.table > tfoot > tr.danger > td,\n.table > thead > tr.danger > th,\n.table > tbody > tr.danger > th,\n.table > tfoot > tr.danger > th {\n background-color: #f2dede;\n}\n.table-hover > tbody > tr > td.danger:hover,\n.table-hover > tbody > tr > th.danger:hover,\n.table-hover > tbody > tr.danger:hover > td,\n.table-hover > tbody > tr:hover > .danger,\n.table-hover > tbody > tr.danger:hover > th {\n background-color: #ebcccc;\n}\n.table-responsive {\n overflow-x: auto;\n min-height: 0.01%;\n}\n@media screen and (max-width: 767px) {\n .table-responsive {\n width: 100%;\n margin-bottom: 15px;\n overflow-y: hidden;\n -ms-overflow-style: -ms-autohiding-scrollbar;\n border: 1px solid #ddd;\n }\n .table-responsive > .table {\n margin-bottom: 0;\n }\n .table-responsive > .table > thead > tr > th,\n .table-responsive > .table > tbody > tr > th,\n .table-responsive > .table > tfoot > tr > th,\n .table-responsive > .table > thead > tr > td,\n .table-responsive > .table > tbody > tr > td,\n .table-responsive > .table > tfoot > tr > td {\n white-space: nowrap;\n }\n .table-responsive > .table-bordered {\n border: 0;\n }\n .table-responsive > .table-bordered > thead > tr > th:first-child,\n .table-responsive > .table-bordered > tbody > tr > th:first-child,\n .table-responsive > .table-bordered > tfoot > tr > th:first-child,\n .table-responsive > .table-bordered > thead > tr > td:first-child,\n .table-responsive > .table-bordered > tbody > tr > td:first-child,\n .table-responsive > .table-bordered > tfoot > tr > td:first-child {\n border-left: 0;\n }\n .table-responsive > .table-bordered > thead > tr > th:last-child,\n .table-responsive > .table-bordered > tbody > tr > th:last-child,\n .table-responsive > .table-bordered > tfoot > tr > th:last-child,\n .table-responsive > .table-bordered > thead > tr > td:last-child,\n .table-responsive > .table-bordered > tbody > tr > td:last-child,\n .table-responsive > .table-bordered > tfoot > tr > td:last-child {\n border-right: 0;\n }\n .table-responsive > .table-bordered > tbody > tr:last-child > th,\n .table-responsive > .table-bordered > tfoot > tr:last-child > th,\n .table-responsive > .table-bordered > tbody > tr:last-child > td,\n .table-responsive > .table-bordered > tfoot > tr:last-child > td {\n border-bottom: 0;\n }\n}\nfieldset {\n padding: 0;\n margin: 0;\n border: 0;\n min-width: 0;\n}\nlegend {\n display: block;\n width: 100%;\n padding: 0;\n margin-bottom: 20px;\n font-size: 21px;\n line-height: inherit;\n color: #333333;\n border: 0;\n border-bottom: 1px solid #e5e5e5;\n}\nlabel {\n display: inline-block;\n max-width: 100%;\n margin-bottom: 5px;\n font-weight: bold;\n}\ninput[type=\"search\"] {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\ninput[type=\"radio\"],\ninput[type=\"checkbox\"] {\n margin: 4px 0 0;\n margin-top: 1px \\9;\n line-height: normal;\n}\ninput[type=\"file\"] {\n display: block;\n}\ninput[type=\"range\"] {\n display: block;\n width: 100%;\n}\nselect[multiple],\nselect[size] {\n height: auto;\n}\ninput[type=\"file\"]:focus,\ninput[type=\"radio\"]:focus,\ninput[type=\"checkbox\"]:focus {\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: -2px;\n}\noutput {\n display: block;\n padding-top: 7px;\n font-size: 14px;\n line-height: 1.42857143;\n color: #555555;\n}\n.form-control {\n display: block;\n width: 100%;\n height: 34px;\n padding: 6px 12px;\n font-size: 14px;\n line-height: 1.42857143;\n color: #555555;\n background-color: #fff;\n background-image: none;\n border: 1px solid #ccc;\n border-radius: 4px;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;\n -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;\n transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;\n}\n.form-control:focus {\n border-color: #66afe9;\n outline: 0;\n -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);\n box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);\n}\n.form-control::-moz-placeholder {\n color: #999;\n opacity: 1;\n}\n.form-control:-ms-input-placeholder {\n color: #999;\n}\n.form-control::-webkit-input-placeholder {\n color: #999;\n}\n.form-control::-ms-expand {\n border: 0;\n background-color: transparent;\n}\n.form-control[disabled],\n.form-control[readonly],\nfieldset[disabled] .form-control {\n background-color: #eeeeee;\n opacity: 1;\n}\n.form-control[disabled],\nfieldset[disabled] .form-control {\n cursor: not-allowed;\n}\ntextarea.form-control {\n height: auto;\n}\ninput[type=\"search\"] {\n -webkit-appearance: none;\n}\n@media screen and (-webkit-min-device-pixel-ratio: 0) {\n input[type=\"date\"].form-control,\n input[type=\"time\"].form-control,\n input[type=\"datetime-local\"].form-control,\n input[type=\"month\"].form-control {\n line-height: 34px;\n }\n input[type=\"date\"].input-sm,\n input[type=\"time\"].input-sm,\n input[type=\"datetime-local\"].input-sm,\n input[type=\"month\"].input-sm,\n .input-group-sm input[type=\"date\"],\n .input-group-sm input[type=\"time\"],\n .input-group-sm input[type=\"datetime-local\"],\n .input-group-sm input[type=\"month\"] {\n line-height: 30px;\n }\n input[type=\"date\"].input-lg,\n input[type=\"time\"].input-lg,\n input[type=\"datetime-local\"].input-lg,\n input[type=\"month\"].input-lg,\n .input-group-lg input[type=\"date\"],\n .input-group-lg input[type=\"time\"],\n .input-group-lg input[type=\"datetime-local\"],\n .input-group-lg input[type=\"month\"] {\n line-height: 46px;\n }\n}\n.form-group {\n margin-bottom: 15px;\n}\n.radio,\n.checkbox {\n position: relative;\n display: block;\n margin-top: 10px;\n margin-bottom: 10px;\n}\n.radio label,\n.checkbox label {\n min-height: 20px;\n padding-left: 20px;\n margin-bottom: 0;\n font-weight: normal;\n cursor: pointer;\n}\n.radio input[type=\"radio\"],\n.radio-inline input[type=\"radio\"],\n.checkbox input[type=\"checkbox\"],\n.checkbox-inline input[type=\"checkbox\"] {\n position: absolute;\n margin-left: -20px;\n margin-top: 4px \\9;\n}\n.radio + .radio,\n.checkbox + .checkbox {\n margin-top: -5px;\n}\n.radio-inline,\n.checkbox-inline {\n position: relative;\n display: inline-block;\n padding-left: 20px;\n margin-bottom: 0;\n vertical-align: middle;\n font-weight: normal;\n cursor: pointer;\n}\n.radio-inline + .radio-inline,\n.checkbox-inline + .checkbox-inline {\n margin-top: 0;\n margin-left: 10px;\n}\ninput[type=\"radio\"][disabled],\ninput[type=\"checkbox\"][disabled],\ninput[type=\"radio\"].disabled,\ninput[type=\"checkbox\"].disabled,\nfieldset[disabled] input[type=\"radio\"],\nfieldset[disabled] input[type=\"checkbox\"] {\n cursor: not-allowed;\n}\n.radio-inline.disabled,\n.checkbox-inline.disabled,\nfieldset[disabled] .radio-inline,\nfieldset[disabled] .checkbox-inline {\n cursor: not-allowed;\n}\n.radio.disabled label,\n.checkbox.disabled label,\nfieldset[disabled] .radio label,\nfieldset[disabled] .checkbox label {\n cursor: not-allowed;\n}\n.form-control-static {\n padding-top: 7px;\n padding-bottom: 7px;\n margin-bottom: 0;\n min-height: 34px;\n}\n.form-control-static.input-lg,\n.form-control-static.input-sm {\n padding-left: 0;\n padding-right: 0;\n}\n.input-sm {\n height: 30px;\n padding: 5px 10px;\n font-size: 12px;\n line-height: 1.5;\n border-radius: 3px;\n}\nselect.input-sm {\n height: 30px;\n line-height: 30px;\n}\ntextarea.input-sm,\nselect[multiple].input-sm {\n height: auto;\n}\n.form-group-sm .form-control {\n height: 30px;\n padding: 5px 10px;\n font-size: 12px;\n line-height: 1.5;\n border-radius: 3px;\n}\n.form-group-sm select.form-control {\n height: 30px;\n line-height: 30px;\n}\n.form-group-sm textarea.form-control,\n.form-group-sm select[multiple].form-control {\n height: auto;\n}\n.form-group-sm .form-control-static {\n height: 30px;\n min-height: 32px;\n padding: 6px 10px;\n font-size: 12px;\n line-height: 1.5;\n}\n.input-lg {\n height: 46px;\n padding: 10px 16px;\n font-size: 18px;\n line-height: 1.3333333;\n border-radius: 6px;\n}\nselect.input-lg {\n height: 46px;\n line-height: 46px;\n}\ntextarea.input-lg,\nselect[multiple].input-lg {\n height: auto;\n}\n.form-group-lg .form-control {\n height: 46px;\n padding: 10px 16px;\n font-size: 18px;\n line-height: 1.3333333;\n border-radius: 6px;\n}\n.form-group-lg select.form-control {\n height: 46px;\n line-height: 46px;\n}\n.form-group-lg textarea.form-control,\n.form-group-lg select[multiple].form-control {\n height: auto;\n}\n.form-group-lg .form-control-static {\n height: 46px;\n min-height: 38px;\n padding: 11px 16px;\n font-size: 18px;\n line-height: 1.3333333;\n}\n.has-feedback {\n position: relative;\n}\n.has-feedback .form-control {\n padding-right: 42.5px;\n}\n.form-control-feedback {\n position: absolute;\n top: 0;\n right: 0;\n z-index: 2;\n display: block;\n width: 34px;\n height: 34px;\n line-height: 34px;\n text-align: center;\n pointer-events: none;\n}\n.input-lg + .form-control-feedback,\n.input-group-lg + .form-control-feedback,\n.form-group-lg .form-control + .form-control-feedback {\n width: 46px;\n height: 46px;\n line-height: 46px;\n}\n.input-sm + .form-control-feedback,\n.input-group-sm + .form-control-feedback,\n.form-group-sm .form-control + .form-control-feedback {\n width: 30px;\n height: 30px;\n line-height: 30px;\n}\n.has-success .help-block,\n.has-success .control-label,\n.has-success .radio,\n.has-success .checkbox,\n.has-success .radio-inline,\n.has-success .checkbox-inline,\n.has-success.radio label,\n.has-success.checkbox label,\n.has-success.radio-inline label,\n.has-success.checkbox-inline label {\n color: #3c763d;\n}\n.has-success .form-control {\n border-color: #3c763d;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n}\n.has-success .form-control:focus {\n border-color: #2b542c;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168;\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168;\n}\n.has-success .input-group-addon {\n color: #3c763d;\n border-color: #3c763d;\n background-color: #dff0d8;\n}\n.has-success .form-control-feedback {\n color: #3c763d;\n}\n.has-warning .help-block,\n.has-warning .control-label,\n.has-warning .radio,\n.has-warning .checkbox,\n.has-warning .radio-inline,\n.has-warning .checkbox-inline,\n.has-warning.radio label,\n.has-warning.checkbox label,\n.has-warning.radio-inline label,\n.has-warning.checkbox-inline label {\n color: #8a6d3b;\n}\n.has-warning .form-control {\n border-color: #8a6d3b;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n}\n.has-warning .form-control:focus {\n border-color: #66512c;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b;\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b;\n}\n.has-warning .input-group-addon {\n color: #8a6d3b;\n border-color: #8a6d3b;\n background-color: #fcf8e3;\n}\n.has-warning .form-control-feedback {\n color: #8a6d3b;\n}\n.has-error .help-block,\n.has-error .control-label,\n.has-error .radio,\n.has-error .checkbox,\n.has-error .radio-inline,\n.has-error .checkbox-inline,\n.has-error.radio label,\n.has-error.checkbox label,\n.has-error.radio-inline label,\n.has-error.checkbox-inline label {\n color: #a94442;\n}\n.has-error .form-control {\n border-color: #a94442;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n}\n.has-error .form-control:focus {\n border-color: #843534;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;\n}\n.has-error .input-group-addon {\n color: #a94442;\n border-color: #a94442;\n background-color: #f2dede;\n}\n.has-error .form-control-feedback {\n color: #a94442;\n}\n.has-feedback label ~ .form-control-feedback {\n top: 25px;\n}\n.has-feedback label.sr-only ~ .form-control-feedback {\n top: 0;\n}\n.help-block {\n display: block;\n margin-top: 5px;\n margin-bottom: 10px;\n color: #737373;\n}\n@media (min-width: 768px) {\n .form-inline .form-group {\n display: inline-block;\n margin-bottom: 0;\n vertical-align: middle;\n }\n .form-inline .form-control {\n display: inline-block;\n width: auto;\n vertical-align: middle;\n }\n .form-inline .form-control-static {\n display: inline-block;\n }\n .form-inline .input-group {\n display: inline-table;\n vertical-align: middle;\n }\n .form-inline .input-group .input-group-addon,\n .form-inline .input-group .input-group-btn,\n .form-inline .input-group .form-control {\n width: auto;\n }\n .form-inline .input-group > .form-control {\n width: 100%;\n }\n .form-inline .control-label {\n margin-bottom: 0;\n vertical-align: middle;\n }\n .form-inline .radio,\n .form-inline .checkbox {\n display: inline-block;\n margin-top: 0;\n margin-bottom: 0;\n vertical-align: middle;\n }\n .form-inline .radio label,\n .form-inline .checkbox label {\n padding-left: 0;\n }\n .form-inline .radio input[type=\"radio\"],\n .form-inline .checkbox input[type=\"checkbox\"] {\n position: relative;\n margin-left: 0;\n }\n .form-inline .has-feedback .form-control-feedback {\n top: 0;\n }\n}\n.form-horizontal .radio,\n.form-horizontal .checkbox,\n.form-horizontal .radio-inline,\n.form-horizontal .checkbox-inline {\n margin-top: 0;\n margin-bottom: 0;\n padding-top: 7px;\n}\n.form-horizontal .radio,\n.form-horizontal .checkbox {\n min-height: 27px;\n}\n.form-horizontal .form-group {\n margin-left: -15px;\n margin-right: -15px;\n}\n@media (min-width: 768px) {\n .form-horizontal .control-label {\n text-align: right;\n margin-bottom: 0;\n padding-top: 7px;\n }\n}\n.form-horizontal .has-feedback .form-control-feedback {\n right: 15px;\n}\n@media (min-width: 768px) {\n .form-horizontal .form-group-lg .control-label {\n padding-top: 11px;\n font-size: 18px;\n }\n}\n@media (min-width: 768px) {\n .form-horizontal .form-group-sm .control-label {\n padding-top: 6px;\n font-size: 12px;\n }\n}\n.btn {\n display: inline-block;\n margin-bottom: 0;\n font-weight: normal;\n text-align: center;\n vertical-align: middle;\n touch-action: manipulation;\n cursor: pointer;\n background-image: none;\n border: 1px solid transparent;\n white-space: nowrap;\n padding: 6px 12px;\n font-size: 14px;\n line-height: 1.42857143;\n border-radius: 4px;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.btn:focus,\n.btn:active:focus,\n.btn.active:focus,\n.btn.focus,\n.btn:active.focus,\n.btn.active.focus {\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: -2px;\n}\n.btn:hover,\n.btn:focus,\n.btn.focus {\n color: #333;\n text-decoration: none;\n}\n.btn:active,\n.btn.active {\n outline: 0;\n background-image: none;\n -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);\n box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);\n}\n.btn.disabled,\n.btn[disabled],\nfieldset[disabled] .btn {\n cursor: not-allowed;\n opacity: 0.65;\n filter: alpha(opacity=65);\n -webkit-box-shadow: none;\n box-shadow: none;\n}\na.btn.disabled,\nfieldset[disabled] a.btn {\n pointer-events: none;\n}\n.btn-default {\n color: #333;\n background-color: #fff;\n border-color: #ccc;\n}\n.btn-default:focus,\n.btn-default.focus {\n color: #333;\n background-color: #e6e6e6;\n border-color: #8c8c8c;\n}\n.btn-default:hover {\n color: #333;\n background-color: #e6e6e6;\n border-color: #adadad;\n}\n.btn-default:active,\n.btn-default.active,\n.open > .dropdown-toggle.btn-default {\n color: #333;\n background-color: #e6e6e6;\n border-color: #adadad;\n}\n.btn-default:active:hover,\n.btn-default.active:hover,\n.open > .dropdown-toggle.btn-default:hover,\n.btn-default:active:focus,\n.btn-default.active:focus,\n.open > .dropdown-toggle.btn-default:focus,\n.btn-default:active.focus,\n.btn-default.active.focus,\n.open > .dropdown-toggle.btn-default.focus {\n color: #333;\n background-color: #d4d4d4;\n border-color: #8c8c8c;\n}\n.btn-default:active,\n.btn-default.active,\n.open > .dropdown-toggle.btn-default {\n background-image: none;\n}\n.btn-default.disabled:hover,\n.btn-default[disabled]:hover,\nfieldset[disabled] .btn-default:hover,\n.btn-default.disabled:focus,\n.btn-default[disabled]:focus,\nfieldset[disabled] .btn-default:focus,\n.btn-default.disabled.focus,\n.btn-default[disabled].focus,\nfieldset[disabled] .btn-default.focus {\n background-color: #fff;\n border-color: #ccc;\n}\n.btn-default .badge {\n color: #fff;\n background-color: #333;\n}\n.btn-primary {\n color: #fff;\n background-color: #337ab7;\n border-color: #2e6da4;\n}\n.btn-primary:focus,\n.btn-primary.focus {\n color: #fff;\n background-color: #286090;\n border-color: #122b40;\n}\n.btn-primary:hover {\n color: #fff;\n background-color: #286090;\n border-color: #204d74;\n}\n.btn-primary:active,\n.btn-primary.active,\n.open > .dropdown-toggle.btn-primary {\n color: #fff;\n background-color: #286090;\n border-color: #204d74;\n}\n.btn-primary:active:hover,\n.btn-primary.active:hover,\n.open > .dropdown-toggle.btn-primary:hover,\n.btn-primary:active:focus,\n.btn-primary.active:focus,\n.open > .dropdown-toggle.btn-primary:focus,\n.btn-primary:active.focus,\n.btn-primary.active.focus,\n.open > .dropdown-toggle.btn-primary.focus {\n color: #fff;\n background-color: #204d74;\n border-color: #122b40;\n}\n.btn-primary:active,\n.btn-primary.active,\n.open > .dropdown-toggle.btn-primary {\n background-image: none;\n}\n.btn-primary.disabled:hover,\n.btn-primary[disabled]:hover,\nfieldset[disabled] .btn-primary:hover,\n.btn-primary.disabled:focus,\n.btn-primary[disabled]:focus,\nfieldset[disabled] .btn-primary:focus,\n.btn-primary.disabled.focus,\n.btn-primary[disabled].focus,\nfieldset[disabled] .btn-primary.focus {\n background-color: #337ab7;\n border-color: #2e6da4;\n}\n.btn-primary .badge {\n color: #337ab7;\n background-color: #fff;\n}\n.btn-success {\n color: #fff;\n background-color: #5cb85c;\n border-color: #4cae4c;\n}\n.btn-success:focus,\n.btn-success.focus {\n color: #fff;\n background-color: #449d44;\n border-color: #255625;\n}\n.btn-success:hover {\n color: #fff;\n background-color: #449d44;\n border-color: #398439;\n}\n.btn-success:active,\n.btn-success.active,\n.open > .dropdown-toggle.btn-success {\n color: #fff;\n background-color: #449d44;\n border-color: #398439;\n}\n.btn-success:active:hover,\n.btn-success.active:hover,\n.open > .dropdown-toggle.btn-success:hover,\n.btn-success:active:focus,\n.btn-success.active:focus,\n.open > .dropdown-toggle.btn-success:focus,\n.btn-success:active.focus,\n.btn-success.active.focus,\n.open > .dropdown-toggle.btn-success.focus {\n color: #fff;\n background-color: #398439;\n border-color: #255625;\n}\n.btn-success:active,\n.btn-success.active,\n.open > .dropdown-toggle.btn-success {\n background-image: none;\n}\n.btn-success.disabled:hover,\n.btn-success[disabled]:hover,\nfieldset[disabled] .btn-success:hover,\n.btn-success.disabled:focus,\n.btn-success[disabled]:focus,\nfieldset[disabled] .btn-success:focus,\n.btn-success.disabled.focus,\n.btn-success[disabled].focus,\nfieldset[disabled] .btn-success.focus {\n background-color: #5cb85c;\n border-color: #4cae4c;\n}\n.btn-success .badge {\n color: #5cb85c;\n background-color: #fff;\n}\n.btn-info {\n color: #fff;\n background-color: #5bc0de;\n border-color: #46b8da;\n}\n.btn-info:focus,\n.btn-info.focus {\n color: #fff;\n background-color: #31b0d5;\n border-color: #1b6d85;\n}\n.btn-info:hover {\n color: #fff;\n background-color: #31b0d5;\n border-color: #269abc;\n}\n.btn-info:active,\n.btn-info.active,\n.open > .dropdown-toggle.btn-info {\n color: #fff;\n background-color: #31b0d5;\n border-color: #269abc;\n}\n.btn-info:active:hover,\n.btn-info.active:hover,\n.open > .dropdown-toggle.btn-info:hover,\n.btn-info:active:focus,\n.btn-info.active:focus,\n.open > .dropdown-toggle.btn-info:focus,\n.btn-info:active.focus,\n.btn-info.active.focus,\n.open > .dropdown-toggle.btn-info.focus {\n color: #fff;\n background-color: #269abc;\n border-color: #1b6d85;\n}\n.btn-info:active,\n.btn-info.active,\n.open > .dropdown-toggle.btn-info {\n background-image: none;\n}\n.btn-info.disabled:hover,\n.btn-info[disabled]:hover,\nfieldset[disabled] .btn-info:hover,\n.btn-info.disabled:focus,\n.btn-info[disabled]:focus,\nfieldset[disabled] .btn-info:focus,\n.btn-info.disabled.focus,\n.btn-info[disabled].focus,\nfieldset[disabled] .btn-info.focus {\n background-color: #5bc0de;\n border-color: #46b8da;\n}\n.btn-info .badge {\n color: #5bc0de;\n background-color: #fff;\n}\n.btn-warning {\n color: #fff;\n background-color: #f0ad4e;\n border-color: #eea236;\n}\n.btn-warning:focus,\n.btn-warning.focus {\n color: #fff;\n background-color: #ec971f;\n border-color: #985f0d;\n}\n.btn-warning:hover {\n color: #fff;\n background-color: #ec971f;\n border-color: #d58512;\n}\n.btn-warning:active,\n.btn-warning.active,\n.open > .dropdown-toggle.btn-warning {\n color: #fff;\n background-color: #ec971f;\n border-color: #d58512;\n}\n.btn-warning:active:hover,\n.btn-warning.active:hover,\n.open > .dropdown-toggle.btn-warning:hover,\n.btn-warning:active:focus,\n.btn-warning.active:focus,\n.open > .dropdown-toggle.btn-warning:focus,\n.btn-warning:active.focus,\n.btn-warning.active.focus,\n.open > .dropdown-toggle.btn-warning.focus {\n color: #fff;\n background-color: #d58512;\n border-color: #985f0d;\n}\n.btn-warning:active,\n.btn-warning.active,\n.open > .dropdown-toggle.btn-warning {\n background-image: none;\n}\n.btn-warning.disabled:hover,\n.btn-warning[disabled]:hover,\nfieldset[disabled] .btn-warning:hover,\n.btn-warning.disabled:focus,\n.btn-warning[disabled]:focus,\nfieldset[disabled] .btn-warning:focus,\n.btn-warning.disabled.focus,\n.btn-warning[disabled].focus,\nfieldset[disabled] .btn-warning.focus {\n background-color: #f0ad4e;\n border-color: #eea236;\n}\n.btn-warning .badge {\n color: #f0ad4e;\n background-color: #fff;\n}\n.btn-danger {\n color: #fff;\n background-color: #d9534f;\n border-color: #d43f3a;\n}\n.btn-danger:focus,\n.btn-danger.focus {\n color: #fff;\n background-color: #c9302c;\n border-color: #761c19;\n}\n.btn-danger:hover {\n color: #fff;\n background-color: #c9302c;\n border-color: #ac2925;\n}\n.btn-danger:active,\n.btn-danger.active,\n.open > .dropdown-toggle.btn-danger {\n color: #fff;\n background-color: #c9302c;\n border-color: #ac2925;\n}\n.btn-danger:active:hover,\n.btn-danger.active:hover,\n.open > .dropdown-toggle.btn-danger:hover,\n.btn-danger:active:focus,\n.btn-danger.active:focus,\n.open > .dropdown-toggle.btn-danger:focus,\n.btn-danger:active.focus,\n.btn-danger.active.focus,\n.open > .dropdown-toggle.btn-danger.focus {\n color: #fff;\n background-color: #ac2925;\n border-color: #761c19;\n}\n.btn-danger:active,\n.btn-danger.active,\n.open > .dropdown-toggle.btn-danger {\n background-image: none;\n}\n.btn-danger.disabled:hover,\n.btn-danger[disabled]:hover,\nfieldset[disabled] .btn-danger:hover,\n.btn-danger.disabled:focus,\n.btn-danger[disabled]:focus,\nfieldset[disabled] .btn-danger:focus,\n.btn-danger.disabled.focus,\n.btn-danger[disabled].focus,\nfieldset[disabled] .btn-danger.focus {\n background-color: #d9534f;\n border-color: #d43f3a;\n}\n.btn-danger .badge {\n color: #d9534f;\n background-color: #fff;\n}\n.btn-link {\n color: #337ab7;\n font-weight: normal;\n border-radius: 0;\n}\n.btn-link,\n.btn-link:active,\n.btn-link.active,\n.btn-link[disabled],\nfieldset[disabled] .btn-link {\n background-color: transparent;\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n.btn-link,\n.btn-link:hover,\n.btn-link:focus,\n.btn-link:active {\n border-color: transparent;\n}\n.btn-link:hover,\n.btn-link:focus {\n color: #23527c;\n text-decoration: underline;\n background-color: transparent;\n}\n.btn-link[disabled]:hover,\nfieldset[disabled] .btn-link:hover,\n.btn-link[disabled]:focus,\nfieldset[disabled] .btn-link:focus {\n color: #777777;\n text-decoration: none;\n}\n.btn-lg,\n.btn-group-lg > .btn {\n padding: 10px 16px;\n font-size: 18px;\n line-height: 1.3333333;\n border-radius: 6px;\n}\n.btn-sm,\n.btn-group-sm > .btn {\n padding: 5px 10px;\n font-size: 12px;\n line-height: 1.5;\n border-radius: 3px;\n}\n.btn-xs,\n.btn-group-xs > .btn {\n padding: 1px 5px;\n font-size: 12px;\n line-height: 1.5;\n border-radius: 3px;\n}\n.btn-block {\n display: block;\n width: 100%;\n}\n.btn-block + .btn-block {\n margin-top: 5px;\n}\ninput[type=\"submit\"].btn-block,\ninput[type=\"reset\"].btn-block,\ninput[type=\"button\"].btn-block {\n width: 100%;\n}\n.fade {\n opacity: 0;\n -webkit-transition: opacity 0.15s linear;\n -o-transition: opacity 0.15s linear;\n transition: opacity 0.15s linear;\n}\n.fade.in {\n opacity: 1;\n}\n.collapse {\n display: none;\n}\n.collapse.in {\n display: block;\n}\ntr.collapse.in {\n display: table-row;\n}\ntbody.collapse.in {\n display: table-row-group;\n}\n.collapsing {\n position: relative;\n height: 0;\n overflow: hidden;\n -webkit-transition-property: height, visibility;\n transition-property: height, visibility;\n -webkit-transition-duration: 0.35s;\n transition-duration: 0.35s;\n -webkit-transition-timing-function: ease;\n transition-timing-function: ease;\n}\n.caret {\n display: inline-block;\n width: 0;\n height: 0;\n margin-left: 2px;\n vertical-align: middle;\n border-top: 4px dashed;\n border-top: 4px solid \\9;\n border-right: 4px solid transparent;\n border-left: 4px solid transparent;\n}\n.dropup,\n.dropdown {\n position: relative;\n}\n.dropdown-toggle:focus {\n outline: 0;\n}\n.dropdown-menu {\n position: absolute;\n top: 100%;\n left: 0;\n z-index: 1000;\n display: none;\n float: left;\n min-width: 160px;\n padding: 5px 0;\n margin: 2px 0 0;\n list-style: none;\n font-size: 14px;\n text-align: left;\n background-color: #fff;\n border: 1px solid #ccc;\n border: 1px solid rgba(0, 0, 0, 0.15);\n border-radius: 4px;\n -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);\n box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);\n background-clip: padding-box;\n}\n.dropdown-menu.pull-right {\n right: 0;\n left: auto;\n}\n.dropdown-menu .divider {\n height: 1px;\n margin: 9px 0;\n overflow: hidden;\n background-color: #e5e5e5;\n}\n.dropdown-menu > li > a {\n display: block;\n padding: 3px 20px;\n clear: both;\n font-weight: normal;\n line-height: 1.42857143;\n color: #333333;\n white-space: nowrap;\n}\n.dropdown-menu > li > a:hover,\n.dropdown-menu > li > a:focus {\n text-decoration: none;\n color: #262626;\n background-color: #f5f5f5;\n}\n.dropdown-menu > .active > a,\n.dropdown-menu > .active > a:hover,\n.dropdown-menu > .active > a:focus {\n color: #fff;\n text-decoration: none;\n outline: 0;\n background-color: #337ab7;\n}\n.dropdown-menu > .disabled > a,\n.dropdown-menu > .disabled > a:hover,\n.dropdown-menu > .disabled > a:focus {\n color: #777777;\n}\n.dropdown-menu > .disabled > a:hover,\n.dropdown-menu > .disabled > a:focus {\n text-decoration: none;\n background-color: transparent;\n background-image: none;\n filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n cursor: not-allowed;\n}\n.open > .dropdown-menu {\n display: block;\n}\n.open > a {\n outline: 0;\n}\n.dropdown-menu-right {\n left: auto;\n right: 0;\n}\n.dropdown-menu-left {\n left: 0;\n right: auto;\n}\n.dropdown-header {\n display: block;\n padding: 3px 20px;\n font-size: 12px;\n line-height: 1.42857143;\n color: #777777;\n white-space: nowrap;\n}\n.dropdown-backdrop {\n position: fixed;\n left: 0;\n right: 0;\n bottom: 0;\n top: 0;\n z-index: 990;\n}\n.pull-right > .dropdown-menu {\n right: 0;\n left: auto;\n}\n.dropup .caret,\n.navbar-fixed-bottom .dropdown .caret {\n border-top: 0;\n border-bottom: 4px dashed;\n border-bottom: 4px solid \\9;\n content: \"\";\n}\n.dropup .dropdown-menu,\n.navbar-fixed-bottom .dropdown .dropdown-menu {\n top: auto;\n bottom: 100%;\n margin-bottom: 2px;\n}\n@media (min-width: 768px) {\n .navbar-right .dropdown-menu {\n left: auto;\n right: 0;\n }\n .navbar-right .dropdown-menu-left {\n left: 0;\n right: auto;\n }\n}\n.btn-group,\n.btn-group-vertical {\n position: relative;\n display: inline-block;\n vertical-align: middle;\n}\n.btn-group > .btn,\n.btn-group-vertical > .btn {\n position: relative;\n float: left;\n}\n.btn-group > .btn:hover,\n.btn-group-vertical > .btn:hover,\n.btn-group > .btn:focus,\n.btn-group-vertical > .btn:focus,\n.btn-group > .btn:active,\n.btn-group-vertical > .btn:active,\n.btn-group > .btn.active,\n.btn-group-vertical > .btn.active {\n z-index: 2;\n}\n.btn-group .btn + .btn,\n.btn-group .btn + .btn-group,\n.btn-group .btn-group + .btn,\n.btn-group .btn-group + .btn-group {\n margin-left: -1px;\n}\n.btn-toolbar {\n margin-left: -5px;\n}\n.btn-toolbar .btn,\n.btn-toolbar .btn-group,\n.btn-toolbar .input-group {\n float: left;\n}\n.btn-toolbar > .btn,\n.btn-toolbar > .btn-group,\n.btn-toolbar > .input-group {\n margin-left: 5px;\n}\n.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {\n border-radius: 0;\n}\n.btn-group > .btn:first-child {\n margin-left: 0;\n}\n.btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) {\n border-bottom-right-radius: 0;\n border-top-right-radius: 0;\n}\n.btn-group > .btn:last-child:not(:first-child),\n.btn-group > .dropdown-toggle:not(:first-child) {\n border-bottom-left-radius: 0;\n border-top-left-radius: 0;\n}\n.btn-group > .btn-group {\n float: left;\n}\n.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {\n border-radius: 0;\n}\n.btn-group > .btn-group:first-child:not(:last-child) > .btn:last-child,\n.btn-group > .btn-group:first-child:not(:last-child) > .dropdown-toggle {\n border-bottom-right-radius: 0;\n border-top-right-radius: 0;\n}\n.btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child {\n border-bottom-left-radius: 0;\n border-top-left-radius: 0;\n}\n.btn-group .dropdown-toggle:active,\n.btn-group.open .dropdown-toggle {\n outline: 0;\n}\n.btn-group > .btn + .dropdown-toggle {\n padding-left: 8px;\n padding-right: 8px;\n}\n.btn-group > .btn-lg + .dropdown-toggle {\n padding-left: 12px;\n padding-right: 12px;\n}\n.btn-group.open .dropdown-toggle {\n -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);\n box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);\n}\n.btn-group.open .dropdown-toggle.btn-link {\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n.btn .caret {\n margin-left: 0;\n}\n.btn-lg .caret {\n border-width: 5px 5px 0;\n border-bottom-width: 0;\n}\n.dropup .btn-lg .caret {\n border-width: 0 5px 5px;\n}\n.btn-group-vertical > .btn,\n.btn-group-vertical > .btn-group,\n.btn-group-vertical > .btn-group > .btn {\n display: block;\n float: none;\n width: 100%;\n max-width: 100%;\n}\n.btn-group-vertical > .btn-group > .btn {\n float: none;\n}\n.btn-group-vertical > .btn + .btn,\n.btn-group-vertical > .btn + .btn-group,\n.btn-group-vertical > .btn-group + .btn,\n.btn-group-vertical > .btn-group + .btn-group {\n margin-top: -1px;\n margin-left: 0;\n}\n.btn-group-vertical > .btn:not(:first-child):not(:last-child) {\n border-radius: 0;\n}\n.btn-group-vertical > .btn:first-child:not(:last-child) {\n border-top-right-radius: 4px;\n border-top-left-radius: 4px;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n}\n.btn-group-vertical > .btn:last-child:not(:first-child) {\n border-top-right-radius: 0;\n border-top-left-radius: 0;\n border-bottom-right-radius: 4px;\n border-bottom-left-radius: 4px;\n}\n.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn {\n border-radius: 0;\n}\n.btn-group-vertical > .btn-group:first-child:not(:last-child) > .btn:last-child,\n.btn-group-vertical > .btn-group:first-child:not(:last-child) > .dropdown-toggle {\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n}\n.btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child {\n border-top-right-radius: 0;\n border-top-left-radius: 0;\n}\n.btn-group-justified {\n display: table;\n width: 100%;\n table-layout: fixed;\n border-collapse: separate;\n}\n.btn-group-justified > .btn,\n.btn-group-justified > .btn-group {\n float: none;\n display: table-cell;\n width: 1%;\n}\n.btn-group-justified > .btn-group .btn {\n width: 100%;\n}\n.btn-group-justified > .btn-group .dropdown-menu {\n left: auto;\n}\n[data-toggle=\"buttons\"] > .btn input[type=\"radio\"],\n[data-toggle=\"buttons\"] > .btn-group > .btn input[type=\"radio\"],\n[data-toggle=\"buttons\"] > .btn input[type=\"checkbox\"],\n[data-toggle=\"buttons\"] > .btn-group > .btn input[type=\"checkbox\"] {\n position: absolute;\n clip: rect(0, 0, 0, 0);\n pointer-events: none;\n}\n.input-group {\n position: relative;\n display: table;\n border-collapse: separate;\n}\n.input-group[class*=\"col-\"] {\n float: none;\n padding-left: 0;\n padding-right: 0;\n}\n.input-group .form-control {\n position: relative;\n z-index: 2;\n float: left;\n width: 100%;\n margin-bottom: 0;\n}\n.input-group .form-control:focus {\n z-index: 3;\n}\n.input-group-lg > .form-control,\n.input-group-lg > .input-group-addon,\n.input-group-lg > .input-group-btn > .btn {\n height: 46px;\n padding: 10px 16px;\n font-size: 18px;\n line-height: 1.3333333;\n border-radius: 6px;\n}\nselect.input-group-lg > .form-control,\nselect.input-group-lg > .input-group-addon,\nselect.input-group-lg > .input-group-btn > .btn {\n height: 46px;\n line-height: 46px;\n}\ntextarea.input-group-lg > .form-control,\ntextarea.input-group-lg > .input-group-addon,\ntextarea.input-group-lg > .input-group-btn > .btn,\nselect[multiple].input-group-lg > .form-control,\nselect[multiple].input-group-lg > .input-group-addon,\nselect[multiple].input-group-lg > .input-group-btn > .btn {\n height: auto;\n}\n.input-group-sm > .form-control,\n.input-group-sm > .input-group-addon,\n.input-group-sm > .input-group-btn > .btn {\n height: 30px;\n padding: 5px 10px;\n font-size: 12px;\n line-height: 1.5;\n border-radius: 3px;\n}\nselect.input-group-sm > .form-control,\nselect.input-group-sm > .input-group-addon,\nselect.input-group-sm > .input-group-btn > .btn {\n height: 30px;\n line-height: 30px;\n}\ntextarea.input-group-sm > .form-control,\ntextarea.input-group-sm > .input-group-addon,\ntextarea.input-group-sm > .input-group-btn > .btn,\nselect[multiple].input-group-sm > .form-control,\nselect[multiple].input-group-sm > .input-group-addon,\nselect[multiple].input-group-sm > .input-group-btn > .btn {\n height: auto;\n}\n.input-group-addon,\n.input-group-btn,\n.input-group .form-control {\n display: table-cell;\n}\n.input-group-addon:not(:first-child):not(:last-child),\n.input-group-btn:not(:first-child):not(:last-child),\n.input-group .form-control:not(:first-child):not(:last-child) {\n border-radius: 0;\n}\n.input-group-addon,\n.input-group-btn {\n width: 1%;\n white-space: nowrap;\n vertical-align: middle;\n}\n.input-group-addon {\n padding: 6px 12px;\n font-size: 14px;\n font-weight: normal;\n line-height: 1;\n color: #555555;\n text-align: center;\n background-color: #eeeeee;\n border: 1px solid #ccc;\n border-radius: 4px;\n}\n.input-group-addon.input-sm {\n padding: 5px 10px;\n font-size: 12px;\n border-radius: 3px;\n}\n.input-group-addon.input-lg {\n padding: 10px 16px;\n font-size: 18px;\n border-radius: 6px;\n}\n.input-group-addon input[type=\"radio\"],\n.input-group-addon input[type=\"checkbox\"] {\n margin-top: 0;\n}\n.input-group .form-control:first-child,\n.input-group-addon:first-child,\n.input-group-btn:first-child > .btn,\n.input-group-btn:first-child > .btn-group > .btn,\n.input-group-btn:first-child > .dropdown-toggle,\n.input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle),\n.input-group-btn:last-child > .btn-group:not(:last-child) > .btn {\n border-bottom-right-radius: 0;\n border-top-right-radius: 0;\n}\n.input-group-addon:first-child {\n border-right: 0;\n}\n.input-group .form-control:last-child,\n.input-group-addon:last-child,\n.input-group-btn:last-child > .btn,\n.input-group-btn:last-child > .btn-group > .btn,\n.input-group-btn:last-child > .dropdown-toggle,\n.input-group-btn:first-child > .btn:not(:first-child),\n.input-group-btn:first-child > .btn-group:not(:first-child) > .btn {\n border-bottom-left-radius: 0;\n border-top-left-radius: 0;\n}\n.input-group-addon:last-child {\n border-left: 0;\n}\n.input-group-btn {\n position: relative;\n font-size: 0;\n white-space: nowrap;\n}\n.input-group-btn > .btn {\n position: relative;\n}\n.input-group-btn > .btn + .btn {\n margin-left: -1px;\n}\n.input-group-btn > .btn:hover,\n.input-group-btn > .btn:focus,\n.input-group-btn > .btn:active {\n z-index: 2;\n}\n.input-group-btn:first-child > .btn,\n.input-group-btn:first-child > .btn-group {\n margin-right: -1px;\n}\n.input-group-btn:last-child > .btn,\n.input-group-btn:last-child > .btn-group {\n z-index: 2;\n margin-left: -1px;\n}\n.nav {\n margin-bottom: 0;\n padding-left: 0;\n list-style: none;\n}\n.nav > li {\n position: relative;\n display: block;\n}\n.nav > li > a {\n position: relative;\n display: block;\n padding: 10px 15px;\n}\n.nav > li > a:hover,\n.nav > li > a:focus {\n text-decoration: none;\n background-color: #eeeeee;\n}\n.nav > li.disabled > a {\n color: #777777;\n}\n.nav > li.disabled > a:hover,\n.nav > li.disabled > a:focus {\n color: #777777;\n text-decoration: none;\n background-color: transparent;\n cursor: not-allowed;\n}\n.nav .open > a,\n.nav .open > a:hover,\n.nav .open > a:focus {\n background-color: #eeeeee;\n border-color: #337ab7;\n}\n.nav .nav-divider {\n height: 1px;\n margin: 9px 0;\n overflow: hidden;\n background-color: #e5e5e5;\n}\n.nav > li > a > img {\n max-width: none;\n}\n.nav-tabs {\n border-bottom: 1px solid #ddd;\n}\n.nav-tabs > li {\n float: left;\n margin-bottom: -1px;\n}\n.nav-tabs > li > a {\n margin-right: 2px;\n line-height: 1.42857143;\n border: 1px solid transparent;\n border-radius: 4px 4px 0 0;\n}\n.nav-tabs > li > a:hover {\n border-color: #eeeeee #eeeeee #ddd;\n}\n.nav-tabs > li.active > a,\n.nav-tabs > li.active > a:hover,\n.nav-tabs > li.active > a:focus {\n color: #555555;\n background-color: #fff;\n border: 1px solid #ddd;\n border-bottom-color: transparent;\n cursor: default;\n}\n.nav-tabs.nav-justified {\n width: 100%;\n border-bottom: 0;\n}\n.nav-tabs.nav-justified > li {\n float: none;\n}\n.nav-tabs.nav-justified > li > a {\n text-align: center;\n margin-bottom: 5px;\n}\n.nav-tabs.nav-justified > .dropdown .dropdown-menu {\n top: auto;\n left: auto;\n}\n@media (min-width: 768px) {\n .nav-tabs.nav-justified > li {\n display: table-cell;\n width: 1%;\n }\n .nav-tabs.nav-justified > li > a {\n margin-bottom: 0;\n }\n}\n.nav-tabs.nav-justified > li > a {\n margin-right: 0;\n border-radius: 4px;\n}\n.nav-tabs.nav-justified > .active > a,\n.nav-tabs.nav-justified > .active > a:hover,\n.nav-tabs.nav-justified > .active > a:focus {\n border: 1px solid #ddd;\n}\n@media (min-width: 768px) {\n .nav-tabs.nav-justified > li > a {\n border-bottom: 1px solid #ddd;\n border-radius: 4px 4px 0 0;\n }\n .nav-tabs.nav-justified > .active > a,\n .nav-tabs.nav-justified > .active > a:hover,\n .nav-tabs.nav-justified > .active > a:focus {\n border-bottom-color: #fff;\n }\n}\n.nav-pills > li {\n float: left;\n}\n.nav-pills > li > a {\n border-radius: 4px;\n}\n.nav-pills > li + li {\n margin-left: 2px;\n}\n.nav-pills > li.active > a,\n.nav-pills > li.active > a:hover,\n.nav-pills > li.active > a:focus {\n color: #fff;\n background-color: #337ab7;\n}\n.nav-stacked > li {\n float: none;\n}\n.nav-stacked > li + li {\n margin-top: 2px;\n margin-left: 0;\n}\n.nav-justified {\n width: 100%;\n}\n.nav-justified > li {\n float: none;\n}\n.nav-justified > li > a {\n text-align: center;\n margin-bottom: 5px;\n}\n.nav-justified > .dropdown .dropdown-menu {\n top: auto;\n left: auto;\n}\n@media (min-width: 768px) {\n .nav-justified > li {\n display: table-cell;\n width: 1%;\n }\n .nav-justified > li > a {\n margin-bottom: 0;\n }\n}\n.nav-tabs-justified {\n border-bottom: 0;\n}\n.nav-tabs-justified > li > a {\n margin-right: 0;\n border-radius: 4px;\n}\n.nav-tabs-justified > .active > a,\n.nav-tabs-justified > .active > a:hover,\n.nav-tabs-justified > .active > a:focus {\n border: 1px solid #ddd;\n}\n@media (min-width: 768px) {\n .nav-tabs-justified > li > a {\n border-bottom: 1px solid #ddd;\n border-radius: 4px 4px 0 0;\n }\n .nav-tabs-justified > .active > a,\n .nav-tabs-justified > .active > a:hover,\n .nav-tabs-justified > .active > a:focus {\n border-bottom-color: #fff;\n }\n}\n.tab-content > .tab-pane {\n display: none;\n}\n.tab-content > .active {\n display: block;\n}\n.nav-tabs .dropdown-menu {\n margin-top: -1px;\n border-top-right-radius: 0;\n border-top-left-radius: 0;\n}\n.navbar {\n position: relative;\n min-height: 50px;\n margin-bottom: 20px;\n border: 1px solid transparent;\n}\n@media (min-width: 768px) {\n .navbar {\n border-radius: 4px;\n }\n}\n@media (min-width: 768px) {\n .navbar-header {\n float: left;\n }\n}\n.navbar-collapse {\n overflow-x: visible;\n padding-right: 15px;\n padding-left: 15px;\n border-top: 1px solid transparent;\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);\n -webkit-overflow-scrolling: touch;\n}\n.navbar-collapse.in {\n overflow-y: auto;\n}\n@media (min-width: 768px) {\n .navbar-collapse {\n width: auto;\n border-top: 0;\n box-shadow: none;\n }\n .navbar-collapse.collapse {\n display: block !important;\n height: auto !important;\n padding-bottom: 0;\n overflow: visible !important;\n }\n .navbar-collapse.in {\n overflow-y: visible;\n }\n .navbar-fixed-top .navbar-collapse,\n .navbar-static-top .navbar-collapse,\n .navbar-fixed-bottom .navbar-collapse {\n padding-left: 0;\n padding-right: 0;\n }\n}\n.navbar-fixed-top .navbar-collapse,\n.navbar-fixed-bottom .navbar-collapse {\n max-height: 340px;\n}\n@media (max-device-width: 480px) and (orientation: landscape) {\n .navbar-fixed-top .navbar-collapse,\n .navbar-fixed-bottom .navbar-collapse {\n max-height: 200px;\n }\n}\n.container > .navbar-header,\n.container-fluid > .navbar-header,\n.container > .navbar-collapse,\n.container-fluid > .navbar-collapse {\n margin-right: -15px;\n margin-left: -15px;\n}\n@media (min-width: 768px) {\n .container > .navbar-header,\n .container-fluid > .navbar-header,\n .container > .navbar-collapse,\n .container-fluid > .navbar-collapse {\n margin-right: 0;\n margin-left: 0;\n }\n}\n.navbar-static-top {\n z-index: 1000;\n border-width: 0 0 1px;\n}\n@media (min-width: 768px) {\n .navbar-static-top {\n border-radius: 0;\n }\n}\n.navbar-fixed-top,\n.navbar-fixed-bottom {\n position: fixed;\n right: 0;\n left: 0;\n z-index: 1030;\n}\n@media (min-width: 768px) {\n .navbar-fixed-top,\n .navbar-fixed-bottom {\n border-radius: 0;\n }\n}\n.navbar-fixed-top {\n top: 0;\n border-width: 0 0 1px;\n}\n.navbar-fixed-bottom {\n bottom: 0;\n margin-bottom: 0;\n border-width: 1px 0 0;\n}\n.navbar-brand {\n float: left;\n padding: 15px 15px;\n font-size: 18px;\n line-height: 20px;\n height: 50px;\n}\n.navbar-brand:hover,\n.navbar-brand:focus {\n text-decoration: none;\n}\n.navbar-brand > img {\n display: block;\n}\n@media (min-width: 768px) {\n .navbar > .container .navbar-brand,\n .navbar > .container-fluid .navbar-brand {\n margin-left: -15px;\n }\n}\n.navbar-toggle {\n position: relative;\n float: right;\n margin-right: 15px;\n padding: 9px 10px;\n margin-top: 8px;\n margin-bottom: 8px;\n background-color: transparent;\n background-image: none;\n border: 1px solid transparent;\n border-radius: 4px;\n}\n.navbar-toggle:focus {\n outline: 0;\n}\n.navbar-toggle .icon-bar {\n display: block;\n width: 22px;\n height: 2px;\n border-radius: 1px;\n}\n.navbar-toggle .icon-bar + .icon-bar {\n margin-top: 4px;\n}\n@media (min-width: 768px) {\n .navbar-toggle {\n display: none;\n }\n}\n.navbar-nav {\n margin: 7.5px -15px;\n}\n.navbar-nav > li > a {\n padding-top: 10px;\n padding-bottom: 10px;\n line-height: 20px;\n}\n@media (max-width: 767px) {\n .navbar-nav .open .dropdown-menu {\n position: static;\n float: none;\n width: auto;\n margin-top: 0;\n background-color: transparent;\n border: 0;\n box-shadow: none;\n }\n .navbar-nav .open .dropdown-menu > li > a,\n .navbar-nav .open .dropdown-menu .dropdown-header {\n padding: 5px 15px 5px 25px;\n }\n .navbar-nav .open .dropdown-menu > li > a {\n line-height: 20px;\n }\n .navbar-nav .open .dropdown-menu > li > a:hover,\n .navbar-nav .open .dropdown-menu > li > a:focus {\n background-image: none;\n }\n}\n@media (min-width: 768px) {\n .navbar-nav {\n float: left;\n margin: 0;\n }\n .navbar-nav > li {\n float: left;\n }\n .navbar-nav > li > a {\n padding-top: 15px;\n padding-bottom: 15px;\n }\n}\n.navbar-form {\n margin-left: -15px;\n margin-right: -15px;\n padding: 10px 15px;\n border-top: 1px solid transparent;\n border-bottom: 1px solid transparent;\n -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);\n margin-top: 8px;\n margin-bottom: 8px;\n}\n@media (min-width: 768px) {\n .navbar-form .form-group {\n display: inline-block;\n margin-bottom: 0;\n vertical-align: middle;\n }\n .navbar-form .form-control {\n display: inline-block;\n width: auto;\n vertical-align: middle;\n }\n .navbar-form .form-control-static {\n display: inline-block;\n }\n .navbar-form .input-group {\n display: inline-table;\n vertical-align: middle;\n }\n .navbar-form .input-group .input-group-addon,\n .navbar-form .input-group .input-group-btn,\n .navbar-form .input-group .form-control {\n width: auto;\n }\n .navbar-form .input-group > .form-control {\n width: 100%;\n }\n .navbar-form .control-label {\n margin-bottom: 0;\n vertical-align: middle;\n }\n .navbar-form .radio,\n .navbar-form .checkbox {\n display: inline-block;\n margin-top: 0;\n margin-bottom: 0;\n vertical-align: middle;\n }\n .navbar-form .radio label,\n .navbar-form .checkbox label {\n padding-left: 0;\n }\n .navbar-form .radio input[type=\"radio\"],\n .navbar-form .checkbox input[type=\"checkbox\"] {\n position: relative;\n margin-left: 0;\n }\n .navbar-form .has-feedback .form-control-feedback {\n top: 0;\n }\n}\n@media (max-width: 767px) {\n .navbar-form .form-group {\n margin-bottom: 5px;\n }\n .navbar-form .form-group:last-child {\n margin-bottom: 0;\n }\n}\n@media (min-width: 768px) {\n .navbar-form {\n width: auto;\n border: 0;\n margin-left: 0;\n margin-right: 0;\n padding-top: 0;\n padding-bottom: 0;\n -webkit-box-shadow: none;\n box-shadow: none;\n }\n}\n.navbar-nav > li > .dropdown-menu {\n margin-top: 0;\n border-top-right-radius: 0;\n border-top-left-radius: 0;\n}\n.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu {\n margin-bottom: 0;\n border-top-right-radius: 4px;\n border-top-left-radius: 4px;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n}\n.navbar-btn {\n margin-top: 8px;\n margin-bottom: 8px;\n}\n.navbar-btn.btn-sm {\n margin-top: 10px;\n margin-bottom: 10px;\n}\n.navbar-btn.btn-xs {\n margin-top: 14px;\n margin-bottom: 14px;\n}\n.navbar-text {\n margin-top: 15px;\n margin-bottom: 15px;\n}\n@media (min-width: 768px) {\n .navbar-text {\n float: left;\n margin-left: 15px;\n margin-right: 15px;\n }\n}\n@media (min-width: 768px) {\n .navbar-left {\n float: left !important;\n }\n .navbar-right {\n float: right !important;\n margin-right: -15px;\n }\n .navbar-right ~ .navbar-right {\n margin-right: 0;\n }\n}\n.navbar-default {\n background-color: #f8f8f8;\n border-color: #e7e7e7;\n}\n.navbar-default .navbar-brand {\n color: #777;\n}\n.navbar-default .navbar-brand:hover,\n.navbar-default .navbar-brand:focus {\n color: #5e5e5e;\n background-color: transparent;\n}\n.navbar-default .navbar-text {\n color: #777;\n}\n.navbar-default .navbar-nav > li > a {\n color: #777;\n}\n.navbar-default .navbar-nav > li > a:hover,\n.navbar-default .navbar-nav > li > a:focus {\n color: #333;\n background-color: transparent;\n}\n.navbar-default .navbar-nav > .active > a,\n.navbar-default .navbar-nav > .active > a:hover,\n.navbar-default .navbar-nav > .active > a:focus {\n color: #555;\n background-color: #e7e7e7;\n}\n.navbar-default .navbar-nav > .disabled > a,\n.navbar-default .navbar-nav > .disabled > a:hover,\n.navbar-default .navbar-nav > .disabled > a:focus {\n color: #ccc;\n background-color: transparent;\n}\n.navbar-default .navbar-toggle {\n border-color: #ddd;\n}\n.navbar-default .navbar-toggle:hover,\n.navbar-default .navbar-toggle:focus {\n background-color: #ddd;\n}\n.navbar-default .navbar-toggle .icon-bar {\n background-color: #888;\n}\n.navbar-default .navbar-collapse,\n.navbar-default .navbar-form {\n border-color: #e7e7e7;\n}\n.navbar-default .navbar-nav > .open > a,\n.navbar-default .navbar-nav > .open > a:hover,\n.navbar-default .navbar-nav > .open > a:focus {\n background-color: #e7e7e7;\n color: #555;\n}\n@media (max-width: 767px) {\n .navbar-default .navbar-nav .open .dropdown-menu > li > a {\n color: #777;\n }\n .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,\n .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {\n color: #333;\n background-color: transparent;\n }\n .navbar-default .navbar-nav .open .dropdown-menu > .active > a,\n .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover,\n .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus {\n color: #555;\n background-color: #e7e7e7;\n }\n .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a,\n .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover,\n .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus {\n color: #ccc;\n background-color: transparent;\n }\n}\n.navbar-default .navbar-link {\n color: #777;\n}\n.navbar-default .navbar-link:hover {\n color: #333;\n}\n.navbar-default .btn-link {\n color: #777;\n}\n.navbar-default .btn-link:hover,\n.navbar-default .btn-link:focus {\n color: #333;\n}\n.navbar-default .btn-link[disabled]:hover,\nfieldset[disabled] .navbar-default .btn-link:hover,\n.navbar-default .btn-link[disabled]:focus,\nfieldset[disabled] .navbar-default .btn-link:focus {\n color: #ccc;\n}\n.navbar-inverse {\n background-color: #222;\n border-color: #080808;\n}\n.navbar-inverse .navbar-brand {\n color: #9d9d9d;\n}\n.navbar-inverse .navbar-brand:hover,\n.navbar-inverse .navbar-brand:focus {\n color: #fff;\n background-color: transparent;\n}\n.navbar-inverse .navbar-text {\n color: #9d9d9d;\n}\n.navbar-inverse .navbar-nav > li > a {\n color: #9d9d9d;\n}\n.navbar-inverse .navbar-nav > li > a:hover,\n.navbar-inverse .navbar-nav > li > a:focus {\n color: #fff;\n background-color: transparent;\n}\n.navbar-inverse .navbar-nav > .active > a,\n.navbar-inverse .navbar-nav > .active > a:hover,\n.navbar-inverse .navbar-nav > .active > a:focus {\n color: #fff;\n background-color: #080808;\n}\n.navbar-inverse .navbar-nav > .disabled > a,\n.navbar-inverse .navbar-nav > .disabled > a:hover,\n.navbar-inverse .navbar-nav > .disabled > a:focus {\n color: #444;\n background-color: transparent;\n}\n.navbar-inverse .navbar-toggle {\n border-color: #333;\n}\n.navbar-inverse .navbar-toggle:hover,\n.navbar-inverse .navbar-toggle:focus {\n background-color: #333;\n}\n.navbar-inverse .navbar-toggle .icon-bar {\n background-color: #fff;\n}\n.navbar-inverse .navbar-collapse,\n.navbar-inverse .navbar-form {\n border-color: #101010;\n}\n.navbar-inverse .navbar-nav > .open > a,\n.navbar-inverse .navbar-nav > .open > a:hover,\n.navbar-inverse .navbar-nav > .open > a:focus {\n background-color: #080808;\n color: #fff;\n}\n@media (max-width: 767px) {\n .navbar-inverse .navbar-nav .open .dropdown-menu > .dropdown-header {\n border-color: #080808;\n }\n .navbar-inverse .navbar-nav .open .dropdown-menu .divider {\n background-color: #080808;\n }\n .navbar-inverse .navbar-nav .open .dropdown-menu > li > a {\n color: #9d9d9d;\n }\n .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover,\n .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus {\n color: #fff;\n background-color: transparent;\n }\n .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a,\n .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover,\n .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus {\n color: #fff;\n background-color: #080808;\n }\n .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a,\n .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:hover,\n .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:focus {\n color: #444;\n background-color: transparent;\n }\n}\n.navbar-inverse .navbar-link {\n color: #9d9d9d;\n}\n.navbar-inverse .navbar-link:hover {\n color: #fff;\n}\n.navbar-inverse .btn-link {\n color: #9d9d9d;\n}\n.navbar-inverse .btn-link:hover,\n.navbar-inverse .btn-link:focus {\n color: #fff;\n}\n.navbar-inverse .btn-link[disabled]:hover,\nfieldset[disabled] .navbar-inverse .btn-link:hover,\n.navbar-inverse .btn-link[disabled]:focus,\nfieldset[disabled] .navbar-inverse .btn-link:focus {\n color: #444;\n}\n.breadcrumb {\n padding: 8px 15px;\n margin-bottom: 20px;\n list-style: none;\n background-color: #f5f5f5;\n border-radius: 4px;\n}\n.breadcrumb > li {\n display: inline-block;\n}\n.breadcrumb > li + li:before {\n content: \"/\\00a0\";\n padding: 0 5px;\n color: #ccc;\n}\n.breadcrumb > .active {\n color: #777777;\n}\n.pagination {\n display: inline-block;\n padding-left: 0;\n margin: 20px 0;\n border-radius: 4px;\n}\n.pagination > li {\n display: inline;\n}\n.pagination > li > a,\n.pagination > li > span {\n position: relative;\n float: left;\n padding: 6px 12px;\n line-height: 1.42857143;\n text-decoration: none;\n color: #337ab7;\n background-color: #fff;\n border: 1px solid #ddd;\n margin-left: -1px;\n}\n.pagination > li:first-child > a,\n.pagination > li:first-child > span {\n margin-left: 0;\n border-bottom-left-radius: 4px;\n border-top-left-radius: 4px;\n}\n.pagination > li:last-child > a,\n.pagination > li:last-child > span {\n border-bottom-right-radius: 4px;\n border-top-right-radius: 4px;\n}\n.pagination > li > a:hover,\n.pagination > li > span:hover,\n.pagination > li > a:focus,\n.pagination > li > span:focus {\n z-index: 2;\n color: #23527c;\n background-color: #eeeeee;\n border-color: #ddd;\n}\n.pagination > .active > a,\n.pagination > .active > span,\n.pagination > .active > a:hover,\n.pagination > .active > span:hover,\n.pagination > .active > a:focus,\n.pagination > .active > span:focus {\n z-index: 3;\n color: #fff;\n background-color: #337ab7;\n border-color: #337ab7;\n cursor: default;\n}\n.pagination > .disabled > span,\n.pagination > .disabled > span:hover,\n.pagination > .disabled > span:focus,\n.pagination > .disabled > a,\n.pagination > .disabled > a:hover,\n.pagination > .disabled > a:focus {\n color: #777777;\n background-color: #fff;\n border-color: #ddd;\n cursor: not-allowed;\n}\n.pagination-lg > li > a,\n.pagination-lg > li > span {\n padding: 10px 16px;\n font-size: 18px;\n line-height: 1.3333333;\n}\n.pagination-lg > li:first-child > a,\n.pagination-lg > li:first-child > span {\n border-bottom-left-radius: 6px;\n border-top-left-radius: 6px;\n}\n.pagination-lg > li:last-child > a,\n.pagination-lg > li:last-child > span {\n border-bottom-right-radius: 6px;\n border-top-right-radius: 6px;\n}\n.pagination-sm > li > a,\n.pagination-sm > li > span {\n padding: 5px 10px;\n font-size: 12px;\n line-height: 1.5;\n}\n.pagination-sm > li:first-child > a,\n.pagination-sm > li:first-child > span {\n border-bottom-left-radius: 3px;\n border-top-left-radius: 3px;\n}\n.pagination-sm > li:last-child > a,\n.pagination-sm > li:last-child > span {\n border-bottom-right-radius: 3px;\n border-top-right-radius: 3px;\n}\n.pager {\n padding-left: 0;\n margin: 20px 0;\n list-style: none;\n text-align: center;\n}\n.pager li {\n display: inline;\n}\n.pager li > a,\n.pager li > span {\n display: inline-block;\n padding: 5px 14px;\n background-color: #fff;\n border: 1px solid #ddd;\n border-radius: 15px;\n}\n.pager li > a:hover,\n.pager li > a:focus {\n text-decoration: none;\n background-color: #eeeeee;\n}\n.pager .next > a,\n.pager .next > span {\n float: right;\n}\n.pager .previous > a,\n.pager .previous > span {\n float: left;\n}\n.pager .disabled > a,\n.pager .disabled > a:hover,\n.pager .disabled > a:focus,\n.pager .disabled > span {\n color: #777777;\n background-color: #fff;\n cursor: not-allowed;\n}\n.label {\n display: inline;\n padding: .2em .6em .3em;\n font-size: 75%;\n font-weight: bold;\n line-height: 1;\n color: #fff;\n text-align: center;\n white-space: nowrap;\n vertical-align: baseline;\n border-radius: .25em;\n}\na.label:hover,\na.label:focus {\n color: #fff;\n text-decoration: none;\n cursor: pointer;\n}\n.label:empty {\n display: none;\n}\n.btn .label {\n position: relative;\n top: -1px;\n}\n.label-default {\n background-color: #777777;\n}\n.label-default[href]:hover,\n.label-default[href]:focus {\n background-color: #5e5e5e;\n}\n.label-primary {\n background-color: #337ab7;\n}\n.label-primary[href]:hover,\n.label-primary[href]:focus {\n background-color: #286090;\n}\n.label-success {\n background-color: #5cb85c;\n}\n.label-success[href]:hover,\n.label-success[href]:focus {\n background-color: #449d44;\n}\n.label-info {\n background-color: #5bc0de;\n}\n.label-info[href]:hover,\n.label-info[href]:focus {\n background-color: #31b0d5;\n}\n.label-warning {\n background-color: #f0ad4e;\n}\n.label-warning[href]:hover,\n.label-warning[href]:focus {\n background-color: #ec971f;\n}\n.label-danger {\n background-color: #d9534f;\n}\n.label-danger[href]:hover,\n.label-danger[href]:focus {\n background-color: #c9302c;\n}\n.badge {\n display: inline-block;\n min-width: 10px;\n padding: 3px 7px;\n font-size: 12px;\n font-weight: bold;\n color: #fff;\n line-height: 1;\n vertical-align: middle;\n white-space: nowrap;\n text-align: center;\n background-color: #777777;\n border-radius: 10px;\n}\n.badge:empty {\n display: none;\n}\n.btn .badge {\n position: relative;\n top: -1px;\n}\n.btn-xs .badge,\n.btn-group-xs > .btn .badge {\n top: 0;\n padding: 1px 5px;\n}\na.badge:hover,\na.badge:focus {\n color: #fff;\n text-decoration: none;\n cursor: pointer;\n}\n.list-group-item.active > .badge,\n.nav-pills > .active > a > .badge {\n color: #337ab7;\n background-color: #fff;\n}\n.list-group-item > .badge {\n float: right;\n}\n.list-group-item > .badge + .badge {\n margin-right: 5px;\n}\n.nav-pills > li > a > .badge {\n margin-left: 3px;\n}\n.jumbotron {\n padding-top: 30px;\n padding-bottom: 30px;\n margin-bottom: 30px;\n color: inherit;\n background-color: #eeeeee;\n}\n.jumbotron h1,\n.jumbotron .h1 {\n color: inherit;\n}\n.jumbotron p {\n margin-bottom: 15px;\n font-size: 21px;\n font-weight: 200;\n}\n.jumbotron > hr {\n border-top-color: #d5d5d5;\n}\n.container .jumbotron,\n.container-fluid .jumbotron {\n border-radius: 6px;\n padding-left: 15px;\n padding-right: 15px;\n}\n.jumbotron .container {\n max-width: 100%;\n}\n@media screen and (min-width: 768px) {\n .jumbotron {\n padding-top: 48px;\n padding-bottom: 48px;\n }\n .container .jumbotron,\n .container-fluid .jumbotron {\n padding-left: 60px;\n padding-right: 60px;\n }\n .jumbotron h1,\n .jumbotron .h1 {\n font-size: 63px;\n }\n}\n.thumbnail {\n display: block;\n padding: 4px;\n margin-bottom: 20px;\n line-height: 1.42857143;\n background-color: #fff;\n border: 1px solid #ddd;\n border-radius: 4px;\n -webkit-transition: border 0.2s ease-in-out;\n -o-transition: border 0.2s ease-in-out;\n transition: border 0.2s ease-in-out;\n}\n.thumbnail > img,\n.thumbnail a > img {\n margin-left: auto;\n margin-right: auto;\n}\na.thumbnail:hover,\na.thumbnail:focus,\na.thumbnail.active {\n border-color: #337ab7;\n}\n.thumbnail .caption {\n padding: 9px;\n color: #333333;\n}\n.alert {\n padding: 15px;\n margin-bottom: 20px;\n border: 1px solid transparent;\n border-radius: 4px;\n}\n.alert h4 {\n margin-top: 0;\n color: inherit;\n}\n.alert .alert-link {\n font-weight: bold;\n}\n.alert > p,\n.alert > ul {\n margin-bottom: 0;\n}\n.alert > p + p {\n margin-top: 5px;\n}\n.alert-dismissable,\n.alert-dismissible {\n padding-right: 35px;\n}\n.alert-dismissable .close,\n.alert-dismissible .close {\n position: relative;\n top: -2px;\n right: -21px;\n color: inherit;\n}\n.alert-success {\n background-color: #dff0d8;\n border-color: #d6e9c6;\n color: #3c763d;\n}\n.alert-success hr {\n border-top-color: #c9e2b3;\n}\n.alert-success .alert-link {\n color: #2b542c;\n}\n.alert-info {\n background-color: #d9edf7;\n border-color: #bce8f1;\n color: #31708f;\n}\n.alert-info hr {\n border-top-color: #a6e1ec;\n}\n.alert-info .alert-link {\n color: #245269;\n}\n.alert-warning {\n background-color: #fcf8e3;\n border-color: #faebcc;\n color: #8a6d3b;\n}\n.alert-warning hr {\n border-top-color: #f7e1b5;\n}\n.alert-warning .alert-link {\n color: #66512c;\n}\n.alert-danger {\n background-color: #f2dede;\n border-color: #ebccd1;\n color: #a94442;\n}\n.alert-danger hr {\n border-top-color: #e4b9c0;\n}\n.alert-danger .alert-link {\n color: #843534;\n}\n@-webkit-keyframes progress-bar-stripes {\n from {\n background-position: 40px 0;\n }\n to {\n background-position: 0 0;\n }\n}\n@keyframes progress-bar-stripes {\n from {\n background-position: 40px 0;\n }\n to {\n background-position: 0 0;\n }\n}\n.progress {\n overflow: hidden;\n height: 20px;\n margin-bottom: 20px;\n background-color: #f5f5f5;\n border-radius: 4px;\n -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);\n}\n.progress-bar {\n float: left;\n width: 0%;\n height: 100%;\n font-size: 12px;\n line-height: 20px;\n color: #fff;\n text-align: center;\n background-color: #337ab7;\n -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);\n box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);\n -webkit-transition: width 0.6s ease;\n -o-transition: width 0.6s ease;\n transition: width 0.6s ease;\n}\n.progress-striped .progress-bar,\n.progress-bar-striped {\n background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-size: 40px 40px;\n}\n.progress.active .progress-bar,\n.progress-bar.active {\n -webkit-animation: progress-bar-stripes 2s linear infinite;\n -o-animation: progress-bar-stripes 2s linear infinite;\n animation: progress-bar-stripes 2s linear infinite;\n}\n.progress-bar-success {\n background-color: #5cb85c;\n}\n.progress-striped .progress-bar-success {\n background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n}\n.progress-bar-info {\n background-color: #5bc0de;\n}\n.progress-striped .progress-bar-info {\n background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n}\n.progress-bar-warning {\n background-color: #f0ad4e;\n}\n.progress-striped .progress-bar-warning {\n background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n}\n.progress-bar-danger {\n background-color: #d9534f;\n}\n.progress-striped .progress-bar-danger {\n background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n}\n.media {\n margin-top: 15px;\n}\n.media:first-child {\n margin-top: 0;\n}\n.media,\n.media-body {\n zoom: 1;\n overflow: hidden;\n}\n.media-body {\n width: 10000px;\n}\n.media-object {\n display: block;\n}\n.media-object.img-thumbnail {\n max-width: none;\n}\n.media-right,\n.media > .pull-right {\n padding-left: 10px;\n}\n.media-left,\n.media > .pull-left {\n padding-right: 10px;\n}\n.media-left,\n.media-right,\n.media-body {\n display: table-cell;\n vertical-align: top;\n}\n.media-middle {\n vertical-align: middle;\n}\n.media-bottom {\n vertical-align: bottom;\n}\n.media-heading {\n margin-top: 0;\n margin-bottom: 5px;\n}\n.media-list {\n padding-left: 0;\n list-style: none;\n}\n.list-group {\n margin-bottom: 20px;\n padding-left: 0;\n}\n.list-group-item {\n position: relative;\n display: block;\n padding: 10px 15px;\n margin-bottom: -1px;\n background-color: #fff;\n border: 1px solid #ddd;\n}\n.list-group-item:first-child {\n border-top-right-radius: 4px;\n border-top-left-radius: 4px;\n}\n.list-group-item:last-child {\n margin-bottom: 0;\n border-bottom-right-radius: 4px;\n border-bottom-left-radius: 4px;\n}\na.list-group-item,\nbutton.list-group-item {\n color: #555;\n}\na.list-group-item .list-group-item-heading,\nbutton.list-group-item .list-group-item-heading {\n color: #333;\n}\na.list-group-item:hover,\nbutton.list-group-item:hover,\na.list-group-item:focus,\nbutton.list-group-item:focus {\n text-decoration: none;\n color: #555;\n background-color: #f5f5f5;\n}\nbutton.list-group-item {\n width: 100%;\n text-align: left;\n}\n.list-group-item.disabled,\n.list-group-item.disabled:hover,\n.list-group-item.disabled:focus {\n background-color: #eeeeee;\n color: #777777;\n cursor: not-allowed;\n}\n.list-group-item.disabled .list-group-item-heading,\n.list-group-item.disabled:hover .list-group-item-heading,\n.list-group-item.disabled:focus .list-group-item-heading {\n color: inherit;\n}\n.list-group-item.disabled .list-group-item-text,\n.list-group-item.disabled:hover .list-group-item-text,\n.list-group-item.disabled:focus .list-group-item-text {\n color: #777777;\n}\n.list-group-item.active,\n.list-group-item.active:hover,\n.list-group-item.active:focus {\n z-index: 2;\n color: #fff;\n background-color: #337ab7;\n border-color: #337ab7;\n}\n.list-group-item.active .list-group-item-heading,\n.list-group-item.active:hover .list-group-item-heading,\n.list-group-item.active:focus .list-group-item-heading,\n.list-group-item.active .list-group-item-heading > small,\n.list-group-item.active:hover .list-group-item-heading > small,\n.list-group-item.active:focus .list-group-item-heading > small,\n.list-group-item.active .list-group-item-heading > .small,\n.list-group-item.active:hover .list-group-item-heading > .small,\n.list-group-item.active:focus .list-group-item-heading > .small {\n color: inherit;\n}\n.list-group-item.active .list-group-item-text,\n.list-group-item.active:hover .list-group-item-text,\n.list-group-item.active:focus .list-group-item-text {\n color: #c7ddef;\n}\n.list-group-item-success {\n color: #3c763d;\n background-color: #dff0d8;\n}\na.list-group-item-success,\nbutton.list-group-item-success {\n color: #3c763d;\n}\na.list-group-item-success .list-group-item-heading,\nbutton.list-group-item-success .list-group-item-heading {\n color: inherit;\n}\na.list-group-item-success:hover,\nbutton.list-group-item-success:hover,\na.list-group-item-success:focus,\nbutton.list-group-item-success:focus {\n color: #3c763d;\n background-color: #d0e9c6;\n}\na.list-group-item-success.active,\nbutton.list-group-item-success.active,\na.list-group-item-success.active:hover,\nbutton.list-group-item-success.active:hover,\na.list-group-item-success.active:focus,\nbutton.list-group-item-success.active:focus {\n color: #fff;\n background-color: #3c763d;\n border-color: #3c763d;\n}\n.list-group-item-info {\n color: #31708f;\n background-color: #d9edf7;\n}\na.list-group-item-info,\nbutton.list-group-item-info {\n color: #31708f;\n}\na.list-group-item-info .list-group-item-heading,\nbutton.list-group-item-info .list-group-item-heading {\n color: inherit;\n}\na.list-group-item-info:hover,\nbutton.list-group-item-info:hover,\na.list-group-item-info:focus,\nbutton.list-group-item-info:focus {\n color: #31708f;\n background-color: #c4e3f3;\n}\na.list-group-item-info.active,\nbutton.list-group-item-info.active,\na.list-group-item-info.active:hover,\nbutton.list-group-item-info.active:hover,\na.list-group-item-info.active:focus,\nbutton.list-group-item-info.active:focus {\n color: #fff;\n background-color: #31708f;\n border-color: #31708f;\n}\n.list-group-item-warning {\n color: #8a6d3b;\n background-color: #fcf8e3;\n}\na.list-group-item-warning,\nbutton.list-group-item-warning {\n color: #8a6d3b;\n}\na.list-group-item-warning .list-group-item-heading,\nbutton.list-group-item-warning .list-group-item-heading {\n color: inherit;\n}\na.list-group-item-warning:hover,\nbutton.list-group-item-warning:hover,\na.list-group-item-warning:focus,\nbutton.list-group-item-warning:focus {\n color: #8a6d3b;\n background-color: #faf2cc;\n}\na.list-group-item-warning.active,\nbutton.list-group-item-warning.active,\na.list-group-item-warning.active:hover,\nbutton.list-group-item-warning.active:hover,\na.list-group-item-warning.active:focus,\nbutton.list-group-item-warning.active:focus {\n color: #fff;\n background-color: #8a6d3b;\n border-color: #8a6d3b;\n}\n.list-group-item-danger {\n color: #a94442;\n background-color: #f2dede;\n}\na.list-group-item-danger,\nbutton.list-group-item-danger {\n color: #a94442;\n}\na.list-group-item-danger .list-group-item-heading,\nbutton.list-group-item-danger .list-group-item-heading {\n color: inherit;\n}\na.list-group-item-danger:hover,\nbutton.list-group-item-danger:hover,\na.list-group-item-danger:focus,\nbutton.list-group-item-danger:focus {\n color: #a94442;\n background-color: #ebcccc;\n}\na.list-group-item-danger.active,\nbutton.list-group-item-danger.active,\na.list-group-item-danger.active:hover,\nbutton.list-group-item-danger.active:hover,\na.list-group-item-danger.active:focus,\nbutton.list-group-item-danger.active:focus {\n color: #fff;\n background-color: #a94442;\n border-color: #a94442;\n}\n.list-group-item-heading {\n margin-top: 0;\n margin-bottom: 5px;\n}\n.list-group-item-text {\n margin-bottom: 0;\n line-height: 1.3;\n}\n.panel {\n margin-bottom: 20px;\n background-color: #fff;\n border: 1px solid transparent;\n border-radius: 4px;\n -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);\n box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);\n}\n.panel-body {\n padding: 15px;\n}\n.panel-heading {\n padding: 10px 15px;\n border-bottom: 1px solid transparent;\n border-top-right-radius: 3px;\n border-top-left-radius: 3px;\n}\n.panel-heading > .dropdown .dropdown-toggle {\n color: inherit;\n}\n.panel-title {\n margin-top: 0;\n margin-bottom: 0;\n font-size: 16px;\n color: inherit;\n}\n.panel-title > a,\n.panel-title > small,\n.panel-title > .small,\n.panel-title > small > a,\n.panel-title > .small > a {\n color: inherit;\n}\n.panel-footer {\n padding: 10px 15px;\n background-color: #f5f5f5;\n border-top: 1px solid #ddd;\n border-bottom-right-radius: 3px;\n border-bottom-left-radius: 3px;\n}\n.panel > .list-group,\n.panel > .panel-collapse > .list-group {\n margin-bottom: 0;\n}\n.panel > .list-group .list-group-item,\n.panel > .panel-collapse > .list-group .list-group-item {\n border-width: 1px 0;\n border-radius: 0;\n}\n.panel > .list-group:first-child .list-group-item:first-child,\n.panel > .panel-collapse > .list-group:first-child .list-group-item:first-child {\n border-top: 0;\n border-top-right-radius: 3px;\n border-top-left-radius: 3px;\n}\n.panel > .list-group:last-child .list-group-item:last-child,\n.panel > .panel-collapse > .list-group:last-child .list-group-item:last-child {\n border-bottom: 0;\n border-bottom-right-radius: 3px;\n border-bottom-left-radius: 3px;\n}\n.panel > .panel-heading + .panel-collapse > .list-group .list-group-item:first-child {\n border-top-right-radius: 0;\n border-top-left-radius: 0;\n}\n.panel-heading + .list-group .list-group-item:first-child {\n border-top-width: 0;\n}\n.list-group + .panel-footer {\n border-top-width: 0;\n}\n.panel > .table,\n.panel > .table-responsive > .table,\n.panel > .panel-collapse > .table {\n margin-bottom: 0;\n}\n.panel > .table caption,\n.panel > .table-responsive > .table caption,\n.panel > .panel-collapse > .table caption {\n padding-left: 15px;\n padding-right: 15px;\n}\n.panel > .table:first-child,\n.panel > .table-responsive:first-child > .table:first-child {\n border-top-right-radius: 3px;\n border-top-left-radius: 3px;\n}\n.panel > .table:first-child > thead:first-child > tr:first-child,\n.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child,\n.panel > .table:first-child > tbody:first-child > tr:first-child,\n.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child {\n border-top-left-radius: 3px;\n border-top-right-radius: 3px;\n}\n.panel > .table:first-child > thead:first-child > tr:first-child td:first-child,\n.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:first-child,\n.panel > .table:first-child > tbody:first-child > tr:first-child td:first-child,\n.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:first-child,\n.panel > .table:first-child > thead:first-child > tr:first-child th:first-child,\n.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:first-child,\n.panel > .table:first-child > tbody:first-child > tr:first-child th:first-child,\n.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:first-child {\n border-top-left-radius: 3px;\n}\n.panel > .table:first-child > thead:first-child > tr:first-child td:last-child,\n.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:last-child,\n.panel > .table:first-child > tbody:first-child > tr:first-child td:last-child,\n.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:last-child,\n.panel > .table:first-child > thead:first-child > tr:first-child th:last-child,\n.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:last-child,\n.panel > .table:first-child > tbody:first-child > tr:first-child th:last-child,\n.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:last-child {\n border-top-right-radius: 3px;\n}\n.panel > .table:last-child,\n.panel > .table-responsive:last-child > .table:last-child {\n border-bottom-right-radius: 3px;\n border-bottom-left-radius: 3px;\n}\n.panel > .table:last-child > tbody:last-child > tr:last-child,\n.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child,\n.panel > .table:last-child > tfoot:last-child > tr:last-child,\n.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child {\n border-bottom-left-radius: 3px;\n border-bottom-right-radius: 3px;\n}\n.panel > .table:last-child > tbody:last-child > tr:last-child td:first-child,\n.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:first-child,\n.panel > .table:last-child > tfoot:last-child > tr:last-child td:first-child,\n.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:first-child,\n.panel > .table:last-child > tbody:last-child > tr:last-child th:first-child,\n.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:first-child,\n.panel > .table:last-child > tfoot:last-child > tr:last-child th:first-child,\n.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:first-child {\n border-bottom-left-radius: 3px;\n}\n.panel > .table:last-child > tbody:last-child > tr:last-child td:last-child,\n.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:last-child,\n.panel > .table:last-child > tfoot:last-child > tr:last-child td:last-child,\n.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:last-child,\n.panel > .table:last-child > tbody:last-child > tr:last-child th:last-child,\n.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:last-child,\n.panel > .table:last-child > tfoot:last-child > tr:last-child th:last-child,\n.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:last-child {\n border-bottom-right-radius: 3px;\n}\n.panel > .panel-body + .table,\n.panel > .panel-body + .table-responsive,\n.panel > .table + .panel-body,\n.panel > .table-responsive + .panel-body {\n border-top: 1px solid #ddd;\n}\n.panel > .table > tbody:first-child > tr:first-child th,\n.panel > .table > tbody:first-child > tr:first-child td {\n border-top: 0;\n}\n.panel > .table-bordered,\n.panel > .table-responsive > .table-bordered {\n border: 0;\n}\n.panel > .table-bordered > thead > tr > th:first-child,\n.panel > .table-responsive > .table-bordered > thead > tr > th:first-child,\n.panel > .table-bordered > tbody > tr > th:first-child,\n.panel > .table-responsive > .table-bordered > tbody > tr > th:first-child,\n.panel > .table-bordered > tfoot > tr > th:first-child,\n.panel > .table-responsive > .table-bordered > tfoot > tr > th:first-child,\n.panel > .table-bordered > thead > tr > td:first-child,\n.panel > .table-responsive > .table-bordered > thead > tr > td:first-child,\n.panel > .table-bordered > tbody > tr > td:first-child,\n.panel > .table-responsive > .table-bordered > tbody > tr > td:first-child,\n.panel > .table-bordered > tfoot > tr > td:first-child,\n.panel > .table-responsive > .table-bordered > tfoot > tr > td:first-child {\n border-left: 0;\n}\n.panel > .table-bordered > thead > tr > th:last-child,\n.panel > .table-responsive > .table-bordered > thead > tr > th:last-child,\n.panel > .table-bordered > tbody > tr > th:last-child,\n.panel > .table-responsive > .table-bordered > tbody > tr > th:last-child,\n.panel > .table-bordered > tfoot > tr > th:last-child,\n.panel > .table-responsive > .table-bordered > tfoot > tr > th:last-child,\n.panel > .table-bordered > thead > tr > td:last-child,\n.panel > .table-responsive > .table-bordered > thead > tr > td:last-child,\n.panel > .table-bordered > tbody > tr > td:last-child,\n.panel > .table-responsive > .table-bordered > tbody > tr > td:last-child,\n.panel > .table-bordered > tfoot > tr > td:last-child,\n.panel > .table-responsive > .table-bordered > tfoot > tr > td:last-child {\n border-right: 0;\n}\n.panel > .table-bordered > thead > tr:first-child > td,\n.panel > .table-responsive > .table-bordered > thead > tr:first-child > td,\n.panel > .table-bordered > tbody > tr:first-child > td,\n.panel > .table-responsive > .table-bordered > tbody > tr:first-child > td,\n.panel > .table-bordered > thead > tr:first-child > th,\n.panel > .table-responsive > .table-bordered > thead > tr:first-child > th,\n.panel > .table-bordered > tbody > tr:first-child > th,\n.panel > .table-responsive > .table-bordered > tbody > tr:first-child > th {\n border-bottom: 0;\n}\n.panel > .table-bordered > tbody > tr:last-child > td,\n.panel > .table-responsive > .table-bordered > tbody > tr:last-child > td,\n.panel > .table-bordered > tfoot > tr:last-child > td,\n.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > td,\n.panel > .table-bordered > tbody > tr:last-child > th,\n.panel > .table-responsive > .table-bordered > tbody > tr:last-child > th,\n.panel > .table-bordered > tfoot > tr:last-child > th,\n.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > th {\n border-bottom: 0;\n}\n.panel > .table-responsive {\n border: 0;\n margin-bottom: 0;\n}\n.panel-group {\n margin-bottom: 20px;\n}\n.panel-group .panel {\n margin-bottom: 0;\n border-radius: 4px;\n}\n.panel-group .panel + .panel {\n margin-top: 5px;\n}\n.panel-group .panel-heading {\n border-bottom: 0;\n}\n.panel-group .panel-heading + .panel-collapse > .panel-body,\n.panel-group .panel-heading + .panel-collapse > .list-group {\n border-top: 1px solid #ddd;\n}\n.panel-group .panel-footer {\n border-top: 0;\n}\n.panel-group .panel-footer + .panel-collapse .panel-body {\n border-bottom: 1px solid #ddd;\n}\n.panel-default {\n border-color: #ddd;\n}\n.panel-default > .panel-heading {\n color: #333333;\n background-color: #f5f5f5;\n border-color: #ddd;\n}\n.panel-default > .panel-heading + .panel-collapse > .panel-body {\n border-top-color: #ddd;\n}\n.panel-default > .panel-heading .badge {\n color: #f5f5f5;\n background-color: #333333;\n}\n.panel-default > .panel-footer + .panel-collapse > .panel-body {\n border-bottom-color: #ddd;\n}\n.panel-primary {\n border-color: #337ab7;\n}\n.panel-primary > .panel-heading {\n color: #fff;\n background-color: #337ab7;\n border-color: #337ab7;\n}\n.panel-primary > .panel-heading + .panel-collapse > .panel-body {\n border-top-color: #337ab7;\n}\n.panel-primary > .panel-heading .badge {\n color: #337ab7;\n background-color: #fff;\n}\n.panel-primary > .panel-footer + .panel-collapse > .panel-body {\n border-bottom-color: #337ab7;\n}\n.panel-success {\n border-color: #d6e9c6;\n}\n.panel-success > .panel-heading {\n color: #3c763d;\n background-color: #dff0d8;\n border-color: #d6e9c6;\n}\n.panel-success > .panel-heading + .panel-collapse > .panel-body {\n border-top-color: #d6e9c6;\n}\n.panel-success > .panel-heading .badge {\n color: #dff0d8;\n background-color: #3c763d;\n}\n.panel-success > .panel-footer + .panel-collapse > .panel-body {\n border-bottom-color: #d6e9c6;\n}\n.panel-info {\n border-color: #bce8f1;\n}\n.panel-info > .panel-heading {\n color: #31708f;\n background-color: #d9edf7;\n border-color: #bce8f1;\n}\n.panel-info > .panel-heading + .panel-collapse > .panel-body {\n border-top-color: #bce8f1;\n}\n.panel-info > .panel-heading .badge {\n color: #d9edf7;\n background-color: #31708f;\n}\n.panel-info > .panel-footer + .panel-collapse > .panel-body {\n border-bottom-color: #bce8f1;\n}\n.panel-warning {\n border-color: #faebcc;\n}\n.panel-warning > .panel-heading {\n color: #8a6d3b;\n background-color: #fcf8e3;\n border-color: #faebcc;\n}\n.panel-warning > .panel-heading + .panel-collapse > .panel-body {\n border-top-color: #faebcc;\n}\n.panel-warning > .panel-heading .badge {\n color: #fcf8e3;\n background-color: #8a6d3b;\n}\n.panel-warning > .panel-footer + .panel-collapse > .panel-body {\n border-bottom-color: #faebcc;\n}\n.panel-danger {\n border-color: #ebccd1;\n}\n.panel-danger > .panel-heading {\n color: #a94442;\n background-color: #f2dede;\n border-color: #ebccd1;\n}\n.panel-danger > .panel-heading + .panel-collapse > .panel-body {\n border-top-color: #ebccd1;\n}\n.panel-danger > .panel-heading .badge {\n color: #f2dede;\n background-color: #a94442;\n}\n.panel-danger > .panel-footer + .panel-collapse > .panel-body {\n border-bottom-color: #ebccd1;\n}\n.embed-responsive {\n position: relative;\n display: block;\n height: 0;\n padding: 0;\n overflow: hidden;\n}\n.embed-responsive .embed-responsive-item,\n.embed-responsive iframe,\n.embed-responsive embed,\n.embed-responsive object,\n.embed-responsive video {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n height: 100%;\n width: 100%;\n border: 0;\n}\n.embed-responsive-16by9 {\n padding-bottom: 56.25%;\n}\n.embed-responsive-4by3 {\n padding-bottom: 75%;\n}\n.well {\n min-height: 20px;\n padding: 19px;\n margin-bottom: 20px;\n background-color: #f5f5f5;\n border: 1px solid #e3e3e3;\n border-radius: 4px;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);\n}\n.well blockquote {\n border-color: #ddd;\n border-color: rgba(0, 0, 0, 0.15);\n}\n.well-lg {\n padding: 24px;\n border-radius: 6px;\n}\n.well-sm {\n padding: 9px;\n border-radius: 3px;\n}\n.close {\n float: right;\n font-size: 21px;\n font-weight: bold;\n line-height: 1;\n color: #000;\n text-shadow: 0 1px 0 #fff;\n opacity: 0.2;\n filter: alpha(opacity=20);\n}\n.close:hover,\n.close:focus {\n color: #000;\n text-decoration: none;\n cursor: pointer;\n opacity: 0.5;\n filter: alpha(opacity=50);\n}\nbutton.close {\n padding: 0;\n cursor: pointer;\n background: transparent;\n border: 0;\n -webkit-appearance: none;\n}\n.modal-open {\n overflow: hidden;\n}\n.modal {\n display: none;\n overflow: hidden;\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1050;\n -webkit-overflow-scrolling: touch;\n outline: 0;\n}\n.modal.fade .modal-dialog {\n -webkit-transform: translate(0, -25%);\n -ms-transform: translate(0, -25%);\n -o-transform: translate(0, -25%);\n transform: translate(0, -25%);\n -webkit-transition: -webkit-transform 0.3s ease-out;\n -moz-transition: -moz-transform 0.3s ease-out;\n -o-transition: -o-transform 0.3s ease-out;\n transition: transform 0.3s ease-out;\n}\n.modal.in .modal-dialog {\n -webkit-transform: translate(0, 0);\n -ms-transform: translate(0, 0);\n -o-transform: translate(0, 0);\n transform: translate(0, 0);\n}\n.modal-open .modal {\n overflow-x: hidden;\n overflow-y: auto;\n}\n.modal-dialog {\n position: relative;\n width: auto;\n margin: 10px;\n}\n.modal-content {\n position: relative;\n background-color: #fff;\n border: 1px solid #999;\n border: 1px solid rgba(0, 0, 0, 0.2);\n border-radius: 6px;\n -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);\n box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);\n background-clip: padding-box;\n outline: 0;\n}\n.modal-backdrop {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1040;\n background-color: #000;\n}\n.modal-backdrop.fade {\n opacity: 0;\n filter: alpha(opacity=0);\n}\n.modal-backdrop.in {\n opacity: 0.5;\n filter: alpha(opacity=50);\n}\n.modal-header {\n padding: 15px;\n border-bottom: 1px solid #e5e5e5;\n}\n.modal-header .close {\n margin-top: -2px;\n}\n.modal-title {\n margin: 0;\n line-height: 1.42857143;\n}\n.modal-body {\n position: relative;\n padding: 15px;\n}\n.modal-footer {\n padding: 15px;\n text-align: right;\n border-top: 1px solid #e5e5e5;\n}\n.modal-footer .btn + .btn {\n margin-left: 5px;\n margin-bottom: 0;\n}\n.modal-footer .btn-group .btn + .btn {\n margin-left: -1px;\n}\n.modal-footer .btn-block + .btn-block {\n margin-left: 0;\n}\n.modal-scrollbar-measure {\n position: absolute;\n top: -9999px;\n width: 50px;\n height: 50px;\n overflow: scroll;\n}\n@media (min-width: 768px) {\n .modal-dialog {\n width: 600px;\n margin: 30px auto;\n }\n .modal-content {\n -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);\n box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);\n }\n .modal-sm {\n width: 300px;\n }\n}\n@media (min-width: 992px) {\n .modal-lg {\n width: 900px;\n }\n}\n.tooltip {\n position: absolute;\n z-index: 1070;\n display: block;\n font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n font-style: normal;\n font-weight: normal;\n letter-spacing: normal;\n line-break: auto;\n line-height: 1.42857143;\n text-align: left;\n text-align: start;\n text-decoration: none;\n text-shadow: none;\n text-transform: none;\n white-space: normal;\n word-break: normal;\n word-spacing: normal;\n word-wrap: normal;\n font-size: 12px;\n opacity: 0;\n filter: alpha(opacity=0);\n}\n.tooltip.in {\n opacity: 0.9;\n filter: alpha(opacity=90);\n}\n.tooltip.top {\n margin-top: -3px;\n padding: 5px 0;\n}\n.tooltip.right {\n margin-left: 3px;\n padding: 0 5px;\n}\n.tooltip.bottom {\n margin-top: 3px;\n padding: 5px 0;\n}\n.tooltip.left {\n margin-left: -3px;\n padding: 0 5px;\n}\n.tooltip-inner {\n max-width: 200px;\n padding: 3px 8px;\n color: #fff;\n text-align: center;\n background-color: #000;\n border-radius: 4px;\n}\n.tooltip-arrow {\n position: absolute;\n width: 0;\n height: 0;\n border-color: transparent;\n border-style: solid;\n}\n.tooltip.top .tooltip-arrow {\n bottom: 0;\n left: 50%;\n margin-left: -5px;\n border-width: 5px 5px 0;\n border-top-color: #000;\n}\n.tooltip.top-left .tooltip-arrow {\n bottom: 0;\n right: 5px;\n margin-bottom: -5px;\n border-width: 5px 5px 0;\n border-top-color: #000;\n}\n.tooltip.top-right .tooltip-arrow {\n bottom: 0;\n left: 5px;\n margin-bottom: -5px;\n border-width: 5px 5px 0;\n border-top-color: #000;\n}\n.tooltip.right .tooltip-arrow {\n top: 50%;\n left: 0;\n margin-top: -5px;\n border-width: 5px 5px 5px 0;\n border-right-color: #000;\n}\n.tooltip.left .tooltip-arrow {\n top: 50%;\n right: 0;\n margin-top: -5px;\n border-width: 5px 0 5px 5px;\n border-left-color: #000;\n}\n.tooltip.bottom .tooltip-arrow {\n top: 0;\n left: 50%;\n margin-left: -5px;\n border-width: 0 5px 5px;\n border-bottom-color: #000;\n}\n.tooltip.bottom-left .tooltip-arrow {\n top: 0;\n right: 5px;\n margin-top: -5px;\n border-width: 0 5px 5px;\n border-bottom-color: #000;\n}\n.tooltip.bottom-right .tooltip-arrow {\n top: 0;\n left: 5px;\n margin-top: -5px;\n border-width: 0 5px 5px;\n border-bottom-color: #000;\n}\n.popover {\n position: absolute;\n top: 0;\n left: 0;\n z-index: 1060;\n display: none;\n max-width: 276px;\n padding: 1px;\n font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n font-style: normal;\n font-weight: normal;\n letter-spacing: normal;\n line-break: auto;\n line-height: 1.42857143;\n text-align: left;\n text-align: start;\n text-decoration: none;\n text-shadow: none;\n text-transform: none;\n white-space: normal;\n word-break: normal;\n word-spacing: normal;\n word-wrap: normal;\n font-size: 14px;\n background-color: #fff;\n background-clip: padding-box;\n border: 1px solid #ccc;\n border: 1px solid rgba(0, 0, 0, 0.2);\n border-radius: 6px;\n -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);\n box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);\n}\n.popover.top {\n margin-top: -10px;\n}\n.popover.right {\n margin-left: 10px;\n}\n.popover.bottom {\n margin-top: 10px;\n}\n.popover.left {\n margin-left: -10px;\n}\n.popover-title {\n margin: 0;\n padding: 8px 14px;\n font-size: 14px;\n background-color: #f7f7f7;\n border-bottom: 1px solid #ebebeb;\n border-radius: 5px 5px 0 0;\n}\n.popover-content {\n padding: 9px 14px;\n}\n.popover > .arrow,\n.popover > .arrow:after {\n position: absolute;\n display: block;\n width: 0;\n height: 0;\n border-color: transparent;\n border-style: solid;\n}\n.popover > .arrow {\n border-width: 11px;\n}\n.popover > .arrow:after {\n border-width: 10px;\n content: \"\";\n}\n.popover.top > .arrow {\n left: 50%;\n margin-left: -11px;\n border-bottom-width: 0;\n border-top-color: #999999;\n border-top-color: rgba(0, 0, 0, 0.25);\n bottom: -11px;\n}\n.popover.top > .arrow:after {\n content: \" \";\n bottom: 1px;\n margin-left: -10px;\n border-bottom-width: 0;\n border-top-color: #fff;\n}\n.popover.right > .arrow {\n top: 50%;\n left: -11px;\n margin-top: -11px;\n border-left-width: 0;\n border-right-color: #999999;\n border-right-color: rgba(0, 0, 0, 0.25);\n}\n.popover.right > .arrow:after {\n content: \" \";\n left: 1px;\n bottom: -10px;\n border-left-width: 0;\n border-right-color: #fff;\n}\n.popover.bottom > .arrow {\n left: 50%;\n margin-left: -11px;\n border-top-width: 0;\n border-bottom-color: #999999;\n border-bottom-color: rgba(0, 0, 0, 0.25);\n top: -11px;\n}\n.popover.bottom > .arrow:after {\n content: \" \";\n top: 1px;\n margin-left: -10px;\n border-top-width: 0;\n border-bottom-color: #fff;\n}\n.popover.left > .arrow {\n top: 50%;\n right: -11px;\n margin-top: -11px;\n border-right-width: 0;\n border-left-color: #999999;\n border-left-color: rgba(0, 0, 0, 0.25);\n}\n.popover.left > .arrow:after {\n content: \" \";\n right: 1px;\n border-right-width: 0;\n border-left-color: #fff;\n bottom: -10px;\n}\n.carousel {\n position: relative;\n}\n.carousel-inner {\n position: relative;\n overflow: hidden;\n width: 100%;\n}\n.carousel-inner > .item {\n display: none;\n position: relative;\n -webkit-transition: 0.6s ease-in-out left;\n -o-transition: 0.6s ease-in-out left;\n transition: 0.6s ease-in-out left;\n}\n.carousel-inner > .item > img,\n.carousel-inner > .item > a > img {\n line-height: 1;\n}\n@media all and (transform-3d), (-webkit-transform-3d) {\n .carousel-inner > .item {\n -webkit-transition: -webkit-transform 0.6s ease-in-out;\n -moz-transition: -moz-transform 0.6s ease-in-out;\n -o-transition: -o-transform 0.6s ease-in-out;\n transition: transform 0.6s ease-in-out;\n -webkit-backface-visibility: hidden;\n -moz-backface-visibility: hidden;\n backface-visibility: hidden;\n -webkit-perspective: 1000px;\n -moz-perspective: 1000px;\n perspective: 1000px;\n }\n .carousel-inner > .item.next,\n .carousel-inner > .item.active.right {\n -webkit-transform: translate3d(100%, 0, 0);\n transform: translate3d(100%, 0, 0);\n left: 0;\n }\n .carousel-inner > .item.prev,\n .carousel-inner > .item.active.left {\n -webkit-transform: translate3d(-100%, 0, 0);\n transform: translate3d(-100%, 0, 0);\n left: 0;\n }\n .carousel-inner > .item.next.left,\n .carousel-inner > .item.prev.right,\n .carousel-inner > .item.active {\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n left: 0;\n }\n}\n.carousel-inner > .active,\n.carousel-inner > .next,\n.carousel-inner > .prev {\n display: block;\n}\n.carousel-inner > .active {\n left: 0;\n}\n.carousel-inner > .next,\n.carousel-inner > .prev {\n position: absolute;\n top: 0;\n width: 100%;\n}\n.carousel-inner > .next {\n left: 100%;\n}\n.carousel-inner > .prev {\n left: -100%;\n}\n.carousel-inner > .next.left,\n.carousel-inner > .prev.right {\n left: 0;\n}\n.carousel-inner > .active.left {\n left: -100%;\n}\n.carousel-inner > .active.right {\n left: 100%;\n}\n.carousel-control {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 15%;\n opacity: 0.5;\n filter: alpha(opacity=50);\n font-size: 20px;\n color: #fff;\n text-align: center;\n text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);\n background-color: rgba(0, 0, 0, 0);\n}\n.carousel-control.left {\n background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%);\n background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%);\n background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1);\n}\n.carousel-control.right {\n left: auto;\n right: 0;\n background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%);\n background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%);\n background-image: linear-gradient(to right, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1);\n}\n.carousel-control:hover,\n.carousel-control:focus {\n outline: 0;\n color: #fff;\n text-decoration: none;\n opacity: 0.9;\n filter: alpha(opacity=90);\n}\n.carousel-control .icon-prev,\n.carousel-control .icon-next,\n.carousel-control .glyphicon-chevron-left,\n.carousel-control .glyphicon-chevron-right {\n position: absolute;\n top: 50%;\n margin-top: -10px;\n z-index: 5;\n display: inline-block;\n}\n.carousel-control .icon-prev,\n.carousel-control .glyphicon-chevron-left {\n left: 50%;\n margin-left: -10px;\n}\n.carousel-control .icon-next,\n.carousel-control .glyphicon-chevron-right {\n right: 50%;\n margin-right: -10px;\n}\n.carousel-control .icon-prev,\n.carousel-control .icon-next {\n width: 20px;\n height: 20px;\n line-height: 1;\n font-family: serif;\n}\n.carousel-control .icon-prev:before {\n content: '\\2039';\n}\n.carousel-control .icon-next:before {\n content: '\\203a';\n}\n.carousel-indicators {\n position: absolute;\n bottom: 10px;\n left: 50%;\n z-index: 15;\n width: 60%;\n margin-left: -30%;\n padding-left: 0;\n list-style: none;\n text-align: center;\n}\n.carousel-indicators li {\n display: inline-block;\n width: 10px;\n height: 10px;\n margin: 1px;\n text-indent: -999px;\n border: 1px solid #fff;\n border-radius: 10px;\n cursor: pointer;\n background-color: #000 \\9;\n background-color: rgba(0, 0, 0, 0);\n}\n.carousel-indicators .active {\n margin: 0;\n width: 12px;\n height: 12px;\n background-color: #fff;\n}\n.carousel-caption {\n position: absolute;\n left: 15%;\n right: 15%;\n bottom: 20px;\n z-index: 10;\n padding-top: 20px;\n padding-bottom: 20px;\n color: #fff;\n text-align: center;\n text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);\n}\n.carousel-caption .btn {\n text-shadow: none;\n}\n@media screen and (min-width: 768px) {\n .carousel-control .glyphicon-chevron-left,\n .carousel-control .glyphicon-chevron-right,\n .carousel-control .icon-prev,\n .carousel-control .icon-next {\n width: 30px;\n height: 30px;\n margin-top: -10px;\n font-size: 30px;\n }\n .carousel-control .glyphicon-chevron-left,\n .carousel-control .icon-prev {\n margin-left: -10px;\n }\n .carousel-control .glyphicon-chevron-right,\n .carousel-control .icon-next {\n margin-right: -10px;\n }\n .carousel-caption {\n left: 20%;\n right: 20%;\n padding-bottom: 30px;\n }\n .carousel-indicators {\n bottom: 20px;\n }\n}\n.clearfix:before,\n.clearfix:after,\n.dl-horizontal dd:before,\n.dl-horizontal dd:after,\n.container:before,\n.container:after,\n.container-fluid:before,\n.container-fluid:after,\n.row:before,\n.row:after,\n.form-horizontal .form-group:before,\n.form-horizontal .form-group:after,\n.btn-toolbar:before,\n.btn-toolbar:after,\n.btn-group-vertical > .btn-group:before,\n.btn-group-vertical > .btn-group:after,\n.nav:before,\n.nav:after,\n.navbar:before,\n.navbar:after,\n.navbar-header:before,\n.navbar-header:after,\n.navbar-collapse:before,\n.navbar-collapse:after,\n.pager:before,\n.pager:after,\n.panel-body:before,\n.panel-body:after,\n.modal-header:before,\n.modal-header:after,\n.modal-footer:before,\n.modal-footer:after {\n content: \" \";\n display: table;\n}\n.clearfix:after,\n.dl-horizontal dd:after,\n.container:after,\n.container-fluid:after,\n.row:after,\n.form-horizontal .form-group:after,\n.btn-toolbar:after,\n.btn-group-vertical > .btn-group:after,\n.nav:after,\n.navbar:after,\n.navbar-header:after,\n.navbar-collapse:after,\n.pager:after,\n.panel-body:after,\n.modal-header:after,\n.modal-footer:after {\n clear: both;\n}\n.center-block {\n display: block;\n margin-left: auto;\n margin-right: auto;\n}\n.pull-right {\n float: right !important;\n}\n.pull-left {\n float: left !important;\n}\n.hide {\n display: none !important;\n}\n.show {\n display: block !important;\n}\n.invisible {\n visibility: hidden;\n}\n.text-hide {\n font: 0/0 a;\n color: transparent;\n text-shadow: none;\n background-color: transparent;\n border: 0;\n}\n.hidden {\n display: none !important;\n}\n.affix {\n position: fixed;\n}\n@-ms-viewport {\n width: device-width;\n}\n.visible-xs,\n.visible-sm,\n.visible-md,\n.visible-lg {\n display: none !important;\n}\n.visible-xs-block,\n.visible-xs-inline,\n.visible-xs-inline-block,\n.visible-sm-block,\n.visible-sm-inline,\n.visible-sm-inline-block,\n.visible-md-block,\n.visible-md-inline,\n.visible-md-inline-block,\n.visible-lg-block,\n.visible-lg-inline,\n.visible-lg-inline-block {\n display: none !important;\n}\n@media (max-width: 767px) {\n .visible-xs {\n display: block !important;\n }\n table.visible-xs {\n display: table !important;\n }\n tr.visible-xs {\n display: table-row !important;\n }\n th.visible-xs,\n td.visible-xs {\n display: table-cell !important;\n }\n}\n@media (max-width: 767px) {\n .visible-xs-block {\n display: block !important;\n }\n}\n@media (max-width: 767px) {\n .visible-xs-inline {\n display: inline !important;\n }\n}\n@media (max-width: 767px) {\n .visible-xs-inline-block {\n display: inline-block !important;\n }\n}\n@media (min-width: 768px) and (max-width: 991px) {\n .visible-sm {\n display: block !important;\n }\n table.visible-sm {\n display: table !important;\n }\n tr.visible-sm {\n display: table-row !important;\n }\n th.visible-sm,\n td.visible-sm {\n display: table-cell !important;\n }\n}\n@media (min-width: 768px) and (max-width: 991px) {\n .visible-sm-block {\n display: block !important;\n }\n}\n@media (min-width: 768px) and (max-width: 991px) {\n .visible-sm-inline {\n display: inline !important;\n }\n}\n@media (min-width: 768px) and (max-width: 991px) {\n .visible-sm-inline-block {\n display: inline-block !important;\n }\n}\n@media (min-width: 992px) and (max-width: 1199px) {\n .visible-md {\n display: block !important;\n }\n table.visible-md {\n display: table !important;\n }\n tr.visible-md {\n display: table-row !important;\n }\n th.visible-md,\n td.visible-md {\n display: table-cell !important;\n }\n}\n@media (min-width: 992px) and (max-width: 1199px) {\n .visible-md-block {\n display: block !important;\n }\n}\n@media (min-width: 992px) and (max-width: 1199px) {\n .visible-md-inline {\n display: inline !important;\n }\n}\n@media (min-width: 992px) and (max-width: 1199px) {\n .visible-md-inline-block {\n display: inline-block !important;\n }\n}\n@media (min-width: 1200px) {\n .visible-lg {\n display: block !important;\n }\n table.visible-lg {\n display: table !important;\n }\n tr.visible-lg {\n display: table-row !important;\n }\n th.visible-lg,\n td.visible-lg {\n display: table-cell !important;\n }\n}\n@media (min-width: 1200px) {\n .visible-lg-block {\n display: block !important;\n }\n}\n@media (min-width: 1200px) {\n .visible-lg-inline {\n display: inline !important;\n }\n}\n@media (min-width: 1200px) {\n .visible-lg-inline-block {\n display: inline-block !important;\n }\n}\n@media (max-width: 767px) {\n .hidden-xs {\n display: none !important;\n }\n}\n@media (min-width: 768px) and (max-width: 991px) {\n .hidden-sm {\n display: none !important;\n }\n}\n@media (min-width: 992px) and (max-width: 1199px) {\n .hidden-md {\n display: none !important;\n }\n}\n@media (min-width: 1200px) {\n .hidden-lg {\n display: none !important;\n }\n}\n.visible-print {\n display: none !important;\n}\n@media print {\n .visible-print {\n display: block !important;\n }\n table.visible-print {\n display: table !important;\n }\n tr.visible-print {\n display: table-row !important;\n }\n th.visible-print,\n td.visible-print {\n display: table-cell !important;\n }\n}\n.visible-print-block {\n display: none !important;\n}\n@media print {\n .visible-print-block {\n display: block !important;\n }\n}\n.visible-print-inline {\n display: none !important;\n}\n@media print {\n .visible-print-inline {\n display: inline !important;\n }\n}\n.visible-print-inline-block {\n display: none !important;\n}\n@media print {\n .visible-print-inline-block {\n display: inline-block !important;\n }\n}\n@media print {\n .hidden-print {\n display: none !important;\n }\n}\n/*# sourceMappingURL=bootstrap.css.map */","/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */\n\n//\n// 1. Set default font family to sans-serif.\n// 2. Prevent iOS and IE text size adjust after device orientation change,\n// without disabling user zoom.\n//\n\nhtml {\n font-family: sans-serif; // 1\n -ms-text-size-adjust: 100%; // 2\n -webkit-text-size-adjust: 100%; // 2\n}\n\n//\n// Remove default margin.\n//\n\nbody {\n margin: 0;\n}\n\n// HTML5 display definitions\n// ==========================================================================\n\n//\n// Correct `block` display not defined for any HTML5 element in IE 8/9.\n// Correct `block` display not defined for `details` or `summary` in IE 10/11\n// and Firefox.\n// Correct `block` display not defined for `main` in IE 11.\n//\n\narticle,\naside,\ndetails,\nfigcaption,\nfigure,\nfooter,\nheader,\nhgroup,\nmain,\nmenu,\nnav,\nsection,\nsummary {\n display: block;\n}\n\n//\n// 1. Correct `inline-block` display not defined in IE 8/9.\n// 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.\n//\n\naudio,\ncanvas,\nprogress,\nvideo {\n display: inline-block; // 1\n vertical-align: baseline; // 2\n}\n\n//\n// Prevent modern browsers from displaying `audio` without controls.\n// Remove excess height in iOS 5 devices.\n//\n\naudio:not([controls]) {\n display: none;\n height: 0;\n}\n\n//\n// Address `[hidden]` styling not present in IE 8/9/10.\n// Hide the `template` element in IE 8/9/10/11, Safari, and Firefox < 22.\n//\n\n[hidden],\ntemplate {\n display: none;\n}\n\n// Links\n// ==========================================================================\n\n//\n// Remove the gray background color from active links in IE 10.\n//\n\na {\n background-color: transparent;\n}\n\n//\n// Improve readability of focused elements when they are also in an\n// active/hover state.\n//\n\na:active,\na:hover {\n outline: 0;\n}\n\n// Text-level semantics\n// ==========================================================================\n\n//\n// Address styling not present in IE 8/9/10/11, Safari, and Chrome.\n//\n\nabbr[title] {\n border-bottom: 1px dotted;\n}\n\n//\n// Address style set to `bolder` in Firefox 4+, Safari, and Chrome.\n//\n\nb,\nstrong {\n font-weight: bold;\n}\n\n//\n// Address styling not present in Safari and Chrome.\n//\n\ndfn {\n font-style: italic;\n}\n\n//\n// Address variable `h1` font-size and margin within `section` and `article`\n// contexts in Firefox 4+, Safari, and Chrome.\n//\n\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n//\n// Address styling not present in IE 8/9.\n//\n\nmark {\n background: #ff0;\n color: #000;\n}\n\n//\n// Address inconsistent and variable font size in all browsers.\n//\n\nsmall {\n font-size: 80%;\n}\n\n//\n// Prevent `sub` and `sup` affecting `line-height` in all browsers.\n//\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsup {\n top: -0.5em;\n}\n\nsub {\n bottom: -0.25em;\n}\n\n// Embedded content\n// ==========================================================================\n\n//\n// Remove border when inside `a` element in IE 8/9/10.\n//\n\nimg {\n border: 0;\n}\n\n//\n// Correct overflow not hidden in IE 9/10/11.\n//\n\nsvg:not(:root) {\n overflow: hidden;\n}\n\n// Grouping content\n// ==========================================================================\n\n//\n// Address margin not present in IE 8/9 and Safari.\n//\n\nfigure {\n margin: 1em 40px;\n}\n\n//\n// Address differences between Firefox and other browsers.\n//\n\nhr {\n box-sizing: content-box;\n height: 0;\n}\n\n//\n// Contain overflow in all browsers.\n//\n\npre {\n overflow: auto;\n}\n\n//\n// Address odd `em`-unit font size rendering in all browsers.\n//\n\ncode,\nkbd,\npre,\nsamp {\n font-family: monospace, monospace;\n font-size: 1em;\n}\n\n// Forms\n// ==========================================================================\n\n//\n// Known limitation: by default, Chrome and Safari on OS X allow very limited\n// styling of `select`, unless a `border` property is set.\n//\n\n//\n// 1. Correct color not being inherited.\n// Known issue: affects color of disabled elements.\n// 2. Correct font properties not being inherited.\n// 3. Address margins set differently in Firefox 4+, Safari, and Chrome.\n//\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n color: inherit; // 1\n font: inherit; // 2\n margin: 0; // 3\n}\n\n//\n// Address `overflow` set to `hidden` in IE 8/9/10/11.\n//\n\nbutton {\n overflow: visible;\n}\n\n//\n// Address inconsistent `text-transform` inheritance for `button` and `select`.\n// All other form control elements do not inherit `text-transform` values.\n// Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.\n// Correct `select` style inheritance in Firefox.\n//\n\nbutton,\nselect {\n text-transform: none;\n}\n\n//\n// 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`\n// and `video` controls.\n// 2. Correct inability to style clickable `input` types in iOS.\n// 3. Improve usability and consistency of cursor style between image-type\n// `input` and others.\n//\n\nbutton,\nhtml input[type=\"button\"], // 1\ninput[type=\"reset\"],\ninput[type=\"submit\"] {\n -webkit-appearance: button; // 2\n cursor: pointer; // 3\n}\n\n//\n// Re-set default cursor for disabled elements.\n//\n\nbutton[disabled],\nhtml input[disabled] {\n cursor: default;\n}\n\n//\n// Remove inner padding and border in Firefox 4+.\n//\n\nbutton::-moz-focus-inner,\ninput::-moz-focus-inner {\n border: 0;\n padding: 0;\n}\n\n//\n// Address Firefox 4+ setting `line-height` on `input` using `!important` in\n// the UA stylesheet.\n//\n\ninput {\n line-height: normal;\n}\n\n//\n// It's recommended that you don't attempt to style these elements.\n// Firefox's implementation doesn't respect box-sizing, padding, or width.\n//\n// 1. Address box sizing set to `content-box` in IE 8/9/10.\n// 2. Remove excess padding in IE 8/9/10.\n//\n\ninput[type=\"checkbox\"],\ninput[type=\"radio\"] {\n box-sizing: border-box; // 1\n padding: 0; // 2\n}\n\n//\n// Fix the cursor style for Chrome's increment/decrement buttons. For certain\n// `font-size` values of the `input`, it causes the cursor style of the\n// decrement button to change from `default` to `text`.\n//\n\ninput[type=\"number\"]::-webkit-inner-spin-button,\ninput[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n//\n// 1. Address `appearance` set to `searchfield` in Safari and Chrome.\n// 2. Address `box-sizing` set to `border-box` in Safari and Chrome.\n//\n\ninput[type=\"search\"] {\n -webkit-appearance: textfield; // 1\n box-sizing: content-box; //2\n}\n\n//\n// Remove inner padding and search cancel button in Safari and Chrome on OS X.\n// Safari (but not Chrome) clips the cancel button when the search input has\n// padding (and `textfield` appearance).\n//\n\ninput[type=\"search\"]::-webkit-search-cancel-button,\ninput[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n//\n// Define consistent border, margin, and padding.\n//\n\nfieldset {\n border: 1px solid #c0c0c0;\n margin: 0 2px;\n padding: 0.35em 0.625em 0.75em;\n}\n\n//\n// 1. Correct `color` not being inherited in IE 8/9/10/11.\n// 2. Remove padding so people aren't caught out if they zero out fieldsets.\n//\n\nlegend {\n border: 0; // 1\n padding: 0; // 2\n}\n\n//\n// Remove default vertical scrollbar in IE 8/9/10/11.\n//\n\ntextarea {\n overflow: auto;\n}\n\n//\n// Don't inherit the `font-weight` (applied by a rule above).\n// NOTE: the default cannot safely be changed in Chrome and Safari on OS X.\n//\n\noptgroup {\n font-weight: bold;\n}\n\n// Tables\n// ==========================================================================\n\n//\n// Remove most spacing between table cells.\n//\n\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\n\ntd,\nth {\n padding: 0;\n}\n","/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */\n\n// ==========================================================================\n// Print styles.\n// Inlined to avoid the additional HTTP request: h5bp.com/r\n// ==========================================================================\n\n@media print {\n *,\n *:before,\n *:after {\n background: transparent !important;\n color: #000 !important; // Black prints faster: h5bp.com/s\n box-shadow: none !important;\n text-shadow: none !important;\n }\n\n a,\n a:visited {\n text-decoration: underline;\n }\n\n a[href]:after {\n content: \" (\" attr(href) \")\";\n }\n\n abbr[title]:after {\n content: \" (\" attr(title) \")\";\n }\n\n // Don't show links that are fragment identifiers,\n // or use the `javascript:` pseudo protocol\n a[href^=\"#\"]:after,\n a[href^=\"javascript:\"]:after {\n content: \"\";\n }\n\n pre,\n blockquote {\n border: 1px solid #999;\n page-break-inside: avoid;\n }\n\n thead {\n display: table-header-group; // h5bp.com/t\n }\n\n tr,\n img {\n page-break-inside: avoid;\n }\n\n img {\n max-width: 100% !important;\n }\n\n p,\n h2,\n h3 {\n orphans: 3;\n widows: 3;\n }\n\n h2,\n h3 {\n page-break-after: avoid;\n }\n\n // Bootstrap specific changes start\n\n // Bootstrap components\n .navbar {\n display: none;\n }\n .btn,\n .dropup > .btn {\n > .caret {\n border-top-color: #000 !important;\n }\n }\n .label {\n border: 1px solid #000;\n }\n\n .table {\n border-collapse: collapse !important;\n\n td,\n th {\n background-color: #fff !important;\n }\n }\n .table-bordered {\n th,\n td {\n border: 1px solid #ddd !important;\n }\n }\n\n // Bootstrap specific changes end\n}\n","//\n// Glyphicons for Bootstrap\n//\n// Since icons are fonts, they can be placed anywhere text is placed and are\n// thus automatically sized to match the surrounding child. To use, create an\n// inline element with the appropriate classes, like so:\n//\n// Star\n\n// Import the fonts\n@font-face {\n font-family: 'Glyphicons Halflings';\n src: url('@{icon-font-path}@{icon-font-name}.eot');\n src: url('@{icon-font-path}@{icon-font-name}.eot?#iefix') format('embedded-opentype'),\n url('@{icon-font-path}@{icon-font-name}.woff2') format('woff2'),\n url('@{icon-font-path}@{icon-font-name}.woff') format('woff'),\n url('@{icon-font-path}@{icon-font-name}.ttf') format('truetype'),\n url('@{icon-font-path}@{icon-font-name}.svg#@{icon-font-svg-id}') format('svg');\n}\n\n// Catchall baseclass\n.glyphicon {\n position: relative;\n top: 1px;\n display: inline-block;\n font-family: 'Glyphicons Halflings';\n font-style: normal;\n font-weight: normal;\n line-height: 1;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n// Individual icons\n.glyphicon-asterisk { &:before { content: \"\\002a\"; } }\n.glyphicon-plus { &:before { content: \"\\002b\"; } }\n.glyphicon-euro,\n.glyphicon-eur { &:before { content: \"\\20ac\"; } }\n.glyphicon-minus { &:before { content: \"\\2212\"; } }\n.glyphicon-cloud { &:before { content: \"\\2601\"; } }\n.glyphicon-envelope { &:before { content: \"\\2709\"; } }\n.glyphicon-pencil { &:before { content: \"\\270f\"; } }\n.glyphicon-glass { &:before { content: \"\\e001\"; } }\n.glyphicon-music { &:before { content: \"\\e002\"; } }\n.glyphicon-search { &:before { content: \"\\e003\"; } }\n.glyphicon-heart { &:before { content: \"\\e005\"; } }\n.glyphicon-star { &:before { content: \"\\e006\"; } }\n.glyphicon-star-empty { &:before { content: \"\\e007\"; } }\n.glyphicon-user { &:before { content: \"\\e008\"; } }\n.glyphicon-film { &:before { content: \"\\e009\"; } }\n.glyphicon-th-large { &:before { content: \"\\e010\"; } }\n.glyphicon-th { &:before { content: \"\\e011\"; } }\n.glyphicon-th-list { &:before { content: \"\\e012\"; } }\n.glyphicon-ok { &:before { content: \"\\e013\"; } }\n.glyphicon-remove { &:before { content: \"\\e014\"; } }\n.glyphicon-zoom-in { &:before { content: \"\\e015\"; } }\n.glyphicon-zoom-out { &:before { content: \"\\e016\"; } }\n.glyphicon-off { &:before { content: \"\\e017\"; } }\n.glyphicon-signal { &:before { content: \"\\e018\"; } }\n.glyphicon-cog { &:before { content: \"\\e019\"; } }\n.glyphicon-trash { &:before { content: \"\\e020\"; } }\n.glyphicon-home { &:before { content: \"\\e021\"; } }\n.glyphicon-file { &:before { content: \"\\e022\"; } }\n.glyphicon-time { &:before { content: \"\\e023\"; } }\n.glyphicon-road { &:before { content: \"\\e024\"; } }\n.glyphicon-download-alt { &:before { content: \"\\e025\"; } }\n.glyphicon-download { &:before { content: \"\\e026\"; } }\n.glyphicon-upload { &:before { content: \"\\e027\"; } }\n.glyphicon-inbox { &:before { content: \"\\e028\"; } }\n.glyphicon-play-circle { &:before { content: \"\\e029\"; } }\n.glyphicon-repeat { &:before { content: \"\\e030\"; } }\n.glyphicon-refresh { &:before { content: \"\\e031\"; } }\n.glyphicon-list-alt { &:before { content: \"\\e032\"; } }\n.glyphicon-lock { &:before { content: \"\\e033\"; } }\n.glyphicon-flag { &:before { content: \"\\e034\"; } }\n.glyphicon-headphones { &:before { content: \"\\e035\"; } }\n.glyphicon-volume-off { &:before { content: \"\\e036\"; } }\n.glyphicon-volume-down { &:before { content: \"\\e037\"; } }\n.glyphicon-volume-up { &:before { content: \"\\e038\"; } }\n.glyphicon-qrcode { &:before { content: \"\\e039\"; } }\n.glyphicon-barcode { &:before { content: \"\\e040\"; } }\n.glyphicon-tag { &:before { content: \"\\e041\"; } }\n.glyphicon-tags { &:before { content: \"\\e042\"; } }\n.glyphicon-book { &:before { content: \"\\e043\"; } }\n.glyphicon-bookmark { &:before { content: \"\\e044\"; } }\n.glyphicon-print { &:before { content: \"\\e045\"; } }\n.glyphicon-camera { &:before { content: \"\\e046\"; } }\n.glyphicon-font { &:before { content: \"\\e047\"; } }\n.glyphicon-bold { &:before { content: \"\\e048\"; } }\n.glyphicon-italic { &:before { content: \"\\e049\"; } }\n.glyphicon-text-height { &:before { content: \"\\e050\"; } }\n.glyphicon-text-width { &:before { content: \"\\e051\"; } }\n.glyphicon-align-left { &:before { content: \"\\e052\"; } }\n.glyphicon-align-center { &:before { content: \"\\e053\"; } }\n.glyphicon-align-right { &:before { content: \"\\e054\"; } }\n.glyphicon-align-justify { &:before { content: \"\\e055\"; } }\n.glyphicon-list { &:before { content: \"\\e056\"; } }\n.glyphicon-indent-left { &:before { content: \"\\e057\"; } }\n.glyphicon-indent-right { &:before { content: \"\\e058\"; } }\n.glyphicon-facetime-video { &:before { content: \"\\e059\"; } }\n.glyphicon-picture { &:before { content: \"\\e060\"; } }\n.glyphicon-map-marker { &:before { content: \"\\e062\"; } }\n.glyphicon-adjust { &:before { content: \"\\e063\"; } }\n.glyphicon-tint { &:before { content: \"\\e064\"; } }\n.glyphicon-edit { &:before { content: \"\\e065\"; } }\n.glyphicon-share { &:before { content: \"\\e066\"; } }\n.glyphicon-check { &:before { content: \"\\e067\"; } }\n.glyphicon-move { &:before { content: \"\\e068\"; } }\n.glyphicon-step-backward { &:before { content: \"\\e069\"; } }\n.glyphicon-fast-backward { &:before { content: \"\\e070\"; } }\n.glyphicon-backward { &:before { content: \"\\e071\"; } }\n.glyphicon-play { &:before { content: \"\\e072\"; } }\n.glyphicon-pause { &:before { content: \"\\e073\"; } }\n.glyphicon-stop { &:before { content: \"\\e074\"; } }\n.glyphicon-forward { &:before { content: \"\\e075\"; } }\n.glyphicon-fast-forward { &:before { content: \"\\e076\"; } }\n.glyphicon-step-forward { &:before { content: \"\\e077\"; } }\n.glyphicon-eject { &:before { content: \"\\e078\"; } }\n.glyphicon-chevron-left { &:before { content: \"\\e079\"; } }\n.glyphicon-chevron-right { &:before { content: \"\\e080\"; } }\n.glyphicon-plus-sign { &:before { content: \"\\e081\"; } }\n.glyphicon-minus-sign { &:before { content: \"\\e082\"; } }\n.glyphicon-remove-sign { &:before { content: \"\\e083\"; } }\n.glyphicon-ok-sign { &:before { content: \"\\e084\"; } }\n.glyphicon-question-sign { &:before { content: \"\\e085\"; } }\n.glyphicon-info-sign { &:before { content: \"\\e086\"; } }\n.glyphicon-screenshot { &:before { content: \"\\e087\"; } }\n.glyphicon-remove-circle { &:before { content: \"\\e088\"; } }\n.glyphicon-ok-circle { &:before { content: \"\\e089\"; } }\n.glyphicon-ban-circle { &:before { content: \"\\e090\"; } }\n.glyphicon-arrow-left { &:before { content: \"\\e091\"; } }\n.glyphicon-arrow-right { &:before { content: \"\\e092\"; } }\n.glyphicon-arrow-up { &:before { content: \"\\e093\"; } }\n.glyphicon-arrow-down { &:before { content: \"\\e094\"; } }\n.glyphicon-share-alt { &:before { content: \"\\e095\"; } }\n.glyphicon-resize-full { &:before { content: \"\\e096\"; } }\n.glyphicon-resize-small { &:before { content: \"\\e097\"; } }\n.glyphicon-exclamation-sign { &:before { content: \"\\e101\"; } }\n.glyphicon-gift { &:before { content: \"\\e102\"; } }\n.glyphicon-leaf { &:before { content: \"\\e103\"; } }\n.glyphicon-fire { &:before { content: \"\\e104\"; } }\n.glyphicon-eye-open { &:before { content: \"\\e105\"; } }\n.glyphicon-eye-close { &:before { content: \"\\e106\"; } }\n.glyphicon-warning-sign { &:before { content: \"\\e107\"; } }\n.glyphicon-plane { &:before { content: \"\\e108\"; } }\n.glyphicon-calendar { &:before { content: \"\\e109\"; } }\n.glyphicon-random { &:before { content: \"\\e110\"; } }\n.glyphicon-comment { &:before { content: \"\\e111\"; } }\n.glyphicon-magnet { &:before { content: \"\\e112\"; } }\n.glyphicon-chevron-up { &:before { content: \"\\e113\"; } }\n.glyphicon-chevron-down { &:before { content: \"\\e114\"; } }\n.glyphicon-retweet { &:before { content: \"\\e115\"; } }\n.glyphicon-shopping-cart { &:before { content: \"\\e116\"; } }\n.glyphicon-folder-close { &:before { content: \"\\e117\"; } }\n.glyphicon-folder-open { &:before { content: \"\\e118\"; } }\n.glyphicon-resize-vertical { &:before { content: \"\\e119\"; } }\n.glyphicon-resize-horizontal { &:before { content: \"\\e120\"; } }\n.glyphicon-hdd { &:before { content: \"\\e121\"; } }\n.glyphicon-bullhorn { &:before { content: \"\\e122\"; } }\n.glyphicon-bell { &:before { content: \"\\e123\"; } }\n.glyphicon-certificate { &:before { content: \"\\e124\"; } }\n.glyphicon-thumbs-up { &:before { content: \"\\e125\"; } }\n.glyphicon-thumbs-down { &:before { content: \"\\e126\"; } }\n.glyphicon-hand-right { &:before { content: \"\\e127\"; } }\n.glyphicon-hand-left { &:before { content: \"\\e128\"; } }\n.glyphicon-hand-up { &:before { content: \"\\e129\"; } }\n.glyphicon-hand-down { &:before { content: \"\\e130\"; } }\n.glyphicon-circle-arrow-right { &:before { content: \"\\e131\"; } }\n.glyphicon-circle-arrow-left { &:before { content: \"\\e132\"; } }\n.glyphicon-circle-arrow-up { &:before { content: \"\\e133\"; } }\n.glyphicon-circle-arrow-down { &:before { content: \"\\e134\"; } }\n.glyphicon-globe { &:before { content: \"\\e135\"; } }\n.glyphicon-wrench { &:before { content: \"\\e136\"; } }\n.glyphicon-tasks { &:before { content: \"\\e137\"; } }\n.glyphicon-filter { &:before { content: \"\\e138\"; } }\n.glyphicon-briefcase { &:before { content: \"\\e139\"; } }\n.glyphicon-fullscreen { &:before { content: \"\\e140\"; } }\n.glyphicon-dashboard { &:before { content: \"\\e141\"; } }\n.glyphicon-paperclip { &:before { content: \"\\e142\"; } }\n.glyphicon-heart-empty { &:before { content: \"\\e143\"; } }\n.glyphicon-link { &:before { content: \"\\e144\"; } }\n.glyphicon-phone { &:before { content: \"\\e145\"; } }\n.glyphicon-pushpin { &:before { content: \"\\e146\"; } }\n.glyphicon-usd { &:before { content: \"\\e148\"; } }\n.glyphicon-gbp { &:before { content: \"\\e149\"; } }\n.glyphicon-sort { &:before { content: \"\\e150\"; } }\n.glyphicon-sort-by-alphabet { &:before { content: \"\\e151\"; } }\n.glyphicon-sort-by-alphabet-alt { &:before { content: \"\\e152\"; } }\n.glyphicon-sort-by-order { &:before { content: \"\\e153\"; } }\n.glyphicon-sort-by-order-alt { &:before { content: \"\\e154\"; } }\n.glyphicon-sort-by-attributes { &:before { content: \"\\e155\"; } }\n.glyphicon-sort-by-attributes-alt { &:before { content: \"\\e156\"; } }\n.glyphicon-unchecked { &:before { content: \"\\e157\"; } }\n.glyphicon-expand { &:before { content: \"\\e158\"; } }\n.glyphicon-collapse-down { &:before { content: \"\\e159\"; } }\n.glyphicon-collapse-up { &:before { content: \"\\e160\"; } }\n.glyphicon-log-in { &:before { content: \"\\e161\"; } }\n.glyphicon-flash { &:before { content: \"\\e162\"; } }\n.glyphicon-log-out { &:before { content: \"\\e163\"; } }\n.glyphicon-new-window { &:before { content: \"\\e164\"; } }\n.glyphicon-record { &:before { content: \"\\e165\"; } }\n.glyphicon-save { &:before { content: \"\\e166\"; } }\n.glyphicon-open { &:before { content: \"\\e167\"; } }\n.glyphicon-saved { &:before { content: \"\\e168\"; } }\n.glyphicon-import { &:before { content: \"\\e169\"; } }\n.glyphicon-export { &:before { content: \"\\e170\"; } }\n.glyphicon-send { &:before { content: \"\\e171\"; } }\n.glyphicon-floppy-disk { &:before { content: \"\\e172\"; } }\n.glyphicon-floppy-saved { &:before { content: \"\\e173\"; } }\n.glyphicon-floppy-remove { &:before { content: \"\\e174\"; } }\n.glyphicon-floppy-save { &:before { content: \"\\e175\"; } }\n.glyphicon-floppy-open { &:before { content: \"\\e176\"; } }\n.glyphicon-credit-card { &:before { content: \"\\e177\"; } }\n.glyphicon-transfer { &:before { content: \"\\e178\"; } }\n.glyphicon-cutlery { &:before { content: \"\\e179\"; } }\n.glyphicon-header { &:before { content: \"\\e180\"; } }\n.glyphicon-compressed { &:before { content: \"\\e181\"; } }\n.glyphicon-earphone { &:before { content: \"\\e182\"; } }\n.glyphicon-phone-alt { &:before { content: \"\\e183\"; } }\n.glyphicon-tower { &:before { content: \"\\e184\"; } }\n.glyphicon-stats { &:before { content: \"\\e185\"; } }\n.glyphicon-sd-video { &:before { content: \"\\e186\"; } }\n.glyphicon-hd-video { &:before { content: \"\\e187\"; } }\n.glyphicon-subtitles { &:before { content: \"\\e188\"; } }\n.glyphicon-sound-stereo { &:before { content: \"\\e189\"; } }\n.glyphicon-sound-dolby { &:before { content: \"\\e190\"; } }\n.glyphicon-sound-5-1 { &:before { content: \"\\e191\"; } }\n.glyphicon-sound-6-1 { &:before { content: \"\\e192\"; } }\n.glyphicon-sound-7-1 { &:before { content: \"\\e193\"; } }\n.glyphicon-copyright-mark { &:before { content: \"\\e194\"; } }\n.glyphicon-registration-mark { &:before { content: \"\\e195\"; } }\n.glyphicon-cloud-download { &:before { content: \"\\e197\"; } }\n.glyphicon-cloud-upload { &:before { content: \"\\e198\"; } }\n.glyphicon-tree-conifer { &:before { content: \"\\e199\"; } }\n.glyphicon-tree-deciduous { &:before { content: \"\\e200\"; } }\n.glyphicon-cd { &:before { content: \"\\e201\"; } }\n.glyphicon-save-file { &:before { content: \"\\e202\"; } }\n.glyphicon-open-file { &:before { content: \"\\e203\"; } }\n.glyphicon-level-up { &:before { content: \"\\e204\"; } }\n.glyphicon-copy { &:before { content: \"\\e205\"; } }\n.glyphicon-paste { &:before { content: \"\\e206\"; } }\n// The following 2 Glyphicons are omitted for the time being because\n// they currently use Unicode codepoints that are outside the\n// Basic Multilingual Plane (BMP). Older buggy versions of WebKit can't handle\n// non-BMP codepoints in CSS string escapes, and thus can't display these two icons.\n// Notably, the bug affects some older versions of the Android Browser.\n// More info: https://github.com/twbs/bootstrap/issues/10106\n// .glyphicon-door { &:before { content: \"\\1f6aa\"; } }\n// .glyphicon-key { &:before { content: \"\\1f511\"; } }\n.glyphicon-alert { &:before { content: \"\\e209\"; } }\n.glyphicon-equalizer { &:before { content: \"\\e210\"; } }\n.glyphicon-king { &:before { content: \"\\e211\"; } }\n.glyphicon-queen { &:before { content: \"\\e212\"; } }\n.glyphicon-pawn { &:before { content: \"\\e213\"; } }\n.glyphicon-bishop { &:before { content: \"\\e214\"; } }\n.glyphicon-knight { &:before { content: \"\\e215\"; } }\n.glyphicon-baby-formula { &:before { content: \"\\e216\"; } }\n.glyphicon-tent { &:before { content: \"\\26fa\"; } }\n.glyphicon-blackboard { &:before { content: \"\\e218\"; } }\n.glyphicon-bed { &:before { content: \"\\e219\"; } }\n.glyphicon-apple { &:before { content: \"\\f8ff\"; } }\n.glyphicon-erase { &:before { content: \"\\e221\"; } }\n.glyphicon-hourglass { &:before { content: \"\\231b\"; } }\n.glyphicon-lamp { &:before { content: \"\\e223\"; } }\n.glyphicon-duplicate { &:before { content: \"\\e224\"; } }\n.glyphicon-piggy-bank { &:before { content: \"\\e225\"; } }\n.glyphicon-scissors { &:before { content: \"\\e226\"; } }\n.glyphicon-bitcoin { &:before { content: \"\\e227\"; } }\n.glyphicon-btc { &:before { content: \"\\e227\"; } }\n.glyphicon-xbt { &:before { content: \"\\e227\"; } }\n.glyphicon-yen { &:before { content: \"\\00a5\"; } }\n.glyphicon-jpy { &:before { content: \"\\00a5\"; } }\n.glyphicon-ruble { &:before { content: \"\\20bd\"; } }\n.glyphicon-rub { &:before { content: \"\\20bd\"; } }\n.glyphicon-scale { &:before { content: \"\\e230\"; } }\n.glyphicon-ice-lolly { &:before { content: \"\\e231\"; } }\n.glyphicon-ice-lolly-tasted { &:before { content: \"\\e232\"; } }\n.glyphicon-education { &:before { content: \"\\e233\"; } }\n.glyphicon-option-horizontal { &:before { content: \"\\e234\"; } }\n.glyphicon-option-vertical { &:before { content: \"\\e235\"; } }\n.glyphicon-menu-hamburger { &:before { content: \"\\e236\"; } }\n.glyphicon-modal-window { &:before { content: \"\\e237\"; } }\n.glyphicon-oil { &:before { content: \"\\e238\"; } }\n.glyphicon-grain { &:before { content: \"\\e239\"; } }\n.glyphicon-sunglasses { &:before { content: \"\\e240\"; } }\n.glyphicon-text-size { &:before { content: \"\\e241\"; } }\n.glyphicon-text-color { &:before { content: \"\\e242\"; } }\n.glyphicon-text-background { &:before { content: \"\\e243\"; } }\n.glyphicon-object-align-top { &:before { content: \"\\e244\"; } }\n.glyphicon-object-align-bottom { &:before { content: \"\\e245\"; } }\n.glyphicon-object-align-horizontal{ &:before { content: \"\\e246\"; } }\n.glyphicon-object-align-left { &:before { content: \"\\e247\"; } }\n.glyphicon-object-align-vertical { &:before { content: \"\\e248\"; } }\n.glyphicon-object-align-right { &:before { content: \"\\e249\"; } }\n.glyphicon-triangle-right { &:before { content: \"\\e250\"; } }\n.glyphicon-triangle-left { &:before { content: \"\\e251\"; } }\n.glyphicon-triangle-bottom { &:before { content: \"\\e252\"; } }\n.glyphicon-triangle-top { &:before { content: \"\\e253\"; } }\n.glyphicon-console { &:before { content: \"\\e254\"; } }\n.glyphicon-superscript { &:before { content: \"\\e255\"; } }\n.glyphicon-subscript { &:before { content: \"\\e256\"; } }\n.glyphicon-menu-left { &:before { content: \"\\e257\"; } }\n.glyphicon-menu-right { &:before { content: \"\\e258\"; } }\n.glyphicon-menu-down { &:before { content: \"\\e259\"; } }\n.glyphicon-menu-up { &:before { content: \"\\e260\"; } }\n","//\n// Scaffolding\n// --------------------------------------------------\n\n\n// Reset the box-sizing\n//\n// Heads up! This reset may cause conflicts with some third-party widgets.\n// For recommendations on resolving such conflicts, see\n// http://getbootstrap.com/getting-started/#third-box-sizing\n* {\n .box-sizing(border-box);\n}\n*:before,\n*:after {\n .box-sizing(border-box);\n}\n\n\n// Body reset\n\nhtml {\n font-size: 10px;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n}\n\nbody {\n font-family: @font-family-base;\n font-size: @font-size-base;\n line-height: @line-height-base;\n color: @text-color;\n background-color: @body-bg;\n}\n\n// Reset fonts for relevant elements\ninput,\nbutton,\nselect,\ntextarea {\n font-family: inherit;\n font-size: inherit;\n line-height: inherit;\n}\n\n\n// Links\n\na {\n color: @link-color;\n text-decoration: none;\n\n &:hover,\n &:focus {\n color: @link-hover-color;\n text-decoration: @link-hover-decoration;\n }\n\n &:focus {\n .tab-focus();\n }\n}\n\n\n// Figures\n//\n// We reset this here because previously Normalize had no `figure` margins. This\n// ensures we don't break anyone's use of the element.\n\nfigure {\n margin: 0;\n}\n\n\n// Images\n\nimg {\n vertical-align: middle;\n}\n\n// Responsive images (ensure images don't scale beyond their parents)\n.img-responsive {\n .img-responsive();\n}\n\n// Rounded corners\n.img-rounded {\n border-radius: @border-radius-large;\n}\n\n// Image thumbnails\n//\n// Heads up! This is mixin-ed into thumbnails.less for `.thumbnail`.\n.img-thumbnail {\n padding: @thumbnail-padding;\n line-height: @line-height-base;\n background-color: @thumbnail-bg;\n border: 1px solid @thumbnail-border;\n border-radius: @thumbnail-border-radius;\n .transition(all .2s ease-in-out);\n\n // Keep them at most 100% wide\n .img-responsive(inline-block);\n}\n\n// Perfect circle\n.img-circle {\n border-radius: 50%; // set radius in percents\n}\n\n\n// Horizontal rules\n\nhr {\n margin-top: @line-height-computed;\n margin-bottom: @line-height-computed;\n border: 0;\n border-top: 1px solid @hr-border;\n}\n\n\n// Only display content to screen readers\n//\n// See: http://a11yproject.com/posts/how-to-hide-content\n\n.sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip: rect(0,0,0,0);\n border: 0;\n}\n\n// Use in conjunction with .sr-only to only display content when it's focused.\n// Useful for \"Skip to main content\" links; see http://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1\n// Credit: HTML5 Boilerplate\n\n.sr-only-focusable {\n &:active,\n &:focus {\n position: static;\n width: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n clip: auto;\n }\n}\n\n\n// iOS \"clickable elements\" fix for role=\"button\"\n//\n// Fixes \"clickability\" issue (and more generally, the firing of events such as focus as well)\n// for traditionally non-focusable elements with role=\"button\"\n// see https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile\n\n[role=\"button\"] {\n cursor: pointer;\n}\n","// Vendor Prefixes\n//\n// All vendor mixins are deprecated as of v3.2.0 due to the introduction of\n// Autoprefixer in our Gruntfile. They have been removed in v4.\n\n// - Animations\n// - Backface visibility\n// - Box shadow\n// - Box sizing\n// - Content columns\n// - Hyphens\n// - Placeholder text\n// - Transformations\n// - Transitions\n// - User Select\n\n\n// Animations\n.animation(@animation) {\n -webkit-animation: @animation;\n -o-animation: @animation;\n animation: @animation;\n}\n.animation-name(@name) {\n -webkit-animation-name: @name;\n animation-name: @name;\n}\n.animation-duration(@duration) {\n -webkit-animation-duration: @duration;\n animation-duration: @duration;\n}\n.animation-timing-function(@timing-function) {\n -webkit-animation-timing-function: @timing-function;\n animation-timing-function: @timing-function;\n}\n.animation-delay(@delay) {\n -webkit-animation-delay: @delay;\n animation-delay: @delay;\n}\n.animation-iteration-count(@iteration-count) {\n -webkit-animation-iteration-count: @iteration-count;\n animation-iteration-count: @iteration-count;\n}\n.animation-direction(@direction) {\n -webkit-animation-direction: @direction;\n animation-direction: @direction;\n}\n.animation-fill-mode(@fill-mode) {\n -webkit-animation-fill-mode: @fill-mode;\n animation-fill-mode: @fill-mode;\n}\n\n// Backface visibility\n// Prevent browsers from flickering when using CSS 3D transforms.\n// Default value is `visible`, but can be changed to `hidden`\n\n.backface-visibility(@visibility) {\n -webkit-backface-visibility: @visibility;\n -moz-backface-visibility: @visibility;\n backface-visibility: @visibility;\n}\n\n// Drop shadows\n//\n// Note: Deprecated `.box-shadow()` as of v3.1.0 since all of Bootstrap's\n// supported browsers that have box shadow capabilities now support it.\n\n.box-shadow(@shadow) {\n -webkit-box-shadow: @shadow; // iOS <4.3 & Android <4.1\n box-shadow: @shadow;\n}\n\n// Box sizing\n.box-sizing(@boxmodel) {\n -webkit-box-sizing: @boxmodel;\n -moz-box-sizing: @boxmodel;\n box-sizing: @boxmodel;\n}\n\n// CSS3 Content Columns\n.content-columns(@column-count; @column-gap: @grid-gutter-width) {\n -webkit-column-count: @column-count;\n -moz-column-count: @column-count;\n column-count: @column-count;\n -webkit-column-gap: @column-gap;\n -moz-column-gap: @column-gap;\n column-gap: @column-gap;\n}\n\n// Optional hyphenation\n.hyphens(@mode: auto) {\n word-wrap: break-word;\n -webkit-hyphens: @mode;\n -moz-hyphens: @mode;\n -ms-hyphens: @mode; // IE10+\n -o-hyphens: @mode;\n hyphens: @mode;\n}\n\n// Placeholder text\n.placeholder(@color: @input-color-placeholder) {\n // Firefox\n &::-moz-placeholder {\n color: @color;\n opacity: 1; // Override Firefox's unusual default opacity; see https://github.com/twbs/bootstrap/pull/11526\n }\n &:-ms-input-placeholder { color: @color; } // Internet Explorer 10+\n &::-webkit-input-placeholder { color: @color; } // Safari and Chrome\n}\n\n// Transformations\n.scale(@ratio) {\n -webkit-transform: scale(@ratio);\n -ms-transform: scale(@ratio); // IE9 only\n -o-transform: scale(@ratio);\n transform: scale(@ratio);\n}\n.scale(@ratioX; @ratioY) {\n -webkit-transform: scale(@ratioX, @ratioY);\n -ms-transform: scale(@ratioX, @ratioY); // IE9 only\n -o-transform: scale(@ratioX, @ratioY);\n transform: scale(@ratioX, @ratioY);\n}\n.scaleX(@ratio) {\n -webkit-transform: scaleX(@ratio);\n -ms-transform: scaleX(@ratio); // IE9 only\n -o-transform: scaleX(@ratio);\n transform: scaleX(@ratio);\n}\n.scaleY(@ratio) {\n -webkit-transform: scaleY(@ratio);\n -ms-transform: scaleY(@ratio); // IE9 only\n -o-transform: scaleY(@ratio);\n transform: scaleY(@ratio);\n}\n.skew(@x; @y) {\n -webkit-transform: skewX(@x) skewY(@y);\n -ms-transform: skewX(@x) skewY(@y); // See https://github.com/twbs/bootstrap/issues/4885; IE9+\n -o-transform: skewX(@x) skewY(@y);\n transform: skewX(@x) skewY(@y);\n}\n.translate(@x; @y) {\n -webkit-transform: translate(@x, @y);\n -ms-transform: translate(@x, @y); // IE9 only\n -o-transform: translate(@x, @y);\n transform: translate(@x, @y);\n}\n.translate3d(@x; @y; @z) {\n -webkit-transform: translate3d(@x, @y, @z);\n transform: translate3d(@x, @y, @z);\n}\n.rotate(@degrees) {\n -webkit-transform: rotate(@degrees);\n -ms-transform: rotate(@degrees); // IE9 only\n -o-transform: rotate(@degrees);\n transform: rotate(@degrees);\n}\n.rotateX(@degrees) {\n -webkit-transform: rotateX(@degrees);\n -ms-transform: rotateX(@degrees); // IE9 only\n -o-transform: rotateX(@degrees);\n transform: rotateX(@degrees);\n}\n.rotateY(@degrees) {\n -webkit-transform: rotateY(@degrees);\n -ms-transform: rotateY(@degrees); // IE9 only\n -o-transform: rotateY(@degrees);\n transform: rotateY(@degrees);\n}\n.perspective(@perspective) {\n -webkit-perspective: @perspective;\n -moz-perspective: @perspective;\n perspective: @perspective;\n}\n.perspective-origin(@perspective) {\n -webkit-perspective-origin: @perspective;\n -moz-perspective-origin: @perspective;\n perspective-origin: @perspective;\n}\n.transform-origin(@origin) {\n -webkit-transform-origin: @origin;\n -moz-transform-origin: @origin;\n -ms-transform-origin: @origin; // IE9 only\n transform-origin: @origin;\n}\n\n\n// Transitions\n\n.transition(@transition) {\n -webkit-transition: @transition;\n -o-transition: @transition;\n transition: @transition;\n}\n.transition-property(@transition-property) {\n -webkit-transition-property: @transition-property;\n transition-property: @transition-property;\n}\n.transition-delay(@transition-delay) {\n -webkit-transition-delay: @transition-delay;\n transition-delay: @transition-delay;\n}\n.transition-duration(@transition-duration) {\n -webkit-transition-duration: @transition-duration;\n transition-duration: @transition-duration;\n}\n.transition-timing-function(@timing-function) {\n -webkit-transition-timing-function: @timing-function;\n transition-timing-function: @timing-function;\n}\n.transition-transform(@transition) {\n -webkit-transition: -webkit-transform @transition;\n -moz-transition: -moz-transform @transition;\n -o-transition: -o-transform @transition;\n transition: transform @transition;\n}\n\n\n// User select\n// For selecting text on the page\n\n.user-select(@select) {\n -webkit-user-select: @select;\n -moz-user-select: @select;\n -ms-user-select: @select; // IE10+\n user-select: @select;\n}\n","// WebKit-style focus\n\n.tab-focus() {\n // WebKit-specific. Other browsers will keep their default outline style.\n // (Initially tried to also force default via `outline: initial`,\n // but that seems to erroneously remove the outline in Firefox altogether.)\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: -2px;\n}\n","// Image Mixins\n// - Responsive image\n// - Retina image\n\n\n// Responsive image\n//\n// Keep images from scaling beyond the width of their parents.\n.img-responsive(@display: block) {\n display: @display;\n max-width: 100%; // Part 1: Set a maximum relative to the parent\n height: auto; // Part 2: Scale the height according to the width, otherwise you get stretching\n}\n\n\n// Retina image\n//\n// Short retina mixin for setting background-image and -size. Note that the\n// spelling of `min--moz-device-pixel-ratio` is intentional.\n.img-retina(@file-1x; @file-2x; @width-1x; @height-1x) {\n background-image: url(\"@{file-1x}\");\n\n @media\n only screen and (-webkit-min-device-pixel-ratio: 2),\n only screen and ( min--moz-device-pixel-ratio: 2),\n only screen and ( -o-min-device-pixel-ratio: 2/1),\n only screen and ( min-device-pixel-ratio: 2),\n only screen and ( min-resolution: 192dpi),\n only screen and ( min-resolution: 2dppx) {\n background-image: url(\"@{file-2x}\");\n background-size: @width-1x @height-1x;\n }\n}\n","//\n// Typography\n// --------------------------------------------------\n\n\n// Headings\n// -------------------------\n\nh1, h2, h3, h4, h5, h6,\n.h1, .h2, .h3, .h4, .h5, .h6 {\n font-family: @headings-font-family;\n font-weight: @headings-font-weight;\n line-height: @headings-line-height;\n color: @headings-color;\n\n small,\n .small {\n font-weight: normal;\n line-height: 1;\n color: @headings-small-color;\n }\n}\n\nh1, .h1,\nh2, .h2,\nh3, .h3 {\n margin-top: @line-height-computed;\n margin-bottom: (@line-height-computed / 2);\n\n small,\n .small {\n font-size: 65%;\n }\n}\nh4, .h4,\nh5, .h5,\nh6, .h6 {\n margin-top: (@line-height-computed / 2);\n margin-bottom: (@line-height-computed / 2);\n\n small,\n .small {\n font-size: 75%;\n }\n}\n\nh1, .h1 { font-size: @font-size-h1; }\nh2, .h2 { font-size: @font-size-h2; }\nh3, .h3 { font-size: @font-size-h3; }\nh4, .h4 { font-size: @font-size-h4; }\nh5, .h5 { font-size: @font-size-h5; }\nh6, .h6 { font-size: @font-size-h6; }\n\n\n// Body text\n// -------------------------\n\np {\n margin: 0 0 (@line-height-computed / 2);\n}\n\n.lead {\n margin-bottom: @line-height-computed;\n font-size: floor((@font-size-base * 1.15));\n font-weight: 300;\n line-height: 1.4;\n\n @media (min-width: @screen-sm-min) {\n font-size: (@font-size-base * 1.5);\n }\n}\n\n\n// Emphasis & misc\n// -------------------------\n\n// Ex: (12px small font / 14px base font) * 100% = about 85%\nsmall,\n.small {\n font-size: floor((100% * @font-size-small / @font-size-base));\n}\n\nmark,\n.mark {\n background-color: @state-warning-bg;\n padding: .2em;\n}\n\n// Alignment\n.text-left { text-align: left; }\n.text-right { text-align: right; }\n.text-center { text-align: center; }\n.text-justify { text-align: justify; }\n.text-nowrap { white-space: nowrap; }\n\n// Transformation\n.text-lowercase { text-transform: lowercase; }\n.text-uppercase { text-transform: uppercase; }\n.text-capitalize { text-transform: capitalize; }\n\n// Contextual colors\n.text-muted {\n color: @text-muted;\n}\n.text-primary {\n .text-emphasis-variant(@brand-primary);\n}\n.text-success {\n .text-emphasis-variant(@state-success-text);\n}\n.text-info {\n .text-emphasis-variant(@state-info-text);\n}\n.text-warning {\n .text-emphasis-variant(@state-warning-text);\n}\n.text-danger {\n .text-emphasis-variant(@state-danger-text);\n}\n\n// Contextual backgrounds\n// For now we'll leave these alongside the text classes until v4 when we can\n// safely shift things around (per SemVer rules).\n.bg-primary {\n // Given the contrast here, this is the only class to have its color inverted\n // automatically.\n color: #fff;\n .bg-variant(@brand-primary);\n}\n.bg-success {\n .bg-variant(@state-success-bg);\n}\n.bg-info {\n .bg-variant(@state-info-bg);\n}\n.bg-warning {\n .bg-variant(@state-warning-bg);\n}\n.bg-danger {\n .bg-variant(@state-danger-bg);\n}\n\n\n// Page header\n// -------------------------\n\n.page-header {\n padding-bottom: ((@line-height-computed / 2) - 1);\n margin: (@line-height-computed * 2) 0 @line-height-computed;\n border-bottom: 1px solid @page-header-border-color;\n}\n\n\n// Lists\n// -------------------------\n\n// Unordered and Ordered lists\nul,\nol {\n margin-top: 0;\n margin-bottom: (@line-height-computed / 2);\n ul,\n ol {\n margin-bottom: 0;\n }\n}\n\n// List options\n\n// Unstyled keeps list items block level, just removes default browser padding and list-style\n.list-unstyled {\n padding-left: 0;\n list-style: none;\n}\n\n// Inline turns list items into inline-block\n.list-inline {\n .list-unstyled();\n margin-left: -5px;\n\n > li {\n display: inline-block;\n padding-left: 5px;\n padding-right: 5px;\n }\n}\n\n// Description Lists\ndl {\n margin-top: 0; // Remove browser default\n margin-bottom: @line-height-computed;\n}\ndt,\ndd {\n line-height: @line-height-base;\n}\ndt {\n font-weight: bold;\n}\ndd {\n margin-left: 0; // Undo browser default\n}\n\n// Horizontal description lists\n//\n// Defaults to being stacked without any of the below styles applied, until the\n// grid breakpoint is reached (default of ~768px).\n\n.dl-horizontal {\n dd {\n &:extend(.clearfix all); // Clear the floated `dt` if an empty `dd` is present\n }\n\n @media (min-width: @dl-horizontal-breakpoint) {\n dt {\n float: left;\n width: (@dl-horizontal-offset - 20);\n clear: left;\n text-align: right;\n .text-overflow();\n }\n dd {\n margin-left: @dl-horizontal-offset;\n }\n }\n}\n\n\n// Misc\n// -------------------------\n\n// Abbreviations and acronyms\nabbr[title],\n// Add data-* attribute to help out our tooltip plugin, per https://github.com/twbs/bootstrap/issues/5257\nabbr[data-original-title] {\n cursor: help;\n border-bottom: 1px dotted @abbr-border-color;\n}\n.initialism {\n font-size: 90%;\n .text-uppercase();\n}\n\n// Blockquotes\nblockquote {\n padding: (@line-height-computed / 2) @line-height-computed;\n margin: 0 0 @line-height-computed;\n font-size: @blockquote-font-size;\n border-left: 5px solid @blockquote-border-color;\n\n p,\n ul,\n ol {\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n // Note: Deprecated small and .small as of v3.1.0\n // Context: https://github.com/twbs/bootstrap/issues/11660\n footer,\n small,\n .small {\n display: block;\n font-size: 80%; // back to default font-size\n line-height: @line-height-base;\n color: @blockquote-small-color;\n\n &:before {\n content: '\\2014 \\00A0'; // em dash, nbsp\n }\n }\n}\n\n// Opposite alignment of blockquote\n//\n// Heads up: `blockquote.pull-right` has been deprecated as of v3.1.0.\n.blockquote-reverse,\nblockquote.pull-right {\n padding-right: 15px;\n padding-left: 0;\n border-right: 5px solid @blockquote-border-color;\n border-left: 0;\n text-align: right;\n\n // Account for citation\n footer,\n small,\n .small {\n &:before { content: ''; }\n &:after {\n content: '\\00A0 \\2014'; // nbsp, em dash\n }\n }\n}\n\n// Addresses\naddress {\n margin-bottom: @line-height-computed;\n font-style: normal;\n line-height: @line-height-base;\n}\n","// Typography\n\n.text-emphasis-variant(@color) {\n color: @color;\n a&:hover,\n a&:focus {\n color: darken(@color, 10%);\n }\n}\n","// Contextual backgrounds\n\n.bg-variant(@color) {\n background-color: @color;\n a&:hover,\n a&:focus {\n background-color: darken(@color, 10%);\n }\n}\n","// Text overflow\n// Requires inline-block or block for proper styling\n\n.text-overflow() {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n","//\n// Code (inline and block)\n// --------------------------------------------------\n\n\n// Inline and block code styles\ncode,\nkbd,\npre,\nsamp {\n font-family: @font-family-monospace;\n}\n\n// Inline code\ncode {\n padding: 2px 4px;\n font-size: 90%;\n color: @code-color;\n background-color: @code-bg;\n border-radius: @border-radius-base;\n}\n\n// User input typically entered via keyboard\nkbd {\n padding: 2px 4px;\n font-size: 90%;\n color: @kbd-color;\n background-color: @kbd-bg;\n border-radius: @border-radius-small;\n box-shadow: inset 0 -1px 0 rgba(0,0,0,.25);\n\n kbd {\n padding: 0;\n font-size: 100%;\n font-weight: bold;\n box-shadow: none;\n }\n}\n\n// Blocks of code\npre {\n display: block;\n padding: ((@line-height-computed - 1) / 2);\n margin: 0 0 (@line-height-computed / 2);\n font-size: (@font-size-base - 1); // 14px to 13px\n line-height: @line-height-base;\n word-break: break-all;\n word-wrap: break-word;\n color: @pre-color;\n background-color: @pre-bg;\n border: 1px solid @pre-border-color;\n border-radius: @border-radius-base;\n\n // Account for some code outputs that place code tags in pre tags\n code {\n padding: 0;\n font-size: inherit;\n color: inherit;\n white-space: pre-wrap;\n background-color: transparent;\n border-radius: 0;\n }\n}\n\n// Enable scrollable blocks of code\n.pre-scrollable {\n max-height: @pre-scrollable-max-height;\n overflow-y: scroll;\n}\n","//\n// Grid system\n// --------------------------------------------------\n\n\n// Container widths\n//\n// Set the container width, and override it for fixed navbars in media queries.\n\n.container {\n .container-fixed();\n\n @media (min-width: @screen-sm-min) {\n width: @container-sm;\n }\n @media (min-width: @screen-md-min) {\n width: @container-md;\n }\n @media (min-width: @screen-lg-min) {\n width: @container-lg;\n }\n}\n\n\n// Fluid container\n//\n// Utilizes the mixin meant for fixed width containers, but without any defined\n// width for fluid, full width layouts.\n\n.container-fluid {\n .container-fixed();\n}\n\n\n// Row\n//\n// Rows contain and clear the floats of your columns.\n\n.row {\n .make-row();\n}\n\n\n// Columns\n//\n// Common styles for small and large grid columns\n\n.make-grid-columns();\n\n\n// Extra small grid\n//\n// Columns, offsets, pushes, and pulls for extra small devices like\n// smartphones.\n\n.make-grid(xs);\n\n\n// Small grid\n//\n// Columns, offsets, pushes, and pulls for the small device range, from phones\n// to tablets.\n\n@media (min-width: @screen-sm-min) {\n .make-grid(sm);\n}\n\n\n// Medium grid\n//\n// Columns, offsets, pushes, and pulls for the desktop device range.\n\n@media (min-width: @screen-md-min) {\n .make-grid(md);\n}\n\n\n// Large grid\n//\n// Columns, offsets, pushes, and pulls for the large desktop device range.\n\n@media (min-width: @screen-lg-min) {\n .make-grid(lg);\n}\n","// Grid system\n//\n// Generate semantic grid columns with these mixins.\n\n// Centered container element\n.container-fixed(@gutter: @grid-gutter-width) {\n margin-right: auto;\n margin-left: auto;\n padding-left: floor((@gutter / 2));\n padding-right: ceil((@gutter / 2));\n &:extend(.clearfix all);\n}\n\n// Creates a wrapper for a series of columns\n.make-row(@gutter: @grid-gutter-width) {\n margin-left: ceil((@gutter / -2));\n margin-right: floor((@gutter / -2));\n &:extend(.clearfix all);\n}\n\n// Generate the extra small columns\n.make-xs-column(@columns; @gutter: @grid-gutter-width) {\n position: relative;\n float: left;\n width: percentage((@columns / @grid-columns));\n min-height: 1px;\n padding-left: (@gutter / 2);\n padding-right: (@gutter / 2);\n}\n.make-xs-column-offset(@columns) {\n margin-left: percentage((@columns / @grid-columns));\n}\n.make-xs-column-push(@columns) {\n left: percentage((@columns / @grid-columns));\n}\n.make-xs-column-pull(@columns) {\n right: percentage((@columns / @grid-columns));\n}\n\n// Generate the small columns\n.make-sm-column(@columns; @gutter: @grid-gutter-width) {\n position: relative;\n min-height: 1px;\n padding-left: (@gutter / 2);\n padding-right: (@gutter / 2);\n\n @media (min-width: @screen-sm-min) {\n float: left;\n width: percentage((@columns / @grid-columns));\n }\n}\n.make-sm-column-offset(@columns) {\n @media (min-width: @screen-sm-min) {\n margin-left: percentage((@columns / @grid-columns));\n }\n}\n.make-sm-column-push(@columns) {\n @media (min-width: @screen-sm-min) {\n left: percentage((@columns / @grid-columns));\n }\n}\n.make-sm-column-pull(@columns) {\n @media (min-width: @screen-sm-min) {\n right: percentage((@columns / @grid-columns));\n }\n}\n\n// Generate the medium columns\n.make-md-column(@columns; @gutter: @grid-gutter-width) {\n position: relative;\n min-height: 1px;\n padding-left: (@gutter / 2);\n padding-right: (@gutter / 2);\n\n @media (min-width: @screen-md-min) {\n float: left;\n width: percentage((@columns / @grid-columns));\n }\n}\n.make-md-column-offset(@columns) {\n @media (min-width: @screen-md-min) {\n margin-left: percentage((@columns / @grid-columns));\n }\n}\n.make-md-column-push(@columns) {\n @media (min-width: @screen-md-min) {\n left: percentage((@columns / @grid-columns));\n }\n}\n.make-md-column-pull(@columns) {\n @media (min-width: @screen-md-min) {\n right: percentage((@columns / @grid-columns));\n }\n}\n\n// Generate the large columns\n.make-lg-column(@columns; @gutter: @grid-gutter-width) {\n position: relative;\n min-height: 1px;\n padding-left: (@gutter / 2);\n padding-right: (@gutter / 2);\n\n @media (min-width: @screen-lg-min) {\n float: left;\n width: percentage((@columns / @grid-columns));\n }\n}\n.make-lg-column-offset(@columns) {\n @media (min-width: @screen-lg-min) {\n margin-left: percentage((@columns / @grid-columns));\n }\n}\n.make-lg-column-push(@columns) {\n @media (min-width: @screen-lg-min) {\n left: percentage((@columns / @grid-columns));\n }\n}\n.make-lg-column-pull(@columns) {\n @media (min-width: @screen-lg-min) {\n right: percentage((@columns / @grid-columns));\n }\n}\n","// Framework grid generation\n//\n// Used only by Bootstrap to generate the correct number of grid classes given\n// any value of `@grid-columns`.\n\n.make-grid-columns() {\n // Common styles for all sizes of grid columns, widths 1-12\n .col(@index) { // initial\n @item: ~\".col-xs-@{index}, .col-sm-@{index}, .col-md-@{index}, .col-lg-@{index}\";\n .col((@index + 1), @item);\n }\n .col(@index, @list) when (@index =< @grid-columns) { // general; \"=<\" isn't a typo\n @item: ~\".col-xs-@{index}, .col-sm-@{index}, .col-md-@{index}, .col-lg-@{index}\";\n .col((@index + 1), ~\"@{list}, @{item}\");\n }\n .col(@index, @list) when (@index > @grid-columns) { // terminal\n @{list} {\n position: relative;\n // Prevent columns from collapsing when empty\n min-height: 1px;\n // Inner gutter via padding\n padding-left: ceil((@grid-gutter-width / 2));\n padding-right: floor((@grid-gutter-width / 2));\n }\n }\n .col(1); // kickstart it\n}\n\n.float-grid-columns(@class) {\n .col(@index) { // initial\n @item: ~\".col-@{class}-@{index}\";\n .col((@index + 1), @item);\n }\n .col(@index, @list) when (@index =< @grid-columns) { // general\n @item: ~\".col-@{class}-@{index}\";\n .col((@index + 1), ~\"@{list}, @{item}\");\n }\n .col(@index, @list) when (@index > @grid-columns) { // terminal\n @{list} {\n float: left;\n }\n }\n .col(1); // kickstart it\n}\n\n.calc-grid-column(@index, @class, @type) when (@type = width) and (@index > 0) {\n .col-@{class}-@{index} {\n width: percentage((@index / @grid-columns));\n }\n}\n.calc-grid-column(@index, @class, @type) when (@type = push) and (@index > 0) {\n .col-@{class}-push-@{index} {\n left: percentage((@index / @grid-columns));\n }\n}\n.calc-grid-column(@index, @class, @type) when (@type = push) and (@index = 0) {\n .col-@{class}-push-0 {\n left: auto;\n }\n}\n.calc-grid-column(@index, @class, @type) when (@type = pull) and (@index > 0) {\n .col-@{class}-pull-@{index} {\n right: percentage((@index / @grid-columns));\n }\n}\n.calc-grid-column(@index, @class, @type) when (@type = pull) and (@index = 0) {\n .col-@{class}-pull-0 {\n right: auto;\n }\n}\n.calc-grid-column(@index, @class, @type) when (@type = offset) {\n .col-@{class}-offset-@{index} {\n margin-left: percentage((@index / @grid-columns));\n }\n}\n\n// Basic looping in LESS\n.loop-grid-columns(@index, @class, @type) when (@index >= 0) {\n .calc-grid-column(@index, @class, @type);\n // next iteration\n .loop-grid-columns((@index - 1), @class, @type);\n}\n\n// Create grid for specific class\n.make-grid(@class) {\n .float-grid-columns(@class);\n .loop-grid-columns(@grid-columns, @class, width);\n .loop-grid-columns(@grid-columns, @class, pull);\n .loop-grid-columns(@grid-columns, @class, push);\n .loop-grid-columns(@grid-columns, @class, offset);\n}\n","//\n// Tables\n// --------------------------------------------------\n\n\ntable {\n background-color: @table-bg;\n}\ncaption {\n padding-top: @table-cell-padding;\n padding-bottom: @table-cell-padding;\n color: @text-muted;\n text-align: left;\n}\nth {\n text-align: left;\n}\n\n\n// Baseline styles\n\n.table {\n width: 100%;\n max-width: 100%;\n margin-bottom: @line-height-computed;\n // Cells\n > thead,\n > tbody,\n > tfoot {\n > tr {\n > th,\n > td {\n padding: @table-cell-padding;\n line-height: @line-height-base;\n vertical-align: top;\n border-top: 1px solid @table-border-color;\n }\n }\n }\n // Bottom align for column headings\n > thead > tr > th {\n vertical-align: bottom;\n border-bottom: 2px solid @table-border-color;\n }\n // Remove top border from thead by default\n > caption + thead,\n > colgroup + thead,\n > thead:first-child {\n > tr:first-child {\n > th,\n > td {\n border-top: 0;\n }\n }\n }\n // Account for multiple tbody instances\n > tbody + tbody {\n border-top: 2px solid @table-border-color;\n }\n\n // Nesting\n .table {\n background-color: @body-bg;\n }\n}\n\n\n// Condensed table w/ half padding\n\n.table-condensed {\n > thead,\n > tbody,\n > tfoot {\n > tr {\n > th,\n > td {\n padding: @table-condensed-cell-padding;\n }\n }\n }\n}\n\n\n// Bordered version\n//\n// Add borders all around the table and between all the columns.\n\n.table-bordered {\n border: 1px solid @table-border-color;\n > thead,\n > tbody,\n > tfoot {\n > tr {\n > th,\n > td {\n border: 1px solid @table-border-color;\n }\n }\n }\n > thead > tr {\n > th,\n > td {\n border-bottom-width: 2px;\n }\n }\n}\n\n\n// Zebra-striping\n//\n// Default zebra-stripe styles (alternating gray and transparent backgrounds)\n\n.table-striped {\n > tbody > tr:nth-of-type(odd) {\n background-color: @table-bg-accent;\n }\n}\n\n\n// Hover effect\n//\n// Placed here since it has to come after the potential zebra striping\n\n.table-hover {\n > tbody > tr:hover {\n background-color: @table-bg-hover;\n }\n}\n\n\n// Table cell sizing\n//\n// Reset default table behavior\n\ntable col[class*=\"col-\"] {\n position: static; // Prevent border hiding in Firefox and IE9-11 (see https://github.com/twbs/bootstrap/issues/11623)\n float: none;\n display: table-column;\n}\ntable {\n td,\n th {\n &[class*=\"col-\"] {\n position: static; // Prevent border hiding in Firefox and IE9-11 (see https://github.com/twbs/bootstrap/issues/11623)\n float: none;\n display: table-cell;\n }\n }\n}\n\n\n// Table backgrounds\n//\n// Exact selectors below required to override `.table-striped` and prevent\n// inheritance to nested tables.\n\n// Generate the contextual variants\n.table-row-variant(active; @table-bg-active);\n.table-row-variant(success; @state-success-bg);\n.table-row-variant(info; @state-info-bg);\n.table-row-variant(warning; @state-warning-bg);\n.table-row-variant(danger; @state-danger-bg);\n\n\n// Responsive tables\n//\n// Wrap your tables in `.table-responsive` and we'll make them mobile friendly\n// by enabling horizontal scrolling. Only applies <768px. Everything above that\n// will display normally.\n\n.table-responsive {\n overflow-x: auto;\n min-height: 0.01%; // Workaround for IE9 bug (see https://github.com/twbs/bootstrap/issues/14837)\n\n @media screen and (max-width: @screen-xs-max) {\n width: 100%;\n margin-bottom: (@line-height-computed * 0.75);\n overflow-y: hidden;\n -ms-overflow-style: -ms-autohiding-scrollbar;\n border: 1px solid @table-border-color;\n\n // Tighten up spacing\n > .table {\n margin-bottom: 0;\n\n // Ensure the content doesn't wrap\n > thead,\n > tbody,\n > tfoot {\n > tr {\n > th,\n > td {\n white-space: nowrap;\n }\n }\n }\n }\n\n // Special overrides for the bordered tables\n > .table-bordered {\n border: 0;\n\n // Nuke the appropriate borders so that the parent can handle them\n > thead,\n > tbody,\n > tfoot {\n > tr {\n > th:first-child,\n > td:first-child {\n border-left: 0;\n }\n > th:last-child,\n > td:last-child {\n border-right: 0;\n }\n }\n }\n\n // Only nuke the last row's bottom-border in `tbody` and `tfoot` since\n // chances are there will be only one `tr` in a `thead` and that would\n // remove the border altogether.\n > tbody,\n > tfoot {\n > tr:last-child {\n > th,\n > td {\n border-bottom: 0;\n }\n }\n }\n\n }\n }\n}\n","// Tables\n\n.table-row-variant(@state; @background) {\n // Exact selectors below required to override `.table-striped` and prevent\n // inheritance to nested tables.\n .table > thead > tr,\n .table > tbody > tr,\n .table > tfoot > tr {\n > td.@{state},\n > th.@{state},\n &.@{state} > td,\n &.@{state} > th {\n background-color: @background;\n }\n }\n\n // Hover states for `.table-hover`\n // Note: this is not available for cells or rows within `thead` or `tfoot`.\n .table-hover > tbody > tr {\n > td.@{state}:hover,\n > th.@{state}:hover,\n &.@{state}:hover > td,\n &:hover > .@{state},\n &.@{state}:hover > th {\n background-color: darken(@background, 5%);\n }\n }\n}\n","//\n// Forms\n// --------------------------------------------------\n\n\n// Normalize non-controls\n//\n// Restyle and baseline non-control form elements.\n\nfieldset {\n padding: 0;\n margin: 0;\n border: 0;\n // Chrome and Firefox set a `min-width: min-content;` on fieldsets,\n // so we reset that to ensure it behaves more like a standard block element.\n // See https://github.com/twbs/bootstrap/issues/12359.\n min-width: 0;\n}\n\nlegend {\n display: block;\n width: 100%;\n padding: 0;\n margin-bottom: @line-height-computed;\n font-size: (@font-size-base * 1.5);\n line-height: inherit;\n color: @legend-color;\n border: 0;\n border-bottom: 1px solid @legend-border-color;\n}\n\nlabel {\n display: inline-block;\n max-width: 100%; // Force IE8 to wrap long content (see https://github.com/twbs/bootstrap/issues/13141)\n margin-bottom: 5px;\n font-weight: bold;\n}\n\n\n// Normalize form controls\n//\n// While most of our form styles require extra classes, some basic normalization\n// is required to ensure optimum display with or without those classes to better\n// address browser inconsistencies.\n\n// Override content-box in Normalize (* isn't specific enough)\ninput[type=\"search\"] {\n .box-sizing(border-box);\n}\n\n// Position radios and checkboxes better\ninput[type=\"radio\"],\ninput[type=\"checkbox\"] {\n margin: 4px 0 0;\n margin-top: 1px \\9; // IE8-9\n line-height: normal;\n}\n\ninput[type=\"file\"] {\n display: block;\n}\n\n// Make range inputs behave like textual form controls\ninput[type=\"range\"] {\n display: block;\n width: 100%;\n}\n\n// Make multiple select elements height not fixed\nselect[multiple],\nselect[size] {\n height: auto;\n}\n\n// Focus for file, radio, and checkbox\ninput[type=\"file\"]:focus,\ninput[type=\"radio\"]:focus,\ninput[type=\"checkbox\"]:focus {\n .tab-focus();\n}\n\n// Adjust output element\noutput {\n display: block;\n padding-top: (@padding-base-vertical + 1);\n font-size: @font-size-base;\n line-height: @line-height-base;\n color: @input-color;\n}\n\n\n// Common form controls\n//\n// Shared size and type resets for form controls. Apply `.form-control` to any\n// of the following form controls:\n//\n// select\n// textarea\n// input[type=\"text\"]\n// input[type=\"password\"]\n// input[type=\"datetime\"]\n// input[type=\"datetime-local\"]\n// input[type=\"date\"]\n// input[type=\"month\"]\n// input[type=\"time\"]\n// input[type=\"week\"]\n// input[type=\"number\"]\n// input[type=\"email\"]\n// input[type=\"url\"]\n// input[type=\"search\"]\n// input[type=\"tel\"]\n// input[type=\"color\"]\n\n.form-control {\n display: block;\n width: 100%;\n height: @input-height-base; // Make inputs at least the height of their button counterpart (base line-height + padding + border)\n padding: @padding-base-vertical @padding-base-horizontal;\n font-size: @font-size-base;\n line-height: @line-height-base;\n color: @input-color;\n background-color: @input-bg;\n background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214\n border: 1px solid @input-border;\n border-radius: @input-border-radius; // Note: This has no effect on s in CSS.\n .box-shadow(inset 0 1px 1px rgba(0,0,0,.075));\n .transition(~\"border-color ease-in-out .15s, box-shadow ease-in-out .15s\");\n\n // Customize the `:focus` state to imitate native WebKit styles.\n .form-control-focus();\n\n // Placeholder\n .placeholder();\n\n // Unstyle the caret on ``\n// element gets special love because it's special, and that's a fact!\n.input-size(@input-height; @padding-vertical; @padding-horizontal; @font-size; @line-height; @border-radius) {\n height: @input-height;\n padding: @padding-vertical @padding-horizontal;\n font-size: @font-size;\n line-height: @line-height;\n border-radius: @border-radius;\n\n select& {\n height: @input-height;\n line-height: @input-height;\n }\n\n textarea&,\n select[multiple]& {\n height: auto;\n }\n}\n","//\n// Buttons\n// --------------------------------------------------\n\n\n// Base styles\n// --------------------------------------------------\n\n.btn {\n display: inline-block;\n margin-bottom: 0; // For input.btn\n font-weight: @btn-font-weight;\n text-align: center;\n vertical-align: middle;\n touch-action: manipulation;\n cursor: pointer;\n background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214\n border: 1px solid transparent;\n white-space: nowrap;\n .button-size(@padding-base-vertical; @padding-base-horizontal; @font-size-base; @line-height-base; @btn-border-radius-base);\n .user-select(none);\n\n &,\n &:active,\n &.active {\n &:focus,\n &.focus {\n .tab-focus();\n }\n }\n\n &:hover,\n &:focus,\n &.focus {\n color: @btn-default-color;\n text-decoration: none;\n }\n\n &:active,\n &.active {\n outline: 0;\n background-image: none;\n .box-shadow(inset 0 3px 5px rgba(0,0,0,.125));\n }\n\n &.disabled,\n &[disabled],\n fieldset[disabled] & {\n cursor: @cursor-disabled;\n .opacity(.65);\n .box-shadow(none);\n }\n\n a& {\n &.disabled,\n fieldset[disabled] & {\n pointer-events: none; // Future-proof disabling of clicks on `` elements\n }\n }\n}\n\n\n// Alternate buttons\n// --------------------------------------------------\n\n.btn-default {\n .button-variant(@btn-default-color; @btn-default-bg; @btn-default-border);\n}\n.btn-primary {\n .button-variant(@btn-primary-color; @btn-primary-bg; @btn-primary-border);\n}\n// Success appears as green\n.btn-success {\n .button-variant(@btn-success-color; @btn-success-bg; @btn-success-border);\n}\n// Info appears as blue-green\n.btn-info {\n .button-variant(@btn-info-color; @btn-info-bg; @btn-info-border);\n}\n// Warning appears as orange\n.btn-warning {\n .button-variant(@btn-warning-color; @btn-warning-bg; @btn-warning-border);\n}\n// Danger and error appear as red\n.btn-danger {\n .button-variant(@btn-danger-color; @btn-danger-bg; @btn-danger-border);\n}\n\n\n// Link buttons\n// -------------------------\n\n// Make a button look and behave like a link\n.btn-link {\n color: @link-color;\n font-weight: normal;\n border-radius: 0;\n\n &,\n &:active,\n &.active,\n &[disabled],\n fieldset[disabled] & {\n background-color: transparent;\n .box-shadow(none);\n }\n &,\n &:hover,\n &:focus,\n &:active {\n border-color: transparent;\n }\n &:hover,\n &:focus {\n color: @link-hover-color;\n text-decoration: @link-hover-decoration;\n background-color: transparent;\n }\n &[disabled],\n fieldset[disabled] & {\n &:hover,\n &:focus {\n color: @btn-link-disabled-color;\n text-decoration: none;\n }\n }\n}\n\n\n// Button Sizes\n// --------------------------------------------------\n\n.btn-lg {\n // line-height: ensure even-numbered height of button next to large input\n .button-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @btn-border-radius-large);\n}\n.btn-sm {\n // line-height: ensure proper height of button next to small input\n .button-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @btn-border-radius-small);\n}\n.btn-xs {\n .button-size(@padding-xs-vertical; @padding-xs-horizontal; @font-size-small; @line-height-small; @btn-border-radius-small);\n}\n\n\n// Block button\n// --------------------------------------------------\n\n.btn-block {\n display: block;\n width: 100%;\n}\n\n// Vertically space out multiple block buttons\n.btn-block + .btn-block {\n margin-top: 5px;\n}\n\n// Specificity overrides\ninput[type=\"submit\"],\ninput[type=\"reset\"],\ninput[type=\"button\"] {\n &.btn-block {\n width: 100%;\n }\n}\n","// Button variants\n//\n// Easily pump out default styles, as well as :hover, :focus, :active,\n// and disabled options for all buttons\n\n.button-variant(@color; @background; @border) {\n color: @color;\n background-color: @background;\n border-color: @border;\n\n &:focus,\n &.focus {\n color: @color;\n background-color: darken(@background, 10%);\n border-color: darken(@border, 25%);\n }\n &:hover {\n color: @color;\n background-color: darken(@background, 10%);\n border-color: darken(@border, 12%);\n }\n &:active,\n &.active,\n .open > .dropdown-toggle& {\n color: @color;\n background-color: darken(@background, 10%);\n border-color: darken(@border, 12%);\n\n &:hover,\n &:focus,\n &.focus {\n color: @color;\n background-color: darken(@background, 17%);\n border-color: darken(@border, 25%);\n }\n }\n &:active,\n &.active,\n .open > .dropdown-toggle& {\n background-image: none;\n }\n &.disabled,\n &[disabled],\n fieldset[disabled] & {\n &:hover,\n &:focus,\n &.focus {\n background-color: @background;\n border-color: @border;\n }\n }\n\n .badge {\n color: @background;\n background-color: @color;\n }\n}\n\n// Button sizes\n.button-size(@padding-vertical; @padding-horizontal; @font-size; @line-height; @border-radius) {\n padding: @padding-vertical @padding-horizontal;\n font-size: @font-size;\n line-height: @line-height;\n border-radius: @border-radius;\n}\n","// Opacity\n\n.opacity(@opacity) {\n opacity: @opacity;\n // IE8 filter\n @opacity-ie: (@opacity * 100);\n filter: ~\"alpha(opacity=@{opacity-ie})\";\n}\n","//\n// Component animations\n// --------------------------------------------------\n\n// Heads up!\n//\n// We don't use the `.opacity()` mixin here since it causes a bug with text\n// fields in IE7-8. Source: https://github.com/twbs/bootstrap/pull/3552.\n\n.fade {\n opacity: 0;\n .transition(opacity .15s linear);\n &.in {\n opacity: 1;\n }\n}\n\n.collapse {\n display: none;\n\n &.in { display: block; }\n tr&.in { display: table-row; }\n tbody&.in { display: table-row-group; }\n}\n\n.collapsing {\n position: relative;\n height: 0;\n overflow: hidden;\n .transition-property(~\"height, visibility\");\n .transition-duration(.35s);\n .transition-timing-function(ease);\n}\n","//\n// Dropdown menus\n// --------------------------------------------------\n\n\n// Dropdown arrow/caret\n.caret {\n display: inline-block;\n width: 0;\n height: 0;\n margin-left: 2px;\n vertical-align: middle;\n border-top: @caret-width-base dashed;\n border-top: @caret-width-base solid ~\"\\9\"; // IE8\n border-right: @caret-width-base solid transparent;\n border-left: @caret-width-base solid transparent;\n}\n\n// The dropdown wrapper (div)\n.dropup,\n.dropdown {\n position: relative;\n}\n\n// Prevent the focus on the dropdown toggle when closing dropdowns\n.dropdown-toggle:focus {\n outline: 0;\n}\n\n// The dropdown menu (ul)\n.dropdown-menu {\n position: absolute;\n top: 100%;\n left: 0;\n z-index: @zindex-dropdown;\n display: none; // none by default, but block on \"open\" of the menu\n float: left;\n min-width: 160px;\n padding: 5px 0;\n margin: 2px 0 0; // override default ul\n list-style: none;\n font-size: @font-size-base;\n text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer)\n background-color: @dropdown-bg;\n border: 1px solid @dropdown-fallback-border; // IE8 fallback\n border: 1px solid @dropdown-border;\n border-radius: @border-radius-base;\n .box-shadow(0 6px 12px rgba(0,0,0,.175));\n background-clip: padding-box;\n\n // Aligns the dropdown menu to right\n //\n // Deprecated as of 3.1.0 in favor of `.dropdown-menu-[dir]`\n &.pull-right {\n right: 0;\n left: auto;\n }\n\n // Dividers (basically an hr) within the dropdown\n .divider {\n .nav-divider(@dropdown-divider-bg);\n }\n\n // Links within the dropdown menu\n > li > a {\n display: block;\n padding: 3px 20px;\n clear: both;\n font-weight: normal;\n line-height: @line-height-base;\n color: @dropdown-link-color;\n white-space: nowrap; // prevent links from randomly breaking onto new lines\n }\n}\n\n// Hover/Focus state\n.dropdown-menu > li > a {\n &:hover,\n &:focus {\n text-decoration: none;\n color: @dropdown-link-hover-color;\n background-color: @dropdown-link-hover-bg;\n }\n}\n\n// Active state\n.dropdown-menu > .active > a {\n &,\n &:hover,\n &:focus {\n color: @dropdown-link-active-color;\n text-decoration: none;\n outline: 0;\n background-color: @dropdown-link-active-bg;\n }\n}\n\n// Disabled state\n//\n// Gray out text and ensure the hover/focus state remains gray\n\n.dropdown-menu > .disabled > a {\n &,\n &:hover,\n &:focus {\n color: @dropdown-link-disabled-color;\n }\n\n // Nuke hover/focus effects\n &:hover,\n &:focus {\n text-decoration: none;\n background-color: transparent;\n background-image: none; // Remove CSS gradient\n .reset-filter();\n cursor: @cursor-disabled;\n }\n}\n\n// Open state for the dropdown\n.open {\n // Show the menu\n > .dropdown-menu {\n display: block;\n }\n\n // Remove the outline when :focus is triggered\n > a {\n outline: 0;\n }\n}\n\n// Menu positioning\n//\n// Add extra class to `.dropdown-menu` to flip the alignment of the dropdown\n// menu with the parent.\n.dropdown-menu-right {\n left: auto; // Reset the default from `.dropdown-menu`\n right: 0;\n}\n// With v3, we enabled auto-flipping if you have a dropdown within a right\n// aligned nav component. To enable the undoing of that, we provide an override\n// to restore the default dropdown menu alignment.\n//\n// This is only for left-aligning a dropdown menu within a `.navbar-right` or\n// `.pull-right` nav component.\n.dropdown-menu-left {\n left: 0;\n right: auto;\n}\n\n// Dropdown section headers\n.dropdown-header {\n display: block;\n padding: 3px 20px;\n font-size: @font-size-small;\n line-height: @line-height-base;\n color: @dropdown-header-color;\n white-space: nowrap; // as with > li > a\n}\n\n// Backdrop to catch body clicks on mobile, etc.\n.dropdown-backdrop {\n position: fixed;\n left: 0;\n right: 0;\n bottom: 0;\n top: 0;\n z-index: (@zindex-dropdown - 10);\n}\n\n// Right aligned dropdowns\n.pull-right > .dropdown-menu {\n right: 0;\n left: auto;\n}\n\n// Allow for dropdowns to go bottom up (aka, dropup-menu)\n//\n// Just add .dropup after the standard .dropdown class and you're set, bro.\n// TODO: abstract this so that the navbar fixed styles are not placed here?\n\n.dropup,\n.navbar-fixed-bottom .dropdown {\n // Reverse the caret\n .caret {\n border-top: 0;\n border-bottom: @caret-width-base dashed;\n border-bottom: @caret-width-base solid ~\"\\9\"; // IE8\n content: \"\";\n }\n // Different positioning for bottom up menu\n .dropdown-menu {\n top: auto;\n bottom: 100%;\n margin-bottom: 2px;\n }\n}\n\n\n// Component alignment\n//\n// Reiterate per navbar.less and the modified component alignment there.\n\n@media (min-width: @grid-float-breakpoint) {\n .navbar-right {\n .dropdown-menu {\n .dropdown-menu-right();\n }\n // Necessary for overrides of the default right aligned menu.\n // Will remove come v4 in all likelihood.\n .dropdown-menu-left {\n .dropdown-menu-left();\n }\n }\n}\n","// Horizontal dividers\n//\n// Dividers (basically an hr) within dropdowns and nav lists\n\n.nav-divider(@color: #e5e5e5) {\n height: 1px;\n margin: ((@line-height-computed / 2) - 1) 0;\n overflow: hidden;\n background-color: @color;\n}\n","// Reset filters for IE\n//\n// When you need to remove a gradient background, do not forget to use this to reset\n// the IE filter for IE9 and below.\n\n.reset-filter() {\n filter: e(%(\"progid:DXImageTransform.Microsoft.gradient(enabled = false)\"));\n}\n","//\n// Button groups\n// --------------------------------------------------\n\n// Make the div behave like a button\n.btn-group,\n.btn-group-vertical {\n position: relative;\n display: inline-block;\n vertical-align: middle; // match .btn alignment given font-size hack above\n > .btn {\n position: relative;\n float: left;\n // Bring the \"active\" button to the front\n &:hover,\n &:focus,\n &:active,\n &.active {\n z-index: 2;\n }\n }\n}\n\n// Prevent double borders when buttons are next to each other\n.btn-group {\n .btn + .btn,\n .btn + .btn-group,\n .btn-group + .btn,\n .btn-group + .btn-group {\n margin-left: -1px;\n }\n}\n\n// Optional: Group multiple button groups together for a toolbar\n.btn-toolbar {\n margin-left: -5px; // Offset the first child's margin\n &:extend(.clearfix all);\n\n .btn,\n .btn-group,\n .input-group {\n float: left;\n }\n > .btn,\n > .btn-group,\n > .input-group {\n margin-left: 5px;\n }\n}\n\n.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {\n border-radius: 0;\n}\n\n// Set corners individual because sometimes a single button can be in a .btn-group and we need :first-child and :last-child to both match\n.btn-group > .btn:first-child {\n margin-left: 0;\n &:not(:last-child):not(.dropdown-toggle) {\n .border-right-radius(0);\n }\n}\n// Need .dropdown-toggle since :last-child doesn't apply, given that a .dropdown-menu is used immediately after it\n.btn-group > .btn:last-child:not(:first-child),\n.btn-group > .dropdown-toggle:not(:first-child) {\n .border-left-radius(0);\n}\n\n// Custom edits for including btn-groups within btn-groups (useful for including dropdown buttons within a btn-group)\n.btn-group > .btn-group {\n float: left;\n}\n.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {\n border-radius: 0;\n}\n.btn-group > .btn-group:first-child:not(:last-child) {\n > .btn:last-child,\n > .dropdown-toggle {\n .border-right-radius(0);\n }\n}\n.btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child {\n .border-left-radius(0);\n}\n\n// On active and open, don't show outline\n.btn-group .dropdown-toggle:active,\n.btn-group.open .dropdown-toggle {\n outline: 0;\n}\n\n\n// Sizing\n//\n// Remix the default button sizing classes into new ones for easier manipulation.\n\n.btn-group-xs > .btn { &:extend(.btn-xs); }\n.btn-group-sm > .btn { &:extend(.btn-sm); }\n.btn-group-lg > .btn { &:extend(.btn-lg); }\n\n\n// Split button dropdowns\n// ----------------------\n\n// Give the line between buttons some depth\n.btn-group > .btn + .dropdown-toggle {\n padding-left: 8px;\n padding-right: 8px;\n}\n.btn-group > .btn-lg + .dropdown-toggle {\n padding-left: 12px;\n padding-right: 12px;\n}\n\n// The clickable button for toggling the menu\n// Remove the gradient and set the same inset shadow as the :active state\n.btn-group.open .dropdown-toggle {\n .box-shadow(inset 0 3px 5px rgba(0,0,0,.125));\n\n // Show no shadow for `.btn-link` since it has no other button styles.\n &.btn-link {\n .box-shadow(none);\n }\n}\n\n\n// Reposition the caret\n.btn .caret {\n margin-left: 0;\n}\n// Carets in other button sizes\n.btn-lg .caret {\n border-width: @caret-width-large @caret-width-large 0;\n border-bottom-width: 0;\n}\n// Upside down carets for .dropup\n.dropup .btn-lg .caret {\n border-width: 0 @caret-width-large @caret-width-large;\n}\n\n\n// Vertical button groups\n// ----------------------\n\n.btn-group-vertical {\n > .btn,\n > .btn-group,\n > .btn-group > .btn {\n display: block;\n float: none;\n width: 100%;\n max-width: 100%;\n }\n\n // Clear floats so dropdown menus can be properly placed\n > .btn-group {\n &:extend(.clearfix all);\n > .btn {\n float: none;\n }\n }\n\n > .btn + .btn,\n > .btn + .btn-group,\n > .btn-group + .btn,\n > .btn-group + .btn-group {\n margin-top: -1px;\n margin-left: 0;\n }\n}\n\n.btn-group-vertical > .btn {\n &:not(:first-child):not(:last-child) {\n border-radius: 0;\n }\n &:first-child:not(:last-child) {\n .border-top-radius(@btn-border-radius-base);\n .border-bottom-radius(0);\n }\n &:last-child:not(:first-child) {\n .border-top-radius(0);\n .border-bottom-radius(@btn-border-radius-base);\n }\n}\n.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn {\n border-radius: 0;\n}\n.btn-group-vertical > .btn-group:first-child:not(:last-child) {\n > .btn:last-child,\n > .dropdown-toggle {\n .border-bottom-radius(0);\n }\n}\n.btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child {\n .border-top-radius(0);\n}\n\n\n// Justified button groups\n// ----------------------\n\n.btn-group-justified {\n display: table;\n width: 100%;\n table-layout: fixed;\n border-collapse: separate;\n > .btn,\n > .btn-group {\n float: none;\n display: table-cell;\n width: 1%;\n }\n > .btn-group .btn {\n width: 100%;\n }\n\n > .btn-group .dropdown-menu {\n left: auto;\n }\n}\n\n\n// Checkbox and radio options\n//\n// In order to support the browser's form validation feedback, powered by the\n// `required` attribute, we have to \"hide\" the inputs via `clip`. We cannot use\n// `display: none;` or `visibility: hidden;` as that also hides the popover.\n// Simply visually hiding the inputs via `opacity` would leave them clickable in\n// certain cases which is prevented by using `clip` and `pointer-events`.\n// This way, we ensure a DOM element is visible to position the popover from.\n//\n// See https://github.com/twbs/bootstrap/pull/12794 and\n// https://github.com/twbs/bootstrap/pull/14559 for more information.\n\n[data-toggle=\"buttons\"] {\n > .btn,\n > .btn-group > .btn {\n input[type=\"radio\"],\n input[type=\"checkbox\"] {\n position: absolute;\n clip: rect(0,0,0,0);\n pointer-events: none;\n }\n }\n}\n","// Single side border-radius\n\n.border-top-radius(@radius) {\n border-top-right-radius: @radius;\n border-top-left-radius: @radius;\n}\n.border-right-radius(@radius) {\n border-bottom-right-radius: @radius;\n border-top-right-radius: @radius;\n}\n.border-bottom-radius(@radius) {\n border-bottom-right-radius: @radius;\n border-bottom-left-radius: @radius;\n}\n.border-left-radius(@radius) {\n border-bottom-left-radius: @radius;\n border-top-left-radius: @radius;\n}\n","//\n// Input groups\n// --------------------------------------------------\n\n// Base styles\n// -------------------------\n.input-group {\n position: relative; // For dropdowns\n display: table;\n border-collapse: separate; // prevent input groups from inheriting border styles from table cells when placed within a table\n\n // Undo padding and float of grid classes\n &[class*=\"col-\"] {\n float: none;\n padding-left: 0;\n padding-right: 0;\n }\n\n .form-control {\n // Ensure that the input is always above the *appended* addon button for\n // proper border colors.\n position: relative;\n z-index: 2;\n\n // IE9 fubars the placeholder attribute in text inputs and the arrows on\n // select elements in input groups. To fix it, we float the input. Details:\n // https://github.com/twbs/bootstrap/issues/11561#issuecomment-28936855\n float: left;\n\n width: 100%;\n margin-bottom: 0;\n\n &:focus {\n z-index: 3;\n }\n }\n}\n\n// Sizing options\n//\n// Remix the default form control sizing classes into new ones for easier\n// manipulation.\n\n.input-group-lg > .form-control,\n.input-group-lg > .input-group-addon,\n.input-group-lg > .input-group-btn > .btn {\n .input-lg();\n}\n.input-group-sm > .form-control,\n.input-group-sm > .input-group-addon,\n.input-group-sm > .input-group-btn > .btn {\n .input-sm();\n}\n\n\n// Display as table-cell\n// -------------------------\n.input-group-addon,\n.input-group-btn,\n.input-group .form-control {\n display: table-cell;\n\n &:not(:first-child):not(:last-child) {\n border-radius: 0;\n }\n}\n// Addon and addon wrapper for buttons\n.input-group-addon,\n.input-group-btn {\n width: 1%;\n white-space: nowrap;\n vertical-align: middle; // Match the inputs\n}\n\n// Text input groups\n// -------------------------\n.input-group-addon {\n padding: @padding-base-vertical @padding-base-horizontal;\n font-size: @font-size-base;\n font-weight: normal;\n line-height: 1;\n color: @input-color;\n text-align: center;\n background-color: @input-group-addon-bg;\n border: 1px solid @input-group-addon-border-color;\n border-radius: @input-border-radius;\n\n // Sizing\n &.input-sm {\n padding: @padding-small-vertical @padding-small-horizontal;\n font-size: @font-size-small;\n border-radius: @input-border-radius-small;\n }\n &.input-lg {\n padding: @padding-large-vertical @padding-large-horizontal;\n font-size: @font-size-large;\n border-radius: @input-border-radius-large;\n }\n\n // Nuke default margins from checkboxes and radios to vertically center within.\n input[type=\"radio\"],\n input[type=\"checkbox\"] {\n margin-top: 0;\n }\n}\n\n// Reset rounded corners\n.input-group .form-control:first-child,\n.input-group-addon:first-child,\n.input-group-btn:first-child > .btn,\n.input-group-btn:first-child > .btn-group > .btn,\n.input-group-btn:first-child > .dropdown-toggle,\n.input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle),\n.input-group-btn:last-child > .btn-group:not(:last-child) > .btn {\n .border-right-radius(0);\n}\n.input-group-addon:first-child {\n border-right: 0;\n}\n.input-group .form-control:last-child,\n.input-group-addon:last-child,\n.input-group-btn:last-child > .btn,\n.input-group-btn:last-child > .btn-group > .btn,\n.input-group-btn:last-child > .dropdown-toggle,\n.input-group-btn:first-child > .btn:not(:first-child),\n.input-group-btn:first-child > .btn-group:not(:first-child) > .btn {\n .border-left-radius(0);\n}\n.input-group-addon:last-child {\n border-left: 0;\n}\n\n// Button input groups\n// -------------------------\n.input-group-btn {\n position: relative;\n // Jankily prevent input button groups from wrapping with `white-space` and\n // `font-size` in combination with `inline-block` on buttons.\n font-size: 0;\n white-space: nowrap;\n\n // Negative margin for spacing, position for bringing hovered/focused/actived\n // element above the siblings.\n > .btn {\n position: relative;\n + .btn {\n margin-left: -1px;\n }\n // Bring the \"active\" button to the front\n &:hover,\n &:focus,\n &:active {\n z-index: 2;\n }\n }\n\n // Negative margin to only have a 1px border between the two\n &:first-child {\n > .btn,\n > .btn-group {\n margin-right: -1px;\n }\n }\n &:last-child {\n > .btn,\n > .btn-group {\n z-index: 2;\n margin-left: -1px;\n }\n }\n}\n","//\n// Navs\n// --------------------------------------------------\n\n\n// Base class\n// --------------------------------------------------\n\n.nav {\n margin-bottom: 0;\n padding-left: 0; // Override default ul/ol\n list-style: none;\n &:extend(.clearfix all);\n\n > li {\n position: relative;\n display: block;\n\n > a {\n position: relative;\n display: block;\n padding: @nav-link-padding;\n &:hover,\n &:focus {\n text-decoration: none;\n background-color: @nav-link-hover-bg;\n }\n }\n\n // Disabled state sets text to gray and nukes hover/tab effects\n &.disabled > a {\n color: @nav-disabled-link-color;\n\n &:hover,\n &:focus {\n color: @nav-disabled-link-hover-color;\n text-decoration: none;\n background-color: transparent;\n cursor: @cursor-disabled;\n }\n }\n }\n\n // Open dropdowns\n .open > a {\n &,\n &:hover,\n &:focus {\n background-color: @nav-link-hover-bg;\n border-color: @link-color;\n }\n }\n\n // Nav dividers (deprecated with v3.0.1)\n //\n // This should have been removed in v3 with the dropping of `.nav-list`, but\n // we missed it. We don't currently support this anywhere, but in the interest\n // of maintaining backward compatibility in case you use it, it's deprecated.\n .nav-divider {\n .nav-divider();\n }\n\n // Prevent IE8 from misplacing imgs\n //\n // See https://github.com/h5bp/html5-boilerplate/issues/984#issuecomment-3985989\n > li > a > img {\n max-width: none;\n }\n}\n\n\n// Tabs\n// -------------------------\n\n// Give the tabs something to sit on\n.nav-tabs {\n border-bottom: 1px solid @nav-tabs-border-color;\n > li {\n float: left;\n // Make the list-items overlay the bottom border\n margin-bottom: -1px;\n\n // Actual tabs (as links)\n > a {\n margin-right: 2px;\n line-height: @line-height-base;\n border: 1px solid transparent;\n border-radius: @border-radius-base @border-radius-base 0 0;\n &:hover {\n border-color: @nav-tabs-link-hover-border-color @nav-tabs-link-hover-border-color @nav-tabs-border-color;\n }\n }\n\n // Active state, and its :hover to override normal :hover\n &.active > a {\n &,\n &:hover,\n &:focus {\n color: @nav-tabs-active-link-hover-color;\n background-color: @nav-tabs-active-link-hover-bg;\n border: 1px solid @nav-tabs-active-link-hover-border-color;\n border-bottom-color: transparent;\n cursor: default;\n }\n }\n }\n // pulling this in mainly for less shorthand\n &.nav-justified {\n .nav-justified();\n .nav-tabs-justified();\n }\n}\n\n\n// Pills\n// -------------------------\n.nav-pills {\n > li {\n float: left;\n\n // Links rendered as pills\n > a {\n border-radius: @nav-pills-border-radius;\n }\n + li {\n margin-left: 2px;\n }\n\n // Active state\n &.active > a {\n &,\n &:hover,\n &:focus {\n color: @nav-pills-active-link-hover-color;\n background-color: @nav-pills-active-link-hover-bg;\n }\n }\n }\n}\n\n\n// Stacked pills\n.nav-stacked {\n > li {\n float: none;\n + li {\n margin-top: 2px;\n margin-left: 0; // no need for this gap between nav items\n }\n }\n}\n\n\n// Nav variations\n// --------------------------------------------------\n\n// Justified nav links\n// -------------------------\n\n.nav-justified {\n width: 100%;\n\n > li {\n float: none;\n > a {\n text-align: center;\n margin-bottom: 5px;\n }\n }\n\n > .dropdown .dropdown-menu {\n top: auto;\n left: auto;\n }\n\n @media (min-width: @screen-sm-min) {\n > li {\n display: table-cell;\n width: 1%;\n > a {\n margin-bottom: 0;\n }\n }\n }\n}\n\n// Move borders to anchors instead of bottom of list\n//\n// Mixin for adding on top the shared `.nav-justified` styles for our tabs\n.nav-tabs-justified {\n border-bottom: 0;\n\n > li > a {\n // Override margin from .nav-tabs\n margin-right: 0;\n border-radius: @border-radius-base;\n }\n\n > .active > a,\n > .active > a:hover,\n > .active > a:focus {\n border: 1px solid @nav-tabs-justified-link-border-color;\n }\n\n @media (min-width: @screen-sm-min) {\n > li > a {\n border-bottom: 1px solid @nav-tabs-justified-link-border-color;\n border-radius: @border-radius-base @border-radius-base 0 0;\n }\n > .active > a,\n > .active > a:hover,\n > .active > a:focus {\n border-bottom-color: @nav-tabs-justified-active-link-border-color;\n }\n }\n}\n\n\n// Tabbable tabs\n// -------------------------\n\n// Hide tabbable panes to start, show them when `.active`\n.tab-content {\n > .tab-pane {\n display: none;\n }\n > .active {\n display: block;\n }\n}\n\n\n// Dropdowns\n// -------------------------\n\n// Specific dropdowns\n.nav-tabs .dropdown-menu {\n // make dropdown border overlap tab border\n margin-top: -1px;\n // Remove the top rounded corners here since there is a hard edge above the menu\n .border-top-radius(0);\n}\n","//\n// Navbars\n// --------------------------------------------------\n\n\n// Wrapper and base class\n//\n// Provide a static navbar from which we expand to create full-width, fixed, and\n// other navbar variations.\n\n.navbar {\n position: relative;\n min-height: @navbar-height; // Ensure a navbar always shows (e.g., without a .navbar-brand in collapsed mode)\n margin-bottom: @navbar-margin-bottom;\n border: 1px solid transparent;\n\n // Prevent floats from breaking the navbar\n &:extend(.clearfix all);\n\n @media (min-width: @grid-float-breakpoint) {\n border-radius: @navbar-border-radius;\n }\n}\n\n\n// Navbar heading\n//\n// Groups `.navbar-brand` and `.navbar-toggle` into a single component for easy\n// styling of responsive aspects.\n\n.navbar-header {\n &:extend(.clearfix all);\n\n @media (min-width: @grid-float-breakpoint) {\n float: left;\n }\n}\n\n\n// Navbar collapse (body)\n//\n// Group your navbar content into this for easy collapsing and expanding across\n// various device sizes. By default, this content is collapsed when <768px, but\n// will expand past that for a horizontal display.\n//\n// To start (on mobile devices) the navbar links, forms, and buttons are stacked\n// vertically and include a `max-height` to overflow in case you have too much\n// content for the user's viewport.\n\n.navbar-collapse {\n overflow-x: visible;\n padding-right: @navbar-padding-horizontal;\n padding-left: @navbar-padding-horizontal;\n border-top: 1px solid transparent;\n box-shadow: inset 0 1px 0 rgba(255,255,255,.1);\n &:extend(.clearfix all);\n -webkit-overflow-scrolling: touch;\n\n &.in {\n overflow-y: auto;\n }\n\n @media (min-width: @grid-float-breakpoint) {\n width: auto;\n border-top: 0;\n box-shadow: none;\n\n &.collapse {\n display: block !important;\n height: auto !important;\n padding-bottom: 0; // Override default setting\n overflow: visible !important;\n }\n\n &.in {\n overflow-y: visible;\n }\n\n // Undo the collapse side padding for navbars with containers to ensure\n // alignment of right-aligned contents.\n .navbar-fixed-top &,\n .navbar-static-top &,\n .navbar-fixed-bottom & {\n padding-left: 0;\n padding-right: 0;\n }\n }\n}\n\n.navbar-fixed-top,\n.navbar-fixed-bottom {\n .navbar-collapse {\n max-height: @navbar-collapse-max-height;\n\n @media (max-device-width: @screen-xs-min) and (orientation: landscape) {\n max-height: 200px;\n }\n }\n}\n\n\n// Both navbar header and collapse\n//\n// When a container is present, change the behavior of the header and collapse.\n\n.container,\n.container-fluid {\n > .navbar-header,\n > .navbar-collapse {\n margin-right: -@navbar-padding-horizontal;\n margin-left: -@navbar-padding-horizontal;\n\n @media (min-width: @grid-float-breakpoint) {\n margin-right: 0;\n margin-left: 0;\n }\n }\n}\n\n\n//\n// Navbar alignment options\n//\n// Display the navbar across the entirety of the page or fixed it to the top or\n// bottom of the page.\n\n// Static top (unfixed, but 100% wide) navbar\n.navbar-static-top {\n z-index: @zindex-navbar;\n border-width: 0 0 1px;\n\n @media (min-width: @grid-float-breakpoint) {\n border-radius: 0;\n }\n}\n\n// Fix the top/bottom navbars when screen real estate supports it\n.navbar-fixed-top,\n.navbar-fixed-bottom {\n position: fixed;\n right: 0;\n left: 0;\n z-index: @zindex-navbar-fixed;\n\n // Undo the rounded corners\n @media (min-width: @grid-float-breakpoint) {\n border-radius: 0;\n }\n}\n.navbar-fixed-top {\n top: 0;\n border-width: 0 0 1px;\n}\n.navbar-fixed-bottom {\n bottom: 0;\n margin-bottom: 0; // override .navbar defaults\n border-width: 1px 0 0;\n}\n\n\n// Brand/project name\n\n.navbar-brand {\n float: left;\n padding: @navbar-padding-vertical @navbar-padding-horizontal;\n font-size: @font-size-large;\n line-height: @line-height-computed;\n height: @navbar-height;\n\n &:hover,\n &:focus {\n text-decoration: none;\n }\n\n > img {\n display: block;\n }\n\n @media (min-width: @grid-float-breakpoint) {\n .navbar > .container &,\n .navbar > .container-fluid & {\n margin-left: -@navbar-padding-horizontal;\n }\n }\n}\n\n\n// Navbar toggle\n//\n// Custom button for toggling the `.navbar-collapse`, powered by the collapse\n// JavaScript plugin.\n\n.navbar-toggle {\n position: relative;\n float: right;\n margin-right: @navbar-padding-horizontal;\n padding: 9px 10px;\n .navbar-vertical-align(34px);\n background-color: transparent;\n background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214\n border: 1px solid transparent;\n border-radius: @border-radius-base;\n\n // We remove the `outline` here, but later compensate by attaching `:hover`\n // styles to `:focus`.\n &:focus {\n outline: 0;\n }\n\n // Bars\n .icon-bar {\n display: block;\n width: 22px;\n height: 2px;\n border-radius: 1px;\n }\n .icon-bar + .icon-bar {\n margin-top: 4px;\n }\n\n @media (min-width: @grid-float-breakpoint) {\n display: none;\n }\n}\n\n\n// Navbar nav links\n//\n// Builds on top of the `.nav` components with its own modifier class to make\n// the nav the full height of the horizontal nav (above 768px).\n\n.navbar-nav {\n margin: (@navbar-padding-vertical / 2) -@navbar-padding-horizontal;\n\n > li > a {\n padding-top: 10px;\n padding-bottom: 10px;\n line-height: @line-height-computed;\n }\n\n @media (max-width: @grid-float-breakpoint-max) {\n // Dropdowns get custom display when collapsed\n .open .dropdown-menu {\n position: static;\n float: none;\n width: auto;\n margin-top: 0;\n background-color: transparent;\n border: 0;\n box-shadow: none;\n > li > a,\n .dropdown-header {\n padding: 5px 15px 5px 25px;\n }\n > li > a {\n line-height: @line-height-computed;\n &:hover,\n &:focus {\n background-image: none;\n }\n }\n }\n }\n\n // Uncollapse the nav\n @media (min-width: @grid-float-breakpoint) {\n float: left;\n margin: 0;\n\n > li {\n float: left;\n > a {\n padding-top: @navbar-padding-vertical;\n padding-bottom: @navbar-padding-vertical;\n }\n }\n }\n}\n\n\n// Navbar form\n//\n// Extension of the `.form-inline` with some extra flavor for optimum display in\n// our navbars.\n\n.navbar-form {\n margin-left: -@navbar-padding-horizontal;\n margin-right: -@navbar-padding-horizontal;\n padding: 10px @navbar-padding-horizontal;\n border-top: 1px solid transparent;\n border-bottom: 1px solid transparent;\n @shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.1);\n .box-shadow(@shadow);\n\n // Mixin behavior for optimum display\n .form-inline();\n\n .form-group {\n @media (max-width: @grid-float-breakpoint-max) {\n margin-bottom: 5px;\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n }\n\n // Vertically center in expanded, horizontal navbar\n .navbar-vertical-align(@input-height-base);\n\n // Undo 100% width for pull classes\n @media (min-width: @grid-float-breakpoint) {\n width: auto;\n border: 0;\n margin-left: 0;\n margin-right: 0;\n padding-top: 0;\n padding-bottom: 0;\n .box-shadow(none);\n }\n}\n\n\n// Dropdown menus\n\n// Menu position and menu carets\n.navbar-nav > li > .dropdown-menu {\n margin-top: 0;\n .border-top-radius(0);\n}\n// Menu position and menu caret support for dropups via extra dropup class\n.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu {\n margin-bottom: 0;\n .border-top-radius(@navbar-border-radius);\n .border-bottom-radius(0);\n}\n\n\n// Buttons in navbars\n//\n// Vertically center a button within a navbar (when *not* in a form).\n\n.navbar-btn {\n .navbar-vertical-align(@input-height-base);\n\n &.btn-sm {\n .navbar-vertical-align(@input-height-small);\n }\n &.btn-xs {\n .navbar-vertical-align(22);\n }\n}\n\n\n// Text in navbars\n//\n// Add a class to make any element properly align itself vertically within the navbars.\n\n.navbar-text {\n .navbar-vertical-align(@line-height-computed);\n\n @media (min-width: @grid-float-breakpoint) {\n float: left;\n margin-left: @navbar-padding-horizontal;\n margin-right: @navbar-padding-horizontal;\n }\n}\n\n\n// Component alignment\n//\n// Repurpose the pull utilities as their own navbar utilities to avoid specificity\n// issues with parents and chaining. Only do this when the navbar is uncollapsed\n// though so that navbar contents properly stack and align in mobile.\n//\n// Declared after the navbar components to ensure more specificity on the margins.\n\n@media (min-width: @grid-float-breakpoint) {\n .navbar-left { .pull-left(); }\n .navbar-right {\n .pull-right();\n margin-right: -@navbar-padding-horizontal;\n\n ~ .navbar-right {\n margin-right: 0;\n }\n }\n}\n\n\n// Alternate navbars\n// --------------------------------------------------\n\n// Default navbar\n.navbar-default {\n background-color: @navbar-default-bg;\n border-color: @navbar-default-border;\n\n .navbar-brand {\n color: @navbar-default-brand-color;\n &:hover,\n &:focus {\n color: @navbar-default-brand-hover-color;\n background-color: @navbar-default-brand-hover-bg;\n }\n }\n\n .navbar-text {\n color: @navbar-default-color;\n }\n\n .navbar-nav {\n > li > a {\n color: @navbar-default-link-color;\n\n &:hover,\n &:focus {\n color: @navbar-default-link-hover-color;\n background-color: @navbar-default-link-hover-bg;\n }\n }\n > .active > a {\n &,\n &:hover,\n &:focus {\n color: @navbar-default-link-active-color;\n background-color: @navbar-default-link-active-bg;\n }\n }\n > .disabled > a {\n &,\n &:hover,\n &:focus {\n color: @navbar-default-link-disabled-color;\n background-color: @navbar-default-link-disabled-bg;\n }\n }\n }\n\n .navbar-toggle {\n border-color: @navbar-default-toggle-border-color;\n &:hover,\n &:focus {\n background-color: @navbar-default-toggle-hover-bg;\n }\n .icon-bar {\n background-color: @navbar-default-toggle-icon-bar-bg;\n }\n }\n\n .navbar-collapse,\n .navbar-form {\n border-color: @navbar-default-border;\n }\n\n // Dropdown menu items\n .navbar-nav {\n // Remove background color from open dropdown\n > .open > a {\n &,\n &:hover,\n &:focus {\n background-color: @navbar-default-link-active-bg;\n color: @navbar-default-link-active-color;\n }\n }\n\n @media (max-width: @grid-float-breakpoint-max) {\n // Dropdowns get custom display when collapsed\n .open .dropdown-menu {\n > li > a {\n color: @navbar-default-link-color;\n &:hover,\n &:focus {\n color: @navbar-default-link-hover-color;\n background-color: @navbar-default-link-hover-bg;\n }\n }\n > .active > a {\n &,\n &:hover,\n &:focus {\n color: @navbar-default-link-active-color;\n background-color: @navbar-default-link-active-bg;\n }\n }\n > .disabled > a {\n &,\n &:hover,\n &:focus {\n color: @navbar-default-link-disabled-color;\n background-color: @navbar-default-link-disabled-bg;\n }\n }\n }\n }\n }\n\n\n // Links in navbars\n //\n // Add a class to ensure links outside the navbar nav are colored correctly.\n\n .navbar-link {\n color: @navbar-default-link-color;\n &:hover {\n color: @navbar-default-link-hover-color;\n }\n }\n\n .btn-link {\n color: @navbar-default-link-color;\n &:hover,\n &:focus {\n color: @navbar-default-link-hover-color;\n }\n &[disabled],\n fieldset[disabled] & {\n &:hover,\n &:focus {\n color: @navbar-default-link-disabled-color;\n }\n }\n }\n}\n\n// Inverse navbar\n\n.navbar-inverse {\n background-color: @navbar-inverse-bg;\n border-color: @navbar-inverse-border;\n\n .navbar-brand {\n color: @navbar-inverse-brand-color;\n &:hover,\n &:focus {\n color: @navbar-inverse-brand-hover-color;\n background-color: @navbar-inverse-brand-hover-bg;\n }\n }\n\n .navbar-text {\n color: @navbar-inverse-color;\n }\n\n .navbar-nav {\n > li > a {\n color: @navbar-inverse-link-color;\n\n &:hover,\n &:focus {\n color: @navbar-inverse-link-hover-color;\n background-color: @navbar-inverse-link-hover-bg;\n }\n }\n > .active > a {\n &,\n &:hover,\n &:focus {\n color: @navbar-inverse-link-active-color;\n background-color: @navbar-inverse-link-active-bg;\n }\n }\n > .disabled > a {\n &,\n &:hover,\n &:focus {\n color: @navbar-inverse-link-disabled-color;\n background-color: @navbar-inverse-link-disabled-bg;\n }\n }\n }\n\n // Darken the responsive nav toggle\n .navbar-toggle {\n border-color: @navbar-inverse-toggle-border-color;\n &:hover,\n &:focus {\n background-color: @navbar-inverse-toggle-hover-bg;\n }\n .icon-bar {\n background-color: @navbar-inverse-toggle-icon-bar-bg;\n }\n }\n\n .navbar-collapse,\n .navbar-form {\n border-color: darken(@navbar-inverse-bg, 7%);\n }\n\n // Dropdowns\n .navbar-nav {\n > .open > a {\n &,\n &:hover,\n &:focus {\n background-color: @navbar-inverse-link-active-bg;\n color: @navbar-inverse-link-active-color;\n }\n }\n\n @media (max-width: @grid-float-breakpoint-max) {\n // Dropdowns get custom display\n .open .dropdown-menu {\n > .dropdown-header {\n border-color: @navbar-inverse-border;\n }\n .divider {\n background-color: @navbar-inverse-border;\n }\n > li > a {\n color: @navbar-inverse-link-color;\n &:hover,\n &:focus {\n color: @navbar-inverse-link-hover-color;\n background-color: @navbar-inverse-link-hover-bg;\n }\n }\n > .active > a {\n &,\n &:hover,\n &:focus {\n color: @navbar-inverse-link-active-color;\n background-color: @navbar-inverse-link-active-bg;\n }\n }\n > .disabled > a {\n &,\n &:hover,\n &:focus {\n color: @navbar-inverse-link-disabled-color;\n background-color: @navbar-inverse-link-disabled-bg;\n }\n }\n }\n }\n }\n\n .navbar-link {\n color: @navbar-inverse-link-color;\n &:hover {\n color: @navbar-inverse-link-hover-color;\n }\n }\n\n .btn-link {\n color: @navbar-inverse-link-color;\n &:hover,\n &:focus {\n color: @navbar-inverse-link-hover-color;\n }\n &[disabled],\n fieldset[disabled] & {\n &:hover,\n &:focus {\n color: @navbar-inverse-link-disabled-color;\n }\n }\n }\n}\n","// Navbar vertical align\n//\n// Vertically center elements in the navbar.\n// Example: an element has a height of 30px, so write out `.navbar-vertical-align(30px);` to calculate the appropriate top margin.\n\n.navbar-vertical-align(@element-height) {\n margin-top: ((@navbar-height - @element-height) / 2);\n margin-bottom: ((@navbar-height - @element-height) / 2);\n}\n","//\n// Utility classes\n// --------------------------------------------------\n\n\n// Floats\n// -------------------------\n\n.clearfix {\n .clearfix();\n}\n.center-block {\n .center-block();\n}\n.pull-right {\n float: right !important;\n}\n.pull-left {\n float: left !important;\n}\n\n\n// Toggling content\n// -------------------------\n\n// Note: Deprecated .hide in favor of .hidden or .sr-only (as appropriate) in v3.0.1\n.hide {\n display: none !important;\n}\n.show {\n display: block !important;\n}\n.invisible {\n visibility: hidden;\n}\n.text-hide {\n .text-hide();\n}\n\n\n// Hide from screenreaders and browsers\n//\n// Credit: HTML5 Boilerplate\n\n.hidden {\n display: none !important;\n}\n\n\n// For Affix plugin\n// -------------------------\n\n.affix {\n position: fixed;\n}\n","//\n// Breadcrumbs\n// --------------------------------------------------\n\n\n.breadcrumb {\n padding: @breadcrumb-padding-vertical @breadcrumb-padding-horizontal;\n margin-bottom: @line-height-computed;\n list-style: none;\n background-color: @breadcrumb-bg;\n border-radius: @border-radius-base;\n\n > li {\n display: inline-block;\n\n + li:before {\n content: \"@{breadcrumb-separator}\\00a0\"; // Unicode space added since inline-block means non-collapsing white-space\n padding: 0 5px;\n color: @breadcrumb-color;\n }\n }\n\n > .active {\n color: @breadcrumb-active-color;\n }\n}\n","//\n// Pagination (multiple pages)\n// --------------------------------------------------\n.pagination {\n display: inline-block;\n padding-left: 0;\n margin: @line-height-computed 0;\n border-radius: @border-radius-base;\n\n > li {\n display: inline; // Remove list-style and block-level defaults\n > a,\n > span {\n position: relative;\n float: left; // Collapse white-space\n padding: @padding-base-vertical @padding-base-horizontal;\n line-height: @line-height-base;\n text-decoration: none;\n color: @pagination-color;\n background-color: @pagination-bg;\n border: 1px solid @pagination-border;\n margin-left: -1px;\n }\n &:first-child {\n > a,\n > span {\n margin-left: 0;\n .border-left-radius(@border-radius-base);\n }\n }\n &:last-child {\n > a,\n > span {\n .border-right-radius(@border-radius-base);\n }\n }\n }\n\n > li > a,\n > li > span {\n &:hover,\n &:focus {\n z-index: 2;\n color: @pagination-hover-color;\n background-color: @pagination-hover-bg;\n border-color: @pagination-hover-border;\n }\n }\n\n > .active > a,\n > .active > span {\n &,\n &:hover,\n &:focus {\n z-index: 3;\n color: @pagination-active-color;\n background-color: @pagination-active-bg;\n border-color: @pagination-active-border;\n cursor: default;\n }\n }\n\n > .disabled {\n > span,\n > span:hover,\n > span:focus,\n > a,\n > a:hover,\n > a:focus {\n color: @pagination-disabled-color;\n background-color: @pagination-disabled-bg;\n border-color: @pagination-disabled-border;\n cursor: @cursor-disabled;\n }\n }\n}\n\n// Sizing\n// --------------------------------------------------\n\n// Large\n.pagination-lg {\n .pagination-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @border-radius-large);\n}\n\n// Small\n.pagination-sm {\n .pagination-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @border-radius-small);\n}\n","// Pagination\n\n.pagination-size(@padding-vertical; @padding-horizontal; @font-size; @line-height; @border-radius) {\n > li {\n > a,\n > span {\n padding: @padding-vertical @padding-horizontal;\n font-size: @font-size;\n line-height: @line-height;\n }\n &:first-child {\n > a,\n > span {\n .border-left-radius(@border-radius);\n }\n }\n &:last-child {\n > a,\n > span {\n .border-right-radius(@border-radius);\n }\n }\n }\n}\n","//\n// Pager pagination\n// --------------------------------------------------\n\n\n.pager {\n padding-left: 0;\n margin: @line-height-computed 0;\n list-style: none;\n text-align: center;\n &:extend(.clearfix all);\n li {\n display: inline;\n > a,\n > span {\n display: inline-block;\n padding: 5px 14px;\n background-color: @pager-bg;\n border: 1px solid @pager-border;\n border-radius: @pager-border-radius;\n }\n\n > a:hover,\n > a:focus {\n text-decoration: none;\n background-color: @pager-hover-bg;\n }\n }\n\n .next {\n > a,\n > span {\n float: right;\n }\n }\n\n .previous {\n > a,\n > span {\n float: left;\n }\n }\n\n .disabled {\n > a,\n > a:hover,\n > a:focus,\n > span {\n color: @pager-disabled-color;\n background-color: @pager-bg;\n cursor: @cursor-disabled;\n }\n }\n}\n","//\n// Labels\n// --------------------------------------------------\n\n.label {\n display: inline;\n padding: .2em .6em .3em;\n font-size: 75%;\n font-weight: bold;\n line-height: 1;\n color: @label-color;\n text-align: center;\n white-space: nowrap;\n vertical-align: baseline;\n border-radius: .25em;\n\n // Add hover effects, but only for links\n a& {\n &:hover,\n &:focus {\n color: @label-link-hover-color;\n text-decoration: none;\n cursor: pointer;\n }\n }\n\n // Empty labels collapse automatically (not available in IE8)\n &:empty {\n display: none;\n }\n\n // Quick fix for labels in buttons\n .btn & {\n position: relative;\n top: -1px;\n }\n}\n\n// Colors\n// Contextual variations (linked labels get darker on :hover)\n\n.label-default {\n .label-variant(@label-default-bg);\n}\n\n.label-primary {\n .label-variant(@label-primary-bg);\n}\n\n.label-success {\n .label-variant(@label-success-bg);\n}\n\n.label-info {\n .label-variant(@label-info-bg);\n}\n\n.label-warning {\n .label-variant(@label-warning-bg);\n}\n\n.label-danger {\n .label-variant(@label-danger-bg);\n}\n","// Labels\n\n.label-variant(@color) {\n background-color: @color;\n\n &[href] {\n &:hover,\n &:focus {\n background-color: darken(@color, 10%);\n }\n }\n}\n","//\n// Badges\n// --------------------------------------------------\n\n\n// Base class\n.badge {\n display: inline-block;\n min-width: 10px;\n padding: 3px 7px;\n font-size: @font-size-small;\n font-weight: @badge-font-weight;\n color: @badge-color;\n line-height: @badge-line-height;\n vertical-align: middle;\n white-space: nowrap;\n text-align: center;\n background-color: @badge-bg;\n border-radius: @badge-border-radius;\n\n // Empty badges collapse automatically (not available in IE8)\n &:empty {\n display: none;\n }\n\n // Quick fix for badges in buttons\n .btn & {\n position: relative;\n top: -1px;\n }\n\n .btn-xs &,\n .btn-group-xs > .btn & {\n top: 0;\n padding: 1px 5px;\n }\n\n // Hover state, but only for links\n a& {\n &:hover,\n &:focus {\n color: @badge-link-hover-color;\n text-decoration: none;\n cursor: pointer;\n }\n }\n\n // Account for badges in navs\n .list-group-item.active > &,\n .nav-pills > .active > a > & {\n color: @badge-active-color;\n background-color: @badge-active-bg;\n }\n\n .list-group-item > & {\n float: right;\n }\n\n .list-group-item > & + & {\n margin-right: 5px;\n }\n\n .nav-pills > li > a > & {\n margin-left: 3px;\n }\n}\n","//\n// Jumbotron\n// --------------------------------------------------\n\n\n.jumbotron {\n padding-top: @jumbotron-padding;\n padding-bottom: @jumbotron-padding;\n margin-bottom: @jumbotron-padding;\n color: @jumbotron-color;\n background-color: @jumbotron-bg;\n\n h1,\n .h1 {\n color: @jumbotron-heading-color;\n }\n\n p {\n margin-bottom: (@jumbotron-padding / 2);\n font-size: @jumbotron-font-size;\n font-weight: 200;\n }\n\n > hr {\n border-top-color: darken(@jumbotron-bg, 10%);\n }\n\n .container &,\n .container-fluid & {\n border-radius: @border-radius-large; // Only round corners at higher resolutions if contained in a container\n padding-left: (@grid-gutter-width / 2);\n padding-right: (@grid-gutter-width / 2);\n }\n\n .container {\n max-width: 100%;\n }\n\n @media screen and (min-width: @screen-sm-min) {\n padding-top: (@jumbotron-padding * 1.6);\n padding-bottom: (@jumbotron-padding * 1.6);\n\n .container &,\n .container-fluid & {\n padding-left: (@jumbotron-padding * 2);\n padding-right: (@jumbotron-padding * 2);\n }\n\n h1,\n .h1 {\n font-size: @jumbotron-heading-font-size;\n }\n }\n}\n","//\n// Thumbnails\n// --------------------------------------------------\n\n\n// Mixin and adjust the regular image class\n.thumbnail {\n display: block;\n padding: @thumbnail-padding;\n margin-bottom: @line-height-computed;\n line-height: @line-height-base;\n background-color: @thumbnail-bg;\n border: 1px solid @thumbnail-border;\n border-radius: @thumbnail-border-radius;\n .transition(border .2s ease-in-out);\n\n > img,\n a > img {\n &:extend(.img-responsive);\n margin-left: auto;\n margin-right: auto;\n }\n\n // Add a hover state for linked versions only\n a&:hover,\n a&:focus,\n a&.active {\n border-color: @link-color;\n }\n\n // Image captions\n .caption {\n padding: @thumbnail-caption-padding;\n color: @thumbnail-caption-color;\n }\n}\n","//\n// Alerts\n// --------------------------------------------------\n\n\n// Base styles\n// -------------------------\n\n.alert {\n padding: @alert-padding;\n margin-bottom: @line-height-computed;\n border: 1px solid transparent;\n border-radius: @alert-border-radius;\n\n // Headings for larger alerts\n h4 {\n margin-top: 0;\n // Specified for the h4 to prevent conflicts of changing @headings-color\n color: inherit;\n }\n\n // Provide class for links that match alerts\n .alert-link {\n font-weight: @alert-link-font-weight;\n }\n\n // Improve alignment and spacing of inner content\n > p,\n > ul {\n margin-bottom: 0;\n }\n\n > p + p {\n margin-top: 5px;\n }\n}\n\n// Dismissible alerts\n//\n// Expand the right padding and account for the close button's positioning.\n\n.alert-dismissable, // The misspelled .alert-dismissable was deprecated in 3.2.0.\n.alert-dismissible {\n padding-right: (@alert-padding + 20);\n\n // Adjust close link position\n .close {\n position: relative;\n top: -2px;\n right: -21px;\n color: inherit;\n }\n}\n\n// Alternate styles\n//\n// Generate contextual modifier classes for colorizing the alert.\n\n.alert-success {\n .alert-variant(@alert-success-bg; @alert-success-border; @alert-success-text);\n}\n\n.alert-info {\n .alert-variant(@alert-info-bg; @alert-info-border; @alert-info-text);\n}\n\n.alert-warning {\n .alert-variant(@alert-warning-bg; @alert-warning-border; @alert-warning-text);\n}\n\n.alert-danger {\n .alert-variant(@alert-danger-bg; @alert-danger-border; @alert-danger-text);\n}\n","// Alerts\n\n.alert-variant(@background; @border; @text-color) {\n background-color: @background;\n border-color: @border;\n color: @text-color;\n\n hr {\n border-top-color: darken(@border, 5%);\n }\n .alert-link {\n color: darken(@text-color, 10%);\n }\n}\n","//\n// Progress bars\n// --------------------------------------------------\n\n\n// Bar animations\n// -------------------------\n\n// WebKit\n@-webkit-keyframes progress-bar-stripes {\n from { background-position: 40px 0; }\n to { background-position: 0 0; }\n}\n\n// Spec and IE10+\n@keyframes progress-bar-stripes {\n from { background-position: 40px 0; }\n to { background-position: 0 0; }\n}\n\n\n// Bar itself\n// -------------------------\n\n// Outer container\n.progress {\n overflow: hidden;\n height: @line-height-computed;\n margin-bottom: @line-height-computed;\n background-color: @progress-bg;\n border-radius: @progress-border-radius;\n .box-shadow(inset 0 1px 2px rgba(0,0,0,.1));\n}\n\n// Bar of progress\n.progress-bar {\n float: left;\n width: 0%;\n height: 100%;\n font-size: @font-size-small;\n line-height: @line-height-computed;\n color: @progress-bar-color;\n text-align: center;\n background-color: @progress-bar-bg;\n .box-shadow(inset 0 -1px 0 rgba(0,0,0,.15));\n .transition(width .6s ease);\n}\n\n// Striped bars\n//\n// `.progress-striped .progress-bar` is deprecated as of v3.2.0 in favor of the\n// `.progress-bar-striped` class, which you just add to an existing\n// `.progress-bar`.\n.progress-striped .progress-bar,\n.progress-bar-striped {\n #gradient > .striped();\n background-size: 40px 40px;\n}\n\n// Call animation for the active one\n//\n// `.progress.active .progress-bar` is deprecated as of v3.2.0 in favor of the\n// `.progress-bar.active` approach.\n.progress.active .progress-bar,\n.progress-bar.active {\n .animation(progress-bar-stripes 2s linear infinite);\n}\n\n\n// Variations\n// -------------------------\n\n.progress-bar-success {\n .progress-bar-variant(@progress-bar-success-bg);\n}\n\n.progress-bar-info {\n .progress-bar-variant(@progress-bar-info-bg);\n}\n\n.progress-bar-warning {\n .progress-bar-variant(@progress-bar-warning-bg);\n}\n\n.progress-bar-danger {\n .progress-bar-variant(@progress-bar-danger-bg);\n}\n","// Gradients\n\n#gradient {\n\n // Horizontal gradient, from left to right\n //\n // Creates two color stops, start and end, by specifying a color and position for each color stop.\n // Color stops are not available in IE9 and below.\n .horizontal(@start-color: #555; @end-color: #333; @start-percent: 0%; @end-percent: 100%) {\n background-image: -webkit-linear-gradient(left, @start-color @start-percent, @end-color @end-percent); // Safari 5.1-6, Chrome 10+\n background-image: -o-linear-gradient(left, @start-color @start-percent, @end-color @end-percent); // Opera 12\n background-image: linear-gradient(to right, @start-color @start-percent, @end-color @end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+\n background-repeat: repeat-x;\n filter: e(%(\"progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)\",argb(@start-color),argb(@end-color))); // IE9 and down\n }\n\n // Vertical gradient, from top to bottom\n //\n // Creates two color stops, start and end, by specifying a color and position for each color stop.\n // Color stops are not available in IE9 and below.\n .vertical(@start-color: #555; @end-color: #333; @start-percent: 0%; @end-percent: 100%) {\n background-image: -webkit-linear-gradient(top, @start-color @start-percent, @end-color @end-percent); // Safari 5.1-6, Chrome 10+\n background-image: -o-linear-gradient(top, @start-color @start-percent, @end-color @end-percent); // Opera 12\n background-image: linear-gradient(to bottom, @start-color @start-percent, @end-color @end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+\n background-repeat: repeat-x;\n filter: e(%(\"progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)\",argb(@start-color),argb(@end-color))); // IE9 and down\n }\n\n .directional(@start-color: #555; @end-color: #333; @deg: 45deg) {\n background-repeat: repeat-x;\n background-image: -webkit-linear-gradient(@deg, @start-color, @end-color); // Safari 5.1-6, Chrome 10+\n background-image: -o-linear-gradient(@deg, @start-color, @end-color); // Opera 12\n background-image: linear-gradient(@deg, @start-color, @end-color); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+\n }\n .horizontal-three-colors(@start-color: #00b3ee; @mid-color: #7a43b6; @color-stop: 50%; @end-color: #c3325f) {\n background-image: -webkit-linear-gradient(left, @start-color, @mid-color @color-stop, @end-color);\n background-image: -o-linear-gradient(left, @start-color, @mid-color @color-stop, @end-color);\n background-image: linear-gradient(to right, @start-color, @mid-color @color-stop, @end-color);\n background-repeat: no-repeat;\n filter: e(%(\"progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)\",argb(@start-color),argb(@end-color))); // IE9 and down, gets no color-stop at all for proper fallback\n }\n .vertical-three-colors(@start-color: #00b3ee; @mid-color: #7a43b6; @color-stop: 50%; @end-color: #c3325f) {\n background-image: -webkit-linear-gradient(@start-color, @mid-color @color-stop, @end-color);\n background-image: -o-linear-gradient(@start-color, @mid-color @color-stop, @end-color);\n background-image: linear-gradient(@start-color, @mid-color @color-stop, @end-color);\n background-repeat: no-repeat;\n filter: e(%(\"progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)\",argb(@start-color),argb(@end-color))); // IE9 and down, gets no color-stop at all for proper fallback\n }\n .radial(@inner-color: #555; @outer-color: #333) {\n background-image: -webkit-radial-gradient(circle, @inner-color, @outer-color);\n background-image: radial-gradient(circle, @inner-color, @outer-color);\n background-repeat: no-repeat;\n }\n .striped(@color: rgba(255,255,255,.15); @angle: 45deg) {\n background-image: -webkit-linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);\n background-image: -o-linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);\n background-image: linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);\n }\n}\n","// Progress bars\n\n.progress-bar-variant(@color) {\n background-color: @color;\n\n // Deprecated parent class requirement as of v3.2.0\n .progress-striped & {\n #gradient > .striped();\n }\n}\n",".media {\n // Proper spacing between instances of .media\n margin-top: 15px;\n\n &:first-child {\n margin-top: 0;\n }\n}\n\n.media,\n.media-body {\n zoom: 1;\n overflow: hidden;\n}\n\n.media-body {\n width: 10000px;\n}\n\n.media-object {\n display: block;\n\n // Fix collapse in webkit from max-width: 100% and display: table-cell.\n &.img-thumbnail {\n max-width: none;\n }\n}\n\n.media-right,\n.media > .pull-right {\n padding-left: 10px;\n}\n\n.media-left,\n.media > .pull-left {\n padding-right: 10px;\n}\n\n.media-left,\n.media-right,\n.media-body {\n display: table-cell;\n vertical-align: top;\n}\n\n.media-middle {\n vertical-align: middle;\n}\n\n.media-bottom {\n vertical-align: bottom;\n}\n\n// Reset margins on headings for tighter default spacing\n.media-heading {\n margin-top: 0;\n margin-bottom: 5px;\n}\n\n// Media list variation\n//\n// Undo default ul/ol styles\n.media-list {\n padding-left: 0;\n list-style: none;\n}\n","//\n// List groups\n// --------------------------------------------------\n\n\n// Base class\n//\n// Easily usable on
      ,
        , or
        .\n\n.list-group {\n // No need to set list-style: none; since .list-group-item is block level\n margin-bottom: 20px;\n padding-left: 0; // reset padding because ul and ol\n}\n\n\n// Individual list items\n//\n// Use on `li`s or `div`s within the `.list-group` parent.\n\n.list-group-item {\n position: relative;\n display: block;\n padding: 10px 15px;\n // Place the border on the list items and negative margin up for better styling\n margin-bottom: -1px;\n background-color: @list-group-bg;\n border: 1px solid @list-group-border;\n\n // Round the first and last items\n &:first-child {\n .border-top-radius(@list-group-border-radius);\n }\n &:last-child {\n margin-bottom: 0;\n .border-bottom-radius(@list-group-border-radius);\n }\n}\n\n\n// Interactive list items\n//\n// Use anchor or button elements instead of `li`s or `div`s to create interactive items.\n// Includes an extra `.active` modifier class for showing selected items.\n\na.list-group-item,\nbutton.list-group-item {\n color: @list-group-link-color;\n\n .list-group-item-heading {\n color: @list-group-link-heading-color;\n }\n\n // Hover state\n &:hover,\n &:focus {\n text-decoration: none;\n color: @list-group-link-hover-color;\n background-color: @list-group-hover-bg;\n }\n}\n\nbutton.list-group-item {\n width: 100%;\n text-align: left;\n}\n\n.list-group-item {\n // Disabled state\n &.disabled,\n &.disabled:hover,\n &.disabled:focus {\n background-color: @list-group-disabled-bg;\n color: @list-group-disabled-color;\n cursor: @cursor-disabled;\n\n // Force color to inherit for custom content\n .list-group-item-heading {\n color: inherit;\n }\n .list-group-item-text {\n color: @list-group-disabled-text-color;\n }\n }\n\n // Active class on item itself, not parent\n &.active,\n &.active:hover,\n &.active:focus {\n z-index: 2; // Place active items above their siblings for proper border styling\n color: @list-group-active-color;\n background-color: @list-group-active-bg;\n border-color: @list-group-active-border;\n\n // Force color to inherit for custom content\n .list-group-item-heading,\n .list-group-item-heading > small,\n .list-group-item-heading > .small {\n color: inherit;\n }\n .list-group-item-text {\n color: @list-group-active-text-color;\n }\n }\n}\n\n\n// Contextual variants\n//\n// Add modifier classes to change text and background color on individual items.\n// Organizationally, this must come after the `:hover` states.\n\n.list-group-item-variant(success; @state-success-bg; @state-success-text);\n.list-group-item-variant(info; @state-info-bg; @state-info-text);\n.list-group-item-variant(warning; @state-warning-bg; @state-warning-text);\n.list-group-item-variant(danger; @state-danger-bg; @state-danger-text);\n\n\n// Custom content options\n//\n// Extra classes for creating well-formatted content within `.list-group-item`s.\n\n.list-group-item-heading {\n margin-top: 0;\n margin-bottom: 5px;\n}\n.list-group-item-text {\n margin-bottom: 0;\n line-height: 1.3;\n}\n","// List Groups\n\n.list-group-item-variant(@state; @background; @color) {\n .list-group-item-@{state} {\n color: @color;\n background-color: @background;\n\n a&,\n button& {\n color: @color;\n\n .list-group-item-heading {\n color: inherit;\n }\n\n &:hover,\n &:focus {\n color: @color;\n background-color: darken(@background, 5%);\n }\n &.active,\n &.active:hover,\n &.active:focus {\n color: #fff;\n background-color: @color;\n border-color: @color;\n }\n }\n }\n}\n","//\n// Panels\n// --------------------------------------------------\n\n\n// Base class\n.panel {\n margin-bottom: @line-height-computed;\n background-color: @panel-bg;\n border: 1px solid transparent;\n border-radius: @panel-border-radius;\n .box-shadow(0 1px 1px rgba(0,0,0,.05));\n}\n\n// Panel contents\n.panel-body {\n padding: @panel-body-padding;\n &:extend(.clearfix all);\n}\n\n// Optional heading\n.panel-heading {\n padding: @panel-heading-padding;\n border-bottom: 1px solid transparent;\n .border-top-radius((@panel-border-radius - 1));\n\n > .dropdown .dropdown-toggle {\n color: inherit;\n }\n}\n\n// Within heading, strip any `h*` tag of its default margins for spacing.\n.panel-title {\n margin-top: 0;\n margin-bottom: 0;\n font-size: ceil((@font-size-base * 1.125));\n color: inherit;\n\n > a,\n > small,\n > .small,\n > small > a,\n > .small > a {\n color: inherit;\n }\n}\n\n// Optional footer (stays gray in every modifier class)\n.panel-footer {\n padding: @panel-footer-padding;\n background-color: @panel-footer-bg;\n border-top: 1px solid @panel-inner-border;\n .border-bottom-radius((@panel-border-radius - 1));\n}\n\n\n// List groups in panels\n//\n// By default, space out list group content from panel headings to account for\n// any kind of custom content between the two.\n\n.panel {\n > .list-group,\n > .panel-collapse > .list-group {\n margin-bottom: 0;\n\n .list-group-item {\n border-width: 1px 0;\n border-radius: 0;\n }\n\n // Add border top radius for first one\n &:first-child {\n .list-group-item:first-child {\n border-top: 0;\n .border-top-radius((@panel-border-radius - 1));\n }\n }\n\n // Add border bottom radius for last one\n &:last-child {\n .list-group-item:last-child {\n border-bottom: 0;\n .border-bottom-radius((@panel-border-radius - 1));\n }\n }\n }\n > .panel-heading + .panel-collapse > .list-group {\n .list-group-item:first-child {\n .border-top-radius(0);\n }\n }\n}\n// Collapse space between when there's no additional content.\n.panel-heading + .list-group {\n .list-group-item:first-child {\n border-top-width: 0;\n }\n}\n.list-group + .panel-footer {\n border-top-width: 0;\n}\n\n// Tables in panels\n//\n// Place a non-bordered `.table` within a panel (not within a `.panel-body`) and\n// watch it go full width.\n\n.panel {\n > .table,\n > .table-responsive > .table,\n > .panel-collapse > .table {\n margin-bottom: 0;\n\n caption {\n padding-left: @panel-body-padding;\n padding-right: @panel-body-padding;\n }\n }\n // Add border top radius for first one\n > .table:first-child,\n > .table-responsive:first-child > .table:first-child {\n .border-top-radius((@panel-border-radius - 1));\n\n > thead:first-child,\n > tbody:first-child {\n > tr:first-child {\n border-top-left-radius: (@panel-border-radius - 1);\n border-top-right-radius: (@panel-border-radius - 1);\n\n td:first-child,\n th:first-child {\n border-top-left-radius: (@panel-border-radius - 1);\n }\n td:last-child,\n th:last-child {\n border-top-right-radius: (@panel-border-radius - 1);\n }\n }\n }\n }\n // Add border bottom radius for last one\n > .table:last-child,\n > .table-responsive:last-child > .table:last-child {\n .border-bottom-radius((@panel-border-radius - 1));\n\n > tbody:last-child,\n > tfoot:last-child {\n > tr:last-child {\n border-bottom-left-radius: (@panel-border-radius - 1);\n border-bottom-right-radius: (@panel-border-radius - 1);\n\n td:first-child,\n th:first-child {\n border-bottom-left-radius: (@panel-border-radius - 1);\n }\n td:last-child,\n th:last-child {\n border-bottom-right-radius: (@panel-border-radius - 1);\n }\n }\n }\n }\n > .panel-body + .table,\n > .panel-body + .table-responsive,\n > .table + .panel-body,\n > .table-responsive + .panel-body {\n border-top: 1px solid @table-border-color;\n }\n > .table > tbody:first-child > tr:first-child th,\n > .table > tbody:first-child > tr:first-child td {\n border-top: 0;\n }\n > .table-bordered,\n > .table-responsive > .table-bordered {\n border: 0;\n > thead,\n > tbody,\n > tfoot {\n > tr {\n > th:first-child,\n > td:first-child {\n border-left: 0;\n }\n > th:last-child,\n > td:last-child {\n border-right: 0;\n }\n }\n }\n > thead,\n > tbody {\n > tr:first-child {\n > td,\n > th {\n border-bottom: 0;\n }\n }\n }\n > tbody,\n > tfoot {\n > tr:last-child {\n > td,\n > th {\n border-bottom: 0;\n }\n }\n }\n }\n > .table-responsive {\n border: 0;\n margin-bottom: 0;\n }\n}\n\n\n// Collapsible panels (aka, accordion)\n//\n// Wrap a series of panels in `.panel-group` to turn them into an accordion with\n// the help of our collapse JavaScript plugin.\n\n.panel-group {\n margin-bottom: @line-height-computed;\n\n // Tighten up margin so it's only between panels\n .panel {\n margin-bottom: 0;\n border-radius: @panel-border-radius;\n\n + .panel {\n margin-top: 5px;\n }\n }\n\n .panel-heading {\n border-bottom: 0;\n\n + .panel-collapse > .panel-body,\n + .panel-collapse > .list-group {\n border-top: 1px solid @panel-inner-border;\n }\n }\n\n .panel-footer {\n border-top: 0;\n + .panel-collapse .panel-body {\n border-bottom: 1px solid @panel-inner-border;\n }\n }\n}\n\n\n// Contextual variations\n.panel-default {\n .panel-variant(@panel-default-border; @panel-default-text; @panel-default-heading-bg; @panel-default-border);\n}\n.panel-primary {\n .panel-variant(@panel-primary-border; @panel-primary-text; @panel-primary-heading-bg; @panel-primary-border);\n}\n.panel-success {\n .panel-variant(@panel-success-border; @panel-success-text; @panel-success-heading-bg; @panel-success-border);\n}\n.panel-info {\n .panel-variant(@panel-info-border; @panel-info-text; @panel-info-heading-bg; @panel-info-border);\n}\n.panel-warning {\n .panel-variant(@panel-warning-border; @panel-warning-text; @panel-warning-heading-bg; @panel-warning-border);\n}\n.panel-danger {\n .panel-variant(@panel-danger-border; @panel-danger-text; @panel-danger-heading-bg; @panel-danger-border);\n}\n","// Panels\n\n.panel-variant(@border; @heading-text-color; @heading-bg-color; @heading-border) {\n border-color: @border;\n\n & > .panel-heading {\n color: @heading-text-color;\n background-color: @heading-bg-color;\n border-color: @heading-border;\n\n + .panel-collapse > .panel-body {\n border-top-color: @border;\n }\n .badge {\n color: @heading-bg-color;\n background-color: @heading-text-color;\n }\n }\n & > .panel-footer {\n + .panel-collapse > .panel-body {\n border-bottom-color: @border;\n }\n }\n}\n","// Embeds responsive\n//\n// Credit: Nicolas Gallagher and SUIT CSS.\n\n.embed-responsive {\n position: relative;\n display: block;\n height: 0;\n padding: 0;\n overflow: hidden;\n\n .embed-responsive-item,\n iframe,\n embed,\n object,\n video {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n height: 100%;\n width: 100%;\n border: 0;\n }\n}\n\n// Modifier class for 16:9 aspect ratio\n.embed-responsive-16by9 {\n padding-bottom: 56.25%;\n}\n\n// Modifier class for 4:3 aspect ratio\n.embed-responsive-4by3 {\n padding-bottom: 75%;\n}\n","//\n// Wells\n// --------------------------------------------------\n\n\n// Base class\n.well {\n min-height: 20px;\n padding: 19px;\n margin-bottom: 20px;\n background-color: @well-bg;\n border: 1px solid @well-border;\n border-radius: @border-radius-base;\n .box-shadow(inset 0 1px 1px rgba(0,0,0,.05));\n blockquote {\n border-color: #ddd;\n border-color: rgba(0,0,0,.15);\n }\n}\n\n// Sizes\n.well-lg {\n padding: 24px;\n border-radius: @border-radius-large;\n}\n.well-sm {\n padding: 9px;\n border-radius: @border-radius-small;\n}\n","//\n// Close icons\n// --------------------------------------------------\n\n\n.close {\n float: right;\n font-size: (@font-size-base * 1.5);\n font-weight: @close-font-weight;\n line-height: 1;\n color: @close-color;\n text-shadow: @close-text-shadow;\n .opacity(.2);\n\n &:hover,\n &:focus {\n color: @close-color;\n text-decoration: none;\n cursor: pointer;\n .opacity(.5);\n }\n\n // Additional properties for button version\n // iOS requires the button element instead of an anchor tag.\n // If you want the anchor version, it requires `href=\"#\"`.\n // See https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile\n button& {\n padding: 0;\n cursor: pointer;\n background: transparent;\n border: 0;\n -webkit-appearance: none;\n }\n}\n","//\n// Modals\n// --------------------------------------------------\n\n// .modal-open - body class for killing the scroll\n// .modal - container to scroll within\n// .modal-dialog - positioning shell for the actual modal\n// .modal-content - actual modal w/ bg and corners and shit\n\n// Kill the scroll on the body\n.modal-open {\n overflow: hidden;\n}\n\n// Container that the modal scrolls within\n.modal {\n display: none;\n overflow: hidden;\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: @zindex-modal;\n -webkit-overflow-scrolling: touch;\n\n // Prevent Chrome on Windows from adding a focus outline. For details, see\n // https://github.com/twbs/bootstrap/pull/10951.\n outline: 0;\n\n // When fading in the modal, animate it to slide down\n &.fade .modal-dialog {\n .translate(0, -25%);\n .transition-transform(~\"0.3s ease-out\");\n }\n &.in .modal-dialog { .translate(0, 0) }\n}\n.modal-open .modal {\n overflow-x: hidden;\n overflow-y: auto;\n}\n\n// Shell div to position the modal with bottom padding\n.modal-dialog {\n position: relative;\n width: auto;\n margin: 10px;\n}\n\n// Actual modal\n.modal-content {\n position: relative;\n background-color: @modal-content-bg;\n border: 1px solid @modal-content-fallback-border-color; //old browsers fallback (ie8 etc)\n border: 1px solid @modal-content-border-color;\n border-radius: @border-radius-large;\n .box-shadow(0 3px 9px rgba(0,0,0,.5));\n background-clip: padding-box;\n // Remove focus outline from opened modal\n outline: 0;\n}\n\n// Modal background\n.modal-backdrop {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: @zindex-modal-background;\n background-color: @modal-backdrop-bg;\n // Fade for backdrop\n &.fade { .opacity(0); }\n &.in { .opacity(@modal-backdrop-opacity); }\n}\n\n// Modal header\n// Top section of the modal w/ title and dismiss\n.modal-header {\n padding: @modal-title-padding;\n border-bottom: 1px solid @modal-header-border-color;\n &:extend(.clearfix all);\n}\n// Close icon\n.modal-header .close {\n margin-top: -2px;\n}\n\n// Title text within header\n.modal-title {\n margin: 0;\n line-height: @modal-title-line-height;\n}\n\n// Modal body\n// Where all modal content resides (sibling of .modal-header and .modal-footer)\n.modal-body {\n position: relative;\n padding: @modal-inner-padding;\n}\n\n// Footer (for actions)\n.modal-footer {\n padding: @modal-inner-padding;\n text-align: right; // right align buttons\n border-top: 1px solid @modal-footer-border-color;\n &:extend(.clearfix all); // clear it in case folks use .pull-* classes on buttons\n\n // Properly space out buttons\n .btn + .btn {\n margin-left: 5px;\n margin-bottom: 0; // account for input[type=\"submit\"] which gets the bottom margin like all other inputs\n }\n // but override that for button groups\n .btn-group .btn + .btn {\n margin-left: -1px;\n }\n // and override it for block buttons as well\n .btn-block + .btn-block {\n margin-left: 0;\n }\n}\n\n// Measure scrollbar width for padding body during modal show/hide\n.modal-scrollbar-measure {\n position: absolute;\n top: -9999px;\n width: 50px;\n height: 50px;\n overflow: scroll;\n}\n\n// Scale up the modal\n@media (min-width: @screen-sm-min) {\n // Automatically set modal's width for larger viewports\n .modal-dialog {\n width: @modal-md;\n margin: 30px auto;\n }\n .modal-content {\n .box-shadow(0 5px 15px rgba(0,0,0,.5));\n }\n\n // Modal sizes\n .modal-sm { width: @modal-sm; }\n}\n\n@media (min-width: @screen-md-min) {\n .modal-lg { width: @modal-lg; }\n}\n","//\n// Tooltips\n// --------------------------------------------------\n\n\n// Base class\n.tooltip {\n position: absolute;\n z-index: @zindex-tooltip;\n display: block;\n // Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.\n // So reset our font and text properties to avoid inheriting weird values.\n .reset-text();\n font-size: @font-size-small;\n\n .opacity(0);\n\n &.in { .opacity(@tooltip-opacity); }\n &.top { margin-top: -3px; padding: @tooltip-arrow-width 0; }\n &.right { margin-left: 3px; padding: 0 @tooltip-arrow-width; }\n &.bottom { margin-top: 3px; padding: @tooltip-arrow-width 0; }\n &.left { margin-left: -3px; padding: 0 @tooltip-arrow-width; }\n}\n\n// Wrapper for the tooltip content\n.tooltip-inner {\n max-width: @tooltip-max-width;\n padding: 3px 8px;\n color: @tooltip-color;\n text-align: center;\n background-color: @tooltip-bg;\n border-radius: @border-radius-base;\n}\n\n// Arrows\n.tooltip-arrow {\n position: absolute;\n width: 0;\n height: 0;\n border-color: transparent;\n border-style: solid;\n}\n// Note: Deprecated .top-left, .top-right, .bottom-left, and .bottom-right as of v3.3.1\n.tooltip {\n &.top .tooltip-arrow {\n bottom: 0;\n left: 50%;\n margin-left: -@tooltip-arrow-width;\n border-width: @tooltip-arrow-width @tooltip-arrow-width 0;\n border-top-color: @tooltip-arrow-color;\n }\n &.top-left .tooltip-arrow {\n bottom: 0;\n right: @tooltip-arrow-width;\n margin-bottom: -@tooltip-arrow-width;\n border-width: @tooltip-arrow-width @tooltip-arrow-width 0;\n border-top-color: @tooltip-arrow-color;\n }\n &.top-right .tooltip-arrow {\n bottom: 0;\n left: @tooltip-arrow-width;\n margin-bottom: -@tooltip-arrow-width;\n border-width: @tooltip-arrow-width @tooltip-arrow-width 0;\n border-top-color: @tooltip-arrow-color;\n }\n &.right .tooltip-arrow {\n top: 50%;\n left: 0;\n margin-top: -@tooltip-arrow-width;\n border-width: @tooltip-arrow-width @tooltip-arrow-width @tooltip-arrow-width 0;\n border-right-color: @tooltip-arrow-color;\n }\n &.left .tooltip-arrow {\n top: 50%;\n right: 0;\n margin-top: -@tooltip-arrow-width;\n border-width: @tooltip-arrow-width 0 @tooltip-arrow-width @tooltip-arrow-width;\n border-left-color: @tooltip-arrow-color;\n }\n &.bottom .tooltip-arrow {\n top: 0;\n left: 50%;\n margin-left: -@tooltip-arrow-width;\n border-width: 0 @tooltip-arrow-width @tooltip-arrow-width;\n border-bottom-color: @tooltip-arrow-color;\n }\n &.bottom-left .tooltip-arrow {\n top: 0;\n right: @tooltip-arrow-width;\n margin-top: -@tooltip-arrow-width;\n border-width: 0 @tooltip-arrow-width @tooltip-arrow-width;\n border-bottom-color: @tooltip-arrow-color;\n }\n &.bottom-right .tooltip-arrow {\n top: 0;\n left: @tooltip-arrow-width;\n margin-top: -@tooltip-arrow-width;\n border-width: 0 @tooltip-arrow-width @tooltip-arrow-width;\n border-bottom-color: @tooltip-arrow-color;\n }\n}\n",".reset-text() {\n font-family: @font-family-base;\n // We deliberately do NOT reset font-size.\n font-style: normal;\n font-weight: normal;\n letter-spacing: normal;\n line-break: auto;\n line-height: @line-height-base;\n text-align: left; // Fallback for where `start` is not supported\n text-align: start;\n text-decoration: none;\n text-shadow: none;\n text-transform: none;\n white-space: normal;\n word-break: normal;\n word-spacing: normal;\n word-wrap: normal;\n}\n","//\n// Popovers\n// --------------------------------------------------\n\n\n.popover {\n position: absolute;\n top: 0;\n left: 0;\n z-index: @zindex-popover;\n display: none;\n max-width: @popover-max-width;\n padding: 1px;\n // Our parent element can be arbitrary since popovers are by default inserted as a sibling of their target element.\n // So reset our font and text properties to avoid inheriting weird values.\n .reset-text();\n font-size: @font-size-base;\n\n background-color: @popover-bg;\n background-clip: padding-box;\n border: 1px solid @popover-fallback-border-color;\n border: 1px solid @popover-border-color;\n border-radius: @border-radius-large;\n .box-shadow(0 5px 10px rgba(0,0,0,.2));\n\n // Offset the popover to account for the popover arrow\n &.top { margin-top: -@popover-arrow-width; }\n &.right { margin-left: @popover-arrow-width; }\n &.bottom { margin-top: @popover-arrow-width; }\n &.left { margin-left: -@popover-arrow-width; }\n}\n\n.popover-title {\n margin: 0; // reset heading margin\n padding: 8px 14px;\n font-size: @font-size-base;\n background-color: @popover-title-bg;\n border-bottom: 1px solid darken(@popover-title-bg, 5%);\n border-radius: (@border-radius-large - 1) (@border-radius-large - 1) 0 0;\n}\n\n.popover-content {\n padding: 9px 14px;\n}\n\n// Arrows\n//\n// .arrow is outer, .arrow:after is inner\n\n.popover > .arrow {\n &,\n &:after {\n position: absolute;\n display: block;\n width: 0;\n height: 0;\n border-color: transparent;\n border-style: solid;\n }\n}\n.popover > .arrow {\n border-width: @popover-arrow-outer-width;\n}\n.popover > .arrow:after {\n border-width: @popover-arrow-width;\n content: \"\";\n}\n\n.popover {\n &.top > .arrow {\n left: 50%;\n margin-left: -@popover-arrow-outer-width;\n border-bottom-width: 0;\n border-top-color: @popover-arrow-outer-fallback-color; // IE8 fallback\n border-top-color: @popover-arrow-outer-color;\n bottom: -@popover-arrow-outer-width;\n &:after {\n content: \" \";\n bottom: 1px;\n margin-left: -@popover-arrow-width;\n border-bottom-width: 0;\n border-top-color: @popover-arrow-color;\n }\n }\n &.right > .arrow {\n top: 50%;\n left: -@popover-arrow-outer-width;\n margin-top: -@popover-arrow-outer-width;\n border-left-width: 0;\n border-right-color: @popover-arrow-outer-fallback-color; // IE8 fallback\n border-right-color: @popover-arrow-outer-color;\n &:after {\n content: \" \";\n left: 1px;\n bottom: -@popover-arrow-width;\n border-left-width: 0;\n border-right-color: @popover-arrow-color;\n }\n }\n &.bottom > .arrow {\n left: 50%;\n margin-left: -@popover-arrow-outer-width;\n border-top-width: 0;\n border-bottom-color: @popover-arrow-outer-fallback-color; // IE8 fallback\n border-bottom-color: @popover-arrow-outer-color;\n top: -@popover-arrow-outer-width;\n &:after {\n content: \" \";\n top: 1px;\n margin-left: -@popover-arrow-width;\n border-top-width: 0;\n border-bottom-color: @popover-arrow-color;\n }\n }\n\n &.left > .arrow {\n top: 50%;\n right: -@popover-arrow-outer-width;\n margin-top: -@popover-arrow-outer-width;\n border-right-width: 0;\n border-left-color: @popover-arrow-outer-fallback-color; // IE8 fallback\n border-left-color: @popover-arrow-outer-color;\n &:after {\n content: \" \";\n right: 1px;\n border-right-width: 0;\n border-left-color: @popover-arrow-color;\n bottom: -@popover-arrow-width;\n }\n }\n}\n","//\n// Carousel\n// --------------------------------------------------\n\n\n// Wrapper for the slide container and indicators\n.carousel {\n position: relative;\n}\n\n.carousel-inner {\n position: relative;\n overflow: hidden;\n width: 100%;\n\n > .item {\n display: none;\n position: relative;\n .transition(.6s ease-in-out left);\n\n // Account for jankitude on images\n > img,\n > a > img {\n &:extend(.img-responsive);\n line-height: 1;\n }\n\n // WebKit CSS3 transforms for supported devices\n @media all and (transform-3d), (-webkit-transform-3d) {\n .transition-transform(~'0.6s ease-in-out');\n .backface-visibility(~'hidden');\n .perspective(1000px);\n\n &.next,\n &.active.right {\n .translate3d(100%, 0, 0);\n left: 0;\n }\n &.prev,\n &.active.left {\n .translate3d(-100%, 0, 0);\n left: 0;\n }\n &.next.left,\n &.prev.right,\n &.active {\n .translate3d(0, 0, 0);\n left: 0;\n }\n }\n }\n\n > .active,\n > .next,\n > .prev {\n display: block;\n }\n\n > .active {\n left: 0;\n }\n\n > .next,\n > .prev {\n position: absolute;\n top: 0;\n width: 100%;\n }\n\n > .next {\n left: 100%;\n }\n > .prev {\n left: -100%;\n }\n > .next.left,\n > .prev.right {\n left: 0;\n }\n\n > .active.left {\n left: -100%;\n }\n > .active.right {\n left: 100%;\n }\n\n}\n\n// Left/right controls for nav\n// ---------------------------\n\n.carousel-control {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: @carousel-control-width;\n .opacity(@carousel-control-opacity);\n font-size: @carousel-control-font-size;\n color: @carousel-control-color;\n text-align: center;\n text-shadow: @carousel-text-shadow;\n background-color: rgba(0, 0, 0, 0); // Fix IE9 click-thru bug\n // We can't have this transition here because WebKit cancels the carousel\n // animation if you trip this while in the middle of another animation.\n\n // Set gradients for backgrounds\n &.left {\n #gradient > .horizontal(@start-color: rgba(0,0,0,.5); @end-color: rgba(0,0,0,.0001));\n }\n &.right {\n left: auto;\n right: 0;\n #gradient > .horizontal(@start-color: rgba(0,0,0,.0001); @end-color: rgba(0,0,0,.5));\n }\n\n // Hover/focus state\n &:hover,\n &:focus {\n outline: 0;\n color: @carousel-control-color;\n text-decoration: none;\n .opacity(.9);\n }\n\n // Toggles\n .icon-prev,\n .icon-next,\n .glyphicon-chevron-left,\n .glyphicon-chevron-right {\n position: absolute;\n top: 50%;\n margin-top: -10px;\n z-index: 5;\n display: inline-block;\n }\n .icon-prev,\n .glyphicon-chevron-left {\n left: 50%;\n margin-left: -10px;\n }\n .icon-next,\n .glyphicon-chevron-right {\n right: 50%;\n margin-right: -10px;\n }\n .icon-prev,\n .icon-next {\n width: 20px;\n height: 20px;\n line-height: 1;\n font-family: serif;\n }\n\n\n .icon-prev {\n &:before {\n content: '\\2039';// SINGLE LEFT-POINTING ANGLE QUOTATION MARK (U+2039)\n }\n }\n .icon-next {\n &:before {\n content: '\\203a';// SINGLE RIGHT-POINTING ANGLE QUOTATION MARK (U+203A)\n }\n }\n}\n\n// Optional indicator pips\n//\n// Add an unordered list with the following class and add a list item for each\n// slide your carousel holds.\n\n.carousel-indicators {\n position: absolute;\n bottom: 10px;\n left: 50%;\n z-index: 15;\n width: 60%;\n margin-left: -30%;\n padding-left: 0;\n list-style: none;\n text-align: center;\n\n li {\n display: inline-block;\n width: 10px;\n height: 10px;\n margin: 1px;\n text-indent: -999px;\n border: 1px solid @carousel-indicator-border-color;\n border-radius: 10px;\n cursor: pointer;\n\n // IE8-9 hack for event handling\n //\n // Internet Explorer 8-9 does not support clicks on elements without a set\n // `background-color`. We cannot use `filter` since that's not viewed as a\n // background color by the browser. Thus, a hack is needed.\n // See https://developer.mozilla.org/en-US/docs/Web/Events/click#Internet_Explorer\n //\n // For IE8, we set solid black as it doesn't support `rgba()`. For IE9, we\n // set alpha transparency for the best results possible.\n background-color: #000 \\9; // IE8\n background-color: rgba(0,0,0,0); // IE9\n }\n .active {\n margin: 0;\n width: 12px;\n height: 12px;\n background-color: @carousel-indicator-active-bg;\n }\n}\n\n// Optional captions\n// -----------------------------\n// Hidden by default for smaller viewports\n.carousel-caption {\n position: absolute;\n left: 15%;\n right: 15%;\n bottom: 20px;\n z-index: 10;\n padding-top: 20px;\n padding-bottom: 20px;\n color: @carousel-caption-color;\n text-align: center;\n text-shadow: @carousel-text-shadow;\n & .btn {\n text-shadow: none; // No shadow for button elements in carousel-caption\n }\n}\n\n\n// Scale up controls for tablets and up\n@media screen and (min-width: @screen-sm-min) {\n\n // Scale up the controls a smidge\n .carousel-control {\n .glyphicon-chevron-left,\n .glyphicon-chevron-right,\n .icon-prev,\n .icon-next {\n width: (@carousel-control-font-size * 1.5);\n height: (@carousel-control-font-size * 1.5);\n margin-top: (@carousel-control-font-size / -2);\n font-size: (@carousel-control-font-size * 1.5);\n }\n .glyphicon-chevron-left,\n .icon-prev {\n margin-left: (@carousel-control-font-size / -2);\n }\n .glyphicon-chevron-right,\n .icon-next {\n margin-right: (@carousel-control-font-size / -2);\n }\n }\n\n // Show and left align the captions\n .carousel-caption {\n left: 20%;\n right: 20%;\n padding-bottom: 30px;\n }\n\n // Move up the indicators\n .carousel-indicators {\n bottom: 20px;\n }\n}\n","// Clearfix\n//\n// For modern browsers\n// 1. The space content is one way to avoid an Opera bug when the\n// contenteditable attribute is included anywhere else in the document.\n// Otherwise it causes space to appear at the top and bottom of elements\n// that are clearfixed.\n// 2. The use of `table` rather than `block` is only necessary if using\n// `:before` to contain the top-margins of child elements.\n//\n// Source: http://nicolasgallagher.com/micro-clearfix-hack/\n\n.clearfix() {\n &:before,\n &:after {\n content: \" \"; // 1\n display: table; // 2\n }\n &:after {\n clear: both;\n }\n}\n","// Center-align a block level element\n\n.center-block() {\n display: block;\n margin-left: auto;\n margin-right: auto;\n}\n","// CSS image replacement\n//\n// Heads up! v3 launched with only `.hide-text()`, but per our pattern for\n// mixins being reused as classes with the same name, this doesn't hold up. As\n// of v3.0.1 we have added `.text-hide()` and deprecated `.hide-text()`.\n//\n// Source: https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757\n\n// Deprecated as of v3.0.1 (has been removed in v4)\n.hide-text() {\n font: ~\"0/0\" a;\n color: transparent;\n text-shadow: none;\n background-color: transparent;\n border: 0;\n}\n\n// New mixin to use as of v3.0.1\n.text-hide() {\n .hide-text();\n}\n","//\n// Responsive: Utility classes\n// --------------------------------------------------\n\n\n// IE10 in Windows (Phone) 8\n//\n// Support for responsive views via media queries is kind of borked in IE10, for\n// Surface/desktop in split view and for Windows Phone 8. This particular fix\n// must be accompanied by a snippet of JavaScript to sniff the user agent and\n// apply some conditional CSS to *only* the Surface/desktop Windows 8. Look at\n// our Getting Started page for more information on this bug.\n//\n// For more information, see the following:\n//\n// Issue: https://github.com/twbs/bootstrap/issues/10497\n// Docs: http://getbootstrap.com/getting-started/#support-ie10-width\n// Source: http://timkadlec.com/2013/01/windows-phone-8-and-device-width/\n// Source: http://timkadlec.com/2012/10/ie10-snap-mode-and-responsive-design/\n\n@-ms-viewport {\n width: device-width;\n}\n\n\n// Visibility utilities\n// Note: Deprecated .visible-xs, .visible-sm, .visible-md, and .visible-lg as of v3.2.0\n.visible-xs,\n.visible-sm,\n.visible-md,\n.visible-lg {\n .responsive-invisibility();\n}\n\n.visible-xs-block,\n.visible-xs-inline,\n.visible-xs-inline-block,\n.visible-sm-block,\n.visible-sm-inline,\n.visible-sm-inline-block,\n.visible-md-block,\n.visible-md-inline,\n.visible-md-inline-block,\n.visible-lg-block,\n.visible-lg-inline,\n.visible-lg-inline-block {\n display: none !important;\n}\n\n.visible-xs {\n @media (max-width: @screen-xs-max) {\n .responsive-visibility();\n }\n}\n.visible-xs-block {\n @media (max-width: @screen-xs-max) {\n display: block !important;\n }\n}\n.visible-xs-inline {\n @media (max-width: @screen-xs-max) {\n display: inline !important;\n }\n}\n.visible-xs-inline-block {\n @media (max-width: @screen-xs-max) {\n display: inline-block !important;\n }\n}\n\n.visible-sm {\n @media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {\n .responsive-visibility();\n }\n}\n.visible-sm-block {\n @media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {\n display: block !important;\n }\n}\n.visible-sm-inline {\n @media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {\n display: inline !important;\n }\n}\n.visible-sm-inline-block {\n @media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {\n display: inline-block !important;\n }\n}\n\n.visible-md {\n @media (min-width: @screen-md-min) and (max-width: @screen-md-max) {\n .responsive-visibility();\n }\n}\n.visible-md-block {\n @media (min-width: @screen-md-min) and (max-width: @screen-md-max) {\n display: block !important;\n }\n}\n.visible-md-inline {\n @media (min-width: @screen-md-min) and (max-width: @screen-md-max) {\n display: inline !important;\n }\n}\n.visible-md-inline-block {\n @media (min-width: @screen-md-min) and (max-width: @screen-md-max) {\n display: inline-block !important;\n }\n}\n\n.visible-lg {\n @media (min-width: @screen-lg-min) {\n .responsive-visibility();\n }\n}\n.visible-lg-block {\n @media (min-width: @screen-lg-min) {\n display: block !important;\n }\n}\n.visible-lg-inline {\n @media (min-width: @screen-lg-min) {\n display: inline !important;\n }\n}\n.visible-lg-inline-block {\n @media (min-width: @screen-lg-min) {\n display: inline-block !important;\n }\n}\n\n.hidden-xs {\n @media (max-width: @screen-xs-max) {\n .responsive-invisibility();\n }\n}\n.hidden-sm {\n @media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {\n .responsive-invisibility();\n }\n}\n.hidden-md {\n @media (min-width: @screen-md-min) and (max-width: @screen-md-max) {\n .responsive-invisibility();\n }\n}\n.hidden-lg {\n @media (min-width: @screen-lg-min) {\n .responsive-invisibility();\n }\n}\n\n\n// Print utilities\n//\n// Media queries are placed on the inside to be mixin-friendly.\n\n// Note: Deprecated .visible-print as of v3.2.0\n.visible-print {\n .responsive-invisibility();\n\n @media print {\n .responsive-visibility();\n }\n}\n.visible-print-block {\n display: none !important;\n\n @media print {\n display: block !important;\n }\n}\n.visible-print-inline {\n display: none !important;\n\n @media print {\n display: inline !important;\n }\n}\n.visible-print-inline-block {\n display: none !important;\n\n @media print {\n display: inline-block !important;\n }\n}\n\n.hidden-print {\n @media print {\n .responsive-invisibility();\n }\n}\n","// Responsive utilities\n\n//\n// More easily include all the states for responsive-utilities.less.\n.responsive-visibility() {\n display: block !important;\n table& { display: table !important; }\n tr& { display: table-row !important; }\n th&,\n td& { display: table-cell !important; }\n}\n\n.responsive-invisibility() {\n display: none !important;\n}\n"]} \ No newline at end of file diff --git a/src/Sample.RazorPages/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css.map b/src/Sample.RazorPages/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css.map new file mode 100644 index 0000000..6c7fa40 --- /dev/null +++ b/src/Sample.RazorPages/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["less/normalize.less","less/print.less","bootstrap.css","dist/css/bootstrap.css","less/glyphicons.less","less/scaffolding.less","less/mixins/vendor-prefixes.less","less/mixins/tab-focus.less","less/mixins/image.less","less/type.less","less/mixins/text-emphasis.less","less/mixins/background-variant.less","less/mixins/text-overflow.less","less/code.less","less/grid.less","less/mixins/grid.less","less/mixins/grid-framework.less","less/tables.less","less/mixins/table-row.less","less/forms.less","less/mixins/forms.less","less/buttons.less","less/mixins/buttons.less","less/mixins/opacity.less","less/component-animations.less","less/dropdowns.less","less/mixins/nav-divider.less","less/mixins/reset-filter.less","less/button-groups.less","less/mixins/border-radius.less","less/input-groups.less","less/navs.less","less/navbar.less","less/mixins/nav-vertical-align.less","less/utilities.less","less/breadcrumbs.less","less/pagination.less","less/mixins/pagination.less","less/pager.less","less/labels.less","less/mixins/labels.less","less/badges.less","less/jumbotron.less","less/thumbnails.less","less/alerts.less","less/mixins/alerts.less","less/progress-bars.less","less/mixins/gradients.less","less/mixins/progress-bar.less","less/media.less","less/list-group.less","less/mixins/list-group.less","less/panels.less","less/mixins/panels.less","less/responsive-embed.less","less/wells.less","less/close.less","less/modals.less","less/tooltip.less","less/mixins/reset-text.less","less/popovers.less","less/carousel.less","less/mixins/clearfix.less","less/mixins/center-block.less","less/mixins/hide-text.less","less/responsive-utilities.less","less/mixins/responsive-visibility.less"],"names":[],"mappings":";;;;4EAQA,KACE,YAAA,WACA,yBAAA,KACA,qBAAA,KAOF,KACE,OAAA,EAaF,QAAA,MAAA,QAAA,WAAA,OAAA,OAAA,OAAA,OAAA,KAAA,KAAA,IAAA,QAAA,QAaE,QAAA,MAQF,MAAA,OAAA,SAAA,MAIE,QAAA,aACA,eAAA,SAQF,sBACE,QAAA,KACA,OAAA,EAQF,SAAA,SAEE,QAAA,KAUF,EACE,iBAAA,YAQF,SAAA,QAEE,QAAA,EAUF,YACE,cAAA,IAAA,OAOF,EAAA,OAEE,YAAA,IAOF,IACE,WAAA,OAQF,GACE,OAAA,MAAA,EACA,UAAA,IAOF,KACE,MAAA,KACA,WAAA,KAOF,MACE,UAAA,IAOF,IAAA,IAEE,SAAA,SACA,UAAA,IACA,YAAA,EACA,eAAA,SAGF,IACE,IAAA,MAGF,IACE,OAAA,OAUF,IACE,OAAA,EAOF,eACE,SAAA,OAUF,OACE,OAAA,IAAA,KAOF,GACE,OAAA,EAAA,mBAAA,YAAA,gBAAA,YACA,WAAA,YAOF,IACE,SAAA,KAOF,KAAA,IAAA,IAAA,KAIE,YAAA,UAAA,UACA,UAAA,IAkBF,OAAA,MAAA,SAAA,OAAA,SAKE,OAAA,EACA,KAAA,QACA,MAAA,QAOF,OACE,SAAA,QAUF,OAAA,OAEE,eAAA,KAWF,OAAA,wBAAA,kBAAA,mBAIE,mBAAA,OACA,OAAA,QAOF,iBAAA,qBAEE,OAAA,QAOF,yBAAA,wBAEE,QAAA,EACA,OAAA,EAQF,MACE,YAAA,OAWF,qBAAA,kBAEE,mBAAA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,QAAS,sB/D22MZ,qB+D/3MC,QAAS,e/Dk4MV,a+D53MC,qBAcE,QAAS,iB/Dm3MZ,sB+Dh4MC,QAAS,e/Dm4MV,a+D73MC,sBAOE,QAAS,kB/D23MZ,4B+D53MC,QAAS,eCpLT,ahEojNC,4BACF,QAAA,wBC6BD,aACE,cACE,QAAS","sourcesContent":["/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */\n\n//\n// 1. Set default font family to sans-serif.\n// 2. Prevent iOS and IE text size adjust after device orientation change,\n// without disabling user zoom.\n//\n\nhtml {\n font-family: sans-serif; // 1\n -ms-text-size-adjust: 100%; // 2\n -webkit-text-size-adjust: 100%; // 2\n}\n\n//\n// Remove default margin.\n//\n\nbody {\n margin: 0;\n}\n\n// HTML5 display definitions\n// ==========================================================================\n\n//\n// Correct `block` display not defined for any HTML5 element in IE 8/9.\n// Correct `block` display not defined for `details` or `summary` in IE 10/11\n// and Firefox.\n// Correct `block` display not defined for `main` in IE 11.\n//\n\narticle,\naside,\ndetails,\nfigcaption,\nfigure,\nfooter,\nheader,\nhgroup,\nmain,\nmenu,\nnav,\nsection,\nsummary {\n display: block;\n}\n\n//\n// 1. Correct `inline-block` display not defined in IE 8/9.\n// 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.\n//\n\naudio,\ncanvas,\nprogress,\nvideo {\n display: inline-block; // 1\n vertical-align: baseline; // 2\n}\n\n//\n// Prevent modern browsers from displaying `audio` without controls.\n// Remove excess height in iOS 5 devices.\n//\n\naudio:not([controls]) {\n display: none;\n height: 0;\n}\n\n//\n// Address `[hidden]` styling not present in IE 8/9/10.\n// Hide the `template` element in IE 8/9/10/11, Safari, and Firefox < 22.\n//\n\n[hidden],\ntemplate {\n display: none;\n}\n\n// Links\n// ==========================================================================\n\n//\n// Remove the gray background color from active links in IE 10.\n//\n\na {\n background-color: transparent;\n}\n\n//\n// Improve readability of focused elements when they are also in an\n// active/hover state.\n//\n\na:active,\na:hover {\n outline: 0;\n}\n\n// Text-level semantics\n// ==========================================================================\n\n//\n// Address styling not present in IE 8/9/10/11, Safari, and Chrome.\n//\n\nabbr[title] {\n border-bottom: 1px dotted;\n}\n\n//\n// Address style set to `bolder` in Firefox 4+, Safari, and Chrome.\n//\n\nb,\nstrong {\n font-weight: bold;\n}\n\n//\n// Address styling not present in Safari and Chrome.\n//\n\ndfn {\n font-style: italic;\n}\n\n//\n// Address variable `h1` font-size and margin within `section` and `article`\n// contexts in Firefox 4+, Safari, and Chrome.\n//\n\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n//\n// Address styling not present in IE 8/9.\n//\n\nmark {\n background: #ff0;\n color: #000;\n}\n\n//\n// Address inconsistent and variable font size in all browsers.\n//\n\nsmall {\n font-size: 80%;\n}\n\n//\n// Prevent `sub` and `sup` affecting `line-height` in all browsers.\n//\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsup {\n top: -0.5em;\n}\n\nsub {\n bottom: -0.25em;\n}\n\n// Embedded content\n// ==========================================================================\n\n//\n// Remove border when inside `a` element in IE 8/9/10.\n//\n\nimg {\n border: 0;\n}\n\n//\n// Correct overflow not hidden in IE 9/10/11.\n//\n\nsvg:not(:root) {\n overflow: hidden;\n}\n\n// Grouping content\n// ==========================================================================\n\n//\n// Address margin not present in IE 8/9 and Safari.\n//\n\nfigure {\n margin: 1em 40px;\n}\n\n//\n// Address differences between Firefox and other browsers.\n//\n\nhr {\n box-sizing: content-box;\n height: 0;\n}\n\n//\n// Contain overflow in all browsers.\n//\n\npre {\n overflow: auto;\n}\n\n//\n// Address odd `em`-unit font size rendering in all browsers.\n//\n\ncode,\nkbd,\npre,\nsamp {\n font-family: monospace, monospace;\n font-size: 1em;\n}\n\n// Forms\n// ==========================================================================\n\n//\n// Known limitation: by default, Chrome and Safari on OS X allow very limited\n// styling of `select`, unless a `border` property is set.\n//\n\n//\n// 1. Correct color not being inherited.\n// Known issue: affects color of disabled elements.\n// 2. Correct font properties not being inherited.\n// 3. Address margins set differently in Firefox 4+, Safari, and Chrome.\n//\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n color: inherit; // 1\n font: inherit; // 2\n margin: 0; // 3\n}\n\n//\n// Address `overflow` set to `hidden` in IE 8/9/10/11.\n//\n\nbutton {\n overflow: visible;\n}\n\n//\n// Address inconsistent `text-transform` inheritance for `button` and `select`.\n// All other form control elements do not inherit `text-transform` values.\n// Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.\n// Correct `select` style inheritance in Firefox.\n//\n\nbutton,\nselect {\n text-transform: none;\n}\n\n//\n// 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`\n// and `video` controls.\n// 2. Correct inability to style clickable `input` types in iOS.\n// 3. Improve usability and consistency of cursor style between image-type\n// `input` and others.\n//\n\nbutton,\nhtml input[type=\"button\"], // 1\ninput[type=\"reset\"],\ninput[type=\"submit\"] {\n -webkit-appearance: button; // 2\n cursor: pointer; // 3\n}\n\n//\n// Re-set default cursor for disabled elements.\n//\n\nbutton[disabled],\nhtml input[disabled] {\n cursor: default;\n}\n\n//\n// Remove inner padding and border in Firefox 4+.\n//\n\nbutton::-moz-focus-inner,\ninput::-moz-focus-inner {\n border: 0;\n padding: 0;\n}\n\n//\n// Address Firefox 4+ setting `line-height` on `input` using `!important` in\n// the UA stylesheet.\n//\n\ninput {\n line-height: normal;\n}\n\n//\n// It's recommended that you don't attempt to style these elements.\n// Firefox's implementation doesn't respect box-sizing, padding, or width.\n//\n// 1. Address box sizing set to `content-box` in IE 8/9/10.\n// 2. Remove excess padding in IE 8/9/10.\n//\n\ninput[type=\"checkbox\"],\ninput[type=\"radio\"] {\n box-sizing: border-box; // 1\n padding: 0; // 2\n}\n\n//\n// Fix the cursor style for Chrome's increment/decrement buttons. For certain\n// `font-size` values of the `input`, it causes the cursor style of the\n// decrement button to change from `default` to `text`.\n//\n\ninput[type=\"number\"]::-webkit-inner-spin-button,\ninput[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n//\n// 1. Address `appearance` set to `searchfield` in Safari and Chrome.\n// 2. Address `box-sizing` set to `border-box` in Safari and Chrome.\n//\n\ninput[type=\"search\"] {\n -webkit-appearance: textfield; // 1\n box-sizing: content-box; //2\n}\n\n//\n// Remove inner padding and search cancel button in Safari and Chrome on OS X.\n// Safari (but not Chrome) clips the cancel button when the search input has\n// padding (and `textfield` appearance).\n//\n\ninput[type=\"search\"]::-webkit-search-cancel-button,\ninput[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n//\n// Define consistent border, margin, and padding.\n//\n\nfieldset {\n border: 1px solid #c0c0c0;\n margin: 0 2px;\n padding: 0.35em 0.625em 0.75em;\n}\n\n//\n// 1. Correct `color` not being inherited in IE 8/9/10/11.\n// 2. Remove padding so people aren't caught out if they zero out fieldsets.\n//\n\nlegend {\n border: 0; // 1\n padding: 0; // 2\n}\n\n//\n// Remove default vertical scrollbar in IE 8/9/10/11.\n//\n\ntextarea {\n overflow: auto;\n}\n\n//\n// Don't inherit the `font-weight` (applied by a rule above).\n// NOTE: the default cannot safely be changed in Chrome and Safari on OS X.\n//\n\noptgroup {\n font-weight: bold;\n}\n\n// Tables\n// ==========================================================================\n\n//\n// Remove most spacing between table cells.\n//\n\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\n\ntd,\nth {\n padding: 0;\n}\n","/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */\n\n// ==========================================================================\n// Print styles.\n// Inlined to avoid the additional HTTP request: h5bp.com/r\n// ==========================================================================\n\n@media print {\n *,\n *:before,\n *:after {\n background: transparent !important;\n color: #000 !important; // Black prints faster: h5bp.com/s\n box-shadow: none !important;\n text-shadow: none !important;\n }\n\n a,\n a:visited {\n text-decoration: underline;\n }\n\n a[href]:after {\n content: \" (\" attr(href) \")\";\n }\n\n abbr[title]:after {\n content: \" (\" attr(title) \")\";\n }\n\n // Don't show links that are fragment identifiers,\n // or use the `javascript:` pseudo protocol\n a[href^=\"#\"]:after,\n a[href^=\"javascript:\"]:after {\n content: \"\";\n }\n\n pre,\n blockquote {\n border: 1px solid #999;\n page-break-inside: avoid;\n }\n\n thead {\n display: table-header-group; // h5bp.com/t\n }\n\n tr,\n img {\n page-break-inside: avoid;\n }\n\n img {\n max-width: 100% !important;\n }\n\n p,\n h2,\n h3 {\n orphans: 3;\n widows: 3;\n }\n\n h2,\n h3 {\n page-break-after: avoid;\n }\n\n // Bootstrap specific changes start\n\n // Bootstrap components\n .navbar {\n display: none;\n }\n .btn,\n .dropup > .btn {\n > .caret {\n border-top-color: #000 !important;\n }\n }\n .label {\n border: 1px solid #000;\n }\n\n .table {\n border-collapse: collapse !important;\n\n td,\n th {\n background-color: #fff !important;\n }\n }\n .table-bordered {\n th,\n td {\n border: 1px solid #ddd !important;\n }\n }\n\n // Bootstrap specific changes end\n}\n","/*!\n * Bootstrap v3.3.7 (http://getbootstrap.com)\n * Copyright 2011-2016 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n */\n/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */\nhtml {\n font-family: sans-serif;\n -ms-text-size-adjust: 100%;\n -webkit-text-size-adjust: 100%;\n}\nbody {\n margin: 0;\n}\narticle,\naside,\ndetails,\nfigcaption,\nfigure,\nfooter,\nheader,\nhgroup,\nmain,\nmenu,\nnav,\nsection,\nsummary {\n display: block;\n}\naudio,\ncanvas,\nprogress,\nvideo {\n display: inline-block;\n vertical-align: baseline;\n}\naudio:not([controls]) {\n display: none;\n height: 0;\n}\n[hidden],\ntemplate {\n display: none;\n}\na {\n background-color: transparent;\n}\na:active,\na:hover {\n outline: 0;\n}\nabbr[title] {\n border-bottom: 1px dotted;\n}\nb,\nstrong {\n font-weight: bold;\n}\ndfn {\n font-style: italic;\n}\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\nmark {\n background: #ff0;\n color: #000;\n}\nsmall {\n font-size: 80%;\n}\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\nsup {\n top: -0.5em;\n}\nsub {\n bottom: -0.25em;\n}\nimg {\n border: 0;\n}\nsvg:not(:root) {\n overflow: hidden;\n}\nfigure {\n margin: 1em 40px;\n}\nhr {\n box-sizing: content-box;\n height: 0;\n}\npre {\n overflow: auto;\n}\ncode,\nkbd,\npre,\nsamp {\n font-family: monospace, monospace;\n font-size: 1em;\n}\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n color: inherit;\n font: inherit;\n margin: 0;\n}\nbutton {\n overflow: visible;\n}\nbutton,\nselect {\n text-transform: none;\n}\nbutton,\nhtml input[type=\"button\"],\ninput[type=\"reset\"],\ninput[type=\"submit\"] {\n -webkit-appearance: button;\n cursor: pointer;\n}\nbutton[disabled],\nhtml input[disabled] {\n cursor: default;\n}\nbutton::-moz-focus-inner,\ninput::-moz-focus-inner {\n border: 0;\n padding: 0;\n}\ninput {\n line-height: normal;\n}\ninput[type=\"checkbox\"],\ninput[type=\"radio\"] {\n box-sizing: border-box;\n padding: 0;\n}\ninput[type=\"number\"]::-webkit-inner-spin-button,\ninput[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\ninput[type=\"search\"] {\n -webkit-appearance: textfield;\n box-sizing: content-box;\n}\ninput[type=\"search\"]::-webkit-search-cancel-button,\ninput[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\nfieldset {\n border: 1px solid #c0c0c0;\n margin: 0 2px;\n padding: 0.35em 0.625em 0.75em;\n}\nlegend {\n border: 0;\n padding: 0;\n}\ntextarea {\n overflow: auto;\n}\noptgroup {\n font-weight: bold;\n}\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\ntd,\nth {\n padding: 0;\n}\n/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */\n@media print {\n *,\n *:before,\n *:after {\n background: transparent !important;\n color: #000 !important;\n box-shadow: none !important;\n text-shadow: none !important;\n }\n a,\n a:visited {\n text-decoration: underline;\n }\n a[href]:after {\n content: \" (\" attr(href) \")\";\n }\n abbr[title]:after {\n content: \" (\" attr(title) \")\";\n }\n a[href^=\"#\"]:after,\n a[href^=\"javascript:\"]:after {\n content: \"\";\n }\n pre,\n blockquote {\n border: 1px solid #999;\n page-break-inside: avoid;\n }\n thead {\n display: table-header-group;\n }\n tr,\n img {\n page-break-inside: avoid;\n }\n img {\n max-width: 100% !important;\n }\n p,\n h2,\n h3 {\n orphans: 3;\n widows: 3;\n }\n h2,\n h3 {\n page-break-after: avoid;\n }\n .navbar {\n display: none;\n }\n .btn > .caret,\n .dropup > .btn > .caret {\n border-top-color: #000 !important;\n }\n .label {\n border: 1px solid #000;\n }\n .table {\n border-collapse: collapse !important;\n }\n .table td,\n .table th {\n background-color: #fff !important;\n }\n .table-bordered th,\n .table-bordered td {\n border: 1px solid #ddd !important;\n }\n}\n@font-face {\n font-family: 'Glyphicons Halflings';\n src: url('../fonts/glyphicons-halflings-regular.eot');\n src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff2') format('woff2'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');\n}\n.glyphicon {\n position: relative;\n top: 1px;\n display: inline-block;\n font-family: 'Glyphicons Halflings';\n font-style: normal;\n font-weight: normal;\n line-height: 1;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n.glyphicon-asterisk:before {\n content: \"\\002a\";\n}\n.glyphicon-plus:before {\n content: \"\\002b\";\n}\n.glyphicon-euro:before,\n.glyphicon-eur:before {\n content: \"\\20ac\";\n}\n.glyphicon-minus:before {\n content: \"\\2212\";\n}\n.glyphicon-cloud:before {\n content: \"\\2601\";\n}\n.glyphicon-envelope:before {\n content: \"\\2709\";\n}\n.glyphicon-pencil:before {\n content: \"\\270f\";\n}\n.glyphicon-glass:before {\n content: \"\\e001\";\n}\n.glyphicon-music:before {\n content: \"\\e002\";\n}\n.glyphicon-search:before {\n content: \"\\e003\";\n}\n.glyphicon-heart:before {\n content: \"\\e005\";\n}\n.glyphicon-star:before {\n content: \"\\e006\";\n}\n.glyphicon-star-empty:before {\n content: \"\\e007\";\n}\n.glyphicon-user:before {\n content: \"\\e008\";\n}\n.glyphicon-film:before {\n content: \"\\e009\";\n}\n.glyphicon-th-large:before {\n content: \"\\e010\";\n}\n.glyphicon-th:before {\n content: \"\\e011\";\n}\n.glyphicon-th-list:before {\n content: \"\\e012\";\n}\n.glyphicon-ok:before {\n content: \"\\e013\";\n}\n.glyphicon-remove:before {\n content: \"\\e014\";\n}\n.glyphicon-zoom-in:before {\n content: \"\\e015\";\n}\n.glyphicon-zoom-out:before {\n content: \"\\e016\";\n}\n.glyphicon-off:before {\n content: \"\\e017\";\n}\n.glyphicon-signal:before {\n content: \"\\e018\";\n}\n.glyphicon-cog:before {\n content: \"\\e019\";\n}\n.glyphicon-trash:before {\n content: \"\\e020\";\n}\n.glyphicon-home:before {\n content: \"\\e021\";\n}\n.glyphicon-file:before {\n content: \"\\e022\";\n}\n.glyphicon-time:before {\n content: \"\\e023\";\n}\n.glyphicon-road:before {\n content: \"\\e024\";\n}\n.glyphicon-download-alt:before {\n content: \"\\e025\";\n}\n.glyphicon-download:before {\n content: \"\\e026\";\n}\n.glyphicon-upload:before {\n content: \"\\e027\";\n}\n.glyphicon-inbox:before {\n content: \"\\e028\";\n}\n.glyphicon-play-circle:before {\n content: \"\\e029\";\n}\n.glyphicon-repeat:before {\n content: \"\\e030\";\n}\n.glyphicon-refresh:before {\n content: \"\\e031\";\n}\n.glyphicon-list-alt:before {\n content: \"\\e032\";\n}\n.glyphicon-lock:before {\n content: \"\\e033\";\n}\n.glyphicon-flag:before {\n content: \"\\e034\";\n}\n.glyphicon-headphones:before {\n content: \"\\e035\";\n}\n.glyphicon-volume-off:before {\n content: \"\\e036\";\n}\n.glyphicon-volume-down:before {\n content: \"\\e037\";\n}\n.glyphicon-volume-up:before {\n content: \"\\e038\";\n}\n.glyphicon-qrcode:before {\n content: \"\\e039\";\n}\n.glyphicon-barcode:before {\n content: \"\\e040\";\n}\n.glyphicon-tag:before {\n content: \"\\e041\";\n}\n.glyphicon-tags:before {\n content: \"\\e042\";\n}\n.glyphicon-book:before {\n content: \"\\e043\";\n}\n.glyphicon-bookmark:before {\n content: \"\\e044\";\n}\n.glyphicon-print:before {\n content: \"\\e045\";\n}\n.glyphicon-camera:before {\n content: \"\\e046\";\n}\n.glyphicon-font:before {\n content: \"\\e047\";\n}\n.glyphicon-bold:before {\n content: \"\\e048\";\n}\n.glyphicon-italic:before {\n content: \"\\e049\";\n}\n.glyphicon-text-height:before {\n content: \"\\e050\";\n}\n.glyphicon-text-width:before {\n content: \"\\e051\";\n}\n.glyphicon-align-left:before {\n content: \"\\e052\";\n}\n.glyphicon-align-center:before {\n content: \"\\e053\";\n}\n.glyphicon-align-right:before {\n content: \"\\e054\";\n}\n.glyphicon-align-justify:before {\n content: \"\\e055\";\n}\n.glyphicon-list:before {\n content: \"\\e056\";\n}\n.glyphicon-indent-left:before {\n content: \"\\e057\";\n}\n.glyphicon-indent-right:before {\n content: \"\\e058\";\n}\n.glyphicon-facetime-video:before {\n content: \"\\e059\";\n}\n.glyphicon-picture:before {\n content: \"\\e060\";\n}\n.glyphicon-map-marker:before {\n content: \"\\e062\";\n}\n.glyphicon-adjust:before {\n content: \"\\e063\";\n}\n.glyphicon-tint:before {\n content: \"\\e064\";\n}\n.glyphicon-edit:before {\n content: \"\\e065\";\n}\n.glyphicon-share:before {\n content: \"\\e066\";\n}\n.glyphicon-check:before {\n content: \"\\e067\";\n}\n.glyphicon-move:before {\n content: \"\\e068\";\n}\n.glyphicon-step-backward:before {\n content: \"\\e069\";\n}\n.glyphicon-fast-backward:before {\n content: \"\\e070\";\n}\n.glyphicon-backward:before {\n content: \"\\e071\";\n}\n.glyphicon-play:before {\n content: \"\\e072\";\n}\n.glyphicon-pause:before {\n content: \"\\e073\";\n}\n.glyphicon-stop:before {\n content: \"\\e074\";\n}\n.glyphicon-forward:before {\n content: \"\\e075\";\n}\n.glyphicon-fast-forward:before {\n content: \"\\e076\";\n}\n.glyphicon-step-forward:before {\n content: \"\\e077\";\n}\n.glyphicon-eject:before {\n content: \"\\e078\";\n}\n.glyphicon-chevron-left:before {\n content: \"\\e079\";\n}\n.glyphicon-chevron-right:before {\n content: \"\\e080\";\n}\n.glyphicon-plus-sign:before {\n content: \"\\e081\";\n}\n.glyphicon-minus-sign:before {\n content: \"\\e082\";\n}\n.glyphicon-remove-sign:before {\n content: \"\\e083\";\n}\n.glyphicon-ok-sign:before {\n content: \"\\e084\";\n}\n.glyphicon-question-sign:before {\n content: \"\\e085\";\n}\n.glyphicon-info-sign:before {\n content: \"\\e086\";\n}\n.glyphicon-screenshot:before {\n content: \"\\e087\";\n}\n.glyphicon-remove-circle:before {\n content: \"\\e088\";\n}\n.glyphicon-ok-circle:before {\n content: \"\\e089\";\n}\n.glyphicon-ban-circle:before {\n content: \"\\e090\";\n}\n.glyphicon-arrow-left:before {\n content: \"\\e091\";\n}\n.glyphicon-arrow-right:before {\n content: \"\\e092\";\n}\n.glyphicon-arrow-up:before {\n content: \"\\e093\";\n}\n.glyphicon-arrow-down:before {\n content: \"\\e094\";\n}\n.glyphicon-share-alt:before {\n content: \"\\e095\";\n}\n.glyphicon-resize-full:before {\n content: \"\\e096\";\n}\n.glyphicon-resize-small:before {\n content: \"\\e097\";\n}\n.glyphicon-exclamation-sign:before {\n content: \"\\e101\";\n}\n.glyphicon-gift:before {\n content: \"\\e102\";\n}\n.glyphicon-leaf:before {\n content: \"\\e103\";\n}\n.glyphicon-fire:before {\n content: \"\\e104\";\n}\n.glyphicon-eye-open:before {\n content: \"\\e105\";\n}\n.glyphicon-eye-close:before {\n content: \"\\e106\";\n}\n.glyphicon-warning-sign:before {\n content: \"\\e107\";\n}\n.glyphicon-plane:before {\n content: \"\\e108\";\n}\n.glyphicon-calendar:before {\n content: \"\\e109\";\n}\n.glyphicon-random:before {\n content: \"\\e110\";\n}\n.glyphicon-comment:before {\n content: \"\\e111\";\n}\n.glyphicon-magnet:before {\n content: \"\\e112\";\n}\n.glyphicon-chevron-up:before {\n content: \"\\e113\";\n}\n.glyphicon-chevron-down:before {\n content: \"\\e114\";\n}\n.glyphicon-retweet:before {\n content: \"\\e115\";\n}\n.glyphicon-shopping-cart:before {\n content: \"\\e116\";\n}\n.glyphicon-folder-close:before {\n content: \"\\e117\";\n}\n.glyphicon-folder-open:before {\n content: \"\\e118\";\n}\n.glyphicon-resize-vertical:before {\n content: \"\\e119\";\n}\n.glyphicon-resize-horizontal:before {\n content: \"\\e120\";\n}\n.glyphicon-hdd:before {\n content: \"\\e121\";\n}\n.glyphicon-bullhorn:before {\n content: \"\\e122\";\n}\n.glyphicon-bell:before {\n content: \"\\e123\";\n}\n.glyphicon-certificate:before {\n content: \"\\e124\";\n}\n.glyphicon-thumbs-up:before {\n content: \"\\e125\";\n}\n.glyphicon-thumbs-down:before {\n content: \"\\e126\";\n}\n.glyphicon-hand-right:before {\n content: \"\\e127\";\n}\n.glyphicon-hand-left:before {\n content: \"\\e128\";\n}\n.glyphicon-hand-up:before {\n content: \"\\e129\";\n}\n.glyphicon-hand-down:before {\n content: \"\\e130\";\n}\n.glyphicon-circle-arrow-right:before {\n content: \"\\e131\";\n}\n.glyphicon-circle-arrow-left:before {\n content: \"\\e132\";\n}\n.glyphicon-circle-arrow-up:before {\n content: \"\\e133\";\n}\n.glyphicon-circle-arrow-down:before {\n content: \"\\e134\";\n}\n.glyphicon-globe:before {\n content: \"\\e135\";\n}\n.glyphicon-wrench:before {\n content: \"\\e136\";\n}\n.glyphicon-tasks:before {\n content: \"\\e137\";\n}\n.glyphicon-filter:before {\n content: \"\\e138\";\n}\n.glyphicon-briefcase:before {\n content: \"\\e139\";\n}\n.glyphicon-fullscreen:before {\n content: \"\\e140\";\n}\n.glyphicon-dashboard:before {\n content: \"\\e141\";\n}\n.glyphicon-paperclip:before {\n content: \"\\e142\";\n}\n.glyphicon-heart-empty:before {\n content: \"\\e143\";\n}\n.glyphicon-link:before {\n content: \"\\e144\";\n}\n.glyphicon-phone:before {\n content: \"\\e145\";\n}\n.glyphicon-pushpin:before {\n content: \"\\e146\";\n}\n.glyphicon-usd:before {\n content: \"\\e148\";\n}\n.glyphicon-gbp:before {\n content: \"\\e149\";\n}\n.glyphicon-sort:before {\n content: \"\\e150\";\n}\n.glyphicon-sort-by-alphabet:before {\n content: \"\\e151\";\n}\n.glyphicon-sort-by-alphabet-alt:before {\n content: \"\\e152\";\n}\n.glyphicon-sort-by-order:before {\n content: \"\\e153\";\n}\n.glyphicon-sort-by-order-alt:before {\n content: \"\\e154\";\n}\n.glyphicon-sort-by-attributes:before {\n content: \"\\e155\";\n}\n.glyphicon-sort-by-attributes-alt:before {\n content: \"\\e156\";\n}\n.glyphicon-unchecked:before {\n content: \"\\e157\";\n}\n.glyphicon-expand:before {\n content: \"\\e158\";\n}\n.glyphicon-collapse-down:before {\n content: \"\\e159\";\n}\n.glyphicon-collapse-up:before {\n content: \"\\e160\";\n}\n.glyphicon-log-in:before {\n content: \"\\e161\";\n}\n.glyphicon-flash:before {\n content: \"\\e162\";\n}\n.glyphicon-log-out:before {\n content: \"\\e163\";\n}\n.glyphicon-new-window:before {\n content: \"\\e164\";\n}\n.glyphicon-record:before {\n content: \"\\e165\";\n}\n.glyphicon-save:before {\n content: \"\\e166\";\n}\n.glyphicon-open:before {\n content: \"\\e167\";\n}\n.glyphicon-saved:before {\n content: \"\\e168\";\n}\n.glyphicon-import:before {\n content: \"\\e169\";\n}\n.glyphicon-export:before {\n content: \"\\e170\";\n}\n.glyphicon-send:before {\n content: \"\\e171\";\n}\n.glyphicon-floppy-disk:before {\n content: \"\\e172\";\n}\n.glyphicon-floppy-saved:before {\n content: \"\\e173\";\n}\n.glyphicon-floppy-remove:before {\n content: \"\\e174\";\n}\n.glyphicon-floppy-save:before {\n content: \"\\e175\";\n}\n.glyphicon-floppy-open:before {\n content: \"\\e176\";\n}\n.glyphicon-credit-card:before {\n content: \"\\e177\";\n}\n.glyphicon-transfer:before {\n content: \"\\e178\";\n}\n.glyphicon-cutlery:before {\n content: \"\\e179\";\n}\n.glyphicon-header:before {\n content: \"\\e180\";\n}\n.glyphicon-compressed:before {\n content: \"\\e181\";\n}\n.glyphicon-earphone:before {\n content: \"\\e182\";\n}\n.glyphicon-phone-alt:before {\n content: \"\\e183\";\n}\n.glyphicon-tower:before {\n content: \"\\e184\";\n}\n.glyphicon-stats:before {\n content: \"\\e185\";\n}\n.glyphicon-sd-video:before {\n content: \"\\e186\";\n}\n.glyphicon-hd-video:before {\n content: \"\\e187\";\n}\n.glyphicon-subtitles:before {\n content: \"\\e188\";\n}\n.glyphicon-sound-stereo:before {\n content: \"\\e189\";\n}\n.glyphicon-sound-dolby:before {\n content: \"\\e190\";\n}\n.glyphicon-sound-5-1:before {\n content: \"\\e191\";\n}\n.glyphicon-sound-6-1:before {\n content: \"\\e192\";\n}\n.glyphicon-sound-7-1:before {\n content: \"\\e193\";\n}\n.glyphicon-copyright-mark:before {\n content: \"\\e194\";\n}\n.glyphicon-registration-mark:before {\n content: \"\\e195\";\n}\n.glyphicon-cloud-download:before {\n content: \"\\e197\";\n}\n.glyphicon-cloud-upload:before {\n content: \"\\e198\";\n}\n.glyphicon-tree-conifer:before {\n content: \"\\e199\";\n}\n.glyphicon-tree-deciduous:before {\n content: \"\\e200\";\n}\n.glyphicon-cd:before {\n content: \"\\e201\";\n}\n.glyphicon-save-file:before {\n content: \"\\e202\";\n}\n.glyphicon-open-file:before {\n content: \"\\e203\";\n}\n.glyphicon-level-up:before {\n content: \"\\e204\";\n}\n.glyphicon-copy:before {\n content: \"\\e205\";\n}\n.glyphicon-paste:before {\n content: \"\\e206\";\n}\n.glyphicon-alert:before {\n content: \"\\e209\";\n}\n.glyphicon-equalizer:before {\n content: \"\\e210\";\n}\n.glyphicon-king:before {\n content: \"\\e211\";\n}\n.glyphicon-queen:before {\n content: \"\\e212\";\n}\n.glyphicon-pawn:before {\n content: \"\\e213\";\n}\n.glyphicon-bishop:before {\n content: \"\\e214\";\n}\n.glyphicon-knight:before {\n content: \"\\e215\";\n}\n.glyphicon-baby-formula:before {\n content: \"\\e216\";\n}\n.glyphicon-tent:before {\n content: \"\\26fa\";\n}\n.glyphicon-blackboard:before {\n content: \"\\e218\";\n}\n.glyphicon-bed:before {\n content: \"\\e219\";\n}\n.glyphicon-apple:before {\n content: \"\\f8ff\";\n}\n.glyphicon-erase:before {\n content: \"\\e221\";\n}\n.glyphicon-hourglass:before {\n content: \"\\231b\";\n}\n.glyphicon-lamp:before {\n content: \"\\e223\";\n}\n.glyphicon-duplicate:before {\n content: \"\\e224\";\n}\n.glyphicon-piggy-bank:before {\n content: \"\\e225\";\n}\n.glyphicon-scissors:before {\n content: \"\\e226\";\n}\n.glyphicon-bitcoin:before {\n content: \"\\e227\";\n}\n.glyphicon-btc:before {\n content: \"\\e227\";\n}\n.glyphicon-xbt:before {\n content: \"\\e227\";\n}\n.glyphicon-yen:before {\n content: \"\\00a5\";\n}\n.glyphicon-jpy:before {\n content: \"\\00a5\";\n}\n.glyphicon-ruble:before {\n content: \"\\20bd\";\n}\n.glyphicon-rub:before {\n content: \"\\20bd\";\n}\n.glyphicon-scale:before {\n content: \"\\e230\";\n}\n.glyphicon-ice-lolly:before {\n content: \"\\e231\";\n}\n.glyphicon-ice-lolly-tasted:before {\n content: \"\\e232\";\n}\n.glyphicon-education:before {\n content: \"\\e233\";\n}\n.glyphicon-option-horizontal:before {\n content: \"\\e234\";\n}\n.glyphicon-option-vertical:before {\n content: \"\\e235\";\n}\n.glyphicon-menu-hamburger:before {\n content: \"\\e236\";\n}\n.glyphicon-modal-window:before {\n content: \"\\e237\";\n}\n.glyphicon-oil:before {\n content: \"\\e238\";\n}\n.glyphicon-grain:before {\n content: \"\\e239\";\n}\n.glyphicon-sunglasses:before {\n content: \"\\e240\";\n}\n.glyphicon-text-size:before {\n content: \"\\e241\";\n}\n.glyphicon-text-color:before {\n content: \"\\e242\";\n}\n.glyphicon-text-background:before {\n content: \"\\e243\";\n}\n.glyphicon-object-align-top:before {\n content: \"\\e244\";\n}\n.glyphicon-object-align-bottom:before {\n content: \"\\e245\";\n}\n.glyphicon-object-align-horizontal:before {\n content: \"\\e246\";\n}\n.glyphicon-object-align-left:before {\n content: \"\\e247\";\n}\n.glyphicon-object-align-vertical:before {\n content: \"\\e248\";\n}\n.glyphicon-object-align-right:before {\n content: \"\\e249\";\n}\n.glyphicon-triangle-right:before {\n content: \"\\e250\";\n}\n.glyphicon-triangle-left:before {\n content: \"\\e251\";\n}\n.glyphicon-triangle-bottom:before {\n content: \"\\e252\";\n}\n.glyphicon-triangle-top:before {\n content: \"\\e253\";\n}\n.glyphicon-console:before {\n content: \"\\e254\";\n}\n.glyphicon-superscript:before {\n content: \"\\e255\";\n}\n.glyphicon-subscript:before {\n content: \"\\e256\";\n}\n.glyphicon-menu-left:before {\n content: \"\\e257\";\n}\n.glyphicon-menu-right:before {\n content: \"\\e258\";\n}\n.glyphicon-menu-down:before {\n content: \"\\e259\";\n}\n.glyphicon-menu-up:before {\n content: \"\\e260\";\n}\n* {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\n*:before,\n*:after {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\nhtml {\n font-size: 10px;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\nbody {\n font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n font-size: 14px;\n line-height: 1.42857143;\n color: #333333;\n background-color: #fff;\n}\ninput,\nbutton,\nselect,\ntextarea {\n font-family: inherit;\n font-size: inherit;\n line-height: inherit;\n}\na {\n color: #337ab7;\n text-decoration: none;\n}\na:hover,\na:focus {\n color: #23527c;\n text-decoration: underline;\n}\na:focus {\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: -2px;\n}\nfigure {\n margin: 0;\n}\nimg {\n vertical-align: middle;\n}\n.img-responsive,\n.thumbnail > img,\n.thumbnail a > img,\n.carousel-inner > .item > img,\n.carousel-inner > .item > a > img {\n display: block;\n max-width: 100%;\n height: auto;\n}\n.img-rounded {\n border-radius: 6px;\n}\n.img-thumbnail {\n padding: 4px;\n line-height: 1.42857143;\n background-color: #fff;\n border: 1px solid #ddd;\n border-radius: 4px;\n -webkit-transition: all 0.2s ease-in-out;\n -o-transition: all 0.2s ease-in-out;\n transition: all 0.2s ease-in-out;\n display: inline-block;\n max-width: 100%;\n height: auto;\n}\n.img-circle {\n border-radius: 50%;\n}\nhr {\n margin-top: 20px;\n margin-bottom: 20px;\n border: 0;\n border-top: 1px solid #eeeeee;\n}\n.sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n border: 0;\n}\n.sr-only-focusable:active,\n.sr-only-focusable:focus {\n position: static;\n width: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n clip: auto;\n}\n[role=\"button\"] {\n cursor: pointer;\n}\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\n.h1,\n.h2,\n.h3,\n.h4,\n.h5,\n.h6 {\n font-family: inherit;\n font-weight: 500;\n line-height: 1.1;\n color: inherit;\n}\nh1 small,\nh2 small,\nh3 small,\nh4 small,\nh5 small,\nh6 small,\n.h1 small,\n.h2 small,\n.h3 small,\n.h4 small,\n.h5 small,\n.h6 small,\nh1 .small,\nh2 .small,\nh3 .small,\nh4 .small,\nh5 .small,\nh6 .small,\n.h1 .small,\n.h2 .small,\n.h3 .small,\n.h4 .small,\n.h5 .small,\n.h6 .small {\n font-weight: normal;\n line-height: 1;\n color: #777777;\n}\nh1,\n.h1,\nh2,\n.h2,\nh3,\n.h3 {\n margin-top: 20px;\n margin-bottom: 10px;\n}\nh1 small,\n.h1 small,\nh2 small,\n.h2 small,\nh3 small,\n.h3 small,\nh1 .small,\n.h1 .small,\nh2 .small,\n.h2 .small,\nh3 .small,\n.h3 .small {\n font-size: 65%;\n}\nh4,\n.h4,\nh5,\n.h5,\nh6,\n.h6 {\n margin-top: 10px;\n margin-bottom: 10px;\n}\nh4 small,\n.h4 small,\nh5 small,\n.h5 small,\nh6 small,\n.h6 small,\nh4 .small,\n.h4 .small,\nh5 .small,\n.h5 .small,\nh6 .small,\n.h6 .small {\n font-size: 75%;\n}\nh1,\n.h1 {\n font-size: 36px;\n}\nh2,\n.h2 {\n font-size: 30px;\n}\nh3,\n.h3 {\n font-size: 24px;\n}\nh4,\n.h4 {\n font-size: 18px;\n}\nh5,\n.h5 {\n font-size: 14px;\n}\nh6,\n.h6 {\n font-size: 12px;\n}\np {\n margin: 0 0 10px;\n}\n.lead {\n margin-bottom: 20px;\n font-size: 16px;\n font-weight: 300;\n line-height: 1.4;\n}\n@media (min-width: 768px) {\n .lead {\n font-size: 21px;\n }\n}\nsmall,\n.small {\n font-size: 85%;\n}\nmark,\n.mark {\n background-color: #fcf8e3;\n padding: .2em;\n}\n.text-left {\n text-align: left;\n}\n.text-right {\n text-align: right;\n}\n.text-center {\n text-align: center;\n}\n.text-justify {\n text-align: justify;\n}\n.text-nowrap {\n white-space: nowrap;\n}\n.text-lowercase {\n text-transform: lowercase;\n}\n.text-uppercase {\n text-transform: uppercase;\n}\n.text-capitalize {\n text-transform: capitalize;\n}\n.text-muted {\n color: #777777;\n}\n.text-primary {\n color: #337ab7;\n}\na.text-primary:hover,\na.text-primary:focus {\n color: #286090;\n}\n.text-success {\n color: #3c763d;\n}\na.text-success:hover,\na.text-success:focus {\n color: #2b542c;\n}\n.text-info {\n color: #31708f;\n}\na.text-info:hover,\na.text-info:focus {\n color: #245269;\n}\n.text-warning {\n color: #8a6d3b;\n}\na.text-warning:hover,\na.text-warning:focus {\n color: #66512c;\n}\n.text-danger {\n color: #a94442;\n}\na.text-danger:hover,\na.text-danger:focus {\n color: #843534;\n}\n.bg-primary {\n color: #fff;\n background-color: #337ab7;\n}\na.bg-primary:hover,\na.bg-primary:focus {\n background-color: #286090;\n}\n.bg-success {\n background-color: #dff0d8;\n}\na.bg-success:hover,\na.bg-success:focus {\n background-color: #c1e2b3;\n}\n.bg-info {\n background-color: #d9edf7;\n}\na.bg-info:hover,\na.bg-info:focus {\n background-color: #afd9ee;\n}\n.bg-warning {\n background-color: #fcf8e3;\n}\na.bg-warning:hover,\na.bg-warning:focus {\n background-color: #f7ecb5;\n}\n.bg-danger {\n background-color: #f2dede;\n}\na.bg-danger:hover,\na.bg-danger:focus {\n background-color: #e4b9b9;\n}\n.page-header {\n padding-bottom: 9px;\n margin: 40px 0 20px;\n border-bottom: 1px solid #eeeeee;\n}\nul,\nol {\n margin-top: 0;\n margin-bottom: 10px;\n}\nul ul,\nol ul,\nul ol,\nol ol {\n margin-bottom: 0;\n}\n.list-unstyled {\n padding-left: 0;\n list-style: none;\n}\n.list-inline {\n padding-left: 0;\n list-style: none;\n margin-left: -5px;\n}\n.list-inline > li {\n display: inline-block;\n padding-left: 5px;\n padding-right: 5px;\n}\ndl {\n margin-top: 0;\n margin-bottom: 20px;\n}\ndt,\ndd {\n line-height: 1.42857143;\n}\ndt {\n font-weight: bold;\n}\ndd {\n margin-left: 0;\n}\n@media (min-width: 768px) {\n .dl-horizontal dt {\n float: left;\n width: 160px;\n clear: left;\n text-align: right;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .dl-horizontal dd {\n margin-left: 180px;\n }\n}\nabbr[title],\nabbr[data-original-title] {\n cursor: help;\n border-bottom: 1px dotted #777777;\n}\n.initialism {\n font-size: 90%;\n text-transform: uppercase;\n}\nblockquote {\n padding: 10px 20px;\n margin: 0 0 20px;\n font-size: 17.5px;\n border-left: 5px solid #eeeeee;\n}\nblockquote p:last-child,\nblockquote ul:last-child,\nblockquote ol:last-child {\n margin-bottom: 0;\n}\nblockquote footer,\nblockquote small,\nblockquote .small {\n display: block;\n font-size: 80%;\n line-height: 1.42857143;\n color: #777777;\n}\nblockquote footer:before,\nblockquote small:before,\nblockquote .small:before {\n content: '\\2014 \\00A0';\n}\n.blockquote-reverse,\nblockquote.pull-right {\n padding-right: 15px;\n padding-left: 0;\n border-right: 5px solid #eeeeee;\n border-left: 0;\n text-align: right;\n}\n.blockquote-reverse footer:before,\nblockquote.pull-right footer:before,\n.blockquote-reverse small:before,\nblockquote.pull-right small:before,\n.blockquote-reverse .small:before,\nblockquote.pull-right .small:before {\n content: '';\n}\n.blockquote-reverse footer:after,\nblockquote.pull-right footer:after,\n.blockquote-reverse small:after,\nblockquote.pull-right small:after,\n.blockquote-reverse .small:after,\nblockquote.pull-right .small:after {\n content: '\\00A0 \\2014';\n}\naddress {\n margin-bottom: 20px;\n font-style: normal;\n line-height: 1.42857143;\n}\ncode,\nkbd,\npre,\nsamp {\n font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace;\n}\ncode {\n padding: 2px 4px;\n font-size: 90%;\n color: #c7254e;\n background-color: #f9f2f4;\n border-radius: 4px;\n}\nkbd {\n padding: 2px 4px;\n font-size: 90%;\n color: #fff;\n background-color: #333;\n border-radius: 3px;\n box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25);\n}\nkbd kbd {\n padding: 0;\n font-size: 100%;\n font-weight: bold;\n box-shadow: none;\n}\npre {\n display: block;\n padding: 9.5px;\n margin: 0 0 10px;\n font-size: 13px;\n line-height: 1.42857143;\n word-break: break-all;\n word-wrap: break-word;\n color: #333333;\n background-color: #f5f5f5;\n border: 1px solid #ccc;\n border-radius: 4px;\n}\npre code {\n padding: 0;\n font-size: inherit;\n color: inherit;\n white-space: pre-wrap;\n background-color: transparent;\n border-radius: 0;\n}\n.pre-scrollable {\n max-height: 340px;\n overflow-y: scroll;\n}\n.container {\n margin-right: auto;\n margin-left: auto;\n padding-left: 15px;\n padding-right: 15px;\n}\n@media (min-width: 768px) {\n .container {\n width: 750px;\n }\n}\n@media (min-width: 992px) {\n .container {\n width: 970px;\n }\n}\n@media (min-width: 1200px) {\n .container {\n width: 1170px;\n }\n}\n.container-fluid {\n margin-right: auto;\n margin-left: auto;\n padding-left: 15px;\n padding-right: 15px;\n}\n.row {\n margin-left: -15px;\n margin-right: -15px;\n}\n.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {\n position: relative;\n min-height: 1px;\n padding-left: 15px;\n padding-right: 15px;\n}\n.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 {\n float: left;\n}\n.col-xs-12 {\n width: 100%;\n}\n.col-xs-11 {\n width: 91.66666667%;\n}\n.col-xs-10 {\n width: 83.33333333%;\n}\n.col-xs-9 {\n width: 75%;\n}\n.col-xs-8 {\n width: 66.66666667%;\n}\n.col-xs-7 {\n width: 58.33333333%;\n}\n.col-xs-6 {\n width: 50%;\n}\n.col-xs-5 {\n width: 41.66666667%;\n}\n.col-xs-4 {\n width: 33.33333333%;\n}\n.col-xs-3 {\n width: 25%;\n}\n.col-xs-2 {\n width: 16.66666667%;\n}\n.col-xs-1 {\n width: 8.33333333%;\n}\n.col-xs-pull-12 {\n right: 100%;\n}\n.col-xs-pull-11 {\n right: 91.66666667%;\n}\n.col-xs-pull-10 {\n right: 83.33333333%;\n}\n.col-xs-pull-9 {\n right: 75%;\n}\n.col-xs-pull-8 {\n right: 66.66666667%;\n}\n.col-xs-pull-7 {\n right: 58.33333333%;\n}\n.col-xs-pull-6 {\n right: 50%;\n}\n.col-xs-pull-5 {\n right: 41.66666667%;\n}\n.col-xs-pull-4 {\n right: 33.33333333%;\n}\n.col-xs-pull-3 {\n right: 25%;\n}\n.col-xs-pull-2 {\n right: 16.66666667%;\n}\n.col-xs-pull-1 {\n right: 8.33333333%;\n}\n.col-xs-pull-0 {\n right: auto;\n}\n.col-xs-push-12 {\n left: 100%;\n}\n.col-xs-push-11 {\n left: 91.66666667%;\n}\n.col-xs-push-10 {\n left: 83.33333333%;\n}\n.col-xs-push-9 {\n left: 75%;\n}\n.col-xs-push-8 {\n left: 66.66666667%;\n}\n.col-xs-push-7 {\n left: 58.33333333%;\n}\n.col-xs-push-6 {\n left: 50%;\n}\n.col-xs-push-5 {\n left: 41.66666667%;\n}\n.col-xs-push-4 {\n left: 33.33333333%;\n}\n.col-xs-push-3 {\n left: 25%;\n}\n.col-xs-push-2 {\n left: 16.66666667%;\n}\n.col-xs-push-1 {\n left: 8.33333333%;\n}\n.col-xs-push-0 {\n left: auto;\n}\n.col-xs-offset-12 {\n margin-left: 100%;\n}\n.col-xs-offset-11 {\n margin-left: 91.66666667%;\n}\n.col-xs-offset-10 {\n margin-left: 83.33333333%;\n}\n.col-xs-offset-9 {\n margin-left: 75%;\n}\n.col-xs-offset-8 {\n margin-left: 66.66666667%;\n}\n.col-xs-offset-7 {\n margin-left: 58.33333333%;\n}\n.col-xs-offset-6 {\n margin-left: 50%;\n}\n.col-xs-offset-5 {\n margin-left: 41.66666667%;\n}\n.col-xs-offset-4 {\n margin-left: 33.33333333%;\n}\n.col-xs-offset-3 {\n margin-left: 25%;\n}\n.col-xs-offset-2 {\n margin-left: 16.66666667%;\n}\n.col-xs-offset-1 {\n margin-left: 8.33333333%;\n}\n.col-xs-offset-0 {\n margin-left: 0%;\n}\n@media (min-width: 768px) {\n .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {\n float: left;\n }\n .col-sm-12 {\n width: 100%;\n }\n .col-sm-11 {\n width: 91.66666667%;\n }\n .col-sm-10 {\n width: 83.33333333%;\n }\n .col-sm-9 {\n width: 75%;\n }\n .col-sm-8 {\n width: 66.66666667%;\n }\n .col-sm-7 {\n width: 58.33333333%;\n }\n .col-sm-6 {\n width: 50%;\n }\n .col-sm-5 {\n width: 41.66666667%;\n }\n .col-sm-4 {\n width: 33.33333333%;\n }\n .col-sm-3 {\n width: 25%;\n }\n .col-sm-2 {\n width: 16.66666667%;\n }\n .col-sm-1 {\n width: 8.33333333%;\n }\n .col-sm-pull-12 {\n right: 100%;\n }\n .col-sm-pull-11 {\n right: 91.66666667%;\n }\n .col-sm-pull-10 {\n right: 83.33333333%;\n }\n .col-sm-pull-9 {\n right: 75%;\n }\n .col-sm-pull-8 {\n right: 66.66666667%;\n }\n .col-sm-pull-7 {\n right: 58.33333333%;\n }\n .col-sm-pull-6 {\n right: 50%;\n }\n .col-sm-pull-5 {\n right: 41.66666667%;\n }\n .col-sm-pull-4 {\n right: 33.33333333%;\n }\n .col-sm-pull-3 {\n right: 25%;\n }\n .col-sm-pull-2 {\n right: 16.66666667%;\n }\n .col-sm-pull-1 {\n right: 8.33333333%;\n }\n .col-sm-pull-0 {\n right: auto;\n }\n .col-sm-push-12 {\n left: 100%;\n }\n .col-sm-push-11 {\n left: 91.66666667%;\n }\n .col-sm-push-10 {\n left: 83.33333333%;\n }\n .col-sm-push-9 {\n left: 75%;\n }\n .col-sm-push-8 {\n left: 66.66666667%;\n }\n .col-sm-push-7 {\n left: 58.33333333%;\n }\n .col-sm-push-6 {\n left: 50%;\n }\n .col-sm-push-5 {\n left: 41.66666667%;\n }\n .col-sm-push-4 {\n left: 33.33333333%;\n }\n .col-sm-push-3 {\n left: 25%;\n }\n .col-sm-push-2 {\n left: 16.66666667%;\n }\n .col-sm-push-1 {\n left: 8.33333333%;\n }\n .col-sm-push-0 {\n left: auto;\n }\n .col-sm-offset-12 {\n margin-left: 100%;\n }\n .col-sm-offset-11 {\n margin-left: 91.66666667%;\n }\n .col-sm-offset-10 {\n margin-left: 83.33333333%;\n }\n .col-sm-offset-9 {\n margin-left: 75%;\n }\n .col-sm-offset-8 {\n margin-left: 66.66666667%;\n }\n .col-sm-offset-7 {\n margin-left: 58.33333333%;\n }\n .col-sm-offset-6 {\n margin-left: 50%;\n }\n .col-sm-offset-5 {\n margin-left: 41.66666667%;\n }\n .col-sm-offset-4 {\n margin-left: 33.33333333%;\n }\n .col-sm-offset-3 {\n margin-left: 25%;\n }\n .col-sm-offset-2 {\n margin-left: 16.66666667%;\n }\n .col-sm-offset-1 {\n margin-left: 8.33333333%;\n }\n .col-sm-offset-0 {\n margin-left: 0%;\n }\n}\n@media (min-width: 992px) {\n .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {\n float: left;\n }\n .col-md-12 {\n width: 100%;\n }\n .col-md-11 {\n width: 91.66666667%;\n }\n .col-md-10 {\n width: 83.33333333%;\n }\n .col-md-9 {\n width: 75%;\n }\n .col-md-8 {\n width: 66.66666667%;\n }\n .col-md-7 {\n width: 58.33333333%;\n }\n .col-md-6 {\n width: 50%;\n }\n .col-md-5 {\n width: 41.66666667%;\n }\n .col-md-4 {\n width: 33.33333333%;\n }\n .col-md-3 {\n width: 25%;\n }\n .col-md-2 {\n width: 16.66666667%;\n }\n .col-md-1 {\n width: 8.33333333%;\n }\n .col-md-pull-12 {\n right: 100%;\n }\n .col-md-pull-11 {\n right: 91.66666667%;\n }\n .col-md-pull-10 {\n right: 83.33333333%;\n }\n .col-md-pull-9 {\n right: 75%;\n }\n .col-md-pull-8 {\n right: 66.66666667%;\n }\n .col-md-pull-7 {\n right: 58.33333333%;\n }\n .col-md-pull-6 {\n right: 50%;\n }\n .col-md-pull-5 {\n right: 41.66666667%;\n }\n .col-md-pull-4 {\n right: 33.33333333%;\n }\n .col-md-pull-3 {\n right: 25%;\n }\n .col-md-pull-2 {\n right: 16.66666667%;\n }\n .col-md-pull-1 {\n right: 8.33333333%;\n }\n .col-md-pull-0 {\n right: auto;\n }\n .col-md-push-12 {\n left: 100%;\n }\n .col-md-push-11 {\n left: 91.66666667%;\n }\n .col-md-push-10 {\n left: 83.33333333%;\n }\n .col-md-push-9 {\n left: 75%;\n }\n .col-md-push-8 {\n left: 66.66666667%;\n }\n .col-md-push-7 {\n left: 58.33333333%;\n }\n .col-md-push-6 {\n left: 50%;\n }\n .col-md-push-5 {\n left: 41.66666667%;\n }\n .col-md-push-4 {\n left: 33.33333333%;\n }\n .col-md-push-3 {\n left: 25%;\n }\n .col-md-push-2 {\n left: 16.66666667%;\n }\n .col-md-push-1 {\n left: 8.33333333%;\n }\n .col-md-push-0 {\n left: auto;\n }\n .col-md-offset-12 {\n margin-left: 100%;\n }\n .col-md-offset-11 {\n margin-left: 91.66666667%;\n }\n .col-md-offset-10 {\n margin-left: 83.33333333%;\n }\n .col-md-offset-9 {\n margin-left: 75%;\n }\n .col-md-offset-8 {\n margin-left: 66.66666667%;\n }\n .col-md-offset-7 {\n margin-left: 58.33333333%;\n }\n .col-md-offset-6 {\n margin-left: 50%;\n }\n .col-md-offset-5 {\n margin-left: 41.66666667%;\n }\n .col-md-offset-4 {\n margin-left: 33.33333333%;\n }\n .col-md-offset-3 {\n margin-left: 25%;\n }\n .col-md-offset-2 {\n margin-left: 16.66666667%;\n }\n .col-md-offset-1 {\n margin-left: 8.33333333%;\n }\n .col-md-offset-0 {\n margin-left: 0%;\n }\n}\n@media (min-width: 1200px) {\n .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {\n float: left;\n }\n .col-lg-12 {\n width: 100%;\n }\n .col-lg-11 {\n width: 91.66666667%;\n }\n .col-lg-10 {\n width: 83.33333333%;\n }\n .col-lg-9 {\n width: 75%;\n }\n .col-lg-8 {\n width: 66.66666667%;\n }\n .col-lg-7 {\n width: 58.33333333%;\n }\n .col-lg-6 {\n width: 50%;\n }\n .col-lg-5 {\n width: 41.66666667%;\n }\n .col-lg-4 {\n width: 33.33333333%;\n }\n .col-lg-3 {\n width: 25%;\n }\n .col-lg-2 {\n width: 16.66666667%;\n }\n .col-lg-1 {\n width: 8.33333333%;\n }\n .col-lg-pull-12 {\n right: 100%;\n }\n .col-lg-pull-11 {\n right: 91.66666667%;\n }\n .col-lg-pull-10 {\n right: 83.33333333%;\n }\n .col-lg-pull-9 {\n right: 75%;\n }\n .col-lg-pull-8 {\n right: 66.66666667%;\n }\n .col-lg-pull-7 {\n right: 58.33333333%;\n }\n .col-lg-pull-6 {\n right: 50%;\n }\n .col-lg-pull-5 {\n right: 41.66666667%;\n }\n .col-lg-pull-4 {\n right: 33.33333333%;\n }\n .col-lg-pull-3 {\n right: 25%;\n }\n .col-lg-pull-2 {\n right: 16.66666667%;\n }\n .col-lg-pull-1 {\n right: 8.33333333%;\n }\n .col-lg-pull-0 {\n right: auto;\n }\n .col-lg-push-12 {\n left: 100%;\n }\n .col-lg-push-11 {\n left: 91.66666667%;\n }\n .col-lg-push-10 {\n left: 83.33333333%;\n }\n .col-lg-push-9 {\n left: 75%;\n }\n .col-lg-push-8 {\n left: 66.66666667%;\n }\n .col-lg-push-7 {\n left: 58.33333333%;\n }\n .col-lg-push-6 {\n left: 50%;\n }\n .col-lg-push-5 {\n left: 41.66666667%;\n }\n .col-lg-push-4 {\n left: 33.33333333%;\n }\n .col-lg-push-3 {\n left: 25%;\n }\n .col-lg-push-2 {\n left: 16.66666667%;\n }\n .col-lg-push-1 {\n left: 8.33333333%;\n }\n .col-lg-push-0 {\n left: auto;\n }\n .col-lg-offset-12 {\n margin-left: 100%;\n }\n .col-lg-offset-11 {\n margin-left: 91.66666667%;\n }\n .col-lg-offset-10 {\n margin-left: 83.33333333%;\n }\n .col-lg-offset-9 {\n margin-left: 75%;\n }\n .col-lg-offset-8 {\n margin-left: 66.66666667%;\n }\n .col-lg-offset-7 {\n margin-left: 58.33333333%;\n }\n .col-lg-offset-6 {\n margin-left: 50%;\n }\n .col-lg-offset-5 {\n margin-left: 41.66666667%;\n }\n .col-lg-offset-4 {\n margin-left: 33.33333333%;\n }\n .col-lg-offset-3 {\n margin-left: 25%;\n }\n .col-lg-offset-2 {\n margin-left: 16.66666667%;\n }\n .col-lg-offset-1 {\n margin-left: 8.33333333%;\n }\n .col-lg-offset-0 {\n margin-left: 0%;\n }\n}\ntable {\n background-color: transparent;\n}\ncaption {\n padding-top: 8px;\n padding-bottom: 8px;\n color: #777777;\n text-align: left;\n}\nth {\n text-align: left;\n}\n.table {\n width: 100%;\n max-width: 100%;\n margin-bottom: 20px;\n}\n.table > thead > tr > th,\n.table > tbody > tr > th,\n.table > tfoot > tr > th,\n.table > thead > tr > td,\n.table > tbody > tr > td,\n.table > tfoot > tr > td {\n padding: 8px;\n line-height: 1.42857143;\n vertical-align: top;\n border-top: 1px solid #ddd;\n}\n.table > thead > tr > th {\n vertical-align: bottom;\n border-bottom: 2px solid #ddd;\n}\n.table > caption + thead > tr:first-child > th,\n.table > colgroup + thead > tr:first-child > th,\n.table > thead:first-child > tr:first-child > th,\n.table > caption + thead > tr:first-child > td,\n.table > colgroup + thead > tr:first-child > td,\n.table > thead:first-child > tr:first-child > td {\n border-top: 0;\n}\n.table > tbody + tbody {\n border-top: 2px solid #ddd;\n}\n.table .table {\n background-color: #fff;\n}\n.table-condensed > thead > tr > th,\n.table-condensed > tbody > tr > th,\n.table-condensed > tfoot > tr > th,\n.table-condensed > thead > tr > td,\n.table-condensed > tbody > tr > td,\n.table-condensed > tfoot > tr > td {\n padding: 5px;\n}\n.table-bordered {\n border: 1px solid #ddd;\n}\n.table-bordered > thead > tr > th,\n.table-bordered > tbody > tr > th,\n.table-bordered > tfoot > tr > th,\n.table-bordered > thead > tr > td,\n.table-bordered > tbody > tr > td,\n.table-bordered > tfoot > tr > td {\n border: 1px solid #ddd;\n}\n.table-bordered > thead > tr > th,\n.table-bordered > thead > tr > td {\n border-bottom-width: 2px;\n}\n.table-striped > tbody > tr:nth-of-type(odd) {\n background-color: #f9f9f9;\n}\n.table-hover > tbody > tr:hover {\n background-color: #f5f5f5;\n}\ntable col[class*=\"col-\"] {\n position: static;\n float: none;\n display: table-column;\n}\ntable td[class*=\"col-\"],\ntable th[class*=\"col-\"] {\n position: static;\n float: none;\n display: table-cell;\n}\n.table > thead > tr > td.active,\n.table > tbody > tr > td.active,\n.table > tfoot > tr > td.active,\n.table > thead > tr > th.active,\n.table > tbody > tr > th.active,\n.table > tfoot > tr > th.active,\n.table > thead > tr.active > td,\n.table > tbody > tr.active > td,\n.table > tfoot > tr.active > td,\n.table > thead > tr.active > th,\n.table > tbody > tr.active > th,\n.table > tfoot > tr.active > th {\n background-color: #f5f5f5;\n}\n.table-hover > tbody > tr > td.active:hover,\n.table-hover > tbody > tr > th.active:hover,\n.table-hover > tbody > tr.active:hover > td,\n.table-hover > tbody > tr:hover > .active,\n.table-hover > tbody > tr.active:hover > th {\n background-color: #e8e8e8;\n}\n.table > thead > tr > td.success,\n.table > tbody > tr > td.success,\n.table > tfoot > tr > td.success,\n.table > thead > tr > th.success,\n.table > tbody > tr > th.success,\n.table > tfoot > tr > th.success,\n.table > thead > tr.success > td,\n.table > tbody > tr.success > td,\n.table > tfoot > tr.success > td,\n.table > thead > tr.success > th,\n.table > tbody > tr.success > th,\n.table > tfoot > tr.success > th {\n background-color: #dff0d8;\n}\n.table-hover > tbody > tr > td.success:hover,\n.table-hover > tbody > tr > th.success:hover,\n.table-hover > tbody > tr.success:hover > td,\n.table-hover > tbody > tr:hover > .success,\n.table-hover > tbody > tr.success:hover > th {\n background-color: #d0e9c6;\n}\n.table > thead > tr > td.info,\n.table > tbody > tr > td.info,\n.table > tfoot > tr > td.info,\n.table > thead > tr > th.info,\n.table > tbody > tr > th.info,\n.table > tfoot > tr > th.info,\n.table > thead > tr.info > td,\n.table > tbody > tr.info > td,\n.table > tfoot > tr.info > td,\n.table > thead > tr.info > th,\n.table > tbody > tr.info > th,\n.table > tfoot > tr.info > th {\n background-color: #d9edf7;\n}\n.table-hover > tbody > tr > td.info:hover,\n.table-hover > tbody > tr > th.info:hover,\n.table-hover > tbody > tr.info:hover > td,\n.table-hover > tbody > tr:hover > .info,\n.table-hover > tbody > tr.info:hover > th {\n background-color: #c4e3f3;\n}\n.table > thead > tr > td.warning,\n.table > tbody > tr > td.warning,\n.table > tfoot > tr > td.warning,\n.table > thead > tr > th.warning,\n.table > tbody > tr > th.warning,\n.table > tfoot > tr > th.warning,\n.table > thead > tr.warning > td,\n.table > tbody > tr.warning > td,\n.table > tfoot > tr.warning > td,\n.table > thead > tr.warning > th,\n.table > tbody > tr.warning > th,\n.table > tfoot > tr.warning > th {\n background-color: #fcf8e3;\n}\n.table-hover > tbody > tr > td.warning:hover,\n.table-hover > tbody > tr > th.warning:hover,\n.table-hover > tbody > tr.warning:hover > td,\n.table-hover > tbody > tr:hover > .warning,\n.table-hover > tbody > tr.warning:hover > th {\n background-color: #faf2cc;\n}\n.table > thead > tr > td.danger,\n.table > tbody > tr > td.danger,\n.table > tfoot > tr > td.danger,\n.table > thead > tr > th.danger,\n.table > tbody > tr > th.danger,\n.table > tfoot > tr > th.danger,\n.table > thead > tr.danger > td,\n.table > tbody > tr.danger > td,\n.table > tfoot > tr.danger > td,\n.table > thead > tr.danger > th,\n.table > tbody > tr.danger > th,\n.table > tfoot > tr.danger > th {\n background-color: #f2dede;\n}\n.table-hover > tbody > tr > td.danger:hover,\n.table-hover > tbody > tr > th.danger:hover,\n.table-hover > tbody > tr.danger:hover > td,\n.table-hover > tbody > tr:hover > .danger,\n.table-hover > tbody > tr.danger:hover > th {\n background-color: #ebcccc;\n}\n.table-responsive {\n overflow-x: auto;\n min-height: 0.01%;\n}\n@media screen and (max-width: 767px) {\n .table-responsive {\n width: 100%;\n margin-bottom: 15px;\n overflow-y: hidden;\n -ms-overflow-style: -ms-autohiding-scrollbar;\n border: 1px solid #ddd;\n }\n .table-responsive > .table {\n margin-bottom: 0;\n }\n .table-responsive > .table > thead > tr > th,\n .table-responsive > .table > tbody > tr > th,\n .table-responsive > .table > tfoot > tr > th,\n .table-responsive > .table > thead > tr > td,\n .table-responsive > .table > tbody > tr > td,\n .table-responsive > .table > tfoot > tr > td {\n white-space: nowrap;\n }\n .table-responsive > .table-bordered {\n border: 0;\n }\n .table-responsive > .table-bordered > thead > tr > th:first-child,\n .table-responsive > .table-bordered > tbody > tr > th:first-child,\n .table-responsive > .table-bordered > tfoot > tr > th:first-child,\n .table-responsive > .table-bordered > thead > tr > td:first-child,\n .table-responsive > .table-bordered > tbody > tr > td:first-child,\n .table-responsive > .table-bordered > tfoot > tr > td:first-child {\n border-left: 0;\n }\n .table-responsive > .table-bordered > thead > tr > th:last-child,\n .table-responsive > .table-bordered > tbody > tr > th:last-child,\n .table-responsive > .table-bordered > tfoot > tr > th:last-child,\n .table-responsive > .table-bordered > thead > tr > td:last-child,\n .table-responsive > .table-bordered > tbody > tr > td:last-child,\n .table-responsive > .table-bordered > tfoot > tr > td:last-child {\n border-right: 0;\n }\n .table-responsive > .table-bordered > tbody > tr:last-child > th,\n .table-responsive > .table-bordered > tfoot > tr:last-child > th,\n .table-responsive > .table-bordered > tbody > tr:last-child > td,\n .table-responsive > .table-bordered > tfoot > tr:last-child > td {\n border-bottom: 0;\n }\n}\nfieldset {\n padding: 0;\n margin: 0;\n border: 0;\n min-width: 0;\n}\nlegend {\n display: block;\n width: 100%;\n padding: 0;\n margin-bottom: 20px;\n font-size: 21px;\n line-height: inherit;\n color: #333333;\n border: 0;\n border-bottom: 1px solid #e5e5e5;\n}\nlabel {\n display: inline-block;\n max-width: 100%;\n margin-bottom: 5px;\n font-weight: bold;\n}\ninput[type=\"search\"] {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\ninput[type=\"radio\"],\ninput[type=\"checkbox\"] {\n margin: 4px 0 0;\n margin-top: 1px \\9;\n line-height: normal;\n}\ninput[type=\"file\"] {\n display: block;\n}\ninput[type=\"range\"] {\n display: block;\n width: 100%;\n}\nselect[multiple],\nselect[size] {\n height: auto;\n}\ninput[type=\"file\"]:focus,\ninput[type=\"radio\"]:focus,\ninput[type=\"checkbox\"]:focus {\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: -2px;\n}\noutput {\n display: block;\n padding-top: 7px;\n font-size: 14px;\n line-height: 1.42857143;\n color: #555555;\n}\n.form-control {\n display: block;\n width: 100%;\n height: 34px;\n padding: 6px 12px;\n font-size: 14px;\n line-height: 1.42857143;\n color: #555555;\n background-color: #fff;\n background-image: none;\n border: 1px solid #ccc;\n border-radius: 4px;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;\n -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;\n transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;\n}\n.form-control:focus {\n border-color: #66afe9;\n outline: 0;\n -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);\n box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);\n}\n.form-control::-moz-placeholder {\n color: #999;\n opacity: 1;\n}\n.form-control:-ms-input-placeholder {\n color: #999;\n}\n.form-control::-webkit-input-placeholder {\n color: #999;\n}\n.form-control::-ms-expand {\n border: 0;\n background-color: transparent;\n}\n.form-control[disabled],\n.form-control[readonly],\nfieldset[disabled] .form-control {\n background-color: #eeeeee;\n opacity: 1;\n}\n.form-control[disabled],\nfieldset[disabled] .form-control {\n cursor: not-allowed;\n}\ntextarea.form-control {\n height: auto;\n}\ninput[type=\"search\"] {\n -webkit-appearance: none;\n}\n@media screen and (-webkit-min-device-pixel-ratio: 0) {\n input[type=\"date\"].form-control,\n input[type=\"time\"].form-control,\n input[type=\"datetime-local\"].form-control,\n input[type=\"month\"].form-control {\n line-height: 34px;\n }\n input[type=\"date\"].input-sm,\n input[type=\"time\"].input-sm,\n input[type=\"datetime-local\"].input-sm,\n input[type=\"month\"].input-sm,\n .input-group-sm input[type=\"date\"],\n .input-group-sm input[type=\"time\"],\n .input-group-sm input[type=\"datetime-local\"],\n .input-group-sm input[type=\"month\"] {\n line-height: 30px;\n }\n input[type=\"date\"].input-lg,\n input[type=\"time\"].input-lg,\n input[type=\"datetime-local\"].input-lg,\n input[type=\"month\"].input-lg,\n .input-group-lg input[type=\"date\"],\n .input-group-lg input[type=\"time\"],\n .input-group-lg input[type=\"datetime-local\"],\n .input-group-lg input[type=\"month\"] {\n line-height: 46px;\n }\n}\n.form-group {\n margin-bottom: 15px;\n}\n.radio,\n.checkbox {\n position: relative;\n display: block;\n margin-top: 10px;\n margin-bottom: 10px;\n}\n.radio label,\n.checkbox label {\n min-height: 20px;\n padding-left: 20px;\n margin-bottom: 0;\n font-weight: normal;\n cursor: pointer;\n}\n.radio input[type=\"radio\"],\n.radio-inline input[type=\"radio\"],\n.checkbox input[type=\"checkbox\"],\n.checkbox-inline input[type=\"checkbox\"] {\n position: absolute;\n margin-left: -20px;\n margin-top: 4px \\9;\n}\n.radio + .radio,\n.checkbox + .checkbox {\n margin-top: -5px;\n}\n.radio-inline,\n.checkbox-inline {\n position: relative;\n display: inline-block;\n padding-left: 20px;\n margin-bottom: 0;\n vertical-align: middle;\n font-weight: normal;\n cursor: pointer;\n}\n.radio-inline + .radio-inline,\n.checkbox-inline + .checkbox-inline {\n margin-top: 0;\n margin-left: 10px;\n}\ninput[type=\"radio\"][disabled],\ninput[type=\"checkbox\"][disabled],\ninput[type=\"radio\"].disabled,\ninput[type=\"checkbox\"].disabled,\nfieldset[disabled] input[type=\"radio\"],\nfieldset[disabled] input[type=\"checkbox\"] {\n cursor: not-allowed;\n}\n.radio-inline.disabled,\n.checkbox-inline.disabled,\nfieldset[disabled] .radio-inline,\nfieldset[disabled] .checkbox-inline {\n cursor: not-allowed;\n}\n.radio.disabled label,\n.checkbox.disabled label,\nfieldset[disabled] .radio label,\nfieldset[disabled] .checkbox label {\n cursor: not-allowed;\n}\n.form-control-static {\n padding-top: 7px;\n padding-bottom: 7px;\n margin-bottom: 0;\n min-height: 34px;\n}\n.form-control-static.input-lg,\n.form-control-static.input-sm {\n padding-left: 0;\n padding-right: 0;\n}\n.input-sm {\n height: 30px;\n padding: 5px 10px;\n font-size: 12px;\n line-height: 1.5;\n border-radius: 3px;\n}\nselect.input-sm {\n height: 30px;\n line-height: 30px;\n}\ntextarea.input-sm,\nselect[multiple].input-sm {\n height: auto;\n}\n.form-group-sm .form-control {\n height: 30px;\n padding: 5px 10px;\n font-size: 12px;\n line-height: 1.5;\n border-radius: 3px;\n}\n.form-group-sm select.form-control {\n height: 30px;\n line-height: 30px;\n}\n.form-group-sm textarea.form-control,\n.form-group-sm select[multiple].form-control {\n height: auto;\n}\n.form-group-sm .form-control-static {\n height: 30px;\n min-height: 32px;\n padding: 6px 10px;\n font-size: 12px;\n line-height: 1.5;\n}\n.input-lg {\n height: 46px;\n padding: 10px 16px;\n font-size: 18px;\n line-height: 1.3333333;\n border-radius: 6px;\n}\nselect.input-lg {\n height: 46px;\n line-height: 46px;\n}\ntextarea.input-lg,\nselect[multiple].input-lg {\n height: auto;\n}\n.form-group-lg .form-control {\n height: 46px;\n padding: 10px 16px;\n font-size: 18px;\n line-height: 1.3333333;\n border-radius: 6px;\n}\n.form-group-lg select.form-control {\n height: 46px;\n line-height: 46px;\n}\n.form-group-lg textarea.form-control,\n.form-group-lg select[multiple].form-control {\n height: auto;\n}\n.form-group-lg .form-control-static {\n height: 46px;\n min-height: 38px;\n padding: 11px 16px;\n font-size: 18px;\n line-height: 1.3333333;\n}\n.has-feedback {\n position: relative;\n}\n.has-feedback .form-control {\n padding-right: 42.5px;\n}\n.form-control-feedback {\n position: absolute;\n top: 0;\n right: 0;\n z-index: 2;\n display: block;\n width: 34px;\n height: 34px;\n line-height: 34px;\n text-align: center;\n pointer-events: none;\n}\n.input-lg + .form-control-feedback,\n.input-group-lg + .form-control-feedback,\n.form-group-lg .form-control + .form-control-feedback {\n width: 46px;\n height: 46px;\n line-height: 46px;\n}\n.input-sm + .form-control-feedback,\n.input-group-sm + .form-control-feedback,\n.form-group-sm .form-control + .form-control-feedback {\n width: 30px;\n height: 30px;\n line-height: 30px;\n}\n.has-success .help-block,\n.has-success .control-label,\n.has-success .radio,\n.has-success .checkbox,\n.has-success .radio-inline,\n.has-success .checkbox-inline,\n.has-success.radio label,\n.has-success.checkbox label,\n.has-success.radio-inline label,\n.has-success.checkbox-inline label {\n color: #3c763d;\n}\n.has-success .form-control {\n border-color: #3c763d;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n}\n.has-success .form-control:focus {\n border-color: #2b542c;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168;\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168;\n}\n.has-success .input-group-addon {\n color: #3c763d;\n border-color: #3c763d;\n background-color: #dff0d8;\n}\n.has-success .form-control-feedback {\n color: #3c763d;\n}\n.has-warning .help-block,\n.has-warning .control-label,\n.has-warning .radio,\n.has-warning .checkbox,\n.has-warning .radio-inline,\n.has-warning .checkbox-inline,\n.has-warning.radio label,\n.has-warning.checkbox label,\n.has-warning.radio-inline label,\n.has-warning.checkbox-inline label {\n color: #8a6d3b;\n}\n.has-warning .form-control {\n border-color: #8a6d3b;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n}\n.has-warning .form-control:focus {\n border-color: #66512c;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b;\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b;\n}\n.has-warning .input-group-addon {\n color: #8a6d3b;\n border-color: #8a6d3b;\n background-color: #fcf8e3;\n}\n.has-warning .form-control-feedback {\n color: #8a6d3b;\n}\n.has-error .help-block,\n.has-error .control-label,\n.has-error .radio,\n.has-error .checkbox,\n.has-error .radio-inline,\n.has-error .checkbox-inline,\n.has-error.radio label,\n.has-error.checkbox label,\n.has-error.radio-inline label,\n.has-error.checkbox-inline label {\n color: #a94442;\n}\n.has-error .form-control {\n border-color: #a94442;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n}\n.has-error .form-control:focus {\n border-color: #843534;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;\n}\n.has-error .input-group-addon {\n color: #a94442;\n border-color: #a94442;\n background-color: #f2dede;\n}\n.has-error .form-control-feedback {\n color: #a94442;\n}\n.has-feedback label ~ .form-control-feedback {\n top: 25px;\n}\n.has-feedback label.sr-only ~ .form-control-feedback {\n top: 0;\n}\n.help-block {\n display: block;\n margin-top: 5px;\n margin-bottom: 10px;\n color: #737373;\n}\n@media (min-width: 768px) {\n .form-inline .form-group {\n display: inline-block;\n margin-bottom: 0;\n vertical-align: middle;\n }\n .form-inline .form-control {\n display: inline-block;\n width: auto;\n vertical-align: middle;\n }\n .form-inline .form-control-static {\n display: inline-block;\n }\n .form-inline .input-group {\n display: inline-table;\n vertical-align: middle;\n }\n .form-inline .input-group .input-group-addon,\n .form-inline .input-group .input-group-btn,\n .form-inline .input-group .form-control {\n width: auto;\n }\n .form-inline .input-group > .form-control {\n width: 100%;\n }\n .form-inline .control-label {\n margin-bottom: 0;\n vertical-align: middle;\n }\n .form-inline .radio,\n .form-inline .checkbox {\n display: inline-block;\n margin-top: 0;\n margin-bottom: 0;\n vertical-align: middle;\n }\n .form-inline .radio label,\n .form-inline .checkbox label {\n padding-left: 0;\n }\n .form-inline .radio input[type=\"radio\"],\n .form-inline .checkbox input[type=\"checkbox\"] {\n position: relative;\n margin-left: 0;\n }\n .form-inline .has-feedback .form-control-feedback {\n top: 0;\n }\n}\n.form-horizontal .radio,\n.form-horizontal .checkbox,\n.form-horizontal .radio-inline,\n.form-horizontal .checkbox-inline {\n margin-top: 0;\n margin-bottom: 0;\n padding-top: 7px;\n}\n.form-horizontal .radio,\n.form-horizontal .checkbox {\n min-height: 27px;\n}\n.form-horizontal .form-group {\n margin-left: -15px;\n margin-right: -15px;\n}\n@media (min-width: 768px) {\n .form-horizontal .control-label {\n text-align: right;\n margin-bottom: 0;\n padding-top: 7px;\n }\n}\n.form-horizontal .has-feedback .form-control-feedback {\n right: 15px;\n}\n@media (min-width: 768px) {\n .form-horizontal .form-group-lg .control-label {\n padding-top: 11px;\n font-size: 18px;\n }\n}\n@media (min-width: 768px) {\n .form-horizontal .form-group-sm .control-label {\n padding-top: 6px;\n font-size: 12px;\n }\n}\n.btn {\n display: inline-block;\n margin-bottom: 0;\n font-weight: normal;\n text-align: center;\n vertical-align: middle;\n touch-action: manipulation;\n cursor: pointer;\n background-image: none;\n border: 1px solid transparent;\n white-space: nowrap;\n padding: 6px 12px;\n font-size: 14px;\n line-height: 1.42857143;\n border-radius: 4px;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.btn:focus,\n.btn:active:focus,\n.btn.active:focus,\n.btn.focus,\n.btn:active.focus,\n.btn.active.focus {\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: -2px;\n}\n.btn:hover,\n.btn:focus,\n.btn.focus {\n color: #333;\n text-decoration: none;\n}\n.btn:active,\n.btn.active {\n outline: 0;\n background-image: none;\n -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);\n box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);\n}\n.btn.disabled,\n.btn[disabled],\nfieldset[disabled] .btn {\n cursor: not-allowed;\n opacity: 0.65;\n filter: alpha(opacity=65);\n -webkit-box-shadow: none;\n box-shadow: none;\n}\na.btn.disabled,\nfieldset[disabled] a.btn {\n pointer-events: none;\n}\n.btn-default {\n color: #333;\n background-color: #fff;\n border-color: #ccc;\n}\n.btn-default:focus,\n.btn-default.focus {\n color: #333;\n background-color: #e6e6e6;\n border-color: #8c8c8c;\n}\n.btn-default:hover {\n color: #333;\n background-color: #e6e6e6;\n border-color: #adadad;\n}\n.btn-default:active,\n.btn-default.active,\n.open > .dropdown-toggle.btn-default {\n color: #333;\n background-color: #e6e6e6;\n border-color: #adadad;\n}\n.btn-default:active:hover,\n.btn-default.active:hover,\n.open > .dropdown-toggle.btn-default:hover,\n.btn-default:active:focus,\n.btn-default.active:focus,\n.open > .dropdown-toggle.btn-default:focus,\n.btn-default:active.focus,\n.btn-default.active.focus,\n.open > .dropdown-toggle.btn-default.focus {\n color: #333;\n background-color: #d4d4d4;\n border-color: #8c8c8c;\n}\n.btn-default:active,\n.btn-default.active,\n.open > .dropdown-toggle.btn-default {\n background-image: none;\n}\n.btn-default.disabled:hover,\n.btn-default[disabled]:hover,\nfieldset[disabled] .btn-default:hover,\n.btn-default.disabled:focus,\n.btn-default[disabled]:focus,\nfieldset[disabled] .btn-default:focus,\n.btn-default.disabled.focus,\n.btn-default[disabled].focus,\nfieldset[disabled] .btn-default.focus {\n background-color: #fff;\n border-color: #ccc;\n}\n.btn-default .badge {\n color: #fff;\n background-color: #333;\n}\n.btn-primary {\n color: #fff;\n background-color: #337ab7;\n border-color: #2e6da4;\n}\n.btn-primary:focus,\n.btn-primary.focus {\n color: #fff;\n background-color: #286090;\n border-color: #122b40;\n}\n.btn-primary:hover {\n color: #fff;\n background-color: #286090;\n border-color: #204d74;\n}\n.btn-primary:active,\n.btn-primary.active,\n.open > .dropdown-toggle.btn-primary {\n color: #fff;\n background-color: #286090;\n border-color: #204d74;\n}\n.btn-primary:active:hover,\n.btn-primary.active:hover,\n.open > .dropdown-toggle.btn-primary:hover,\n.btn-primary:active:focus,\n.btn-primary.active:focus,\n.open > .dropdown-toggle.btn-primary:focus,\n.btn-primary:active.focus,\n.btn-primary.active.focus,\n.open > .dropdown-toggle.btn-primary.focus {\n color: #fff;\n background-color: #204d74;\n border-color: #122b40;\n}\n.btn-primary:active,\n.btn-primary.active,\n.open > .dropdown-toggle.btn-primary {\n background-image: none;\n}\n.btn-primary.disabled:hover,\n.btn-primary[disabled]:hover,\nfieldset[disabled] .btn-primary:hover,\n.btn-primary.disabled:focus,\n.btn-primary[disabled]:focus,\nfieldset[disabled] .btn-primary:focus,\n.btn-primary.disabled.focus,\n.btn-primary[disabled].focus,\nfieldset[disabled] .btn-primary.focus {\n background-color: #337ab7;\n border-color: #2e6da4;\n}\n.btn-primary .badge {\n color: #337ab7;\n background-color: #fff;\n}\n.btn-success {\n color: #fff;\n background-color: #5cb85c;\n border-color: #4cae4c;\n}\n.btn-success:focus,\n.btn-success.focus {\n color: #fff;\n background-color: #449d44;\n border-color: #255625;\n}\n.btn-success:hover {\n color: #fff;\n background-color: #449d44;\n border-color: #398439;\n}\n.btn-success:active,\n.btn-success.active,\n.open > .dropdown-toggle.btn-success {\n color: #fff;\n background-color: #449d44;\n border-color: #398439;\n}\n.btn-success:active:hover,\n.btn-success.active:hover,\n.open > .dropdown-toggle.btn-success:hover,\n.btn-success:active:focus,\n.btn-success.active:focus,\n.open > .dropdown-toggle.btn-success:focus,\n.btn-success:active.focus,\n.btn-success.active.focus,\n.open > .dropdown-toggle.btn-success.focus {\n color: #fff;\n background-color: #398439;\n border-color: #255625;\n}\n.btn-success:active,\n.btn-success.active,\n.open > .dropdown-toggle.btn-success {\n background-image: none;\n}\n.btn-success.disabled:hover,\n.btn-success[disabled]:hover,\nfieldset[disabled] .btn-success:hover,\n.btn-success.disabled:focus,\n.btn-success[disabled]:focus,\nfieldset[disabled] .btn-success:focus,\n.btn-success.disabled.focus,\n.btn-success[disabled].focus,\nfieldset[disabled] .btn-success.focus {\n background-color: #5cb85c;\n border-color: #4cae4c;\n}\n.btn-success .badge {\n color: #5cb85c;\n background-color: #fff;\n}\n.btn-info {\n color: #fff;\n background-color: #5bc0de;\n border-color: #46b8da;\n}\n.btn-info:focus,\n.btn-info.focus {\n color: #fff;\n background-color: #31b0d5;\n border-color: #1b6d85;\n}\n.btn-info:hover {\n color: #fff;\n background-color: #31b0d5;\n border-color: #269abc;\n}\n.btn-info:active,\n.btn-info.active,\n.open > .dropdown-toggle.btn-info {\n color: #fff;\n background-color: #31b0d5;\n border-color: #269abc;\n}\n.btn-info:active:hover,\n.btn-info.active:hover,\n.open > .dropdown-toggle.btn-info:hover,\n.btn-info:active:focus,\n.btn-info.active:focus,\n.open > .dropdown-toggle.btn-info:focus,\n.btn-info:active.focus,\n.btn-info.active.focus,\n.open > .dropdown-toggle.btn-info.focus {\n color: #fff;\n background-color: #269abc;\n border-color: #1b6d85;\n}\n.btn-info:active,\n.btn-info.active,\n.open > .dropdown-toggle.btn-info {\n background-image: none;\n}\n.btn-info.disabled:hover,\n.btn-info[disabled]:hover,\nfieldset[disabled] .btn-info:hover,\n.btn-info.disabled:focus,\n.btn-info[disabled]:focus,\nfieldset[disabled] .btn-info:focus,\n.btn-info.disabled.focus,\n.btn-info[disabled].focus,\nfieldset[disabled] .btn-info.focus {\n background-color: #5bc0de;\n border-color: #46b8da;\n}\n.btn-info .badge {\n color: #5bc0de;\n background-color: #fff;\n}\n.btn-warning {\n color: #fff;\n background-color: #f0ad4e;\n border-color: #eea236;\n}\n.btn-warning:focus,\n.btn-warning.focus {\n color: #fff;\n background-color: #ec971f;\n border-color: #985f0d;\n}\n.btn-warning:hover {\n color: #fff;\n background-color: #ec971f;\n border-color: #d58512;\n}\n.btn-warning:active,\n.btn-warning.active,\n.open > .dropdown-toggle.btn-warning {\n color: #fff;\n background-color: #ec971f;\n border-color: #d58512;\n}\n.btn-warning:active:hover,\n.btn-warning.active:hover,\n.open > .dropdown-toggle.btn-warning:hover,\n.btn-warning:active:focus,\n.btn-warning.active:focus,\n.open > .dropdown-toggle.btn-warning:focus,\n.btn-warning:active.focus,\n.btn-warning.active.focus,\n.open > .dropdown-toggle.btn-warning.focus {\n color: #fff;\n background-color: #d58512;\n border-color: #985f0d;\n}\n.btn-warning:active,\n.btn-warning.active,\n.open > .dropdown-toggle.btn-warning {\n background-image: none;\n}\n.btn-warning.disabled:hover,\n.btn-warning[disabled]:hover,\nfieldset[disabled] .btn-warning:hover,\n.btn-warning.disabled:focus,\n.btn-warning[disabled]:focus,\nfieldset[disabled] .btn-warning:focus,\n.btn-warning.disabled.focus,\n.btn-warning[disabled].focus,\nfieldset[disabled] .btn-warning.focus {\n background-color: #f0ad4e;\n border-color: #eea236;\n}\n.btn-warning .badge {\n color: #f0ad4e;\n background-color: #fff;\n}\n.btn-danger {\n color: #fff;\n background-color: #d9534f;\n border-color: #d43f3a;\n}\n.btn-danger:focus,\n.btn-danger.focus {\n color: #fff;\n background-color: #c9302c;\n border-color: #761c19;\n}\n.btn-danger:hover {\n color: #fff;\n background-color: #c9302c;\n border-color: #ac2925;\n}\n.btn-danger:active,\n.btn-danger.active,\n.open > .dropdown-toggle.btn-danger {\n color: #fff;\n background-color: #c9302c;\n border-color: #ac2925;\n}\n.btn-danger:active:hover,\n.btn-danger.active:hover,\n.open > .dropdown-toggle.btn-danger:hover,\n.btn-danger:active:focus,\n.btn-danger.active:focus,\n.open > .dropdown-toggle.btn-danger:focus,\n.btn-danger:active.focus,\n.btn-danger.active.focus,\n.open > .dropdown-toggle.btn-danger.focus {\n color: #fff;\n background-color: #ac2925;\n border-color: #761c19;\n}\n.btn-danger:active,\n.btn-danger.active,\n.open > .dropdown-toggle.btn-danger {\n background-image: none;\n}\n.btn-danger.disabled:hover,\n.btn-danger[disabled]:hover,\nfieldset[disabled] .btn-danger:hover,\n.btn-danger.disabled:focus,\n.btn-danger[disabled]:focus,\nfieldset[disabled] .btn-danger:focus,\n.btn-danger.disabled.focus,\n.btn-danger[disabled].focus,\nfieldset[disabled] .btn-danger.focus {\n background-color: #d9534f;\n border-color: #d43f3a;\n}\n.btn-danger .badge {\n color: #d9534f;\n background-color: #fff;\n}\n.btn-link {\n color: #337ab7;\n font-weight: normal;\n border-radius: 0;\n}\n.btn-link,\n.btn-link:active,\n.btn-link.active,\n.btn-link[disabled],\nfieldset[disabled] .btn-link {\n background-color: transparent;\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n.btn-link,\n.btn-link:hover,\n.btn-link:focus,\n.btn-link:active {\n border-color: transparent;\n}\n.btn-link:hover,\n.btn-link:focus {\n color: #23527c;\n text-decoration: underline;\n background-color: transparent;\n}\n.btn-link[disabled]:hover,\nfieldset[disabled] .btn-link:hover,\n.btn-link[disabled]:focus,\nfieldset[disabled] .btn-link:focus {\n color: #777777;\n text-decoration: none;\n}\n.btn-lg,\n.btn-group-lg > .btn {\n padding: 10px 16px;\n font-size: 18px;\n line-height: 1.3333333;\n border-radius: 6px;\n}\n.btn-sm,\n.btn-group-sm > .btn {\n padding: 5px 10px;\n font-size: 12px;\n line-height: 1.5;\n border-radius: 3px;\n}\n.btn-xs,\n.btn-group-xs > .btn {\n padding: 1px 5px;\n font-size: 12px;\n line-height: 1.5;\n border-radius: 3px;\n}\n.btn-block {\n display: block;\n width: 100%;\n}\n.btn-block + .btn-block {\n margin-top: 5px;\n}\ninput[type=\"submit\"].btn-block,\ninput[type=\"reset\"].btn-block,\ninput[type=\"button\"].btn-block {\n width: 100%;\n}\n.fade {\n opacity: 0;\n -webkit-transition: opacity 0.15s linear;\n -o-transition: opacity 0.15s linear;\n transition: opacity 0.15s linear;\n}\n.fade.in {\n opacity: 1;\n}\n.collapse {\n display: none;\n}\n.collapse.in {\n display: block;\n}\ntr.collapse.in {\n display: table-row;\n}\ntbody.collapse.in {\n display: table-row-group;\n}\n.collapsing {\n position: relative;\n height: 0;\n overflow: hidden;\n -webkit-transition-property: height, visibility;\n transition-property: height, visibility;\n -webkit-transition-duration: 0.35s;\n transition-duration: 0.35s;\n -webkit-transition-timing-function: ease;\n transition-timing-function: ease;\n}\n.caret {\n display: inline-block;\n width: 0;\n height: 0;\n margin-left: 2px;\n vertical-align: middle;\n border-top: 4px dashed;\n border-top: 4px solid \\9;\n border-right: 4px solid transparent;\n border-left: 4px solid transparent;\n}\n.dropup,\n.dropdown {\n position: relative;\n}\n.dropdown-toggle:focus {\n outline: 0;\n}\n.dropdown-menu {\n position: absolute;\n top: 100%;\n left: 0;\n z-index: 1000;\n display: none;\n float: left;\n min-width: 160px;\n padding: 5px 0;\n margin: 2px 0 0;\n list-style: none;\n font-size: 14px;\n text-align: left;\n background-color: #fff;\n border: 1px solid #ccc;\n border: 1px solid rgba(0, 0, 0, 0.15);\n border-radius: 4px;\n -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);\n box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);\n background-clip: padding-box;\n}\n.dropdown-menu.pull-right {\n right: 0;\n left: auto;\n}\n.dropdown-menu .divider {\n height: 1px;\n margin: 9px 0;\n overflow: hidden;\n background-color: #e5e5e5;\n}\n.dropdown-menu > li > a {\n display: block;\n padding: 3px 20px;\n clear: both;\n font-weight: normal;\n line-height: 1.42857143;\n color: #333333;\n white-space: nowrap;\n}\n.dropdown-menu > li > a:hover,\n.dropdown-menu > li > a:focus {\n text-decoration: none;\n color: #262626;\n background-color: #f5f5f5;\n}\n.dropdown-menu > .active > a,\n.dropdown-menu > .active > a:hover,\n.dropdown-menu > .active > a:focus {\n color: #fff;\n text-decoration: none;\n outline: 0;\n background-color: #337ab7;\n}\n.dropdown-menu > .disabled > a,\n.dropdown-menu > .disabled > a:hover,\n.dropdown-menu > .disabled > a:focus {\n color: #777777;\n}\n.dropdown-menu > .disabled > a:hover,\n.dropdown-menu > .disabled > a:focus {\n text-decoration: none;\n background-color: transparent;\n background-image: none;\n filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n cursor: not-allowed;\n}\n.open > .dropdown-menu {\n display: block;\n}\n.open > a {\n outline: 0;\n}\n.dropdown-menu-right {\n left: auto;\n right: 0;\n}\n.dropdown-menu-left {\n left: 0;\n right: auto;\n}\n.dropdown-header {\n display: block;\n padding: 3px 20px;\n font-size: 12px;\n line-height: 1.42857143;\n color: #777777;\n white-space: nowrap;\n}\n.dropdown-backdrop {\n position: fixed;\n left: 0;\n right: 0;\n bottom: 0;\n top: 0;\n z-index: 990;\n}\n.pull-right > .dropdown-menu {\n right: 0;\n left: auto;\n}\n.dropup .caret,\n.navbar-fixed-bottom .dropdown .caret {\n border-top: 0;\n border-bottom: 4px dashed;\n border-bottom: 4px solid \\9;\n content: \"\";\n}\n.dropup .dropdown-menu,\n.navbar-fixed-bottom .dropdown .dropdown-menu {\n top: auto;\n bottom: 100%;\n margin-bottom: 2px;\n}\n@media (min-width: 768px) {\n .navbar-right .dropdown-menu {\n left: auto;\n right: 0;\n }\n .navbar-right .dropdown-menu-left {\n left: 0;\n right: auto;\n }\n}\n.btn-group,\n.btn-group-vertical {\n position: relative;\n display: inline-block;\n vertical-align: middle;\n}\n.btn-group > .btn,\n.btn-group-vertical > .btn {\n position: relative;\n float: left;\n}\n.btn-group > .btn:hover,\n.btn-group-vertical > .btn:hover,\n.btn-group > .btn:focus,\n.btn-group-vertical > .btn:focus,\n.btn-group > .btn:active,\n.btn-group-vertical > .btn:active,\n.btn-group > .btn.active,\n.btn-group-vertical > .btn.active {\n z-index: 2;\n}\n.btn-group .btn + .btn,\n.btn-group .btn + .btn-group,\n.btn-group .btn-group + .btn,\n.btn-group .btn-group + .btn-group {\n margin-left: -1px;\n}\n.btn-toolbar {\n margin-left: -5px;\n}\n.btn-toolbar .btn,\n.btn-toolbar .btn-group,\n.btn-toolbar .input-group {\n float: left;\n}\n.btn-toolbar > .btn,\n.btn-toolbar > .btn-group,\n.btn-toolbar > .input-group {\n margin-left: 5px;\n}\n.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {\n border-radius: 0;\n}\n.btn-group > .btn:first-child {\n margin-left: 0;\n}\n.btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) {\n border-bottom-right-radius: 0;\n border-top-right-radius: 0;\n}\n.btn-group > .btn:last-child:not(:first-child),\n.btn-group > .dropdown-toggle:not(:first-child) {\n border-bottom-left-radius: 0;\n border-top-left-radius: 0;\n}\n.btn-group > .btn-group {\n float: left;\n}\n.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {\n border-radius: 0;\n}\n.btn-group > .btn-group:first-child:not(:last-child) > .btn:last-child,\n.btn-group > .btn-group:first-child:not(:last-child) > .dropdown-toggle {\n border-bottom-right-radius: 0;\n border-top-right-radius: 0;\n}\n.btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child {\n border-bottom-left-radius: 0;\n border-top-left-radius: 0;\n}\n.btn-group .dropdown-toggle:active,\n.btn-group.open .dropdown-toggle {\n outline: 0;\n}\n.btn-group > .btn + .dropdown-toggle {\n padding-left: 8px;\n padding-right: 8px;\n}\n.btn-group > .btn-lg + .dropdown-toggle {\n padding-left: 12px;\n padding-right: 12px;\n}\n.btn-group.open .dropdown-toggle {\n -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);\n box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);\n}\n.btn-group.open .dropdown-toggle.btn-link {\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n.btn .caret {\n margin-left: 0;\n}\n.btn-lg .caret {\n border-width: 5px 5px 0;\n border-bottom-width: 0;\n}\n.dropup .btn-lg .caret {\n border-width: 0 5px 5px;\n}\n.btn-group-vertical > .btn,\n.btn-group-vertical > .btn-group,\n.btn-group-vertical > .btn-group > .btn {\n display: block;\n float: none;\n width: 100%;\n max-width: 100%;\n}\n.btn-group-vertical > .btn-group > .btn {\n float: none;\n}\n.btn-group-vertical > .btn + .btn,\n.btn-group-vertical > .btn + .btn-group,\n.btn-group-vertical > .btn-group + .btn,\n.btn-group-vertical > .btn-group + .btn-group {\n margin-top: -1px;\n margin-left: 0;\n}\n.btn-group-vertical > .btn:not(:first-child):not(:last-child) {\n border-radius: 0;\n}\n.btn-group-vertical > .btn:first-child:not(:last-child) {\n border-top-right-radius: 4px;\n border-top-left-radius: 4px;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n}\n.btn-group-vertical > .btn:last-child:not(:first-child) {\n border-top-right-radius: 0;\n border-top-left-radius: 0;\n border-bottom-right-radius: 4px;\n border-bottom-left-radius: 4px;\n}\n.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn {\n border-radius: 0;\n}\n.btn-group-vertical > .btn-group:first-child:not(:last-child) > .btn:last-child,\n.btn-group-vertical > .btn-group:first-child:not(:last-child) > .dropdown-toggle {\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n}\n.btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child {\n border-top-right-radius: 0;\n border-top-left-radius: 0;\n}\n.btn-group-justified {\n display: table;\n width: 100%;\n table-layout: fixed;\n border-collapse: separate;\n}\n.btn-group-justified > .btn,\n.btn-group-justified > .btn-group {\n float: none;\n display: table-cell;\n width: 1%;\n}\n.btn-group-justified > .btn-group .btn {\n width: 100%;\n}\n.btn-group-justified > .btn-group .dropdown-menu {\n left: auto;\n}\n[data-toggle=\"buttons\"] > .btn input[type=\"radio\"],\n[data-toggle=\"buttons\"] > .btn-group > .btn input[type=\"radio\"],\n[data-toggle=\"buttons\"] > .btn input[type=\"checkbox\"],\n[data-toggle=\"buttons\"] > .btn-group > .btn input[type=\"checkbox\"] {\n position: absolute;\n clip: rect(0, 0, 0, 0);\n pointer-events: none;\n}\n.input-group {\n position: relative;\n display: table;\n border-collapse: separate;\n}\n.input-group[class*=\"col-\"] {\n float: none;\n padding-left: 0;\n padding-right: 0;\n}\n.input-group .form-control {\n position: relative;\n z-index: 2;\n float: left;\n width: 100%;\n margin-bottom: 0;\n}\n.input-group .form-control:focus {\n z-index: 3;\n}\n.input-group-lg > .form-control,\n.input-group-lg > .input-group-addon,\n.input-group-lg > .input-group-btn > .btn {\n height: 46px;\n padding: 10px 16px;\n font-size: 18px;\n line-height: 1.3333333;\n border-radius: 6px;\n}\nselect.input-group-lg > .form-control,\nselect.input-group-lg > .input-group-addon,\nselect.input-group-lg > .input-group-btn > .btn {\n height: 46px;\n line-height: 46px;\n}\ntextarea.input-group-lg > .form-control,\ntextarea.input-group-lg > .input-group-addon,\ntextarea.input-group-lg > .input-group-btn > .btn,\nselect[multiple].input-group-lg > .form-control,\nselect[multiple].input-group-lg > .input-group-addon,\nselect[multiple].input-group-lg > .input-group-btn > .btn {\n height: auto;\n}\n.input-group-sm > .form-control,\n.input-group-sm > .input-group-addon,\n.input-group-sm > .input-group-btn > .btn {\n height: 30px;\n padding: 5px 10px;\n font-size: 12px;\n line-height: 1.5;\n border-radius: 3px;\n}\nselect.input-group-sm > .form-control,\nselect.input-group-sm > .input-group-addon,\nselect.input-group-sm > .input-group-btn > .btn {\n height: 30px;\n line-height: 30px;\n}\ntextarea.input-group-sm > .form-control,\ntextarea.input-group-sm > .input-group-addon,\ntextarea.input-group-sm > .input-group-btn > .btn,\nselect[multiple].input-group-sm > .form-control,\nselect[multiple].input-group-sm > .input-group-addon,\nselect[multiple].input-group-sm > .input-group-btn > .btn {\n height: auto;\n}\n.input-group-addon,\n.input-group-btn,\n.input-group .form-control {\n display: table-cell;\n}\n.input-group-addon:not(:first-child):not(:last-child),\n.input-group-btn:not(:first-child):not(:last-child),\n.input-group .form-control:not(:first-child):not(:last-child) {\n border-radius: 0;\n}\n.input-group-addon,\n.input-group-btn {\n width: 1%;\n white-space: nowrap;\n vertical-align: middle;\n}\n.input-group-addon {\n padding: 6px 12px;\n font-size: 14px;\n font-weight: normal;\n line-height: 1;\n color: #555555;\n text-align: center;\n background-color: #eeeeee;\n border: 1px solid #ccc;\n border-radius: 4px;\n}\n.input-group-addon.input-sm {\n padding: 5px 10px;\n font-size: 12px;\n border-radius: 3px;\n}\n.input-group-addon.input-lg {\n padding: 10px 16px;\n font-size: 18px;\n border-radius: 6px;\n}\n.input-group-addon input[type=\"radio\"],\n.input-group-addon input[type=\"checkbox\"] {\n margin-top: 0;\n}\n.input-group .form-control:first-child,\n.input-group-addon:first-child,\n.input-group-btn:first-child > .btn,\n.input-group-btn:first-child > .btn-group > .btn,\n.input-group-btn:first-child > .dropdown-toggle,\n.input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle),\n.input-group-btn:last-child > .btn-group:not(:last-child) > .btn {\n border-bottom-right-radius: 0;\n border-top-right-radius: 0;\n}\n.input-group-addon:first-child {\n border-right: 0;\n}\n.input-group .form-control:last-child,\n.input-group-addon:last-child,\n.input-group-btn:last-child > .btn,\n.input-group-btn:last-child > .btn-group > .btn,\n.input-group-btn:last-child > .dropdown-toggle,\n.input-group-btn:first-child > .btn:not(:first-child),\n.input-group-btn:first-child > .btn-group:not(:first-child) > .btn {\n border-bottom-left-radius: 0;\n border-top-left-radius: 0;\n}\n.input-group-addon:last-child {\n border-left: 0;\n}\n.input-group-btn {\n position: relative;\n font-size: 0;\n white-space: nowrap;\n}\n.input-group-btn > .btn {\n position: relative;\n}\n.input-group-btn > .btn + .btn {\n margin-left: -1px;\n}\n.input-group-btn > .btn:hover,\n.input-group-btn > .btn:focus,\n.input-group-btn > .btn:active {\n z-index: 2;\n}\n.input-group-btn:first-child > .btn,\n.input-group-btn:first-child > .btn-group {\n margin-right: -1px;\n}\n.input-group-btn:last-child > .btn,\n.input-group-btn:last-child > .btn-group {\n z-index: 2;\n margin-left: -1px;\n}\n.nav {\n margin-bottom: 0;\n padding-left: 0;\n list-style: none;\n}\n.nav > li {\n position: relative;\n display: block;\n}\n.nav > li > a {\n position: relative;\n display: block;\n padding: 10px 15px;\n}\n.nav > li > a:hover,\n.nav > li > a:focus {\n text-decoration: none;\n background-color: #eeeeee;\n}\n.nav > li.disabled > a {\n color: #777777;\n}\n.nav > li.disabled > a:hover,\n.nav > li.disabled > a:focus {\n color: #777777;\n text-decoration: none;\n background-color: transparent;\n cursor: not-allowed;\n}\n.nav .open > a,\n.nav .open > a:hover,\n.nav .open > a:focus {\n background-color: #eeeeee;\n border-color: #337ab7;\n}\n.nav .nav-divider {\n height: 1px;\n margin: 9px 0;\n overflow: hidden;\n background-color: #e5e5e5;\n}\n.nav > li > a > img {\n max-width: none;\n}\n.nav-tabs {\n border-bottom: 1px solid #ddd;\n}\n.nav-tabs > li {\n float: left;\n margin-bottom: -1px;\n}\n.nav-tabs > li > a {\n margin-right: 2px;\n line-height: 1.42857143;\n border: 1px solid transparent;\n border-radius: 4px 4px 0 0;\n}\n.nav-tabs > li > a:hover {\n border-color: #eeeeee #eeeeee #ddd;\n}\n.nav-tabs > li.active > a,\n.nav-tabs > li.active > a:hover,\n.nav-tabs > li.active > a:focus {\n color: #555555;\n background-color: #fff;\n border: 1px solid #ddd;\n border-bottom-color: transparent;\n cursor: default;\n}\n.nav-tabs.nav-justified {\n width: 100%;\n border-bottom: 0;\n}\n.nav-tabs.nav-justified > li {\n float: none;\n}\n.nav-tabs.nav-justified > li > a {\n text-align: center;\n margin-bottom: 5px;\n}\n.nav-tabs.nav-justified > .dropdown .dropdown-menu {\n top: auto;\n left: auto;\n}\n@media (min-width: 768px) {\n .nav-tabs.nav-justified > li {\n display: table-cell;\n width: 1%;\n }\n .nav-tabs.nav-justified > li > a {\n margin-bottom: 0;\n }\n}\n.nav-tabs.nav-justified > li > a {\n margin-right: 0;\n border-radius: 4px;\n}\n.nav-tabs.nav-justified > .active > a,\n.nav-tabs.nav-justified > .active > a:hover,\n.nav-tabs.nav-justified > .active > a:focus {\n border: 1px solid #ddd;\n}\n@media (min-width: 768px) {\n .nav-tabs.nav-justified > li > a {\n border-bottom: 1px solid #ddd;\n border-radius: 4px 4px 0 0;\n }\n .nav-tabs.nav-justified > .active > a,\n .nav-tabs.nav-justified > .active > a:hover,\n .nav-tabs.nav-justified > .active > a:focus {\n border-bottom-color: #fff;\n }\n}\n.nav-pills > li {\n float: left;\n}\n.nav-pills > li > a {\n border-radius: 4px;\n}\n.nav-pills > li + li {\n margin-left: 2px;\n}\n.nav-pills > li.active > a,\n.nav-pills > li.active > a:hover,\n.nav-pills > li.active > a:focus {\n color: #fff;\n background-color: #337ab7;\n}\n.nav-stacked > li {\n float: none;\n}\n.nav-stacked > li + li {\n margin-top: 2px;\n margin-left: 0;\n}\n.nav-justified {\n width: 100%;\n}\n.nav-justified > li {\n float: none;\n}\n.nav-justified > li > a {\n text-align: center;\n margin-bottom: 5px;\n}\n.nav-justified > .dropdown .dropdown-menu {\n top: auto;\n left: auto;\n}\n@media (min-width: 768px) {\n .nav-justified > li {\n display: table-cell;\n width: 1%;\n }\n .nav-justified > li > a {\n margin-bottom: 0;\n }\n}\n.nav-tabs-justified {\n border-bottom: 0;\n}\n.nav-tabs-justified > li > a {\n margin-right: 0;\n border-radius: 4px;\n}\n.nav-tabs-justified > .active > a,\n.nav-tabs-justified > .active > a:hover,\n.nav-tabs-justified > .active > a:focus {\n border: 1px solid #ddd;\n}\n@media (min-width: 768px) {\n .nav-tabs-justified > li > a {\n border-bottom: 1px solid #ddd;\n border-radius: 4px 4px 0 0;\n }\n .nav-tabs-justified > .active > a,\n .nav-tabs-justified > .active > a:hover,\n .nav-tabs-justified > .active > a:focus {\n border-bottom-color: #fff;\n }\n}\n.tab-content > .tab-pane {\n display: none;\n}\n.tab-content > .active {\n display: block;\n}\n.nav-tabs .dropdown-menu {\n margin-top: -1px;\n border-top-right-radius: 0;\n border-top-left-radius: 0;\n}\n.navbar {\n position: relative;\n min-height: 50px;\n margin-bottom: 20px;\n border: 1px solid transparent;\n}\n@media (min-width: 768px) {\n .navbar {\n border-radius: 4px;\n }\n}\n@media (min-width: 768px) {\n .navbar-header {\n float: left;\n }\n}\n.navbar-collapse {\n overflow-x: visible;\n padding-right: 15px;\n padding-left: 15px;\n border-top: 1px solid transparent;\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);\n -webkit-overflow-scrolling: touch;\n}\n.navbar-collapse.in {\n overflow-y: auto;\n}\n@media (min-width: 768px) {\n .navbar-collapse {\n width: auto;\n border-top: 0;\n box-shadow: none;\n }\n .navbar-collapse.collapse {\n display: block !important;\n height: auto !important;\n padding-bottom: 0;\n overflow: visible !important;\n }\n .navbar-collapse.in {\n overflow-y: visible;\n }\n .navbar-fixed-top .navbar-collapse,\n .navbar-static-top .navbar-collapse,\n .navbar-fixed-bottom .navbar-collapse {\n padding-left: 0;\n padding-right: 0;\n }\n}\n.navbar-fixed-top .navbar-collapse,\n.navbar-fixed-bottom .navbar-collapse {\n max-height: 340px;\n}\n@media (max-device-width: 480px) and (orientation: landscape) {\n .navbar-fixed-top .navbar-collapse,\n .navbar-fixed-bottom .navbar-collapse {\n max-height: 200px;\n }\n}\n.container > .navbar-header,\n.container-fluid > .navbar-header,\n.container > .navbar-collapse,\n.container-fluid > .navbar-collapse {\n margin-right: -15px;\n margin-left: -15px;\n}\n@media (min-width: 768px) {\n .container > .navbar-header,\n .container-fluid > .navbar-header,\n .container > .navbar-collapse,\n .container-fluid > .navbar-collapse {\n margin-right: 0;\n margin-left: 0;\n }\n}\n.navbar-static-top {\n z-index: 1000;\n border-width: 0 0 1px;\n}\n@media (min-width: 768px) {\n .navbar-static-top {\n border-radius: 0;\n }\n}\n.navbar-fixed-top,\n.navbar-fixed-bottom {\n position: fixed;\n right: 0;\n left: 0;\n z-index: 1030;\n}\n@media (min-width: 768px) {\n .navbar-fixed-top,\n .navbar-fixed-bottom {\n border-radius: 0;\n }\n}\n.navbar-fixed-top {\n top: 0;\n border-width: 0 0 1px;\n}\n.navbar-fixed-bottom {\n bottom: 0;\n margin-bottom: 0;\n border-width: 1px 0 0;\n}\n.navbar-brand {\n float: left;\n padding: 15px 15px;\n font-size: 18px;\n line-height: 20px;\n height: 50px;\n}\n.navbar-brand:hover,\n.navbar-brand:focus {\n text-decoration: none;\n}\n.navbar-brand > img {\n display: block;\n}\n@media (min-width: 768px) {\n .navbar > .container .navbar-brand,\n .navbar > .container-fluid .navbar-brand {\n margin-left: -15px;\n }\n}\n.navbar-toggle {\n position: relative;\n float: right;\n margin-right: 15px;\n padding: 9px 10px;\n margin-top: 8px;\n margin-bottom: 8px;\n background-color: transparent;\n background-image: none;\n border: 1px solid transparent;\n border-radius: 4px;\n}\n.navbar-toggle:focus {\n outline: 0;\n}\n.navbar-toggle .icon-bar {\n display: block;\n width: 22px;\n height: 2px;\n border-radius: 1px;\n}\n.navbar-toggle .icon-bar + .icon-bar {\n margin-top: 4px;\n}\n@media (min-width: 768px) {\n .navbar-toggle {\n display: none;\n }\n}\n.navbar-nav {\n margin: 7.5px -15px;\n}\n.navbar-nav > li > a {\n padding-top: 10px;\n padding-bottom: 10px;\n line-height: 20px;\n}\n@media (max-width: 767px) {\n .navbar-nav .open .dropdown-menu {\n position: static;\n float: none;\n width: auto;\n margin-top: 0;\n background-color: transparent;\n border: 0;\n box-shadow: none;\n }\n .navbar-nav .open .dropdown-menu > li > a,\n .navbar-nav .open .dropdown-menu .dropdown-header {\n padding: 5px 15px 5px 25px;\n }\n .navbar-nav .open .dropdown-menu > li > a {\n line-height: 20px;\n }\n .navbar-nav .open .dropdown-menu > li > a:hover,\n .navbar-nav .open .dropdown-menu > li > a:focus {\n background-image: none;\n }\n}\n@media (min-width: 768px) {\n .navbar-nav {\n float: left;\n margin: 0;\n }\n .navbar-nav > li {\n float: left;\n }\n .navbar-nav > li > a {\n padding-top: 15px;\n padding-bottom: 15px;\n }\n}\n.navbar-form {\n margin-left: -15px;\n margin-right: -15px;\n padding: 10px 15px;\n border-top: 1px solid transparent;\n border-bottom: 1px solid transparent;\n -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);\n margin-top: 8px;\n margin-bottom: 8px;\n}\n@media (min-width: 768px) {\n .navbar-form .form-group {\n display: inline-block;\n margin-bottom: 0;\n vertical-align: middle;\n }\n .navbar-form .form-control {\n display: inline-block;\n width: auto;\n vertical-align: middle;\n }\n .navbar-form .form-control-static {\n display: inline-block;\n }\n .navbar-form .input-group {\n display: inline-table;\n vertical-align: middle;\n }\n .navbar-form .input-group .input-group-addon,\n .navbar-form .input-group .input-group-btn,\n .navbar-form .input-group .form-control {\n width: auto;\n }\n .navbar-form .input-group > .form-control {\n width: 100%;\n }\n .navbar-form .control-label {\n margin-bottom: 0;\n vertical-align: middle;\n }\n .navbar-form .radio,\n .navbar-form .checkbox {\n display: inline-block;\n margin-top: 0;\n margin-bottom: 0;\n vertical-align: middle;\n }\n .navbar-form .radio label,\n .navbar-form .checkbox label {\n padding-left: 0;\n }\n .navbar-form .radio input[type=\"radio\"],\n .navbar-form .checkbox input[type=\"checkbox\"] {\n position: relative;\n margin-left: 0;\n }\n .navbar-form .has-feedback .form-control-feedback {\n top: 0;\n }\n}\n@media (max-width: 767px) {\n .navbar-form .form-group {\n margin-bottom: 5px;\n }\n .navbar-form .form-group:last-child {\n margin-bottom: 0;\n }\n}\n@media (min-width: 768px) {\n .navbar-form {\n width: auto;\n border: 0;\n margin-left: 0;\n margin-right: 0;\n padding-top: 0;\n padding-bottom: 0;\n -webkit-box-shadow: none;\n box-shadow: none;\n }\n}\n.navbar-nav > li > .dropdown-menu {\n margin-top: 0;\n border-top-right-radius: 0;\n border-top-left-radius: 0;\n}\n.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu {\n margin-bottom: 0;\n border-top-right-radius: 4px;\n border-top-left-radius: 4px;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n}\n.navbar-btn {\n margin-top: 8px;\n margin-bottom: 8px;\n}\n.navbar-btn.btn-sm {\n margin-top: 10px;\n margin-bottom: 10px;\n}\n.navbar-btn.btn-xs {\n margin-top: 14px;\n margin-bottom: 14px;\n}\n.navbar-text {\n margin-top: 15px;\n margin-bottom: 15px;\n}\n@media (min-width: 768px) {\n .navbar-text {\n float: left;\n margin-left: 15px;\n margin-right: 15px;\n }\n}\n@media (min-width: 768px) {\n .navbar-left {\n float: left !important;\n }\n .navbar-right {\n float: right !important;\n margin-right: -15px;\n }\n .navbar-right ~ .navbar-right {\n margin-right: 0;\n }\n}\n.navbar-default {\n background-color: #f8f8f8;\n border-color: #e7e7e7;\n}\n.navbar-default .navbar-brand {\n color: #777;\n}\n.navbar-default .navbar-brand:hover,\n.navbar-default .navbar-brand:focus {\n color: #5e5e5e;\n background-color: transparent;\n}\n.navbar-default .navbar-text {\n color: #777;\n}\n.navbar-default .navbar-nav > li > a {\n color: #777;\n}\n.navbar-default .navbar-nav > li > a:hover,\n.navbar-default .navbar-nav > li > a:focus {\n color: #333;\n background-color: transparent;\n}\n.navbar-default .navbar-nav > .active > a,\n.navbar-default .navbar-nav > .active > a:hover,\n.navbar-default .navbar-nav > .active > a:focus {\n color: #555;\n background-color: #e7e7e7;\n}\n.navbar-default .navbar-nav > .disabled > a,\n.navbar-default .navbar-nav > .disabled > a:hover,\n.navbar-default .navbar-nav > .disabled > a:focus {\n color: #ccc;\n background-color: transparent;\n}\n.navbar-default .navbar-toggle {\n border-color: #ddd;\n}\n.navbar-default .navbar-toggle:hover,\n.navbar-default .navbar-toggle:focus {\n background-color: #ddd;\n}\n.navbar-default .navbar-toggle .icon-bar {\n background-color: #888;\n}\n.navbar-default .navbar-collapse,\n.navbar-default .navbar-form {\n border-color: #e7e7e7;\n}\n.navbar-default .navbar-nav > .open > a,\n.navbar-default .navbar-nav > .open > a:hover,\n.navbar-default .navbar-nav > .open > a:focus {\n background-color: #e7e7e7;\n color: #555;\n}\n@media (max-width: 767px) {\n .navbar-default .navbar-nav .open .dropdown-menu > li > a {\n color: #777;\n }\n .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,\n .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {\n color: #333;\n background-color: transparent;\n }\n .navbar-default .navbar-nav .open .dropdown-menu > .active > a,\n .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover,\n .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus {\n color: #555;\n background-color: #e7e7e7;\n }\n .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a,\n .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover,\n .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus {\n color: #ccc;\n background-color: transparent;\n }\n}\n.navbar-default .navbar-link {\n color: #777;\n}\n.navbar-default .navbar-link:hover {\n color: #333;\n}\n.navbar-default .btn-link {\n color: #777;\n}\n.navbar-default .btn-link:hover,\n.navbar-default .btn-link:focus {\n color: #333;\n}\n.navbar-default .btn-link[disabled]:hover,\nfieldset[disabled] .navbar-default .btn-link:hover,\n.navbar-default .btn-link[disabled]:focus,\nfieldset[disabled] .navbar-default .btn-link:focus {\n color: #ccc;\n}\n.navbar-inverse {\n background-color: #222;\n border-color: #080808;\n}\n.navbar-inverse .navbar-brand {\n color: #9d9d9d;\n}\n.navbar-inverse .navbar-brand:hover,\n.navbar-inverse .navbar-brand:focus {\n color: #fff;\n background-color: transparent;\n}\n.navbar-inverse .navbar-text {\n color: #9d9d9d;\n}\n.navbar-inverse .navbar-nav > li > a {\n color: #9d9d9d;\n}\n.navbar-inverse .navbar-nav > li > a:hover,\n.navbar-inverse .navbar-nav > li > a:focus {\n color: #fff;\n background-color: transparent;\n}\n.navbar-inverse .navbar-nav > .active > a,\n.navbar-inverse .navbar-nav > .active > a:hover,\n.navbar-inverse .navbar-nav > .active > a:focus {\n color: #fff;\n background-color: #080808;\n}\n.navbar-inverse .navbar-nav > .disabled > a,\n.navbar-inverse .navbar-nav > .disabled > a:hover,\n.navbar-inverse .navbar-nav > .disabled > a:focus {\n color: #444;\n background-color: transparent;\n}\n.navbar-inverse .navbar-toggle {\n border-color: #333;\n}\n.navbar-inverse .navbar-toggle:hover,\n.navbar-inverse .navbar-toggle:focus {\n background-color: #333;\n}\n.navbar-inverse .navbar-toggle .icon-bar {\n background-color: #fff;\n}\n.navbar-inverse .navbar-collapse,\n.navbar-inverse .navbar-form {\n border-color: #101010;\n}\n.navbar-inverse .navbar-nav > .open > a,\n.navbar-inverse .navbar-nav > .open > a:hover,\n.navbar-inverse .navbar-nav > .open > a:focus {\n background-color: #080808;\n color: #fff;\n}\n@media (max-width: 767px) {\n .navbar-inverse .navbar-nav .open .dropdown-menu > .dropdown-header {\n border-color: #080808;\n }\n .navbar-inverse .navbar-nav .open .dropdown-menu .divider {\n background-color: #080808;\n }\n .navbar-inverse .navbar-nav .open .dropdown-menu > li > a {\n color: #9d9d9d;\n }\n .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover,\n .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus {\n color: #fff;\n background-color: transparent;\n }\n .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a,\n .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover,\n .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus {\n color: #fff;\n background-color: #080808;\n }\n .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a,\n .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:hover,\n .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:focus {\n color: #444;\n background-color: transparent;\n }\n}\n.navbar-inverse .navbar-link {\n color: #9d9d9d;\n}\n.navbar-inverse .navbar-link:hover {\n color: #fff;\n}\n.navbar-inverse .btn-link {\n color: #9d9d9d;\n}\n.navbar-inverse .btn-link:hover,\n.navbar-inverse .btn-link:focus {\n color: #fff;\n}\n.navbar-inverse .btn-link[disabled]:hover,\nfieldset[disabled] .navbar-inverse .btn-link:hover,\n.navbar-inverse .btn-link[disabled]:focus,\nfieldset[disabled] .navbar-inverse .btn-link:focus {\n color: #444;\n}\n.breadcrumb {\n padding: 8px 15px;\n margin-bottom: 20px;\n list-style: none;\n background-color: #f5f5f5;\n border-radius: 4px;\n}\n.breadcrumb > li {\n display: inline-block;\n}\n.breadcrumb > li + li:before {\n content: \"/\\00a0\";\n padding: 0 5px;\n color: #ccc;\n}\n.breadcrumb > .active {\n color: #777777;\n}\n.pagination {\n display: inline-block;\n padding-left: 0;\n margin: 20px 0;\n border-radius: 4px;\n}\n.pagination > li {\n display: inline;\n}\n.pagination > li > a,\n.pagination > li > span {\n position: relative;\n float: left;\n padding: 6px 12px;\n line-height: 1.42857143;\n text-decoration: none;\n color: #337ab7;\n background-color: #fff;\n border: 1px solid #ddd;\n margin-left: -1px;\n}\n.pagination > li:first-child > a,\n.pagination > li:first-child > span {\n margin-left: 0;\n border-bottom-left-radius: 4px;\n border-top-left-radius: 4px;\n}\n.pagination > li:last-child > a,\n.pagination > li:last-child > span {\n border-bottom-right-radius: 4px;\n border-top-right-radius: 4px;\n}\n.pagination > li > a:hover,\n.pagination > li > span:hover,\n.pagination > li > a:focus,\n.pagination > li > span:focus {\n z-index: 2;\n color: #23527c;\n background-color: #eeeeee;\n border-color: #ddd;\n}\n.pagination > .active > a,\n.pagination > .active > span,\n.pagination > .active > a:hover,\n.pagination > .active > span:hover,\n.pagination > .active > a:focus,\n.pagination > .active > span:focus {\n z-index: 3;\n color: #fff;\n background-color: #337ab7;\n border-color: #337ab7;\n cursor: default;\n}\n.pagination > .disabled > span,\n.pagination > .disabled > span:hover,\n.pagination > .disabled > span:focus,\n.pagination > .disabled > a,\n.pagination > .disabled > a:hover,\n.pagination > .disabled > a:focus {\n color: #777777;\n background-color: #fff;\n border-color: #ddd;\n cursor: not-allowed;\n}\n.pagination-lg > li > a,\n.pagination-lg > li > span {\n padding: 10px 16px;\n font-size: 18px;\n line-height: 1.3333333;\n}\n.pagination-lg > li:first-child > a,\n.pagination-lg > li:first-child > span {\n border-bottom-left-radius: 6px;\n border-top-left-radius: 6px;\n}\n.pagination-lg > li:last-child > a,\n.pagination-lg > li:last-child > span {\n border-bottom-right-radius: 6px;\n border-top-right-radius: 6px;\n}\n.pagination-sm > li > a,\n.pagination-sm > li > span {\n padding: 5px 10px;\n font-size: 12px;\n line-height: 1.5;\n}\n.pagination-sm > li:first-child > a,\n.pagination-sm > li:first-child > span {\n border-bottom-left-radius: 3px;\n border-top-left-radius: 3px;\n}\n.pagination-sm > li:last-child > a,\n.pagination-sm > li:last-child > span {\n border-bottom-right-radius: 3px;\n border-top-right-radius: 3px;\n}\n.pager {\n padding-left: 0;\n margin: 20px 0;\n list-style: none;\n text-align: center;\n}\n.pager li {\n display: inline;\n}\n.pager li > a,\n.pager li > span {\n display: inline-block;\n padding: 5px 14px;\n background-color: #fff;\n border: 1px solid #ddd;\n border-radius: 15px;\n}\n.pager li > a:hover,\n.pager li > a:focus {\n text-decoration: none;\n background-color: #eeeeee;\n}\n.pager .next > a,\n.pager .next > span {\n float: right;\n}\n.pager .previous > a,\n.pager .previous > span {\n float: left;\n}\n.pager .disabled > a,\n.pager .disabled > a:hover,\n.pager .disabled > a:focus,\n.pager .disabled > span {\n color: #777777;\n background-color: #fff;\n cursor: not-allowed;\n}\n.label {\n display: inline;\n padding: .2em .6em .3em;\n font-size: 75%;\n font-weight: bold;\n line-height: 1;\n color: #fff;\n text-align: center;\n white-space: nowrap;\n vertical-align: baseline;\n border-radius: .25em;\n}\na.label:hover,\na.label:focus {\n color: #fff;\n text-decoration: none;\n cursor: pointer;\n}\n.label:empty {\n display: none;\n}\n.btn .label {\n position: relative;\n top: -1px;\n}\n.label-default {\n background-color: #777777;\n}\n.label-default[href]:hover,\n.label-default[href]:focus {\n background-color: #5e5e5e;\n}\n.label-primary {\n background-color: #337ab7;\n}\n.label-primary[href]:hover,\n.label-primary[href]:focus {\n background-color: #286090;\n}\n.label-success {\n background-color: #5cb85c;\n}\n.label-success[href]:hover,\n.label-success[href]:focus {\n background-color: #449d44;\n}\n.label-info {\n background-color: #5bc0de;\n}\n.label-info[href]:hover,\n.label-info[href]:focus {\n background-color: #31b0d5;\n}\n.label-warning {\n background-color: #f0ad4e;\n}\n.label-warning[href]:hover,\n.label-warning[href]:focus {\n background-color: #ec971f;\n}\n.label-danger {\n background-color: #d9534f;\n}\n.label-danger[href]:hover,\n.label-danger[href]:focus {\n background-color: #c9302c;\n}\n.badge {\n display: inline-block;\n min-width: 10px;\n padding: 3px 7px;\n font-size: 12px;\n font-weight: bold;\n color: #fff;\n line-height: 1;\n vertical-align: middle;\n white-space: nowrap;\n text-align: center;\n background-color: #777777;\n border-radius: 10px;\n}\n.badge:empty {\n display: none;\n}\n.btn .badge {\n position: relative;\n top: -1px;\n}\n.btn-xs .badge,\n.btn-group-xs > .btn .badge {\n top: 0;\n padding: 1px 5px;\n}\na.badge:hover,\na.badge:focus {\n color: #fff;\n text-decoration: none;\n cursor: pointer;\n}\n.list-group-item.active > .badge,\n.nav-pills > .active > a > .badge {\n color: #337ab7;\n background-color: #fff;\n}\n.list-group-item > .badge {\n float: right;\n}\n.list-group-item > .badge + .badge {\n margin-right: 5px;\n}\n.nav-pills > li > a > .badge {\n margin-left: 3px;\n}\n.jumbotron {\n padding-top: 30px;\n padding-bottom: 30px;\n margin-bottom: 30px;\n color: inherit;\n background-color: #eeeeee;\n}\n.jumbotron h1,\n.jumbotron .h1 {\n color: inherit;\n}\n.jumbotron p {\n margin-bottom: 15px;\n font-size: 21px;\n font-weight: 200;\n}\n.jumbotron > hr {\n border-top-color: #d5d5d5;\n}\n.container .jumbotron,\n.container-fluid .jumbotron {\n border-radius: 6px;\n padding-left: 15px;\n padding-right: 15px;\n}\n.jumbotron .container {\n max-width: 100%;\n}\n@media screen and (min-width: 768px) {\n .jumbotron {\n padding-top: 48px;\n padding-bottom: 48px;\n }\n .container .jumbotron,\n .container-fluid .jumbotron {\n padding-left: 60px;\n padding-right: 60px;\n }\n .jumbotron h1,\n .jumbotron .h1 {\n font-size: 63px;\n }\n}\n.thumbnail {\n display: block;\n padding: 4px;\n margin-bottom: 20px;\n line-height: 1.42857143;\n background-color: #fff;\n border: 1px solid #ddd;\n border-radius: 4px;\n -webkit-transition: border 0.2s ease-in-out;\n -o-transition: border 0.2s ease-in-out;\n transition: border 0.2s ease-in-out;\n}\n.thumbnail > img,\n.thumbnail a > img {\n margin-left: auto;\n margin-right: auto;\n}\na.thumbnail:hover,\na.thumbnail:focus,\na.thumbnail.active {\n border-color: #337ab7;\n}\n.thumbnail .caption {\n padding: 9px;\n color: #333333;\n}\n.alert {\n padding: 15px;\n margin-bottom: 20px;\n border: 1px solid transparent;\n border-radius: 4px;\n}\n.alert h4 {\n margin-top: 0;\n color: inherit;\n}\n.alert .alert-link {\n font-weight: bold;\n}\n.alert > p,\n.alert > ul {\n margin-bottom: 0;\n}\n.alert > p + p {\n margin-top: 5px;\n}\n.alert-dismissable,\n.alert-dismissible {\n padding-right: 35px;\n}\n.alert-dismissable .close,\n.alert-dismissible .close {\n position: relative;\n top: -2px;\n right: -21px;\n color: inherit;\n}\n.alert-success {\n background-color: #dff0d8;\n border-color: #d6e9c6;\n color: #3c763d;\n}\n.alert-success hr {\n border-top-color: #c9e2b3;\n}\n.alert-success .alert-link {\n color: #2b542c;\n}\n.alert-info {\n background-color: #d9edf7;\n border-color: #bce8f1;\n color: #31708f;\n}\n.alert-info hr {\n border-top-color: #a6e1ec;\n}\n.alert-info .alert-link {\n color: #245269;\n}\n.alert-warning {\n background-color: #fcf8e3;\n border-color: #faebcc;\n color: #8a6d3b;\n}\n.alert-warning hr {\n border-top-color: #f7e1b5;\n}\n.alert-warning .alert-link {\n color: #66512c;\n}\n.alert-danger {\n background-color: #f2dede;\n border-color: #ebccd1;\n color: #a94442;\n}\n.alert-danger hr {\n border-top-color: #e4b9c0;\n}\n.alert-danger .alert-link {\n color: #843534;\n}\n@-webkit-keyframes progress-bar-stripes {\n from {\n background-position: 40px 0;\n }\n to {\n background-position: 0 0;\n }\n}\n@keyframes progress-bar-stripes {\n from {\n background-position: 40px 0;\n }\n to {\n background-position: 0 0;\n }\n}\n.progress {\n overflow: hidden;\n height: 20px;\n margin-bottom: 20px;\n background-color: #f5f5f5;\n border-radius: 4px;\n -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);\n}\n.progress-bar {\n float: left;\n width: 0%;\n height: 100%;\n font-size: 12px;\n line-height: 20px;\n color: #fff;\n text-align: center;\n background-color: #337ab7;\n -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);\n box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);\n -webkit-transition: width 0.6s ease;\n -o-transition: width 0.6s ease;\n transition: width 0.6s ease;\n}\n.progress-striped .progress-bar,\n.progress-bar-striped {\n background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-size: 40px 40px;\n}\n.progress.active .progress-bar,\n.progress-bar.active {\n -webkit-animation: progress-bar-stripes 2s linear infinite;\n -o-animation: progress-bar-stripes 2s linear infinite;\n animation: progress-bar-stripes 2s linear infinite;\n}\n.progress-bar-success {\n background-color: #5cb85c;\n}\n.progress-striped .progress-bar-success {\n background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n}\n.progress-bar-info {\n background-color: #5bc0de;\n}\n.progress-striped .progress-bar-info {\n background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n}\n.progress-bar-warning {\n background-color: #f0ad4e;\n}\n.progress-striped .progress-bar-warning {\n background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n}\n.progress-bar-danger {\n background-color: #d9534f;\n}\n.progress-striped .progress-bar-danger {\n background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n}\n.media {\n margin-top: 15px;\n}\n.media:first-child {\n margin-top: 0;\n}\n.media,\n.media-body {\n zoom: 1;\n overflow: hidden;\n}\n.media-body {\n width: 10000px;\n}\n.media-object {\n display: block;\n}\n.media-object.img-thumbnail {\n max-width: none;\n}\n.media-right,\n.media > .pull-right {\n padding-left: 10px;\n}\n.media-left,\n.media > .pull-left {\n padding-right: 10px;\n}\n.media-left,\n.media-right,\n.media-body {\n display: table-cell;\n vertical-align: top;\n}\n.media-middle {\n vertical-align: middle;\n}\n.media-bottom {\n vertical-align: bottom;\n}\n.media-heading {\n margin-top: 0;\n margin-bottom: 5px;\n}\n.media-list {\n padding-left: 0;\n list-style: none;\n}\n.list-group {\n margin-bottom: 20px;\n padding-left: 0;\n}\n.list-group-item {\n position: relative;\n display: block;\n padding: 10px 15px;\n margin-bottom: -1px;\n background-color: #fff;\n border: 1px solid #ddd;\n}\n.list-group-item:first-child {\n border-top-right-radius: 4px;\n border-top-left-radius: 4px;\n}\n.list-group-item:last-child {\n margin-bottom: 0;\n border-bottom-right-radius: 4px;\n border-bottom-left-radius: 4px;\n}\na.list-group-item,\nbutton.list-group-item {\n color: #555;\n}\na.list-group-item .list-group-item-heading,\nbutton.list-group-item .list-group-item-heading {\n color: #333;\n}\na.list-group-item:hover,\nbutton.list-group-item:hover,\na.list-group-item:focus,\nbutton.list-group-item:focus {\n text-decoration: none;\n color: #555;\n background-color: #f5f5f5;\n}\nbutton.list-group-item {\n width: 100%;\n text-align: left;\n}\n.list-group-item.disabled,\n.list-group-item.disabled:hover,\n.list-group-item.disabled:focus {\n background-color: #eeeeee;\n color: #777777;\n cursor: not-allowed;\n}\n.list-group-item.disabled .list-group-item-heading,\n.list-group-item.disabled:hover .list-group-item-heading,\n.list-group-item.disabled:focus .list-group-item-heading {\n color: inherit;\n}\n.list-group-item.disabled .list-group-item-text,\n.list-group-item.disabled:hover .list-group-item-text,\n.list-group-item.disabled:focus .list-group-item-text {\n color: #777777;\n}\n.list-group-item.active,\n.list-group-item.active:hover,\n.list-group-item.active:focus {\n z-index: 2;\n color: #fff;\n background-color: #337ab7;\n border-color: #337ab7;\n}\n.list-group-item.active .list-group-item-heading,\n.list-group-item.active:hover .list-group-item-heading,\n.list-group-item.active:focus .list-group-item-heading,\n.list-group-item.active .list-group-item-heading > small,\n.list-group-item.active:hover .list-group-item-heading > small,\n.list-group-item.active:focus .list-group-item-heading > small,\n.list-group-item.active .list-group-item-heading > .small,\n.list-group-item.active:hover .list-group-item-heading > .small,\n.list-group-item.active:focus .list-group-item-heading > .small {\n color: inherit;\n}\n.list-group-item.active .list-group-item-text,\n.list-group-item.active:hover .list-group-item-text,\n.list-group-item.active:focus .list-group-item-text {\n color: #c7ddef;\n}\n.list-group-item-success {\n color: #3c763d;\n background-color: #dff0d8;\n}\na.list-group-item-success,\nbutton.list-group-item-success {\n color: #3c763d;\n}\na.list-group-item-success .list-group-item-heading,\nbutton.list-group-item-success .list-group-item-heading {\n color: inherit;\n}\na.list-group-item-success:hover,\nbutton.list-group-item-success:hover,\na.list-group-item-success:focus,\nbutton.list-group-item-success:focus {\n color: #3c763d;\n background-color: #d0e9c6;\n}\na.list-group-item-success.active,\nbutton.list-group-item-success.active,\na.list-group-item-success.active:hover,\nbutton.list-group-item-success.active:hover,\na.list-group-item-success.active:focus,\nbutton.list-group-item-success.active:focus {\n color: #fff;\n background-color: #3c763d;\n border-color: #3c763d;\n}\n.list-group-item-info {\n color: #31708f;\n background-color: #d9edf7;\n}\na.list-group-item-info,\nbutton.list-group-item-info {\n color: #31708f;\n}\na.list-group-item-info .list-group-item-heading,\nbutton.list-group-item-info .list-group-item-heading {\n color: inherit;\n}\na.list-group-item-info:hover,\nbutton.list-group-item-info:hover,\na.list-group-item-info:focus,\nbutton.list-group-item-info:focus {\n color: #31708f;\n background-color: #c4e3f3;\n}\na.list-group-item-info.active,\nbutton.list-group-item-info.active,\na.list-group-item-info.active:hover,\nbutton.list-group-item-info.active:hover,\na.list-group-item-info.active:focus,\nbutton.list-group-item-info.active:focus {\n color: #fff;\n background-color: #31708f;\n border-color: #31708f;\n}\n.list-group-item-warning {\n color: #8a6d3b;\n background-color: #fcf8e3;\n}\na.list-group-item-warning,\nbutton.list-group-item-warning {\n color: #8a6d3b;\n}\na.list-group-item-warning .list-group-item-heading,\nbutton.list-group-item-warning .list-group-item-heading {\n color: inherit;\n}\na.list-group-item-warning:hover,\nbutton.list-group-item-warning:hover,\na.list-group-item-warning:focus,\nbutton.list-group-item-warning:focus {\n color: #8a6d3b;\n background-color: #faf2cc;\n}\na.list-group-item-warning.active,\nbutton.list-group-item-warning.active,\na.list-group-item-warning.active:hover,\nbutton.list-group-item-warning.active:hover,\na.list-group-item-warning.active:focus,\nbutton.list-group-item-warning.active:focus {\n color: #fff;\n background-color: #8a6d3b;\n border-color: #8a6d3b;\n}\n.list-group-item-danger {\n color: #a94442;\n background-color: #f2dede;\n}\na.list-group-item-danger,\nbutton.list-group-item-danger {\n color: #a94442;\n}\na.list-group-item-danger .list-group-item-heading,\nbutton.list-group-item-danger .list-group-item-heading {\n color: inherit;\n}\na.list-group-item-danger:hover,\nbutton.list-group-item-danger:hover,\na.list-group-item-danger:focus,\nbutton.list-group-item-danger:focus {\n color: #a94442;\n background-color: #ebcccc;\n}\na.list-group-item-danger.active,\nbutton.list-group-item-danger.active,\na.list-group-item-danger.active:hover,\nbutton.list-group-item-danger.active:hover,\na.list-group-item-danger.active:focus,\nbutton.list-group-item-danger.active:focus {\n color: #fff;\n background-color: #a94442;\n border-color: #a94442;\n}\n.list-group-item-heading {\n margin-top: 0;\n margin-bottom: 5px;\n}\n.list-group-item-text {\n margin-bottom: 0;\n line-height: 1.3;\n}\n.panel {\n margin-bottom: 20px;\n background-color: #fff;\n border: 1px solid transparent;\n border-radius: 4px;\n -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);\n box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);\n}\n.panel-body {\n padding: 15px;\n}\n.panel-heading {\n padding: 10px 15px;\n border-bottom: 1px solid transparent;\n border-top-right-radius: 3px;\n border-top-left-radius: 3px;\n}\n.panel-heading > .dropdown .dropdown-toggle {\n color: inherit;\n}\n.panel-title {\n margin-top: 0;\n margin-bottom: 0;\n font-size: 16px;\n color: inherit;\n}\n.panel-title > a,\n.panel-title > small,\n.panel-title > .small,\n.panel-title > small > a,\n.panel-title > .small > a {\n color: inherit;\n}\n.panel-footer {\n padding: 10px 15px;\n background-color: #f5f5f5;\n border-top: 1px solid #ddd;\n border-bottom-right-radius: 3px;\n border-bottom-left-radius: 3px;\n}\n.panel > .list-group,\n.panel > .panel-collapse > .list-group {\n margin-bottom: 0;\n}\n.panel > .list-group .list-group-item,\n.panel > .panel-collapse > .list-group .list-group-item {\n border-width: 1px 0;\n border-radius: 0;\n}\n.panel > .list-group:first-child .list-group-item:first-child,\n.panel > .panel-collapse > .list-group:first-child .list-group-item:first-child {\n border-top: 0;\n border-top-right-radius: 3px;\n border-top-left-radius: 3px;\n}\n.panel > .list-group:last-child .list-group-item:last-child,\n.panel > .panel-collapse > .list-group:last-child .list-group-item:last-child {\n border-bottom: 0;\n border-bottom-right-radius: 3px;\n border-bottom-left-radius: 3px;\n}\n.panel > .panel-heading + .panel-collapse > .list-group .list-group-item:first-child {\n border-top-right-radius: 0;\n border-top-left-radius: 0;\n}\n.panel-heading + .list-group .list-group-item:first-child {\n border-top-width: 0;\n}\n.list-group + .panel-footer {\n border-top-width: 0;\n}\n.panel > .table,\n.panel > .table-responsive > .table,\n.panel > .panel-collapse > .table {\n margin-bottom: 0;\n}\n.panel > .table caption,\n.panel > .table-responsive > .table caption,\n.panel > .panel-collapse > .table caption {\n padding-left: 15px;\n padding-right: 15px;\n}\n.panel > .table:first-child,\n.panel > .table-responsive:first-child > .table:first-child {\n border-top-right-radius: 3px;\n border-top-left-radius: 3px;\n}\n.panel > .table:first-child > thead:first-child > tr:first-child,\n.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child,\n.panel > .table:first-child > tbody:first-child > tr:first-child,\n.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child {\n border-top-left-radius: 3px;\n border-top-right-radius: 3px;\n}\n.panel > .table:first-child > thead:first-child > tr:first-child td:first-child,\n.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:first-child,\n.panel > .table:first-child > tbody:first-child > tr:first-child td:first-child,\n.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:first-child,\n.panel > .table:first-child > thead:first-child > tr:first-child th:first-child,\n.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:first-child,\n.panel > .table:first-child > tbody:first-child > tr:first-child th:first-child,\n.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:first-child {\n border-top-left-radius: 3px;\n}\n.panel > .table:first-child > thead:first-child > tr:first-child td:last-child,\n.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:last-child,\n.panel > .table:first-child > tbody:first-child > tr:first-child td:last-child,\n.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:last-child,\n.panel > .table:first-child > thead:first-child > tr:first-child th:last-child,\n.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:last-child,\n.panel > .table:first-child > tbody:first-child > tr:first-child th:last-child,\n.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:last-child {\n border-top-right-radius: 3px;\n}\n.panel > .table:last-child,\n.panel > .table-responsive:last-child > .table:last-child {\n border-bottom-right-radius: 3px;\n border-bottom-left-radius: 3px;\n}\n.panel > .table:last-child > tbody:last-child > tr:last-child,\n.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child,\n.panel > .table:last-child > tfoot:last-child > tr:last-child,\n.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child {\n border-bottom-left-radius: 3px;\n border-bottom-right-radius: 3px;\n}\n.panel > .table:last-child > tbody:last-child > tr:last-child td:first-child,\n.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:first-child,\n.panel > .table:last-child > tfoot:last-child > tr:last-child td:first-child,\n.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:first-child,\n.panel > .table:last-child > tbody:last-child > tr:last-child th:first-child,\n.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:first-child,\n.panel > .table:last-child > tfoot:last-child > tr:last-child th:first-child,\n.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:first-child {\n border-bottom-left-radius: 3px;\n}\n.panel > .table:last-child > tbody:last-child > tr:last-child td:last-child,\n.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:last-child,\n.panel > .table:last-child > tfoot:last-child > tr:last-child td:last-child,\n.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:last-child,\n.panel > .table:last-child > tbody:last-child > tr:last-child th:last-child,\n.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:last-child,\n.panel > .table:last-child > tfoot:last-child > tr:last-child th:last-child,\n.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:last-child {\n border-bottom-right-radius: 3px;\n}\n.panel > .panel-body + .table,\n.panel > .panel-body + .table-responsive,\n.panel > .table + .panel-body,\n.panel > .table-responsive + .panel-body {\n border-top: 1px solid #ddd;\n}\n.panel > .table > tbody:first-child > tr:first-child th,\n.panel > .table > tbody:first-child > tr:first-child td {\n border-top: 0;\n}\n.panel > .table-bordered,\n.panel > .table-responsive > .table-bordered {\n border: 0;\n}\n.panel > .table-bordered > thead > tr > th:first-child,\n.panel > .table-responsive > .table-bordered > thead > tr > th:first-child,\n.panel > .table-bordered > tbody > tr > th:first-child,\n.panel > .table-responsive > .table-bordered > tbody > tr > th:first-child,\n.panel > .table-bordered > tfoot > tr > th:first-child,\n.panel > .table-responsive > .table-bordered > tfoot > tr > th:first-child,\n.panel > .table-bordered > thead > tr > td:first-child,\n.panel > .table-responsive > .table-bordered > thead > tr > td:first-child,\n.panel > .table-bordered > tbody > tr > td:first-child,\n.panel > .table-responsive > .table-bordered > tbody > tr > td:first-child,\n.panel > .table-bordered > tfoot > tr > td:first-child,\n.panel > .table-responsive > .table-bordered > tfoot > tr > td:first-child {\n border-left: 0;\n}\n.panel > .table-bordered > thead > tr > th:last-child,\n.panel > .table-responsive > .table-bordered > thead > tr > th:last-child,\n.panel > .table-bordered > tbody > tr > th:last-child,\n.panel > .table-responsive > .table-bordered > tbody > tr > th:last-child,\n.panel > .table-bordered > tfoot > tr > th:last-child,\n.panel > .table-responsive > .table-bordered > tfoot > tr > th:last-child,\n.panel > .table-bordered > thead > tr > td:last-child,\n.panel > .table-responsive > .table-bordered > thead > tr > td:last-child,\n.panel > .table-bordered > tbody > tr > td:last-child,\n.panel > .table-responsive > .table-bordered > tbody > tr > td:last-child,\n.panel > .table-bordered > tfoot > tr > td:last-child,\n.panel > .table-responsive > .table-bordered > tfoot > tr > td:last-child {\n border-right: 0;\n}\n.panel > .table-bordered > thead > tr:first-child > td,\n.panel > .table-responsive > .table-bordered > thead > tr:first-child > td,\n.panel > .table-bordered > tbody > tr:first-child > td,\n.panel > .table-responsive > .table-bordered > tbody > tr:first-child > td,\n.panel > .table-bordered > thead > tr:first-child > th,\n.panel > .table-responsive > .table-bordered > thead > tr:first-child > th,\n.panel > .table-bordered > tbody > tr:first-child > th,\n.panel > .table-responsive > .table-bordered > tbody > tr:first-child > th {\n border-bottom: 0;\n}\n.panel > .table-bordered > tbody > tr:last-child > td,\n.panel > .table-responsive > .table-bordered > tbody > tr:last-child > td,\n.panel > .table-bordered > tfoot > tr:last-child > td,\n.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > td,\n.panel > .table-bordered > tbody > tr:last-child > th,\n.panel > .table-responsive > .table-bordered > tbody > tr:last-child > th,\n.panel > .table-bordered > tfoot > tr:last-child > th,\n.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > th {\n border-bottom: 0;\n}\n.panel > .table-responsive {\n border: 0;\n margin-bottom: 0;\n}\n.panel-group {\n margin-bottom: 20px;\n}\n.panel-group .panel {\n margin-bottom: 0;\n border-radius: 4px;\n}\n.panel-group .panel + .panel {\n margin-top: 5px;\n}\n.panel-group .panel-heading {\n border-bottom: 0;\n}\n.panel-group .panel-heading + .panel-collapse > .panel-body,\n.panel-group .panel-heading + .panel-collapse > .list-group {\n border-top: 1px solid #ddd;\n}\n.panel-group .panel-footer {\n border-top: 0;\n}\n.panel-group .panel-footer + .panel-collapse .panel-body {\n border-bottom: 1px solid #ddd;\n}\n.panel-default {\n border-color: #ddd;\n}\n.panel-default > .panel-heading {\n color: #333333;\n background-color: #f5f5f5;\n border-color: #ddd;\n}\n.panel-default > .panel-heading + .panel-collapse > .panel-body {\n border-top-color: #ddd;\n}\n.panel-default > .panel-heading .badge {\n color: #f5f5f5;\n background-color: #333333;\n}\n.panel-default > .panel-footer + .panel-collapse > .panel-body {\n border-bottom-color: #ddd;\n}\n.panel-primary {\n border-color: #337ab7;\n}\n.panel-primary > .panel-heading {\n color: #fff;\n background-color: #337ab7;\n border-color: #337ab7;\n}\n.panel-primary > .panel-heading + .panel-collapse > .panel-body {\n border-top-color: #337ab7;\n}\n.panel-primary > .panel-heading .badge {\n color: #337ab7;\n background-color: #fff;\n}\n.panel-primary > .panel-footer + .panel-collapse > .panel-body {\n border-bottom-color: #337ab7;\n}\n.panel-success {\n border-color: #d6e9c6;\n}\n.panel-success > .panel-heading {\n color: #3c763d;\n background-color: #dff0d8;\n border-color: #d6e9c6;\n}\n.panel-success > .panel-heading + .panel-collapse > .panel-body {\n border-top-color: #d6e9c6;\n}\n.panel-success > .panel-heading .badge {\n color: #dff0d8;\n background-color: #3c763d;\n}\n.panel-success > .panel-footer + .panel-collapse > .panel-body {\n border-bottom-color: #d6e9c6;\n}\n.panel-info {\n border-color: #bce8f1;\n}\n.panel-info > .panel-heading {\n color: #31708f;\n background-color: #d9edf7;\n border-color: #bce8f1;\n}\n.panel-info > .panel-heading + .panel-collapse > .panel-body {\n border-top-color: #bce8f1;\n}\n.panel-info > .panel-heading .badge {\n color: #d9edf7;\n background-color: #31708f;\n}\n.panel-info > .panel-footer + .panel-collapse > .panel-body {\n border-bottom-color: #bce8f1;\n}\n.panel-warning {\n border-color: #faebcc;\n}\n.panel-warning > .panel-heading {\n color: #8a6d3b;\n background-color: #fcf8e3;\n border-color: #faebcc;\n}\n.panel-warning > .panel-heading + .panel-collapse > .panel-body {\n border-top-color: #faebcc;\n}\n.panel-warning > .panel-heading .badge {\n color: #fcf8e3;\n background-color: #8a6d3b;\n}\n.panel-warning > .panel-footer + .panel-collapse > .panel-body {\n border-bottom-color: #faebcc;\n}\n.panel-danger {\n border-color: #ebccd1;\n}\n.panel-danger > .panel-heading {\n color: #a94442;\n background-color: #f2dede;\n border-color: #ebccd1;\n}\n.panel-danger > .panel-heading + .panel-collapse > .panel-body {\n border-top-color: #ebccd1;\n}\n.panel-danger > .panel-heading .badge {\n color: #f2dede;\n background-color: #a94442;\n}\n.panel-danger > .panel-footer + .panel-collapse > .panel-body {\n border-bottom-color: #ebccd1;\n}\n.embed-responsive {\n position: relative;\n display: block;\n height: 0;\n padding: 0;\n overflow: hidden;\n}\n.embed-responsive .embed-responsive-item,\n.embed-responsive iframe,\n.embed-responsive embed,\n.embed-responsive object,\n.embed-responsive video {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n height: 100%;\n width: 100%;\n border: 0;\n}\n.embed-responsive-16by9 {\n padding-bottom: 56.25%;\n}\n.embed-responsive-4by3 {\n padding-bottom: 75%;\n}\n.well {\n min-height: 20px;\n padding: 19px;\n margin-bottom: 20px;\n background-color: #f5f5f5;\n border: 1px solid #e3e3e3;\n border-radius: 4px;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);\n}\n.well blockquote {\n border-color: #ddd;\n border-color: rgba(0, 0, 0, 0.15);\n}\n.well-lg {\n padding: 24px;\n border-radius: 6px;\n}\n.well-sm {\n padding: 9px;\n border-radius: 3px;\n}\n.close {\n float: right;\n font-size: 21px;\n font-weight: bold;\n line-height: 1;\n color: #000;\n text-shadow: 0 1px 0 #fff;\n opacity: 0.2;\n filter: alpha(opacity=20);\n}\n.close:hover,\n.close:focus {\n color: #000;\n text-decoration: none;\n cursor: pointer;\n opacity: 0.5;\n filter: alpha(opacity=50);\n}\nbutton.close {\n padding: 0;\n cursor: pointer;\n background: transparent;\n border: 0;\n -webkit-appearance: none;\n}\n.modal-open {\n overflow: hidden;\n}\n.modal {\n display: none;\n overflow: hidden;\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1050;\n -webkit-overflow-scrolling: touch;\n outline: 0;\n}\n.modal.fade .modal-dialog {\n -webkit-transform: translate(0, -25%);\n -ms-transform: translate(0, -25%);\n -o-transform: translate(0, -25%);\n transform: translate(0, -25%);\n -webkit-transition: -webkit-transform 0.3s ease-out;\n -moz-transition: -moz-transform 0.3s ease-out;\n -o-transition: -o-transform 0.3s ease-out;\n transition: transform 0.3s ease-out;\n}\n.modal.in .modal-dialog {\n -webkit-transform: translate(0, 0);\n -ms-transform: translate(0, 0);\n -o-transform: translate(0, 0);\n transform: translate(0, 0);\n}\n.modal-open .modal {\n overflow-x: hidden;\n overflow-y: auto;\n}\n.modal-dialog {\n position: relative;\n width: auto;\n margin: 10px;\n}\n.modal-content {\n position: relative;\n background-color: #fff;\n border: 1px solid #999;\n border: 1px solid rgba(0, 0, 0, 0.2);\n border-radius: 6px;\n -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);\n box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);\n background-clip: padding-box;\n outline: 0;\n}\n.modal-backdrop {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1040;\n background-color: #000;\n}\n.modal-backdrop.fade {\n opacity: 0;\n filter: alpha(opacity=0);\n}\n.modal-backdrop.in {\n opacity: 0.5;\n filter: alpha(opacity=50);\n}\n.modal-header {\n padding: 15px;\n border-bottom: 1px solid #e5e5e5;\n}\n.modal-header .close {\n margin-top: -2px;\n}\n.modal-title {\n margin: 0;\n line-height: 1.42857143;\n}\n.modal-body {\n position: relative;\n padding: 15px;\n}\n.modal-footer {\n padding: 15px;\n text-align: right;\n border-top: 1px solid #e5e5e5;\n}\n.modal-footer .btn + .btn {\n margin-left: 5px;\n margin-bottom: 0;\n}\n.modal-footer .btn-group .btn + .btn {\n margin-left: -1px;\n}\n.modal-footer .btn-block + .btn-block {\n margin-left: 0;\n}\n.modal-scrollbar-measure {\n position: absolute;\n top: -9999px;\n width: 50px;\n height: 50px;\n overflow: scroll;\n}\n@media (min-width: 768px) {\n .modal-dialog {\n width: 600px;\n margin: 30px auto;\n }\n .modal-content {\n -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);\n box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);\n }\n .modal-sm {\n width: 300px;\n }\n}\n@media (min-width: 992px) {\n .modal-lg {\n width: 900px;\n }\n}\n.tooltip {\n position: absolute;\n z-index: 1070;\n display: block;\n font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n font-style: normal;\n font-weight: normal;\n letter-spacing: normal;\n line-break: auto;\n line-height: 1.42857143;\n text-align: left;\n text-align: start;\n text-decoration: none;\n text-shadow: none;\n text-transform: none;\n white-space: normal;\n word-break: normal;\n word-spacing: normal;\n word-wrap: normal;\n font-size: 12px;\n opacity: 0;\n filter: alpha(opacity=0);\n}\n.tooltip.in {\n opacity: 0.9;\n filter: alpha(opacity=90);\n}\n.tooltip.top {\n margin-top: -3px;\n padding: 5px 0;\n}\n.tooltip.right {\n margin-left: 3px;\n padding: 0 5px;\n}\n.tooltip.bottom {\n margin-top: 3px;\n padding: 5px 0;\n}\n.tooltip.left {\n margin-left: -3px;\n padding: 0 5px;\n}\n.tooltip-inner {\n max-width: 200px;\n padding: 3px 8px;\n color: #fff;\n text-align: center;\n background-color: #000;\n border-radius: 4px;\n}\n.tooltip-arrow {\n position: absolute;\n width: 0;\n height: 0;\n border-color: transparent;\n border-style: solid;\n}\n.tooltip.top .tooltip-arrow {\n bottom: 0;\n left: 50%;\n margin-left: -5px;\n border-width: 5px 5px 0;\n border-top-color: #000;\n}\n.tooltip.top-left .tooltip-arrow {\n bottom: 0;\n right: 5px;\n margin-bottom: -5px;\n border-width: 5px 5px 0;\n border-top-color: #000;\n}\n.tooltip.top-right .tooltip-arrow {\n bottom: 0;\n left: 5px;\n margin-bottom: -5px;\n border-width: 5px 5px 0;\n border-top-color: #000;\n}\n.tooltip.right .tooltip-arrow {\n top: 50%;\n left: 0;\n margin-top: -5px;\n border-width: 5px 5px 5px 0;\n border-right-color: #000;\n}\n.tooltip.left .tooltip-arrow {\n top: 50%;\n right: 0;\n margin-top: -5px;\n border-width: 5px 0 5px 5px;\n border-left-color: #000;\n}\n.tooltip.bottom .tooltip-arrow {\n top: 0;\n left: 50%;\n margin-left: -5px;\n border-width: 0 5px 5px;\n border-bottom-color: #000;\n}\n.tooltip.bottom-left .tooltip-arrow {\n top: 0;\n right: 5px;\n margin-top: -5px;\n border-width: 0 5px 5px;\n border-bottom-color: #000;\n}\n.tooltip.bottom-right .tooltip-arrow {\n top: 0;\n left: 5px;\n margin-top: -5px;\n border-width: 0 5px 5px;\n border-bottom-color: #000;\n}\n.popover {\n position: absolute;\n top: 0;\n left: 0;\n z-index: 1060;\n display: none;\n max-width: 276px;\n padding: 1px;\n font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n font-style: normal;\n font-weight: normal;\n letter-spacing: normal;\n line-break: auto;\n line-height: 1.42857143;\n text-align: left;\n text-align: start;\n text-decoration: none;\n text-shadow: none;\n text-transform: none;\n white-space: normal;\n word-break: normal;\n word-spacing: normal;\n word-wrap: normal;\n font-size: 14px;\n background-color: #fff;\n background-clip: padding-box;\n border: 1px solid #ccc;\n border: 1px solid rgba(0, 0, 0, 0.2);\n border-radius: 6px;\n -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);\n box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);\n}\n.popover.top {\n margin-top: -10px;\n}\n.popover.right {\n margin-left: 10px;\n}\n.popover.bottom {\n margin-top: 10px;\n}\n.popover.left {\n margin-left: -10px;\n}\n.popover-title {\n margin: 0;\n padding: 8px 14px;\n font-size: 14px;\n background-color: #f7f7f7;\n border-bottom: 1px solid #ebebeb;\n border-radius: 5px 5px 0 0;\n}\n.popover-content {\n padding: 9px 14px;\n}\n.popover > .arrow,\n.popover > .arrow:after {\n position: absolute;\n display: block;\n width: 0;\n height: 0;\n border-color: transparent;\n border-style: solid;\n}\n.popover > .arrow {\n border-width: 11px;\n}\n.popover > .arrow:after {\n border-width: 10px;\n content: \"\";\n}\n.popover.top > .arrow {\n left: 50%;\n margin-left: -11px;\n border-bottom-width: 0;\n border-top-color: #999999;\n border-top-color: rgba(0, 0, 0, 0.25);\n bottom: -11px;\n}\n.popover.top > .arrow:after {\n content: \" \";\n bottom: 1px;\n margin-left: -10px;\n border-bottom-width: 0;\n border-top-color: #fff;\n}\n.popover.right > .arrow {\n top: 50%;\n left: -11px;\n margin-top: -11px;\n border-left-width: 0;\n border-right-color: #999999;\n border-right-color: rgba(0, 0, 0, 0.25);\n}\n.popover.right > .arrow:after {\n content: \" \";\n left: 1px;\n bottom: -10px;\n border-left-width: 0;\n border-right-color: #fff;\n}\n.popover.bottom > .arrow {\n left: 50%;\n margin-left: -11px;\n border-top-width: 0;\n border-bottom-color: #999999;\n border-bottom-color: rgba(0, 0, 0, 0.25);\n top: -11px;\n}\n.popover.bottom > .arrow:after {\n content: \" \";\n top: 1px;\n margin-left: -10px;\n border-top-width: 0;\n border-bottom-color: #fff;\n}\n.popover.left > .arrow {\n top: 50%;\n right: -11px;\n margin-top: -11px;\n border-right-width: 0;\n border-left-color: #999999;\n border-left-color: rgba(0, 0, 0, 0.25);\n}\n.popover.left > .arrow:after {\n content: \" \";\n right: 1px;\n border-right-width: 0;\n border-left-color: #fff;\n bottom: -10px;\n}\n.carousel {\n position: relative;\n}\n.carousel-inner {\n position: relative;\n overflow: hidden;\n width: 100%;\n}\n.carousel-inner > .item {\n display: none;\n position: relative;\n -webkit-transition: 0.6s ease-in-out left;\n -o-transition: 0.6s ease-in-out left;\n transition: 0.6s ease-in-out left;\n}\n.carousel-inner > .item > img,\n.carousel-inner > .item > a > img {\n line-height: 1;\n}\n@media all and (transform-3d), (-webkit-transform-3d) {\n .carousel-inner > .item {\n -webkit-transition: -webkit-transform 0.6s ease-in-out;\n -moz-transition: -moz-transform 0.6s ease-in-out;\n -o-transition: -o-transform 0.6s ease-in-out;\n transition: transform 0.6s ease-in-out;\n -webkit-backface-visibility: hidden;\n -moz-backface-visibility: hidden;\n backface-visibility: hidden;\n -webkit-perspective: 1000px;\n -moz-perspective: 1000px;\n perspective: 1000px;\n }\n .carousel-inner > .item.next,\n .carousel-inner > .item.active.right {\n -webkit-transform: translate3d(100%, 0, 0);\n transform: translate3d(100%, 0, 0);\n left: 0;\n }\n .carousel-inner > .item.prev,\n .carousel-inner > .item.active.left {\n -webkit-transform: translate3d(-100%, 0, 0);\n transform: translate3d(-100%, 0, 0);\n left: 0;\n }\n .carousel-inner > .item.next.left,\n .carousel-inner > .item.prev.right,\n .carousel-inner > .item.active {\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n left: 0;\n }\n}\n.carousel-inner > .active,\n.carousel-inner > .next,\n.carousel-inner > .prev {\n display: block;\n}\n.carousel-inner > .active {\n left: 0;\n}\n.carousel-inner > .next,\n.carousel-inner > .prev {\n position: absolute;\n top: 0;\n width: 100%;\n}\n.carousel-inner > .next {\n left: 100%;\n}\n.carousel-inner > .prev {\n left: -100%;\n}\n.carousel-inner > .next.left,\n.carousel-inner > .prev.right {\n left: 0;\n}\n.carousel-inner > .active.left {\n left: -100%;\n}\n.carousel-inner > .active.right {\n left: 100%;\n}\n.carousel-control {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 15%;\n opacity: 0.5;\n filter: alpha(opacity=50);\n font-size: 20px;\n color: #fff;\n text-align: center;\n text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);\n background-color: rgba(0, 0, 0, 0);\n}\n.carousel-control.left {\n background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%);\n background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%);\n background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1);\n}\n.carousel-control.right {\n left: auto;\n right: 0;\n background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%);\n background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%);\n background-image: linear-gradient(to right, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1);\n}\n.carousel-control:hover,\n.carousel-control:focus {\n outline: 0;\n color: #fff;\n text-decoration: none;\n opacity: 0.9;\n filter: alpha(opacity=90);\n}\n.carousel-control .icon-prev,\n.carousel-control .icon-next,\n.carousel-control .glyphicon-chevron-left,\n.carousel-control .glyphicon-chevron-right {\n position: absolute;\n top: 50%;\n margin-top: -10px;\n z-index: 5;\n display: inline-block;\n}\n.carousel-control .icon-prev,\n.carousel-control .glyphicon-chevron-left {\n left: 50%;\n margin-left: -10px;\n}\n.carousel-control .icon-next,\n.carousel-control .glyphicon-chevron-right {\n right: 50%;\n margin-right: -10px;\n}\n.carousel-control .icon-prev,\n.carousel-control .icon-next {\n width: 20px;\n height: 20px;\n line-height: 1;\n font-family: serif;\n}\n.carousel-control .icon-prev:before {\n content: '\\2039';\n}\n.carousel-control .icon-next:before {\n content: '\\203a';\n}\n.carousel-indicators {\n position: absolute;\n bottom: 10px;\n left: 50%;\n z-index: 15;\n width: 60%;\n margin-left: -30%;\n padding-left: 0;\n list-style: none;\n text-align: center;\n}\n.carousel-indicators li {\n display: inline-block;\n width: 10px;\n height: 10px;\n margin: 1px;\n text-indent: -999px;\n border: 1px solid #fff;\n border-radius: 10px;\n cursor: pointer;\n background-color: #000 \\9;\n background-color: rgba(0, 0, 0, 0);\n}\n.carousel-indicators .active {\n margin: 0;\n width: 12px;\n height: 12px;\n background-color: #fff;\n}\n.carousel-caption {\n position: absolute;\n left: 15%;\n right: 15%;\n bottom: 20px;\n z-index: 10;\n padding-top: 20px;\n padding-bottom: 20px;\n color: #fff;\n text-align: center;\n text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);\n}\n.carousel-caption .btn {\n text-shadow: none;\n}\n@media screen and (min-width: 768px) {\n .carousel-control .glyphicon-chevron-left,\n .carousel-control .glyphicon-chevron-right,\n .carousel-control .icon-prev,\n .carousel-control .icon-next {\n width: 30px;\n height: 30px;\n margin-top: -10px;\n font-size: 30px;\n }\n .carousel-control .glyphicon-chevron-left,\n .carousel-control .icon-prev {\n margin-left: -10px;\n }\n .carousel-control .glyphicon-chevron-right,\n .carousel-control .icon-next {\n margin-right: -10px;\n }\n .carousel-caption {\n left: 20%;\n right: 20%;\n padding-bottom: 30px;\n }\n .carousel-indicators {\n bottom: 20px;\n }\n}\n.clearfix:before,\n.clearfix:after,\n.dl-horizontal dd:before,\n.dl-horizontal dd:after,\n.container:before,\n.container:after,\n.container-fluid:before,\n.container-fluid:after,\n.row:before,\n.row:after,\n.form-horizontal .form-group:before,\n.form-horizontal .form-group:after,\n.btn-toolbar:before,\n.btn-toolbar:after,\n.btn-group-vertical > .btn-group:before,\n.btn-group-vertical > .btn-group:after,\n.nav:before,\n.nav:after,\n.navbar:before,\n.navbar:after,\n.navbar-header:before,\n.navbar-header:after,\n.navbar-collapse:before,\n.navbar-collapse:after,\n.pager:before,\n.pager:after,\n.panel-body:before,\n.panel-body:after,\n.modal-header:before,\n.modal-header:after,\n.modal-footer:before,\n.modal-footer:after {\n content: \" \";\n display: table;\n}\n.clearfix:after,\n.dl-horizontal dd:after,\n.container:after,\n.container-fluid:after,\n.row:after,\n.form-horizontal .form-group:after,\n.btn-toolbar:after,\n.btn-group-vertical > .btn-group:after,\n.nav:after,\n.navbar:after,\n.navbar-header:after,\n.navbar-collapse:after,\n.pager:after,\n.panel-body:after,\n.modal-header:after,\n.modal-footer:after {\n clear: both;\n}\n.center-block {\n display: block;\n margin-left: auto;\n margin-right: auto;\n}\n.pull-right {\n float: right !important;\n}\n.pull-left {\n float: left !important;\n}\n.hide {\n display: none !important;\n}\n.show {\n display: block !important;\n}\n.invisible {\n visibility: hidden;\n}\n.text-hide {\n font: 0/0 a;\n color: transparent;\n text-shadow: none;\n background-color: transparent;\n border: 0;\n}\n.hidden {\n display: none !important;\n}\n.affix {\n position: fixed;\n}\n@-ms-viewport {\n width: device-width;\n}\n.visible-xs,\n.visible-sm,\n.visible-md,\n.visible-lg {\n display: none !important;\n}\n.visible-xs-block,\n.visible-xs-inline,\n.visible-xs-inline-block,\n.visible-sm-block,\n.visible-sm-inline,\n.visible-sm-inline-block,\n.visible-md-block,\n.visible-md-inline,\n.visible-md-inline-block,\n.visible-lg-block,\n.visible-lg-inline,\n.visible-lg-inline-block {\n display: none !important;\n}\n@media (max-width: 767px) {\n .visible-xs {\n display: block !important;\n }\n table.visible-xs {\n display: table !important;\n }\n tr.visible-xs {\n display: table-row !important;\n }\n th.visible-xs,\n td.visible-xs {\n display: table-cell !important;\n }\n}\n@media (max-width: 767px) {\n .visible-xs-block {\n display: block !important;\n }\n}\n@media (max-width: 767px) {\n .visible-xs-inline {\n display: inline !important;\n }\n}\n@media (max-width: 767px) {\n .visible-xs-inline-block {\n display: inline-block !important;\n }\n}\n@media (min-width: 768px) and (max-width: 991px) {\n .visible-sm {\n display: block !important;\n }\n table.visible-sm {\n display: table !important;\n }\n tr.visible-sm {\n display: table-row !important;\n }\n th.visible-sm,\n td.visible-sm {\n display: table-cell !important;\n }\n}\n@media (min-width: 768px) and (max-width: 991px) {\n .visible-sm-block {\n display: block !important;\n }\n}\n@media (min-width: 768px) and (max-width: 991px) {\n .visible-sm-inline {\n display: inline !important;\n }\n}\n@media (min-width: 768px) and (max-width: 991px) {\n .visible-sm-inline-block {\n display: inline-block !important;\n }\n}\n@media (min-width: 992px) and (max-width: 1199px) {\n .visible-md {\n display: block !important;\n }\n table.visible-md {\n display: table !important;\n }\n tr.visible-md {\n display: table-row !important;\n }\n th.visible-md,\n td.visible-md {\n display: table-cell !important;\n }\n}\n@media (min-width: 992px) and (max-width: 1199px) {\n .visible-md-block {\n display: block !important;\n }\n}\n@media (min-width: 992px) and (max-width: 1199px) {\n .visible-md-inline {\n display: inline !important;\n }\n}\n@media (min-width: 992px) and (max-width: 1199px) {\n .visible-md-inline-block {\n display: inline-block !important;\n }\n}\n@media (min-width: 1200px) {\n .visible-lg {\n display: block !important;\n }\n table.visible-lg {\n display: table !important;\n }\n tr.visible-lg {\n display: table-row !important;\n }\n th.visible-lg,\n td.visible-lg {\n display: table-cell !important;\n }\n}\n@media (min-width: 1200px) {\n .visible-lg-block {\n display: block !important;\n }\n}\n@media (min-width: 1200px) {\n .visible-lg-inline {\n display: inline !important;\n }\n}\n@media (min-width: 1200px) {\n .visible-lg-inline-block {\n display: inline-block !important;\n }\n}\n@media (max-width: 767px) {\n .hidden-xs {\n display: none !important;\n }\n}\n@media (min-width: 768px) and (max-width: 991px) {\n .hidden-sm {\n display: none !important;\n }\n}\n@media (min-width: 992px) and (max-width: 1199px) {\n .hidden-md {\n display: none !important;\n }\n}\n@media (min-width: 1200px) {\n .hidden-lg {\n display: none !important;\n }\n}\n.visible-print {\n display: none !important;\n}\n@media print {\n .visible-print {\n display: block !important;\n }\n table.visible-print {\n display: table !important;\n }\n tr.visible-print {\n display: table-row !important;\n }\n th.visible-print,\n td.visible-print {\n display: table-cell !important;\n }\n}\n.visible-print-block {\n display: none !important;\n}\n@media print {\n .visible-print-block {\n display: block !important;\n }\n}\n.visible-print-inline {\n display: none !important;\n}\n@media print {\n .visible-print-inline {\n display: inline !important;\n }\n}\n.visible-print-inline-block {\n display: none !important;\n}\n@media print {\n .visible-print-inline-block {\n display: inline-block !important;\n }\n}\n@media print {\n .hidden-print {\n display: none !important;\n }\n}\n/*# sourceMappingURL=bootstrap.css.map */","/*!\n * Bootstrap v3.3.7 (http://getbootstrap.com)\n * Copyright 2011-2016 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n */\n/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */\nhtml {\n font-family: sans-serif;\n -webkit-text-size-adjust: 100%;\n -ms-text-size-adjust: 100%;\n}\nbody {\n margin: 0;\n}\narticle,\naside,\ndetails,\nfigcaption,\nfigure,\nfooter,\nheader,\nhgroup,\nmain,\nmenu,\nnav,\nsection,\nsummary {\n display: block;\n}\naudio,\ncanvas,\nprogress,\nvideo {\n display: inline-block;\n vertical-align: baseline;\n}\naudio:not([controls]) {\n display: none;\n height: 0;\n}\n[hidden],\ntemplate {\n display: none;\n}\na {\n background-color: transparent;\n}\na:active,\na:hover {\n outline: 0;\n}\nabbr[title] {\n border-bottom: 1px dotted;\n}\nb,\nstrong {\n font-weight: bold;\n}\ndfn {\n font-style: italic;\n}\nh1 {\n margin: .67em 0;\n font-size: 2em;\n}\nmark {\n color: #000;\n background: #ff0;\n}\nsmall {\n font-size: 80%;\n}\nsub,\nsup {\n position: relative;\n font-size: 75%;\n line-height: 0;\n vertical-align: baseline;\n}\nsup {\n top: -.5em;\n}\nsub {\n bottom: -.25em;\n}\nimg {\n border: 0;\n}\nsvg:not(:root) {\n overflow: hidden;\n}\nfigure {\n margin: 1em 40px;\n}\nhr {\n height: 0;\n -webkit-box-sizing: content-box;\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n}\npre {\n overflow: auto;\n}\ncode,\nkbd,\npre,\nsamp {\n font-family: monospace, monospace;\n font-size: 1em;\n}\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n margin: 0;\n font: inherit;\n color: inherit;\n}\nbutton {\n overflow: visible;\n}\nbutton,\nselect {\n text-transform: none;\n}\nbutton,\nhtml input[type=\"button\"],\ninput[type=\"reset\"],\ninput[type=\"submit\"] {\n -webkit-appearance: button;\n cursor: pointer;\n}\nbutton[disabled],\nhtml input[disabled] {\n cursor: default;\n}\nbutton::-moz-focus-inner,\ninput::-moz-focus-inner {\n padding: 0;\n border: 0;\n}\ninput {\n line-height: normal;\n}\ninput[type=\"checkbox\"],\ninput[type=\"radio\"] {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n padding: 0;\n}\ninput[type=\"number\"]::-webkit-inner-spin-button,\ninput[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\ninput[type=\"search\"] {\n -webkit-box-sizing: content-box;\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n -webkit-appearance: textfield;\n}\ninput[type=\"search\"]::-webkit-search-cancel-button,\ninput[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\nfieldset {\n padding: .35em .625em .75em;\n margin: 0 2px;\n border: 1px solid #c0c0c0;\n}\nlegend {\n padding: 0;\n border: 0;\n}\ntextarea {\n overflow: auto;\n}\noptgroup {\n font-weight: bold;\n}\ntable {\n border-spacing: 0;\n border-collapse: collapse;\n}\ntd,\nth {\n padding: 0;\n}\n/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */\n@media print {\n *,\n *:before,\n *:after {\n color: #000 !important;\n text-shadow: none !important;\n background: transparent !important;\n -webkit-box-shadow: none !important;\n box-shadow: none !important;\n }\n a,\n a:visited {\n text-decoration: underline;\n }\n a[href]:after {\n content: \" (\" attr(href) \")\";\n }\n abbr[title]:after {\n content: \" (\" attr(title) \")\";\n }\n a[href^=\"#\"]:after,\n a[href^=\"javascript:\"]:after {\n content: \"\";\n }\n pre,\n blockquote {\n border: 1px solid #999;\n\n page-break-inside: avoid;\n }\n thead {\n display: table-header-group;\n }\n tr,\n img {\n page-break-inside: avoid;\n }\n img {\n max-width: 100% !important;\n }\n p,\n h2,\n h3 {\n orphans: 3;\n widows: 3;\n }\n h2,\n h3 {\n page-break-after: avoid;\n }\n .navbar {\n display: none;\n }\n .btn > .caret,\n .dropup > .btn > .caret {\n border-top-color: #000 !important;\n }\n .label {\n border: 1px solid #000;\n }\n .table {\n border-collapse: collapse !important;\n }\n .table td,\n .table th {\n background-color: #fff !important;\n }\n .table-bordered th,\n .table-bordered td {\n border: 1px solid #ddd !important;\n }\n}\n@font-face {\n font-family: 'Glyphicons Halflings';\n\n src: url('../fonts/glyphicons-halflings-regular.eot');\n src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff2') format('woff2'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');\n}\n.glyphicon {\n position: relative;\n top: 1px;\n display: inline-block;\n font-family: 'Glyphicons Halflings';\n font-style: normal;\n font-weight: normal;\n line-height: 1;\n\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n.glyphicon-asterisk:before {\n content: \"\\002a\";\n}\n.glyphicon-plus:before {\n content: \"\\002b\";\n}\n.glyphicon-euro:before,\n.glyphicon-eur:before {\n content: \"\\20ac\";\n}\n.glyphicon-minus:before {\n content: \"\\2212\";\n}\n.glyphicon-cloud:before {\n content: \"\\2601\";\n}\n.glyphicon-envelope:before {\n content: \"\\2709\";\n}\n.glyphicon-pencil:before {\n content: \"\\270f\";\n}\n.glyphicon-glass:before {\n content: \"\\e001\";\n}\n.glyphicon-music:before {\n content: \"\\e002\";\n}\n.glyphicon-search:before {\n content: \"\\e003\";\n}\n.glyphicon-heart:before {\n content: \"\\e005\";\n}\n.glyphicon-star:before {\n content: \"\\e006\";\n}\n.glyphicon-star-empty:before {\n content: \"\\e007\";\n}\n.glyphicon-user:before {\n content: \"\\e008\";\n}\n.glyphicon-film:before {\n content: \"\\e009\";\n}\n.glyphicon-th-large:before {\n content: \"\\e010\";\n}\n.glyphicon-th:before {\n content: \"\\e011\";\n}\n.glyphicon-th-list:before {\n content: \"\\e012\";\n}\n.glyphicon-ok:before {\n content: \"\\e013\";\n}\n.glyphicon-remove:before {\n content: \"\\e014\";\n}\n.glyphicon-zoom-in:before {\n content: \"\\e015\";\n}\n.glyphicon-zoom-out:before {\n content: \"\\e016\";\n}\n.glyphicon-off:before {\n content: \"\\e017\";\n}\n.glyphicon-signal:before {\n content: \"\\e018\";\n}\n.glyphicon-cog:before {\n content: \"\\e019\";\n}\n.glyphicon-trash:before {\n content: \"\\e020\";\n}\n.glyphicon-home:before {\n content: \"\\e021\";\n}\n.glyphicon-file:before {\n content: \"\\e022\";\n}\n.glyphicon-time:before {\n content: \"\\e023\";\n}\n.glyphicon-road:before {\n content: \"\\e024\";\n}\n.glyphicon-download-alt:before {\n content: \"\\e025\";\n}\n.glyphicon-download:before {\n content: \"\\e026\";\n}\n.glyphicon-upload:before {\n content: \"\\e027\";\n}\n.glyphicon-inbox:before {\n content: \"\\e028\";\n}\n.glyphicon-play-circle:before {\n content: \"\\e029\";\n}\n.glyphicon-repeat:before {\n content: \"\\e030\";\n}\n.glyphicon-refresh:before {\n content: \"\\e031\";\n}\n.glyphicon-list-alt:before {\n content: \"\\e032\";\n}\n.glyphicon-lock:before {\n content: \"\\e033\";\n}\n.glyphicon-flag:before {\n content: \"\\e034\";\n}\n.glyphicon-headphones:before {\n content: \"\\e035\";\n}\n.glyphicon-volume-off:before {\n content: \"\\e036\";\n}\n.glyphicon-volume-down:before {\n content: \"\\e037\";\n}\n.glyphicon-volume-up:before {\n content: \"\\e038\";\n}\n.glyphicon-qrcode:before {\n content: \"\\e039\";\n}\n.glyphicon-barcode:before {\n content: \"\\e040\";\n}\n.glyphicon-tag:before {\n content: \"\\e041\";\n}\n.glyphicon-tags:before {\n content: \"\\e042\";\n}\n.glyphicon-book:before {\n content: \"\\e043\";\n}\n.glyphicon-bookmark:before {\n content: \"\\e044\";\n}\n.glyphicon-print:before {\n content: \"\\e045\";\n}\n.glyphicon-camera:before {\n content: \"\\e046\";\n}\n.glyphicon-font:before {\n content: \"\\e047\";\n}\n.glyphicon-bold:before {\n content: \"\\e048\";\n}\n.glyphicon-italic:before {\n content: \"\\e049\";\n}\n.glyphicon-text-height:before {\n content: \"\\e050\";\n}\n.glyphicon-text-width:before {\n content: \"\\e051\";\n}\n.glyphicon-align-left:before {\n content: \"\\e052\";\n}\n.glyphicon-align-center:before {\n content: \"\\e053\";\n}\n.glyphicon-align-right:before {\n content: \"\\e054\";\n}\n.glyphicon-align-justify:before {\n content: \"\\e055\";\n}\n.glyphicon-list:before {\n content: \"\\e056\";\n}\n.glyphicon-indent-left:before {\n content: \"\\e057\";\n}\n.glyphicon-indent-right:before {\n content: \"\\e058\";\n}\n.glyphicon-facetime-video:before {\n content: \"\\e059\";\n}\n.glyphicon-picture:before {\n content: \"\\e060\";\n}\n.glyphicon-map-marker:before {\n content: \"\\e062\";\n}\n.glyphicon-adjust:before {\n content: \"\\e063\";\n}\n.glyphicon-tint:before {\n content: \"\\e064\";\n}\n.glyphicon-edit:before {\n content: \"\\e065\";\n}\n.glyphicon-share:before {\n content: \"\\e066\";\n}\n.glyphicon-check:before {\n content: \"\\e067\";\n}\n.glyphicon-move:before {\n content: \"\\e068\";\n}\n.glyphicon-step-backward:before {\n content: \"\\e069\";\n}\n.glyphicon-fast-backward:before {\n content: \"\\e070\";\n}\n.glyphicon-backward:before {\n content: \"\\e071\";\n}\n.glyphicon-play:before {\n content: \"\\e072\";\n}\n.glyphicon-pause:before {\n content: \"\\e073\";\n}\n.glyphicon-stop:before {\n content: \"\\e074\";\n}\n.glyphicon-forward:before {\n content: \"\\e075\";\n}\n.glyphicon-fast-forward:before {\n content: \"\\e076\";\n}\n.glyphicon-step-forward:before {\n content: \"\\e077\";\n}\n.glyphicon-eject:before {\n content: \"\\e078\";\n}\n.glyphicon-chevron-left:before {\n content: \"\\e079\";\n}\n.glyphicon-chevron-right:before {\n content: \"\\e080\";\n}\n.glyphicon-plus-sign:before {\n content: \"\\e081\";\n}\n.glyphicon-minus-sign:before {\n content: \"\\e082\";\n}\n.glyphicon-remove-sign:before {\n content: \"\\e083\";\n}\n.glyphicon-ok-sign:before {\n content: \"\\e084\";\n}\n.glyphicon-question-sign:before {\n content: \"\\e085\";\n}\n.glyphicon-info-sign:before {\n content: \"\\e086\";\n}\n.glyphicon-screenshot:before {\n content: \"\\e087\";\n}\n.glyphicon-remove-circle:before {\n content: \"\\e088\";\n}\n.glyphicon-ok-circle:before {\n content: \"\\e089\";\n}\n.glyphicon-ban-circle:before {\n content: \"\\e090\";\n}\n.glyphicon-arrow-left:before {\n content: \"\\e091\";\n}\n.glyphicon-arrow-right:before {\n content: \"\\e092\";\n}\n.glyphicon-arrow-up:before {\n content: \"\\e093\";\n}\n.glyphicon-arrow-down:before {\n content: \"\\e094\";\n}\n.glyphicon-share-alt:before {\n content: \"\\e095\";\n}\n.glyphicon-resize-full:before {\n content: \"\\e096\";\n}\n.glyphicon-resize-small:before {\n content: \"\\e097\";\n}\n.glyphicon-exclamation-sign:before {\n content: \"\\e101\";\n}\n.glyphicon-gift:before {\n content: \"\\e102\";\n}\n.glyphicon-leaf:before {\n content: \"\\e103\";\n}\n.glyphicon-fire:before {\n content: \"\\e104\";\n}\n.glyphicon-eye-open:before {\n content: \"\\e105\";\n}\n.glyphicon-eye-close:before {\n content: \"\\e106\";\n}\n.glyphicon-warning-sign:before {\n content: \"\\e107\";\n}\n.glyphicon-plane:before {\n content: \"\\e108\";\n}\n.glyphicon-calendar:before {\n content: \"\\e109\";\n}\n.glyphicon-random:before {\n content: \"\\e110\";\n}\n.glyphicon-comment:before {\n content: \"\\e111\";\n}\n.glyphicon-magnet:before {\n content: \"\\e112\";\n}\n.glyphicon-chevron-up:before {\n content: \"\\e113\";\n}\n.glyphicon-chevron-down:before {\n content: \"\\e114\";\n}\n.glyphicon-retweet:before {\n content: \"\\e115\";\n}\n.glyphicon-shopping-cart:before {\n content: \"\\e116\";\n}\n.glyphicon-folder-close:before {\n content: \"\\e117\";\n}\n.glyphicon-folder-open:before {\n content: \"\\e118\";\n}\n.glyphicon-resize-vertical:before {\n content: \"\\e119\";\n}\n.glyphicon-resize-horizontal:before {\n content: \"\\e120\";\n}\n.glyphicon-hdd:before {\n content: \"\\e121\";\n}\n.glyphicon-bullhorn:before {\n content: \"\\e122\";\n}\n.glyphicon-bell:before {\n content: \"\\e123\";\n}\n.glyphicon-certificate:before {\n content: \"\\e124\";\n}\n.glyphicon-thumbs-up:before {\n content: \"\\e125\";\n}\n.glyphicon-thumbs-down:before {\n content: \"\\e126\";\n}\n.glyphicon-hand-right:before {\n content: \"\\e127\";\n}\n.glyphicon-hand-left:before {\n content: \"\\e128\";\n}\n.glyphicon-hand-up:before {\n content: \"\\e129\";\n}\n.glyphicon-hand-down:before {\n content: \"\\e130\";\n}\n.glyphicon-circle-arrow-right:before {\n content: \"\\e131\";\n}\n.glyphicon-circle-arrow-left:before {\n content: \"\\e132\";\n}\n.glyphicon-circle-arrow-up:before {\n content: \"\\e133\";\n}\n.glyphicon-circle-arrow-down:before {\n content: \"\\e134\";\n}\n.glyphicon-globe:before {\n content: \"\\e135\";\n}\n.glyphicon-wrench:before {\n content: \"\\e136\";\n}\n.glyphicon-tasks:before {\n content: \"\\e137\";\n}\n.glyphicon-filter:before {\n content: \"\\e138\";\n}\n.glyphicon-briefcase:before {\n content: \"\\e139\";\n}\n.glyphicon-fullscreen:before {\n content: \"\\e140\";\n}\n.glyphicon-dashboard:before {\n content: \"\\e141\";\n}\n.glyphicon-paperclip:before {\n content: \"\\e142\";\n}\n.glyphicon-heart-empty:before {\n content: \"\\e143\";\n}\n.glyphicon-link:before {\n content: \"\\e144\";\n}\n.glyphicon-phone:before {\n content: \"\\e145\";\n}\n.glyphicon-pushpin:before {\n content: \"\\e146\";\n}\n.glyphicon-usd:before {\n content: \"\\e148\";\n}\n.glyphicon-gbp:before {\n content: \"\\e149\";\n}\n.glyphicon-sort:before {\n content: \"\\e150\";\n}\n.glyphicon-sort-by-alphabet:before {\n content: \"\\e151\";\n}\n.glyphicon-sort-by-alphabet-alt:before {\n content: \"\\e152\";\n}\n.glyphicon-sort-by-order:before {\n content: \"\\e153\";\n}\n.glyphicon-sort-by-order-alt:before {\n content: \"\\e154\";\n}\n.glyphicon-sort-by-attributes:before {\n content: \"\\e155\";\n}\n.glyphicon-sort-by-attributes-alt:before {\n content: \"\\e156\";\n}\n.glyphicon-unchecked:before {\n content: \"\\e157\";\n}\n.glyphicon-expand:before {\n content: \"\\e158\";\n}\n.glyphicon-collapse-down:before {\n content: \"\\e159\";\n}\n.glyphicon-collapse-up:before {\n content: \"\\e160\";\n}\n.glyphicon-log-in:before {\n content: \"\\e161\";\n}\n.glyphicon-flash:before {\n content: \"\\e162\";\n}\n.glyphicon-log-out:before {\n content: \"\\e163\";\n}\n.glyphicon-new-window:before {\n content: \"\\e164\";\n}\n.glyphicon-record:before {\n content: \"\\e165\";\n}\n.glyphicon-save:before {\n content: \"\\e166\";\n}\n.glyphicon-open:before {\n content: \"\\e167\";\n}\n.glyphicon-saved:before {\n content: \"\\e168\";\n}\n.glyphicon-import:before {\n content: \"\\e169\";\n}\n.glyphicon-export:before {\n content: \"\\e170\";\n}\n.glyphicon-send:before {\n content: \"\\e171\";\n}\n.glyphicon-floppy-disk:before {\n content: \"\\e172\";\n}\n.glyphicon-floppy-saved:before {\n content: \"\\e173\";\n}\n.glyphicon-floppy-remove:before {\n content: \"\\e174\";\n}\n.glyphicon-floppy-save:before {\n content: \"\\e175\";\n}\n.glyphicon-floppy-open:before {\n content: \"\\e176\";\n}\n.glyphicon-credit-card:before {\n content: \"\\e177\";\n}\n.glyphicon-transfer:before {\n content: \"\\e178\";\n}\n.glyphicon-cutlery:before {\n content: \"\\e179\";\n}\n.glyphicon-header:before {\n content: \"\\e180\";\n}\n.glyphicon-compressed:before {\n content: \"\\e181\";\n}\n.glyphicon-earphone:before {\n content: \"\\e182\";\n}\n.glyphicon-phone-alt:before {\n content: \"\\e183\";\n}\n.glyphicon-tower:before {\n content: \"\\e184\";\n}\n.glyphicon-stats:before {\n content: \"\\e185\";\n}\n.glyphicon-sd-video:before {\n content: \"\\e186\";\n}\n.glyphicon-hd-video:before {\n content: \"\\e187\";\n}\n.glyphicon-subtitles:before {\n content: \"\\e188\";\n}\n.glyphicon-sound-stereo:before {\n content: \"\\e189\";\n}\n.glyphicon-sound-dolby:before {\n content: \"\\e190\";\n}\n.glyphicon-sound-5-1:before {\n content: \"\\e191\";\n}\n.glyphicon-sound-6-1:before {\n content: \"\\e192\";\n}\n.glyphicon-sound-7-1:before {\n content: \"\\e193\";\n}\n.glyphicon-copyright-mark:before {\n content: \"\\e194\";\n}\n.glyphicon-registration-mark:before {\n content: \"\\e195\";\n}\n.glyphicon-cloud-download:before {\n content: \"\\e197\";\n}\n.glyphicon-cloud-upload:before {\n content: \"\\e198\";\n}\n.glyphicon-tree-conifer:before {\n content: \"\\e199\";\n}\n.glyphicon-tree-deciduous:before {\n content: \"\\e200\";\n}\n.glyphicon-cd:before {\n content: \"\\e201\";\n}\n.glyphicon-save-file:before {\n content: \"\\e202\";\n}\n.glyphicon-open-file:before {\n content: \"\\e203\";\n}\n.glyphicon-level-up:before {\n content: \"\\e204\";\n}\n.glyphicon-copy:before {\n content: \"\\e205\";\n}\n.glyphicon-paste:before {\n content: \"\\e206\";\n}\n.glyphicon-alert:before {\n content: \"\\e209\";\n}\n.glyphicon-equalizer:before {\n content: \"\\e210\";\n}\n.glyphicon-king:before {\n content: \"\\e211\";\n}\n.glyphicon-queen:before {\n content: \"\\e212\";\n}\n.glyphicon-pawn:before {\n content: \"\\e213\";\n}\n.glyphicon-bishop:before {\n content: \"\\e214\";\n}\n.glyphicon-knight:before {\n content: \"\\e215\";\n}\n.glyphicon-baby-formula:before {\n content: \"\\e216\";\n}\n.glyphicon-tent:before {\n content: \"\\26fa\";\n}\n.glyphicon-blackboard:before {\n content: \"\\e218\";\n}\n.glyphicon-bed:before {\n content: \"\\e219\";\n}\n.glyphicon-apple:before {\n content: \"\\f8ff\";\n}\n.glyphicon-erase:before {\n content: \"\\e221\";\n}\n.glyphicon-hourglass:before {\n content: \"\\231b\";\n}\n.glyphicon-lamp:before {\n content: \"\\e223\";\n}\n.glyphicon-duplicate:before {\n content: \"\\e224\";\n}\n.glyphicon-piggy-bank:before {\n content: \"\\e225\";\n}\n.glyphicon-scissors:before {\n content: \"\\e226\";\n}\n.glyphicon-bitcoin:before {\n content: \"\\e227\";\n}\n.glyphicon-btc:before {\n content: \"\\e227\";\n}\n.glyphicon-xbt:before {\n content: \"\\e227\";\n}\n.glyphicon-yen:before {\n content: \"\\00a5\";\n}\n.glyphicon-jpy:before {\n content: \"\\00a5\";\n}\n.glyphicon-ruble:before {\n content: \"\\20bd\";\n}\n.glyphicon-rub:before {\n content: \"\\20bd\";\n}\n.glyphicon-scale:before {\n content: \"\\e230\";\n}\n.glyphicon-ice-lolly:before {\n content: \"\\e231\";\n}\n.glyphicon-ice-lolly-tasted:before {\n content: \"\\e232\";\n}\n.glyphicon-education:before {\n content: \"\\e233\";\n}\n.glyphicon-option-horizontal:before {\n content: \"\\e234\";\n}\n.glyphicon-option-vertical:before {\n content: \"\\e235\";\n}\n.glyphicon-menu-hamburger:before {\n content: \"\\e236\";\n}\n.glyphicon-modal-window:before {\n content: \"\\e237\";\n}\n.glyphicon-oil:before {\n content: \"\\e238\";\n}\n.glyphicon-grain:before {\n content: \"\\e239\";\n}\n.glyphicon-sunglasses:before {\n content: \"\\e240\";\n}\n.glyphicon-text-size:before {\n content: \"\\e241\";\n}\n.glyphicon-text-color:before {\n content: \"\\e242\";\n}\n.glyphicon-text-background:before {\n content: \"\\e243\";\n}\n.glyphicon-object-align-top:before {\n content: \"\\e244\";\n}\n.glyphicon-object-align-bottom:before {\n content: \"\\e245\";\n}\n.glyphicon-object-align-horizontal:before {\n content: \"\\e246\";\n}\n.glyphicon-object-align-left:before {\n content: \"\\e247\";\n}\n.glyphicon-object-align-vertical:before {\n content: \"\\e248\";\n}\n.glyphicon-object-align-right:before {\n content: \"\\e249\";\n}\n.glyphicon-triangle-right:before {\n content: \"\\e250\";\n}\n.glyphicon-triangle-left:before {\n content: \"\\e251\";\n}\n.glyphicon-triangle-bottom:before {\n content: \"\\e252\";\n}\n.glyphicon-triangle-top:before {\n content: \"\\e253\";\n}\n.glyphicon-console:before {\n content: \"\\e254\";\n}\n.glyphicon-superscript:before {\n content: \"\\e255\";\n}\n.glyphicon-subscript:before {\n content: \"\\e256\";\n}\n.glyphicon-menu-left:before {\n content: \"\\e257\";\n}\n.glyphicon-menu-right:before {\n content: \"\\e258\";\n}\n.glyphicon-menu-down:before {\n content: \"\\e259\";\n}\n.glyphicon-menu-up:before {\n content: \"\\e260\";\n}\n* {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\n*:before,\n*:after {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\nhtml {\n font-size: 10px;\n\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\nbody {\n font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n font-size: 14px;\n line-height: 1.42857143;\n color: #333;\n background-color: #fff;\n}\ninput,\nbutton,\nselect,\ntextarea {\n font-family: inherit;\n font-size: inherit;\n line-height: inherit;\n}\na {\n color: #337ab7;\n text-decoration: none;\n}\na:hover,\na:focus {\n color: #23527c;\n text-decoration: underline;\n}\na:focus {\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: -2px;\n}\nfigure {\n margin: 0;\n}\nimg {\n vertical-align: middle;\n}\n.img-responsive,\n.thumbnail > img,\n.thumbnail a > img,\n.carousel-inner > .item > img,\n.carousel-inner > .item > a > img {\n display: block;\n max-width: 100%;\n height: auto;\n}\n.img-rounded {\n border-radius: 6px;\n}\n.img-thumbnail {\n display: inline-block;\n max-width: 100%;\n height: auto;\n padding: 4px;\n line-height: 1.42857143;\n background-color: #fff;\n border: 1px solid #ddd;\n border-radius: 4px;\n -webkit-transition: all .2s ease-in-out;\n -o-transition: all .2s ease-in-out;\n transition: all .2s ease-in-out;\n}\n.img-circle {\n border-radius: 50%;\n}\nhr {\n margin-top: 20px;\n margin-bottom: 20px;\n border: 0;\n border-top: 1px solid #eee;\n}\n.sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n border: 0;\n}\n.sr-only-focusable:active,\n.sr-only-focusable:focus {\n position: static;\n width: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n clip: auto;\n}\n[role=\"button\"] {\n cursor: pointer;\n}\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\n.h1,\n.h2,\n.h3,\n.h4,\n.h5,\n.h6 {\n font-family: inherit;\n font-weight: 500;\n line-height: 1.1;\n color: inherit;\n}\nh1 small,\nh2 small,\nh3 small,\nh4 small,\nh5 small,\nh6 small,\n.h1 small,\n.h2 small,\n.h3 small,\n.h4 small,\n.h5 small,\n.h6 small,\nh1 .small,\nh2 .small,\nh3 .small,\nh4 .small,\nh5 .small,\nh6 .small,\n.h1 .small,\n.h2 .small,\n.h3 .small,\n.h4 .small,\n.h5 .small,\n.h6 .small {\n font-weight: normal;\n line-height: 1;\n color: #777;\n}\nh1,\n.h1,\nh2,\n.h2,\nh3,\n.h3 {\n margin-top: 20px;\n margin-bottom: 10px;\n}\nh1 small,\n.h1 small,\nh2 small,\n.h2 small,\nh3 small,\n.h3 small,\nh1 .small,\n.h1 .small,\nh2 .small,\n.h2 .small,\nh3 .small,\n.h3 .small {\n font-size: 65%;\n}\nh4,\n.h4,\nh5,\n.h5,\nh6,\n.h6 {\n margin-top: 10px;\n margin-bottom: 10px;\n}\nh4 small,\n.h4 small,\nh5 small,\n.h5 small,\nh6 small,\n.h6 small,\nh4 .small,\n.h4 .small,\nh5 .small,\n.h5 .small,\nh6 .small,\n.h6 .small {\n font-size: 75%;\n}\nh1,\n.h1 {\n font-size: 36px;\n}\nh2,\n.h2 {\n font-size: 30px;\n}\nh3,\n.h3 {\n font-size: 24px;\n}\nh4,\n.h4 {\n font-size: 18px;\n}\nh5,\n.h5 {\n font-size: 14px;\n}\nh6,\n.h6 {\n font-size: 12px;\n}\np {\n margin: 0 0 10px;\n}\n.lead {\n margin-bottom: 20px;\n font-size: 16px;\n font-weight: 300;\n line-height: 1.4;\n}\n@media (min-width: 768px) {\n .lead {\n font-size: 21px;\n }\n}\nsmall,\n.small {\n font-size: 85%;\n}\nmark,\n.mark {\n padding: .2em;\n background-color: #fcf8e3;\n}\n.text-left {\n text-align: left;\n}\n.text-right {\n text-align: right;\n}\n.text-center {\n text-align: center;\n}\n.text-justify {\n text-align: justify;\n}\n.text-nowrap {\n white-space: nowrap;\n}\n.text-lowercase {\n text-transform: lowercase;\n}\n.text-uppercase {\n text-transform: uppercase;\n}\n.text-capitalize {\n text-transform: capitalize;\n}\n.text-muted {\n color: #777;\n}\n.text-primary {\n color: #337ab7;\n}\na.text-primary:hover,\na.text-primary:focus {\n color: #286090;\n}\n.text-success {\n color: #3c763d;\n}\na.text-success:hover,\na.text-success:focus {\n color: #2b542c;\n}\n.text-info {\n color: #31708f;\n}\na.text-info:hover,\na.text-info:focus {\n color: #245269;\n}\n.text-warning {\n color: #8a6d3b;\n}\na.text-warning:hover,\na.text-warning:focus {\n color: #66512c;\n}\n.text-danger {\n color: #a94442;\n}\na.text-danger:hover,\na.text-danger:focus {\n color: #843534;\n}\n.bg-primary {\n color: #fff;\n background-color: #337ab7;\n}\na.bg-primary:hover,\na.bg-primary:focus {\n background-color: #286090;\n}\n.bg-success {\n background-color: #dff0d8;\n}\na.bg-success:hover,\na.bg-success:focus {\n background-color: #c1e2b3;\n}\n.bg-info {\n background-color: #d9edf7;\n}\na.bg-info:hover,\na.bg-info:focus {\n background-color: #afd9ee;\n}\n.bg-warning {\n background-color: #fcf8e3;\n}\na.bg-warning:hover,\na.bg-warning:focus {\n background-color: #f7ecb5;\n}\n.bg-danger {\n background-color: #f2dede;\n}\na.bg-danger:hover,\na.bg-danger:focus {\n background-color: #e4b9b9;\n}\n.page-header {\n padding-bottom: 9px;\n margin: 40px 0 20px;\n border-bottom: 1px solid #eee;\n}\nul,\nol {\n margin-top: 0;\n margin-bottom: 10px;\n}\nul ul,\nol ul,\nul ol,\nol ol {\n margin-bottom: 0;\n}\n.list-unstyled {\n padding-left: 0;\n list-style: none;\n}\n.list-inline {\n padding-left: 0;\n margin-left: -5px;\n list-style: none;\n}\n.list-inline > li {\n display: inline-block;\n padding-right: 5px;\n padding-left: 5px;\n}\ndl {\n margin-top: 0;\n margin-bottom: 20px;\n}\ndt,\ndd {\n line-height: 1.42857143;\n}\ndt {\n font-weight: bold;\n}\ndd {\n margin-left: 0;\n}\n@media (min-width: 768px) {\n .dl-horizontal dt {\n float: left;\n width: 160px;\n overflow: hidden;\n clear: left;\n text-align: right;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .dl-horizontal dd {\n margin-left: 180px;\n }\n}\nabbr[title],\nabbr[data-original-title] {\n cursor: help;\n border-bottom: 1px dotted #777;\n}\n.initialism {\n font-size: 90%;\n text-transform: uppercase;\n}\nblockquote {\n padding: 10px 20px;\n margin: 0 0 20px;\n font-size: 17.5px;\n border-left: 5px solid #eee;\n}\nblockquote p:last-child,\nblockquote ul:last-child,\nblockquote ol:last-child {\n margin-bottom: 0;\n}\nblockquote footer,\nblockquote small,\nblockquote .small {\n display: block;\n font-size: 80%;\n line-height: 1.42857143;\n color: #777;\n}\nblockquote footer:before,\nblockquote small:before,\nblockquote .small:before {\n content: '\\2014 \\00A0';\n}\n.blockquote-reverse,\nblockquote.pull-right {\n padding-right: 15px;\n padding-left: 0;\n text-align: right;\n border-right: 5px solid #eee;\n border-left: 0;\n}\n.blockquote-reverse footer:before,\nblockquote.pull-right footer:before,\n.blockquote-reverse small:before,\nblockquote.pull-right small:before,\n.blockquote-reverse .small:before,\nblockquote.pull-right .small:before {\n content: '';\n}\n.blockquote-reverse footer:after,\nblockquote.pull-right footer:after,\n.blockquote-reverse small:after,\nblockquote.pull-right small:after,\n.blockquote-reverse .small:after,\nblockquote.pull-right .small:after {\n content: '\\00A0 \\2014';\n}\naddress {\n margin-bottom: 20px;\n font-style: normal;\n line-height: 1.42857143;\n}\ncode,\nkbd,\npre,\nsamp {\n font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace;\n}\ncode {\n padding: 2px 4px;\n font-size: 90%;\n color: #c7254e;\n background-color: #f9f2f4;\n border-radius: 4px;\n}\nkbd {\n padding: 2px 4px;\n font-size: 90%;\n color: #fff;\n background-color: #333;\n border-radius: 3px;\n -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .25);\n box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .25);\n}\nkbd kbd {\n padding: 0;\n font-size: 100%;\n font-weight: bold;\n -webkit-box-shadow: none;\n box-shadow: none;\n}\npre {\n display: block;\n padding: 9.5px;\n margin: 0 0 10px;\n font-size: 13px;\n line-height: 1.42857143;\n color: #333;\n word-break: break-all;\n word-wrap: break-word;\n background-color: #f5f5f5;\n border: 1px solid #ccc;\n border-radius: 4px;\n}\npre code {\n padding: 0;\n font-size: inherit;\n color: inherit;\n white-space: pre-wrap;\n background-color: transparent;\n border-radius: 0;\n}\n.pre-scrollable {\n max-height: 340px;\n overflow-y: scroll;\n}\n.container {\n padding-right: 15px;\n padding-left: 15px;\n margin-right: auto;\n margin-left: auto;\n}\n@media (min-width: 768px) {\n .container {\n width: 750px;\n }\n}\n@media (min-width: 992px) {\n .container {\n width: 970px;\n }\n}\n@media (min-width: 1200px) {\n .container {\n width: 1170px;\n }\n}\n.container-fluid {\n padding-right: 15px;\n padding-left: 15px;\n margin-right: auto;\n margin-left: auto;\n}\n.row {\n margin-right: -15px;\n margin-left: -15px;\n}\n.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {\n position: relative;\n min-height: 1px;\n padding-right: 15px;\n padding-left: 15px;\n}\n.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 {\n float: left;\n}\n.col-xs-12 {\n width: 100%;\n}\n.col-xs-11 {\n width: 91.66666667%;\n}\n.col-xs-10 {\n width: 83.33333333%;\n}\n.col-xs-9 {\n width: 75%;\n}\n.col-xs-8 {\n width: 66.66666667%;\n}\n.col-xs-7 {\n width: 58.33333333%;\n}\n.col-xs-6 {\n width: 50%;\n}\n.col-xs-5 {\n width: 41.66666667%;\n}\n.col-xs-4 {\n width: 33.33333333%;\n}\n.col-xs-3 {\n width: 25%;\n}\n.col-xs-2 {\n width: 16.66666667%;\n}\n.col-xs-1 {\n width: 8.33333333%;\n}\n.col-xs-pull-12 {\n right: 100%;\n}\n.col-xs-pull-11 {\n right: 91.66666667%;\n}\n.col-xs-pull-10 {\n right: 83.33333333%;\n}\n.col-xs-pull-9 {\n right: 75%;\n}\n.col-xs-pull-8 {\n right: 66.66666667%;\n}\n.col-xs-pull-7 {\n right: 58.33333333%;\n}\n.col-xs-pull-6 {\n right: 50%;\n}\n.col-xs-pull-5 {\n right: 41.66666667%;\n}\n.col-xs-pull-4 {\n right: 33.33333333%;\n}\n.col-xs-pull-3 {\n right: 25%;\n}\n.col-xs-pull-2 {\n right: 16.66666667%;\n}\n.col-xs-pull-1 {\n right: 8.33333333%;\n}\n.col-xs-pull-0 {\n right: auto;\n}\n.col-xs-push-12 {\n left: 100%;\n}\n.col-xs-push-11 {\n left: 91.66666667%;\n}\n.col-xs-push-10 {\n left: 83.33333333%;\n}\n.col-xs-push-9 {\n left: 75%;\n}\n.col-xs-push-8 {\n left: 66.66666667%;\n}\n.col-xs-push-7 {\n left: 58.33333333%;\n}\n.col-xs-push-6 {\n left: 50%;\n}\n.col-xs-push-5 {\n left: 41.66666667%;\n}\n.col-xs-push-4 {\n left: 33.33333333%;\n}\n.col-xs-push-3 {\n left: 25%;\n}\n.col-xs-push-2 {\n left: 16.66666667%;\n}\n.col-xs-push-1 {\n left: 8.33333333%;\n}\n.col-xs-push-0 {\n left: auto;\n}\n.col-xs-offset-12 {\n margin-left: 100%;\n}\n.col-xs-offset-11 {\n margin-left: 91.66666667%;\n}\n.col-xs-offset-10 {\n margin-left: 83.33333333%;\n}\n.col-xs-offset-9 {\n margin-left: 75%;\n}\n.col-xs-offset-8 {\n margin-left: 66.66666667%;\n}\n.col-xs-offset-7 {\n margin-left: 58.33333333%;\n}\n.col-xs-offset-6 {\n margin-left: 50%;\n}\n.col-xs-offset-5 {\n margin-left: 41.66666667%;\n}\n.col-xs-offset-4 {\n margin-left: 33.33333333%;\n}\n.col-xs-offset-3 {\n margin-left: 25%;\n}\n.col-xs-offset-2 {\n margin-left: 16.66666667%;\n}\n.col-xs-offset-1 {\n margin-left: 8.33333333%;\n}\n.col-xs-offset-0 {\n margin-left: 0;\n}\n@media (min-width: 768px) {\n .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {\n float: left;\n }\n .col-sm-12 {\n width: 100%;\n }\n .col-sm-11 {\n width: 91.66666667%;\n }\n .col-sm-10 {\n width: 83.33333333%;\n }\n .col-sm-9 {\n width: 75%;\n }\n .col-sm-8 {\n width: 66.66666667%;\n }\n .col-sm-7 {\n width: 58.33333333%;\n }\n .col-sm-6 {\n width: 50%;\n }\n .col-sm-5 {\n width: 41.66666667%;\n }\n .col-sm-4 {\n width: 33.33333333%;\n }\n .col-sm-3 {\n width: 25%;\n }\n .col-sm-2 {\n width: 16.66666667%;\n }\n .col-sm-1 {\n width: 8.33333333%;\n }\n .col-sm-pull-12 {\n right: 100%;\n }\n .col-sm-pull-11 {\n right: 91.66666667%;\n }\n .col-sm-pull-10 {\n right: 83.33333333%;\n }\n .col-sm-pull-9 {\n right: 75%;\n }\n .col-sm-pull-8 {\n right: 66.66666667%;\n }\n .col-sm-pull-7 {\n right: 58.33333333%;\n }\n .col-sm-pull-6 {\n right: 50%;\n }\n .col-sm-pull-5 {\n right: 41.66666667%;\n }\n .col-sm-pull-4 {\n right: 33.33333333%;\n }\n .col-sm-pull-3 {\n right: 25%;\n }\n .col-sm-pull-2 {\n right: 16.66666667%;\n }\n .col-sm-pull-1 {\n right: 8.33333333%;\n }\n .col-sm-pull-0 {\n right: auto;\n }\n .col-sm-push-12 {\n left: 100%;\n }\n .col-sm-push-11 {\n left: 91.66666667%;\n }\n .col-sm-push-10 {\n left: 83.33333333%;\n }\n .col-sm-push-9 {\n left: 75%;\n }\n .col-sm-push-8 {\n left: 66.66666667%;\n }\n .col-sm-push-7 {\n left: 58.33333333%;\n }\n .col-sm-push-6 {\n left: 50%;\n }\n .col-sm-push-5 {\n left: 41.66666667%;\n }\n .col-sm-push-4 {\n left: 33.33333333%;\n }\n .col-sm-push-3 {\n left: 25%;\n }\n .col-sm-push-2 {\n left: 16.66666667%;\n }\n .col-sm-push-1 {\n left: 8.33333333%;\n }\n .col-sm-push-0 {\n left: auto;\n }\n .col-sm-offset-12 {\n margin-left: 100%;\n }\n .col-sm-offset-11 {\n margin-left: 91.66666667%;\n }\n .col-sm-offset-10 {\n margin-left: 83.33333333%;\n }\n .col-sm-offset-9 {\n margin-left: 75%;\n }\n .col-sm-offset-8 {\n margin-left: 66.66666667%;\n }\n .col-sm-offset-7 {\n margin-left: 58.33333333%;\n }\n .col-sm-offset-6 {\n margin-left: 50%;\n }\n .col-sm-offset-5 {\n margin-left: 41.66666667%;\n }\n .col-sm-offset-4 {\n margin-left: 33.33333333%;\n }\n .col-sm-offset-3 {\n margin-left: 25%;\n }\n .col-sm-offset-2 {\n margin-left: 16.66666667%;\n }\n .col-sm-offset-1 {\n margin-left: 8.33333333%;\n }\n .col-sm-offset-0 {\n margin-left: 0;\n }\n}\n@media (min-width: 992px) {\n .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {\n float: left;\n }\n .col-md-12 {\n width: 100%;\n }\n .col-md-11 {\n width: 91.66666667%;\n }\n .col-md-10 {\n width: 83.33333333%;\n }\n .col-md-9 {\n width: 75%;\n }\n .col-md-8 {\n width: 66.66666667%;\n }\n .col-md-7 {\n width: 58.33333333%;\n }\n .col-md-6 {\n width: 50%;\n }\n .col-md-5 {\n width: 41.66666667%;\n }\n .col-md-4 {\n width: 33.33333333%;\n }\n .col-md-3 {\n width: 25%;\n }\n .col-md-2 {\n width: 16.66666667%;\n }\n .col-md-1 {\n width: 8.33333333%;\n }\n .col-md-pull-12 {\n right: 100%;\n }\n .col-md-pull-11 {\n right: 91.66666667%;\n }\n .col-md-pull-10 {\n right: 83.33333333%;\n }\n .col-md-pull-9 {\n right: 75%;\n }\n .col-md-pull-8 {\n right: 66.66666667%;\n }\n .col-md-pull-7 {\n right: 58.33333333%;\n }\n .col-md-pull-6 {\n right: 50%;\n }\n .col-md-pull-5 {\n right: 41.66666667%;\n }\n .col-md-pull-4 {\n right: 33.33333333%;\n }\n .col-md-pull-3 {\n right: 25%;\n }\n .col-md-pull-2 {\n right: 16.66666667%;\n }\n .col-md-pull-1 {\n right: 8.33333333%;\n }\n .col-md-pull-0 {\n right: auto;\n }\n .col-md-push-12 {\n left: 100%;\n }\n .col-md-push-11 {\n left: 91.66666667%;\n }\n .col-md-push-10 {\n left: 83.33333333%;\n }\n .col-md-push-9 {\n left: 75%;\n }\n .col-md-push-8 {\n left: 66.66666667%;\n }\n .col-md-push-7 {\n left: 58.33333333%;\n }\n .col-md-push-6 {\n left: 50%;\n }\n .col-md-push-5 {\n left: 41.66666667%;\n }\n .col-md-push-4 {\n left: 33.33333333%;\n }\n .col-md-push-3 {\n left: 25%;\n }\n .col-md-push-2 {\n left: 16.66666667%;\n }\n .col-md-push-1 {\n left: 8.33333333%;\n }\n .col-md-push-0 {\n left: auto;\n }\n .col-md-offset-12 {\n margin-left: 100%;\n }\n .col-md-offset-11 {\n margin-left: 91.66666667%;\n }\n .col-md-offset-10 {\n margin-left: 83.33333333%;\n }\n .col-md-offset-9 {\n margin-left: 75%;\n }\n .col-md-offset-8 {\n margin-left: 66.66666667%;\n }\n .col-md-offset-7 {\n margin-left: 58.33333333%;\n }\n .col-md-offset-6 {\n margin-left: 50%;\n }\n .col-md-offset-5 {\n margin-left: 41.66666667%;\n }\n .col-md-offset-4 {\n margin-left: 33.33333333%;\n }\n .col-md-offset-3 {\n margin-left: 25%;\n }\n .col-md-offset-2 {\n margin-left: 16.66666667%;\n }\n .col-md-offset-1 {\n margin-left: 8.33333333%;\n }\n .col-md-offset-0 {\n margin-left: 0;\n }\n}\n@media (min-width: 1200px) {\n .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {\n float: left;\n }\n .col-lg-12 {\n width: 100%;\n }\n .col-lg-11 {\n width: 91.66666667%;\n }\n .col-lg-10 {\n width: 83.33333333%;\n }\n .col-lg-9 {\n width: 75%;\n }\n .col-lg-8 {\n width: 66.66666667%;\n }\n .col-lg-7 {\n width: 58.33333333%;\n }\n .col-lg-6 {\n width: 50%;\n }\n .col-lg-5 {\n width: 41.66666667%;\n }\n .col-lg-4 {\n width: 33.33333333%;\n }\n .col-lg-3 {\n width: 25%;\n }\n .col-lg-2 {\n width: 16.66666667%;\n }\n .col-lg-1 {\n width: 8.33333333%;\n }\n .col-lg-pull-12 {\n right: 100%;\n }\n .col-lg-pull-11 {\n right: 91.66666667%;\n }\n .col-lg-pull-10 {\n right: 83.33333333%;\n }\n .col-lg-pull-9 {\n right: 75%;\n }\n .col-lg-pull-8 {\n right: 66.66666667%;\n }\n .col-lg-pull-7 {\n right: 58.33333333%;\n }\n .col-lg-pull-6 {\n right: 50%;\n }\n .col-lg-pull-5 {\n right: 41.66666667%;\n }\n .col-lg-pull-4 {\n right: 33.33333333%;\n }\n .col-lg-pull-3 {\n right: 25%;\n }\n .col-lg-pull-2 {\n right: 16.66666667%;\n }\n .col-lg-pull-1 {\n right: 8.33333333%;\n }\n .col-lg-pull-0 {\n right: auto;\n }\n .col-lg-push-12 {\n left: 100%;\n }\n .col-lg-push-11 {\n left: 91.66666667%;\n }\n .col-lg-push-10 {\n left: 83.33333333%;\n }\n .col-lg-push-9 {\n left: 75%;\n }\n .col-lg-push-8 {\n left: 66.66666667%;\n }\n .col-lg-push-7 {\n left: 58.33333333%;\n }\n .col-lg-push-6 {\n left: 50%;\n }\n .col-lg-push-5 {\n left: 41.66666667%;\n }\n .col-lg-push-4 {\n left: 33.33333333%;\n }\n .col-lg-push-3 {\n left: 25%;\n }\n .col-lg-push-2 {\n left: 16.66666667%;\n }\n .col-lg-push-1 {\n left: 8.33333333%;\n }\n .col-lg-push-0 {\n left: auto;\n }\n .col-lg-offset-12 {\n margin-left: 100%;\n }\n .col-lg-offset-11 {\n margin-left: 91.66666667%;\n }\n .col-lg-offset-10 {\n margin-left: 83.33333333%;\n }\n .col-lg-offset-9 {\n margin-left: 75%;\n }\n .col-lg-offset-8 {\n margin-left: 66.66666667%;\n }\n .col-lg-offset-7 {\n margin-left: 58.33333333%;\n }\n .col-lg-offset-6 {\n margin-left: 50%;\n }\n .col-lg-offset-5 {\n margin-left: 41.66666667%;\n }\n .col-lg-offset-4 {\n margin-left: 33.33333333%;\n }\n .col-lg-offset-3 {\n margin-left: 25%;\n }\n .col-lg-offset-2 {\n margin-left: 16.66666667%;\n }\n .col-lg-offset-1 {\n margin-left: 8.33333333%;\n }\n .col-lg-offset-0 {\n margin-left: 0;\n }\n}\ntable {\n background-color: transparent;\n}\ncaption {\n padding-top: 8px;\n padding-bottom: 8px;\n color: #777;\n text-align: left;\n}\nth {\n text-align: left;\n}\n.table {\n width: 100%;\n max-width: 100%;\n margin-bottom: 20px;\n}\n.table > thead > tr > th,\n.table > tbody > tr > th,\n.table > tfoot > tr > th,\n.table > thead > tr > td,\n.table > tbody > tr > td,\n.table > tfoot > tr > td {\n padding: 8px;\n line-height: 1.42857143;\n vertical-align: top;\n border-top: 1px solid #ddd;\n}\n.table > thead > tr > th {\n vertical-align: bottom;\n border-bottom: 2px solid #ddd;\n}\n.table > caption + thead > tr:first-child > th,\n.table > colgroup + thead > tr:first-child > th,\n.table > thead:first-child > tr:first-child > th,\n.table > caption + thead > tr:first-child > td,\n.table > colgroup + thead > tr:first-child > td,\n.table > thead:first-child > tr:first-child > td {\n border-top: 0;\n}\n.table > tbody + tbody {\n border-top: 2px solid #ddd;\n}\n.table .table {\n background-color: #fff;\n}\n.table-condensed > thead > tr > th,\n.table-condensed > tbody > tr > th,\n.table-condensed > tfoot > tr > th,\n.table-condensed > thead > tr > td,\n.table-condensed > tbody > tr > td,\n.table-condensed > tfoot > tr > td {\n padding: 5px;\n}\n.table-bordered {\n border: 1px solid #ddd;\n}\n.table-bordered > thead > tr > th,\n.table-bordered > tbody > tr > th,\n.table-bordered > tfoot > tr > th,\n.table-bordered > thead > tr > td,\n.table-bordered > tbody > tr > td,\n.table-bordered > tfoot > tr > td {\n border: 1px solid #ddd;\n}\n.table-bordered > thead > tr > th,\n.table-bordered > thead > tr > td {\n border-bottom-width: 2px;\n}\n.table-striped > tbody > tr:nth-of-type(odd) {\n background-color: #f9f9f9;\n}\n.table-hover > tbody > tr:hover {\n background-color: #f5f5f5;\n}\ntable col[class*=\"col-\"] {\n position: static;\n display: table-column;\n float: none;\n}\ntable td[class*=\"col-\"],\ntable th[class*=\"col-\"] {\n position: static;\n display: table-cell;\n float: none;\n}\n.table > thead > tr > td.active,\n.table > tbody > tr > td.active,\n.table > tfoot > tr > td.active,\n.table > thead > tr > th.active,\n.table > tbody > tr > th.active,\n.table > tfoot > tr > th.active,\n.table > thead > tr.active > td,\n.table > tbody > tr.active > td,\n.table > tfoot > tr.active > td,\n.table > thead > tr.active > th,\n.table > tbody > tr.active > th,\n.table > tfoot > tr.active > th {\n background-color: #f5f5f5;\n}\n.table-hover > tbody > tr > td.active:hover,\n.table-hover > tbody > tr > th.active:hover,\n.table-hover > tbody > tr.active:hover > td,\n.table-hover > tbody > tr:hover > .active,\n.table-hover > tbody > tr.active:hover > th {\n background-color: #e8e8e8;\n}\n.table > thead > tr > td.success,\n.table > tbody > tr > td.success,\n.table > tfoot > tr > td.success,\n.table > thead > tr > th.success,\n.table > tbody > tr > th.success,\n.table > tfoot > tr > th.success,\n.table > thead > tr.success > td,\n.table > tbody > tr.success > td,\n.table > tfoot > tr.success > td,\n.table > thead > tr.success > th,\n.table > tbody > tr.success > th,\n.table > tfoot > tr.success > th {\n background-color: #dff0d8;\n}\n.table-hover > tbody > tr > td.success:hover,\n.table-hover > tbody > tr > th.success:hover,\n.table-hover > tbody > tr.success:hover > td,\n.table-hover > tbody > tr:hover > .success,\n.table-hover > tbody > tr.success:hover > th {\n background-color: #d0e9c6;\n}\n.table > thead > tr > td.info,\n.table > tbody > tr > td.info,\n.table > tfoot > tr > td.info,\n.table > thead > tr > th.info,\n.table > tbody > tr > th.info,\n.table > tfoot > tr > th.info,\n.table > thead > tr.info > td,\n.table > tbody > tr.info > td,\n.table > tfoot > tr.info > td,\n.table > thead > tr.info > th,\n.table > tbody > tr.info > th,\n.table > tfoot > tr.info > th {\n background-color: #d9edf7;\n}\n.table-hover > tbody > tr > td.info:hover,\n.table-hover > tbody > tr > th.info:hover,\n.table-hover > tbody > tr.info:hover > td,\n.table-hover > tbody > tr:hover > .info,\n.table-hover > tbody > tr.info:hover > th {\n background-color: #c4e3f3;\n}\n.table > thead > tr > td.warning,\n.table > tbody > tr > td.warning,\n.table > tfoot > tr > td.warning,\n.table > thead > tr > th.warning,\n.table > tbody > tr > th.warning,\n.table > tfoot > tr > th.warning,\n.table > thead > tr.warning > td,\n.table > tbody > tr.warning > td,\n.table > tfoot > tr.warning > td,\n.table > thead > tr.warning > th,\n.table > tbody > tr.warning > th,\n.table > tfoot > tr.warning > th {\n background-color: #fcf8e3;\n}\n.table-hover > tbody > tr > td.warning:hover,\n.table-hover > tbody > tr > th.warning:hover,\n.table-hover > tbody > tr.warning:hover > td,\n.table-hover > tbody > tr:hover > .warning,\n.table-hover > tbody > tr.warning:hover > th {\n background-color: #faf2cc;\n}\n.table > thead > tr > td.danger,\n.table > tbody > tr > td.danger,\n.table > tfoot > tr > td.danger,\n.table > thead > tr > th.danger,\n.table > tbody > tr > th.danger,\n.table > tfoot > tr > th.danger,\n.table > thead > tr.danger > td,\n.table > tbody > tr.danger > td,\n.table > tfoot > tr.danger > td,\n.table > thead > tr.danger > th,\n.table > tbody > tr.danger > th,\n.table > tfoot > tr.danger > th {\n background-color: #f2dede;\n}\n.table-hover > tbody > tr > td.danger:hover,\n.table-hover > tbody > tr > th.danger:hover,\n.table-hover > tbody > tr.danger:hover > td,\n.table-hover > tbody > tr:hover > .danger,\n.table-hover > tbody > tr.danger:hover > th {\n background-color: #ebcccc;\n}\n.table-responsive {\n min-height: .01%;\n overflow-x: auto;\n}\n@media screen and (max-width: 767px) {\n .table-responsive {\n width: 100%;\n margin-bottom: 15px;\n overflow-y: hidden;\n -ms-overflow-style: -ms-autohiding-scrollbar;\n border: 1px solid #ddd;\n }\n .table-responsive > .table {\n margin-bottom: 0;\n }\n .table-responsive > .table > thead > tr > th,\n .table-responsive > .table > tbody > tr > th,\n .table-responsive > .table > tfoot > tr > th,\n .table-responsive > .table > thead > tr > td,\n .table-responsive > .table > tbody > tr > td,\n .table-responsive > .table > tfoot > tr > td {\n white-space: nowrap;\n }\n .table-responsive > .table-bordered {\n border: 0;\n }\n .table-responsive > .table-bordered > thead > tr > th:first-child,\n .table-responsive > .table-bordered > tbody > tr > th:first-child,\n .table-responsive > .table-bordered > tfoot > tr > th:first-child,\n .table-responsive > .table-bordered > thead > tr > td:first-child,\n .table-responsive > .table-bordered > tbody > tr > td:first-child,\n .table-responsive > .table-bordered > tfoot > tr > td:first-child {\n border-left: 0;\n }\n .table-responsive > .table-bordered > thead > tr > th:last-child,\n .table-responsive > .table-bordered > tbody > tr > th:last-child,\n .table-responsive > .table-bordered > tfoot > tr > th:last-child,\n .table-responsive > .table-bordered > thead > tr > td:last-child,\n .table-responsive > .table-bordered > tbody > tr > td:last-child,\n .table-responsive > .table-bordered > tfoot > tr > td:last-child {\n border-right: 0;\n }\n .table-responsive > .table-bordered > tbody > tr:last-child > th,\n .table-responsive > .table-bordered > tfoot > tr:last-child > th,\n .table-responsive > .table-bordered > tbody > tr:last-child > td,\n .table-responsive > .table-bordered > tfoot > tr:last-child > td {\n border-bottom: 0;\n }\n}\nfieldset {\n min-width: 0;\n padding: 0;\n margin: 0;\n border: 0;\n}\nlegend {\n display: block;\n width: 100%;\n padding: 0;\n margin-bottom: 20px;\n font-size: 21px;\n line-height: inherit;\n color: #333;\n border: 0;\n border-bottom: 1px solid #e5e5e5;\n}\nlabel {\n display: inline-block;\n max-width: 100%;\n margin-bottom: 5px;\n font-weight: bold;\n}\ninput[type=\"search\"] {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\ninput[type=\"radio\"],\ninput[type=\"checkbox\"] {\n margin: 4px 0 0;\n margin-top: 1px \\9;\n line-height: normal;\n}\ninput[type=\"file\"] {\n display: block;\n}\ninput[type=\"range\"] {\n display: block;\n width: 100%;\n}\nselect[multiple],\nselect[size] {\n height: auto;\n}\ninput[type=\"file\"]:focus,\ninput[type=\"radio\"]:focus,\ninput[type=\"checkbox\"]:focus {\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: -2px;\n}\noutput {\n display: block;\n padding-top: 7px;\n font-size: 14px;\n line-height: 1.42857143;\n color: #555;\n}\n.form-control {\n display: block;\n width: 100%;\n height: 34px;\n padding: 6px 12px;\n font-size: 14px;\n line-height: 1.42857143;\n color: #555;\n background-color: #fff;\n background-image: none;\n border: 1px solid #ccc;\n border-radius: 4px;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);\n -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;\n -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;\n transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;\n}\n.form-control:focus {\n border-color: #66afe9;\n outline: 0;\n -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6);\n box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6);\n}\n.form-control::-moz-placeholder {\n color: #999;\n opacity: 1;\n}\n.form-control:-ms-input-placeholder {\n color: #999;\n}\n.form-control::-webkit-input-placeholder {\n color: #999;\n}\n.form-control::-ms-expand {\n background-color: transparent;\n border: 0;\n}\n.form-control[disabled],\n.form-control[readonly],\nfieldset[disabled] .form-control {\n background-color: #eee;\n opacity: 1;\n}\n.form-control[disabled],\nfieldset[disabled] .form-control {\n cursor: not-allowed;\n}\ntextarea.form-control {\n height: auto;\n}\ninput[type=\"search\"] {\n -webkit-appearance: none;\n}\n@media screen and (-webkit-min-device-pixel-ratio: 0) {\n input[type=\"date\"].form-control,\n input[type=\"time\"].form-control,\n input[type=\"datetime-local\"].form-control,\n input[type=\"month\"].form-control {\n line-height: 34px;\n }\n input[type=\"date\"].input-sm,\n input[type=\"time\"].input-sm,\n input[type=\"datetime-local\"].input-sm,\n input[type=\"month\"].input-sm,\n .input-group-sm input[type=\"date\"],\n .input-group-sm input[type=\"time\"],\n .input-group-sm input[type=\"datetime-local\"],\n .input-group-sm input[type=\"month\"] {\n line-height: 30px;\n }\n input[type=\"date\"].input-lg,\n input[type=\"time\"].input-lg,\n input[type=\"datetime-local\"].input-lg,\n input[type=\"month\"].input-lg,\n .input-group-lg input[type=\"date\"],\n .input-group-lg input[type=\"time\"],\n .input-group-lg input[type=\"datetime-local\"],\n .input-group-lg input[type=\"month\"] {\n line-height: 46px;\n }\n}\n.form-group {\n margin-bottom: 15px;\n}\n.radio,\n.checkbox {\n position: relative;\n display: block;\n margin-top: 10px;\n margin-bottom: 10px;\n}\n.radio label,\n.checkbox label {\n min-height: 20px;\n padding-left: 20px;\n margin-bottom: 0;\n font-weight: normal;\n cursor: pointer;\n}\n.radio input[type=\"radio\"],\n.radio-inline input[type=\"radio\"],\n.checkbox input[type=\"checkbox\"],\n.checkbox-inline input[type=\"checkbox\"] {\n position: absolute;\n margin-top: 4px \\9;\n margin-left: -20px;\n}\n.radio + .radio,\n.checkbox + .checkbox {\n margin-top: -5px;\n}\n.radio-inline,\n.checkbox-inline {\n position: relative;\n display: inline-block;\n padding-left: 20px;\n margin-bottom: 0;\n font-weight: normal;\n vertical-align: middle;\n cursor: pointer;\n}\n.radio-inline + .radio-inline,\n.checkbox-inline + .checkbox-inline {\n margin-top: 0;\n margin-left: 10px;\n}\ninput[type=\"radio\"][disabled],\ninput[type=\"checkbox\"][disabled],\ninput[type=\"radio\"].disabled,\ninput[type=\"checkbox\"].disabled,\nfieldset[disabled] input[type=\"radio\"],\nfieldset[disabled] input[type=\"checkbox\"] {\n cursor: not-allowed;\n}\n.radio-inline.disabled,\n.checkbox-inline.disabled,\nfieldset[disabled] .radio-inline,\nfieldset[disabled] .checkbox-inline {\n cursor: not-allowed;\n}\n.radio.disabled label,\n.checkbox.disabled label,\nfieldset[disabled] .radio label,\nfieldset[disabled] .checkbox label {\n cursor: not-allowed;\n}\n.form-control-static {\n min-height: 34px;\n padding-top: 7px;\n padding-bottom: 7px;\n margin-bottom: 0;\n}\n.form-control-static.input-lg,\n.form-control-static.input-sm {\n padding-right: 0;\n padding-left: 0;\n}\n.input-sm {\n height: 30px;\n padding: 5px 10px;\n font-size: 12px;\n line-height: 1.5;\n border-radius: 3px;\n}\nselect.input-sm {\n height: 30px;\n line-height: 30px;\n}\ntextarea.input-sm,\nselect[multiple].input-sm {\n height: auto;\n}\n.form-group-sm .form-control {\n height: 30px;\n padding: 5px 10px;\n font-size: 12px;\n line-height: 1.5;\n border-radius: 3px;\n}\n.form-group-sm select.form-control {\n height: 30px;\n line-height: 30px;\n}\n.form-group-sm textarea.form-control,\n.form-group-sm select[multiple].form-control {\n height: auto;\n}\n.form-group-sm .form-control-static {\n height: 30px;\n min-height: 32px;\n padding: 6px 10px;\n font-size: 12px;\n line-height: 1.5;\n}\n.input-lg {\n height: 46px;\n padding: 10px 16px;\n font-size: 18px;\n line-height: 1.3333333;\n border-radius: 6px;\n}\nselect.input-lg {\n height: 46px;\n line-height: 46px;\n}\ntextarea.input-lg,\nselect[multiple].input-lg {\n height: auto;\n}\n.form-group-lg .form-control {\n height: 46px;\n padding: 10px 16px;\n font-size: 18px;\n line-height: 1.3333333;\n border-radius: 6px;\n}\n.form-group-lg select.form-control {\n height: 46px;\n line-height: 46px;\n}\n.form-group-lg textarea.form-control,\n.form-group-lg select[multiple].form-control {\n height: auto;\n}\n.form-group-lg .form-control-static {\n height: 46px;\n min-height: 38px;\n padding: 11px 16px;\n font-size: 18px;\n line-height: 1.3333333;\n}\n.has-feedback {\n position: relative;\n}\n.has-feedback .form-control {\n padding-right: 42.5px;\n}\n.form-control-feedback {\n position: absolute;\n top: 0;\n right: 0;\n z-index: 2;\n display: block;\n width: 34px;\n height: 34px;\n line-height: 34px;\n text-align: center;\n pointer-events: none;\n}\n.input-lg + .form-control-feedback,\n.input-group-lg + .form-control-feedback,\n.form-group-lg .form-control + .form-control-feedback {\n width: 46px;\n height: 46px;\n line-height: 46px;\n}\n.input-sm + .form-control-feedback,\n.input-group-sm + .form-control-feedback,\n.form-group-sm .form-control + .form-control-feedback {\n width: 30px;\n height: 30px;\n line-height: 30px;\n}\n.has-success .help-block,\n.has-success .control-label,\n.has-success .radio,\n.has-success .checkbox,\n.has-success .radio-inline,\n.has-success .checkbox-inline,\n.has-success.radio label,\n.has-success.checkbox label,\n.has-success.radio-inline label,\n.has-success.checkbox-inline label {\n color: #3c763d;\n}\n.has-success .form-control {\n border-color: #3c763d;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);\n}\n.has-success .form-control:focus {\n border-color: #2b542c;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #67b168;\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #67b168;\n}\n.has-success .input-group-addon {\n color: #3c763d;\n background-color: #dff0d8;\n border-color: #3c763d;\n}\n.has-success .form-control-feedback {\n color: #3c763d;\n}\n.has-warning .help-block,\n.has-warning .control-label,\n.has-warning .radio,\n.has-warning .checkbox,\n.has-warning .radio-inline,\n.has-warning .checkbox-inline,\n.has-warning.radio label,\n.has-warning.checkbox label,\n.has-warning.radio-inline label,\n.has-warning.checkbox-inline label {\n color: #8a6d3b;\n}\n.has-warning .form-control {\n border-color: #8a6d3b;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);\n}\n.has-warning .form-control:focus {\n border-color: #66512c;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #c0a16b;\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #c0a16b;\n}\n.has-warning .input-group-addon {\n color: #8a6d3b;\n background-color: #fcf8e3;\n border-color: #8a6d3b;\n}\n.has-warning .form-control-feedback {\n color: #8a6d3b;\n}\n.has-error .help-block,\n.has-error .control-label,\n.has-error .radio,\n.has-error .checkbox,\n.has-error .radio-inline,\n.has-error .checkbox-inline,\n.has-error.radio label,\n.has-error.checkbox label,\n.has-error.radio-inline label,\n.has-error.checkbox-inline label {\n color: #a94442;\n}\n.has-error .form-control {\n border-color: #a94442;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);\n}\n.has-error .form-control:focus {\n border-color: #843534;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483;\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483;\n}\n.has-error .input-group-addon {\n color: #a94442;\n background-color: #f2dede;\n border-color: #a94442;\n}\n.has-error .form-control-feedback {\n color: #a94442;\n}\n.has-feedback label ~ .form-control-feedback {\n top: 25px;\n}\n.has-feedback label.sr-only ~ .form-control-feedback {\n top: 0;\n}\n.help-block {\n display: block;\n margin-top: 5px;\n margin-bottom: 10px;\n color: #737373;\n}\n@media (min-width: 768px) {\n .form-inline .form-group {\n display: inline-block;\n margin-bottom: 0;\n vertical-align: middle;\n }\n .form-inline .form-control {\n display: inline-block;\n width: auto;\n vertical-align: middle;\n }\n .form-inline .form-control-static {\n display: inline-block;\n }\n .form-inline .input-group {\n display: inline-table;\n vertical-align: middle;\n }\n .form-inline .input-group .input-group-addon,\n .form-inline .input-group .input-group-btn,\n .form-inline .input-group .form-control {\n width: auto;\n }\n .form-inline .input-group > .form-control {\n width: 100%;\n }\n .form-inline .control-label {\n margin-bottom: 0;\n vertical-align: middle;\n }\n .form-inline .radio,\n .form-inline .checkbox {\n display: inline-block;\n margin-top: 0;\n margin-bottom: 0;\n vertical-align: middle;\n }\n .form-inline .radio label,\n .form-inline .checkbox label {\n padding-left: 0;\n }\n .form-inline .radio input[type=\"radio\"],\n .form-inline .checkbox input[type=\"checkbox\"] {\n position: relative;\n margin-left: 0;\n }\n .form-inline .has-feedback .form-control-feedback {\n top: 0;\n }\n}\n.form-horizontal .radio,\n.form-horizontal .checkbox,\n.form-horizontal .radio-inline,\n.form-horizontal .checkbox-inline {\n padding-top: 7px;\n margin-top: 0;\n margin-bottom: 0;\n}\n.form-horizontal .radio,\n.form-horizontal .checkbox {\n min-height: 27px;\n}\n.form-horizontal .form-group {\n margin-right: -15px;\n margin-left: -15px;\n}\n@media (min-width: 768px) {\n .form-horizontal .control-label {\n padding-top: 7px;\n margin-bottom: 0;\n text-align: right;\n }\n}\n.form-horizontal .has-feedback .form-control-feedback {\n right: 15px;\n}\n@media (min-width: 768px) {\n .form-horizontal .form-group-lg .control-label {\n padding-top: 11px;\n font-size: 18px;\n }\n}\n@media (min-width: 768px) {\n .form-horizontal .form-group-sm .control-label {\n padding-top: 6px;\n font-size: 12px;\n }\n}\n.btn {\n display: inline-block;\n padding: 6px 12px;\n margin-bottom: 0;\n font-size: 14px;\n font-weight: normal;\n line-height: 1.42857143;\n text-align: center;\n white-space: nowrap;\n vertical-align: middle;\n -ms-touch-action: manipulation;\n touch-action: manipulation;\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n background-image: none;\n border: 1px solid transparent;\n border-radius: 4px;\n}\n.btn:focus,\n.btn:active:focus,\n.btn.active:focus,\n.btn.focus,\n.btn:active.focus,\n.btn.active.focus {\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: -2px;\n}\n.btn:hover,\n.btn:focus,\n.btn.focus {\n color: #333;\n text-decoration: none;\n}\n.btn:active,\n.btn.active {\n background-image: none;\n outline: 0;\n -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);\n box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);\n}\n.btn.disabled,\n.btn[disabled],\nfieldset[disabled] .btn {\n cursor: not-allowed;\n filter: alpha(opacity=65);\n -webkit-box-shadow: none;\n box-shadow: none;\n opacity: .65;\n}\na.btn.disabled,\nfieldset[disabled] a.btn {\n pointer-events: none;\n}\n.btn-default {\n color: #333;\n background-color: #fff;\n border-color: #ccc;\n}\n.btn-default:focus,\n.btn-default.focus {\n color: #333;\n background-color: #e6e6e6;\n border-color: #8c8c8c;\n}\n.btn-default:hover {\n color: #333;\n background-color: #e6e6e6;\n border-color: #adadad;\n}\n.btn-default:active,\n.btn-default.active,\n.open > .dropdown-toggle.btn-default {\n color: #333;\n background-color: #e6e6e6;\n border-color: #adadad;\n}\n.btn-default:active:hover,\n.btn-default.active:hover,\n.open > .dropdown-toggle.btn-default:hover,\n.btn-default:active:focus,\n.btn-default.active:focus,\n.open > .dropdown-toggle.btn-default:focus,\n.btn-default:active.focus,\n.btn-default.active.focus,\n.open > .dropdown-toggle.btn-default.focus {\n color: #333;\n background-color: #d4d4d4;\n border-color: #8c8c8c;\n}\n.btn-default:active,\n.btn-default.active,\n.open > .dropdown-toggle.btn-default {\n background-image: none;\n}\n.btn-default.disabled:hover,\n.btn-default[disabled]:hover,\nfieldset[disabled] .btn-default:hover,\n.btn-default.disabled:focus,\n.btn-default[disabled]:focus,\nfieldset[disabled] .btn-default:focus,\n.btn-default.disabled.focus,\n.btn-default[disabled].focus,\nfieldset[disabled] .btn-default.focus {\n background-color: #fff;\n border-color: #ccc;\n}\n.btn-default .badge {\n color: #fff;\n background-color: #333;\n}\n.btn-primary {\n color: #fff;\n background-color: #337ab7;\n border-color: #2e6da4;\n}\n.btn-primary:focus,\n.btn-primary.focus {\n color: #fff;\n background-color: #286090;\n border-color: #122b40;\n}\n.btn-primary:hover {\n color: #fff;\n background-color: #286090;\n border-color: #204d74;\n}\n.btn-primary:active,\n.btn-primary.active,\n.open > .dropdown-toggle.btn-primary {\n color: #fff;\n background-color: #286090;\n border-color: #204d74;\n}\n.btn-primary:active:hover,\n.btn-primary.active:hover,\n.open > .dropdown-toggle.btn-primary:hover,\n.btn-primary:active:focus,\n.btn-primary.active:focus,\n.open > .dropdown-toggle.btn-primary:focus,\n.btn-primary:active.focus,\n.btn-primary.active.focus,\n.open > .dropdown-toggle.btn-primary.focus {\n color: #fff;\n background-color: #204d74;\n border-color: #122b40;\n}\n.btn-primary:active,\n.btn-primary.active,\n.open > .dropdown-toggle.btn-primary {\n background-image: none;\n}\n.btn-primary.disabled:hover,\n.btn-primary[disabled]:hover,\nfieldset[disabled] .btn-primary:hover,\n.btn-primary.disabled:focus,\n.btn-primary[disabled]:focus,\nfieldset[disabled] .btn-primary:focus,\n.btn-primary.disabled.focus,\n.btn-primary[disabled].focus,\nfieldset[disabled] .btn-primary.focus {\n background-color: #337ab7;\n border-color: #2e6da4;\n}\n.btn-primary .badge {\n color: #337ab7;\n background-color: #fff;\n}\n.btn-success {\n color: #fff;\n background-color: #5cb85c;\n border-color: #4cae4c;\n}\n.btn-success:focus,\n.btn-success.focus {\n color: #fff;\n background-color: #449d44;\n border-color: #255625;\n}\n.btn-success:hover {\n color: #fff;\n background-color: #449d44;\n border-color: #398439;\n}\n.btn-success:active,\n.btn-success.active,\n.open > .dropdown-toggle.btn-success {\n color: #fff;\n background-color: #449d44;\n border-color: #398439;\n}\n.btn-success:active:hover,\n.btn-success.active:hover,\n.open > .dropdown-toggle.btn-success:hover,\n.btn-success:active:focus,\n.btn-success.active:focus,\n.open > .dropdown-toggle.btn-success:focus,\n.btn-success:active.focus,\n.btn-success.active.focus,\n.open > .dropdown-toggle.btn-success.focus {\n color: #fff;\n background-color: #398439;\n border-color: #255625;\n}\n.btn-success:active,\n.btn-success.active,\n.open > .dropdown-toggle.btn-success {\n background-image: none;\n}\n.btn-success.disabled:hover,\n.btn-success[disabled]:hover,\nfieldset[disabled] .btn-success:hover,\n.btn-success.disabled:focus,\n.btn-success[disabled]:focus,\nfieldset[disabled] .btn-success:focus,\n.btn-success.disabled.focus,\n.btn-success[disabled].focus,\nfieldset[disabled] .btn-success.focus {\n background-color: #5cb85c;\n border-color: #4cae4c;\n}\n.btn-success .badge {\n color: #5cb85c;\n background-color: #fff;\n}\n.btn-info {\n color: #fff;\n background-color: #5bc0de;\n border-color: #46b8da;\n}\n.btn-info:focus,\n.btn-info.focus {\n color: #fff;\n background-color: #31b0d5;\n border-color: #1b6d85;\n}\n.btn-info:hover {\n color: #fff;\n background-color: #31b0d5;\n border-color: #269abc;\n}\n.btn-info:active,\n.btn-info.active,\n.open > .dropdown-toggle.btn-info {\n color: #fff;\n background-color: #31b0d5;\n border-color: #269abc;\n}\n.btn-info:active:hover,\n.btn-info.active:hover,\n.open > .dropdown-toggle.btn-info:hover,\n.btn-info:active:focus,\n.btn-info.active:focus,\n.open > .dropdown-toggle.btn-info:focus,\n.btn-info:active.focus,\n.btn-info.active.focus,\n.open > .dropdown-toggle.btn-info.focus {\n color: #fff;\n background-color: #269abc;\n border-color: #1b6d85;\n}\n.btn-info:active,\n.btn-info.active,\n.open > .dropdown-toggle.btn-info {\n background-image: none;\n}\n.btn-info.disabled:hover,\n.btn-info[disabled]:hover,\nfieldset[disabled] .btn-info:hover,\n.btn-info.disabled:focus,\n.btn-info[disabled]:focus,\nfieldset[disabled] .btn-info:focus,\n.btn-info.disabled.focus,\n.btn-info[disabled].focus,\nfieldset[disabled] .btn-info.focus {\n background-color: #5bc0de;\n border-color: #46b8da;\n}\n.btn-info .badge {\n color: #5bc0de;\n background-color: #fff;\n}\n.btn-warning {\n color: #fff;\n background-color: #f0ad4e;\n border-color: #eea236;\n}\n.btn-warning:focus,\n.btn-warning.focus {\n color: #fff;\n background-color: #ec971f;\n border-color: #985f0d;\n}\n.btn-warning:hover {\n color: #fff;\n background-color: #ec971f;\n border-color: #d58512;\n}\n.btn-warning:active,\n.btn-warning.active,\n.open > .dropdown-toggle.btn-warning {\n color: #fff;\n background-color: #ec971f;\n border-color: #d58512;\n}\n.btn-warning:active:hover,\n.btn-warning.active:hover,\n.open > .dropdown-toggle.btn-warning:hover,\n.btn-warning:active:focus,\n.btn-warning.active:focus,\n.open > .dropdown-toggle.btn-warning:focus,\n.btn-warning:active.focus,\n.btn-warning.active.focus,\n.open > .dropdown-toggle.btn-warning.focus {\n color: #fff;\n background-color: #d58512;\n border-color: #985f0d;\n}\n.btn-warning:active,\n.btn-warning.active,\n.open > .dropdown-toggle.btn-warning {\n background-image: none;\n}\n.btn-warning.disabled:hover,\n.btn-warning[disabled]:hover,\nfieldset[disabled] .btn-warning:hover,\n.btn-warning.disabled:focus,\n.btn-warning[disabled]:focus,\nfieldset[disabled] .btn-warning:focus,\n.btn-warning.disabled.focus,\n.btn-warning[disabled].focus,\nfieldset[disabled] .btn-warning.focus {\n background-color: #f0ad4e;\n border-color: #eea236;\n}\n.btn-warning .badge {\n color: #f0ad4e;\n background-color: #fff;\n}\n.btn-danger {\n color: #fff;\n background-color: #d9534f;\n border-color: #d43f3a;\n}\n.btn-danger:focus,\n.btn-danger.focus {\n color: #fff;\n background-color: #c9302c;\n border-color: #761c19;\n}\n.btn-danger:hover {\n color: #fff;\n background-color: #c9302c;\n border-color: #ac2925;\n}\n.btn-danger:active,\n.btn-danger.active,\n.open > .dropdown-toggle.btn-danger {\n color: #fff;\n background-color: #c9302c;\n border-color: #ac2925;\n}\n.btn-danger:active:hover,\n.btn-danger.active:hover,\n.open > .dropdown-toggle.btn-danger:hover,\n.btn-danger:active:focus,\n.btn-danger.active:focus,\n.open > .dropdown-toggle.btn-danger:focus,\n.btn-danger:active.focus,\n.btn-danger.active.focus,\n.open > .dropdown-toggle.btn-danger.focus {\n color: #fff;\n background-color: #ac2925;\n border-color: #761c19;\n}\n.btn-danger:active,\n.btn-danger.active,\n.open > .dropdown-toggle.btn-danger {\n background-image: none;\n}\n.btn-danger.disabled:hover,\n.btn-danger[disabled]:hover,\nfieldset[disabled] .btn-danger:hover,\n.btn-danger.disabled:focus,\n.btn-danger[disabled]:focus,\nfieldset[disabled] .btn-danger:focus,\n.btn-danger.disabled.focus,\n.btn-danger[disabled].focus,\nfieldset[disabled] .btn-danger.focus {\n background-color: #d9534f;\n border-color: #d43f3a;\n}\n.btn-danger .badge {\n color: #d9534f;\n background-color: #fff;\n}\n.btn-link {\n font-weight: normal;\n color: #337ab7;\n border-radius: 0;\n}\n.btn-link,\n.btn-link:active,\n.btn-link.active,\n.btn-link[disabled],\nfieldset[disabled] .btn-link {\n background-color: transparent;\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n.btn-link,\n.btn-link:hover,\n.btn-link:focus,\n.btn-link:active {\n border-color: transparent;\n}\n.btn-link:hover,\n.btn-link:focus {\n color: #23527c;\n text-decoration: underline;\n background-color: transparent;\n}\n.btn-link[disabled]:hover,\nfieldset[disabled] .btn-link:hover,\n.btn-link[disabled]:focus,\nfieldset[disabled] .btn-link:focus {\n color: #777;\n text-decoration: none;\n}\n.btn-lg,\n.btn-group-lg > .btn {\n padding: 10px 16px;\n font-size: 18px;\n line-height: 1.3333333;\n border-radius: 6px;\n}\n.btn-sm,\n.btn-group-sm > .btn {\n padding: 5px 10px;\n font-size: 12px;\n line-height: 1.5;\n border-radius: 3px;\n}\n.btn-xs,\n.btn-group-xs > .btn {\n padding: 1px 5px;\n font-size: 12px;\n line-height: 1.5;\n border-radius: 3px;\n}\n.btn-block {\n display: block;\n width: 100%;\n}\n.btn-block + .btn-block {\n margin-top: 5px;\n}\ninput[type=\"submit\"].btn-block,\ninput[type=\"reset\"].btn-block,\ninput[type=\"button\"].btn-block {\n width: 100%;\n}\n.fade {\n opacity: 0;\n -webkit-transition: opacity .15s linear;\n -o-transition: opacity .15s linear;\n transition: opacity .15s linear;\n}\n.fade.in {\n opacity: 1;\n}\n.collapse {\n display: none;\n}\n.collapse.in {\n display: block;\n}\ntr.collapse.in {\n display: table-row;\n}\ntbody.collapse.in {\n display: table-row-group;\n}\n.collapsing {\n position: relative;\n height: 0;\n overflow: hidden;\n -webkit-transition-timing-function: ease;\n -o-transition-timing-function: ease;\n transition-timing-function: ease;\n -webkit-transition-duration: .35s;\n -o-transition-duration: .35s;\n transition-duration: .35s;\n -webkit-transition-property: height, visibility;\n -o-transition-property: height, visibility;\n transition-property: height, visibility;\n}\n.caret {\n display: inline-block;\n width: 0;\n height: 0;\n margin-left: 2px;\n vertical-align: middle;\n border-top: 4px dashed;\n border-top: 4px solid \\9;\n border-right: 4px solid transparent;\n border-left: 4px solid transparent;\n}\n.dropup,\n.dropdown {\n position: relative;\n}\n.dropdown-toggle:focus {\n outline: 0;\n}\n.dropdown-menu {\n position: absolute;\n top: 100%;\n left: 0;\n z-index: 1000;\n display: none;\n float: left;\n min-width: 160px;\n padding: 5px 0;\n margin: 2px 0 0;\n font-size: 14px;\n text-align: left;\n list-style: none;\n background-color: #fff;\n -webkit-background-clip: padding-box;\n background-clip: padding-box;\n border: 1px solid #ccc;\n border: 1px solid rgba(0, 0, 0, .15);\n border-radius: 4px;\n -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, .175);\n box-shadow: 0 6px 12px rgba(0, 0, 0, .175);\n}\n.dropdown-menu.pull-right {\n right: 0;\n left: auto;\n}\n.dropdown-menu .divider {\n height: 1px;\n margin: 9px 0;\n overflow: hidden;\n background-color: #e5e5e5;\n}\n.dropdown-menu > li > a {\n display: block;\n padding: 3px 20px;\n clear: both;\n font-weight: normal;\n line-height: 1.42857143;\n color: #333;\n white-space: nowrap;\n}\n.dropdown-menu > li > a:hover,\n.dropdown-menu > li > a:focus {\n color: #262626;\n text-decoration: none;\n background-color: #f5f5f5;\n}\n.dropdown-menu > .active > a,\n.dropdown-menu > .active > a:hover,\n.dropdown-menu > .active > a:focus {\n color: #fff;\n text-decoration: none;\n background-color: #337ab7;\n outline: 0;\n}\n.dropdown-menu > .disabled > a,\n.dropdown-menu > .disabled > a:hover,\n.dropdown-menu > .disabled > a:focus {\n color: #777;\n}\n.dropdown-menu > .disabled > a:hover,\n.dropdown-menu > .disabled > a:focus {\n text-decoration: none;\n cursor: not-allowed;\n background-color: transparent;\n background-image: none;\n filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n}\n.open > .dropdown-menu {\n display: block;\n}\n.open > a {\n outline: 0;\n}\n.dropdown-menu-right {\n right: 0;\n left: auto;\n}\n.dropdown-menu-left {\n right: auto;\n left: 0;\n}\n.dropdown-header {\n display: block;\n padding: 3px 20px;\n font-size: 12px;\n line-height: 1.42857143;\n color: #777;\n white-space: nowrap;\n}\n.dropdown-backdrop {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 990;\n}\n.pull-right > .dropdown-menu {\n right: 0;\n left: auto;\n}\n.dropup .caret,\n.navbar-fixed-bottom .dropdown .caret {\n content: \"\";\n border-top: 0;\n border-bottom: 4px dashed;\n border-bottom: 4px solid \\9;\n}\n.dropup .dropdown-menu,\n.navbar-fixed-bottom .dropdown .dropdown-menu {\n top: auto;\n bottom: 100%;\n margin-bottom: 2px;\n}\n@media (min-width: 768px) {\n .navbar-right .dropdown-menu {\n right: 0;\n left: auto;\n }\n .navbar-right .dropdown-menu-left {\n right: auto;\n left: 0;\n }\n}\n.btn-group,\n.btn-group-vertical {\n position: relative;\n display: inline-block;\n vertical-align: middle;\n}\n.btn-group > .btn,\n.btn-group-vertical > .btn {\n position: relative;\n float: left;\n}\n.btn-group > .btn:hover,\n.btn-group-vertical > .btn:hover,\n.btn-group > .btn:focus,\n.btn-group-vertical > .btn:focus,\n.btn-group > .btn:active,\n.btn-group-vertical > .btn:active,\n.btn-group > .btn.active,\n.btn-group-vertical > .btn.active {\n z-index: 2;\n}\n.btn-group .btn + .btn,\n.btn-group .btn + .btn-group,\n.btn-group .btn-group + .btn,\n.btn-group .btn-group + .btn-group {\n margin-left: -1px;\n}\n.btn-toolbar {\n margin-left: -5px;\n}\n.btn-toolbar .btn,\n.btn-toolbar .btn-group,\n.btn-toolbar .input-group {\n float: left;\n}\n.btn-toolbar > .btn,\n.btn-toolbar > .btn-group,\n.btn-toolbar > .input-group {\n margin-left: 5px;\n}\n.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {\n border-radius: 0;\n}\n.btn-group > .btn:first-child {\n margin-left: 0;\n}\n.btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.btn-group > .btn:last-child:not(:first-child),\n.btn-group > .dropdown-toggle:not(:first-child) {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n.btn-group > .btn-group {\n float: left;\n}\n.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {\n border-radius: 0;\n}\n.btn-group > .btn-group:first-child:not(:last-child) > .btn:last-child,\n.btn-group > .btn-group:first-child:not(:last-child) > .dropdown-toggle {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n.btn-group .dropdown-toggle:active,\n.btn-group.open .dropdown-toggle {\n outline: 0;\n}\n.btn-group > .btn + .dropdown-toggle {\n padding-right: 8px;\n padding-left: 8px;\n}\n.btn-group > .btn-lg + .dropdown-toggle {\n padding-right: 12px;\n padding-left: 12px;\n}\n.btn-group.open .dropdown-toggle {\n -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);\n box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);\n}\n.btn-group.open .dropdown-toggle.btn-link {\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n.btn .caret {\n margin-left: 0;\n}\n.btn-lg .caret {\n border-width: 5px 5px 0;\n border-bottom-width: 0;\n}\n.dropup .btn-lg .caret {\n border-width: 0 5px 5px;\n}\n.btn-group-vertical > .btn,\n.btn-group-vertical > .btn-group,\n.btn-group-vertical > .btn-group > .btn {\n display: block;\n float: none;\n width: 100%;\n max-width: 100%;\n}\n.btn-group-vertical > .btn-group > .btn {\n float: none;\n}\n.btn-group-vertical > .btn + .btn,\n.btn-group-vertical > .btn + .btn-group,\n.btn-group-vertical > .btn-group + .btn,\n.btn-group-vertical > .btn-group + .btn-group {\n margin-top: -1px;\n margin-left: 0;\n}\n.btn-group-vertical > .btn:not(:first-child):not(:last-child) {\n border-radius: 0;\n}\n.btn-group-vertical > .btn:first-child:not(:last-child) {\n border-top-left-radius: 4px;\n border-top-right-radius: 4px;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n}\n.btn-group-vertical > .btn:last-child:not(:first-child) {\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n border-bottom-right-radius: 4px;\n border-bottom-left-radius: 4px;\n}\n.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn {\n border-radius: 0;\n}\n.btn-group-vertical > .btn-group:first-child:not(:last-child) > .btn:last-child,\n.btn-group-vertical > .btn-group:first-child:not(:last-child) > .dropdown-toggle {\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n}\n.btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child {\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n}\n.btn-group-justified {\n display: table;\n width: 100%;\n table-layout: fixed;\n border-collapse: separate;\n}\n.btn-group-justified > .btn,\n.btn-group-justified > .btn-group {\n display: table-cell;\n float: none;\n width: 1%;\n}\n.btn-group-justified > .btn-group .btn {\n width: 100%;\n}\n.btn-group-justified > .btn-group .dropdown-menu {\n left: auto;\n}\n[data-toggle=\"buttons\"] > .btn input[type=\"radio\"],\n[data-toggle=\"buttons\"] > .btn-group > .btn input[type=\"radio\"],\n[data-toggle=\"buttons\"] > .btn input[type=\"checkbox\"],\n[data-toggle=\"buttons\"] > .btn-group > .btn input[type=\"checkbox\"] {\n position: absolute;\n clip: rect(0, 0, 0, 0);\n pointer-events: none;\n}\n.input-group {\n position: relative;\n display: table;\n border-collapse: separate;\n}\n.input-group[class*=\"col-\"] {\n float: none;\n padding-right: 0;\n padding-left: 0;\n}\n.input-group .form-control {\n position: relative;\n z-index: 2;\n float: left;\n width: 100%;\n margin-bottom: 0;\n}\n.input-group .form-control:focus {\n z-index: 3;\n}\n.input-group-lg > .form-control,\n.input-group-lg > .input-group-addon,\n.input-group-lg > .input-group-btn > .btn {\n height: 46px;\n padding: 10px 16px;\n font-size: 18px;\n line-height: 1.3333333;\n border-radius: 6px;\n}\nselect.input-group-lg > .form-control,\nselect.input-group-lg > .input-group-addon,\nselect.input-group-lg > .input-group-btn > .btn {\n height: 46px;\n line-height: 46px;\n}\ntextarea.input-group-lg > .form-control,\ntextarea.input-group-lg > .input-group-addon,\ntextarea.input-group-lg > .input-group-btn > .btn,\nselect[multiple].input-group-lg > .form-control,\nselect[multiple].input-group-lg > .input-group-addon,\nselect[multiple].input-group-lg > .input-group-btn > .btn {\n height: auto;\n}\n.input-group-sm > .form-control,\n.input-group-sm > .input-group-addon,\n.input-group-sm > .input-group-btn > .btn {\n height: 30px;\n padding: 5px 10px;\n font-size: 12px;\n line-height: 1.5;\n border-radius: 3px;\n}\nselect.input-group-sm > .form-control,\nselect.input-group-sm > .input-group-addon,\nselect.input-group-sm > .input-group-btn > .btn {\n height: 30px;\n line-height: 30px;\n}\ntextarea.input-group-sm > .form-control,\ntextarea.input-group-sm > .input-group-addon,\ntextarea.input-group-sm > .input-group-btn > .btn,\nselect[multiple].input-group-sm > .form-control,\nselect[multiple].input-group-sm > .input-group-addon,\nselect[multiple].input-group-sm > .input-group-btn > .btn {\n height: auto;\n}\n.input-group-addon,\n.input-group-btn,\n.input-group .form-control {\n display: table-cell;\n}\n.input-group-addon:not(:first-child):not(:last-child),\n.input-group-btn:not(:first-child):not(:last-child),\n.input-group .form-control:not(:first-child):not(:last-child) {\n border-radius: 0;\n}\n.input-group-addon,\n.input-group-btn {\n width: 1%;\n white-space: nowrap;\n vertical-align: middle;\n}\n.input-group-addon {\n padding: 6px 12px;\n font-size: 14px;\n font-weight: normal;\n line-height: 1;\n color: #555;\n text-align: center;\n background-color: #eee;\n border: 1px solid #ccc;\n border-radius: 4px;\n}\n.input-group-addon.input-sm {\n padding: 5px 10px;\n font-size: 12px;\n border-radius: 3px;\n}\n.input-group-addon.input-lg {\n padding: 10px 16px;\n font-size: 18px;\n border-radius: 6px;\n}\n.input-group-addon input[type=\"radio\"],\n.input-group-addon input[type=\"checkbox\"] {\n margin-top: 0;\n}\n.input-group .form-control:first-child,\n.input-group-addon:first-child,\n.input-group-btn:first-child > .btn,\n.input-group-btn:first-child > .btn-group > .btn,\n.input-group-btn:first-child > .dropdown-toggle,\n.input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle),\n.input-group-btn:last-child > .btn-group:not(:last-child) > .btn {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.input-group-addon:first-child {\n border-right: 0;\n}\n.input-group .form-control:last-child,\n.input-group-addon:last-child,\n.input-group-btn:last-child > .btn,\n.input-group-btn:last-child > .btn-group > .btn,\n.input-group-btn:last-child > .dropdown-toggle,\n.input-group-btn:first-child > .btn:not(:first-child),\n.input-group-btn:first-child > .btn-group:not(:first-child) > .btn {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n.input-group-addon:last-child {\n border-left: 0;\n}\n.input-group-btn {\n position: relative;\n font-size: 0;\n white-space: nowrap;\n}\n.input-group-btn > .btn {\n position: relative;\n}\n.input-group-btn > .btn + .btn {\n margin-left: -1px;\n}\n.input-group-btn > .btn:hover,\n.input-group-btn > .btn:focus,\n.input-group-btn > .btn:active {\n z-index: 2;\n}\n.input-group-btn:first-child > .btn,\n.input-group-btn:first-child > .btn-group {\n margin-right: -1px;\n}\n.input-group-btn:last-child > .btn,\n.input-group-btn:last-child > .btn-group {\n z-index: 2;\n margin-left: -1px;\n}\n.nav {\n padding-left: 0;\n margin-bottom: 0;\n list-style: none;\n}\n.nav > li {\n position: relative;\n display: block;\n}\n.nav > li > a {\n position: relative;\n display: block;\n padding: 10px 15px;\n}\n.nav > li > a:hover,\n.nav > li > a:focus {\n text-decoration: none;\n background-color: #eee;\n}\n.nav > li.disabled > a {\n color: #777;\n}\n.nav > li.disabled > a:hover,\n.nav > li.disabled > a:focus {\n color: #777;\n text-decoration: none;\n cursor: not-allowed;\n background-color: transparent;\n}\n.nav .open > a,\n.nav .open > a:hover,\n.nav .open > a:focus {\n background-color: #eee;\n border-color: #337ab7;\n}\n.nav .nav-divider {\n height: 1px;\n margin: 9px 0;\n overflow: hidden;\n background-color: #e5e5e5;\n}\n.nav > li > a > img {\n max-width: none;\n}\n.nav-tabs {\n border-bottom: 1px solid #ddd;\n}\n.nav-tabs > li {\n float: left;\n margin-bottom: -1px;\n}\n.nav-tabs > li > a {\n margin-right: 2px;\n line-height: 1.42857143;\n border: 1px solid transparent;\n border-radius: 4px 4px 0 0;\n}\n.nav-tabs > li > a:hover {\n border-color: #eee #eee #ddd;\n}\n.nav-tabs > li.active > a,\n.nav-tabs > li.active > a:hover,\n.nav-tabs > li.active > a:focus {\n color: #555;\n cursor: default;\n background-color: #fff;\n border: 1px solid #ddd;\n border-bottom-color: transparent;\n}\n.nav-tabs.nav-justified {\n width: 100%;\n border-bottom: 0;\n}\n.nav-tabs.nav-justified > li {\n float: none;\n}\n.nav-tabs.nav-justified > li > a {\n margin-bottom: 5px;\n text-align: center;\n}\n.nav-tabs.nav-justified > .dropdown .dropdown-menu {\n top: auto;\n left: auto;\n}\n@media (min-width: 768px) {\n .nav-tabs.nav-justified > li {\n display: table-cell;\n width: 1%;\n }\n .nav-tabs.nav-justified > li > a {\n margin-bottom: 0;\n }\n}\n.nav-tabs.nav-justified > li > a {\n margin-right: 0;\n border-radius: 4px;\n}\n.nav-tabs.nav-justified > .active > a,\n.nav-tabs.nav-justified > .active > a:hover,\n.nav-tabs.nav-justified > .active > a:focus {\n border: 1px solid #ddd;\n}\n@media (min-width: 768px) {\n .nav-tabs.nav-justified > li > a {\n border-bottom: 1px solid #ddd;\n border-radius: 4px 4px 0 0;\n }\n .nav-tabs.nav-justified > .active > a,\n .nav-tabs.nav-justified > .active > a:hover,\n .nav-tabs.nav-justified > .active > a:focus {\n border-bottom-color: #fff;\n }\n}\n.nav-pills > li {\n float: left;\n}\n.nav-pills > li > a {\n border-radius: 4px;\n}\n.nav-pills > li + li {\n margin-left: 2px;\n}\n.nav-pills > li.active > a,\n.nav-pills > li.active > a:hover,\n.nav-pills > li.active > a:focus {\n color: #fff;\n background-color: #337ab7;\n}\n.nav-stacked > li {\n float: none;\n}\n.nav-stacked > li + li {\n margin-top: 2px;\n margin-left: 0;\n}\n.nav-justified {\n width: 100%;\n}\n.nav-justified > li {\n float: none;\n}\n.nav-justified > li > a {\n margin-bottom: 5px;\n text-align: center;\n}\n.nav-justified > .dropdown .dropdown-menu {\n top: auto;\n left: auto;\n}\n@media (min-width: 768px) {\n .nav-justified > li {\n display: table-cell;\n width: 1%;\n }\n .nav-justified > li > a {\n margin-bottom: 0;\n }\n}\n.nav-tabs-justified {\n border-bottom: 0;\n}\n.nav-tabs-justified > li > a {\n margin-right: 0;\n border-radius: 4px;\n}\n.nav-tabs-justified > .active > a,\n.nav-tabs-justified > .active > a:hover,\n.nav-tabs-justified > .active > a:focus {\n border: 1px solid #ddd;\n}\n@media (min-width: 768px) {\n .nav-tabs-justified > li > a {\n border-bottom: 1px solid #ddd;\n border-radius: 4px 4px 0 0;\n }\n .nav-tabs-justified > .active > a,\n .nav-tabs-justified > .active > a:hover,\n .nav-tabs-justified > .active > a:focus {\n border-bottom-color: #fff;\n }\n}\n.tab-content > .tab-pane {\n display: none;\n}\n.tab-content > .active {\n display: block;\n}\n.nav-tabs .dropdown-menu {\n margin-top: -1px;\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n}\n.navbar {\n position: relative;\n min-height: 50px;\n margin-bottom: 20px;\n border: 1px solid transparent;\n}\n@media (min-width: 768px) {\n .navbar {\n border-radius: 4px;\n }\n}\n@media (min-width: 768px) {\n .navbar-header {\n float: left;\n }\n}\n.navbar-collapse {\n padding-right: 15px;\n padding-left: 15px;\n overflow-x: visible;\n -webkit-overflow-scrolling: touch;\n border-top: 1px solid transparent;\n -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);\n}\n.navbar-collapse.in {\n overflow-y: auto;\n}\n@media (min-width: 768px) {\n .navbar-collapse {\n width: auto;\n border-top: 0;\n -webkit-box-shadow: none;\n box-shadow: none;\n }\n .navbar-collapse.collapse {\n display: block !important;\n height: auto !important;\n padding-bottom: 0;\n overflow: visible !important;\n }\n .navbar-collapse.in {\n overflow-y: visible;\n }\n .navbar-fixed-top .navbar-collapse,\n .navbar-static-top .navbar-collapse,\n .navbar-fixed-bottom .navbar-collapse {\n padding-right: 0;\n padding-left: 0;\n }\n}\n.navbar-fixed-top .navbar-collapse,\n.navbar-fixed-bottom .navbar-collapse {\n max-height: 340px;\n}\n@media (max-device-width: 480px) and (orientation: landscape) {\n .navbar-fixed-top .navbar-collapse,\n .navbar-fixed-bottom .navbar-collapse {\n max-height: 200px;\n }\n}\n.container > .navbar-header,\n.container-fluid > .navbar-header,\n.container > .navbar-collapse,\n.container-fluid > .navbar-collapse {\n margin-right: -15px;\n margin-left: -15px;\n}\n@media (min-width: 768px) {\n .container > .navbar-header,\n .container-fluid > .navbar-header,\n .container > .navbar-collapse,\n .container-fluid > .navbar-collapse {\n margin-right: 0;\n margin-left: 0;\n }\n}\n.navbar-static-top {\n z-index: 1000;\n border-width: 0 0 1px;\n}\n@media (min-width: 768px) {\n .navbar-static-top {\n border-radius: 0;\n }\n}\n.navbar-fixed-top,\n.navbar-fixed-bottom {\n position: fixed;\n right: 0;\n left: 0;\n z-index: 1030;\n}\n@media (min-width: 768px) {\n .navbar-fixed-top,\n .navbar-fixed-bottom {\n border-radius: 0;\n }\n}\n.navbar-fixed-top {\n top: 0;\n border-width: 0 0 1px;\n}\n.navbar-fixed-bottom {\n bottom: 0;\n margin-bottom: 0;\n border-width: 1px 0 0;\n}\n.navbar-brand {\n float: left;\n height: 50px;\n padding: 15px 15px;\n font-size: 18px;\n line-height: 20px;\n}\n.navbar-brand:hover,\n.navbar-brand:focus {\n text-decoration: none;\n}\n.navbar-brand > img {\n display: block;\n}\n@media (min-width: 768px) {\n .navbar > .container .navbar-brand,\n .navbar > .container-fluid .navbar-brand {\n margin-left: -15px;\n }\n}\n.navbar-toggle {\n position: relative;\n float: right;\n padding: 9px 10px;\n margin-top: 8px;\n margin-right: 15px;\n margin-bottom: 8px;\n background-color: transparent;\n background-image: none;\n border: 1px solid transparent;\n border-radius: 4px;\n}\n.navbar-toggle:focus {\n outline: 0;\n}\n.navbar-toggle .icon-bar {\n display: block;\n width: 22px;\n height: 2px;\n border-radius: 1px;\n}\n.navbar-toggle .icon-bar + .icon-bar {\n margin-top: 4px;\n}\n@media (min-width: 768px) {\n .navbar-toggle {\n display: none;\n }\n}\n.navbar-nav {\n margin: 7.5px -15px;\n}\n.navbar-nav > li > a {\n padding-top: 10px;\n padding-bottom: 10px;\n line-height: 20px;\n}\n@media (max-width: 767px) {\n .navbar-nav .open .dropdown-menu {\n position: static;\n float: none;\n width: auto;\n margin-top: 0;\n background-color: transparent;\n border: 0;\n -webkit-box-shadow: none;\n box-shadow: none;\n }\n .navbar-nav .open .dropdown-menu > li > a,\n .navbar-nav .open .dropdown-menu .dropdown-header {\n padding: 5px 15px 5px 25px;\n }\n .navbar-nav .open .dropdown-menu > li > a {\n line-height: 20px;\n }\n .navbar-nav .open .dropdown-menu > li > a:hover,\n .navbar-nav .open .dropdown-menu > li > a:focus {\n background-image: none;\n }\n}\n@media (min-width: 768px) {\n .navbar-nav {\n float: left;\n margin: 0;\n }\n .navbar-nav > li {\n float: left;\n }\n .navbar-nav > li > a {\n padding-top: 15px;\n padding-bottom: 15px;\n }\n}\n.navbar-form {\n padding: 10px 15px;\n margin-top: 8px;\n margin-right: -15px;\n margin-bottom: 8px;\n margin-left: -15px;\n border-top: 1px solid transparent;\n border-bottom: 1px solid transparent;\n -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 1px 0 rgba(255, 255, 255, .1);\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 1px 0 rgba(255, 255, 255, .1);\n}\n@media (min-width: 768px) {\n .navbar-form .form-group {\n display: inline-block;\n margin-bottom: 0;\n vertical-align: middle;\n }\n .navbar-form .form-control {\n display: inline-block;\n width: auto;\n vertical-align: middle;\n }\n .navbar-form .form-control-static {\n display: inline-block;\n }\n .navbar-form .input-group {\n display: inline-table;\n vertical-align: middle;\n }\n .navbar-form .input-group .input-group-addon,\n .navbar-form .input-group .input-group-btn,\n .navbar-form .input-group .form-control {\n width: auto;\n }\n .navbar-form .input-group > .form-control {\n width: 100%;\n }\n .navbar-form .control-label {\n margin-bottom: 0;\n vertical-align: middle;\n }\n .navbar-form .radio,\n .navbar-form .checkbox {\n display: inline-block;\n margin-top: 0;\n margin-bottom: 0;\n vertical-align: middle;\n }\n .navbar-form .radio label,\n .navbar-form .checkbox label {\n padding-left: 0;\n }\n .navbar-form .radio input[type=\"radio\"],\n .navbar-form .checkbox input[type=\"checkbox\"] {\n position: relative;\n margin-left: 0;\n }\n .navbar-form .has-feedback .form-control-feedback {\n top: 0;\n }\n}\n@media (max-width: 767px) {\n .navbar-form .form-group {\n margin-bottom: 5px;\n }\n .navbar-form .form-group:last-child {\n margin-bottom: 0;\n }\n}\n@media (min-width: 768px) {\n .navbar-form {\n width: auto;\n padding-top: 0;\n padding-bottom: 0;\n margin-right: 0;\n margin-left: 0;\n border: 0;\n -webkit-box-shadow: none;\n box-shadow: none;\n }\n}\n.navbar-nav > li > .dropdown-menu {\n margin-top: 0;\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n}\n.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu {\n margin-bottom: 0;\n border-top-left-radius: 4px;\n border-top-right-radius: 4px;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n}\n.navbar-btn {\n margin-top: 8px;\n margin-bottom: 8px;\n}\n.navbar-btn.btn-sm {\n margin-top: 10px;\n margin-bottom: 10px;\n}\n.navbar-btn.btn-xs {\n margin-top: 14px;\n margin-bottom: 14px;\n}\n.navbar-text {\n margin-top: 15px;\n margin-bottom: 15px;\n}\n@media (min-width: 768px) {\n .navbar-text {\n float: left;\n margin-right: 15px;\n margin-left: 15px;\n }\n}\n@media (min-width: 768px) {\n .navbar-left {\n float: left !important;\n }\n .navbar-right {\n float: right !important;\n margin-right: -15px;\n }\n .navbar-right ~ .navbar-right {\n margin-right: 0;\n }\n}\n.navbar-default {\n background-color: #f8f8f8;\n border-color: #e7e7e7;\n}\n.navbar-default .navbar-brand {\n color: #777;\n}\n.navbar-default .navbar-brand:hover,\n.navbar-default .navbar-brand:focus {\n color: #5e5e5e;\n background-color: transparent;\n}\n.navbar-default .navbar-text {\n color: #777;\n}\n.navbar-default .navbar-nav > li > a {\n color: #777;\n}\n.navbar-default .navbar-nav > li > a:hover,\n.navbar-default .navbar-nav > li > a:focus {\n color: #333;\n background-color: transparent;\n}\n.navbar-default .navbar-nav > .active > a,\n.navbar-default .navbar-nav > .active > a:hover,\n.navbar-default .navbar-nav > .active > a:focus {\n color: #555;\n background-color: #e7e7e7;\n}\n.navbar-default .navbar-nav > .disabled > a,\n.navbar-default .navbar-nav > .disabled > a:hover,\n.navbar-default .navbar-nav > .disabled > a:focus {\n color: #ccc;\n background-color: transparent;\n}\n.navbar-default .navbar-toggle {\n border-color: #ddd;\n}\n.navbar-default .navbar-toggle:hover,\n.navbar-default .navbar-toggle:focus {\n background-color: #ddd;\n}\n.navbar-default .navbar-toggle .icon-bar {\n background-color: #888;\n}\n.navbar-default .navbar-collapse,\n.navbar-default .navbar-form {\n border-color: #e7e7e7;\n}\n.navbar-default .navbar-nav > .open > a,\n.navbar-default .navbar-nav > .open > a:hover,\n.navbar-default .navbar-nav > .open > a:focus {\n color: #555;\n background-color: #e7e7e7;\n}\n@media (max-width: 767px) {\n .navbar-default .navbar-nav .open .dropdown-menu > li > a {\n color: #777;\n }\n .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,\n .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {\n color: #333;\n background-color: transparent;\n }\n .navbar-default .navbar-nav .open .dropdown-menu > .active > a,\n .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover,\n .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus {\n color: #555;\n background-color: #e7e7e7;\n }\n .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a,\n .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover,\n .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus {\n color: #ccc;\n background-color: transparent;\n }\n}\n.navbar-default .navbar-link {\n color: #777;\n}\n.navbar-default .navbar-link:hover {\n color: #333;\n}\n.navbar-default .btn-link {\n color: #777;\n}\n.navbar-default .btn-link:hover,\n.navbar-default .btn-link:focus {\n color: #333;\n}\n.navbar-default .btn-link[disabled]:hover,\nfieldset[disabled] .navbar-default .btn-link:hover,\n.navbar-default .btn-link[disabled]:focus,\nfieldset[disabled] .navbar-default .btn-link:focus {\n color: #ccc;\n}\n.navbar-inverse {\n background-color: #222;\n border-color: #080808;\n}\n.navbar-inverse .navbar-brand {\n color: #9d9d9d;\n}\n.navbar-inverse .navbar-brand:hover,\n.navbar-inverse .navbar-brand:focus {\n color: #fff;\n background-color: transparent;\n}\n.navbar-inverse .navbar-text {\n color: #9d9d9d;\n}\n.navbar-inverse .navbar-nav > li > a {\n color: #9d9d9d;\n}\n.navbar-inverse .navbar-nav > li > a:hover,\n.navbar-inverse .navbar-nav > li > a:focus {\n color: #fff;\n background-color: transparent;\n}\n.navbar-inverse .navbar-nav > .active > a,\n.navbar-inverse .navbar-nav > .active > a:hover,\n.navbar-inverse .navbar-nav > .active > a:focus {\n color: #fff;\n background-color: #080808;\n}\n.navbar-inverse .navbar-nav > .disabled > a,\n.navbar-inverse .navbar-nav > .disabled > a:hover,\n.navbar-inverse .navbar-nav > .disabled > a:focus {\n color: #444;\n background-color: transparent;\n}\n.navbar-inverse .navbar-toggle {\n border-color: #333;\n}\n.navbar-inverse .navbar-toggle:hover,\n.navbar-inverse .navbar-toggle:focus {\n background-color: #333;\n}\n.navbar-inverse .navbar-toggle .icon-bar {\n background-color: #fff;\n}\n.navbar-inverse .navbar-collapse,\n.navbar-inverse .navbar-form {\n border-color: #101010;\n}\n.navbar-inverse .navbar-nav > .open > a,\n.navbar-inverse .navbar-nav > .open > a:hover,\n.navbar-inverse .navbar-nav > .open > a:focus {\n color: #fff;\n background-color: #080808;\n}\n@media (max-width: 767px) {\n .navbar-inverse .navbar-nav .open .dropdown-menu > .dropdown-header {\n border-color: #080808;\n }\n .navbar-inverse .navbar-nav .open .dropdown-menu .divider {\n background-color: #080808;\n }\n .navbar-inverse .navbar-nav .open .dropdown-menu > li > a {\n color: #9d9d9d;\n }\n .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover,\n .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus {\n color: #fff;\n background-color: transparent;\n }\n .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a,\n .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover,\n .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus {\n color: #fff;\n background-color: #080808;\n }\n .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a,\n .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:hover,\n .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:focus {\n color: #444;\n background-color: transparent;\n }\n}\n.navbar-inverse .navbar-link {\n color: #9d9d9d;\n}\n.navbar-inverse .navbar-link:hover {\n color: #fff;\n}\n.navbar-inverse .btn-link {\n color: #9d9d9d;\n}\n.navbar-inverse .btn-link:hover,\n.navbar-inverse .btn-link:focus {\n color: #fff;\n}\n.navbar-inverse .btn-link[disabled]:hover,\nfieldset[disabled] .navbar-inverse .btn-link:hover,\n.navbar-inverse .btn-link[disabled]:focus,\nfieldset[disabled] .navbar-inverse .btn-link:focus {\n color: #444;\n}\n.breadcrumb {\n padding: 8px 15px;\n margin-bottom: 20px;\n list-style: none;\n background-color: #f5f5f5;\n border-radius: 4px;\n}\n.breadcrumb > li {\n display: inline-block;\n}\n.breadcrumb > li + li:before {\n padding: 0 5px;\n color: #ccc;\n content: \"/\\00a0\";\n}\n.breadcrumb > .active {\n color: #777;\n}\n.pagination {\n display: inline-block;\n padding-left: 0;\n margin: 20px 0;\n border-radius: 4px;\n}\n.pagination > li {\n display: inline;\n}\n.pagination > li > a,\n.pagination > li > span {\n position: relative;\n float: left;\n padding: 6px 12px;\n margin-left: -1px;\n line-height: 1.42857143;\n color: #337ab7;\n text-decoration: none;\n background-color: #fff;\n border: 1px solid #ddd;\n}\n.pagination > li:first-child > a,\n.pagination > li:first-child > span {\n margin-left: 0;\n border-top-left-radius: 4px;\n border-bottom-left-radius: 4px;\n}\n.pagination > li:last-child > a,\n.pagination > li:last-child > span {\n border-top-right-radius: 4px;\n border-bottom-right-radius: 4px;\n}\n.pagination > li > a:hover,\n.pagination > li > span:hover,\n.pagination > li > a:focus,\n.pagination > li > span:focus {\n z-index: 2;\n color: #23527c;\n background-color: #eee;\n border-color: #ddd;\n}\n.pagination > .active > a,\n.pagination > .active > span,\n.pagination > .active > a:hover,\n.pagination > .active > span:hover,\n.pagination > .active > a:focus,\n.pagination > .active > span:focus {\n z-index: 3;\n color: #fff;\n cursor: default;\n background-color: #337ab7;\n border-color: #337ab7;\n}\n.pagination > .disabled > span,\n.pagination > .disabled > span:hover,\n.pagination > .disabled > span:focus,\n.pagination > .disabled > a,\n.pagination > .disabled > a:hover,\n.pagination > .disabled > a:focus {\n color: #777;\n cursor: not-allowed;\n background-color: #fff;\n border-color: #ddd;\n}\n.pagination-lg > li > a,\n.pagination-lg > li > span {\n padding: 10px 16px;\n font-size: 18px;\n line-height: 1.3333333;\n}\n.pagination-lg > li:first-child > a,\n.pagination-lg > li:first-child > span {\n border-top-left-radius: 6px;\n border-bottom-left-radius: 6px;\n}\n.pagination-lg > li:last-child > a,\n.pagination-lg > li:last-child > span {\n border-top-right-radius: 6px;\n border-bottom-right-radius: 6px;\n}\n.pagination-sm > li > a,\n.pagination-sm > li > span {\n padding: 5px 10px;\n font-size: 12px;\n line-height: 1.5;\n}\n.pagination-sm > li:first-child > a,\n.pagination-sm > li:first-child > span {\n border-top-left-radius: 3px;\n border-bottom-left-radius: 3px;\n}\n.pagination-sm > li:last-child > a,\n.pagination-sm > li:last-child > span {\n border-top-right-radius: 3px;\n border-bottom-right-radius: 3px;\n}\n.pager {\n padding-left: 0;\n margin: 20px 0;\n text-align: center;\n list-style: none;\n}\n.pager li {\n display: inline;\n}\n.pager li > a,\n.pager li > span {\n display: inline-block;\n padding: 5px 14px;\n background-color: #fff;\n border: 1px solid #ddd;\n border-radius: 15px;\n}\n.pager li > a:hover,\n.pager li > a:focus {\n text-decoration: none;\n background-color: #eee;\n}\n.pager .next > a,\n.pager .next > span {\n float: right;\n}\n.pager .previous > a,\n.pager .previous > span {\n float: left;\n}\n.pager .disabled > a,\n.pager .disabled > a:hover,\n.pager .disabled > a:focus,\n.pager .disabled > span {\n color: #777;\n cursor: not-allowed;\n background-color: #fff;\n}\n.label {\n display: inline;\n padding: .2em .6em .3em;\n font-size: 75%;\n font-weight: bold;\n line-height: 1;\n color: #fff;\n text-align: center;\n white-space: nowrap;\n vertical-align: baseline;\n border-radius: .25em;\n}\na.label:hover,\na.label:focus {\n color: #fff;\n text-decoration: none;\n cursor: pointer;\n}\n.label:empty {\n display: none;\n}\n.btn .label {\n position: relative;\n top: -1px;\n}\n.label-default {\n background-color: #777;\n}\n.label-default[href]:hover,\n.label-default[href]:focus {\n background-color: #5e5e5e;\n}\n.label-primary {\n background-color: #337ab7;\n}\n.label-primary[href]:hover,\n.label-primary[href]:focus {\n background-color: #286090;\n}\n.label-success {\n background-color: #5cb85c;\n}\n.label-success[href]:hover,\n.label-success[href]:focus {\n background-color: #449d44;\n}\n.label-info {\n background-color: #5bc0de;\n}\n.label-info[href]:hover,\n.label-info[href]:focus {\n background-color: #31b0d5;\n}\n.label-warning {\n background-color: #f0ad4e;\n}\n.label-warning[href]:hover,\n.label-warning[href]:focus {\n background-color: #ec971f;\n}\n.label-danger {\n background-color: #d9534f;\n}\n.label-danger[href]:hover,\n.label-danger[href]:focus {\n background-color: #c9302c;\n}\n.badge {\n display: inline-block;\n min-width: 10px;\n padding: 3px 7px;\n font-size: 12px;\n font-weight: bold;\n line-height: 1;\n color: #fff;\n text-align: center;\n white-space: nowrap;\n vertical-align: middle;\n background-color: #777;\n border-radius: 10px;\n}\n.badge:empty {\n display: none;\n}\n.btn .badge {\n position: relative;\n top: -1px;\n}\n.btn-xs .badge,\n.btn-group-xs > .btn .badge {\n top: 0;\n padding: 1px 5px;\n}\na.badge:hover,\na.badge:focus {\n color: #fff;\n text-decoration: none;\n cursor: pointer;\n}\n.list-group-item.active > .badge,\n.nav-pills > .active > a > .badge {\n color: #337ab7;\n background-color: #fff;\n}\n.list-group-item > .badge {\n float: right;\n}\n.list-group-item > .badge + .badge {\n margin-right: 5px;\n}\n.nav-pills > li > a > .badge {\n margin-left: 3px;\n}\n.jumbotron {\n padding-top: 30px;\n padding-bottom: 30px;\n margin-bottom: 30px;\n color: inherit;\n background-color: #eee;\n}\n.jumbotron h1,\n.jumbotron .h1 {\n color: inherit;\n}\n.jumbotron p {\n margin-bottom: 15px;\n font-size: 21px;\n font-weight: 200;\n}\n.jumbotron > hr {\n border-top-color: #d5d5d5;\n}\n.container .jumbotron,\n.container-fluid .jumbotron {\n padding-right: 15px;\n padding-left: 15px;\n border-radius: 6px;\n}\n.jumbotron .container {\n max-width: 100%;\n}\n@media screen and (min-width: 768px) {\n .jumbotron {\n padding-top: 48px;\n padding-bottom: 48px;\n }\n .container .jumbotron,\n .container-fluid .jumbotron {\n padding-right: 60px;\n padding-left: 60px;\n }\n .jumbotron h1,\n .jumbotron .h1 {\n font-size: 63px;\n }\n}\n.thumbnail {\n display: block;\n padding: 4px;\n margin-bottom: 20px;\n line-height: 1.42857143;\n background-color: #fff;\n border: 1px solid #ddd;\n border-radius: 4px;\n -webkit-transition: border .2s ease-in-out;\n -o-transition: border .2s ease-in-out;\n transition: border .2s ease-in-out;\n}\n.thumbnail > img,\n.thumbnail a > img {\n margin-right: auto;\n margin-left: auto;\n}\na.thumbnail:hover,\na.thumbnail:focus,\na.thumbnail.active {\n border-color: #337ab7;\n}\n.thumbnail .caption {\n padding: 9px;\n color: #333;\n}\n.alert {\n padding: 15px;\n margin-bottom: 20px;\n border: 1px solid transparent;\n border-radius: 4px;\n}\n.alert h4 {\n margin-top: 0;\n color: inherit;\n}\n.alert .alert-link {\n font-weight: bold;\n}\n.alert > p,\n.alert > ul {\n margin-bottom: 0;\n}\n.alert > p + p {\n margin-top: 5px;\n}\n.alert-dismissable,\n.alert-dismissible {\n padding-right: 35px;\n}\n.alert-dismissable .close,\n.alert-dismissible .close {\n position: relative;\n top: -2px;\n right: -21px;\n color: inherit;\n}\n.alert-success {\n color: #3c763d;\n background-color: #dff0d8;\n border-color: #d6e9c6;\n}\n.alert-success hr {\n border-top-color: #c9e2b3;\n}\n.alert-success .alert-link {\n color: #2b542c;\n}\n.alert-info {\n color: #31708f;\n background-color: #d9edf7;\n border-color: #bce8f1;\n}\n.alert-info hr {\n border-top-color: #a6e1ec;\n}\n.alert-info .alert-link {\n color: #245269;\n}\n.alert-warning {\n color: #8a6d3b;\n background-color: #fcf8e3;\n border-color: #faebcc;\n}\n.alert-warning hr {\n border-top-color: #f7e1b5;\n}\n.alert-warning .alert-link {\n color: #66512c;\n}\n.alert-danger {\n color: #a94442;\n background-color: #f2dede;\n border-color: #ebccd1;\n}\n.alert-danger hr {\n border-top-color: #e4b9c0;\n}\n.alert-danger .alert-link {\n color: #843534;\n}\n@-webkit-keyframes progress-bar-stripes {\n from {\n background-position: 40px 0;\n }\n to {\n background-position: 0 0;\n }\n}\n@-o-keyframes progress-bar-stripes {\n from {\n background-position: 40px 0;\n }\n to {\n background-position: 0 0;\n }\n}\n@keyframes progress-bar-stripes {\n from {\n background-position: 40px 0;\n }\n to {\n background-position: 0 0;\n }\n}\n.progress {\n height: 20px;\n margin-bottom: 20px;\n overflow: hidden;\n background-color: #f5f5f5;\n border-radius: 4px;\n -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1);\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1);\n}\n.progress-bar {\n float: left;\n width: 0;\n height: 100%;\n font-size: 12px;\n line-height: 20px;\n color: #fff;\n text-align: center;\n background-color: #337ab7;\n -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15);\n box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15);\n -webkit-transition: width .6s ease;\n -o-transition: width .6s ease;\n transition: width .6s ease;\n}\n.progress-striped .progress-bar,\n.progress-bar-striped {\n background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);\n background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);\n background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);\n -webkit-background-size: 40px 40px;\n background-size: 40px 40px;\n}\n.progress.active .progress-bar,\n.progress-bar.active {\n -webkit-animation: progress-bar-stripes 2s linear infinite;\n -o-animation: progress-bar-stripes 2s linear infinite;\n animation: progress-bar-stripes 2s linear infinite;\n}\n.progress-bar-success {\n background-color: #5cb85c;\n}\n.progress-striped .progress-bar-success {\n background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);\n background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);\n background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);\n}\n.progress-bar-info {\n background-color: #5bc0de;\n}\n.progress-striped .progress-bar-info {\n background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);\n background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);\n background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);\n}\n.progress-bar-warning {\n background-color: #f0ad4e;\n}\n.progress-striped .progress-bar-warning {\n background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);\n background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);\n background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);\n}\n.progress-bar-danger {\n background-color: #d9534f;\n}\n.progress-striped .progress-bar-danger {\n background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);\n background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);\n background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);\n}\n.media {\n margin-top: 15px;\n}\n.media:first-child {\n margin-top: 0;\n}\n.media,\n.media-body {\n overflow: hidden;\n zoom: 1;\n}\n.media-body {\n width: 10000px;\n}\n.media-object {\n display: block;\n}\n.media-object.img-thumbnail {\n max-width: none;\n}\n.media-right,\n.media > .pull-right {\n padding-left: 10px;\n}\n.media-left,\n.media > .pull-left {\n padding-right: 10px;\n}\n.media-left,\n.media-right,\n.media-body {\n display: table-cell;\n vertical-align: top;\n}\n.media-middle {\n vertical-align: middle;\n}\n.media-bottom {\n vertical-align: bottom;\n}\n.media-heading {\n margin-top: 0;\n margin-bottom: 5px;\n}\n.media-list {\n padding-left: 0;\n list-style: none;\n}\n.list-group {\n padding-left: 0;\n margin-bottom: 20px;\n}\n.list-group-item {\n position: relative;\n display: block;\n padding: 10px 15px;\n margin-bottom: -1px;\n background-color: #fff;\n border: 1px solid #ddd;\n}\n.list-group-item:first-child {\n border-top-left-radius: 4px;\n border-top-right-radius: 4px;\n}\n.list-group-item:last-child {\n margin-bottom: 0;\n border-bottom-right-radius: 4px;\n border-bottom-left-radius: 4px;\n}\na.list-group-item,\nbutton.list-group-item {\n color: #555;\n}\na.list-group-item .list-group-item-heading,\nbutton.list-group-item .list-group-item-heading {\n color: #333;\n}\na.list-group-item:hover,\nbutton.list-group-item:hover,\na.list-group-item:focus,\nbutton.list-group-item:focus {\n color: #555;\n text-decoration: none;\n background-color: #f5f5f5;\n}\nbutton.list-group-item {\n width: 100%;\n text-align: left;\n}\n.list-group-item.disabled,\n.list-group-item.disabled:hover,\n.list-group-item.disabled:focus {\n color: #777;\n cursor: not-allowed;\n background-color: #eee;\n}\n.list-group-item.disabled .list-group-item-heading,\n.list-group-item.disabled:hover .list-group-item-heading,\n.list-group-item.disabled:focus .list-group-item-heading {\n color: inherit;\n}\n.list-group-item.disabled .list-group-item-text,\n.list-group-item.disabled:hover .list-group-item-text,\n.list-group-item.disabled:focus .list-group-item-text {\n color: #777;\n}\n.list-group-item.active,\n.list-group-item.active:hover,\n.list-group-item.active:focus {\n z-index: 2;\n color: #fff;\n background-color: #337ab7;\n border-color: #337ab7;\n}\n.list-group-item.active .list-group-item-heading,\n.list-group-item.active:hover .list-group-item-heading,\n.list-group-item.active:focus .list-group-item-heading,\n.list-group-item.active .list-group-item-heading > small,\n.list-group-item.active:hover .list-group-item-heading > small,\n.list-group-item.active:focus .list-group-item-heading > small,\n.list-group-item.active .list-group-item-heading > .small,\n.list-group-item.active:hover .list-group-item-heading > .small,\n.list-group-item.active:focus .list-group-item-heading > .small {\n color: inherit;\n}\n.list-group-item.active .list-group-item-text,\n.list-group-item.active:hover .list-group-item-text,\n.list-group-item.active:focus .list-group-item-text {\n color: #c7ddef;\n}\n.list-group-item-success {\n color: #3c763d;\n background-color: #dff0d8;\n}\na.list-group-item-success,\nbutton.list-group-item-success {\n color: #3c763d;\n}\na.list-group-item-success .list-group-item-heading,\nbutton.list-group-item-success .list-group-item-heading {\n color: inherit;\n}\na.list-group-item-success:hover,\nbutton.list-group-item-success:hover,\na.list-group-item-success:focus,\nbutton.list-group-item-success:focus {\n color: #3c763d;\n background-color: #d0e9c6;\n}\na.list-group-item-success.active,\nbutton.list-group-item-success.active,\na.list-group-item-success.active:hover,\nbutton.list-group-item-success.active:hover,\na.list-group-item-success.active:focus,\nbutton.list-group-item-success.active:focus {\n color: #fff;\n background-color: #3c763d;\n border-color: #3c763d;\n}\n.list-group-item-info {\n color: #31708f;\n background-color: #d9edf7;\n}\na.list-group-item-info,\nbutton.list-group-item-info {\n color: #31708f;\n}\na.list-group-item-info .list-group-item-heading,\nbutton.list-group-item-info .list-group-item-heading {\n color: inherit;\n}\na.list-group-item-info:hover,\nbutton.list-group-item-info:hover,\na.list-group-item-info:focus,\nbutton.list-group-item-info:focus {\n color: #31708f;\n background-color: #c4e3f3;\n}\na.list-group-item-info.active,\nbutton.list-group-item-info.active,\na.list-group-item-info.active:hover,\nbutton.list-group-item-info.active:hover,\na.list-group-item-info.active:focus,\nbutton.list-group-item-info.active:focus {\n color: #fff;\n background-color: #31708f;\n border-color: #31708f;\n}\n.list-group-item-warning {\n color: #8a6d3b;\n background-color: #fcf8e3;\n}\na.list-group-item-warning,\nbutton.list-group-item-warning {\n color: #8a6d3b;\n}\na.list-group-item-warning .list-group-item-heading,\nbutton.list-group-item-warning .list-group-item-heading {\n color: inherit;\n}\na.list-group-item-warning:hover,\nbutton.list-group-item-warning:hover,\na.list-group-item-warning:focus,\nbutton.list-group-item-warning:focus {\n color: #8a6d3b;\n background-color: #faf2cc;\n}\na.list-group-item-warning.active,\nbutton.list-group-item-warning.active,\na.list-group-item-warning.active:hover,\nbutton.list-group-item-warning.active:hover,\na.list-group-item-warning.active:focus,\nbutton.list-group-item-warning.active:focus {\n color: #fff;\n background-color: #8a6d3b;\n border-color: #8a6d3b;\n}\n.list-group-item-danger {\n color: #a94442;\n background-color: #f2dede;\n}\na.list-group-item-danger,\nbutton.list-group-item-danger {\n color: #a94442;\n}\na.list-group-item-danger .list-group-item-heading,\nbutton.list-group-item-danger .list-group-item-heading {\n color: inherit;\n}\na.list-group-item-danger:hover,\nbutton.list-group-item-danger:hover,\na.list-group-item-danger:focus,\nbutton.list-group-item-danger:focus {\n color: #a94442;\n background-color: #ebcccc;\n}\na.list-group-item-danger.active,\nbutton.list-group-item-danger.active,\na.list-group-item-danger.active:hover,\nbutton.list-group-item-danger.active:hover,\na.list-group-item-danger.active:focus,\nbutton.list-group-item-danger.active:focus {\n color: #fff;\n background-color: #a94442;\n border-color: #a94442;\n}\n.list-group-item-heading {\n margin-top: 0;\n margin-bottom: 5px;\n}\n.list-group-item-text {\n margin-bottom: 0;\n line-height: 1.3;\n}\n.panel {\n margin-bottom: 20px;\n background-color: #fff;\n border: 1px solid transparent;\n border-radius: 4px;\n -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .05);\n box-shadow: 0 1px 1px rgba(0, 0, 0, .05);\n}\n.panel-body {\n padding: 15px;\n}\n.panel-heading {\n padding: 10px 15px;\n border-bottom: 1px solid transparent;\n border-top-left-radius: 3px;\n border-top-right-radius: 3px;\n}\n.panel-heading > .dropdown .dropdown-toggle {\n color: inherit;\n}\n.panel-title {\n margin-top: 0;\n margin-bottom: 0;\n font-size: 16px;\n color: inherit;\n}\n.panel-title > a,\n.panel-title > small,\n.panel-title > .small,\n.panel-title > small > a,\n.panel-title > .small > a {\n color: inherit;\n}\n.panel-footer {\n padding: 10px 15px;\n background-color: #f5f5f5;\n border-top: 1px solid #ddd;\n border-bottom-right-radius: 3px;\n border-bottom-left-radius: 3px;\n}\n.panel > .list-group,\n.panel > .panel-collapse > .list-group {\n margin-bottom: 0;\n}\n.panel > .list-group .list-group-item,\n.panel > .panel-collapse > .list-group .list-group-item {\n border-width: 1px 0;\n border-radius: 0;\n}\n.panel > .list-group:first-child .list-group-item:first-child,\n.panel > .panel-collapse > .list-group:first-child .list-group-item:first-child {\n border-top: 0;\n border-top-left-radius: 3px;\n border-top-right-radius: 3px;\n}\n.panel > .list-group:last-child .list-group-item:last-child,\n.panel > .panel-collapse > .list-group:last-child .list-group-item:last-child {\n border-bottom: 0;\n border-bottom-right-radius: 3px;\n border-bottom-left-radius: 3px;\n}\n.panel > .panel-heading + .panel-collapse > .list-group .list-group-item:first-child {\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n}\n.panel-heading + .list-group .list-group-item:first-child {\n border-top-width: 0;\n}\n.list-group + .panel-footer {\n border-top-width: 0;\n}\n.panel > .table,\n.panel > .table-responsive > .table,\n.panel > .panel-collapse > .table {\n margin-bottom: 0;\n}\n.panel > .table caption,\n.panel > .table-responsive > .table caption,\n.panel > .panel-collapse > .table caption {\n padding-right: 15px;\n padding-left: 15px;\n}\n.panel > .table:first-child,\n.panel > .table-responsive:first-child > .table:first-child {\n border-top-left-radius: 3px;\n border-top-right-radius: 3px;\n}\n.panel > .table:first-child > thead:first-child > tr:first-child,\n.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child,\n.panel > .table:first-child > tbody:first-child > tr:first-child,\n.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child {\n border-top-left-radius: 3px;\n border-top-right-radius: 3px;\n}\n.panel > .table:first-child > thead:first-child > tr:first-child td:first-child,\n.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:first-child,\n.panel > .table:first-child > tbody:first-child > tr:first-child td:first-child,\n.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:first-child,\n.panel > .table:first-child > thead:first-child > tr:first-child th:first-child,\n.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:first-child,\n.panel > .table:first-child > tbody:first-child > tr:first-child th:first-child,\n.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:first-child {\n border-top-left-radius: 3px;\n}\n.panel > .table:first-child > thead:first-child > tr:first-child td:last-child,\n.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:last-child,\n.panel > .table:first-child > tbody:first-child > tr:first-child td:last-child,\n.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:last-child,\n.panel > .table:first-child > thead:first-child > tr:first-child th:last-child,\n.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:last-child,\n.panel > .table:first-child > tbody:first-child > tr:first-child th:last-child,\n.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:last-child {\n border-top-right-radius: 3px;\n}\n.panel > .table:last-child,\n.panel > .table-responsive:last-child > .table:last-child {\n border-bottom-right-radius: 3px;\n border-bottom-left-radius: 3px;\n}\n.panel > .table:last-child > tbody:last-child > tr:last-child,\n.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child,\n.panel > .table:last-child > tfoot:last-child > tr:last-child,\n.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child {\n border-bottom-right-radius: 3px;\n border-bottom-left-radius: 3px;\n}\n.panel > .table:last-child > tbody:last-child > tr:last-child td:first-child,\n.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:first-child,\n.panel > .table:last-child > tfoot:last-child > tr:last-child td:first-child,\n.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:first-child,\n.panel > .table:last-child > tbody:last-child > tr:last-child th:first-child,\n.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:first-child,\n.panel > .table:last-child > tfoot:last-child > tr:last-child th:first-child,\n.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:first-child {\n border-bottom-left-radius: 3px;\n}\n.panel > .table:last-child > tbody:last-child > tr:last-child td:last-child,\n.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:last-child,\n.panel > .table:last-child > tfoot:last-child > tr:last-child td:last-child,\n.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:last-child,\n.panel > .table:last-child > tbody:last-child > tr:last-child th:last-child,\n.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:last-child,\n.panel > .table:last-child > tfoot:last-child > tr:last-child th:last-child,\n.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:last-child {\n border-bottom-right-radius: 3px;\n}\n.panel > .panel-body + .table,\n.panel > .panel-body + .table-responsive,\n.panel > .table + .panel-body,\n.panel > .table-responsive + .panel-body {\n border-top: 1px solid #ddd;\n}\n.panel > .table > tbody:first-child > tr:first-child th,\n.panel > .table > tbody:first-child > tr:first-child td {\n border-top: 0;\n}\n.panel > .table-bordered,\n.panel > .table-responsive > .table-bordered {\n border: 0;\n}\n.panel > .table-bordered > thead > tr > th:first-child,\n.panel > .table-responsive > .table-bordered > thead > tr > th:first-child,\n.panel > .table-bordered > tbody > tr > th:first-child,\n.panel > .table-responsive > .table-bordered > tbody > tr > th:first-child,\n.panel > .table-bordered > tfoot > tr > th:first-child,\n.panel > .table-responsive > .table-bordered > tfoot > tr > th:first-child,\n.panel > .table-bordered > thead > tr > td:first-child,\n.panel > .table-responsive > .table-bordered > thead > tr > td:first-child,\n.panel > .table-bordered > tbody > tr > td:first-child,\n.panel > .table-responsive > .table-bordered > tbody > tr > td:first-child,\n.panel > .table-bordered > tfoot > tr > td:first-child,\n.panel > .table-responsive > .table-bordered > tfoot > tr > td:first-child {\n border-left: 0;\n}\n.panel > .table-bordered > thead > tr > th:last-child,\n.panel > .table-responsive > .table-bordered > thead > tr > th:last-child,\n.panel > .table-bordered > tbody > tr > th:last-child,\n.panel > .table-responsive > .table-bordered > tbody > tr > th:last-child,\n.panel > .table-bordered > tfoot > tr > th:last-child,\n.panel > .table-responsive > .table-bordered > tfoot > tr > th:last-child,\n.panel > .table-bordered > thead > tr > td:last-child,\n.panel > .table-responsive > .table-bordered > thead > tr > td:last-child,\n.panel > .table-bordered > tbody > tr > td:last-child,\n.panel > .table-responsive > .table-bordered > tbody > tr > td:last-child,\n.panel > .table-bordered > tfoot > tr > td:last-child,\n.panel > .table-responsive > .table-bordered > tfoot > tr > td:last-child {\n border-right: 0;\n}\n.panel > .table-bordered > thead > tr:first-child > td,\n.panel > .table-responsive > .table-bordered > thead > tr:first-child > td,\n.panel > .table-bordered > tbody > tr:first-child > td,\n.panel > .table-responsive > .table-bordered > tbody > tr:first-child > td,\n.panel > .table-bordered > thead > tr:first-child > th,\n.panel > .table-responsive > .table-bordered > thead > tr:first-child > th,\n.panel > .table-bordered > tbody > tr:first-child > th,\n.panel > .table-responsive > .table-bordered > tbody > tr:first-child > th {\n border-bottom: 0;\n}\n.panel > .table-bordered > tbody > tr:last-child > td,\n.panel > .table-responsive > .table-bordered > tbody > tr:last-child > td,\n.panel > .table-bordered > tfoot > tr:last-child > td,\n.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > td,\n.panel > .table-bordered > tbody > tr:last-child > th,\n.panel > .table-responsive > .table-bordered > tbody > tr:last-child > th,\n.panel > .table-bordered > tfoot > tr:last-child > th,\n.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > th {\n border-bottom: 0;\n}\n.panel > .table-responsive {\n margin-bottom: 0;\n border: 0;\n}\n.panel-group {\n margin-bottom: 20px;\n}\n.panel-group .panel {\n margin-bottom: 0;\n border-radius: 4px;\n}\n.panel-group .panel + .panel {\n margin-top: 5px;\n}\n.panel-group .panel-heading {\n border-bottom: 0;\n}\n.panel-group .panel-heading + .panel-collapse > .panel-body,\n.panel-group .panel-heading + .panel-collapse > .list-group {\n border-top: 1px solid #ddd;\n}\n.panel-group .panel-footer {\n border-top: 0;\n}\n.panel-group .panel-footer + .panel-collapse .panel-body {\n border-bottom: 1px solid #ddd;\n}\n.panel-default {\n border-color: #ddd;\n}\n.panel-default > .panel-heading {\n color: #333;\n background-color: #f5f5f5;\n border-color: #ddd;\n}\n.panel-default > .panel-heading + .panel-collapse > .panel-body {\n border-top-color: #ddd;\n}\n.panel-default > .panel-heading .badge {\n color: #f5f5f5;\n background-color: #333;\n}\n.panel-default > .panel-footer + .panel-collapse > .panel-body {\n border-bottom-color: #ddd;\n}\n.panel-primary {\n border-color: #337ab7;\n}\n.panel-primary > .panel-heading {\n color: #fff;\n background-color: #337ab7;\n border-color: #337ab7;\n}\n.panel-primary > .panel-heading + .panel-collapse > .panel-body {\n border-top-color: #337ab7;\n}\n.panel-primary > .panel-heading .badge {\n color: #337ab7;\n background-color: #fff;\n}\n.panel-primary > .panel-footer + .panel-collapse > .panel-body {\n border-bottom-color: #337ab7;\n}\n.panel-success {\n border-color: #d6e9c6;\n}\n.panel-success > .panel-heading {\n color: #3c763d;\n background-color: #dff0d8;\n border-color: #d6e9c6;\n}\n.panel-success > .panel-heading + .panel-collapse > .panel-body {\n border-top-color: #d6e9c6;\n}\n.panel-success > .panel-heading .badge {\n color: #dff0d8;\n background-color: #3c763d;\n}\n.panel-success > .panel-footer + .panel-collapse > .panel-body {\n border-bottom-color: #d6e9c6;\n}\n.panel-info {\n border-color: #bce8f1;\n}\n.panel-info > .panel-heading {\n color: #31708f;\n background-color: #d9edf7;\n border-color: #bce8f1;\n}\n.panel-info > .panel-heading + .panel-collapse > .panel-body {\n border-top-color: #bce8f1;\n}\n.panel-info > .panel-heading .badge {\n color: #d9edf7;\n background-color: #31708f;\n}\n.panel-info > .panel-footer + .panel-collapse > .panel-body {\n border-bottom-color: #bce8f1;\n}\n.panel-warning {\n border-color: #faebcc;\n}\n.panel-warning > .panel-heading {\n color: #8a6d3b;\n background-color: #fcf8e3;\n border-color: #faebcc;\n}\n.panel-warning > .panel-heading + .panel-collapse > .panel-body {\n border-top-color: #faebcc;\n}\n.panel-warning > .panel-heading .badge {\n color: #fcf8e3;\n background-color: #8a6d3b;\n}\n.panel-warning > .panel-footer + .panel-collapse > .panel-body {\n border-bottom-color: #faebcc;\n}\n.panel-danger {\n border-color: #ebccd1;\n}\n.panel-danger > .panel-heading {\n color: #a94442;\n background-color: #f2dede;\n border-color: #ebccd1;\n}\n.panel-danger > .panel-heading + .panel-collapse > .panel-body {\n border-top-color: #ebccd1;\n}\n.panel-danger > .panel-heading .badge {\n color: #f2dede;\n background-color: #a94442;\n}\n.panel-danger > .panel-footer + .panel-collapse > .panel-body {\n border-bottom-color: #ebccd1;\n}\n.embed-responsive {\n position: relative;\n display: block;\n height: 0;\n padding: 0;\n overflow: hidden;\n}\n.embed-responsive .embed-responsive-item,\n.embed-responsive iframe,\n.embed-responsive embed,\n.embed-responsive object,\n.embed-responsive video {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 100%;\n border: 0;\n}\n.embed-responsive-16by9 {\n padding-bottom: 56.25%;\n}\n.embed-responsive-4by3 {\n padding-bottom: 75%;\n}\n.well {\n min-height: 20px;\n padding: 19px;\n margin-bottom: 20px;\n background-color: #f5f5f5;\n border: 1px solid #e3e3e3;\n border-radius: 4px;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05);\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05);\n}\n.well blockquote {\n border-color: #ddd;\n border-color: rgba(0, 0, 0, .15);\n}\n.well-lg {\n padding: 24px;\n border-radius: 6px;\n}\n.well-sm {\n padding: 9px;\n border-radius: 3px;\n}\n.close {\n float: right;\n font-size: 21px;\n font-weight: bold;\n line-height: 1;\n color: #000;\n text-shadow: 0 1px 0 #fff;\n filter: alpha(opacity=20);\n opacity: .2;\n}\n.close:hover,\n.close:focus {\n color: #000;\n text-decoration: none;\n cursor: pointer;\n filter: alpha(opacity=50);\n opacity: .5;\n}\nbutton.close {\n -webkit-appearance: none;\n padding: 0;\n cursor: pointer;\n background: transparent;\n border: 0;\n}\n.modal-open {\n overflow: hidden;\n}\n.modal {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1050;\n display: none;\n overflow: hidden;\n -webkit-overflow-scrolling: touch;\n outline: 0;\n}\n.modal.fade .modal-dialog {\n -webkit-transition: -webkit-transform .3s ease-out;\n -o-transition: -o-transform .3s ease-out;\n transition: transform .3s ease-out;\n -webkit-transform: translate(0, -25%);\n -ms-transform: translate(0, -25%);\n -o-transform: translate(0, -25%);\n transform: translate(0, -25%);\n}\n.modal.in .modal-dialog {\n -webkit-transform: translate(0, 0);\n -ms-transform: translate(0, 0);\n -o-transform: translate(0, 0);\n transform: translate(0, 0);\n}\n.modal-open .modal {\n overflow-x: hidden;\n overflow-y: auto;\n}\n.modal-dialog {\n position: relative;\n width: auto;\n margin: 10px;\n}\n.modal-content {\n position: relative;\n background-color: #fff;\n -webkit-background-clip: padding-box;\n background-clip: padding-box;\n border: 1px solid #999;\n border: 1px solid rgba(0, 0, 0, .2);\n border-radius: 6px;\n outline: 0;\n -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, .5);\n box-shadow: 0 3px 9px rgba(0, 0, 0, .5);\n}\n.modal-backdrop {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1040;\n background-color: #000;\n}\n.modal-backdrop.fade {\n filter: alpha(opacity=0);\n opacity: 0;\n}\n.modal-backdrop.in {\n filter: alpha(opacity=50);\n opacity: .5;\n}\n.modal-header {\n padding: 15px;\n border-bottom: 1px solid #e5e5e5;\n}\n.modal-header .close {\n margin-top: -2px;\n}\n.modal-title {\n margin: 0;\n line-height: 1.42857143;\n}\n.modal-body {\n position: relative;\n padding: 15px;\n}\n.modal-footer {\n padding: 15px;\n text-align: right;\n border-top: 1px solid #e5e5e5;\n}\n.modal-footer .btn + .btn {\n margin-bottom: 0;\n margin-left: 5px;\n}\n.modal-footer .btn-group .btn + .btn {\n margin-left: -1px;\n}\n.modal-footer .btn-block + .btn-block {\n margin-left: 0;\n}\n.modal-scrollbar-measure {\n position: absolute;\n top: -9999px;\n width: 50px;\n height: 50px;\n overflow: scroll;\n}\n@media (min-width: 768px) {\n .modal-dialog {\n width: 600px;\n margin: 30px auto;\n }\n .modal-content {\n -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, .5);\n box-shadow: 0 5px 15px rgba(0, 0, 0, .5);\n }\n .modal-sm {\n width: 300px;\n }\n}\n@media (min-width: 992px) {\n .modal-lg {\n width: 900px;\n }\n}\n.tooltip {\n position: absolute;\n z-index: 1070;\n display: block;\n font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n font-size: 12px;\n font-style: normal;\n font-weight: normal;\n line-height: 1.42857143;\n text-align: left;\n text-align: start;\n text-decoration: none;\n text-shadow: none;\n text-transform: none;\n letter-spacing: normal;\n word-break: normal;\n word-spacing: normal;\n word-wrap: normal;\n white-space: normal;\n filter: alpha(opacity=0);\n opacity: 0;\n\n line-break: auto;\n}\n.tooltip.in {\n filter: alpha(opacity=90);\n opacity: .9;\n}\n.tooltip.top {\n padding: 5px 0;\n margin-top: -3px;\n}\n.tooltip.right {\n padding: 0 5px;\n margin-left: 3px;\n}\n.tooltip.bottom {\n padding: 5px 0;\n margin-top: 3px;\n}\n.tooltip.left {\n padding: 0 5px;\n margin-left: -3px;\n}\n.tooltip-inner {\n max-width: 200px;\n padding: 3px 8px;\n color: #fff;\n text-align: center;\n background-color: #000;\n border-radius: 4px;\n}\n.tooltip-arrow {\n position: absolute;\n width: 0;\n height: 0;\n border-color: transparent;\n border-style: solid;\n}\n.tooltip.top .tooltip-arrow {\n bottom: 0;\n left: 50%;\n margin-left: -5px;\n border-width: 5px 5px 0;\n border-top-color: #000;\n}\n.tooltip.top-left .tooltip-arrow {\n right: 5px;\n bottom: 0;\n margin-bottom: -5px;\n border-width: 5px 5px 0;\n border-top-color: #000;\n}\n.tooltip.top-right .tooltip-arrow {\n bottom: 0;\n left: 5px;\n margin-bottom: -5px;\n border-width: 5px 5px 0;\n border-top-color: #000;\n}\n.tooltip.right .tooltip-arrow {\n top: 50%;\n left: 0;\n margin-top: -5px;\n border-width: 5px 5px 5px 0;\n border-right-color: #000;\n}\n.tooltip.left .tooltip-arrow {\n top: 50%;\n right: 0;\n margin-top: -5px;\n border-width: 5px 0 5px 5px;\n border-left-color: #000;\n}\n.tooltip.bottom .tooltip-arrow {\n top: 0;\n left: 50%;\n margin-left: -5px;\n border-width: 0 5px 5px;\n border-bottom-color: #000;\n}\n.tooltip.bottom-left .tooltip-arrow {\n top: 0;\n right: 5px;\n margin-top: -5px;\n border-width: 0 5px 5px;\n border-bottom-color: #000;\n}\n.tooltip.bottom-right .tooltip-arrow {\n top: 0;\n left: 5px;\n margin-top: -5px;\n border-width: 0 5px 5px;\n border-bottom-color: #000;\n}\n.popover {\n position: absolute;\n top: 0;\n left: 0;\n z-index: 1060;\n display: none;\n max-width: 276px;\n padding: 1px;\n font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: normal;\n line-height: 1.42857143;\n text-align: left;\n text-align: start;\n text-decoration: none;\n text-shadow: none;\n text-transform: none;\n letter-spacing: normal;\n word-break: normal;\n word-spacing: normal;\n word-wrap: normal;\n white-space: normal;\n background-color: #fff;\n -webkit-background-clip: padding-box;\n background-clip: padding-box;\n border: 1px solid #ccc;\n border: 1px solid rgba(0, 0, 0, .2);\n border-radius: 6px;\n -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, .2);\n box-shadow: 0 5px 10px rgba(0, 0, 0, .2);\n\n line-break: auto;\n}\n.popover.top {\n margin-top: -10px;\n}\n.popover.right {\n margin-left: 10px;\n}\n.popover.bottom {\n margin-top: 10px;\n}\n.popover.left {\n margin-left: -10px;\n}\n.popover-title {\n padding: 8px 14px;\n margin: 0;\n font-size: 14px;\n background-color: #f7f7f7;\n border-bottom: 1px solid #ebebeb;\n border-radius: 5px 5px 0 0;\n}\n.popover-content {\n padding: 9px 14px;\n}\n.popover > .arrow,\n.popover > .arrow:after {\n position: absolute;\n display: block;\n width: 0;\n height: 0;\n border-color: transparent;\n border-style: solid;\n}\n.popover > .arrow {\n border-width: 11px;\n}\n.popover > .arrow:after {\n content: \"\";\n border-width: 10px;\n}\n.popover.top > .arrow {\n bottom: -11px;\n left: 50%;\n margin-left: -11px;\n border-top-color: #999;\n border-top-color: rgba(0, 0, 0, .25);\n border-bottom-width: 0;\n}\n.popover.top > .arrow:after {\n bottom: 1px;\n margin-left: -10px;\n content: \" \";\n border-top-color: #fff;\n border-bottom-width: 0;\n}\n.popover.right > .arrow {\n top: 50%;\n left: -11px;\n margin-top: -11px;\n border-right-color: #999;\n border-right-color: rgba(0, 0, 0, .25);\n border-left-width: 0;\n}\n.popover.right > .arrow:after {\n bottom: -10px;\n left: 1px;\n content: \" \";\n border-right-color: #fff;\n border-left-width: 0;\n}\n.popover.bottom > .arrow {\n top: -11px;\n left: 50%;\n margin-left: -11px;\n border-top-width: 0;\n border-bottom-color: #999;\n border-bottom-color: rgba(0, 0, 0, .25);\n}\n.popover.bottom > .arrow:after {\n top: 1px;\n margin-left: -10px;\n content: \" \";\n border-top-width: 0;\n border-bottom-color: #fff;\n}\n.popover.left > .arrow {\n top: 50%;\n right: -11px;\n margin-top: -11px;\n border-right-width: 0;\n border-left-color: #999;\n border-left-color: rgba(0, 0, 0, .25);\n}\n.popover.left > .arrow:after {\n right: 1px;\n bottom: -10px;\n content: \" \";\n border-right-width: 0;\n border-left-color: #fff;\n}\n.carousel {\n position: relative;\n}\n.carousel-inner {\n position: relative;\n width: 100%;\n overflow: hidden;\n}\n.carousel-inner > .item {\n position: relative;\n display: none;\n -webkit-transition: .6s ease-in-out left;\n -o-transition: .6s ease-in-out left;\n transition: .6s ease-in-out left;\n}\n.carousel-inner > .item > img,\n.carousel-inner > .item > a > img {\n line-height: 1;\n}\n@media all and (transform-3d), (-webkit-transform-3d) {\n .carousel-inner > .item {\n -webkit-transition: -webkit-transform .6s ease-in-out;\n -o-transition: -o-transform .6s ease-in-out;\n transition: transform .6s ease-in-out;\n\n -webkit-backface-visibility: hidden;\n backface-visibility: hidden;\n -webkit-perspective: 1000px;\n perspective: 1000px;\n }\n .carousel-inner > .item.next,\n .carousel-inner > .item.active.right {\n left: 0;\n -webkit-transform: translate3d(100%, 0, 0);\n transform: translate3d(100%, 0, 0);\n }\n .carousel-inner > .item.prev,\n .carousel-inner > .item.active.left {\n left: 0;\n -webkit-transform: translate3d(-100%, 0, 0);\n transform: translate3d(-100%, 0, 0);\n }\n .carousel-inner > .item.next.left,\n .carousel-inner > .item.prev.right,\n .carousel-inner > .item.active {\n left: 0;\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n }\n}\n.carousel-inner > .active,\n.carousel-inner > .next,\n.carousel-inner > .prev {\n display: block;\n}\n.carousel-inner > .active {\n left: 0;\n}\n.carousel-inner > .next,\n.carousel-inner > .prev {\n position: absolute;\n top: 0;\n width: 100%;\n}\n.carousel-inner > .next {\n left: 100%;\n}\n.carousel-inner > .prev {\n left: -100%;\n}\n.carousel-inner > .next.left,\n.carousel-inner > .prev.right {\n left: 0;\n}\n.carousel-inner > .active.left {\n left: -100%;\n}\n.carousel-inner > .active.right {\n left: 100%;\n}\n.carousel-control {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n width: 15%;\n font-size: 20px;\n color: #fff;\n text-align: center;\n text-shadow: 0 1px 2px rgba(0, 0, 0, .6);\n background-color: rgba(0, 0, 0, 0);\n filter: alpha(opacity=50);\n opacity: .5;\n}\n.carousel-control.left {\n background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .0001) 100%);\n background-image: -o-linear-gradient(left, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .0001) 100%);\n background-image: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, .5)), to(rgba(0, 0, 0, .0001)));\n background-image: linear-gradient(to right, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .0001) 100%);\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1);\n background-repeat: repeat-x;\n}\n.carousel-control.right {\n right: 0;\n left: auto;\n background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, .0001) 0%, rgba(0, 0, 0, .5) 100%);\n background-image: -o-linear-gradient(left, rgba(0, 0, 0, .0001) 0%, rgba(0, 0, 0, .5) 100%);\n background-image: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, .0001)), to(rgba(0, 0, 0, .5)));\n background-image: linear-gradient(to right, rgba(0, 0, 0, .0001) 0%, rgba(0, 0, 0, .5) 100%);\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1);\n background-repeat: repeat-x;\n}\n.carousel-control:hover,\n.carousel-control:focus {\n color: #fff;\n text-decoration: none;\n filter: alpha(opacity=90);\n outline: 0;\n opacity: .9;\n}\n.carousel-control .icon-prev,\n.carousel-control .icon-next,\n.carousel-control .glyphicon-chevron-left,\n.carousel-control .glyphicon-chevron-right {\n position: absolute;\n top: 50%;\n z-index: 5;\n display: inline-block;\n margin-top: -10px;\n}\n.carousel-control .icon-prev,\n.carousel-control .glyphicon-chevron-left {\n left: 50%;\n margin-left: -10px;\n}\n.carousel-control .icon-next,\n.carousel-control .glyphicon-chevron-right {\n right: 50%;\n margin-right: -10px;\n}\n.carousel-control .icon-prev,\n.carousel-control .icon-next {\n width: 20px;\n height: 20px;\n font-family: serif;\n line-height: 1;\n}\n.carousel-control .icon-prev:before {\n content: '\\2039';\n}\n.carousel-control .icon-next:before {\n content: '\\203a';\n}\n.carousel-indicators {\n position: absolute;\n bottom: 10px;\n left: 50%;\n z-index: 15;\n width: 60%;\n padding-left: 0;\n margin-left: -30%;\n text-align: center;\n list-style: none;\n}\n.carousel-indicators li {\n display: inline-block;\n width: 10px;\n height: 10px;\n margin: 1px;\n text-indent: -999px;\n cursor: pointer;\n background-color: #000 \\9;\n background-color: rgba(0, 0, 0, 0);\n border: 1px solid #fff;\n border-radius: 10px;\n}\n.carousel-indicators .active {\n width: 12px;\n height: 12px;\n margin: 0;\n background-color: #fff;\n}\n.carousel-caption {\n position: absolute;\n right: 15%;\n bottom: 20px;\n left: 15%;\n z-index: 10;\n padding-top: 20px;\n padding-bottom: 20px;\n color: #fff;\n text-align: center;\n text-shadow: 0 1px 2px rgba(0, 0, 0, .6);\n}\n.carousel-caption .btn {\n text-shadow: none;\n}\n@media screen and (min-width: 768px) {\n .carousel-control .glyphicon-chevron-left,\n .carousel-control .glyphicon-chevron-right,\n .carousel-control .icon-prev,\n .carousel-control .icon-next {\n width: 30px;\n height: 30px;\n margin-top: -10px;\n font-size: 30px;\n }\n .carousel-control .glyphicon-chevron-left,\n .carousel-control .icon-prev {\n margin-left: -10px;\n }\n .carousel-control .glyphicon-chevron-right,\n .carousel-control .icon-next {\n margin-right: -10px;\n }\n .carousel-caption {\n right: 20%;\n left: 20%;\n padding-bottom: 30px;\n }\n .carousel-indicators {\n bottom: 20px;\n }\n}\n.clearfix:before,\n.clearfix:after,\n.dl-horizontal dd:before,\n.dl-horizontal dd:after,\n.container:before,\n.container:after,\n.container-fluid:before,\n.container-fluid:after,\n.row:before,\n.row:after,\n.form-horizontal .form-group:before,\n.form-horizontal .form-group:after,\n.btn-toolbar:before,\n.btn-toolbar:after,\n.btn-group-vertical > .btn-group:before,\n.btn-group-vertical > .btn-group:after,\n.nav:before,\n.nav:after,\n.navbar:before,\n.navbar:after,\n.navbar-header:before,\n.navbar-header:after,\n.navbar-collapse:before,\n.navbar-collapse:after,\n.pager:before,\n.pager:after,\n.panel-body:before,\n.panel-body:after,\n.modal-header:before,\n.modal-header:after,\n.modal-footer:before,\n.modal-footer:after {\n display: table;\n content: \" \";\n}\n.clearfix:after,\n.dl-horizontal dd:after,\n.container:after,\n.container-fluid:after,\n.row:after,\n.form-horizontal .form-group:after,\n.btn-toolbar:after,\n.btn-group-vertical > .btn-group:after,\n.nav:after,\n.navbar:after,\n.navbar-header:after,\n.navbar-collapse:after,\n.pager:after,\n.panel-body:after,\n.modal-header:after,\n.modal-footer:after {\n clear: both;\n}\n.center-block {\n display: block;\n margin-right: auto;\n margin-left: auto;\n}\n.pull-right {\n float: right !important;\n}\n.pull-left {\n float: left !important;\n}\n.hide {\n display: none !important;\n}\n.show {\n display: block !important;\n}\n.invisible {\n visibility: hidden;\n}\n.text-hide {\n font: 0/0 a;\n color: transparent;\n text-shadow: none;\n background-color: transparent;\n border: 0;\n}\n.hidden {\n display: none !important;\n}\n.affix {\n position: fixed;\n}\n@-ms-viewport {\n width: device-width;\n}\n.visible-xs,\n.visible-sm,\n.visible-md,\n.visible-lg {\n display: none !important;\n}\n.visible-xs-block,\n.visible-xs-inline,\n.visible-xs-inline-block,\n.visible-sm-block,\n.visible-sm-inline,\n.visible-sm-inline-block,\n.visible-md-block,\n.visible-md-inline,\n.visible-md-inline-block,\n.visible-lg-block,\n.visible-lg-inline,\n.visible-lg-inline-block {\n display: none !important;\n}\n@media (max-width: 767px) {\n .visible-xs {\n display: block !important;\n }\n table.visible-xs {\n display: table !important;\n }\n tr.visible-xs {\n display: table-row !important;\n }\n th.visible-xs,\n td.visible-xs {\n display: table-cell !important;\n }\n}\n@media (max-width: 767px) {\n .visible-xs-block {\n display: block !important;\n }\n}\n@media (max-width: 767px) {\n .visible-xs-inline {\n display: inline !important;\n }\n}\n@media (max-width: 767px) {\n .visible-xs-inline-block {\n display: inline-block !important;\n }\n}\n@media (min-width: 768px) and (max-width: 991px) {\n .visible-sm {\n display: block !important;\n }\n table.visible-sm {\n display: table !important;\n }\n tr.visible-sm {\n display: table-row !important;\n }\n th.visible-sm,\n td.visible-sm {\n display: table-cell !important;\n }\n}\n@media (min-width: 768px) and (max-width: 991px) {\n .visible-sm-block {\n display: block !important;\n }\n}\n@media (min-width: 768px) and (max-width: 991px) {\n .visible-sm-inline {\n display: inline !important;\n }\n}\n@media (min-width: 768px) and (max-width: 991px) {\n .visible-sm-inline-block {\n display: inline-block !important;\n }\n}\n@media (min-width: 992px) and (max-width: 1199px) {\n .visible-md {\n display: block !important;\n }\n table.visible-md {\n display: table !important;\n }\n tr.visible-md {\n display: table-row !important;\n }\n th.visible-md,\n td.visible-md {\n display: table-cell !important;\n }\n}\n@media (min-width: 992px) and (max-width: 1199px) {\n .visible-md-block {\n display: block !important;\n }\n}\n@media (min-width: 992px) and (max-width: 1199px) {\n .visible-md-inline {\n display: inline !important;\n }\n}\n@media (min-width: 992px) and (max-width: 1199px) {\n .visible-md-inline-block {\n display: inline-block !important;\n }\n}\n@media (min-width: 1200px) {\n .visible-lg {\n display: block !important;\n }\n table.visible-lg {\n display: table !important;\n }\n tr.visible-lg {\n display: table-row !important;\n }\n th.visible-lg,\n td.visible-lg {\n display: table-cell !important;\n }\n}\n@media (min-width: 1200px) {\n .visible-lg-block {\n display: block !important;\n }\n}\n@media (min-width: 1200px) {\n .visible-lg-inline {\n display: inline !important;\n }\n}\n@media (min-width: 1200px) {\n .visible-lg-inline-block {\n display: inline-block !important;\n }\n}\n@media (max-width: 767px) {\n .hidden-xs {\n display: none !important;\n }\n}\n@media (min-width: 768px) and (max-width: 991px) {\n .hidden-sm {\n display: none !important;\n }\n}\n@media (min-width: 992px) and (max-width: 1199px) {\n .hidden-md {\n display: none !important;\n }\n}\n@media (min-width: 1200px) {\n .hidden-lg {\n display: none !important;\n }\n}\n.visible-print {\n display: none !important;\n}\n@media print {\n .visible-print {\n display: block !important;\n }\n table.visible-print {\n display: table !important;\n }\n tr.visible-print {\n display: table-row !important;\n }\n th.visible-print,\n td.visible-print {\n display: table-cell !important;\n }\n}\n.visible-print-block {\n display: none !important;\n}\n@media print {\n .visible-print-block {\n display: block !important;\n }\n}\n.visible-print-inline {\n display: none !important;\n}\n@media print {\n .visible-print-inline {\n display: inline !important;\n }\n}\n.visible-print-inline-block {\n display: none !important;\n}\n@media print {\n .visible-print-inline-block {\n display: inline-block !important;\n }\n}\n@media print {\n .hidden-print {\n display: none !important;\n }\n}\n/*# sourceMappingURL=bootstrap.css.map */\n","//\n// Glyphicons for Bootstrap\n//\n// Since icons are fonts, they can be placed anywhere text is placed and are\n// thus automatically sized to match the surrounding child. To use, create an\n// inline element with the appropriate classes, like so:\n//\n// Star\n\n// Import the fonts\n@font-face {\n font-family: 'Glyphicons Halflings';\n src: url('@{icon-font-path}@{icon-font-name}.eot');\n src: url('@{icon-font-path}@{icon-font-name}.eot?#iefix') format('embedded-opentype'),\n url('@{icon-font-path}@{icon-font-name}.woff2') format('woff2'),\n url('@{icon-font-path}@{icon-font-name}.woff') format('woff'),\n url('@{icon-font-path}@{icon-font-name}.ttf') format('truetype'),\n url('@{icon-font-path}@{icon-font-name}.svg#@{icon-font-svg-id}') format('svg');\n}\n\n// Catchall baseclass\n.glyphicon {\n position: relative;\n top: 1px;\n display: inline-block;\n font-family: 'Glyphicons Halflings';\n font-style: normal;\n font-weight: normal;\n line-height: 1;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n// Individual icons\n.glyphicon-asterisk { &:before { content: \"\\002a\"; } }\n.glyphicon-plus { &:before { content: \"\\002b\"; } }\n.glyphicon-euro,\n.glyphicon-eur { &:before { content: \"\\20ac\"; } }\n.glyphicon-minus { &:before { content: \"\\2212\"; } }\n.glyphicon-cloud { &:before { content: \"\\2601\"; } }\n.glyphicon-envelope { &:before { content: \"\\2709\"; } }\n.glyphicon-pencil { &:before { content: \"\\270f\"; } }\n.glyphicon-glass { &:before { content: \"\\e001\"; } }\n.glyphicon-music { &:before { content: \"\\e002\"; } }\n.glyphicon-search { &:before { content: \"\\e003\"; } }\n.glyphicon-heart { &:before { content: \"\\e005\"; } }\n.glyphicon-star { &:before { content: \"\\e006\"; } }\n.glyphicon-star-empty { &:before { content: \"\\e007\"; } }\n.glyphicon-user { &:before { content: \"\\e008\"; } }\n.glyphicon-film { &:before { content: \"\\e009\"; } }\n.glyphicon-th-large { &:before { content: \"\\e010\"; } }\n.glyphicon-th { &:before { content: \"\\e011\"; } }\n.glyphicon-th-list { &:before { content: \"\\e012\"; } }\n.glyphicon-ok { &:before { content: \"\\e013\"; } }\n.glyphicon-remove { &:before { content: \"\\e014\"; } }\n.glyphicon-zoom-in { &:before { content: \"\\e015\"; } }\n.glyphicon-zoom-out { &:before { content: \"\\e016\"; } }\n.glyphicon-off { &:before { content: \"\\e017\"; } }\n.glyphicon-signal { &:before { content: \"\\e018\"; } }\n.glyphicon-cog { &:before { content: \"\\e019\"; } }\n.glyphicon-trash { &:before { content: \"\\e020\"; } }\n.glyphicon-home { &:before { content: \"\\e021\"; } }\n.glyphicon-file { &:before { content: \"\\e022\"; } }\n.glyphicon-time { &:before { content: \"\\e023\"; } }\n.glyphicon-road { &:before { content: \"\\e024\"; } }\n.glyphicon-download-alt { &:before { content: \"\\e025\"; } }\n.glyphicon-download { &:before { content: \"\\e026\"; } }\n.glyphicon-upload { &:before { content: \"\\e027\"; } }\n.glyphicon-inbox { &:before { content: \"\\e028\"; } }\n.glyphicon-play-circle { &:before { content: \"\\e029\"; } }\n.glyphicon-repeat { &:before { content: \"\\e030\"; } }\n.glyphicon-refresh { &:before { content: \"\\e031\"; } }\n.glyphicon-list-alt { &:before { content: \"\\e032\"; } }\n.glyphicon-lock { &:before { content: \"\\e033\"; } }\n.glyphicon-flag { &:before { content: \"\\e034\"; } }\n.glyphicon-headphones { &:before { content: \"\\e035\"; } }\n.glyphicon-volume-off { &:before { content: \"\\e036\"; } }\n.glyphicon-volume-down { &:before { content: \"\\e037\"; } }\n.glyphicon-volume-up { &:before { content: \"\\e038\"; } }\n.glyphicon-qrcode { &:before { content: \"\\e039\"; } }\n.glyphicon-barcode { &:before { content: \"\\e040\"; } }\n.glyphicon-tag { &:before { content: \"\\e041\"; } }\n.glyphicon-tags { &:before { content: \"\\e042\"; } }\n.glyphicon-book { &:before { content: \"\\e043\"; } }\n.glyphicon-bookmark { &:before { content: \"\\e044\"; } }\n.glyphicon-print { &:before { content: \"\\e045\"; } }\n.glyphicon-camera { &:before { content: \"\\e046\"; } }\n.glyphicon-font { &:before { content: \"\\e047\"; } }\n.glyphicon-bold { &:before { content: \"\\e048\"; } }\n.glyphicon-italic { &:before { content: \"\\e049\"; } }\n.glyphicon-text-height { &:before { content: \"\\e050\"; } }\n.glyphicon-text-width { &:before { content: \"\\e051\"; } }\n.glyphicon-align-left { &:before { content: \"\\e052\"; } }\n.glyphicon-align-center { &:before { content: \"\\e053\"; } }\n.glyphicon-align-right { &:before { content: \"\\e054\"; } }\n.glyphicon-align-justify { &:before { content: \"\\e055\"; } }\n.glyphicon-list { &:before { content: \"\\e056\"; } }\n.glyphicon-indent-left { &:before { content: \"\\e057\"; } }\n.glyphicon-indent-right { &:before { content: \"\\e058\"; } }\n.glyphicon-facetime-video { &:before { content: \"\\e059\"; } }\n.glyphicon-picture { &:before { content: \"\\e060\"; } }\n.glyphicon-map-marker { &:before { content: \"\\e062\"; } }\n.glyphicon-adjust { &:before { content: \"\\e063\"; } }\n.glyphicon-tint { &:before { content: \"\\e064\"; } }\n.glyphicon-edit { &:before { content: \"\\e065\"; } }\n.glyphicon-share { &:before { content: \"\\e066\"; } }\n.glyphicon-check { &:before { content: \"\\e067\"; } }\n.glyphicon-move { &:before { content: \"\\e068\"; } }\n.glyphicon-step-backward { &:before { content: \"\\e069\"; } }\n.glyphicon-fast-backward { &:before { content: \"\\e070\"; } }\n.glyphicon-backward { &:before { content: \"\\e071\"; } }\n.glyphicon-play { &:before { content: \"\\e072\"; } }\n.glyphicon-pause { &:before { content: \"\\e073\"; } }\n.glyphicon-stop { &:before { content: \"\\e074\"; } }\n.glyphicon-forward { &:before { content: \"\\e075\"; } }\n.glyphicon-fast-forward { &:before { content: \"\\e076\"; } }\n.glyphicon-step-forward { &:before { content: \"\\e077\"; } }\n.glyphicon-eject { &:before { content: \"\\e078\"; } }\n.glyphicon-chevron-left { &:before { content: \"\\e079\"; } }\n.glyphicon-chevron-right { &:before { content: \"\\e080\"; } }\n.glyphicon-plus-sign { &:before { content: \"\\e081\"; } }\n.glyphicon-minus-sign { &:before { content: \"\\e082\"; } }\n.glyphicon-remove-sign { &:before { content: \"\\e083\"; } }\n.glyphicon-ok-sign { &:before { content: \"\\e084\"; } }\n.glyphicon-question-sign { &:before { content: \"\\e085\"; } }\n.glyphicon-info-sign { &:before { content: \"\\e086\"; } }\n.glyphicon-screenshot { &:before { content: \"\\e087\"; } }\n.glyphicon-remove-circle { &:before { content: \"\\e088\"; } }\n.glyphicon-ok-circle { &:before { content: \"\\e089\"; } }\n.glyphicon-ban-circle { &:before { content: \"\\e090\"; } }\n.glyphicon-arrow-left { &:before { content: \"\\e091\"; } }\n.glyphicon-arrow-right { &:before { content: \"\\e092\"; } }\n.glyphicon-arrow-up { &:before { content: \"\\e093\"; } }\n.glyphicon-arrow-down { &:before { content: \"\\e094\"; } }\n.glyphicon-share-alt { &:before { content: \"\\e095\"; } }\n.glyphicon-resize-full { &:before { content: \"\\e096\"; } }\n.glyphicon-resize-small { &:before { content: \"\\e097\"; } }\n.glyphicon-exclamation-sign { &:before { content: \"\\e101\"; } }\n.glyphicon-gift { &:before { content: \"\\e102\"; } }\n.glyphicon-leaf { &:before { content: \"\\e103\"; } }\n.glyphicon-fire { &:before { content: \"\\e104\"; } }\n.glyphicon-eye-open { &:before { content: \"\\e105\"; } }\n.glyphicon-eye-close { &:before { content: \"\\e106\"; } }\n.glyphicon-warning-sign { &:before { content: \"\\e107\"; } }\n.glyphicon-plane { &:before { content: \"\\e108\"; } }\n.glyphicon-calendar { &:before { content: \"\\e109\"; } }\n.glyphicon-random { &:before { content: \"\\e110\"; } }\n.glyphicon-comment { &:before { content: \"\\e111\"; } }\n.glyphicon-magnet { &:before { content: \"\\e112\"; } }\n.glyphicon-chevron-up { &:before { content: \"\\e113\"; } }\n.glyphicon-chevron-down { &:before { content: \"\\e114\"; } }\n.glyphicon-retweet { &:before { content: \"\\e115\"; } }\n.glyphicon-shopping-cart { &:before { content: \"\\e116\"; } }\n.glyphicon-folder-close { &:before { content: \"\\e117\"; } }\n.glyphicon-folder-open { &:before { content: \"\\e118\"; } }\n.glyphicon-resize-vertical { &:before { content: \"\\e119\"; } }\n.glyphicon-resize-horizontal { &:before { content: \"\\e120\"; } }\n.glyphicon-hdd { &:before { content: \"\\e121\"; } }\n.glyphicon-bullhorn { &:before { content: \"\\e122\"; } }\n.glyphicon-bell { &:before { content: \"\\e123\"; } }\n.glyphicon-certificate { &:before { content: \"\\e124\"; } }\n.glyphicon-thumbs-up { &:before { content: \"\\e125\"; } }\n.glyphicon-thumbs-down { &:before { content: \"\\e126\"; } }\n.glyphicon-hand-right { &:before { content: \"\\e127\"; } }\n.glyphicon-hand-left { &:before { content: \"\\e128\"; } }\n.glyphicon-hand-up { &:before { content: \"\\e129\"; } }\n.glyphicon-hand-down { &:before { content: \"\\e130\"; } }\n.glyphicon-circle-arrow-right { &:before { content: \"\\e131\"; } }\n.glyphicon-circle-arrow-left { &:before { content: \"\\e132\"; } }\n.glyphicon-circle-arrow-up { &:before { content: \"\\e133\"; } }\n.glyphicon-circle-arrow-down { &:before { content: \"\\e134\"; } }\n.glyphicon-globe { &:before { content: \"\\e135\"; } }\n.glyphicon-wrench { &:before { content: \"\\e136\"; } }\n.glyphicon-tasks { &:before { content: \"\\e137\"; } }\n.glyphicon-filter { &:before { content: \"\\e138\"; } }\n.glyphicon-briefcase { &:before { content: \"\\e139\"; } }\n.glyphicon-fullscreen { &:before { content: \"\\e140\"; } }\n.glyphicon-dashboard { &:before { content: \"\\e141\"; } }\n.glyphicon-paperclip { &:before { content: \"\\e142\"; } }\n.glyphicon-heart-empty { &:before { content: \"\\e143\"; } }\n.glyphicon-link { &:before { content: \"\\e144\"; } }\n.glyphicon-phone { &:before { content: \"\\e145\"; } }\n.glyphicon-pushpin { &:before { content: \"\\e146\"; } }\n.glyphicon-usd { &:before { content: \"\\e148\"; } }\n.glyphicon-gbp { &:before { content: \"\\e149\"; } }\n.glyphicon-sort { &:before { content: \"\\e150\"; } }\n.glyphicon-sort-by-alphabet { &:before { content: \"\\e151\"; } }\n.glyphicon-sort-by-alphabet-alt { &:before { content: \"\\e152\"; } }\n.glyphicon-sort-by-order { &:before { content: \"\\e153\"; } }\n.glyphicon-sort-by-order-alt { &:before { content: \"\\e154\"; } }\n.glyphicon-sort-by-attributes { &:before { content: \"\\e155\"; } }\n.glyphicon-sort-by-attributes-alt { &:before { content: \"\\e156\"; } }\n.glyphicon-unchecked { &:before { content: \"\\e157\"; } }\n.glyphicon-expand { &:before { content: \"\\e158\"; } }\n.glyphicon-collapse-down { &:before { content: \"\\e159\"; } }\n.glyphicon-collapse-up { &:before { content: \"\\e160\"; } }\n.glyphicon-log-in { &:before { content: \"\\e161\"; } }\n.glyphicon-flash { &:before { content: \"\\e162\"; } }\n.glyphicon-log-out { &:before { content: \"\\e163\"; } }\n.glyphicon-new-window { &:before { content: \"\\e164\"; } }\n.glyphicon-record { &:before { content: \"\\e165\"; } }\n.glyphicon-save { &:before { content: \"\\e166\"; } }\n.glyphicon-open { &:before { content: \"\\e167\"; } }\n.glyphicon-saved { &:before { content: \"\\e168\"; } }\n.glyphicon-import { &:before { content: \"\\e169\"; } }\n.glyphicon-export { &:before { content: \"\\e170\"; } }\n.glyphicon-send { &:before { content: \"\\e171\"; } }\n.glyphicon-floppy-disk { &:before { content: \"\\e172\"; } }\n.glyphicon-floppy-saved { &:before { content: \"\\e173\"; } }\n.glyphicon-floppy-remove { &:before { content: \"\\e174\"; } }\n.glyphicon-floppy-save { &:before { content: \"\\e175\"; } }\n.glyphicon-floppy-open { &:before { content: \"\\e176\"; } }\n.glyphicon-credit-card { &:before { content: \"\\e177\"; } }\n.glyphicon-transfer { &:before { content: \"\\e178\"; } }\n.glyphicon-cutlery { &:before { content: \"\\e179\"; } }\n.glyphicon-header { &:before { content: \"\\e180\"; } }\n.glyphicon-compressed { &:before { content: \"\\e181\"; } }\n.glyphicon-earphone { &:before { content: \"\\e182\"; } }\n.glyphicon-phone-alt { &:before { content: \"\\e183\"; } }\n.glyphicon-tower { &:before { content: \"\\e184\"; } }\n.glyphicon-stats { &:before { content: \"\\e185\"; } }\n.glyphicon-sd-video { &:before { content: \"\\e186\"; } }\n.glyphicon-hd-video { &:before { content: \"\\e187\"; } }\n.glyphicon-subtitles { &:before { content: \"\\e188\"; } }\n.glyphicon-sound-stereo { &:before { content: \"\\e189\"; } }\n.glyphicon-sound-dolby { &:before { content: \"\\e190\"; } }\n.glyphicon-sound-5-1 { &:before { content: \"\\e191\"; } }\n.glyphicon-sound-6-1 { &:before { content: \"\\e192\"; } }\n.glyphicon-sound-7-1 { &:before { content: \"\\e193\"; } }\n.glyphicon-copyright-mark { &:before { content: \"\\e194\"; } }\n.glyphicon-registration-mark { &:before { content: \"\\e195\"; } }\n.glyphicon-cloud-download { &:before { content: \"\\e197\"; } }\n.glyphicon-cloud-upload { &:before { content: \"\\e198\"; } }\n.glyphicon-tree-conifer { &:before { content: \"\\e199\"; } }\n.glyphicon-tree-deciduous { &:before { content: \"\\e200\"; } }\n.glyphicon-cd { &:before { content: \"\\e201\"; } }\n.glyphicon-save-file { &:before { content: \"\\e202\"; } }\n.glyphicon-open-file { &:before { content: \"\\e203\"; } }\n.glyphicon-level-up { &:before { content: \"\\e204\"; } }\n.glyphicon-copy { &:before { content: \"\\e205\"; } }\n.glyphicon-paste { &:before { content: \"\\e206\"; } }\n// The following 2 Glyphicons are omitted for the time being because\n// they currently use Unicode codepoints that are outside the\n// Basic Multilingual Plane (BMP). Older buggy versions of WebKit can't handle\n// non-BMP codepoints in CSS string escapes, and thus can't display these two icons.\n// Notably, the bug affects some older versions of the Android Browser.\n// More info: https://github.com/twbs/bootstrap/issues/10106\n// .glyphicon-door { &:before { content: \"\\1f6aa\"; } }\n// .glyphicon-key { &:before { content: \"\\1f511\"; } }\n.glyphicon-alert { &:before { content: \"\\e209\"; } }\n.glyphicon-equalizer { &:before { content: \"\\e210\"; } }\n.glyphicon-king { &:before { content: \"\\e211\"; } }\n.glyphicon-queen { &:before { content: \"\\e212\"; } }\n.glyphicon-pawn { &:before { content: \"\\e213\"; } }\n.glyphicon-bishop { &:before { content: \"\\e214\"; } }\n.glyphicon-knight { &:before { content: \"\\e215\"; } }\n.glyphicon-baby-formula { &:before { content: \"\\e216\"; } }\n.glyphicon-tent { &:before { content: \"\\26fa\"; } }\n.glyphicon-blackboard { &:before { content: \"\\e218\"; } }\n.glyphicon-bed { &:before { content: \"\\e219\"; } }\n.glyphicon-apple { &:before { content: \"\\f8ff\"; } }\n.glyphicon-erase { &:before { content: \"\\e221\"; } }\n.glyphicon-hourglass { &:before { content: \"\\231b\"; } }\n.glyphicon-lamp { &:before { content: \"\\e223\"; } }\n.glyphicon-duplicate { &:before { content: \"\\e224\"; } }\n.glyphicon-piggy-bank { &:before { content: \"\\e225\"; } }\n.glyphicon-scissors { &:before { content: \"\\e226\"; } }\n.glyphicon-bitcoin { &:before { content: \"\\e227\"; } }\n.glyphicon-btc { &:before { content: \"\\e227\"; } }\n.glyphicon-xbt { &:before { content: \"\\e227\"; } }\n.glyphicon-yen { &:before { content: \"\\00a5\"; } }\n.glyphicon-jpy { &:before { content: \"\\00a5\"; } }\n.glyphicon-ruble { &:before { content: \"\\20bd\"; } }\n.glyphicon-rub { &:before { content: \"\\20bd\"; } }\n.glyphicon-scale { &:before { content: \"\\e230\"; } }\n.glyphicon-ice-lolly { &:before { content: \"\\e231\"; } }\n.glyphicon-ice-lolly-tasted { &:before { content: \"\\e232\"; } }\n.glyphicon-education { &:before { content: \"\\e233\"; } }\n.glyphicon-option-horizontal { &:before { content: \"\\e234\"; } }\n.glyphicon-option-vertical { &:before { content: \"\\e235\"; } }\n.glyphicon-menu-hamburger { &:before { content: \"\\e236\"; } }\n.glyphicon-modal-window { &:before { content: \"\\e237\"; } }\n.glyphicon-oil { &:before { content: \"\\e238\"; } }\n.glyphicon-grain { &:before { content: \"\\e239\"; } }\n.glyphicon-sunglasses { &:before { content: \"\\e240\"; } }\n.glyphicon-text-size { &:before { content: \"\\e241\"; } }\n.glyphicon-text-color { &:before { content: \"\\e242\"; } }\n.glyphicon-text-background { &:before { content: \"\\e243\"; } }\n.glyphicon-object-align-top { &:before { content: \"\\e244\"; } }\n.glyphicon-object-align-bottom { &:before { content: \"\\e245\"; } }\n.glyphicon-object-align-horizontal{ &:before { content: \"\\e246\"; } }\n.glyphicon-object-align-left { &:before { content: \"\\e247\"; } }\n.glyphicon-object-align-vertical { &:before { content: \"\\e248\"; } }\n.glyphicon-object-align-right { &:before { content: \"\\e249\"; } }\n.glyphicon-triangle-right { &:before { content: \"\\e250\"; } }\n.glyphicon-triangle-left { &:before { content: \"\\e251\"; } }\n.glyphicon-triangle-bottom { &:before { content: \"\\e252\"; } }\n.glyphicon-triangle-top { &:before { content: \"\\e253\"; } }\n.glyphicon-console { &:before { content: \"\\e254\"; } }\n.glyphicon-superscript { &:before { content: \"\\e255\"; } }\n.glyphicon-subscript { &:before { content: \"\\e256\"; } }\n.glyphicon-menu-left { &:before { content: \"\\e257\"; } }\n.glyphicon-menu-right { &:before { content: \"\\e258\"; } }\n.glyphicon-menu-down { &:before { content: \"\\e259\"; } }\n.glyphicon-menu-up { &:before { content: \"\\e260\"; } }\n","//\n// Scaffolding\n// --------------------------------------------------\n\n\n// Reset the box-sizing\n//\n// Heads up! This reset may cause conflicts with some third-party widgets.\n// For recommendations on resolving such conflicts, see\n// http://getbootstrap.com/getting-started/#third-box-sizing\n* {\n .box-sizing(border-box);\n}\n*:before,\n*:after {\n .box-sizing(border-box);\n}\n\n\n// Body reset\n\nhtml {\n font-size: 10px;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n}\n\nbody {\n font-family: @font-family-base;\n font-size: @font-size-base;\n line-height: @line-height-base;\n color: @text-color;\n background-color: @body-bg;\n}\n\n// Reset fonts for relevant elements\ninput,\nbutton,\nselect,\ntextarea {\n font-family: inherit;\n font-size: inherit;\n line-height: inherit;\n}\n\n\n// Links\n\na {\n color: @link-color;\n text-decoration: none;\n\n &:hover,\n &:focus {\n color: @link-hover-color;\n text-decoration: @link-hover-decoration;\n }\n\n &:focus {\n .tab-focus();\n }\n}\n\n\n// Figures\n//\n// We reset this here because previously Normalize had no `figure` margins. This\n// ensures we don't break anyone's use of the element.\n\nfigure {\n margin: 0;\n}\n\n\n// Images\n\nimg {\n vertical-align: middle;\n}\n\n// Responsive images (ensure images don't scale beyond their parents)\n.img-responsive {\n .img-responsive();\n}\n\n// Rounded corners\n.img-rounded {\n border-radius: @border-radius-large;\n}\n\n// Image thumbnails\n//\n// Heads up! This is mixin-ed into thumbnails.less for `.thumbnail`.\n.img-thumbnail {\n padding: @thumbnail-padding;\n line-height: @line-height-base;\n background-color: @thumbnail-bg;\n border: 1px solid @thumbnail-border;\n border-radius: @thumbnail-border-radius;\n .transition(all .2s ease-in-out);\n\n // Keep them at most 100% wide\n .img-responsive(inline-block);\n}\n\n// Perfect circle\n.img-circle {\n border-radius: 50%; // set radius in percents\n}\n\n\n// Horizontal rules\n\nhr {\n margin-top: @line-height-computed;\n margin-bottom: @line-height-computed;\n border: 0;\n border-top: 1px solid @hr-border;\n}\n\n\n// Only display content to screen readers\n//\n// See: http://a11yproject.com/posts/how-to-hide-content\n\n.sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip: rect(0,0,0,0);\n border: 0;\n}\n\n// Use in conjunction with .sr-only to only display content when it's focused.\n// Useful for \"Skip to main content\" links; see http://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1\n// Credit: HTML5 Boilerplate\n\n.sr-only-focusable {\n &:active,\n &:focus {\n position: static;\n width: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n clip: auto;\n }\n}\n\n\n// iOS \"clickable elements\" fix for role=\"button\"\n//\n// Fixes \"clickability\" issue (and more generally, the firing of events such as focus as well)\n// for traditionally non-focusable elements with role=\"button\"\n// see https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile\n\n[role=\"button\"] {\n cursor: pointer;\n}\n","// Vendor Prefixes\n//\n// All vendor mixins are deprecated as of v3.2.0 due to the introduction of\n// Autoprefixer in our Gruntfile. They have been removed in v4.\n\n// - Animations\n// - Backface visibility\n// - Box shadow\n// - Box sizing\n// - Content columns\n// - Hyphens\n// - Placeholder text\n// - Transformations\n// - Transitions\n// - User Select\n\n\n// Animations\n.animation(@animation) {\n -webkit-animation: @animation;\n -o-animation: @animation;\n animation: @animation;\n}\n.animation-name(@name) {\n -webkit-animation-name: @name;\n animation-name: @name;\n}\n.animation-duration(@duration) {\n -webkit-animation-duration: @duration;\n animation-duration: @duration;\n}\n.animation-timing-function(@timing-function) {\n -webkit-animation-timing-function: @timing-function;\n animation-timing-function: @timing-function;\n}\n.animation-delay(@delay) {\n -webkit-animation-delay: @delay;\n animation-delay: @delay;\n}\n.animation-iteration-count(@iteration-count) {\n -webkit-animation-iteration-count: @iteration-count;\n animation-iteration-count: @iteration-count;\n}\n.animation-direction(@direction) {\n -webkit-animation-direction: @direction;\n animation-direction: @direction;\n}\n.animation-fill-mode(@fill-mode) {\n -webkit-animation-fill-mode: @fill-mode;\n animation-fill-mode: @fill-mode;\n}\n\n// Backface visibility\n// Prevent browsers from flickering when using CSS 3D transforms.\n// Default value is `visible`, but can be changed to `hidden`\n\n.backface-visibility(@visibility) {\n -webkit-backface-visibility: @visibility;\n -moz-backface-visibility: @visibility;\n backface-visibility: @visibility;\n}\n\n// Drop shadows\n//\n// Note: Deprecated `.box-shadow()` as of v3.1.0 since all of Bootstrap's\n// supported browsers that have box shadow capabilities now support it.\n\n.box-shadow(@shadow) {\n -webkit-box-shadow: @shadow; // iOS <4.3 & Android <4.1\n box-shadow: @shadow;\n}\n\n// Box sizing\n.box-sizing(@boxmodel) {\n -webkit-box-sizing: @boxmodel;\n -moz-box-sizing: @boxmodel;\n box-sizing: @boxmodel;\n}\n\n// CSS3 Content Columns\n.content-columns(@column-count; @column-gap: @grid-gutter-width) {\n -webkit-column-count: @column-count;\n -moz-column-count: @column-count;\n column-count: @column-count;\n -webkit-column-gap: @column-gap;\n -moz-column-gap: @column-gap;\n column-gap: @column-gap;\n}\n\n// Optional hyphenation\n.hyphens(@mode: auto) {\n word-wrap: break-word;\n -webkit-hyphens: @mode;\n -moz-hyphens: @mode;\n -ms-hyphens: @mode; // IE10+\n -o-hyphens: @mode;\n hyphens: @mode;\n}\n\n// Placeholder text\n.placeholder(@color: @input-color-placeholder) {\n // Firefox\n &::-moz-placeholder {\n color: @color;\n opacity: 1; // Override Firefox's unusual default opacity; see https://github.com/twbs/bootstrap/pull/11526\n }\n &:-ms-input-placeholder { color: @color; } // Internet Explorer 10+\n &::-webkit-input-placeholder { color: @color; } // Safari and Chrome\n}\n\n// Transformations\n.scale(@ratio) {\n -webkit-transform: scale(@ratio);\n -ms-transform: scale(@ratio); // IE9 only\n -o-transform: scale(@ratio);\n transform: scale(@ratio);\n}\n.scale(@ratioX; @ratioY) {\n -webkit-transform: scale(@ratioX, @ratioY);\n -ms-transform: scale(@ratioX, @ratioY); // IE9 only\n -o-transform: scale(@ratioX, @ratioY);\n transform: scale(@ratioX, @ratioY);\n}\n.scaleX(@ratio) {\n -webkit-transform: scaleX(@ratio);\n -ms-transform: scaleX(@ratio); // IE9 only\n -o-transform: scaleX(@ratio);\n transform: scaleX(@ratio);\n}\n.scaleY(@ratio) {\n -webkit-transform: scaleY(@ratio);\n -ms-transform: scaleY(@ratio); // IE9 only\n -o-transform: scaleY(@ratio);\n transform: scaleY(@ratio);\n}\n.skew(@x; @y) {\n -webkit-transform: skewX(@x) skewY(@y);\n -ms-transform: skewX(@x) skewY(@y); // See https://github.com/twbs/bootstrap/issues/4885; IE9+\n -o-transform: skewX(@x) skewY(@y);\n transform: skewX(@x) skewY(@y);\n}\n.translate(@x; @y) {\n -webkit-transform: translate(@x, @y);\n -ms-transform: translate(@x, @y); // IE9 only\n -o-transform: translate(@x, @y);\n transform: translate(@x, @y);\n}\n.translate3d(@x; @y; @z) {\n -webkit-transform: translate3d(@x, @y, @z);\n transform: translate3d(@x, @y, @z);\n}\n.rotate(@degrees) {\n -webkit-transform: rotate(@degrees);\n -ms-transform: rotate(@degrees); // IE9 only\n -o-transform: rotate(@degrees);\n transform: rotate(@degrees);\n}\n.rotateX(@degrees) {\n -webkit-transform: rotateX(@degrees);\n -ms-transform: rotateX(@degrees); // IE9 only\n -o-transform: rotateX(@degrees);\n transform: rotateX(@degrees);\n}\n.rotateY(@degrees) {\n -webkit-transform: rotateY(@degrees);\n -ms-transform: rotateY(@degrees); // IE9 only\n -o-transform: rotateY(@degrees);\n transform: rotateY(@degrees);\n}\n.perspective(@perspective) {\n -webkit-perspective: @perspective;\n -moz-perspective: @perspective;\n perspective: @perspective;\n}\n.perspective-origin(@perspective) {\n -webkit-perspective-origin: @perspective;\n -moz-perspective-origin: @perspective;\n perspective-origin: @perspective;\n}\n.transform-origin(@origin) {\n -webkit-transform-origin: @origin;\n -moz-transform-origin: @origin;\n -ms-transform-origin: @origin; // IE9 only\n transform-origin: @origin;\n}\n\n\n// Transitions\n\n.transition(@transition) {\n -webkit-transition: @transition;\n -o-transition: @transition;\n transition: @transition;\n}\n.transition-property(@transition-property) {\n -webkit-transition-property: @transition-property;\n transition-property: @transition-property;\n}\n.transition-delay(@transition-delay) {\n -webkit-transition-delay: @transition-delay;\n transition-delay: @transition-delay;\n}\n.transition-duration(@transition-duration) {\n -webkit-transition-duration: @transition-duration;\n transition-duration: @transition-duration;\n}\n.transition-timing-function(@timing-function) {\n -webkit-transition-timing-function: @timing-function;\n transition-timing-function: @timing-function;\n}\n.transition-transform(@transition) {\n -webkit-transition: -webkit-transform @transition;\n -moz-transition: -moz-transform @transition;\n -o-transition: -o-transform @transition;\n transition: transform @transition;\n}\n\n\n// User select\n// For selecting text on the page\n\n.user-select(@select) {\n -webkit-user-select: @select;\n -moz-user-select: @select;\n -ms-user-select: @select; // IE10+\n user-select: @select;\n}\n","// WebKit-style focus\n\n.tab-focus() {\n // WebKit-specific. Other browsers will keep their default outline style.\n // (Initially tried to also force default via `outline: initial`,\n // but that seems to erroneously remove the outline in Firefox altogether.)\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: -2px;\n}\n","// Image Mixins\n// - Responsive image\n// - Retina image\n\n\n// Responsive image\n//\n// Keep images from scaling beyond the width of their parents.\n.img-responsive(@display: block) {\n display: @display;\n max-width: 100%; // Part 1: Set a maximum relative to the parent\n height: auto; // Part 2: Scale the height according to the width, otherwise you get stretching\n}\n\n\n// Retina image\n//\n// Short retina mixin for setting background-image and -size. Note that the\n// spelling of `min--moz-device-pixel-ratio` is intentional.\n.img-retina(@file-1x; @file-2x; @width-1x; @height-1x) {\n background-image: url(\"@{file-1x}\");\n\n @media\n only screen and (-webkit-min-device-pixel-ratio: 2),\n only screen and ( min--moz-device-pixel-ratio: 2),\n only screen and ( -o-min-device-pixel-ratio: 2/1),\n only screen and ( min-device-pixel-ratio: 2),\n only screen and ( min-resolution: 192dpi),\n only screen and ( min-resolution: 2dppx) {\n background-image: url(\"@{file-2x}\");\n background-size: @width-1x @height-1x;\n }\n}\n","//\n// Typography\n// --------------------------------------------------\n\n\n// Headings\n// -------------------------\n\nh1, h2, h3, h4, h5, h6,\n.h1, .h2, .h3, .h4, .h5, .h6 {\n font-family: @headings-font-family;\n font-weight: @headings-font-weight;\n line-height: @headings-line-height;\n color: @headings-color;\n\n small,\n .small {\n font-weight: normal;\n line-height: 1;\n color: @headings-small-color;\n }\n}\n\nh1, .h1,\nh2, .h2,\nh3, .h3 {\n margin-top: @line-height-computed;\n margin-bottom: (@line-height-computed / 2);\n\n small,\n .small {\n font-size: 65%;\n }\n}\nh4, .h4,\nh5, .h5,\nh6, .h6 {\n margin-top: (@line-height-computed / 2);\n margin-bottom: (@line-height-computed / 2);\n\n small,\n .small {\n font-size: 75%;\n }\n}\n\nh1, .h1 { font-size: @font-size-h1; }\nh2, .h2 { font-size: @font-size-h2; }\nh3, .h3 { font-size: @font-size-h3; }\nh4, .h4 { font-size: @font-size-h4; }\nh5, .h5 { font-size: @font-size-h5; }\nh6, .h6 { font-size: @font-size-h6; }\n\n\n// Body text\n// -------------------------\n\np {\n margin: 0 0 (@line-height-computed / 2);\n}\n\n.lead {\n margin-bottom: @line-height-computed;\n font-size: floor((@font-size-base * 1.15));\n font-weight: 300;\n line-height: 1.4;\n\n @media (min-width: @screen-sm-min) {\n font-size: (@font-size-base * 1.5);\n }\n}\n\n\n// Emphasis & misc\n// -------------------------\n\n// Ex: (12px small font / 14px base font) * 100% = about 85%\nsmall,\n.small {\n font-size: floor((100% * @font-size-small / @font-size-base));\n}\n\nmark,\n.mark {\n background-color: @state-warning-bg;\n padding: .2em;\n}\n\n// Alignment\n.text-left { text-align: left; }\n.text-right { text-align: right; }\n.text-center { text-align: center; }\n.text-justify { text-align: justify; }\n.text-nowrap { white-space: nowrap; }\n\n// Transformation\n.text-lowercase { text-transform: lowercase; }\n.text-uppercase { text-transform: uppercase; }\n.text-capitalize { text-transform: capitalize; }\n\n// Contextual colors\n.text-muted {\n color: @text-muted;\n}\n.text-primary {\n .text-emphasis-variant(@brand-primary);\n}\n.text-success {\n .text-emphasis-variant(@state-success-text);\n}\n.text-info {\n .text-emphasis-variant(@state-info-text);\n}\n.text-warning {\n .text-emphasis-variant(@state-warning-text);\n}\n.text-danger {\n .text-emphasis-variant(@state-danger-text);\n}\n\n// Contextual backgrounds\n// For now we'll leave these alongside the text classes until v4 when we can\n// safely shift things around (per SemVer rules).\n.bg-primary {\n // Given the contrast here, this is the only class to have its color inverted\n // automatically.\n color: #fff;\n .bg-variant(@brand-primary);\n}\n.bg-success {\n .bg-variant(@state-success-bg);\n}\n.bg-info {\n .bg-variant(@state-info-bg);\n}\n.bg-warning {\n .bg-variant(@state-warning-bg);\n}\n.bg-danger {\n .bg-variant(@state-danger-bg);\n}\n\n\n// Page header\n// -------------------------\n\n.page-header {\n padding-bottom: ((@line-height-computed / 2) - 1);\n margin: (@line-height-computed * 2) 0 @line-height-computed;\n border-bottom: 1px solid @page-header-border-color;\n}\n\n\n// Lists\n// -------------------------\n\n// Unordered and Ordered lists\nul,\nol {\n margin-top: 0;\n margin-bottom: (@line-height-computed / 2);\n ul,\n ol {\n margin-bottom: 0;\n }\n}\n\n// List options\n\n// Unstyled keeps list items block level, just removes default browser padding and list-style\n.list-unstyled {\n padding-left: 0;\n list-style: none;\n}\n\n// Inline turns list items into inline-block\n.list-inline {\n .list-unstyled();\n margin-left: -5px;\n\n > li {\n display: inline-block;\n padding-left: 5px;\n padding-right: 5px;\n }\n}\n\n// Description Lists\ndl {\n margin-top: 0; // Remove browser default\n margin-bottom: @line-height-computed;\n}\ndt,\ndd {\n line-height: @line-height-base;\n}\ndt {\n font-weight: bold;\n}\ndd {\n margin-left: 0; // Undo browser default\n}\n\n// Horizontal description lists\n//\n// Defaults to being stacked without any of the below styles applied, until the\n// grid breakpoint is reached (default of ~768px).\n\n.dl-horizontal {\n dd {\n &:extend(.clearfix all); // Clear the floated `dt` if an empty `dd` is present\n }\n\n @media (min-width: @dl-horizontal-breakpoint) {\n dt {\n float: left;\n width: (@dl-horizontal-offset - 20);\n clear: left;\n text-align: right;\n .text-overflow();\n }\n dd {\n margin-left: @dl-horizontal-offset;\n }\n }\n}\n\n\n// Misc\n// -------------------------\n\n// Abbreviations and acronyms\nabbr[title],\n// Add data-* attribute to help out our tooltip plugin, per https://github.com/twbs/bootstrap/issues/5257\nabbr[data-original-title] {\n cursor: help;\n border-bottom: 1px dotted @abbr-border-color;\n}\n.initialism {\n font-size: 90%;\n .text-uppercase();\n}\n\n// Blockquotes\nblockquote {\n padding: (@line-height-computed / 2) @line-height-computed;\n margin: 0 0 @line-height-computed;\n font-size: @blockquote-font-size;\n border-left: 5px solid @blockquote-border-color;\n\n p,\n ul,\n ol {\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n // Note: Deprecated small and .small as of v3.1.0\n // Context: https://github.com/twbs/bootstrap/issues/11660\n footer,\n small,\n .small {\n display: block;\n font-size: 80%; // back to default font-size\n line-height: @line-height-base;\n color: @blockquote-small-color;\n\n &:before {\n content: '\\2014 \\00A0'; // em dash, nbsp\n }\n }\n}\n\n// Opposite alignment of blockquote\n//\n// Heads up: `blockquote.pull-right` has been deprecated as of v3.1.0.\n.blockquote-reverse,\nblockquote.pull-right {\n padding-right: 15px;\n padding-left: 0;\n border-right: 5px solid @blockquote-border-color;\n border-left: 0;\n text-align: right;\n\n // Account for citation\n footer,\n small,\n .small {\n &:before { content: ''; }\n &:after {\n content: '\\00A0 \\2014'; // nbsp, em dash\n }\n }\n}\n\n// Addresses\naddress {\n margin-bottom: @line-height-computed;\n font-style: normal;\n line-height: @line-height-base;\n}\n","// Typography\n\n.text-emphasis-variant(@color) {\n color: @color;\n a&:hover,\n a&:focus {\n color: darken(@color, 10%);\n }\n}\n","// Contextual backgrounds\n\n.bg-variant(@color) {\n background-color: @color;\n a&:hover,\n a&:focus {\n background-color: darken(@color, 10%);\n }\n}\n","// Text overflow\n// Requires inline-block or block for proper styling\n\n.text-overflow() {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n","//\n// Code (inline and block)\n// --------------------------------------------------\n\n\n// Inline and block code styles\ncode,\nkbd,\npre,\nsamp {\n font-family: @font-family-monospace;\n}\n\n// Inline code\ncode {\n padding: 2px 4px;\n font-size: 90%;\n color: @code-color;\n background-color: @code-bg;\n border-radius: @border-radius-base;\n}\n\n// User input typically entered via keyboard\nkbd {\n padding: 2px 4px;\n font-size: 90%;\n color: @kbd-color;\n background-color: @kbd-bg;\n border-radius: @border-radius-small;\n box-shadow: inset 0 -1px 0 rgba(0,0,0,.25);\n\n kbd {\n padding: 0;\n font-size: 100%;\n font-weight: bold;\n box-shadow: none;\n }\n}\n\n// Blocks of code\npre {\n display: block;\n padding: ((@line-height-computed - 1) / 2);\n margin: 0 0 (@line-height-computed / 2);\n font-size: (@font-size-base - 1); // 14px to 13px\n line-height: @line-height-base;\n word-break: break-all;\n word-wrap: break-word;\n color: @pre-color;\n background-color: @pre-bg;\n border: 1px solid @pre-border-color;\n border-radius: @border-radius-base;\n\n // Account for some code outputs that place code tags in pre tags\n code {\n padding: 0;\n font-size: inherit;\n color: inherit;\n white-space: pre-wrap;\n background-color: transparent;\n border-radius: 0;\n }\n}\n\n// Enable scrollable blocks of code\n.pre-scrollable {\n max-height: @pre-scrollable-max-height;\n overflow-y: scroll;\n}\n","//\n// Grid system\n// --------------------------------------------------\n\n\n// Container widths\n//\n// Set the container width, and override it for fixed navbars in media queries.\n\n.container {\n .container-fixed();\n\n @media (min-width: @screen-sm-min) {\n width: @container-sm;\n }\n @media (min-width: @screen-md-min) {\n width: @container-md;\n }\n @media (min-width: @screen-lg-min) {\n width: @container-lg;\n }\n}\n\n\n// Fluid container\n//\n// Utilizes the mixin meant for fixed width containers, but without any defined\n// width for fluid, full width layouts.\n\n.container-fluid {\n .container-fixed();\n}\n\n\n// Row\n//\n// Rows contain and clear the floats of your columns.\n\n.row {\n .make-row();\n}\n\n\n// Columns\n//\n// Common styles for small and large grid columns\n\n.make-grid-columns();\n\n\n// Extra small grid\n//\n// Columns, offsets, pushes, and pulls for extra small devices like\n// smartphones.\n\n.make-grid(xs);\n\n\n// Small grid\n//\n// Columns, offsets, pushes, and pulls for the small device range, from phones\n// to tablets.\n\n@media (min-width: @screen-sm-min) {\n .make-grid(sm);\n}\n\n\n// Medium grid\n//\n// Columns, offsets, pushes, and pulls for the desktop device range.\n\n@media (min-width: @screen-md-min) {\n .make-grid(md);\n}\n\n\n// Large grid\n//\n// Columns, offsets, pushes, and pulls for the large desktop device range.\n\n@media (min-width: @screen-lg-min) {\n .make-grid(lg);\n}\n","// Grid system\n//\n// Generate semantic grid columns with these mixins.\n\n// Centered container element\n.container-fixed(@gutter: @grid-gutter-width) {\n margin-right: auto;\n margin-left: auto;\n padding-left: floor((@gutter / 2));\n padding-right: ceil((@gutter / 2));\n &:extend(.clearfix all);\n}\n\n// Creates a wrapper for a series of columns\n.make-row(@gutter: @grid-gutter-width) {\n margin-left: ceil((@gutter / -2));\n margin-right: floor((@gutter / -2));\n &:extend(.clearfix all);\n}\n\n// Generate the extra small columns\n.make-xs-column(@columns; @gutter: @grid-gutter-width) {\n position: relative;\n float: left;\n width: percentage((@columns / @grid-columns));\n min-height: 1px;\n padding-left: (@gutter / 2);\n padding-right: (@gutter / 2);\n}\n.make-xs-column-offset(@columns) {\n margin-left: percentage((@columns / @grid-columns));\n}\n.make-xs-column-push(@columns) {\n left: percentage((@columns / @grid-columns));\n}\n.make-xs-column-pull(@columns) {\n right: percentage((@columns / @grid-columns));\n}\n\n// Generate the small columns\n.make-sm-column(@columns; @gutter: @grid-gutter-width) {\n position: relative;\n min-height: 1px;\n padding-left: (@gutter / 2);\n padding-right: (@gutter / 2);\n\n @media (min-width: @screen-sm-min) {\n float: left;\n width: percentage((@columns / @grid-columns));\n }\n}\n.make-sm-column-offset(@columns) {\n @media (min-width: @screen-sm-min) {\n margin-left: percentage((@columns / @grid-columns));\n }\n}\n.make-sm-column-push(@columns) {\n @media (min-width: @screen-sm-min) {\n left: percentage((@columns / @grid-columns));\n }\n}\n.make-sm-column-pull(@columns) {\n @media (min-width: @screen-sm-min) {\n right: percentage((@columns / @grid-columns));\n }\n}\n\n// Generate the medium columns\n.make-md-column(@columns; @gutter: @grid-gutter-width) {\n position: relative;\n min-height: 1px;\n padding-left: (@gutter / 2);\n padding-right: (@gutter / 2);\n\n @media (min-width: @screen-md-min) {\n float: left;\n width: percentage((@columns / @grid-columns));\n }\n}\n.make-md-column-offset(@columns) {\n @media (min-width: @screen-md-min) {\n margin-left: percentage((@columns / @grid-columns));\n }\n}\n.make-md-column-push(@columns) {\n @media (min-width: @screen-md-min) {\n left: percentage((@columns / @grid-columns));\n }\n}\n.make-md-column-pull(@columns) {\n @media (min-width: @screen-md-min) {\n right: percentage((@columns / @grid-columns));\n }\n}\n\n// Generate the large columns\n.make-lg-column(@columns; @gutter: @grid-gutter-width) {\n position: relative;\n min-height: 1px;\n padding-left: (@gutter / 2);\n padding-right: (@gutter / 2);\n\n @media (min-width: @screen-lg-min) {\n float: left;\n width: percentage((@columns / @grid-columns));\n }\n}\n.make-lg-column-offset(@columns) {\n @media (min-width: @screen-lg-min) {\n margin-left: percentage((@columns / @grid-columns));\n }\n}\n.make-lg-column-push(@columns) {\n @media (min-width: @screen-lg-min) {\n left: percentage((@columns / @grid-columns));\n }\n}\n.make-lg-column-pull(@columns) {\n @media (min-width: @screen-lg-min) {\n right: percentage((@columns / @grid-columns));\n }\n}\n","// Framework grid generation\n//\n// Used only by Bootstrap to generate the correct number of grid classes given\n// any value of `@grid-columns`.\n\n.make-grid-columns() {\n // Common styles for all sizes of grid columns, widths 1-12\n .col(@index) { // initial\n @item: ~\".col-xs-@{index}, .col-sm-@{index}, .col-md-@{index}, .col-lg-@{index}\";\n .col((@index + 1), @item);\n }\n .col(@index, @list) when (@index =< @grid-columns) { // general; \"=<\" isn't a typo\n @item: ~\".col-xs-@{index}, .col-sm-@{index}, .col-md-@{index}, .col-lg-@{index}\";\n .col((@index + 1), ~\"@{list}, @{item}\");\n }\n .col(@index, @list) when (@index > @grid-columns) { // terminal\n @{list} {\n position: relative;\n // Prevent columns from collapsing when empty\n min-height: 1px;\n // Inner gutter via padding\n padding-left: ceil((@grid-gutter-width / 2));\n padding-right: floor((@grid-gutter-width / 2));\n }\n }\n .col(1); // kickstart it\n}\n\n.float-grid-columns(@class) {\n .col(@index) { // initial\n @item: ~\".col-@{class}-@{index}\";\n .col((@index + 1), @item);\n }\n .col(@index, @list) when (@index =< @grid-columns) { // general\n @item: ~\".col-@{class}-@{index}\";\n .col((@index + 1), ~\"@{list}, @{item}\");\n }\n .col(@index, @list) when (@index > @grid-columns) { // terminal\n @{list} {\n float: left;\n }\n }\n .col(1); // kickstart it\n}\n\n.calc-grid-column(@index, @class, @type) when (@type = width) and (@index > 0) {\n .col-@{class}-@{index} {\n width: percentage((@index / @grid-columns));\n }\n}\n.calc-grid-column(@index, @class, @type) when (@type = push) and (@index > 0) {\n .col-@{class}-push-@{index} {\n left: percentage((@index / @grid-columns));\n }\n}\n.calc-grid-column(@index, @class, @type) when (@type = push) and (@index = 0) {\n .col-@{class}-push-0 {\n left: auto;\n }\n}\n.calc-grid-column(@index, @class, @type) when (@type = pull) and (@index > 0) {\n .col-@{class}-pull-@{index} {\n right: percentage((@index / @grid-columns));\n }\n}\n.calc-grid-column(@index, @class, @type) when (@type = pull) and (@index = 0) {\n .col-@{class}-pull-0 {\n right: auto;\n }\n}\n.calc-grid-column(@index, @class, @type) when (@type = offset) {\n .col-@{class}-offset-@{index} {\n margin-left: percentage((@index / @grid-columns));\n }\n}\n\n// Basic looping in LESS\n.loop-grid-columns(@index, @class, @type) when (@index >= 0) {\n .calc-grid-column(@index, @class, @type);\n // next iteration\n .loop-grid-columns((@index - 1), @class, @type);\n}\n\n// Create grid for specific class\n.make-grid(@class) {\n .float-grid-columns(@class);\n .loop-grid-columns(@grid-columns, @class, width);\n .loop-grid-columns(@grid-columns, @class, pull);\n .loop-grid-columns(@grid-columns, @class, push);\n .loop-grid-columns(@grid-columns, @class, offset);\n}\n","//\n// Tables\n// --------------------------------------------------\n\n\ntable {\n background-color: @table-bg;\n}\ncaption {\n padding-top: @table-cell-padding;\n padding-bottom: @table-cell-padding;\n color: @text-muted;\n text-align: left;\n}\nth {\n text-align: left;\n}\n\n\n// Baseline styles\n\n.table {\n width: 100%;\n max-width: 100%;\n margin-bottom: @line-height-computed;\n // Cells\n > thead,\n > tbody,\n > tfoot {\n > tr {\n > th,\n > td {\n padding: @table-cell-padding;\n line-height: @line-height-base;\n vertical-align: top;\n border-top: 1px solid @table-border-color;\n }\n }\n }\n // Bottom align for column headings\n > thead > tr > th {\n vertical-align: bottom;\n border-bottom: 2px solid @table-border-color;\n }\n // Remove top border from thead by default\n > caption + thead,\n > colgroup + thead,\n > thead:first-child {\n > tr:first-child {\n > th,\n > td {\n border-top: 0;\n }\n }\n }\n // Account for multiple tbody instances\n > tbody + tbody {\n border-top: 2px solid @table-border-color;\n }\n\n // Nesting\n .table {\n background-color: @body-bg;\n }\n}\n\n\n// Condensed table w/ half padding\n\n.table-condensed {\n > thead,\n > tbody,\n > tfoot {\n > tr {\n > th,\n > td {\n padding: @table-condensed-cell-padding;\n }\n }\n }\n}\n\n\n// Bordered version\n//\n// Add borders all around the table and between all the columns.\n\n.table-bordered {\n border: 1px solid @table-border-color;\n > thead,\n > tbody,\n > tfoot {\n > tr {\n > th,\n > td {\n border: 1px solid @table-border-color;\n }\n }\n }\n > thead > tr {\n > th,\n > td {\n border-bottom-width: 2px;\n }\n }\n}\n\n\n// Zebra-striping\n//\n// Default zebra-stripe styles (alternating gray and transparent backgrounds)\n\n.table-striped {\n > tbody > tr:nth-of-type(odd) {\n background-color: @table-bg-accent;\n }\n}\n\n\n// Hover effect\n//\n// Placed here since it has to come after the potential zebra striping\n\n.table-hover {\n > tbody > tr:hover {\n background-color: @table-bg-hover;\n }\n}\n\n\n// Table cell sizing\n//\n// Reset default table behavior\n\ntable col[class*=\"col-\"] {\n position: static; // Prevent border hiding in Firefox and IE9-11 (see https://github.com/twbs/bootstrap/issues/11623)\n float: none;\n display: table-column;\n}\ntable {\n td,\n th {\n &[class*=\"col-\"] {\n position: static; // Prevent border hiding in Firefox and IE9-11 (see https://github.com/twbs/bootstrap/issues/11623)\n float: none;\n display: table-cell;\n }\n }\n}\n\n\n// Table backgrounds\n//\n// Exact selectors below required to override `.table-striped` and prevent\n// inheritance to nested tables.\n\n// Generate the contextual variants\n.table-row-variant(active; @table-bg-active);\n.table-row-variant(success; @state-success-bg);\n.table-row-variant(info; @state-info-bg);\n.table-row-variant(warning; @state-warning-bg);\n.table-row-variant(danger; @state-danger-bg);\n\n\n// Responsive tables\n//\n// Wrap your tables in `.table-responsive` and we'll make them mobile friendly\n// by enabling horizontal scrolling. Only applies <768px. Everything above that\n// will display normally.\n\n.table-responsive {\n overflow-x: auto;\n min-height: 0.01%; // Workaround for IE9 bug (see https://github.com/twbs/bootstrap/issues/14837)\n\n @media screen and (max-width: @screen-xs-max) {\n width: 100%;\n margin-bottom: (@line-height-computed * 0.75);\n overflow-y: hidden;\n -ms-overflow-style: -ms-autohiding-scrollbar;\n border: 1px solid @table-border-color;\n\n // Tighten up spacing\n > .table {\n margin-bottom: 0;\n\n // Ensure the content doesn't wrap\n > thead,\n > tbody,\n > tfoot {\n > tr {\n > th,\n > td {\n white-space: nowrap;\n }\n }\n }\n }\n\n // Special overrides for the bordered tables\n > .table-bordered {\n border: 0;\n\n // Nuke the appropriate borders so that the parent can handle them\n > thead,\n > tbody,\n > tfoot {\n > tr {\n > th:first-child,\n > td:first-child {\n border-left: 0;\n }\n > th:last-child,\n > td:last-child {\n border-right: 0;\n }\n }\n }\n\n // Only nuke the last row's bottom-border in `tbody` and `tfoot` since\n // chances are there will be only one `tr` in a `thead` and that would\n // remove the border altogether.\n > tbody,\n > tfoot {\n > tr:last-child {\n > th,\n > td {\n border-bottom: 0;\n }\n }\n }\n\n }\n }\n}\n","// Tables\n\n.table-row-variant(@state; @background) {\n // Exact selectors below required to override `.table-striped` and prevent\n // inheritance to nested tables.\n .table > thead > tr,\n .table > tbody > tr,\n .table > tfoot > tr {\n > td.@{state},\n > th.@{state},\n &.@{state} > td,\n &.@{state} > th {\n background-color: @background;\n }\n }\n\n // Hover states for `.table-hover`\n // Note: this is not available for cells or rows within `thead` or `tfoot`.\n .table-hover > tbody > tr {\n > td.@{state}:hover,\n > th.@{state}:hover,\n &.@{state}:hover > td,\n &:hover > .@{state},\n &.@{state}:hover > th {\n background-color: darken(@background, 5%);\n }\n }\n}\n","//\n// Forms\n// --------------------------------------------------\n\n\n// Normalize non-controls\n//\n// Restyle and baseline non-control form elements.\n\nfieldset {\n padding: 0;\n margin: 0;\n border: 0;\n // Chrome and Firefox set a `min-width: min-content;` on fieldsets,\n // so we reset that to ensure it behaves more like a standard block element.\n // See https://github.com/twbs/bootstrap/issues/12359.\n min-width: 0;\n}\n\nlegend {\n display: block;\n width: 100%;\n padding: 0;\n margin-bottom: @line-height-computed;\n font-size: (@font-size-base * 1.5);\n line-height: inherit;\n color: @legend-color;\n border: 0;\n border-bottom: 1px solid @legend-border-color;\n}\n\nlabel {\n display: inline-block;\n max-width: 100%; // Force IE8 to wrap long content (see https://github.com/twbs/bootstrap/issues/13141)\n margin-bottom: 5px;\n font-weight: bold;\n}\n\n\n// Normalize form controls\n//\n// While most of our form styles require extra classes, some basic normalization\n// is required to ensure optimum display with or without those classes to better\n// address browser inconsistencies.\n\n// Override content-box in Normalize (* isn't specific enough)\ninput[type=\"search\"] {\n .box-sizing(border-box);\n}\n\n// Position radios and checkboxes better\ninput[type=\"radio\"],\ninput[type=\"checkbox\"] {\n margin: 4px 0 0;\n margin-top: 1px \\9; // IE8-9\n line-height: normal;\n}\n\ninput[type=\"file\"] {\n display: block;\n}\n\n// Make range inputs behave like textual form controls\ninput[type=\"range\"] {\n display: block;\n width: 100%;\n}\n\n// Make multiple select elements height not fixed\nselect[multiple],\nselect[size] {\n height: auto;\n}\n\n// Focus for file, radio, and checkbox\ninput[type=\"file\"]:focus,\ninput[type=\"radio\"]:focus,\ninput[type=\"checkbox\"]:focus {\n .tab-focus();\n}\n\n// Adjust output element\noutput {\n display: block;\n padding-top: (@padding-base-vertical + 1);\n font-size: @font-size-base;\n line-height: @line-height-base;\n color: @input-color;\n}\n\n\n// Common form controls\n//\n// Shared size and type resets for form controls. Apply `.form-control` to any\n// of the following form controls:\n//\n// select\n// textarea\n// input[type=\"text\"]\n// input[type=\"password\"]\n// input[type=\"datetime\"]\n// input[type=\"datetime-local\"]\n// input[type=\"date\"]\n// input[type=\"month\"]\n// input[type=\"time\"]\n// input[type=\"week\"]\n// input[type=\"number\"]\n// input[type=\"email\"]\n// input[type=\"url\"]\n// input[type=\"search\"]\n// input[type=\"tel\"]\n// input[type=\"color\"]\n\n.form-control {\n display: block;\n width: 100%;\n height: @input-height-base; // Make inputs at least the height of their button counterpart (base line-height + padding + border)\n padding: @padding-base-vertical @padding-base-horizontal;\n font-size: @font-size-base;\n line-height: @line-height-base;\n color: @input-color;\n background-color: @input-bg;\n background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214\n border: 1px solid @input-border;\n border-radius: @input-border-radius; // Note: This has no effect on s in CSS.\n .box-shadow(inset 0 1px 1px rgba(0,0,0,.075));\n .transition(~\"border-color ease-in-out .15s, box-shadow ease-in-out .15s\");\n\n // Customize the `:focus` state to imitate native WebKit styles.\n .form-control-focus();\n\n // Placeholder\n .placeholder();\n\n // Unstyle the caret on ``\n// element gets special love because it's special, and that's a fact!\n.input-size(@input-height; @padding-vertical; @padding-horizontal; @font-size; @line-height; @border-radius) {\n height: @input-height;\n padding: @padding-vertical @padding-horizontal;\n font-size: @font-size;\n line-height: @line-height;\n border-radius: @border-radius;\n\n select& {\n height: @input-height;\n line-height: @input-height;\n }\n\n textarea&,\n select[multiple]& {\n height: auto;\n }\n}\n","//\n// Buttons\n// --------------------------------------------------\n\n\n// Base styles\n// --------------------------------------------------\n\n.btn {\n display: inline-block;\n margin-bottom: 0; // For input.btn\n font-weight: @btn-font-weight;\n text-align: center;\n vertical-align: middle;\n touch-action: manipulation;\n cursor: pointer;\n background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214\n border: 1px solid transparent;\n white-space: nowrap;\n .button-size(@padding-base-vertical; @padding-base-horizontal; @font-size-base; @line-height-base; @btn-border-radius-base);\n .user-select(none);\n\n &,\n &:active,\n &.active {\n &:focus,\n &.focus {\n .tab-focus();\n }\n }\n\n &:hover,\n &:focus,\n &.focus {\n color: @btn-default-color;\n text-decoration: none;\n }\n\n &:active,\n &.active {\n outline: 0;\n background-image: none;\n .box-shadow(inset 0 3px 5px rgba(0,0,0,.125));\n }\n\n &.disabled,\n &[disabled],\n fieldset[disabled] & {\n cursor: @cursor-disabled;\n .opacity(.65);\n .box-shadow(none);\n }\n\n a& {\n &.disabled,\n fieldset[disabled] & {\n pointer-events: none; // Future-proof disabling of clicks on `` elements\n }\n }\n}\n\n\n// Alternate buttons\n// --------------------------------------------------\n\n.btn-default {\n .button-variant(@btn-default-color; @btn-default-bg; @btn-default-border);\n}\n.btn-primary {\n .button-variant(@btn-primary-color; @btn-primary-bg; @btn-primary-border);\n}\n// Success appears as green\n.btn-success {\n .button-variant(@btn-success-color; @btn-success-bg; @btn-success-border);\n}\n// Info appears as blue-green\n.btn-info {\n .button-variant(@btn-info-color; @btn-info-bg; @btn-info-border);\n}\n// Warning appears as orange\n.btn-warning {\n .button-variant(@btn-warning-color; @btn-warning-bg; @btn-warning-border);\n}\n// Danger and error appear as red\n.btn-danger {\n .button-variant(@btn-danger-color; @btn-danger-bg; @btn-danger-border);\n}\n\n\n// Link buttons\n// -------------------------\n\n// Make a button look and behave like a link\n.btn-link {\n color: @link-color;\n font-weight: normal;\n border-radius: 0;\n\n &,\n &:active,\n &.active,\n &[disabled],\n fieldset[disabled] & {\n background-color: transparent;\n .box-shadow(none);\n }\n &,\n &:hover,\n &:focus,\n &:active {\n border-color: transparent;\n }\n &:hover,\n &:focus {\n color: @link-hover-color;\n text-decoration: @link-hover-decoration;\n background-color: transparent;\n }\n &[disabled],\n fieldset[disabled] & {\n &:hover,\n &:focus {\n color: @btn-link-disabled-color;\n text-decoration: none;\n }\n }\n}\n\n\n// Button Sizes\n// --------------------------------------------------\n\n.btn-lg {\n // line-height: ensure even-numbered height of button next to large input\n .button-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @btn-border-radius-large);\n}\n.btn-sm {\n // line-height: ensure proper height of button next to small input\n .button-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @btn-border-radius-small);\n}\n.btn-xs {\n .button-size(@padding-xs-vertical; @padding-xs-horizontal; @font-size-small; @line-height-small; @btn-border-radius-small);\n}\n\n\n// Block button\n// --------------------------------------------------\n\n.btn-block {\n display: block;\n width: 100%;\n}\n\n// Vertically space out multiple block buttons\n.btn-block + .btn-block {\n margin-top: 5px;\n}\n\n// Specificity overrides\ninput[type=\"submit\"],\ninput[type=\"reset\"],\ninput[type=\"button\"] {\n &.btn-block {\n width: 100%;\n }\n}\n","// Button variants\n//\n// Easily pump out default styles, as well as :hover, :focus, :active,\n// and disabled options for all buttons\n\n.button-variant(@color; @background; @border) {\n color: @color;\n background-color: @background;\n border-color: @border;\n\n &:focus,\n &.focus {\n color: @color;\n background-color: darken(@background, 10%);\n border-color: darken(@border, 25%);\n }\n &:hover {\n color: @color;\n background-color: darken(@background, 10%);\n border-color: darken(@border, 12%);\n }\n &:active,\n &.active,\n .open > .dropdown-toggle& {\n color: @color;\n background-color: darken(@background, 10%);\n border-color: darken(@border, 12%);\n\n &:hover,\n &:focus,\n &.focus {\n color: @color;\n background-color: darken(@background, 17%);\n border-color: darken(@border, 25%);\n }\n }\n &:active,\n &.active,\n .open > .dropdown-toggle& {\n background-image: none;\n }\n &.disabled,\n &[disabled],\n fieldset[disabled] & {\n &:hover,\n &:focus,\n &.focus {\n background-color: @background;\n border-color: @border;\n }\n }\n\n .badge {\n color: @background;\n background-color: @color;\n }\n}\n\n// Button sizes\n.button-size(@padding-vertical; @padding-horizontal; @font-size; @line-height; @border-radius) {\n padding: @padding-vertical @padding-horizontal;\n font-size: @font-size;\n line-height: @line-height;\n border-radius: @border-radius;\n}\n","// Opacity\n\n.opacity(@opacity) {\n opacity: @opacity;\n // IE8 filter\n @opacity-ie: (@opacity * 100);\n filter: ~\"alpha(opacity=@{opacity-ie})\";\n}\n","//\n// Component animations\n// --------------------------------------------------\n\n// Heads up!\n//\n// We don't use the `.opacity()` mixin here since it causes a bug with text\n// fields in IE7-8. Source: https://github.com/twbs/bootstrap/pull/3552.\n\n.fade {\n opacity: 0;\n .transition(opacity .15s linear);\n &.in {\n opacity: 1;\n }\n}\n\n.collapse {\n display: none;\n\n &.in { display: block; }\n tr&.in { display: table-row; }\n tbody&.in { display: table-row-group; }\n}\n\n.collapsing {\n position: relative;\n height: 0;\n overflow: hidden;\n .transition-property(~\"height, visibility\");\n .transition-duration(.35s);\n .transition-timing-function(ease);\n}\n","//\n// Dropdown menus\n// --------------------------------------------------\n\n\n// Dropdown arrow/caret\n.caret {\n display: inline-block;\n width: 0;\n height: 0;\n margin-left: 2px;\n vertical-align: middle;\n border-top: @caret-width-base dashed;\n border-top: @caret-width-base solid ~\"\\9\"; // IE8\n border-right: @caret-width-base solid transparent;\n border-left: @caret-width-base solid transparent;\n}\n\n// The dropdown wrapper (div)\n.dropup,\n.dropdown {\n position: relative;\n}\n\n// Prevent the focus on the dropdown toggle when closing dropdowns\n.dropdown-toggle:focus {\n outline: 0;\n}\n\n// The dropdown menu (ul)\n.dropdown-menu {\n position: absolute;\n top: 100%;\n left: 0;\n z-index: @zindex-dropdown;\n display: none; // none by default, but block on \"open\" of the menu\n float: left;\n min-width: 160px;\n padding: 5px 0;\n margin: 2px 0 0; // override default ul\n list-style: none;\n font-size: @font-size-base;\n text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer)\n background-color: @dropdown-bg;\n border: 1px solid @dropdown-fallback-border; // IE8 fallback\n border: 1px solid @dropdown-border;\n border-radius: @border-radius-base;\n .box-shadow(0 6px 12px rgba(0,0,0,.175));\n background-clip: padding-box;\n\n // Aligns the dropdown menu to right\n //\n // Deprecated as of 3.1.0 in favor of `.dropdown-menu-[dir]`\n &.pull-right {\n right: 0;\n left: auto;\n }\n\n // Dividers (basically an hr) within the dropdown\n .divider {\n .nav-divider(@dropdown-divider-bg);\n }\n\n // Links within the dropdown menu\n > li > a {\n display: block;\n padding: 3px 20px;\n clear: both;\n font-weight: normal;\n line-height: @line-height-base;\n color: @dropdown-link-color;\n white-space: nowrap; // prevent links from randomly breaking onto new lines\n }\n}\n\n// Hover/Focus state\n.dropdown-menu > li > a {\n &:hover,\n &:focus {\n text-decoration: none;\n color: @dropdown-link-hover-color;\n background-color: @dropdown-link-hover-bg;\n }\n}\n\n// Active state\n.dropdown-menu > .active > a {\n &,\n &:hover,\n &:focus {\n color: @dropdown-link-active-color;\n text-decoration: none;\n outline: 0;\n background-color: @dropdown-link-active-bg;\n }\n}\n\n// Disabled state\n//\n// Gray out text and ensure the hover/focus state remains gray\n\n.dropdown-menu > .disabled > a {\n &,\n &:hover,\n &:focus {\n color: @dropdown-link-disabled-color;\n }\n\n // Nuke hover/focus effects\n &:hover,\n &:focus {\n text-decoration: none;\n background-color: transparent;\n background-image: none; // Remove CSS gradient\n .reset-filter();\n cursor: @cursor-disabled;\n }\n}\n\n// Open state for the dropdown\n.open {\n // Show the menu\n > .dropdown-menu {\n display: block;\n }\n\n // Remove the outline when :focus is triggered\n > a {\n outline: 0;\n }\n}\n\n// Menu positioning\n//\n// Add extra class to `.dropdown-menu` to flip the alignment of the dropdown\n// menu with the parent.\n.dropdown-menu-right {\n left: auto; // Reset the default from `.dropdown-menu`\n right: 0;\n}\n// With v3, we enabled auto-flipping if you have a dropdown within a right\n// aligned nav component. To enable the undoing of that, we provide an override\n// to restore the default dropdown menu alignment.\n//\n// This is only for left-aligning a dropdown menu within a `.navbar-right` or\n// `.pull-right` nav component.\n.dropdown-menu-left {\n left: 0;\n right: auto;\n}\n\n// Dropdown section headers\n.dropdown-header {\n display: block;\n padding: 3px 20px;\n font-size: @font-size-small;\n line-height: @line-height-base;\n color: @dropdown-header-color;\n white-space: nowrap; // as with > li > a\n}\n\n// Backdrop to catch body clicks on mobile, etc.\n.dropdown-backdrop {\n position: fixed;\n left: 0;\n right: 0;\n bottom: 0;\n top: 0;\n z-index: (@zindex-dropdown - 10);\n}\n\n// Right aligned dropdowns\n.pull-right > .dropdown-menu {\n right: 0;\n left: auto;\n}\n\n// Allow for dropdowns to go bottom up (aka, dropup-menu)\n//\n// Just add .dropup after the standard .dropdown class and you're set, bro.\n// TODO: abstract this so that the navbar fixed styles are not placed here?\n\n.dropup,\n.navbar-fixed-bottom .dropdown {\n // Reverse the caret\n .caret {\n border-top: 0;\n border-bottom: @caret-width-base dashed;\n border-bottom: @caret-width-base solid ~\"\\9\"; // IE8\n content: \"\";\n }\n // Different positioning for bottom up menu\n .dropdown-menu {\n top: auto;\n bottom: 100%;\n margin-bottom: 2px;\n }\n}\n\n\n// Component alignment\n//\n// Reiterate per navbar.less and the modified component alignment there.\n\n@media (min-width: @grid-float-breakpoint) {\n .navbar-right {\n .dropdown-menu {\n .dropdown-menu-right();\n }\n // Necessary for overrides of the default right aligned menu.\n // Will remove come v4 in all likelihood.\n .dropdown-menu-left {\n .dropdown-menu-left();\n }\n }\n}\n","// Horizontal dividers\n//\n// Dividers (basically an hr) within dropdowns and nav lists\n\n.nav-divider(@color: #e5e5e5) {\n height: 1px;\n margin: ((@line-height-computed / 2) - 1) 0;\n overflow: hidden;\n background-color: @color;\n}\n","// Reset filters for IE\n//\n// When you need to remove a gradient background, do not forget to use this to reset\n// the IE filter for IE9 and below.\n\n.reset-filter() {\n filter: e(%(\"progid:DXImageTransform.Microsoft.gradient(enabled = false)\"));\n}\n","//\n// Button groups\n// --------------------------------------------------\n\n// Make the div behave like a button\n.btn-group,\n.btn-group-vertical {\n position: relative;\n display: inline-block;\n vertical-align: middle; // match .btn alignment given font-size hack above\n > .btn {\n position: relative;\n float: left;\n // Bring the \"active\" button to the front\n &:hover,\n &:focus,\n &:active,\n &.active {\n z-index: 2;\n }\n }\n}\n\n// Prevent double borders when buttons are next to each other\n.btn-group {\n .btn + .btn,\n .btn + .btn-group,\n .btn-group + .btn,\n .btn-group + .btn-group {\n margin-left: -1px;\n }\n}\n\n// Optional: Group multiple button groups together for a toolbar\n.btn-toolbar {\n margin-left: -5px; // Offset the first child's margin\n &:extend(.clearfix all);\n\n .btn,\n .btn-group,\n .input-group {\n float: left;\n }\n > .btn,\n > .btn-group,\n > .input-group {\n margin-left: 5px;\n }\n}\n\n.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {\n border-radius: 0;\n}\n\n// Set corners individual because sometimes a single button can be in a .btn-group and we need :first-child and :last-child to both match\n.btn-group > .btn:first-child {\n margin-left: 0;\n &:not(:last-child):not(.dropdown-toggle) {\n .border-right-radius(0);\n }\n}\n// Need .dropdown-toggle since :last-child doesn't apply, given that a .dropdown-menu is used immediately after it\n.btn-group > .btn:last-child:not(:first-child),\n.btn-group > .dropdown-toggle:not(:first-child) {\n .border-left-radius(0);\n}\n\n// Custom edits for including btn-groups within btn-groups (useful for including dropdown buttons within a btn-group)\n.btn-group > .btn-group {\n float: left;\n}\n.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {\n border-radius: 0;\n}\n.btn-group > .btn-group:first-child:not(:last-child) {\n > .btn:last-child,\n > .dropdown-toggle {\n .border-right-radius(0);\n }\n}\n.btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child {\n .border-left-radius(0);\n}\n\n// On active and open, don't show outline\n.btn-group .dropdown-toggle:active,\n.btn-group.open .dropdown-toggle {\n outline: 0;\n}\n\n\n// Sizing\n//\n// Remix the default button sizing classes into new ones for easier manipulation.\n\n.btn-group-xs > .btn { &:extend(.btn-xs); }\n.btn-group-sm > .btn { &:extend(.btn-sm); }\n.btn-group-lg > .btn { &:extend(.btn-lg); }\n\n\n// Split button dropdowns\n// ----------------------\n\n// Give the line between buttons some depth\n.btn-group > .btn + .dropdown-toggle {\n padding-left: 8px;\n padding-right: 8px;\n}\n.btn-group > .btn-lg + .dropdown-toggle {\n padding-left: 12px;\n padding-right: 12px;\n}\n\n// The clickable button for toggling the menu\n// Remove the gradient and set the same inset shadow as the :active state\n.btn-group.open .dropdown-toggle {\n .box-shadow(inset 0 3px 5px rgba(0,0,0,.125));\n\n // Show no shadow for `.btn-link` since it has no other button styles.\n &.btn-link {\n .box-shadow(none);\n }\n}\n\n\n// Reposition the caret\n.btn .caret {\n margin-left: 0;\n}\n// Carets in other button sizes\n.btn-lg .caret {\n border-width: @caret-width-large @caret-width-large 0;\n border-bottom-width: 0;\n}\n// Upside down carets for .dropup\n.dropup .btn-lg .caret {\n border-width: 0 @caret-width-large @caret-width-large;\n}\n\n\n// Vertical button groups\n// ----------------------\n\n.btn-group-vertical {\n > .btn,\n > .btn-group,\n > .btn-group > .btn {\n display: block;\n float: none;\n width: 100%;\n max-width: 100%;\n }\n\n // Clear floats so dropdown menus can be properly placed\n > .btn-group {\n &:extend(.clearfix all);\n > .btn {\n float: none;\n }\n }\n\n > .btn + .btn,\n > .btn + .btn-group,\n > .btn-group + .btn,\n > .btn-group + .btn-group {\n margin-top: -1px;\n margin-left: 0;\n }\n}\n\n.btn-group-vertical > .btn {\n &:not(:first-child):not(:last-child) {\n border-radius: 0;\n }\n &:first-child:not(:last-child) {\n .border-top-radius(@btn-border-radius-base);\n .border-bottom-radius(0);\n }\n &:last-child:not(:first-child) {\n .border-top-radius(0);\n .border-bottom-radius(@btn-border-radius-base);\n }\n}\n.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn {\n border-radius: 0;\n}\n.btn-group-vertical > .btn-group:first-child:not(:last-child) {\n > .btn:last-child,\n > .dropdown-toggle {\n .border-bottom-radius(0);\n }\n}\n.btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child {\n .border-top-radius(0);\n}\n\n\n// Justified button groups\n// ----------------------\n\n.btn-group-justified {\n display: table;\n width: 100%;\n table-layout: fixed;\n border-collapse: separate;\n > .btn,\n > .btn-group {\n float: none;\n display: table-cell;\n width: 1%;\n }\n > .btn-group .btn {\n width: 100%;\n }\n\n > .btn-group .dropdown-menu {\n left: auto;\n }\n}\n\n\n// Checkbox and radio options\n//\n// In order to support the browser's form validation feedback, powered by the\n// `required` attribute, we have to \"hide\" the inputs via `clip`. We cannot use\n// `display: none;` or `visibility: hidden;` as that also hides the popover.\n// Simply visually hiding the inputs via `opacity` would leave them clickable in\n// certain cases which is prevented by using `clip` and `pointer-events`.\n// This way, we ensure a DOM element is visible to position the popover from.\n//\n// See https://github.com/twbs/bootstrap/pull/12794 and\n// https://github.com/twbs/bootstrap/pull/14559 for more information.\n\n[data-toggle=\"buttons\"] {\n > .btn,\n > .btn-group > .btn {\n input[type=\"radio\"],\n input[type=\"checkbox\"] {\n position: absolute;\n clip: rect(0,0,0,0);\n pointer-events: none;\n }\n }\n}\n","// Single side border-radius\n\n.border-top-radius(@radius) {\n border-top-right-radius: @radius;\n border-top-left-radius: @radius;\n}\n.border-right-radius(@radius) {\n border-bottom-right-radius: @radius;\n border-top-right-radius: @radius;\n}\n.border-bottom-radius(@radius) {\n border-bottom-right-radius: @radius;\n border-bottom-left-radius: @radius;\n}\n.border-left-radius(@radius) {\n border-bottom-left-radius: @radius;\n border-top-left-radius: @radius;\n}\n","//\n// Input groups\n// --------------------------------------------------\n\n// Base styles\n// -------------------------\n.input-group {\n position: relative; // For dropdowns\n display: table;\n border-collapse: separate; // prevent input groups from inheriting border styles from table cells when placed within a table\n\n // Undo padding and float of grid classes\n &[class*=\"col-\"] {\n float: none;\n padding-left: 0;\n padding-right: 0;\n }\n\n .form-control {\n // Ensure that the input is always above the *appended* addon button for\n // proper border colors.\n position: relative;\n z-index: 2;\n\n // IE9 fubars the placeholder attribute in text inputs and the arrows on\n // select elements in input groups. To fix it, we float the input. Details:\n // https://github.com/twbs/bootstrap/issues/11561#issuecomment-28936855\n float: left;\n\n width: 100%;\n margin-bottom: 0;\n\n &:focus {\n z-index: 3;\n }\n }\n}\n\n// Sizing options\n//\n// Remix the default form control sizing classes into new ones for easier\n// manipulation.\n\n.input-group-lg > .form-control,\n.input-group-lg > .input-group-addon,\n.input-group-lg > .input-group-btn > .btn {\n .input-lg();\n}\n.input-group-sm > .form-control,\n.input-group-sm > .input-group-addon,\n.input-group-sm > .input-group-btn > .btn {\n .input-sm();\n}\n\n\n// Display as table-cell\n// -------------------------\n.input-group-addon,\n.input-group-btn,\n.input-group .form-control {\n display: table-cell;\n\n &:not(:first-child):not(:last-child) {\n border-radius: 0;\n }\n}\n// Addon and addon wrapper for buttons\n.input-group-addon,\n.input-group-btn {\n width: 1%;\n white-space: nowrap;\n vertical-align: middle; // Match the inputs\n}\n\n// Text input groups\n// -------------------------\n.input-group-addon {\n padding: @padding-base-vertical @padding-base-horizontal;\n font-size: @font-size-base;\n font-weight: normal;\n line-height: 1;\n color: @input-color;\n text-align: center;\n background-color: @input-group-addon-bg;\n border: 1px solid @input-group-addon-border-color;\n border-radius: @input-border-radius;\n\n // Sizing\n &.input-sm {\n padding: @padding-small-vertical @padding-small-horizontal;\n font-size: @font-size-small;\n border-radius: @input-border-radius-small;\n }\n &.input-lg {\n padding: @padding-large-vertical @padding-large-horizontal;\n font-size: @font-size-large;\n border-radius: @input-border-radius-large;\n }\n\n // Nuke default margins from checkboxes and radios to vertically center within.\n input[type=\"radio\"],\n input[type=\"checkbox\"] {\n margin-top: 0;\n }\n}\n\n// Reset rounded corners\n.input-group .form-control:first-child,\n.input-group-addon:first-child,\n.input-group-btn:first-child > .btn,\n.input-group-btn:first-child > .btn-group > .btn,\n.input-group-btn:first-child > .dropdown-toggle,\n.input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle),\n.input-group-btn:last-child > .btn-group:not(:last-child) > .btn {\n .border-right-radius(0);\n}\n.input-group-addon:first-child {\n border-right: 0;\n}\n.input-group .form-control:last-child,\n.input-group-addon:last-child,\n.input-group-btn:last-child > .btn,\n.input-group-btn:last-child > .btn-group > .btn,\n.input-group-btn:last-child > .dropdown-toggle,\n.input-group-btn:first-child > .btn:not(:first-child),\n.input-group-btn:first-child > .btn-group:not(:first-child) > .btn {\n .border-left-radius(0);\n}\n.input-group-addon:last-child {\n border-left: 0;\n}\n\n// Button input groups\n// -------------------------\n.input-group-btn {\n position: relative;\n // Jankily prevent input button groups from wrapping with `white-space` and\n // `font-size` in combination with `inline-block` on buttons.\n font-size: 0;\n white-space: nowrap;\n\n // Negative margin for spacing, position for bringing hovered/focused/actived\n // element above the siblings.\n > .btn {\n position: relative;\n + .btn {\n margin-left: -1px;\n }\n // Bring the \"active\" button to the front\n &:hover,\n &:focus,\n &:active {\n z-index: 2;\n }\n }\n\n // Negative margin to only have a 1px border between the two\n &:first-child {\n > .btn,\n > .btn-group {\n margin-right: -1px;\n }\n }\n &:last-child {\n > .btn,\n > .btn-group {\n z-index: 2;\n margin-left: -1px;\n }\n }\n}\n","//\n// Navs\n// --------------------------------------------------\n\n\n// Base class\n// --------------------------------------------------\n\n.nav {\n margin-bottom: 0;\n padding-left: 0; // Override default ul/ol\n list-style: none;\n &:extend(.clearfix all);\n\n > li {\n position: relative;\n display: block;\n\n > a {\n position: relative;\n display: block;\n padding: @nav-link-padding;\n &:hover,\n &:focus {\n text-decoration: none;\n background-color: @nav-link-hover-bg;\n }\n }\n\n // Disabled state sets text to gray and nukes hover/tab effects\n &.disabled > a {\n color: @nav-disabled-link-color;\n\n &:hover,\n &:focus {\n color: @nav-disabled-link-hover-color;\n text-decoration: none;\n background-color: transparent;\n cursor: @cursor-disabled;\n }\n }\n }\n\n // Open dropdowns\n .open > a {\n &,\n &:hover,\n &:focus {\n background-color: @nav-link-hover-bg;\n border-color: @link-color;\n }\n }\n\n // Nav dividers (deprecated with v3.0.1)\n //\n // This should have been removed in v3 with the dropping of `.nav-list`, but\n // we missed it. We don't currently support this anywhere, but in the interest\n // of maintaining backward compatibility in case you use it, it's deprecated.\n .nav-divider {\n .nav-divider();\n }\n\n // Prevent IE8 from misplacing imgs\n //\n // See https://github.com/h5bp/html5-boilerplate/issues/984#issuecomment-3985989\n > li > a > img {\n max-width: none;\n }\n}\n\n\n// Tabs\n// -------------------------\n\n// Give the tabs something to sit on\n.nav-tabs {\n border-bottom: 1px solid @nav-tabs-border-color;\n > li {\n float: left;\n // Make the list-items overlay the bottom border\n margin-bottom: -1px;\n\n // Actual tabs (as links)\n > a {\n margin-right: 2px;\n line-height: @line-height-base;\n border: 1px solid transparent;\n border-radius: @border-radius-base @border-radius-base 0 0;\n &:hover {\n border-color: @nav-tabs-link-hover-border-color @nav-tabs-link-hover-border-color @nav-tabs-border-color;\n }\n }\n\n // Active state, and its :hover to override normal :hover\n &.active > a {\n &,\n &:hover,\n &:focus {\n color: @nav-tabs-active-link-hover-color;\n background-color: @nav-tabs-active-link-hover-bg;\n border: 1px solid @nav-tabs-active-link-hover-border-color;\n border-bottom-color: transparent;\n cursor: default;\n }\n }\n }\n // pulling this in mainly for less shorthand\n &.nav-justified {\n .nav-justified();\n .nav-tabs-justified();\n }\n}\n\n\n// Pills\n// -------------------------\n.nav-pills {\n > li {\n float: left;\n\n // Links rendered as pills\n > a {\n border-radius: @nav-pills-border-radius;\n }\n + li {\n margin-left: 2px;\n }\n\n // Active state\n &.active > a {\n &,\n &:hover,\n &:focus {\n color: @nav-pills-active-link-hover-color;\n background-color: @nav-pills-active-link-hover-bg;\n }\n }\n }\n}\n\n\n// Stacked pills\n.nav-stacked {\n > li {\n float: none;\n + li {\n margin-top: 2px;\n margin-left: 0; // no need for this gap between nav items\n }\n }\n}\n\n\n// Nav variations\n// --------------------------------------------------\n\n// Justified nav links\n// -------------------------\n\n.nav-justified {\n width: 100%;\n\n > li {\n float: none;\n > a {\n text-align: center;\n margin-bottom: 5px;\n }\n }\n\n > .dropdown .dropdown-menu {\n top: auto;\n left: auto;\n }\n\n @media (min-width: @screen-sm-min) {\n > li {\n display: table-cell;\n width: 1%;\n > a {\n margin-bottom: 0;\n }\n }\n }\n}\n\n// Move borders to anchors instead of bottom of list\n//\n// Mixin for adding on top the shared `.nav-justified` styles for our tabs\n.nav-tabs-justified {\n border-bottom: 0;\n\n > li > a {\n // Override margin from .nav-tabs\n margin-right: 0;\n border-radius: @border-radius-base;\n }\n\n > .active > a,\n > .active > a:hover,\n > .active > a:focus {\n border: 1px solid @nav-tabs-justified-link-border-color;\n }\n\n @media (min-width: @screen-sm-min) {\n > li > a {\n border-bottom: 1px solid @nav-tabs-justified-link-border-color;\n border-radius: @border-radius-base @border-radius-base 0 0;\n }\n > .active > a,\n > .active > a:hover,\n > .active > a:focus {\n border-bottom-color: @nav-tabs-justified-active-link-border-color;\n }\n }\n}\n\n\n// Tabbable tabs\n// -------------------------\n\n// Hide tabbable panes to start, show them when `.active`\n.tab-content {\n > .tab-pane {\n display: none;\n }\n > .active {\n display: block;\n }\n}\n\n\n// Dropdowns\n// -------------------------\n\n// Specific dropdowns\n.nav-tabs .dropdown-menu {\n // make dropdown border overlap tab border\n margin-top: -1px;\n // Remove the top rounded corners here since there is a hard edge above the menu\n .border-top-radius(0);\n}\n","//\n// Navbars\n// --------------------------------------------------\n\n\n// Wrapper and base class\n//\n// Provide a static navbar from which we expand to create full-width, fixed, and\n// other navbar variations.\n\n.navbar {\n position: relative;\n min-height: @navbar-height; // Ensure a navbar always shows (e.g., without a .navbar-brand in collapsed mode)\n margin-bottom: @navbar-margin-bottom;\n border: 1px solid transparent;\n\n // Prevent floats from breaking the navbar\n &:extend(.clearfix all);\n\n @media (min-width: @grid-float-breakpoint) {\n border-radius: @navbar-border-radius;\n }\n}\n\n\n// Navbar heading\n//\n// Groups `.navbar-brand` and `.navbar-toggle` into a single component for easy\n// styling of responsive aspects.\n\n.navbar-header {\n &:extend(.clearfix all);\n\n @media (min-width: @grid-float-breakpoint) {\n float: left;\n }\n}\n\n\n// Navbar collapse (body)\n//\n// Group your navbar content into this for easy collapsing and expanding across\n// various device sizes. By default, this content is collapsed when <768px, but\n// will expand past that for a horizontal display.\n//\n// To start (on mobile devices) the navbar links, forms, and buttons are stacked\n// vertically and include a `max-height` to overflow in case you have too much\n// content for the user's viewport.\n\n.navbar-collapse {\n overflow-x: visible;\n padding-right: @navbar-padding-horizontal;\n padding-left: @navbar-padding-horizontal;\n border-top: 1px solid transparent;\n box-shadow: inset 0 1px 0 rgba(255,255,255,.1);\n &:extend(.clearfix all);\n -webkit-overflow-scrolling: touch;\n\n &.in {\n overflow-y: auto;\n }\n\n @media (min-width: @grid-float-breakpoint) {\n width: auto;\n border-top: 0;\n box-shadow: none;\n\n &.collapse {\n display: block !important;\n height: auto !important;\n padding-bottom: 0; // Override default setting\n overflow: visible !important;\n }\n\n &.in {\n overflow-y: visible;\n }\n\n // Undo the collapse side padding for navbars with containers to ensure\n // alignment of right-aligned contents.\n .navbar-fixed-top &,\n .navbar-static-top &,\n .navbar-fixed-bottom & {\n padding-left: 0;\n padding-right: 0;\n }\n }\n}\n\n.navbar-fixed-top,\n.navbar-fixed-bottom {\n .navbar-collapse {\n max-height: @navbar-collapse-max-height;\n\n @media (max-device-width: @screen-xs-min) and (orientation: landscape) {\n max-height: 200px;\n }\n }\n}\n\n\n// Both navbar header and collapse\n//\n// When a container is present, change the behavior of the header and collapse.\n\n.container,\n.container-fluid {\n > .navbar-header,\n > .navbar-collapse {\n margin-right: -@navbar-padding-horizontal;\n margin-left: -@navbar-padding-horizontal;\n\n @media (min-width: @grid-float-breakpoint) {\n margin-right: 0;\n margin-left: 0;\n }\n }\n}\n\n\n//\n// Navbar alignment options\n//\n// Display the navbar across the entirety of the page or fixed it to the top or\n// bottom of the page.\n\n// Static top (unfixed, but 100% wide) navbar\n.navbar-static-top {\n z-index: @zindex-navbar;\n border-width: 0 0 1px;\n\n @media (min-width: @grid-float-breakpoint) {\n border-radius: 0;\n }\n}\n\n// Fix the top/bottom navbars when screen real estate supports it\n.navbar-fixed-top,\n.navbar-fixed-bottom {\n position: fixed;\n right: 0;\n left: 0;\n z-index: @zindex-navbar-fixed;\n\n // Undo the rounded corners\n @media (min-width: @grid-float-breakpoint) {\n border-radius: 0;\n }\n}\n.navbar-fixed-top {\n top: 0;\n border-width: 0 0 1px;\n}\n.navbar-fixed-bottom {\n bottom: 0;\n margin-bottom: 0; // override .navbar defaults\n border-width: 1px 0 0;\n}\n\n\n// Brand/project name\n\n.navbar-brand {\n float: left;\n padding: @navbar-padding-vertical @navbar-padding-horizontal;\n font-size: @font-size-large;\n line-height: @line-height-computed;\n height: @navbar-height;\n\n &:hover,\n &:focus {\n text-decoration: none;\n }\n\n > img {\n display: block;\n }\n\n @media (min-width: @grid-float-breakpoint) {\n .navbar > .container &,\n .navbar > .container-fluid & {\n margin-left: -@navbar-padding-horizontal;\n }\n }\n}\n\n\n// Navbar toggle\n//\n// Custom button for toggling the `.navbar-collapse`, powered by the collapse\n// JavaScript plugin.\n\n.navbar-toggle {\n position: relative;\n float: right;\n margin-right: @navbar-padding-horizontal;\n padding: 9px 10px;\n .navbar-vertical-align(34px);\n background-color: transparent;\n background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214\n border: 1px solid transparent;\n border-radius: @border-radius-base;\n\n // We remove the `outline` here, but later compensate by attaching `:hover`\n // styles to `:focus`.\n &:focus {\n outline: 0;\n }\n\n // Bars\n .icon-bar {\n display: block;\n width: 22px;\n height: 2px;\n border-radius: 1px;\n }\n .icon-bar + .icon-bar {\n margin-top: 4px;\n }\n\n @media (min-width: @grid-float-breakpoint) {\n display: none;\n }\n}\n\n\n// Navbar nav links\n//\n// Builds on top of the `.nav` components with its own modifier class to make\n// the nav the full height of the horizontal nav (above 768px).\n\n.navbar-nav {\n margin: (@navbar-padding-vertical / 2) -@navbar-padding-horizontal;\n\n > li > a {\n padding-top: 10px;\n padding-bottom: 10px;\n line-height: @line-height-computed;\n }\n\n @media (max-width: @grid-float-breakpoint-max) {\n // Dropdowns get custom display when collapsed\n .open .dropdown-menu {\n position: static;\n float: none;\n width: auto;\n margin-top: 0;\n background-color: transparent;\n border: 0;\n box-shadow: none;\n > li > a,\n .dropdown-header {\n padding: 5px 15px 5px 25px;\n }\n > li > a {\n line-height: @line-height-computed;\n &:hover,\n &:focus {\n background-image: none;\n }\n }\n }\n }\n\n // Uncollapse the nav\n @media (min-width: @grid-float-breakpoint) {\n float: left;\n margin: 0;\n\n > li {\n float: left;\n > a {\n padding-top: @navbar-padding-vertical;\n padding-bottom: @navbar-padding-vertical;\n }\n }\n }\n}\n\n\n// Navbar form\n//\n// Extension of the `.form-inline` with some extra flavor for optimum display in\n// our navbars.\n\n.navbar-form {\n margin-left: -@navbar-padding-horizontal;\n margin-right: -@navbar-padding-horizontal;\n padding: 10px @navbar-padding-horizontal;\n border-top: 1px solid transparent;\n border-bottom: 1px solid transparent;\n @shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.1);\n .box-shadow(@shadow);\n\n // Mixin behavior for optimum display\n .form-inline();\n\n .form-group {\n @media (max-width: @grid-float-breakpoint-max) {\n margin-bottom: 5px;\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n }\n\n // Vertically center in expanded, horizontal navbar\n .navbar-vertical-align(@input-height-base);\n\n // Undo 100% width for pull classes\n @media (min-width: @grid-float-breakpoint) {\n width: auto;\n border: 0;\n margin-left: 0;\n margin-right: 0;\n padding-top: 0;\n padding-bottom: 0;\n .box-shadow(none);\n }\n}\n\n\n// Dropdown menus\n\n// Menu position and menu carets\n.navbar-nav > li > .dropdown-menu {\n margin-top: 0;\n .border-top-radius(0);\n}\n// Menu position and menu caret support for dropups via extra dropup class\n.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu {\n margin-bottom: 0;\n .border-top-radius(@navbar-border-radius);\n .border-bottom-radius(0);\n}\n\n\n// Buttons in navbars\n//\n// Vertically center a button within a navbar (when *not* in a form).\n\n.navbar-btn {\n .navbar-vertical-align(@input-height-base);\n\n &.btn-sm {\n .navbar-vertical-align(@input-height-small);\n }\n &.btn-xs {\n .navbar-vertical-align(22);\n }\n}\n\n\n// Text in navbars\n//\n// Add a class to make any element properly align itself vertically within the navbars.\n\n.navbar-text {\n .navbar-vertical-align(@line-height-computed);\n\n @media (min-width: @grid-float-breakpoint) {\n float: left;\n margin-left: @navbar-padding-horizontal;\n margin-right: @navbar-padding-horizontal;\n }\n}\n\n\n// Component alignment\n//\n// Repurpose the pull utilities as their own navbar utilities to avoid specificity\n// issues with parents and chaining. Only do this when the navbar is uncollapsed\n// though so that navbar contents properly stack and align in mobile.\n//\n// Declared after the navbar components to ensure more specificity on the margins.\n\n@media (min-width: @grid-float-breakpoint) {\n .navbar-left { .pull-left(); }\n .navbar-right {\n .pull-right();\n margin-right: -@navbar-padding-horizontal;\n\n ~ .navbar-right {\n margin-right: 0;\n }\n }\n}\n\n\n// Alternate navbars\n// --------------------------------------------------\n\n// Default navbar\n.navbar-default {\n background-color: @navbar-default-bg;\n border-color: @navbar-default-border;\n\n .navbar-brand {\n color: @navbar-default-brand-color;\n &:hover,\n &:focus {\n color: @navbar-default-brand-hover-color;\n background-color: @navbar-default-brand-hover-bg;\n }\n }\n\n .navbar-text {\n color: @navbar-default-color;\n }\n\n .navbar-nav {\n > li > a {\n color: @navbar-default-link-color;\n\n &:hover,\n &:focus {\n color: @navbar-default-link-hover-color;\n background-color: @navbar-default-link-hover-bg;\n }\n }\n > .active > a {\n &,\n &:hover,\n &:focus {\n color: @navbar-default-link-active-color;\n background-color: @navbar-default-link-active-bg;\n }\n }\n > .disabled > a {\n &,\n &:hover,\n &:focus {\n color: @navbar-default-link-disabled-color;\n background-color: @navbar-default-link-disabled-bg;\n }\n }\n }\n\n .navbar-toggle {\n border-color: @navbar-default-toggle-border-color;\n &:hover,\n &:focus {\n background-color: @navbar-default-toggle-hover-bg;\n }\n .icon-bar {\n background-color: @navbar-default-toggle-icon-bar-bg;\n }\n }\n\n .navbar-collapse,\n .navbar-form {\n border-color: @navbar-default-border;\n }\n\n // Dropdown menu items\n .navbar-nav {\n // Remove background color from open dropdown\n > .open > a {\n &,\n &:hover,\n &:focus {\n background-color: @navbar-default-link-active-bg;\n color: @navbar-default-link-active-color;\n }\n }\n\n @media (max-width: @grid-float-breakpoint-max) {\n // Dropdowns get custom display when collapsed\n .open .dropdown-menu {\n > li > a {\n color: @navbar-default-link-color;\n &:hover,\n &:focus {\n color: @navbar-default-link-hover-color;\n background-color: @navbar-default-link-hover-bg;\n }\n }\n > .active > a {\n &,\n &:hover,\n &:focus {\n color: @navbar-default-link-active-color;\n background-color: @navbar-default-link-active-bg;\n }\n }\n > .disabled > a {\n &,\n &:hover,\n &:focus {\n color: @navbar-default-link-disabled-color;\n background-color: @navbar-default-link-disabled-bg;\n }\n }\n }\n }\n }\n\n\n // Links in navbars\n //\n // Add a class to ensure links outside the navbar nav are colored correctly.\n\n .navbar-link {\n color: @navbar-default-link-color;\n &:hover {\n color: @navbar-default-link-hover-color;\n }\n }\n\n .btn-link {\n color: @navbar-default-link-color;\n &:hover,\n &:focus {\n color: @navbar-default-link-hover-color;\n }\n &[disabled],\n fieldset[disabled] & {\n &:hover,\n &:focus {\n color: @navbar-default-link-disabled-color;\n }\n }\n }\n}\n\n// Inverse navbar\n\n.navbar-inverse {\n background-color: @navbar-inverse-bg;\n border-color: @navbar-inverse-border;\n\n .navbar-brand {\n color: @navbar-inverse-brand-color;\n &:hover,\n &:focus {\n color: @navbar-inverse-brand-hover-color;\n background-color: @navbar-inverse-brand-hover-bg;\n }\n }\n\n .navbar-text {\n color: @navbar-inverse-color;\n }\n\n .navbar-nav {\n > li > a {\n color: @navbar-inverse-link-color;\n\n &:hover,\n &:focus {\n color: @navbar-inverse-link-hover-color;\n background-color: @navbar-inverse-link-hover-bg;\n }\n }\n > .active > a {\n &,\n &:hover,\n &:focus {\n color: @navbar-inverse-link-active-color;\n background-color: @navbar-inverse-link-active-bg;\n }\n }\n > .disabled > a {\n &,\n &:hover,\n &:focus {\n color: @navbar-inverse-link-disabled-color;\n background-color: @navbar-inverse-link-disabled-bg;\n }\n }\n }\n\n // Darken the responsive nav toggle\n .navbar-toggle {\n border-color: @navbar-inverse-toggle-border-color;\n &:hover,\n &:focus {\n background-color: @navbar-inverse-toggle-hover-bg;\n }\n .icon-bar {\n background-color: @navbar-inverse-toggle-icon-bar-bg;\n }\n }\n\n .navbar-collapse,\n .navbar-form {\n border-color: darken(@navbar-inverse-bg, 7%);\n }\n\n // Dropdowns\n .navbar-nav {\n > .open > a {\n &,\n &:hover,\n &:focus {\n background-color: @navbar-inverse-link-active-bg;\n color: @navbar-inverse-link-active-color;\n }\n }\n\n @media (max-width: @grid-float-breakpoint-max) {\n // Dropdowns get custom display\n .open .dropdown-menu {\n > .dropdown-header {\n border-color: @navbar-inverse-border;\n }\n .divider {\n background-color: @navbar-inverse-border;\n }\n > li > a {\n color: @navbar-inverse-link-color;\n &:hover,\n &:focus {\n color: @navbar-inverse-link-hover-color;\n background-color: @navbar-inverse-link-hover-bg;\n }\n }\n > .active > a {\n &,\n &:hover,\n &:focus {\n color: @navbar-inverse-link-active-color;\n background-color: @navbar-inverse-link-active-bg;\n }\n }\n > .disabled > a {\n &,\n &:hover,\n &:focus {\n color: @navbar-inverse-link-disabled-color;\n background-color: @navbar-inverse-link-disabled-bg;\n }\n }\n }\n }\n }\n\n .navbar-link {\n color: @navbar-inverse-link-color;\n &:hover {\n color: @navbar-inverse-link-hover-color;\n }\n }\n\n .btn-link {\n color: @navbar-inverse-link-color;\n &:hover,\n &:focus {\n color: @navbar-inverse-link-hover-color;\n }\n &[disabled],\n fieldset[disabled] & {\n &:hover,\n &:focus {\n color: @navbar-inverse-link-disabled-color;\n }\n }\n }\n}\n","// Navbar vertical align\n//\n// Vertically center elements in the navbar.\n// Example: an element has a height of 30px, so write out `.navbar-vertical-align(30px);` to calculate the appropriate top margin.\n\n.navbar-vertical-align(@element-height) {\n margin-top: ((@navbar-height - @element-height) / 2);\n margin-bottom: ((@navbar-height - @element-height) / 2);\n}\n","//\n// Utility classes\n// --------------------------------------------------\n\n\n// Floats\n// -------------------------\n\n.clearfix {\n .clearfix();\n}\n.center-block {\n .center-block();\n}\n.pull-right {\n float: right !important;\n}\n.pull-left {\n float: left !important;\n}\n\n\n// Toggling content\n// -------------------------\n\n// Note: Deprecated .hide in favor of .hidden or .sr-only (as appropriate) in v3.0.1\n.hide {\n display: none !important;\n}\n.show {\n display: block !important;\n}\n.invisible {\n visibility: hidden;\n}\n.text-hide {\n .text-hide();\n}\n\n\n// Hide from screenreaders and browsers\n//\n// Credit: HTML5 Boilerplate\n\n.hidden {\n display: none !important;\n}\n\n\n// For Affix plugin\n// -------------------------\n\n.affix {\n position: fixed;\n}\n","//\n// Breadcrumbs\n// --------------------------------------------------\n\n\n.breadcrumb {\n padding: @breadcrumb-padding-vertical @breadcrumb-padding-horizontal;\n margin-bottom: @line-height-computed;\n list-style: none;\n background-color: @breadcrumb-bg;\n border-radius: @border-radius-base;\n\n > li {\n display: inline-block;\n\n + li:before {\n content: \"@{breadcrumb-separator}\\00a0\"; // Unicode space added since inline-block means non-collapsing white-space\n padding: 0 5px;\n color: @breadcrumb-color;\n }\n }\n\n > .active {\n color: @breadcrumb-active-color;\n }\n}\n","//\n// Pagination (multiple pages)\n// --------------------------------------------------\n.pagination {\n display: inline-block;\n padding-left: 0;\n margin: @line-height-computed 0;\n border-radius: @border-radius-base;\n\n > li {\n display: inline; // Remove list-style and block-level defaults\n > a,\n > span {\n position: relative;\n float: left; // Collapse white-space\n padding: @padding-base-vertical @padding-base-horizontal;\n line-height: @line-height-base;\n text-decoration: none;\n color: @pagination-color;\n background-color: @pagination-bg;\n border: 1px solid @pagination-border;\n margin-left: -1px;\n }\n &:first-child {\n > a,\n > span {\n margin-left: 0;\n .border-left-radius(@border-radius-base);\n }\n }\n &:last-child {\n > a,\n > span {\n .border-right-radius(@border-radius-base);\n }\n }\n }\n\n > li > a,\n > li > span {\n &:hover,\n &:focus {\n z-index: 2;\n color: @pagination-hover-color;\n background-color: @pagination-hover-bg;\n border-color: @pagination-hover-border;\n }\n }\n\n > .active > a,\n > .active > span {\n &,\n &:hover,\n &:focus {\n z-index: 3;\n color: @pagination-active-color;\n background-color: @pagination-active-bg;\n border-color: @pagination-active-border;\n cursor: default;\n }\n }\n\n > .disabled {\n > span,\n > span:hover,\n > span:focus,\n > a,\n > a:hover,\n > a:focus {\n color: @pagination-disabled-color;\n background-color: @pagination-disabled-bg;\n border-color: @pagination-disabled-border;\n cursor: @cursor-disabled;\n }\n }\n}\n\n// Sizing\n// --------------------------------------------------\n\n// Large\n.pagination-lg {\n .pagination-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @border-radius-large);\n}\n\n// Small\n.pagination-sm {\n .pagination-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @border-radius-small);\n}\n","// Pagination\n\n.pagination-size(@padding-vertical; @padding-horizontal; @font-size; @line-height; @border-radius) {\n > li {\n > a,\n > span {\n padding: @padding-vertical @padding-horizontal;\n font-size: @font-size;\n line-height: @line-height;\n }\n &:first-child {\n > a,\n > span {\n .border-left-radius(@border-radius);\n }\n }\n &:last-child {\n > a,\n > span {\n .border-right-radius(@border-radius);\n }\n }\n }\n}\n","//\n// Pager pagination\n// --------------------------------------------------\n\n\n.pager {\n padding-left: 0;\n margin: @line-height-computed 0;\n list-style: none;\n text-align: center;\n &:extend(.clearfix all);\n li {\n display: inline;\n > a,\n > span {\n display: inline-block;\n padding: 5px 14px;\n background-color: @pager-bg;\n border: 1px solid @pager-border;\n border-radius: @pager-border-radius;\n }\n\n > a:hover,\n > a:focus {\n text-decoration: none;\n background-color: @pager-hover-bg;\n }\n }\n\n .next {\n > a,\n > span {\n float: right;\n }\n }\n\n .previous {\n > a,\n > span {\n float: left;\n }\n }\n\n .disabled {\n > a,\n > a:hover,\n > a:focus,\n > span {\n color: @pager-disabled-color;\n background-color: @pager-bg;\n cursor: @cursor-disabled;\n }\n }\n}\n","//\n// Labels\n// --------------------------------------------------\n\n.label {\n display: inline;\n padding: .2em .6em .3em;\n font-size: 75%;\n font-weight: bold;\n line-height: 1;\n color: @label-color;\n text-align: center;\n white-space: nowrap;\n vertical-align: baseline;\n border-radius: .25em;\n\n // Add hover effects, but only for links\n a& {\n &:hover,\n &:focus {\n color: @label-link-hover-color;\n text-decoration: none;\n cursor: pointer;\n }\n }\n\n // Empty labels collapse automatically (not available in IE8)\n &:empty {\n display: none;\n }\n\n // Quick fix for labels in buttons\n .btn & {\n position: relative;\n top: -1px;\n }\n}\n\n// Colors\n// Contextual variations (linked labels get darker on :hover)\n\n.label-default {\n .label-variant(@label-default-bg);\n}\n\n.label-primary {\n .label-variant(@label-primary-bg);\n}\n\n.label-success {\n .label-variant(@label-success-bg);\n}\n\n.label-info {\n .label-variant(@label-info-bg);\n}\n\n.label-warning {\n .label-variant(@label-warning-bg);\n}\n\n.label-danger {\n .label-variant(@label-danger-bg);\n}\n","// Labels\n\n.label-variant(@color) {\n background-color: @color;\n\n &[href] {\n &:hover,\n &:focus {\n background-color: darken(@color, 10%);\n }\n }\n}\n","//\n// Badges\n// --------------------------------------------------\n\n\n// Base class\n.badge {\n display: inline-block;\n min-width: 10px;\n padding: 3px 7px;\n font-size: @font-size-small;\n font-weight: @badge-font-weight;\n color: @badge-color;\n line-height: @badge-line-height;\n vertical-align: middle;\n white-space: nowrap;\n text-align: center;\n background-color: @badge-bg;\n border-radius: @badge-border-radius;\n\n // Empty badges collapse automatically (not available in IE8)\n &:empty {\n display: none;\n }\n\n // Quick fix for badges in buttons\n .btn & {\n position: relative;\n top: -1px;\n }\n\n .btn-xs &,\n .btn-group-xs > .btn & {\n top: 0;\n padding: 1px 5px;\n }\n\n // Hover state, but only for links\n a& {\n &:hover,\n &:focus {\n color: @badge-link-hover-color;\n text-decoration: none;\n cursor: pointer;\n }\n }\n\n // Account for badges in navs\n .list-group-item.active > &,\n .nav-pills > .active > a > & {\n color: @badge-active-color;\n background-color: @badge-active-bg;\n }\n\n .list-group-item > & {\n float: right;\n }\n\n .list-group-item > & + & {\n margin-right: 5px;\n }\n\n .nav-pills > li > a > & {\n margin-left: 3px;\n }\n}\n","//\n// Jumbotron\n// --------------------------------------------------\n\n\n.jumbotron {\n padding-top: @jumbotron-padding;\n padding-bottom: @jumbotron-padding;\n margin-bottom: @jumbotron-padding;\n color: @jumbotron-color;\n background-color: @jumbotron-bg;\n\n h1,\n .h1 {\n color: @jumbotron-heading-color;\n }\n\n p {\n margin-bottom: (@jumbotron-padding / 2);\n font-size: @jumbotron-font-size;\n font-weight: 200;\n }\n\n > hr {\n border-top-color: darken(@jumbotron-bg, 10%);\n }\n\n .container &,\n .container-fluid & {\n border-radius: @border-radius-large; // Only round corners at higher resolutions if contained in a container\n padding-left: (@grid-gutter-width / 2);\n padding-right: (@grid-gutter-width / 2);\n }\n\n .container {\n max-width: 100%;\n }\n\n @media screen and (min-width: @screen-sm-min) {\n padding-top: (@jumbotron-padding * 1.6);\n padding-bottom: (@jumbotron-padding * 1.6);\n\n .container &,\n .container-fluid & {\n padding-left: (@jumbotron-padding * 2);\n padding-right: (@jumbotron-padding * 2);\n }\n\n h1,\n .h1 {\n font-size: @jumbotron-heading-font-size;\n }\n }\n}\n","//\n// Thumbnails\n// --------------------------------------------------\n\n\n// Mixin and adjust the regular image class\n.thumbnail {\n display: block;\n padding: @thumbnail-padding;\n margin-bottom: @line-height-computed;\n line-height: @line-height-base;\n background-color: @thumbnail-bg;\n border: 1px solid @thumbnail-border;\n border-radius: @thumbnail-border-radius;\n .transition(border .2s ease-in-out);\n\n > img,\n a > img {\n &:extend(.img-responsive);\n margin-left: auto;\n margin-right: auto;\n }\n\n // Add a hover state for linked versions only\n a&:hover,\n a&:focus,\n a&.active {\n border-color: @link-color;\n }\n\n // Image captions\n .caption {\n padding: @thumbnail-caption-padding;\n color: @thumbnail-caption-color;\n }\n}\n","//\n// Alerts\n// --------------------------------------------------\n\n\n// Base styles\n// -------------------------\n\n.alert {\n padding: @alert-padding;\n margin-bottom: @line-height-computed;\n border: 1px solid transparent;\n border-radius: @alert-border-radius;\n\n // Headings for larger alerts\n h4 {\n margin-top: 0;\n // Specified for the h4 to prevent conflicts of changing @headings-color\n color: inherit;\n }\n\n // Provide class for links that match alerts\n .alert-link {\n font-weight: @alert-link-font-weight;\n }\n\n // Improve alignment and spacing of inner content\n > p,\n > ul {\n margin-bottom: 0;\n }\n\n > p + p {\n margin-top: 5px;\n }\n}\n\n// Dismissible alerts\n//\n// Expand the right padding and account for the close button's positioning.\n\n.alert-dismissable, // The misspelled .alert-dismissable was deprecated in 3.2.0.\n.alert-dismissible {\n padding-right: (@alert-padding + 20);\n\n // Adjust close link position\n .close {\n position: relative;\n top: -2px;\n right: -21px;\n color: inherit;\n }\n}\n\n// Alternate styles\n//\n// Generate contextual modifier classes for colorizing the alert.\n\n.alert-success {\n .alert-variant(@alert-success-bg; @alert-success-border; @alert-success-text);\n}\n\n.alert-info {\n .alert-variant(@alert-info-bg; @alert-info-border; @alert-info-text);\n}\n\n.alert-warning {\n .alert-variant(@alert-warning-bg; @alert-warning-border; @alert-warning-text);\n}\n\n.alert-danger {\n .alert-variant(@alert-danger-bg; @alert-danger-border; @alert-danger-text);\n}\n","// Alerts\n\n.alert-variant(@background; @border; @text-color) {\n background-color: @background;\n border-color: @border;\n color: @text-color;\n\n hr {\n border-top-color: darken(@border, 5%);\n }\n .alert-link {\n color: darken(@text-color, 10%);\n }\n}\n","//\n// Progress bars\n// --------------------------------------------------\n\n\n// Bar animations\n// -------------------------\n\n// WebKit\n@-webkit-keyframes progress-bar-stripes {\n from { background-position: 40px 0; }\n to { background-position: 0 0; }\n}\n\n// Spec and IE10+\n@keyframes progress-bar-stripes {\n from { background-position: 40px 0; }\n to { background-position: 0 0; }\n}\n\n\n// Bar itself\n// -------------------------\n\n// Outer container\n.progress {\n overflow: hidden;\n height: @line-height-computed;\n margin-bottom: @line-height-computed;\n background-color: @progress-bg;\n border-radius: @progress-border-radius;\n .box-shadow(inset 0 1px 2px rgba(0,0,0,.1));\n}\n\n// Bar of progress\n.progress-bar {\n float: left;\n width: 0%;\n height: 100%;\n font-size: @font-size-small;\n line-height: @line-height-computed;\n color: @progress-bar-color;\n text-align: center;\n background-color: @progress-bar-bg;\n .box-shadow(inset 0 -1px 0 rgba(0,0,0,.15));\n .transition(width .6s ease);\n}\n\n// Striped bars\n//\n// `.progress-striped .progress-bar` is deprecated as of v3.2.0 in favor of the\n// `.progress-bar-striped` class, which you just add to an existing\n// `.progress-bar`.\n.progress-striped .progress-bar,\n.progress-bar-striped {\n #gradient > .striped();\n background-size: 40px 40px;\n}\n\n// Call animation for the active one\n//\n// `.progress.active .progress-bar` is deprecated as of v3.2.0 in favor of the\n// `.progress-bar.active` approach.\n.progress.active .progress-bar,\n.progress-bar.active {\n .animation(progress-bar-stripes 2s linear infinite);\n}\n\n\n// Variations\n// -------------------------\n\n.progress-bar-success {\n .progress-bar-variant(@progress-bar-success-bg);\n}\n\n.progress-bar-info {\n .progress-bar-variant(@progress-bar-info-bg);\n}\n\n.progress-bar-warning {\n .progress-bar-variant(@progress-bar-warning-bg);\n}\n\n.progress-bar-danger {\n .progress-bar-variant(@progress-bar-danger-bg);\n}\n","// Gradients\n\n#gradient {\n\n // Horizontal gradient, from left to right\n //\n // Creates two color stops, start and end, by specifying a color and position for each color stop.\n // Color stops are not available in IE9 and below.\n .horizontal(@start-color: #555; @end-color: #333; @start-percent: 0%; @end-percent: 100%) {\n background-image: -webkit-linear-gradient(left, @start-color @start-percent, @end-color @end-percent); // Safari 5.1-6, Chrome 10+\n background-image: -o-linear-gradient(left, @start-color @start-percent, @end-color @end-percent); // Opera 12\n background-image: linear-gradient(to right, @start-color @start-percent, @end-color @end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+\n background-repeat: repeat-x;\n filter: e(%(\"progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)\",argb(@start-color),argb(@end-color))); // IE9 and down\n }\n\n // Vertical gradient, from top to bottom\n //\n // Creates two color stops, start and end, by specifying a color and position for each color stop.\n // Color stops are not available in IE9 and below.\n .vertical(@start-color: #555; @end-color: #333; @start-percent: 0%; @end-percent: 100%) {\n background-image: -webkit-linear-gradient(top, @start-color @start-percent, @end-color @end-percent); // Safari 5.1-6, Chrome 10+\n background-image: -o-linear-gradient(top, @start-color @start-percent, @end-color @end-percent); // Opera 12\n background-image: linear-gradient(to bottom, @start-color @start-percent, @end-color @end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+\n background-repeat: repeat-x;\n filter: e(%(\"progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)\",argb(@start-color),argb(@end-color))); // IE9 and down\n }\n\n .directional(@start-color: #555; @end-color: #333; @deg: 45deg) {\n background-repeat: repeat-x;\n background-image: -webkit-linear-gradient(@deg, @start-color, @end-color); // Safari 5.1-6, Chrome 10+\n background-image: -o-linear-gradient(@deg, @start-color, @end-color); // Opera 12\n background-image: linear-gradient(@deg, @start-color, @end-color); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+\n }\n .horizontal-three-colors(@start-color: #00b3ee; @mid-color: #7a43b6; @color-stop: 50%; @end-color: #c3325f) {\n background-image: -webkit-linear-gradient(left, @start-color, @mid-color @color-stop, @end-color);\n background-image: -o-linear-gradient(left, @start-color, @mid-color @color-stop, @end-color);\n background-image: linear-gradient(to right, @start-color, @mid-color @color-stop, @end-color);\n background-repeat: no-repeat;\n filter: e(%(\"progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)\",argb(@start-color),argb(@end-color))); // IE9 and down, gets no color-stop at all for proper fallback\n }\n .vertical-three-colors(@start-color: #00b3ee; @mid-color: #7a43b6; @color-stop: 50%; @end-color: #c3325f) {\n background-image: -webkit-linear-gradient(@start-color, @mid-color @color-stop, @end-color);\n background-image: -o-linear-gradient(@start-color, @mid-color @color-stop, @end-color);\n background-image: linear-gradient(@start-color, @mid-color @color-stop, @end-color);\n background-repeat: no-repeat;\n filter: e(%(\"progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)\",argb(@start-color),argb(@end-color))); // IE9 and down, gets no color-stop at all for proper fallback\n }\n .radial(@inner-color: #555; @outer-color: #333) {\n background-image: -webkit-radial-gradient(circle, @inner-color, @outer-color);\n background-image: radial-gradient(circle, @inner-color, @outer-color);\n background-repeat: no-repeat;\n }\n .striped(@color: rgba(255,255,255,.15); @angle: 45deg) {\n background-image: -webkit-linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);\n background-image: -o-linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);\n background-image: linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);\n }\n}\n","// Progress bars\n\n.progress-bar-variant(@color) {\n background-color: @color;\n\n // Deprecated parent class requirement as of v3.2.0\n .progress-striped & {\n #gradient > .striped();\n }\n}\n",".media {\n // Proper spacing between instances of .media\n margin-top: 15px;\n\n &:first-child {\n margin-top: 0;\n }\n}\n\n.media,\n.media-body {\n zoom: 1;\n overflow: hidden;\n}\n\n.media-body {\n width: 10000px;\n}\n\n.media-object {\n display: block;\n\n // Fix collapse in webkit from max-width: 100% and display: table-cell.\n &.img-thumbnail {\n max-width: none;\n }\n}\n\n.media-right,\n.media > .pull-right {\n padding-left: 10px;\n}\n\n.media-left,\n.media > .pull-left {\n padding-right: 10px;\n}\n\n.media-left,\n.media-right,\n.media-body {\n display: table-cell;\n vertical-align: top;\n}\n\n.media-middle {\n vertical-align: middle;\n}\n\n.media-bottom {\n vertical-align: bottom;\n}\n\n// Reset margins on headings for tighter default spacing\n.media-heading {\n margin-top: 0;\n margin-bottom: 5px;\n}\n\n// Media list variation\n//\n// Undo default ul/ol styles\n.media-list {\n padding-left: 0;\n list-style: none;\n}\n","//\n// List groups\n// --------------------------------------------------\n\n\n// Base class\n//\n// Easily usable on
          ,
            , or
            .\n\n.list-group {\n // No need to set list-style: none; since .list-group-item is block level\n margin-bottom: 20px;\n padding-left: 0; // reset padding because ul and ol\n}\n\n\n// Individual list items\n//\n// Use on `li`s or `div`s within the `.list-group` parent.\n\n.list-group-item {\n position: relative;\n display: block;\n padding: 10px 15px;\n // Place the border on the list items and negative margin up for better styling\n margin-bottom: -1px;\n background-color: @list-group-bg;\n border: 1px solid @list-group-border;\n\n // Round the first and last items\n &:first-child {\n .border-top-radius(@list-group-border-radius);\n }\n &:last-child {\n margin-bottom: 0;\n .border-bottom-radius(@list-group-border-radius);\n }\n}\n\n\n// Interactive list items\n//\n// Use anchor or button elements instead of `li`s or `div`s to create interactive items.\n// Includes an extra `.active` modifier class for showing selected items.\n\na.list-group-item,\nbutton.list-group-item {\n color: @list-group-link-color;\n\n .list-group-item-heading {\n color: @list-group-link-heading-color;\n }\n\n // Hover state\n &:hover,\n &:focus {\n text-decoration: none;\n color: @list-group-link-hover-color;\n background-color: @list-group-hover-bg;\n }\n}\n\nbutton.list-group-item {\n width: 100%;\n text-align: left;\n}\n\n.list-group-item {\n // Disabled state\n &.disabled,\n &.disabled:hover,\n &.disabled:focus {\n background-color: @list-group-disabled-bg;\n color: @list-group-disabled-color;\n cursor: @cursor-disabled;\n\n // Force color to inherit for custom content\n .list-group-item-heading {\n color: inherit;\n }\n .list-group-item-text {\n color: @list-group-disabled-text-color;\n }\n }\n\n // Active class on item itself, not parent\n &.active,\n &.active:hover,\n &.active:focus {\n z-index: 2; // Place active items above their siblings for proper border styling\n color: @list-group-active-color;\n background-color: @list-group-active-bg;\n border-color: @list-group-active-border;\n\n // Force color to inherit for custom content\n .list-group-item-heading,\n .list-group-item-heading > small,\n .list-group-item-heading > .small {\n color: inherit;\n }\n .list-group-item-text {\n color: @list-group-active-text-color;\n }\n }\n}\n\n\n// Contextual variants\n//\n// Add modifier classes to change text and background color on individual items.\n// Organizationally, this must come after the `:hover` states.\n\n.list-group-item-variant(success; @state-success-bg; @state-success-text);\n.list-group-item-variant(info; @state-info-bg; @state-info-text);\n.list-group-item-variant(warning; @state-warning-bg; @state-warning-text);\n.list-group-item-variant(danger; @state-danger-bg; @state-danger-text);\n\n\n// Custom content options\n//\n// Extra classes for creating well-formatted content within `.list-group-item`s.\n\n.list-group-item-heading {\n margin-top: 0;\n margin-bottom: 5px;\n}\n.list-group-item-text {\n margin-bottom: 0;\n line-height: 1.3;\n}\n","// List Groups\n\n.list-group-item-variant(@state; @background; @color) {\n .list-group-item-@{state} {\n color: @color;\n background-color: @background;\n\n a&,\n button& {\n color: @color;\n\n .list-group-item-heading {\n color: inherit;\n }\n\n &:hover,\n &:focus {\n color: @color;\n background-color: darken(@background, 5%);\n }\n &.active,\n &.active:hover,\n &.active:focus {\n color: #fff;\n background-color: @color;\n border-color: @color;\n }\n }\n }\n}\n","//\n// Panels\n// --------------------------------------------------\n\n\n// Base class\n.panel {\n margin-bottom: @line-height-computed;\n background-color: @panel-bg;\n border: 1px solid transparent;\n border-radius: @panel-border-radius;\n .box-shadow(0 1px 1px rgba(0,0,0,.05));\n}\n\n// Panel contents\n.panel-body {\n padding: @panel-body-padding;\n &:extend(.clearfix all);\n}\n\n// Optional heading\n.panel-heading {\n padding: @panel-heading-padding;\n border-bottom: 1px solid transparent;\n .border-top-radius((@panel-border-radius - 1));\n\n > .dropdown .dropdown-toggle {\n color: inherit;\n }\n}\n\n// Within heading, strip any `h*` tag of its default margins for spacing.\n.panel-title {\n margin-top: 0;\n margin-bottom: 0;\n font-size: ceil((@font-size-base * 1.125));\n color: inherit;\n\n > a,\n > small,\n > .small,\n > small > a,\n > .small > a {\n color: inherit;\n }\n}\n\n// Optional footer (stays gray in every modifier class)\n.panel-footer {\n padding: @panel-footer-padding;\n background-color: @panel-footer-bg;\n border-top: 1px solid @panel-inner-border;\n .border-bottom-radius((@panel-border-radius - 1));\n}\n\n\n// List groups in panels\n//\n// By default, space out list group content from panel headings to account for\n// any kind of custom content between the two.\n\n.panel {\n > .list-group,\n > .panel-collapse > .list-group {\n margin-bottom: 0;\n\n .list-group-item {\n border-width: 1px 0;\n border-radius: 0;\n }\n\n // Add border top radius for first one\n &:first-child {\n .list-group-item:first-child {\n border-top: 0;\n .border-top-radius((@panel-border-radius - 1));\n }\n }\n\n // Add border bottom radius for last one\n &:last-child {\n .list-group-item:last-child {\n border-bottom: 0;\n .border-bottom-radius((@panel-border-radius - 1));\n }\n }\n }\n > .panel-heading + .panel-collapse > .list-group {\n .list-group-item:first-child {\n .border-top-radius(0);\n }\n }\n}\n// Collapse space between when there's no additional content.\n.panel-heading + .list-group {\n .list-group-item:first-child {\n border-top-width: 0;\n }\n}\n.list-group + .panel-footer {\n border-top-width: 0;\n}\n\n// Tables in panels\n//\n// Place a non-bordered `.table` within a panel (not within a `.panel-body`) and\n// watch it go full width.\n\n.panel {\n > .table,\n > .table-responsive > .table,\n > .panel-collapse > .table {\n margin-bottom: 0;\n\n caption {\n padding-left: @panel-body-padding;\n padding-right: @panel-body-padding;\n }\n }\n // Add border top radius for first one\n > .table:first-child,\n > .table-responsive:first-child > .table:first-child {\n .border-top-radius((@panel-border-radius - 1));\n\n > thead:first-child,\n > tbody:first-child {\n > tr:first-child {\n border-top-left-radius: (@panel-border-radius - 1);\n border-top-right-radius: (@panel-border-radius - 1);\n\n td:first-child,\n th:first-child {\n border-top-left-radius: (@panel-border-radius - 1);\n }\n td:last-child,\n th:last-child {\n border-top-right-radius: (@panel-border-radius - 1);\n }\n }\n }\n }\n // Add border bottom radius for last one\n > .table:last-child,\n > .table-responsive:last-child > .table:last-child {\n .border-bottom-radius((@panel-border-radius - 1));\n\n > tbody:last-child,\n > tfoot:last-child {\n > tr:last-child {\n border-bottom-left-radius: (@panel-border-radius - 1);\n border-bottom-right-radius: (@panel-border-radius - 1);\n\n td:first-child,\n th:first-child {\n border-bottom-left-radius: (@panel-border-radius - 1);\n }\n td:last-child,\n th:last-child {\n border-bottom-right-radius: (@panel-border-radius - 1);\n }\n }\n }\n }\n > .panel-body + .table,\n > .panel-body + .table-responsive,\n > .table + .panel-body,\n > .table-responsive + .panel-body {\n border-top: 1px solid @table-border-color;\n }\n > .table > tbody:first-child > tr:first-child th,\n > .table > tbody:first-child > tr:first-child td {\n border-top: 0;\n }\n > .table-bordered,\n > .table-responsive > .table-bordered {\n border: 0;\n > thead,\n > tbody,\n > tfoot {\n > tr {\n > th:first-child,\n > td:first-child {\n border-left: 0;\n }\n > th:last-child,\n > td:last-child {\n border-right: 0;\n }\n }\n }\n > thead,\n > tbody {\n > tr:first-child {\n > td,\n > th {\n border-bottom: 0;\n }\n }\n }\n > tbody,\n > tfoot {\n > tr:last-child {\n > td,\n > th {\n border-bottom: 0;\n }\n }\n }\n }\n > .table-responsive {\n border: 0;\n margin-bottom: 0;\n }\n}\n\n\n// Collapsible panels (aka, accordion)\n//\n// Wrap a series of panels in `.panel-group` to turn them into an accordion with\n// the help of our collapse JavaScript plugin.\n\n.panel-group {\n margin-bottom: @line-height-computed;\n\n // Tighten up margin so it's only between panels\n .panel {\n margin-bottom: 0;\n border-radius: @panel-border-radius;\n\n + .panel {\n margin-top: 5px;\n }\n }\n\n .panel-heading {\n border-bottom: 0;\n\n + .panel-collapse > .panel-body,\n + .panel-collapse > .list-group {\n border-top: 1px solid @panel-inner-border;\n }\n }\n\n .panel-footer {\n border-top: 0;\n + .panel-collapse .panel-body {\n border-bottom: 1px solid @panel-inner-border;\n }\n }\n}\n\n\n// Contextual variations\n.panel-default {\n .panel-variant(@panel-default-border; @panel-default-text; @panel-default-heading-bg; @panel-default-border);\n}\n.panel-primary {\n .panel-variant(@panel-primary-border; @panel-primary-text; @panel-primary-heading-bg; @panel-primary-border);\n}\n.panel-success {\n .panel-variant(@panel-success-border; @panel-success-text; @panel-success-heading-bg; @panel-success-border);\n}\n.panel-info {\n .panel-variant(@panel-info-border; @panel-info-text; @panel-info-heading-bg; @panel-info-border);\n}\n.panel-warning {\n .panel-variant(@panel-warning-border; @panel-warning-text; @panel-warning-heading-bg; @panel-warning-border);\n}\n.panel-danger {\n .panel-variant(@panel-danger-border; @panel-danger-text; @panel-danger-heading-bg; @panel-danger-border);\n}\n","// Panels\n\n.panel-variant(@border; @heading-text-color; @heading-bg-color; @heading-border) {\n border-color: @border;\n\n & > .panel-heading {\n color: @heading-text-color;\n background-color: @heading-bg-color;\n border-color: @heading-border;\n\n + .panel-collapse > .panel-body {\n border-top-color: @border;\n }\n .badge {\n color: @heading-bg-color;\n background-color: @heading-text-color;\n }\n }\n & > .panel-footer {\n + .panel-collapse > .panel-body {\n border-bottom-color: @border;\n }\n }\n}\n","// Embeds responsive\n//\n// Credit: Nicolas Gallagher and SUIT CSS.\n\n.embed-responsive {\n position: relative;\n display: block;\n height: 0;\n padding: 0;\n overflow: hidden;\n\n .embed-responsive-item,\n iframe,\n embed,\n object,\n video {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n height: 100%;\n width: 100%;\n border: 0;\n }\n}\n\n// Modifier class for 16:9 aspect ratio\n.embed-responsive-16by9 {\n padding-bottom: 56.25%;\n}\n\n// Modifier class for 4:3 aspect ratio\n.embed-responsive-4by3 {\n padding-bottom: 75%;\n}\n","//\n// Wells\n// --------------------------------------------------\n\n\n// Base class\n.well {\n min-height: 20px;\n padding: 19px;\n margin-bottom: 20px;\n background-color: @well-bg;\n border: 1px solid @well-border;\n border-radius: @border-radius-base;\n .box-shadow(inset 0 1px 1px rgba(0,0,0,.05));\n blockquote {\n border-color: #ddd;\n border-color: rgba(0,0,0,.15);\n }\n}\n\n// Sizes\n.well-lg {\n padding: 24px;\n border-radius: @border-radius-large;\n}\n.well-sm {\n padding: 9px;\n border-radius: @border-radius-small;\n}\n","//\n// Close icons\n// --------------------------------------------------\n\n\n.close {\n float: right;\n font-size: (@font-size-base * 1.5);\n font-weight: @close-font-weight;\n line-height: 1;\n color: @close-color;\n text-shadow: @close-text-shadow;\n .opacity(.2);\n\n &:hover,\n &:focus {\n color: @close-color;\n text-decoration: none;\n cursor: pointer;\n .opacity(.5);\n }\n\n // Additional properties for button version\n // iOS requires the button element instead of an anchor tag.\n // If you want the anchor version, it requires `href=\"#\"`.\n // See https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile\n button& {\n padding: 0;\n cursor: pointer;\n background: transparent;\n border: 0;\n -webkit-appearance: none;\n }\n}\n","//\n// Modals\n// --------------------------------------------------\n\n// .modal-open - body class for killing the scroll\n// .modal - container to scroll within\n// .modal-dialog - positioning shell for the actual modal\n// .modal-content - actual modal w/ bg and corners and shit\n\n// Kill the scroll on the body\n.modal-open {\n overflow: hidden;\n}\n\n// Container that the modal scrolls within\n.modal {\n display: none;\n overflow: hidden;\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: @zindex-modal;\n -webkit-overflow-scrolling: touch;\n\n // Prevent Chrome on Windows from adding a focus outline. For details, see\n // https://github.com/twbs/bootstrap/pull/10951.\n outline: 0;\n\n // When fading in the modal, animate it to slide down\n &.fade .modal-dialog {\n .translate(0, -25%);\n .transition-transform(~\"0.3s ease-out\");\n }\n &.in .modal-dialog { .translate(0, 0) }\n}\n.modal-open .modal {\n overflow-x: hidden;\n overflow-y: auto;\n}\n\n// Shell div to position the modal with bottom padding\n.modal-dialog {\n position: relative;\n width: auto;\n margin: 10px;\n}\n\n// Actual modal\n.modal-content {\n position: relative;\n background-color: @modal-content-bg;\n border: 1px solid @modal-content-fallback-border-color; //old browsers fallback (ie8 etc)\n border: 1px solid @modal-content-border-color;\n border-radius: @border-radius-large;\n .box-shadow(0 3px 9px rgba(0,0,0,.5));\n background-clip: padding-box;\n // Remove focus outline from opened modal\n outline: 0;\n}\n\n// Modal background\n.modal-backdrop {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: @zindex-modal-background;\n background-color: @modal-backdrop-bg;\n // Fade for backdrop\n &.fade { .opacity(0); }\n &.in { .opacity(@modal-backdrop-opacity); }\n}\n\n// Modal header\n// Top section of the modal w/ title and dismiss\n.modal-header {\n padding: @modal-title-padding;\n border-bottom: 1px solid @modal-header-border-color;\n &:extend(.clearfix all);\n}\n// Close icon\n.modal-header .close {\n margin-top: -2px;\n}\n\n// Title text within header\n.modal-title {\n margin: 0;\n line-height: @modal-title-line-height;\n}\n\n// Modal body\n// Where all modal content resides (sibling of .modal-header and .modal-footer)\n.modal-body {\n position: relative;\n padding: @modal-inner-padding;\n}\n\n// Footer (for actions)\n.modal-footer {\n padding: @modal-inner-padding;\n text-align: right; // right align buttons\n border-top: 1px solid @modal-footer-border-color;\n &:extend(.clearfix all); // clear it in case folks use .pull-* classes on buttons\n\n // Properly space out buttons\n .btn + .btn {\n margin-left: 5px;\n margin-bottom: 0; // account for input[type=\"submit\"] which gets the bottom margin like all other inputs\n }\n // but override that for button groups\n .btn-group .btn + .btn {\n margin-left: -1px;\n }\n // and override it for block buttons as well\n .btn-block + .btn-block {\n margin-left: 0;\n }\n}\n\n// Measure scrollbar width for padding body during modal show/hide\n.modal-scrollbar-measure {\n position: absolute;\n top: -9999px;\n width: 50px;\n height: 50px;\n overflow: scroll;\n}\n\n// Scale up the modal\n@media (min-width: @screen-sm-min) {\n // Automatically set modal's width for larger viewports\n .modal-dialog {\n width: @modal-md;\n margin: 30px auto;\n }\n .modal-content {\n .box-shadow(0 5px 15px rgba(0,0,0,.5));\n }\n\n // Modal sizes\n .modal-sm { width: @modal-sm; }\n}\n\n@media (min-width: @screen-md-min) {\n .modal-lg { width: @modal-lg; }\n}\n","//\n// Tooltips\n// --------------------------------------------------\n\n\n// Base class\n.tooltip {\n position: absolute;\n z-index: @zindex-tooltip;\n display: block;\n // Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.\n // So reset our font and text properties to avoid inheriting weird values.\n .reset-text();\n font-size: @font-size-small;\n\n .opacity(0);\n\n &.in { .opacity(@tooltip-opacity); }\n &.top { margin-top: -3px; padding: @tooltip-arrow-width 0; }\n &.right { margin-left: 3px; padding: 0 @tooltip-arrow-width; }\n &.bottom { margin-top: 3px; padding: @tooltip-arrow-width 0; }\n &.left { margin-left: -3px; padding: 0 @tooltip-arrow-width; }\n}\n\n// Wrapper for the tooltip content\n.tooltip-inner {\n max-width: @tooltip-max-width;\n padding: 3px 8px;\n color: @tooltip-color;\n text-align: center;\n background-color: @tooltip-bg;\n border-radius: @border-radius-base;\n}\n\n// Arrows\n.tooltip-arrow {\n position: absolute;\n width: 0;\n height: 0;\n border-color: transparent;\n border-style: solid;\n}\n// Note: Deprecated .top-left, .top-right, .bottom-left, and .bottom-right as of v3.3.1\n.tooltip {\n &.top .tooltip-arrow {\n bottom: 0;\n left: 50%;\n margin-left: -@tooltip-arrow-width;\n border-width: @tooltip-arrow-width @tooltip-arrow-width 0;\n border-top-color: @tooltip-arrow-color;\n }\n &.top-left .tooltip-arrow {\n bottom: 0;\n right: @tooltip-arrow-width;\n margin-bottom: -@tooltip-arrow-width;\n border-width: @tooltip-arrow-width @tooltip-arrow-width 0;\n border-top-color: @tooltip-arrow-color;\n }\n &.top-right .tooltip-arrow {\n bottom: 0;\n left: @tooltip-arrow-width;\n margin-bottom: -@tooltip-arrow-width;\n border-width: @tooltip-arrow-width @tooltip-arrow-width 0;\n border-top-color: @tooltip-arrow-color;\n }\n &.right .tooltip-arrow {\n top: 50%;\n left: 0;\n margin-top: -@tooltip-arrow-width;\n border-width: @tooltip-arrow-width @tooltip-arrow-width @tooltip-arrow-width 0;\n border-right-color: @tooltip-arrow-color;\n }\n &.left .tooltip-arrow {\n top: 50%;\n right: 0;\n margin-top: -@tooltip-arrow-width;\n border-width: @tooltip-arrow-width 0 @tooltip-arrow-width @tooltip-arrow-width;\n border-left-color: @tooltip-arrow-color;\n }\n &.bottom .tooltip-arrow {\n top: 0;\n left: 50%;\n margin-left: -@tooltip-arrow-width;\n border-width: 0 @tooltip-arrow-width @tooltip-arrow-width;\n border-bottom-color: @tooltip-arrow-color;\n }\n &.bottom-left .tooltip-arrow {\n top: 0;\n right: @tooltip-arrow-width;\n margin-top: -@tooltip-arrow-width;\n border-width: 0 @tooltip-arrow-width @tooltip-arrow-width;\n border-bottom-color: @tooltip-arrow-color;\n }\n &.bottom-right .tooltip-arrow {\n top: 0;\n left: @tooltip-arrow-width;\n margin-top: -@tooltip-arrow-width;\n border-width: 0 @tooltip-arrow-width @tooltip-arrow-width;\n border-bottom-color: @tooltip-arrow-color;\n }\n}\n",".reset-text() {\n font-family: @font-family-base;\n // We deliberately do NOT reset font-size.\n font-style: normal;\n font-weight: normal;\n letter-spacing: normal;\n line-break: auto;\n line-height: @line-height-base;\n text-align: left; // Fallback for where `start` is not supported\n text-align: start;\n text-decoration: none;\n text-shadow: none;\n text-transform: none;\n white-space: normal;\n word-break: normal;\n word-spacing: normal;\n word-wrap: normal;\n}\n","//\n// Popovers\n// --------------------------------------------------\n\n\n.popover {\n position: absolute;\n top: 0;\n left: 0;\n z-index: @zindex-popover;\n display: none;\n max-width: @popover-max-width;\n padding: 1px;\n // Our parent element can be arbitrary since popovers are by default inserted as a sibling of their target element.\n // So reset our font and text properties to avoid inheriting weird values.\n .reset-text();\n font-size: @font-size-base;\n\n background-color: @popover-bg;\n background-clip: padding-box;\n border: 1px solid @popover-fallback-border-color;\n border: 1px solid @popover-border-color;\n border-radius: @border-radius-large;\n .box-shadow(0 5px 10px rgba(0,0,0,.2));\n\n // Offset the popover to account for the popover arrow\n &.top { margin-top: -@popover-arrow-width; }\n &.right { margin-left: @popover-arrow-width; }\n &.bottom { margin-top: @popover-arrow-width; }\n &.left { margin-left: -@popover-arrow-width; }\n}\n\n.popover-title {\n margin: 0; // reset heading margin\n padding: 8px 14px;\n font-size: @font-size-base;\n background-color: @popover-title-bg;\n border-bottom: 1px solid darken(@popover-title-bg, 5%);\n border-radius: (@border-radius-large - 1) (@border-radius-large - 1) 0 0;\n}\n\n.popover-content {\n padding: 9px 14px;\n}\n\n// Arrows\n//\n// .arrow is outer, .arrow:after is inner\n\n.popover > .arrow {\n &,\n &:after {\n position: absolute;\n display: block;\n width: 0;\n height: 0;\n border-color: transparent;\n border-style: solid;\n }\n}\n.popover > .arrow {\n border-width: @popover-arrow-outer-width;\n}\n.popover > .arrow:after {\n border-width: @popover-arrow-width;\n content: \"\";\n}\n\n.popover {\n &.top > .arrow {\n left: 50%;\n margin-left: -@popover-arrow-outer-width;\n border-bottom-width: 0;\n border-top-color: @popover-arrow-outer-fallback-color; // IE8 fallback\n border-top-color: @popover-arrow-outer-color;\n bottom: -@popover-arrow-outer-width;\n &:after {\n content: \" \";\n bottom: 1px;\n margin-left: -@popover-arrow-width;\n border-bottom-width: 0;\n border-top-color: @popover-arrow-color;\n }\n }\n &.right > .arrow {\n top: 50%;\n left: -@popover-arrow-outer-width;\n margin-top: -@popover-arrow-outer-width;\n border-left-width: 0;\n border-right-color: @popover-arrow-outer-fallback-color; // IE8 fallback\n border-right-color: @popover-arrow-outer-color;\n &:after {\n content: \" \";\n left: 1px;\n bottom: -@popover-arrow-width;\n border-left-width: 0;\n border-right-color: @popover-arrow-color;\n }\n }\n &.bottom > .arrow {\n left: 50%;\n margin-left: -@popover-arrow-outer-width;\n border-top-width: 0;\n border-bottom-color: @popover-arrow-outer-fallback-color; // IE8 fallback\n border-bottom-color: @popover-arrow-outer-color;\n top: -@popover-arrow-outer-width;\n &:after {\n content: \" \";\n top: 1px;\n margin-left: -@popover-arrow-width;\n border-top-width: 0;\n border-bottom-color: @popover-arrow-color;\n }\n }\n\n &.left > .arrow {\n top: 50%;\n right: -@popover-arrow-outer-width;\n margin-top: -@popover-arrow-outer-width;\n border-right-width: 0;\n border-left-color: @popover-arrow-outer-fallback-color; // IE8 fallback\n border-left-color: @popover-arrow-outer-color;\n &:after {\n content: \" \";\n right: 1px;\n border-right-width: 0;\n border-left-color: @popover-arrow-color;\n bottom: -@popover-arrow-width;\n }\n }\n}\n","//\n// Carousel\n// --------------------------------------------------\n\n\n// Wrapper for the slide container and indicators\n.carousel {\n position: relative;\n}\n\n.carousel-inner {\n position: relative;\n overflow: hidden;\n width: 100%;\n\n > .item {\n display: none;\n position: relative;\n .transition(.6s ease-in-out left);\n\n // Account for jankitude on images\n > img,\n > a > img {\n &:extend(.img-responsive);\n line-height: 1;\n }\n\n // WebKit CSS3 transforms for supported devices\n @media all and (transform-3d), (-webkit-transform-3d) {\n .transition-transform(~'0.6s ease-in-out');\n .backface-visibility(~'hidden');\n .perspective(1000px);\n\n &.next,\n &.active.right {\n .translate3d(100%, 0, 0);\n left: 0;\n }\n &.prev,\n &.active.left {\n .translate3d(-100%, 0, 0);\n left: 0;\n }\n &.next.left,\n &.prev.right,\n &.active {\n .translate3d(0, 0, 0);\n left: 0;\n }\n }\n }\n\n > .active,\n > .next,\n > .prev {\n display: block;\n }\n\n > .active {\n left: 0;\n }\n\n > .next,\n > .prev {\n position: absolute;\n top: 0;\n width: 100%;\n }\n\n > .next {\n left: 100%;\n }\n > .prev {\n left: -100%;\n }\n > .next.left,\n > .prev.right {\n left: 0;\n }\n\n > .active.left {\n left: -100%;\n }\n > .active.right {\n left: 100%;\n }\n\n}\n\n// Left/right controls for nav\n// ---------------------------\n\n.carousel-control {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: @carousel-control-width;\n .opacity(@carousel-control-opacity);\n font-size: @carousel-control-font-size;\n color: @carousel-control-color;\n text-align: center;\n text-shadow: @carousel-text-shadow;\n background-color: rgba(0, 0, 0, 0); // Fix IE9 click-thru bug\n // We can't have this transition here because WebKit cancels the carousel\n // animation if you trip this while in the middle of another animation.\n\n // Set gradients for backgrounds\n &.left {\n #gradient > .horizontal(@start-color: rgba(0,0,0,.5); @end-color: rgba(0,0,0,.0001));\n }\n &.right {\n left: auto;\n right: 0;\n #gradient > .horizontal(@start-color: rgba(0,0,0,.0001); @end-color: rgba(0,0,0,.5));\n }\n\n // Hover/focus state\n &:hover,\n &:focus {\n outline: 0;\n color: @carousel-control-color;\n text-decoration: none;\n .opacity(.9);\n }\n\n // Toggles\n .icon-prev,\n .icon-next,\n .glyphicon-chevron-left,\n .glyphicon-chevron-right {\n position: absolute;\n top: 50%;\n margin-top: -10px;\n z-index: 5;\n display: inline-block;\n }\n .icon-prev,\n .glyphicon-chevron-left {\n left: 50%;\n margin-left: -10px;\n }\n .icon-next,\n .glyphicon-chevron-right {\n right: 50%;\n margin-right: -10px;\n }\n .icon-prev,\n .icon-next {\n width: 20px;\n height: 20px;\n line-height: 1;\n font-family: serif;\n }\n\n\n .icon-prev {\n &:before {\n content: '\\2039';// SINGLE LEFT-POINTING ANGLE QUOTATION MARK (U+2039)\n }\n }\n .icon-next {\n &:before {\n content: '\\203a';// SINGLE RIGHT-POINTING ANGLE QUOTATION MARK (U+203A)\n }\n }\n}\n\n// Optional indicator pips\n//\n// Add an unordered list with the following class and add a list item for each\n// slide your carousel holds.\n\n.carousel-indicators {\n position: absolute;\n bottom: 10px;\n left: 50%;\n z-index: 15;\n width: 60%;\n margin-left: -30%;\n padding-left: 0;\n list-style: none;\n text-align: center;\n\n li {\n display: inline-block;\n width: 10px;\n height: 10px;\n margin: 1px;\n text-indent: -999px;\n border: 1px solid @carousel-indicator-border-color;\n border-radius: 10px;\n cursor: pointer;\n\n // IE8-9 hack for event handling\n //\n // Internet Explorer 8-9 does not support clicks on elements without a set\n // `background-color`. We cannot use `filter` since that's not viewed as a\n // background color by the browser. Thus, a hack is needed.\n // See https://developer.mozilla.org/en-US/docs/Web/Events/click#Internet_Explorer\n //\n // For IE8, we set solid black as it doesn't support `rgba()`. For IE9, we\n // set alpha transparency for the best results possible.\n background-color: #000 \\9; // IE8\n background-color: rgba(0,0,0,0); // IE9\n }\n .active {\n margin: 0;\n width: 12px;\n height: 12px;\n background-color: @carousel-indicator-active-bg;\n }\n}\n\n// Optional captions\n// -----------------------------\n// Hidden by default for smaller viewports\n.carousel-caption {\n position: absolute;\n left: 15%;\n right: 15%;\n bottom: 20px;\n z-index: 10;\n padding-top: 20px;\n padding-bottom: 20px;\n color: @carousel-caption-color;\n text-align: center;\n text-shadow: @carousel-text-shadow;\n & .btn {\n text-shadow: none; // No shadow for button elements in carousel-caption\n }\n}\n\n\n// Scale up controls for tablets and up\n@media screen and (min-width: @screen-sm-min) {\n\n // Scale up the controls a smidge\n .carousel-control {\n .glyphicon-chevron-left,\n .glyphicon-chevron-right,\n .icon-prev,\n .icon-next {\n width: (@carousel-control-font-size * 1.5);\n height: (@carousel-control-font-size * 1.5);\n margin-top: (@carousel-control-font-size / -2);\n font-size: (@carousel-control-font-size * 1.5);\n }\n .glyphicon-chevron-left,\n .icon-prev {\n margin-left: (@carousel-control-font-size / -2);\n }\n .glyphicon-chevron-right,\n .icon-next {\n margin-right: (@carousel-control-font-size / -2);\n }\n }\n\n // Show and left align the captions\n .carousel-caption {\n left: 20%;\n right: 20%;\n padding-bottom: 30px;\n }\n\n // Move up the indicators\n .carousel-indicators {\n bottom: 20px;\n }\n}\n","// Clearfix\n//\n// For modern browsers\n// 1. The space content is one way to avoid an Opera bug when the\n// contenteditable attribute is included anywhere else in the document.\n// Otherwise it causes space to appear at the top and bottom of elements\n// that are clearfixed.\n// 2. The use of `table` rather than `block` is only necessary if using\n// `:before` to contain the top-margins of child elements.\n//\n// Source: http://nicolasgallagher.com/micro-clearfix-hack/\n\n.clearfix() {\n &:before,\n &:after {\n content: \" \"; // 1\n display: table; // 2\n }\n &:after {\n clear: both;\n }\n}\n","// Center-align a block level element\n\n.center-block() {\n display: block;\n margin-left: auto;\n margin-right: auto;\n}\n","// CSS image replacement\n//\n// Heads up! v3 launched with only `.hide-text()`, but per our pattern for\n// mixins being reused as classes with the same name, this doesn't hold up. As\n// of v3.0.1 we have added `.text-hide()` and deprecated `.hide-text()`.\n//\n// Source: https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757\n\n// Deprecated as of v3.0.1 (has been removed in v4)\n.hide-text() {\n font: ~\"0/0\" a;\n color: transparent;\n text-shadow: none;\n background-color: transparent;\n border: 0;\n}\n\n// New mixin to use as of v3.0.1\n.text-hide() {\n .hide-text();\n}\n","//\n// Responsive: Utility classes\n// --------------------------------------------------\n\n\n// IE10 in Windows (Phone) 8\n//\n// Support for responsive views via media queries is kind of borked in IE10, for\n// Surface/desktop in split view and for Windows Phone 8. This particular fix\n// must be accompanied by a snippet of JavaScript to sniff the user agent and\n// apply some conditional CSS to *only* the Surface/desktop Windows 8. Look at\n// our Getting Started page for more information on this bug.\n//\n// For more information, see the following:\n//\n// Issue: https://github.com/twbs/bootstrap/issues/10497\n// Docs: http://getbootstrap.com/getting-started/#support-ie10-width\n// Source: http://timkadlec.com/2013/01/windows-phone-8-and-device-width/\n// Source: http://timkadlec.com/2012/10/ie10-snap-mode-and-responsive-design/\n\n@-ms-viewport {\n width: device-width;\n}\n\n\n// Visibility utilities\n// Note: Deprecated .visible-xs, .visible-sm, .visible-md, and .visible-lg as of v3.2.0\n.visible-xs,\n.visible-sm,\n.visible-md,\n.visible-lg {\n .responsive-invisibility();\n}\n\n.visible-xs-block,\n.visible-xs-inline,\n.visible-xs-inline-block,\n.visible-sm-block,\n.visible-sm-inline,\n.visible-sm-inline-block,\n.visible-md-block,\n.visible-md-inline,\n.visible-md-inline-block,\n.visible-lg-block,\n.visible-lg-inline,\n.visible-lg-inline-block {\n display: none !important;\n}\n\n.visible-xs {\n @media (max-width: @screen-xs-max) {\n .responsive-visibility();\n }\n}\n.visible-xs-block {\n @media (max-width: @screen-xs-max) {\n display: block !important;\n }\n}\n.visible-xs-inline {\n @media (max-width: @screen-xs-max) {\n display: inline !important;\n }\n}\n.visible-xs-inline-block {\n @media (max-width: @screen-xs-max) {\n display: inline-block !important;\n }\n}\n\n.visible-sm {\n @media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {\n .responsive-visibility();\n }\n}\n.visible-sm-block {\n @media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {\n display: block !important;\n }\n}\n.visible-sm-inline {\n @media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {\n display: inline !important;\n }\n}\n.visible-sm-inline-block {\n @media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {\n display: inline-block !important;\n }\n}\n\n.visible-md {\n @media (min-width: @screen-md-min) and (max-width: @screen-md-max) {\n .responsive-visibility();\n }\n}\n.visible-md-block {\n @media (min-width: @screen-md-min) and (max-width: @screen-md-max) {\n display: block !important;\n }\n}\n.visible-md-inline {\n @media (min-width: @screen-md-min) and (max-width: @screen-md-max) {\n display: inline !important;\n }\n}\n.visible-md-inline-block {\n @media (min-width: @screen-md-min) and (max-width: @screen-md-max) {\n display: inline-block !important;\n }\n}\n\n.visible-lg {\n @media (min-width: @screen-lg-min) {\n .responsive-visibility();\n }\n}\n.visible-lg-block {\n @media (min-width: @screen-lg-min) {\n display: block !important;\n }\n}\n.visible-lg-inline {\n @media (min-width: @screen-lg-min) {\n display: inline !important;\n }\n}\n.visible-lg-inline-block {\n @media (min-width: @screen-lg-min) {\n display: inline-block !important;\n }\n}\n\n.hidden-xs {\n @media (max-width: @screen-xs-max) {\n .responsive-invisibility();\n }\n}\n.hidden-sm {\n @media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {\n .responsive-invisibility();\n }\n}\n.hidden-md {\n @media (min-width: @screen-md-min) and (max-width: @screen-md-max) {\n .responsive-invisibility();\n }\n}\n.hidden-lg {\n @media (min-width: @screen-lg-min) {\n .responsive-invisibility();\n }\n}\n\n\n// Print utilities\n//\n// Media queries are placed on the inside to be mixin-friendly.\n\n// Note: Deprecated .visible-print as of v3.2.0\n.visible-print {\n .responsive-invisibility();\n\n @media print {\n .responsive-visibility();\n }\n}\n.visible-print-block {\n display: none !important;\n\n @media print {\n display: block !important;\n }\n}\n.visible-print-inline {\n display: none !important;\n\n @media print {\n display: inline !important;\n }\n}\n.visible-print-inline-block {\n display: none !important;\n\n @media print {\n display: inline-block !important;\n }\n}\n\n.hidden-print {\n @media print {\n .responsive-invisibility();\n }\n}\n","// Responsive utilities\n\n//\n// More easily include all the states for responsive-utilities.less.\n.responsive-visibility() {\n display: block !important;\n table& { display: table !important; }\n tr& { display: table-row !important; }\n th&,\n td& { display: table-cell !important; }\n}\n\n.responsive-invisibility() {\n display: none !important;\n}\n"]} \ No newline at end of file diff --git a/src/Sample.RazorPages/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot b/src/Sample.RazorPages/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot new file mode 100644 index 0000000000000000000000000000000000000000..b93a4953fff68df523aa7656497ee339d6026d64 GIT binary patch literal 20127 zcma%hV{j!vx9y2-`@~L8?1^pLwlPU2wr$&<*tR|KBoo`2;LUg6eW-eW-tKDb)vH%` z^`A!Vd<6hNSRMcX|Cb;E|1qflDggj6Kmr)xA10^t-vIc3*Z+F{r%|K(GyE^?|I{=9 zNq`(c8=wS`0!RZy0g3{M(8^tv41d}oRU?8#IBFtJy*9zAN5dcxqGlMZGL>GG%R#)4J zDJ2;)4*E1pyHia%>lMv3X7Q`UoFyoB@|xvh^)kOE3)IL&0(G&i;g08s>c%~pHkN&6 z($7!kyv|A2DsV2mq-5Ku)D#$Kn$CzqD-wm5Q*OtEOEZe^&T$xIb0NU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M8w8})7k-$&q5(smc%;r z(BlXkTp`C47+%4JA{2X}MIaPbVF!35P#p;u7+fR*46{T+LR8+j25oduCfDzDv6R-hU{TVVo9fz?^N3ShMt!t0NsH)pB zRK8-S{Dn*y3b|k^*?_B70<2gHt==l7c&cT>r`C#{S}J2;s#d{M)ncW(#Y$C*lByLQ z&?+{dR7*gpdT~(1;M(FfF==3z`^eW)=5a9RqvF-)2?S-(G zhS;p(u~_qBum*q}On@$#08}ynd0+spzyVco0%G6;<-i5&016cV5UKzhQ~)fX03|>L z8ej+HzzgVr6_5ZUpa4HW0Ca!=r1%*}Oo;2no&Zz8DfR)L!@r<5 z2viSZpmvo5XqXyAz{Ms7`7kX>fnr1gi4X~7KpznRT0{Xc5Cfz@43PjBMBoH@z_{~( z(Wd}IPJ9hH+%)Fc)0!hrV+(A;76rhtI|YHbEDeERV~Ya>SQg^IvlazFkSK(KG9&{q zkPIR~EeQaaBmwA<20}mBO?)N$(z1@p)5?%}rM| zGF()~Z&Kx@OIDRI$d0T8;JX@vj3^2%pd_+@l9~a4lntZ;AvUIjqIZbuNTR6@hNJoV zk4F;ut)LN4ARuyn2M6F~eg-e#UH%2P;8uPGFW^vq1vj8mdIayFOZo(tphk8C7hpT~ z1Fv8?b_LNR3QD9J+!v=p%}# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/Sample.RazorPages/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf b/src/Sample.RazorPages/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf new file mode 100644 index 0000000000000000000000000000000000000000..1413fc609ab6f21774de0cb7e01360095584f65b GIT binary patch literal 45404 zcmd?Sd0-pWwLh*qi$?oCk~i6sWlOeWJC3|4juU5JNSu9hSVACzERcmjLV&P^utNzg zIE4Kr1=5g!SxTX#Ern9_%4&01rlrW`Z!56xXTGQR4C z3vR~wXq>NDx$c~e?;ia3YjJ*$!C>69a?2$lLyhpI!CFfJsP=|`8@K0|bbMpWwVUEygg0=0x_)HeHpGSJagJNLA3c!$EuOV>j$wi! zbo{vZ(s8tl>@!?}dmNHXo)ABy7ohD7_1G-P@SdJWT8*oeyBVYVW9*vn}&VI4q++W;Z+uz=QTK}^C75!`aFYCX# zf7fC2;o`%!huaTNJAB&VWrx=szU=VLhwnbT`vc<#<`4WI6n_x@AofA~2d90o?1L3w z9!I|#P*NQ)$#9aASijuw>JRld^-t)Zhmy|i-`Iam|IWkguaMR%lhi4p~cX-9& zjfbx}yz}s`4-6>D^+6FzihR)Y!GsUy=_MWi_v7y#KmYi-{iZ+s@ekkq!@Wxz!~BQwiI&ti z>hC&iBe2m(dpNVvSbZe3DVgl(dxHt-k@{xv;&`^c8GJY%&^LpM;}7)B;5Qg5J^E${ z7z~k8eWOucjX6)7q1a%EVtmnND8cclz8R1=X4W@D8IDeUGXxEWe&p>Z*voO0u_2!! zj3dT(Ki+4E;uykKi*yr?w6!BW2FD55PD6SMj`OfBLwXL5EA-9KjpMo4*5Eqs^>4&> z8PezAcn!9jk-h-Oo!E9EjX8W6@EkTHeI<@AY{f|5fMW<-Ez-z)xCvW3()Z#x0oydB zzm4MzY^NdpIF9qMp-jU;99LjlgY@@s+=z`}_%V*xV7nRV*Kwrx-i`FzI0BZ#yOI8# z!SDeNA5b6u9!Imj89v0(g$;dT_y|Yz!3V`i{{_dez8U@##|X9A};s^7vEd!3AcdyVlhVk$v?$O442KIM1-wX^R{U7`JW&lPr3N(%kXfXT_`7w^?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q<2LQ$Hh^(kAJu=! zt8ZGXTacD{(3W{V1$j_{Jc)Ka7t6u}ho`4kF+4@t_0!mCBn z)}o%eA}L)_L?=jw6BIfll7tb3n}?*yLt&XADa=rW>qz=_6s9ziOd5sXjil>FVFx3r zf>Feewk0v#W9>Gp4GacTRr>Sd2T6dWi-{YX`v!D)kCWzG5xQB=?es5ON(%nkwUhNl zV>@xkWWWv*N+{e$(SrExvN6BXzU(Hxlx27{VYHf+LpIbTO+Yu(ltMk<;)3A(LU@ytVYFkYvTa79idMtUFhfxx?P!)2F`prNWW#Fub#l>N2s@nh&n_ zA4{#}|AIs9|A4P0ZF%fy=hDN!t#ifH<)4u2kirK~JUpjQ-J+~cXOZI&dIts;P}UeXslP6zKvpEKSN-$y>kJ^nw2tC9bv zo(|lT@?vZ!{_l|d^8Yh)eEBh*5ABh+Lzjw+?V)o z#P-W7361>E(Y4;@`sv;VKn G`u_lkUM?>H literal 0 HcmV?d00001 diff --git a/src/Sample.RazorPages/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 b/src/Sample.RazorPages/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..64539b54c3751a6d9adb44c8e3a45ba5a73b77f0 GIT binary patch literal 18028 zcmV(~K+nH-Pew8T0RR9107h&84*&oF0I^&E07eM_0Rl|`00000000000000000000 z0000#Mn+Uk92y`7U;vDA2m}!b3WBL5f#qcZHUcCAhI9*rFaQJ~1&1OBl~F%;WnyLq z8)b|&?3j;$^FW}&KmNW53flIFARDZ7_Wz%hpoWaWlgHTHEHf()GI0&dMi#DFPaEt6 zCO)z0v0~C~q&0zBj^;=tv8q{$8JxX)>_`b}WQGgXi46R*CHJ}6r+;}OrvwA{_SY+o zK)H-vy{l!P`+NG*`*x6^PGgHH4!dsolgU4RKj@I8Xz~F6o?quCX&=VQ$Q{w01;M0? zKe|5r<_7CD z=eO3*x!r$aX2iFh3;}xNfx0v;SwBf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`nqH#aGO`;Xy_zbz^rYacIq0AH%4!Oh93TzJ820%ur)8OyeS@K?sF1V(iFO z37Nnqj1z#1{|v7=_CX`lQA|$<1gtuNMHGNJYp1D_k;WQk-b+T6VmUK(x=bWviOZ~T z|4e%SpuaWLWD?qN2%`S*`P;BQBw(B__wTD6epvGdJ+>DBq2oVlf&F*lz+#avb4)3P1c^Mf#olQheVvZ|Z5 z>xXfgmv!5Z^SYn+_x}K5B%G^sRwiez&z9|f!E!#oJlT2kCOV0000$L_|bHBqAarB4TD{W@grX1CUr72@caw0faEd7-K|4L_|cawbojjHdpd6 zI6~Iv5J?-Q4*&oF000000FV;^004t70Z6Qk1Xl{X9oJ{sRC2(cs?- literal 0 HcmV?d00001 diff --git a/src/Sample.RazorPages/wwwroot/lib/bootstrap/dist/js/bootstrap.js b/src/Sample.RazorPages/wwwroot/lib/bootstrap/dist/js/bootstrap.js new file mode 100644 index 0000000..8a2e99a --- /dev/null +++ b/src/Sample.RazorPages/wwwroot/lib/bootstrap/dist/js/bootstrap.js @@ -0,0 +1,2377 @@ +/*! + * Bootstrap v3.3.7 (http://getbootstrap.com) + * Copyright 2011-2016 Twitter, Inc. + * Licensed under the MIT license + */ + +if (typeof jQuery === 'undefined') { + throw new Error('Bootstrap\'s JavaScript requires jQuery') +} + ++function ($) { + 'use strict'; + var version = $.fn.jquery.split(' ')[0].split('.') + if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1) || (version[0] > 3)) { + throw new Error('Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4') + } +}(jQuery); + +/* ======================================================================== + * Bootstrap: transition.js v3.3.7 + * http://getbootstrap.com/javascript/#transitions + * ======================================================================== + * Copyright 2011-2016 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + * ======================================================================== */ + + ++function ($) { + 'use strict'; + + // CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/) + // ============================================================ + + function transitionEnd() { + var el = document.createElement('bootstrap') + + var transEndEventNames = { + WebkitTransition : 'webkitTransitionEnd', + MozTransition : 'transitionend', + OTransition : 'oTransitionEnd otransitionend', + transition : 'transitionend' + } + + for (var name in transEndEventNames) { + if (el.style[name] !== undefined) { + return { end: transEndEventNames[name] } + } + } + + return false // explicit for ie8 ( ._.) + } + + // http://blog.alexmaccaw.com/css-transitions + $.fn.emulateTransitionEnd = function (duration) { + var called = false + var $el = this + $(this).one('bsTransitionEnd', function () { called = true }) + var callback = function () { if (!called) $($el).trigger($.support.transition.end) } + setTimeout(callback, duration) + return this + } + + $(function () { + $.support.transition = transitionEnd() + + if (!$.support.transition) return + + $.event.special.bsTransitionEnd = { + bindType: $.support.transition.end, + delegateType: $.support.transition.end, + handle: function (e) { + if ($(e.target).is(this)) return e.handleObj.handler.apply(this, arguments) + } + } + }) + +}(jQuery); + +/* ======================================================================== + * Bootstrap: alert.js v3.3.7 + * http://getbootstrap.com/javascript/#alerts + * ======================================================================== + * Copyright 2011-2016 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + * ======================================================================== */ + + ++function ($) { + 'use strict'; + + // ALERT CLASS DEFINITION + // ====================== + + var dismiss = '[data-dismiss="alert"]' + var Alert = function (el) { + $(el).on('click', dismiss, this.close) + } + + Alert.VERSION = '3.3.7' + + Alert.TRANSITION_DURATION = 150 + + Alert.prototype.close = function (e) { + var $this = $(this) + var selector = $this.attr('data-target') + + if (!selector) { + selector = $this.attr('href') + selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7 + } + + var $parent = $(selector === '#' ? [] : selector) + + if (e) e.preventDefault() + + if (!$parent.length) { + $parent = $this.closest('.alert') + } + + $parent.trigger(e = $.Event('close.bs.alert')) + + if (e.isDefaultPrevented()) return + + $parent.removeClass('in') + + function removeElement() { + // detach from parent, fire event then clean up data + $parent.detach().trigger('closed.bs.alert').remove() + } + + $.support.transition && $parent.hasClass('fade') ? + $parent + .one('bsTransitionEnd', removeElement) + .emulateTransitionEnd(Alert.TRANSITION_DURATION) : + removeElement() + } + + + // ALERT PLUGIN DEFINITION + // ======================= + + function Plugin(option) { + return this.each(function () { + var $this = $(this) + var data = $this.data('bs.alert') + + if (!data) $this.data('bs.alert', (data = new Alert(this))) + if (typeof option == 'string') data[option].call($this) + }) + } + + var old = $.fn.alert + + $.fn.alert = Plugin + $.fn.alert.Constructor = Alert + + + // ALERT NO CONFLICT + // ================= + + $.fn.alert.noConflict = function () { + $.fn.alert = old + return this + } + + + // ALERT DATA-API + // ============== + + $(document).on('click.bs.alert.data-api', dismiss, Alert.prototype.close) + +}(jQuery); + +/* ======================================================================== + * Bootstrap: button.js v3.3.7 + * http://getbootstrap.com/javascript/#buttons + * ======================================================================== + * Copyright 2011-2016 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + * ======================================================================== */ + + ++function ($) { + 'use strict'; + + // BUTTON PUBLIC CLASS DEFINITION + // ============================== + + var Button = function (element, options) { + this.$element = $(element) + this.options = $.extend({}, Button.DEFAULTS, options) + this.isLoading = false + } + + Button.VERSION = '3.3.7' + + Button.DEFAULTS = { + loadingText: 'loading...' + } + + Button.prototype.setState = function (state) { + var d = 'disabled' + var $el = this.$element + var val = $el.is('input') ? 'val' : 'html' + var data = $el.data() + + state += 'Text' + + if (data.resetText == null) $el.data('resetText', $el[val]()) + + // push to event loop to allow forms to submit + setTimeout($.proxy(function () { + $el[val](data[state] == null ? this.options[state] : data[state]) + + if (state == 'loadingText') { + this.isLoading = true + $el.addClass(d).attr(d, d).prop(d, true) + } else if (this.isLoading) { + this.isLoading = false + $el.removeClass(d).removeAttr(d).prop(d, false) + } + }, this), 0) + } + + Button.prototype.toggle = function () { + var changed = true + var $parent = this.$element.closest('[data-toggle="buttons"]') + + if ($parent.length) { + var $input = this.$element.find('input') + if ($input.prop('type') == 'radio') { + if ($input.prop('checked')) changed = false + $parent.find('.active').removeClass('active') + this.$element.addClass('active') + } else if ($input.prop('type') == 'checkbox') { + if (($input.prop('checked')) !== this.$element.hasClass('active')) changed = false + this.$element.toggleClass('active') + } + $input.prop('checked', this.$element.hasClass('active')) + if (changed) $input.trigger('change') + } else { + this.$element.attr('aria-pressed', !this.$element.hasClass('active')) + this.$element.toggleClass('active') + } + } + + + // BUTTON PLUGIN DEFINITION + // ======================== + + function Plugin(option) { + return this.each(function () { + var $this = $(this) + var data = $this.data('bs.button') + var options = typeof option == 'object' && option + + if (!data) $this.data('bs.button', (data = new Button(this, options))) + + if (option == 'toggle') data.toggle() + else if (option) data.setState(option) + }) + } + + var old = $.fn.button + + $.fn.button = Plugin + $.fn.button.Constructor = Button + + + // BUTTON NO CONFLICT + // ================== + + $.fn.button.noConflict = function () { + $.fn.button = old + return this + } + + + // BUTTON DATA-API + // =============== + + $(document) + .on('click.bs.button.data-api', '[data-toggle^="button"]', function (e) { + var $btn = $(e.target).closest('.btn') + Plugin.call($btn, 'toggle') + if (!($(e.target).is('input[type="radio"], input[type="checkbox"]'))) { + // Prevent double click on radios, and the double selections (so cancellation) on checkboxes + e.preventDefault() + // The target component still receive the focus + if ($btn.is('input,button')) $btn.trigger('focus') + else $btn.find('input:visible,button:visible').first().trigger('focus') + } + }) + .on('focus.bs.button.data-api blur.bs.button.data-api', '[data-toggle^="button"]', function (e) { + $(e.target).closest('.btn').toggleClass('focus', /^focus(in)?$/.test(e.type)) + }) + +}(jQuery); + +/* ======================================================================== + * Bootstrap: carousel.js v3.3.7 + * http://getbootstrap.com/javascript/#carousel + * ======================================================================== + * Copyright 2011-2016 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + * ======================================================================== */ + + ++function ($) { + 'use strict'; + + // CAROUSEL CLASS DEFINITION + // ========================= + + var Carousel = function (element, options) { + this.$element = $(element) + this.$indicators = this.$element.find('.carousel-indicators') + this.options = options + this.paused = null + this.sliding = null + this.interval = null + this.$active = null + this.$items = null + + this.options.keyboard && this.$element.on('keydown.bs.carousel', $.proxy(this.keydown, this)) + + this.options.pause == 'hover' && !('ontouchstart' in document.documentElement) && this.$element + .on('mouseenter.bs.carousel', $.proxy(this.pause, this)) + .on('mouseleave.bs.carousel', $.proxy(this.cycle, this)) + } + + Carousel.VERSION = '3.3.7' + + Carousel.TRANSITION_DURATION = 600 + + Carousel.DEFAULTS = { + interval: 5000, + pause: 'hover', + wrap: true, + keyboard: true + } + + Carousel.prototype.keydown = function (e) { + if (/input|textarea/i.test(e.target.tagName)) return + switch (e.which) { + case 37: this.prev(); break + case 39: this.next(); break + default: return + } + + e.preventDefault() + } + + Carousel.prototype.cycle = function (e) { + e || (this.paused = false) + + this.interval && clearInterval(this.interval) + + this.options.interval + && !this.paused + && (this.interval = setInterval($.proxy(this.next, this), this.options.interval)) + + return this + } + + Carousel.prototype.getItemIndex = function (item) { + this.$items = item.parent().children('.item') + return this.$items.index(item || this.$active) + } + + Carousel.prototype.getItemForDirection = function (direction, active) { + var activeIndex = this.getItemIndex(active) + var willWrap = (direction == 'prev' && activeIndex === 0) + || (direction == 'next' && activeIndex == (this.$items.length - 1)) + if (willWrap && !this.options.wrap) return active + var delta = direction == 'prev' ? -1 : 1 + var itemIndex = (activeIndex + delta) % this.$items.length + return this.$items.eq(itemIndex) + } + + Carousel.prototype.to = function (pos) { + var that = this + var activeIndex = this.getItemIndex(this.$active = this.$element.find('.item.active')) + + if (pos > (this.$items.length - 1) || pos < 0) return + + if (this.sliding) return this.$element.one('slid.bs.carousel', function () { that.to(pos) }) // yes, "slid" + if (activeIndex == pos) return this.pause().cycle() + + return this.slide(pos > activeIndex ? 'next' : 'prev', this.$items.eq(pos)) + } + + Carousel.prototype.pause = function (e) { + e || (this.paused = true) + + if (this.$element.find('.next, .prev').length && $.support.transition) { + this.$element.trigger($.support.transition.end) + this.cycle(true) + } + + this.interval = clearInterval(this.interval) + + return this + } + + Carousel.prototype.next = function () { + if (this.sliding) return + return this.slide('next') + } + + Carousel.prototype.prev = function () { + if (this.sliding) return + return this.slide('prev') + } + + Carousel.prototype.slide = function (type, next) { + var $active = this.$element.find('.item.active') + var $next = next || this.getItemForDirection(type, $active) + var isCycling = this.interval + var direction = type == 'next' ? 'left' : 'right' + var that = this + + if ($next.hasClass('active')) return (this.sliding = false) + + var relatedTarget = $next[0] + var slideEvent = $.Event('slide.bs.carousel', { + relatedTarget: relatedTarget, + direction: direction + }) + this.$element.trigger(slideEvent) + if (slideEvent.isDefaultPrevented()) return + + this.sliding = true + + isCycling && this.pause() + + if (this.$indicators.length) { + this.$indicators.find('.active').removeClass('active') + var $nextIndicator = $(this.$indicators.children()[this.getItemIndex($next)]) + $nextIndicator && $nextIndicator.addClass('active') + } + + var slidEvent = $.Event('slid.bs.carousel', { relatedTarget: relatedTarget, direction: direction }) // yes, "slid" + if ($.support.transition && this.$element.hasClass('slide')) { + $next.addClass(type) + $next[0].offsetWidth // force reflow + $active.addClass(direction) + $next.addClass(direction) + $active + .one('bsTransitionEnd', function () { + $next.removeClass([type, direction].join(' ')).addClass('active') + $active.removeClass(['active', direction].join(' ')) + that.sliding = false + setTimeout(function () { + that.$element.trigger(slidEvent) + }, 0) + }) + .emulateTransitionEnd(Carousel.TRANSITION_DURATION) + } else { + $active.removeClass('active') + $next.addClass('active') + this.sliding = false + this.$element.trigger(slidEvent) + } + + isCycling && this.cycle() + + return this + } + + + // CAROUSEL PLUGIN DEFINITION + // ========================== + + function Plugin(option) { + return this.each(function () { + var $this = $(this) + var data = $this.data('bs.carousel') + var options = $.extend({}, Carousel.DEFAULTS, $this.data(), typeof option == 'object' && option) + var action = typeof option == 'string' ? option : options.slide + + if (!data) $this.data('bs.carousel', (data = new Carousel(this, options))) + if (typeof option == 'number') data.to(option) + else if (action) data[action]() + else if (options.interval) data.pause().cycle() + }) + } + + var old = $.fn.carousel + + $.fn.carousel = Plugin + $.fn.carousel.Constructor = Carousel + + + // CAROUSEL NO CONFLICT + // ==================== + + $.fn.carousel.noConflict = function () { + $.fn.carousel = old + return this + } + + + // CAROUSEL DATA-API + // ================= + + var clickHandler = function (e) { + var href + var $this = $(this) + var $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) // strip for ie7 + if (!$target.hasClass('carousel')) return + var options = $.extend({}, $target.data(), $this.data()) + var slideIndex = $this.attr('data-slide-to') + if (slideIndex) options.interval = false + + Plugin.call($target, options) + + if (slideIndex) { + $target.data('bs.carousel').to(slideIndex) + } + + e.preventDefault() + } + + $(document) + .on('click.bs.carousel.data-api', '[data-slide]', clickHandler) + .on('click.bs.carousel.data-api', '[data-slide-to]', clickHandler) + + $(window).on('load', function () { + $('[data-ride="carousel"]').each(function () { + var $carousel = $(this) + Plugin.call($carousel, $carousel.data()) + }) + }) + +}(jQuery); + +/* ======================================================================== + * Bootstrap: collapse.js v3.3.7 + * http://getbootstrap.com/javascript/#collapse + * ======================================================================== + * Copyright 2011-2016 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + * ======================================================================== */ + +/* jshint latedef: false */ + ++function ($) { + 'use strict'; + + // COLLAPSE PUBLIC CLASS DEFINITION + // ================================ + + var Collapse = function (element, options) { + this.$element = $(element) + this.options = $.extend({}, Collapse.DEFAULTS, options) + this.$trigger = $('[data-toggle="collapse"][href="#' + element.id + '"],' + + '[data-toggle="collapse"][data-target="#' + element.id + '"]') + this.transitioning = null + + if (this.options.parent) { + this.$parent = this.getParent() + } else { + this.addAriaAndCollapsedClass(this.$element, this.$trigger) + } + + if (this.options.toggle) this.toggle() + } + + Collapse.VERSION = '3.3.7' + + Collapse.TRANSITION_DURATION = 350 + + Collapse.DEFAULTS = { + toggle: true + } + + Collapse.prototype.dimension = function () { + var hasWidth = this.$element.hasClass('width') + return hasWidth ? 'width' : 'height' + } + + Collapse.prototype.show = function () { + if (this.transitioning || this.$element.hasClass('in')) return + + var activesData + var actives = this.$parent && this.$parent.children('.panel').children('.in, .collapsing') + + if (actives && actives.length) { + activesData = actives.data('bs.collapse') + if (activesData && activesData.transitioning) return + } + + var startEvent = $.Event('show.bs.collapse') + this.$element.trigger(startEvent) + if (startEvent.isDefaultPrevented()) return + + if (actives && actives.length) { + Plugin.call(actives, 'hide') + activesData || actives.data('bs.collapse', null) + } + + var dimension = this.dimension() + + this.$element + .removeClass('collapse') + .addClass('collapsing')[dimension](0) + .attr('aria-expanded', true) + + this.$trigger + .removeClass('collapsed') + .attr('aria-expanded', true) + + this.transitioning = 1 + + var complete = function () { + this.$element + .removeClass('collapsing') + .addClass('collapse in')[dimension]('') + this.transitioning = 0 + this.$element + .trigger('shown.bs.collapse') + } + + if (!$.support.transition) return complete.call(this) + + var scrollSize = $.camelCase(['scroll', dimension].join('-')) + + this.$element + .one('bsTransitionEnd', $.proxy(complete, this)) + .emulateTransitionEnd(Collapse.TRANSITION_DURATION)[dimension](this.$element[0][scrollSize]) + } + + Collapse.prototype.hide = function () { + if (this.transitioning || !this.$element.hasClass('in')) return + + var startEvent = $.Event('hide.bs.collapse') + this.$element.trigger(startEvent) + if (startEvent.isDefaultPrevented()) return + + var dimension = this.dimension() + + this.$element[dimension](this.$element[dimension]())[0].offsetHeight + + this.$element + .addClass('collapsing') + .removeClass('collapse in') + .attr('aria-expanded', false) + + this.$trigger + .addClass('collapsed') + .attr('aria-expanded', false) + + this.transitioning = 1 + + var complete = function () { + this.transitioning = 0 + this.$element + .removeClass('collapsing') + .addClass('collapse') + .trigger('hidden.bs.collapse') + } + + if (!$.support.transition) return complete.call(this) + + this.$element + [dimension](0) + .one('bsTransitionEnd', $.proxy(complete, this)) + .emulateTransitionEnd(Collapse.TRANSITION_DURATION) + } + + Collapse.prototype.toggle = function () { + this[this.$element.hasClass('in') ? 'hide' : 'show']() + } + + Collapse.prototype.getParent = function () { + return $(this.options.parent) + .find('[data-toggle="collapse"][data-parent="' + this.options.parent + '"]') + .each($.proxy(function (i, element) { + var $element = $(element) + this.addAriaAndCollapsedClass(getTargetFromTrigger($element), $element) + }, this)) + .end() + } + + Collapse.prototype.addAriaAndCollapsedClass = function ($element, $trigger) { + var isOpen = $element.hasClass('in') + + $element.attr('aria-expanded', isOpen) + $trigger + .toggleClass('collapsed', !isOpen) + .attr('aria-expanded', isOpen) + } + + function getTargetFromTrigger($trigger) { + var href + var target = $trigger.attr('data-target') + || (href = $trigger.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') // strip for ie7 + + return $(target) + } + + + // COLLAPSE PLUGIN DEFINITION + // ========================== + + function Plugin(option) { + return this.each(function () { + var $this = $(this) + var data = $this.data('bs.collapse') + var options = $.extend({}, Collapse.DEFAULTS, $this.data(), typeof option == 'object' && option) + + if (!data && options.toggle && /show|hide/.test(option)) options.toggle = false + if (!data) $this.data('bs.collapse', (data = new Collapse(this, options))) + if (typeof option == 'string') data[option]() + }) + } + + var old = $.fn.collapse + + $.fn.collapse = Plugin + $.fn.collapse.Constructor = Collapse + + + // COLLAPSE NO CONFLICT + // ==================== + + $.fn.collapse.noConflict = function () { + $.fn.collapse = old + return this + } + + + // COLLAPSE DATA-API + // ================= + + $(document).on('click.bs.collapse.data-api', '[data-toggle="collapse"]', function (e) { + var $this = $(this) + + if (!$this.attr('data-target')) e.preventDefault() + + var $target = getTargetFromTrigger($this) + var data = $target.data('bs.collapse') + var option = data ? 'toggle' : $this.data() + + Plugin.call($target, option) + }) + +}(jQuery); + +/* ======================================================================== + * Bootstrap: dropdown.js v3.3.7 + * http://getbootstrap.com/javascript/#dropdowns + * ======================================================================== + * Copyright 2011-2016 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + * ======================================================================== */ + + ++function ($) { + 'use strict'; + + // DROPDOWN CLASS DEFINITION + // ========================= + + var backdrop = '.dropdown-backdrop' + var toggle = '[data-toggle="dropdown"]' + var Dropdown = function (element) { + $(element).on('click.bs.dropdown', this.toggle) + } + + Dropdown.VERSION = '3.3.7' + + function getParent($this) { + var selector = $this.attr('data-target') + + if (!selector) { + selector = $this.attr('href') + selector = selector && /#[A-Za-z]/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7 + } + + var $parent = selector && $(selector) + + return $parent && $parent.length ? $parent : $this.parent() + } + + function clearMenus(e) { + if (e && e.which === 3) return + $(backdrop).remove() + $(toggle).each(function () { + var $this = $(this) + var $parent = getParent($this) + var relatedTarget = { relatedTarget: this } + + if (!$parent.hasClass('open')) return + + if (e && e.type == 'click' && /input|textarea/i.test(e.target.tagName) && $.contains($parent[0], e.target)) return + + $parent.trigger(e = $.Event('hide.bs.dropdown', relatedTarget)) + + if (e.isDefaultPrevented()) return + + $this.attr('aria-expanded', 'false') + $parent.removeClass('open').trigger($.Event('hidden.bs.dropdown', relatedTarget)) + }) + } + + Dropdown.prototype.toggle = function (e) { + var $this = $(this) + + if ($this.is('.disabled, :disabled')) return + + var $parent = getParent($this) + var isActive = $parent.hasClass('open') + + clearMenus() + + if (!isActive) { + if ('ontouchstart' in document.documentElement && !$parent.closest('.navbar-nav').length) { + // if mobile we use a backdrop because click events don't delegate + $(document.createElement('div')) + .addClass('dropdown-backdrop') + .insertAfter($(this)) + .on('click', clearMenus) + } + + var relatedTarget = { relatedTarget: this } + $parent.trigger(e = $.Event('show.bs.dropdown', relatedTarget)) + + if (e.isDefaultPrevented()) return + + $this + .trigger('focus') + .attr('aria-expanded', 'true') + + $parent + .toggleClass('open') + .trigger($.Event('shown.bs.dropdown', relatedTarget)) + } + + return false + } + + Dropdown.prototype.keydown = function (e) { + if (!/(38|40|27|32)/.test(e.which) || /input|textarea/i.test(e.target.tagName)) return + + var $this = $(this) + + e.preventDefault() + e.stopPropagation() + + if ($this.is('.disabled, :disabled')) return + + var $parent = getParent($this) + var isActive = $parent.hasClass('open') + + if (!isActive && e.which != 27 || isActive && e.which == 27) { + if (e.which == 27) $parent.find(toggle).trigger('focus') + return $this.trigger('click') + } + + var desc = ' li:not(.disabled):visible a' + var $items = $parent.find('.dropdown-menu' + desc) + + if (!$items.length) return + + var index = $items.index(e.target) + + if (e.which == 38 && index > 0) index-- // up + if (e.which == 40 && index < $items.length - 1) index++ // down + if (!~index) index = 0 + + $items.eq(index).trigger('focus') + } + + + // DROPDOWN PLUGIN DEFINITION + // ========================== + + function Plugin(option) { + return this.each(function () { + var $this = $(this) + var data = $this.data('bs.dropdown') + + if (!data) $this.data('bs.dropdown', (data = new Dropdown(this))) + if (typeof option == 'string') data[option].call($this) + }) + } + + var old = $.fn.dropdown + + $.fn.dropdown = Plugin + $.fn.dropdown.Constructor = Dropdown + + + // DROPDOWN NO CONFLICT + // ==================== + + $.fn.dropdown.noConflict = function () { + $.fn.dropdown = old + return this + } + + + // APPLY TO STANDARD DROPDOWN ELEMENTS + // =================================== + + $(document) + .on('click.bs.dropdown.data-api', clearMenus) + .on('click.bs.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() }) + .on('click.bs.dropdown.data-api', toggle, Dropdown.prototype.toggle) + .on('keydown.bs.dropdown.data-api', toggle, Dropdown.prototype.keydown) + .on('keydown.bs.dropdown.data-api', '.dropdown-menu', Dropdown.prototype.keydown) + +}(jQuery); + +/* ======================================================================== + * Bootstrap: modal.js v3.3.7 + * http://getbootstrap.com/javascript/#modals + * ======================================================================== + * Copyright 2011-2016 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + * ======================================================================== */ + + ++function ($) { + 'use strict'; + + // MODAL CLASS DEFINITION + // ====================== + + var Modal = function (element, options) { + this.options = options + this.$body = $(document.body) + this.$element = $(element) + this.$dialog = this.$element.find('.modal-dialog') + this.$backdrop = null + this.isShown = null + this.originalBodyPad = null + this.scrollbarWidth = 0 + this.ignoreBackdropClick = false + + if (this.options.remote) { + this.$element + .find('.modal-content') + .load(this.options.remote, $.proxy(function () { + this.$element.trigger('loaded.bs.modal') + }, this)) + } + } + + Modal.VERSION = '3.3.7' + + Modal.TRANSITION_DURATION = 300 + Modal.BACKDROP_TRANSITION_DURATION = 150 + + Modal.DEFAULTS = { + backdrop: true, + keyboard: true, + show: true + } + + Modal.prototype.toggle = function (_relatedTarget) { + return this.isShown ? this.hide() : this.show(_relatedTarget) + } + + Modal.prototype.show = function (_relatedTarget) { + var that = this + var e = $.Event('show.bs.modal', { relatedTarget: _relatedTarget }) + + this.$element.trigger(e) + + if (this.isShown || e.isDefaultPrevented()) return + + this.isShown = true + + this.checkScrollbar() + this.setScrollbar() + this.$body.addClass('modal-open') + + this.escape() + this.resize() + + this.$element.on('click.dismiss.bs.modal', '[data-dismiss="modal"]', $.proxy(this.hide, this)) + + this.$dialog.on('mousedown.dismiss.bs.modal', function () { + that.$element.one('mouseup.dismiss.bs.modal', function (e) { + if ($(e.target).is(that.$element)) that.ignoreBackdropClick = true + }) + }) + + this.backdrop(function () { + var transition = $.support.transition && that.$element.hasClass('fade') + + if (!that.$element.parent().length) { + that.$element.appendTo(that.$body) // don't move modals dom position + } + + that.$element + .show() + .scrollTop(0) + + that.adjustDialog() + + if (transition) { + that.$element[0].offsetWidth // force reflow + } + + that.$element.addClass('in') + + that.enforceFocus() + + var e = $.Event('shown.bs.modal', { relatedTarget: _relatedTarget }) + + transition ? + that.$dialog // wait for modal to slide in + .one('bsTransitionEnd', function () { + that.$element.trigger('focus').trigger(e) + }) + .emulateTransitionEnd(Modal.TRANSITION_DURATION) : + that.$element.trigger('focus').trigger(e) + }) + } + + Modal.prototype.hide = function (e) { + if (e) e.preventDefault() + + e = $.Event('hide.bs.modal') + + this.$element.trigger(e) + + if (!this.isShown || e.isDefaultPrevented()) return + + this.isShown = false + + this.escape() + this.resize() + + $(document).off('focusin.bs.modal') + + this.$element + .removeClass('in') + .off('click.dismiss.bs.modal') + .off('mouseup.dismiss.bs.modal') + + this.$dialog.off('mousedown.dismiss.bs.modal') + + $.support.transition && this.$element.hasClass('fade') ? + this.$element + .one('bsTransitionEnd', $.proxy(this.hideModal, this)) + .emulateTransitionEnd(Modal.TRANSITION_DURATION) : + this.hideModal() + } + + Modal.prototype.enforceFocus = function () { + $(document) + .off('focusin.bs.modal') // guard against infinite focus loop + .on('focusin.bs.modal', $.proxy(function (e) { + if (document !== e.target && + this.$element[0] !== e.target && + !this.$element.has(e.target).length) { + this.$element.trigger('focus') + } + }, this)) + } + + Modal.prototype.escape = function () { + if (this.isShown && this.options.keyboard) { + this.$element.on('keydown.dismiss.bs.modal', $.proxy(function (e) { + e.which == 27 && this.hide() + }, this)) + } else if (!this.isShown) { + this.$element.off('keydown.dismiss.bs.modal') + } + } + + Modal.prototype.resize = function () { + if (this.isShown) { + $(window).on('resize.bs.modal', $.proxy(this.handleUpdate, this)) + } else { + $(window).off('resize.bs.modal') + } + } + + Modal.prototype.hideModal = function () { + var that = this + this.$element.hide() + this.backdrop(function () { + that.$body.removeClass('modal-open') + that.resetAdjustments() + that.resetScrollbar() + that.$element.trigger('hidden.bs.modal') + }) + } + + Modal.prototype.removeBackdrop = function () { + this.$backdrop && this.$backdrop.remove() + this.$backdrop = null + } + + Modal.prototype.backdrop = function (callback) { + var that = this + var animate = this.$element.hasClass('fade') ? 'fade' : '' + + if (this.isShown && this.options.backdrop) { + var doAnimate = $.support.transition && animate + + this.$backdrop = $(document.createElement('div')) + .addClass('modal-backdrop ' + animate) + .appendTo(this.$body) + + this.$element.on('click.dismiss.bs.modal', $.proxy(function (e) { + if (this.ignoreBackdropClick) { + this.ignoreBackdropClick = false + return + } + if (e.target !== e.currentTarget) return + this.options.backdrop == 'static' + ? this.$element[0].focus() + : this.hide() + }, this)) + + if (doAnimate) this.$backdrop[0].offsetWidth // force reflow + + this.$backdrop.addClass('in') + + if (!callback) return + + doAnimate ? + this.$backdrop + .one('bsTransitionEnd', callback) + .emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION) : + callback() + + } else if (!this.isShown && this.$backdrop) { + this.$backdrop.removeClass('in') + + var callbackRemove = function () { + that.removeBackdrop() + callback && callback() + } + $.support.transition && this.$element.hasClass('fade') ? + this.$backdrop + .one('bsTransitionEnd', callbackRemove) + .emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION) : + callbackRemove() + + } else if (callback) { + callback() + } + } + + // these following methods are used to handle overflowing modals + + Modal.prototype.handleUpdate = function () { + this.adjustDialog() + } + + Modal.prototype.adjustDialog = function () { + var modalIsOverflowing = this.$element[0].scrollHeight > document.documentElement.clientHeight + + this.$element.css({ + paddingLeft: !this.bodyIsOverflowing && modalIsOverflowing ? this.scrollbarWidth : '', + paddingRight: this.bodyIsOverflowing && !modalIsOverflowing ? this.scrollbarWidth : '' + }) + } + + Modal.prototype.resetAdjustments = function () { + this.$element.css({ + paddingLeft: '', + paddingRight: '' + }) + } + + Modal.prototype.checkScrollbar = function () { + var fullWindowWidth = window.innerWidth + if (!fullWindowWidth) { // workaround for missing window.innerWidth in IE8 + var documentElementRect = document.documentElement.getBoundingClientRect() + fullWindowWidth = documentElementRect.right - Math.abs(documentElementRect.left) + } + this.bodyIsOverflowing = document.body.clientWidth < fullWindowWidth + this.scrollbarWidth = this.measureScrollbar() + } + + Modal.prototype.setScrollbar = function () { + var bodyPad = parseInt((this.$body.css('padding-right') || 0), 10) + this.originalBodyPad = document.body.style.paddingRight || '' + if (this.bodyIsOverflowing) this.$body.css('padding-right', bodyPad + this.scrollbarWidth) + } + + Modal.prototype.resetScrollbar = function () { + this.$body.css('padding-right', this.originalBodyPad) + } + + Modal.prototype.measureScrollbar = function () { // thx walsh + var scrollDiv = document.createElement('div') + scrollDiv.className = 'modal-scrollbar-measure' + this.$body.append(scrollDiv) + var scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth + this.$body[0].removeChild(scrollDiv) + return scrollbarWidth + } + + + // MODAL PLUGIN DEFINITION + // ======================= + + function Plugin(option, _relatedTarget) { + return this.each(function () { + var $this = $(this) + var data = $this.data('bs.modal') + var options = $.extend({}, Modal.DEFAULTS, $this.data(), typeof option == 'object' && option) + + if (!data) $this.data('bs.modal', (data = new Modal(this, options))) + if (typeof option == 'string') data[option](_relatedTarget) + else if (options.show) data.show(_relatedTarget) + }) + } + + var old = $.fn.modal + + $.fn.modal = Plugin + $.fn.modal.Constructor = Modal + + + // MODAL NO CONFLICT + // ================= + + $.fn.modal.noConflict = function () { + $.fn.modal = old + return this + } + + + // MODAL DATA-API + // ============== + + $(document).on('click.bs.modal.data-api', '[data-toggle="modal"]', function (e) { + var $this = $(this) + var href = $this.attr('href') + var $target = $($this.attr('data-target') || (href && href.replace(/.*(?=#[^\s]+$)/, ''))) // strip for ie7 + var option = $target.data('bs.modal') ? 'toggle' : $.extend({ remote: !/#/.test(href) && href }, $target.data(), $this.data()) + + if ($this.is('a')) e.preventDefault() + + $target.one('show.bs.modal', function (showEvent) { + if (showEvent.isDefaultPrevented()) return // only register focus restorer if modal will actually get shown + $target.one('hidden.bs.modal', function () { + $this.is(':visible') && $this.trigger('focus') + }) + }) + Plugin.call($target, option, this) + }) + +}(jQuery); + +/* ======================================================================== + * Bootstrap: tooltip.js v3.3.7 + * http://getbootstrap.com/javascript/#tooltip + * Inspired by the original jQuery.tipsy by Jason Frame + * ======================================================================== + * Copyright 2011-2016 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + * ======================================================================== */ + + ++function ($) { + 'use strict'; + + // TOOLTIP PUBLIC CLASS DEFINITION + // =============================== + + var Tooltip = function (element, options) { + this.type = null + this.options = null + this.enabled = null + this.timeout = null + this.hoverState = null + this.$element = null + this.inState = null + + this.init('tooltip', element, options) + } + + Tooltip.VERSION = '3.3.7' + + Tooltip.TRANSITION_DURATION = 150 + + Tooltip.DEFAULTS = { + animation: true, + placement: 'top', + selector: false, + template: '', + trigger: 'hover focus', + title: '', + delay: 0, + html: false, + container: false, + viewport: { + selector: 'body', + padding: 0 + } + } + + Tooltip.prototype.init = function (type, element, options) { + this.enabled = true + this.type = type + this.$element = $(element) + this.options = this.getOptions(options) + this.$viewport = this.options.viewport && $($.isFunction(this.options.viewport) ? this.options.viewport.call(this, this.$element) : (this.options.viewport.selector || this.options.viewport)) + this.inState = { click: false, hover: false, focus: false } + + if (this.$element[0] instanceof document.constructor && !this.options.selector) { + throw new Error('`selector` option must be specified when initializing ' + this.type + ' on the window.document object!') + } + + var triggers = this.options.trigger.split(' ') + + for (var i = triggers.length; i--;) { + var trigger = triggers[i] + + if (trigger == 'click') { + this.$element.on('click.' + this.type, this.options.selector, $.proxy(this.toggle, this)) + } else if (trigger != 'manual') { + var eventIn = trigger == 'hover' ? 'mouseenter' : 'focusin' + var eventOut = trigger == 'hover' ? 'mouseleave' : 'focusout' + + this.$element.on(eventIn + '.' + this.type, this.options.selector, $.proxy(this.enter, this)) + this.$element.on(eventOut + '.' + this.type, this.options.selector, $.proxy(this.leave, this)) + } + } + + this.options.selector ? + (this._options = $.extend({}, this.options, { trigger: 'manual', selector: '' })) : + this.fixTitle() + } + + Tooltip.prototype.getDefaults = function () { + return Tooltip.DEFAULTS + } + + Tooltip.prototype.getOptions = function (options) { + options = $.extend({}, this.getDefaults(), this.$element.data(), options) + + if (options.delay && typeof options.delay == 'number') { + options.delay = { + show: options.delay, + hide: options.delay + } + } + + return options + } + + Tooltip.prototype.getDelegateOptions = function () { + var options = {} + var defaults = this.getDefaults() + + this._options && $.each(this._options, function (key, value) { + if (defaults[key] != value) options[key] = value + }) + + return options + } + + Tooltip.prototype.enter = function (obj) { + var self = obj instanceof this.constructor ? + obj : $(obj.currentTarget).data('bs.' + this.type) + + if (!self) { + self = new this.constructor(obj.currentTarget, this.getDelegateOptions()) + $(obj.currentTarget).data('bs.' + this.type, self) + } + + if (obj instanceof $.Event) { + self.inState[obj.type == 'focusin' ? 'focus' : 'hover'] = true + } + + if (self.tip().hasClass('in') || self.hoverState == 'in') { + self.hoverState = 'in' + return + } + + clearTimeout(self.timeout) + + self.hoverState = 'in' + + if (!self.options.delay || !self.options.delay.show) return self.show() + + self.timeout = setTimeout(function () { + if (self.hoverState == 'in') self.show() + }, self.options.delay.show) + } + + Tooltip.prototype.isInStateTrue = function () { + for (var key in this.inState) { + if (this.inState[key]) return true + } + + return false + } + + Tooltip.prototype.leave = function (obj) { + var self = obj instanceof this.constructor ? + obj : $(obj.currentTarget).data('bs.' + this.type) + + if (!self) { + self = new this.constructor(obj.currentTarget, this.getDelegateOptions()) + $(obj.currentTarget).data('bs.' + this.type, self) + } + + if (obj instanceof $.Event) { + self.inState[obj.type == 'focusout' ? 'focus' : 'hover'] = false + } + + if (self.isInStateTrue()) return + + clearTimeout(self.timeout) + + self.hoverState = 'out' + + if (!self.options.delay || !self.options.delay.hide) return self.hide() + + self.timeout = setTimeout(function () { + if (self.hoverState == 'out') self.hide() + }, self.options.delay.hide) + } + + Tooltip.prototype.show = function () { + var e = $.Event('show.bs.' + this.type) + + if (this.hasContent() && this.enabled) { + this.$element.trigger(e) + + var inDom = $.contains(this.$element[0].ownerDocument.documentElement, this.$element[0]) + if (e.isDefaultPrevented() || !inDom) return + var that = this + + var $tip = this.tip() + + var tipId = this.getUID(this.type) + + this.setContent() + $tip.attr('id', tipId) + this.$element.attr('aria-describedby', tipId) + + if (this.options.animation) $tip.addClass('fade') + + var placement = typeof this.options.placement == 'function' ? + this.options.placement.call(this, $tip[0], this.$element[0]) : + this.options.placement + + var autoToken = /\s?auto?\s?/i + var autoPlace = autoToken.test(placement) + if (autoPlace) placement = placement.replace(autoToken, '') || 'top' + + $tip + .detach() + .css({ top: 0, left: 0, display: 'block' }) + .addClass(placement) + .data('bs.' + this.type, this) + + this.options.container ? $tip.appendTo(this.options.container) : $tip.insertAfter(this.$element) + this.$element.trigger('inserted.bs.' + this.type) + + var pos = this.getPosition() + var actualWidth = $tip[0].offsetWidth + var actualHeight = $tip[0].offsetHeight + + if (autoPlace) { + var orgPlacement = placement + var viewportDim = this.getPosition(this.$viewport) + + placement = placement == 'bottom' && pos.bottom + actualHeight > viewportDim.bottom ? 'top' : + placement == 'top' && pos.top - actualHeight < viewportDim.top ? 'bottom' : + placement == 'right' && pos.right + actualWidth > viewportDim.width ? 'left' : + placement == 'left' && pos.left - actualWidth < viewportDim.left ? 'right' : + placement + + $tip + .removeClass(orgPlacement) + .addClass(placement) + } + + var calculatedOffset = this.getCalculatedOffset(placement, pos, actualWidth, actualHeight) + + this.applyPlacement(calculatedOffset, placement) + + var complete = function () { + var prevHoverState = that.hoverState + that.$element.trigger('shown.bs.' + that.type) + that.hoverState = null + + if (prevHoverState == 'out') that.leave(that) + } + + $.support.transition && this.$tip.hasClass('fade') ? + $tip + .one('bsTransitionEnd', complete) + .emulateTransitionEnd(Tooltip.TRANSITION_DURATION) : + complete() + } + } + + Tooltip.prototype.applyPlacement = function (offset, placement) { + var $tip = this.tip() + var width = $tip[0].offsetWidth + var height = $tip[0].offsetHeight + + // manually read margins because getBoundingClientRect includes difference + var marginTop = parseInt($tip.css('margin-top'), 10) + var marginLeft = parseInt($tip.css('margin-left'), 10) + + // we must check for NaN for ie 8/9 + if (isNaN(marginTop)) marginTop = 0 + if (isNaN(marginLeft)) marginLeft = 0 + + offset.top += marginTop + offset.left += marginLeft + + // $.fn.offset doesn't round pixel values + // so we use setOffset directly with our own function B-0 + $.offset.setOffset($tip[0], $.extend({ + using: function (props) { + $tip.css({ + top: Math.round(props.top), + left: Math.round(props.left) + }) + } + }, offset), 0) + + $tip.addClass('in') + + // check to see if placing tip in new offset caused the tip to resize itself + var actualWidth = $tip[0].offsetWidth + var actualHeight = $tip[0].offsetHeight + + if (placement == 'top' && actualHeight != height) { + offset.top = offset.top + height - actualHeight + } + + var delta = this.getViewportAdjustedDelta(placement, offset, actualWidth, actualHeight) + + if (delta.left) offset.left += delta.left + else offset.top += delta.top + + var isVertical = /top|bottom/.test(placement) + var arrowDelta = isVertical ? delta.left * 2 - width + actualWidth : delta.top * 2 - height + actualHeight + var arrowOffsetPosition = isVertical ? 'offsetWidth' : 'offsetHeight' + + $tip.offset(offset) + this.replaceArrow(arrowDelta, $tip[0][arrowOffsetPosition], isVertical) + } + + Tooltip.prototype.replaceArrow = function (delta, dimension, isVertical) { + this.arrow() + .css(isVertical ? 'left' : 'top', 50 * (1 - delta / dimension) + '%') + .css(isVertical ? 'top' : 'left', '') + } + + Tooltip.prototype.setContent = function () { + var $tip = this.tip() + var title = this.getTitle() + + $tip.find('.tooltip-inner')[this.options.html ? 'html' : 'text'](title) + $tip.removeClass('fade in top bottom left right') + } + + Tooltip.prototype.hide = function (callback) { + var that = this + var $tip = $(this.$tip) + var e = $.Event('hide.bs.' + this.type) + + function complete() { + if (that.hoverState != 'in') $tip.detach() + if (that.$element) { // TODO: Check whether guarding this code with this `if` is really necessary. + that.$element + .removeAttr('aria-describedby') + .trigger('hidden.bs.' + that.type) + } + callback && callback() + } + + this.$element.trigger(e) + + if (e.isDefaultPrevented()) return + + $tip.removeClass('in') + + $.support.transition && $tip.hasClass('fade') ? + $tip + .one('bsTransitionEnd', complete) + .emulateTransitionEnd(Tooltip.TRANSITION_DURATION) : + complete() + + this.hoverState = null + + return this + } + + Tooltip.prototype.fixTitle = function () { + var $e = this.$element + if ($e.attr('title') || typeof $e.attr('data-original-title') != 'string') { + $e.attr('data-original-title', $e.attr('title') || '').attr('title', '') + } + } + + Tooltip.prototype.hasContent = function () { + return this.getTitle() + } + + Tooltip.prototype.getPosition = function ($element) { + $element = $element || this.$element + + var el = $element[0] + var isBody = el.tagName == 'BODY' + + var elRect = el.getBoundingClientRect() + if (elRect.width == null) { + // width and height are missing in IE8, so compute them manually; see https://github.com/twbs/bootstrap/issues/14093 + elRect = $.extend({}, elRect, { width: elRect.right - elRect.left, height: elRect.bottom - elRect.top }) + } + var isSvg = window.SVGElement && el instanceof window.SVGElement + // Avoid using $.offset() on SVGs since it gives incorrect results in jQuery 3. + // See https://github.com/twbs/bootstrap/issues/20280 + var elOffset = isBody ? { top: 0, left: 0 } : (isSvg ? null : $element.offset()) + var scroll = { scroll: isBody ? document.documentElement.scrollTop || document.body.scrollTop : $element.scrollTop() } + var outerDims = isBody ? { width: $(window).width(), height: $(window).height() } : null + + return $.extend({}, elRect, scroll, outerDims, elOffset) + } + + Tooltip.prototype.getCalculatedOffset = function (placement, pos, actualWidth, actualHeight) { + return placement == 'bottom' ? { top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2 } : + placement == 'top' ? { top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2 } : + placement == 'left' ? { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth } : + /* placement == 'right' */ { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width } + + } + + Tooltip.prototype.getViewportAdjustedDelta = function (placement, pos, actualWidth, actualHeight) { + var delta = { top: 0, left: 0 } + if (!this.$viewport) return delta + + var viewportPadding = this.options.viewport && this.options.viewport.padding || 0 + var viewportDimensions = this.getPosition(this.$viewport) + + if (/right|left/.test(placement)) { + var topEdgeOffset = pos.top - viewportPadding - viewportDimensions.scroll + var bottomEdgeOffset = pos.top + viewportPadding - viewportDimensions.scroll + actualHeight + if (topEdgeOffset < viewportDimensions.top) { // top overflow + delta.top = viewportDimensions.top - topEdgeOffset + } else if (bottomEdgeOffset > viewportDimensions.top + viewportDimensions.height) { // bottom overflow + delta.top = viewportDimensions.top + viewportDimensions.height - bottomEdgeOffset + } + } else { + var leftEdgeOffset = pos.left - viewportPadding + var rightEdgeOffset = pos.left + viewportPadding + actualWidth + if (leftEdgeOffset < viewportDimensions.left) { // left overflow + delta.left = viewportDimensions.left - leftEdgeOffset + } else if (rightEdgeOffset > viewportDimensions.right) { // right overflow + delta.left = viewportDimensions.left + viewportDimensions.width - rightEdgeOffset + } + } + + return delta + } + + Tooltip.prototype.getTitle = function () { + var title + var $e = this.$element + var o = this.options + + title = $e.attr('data-original-title') + || (typeof o.title == 'function' ? o.title.call($e[0]) : o.title) + + return title + } + + Tooltip.prototype.getUID = function (prefix) { + do prefix += ~~(Math.random() * 1000000) + while (document.getElementById(prefix)) + return prefix + } + + Tooltip.prototype.tip = function () { + if (!this.$tip) { + this.$tip = $(this.options.template) + if (this.$tip.length != 1) { + throw new Error(this.type + ' `template` option must consist of exactly 1 top-level element!') + } + } + return this.$tip + } + + Tooltip.prototype.arrow = function () { + return (this.$arrow = this.$arrow || this.tip().find('.tooltip-arrow')) + } + + Tooltip.prototype.enable = function () { + this.enabled = true + } + + Tooltip.prototype.disable = function () { + this.enabled = false + } + + Tooltip.prototype.toggleEnabled = function () { + this.enabled = !this.enabled + } + + Tooltip.prototype.toggle = function (e) { + var self = this + if (e) { + self = $(e.currentTarget).data('bs.' + this.type) + if (!self) { + self = new this.constructor(e.currentTarget, this.getDelegateOptions()) + $(e.currentTarget).data('bs.' + this.type, self) + } + } + + if (e) { + self.inState.click = !self.inState.click + if (self.isInStateTrue()) self.enter(self) + else self.leave(self) + } else { + self.tip().hasClass('in') ? self.leave(self) : self.enter(self) + } + } + + Tooltip.prototype.destroy = function () { + var that = this + clearTimeout(this.timeout) + this.hide(function () { + that.$element.off('.' + that.type).removeData('bs.' + that.type) + if (that.$tip) { + that.$tip.detach() + } + that.$tip = null + that.$arrow = null + that.$viewport = null + that.$element = null + }) + } + + + // TOOLTIP PLUGIN DEFINITION + // ========================= + + function Plugin(option) { + return this.each(function () { + var $this = $(this) + var data = $this.data('bs.tooltip') + var options = typeof option == 'object' && option + + if (!data && /destroy|hide/.test(option)) return + if (!data) $this.data('bs.tooltip', (data = new Tooltip(this, options))) + if (typeof option == 'string') data[option]() + }) + } + + var old = $.fn.tooltip + + $.fn.tooltip = Plugin + $.fn.tooltip.Constructor = Tooltip + + + // TOOLTIP NO CONFLICT + // =================== + + $.fn.tooltip.noConflict = function () { + $.fn.tooltip = old + return this + } + +}(jQuery); + +/* ======================================================================== + * Bootstrap: popover.js v3.3.7 + * http://getbootstrap.com/javascript/#popovers + * ======================================================================== + * Copyright 2011-2016 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + * ======================================================================== */ + + ++function ($) { + 'use strict'; + + // POPOVER PUBLIC CLASS DEFINITION + // =============================== + + var Popover = function (element, options) { + this.init('popover', element, options) + } + + if (!$.fn.tooltip) throw new Error('Popover requires tooltip.js') + + Popover.VERSION = '3.3.7' + + Popover.DEFAULTS = $.extend({}, $.fn.tooltip.Constructor.DEFAULTS, { + placement: 'right', + trigger: 'click', + content: '', + template: '' + }) + + + // NOTE: POPOVER EXTENDS tooltip.js + // ================================ + + Popover.prototype = $.extend({}, $.fn.tooltip.Constructor.prototype) + + Popover.prototype.constructor = Popover + + Popover.prototype.getDefaults = function () { + return Popover.DEFAULTS + } + + Popover.prototype.setContent = function () { + var $tip = this.tip() + var title = this.getTitle() + var content = this.getContent() + + $tip.find('.popover-title')[this.options.html ? 'html' : 'text'](title) + $tip.find('.popover-content').children().detach().end()[ // we use append for html objects to maintain js events + this.options.html ? (typeof content == 'string' ? 'html' : 'append') : 'text' + ](content) + + $tip.removeClass('fade top bottom left right in') + + // IE8 doesn't accept hiding via the `:empty` pseudo selector, we have to do + // this manually by checking the contents. + if (!$tip.find('.popover-title').html()) $tip.find('.popover-title').hide() + } + + Popover.prototype.hasContent = function () { + return this.getTitle() || this.getContent() + } + + Popover.prototype.getContent = function () { + var $e = this.$element + var o = this.options + + return $e.attr('data-content') + || (typeof o.content == 'function' ? + o.content.call($e[0]) : + o.content) + } + + Popover.prototype.arrow = function () { + return (this.$arrow = this.$arrow || this.tip().find('.arrow')) + } + + + // POPOVER PLUGIN DEFINITION + // ========================= + + function Plugin(option) { + return this.each(function () { + var $this = $(this) + var data = $this.data('bs.popover') + var options = typeof option == 'object' && option + + if (!data && /destroy|hide/.test(option)) return + if (!data) $this.data('bs.popover', (data = new Popover(this, options))) + if (typeof option == 'string') data[option]() + }) + } + + var old = $.fn.popover + + $.fn.popover = Plugin + $.fn.popover.Constructor = Popover + + + // POPOVER NO CONFLICT + // =================== + + $.fn.popover.noConflict = function () { + $.fn.popover = old + return this + } + +}(jQuery); + +/* ======================================================================== + * Bootstrap: scrollspy.js v3.3.7 + * http://getbootstrap.com/javascript/#scrollspy + * ======================================================================== + * Copyright 2011-2016 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + * ======================================================================== */ + + ++function ($) { + 'use strict'; + + // SCROLLSPY CLASS DEFINITION + // ========================== + + function ScrollSpy(element, options) { + this.$body = $(document.body) + this.$scrollElement = $(element).is(document.body) ? $(window) : $(element) + this.options = $.extend({}, ScrollSpy.DEFAULTS, options) + this.selector = (this.options.target || '') + ' .nav li > a' + this.offsets = [] + this.targets = [] + this.activeTarget = null + this.scrollHeight = 0 + + this.$scrollElement.on('scroll.bs.scrollspy', $.proxy(this.process, this)) + this.refresh() + this.process() + } + + ScrollSpy.VERSION = '3.3.7' + + ScrollSpy.DEFAULTS = { + offset: 10 + } + + ScrollSpy.prototype.getScrollHeight = function () { + return this.$scrollElement[0].scrollHeight || Math.max(this.$body[0].scrollHeight, document.documentElement.scrollHeight) + } + + ScrollSpy.prototype.refresh = function () { + var that = this + var offsetMethod = 'offset' + var offsetBase = 0 + + this.offsets = [] + this.targets = [] + this.scrollHeight = this.getScrollHeight() + + if (!$.isWindow(this.$scrollElement[0])) { + offsetMethod = 'position' + offsetBase = this.$scrollElement.scrollTop() + } + + this.$body + .find(this.selector) + .map(function () { + var $el = $(this) + var href = $el.data('target') || $el.attr('href') + var $href = /^#./.test(href) && $(href) + + return ($href + && $href.length + && $href.is(':visible') + && [[$href[offsetMethod]().top + offsetBase, href]]) || null + }) + .sort(function (a, b) { return a[0] - b[0] }) + .each(function () { + that.offsets.push(this[0]) + that.targets.push(this[1]) + }) + } + + ScrollSpy.prototype.process = function () { + var scrollTop = this.$scrollElement.scrollTop() + this.options.offset + var scrollHeight = this.getScrollHeight() + var maxScroll = this.options.offset + scrollHeight - this.$scrollElement.height() + var offsets = this.offsets + var targets = this.targets + var activeTarget = this.activeTarget + var i + + if (this.scrollHeight != scrollHeight) { + this.refresh() + } + + if (scrollTop >= maxScroll) { + return activeTarget != (i = targets[targets.length - 1]) && this.activate(i) + } + + if (activeTarget && scrollTop < offsets[0]) { + this.activeTarget = null + return this.clear() + } + + for (i = offsets.length; i--;) { + activeTarget != targets[i] + && scrollTop >= offsets[i] + && (offsets[i + 1] === undefined || scrollTop < offsets[i + 1]) + && this.activate(targets[i]) + } + } + + ScrollSpy.prototype.activate = function (target) { + this.activeTarget = target + + this.clear() + + var selector = this.selector + + '[data-target="' + target + '"],' + + this.selector + '[href="' + target + '"]' + + var active = $(selector) + .parents('li') + .addClass('active') + + if (active.parent('.dropdown-menu').length) { + active = active + .closest('li.dropdown') + .addClass('active') + } + + active.trigger('activate.bs.scrollspy') + } + + ScrollSpy.prototype.clear = function () { + $(this.selector) + .parentsUntil(this.options.target, '.active') + .removeClass('active') + } + + + // SCROLLSPY PLUGIN DEFINITION + // =========================== + + function Plugin(option) { + return this.each(function () { + var $this = $(this) + var data = $this.data('bs.scrollspy') + var options = typeof option == 'object' && option + + if (!data) $this.data('bs.scrollspy', (data = new ScrollSpy(this, options))) + if (typeof option == 'string') data[option]() + }) + } + + var old = $.fn.scrollspy + + $.fn.scrollspy = Plugin + $.fn.scrollspy.Constructor = ScrollSpy + + + // SCROLLSPY NO CONFLICT + // ===================== + + $.fn.scrollspy.noConflict = function () { + $.fn.scrollspy = old + return this + } + + + // SCROLLSPY DATA-API + // ================== + + $(window).on('load.bs.scrollspy.data-api', function () { + $('[data-spy="scroll"]').each(function () { + var $spy = $(this) + Plugin.call($spy, $spy.data()) + }) + }) + +}(jQuery); + +/* ======================================================================== + * Bootstrap: tab.js v3.3.7 + * http://getbootstrap.com/javascript/#tabs + * ======================================================================== + * Copyright 2011-2016 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + * ======================================================================== */ + + ++function ($) { + 'use strict'; + + // TAB CLASS DEFINITION + // ==================== + + var Tab = function (element) { + // jscs:disable requireDollarBeforejQueryAssignment + this.element = $(element) + // jscs:enable requireDollarBeforejQueryAssignment + } + + Tab.VERSION = '3.3.7' + + Tab.TRANSITION_DURATION = 150 + + Tab.prototype.show = function () { + var $this = this.element + var $ul = $this.closest('ul:not(.dropdown-menu)') + var selector = $this.data('target') + + if (!selector) { + selector = $this.attr('href') + selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7 + } + + if ($this.parent('li').hasClass('active')) return + + var $previous = $ul.find('.active:last a') + var hideEvent = $.Event('hide.bs.tab', { + relatedTarget: $this[0] + }) + var showEvent = $.Event('show.bs.tab', { + relatedTarget: $previous[0] + }) + + $previous.trigger(hideEvent) + $this.trigger(showEvent) + + if (showEvent.isDefaultPrevented() || hideEvent.isDefaultPrevented()) return + + var $target = $(selector) + + this.activate($this.closest('li'), $ul) + this.activate($target, $target.parent(), function () { + $previous.trigger({ + type: 'hidden.bs.tab', + relatedTarget: $this[0] + }) + $this.trigger({ + type: 'shown.bs.tab', + relatedTarget: $previous[0] + }) + }) + } + + Tab.prototype.activate = function (element, container, callback) { + var $active = container.find('> .active') + var transition = callback + && $.support.transition + && ($active.length && $active.hasClass('fade') || !!container.find('> .fade').length) + + function next() { + $active + .removeClass('active') + .find('> .dropdown-menu > .active') + .removeClass('active') + .end() + .find('[data-toggle="tab"]') + .attr('aria-expanded', false) + + element + .addClass('active') + .find('[data-toggle="tab"]') + .attr('aria-expanded', true) + + if (transition) { + element[0].offsetWidth // reflow for transition + element.addClass('in') + } else { + element.removeClass('fade') + } + + if (element.parent('.dropdown-menu').length) { + element + .closest('li.dropdown') + .addClass('active') + .end() + .find('[data-toggle="tab"]') + .attr('aria-expanded', true) + } + + callback && callback() + } + + $active.length && transition ? + $active + .one('bsTransitionEnd', next) + .emulateTransitionEnd(Tab.TRANSITION_DURATION) : + next() + + $active.removeClass('in') + } + + + // TAB PLUGIN DEFINITION + // ===================== + + function Plugin(option) { + return this.each(function () { + var $this = $(this) + var data = $this.data('bs.tab') + + if (!data) $this.data('bs.tab', (data = new Tab(this))) + if (typeof option == 'string') data[option]() + }) + } + + var old = $.fn.tab + + $.fn.tab = Plugin + $.fn.tab.Constructor = Tab + + + // TAB NO CONFLICT + // =============== + + $.fn.tab.noConflict = function () { + $.fn.tab = old + return this + } + + + // TAB DATA-API + // ============ + + var clickHandler = function (e) { + e.preventDefault() + Plugin.call($(this), 'show') + } + + $(document) + .on('click.bs.tab.data-api', '[data-toggle="tab"]', clickHandler) + .on('click.bs.tab.data-api', '[data-toggle="pill"]', clickHandler) + +}(jQuery); + +/* ======================================================================== + * Bootstrap: affix.js v3.3.7 + * http://getbootstrap.com/javascript/#affix + * ======================================================================== + * Copyright 2011-2016 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + * ======================================================================== */ + + ++function ($) { + 'use strict'; + + // AFFIX CLASS DEFINITION + // ====================== + + var Affix = function (element, options) { + this.options = $.extend({}, Affix.DEFAULTS, options) + + this.$target = $(this.options.target) + .on('scroll.bs.affix.data-api', $.proxy(this.checkPosition, this)) + .on('click.bs.affix.data-api', $.proxy(this.checkPositionWithEventLoop, this)) + + this.$element = $(element) + this.affixed = null + this.unpin = null + this.pinnedOffset = null + + this.checkPosition() + } + + Affix.VERSION = '3.3.7' + + Affix.RESET = 'affix affix-top affix-bottom' + + Affix.DEFAULTS = { + offset: 0, + target: window + } + + Affix.prototype.getState = function (scrollHeight, height, offsetTop, offsetBottom) { + var scrollTop = this.$target.scrollTop() + var position = this.$element.offset() + var targetHeight = this.$target.height() + + if (offsetTop != null && this.affixed == 'top') return scrollTop < offsetTop ? 'top' : false + + if (this.affixed == 'bottom') { + if (offsetTop != null) return (scrollTop + this.unpin <= position.top) ? false : 'bottom' + return (scrollTop + targetHeight <= scrollHeight - offsetBottom) ? false : 'bottom' + } + + var initializing = this.affixed == null + var colliderTop = initializing ? scrollTop : position.top + var colliderHeight = initializing ? targetHeight : height + + if (offsetTop != null && scrollTop <= offsetTop) return 'top' + if (offsetBottom != null && (colliderTop + colliderHeight >= scrollHeight - offsetBottom)) return 'bottom' + + return false + } + + Affix.prototype.getPinnedOffset = function () { + if (this.pinnedOffset) return this.pinnedOffset + this.$element.removeClass(Affix.RESET).addClass('affix') + var scrollTop = this.$target.scrollTop() + var position = this.$element.offset() + return (this.pinnedOffset = position.top - scrollTop) + } + + Affix.prototype.checkPositionWithEventLoop = function () { + setTimeout($.proxy(this.checkPosition, this), 1) + } + + Affix.prototype.checkPosition = function () { + if (!this.$element.is(':visible')) return + + var height = this.$element.height() + var offset = this.options.offset + var offsetTop = offset.top + var offsetBottom = offset.bottom + var scrollHeight = Math.max($(document).height(), $(document.body).height()) + + if (typeof offset != 'object') offsetBottom = offsetTop = offset + if (typeof offsetTop == 'function') offsetTop = offset.top(this.$element) + if (typeof offsetBottom == 'function') offsetBottom = offset.bottom(this.$element) + + var affix = this.getState(scrollHeight, height, offsetTop, offsetBottom) + + if (this.affixed != affix) { + if (this.unpin != null) this.$element.css('top', '') + + var affixType = 'affix' + (affix ? '-' + affix : '') + var e = $.Event(affixType + '.bs.affix') + + this.$element.trigger(e) + + if (e.isDefaultPrevented()) return + + this.affixed = affix + this.unpin = affix == 'bottom' ? this.getPinnedOffset() : null + + this.$element + .removeClass(Affix.RESET) + .addClass(affixType) + .trigger(affixType.replace('affix', 'affixed') + '.bs.affix') + } + + if (affix == 'bottom') { + this.$element.offset({ + top: scrollHeight - height - offsetBottom + }) + } + } + + + // AFFIX PLUGIN DEFINITION + // ======================= + + function Plugin(option) { + return this.each(function () { + var $this = $(this) + var data = $this.data('bs.affix') + var options = typeof option == 'object' && option + + if (!data) $this.data('bs.affix', (data = new Affix(this, options))) + if (typeof option == 'string') data[option]() + }) + } + + var old = $.fn.affix + + $.fn.affix = Plugin + $.fn.affix.Constructor = Affix + + + // AFFIX NO CONFLICT + // ================= + + $.fn.affix.noConflict = function () { + $.fn.affix = old + return this + } + + + // AFFIX DATA-API + // ============== + + $(window).on('load', function () { + $('[data-spy="affix"]').each(function () { + var $spy = $(this) + var data = $spy.data() + + data.offset = data.offset || {} + + if (data.offsetBottom != null) data.offset.bottom = data.offsetBottom + if (data.offsetTop != null) data.offset.top = data.offsetTop + + Plugin.call($spy, data) + }) + }) + +}(jQuery); diff --git a/src/Sample.RazorPages/wwwroot/lib/bootstrap/dist/js/npm.js b/src/Sample.RazorPages/wwwroot/lib/bootstrap/dist/js/npm.js new file mode 100644 index 0000000..bf6aa80 --- /dev/null +++ b/src/Sample.RazorPages/wwwroot/lib/bootstrap/dist/js/npm.js @@ -0,0 +1,13 @@ +// This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. +require('../../js/transition.js') +require('../../js/alert.js') +require('../../js/button.js') +require('../../js/carousel.js') +require('../../js/collapse.js') +require('../../js/dropdown.js') +require('../../js/modal.js') +require('../../js/tooltip.js') +require('../../js/popover.js') +require('../../js/scrollspy.js') +require('../../js/tab.js') +require('../../js/affix.js') \ No newline at end of file diff --git a/src/Sample.RazorPages/wwwroot/lib/jquery-validation-unobtrusive/.bower.json b/src/Sample.RazorPages/wwwroot/lib/jquery-validation-unobtrusive/.bower.json new file mode 100644 index 0000000..ccf4812 --- /dev/null +++ b/src/Sample.RazorPages/wwwroot/lib/jquery-validation-unobtrusive/.bower.json @@ -0,0 +1,44 @@ +{ + "name": "jquery-validation-unobtrusive", + "version": "3.2.6", + "homepage": "https://github.com/aspnet/jquery-validation-unobtrusive", + "description": "Add-on to jQuery Validation to enable unobtrusive validation options in data-* attributes.", + "main": [ + "jquery.validate.unobtrusive.js" + ], + "ignore": [ + "**/.*", + "*.json", + "*.md", + "*.txt", + "gulpfile.js" + ], + "keywords": [ + "jquery", + "asp.net", + "mvc", + "validation", + "unobtrusive" + ], + "authors": [ + "Microsoft" + ], + "license": "http://www.microsoft.com/web/webpi/eula/net_library_eula_enu.htm", + "repository": { + "type": "git", + "url": "git://github.com/aspnet/jquery-validation-unobtrusive.git" + }, + "dependencies": { + "jquery-validation": ">=1.8", + "jquery": ">=1.8" + }, + "_release": "3.2.6", + "_resolution": { + "type": "version", + "tag": "v3.2.6", + "commit": "13386cd1b5947d8a5d23a12b531ce3960be1eba7" + }, + "_source": "git://github.com/aspnet/jquery-validation-unobtrusive.git", + "_target": "3.2.6", + "_originalSource": "jquery-validation-unobtrusive" +} \ No newline at end of file diff --git a/src/Sample.RazorPages/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js b/src/Sample.RazorPages/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js new file mode 100644 index 0000000..1b0de12 --- /dev/null +++ b/src/Sample.RazorPages/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js @@ -0,0 +1,416 @@ +/*! +** Unobtrusive validation support library for jQuery and jQuery Validate +** Copyright (C) Microsoft Corporation. All rights reserved. +*/ + +/*jslint white: true, browser: true, onevar: true, undef: true, nomen: true, eqeqeq: true, plusplus: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: false */ +/*global document: false, jQuery: false */ + +(function ($) { + var $jQval = $.validator, + adapters, + data_validation = "unobtrusiveValidation"; + + function setValidationValues(options, ruleName, value) { + options.rules[ruleName] = value; + if (options.message) { + options.messages[ruleName] = options.message; + } + } + + function splitAndTrim(value) { + return value.replace(/^\s+|\s+$/g, "").split(/\s*,\s*/g); + } + + function escapeAttributeValue(value) { + // As mentioned on http://api.jquery.com/category/selectors/ + return value.replace(/([!"#$%&'()*+,./:;<=>?@\[\\\]^`{|}~])/g, "\\$1"); + } + + function getModelPrefix(fieldName) { + return fieldName.substr(0, fieldName.lastIndexOf(".") + 1); + } + + function appendModelPrefix(value, prefix) { + if (value.indexOf("*.") === 0) { + value = value.replace("*.", prefix); + } + return value; + } + + function onError(error, inputElement) { // 'this' is the form element + var container = $(this).find("[data-valmsg-for='" + escapeAttributeValue(inputElement[0].name) + "']"), + replaceAttrValue = container.attr("data-valmsg-replace"), + replace = replaceAttrValue ? $.parseJSON(replaceAttrValue) !== false : null; + + container.removeClass("field-validation-valid").addClass("field-validation-error"); + error.data("unobtrusiveContainer", container); + + if (replace) { + container.empty(); + error.removeClass("input-validation-error").appendTo(container); + } + else { + error.hide(); + } + } + + function onErrors(event, validator) { // 'this' is the form element + var container = $(this).find("[data-valmsg-summary=true]"), + list = container.find("ul"); + + if (list && list.length && validator.errorList.length) { + list.empty(); + container.addClass("validation-summary-errors").removeClass("validation-summary-valid"); + + $.each(validator.errorList, function () { + $("
          1. ").html(this.message).appendTo(list); + }); + } + } + + function onSuccess(error) { // 'this' is the form element + var container = error.data("unobtrusiveContainer"); + + if (container) { + var replaceAttrValue = container.attr("data-valmsg-replace"), + replace = replaceAttrValue ? $.parseJSON(replaceAttrValue) : null; + + container.addClass("field-validation-valid").removeClass("field-validation-error"); + error.removeData("unobtrusiveContainer"); + + if (replace) { + container.empty(); + } + } + } + + function onReset(event) { // 'this' is the form element + var $form = $(this), + key = '__jquery_unobtrusive_validation_form_reset'; + if ($form.data(key)) { + return; + } + // Set a flag that indicates we're currently resetting the form. + $form.data(key, true); + try { + $form.data("validator").resetForm(); + } finally { + $form.removeData(key); + } + + $form.find(".validation-summary-errors") + .addClass("validation-summary-valid") + .removeClass("validation-summary-errors"); + $form.find(".field-validation-error") + .addClass("field-validation-valid") + .removeClass("field-validation-error") + .removeData("unobtrusiveContainer") + .find(">*") // If we were using valmsg-replace, get the underlying error + .removeData("unobtrusiveContainer"); + } + + function validationInfo(form) { + var $form = $(form), + result = $form.data(data_validation), + onResetProxy = $.proxy(onReset, form), + defaultOptions = $jQval.unobtrusive.options || {}, + execInContext = function (name, args) { + var func = defaultOptions[name]; + func && $.isFunction(func) && func.apply(form, args); + } + + if (!result) { + result = { + options: { // options structure passed to jQuery Validate's validate() method + errorClass: defaultOptions.errorClass || "input-validation-error", + errorElement: defaultOptions.errorElement || "span", + errorPlacement: function () { + onError.apply(form, arguments); + execInContext("errorPlacement", arguments); + }, + invalidHandler: function () { + onErrors.apply(form, arguments); + execInContext("invalidHandler", arguments); + }, + messages: {}, + rules: {}, + success: function () { + onSuccess.apply(form, arguments); + execInContext("success", arguments); + } + }, + attachValidation: function () { + $form + .off("reset." + data_validation, onResetProxy) + .on("reset." + data_validation, onResetProxy) + .validate(this.options); + }, + validate: function () { // a validation function that is called by unobtrusive Ajax + $form.validate(); + return $form.valid(); + } + }; + $form.data(data_validation, result); + } + + return result; + } + + $jQval.unobtrusive = { + adapters: [], + + parseElement: function (element, skipAttach) { + /// + /// Parses a single HTML element for unobtrusive validation attributes. + /// + /// The HTML element to be parsed. + /// [Optional] true to skip attaching the + /// validation to the form. If parsing just this single element, you should specify true. + /// If parsing several elements, you should specify false, and manually attach the validation + /// to the form when you are finished. The default is false. + var $element = $(element), + form = $element.parents("form")[0], + valInfo, rules, messages; + + if (!form) { // Cannot do client-side validation without a form + return; + } + + valInfo = validationInfo(form); + valInfo.options.rules[element.name] = rules = {}; + valInfo.options.messages[element.name] = messages = {}; + + $.each(this.adapters, function () { + var prefix = "data-val-" + this.name, + message = $element.attr(prefix), + paramValues = {}; + + if (message !== undefined) { // Compare against undefined, because an empty message is legal (and falsy) + prefix += "-"; + + $.each(this.params, function () { + paramValues[this] = $element.attr(prefix + this); + }); + + this.adapt({ + element: element, + form: form, + message: message, + params: paramValues, + rules: rules, + messages: messages + }); + } + }); + + $.extend(rules, { "__dummy__": true }); + + if (!skipAttach) { + valInfo.attachValidation(); + } + }, + + parse: function (selector) { + /// + /// Parses all the HTML elements in the specified selector. It looks for input elements decorated + /// with the [data-val=true] attribute value and enables validation according to the data-val-* + /// attribute values. + /// + /// Any valid jQuery selector. + + // $forms includes all forms in selector's DOM hierarchy (parent, children and self) that have at least one + // element with data-val=true + var $selector = $(selector), + $forms = $selector.parents() + .addBack() + .filter("form") + .add($selector.find("form")) + .has("[data-val=true]"); + + $selector.find("[data-val=true]").each(function () { + $jQval.unobtrusive.parseElement(this, true); + }); + + $forms.each(function () { + var info = validationInfo(this); + if (info) { + info.attachValidation(); + } + }); + } + }; + + adapters = $jQval.unobtrusive.adapters; + + adapters.add = function (adapterName, params, fn) { + /// Adds a new adapter to convert unobtrusive HTML into a jQuery Validate validation. + /// The name of the adapter to be added. This matches the name used + /// in the data-val-nnnn HTML attribute (where nnnn is the adapter name). + /// [Optional] An array of parameter names (strings) that will + /// be extracted from the data-val-nnnn-mmmm HTML attributes (where nnnn is the adapter name, and + /// mmmm is the parameter name). + /// The function to call, which adapts the values from the HTML + /// attributes into jQuery Validate rules and/or messages. + /// + if (!fn) { // Called with no params, just a function + fn = params; + params = []; + } + this.push({ name: adapterName, params: params, adapt: fn }); + return this; + }; + + adapters.addBool = function (adapterName, ruleName) { + /// Adds a new adapter to convert unobtrusive HTML into a jQuery Validate validation, where + /// the jQuery Validate validation rule has no parameter values. + /// The name of the adapter to be added. This matches the name used + /// in the data-val-nnnn HTML attribute (where nnnn is the adapter name). + /// [Optional] The name of the jQuery Validate rule. If not provided, the value + /// of adapterName will be used instead. + /// + return this.add(adapterName, function (options) { + setValidationValues(options, ruleName || adapterName, true); + }); + }; + + adapters.addMinMax = function (adapterName, minRuleName, maxRuleName, minMaxRuleName, minAttribute, maxAttribute) { + /// Adds a new adapter to convert unobtrusive HTML into a jQuery Validate validation, where + /// the jQuery Validate validation has three potential rules (one for min-only, one for max-only, and + /// one for min-and-max). The HTML parameters are expected to be named -min and -max. + /// The name of the adapter to be added. This matches the name used + /// in the data-val-nnnn HTML attribute (where nnnn is the adapter name). + /// The name of the jQuery Validate rule to be used when you only + /// have a minimum value. + /// The name of the jQuery Validate rule to be used when you only + /// have a maximum value. + /// The name of the jQuery Validate rule to be used when you + /// have both a minimum and maximum value. + /// [Optional] The name of the HTML attribute that + /// contains the minimum value. The default is "min". + /// [Optional] The name of the HTML attribute that + /// contains the maximum value. The default is "max". + /// + return this.add(adapterName, [minAttribute || "min", maxAttribute || "max"], function (options) { + var min = options.params.min, + max = options.params.max; + + if (min && max) { + setValidationValues(options, minMaxRuleName, [min, max]); + } + else if (min) { + setValidationValues(options, minRuleName, min); + } + else if (max) { + setValidationValues(options, maxRuleName, max); + } + }); + }; + + adapters.addSingleVal = function (adapterName, attribute, ruleName) { + /// Adds a new adapter to convert unobtrusive HTML into a jQuery Validate validation, where + /// the jQuery Validate validation rule has a single value. + /// The name of the adapter to be added. This matches the name used + /// in the data-val-nnnn HTML attribute(where nnnn is the adapter name). + /// [Optional] The name of the HTML attribute that contains the value. + /// The default is "val". + /// [Optional] The name of the jQuery Validate rule. If not provided, the value + /// of adapterName will be used instead. + /// + return this.add(adapterName, [attribute || "val"], function (options) { + setValidationValues(options, ruleName || adapterName, options.params[attribute]); + }); + }; + + $jQval.addMethod("__dummy__", function (value, element, params) { + return true; + }); + + $jQval.addMethod("regex", function (value, element, params) { + var match; + if (this.optional(element)) { + return true; + } + + match = new RegExp(params).exec(value); + return (match && (match.index === 0) && (match[0].length === value.length)); + }); + + $jQval.addMethod("nonalphamin", function (value, element, nonalphamin) { + var match; + if (nonalphamin) { + match = value.match(/\W/g); + match = match && match.length >= nonalphamin; + } + return match; + }); + + if ($jQval.methods.extension) { + adapters.addSingleVal("accept", "mimtype"); + adapters.addSingleVal("extension", "extension"); + } else { + // for backward compatibility, when the 'extension' validation method does not exist, such as with versions + // of JQuery Validation plugin prior to 1.10, we should use the 'accept' method for + // validating the extension, and ignore mime-type validations as they are not supported. + adapters.addSingleVal("extension", "extension", "accept"); + } + + adapters.addSingleVal("regex", "pattern"); + adapters.addBool("creditcard").addBool("date").addBool("digits").addBool("email").addBool("number").addBool("url"); + adapters.addMinMax("length", "minlength", "maxlength", "rangelength").addMinMax("range", "min", "max", "range"); + adapters.addMinMax("minlength", "minlength").addMinMax("maxlength", "minlength", "maxlength"); + adapters.add("equalto", ["other"], function (options) { + var prefix = getModelPrefix(options.element.name), + other = options.params.other, + fullOtherName = appendModelPrefix(other, prefix), + element = $(options.form).find(":input").filter("[name='" + escapeAttributeValue(fullOtherName) + "']")[0]; + + setValidationValues(options, "equalTo", element); + }); + adapters.add("required", function (options) { + // jQuery Validate equates "required" with "mandatory" for checkbox elements + if (options.element.tagName.toUpperCase() !== "INPUT" || options.element.type.toUpperCase() !== "CHECKBOX") { + setValidationValues(options, "required", true); + } + }); + adapters.add("remote", ["url", "type", "additionalfields"], function (options) { + var value = { + url: options.params.url, + type: options.params.type || "GET", + data: {} + }, + prefix = getModelPrefix(options.element.name); + + $.each(splitAndTrim(options.params.additionalfields || options.element.name), function (i, fieldName) { + var paramName = appendModelPrefix(fieldName, prefix); + value.data[paramName] = function () { + var field = $(options.form).find(":input").filter("[name='" + escapeAttributeValue(paramName) + "']"); + // For checkboxes and radio buttons, only pick up values from checked fields. + if (field.is(":checkbox")) { + return field.filter(":checked").val() || field.filter(":hidden").val() || ''; + } + else if (field.is(":radio")) { + return field.filter(":checked").val() || ''; + } + return field.val(); + }; + }); + + setValidationValues(options, "remote", value); + }); + adapters.add("password", ["min", "nonalphamin", "regex"], function (options) { + if (options.params.min) { + setValidationValues(options, "minlength", options.params.min); + } + if (options.params.nonalphamin) { + setValidationValues(options, "nonalphamin", options.params.nonalphamin); + } + if (options.params.regex) { + setValidationValues(options, "regex", options.params.regex); + } + }); + + $(function () { + $jQval.unobtrusive.parse(document); + }); +}(jQuery)); \ No newline at end of file diff --git a/src/Sample.RazorPages/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js b/src/Sample.RazorPages/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js new file mode 100644 index 0000000..be9a38a --- /dev/null +++ b/src/Sample.RazorPages/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js @@ -0,0 +1,5 @@ +/* +** Unobtrusive validation support library for jQuery and jQuery Validate +** Copyright (C) Microsoft Corporation. All rights reserved. +*/ +!function(a){function e(a,e,n){a.rules[e]=n,a.message&&(a.messages[e]=a.message)}function n(a){return a.replace(/^\s+|\s+$/g,"").split(/\s*,\s*/g)}function t(a){return a.replace(/([!"#$%&'()*+,./:;<=>?@\[\\\]^`{|}~])/g,"\\$1")}function r(a){return a.substr(0,a.lastIndexOf(".")+1)}function i(a,e){return 0===a.indexOf("*.")&&(a=a.replace("*.",e)),a}function o(e,n){var r=a(this).find("[data-valmsg-for='"+t(n[0].name)+"']"),i=r.attr("data-valmsg-replace"),o=i?a.parseJSON(i)!==!1:null;r.removeClass("field-validation-valid").addClass("field-validation-error"),e.data("unobtrusiveContainer",r),o?(r.empty(),e.removeClass("input-validation-error").appendTo(r)):e.hide()}function d(e,n){var t=a(this).find("[data-valmsg-summary=true]"),r=t.find("ul");r&&r.length&&n.errorList.length&&(r.empty(),t.addClass("validation-summary-errors").removeClass("validation-summary-valid"),a.each(n.errorList,function(){a("
          2. ").html(this.message).appendTo(r)}))}function s(e){var n=e.data("unobtrusiveContainer");if(n){var t=n.attr("data-valmsg-replace"),r=t?a.parseJSON(t):null;n.addClass("field-validation-valid").removeClass("field-validation-error"),e.removeData("unobtrusiveContainer"),r&&n.empty()}}function l(e){var n=a(this),t="__jquery_unobtrusive_validation_form_reset";if(!n.data(t)){n.data(t,!0);try{n.data("validator").resetForm()}finally{n.removeData(t)}n.find(".validation-summary-errors").addClass("validation-summary-valid").removeClass("validation-summary-errors"),n.find(".field-validation-error").addClass("field-validation-valid").removeClass("field-validation-error").removeData("unobtrusiveContainer").find(">*").removeData("unobtrusiveContainer")}}function m(e){var n=a(e),t=n.data(v),r=a.proxy(l,e),i=p.unobtrusive.options||{},m=function(n,t){var r=i[n];r&&a.isFunction(r)&&r.apply(e,t)};return t||(t={options:{errorClass:i.errorClass||"input-validation-error",errorElement:i.errorElement||"span",errorPlacement:function(){o.apply(e,arguments),m("errorPlacement",arguments)},invalidHandler:function(){d.apply(e,arguments),m("invalidHandler",arguments)},messages:{},rules:{},success:function(){s.apply(e,arguments),m("success",arguments)}},attachValidation:function(){n.off("reset."+v,r).on("reset."+v,r).validate(this.options)},validate:function(){return n.validate(),n.valid()}},n.data(v,t)),t}var u,p=a.validator,v="unobtrusiveValidation";p.unobtrusive={adapters:[],parseElement:function(e,n){var t,r,i,o=a(e),d=o.parents("form")[0];d&&(t=m(d),t.options.rules[e.name]=r={},t.options.messages[e.name]=i={},a.each(this.adapters,function(){var n="data-val-"+this.name,t=o.attr(n),s={};void 0!==t&&(n+="-",a.each(this.params,function(){s[this]=o.attr(n+this)}),this.adapt({element:e,form:d,message:t,params:s,rules:r,messages:i}))}),a.extend(r,{__dummy__:!0}),n||t.attachValidation())},parse:function(e){var n=a(e),t=n.parents().addBack().filter("form").add(n.find("form")).has("[data-val=true]");n.find("[data-val=true]").each(function(){p.unobtrusive.parseElement(this,!0)}),t.each(function(){var a=m(this);a&&a.attachValidation()})}},u=p.unobtrusive.adapters,u.add=function(a,e,n){return n||(n=e,e=[]),this.push({name:a,params:e,adapt:n}),this},u.addBool=function(a,n){return this.add(a,function(t){e(t,n||a,!0)})},u.addMinMax=function(a,n,t,r,i,o){return this.add(a,[i||"min",o||"max"],function(a){var i=a.params.min,o=a.params.max;i&&o?e(a,r,[i,o]):i?e(a,n,i):o&&e(a,t,o)})},u.addSingleVal=function(a,n,t){return this.add(a,[n||"val"],function(r){e(r,t||a,r.params[n])})},p.addMethod("__dummy__",function(a,e,n){return!0}),p.addMethod("regex",function(a,e,n){var t;return this.optional(e)?!0:(t=new RegExp(n).exec(a),t&&0===t.index&&t[0].length===a.length)}),p.addMethod("nonalphamin",function(a,e,n){var t;return n&&(t=a.match(/\W/g),t=t&&t.length>=n),t}),p.methods.extension?(u.addSingleVal("accept","mimtype"),u.addSingleVal("extension","extension")):u.addSingleVal("extension","extension","accept"),u.addSingleVal("regex","pattern"),u.addBool("creditcard").addBool("date").addBool("digits").addBool("email").addBool("number").addBool("url"),u.addMinMax("length","minlength","maxlength","rangelength").addMinMax("range","min","max","range"),u.addMinMax("minlength","minlength").addMinMax("maxlength","minlength","maxlength"),u.add("equalto",["other"],function(n){var o=r(n.element.name),d=n.params.other,s=i(d,o),l=a(n.form).find(":input").filter("[name='"+t(s)+"']")[0];e(n,"equalTo",l)}),u.add("required",function(a){("INPUT"!==a.element.tagName.toUpperCase()||"CHECKBOX"!==a.element.type.toUpperCase())&&e(a,"required",!0)}),u.add("remote",["url","type","additionalfields"],function(o){var d={url:o.params.url,type:o.params.type||"GET",data:{}},s=r(o.element.name);a.each(n(o.params.additionalfields||o.element.name),function(e,n){var r=i(n,s);d.data[r]=function(){var e=a(o.form).find(":input").filter("[name='"+t(r)+"']");return e.is(":checkbox")?e.filter(":checked").val()||e.filter(":hidden").val()||"":e.is(":radio")?e.filter(":checked").val()||"":e.val()}}),e(o,"remote",d)}),u.add("password",["min","nonalphamin","regex"],function(a){a.params.min&&e(a,"minlength",a.params.min),a.params.nonalphamin&&e(a,"nonalphamin",a.params.nonalphamin),a.params.regex&&e(a,"regex",a.params.regex)}),a(function(){p.unobtrusive.parse(document)})}(jQuery); \ No newline at end of file diff --git a/src/Sample.RazorPages/wwwroot/lib/jquery-validation/.bower.json b/src/Sample.RazorPages/wwwroot/lib/jquery-validation/.bower.json new file mode 100644 index 0000000..cab34a4 --- /dev/null +++ b/src/Sample.RazorPages/wwwroot/lib/jquery-validation/.bower.json @@ -0,0 +1,40 @@ +{ + "name": "jquery-validation", + "homepage": "http://jqueryvalidation.org/", + "repository": { + "type": "git", + "url": "git://github.com/jzaefferer/jquery-validation.git" + }, + "authors": [ + "Jörn Zaefferer " + ], + "description": "Form validation made easy", + "main": "dist/jquery.validate.js", + "keywords": [ + "forms", + "validation", + "validate" + ], + "license": "MIT", + "ignore": [ + "**/.*", + "node_modules", + "bower_components", + "test", + "demo", + "lib" + ], + "dependencies": { + "jquery": ">= 1.7.2" + }, + "version": "1.14.0", + "_release": "1.14.0", + "_resolution": { + "type": "version", + "tag": "1.14.0", + "commit": "c1343fb9823392aa9acbe1c3ffd337b8c92fed48" + }, + "_source": "git://github.com/jzaefferer/jquery-validation.git", + "_target": ">=1.8", + "_originalSource": "jquery-validation" +} \ No newline at end of file diff --git a/src/Sample.RazorPages/wwwroot/lib/jquery-validation/LICENSE.md b/src/Sample.RazorPages/wwwroot/lib/jquery-validation/LICENSE.md new file mode 100644 index 0000000..dc377cc --- /dev/null +++ b/src/Sample.RazorPages/wwwroot/lib/jquery-validation/LICENSE.md @@ -0,0 +1,22 @@ +The MIT License (MIT) +===================== + +Copyright Jörn Zaefferer + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/src/Sample.RazorPages/wwwroot/lib/jquery-validation/dist/additional-methods.js b/src/Sample.RazorPages/wwwroot/lib/jquery-validation/dist/additional-methods.js new file mode 100644 index 0000000..df41fbd --- /dev/null +++ b/src/Sample.RazorPages/wwwroot/lib/jquery-validation/dist/additional-methods.js @@ -0,0 +1,998 @@ +/*! + * jQuery Validation Plugin v1.14.0 + * + * http://jqueryvalidation.org/ + * + * Copyright (c) 2015 Jörn Zaefferer + * Released under the MIT license + */ +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + define( ["jquery", "./jquery.validate"], factory ); + } else { + factory( jQuery ); + } +}(function( $ ) { + +(function() { + + function stripHtml(value) { + // remove html tags and space chars + return value.replace(/<.[^<>]*?>/g, " ").replace(/ | /gi, " ") + // remove punctuation + .replace(/[.(),;:!?%#$'\"_+=\/\-“”’]*/g, ""); + } + + $.validator.addMethod("maxWords", function(value, element, params) { + return this.optional(element) || stripHtml(value).match(/\b\w+\b/g).length <= params; + }, $.validator.format("Please enter {0} words or less.")); + + $.validator.addMethod("minWords", function(value, element, params) { + return this.optional(element) || stripHtml(value).match(/\b\w+\b/g).length >= params; + }, $.validator.format("Please enter at least {0} words.")); + + $.validator.addMethod("rangeWords", function(value, element, params) { + var valueStripped = stripHtml(value), + regex = /\b\w+\b/g; + return this.optional(element) || valueStripped.match(regex).length >= params[0] && valueStripped.match(regex).length <= params[1]; + }, $.validator.format("Please enter between {0} and {1} words.")); + +}()); + +// Accept a value from a file input based on a required mimetype +$.validator.addMethod("accept", function(value, element, param) { + // Split mime on commas in case we have multiple types we can accept + var typeParam = typeof param === "string" ? param.replace(/\s/g, "").replace(/,/g, "|") : "image/*", + optionalValue = this.optional(element), + i, file; + + // Element is optional + if (optionalValue) { + return optionalValue; + } + + if ($(element).attr("type") === "file") { + // If we are using a wildcard, make it regex friendly + typeParam = typeParam.replace(/\*/g, ".*"); + + // Check if the element has a FileList before checking each file + if (element.files && element.files.length) { + for (i = 0; i < element.files.length; i++) { + file = element.files[i]; + + // Grab the mimetype from the loaded file, verify it matches + if (!file.type.match(new RegExp( "\\.?(" + typeParam + ")$", "i"))) { + return false; + } + } + } + } + + // Either return true because we've validated each file, or because the + // browser does not support element.files and the FileList feature + return true; +}, $.validator.format("Please enter a value with a valid mimetype.")); + +$.validator.addMethod("alphanumeric", function(value, element) { + return this.optional(element) || /^\w+$/i.test(value); +}, "Letters, numbers, and underscores only please"); + +/* + * Dutch bank account numbers (not 'giro' numbers) have 9 digits + * and pass the '11 check'. + * We accept the notation with spaces, as that is common. + * acceptable: 123456789 or 12 34 56 789 + */ +$.validator.addMethod("bankaccountNL", function(value, element) { + if (this.optional(element)) { + return true; + } + if (!(/^[0-9]{9}|([0-9]{2} ){3}[0-9]{3}$/.test(value))) { + return false; + } + // now '11 check' + var account = value.replace(/ /g, ""), // remove spaces + sum = 0, + len = account.length, + pos, factor, digit; + for ( pos = 0; pos < len; pos++ ) { + factor = len - pos; + digit = account.substring(pos, pos + 1); + sum = sum + factor * digit; + } + return sum % 11 === 0; +}, "Please specify a valid bank account number"); + +$.validator.addMethod("bankorgiroaccountNL", function(value, element) { + return this.optional(element) || + ($.validator.methods.bankaccountNL.call(this, value, element)) || + ($.validator.methods.giroaccountNL.call(this, value, element)); +}, "Please specify a valid bank or giro account number"); + +/** + * BIC is the business identifier code (ISO 9362). This BIC check is not a guarantee for authenticity. + * + * BIC pattern: BBBBCCLLbbb (8 or 11 characters long; bbb is optional) + * + * BIC definition in detail: + * - First 4 characters - bank code (only letters) + * - Next 2 characters - ISO 3166-1 alpha-2 country code (only letters) + * - Next 2 characters - location code (letters and digits) + * a. shall not start with '0' or '1' + * b. second character must be a letter ('O' is not allowed) or one of the following digits ('0' for test (therefore not allowed), '1' for passive participant and '2' for active participant) + * - Last 3 characters - branch code, optional (shall not start with 'X' except in case of 'XXX' for primary office) (letters and digits) + */ +$.validator.addMethod("bic", function(value, element) { + return this.optional( element ) || /^([A-Z]{6}[A-Z2-9][A-NP-Z1-2])(X{3}|[A-WY-Z0-9][A-Z0-9]{2})?$/.test( value ); +}, "Please specify a valid BIC code"); + +/* + * Código de identificación fiscal ( CIF ) is the tax identification code for Spanish legal entities + * Further rules can be found in Spanish on http://es.wikipedia.org/wiki/C%C3%B3digo_de_identificaci%C3%B3n_fiscal + */ +$.validator.addMethod( "cifES", function( value ) { + "use strict"; + + var num = [], + controlDigit, sum, i, count, tmp, secondDigit; + + value = value.toUpperCase(); + + // Quick format test + if ( !value.match( "((^[A-Z]{1}[0-9]{7}[A-Z0-9]{1}$|^[T]{1}[A-Z0-9]{8}$)|^[0-9]{8}[A-Z]{1}$)" ) ) { + return false; + } + + for ( i = 0; i < 9; i++ ) { + num[ i ] = parseInt( value.charAt( i ), 10 ); + } + + // Algorithm for checking CIF codes + sum = num[ 2 ] + num[ 4 ] + num[ 6 ]; + for ( count = 1; count < 8; count += 2 ) { + tmp = ( 2 * num[ count ] ).toString(); + secondDigit = tmp.charAt( 1 ); + + sum += parseInt( tmp.charAt( 0 ), 10 ) + ( secondDigit === "" ? 0 : parseInt( secondDigit, 10 ) ); + } + + /* The first (position 1) is a letter following the following criteria: + * A. Corporations + * B. LLCs + * C. General partnerships + * D. Companies limited partnerships + * E. Communities of goods + * F. Cooperative Societies + * G. Associations + * H. Communities of homeowners in horizontal property regime + * J. Civil Societies + * K. Old format + * L. Old format + * M. Old format + * N. Nonresident entities + * P. Local authorities + * Q. Autonomous bodies, state or not, and the like, and congregations and religious institutions + * R. Congregations and religious institutions (since 2008 ORDER EHA/451/2008) + * S. Organs of State Administration and regions + * V. Agrarian Transformation + * W. Permanent establishments of non-resident in Spain + */ + if ( /^[ABCDEFGHJNPQRSUVW]{1}/.test( value ) ) { + sum += ""; + controlDigit = 10 - parseInt( sum.charAt( sum.length - 1 ), 10 ); + value += controlDigit; + return ( num[ 8 ].toString() === String.fromCharCode( 64 + controlDigit ) || num[ 8 ].toString() === value.charAt( value.length - 1 ) ); + } + + return false; + +}, "Please specify a valid CIF number." ); + +/* + * Brazillian CPF number (Cadastrado de Pessoas Físicas) is the equivalent of a Brazilian tax registration number. + * CPF numbers have 11 digits in total: 9 numbers followed by 2 check numbers that are being used for validation. + */ +$.validator.addMethod("cpfBR", function(value) { + // Removing special characters from value + value = value.replace(/([~!@#$%^&*()_+=`{}\[\]\-|\\:;'<>,.\/? ])+/g, ""); + + // Checking value to have 11 digits only + if (value.length !== 11) { + return false; + } + + var sum = 0, + firstCN, secondCN, checkResult, i; + + firstCN = parseInt(value.substring(9, 10), 10); + secondCN = parseInt(value.substring(10, 11), 10); + + checkResult = function(sum, cn) { + var result = (sum * 10) % 11; + if ((result === 10) || (result === 11)) {result = 0;} + return (result === cn); + }; + + // Checking for dump data + if (value === "" || + value === "00000000000" || + value === "11111111111" || + value === "22222222222" || + value === "33333333333" || + value === "44444444444" || + value === "55555555555" || + value === "66666666666" || + value === "77777777777" || + value === "88888888888" || + value === "99999999999" + ) { + return false; + } + + // Step 1 - using first Check Number: + for ( i = 1; i <= 9; i++ ) { + sum = sum + parseInt(value.substring(i - 1, i), 10) * (11 - i); + } + + // If first Check Number (CN) is valid, move to Step 2 - using second Check Number: + if ( checkResult(sum, firstCN) ) { + sum = 0; + for ( i = 1; i <= 10; i++ ) { + sum = sum + parseInt(value.substring(i - 1, i), 10) * (12 - i); + } + return checkResult(sum, secondCN); + } + return false; + +}, "Please specify a valid CPF number"); + +/* NOTICE: Modified version of Castle.Components.Validator.CreditCardValidator + * Redistributed under the the Apache License 2.0 at http://www.apache.org/licenses/LICENSE-2.0 + * Valid Types: mastercard, visa, amex, dinersclub, enroute, discover, jcb, unknown, all (overrides all other settings) + */ +$.validator.addMethod("creditcardtypes", function(value, element, param) { + if (/[^0-9\-]+/.test(value)) { + return false; + } + + value = value.replace(/\D/g, ""); + + var validTypes = 0x0000; + + if (param.mastercard) { + validTypes |= 0x0001; + } + if (param.visa) { + validTypes |= 0x0002; + } + if (param.amex) { + validTypes |= 0x0004; + } + if (param.dinersclub) { + validTypes |= 0x0008; + } + if (param.enroute) { + validTypes |= 0x0010; + } + if (param.discover) { + validTypes |= 0x0020; + } + if (param.jcb) { + validTypes |= 0x0040; + } + if (param.unknown) { + validTypes |= 0x0080; + } + if (param.all) { + validTypes = 0x0001 | 0x0002 | 0x0004 | 0x0008 | 0x0010 | 0x0020 | 0x0040 | 0x0080; + } + if (validTypes & 0x0001 && /^(5[12345])/.test(value)) { //mastercard + return value.length === 16; + } + if (validTypes & 0x0002 && /^(4)/.test(value)) { //visa + return value.length === 16; + } + if (validTypes & 0x0004 && /^(3[47])/.test(value)) { //amex + return value.length === 15; + } + if (validTypes & 0x0008 && /^(3(0[012345]|[68]))/.test(value)) { //dinersclub + return value.length === 14; + } + if (validTypes & 0x0010 && /^(2(014|149))/.test(value)) { //enroute + return value.length === 15; + } + if (validTypes & 0x0020 && /^(6011)/.test(value)) { //discover + return value.length === 16; + } + if (validTypes & 0x0040 && /^(3)/.test(value)) { //jcb + return value.length === 16; + } + if (validTypes & 0x0040 && /^(2131|1800)/.test(value)) { //jcb + return value.length === 15; + } + if (validTypes & 0x0080) { //unknown + return true; + } + return false; +}, "Please enter a valid credit card number."); + +/** + * Validates currencies with any given symbols by @jameslouiz + * Symbols can be optional or required. Symbols required by default + * + * Usage examples: + * currency: ["£", false] - Use false for soft currency validation + * currency: ["$", false] + * currency: ["RM", false] - also works with text based symbols such as "RM" - Malaysia Ringgit etc + * + * + * + * Soft symbol checking + * currencyInput: { + * currency: ["$", false] + * } + * + * Strict symbol checking (default) + * currencyInput: { + * currency: "$" + * //OR + * currency: ["$", true] + * } + * + * Multiple Symbols + * currencyInput: { + * currency: "$,£,¢" + * } + */ +$.validator.addMethod("currency", function(value, element, param) { + var isParamString = typeof param === "string", + symbol = isParamString ? param : param[0], + soft = isParamString ? true : param[1], + regex; + + symbol = symbol.replace(/,/g, ""); + symbol = soft ? symbol + "]" : symbol + "]?"; + regex = "^[" + symbol + "([1-9]{1}[0-9]{0,2}(\\,[0-9]{3})*(\\.[0-9]{0,2})?|[1-9]{1}[0-9]{0,}(\\.[0-9]{0,2})?|0(\\.[0-9]{0,2})?|(\\.[0-9]{1,2})?)$"; + regex = new RegExp(regex); + return this.optional(element) || regex.test(value); + +}, "Please specify a valid currency"); + +$.validator.addMethod("dateFA", function(value, element) { + return this.optional(element) || /^[1-4]\d{3}\/((0?[1-6]\/((3[0-1])|([1-2][0-9])|(0?[1-9])))|((1[0-2]|(0?[7-9]))\/(30|([1-2][0-9])|(0?[1-9]))))$/.test(value); +}, $.validator.messages.date); + +/** + * Return true, if the value is a valid date, also making this formal check dd/mm/yyyy. + * + * @example $.validator.methods.date("01/01/1900") + * @result true + * + * @example $.validator.methods.date("01/13/1990") + * @result false + * + * @example $.validator.methods.date("01.01.1900") + * @result false + * + * @example + * @desc Declares an optional input element whose value must be a valid date. + * + * @name $.validator.methods.dateITA + * @type Boolean + * @cat Plugins/Validate/Methods + */ +$.validator.addMethod("dateITA", function(value, element) { + var check = false, + re = /^\d{1,2}\/\d{1,2}\/\d{4}$/, + adata, gg, mm, aaaa, xdata; + if ( re.test(value)) { + adata = value.split("/"); + gg = parseInt(adata[0], 10); + mm = parseInt(adata[1], 10); + aaaa = parseInt(adata[2], 10); + xdata = new Date(Date.UTC(aaaa, mm - 1, gg, 12, 0, 0, 0)); + if ( ( xdata.getUTCFullYear() === aaaa ) && ( xdata.getUTCMonth () === mm - 1 ) && ( xdata.getUTCDate() === gg ) ) { + check = true; + } else { + check = false; + } + } else { + check = false; + } + return this.optional(element) || check; +}, $.validator.messages.date); + +$.validator.addMethod("dateNL", function(value, element) { + return this.optional(element) || /^(0?[1-9]|[12]\d|3[01])[\.\/\-](0?[1-9]|1[012])[\.\/\-]([12]\d)?(\d\d)$/.test(value); +}, $.validator.messages.date); + +// Older "accept" file extension method. Old docs: http://docs.jquery.com/Plugins/Validation/Methods/accept +$.validator.addMethod("extension", function(value, element, param) { + param = typeof param === "string" ? param.replace(/,/g, "|") : "png|jpe?g|gif"; + return this.optional(element) || value.match(new RegExp("\\.(" + param + ")$", "i")); +}, $.validator.format("Please enter a value with a valid extension.")); + +/** + * Dutch giro account numbers (not bank numbers) have max 7 digits + */ +$.validator.addMethod("giroaccountNL", function(value, element) { + return this.optional(element) || /^[0-9]{1,7}$/.test(value); +}, "Please specify a valid giro account number"); + +/** + * IBAN is the international bank account number. + * It has a country - specific format, that is checked here too + */ +$.validator.addMethod("iban", function(value, element) { + // some quick simple tests to prevent needless work + if (this.optional(element)) { + return true; + } + + // remove spaces and to upper case + var iban = value.replace(/ /g, "").toUpperCase(), + ibancheckdigits = "", + leadingZeroes = true, + cRest = "", + cOperator = "", + countrycode, ibancheck, charAt, cChar, bbanpattern, bbancountrypatterns, ibanregexp, i, p; + + // check the country code and find the country specific format + countrycode = iban.substring(0, 2); + bbancountrypatterns = { + "AL": "\\d{8}[\\dA-Z]{16}", + "AD": "\\d{8}[\\dA-Z]{12}", + "AT": "\\d{16}", + "AZ": "[\\dA-Z]{4}\\d{20}", + "BE": "\\d{12}", + "BH": "[A-Z]{4}[\\dA-Z]{14}", + "BA": "\\d{16}", + "BR": "\\d{23}[A-Z][\\dA-Z]", + "BG": "[A-Z]{4}\\d{6}[\\dA-Z]{8}", + "CR": "\\d{17}", + "HR": "\\d{17}", + "CY": "\\d{8}[\\dA-Z]{16}", + "CZ": "\\d{20}", + "DK": "\\d{14}", + "DO": "[A-Z]{4}\\d{20}", + "EE": "\\d{16}", + "FO": "\\d{14}", + "FI": "\\d{14}", + "FR": "\\d{10}[\\dA-Z]{11}\\d{2}", + "GE": "[\\dA-Z]{2}\\d{16}", + "DE": "\\d{18}", + "GI": "[A-Z]{4}[\\dA-Z]{15}", + "GR": "\\d{7}[\\dA-Z]{16}", + "GL": "\\d{14}", + "GT": "[\\dA-Z]{4}[\\dA-Z]{20}", + "HU": "\\d{24}", + "IS": "\\d{22}", + "IE": "[\\dA-Z]{4}\\d{14}", + "IL": "\\d{19}", + "IT": "[A-Z]\\d{10}[\\dA-Z]{12}", + "KZ": "\\d{3}[\\dA-Z]{13}", + "KW": "[A-Z]{4}[\\dA-Z]{22}", + "LV": "[A-Z]{4}[\\dA-Z]{13}", + "LB": "\\d{4}[\\dA-Z]{20}", + "LI": "\\d{5}[\\dA-Z]{12}", + "LT": "\\d{16}", + "LU": "\\d{3}[\\dA-Z]{13}", + "MK": "\\d{3}[\\dA-Z]{10}\\d{2}", + "MT": "[A-Z]{4}\\d{5}[\\dA-Z]{18}", + "MR": "\\d{23}", + "MU": "[A-Z]{4}\\d{19}[A-Z]{3}", + "MC": "\\d{10}[\\dA-Z]{11}\\d{2}", + "MD": "[\\dA-Z]{2}\\d{18}", + "ME": "\\d{18}", + "NL": "[A-Z]{4}\\d{10}", + "NO": "\\d{11}", + "PK": "[\\dA-Z]{4}\\d{16}", + "PS": "[\\dA-Z]{4}\\d{21}", + "PL": "\\d{24}", + "PT": "\\d{21}", + "RO": "[A-Z]{4}[\\dA-Z]{16}", + "SM": "[A-Z]\\d{10}[\\dA-Z]{12}", + "SA": "\\d{2}[\\dA-Z]{18}", + "RS": "\\d{18}", + "SK": "\\d{20}", + "SI": "\\d{15}", + "ES": "\\d{20}", + "SE": "\\d{20}", + "CH": "\\d{5}[\\dA-Z]{12}", + "TN": "\\d{20}", + "TR": "\\d{5}[\\dA-Z]{17}", + "AE": "\\d{3}\\d{16}", + "GB": "[A-Z]{4}\\d{14}", + "VG": "[\\dA-Z]{4}\\d{16}" + }; + + bbanpattern = bbancountrypatterns[countrycode]; + // As new countries will start using IBAN in the + // future, we only check if the countrycode is known. + // This prevents false negatives, while almost all + // false positives introduced by this, will be caught + // by the checksum validation below anyway. + // Strict checking should return FALSE for unknown + // countries. + if (typeof bbanpattern !== "undefined") { + ibanregexp = new RegExp("^[A-Z]{2}\\d{2}" + bbanpattern + "$", ""); + if (!(ibanregexp.test(iban))) { + return false; // invalid country specific format + } + } + + // now check the checksum, first convert to digits + ibancheck = iban.substring(4, iban.length) + iban.substring(0, 4); + for (i = 0; i < ibancheck.length; i++) { + charAt = ibancheck.charAt(i); + if (charAt !== "0") { + leadingZeroes = false; + } + if (!leadingZeroes) { + ibancheckdigits += "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".indexOf(charAt); + } + } + + // calculate the result of: ibancheckdigits % 97 + for (p = 0; p < ibancheckdigits.length; p++) { + cChar = ibancheckdigits.charAt(p); + cOperator = "" + cRest + "" + cChar; + cRest = cOperator % 97; + } + return cRest === 1; +}, "Please specify a valid IBAN"); + +$.validator.addMethod("integer", function(value, element) { + return this.optional(element) || /^-?\d+$/.test(value); +}, "A positive or negative non-decimal number please"); + +$.validator.addMethod("ipv4", function(value, element) { + return this.optional(element) || /^(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)$/i.test(value); +}, "Please enter a valid IP v4 address."); + +$.validator.addMethod("ipv6", function(value, element) { + return this.optional(element) || /^((([0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}:[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){5}:([0-9A-Fa-f]{1,4}:)?[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){4}:([0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){3}:([0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){2}:([0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(([0-9A-Fa-f]{1,4}:){0,5}:((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(::([0-9A-Fa-f]{1,4}:){0,5}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|([0-9A-Fa-f]{1,4}::([0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})|(::([0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){1,7}:))$/i.test(value); +}, "Please enter a valid IP v6 address."); + +$.validator.addMethod("lettersonly", function(value, element) { + return this.optional(element) || /^[a-z]+$/i.test(value); +}, "Letters only please"); + +$.validator.addMethod("letterswithbasicpunc", function(value, element) { + return this.optional(element) || /^[a-z\-.,()'"\s]+$/i.test(value); +}, "Letters or punctuation only please"); + +$.validator.addMethod("mobileNL", function(value, element) { + return this.optional(element) || /^((\+|00(\s|\s?\-\s?)?)31(\s|\s?\-\s?)?(\(0\)[\-\s]?)?|0)6((\s|\s?\-\s?)?[0-9]){8}$/.test(value); +}, "Please specify a valid mobile number"); + +/* For UK phone functions, do the following server side processing: + * Compare original input with this RegEx pattern: + * ^\(?(?:(?:00\)?[\s\-]?\(?|\+)(44)\)?[\s\-]?\(?(?:0\)?[\s\-]?\(?)?|0)([1-9]\d{1,4}\)?[\s\d\-]+)$ + * Extract $1 and set $prefix to '+44' if $1 is '44', otherwise set $prefix to '0' + * Extract $2 and remove hyphens, spaces and parentheses. Phone number is combined $prefix and $2. + * A number of very detailed GB telephone number RegEx patterns can also be found at: + * http://www.aa-asterisk.org.uk/index.php/Regular_Expressions_for_Validating_and_Formatting_GB_Telephone_Numbers + */ +$.validator.addMethod("mobileUK", function(phone_number, element) { + phone_number = phone_number.replace(/\(|\)|\s+|-/g, ""); + return this.optional(element) || phone_number.length > 9 && + phone_number.match(/^(?:(?:(?:00\s?|\+)44\s?|0)7(?:[1345789]\d{2}|624)\s?\d{3}\s?\d{3})$/); +}, "Please specify a valid mobile number"); + +/* + * The número de identidad de extranjero ( NIE )is a code used to identify the non-nationals in Spain + */ +$.validator.addMethod( "nieES", function( value ) { + "use strict"; + + value = value.toUpperCase(); + + // Basic format test + if ( !value.match( "((^[A-Z]{1}[0-9]{7}[A-Z0-9]{1}$|^[T]{1}[A-Z0-9]{8}$)|^[0-9]{8}[A-Z]{1}$)" ) ) { + return false; + } + + // Test NIE + //T + if ( /^[T]{1}/.test( value ) ) { + return ( value[ 8 ] === /^[T]{1}[A-Z0-9]{8}$/.test( value ) ); + } + + //XYZ + if ( /^[XYZ]{1}/.test( value ) ) { + return ( + value[ 8 ] === "TRWAGMYFPDXBNJZSQVHLCKE".charAt( + value.replace( "X", "0" ) + .replace( "Y", "1" ) + .replace( "Z", "2" ) + .substring( 0, 8 ) % 23 + ) + ); + } + + return false; + +}, "Please specify a valid NIE number." ); + +/* + * The Número de Identificación Fiscal ( NIF ) is the way tax identification used in Spain for individuals + */ +$.validator.addMethod( "nifES", function( value ) { + "use strict"; + + value = value.toUpperCase(); + + // Basic format test + if ( !value.match("((^[A-Z]{1}[0-9]{7}[A-Z0-9]{1}$|^[T]{1}[A-Z0-9]{8}$)|^[0-9]{8}[A-Z]{1}$)") ) { + return false; + } + + // Test NIF + if ( /^[0-9]{8}[A-Z]{1}$/.test( value ) ) { + return ( "TRWAGMYFPDXBNJZSQVHLCKE".charAt( value.substring( 8, 0 ) % 23 ) === value.charAt( 8 ) ); + } + // Test specials NIF (starts with K, L or M) + if ( /^[KLM]{1}/.test( value ) ) { + return ( value[ 8 ] === String.fromCharCode( 64 ) ); + } + + return false; + +}, "Please specify a valid NIF number." ); + +jQuery.validator.addMethod( "notEqualTo", function( value, element, param ) { + return this.optional(element) || !$.validator.methods.equalTo.call( this, value, element, param ); +}, "Please enter a different value, values must not be the same." ); + +$.validator.addMethod("nowhitespace", function(value, element) { + return this.optional(element) || /^\S+$/i.test(value); +}, "No white space please"); + +/** +* Return true if the field value matches the given format RegExp +* +* @example $.validator.methods.pattern("AR1004",element,/^AR\d{4}$/) +* @result true +* +* @example $.validator.methods.pattern("BR1004",element,/^AR\d{4}$/) +* @result false +* +* @name $.validator.methods.pattern +* @type Boolean +* @cat Plugins/Validate/Methods +*/ +$.validator.addMethod("pattern", function(value, element, param) { + if (this.optional(element)) { + return true; + } + if (typeof param === "string") { + param = new RegExp("^(?:" + param + ")$"); + } + return param.test(value); +}, "Invalid format."); + +/** + * Dutch phone numbers have 10 digits (or 11 and start with +31). + */ +$.validator.addMethod("phoneNL", function(value, element) { + return this.optional(element) || /^((\+|00(\s|\s?\-\s?)?)31(\s|\s?\-\s?)?(\(0\)[\-\s]?)?|0)[1-9]((\s|\s?\-\s?)?[0-9]){8}$/.test(value); +}, "Please specify a valid phone number."); + +/* For UK phone functions, do the following server side processing: + * Compare original input with this RegEx pattern: + * ^\(?(?:(?:00\)?[\s\-]?\(?|\+)(44)\)?[\s\-]?\(?(?:0\)?[\s\-]?\(?)?|0)([1-9]\d{1,4}\)?[\s\d\-]+)$ + * Extract $1 and set $prefix to '+44' if $1 is '44', otherwise set $prefix to '0' + * Extract $2 and remove hyphens, spaces and parentheses. Phone number is combined $prefix and $2. + * A number of very detailed GB telephone number RegEx patterns can also be found at: + * http://www.aa-asterisk.org.uk/index.php/Regular_Expressions_for_Validating_and_Formatting_GB_Telephone_Numbers + */ +$.validator.addMethod("phoneUK", function(phone_number, element) { + phone_number = phone_number.replace(/\(|\)|\s+|-/g, ""); + return this.optional(element) || phone_number.length > 9 && + phone_number.match(/^(?:(?:(?:00\s?|\+)44\s?)|(?:\(?0))(?:\d{2}\)?\s?\d{4}\s?\d{4}|\d{3}\)?\s?\d{3}\s?\d{3,4}|\d{4}\)?\s?(?:\d{5}|\d{3}\s?\d{3})|\d{5}\)?\s?\d{4,5})$/); +}, "Please specify a valid phone number"); + +/** + * matches US phone number format + * + * where the area code may not start with 1 and the prefix may not start with 1 + * allows '-' or ' ' as a separator and allows parens around area code + * some people may want to put a '1' in front of their number + * + * 1(212)-999-2345 or + * 212 999 2344 or + * 212-999-0983 + * + * but not + * 111-123-5434 + * and not + * 212 123 4567 + */ +$.validator.addMethod("phoneUS", function(phone_number, element) { + phone_number = phone_number.replace(/\s+/g, ""); + return this.optional(element) || phone_number.length > 9 && + phone_number.match(/^(\+?1-?)?(\([2-9]([02-9]\d|1[02-9])\)|[2-9]([02-9]\d|1[02-9]))-?[2-9]([02-9]\d|1[02-9])-?\d{4}$/); +}, "Please specify a valid phone number"); + +/* For UK phone functions, do the following server side processing: + * Compare original input with this RegEx pattern: + * ^\(?(?:(?:00\)?[\s\-]?\(?|\+)(44)\)?[\s\-]?\(?(?:0\)?[\s\-]?\(?)?|0)([1-9]\d{1,4}\)?[\s\d\-]+)$ + * Extract $1 and set $prefix to '+44' if $1 is '44', otherwise set $prefix to '0' + * Extract $2 and remove hyphens, spaces and parentheses. Phone number is combined $prefix and $2. + * A number of very detailed GB telephone number RegEx patterns can also be found at: + * http://www.aa-asterisk.org.uk/index.php/Regular_Expressions_for_Validating_and_Formatting_GB_Telephone_Numbers + */ +//Matches UK landline + mobile, accepting only 01-3 for landline or 07 for mobile to exclude many premium numbers +$.validator.addMethod("phonesUK", function(phone_number, element) { + phone_number = phone_number.replace(/\(|\)|\s+|-/g, ""); + return this.optional(element) || phone_number.length > 9 && + phone_number.match(/^(?:(?:(?:00\s?|\+)44\s?|0)(?:1\d{8,9}|[23]\d{9}|7(?:[1345789]\d{8}|624\d{6})))$/); +}, "Please specify a valid uk phone number"); + +/** + * Matches a valid Canadian Postal Code + * + * @example jQuery.validator.methods.postalCodeCA( "H0H 0H0", element ) + * @result true + * + * @example jQuery.validator.methods.postalCodeCA( "H0H0H0", element ) + * @result false + * + * @name jQuery.validator.methods.postalCodeCA + * @type Boolean + * @cat Plugins/Validate/Methods + */ +$.validator.addMethod( "postalCodeCA", function( value, element ) { + return this.optional( element ) || /^[ABCEGHJKLMNPRSTVXY]\d[A-Z] \d[A-Z]\d$/.test( value ); +}, "Please specify a valid postal code" ); + +/* +* Valida CEPs do brasileiros: +* +* Formatos aceitos: +* 99999-999 +* 99.999-999 +* 99999999 +*/ +$.validator.addMethod("postalcodeBR", function(cep_value, element) { + return this.optional(element) || /^\d{2}.\d{3}-\d{3}?$|^\d{5}-?\d{3}?$/.test( cep_value ); +}, "Informe um CEP válido."); + +/* Matches Italian postcode (CAP) */ +$.validator.addMethod("postalcodeIT", function(value, element) { + return this.optional(element) || /^\d{5}$/.test(value); +}, "Please specify a valid postal code"); + +$.validator.addMethod("postalcodeNL", function(value, element) { + return this.optional(element) || /^[1-9][0-9]{3}\s?[a-zA-Z]{2}$/.test(value); +}, "Please specify a valid postal code"); + +// Matches UK postcode. Does not match to UK Channel Islands that have their own postcodes (non standard UK) +$.validator.addMethod("postcodeUK", function(value, element) { + return this.optional(element) || /^((([A-PR-UWYZ][0-9])|([A-PR-UWYZ][0-9][0-9])|([A-PR-UWYZ][A-HK-Y][0-9])|([A-PR-UWYZ][A-HK-Y][0-9][0-9])|([A-PR-UWYZ][0-9][A-HJKSTUW])|([A-PR-UWYZ][A-HK-Y][0-9][ABEHMNPRVWXY]))\s?([0-9][ABD-HJLNP-UW-Z]{2})|(GIR)\s?(0AA))$/i.test(value); +}, "Please specify a valid UK postcode"); + +/* + * Lets you say "at least X inputs that match selector Y must be filled." + * + * The end result is that neither of these inputs: + * + * + * + * + * ...will validate unless at least one of them is filled. + * + * partnumber: {require_from_group: [1,".productinfo"]}, + * description: {require_from_group: [1,".productinfo"]} + * + * options[0]: number of fields that must be filled in the group + * options[1]: CSS selector that defines the group of conditionally required fields + */ +$.validator.addMethod("require_from_group", function(value, element, options) { + var $fields = $(options[1], element.form), + $fieldsFirst = $fields.eq(0), + validator = $fieldsFirst.data("valid_req_grp") ? $fieldsFirst.data("valid_req_grp") : $.extend({}, this), + isValid = $fields.filter(function() { + return validator.elementValue(this); + }).length >= options[0]; + + // Store the cloned validator for future validation + $fieldsFirst.data("valid_req_grp", validator); + + // If element isn't being validated, run each require_from_group field's validation rules + if (!$(element).data("being_validated")) { + $fields.data("being_validated", true); + $fields.each(function() { + validator.element(this); + }); + $fields.data("being_validated", false); + } + return isValid; +}, $.validator.format("Please fill at least {0} of these fields.")); + +/* + * Lets you say "either at least X inputs that match selector Y must be filled, + * OR they must all be skipped (left blank)." + * + * The end result, is that none of these inputs: + * + * + * + * + * + * ...will validate unless either at least two of them are filled, + * OR none of them are. + * + * partnumber: {skip_or_fill_minimum: [2,".productinfo"]}, + * description: {skip_or_fill_minimum: [2,".productinfo"]}, + * color: {skip_or_fill_minimum: [2,".productinfo"]} + * + * options[0]: number of fields that must be filled in the group + * options[1]: CSS selector that defines the group of conditionally required fields + * + */ +$.validator.addMethod("skip_or_fill_minimum", function(value, element, options) { + var $fields = $(options[1], element.form), + $fieldsFirst = $fields.eq(0), + validator = $fieldsFirst.data("valid_skip") ? $fieldsFirst.data("valid_skip") : $.extend({}, this), + numberFilled = $fields.filter(function() { + return validator.elementValue(this); + }).length, + isValid = numberFilled === 0 || numberFilled >= options[0]; + + // Store the cloned validator for future validation + $fieldsFirst.data("valid_skip", validator); + + // If element isn't being validated, run each skip_or_fill_minimum field's validation rules + if (!$(element).data("being_validated")) { + $fields.data("being_validated", true); + $fields.each(function() { + validator.element(this); + }); + $fields.data("being_validated", false); + } + return isValid; +}, $.validator.format("Please either skip these fields or fill at least {0} of them.")); + +/* Validates US States and/or Territories by @jdforsythe + * Can be case insensitive or require capitalization - default is case insensitive + * Can include US Territories or not - default does not + * Can include US Military postal abbreviations (AA, AE, AP) - default does not + * + * Note: "States" always includes DC (District of Colombia) + * + * Usage examples: + * + * This is the default - case insensitive, no territories, no military zones + * stateInput: { + * caseSensitive: false, + * includeTerritories: false, + * includeMilitary: false + * } + * + * Only allow capital letters, no territories, no military zones + * stateInput: { + * caseSensitive: false + * } + * + * Case insensitive, include territories but not military zones + * stateInput: { + * includeTerritories: true + * } + * + * Only allow capital letters, include territories and military zones + * stateInput: { + * caseSensitive: true, + * includeTerritories: true, + * includeMilitary: true + * } + * + * + * + */ + +$.validator.addMethod("stateUS", function(value, element, options) { + var isDefault = typeof options === "undefined", + caseSensitive = ( isDefault || typeof options.caseSensitive === "undefined" ) ? false : options.caseSensitive, + includeTerritories = ( isDefault || typeof options.includeTerritories === "undefined" ) ? false : options.includeTerritories, + includeMilitary = ( isDefault || typeof options.includeMilitary === "undefined" ) ? false : options.includeMilitary, + regex; + + if (!includeTerritories && !includeMilitary) { + regex = "^(A[KLRZ]|C[AOT]|D[CE]|FL|GA|HI|I[ADLN]|K[SY]|LA|M[ADEINOST]|N[CDEHJMVY]|O[HKR]|PA|RI|S[CD]|T[NX]|UT|V[AT]|W[AIVY])$"; + } else if (includeTerritories && includeMilitary) { + regex = "^(A[AEKLPRSZ]|C[AOT]|D[CE]|FL|G[AU]|HI|I[ADLN]|K[SY]|LA|M[ADEINOPST]|N[CDEHJMVY]|O[HKR]|P[AR]|RI|S[CD]|T[NX]|UT|V[AIT]|W[AIVY])$"; + } else if (includeTerritories) { + regex = "^(A[KLRSZ]|C[AOT]|D[CE]|FL|G[AU]|HI|I[ADLN]|K[SY]|LA|M[ADEINOPST]|N[CDEHJMVY]|O[HKR]|P[AR]|RI|S[CD]|T[NX]|UT|V[AIT]|W[AIVY])$"; + } else { + regex = "^(A[AEKLPRZ]|C[AOT]|D[CE]|FL|GA|HI|I[ADLN]|K[SY]|LA|M[ADEINOST]|N[CDEHJMVY]|O[HKR]|PA|RI|S[CD]|T[NX]|UT|V[AT]|W[AIVY])$"; + } + + regex = caseSensitive ? new RegExp(regex) : new RegExp(regex, "i"); + return this.optional(element) || regex.test(value); +}, +"Please specify a valid state"); + +// TODO check if value starts with <, otherwise don't try stripping anything +$.validator.addMethod("strippedminlength", function(value, element, param) { + return $(value).text().length >= param; +}, $.validator.format("Please enter at least {0} characters")); + +$.validator.addMethod("time", function(value, element) { + return this.optional(element) || /^([01]\d|2[0-3]|[0-9])(:[0-5]\d){1,2}$/.test(value); +}, "Please enter a valid time, between 00:00 and 23:59"); + +$.validator.addMethod("time12h", function(value, element) { + return this.optional(element) || /^((0?[1-9]|1[012])(:[0-5]\d){1,2}(\ ?[AP]M))$/i.test(value); +}, "Please enter a valid time in 12-hour am/pm format"); + +// same as url, but TLD is optional +$.validator.addMethod("url2", function(value, element) { + return this.optional(element) || /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)*(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(value); +}, $.validator.messages.url); + +/** + * Return true, if the value is a valid vehicle identification number (VIN). + * + * Works with all kind of text inputs. + * + * @example + * @desc Declares a required input element whose value must be a valid vehicle identification number. + * + * @name $.validator.methods.vinUS + * @type Boolean + * @cat Plugins/Validate/Methods + */ +$.validator.addMethod("vinUS", function(v) { + if (v.length !== 17) { + return false; + } + + var LL = [ "A", "B", "C", "D", "E", "F", "G", "H", "J", "K", "L", "M", "N", "P", "R", "S", "T", "U", "V", "W", "X", "Y", "Z" ], + VL = [ 1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 7, 9, 2, 3, 4, 5, 6, 7, 8, 9 ], + FL = [ 8, 7, 6, 5, 4, 3, 2, 10, 0, 9, 8, 7, 6, 5, 4, 3, 2 ], + rs = 0, + i, n, d, f, cd, cdv; + + for (i = 0; i < 17; i++) { + f = FL[i]; + d = v.slice(i, i + 1); + if (i === 8) { + cdv = d; + } + if (!isNaN(d)) { + d *= f; + } else { + for (n = 0; n < LL.length; n++) { + if (d.toUpperCase() === LL[n]) { + d = VL[n]; + d *= f; + if (isNaN(cdv) && n === 8) { + cdv = LL[n]; + } + break; + } + } + } + rs += d; + } + cd = rs % 11; + if (cd === 10) { + cd = "X"; + } + if (cd === cdv) { + return true; + } + return false; +}, "The specified vehicle identification number (VIN) is invalid."); + +$.validator.addMethod("zipcodeUS", function(value, element) { + return this.optional(element) || /^\d{5}(-\d{4})?$/.test(value); +}, "The specified US ZIP Code is invalid"); + +$.validator.addMethod("ziprange", function(value, element) { + return this.optional(element) || /^90[2-5]\d\{2\}-\d{4}$/.test(value); +}, "Your ZIP-code must be in the range 902xx-xxxx to 905xx-xxxx"); + +})); \ No newline at end of file diff --git a/src/Sample.RazorPages/wwwroot/lib/jquery-validation/dist/jquery.validate.js b/src/Sample.RazorPages/wwwroot/lib/jquery-validation/dist/jquery.validate.js new file mode 100644 index 0000000..4e979bc --- /dev/null +++ b/src/Sample.RazorPages/wwwroot/lib/jquery-validation/dist/jquery.validate.js @@ -0,0 +1,1398 @@ +/*! + * jQuery Validation Plugin v1.14.0 + * + * http://jqueryvalidation.org/ + * + * Copyright (c) 2015 Jörn Zaefferer + * Released under the MIT license + */ +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + define( ["jquery"], factory ); + } else { + factory( jQuery ); + } +}(function( $ ) { + +$.extend($.fn, { + // http://jqueryvalidation.org/validate/ + validate: function( options ) { + + // if nothing is selected, return nothing; can't chain anyway + if ( !this.length ) { + if ( options && options.debug && window.console ) { + console.warn( "Nothing selected, can't validate, returning nothing." ); + } + return; + } + + // check if a validator for this form was already created + var validator = $.data( this[ 0 ], "validator" ); + if ( validator ) { + return validator; + } + + // Add novalidate tag if HTML5. + this.attr( "novalidate", "novalidate" ); + + validator = new $.validator( options, this[ 0 ] ); + $.data( this[ 0 ], "validator", validator ); + + if ( validator.settings.onsubmit ) { + + this.on( "click.validate", ":submit", function( event ) { + if ( validator.settings.submitHandler ) { + validator.submitButton = event.target; + } + + // allow suppressing validation by adding a cancel class to the submit button + if ( $( this ).hasClass( "cancel" ) ) { + validator.cancelSubmit = true; + } + + // allow suppressing validation by adding the html5 formnovalidate attribute to the submit button + if ( $( this ).attr( "formnovalidate" ) !== undefined ) { + validator.cancelSubmit = true; + } + }); + + // validate the form on submit + this.on( "submit.validate", function( event ) { + if ( validator.settings.debug ) { + // prevent form submit to be able to see console output + event.preventDefault(); + } + function handle() { + var hidden, result; + if ( validator.settings.submitHandler ) { + if ( validator.submitButton ) { + // insert a hidden input as a replacement for the missing submit button + hidden = $( "" ) + .attr( "name", validator.submitButton.name ) + .val( $( validator.submitButton ).val() ) + .appendTo( validator.currentForm ); + } + result = validator.settings.submitHandler.call( validator, validator.currentForm, event ); + if ( validator.submitButton ) { + // and clean up afterwards; thanks to no-block-scope, hidden can be referenced + hidden.remove(); + } + if ( result !== undefined ) { + return result; + } + return false; + } + return true; + } + + // prevent submit for invalid forms or custom submit handlers + if ( validator.cancelSubmit ) { + validator.cancelSubmit = false; + return handle(); + } + if ( validator.form() ) { + if ( validator.pendingRequest ) { + validator.formSubmitted = true; + return false; + } + return handle(); + } else { + validator.focusInvalid(); + return false; + } + }); + } + + return validator; + }, + // http://jqueryvalidation.org/valid/ + valid: function() { + var valid, validator, errorList; + + if ( $( this[ 0 ] ).is( "form" ) ) { + valid = this.validate().form(); + } else { + errorList = []; + valid = true; + validator = $( this[ 0 ].form ).validate(); + this.each( function() { + valid = validator.element( this ) && valid; + errorList = errorList.concat( validator.errorList ); + }); + validator.errorList = errorList; + } + return valid; + }, + + // http://jqueryvalidation.org/rules/ + rules: function( command, argument ) { + var element = this[ 0 ], + settings, staticRules, existingRules, data, param, filtered; + + if ( command ) { + settings = $.data( element.form, "validator" ).settings; + staticRules = settings.rules; + existingRules = $.validator.staticRules( element ); + switch ( command ) { + case "add": + $.extend( existingRules, $.validator.normalizeRule( argument ) ); + // remove messages from rules, but allow them to be set separately + delete existingRules.messages; + staticRules[ element.name ] = existingRules; + if ( argument.messages ) { + settings.messages[ element.name ] = $.extend( settings.messages[ element.name ], argument.messages ); + } + break; + case "remove": + if ( !argument ) { + delete staticRules[ element.name ]; + return existingRules; + } + filtered = {}; + $.each( argument.split( /\s/ ), function( index, method ) { + filtered[ method ] = existingRules[ method ]; + delete existingRules[ method ]; + if ( method === "required" ) { + $( element ).removeAttr( "aria-required" ); + } + }); + return filtered; + } + } + + data = $.validator.normalizeRules( + $.extend( + {}, + $.validator.classRules( element ), + $.validator.attributeRules( element ), + $.validator.dataRules( element ), + $.validator.staticRules( element ) + ), element ); + + // make sure required is at front + if ( data.required ) { + param = data.required; + delete data.required; + data = $.extend( { required: param }, data ); + $( element ).attr( "aria-required", "true" ); + } + + // make sure remote is at back + if ( data.remote ) { + param = data.remote; + delete data.remote; + data = $.extend( data, { remote: param }); + } + + return data; + } +}); + +// Custom selectors +$.extend( $.expr[ ":" ], { + // http://jqueryvalidation.org/blank-selector/ + blank: function( a ) { + return !$.trim( "" + $( a ).val() ); + }, + // http://jqueryvalidation.org/filled-selector/ + filled: function( a ) { + return !!$.trim( "" + $( a ).val() ); + }, + // http://jqueryvalidation.org/unchecked-selector/ + unchecked: function( a ) { + return !$( a ).prop( "checked" ); + } +}); + +// constructor for validator +$.validator = function( options, form ) { + this.settings = $.extend( true, {}, $.validator.defaults, options ); + this.currentForm = form; + this.init(); +}; + +// http://jqueryvalidation.org/jQuery.validator.format/ +$.validator.format = function( source, params ) { + if ( arguments.length === 1 ) { + return function() { + var args = $.makeArray( arguments ); + args.unshift( source ); + return $.validator.format.apply( this, args ); + }; + } + if ( arguments.length > 2 && params.constructor !== Array ) { + params = $.makeArray( arguments ).slice( 1 ); + } + if ( params.constructor !== Array ) { + params = [ params ]; + } + $.each( params, function( i, n ) { + source = source.replace( new RegExp( "\\{" + i + "\\}", "g" ), function() { + return n; + }); + }); + return source; +}; + +$.extend( $.validator, { + + defaults: { + messages: {}, + groups: {}, + rules: {}, + errorClass: "error", + validClass: "valid", + errorElement: "label", + focusCleanup: false, + focusInvalid: true, + errorContainer: $( [] ), + errorLabelContainer: $( [] ), + onsubmit: true, + ignore: ":hidden", + ignoreTitle: false, + onfocusin: function( element ) { + this.lastActive = element; + + // Hide error label and remove error class on focus if enabled + if ( this.settings.focusCleanup ) { + if ( this.settings.unhighlight ) { + this.settings.unhighlight.call( this, element, this.settings.errorClass, this.settings.validClass ); + } + this.hideThese( this.errorsFor( element ) ); + } + }, + onfocusout: function( element ) { + if ( !this.checkable( element ) && ( element.name in this.submitted || !this.optional( element ) ) ) { + this.element( element ); + } + }, + onkeyup: function( element, event ) { + // Avoid revalidate the field when pressing one of the following keys + // Shift => 16 + // Ctrl => 17 + // Alt => 18 + // Caps lock => 20 + // End => 35 + // Home => 36 + // Left arrow => 37 + // Up arrow => 38 + // Right arrow => 39 + // Down arrow => 40 + // Insert => 45 + // Num lock => 144 + // AltGr key => 225 + var excludedKeys = [ + 16, 17, 18, 20, 35, 36, 37, + 38, 39, 40, 45, 144, 225 + ]; + + if ( event.which === 9 && this.elementValue( element ) === "" || $.inArray( event.keyCode, excludedKeys ) !== -1 ) { + return; + } else if ( element.name in this.submitted || element === this.lastElement ) { + this.element( element ); + } + }, + onclick: function( element ) { + // click on selects, radiobuttons and checkboxes + if ( element.name in this.submitted ) { + this.element( element ); + + // or option elements, check parent select in that case + } else if ( element.parentNode.name in this.submitted ) { + this.element( element.parentNode ); + } + }, + highlight: function( element, errorClass, validClass ) { + if ( element.type === "radio" ) { + this.findByName( element.name ).addClass( errorClass ).removeClass( validClass ); + } else { + $( element ).addClass( errorClass ).removeClass( validClass ); + } + }, + unhighlight: function( element, errorClass, validClass ) { + if ( element.type === "radio" ) { + this.findByName( element.name ).removeClass( errorClass ).addClass( validClass ); + } else { + $( element ).removeClass( errorClass ).addClass( validClass ); + } + } + }, + + // http://jqueryvalidation.org/jQuery.validator.setDefaults/ + setDefaults: function( settings ) { + $.extend( $.validator.defaults, settings ); + }, + + messages: { + required: "This field is required.", + remote: "Please fix this field.", + email: "Please enter a valid email address.", + url: "Please enter a valid URL.", + date: "Please enter a valid date.", + dateISO: "Please enter a valid date ( ISO ).", + number: "Please enter a valid number.", + digits: "Please enter only digits.", + creditcard: "Please enter a valid credit card number.", + equalTo: "Please enter the same value again.", + maxlength: $.validator.format( "Please enter no more than {0} characters." ), + minlength: $.validator.format( "Please enter at least {0} characters." ), + rangelength: $.validator.format( "Please enter a value between {0} and {1} characters long." ), + range: $.validator.format( "Please enter a value between {0} and {1}." ), + max: $.validator.format( "Please enter a value less than or equal to {0}." ), + min: $.validator.format( "Please enter a value greater than or equal to {0}." ) + }, + + autoCreateRanges: false, + + prototype: { + + init: function() { + this.labelContainer = $( this.settings.errorLabelContainer ); + this.errorContext = this.labelContainer.length && this.labelContainer || $( this.currentForm ); + this.containers = $( this.settings.errorContainer ).add( this.settings.errorLabelContainer ); + this.submitted = {}; + this.valueCache = {}; + this.pendingRequest = 0; + this.pending = {}; + this.invalid = {}; + this.reset(); + + var groups = ( this.groups = {} ), + rules; + $.each( this.settings.groups, function( key, value ) { + if ( typeof value === "string" ) { + value = value.split( /\s/ ); + } + $.each( value, function( index, name ) { + groups[ name ] = key; + }); + }); + rules = this.settings.rules; + $.each( rules, function( key, value ) { + rules[ key ] = $.validator.normalizeRule( value ); + }); + + function delegate( event ) { + var validator = $.data( this.form, "validator" ), + eventType = "on" + event.type.replace( /^validate/, "" ), + settings = validator.settings; + if ( settings[ eventType ] && !$( this ).is( settings.ignore ) ) { + settings[ eventType ].call( validator, this, event ); + } + } + + $( this.currentForm ) + .on( "focusin.validate focusout.validate keyup.validate", + ":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], " + + "[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], " + + "[type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], " + + "[type='radio'], [type='checkbox']", delegate) + // Support: Chrome, oldIE + // "select" is provided as event.target when clicking a option + .on("click.validate", "select, option, [type='radio'], [type='checkbox']", delegate); + + if ( this.settings.invalidHandler ) { + $( this.currentForm ).on( "invalid-form.validate", this.settings.invalidHandler ); + } + + // Add aria-required to any Static/Data/Class required fields before first validation + // Screen readers require this attribute to be present before the initial submission http://www.w3.org/TR/WCAG-TECHS/ARIA2.html + $( this.currentForm ).find( "[required], [data-rule-required], .required" ).attr( "aria-required", "true" ); + }, + + // http://jqueryvalidation.org/Validator.form/ + form: function() { + this.checkForm(); + $.extend( this.submitted, this.errorMap ); + this.invalid = $.extend({}, this.errorMap ); + if ( !this.valid() ) { + $( this.currentForm ).triggerHandler( "invalid-form", [ this ]); + } + this.showErrors(); + return this.valid(); + }, + + checkForm: function() { + this.prepareForm(); + for ( var i = 0, elements = ( this.currentElements = this.elements() ); elements[ i ]; i++ ) { + this.check( elements[ i ] ); + } + return this.valid(); + }, + + // http://jqueryvalidation.org/Validator.element/ + element: function( element ) { + var cleanElement = this.clean( element ), + checkElement = this.validationTargetFor( cleanElement ), + result = true; + + this.lastElement = checkElement; + + if ( checkElement === undefined ) { + delete this.invalid[ cleanElement.name ]; + } else { + this.prepareElement( checkElement ); + this.currentElements = $( checkElement ); + + result = this.check( checkElement ) !== false; + if ( result ) { + delete this.invalid[ checkElement.name ]; + } else { + this.invalid[ checkElement.name ] = true; + } + } + // Add aria-invalid status for screen readers + $( element ).attr( "aria-invalid", !result ); + + if ( !this.numberOfInvalids() ) { + // Hide error containers on last error + this.toHide = this.toHide.add( this.containers ); + } + this.showErrors(); + return result; + }, + + // http://jqueryvalidation.org/Validator.showErrors/ + showErrors: function( errors ) { + if ( errors ) { + // add items to error list and map + $.extend( this.errorMap, errors ); + this.errorList = []; + for ( var name in errors ) { + this.errorList.push({ + message: errors[ name ], + element: this.findByName( name )[ 0 ] + }); + } + // remove items from success list + this.successList = $.grep( this.successList, function( element ) { + return !( element.name in errors ); + }); + } + if ( this.settings.showErrors ) { + this.settings.showErrors.call( this, this.errorMap, this.errorList ); + } else { + this.defaultShowErrors(); + } + }, + + // http://jqueryvalidation.org/Validator.resetForm/ + resetForm: function() { + if ( $.fn.resetForm ) { + $( this.currentForm ).resetForm(); + } + this.submitted = {}; + this.lastElement = null; + this.prepareForm(); + this.hideErrors(); + var i, elements = this.elements() + .removeData( "previousValue" ) + .removeAttr( "aria-invalid" ); + + if ( this.settings.unhighlight ) { + for ( i = 0; elements[ i ]; i++ ) { + this.settings.unhighlight.call( this, elements[ i ], + this.settings.errorClass, "" ); + } + } else { + elements.removeClass( this.settings.errorClass ); + } + }, + + numberOfInvalids: function() { + return this.objectLength( this.invalid ); + }, + + objectLength: function( obj ) { + /* jshint unused: false */ + var count = 0, + i; + for ( i in obj ) { + count++; + } + return count; + }, + + hideErrors: function() { + this.hideThese( this.toHide ); + }, + + hideThese: function( errors ) { + errors.not( this.containers ).text( "" ); + this.addWrapper( errors ).hide(); + }, + + valid: function() { + return this.size() === 0; + }, + + size: function() { + return this.errorList.length; + }, + + focusInvalid: function() { + if ( this.settings.focusInvalid ) { + try { + $( this.findLastActive() || this.errorList.length && this.errorList[ 0 ].element || []) + .filter( ":visible" ) + .focus() + // manually trigger focusin event; without it, focusin handler isn't called, findLastActive won't have anything to find + .trigger( "focusin" ); + } catch ( e ) { + // ignore IE throwing errors when focusing hidden elements + } + } + }, + + findLastActive: function() { + var lastActive = this.lastActive; + return lastActive && $.grep( this.errorList, function( n ) { + return n.element.name === lastActive.name; + }).length === 1 && lastActive; + }, + + elements: function() { + var validator = this, + rulesCache = {}; + + // select all valid inputs inside the form (no submit or reset buttons) + return $( this.currentForm ) + .find( "input, select, textarea" ) + .not( ":submit, :reset, :image, :disabled" ) + .not( this.settings.ignore ) + .filter( function() { + if ( !this.name && validator.settings.debug && window.console ) { + console.error( "%o has no name assigned", this ); + } + + // select only the first element for each name, and only those with rules specified + if ( this.name in rulesCache || !validator.objectLength( $( this ).rules() ) ) { + return false; + } + + rulesCache[ this.name ] = true; + return true; + }); + }, + + clean: function( selector ) { + return $( selector )[ 0 ]; + }, + + errors: function() { + var errorClass = this.settings.errorClass.split( " " ).join( "." ); + return $( this.settings.errorElement + "." + errorClass, this.errorContext ); + }, + + reset: function() { + this.successList = []; + this.errorList = []; + this.errorMap = {}; + this.toShow = $( [] ); + this.toHide = $( [] ); + this.currentElements = $( [] ); + }, + + prepareForm: function() { + this.reset(); + this.toHide = this.errors().add( this.containers ); + }, + + prepareElement: function( element ) { + this.reset(); + this.toHide = this.errorsFor( element ); + }, + + elementValue: function( element ) { + var val, + $element = $( element ), + type = element.type; + + if ( type === "radio" || type === "checkbox" ) { + return this.findByName( element.name ).filter(":checked").val(); + } else if ( type === "number" && typeof element.validity !== "undefined" ) { + return element.validity.badInput ? false : $element.val(); + } + + val = $element.val(); + if ( typeof val === "string" ) { + return val.replace(/\r/g, "" ); + } + return val; + }, + + check: function( element ) { + element = this.validationTargetFor( this.clean( element ) ); + + var rules = $( element ).rules(), + rulesCount = $.map( rules, function( n, i ) { + return i; + }).length, + dependencyMismatch = false, + val = this.elementValue( element ), + result, method, rule; + + for ( method in rules ) { + rule = { method: method, parameters: rules[ method ] }; + try { + + result = $.validator.methods[ method ].call( this, val, element, rule.parameters ); + + // if a method indicates that the field is optional and therefore valid, + // don't mark it as valid when there are no other rules + if ( result === "dependency-mismatch" && rulesCount === 1 ) { + dependencyMismatch = true; + continue; + } + dependencyMismatch = false; + + if ( result === "pending" ) { + this.toHide = this.toHide.not( this.errorsFor( element ) ); + return; + } + + if ( !result ) { + this.formatAndAdd( element, rule ); + return false; + } + } catch ( e ) { + if ( this.settings.debug && window.console ) { + console.log( "Exception occurred when checking element " + element.id + ", check the '" + rule.method + "' method.", e ); + } + if ( e instanceof TypeError ) { + e.message += ". Exception occurred when checking element " + element.id + ", check the '" + rule.method + "' method."; + } + + throw e; + } + } + if ( dependencyMismatch ) { + return; + } + if ( this.objectLength( rules ) ) { + this.successList.push( element ); + } + return true; + }, + + // return the custom message for the given element and validation method + // specified in the element's HTML5 data attribute + // return the generic message if present and no method specific message is present + customDataMessage: function( element, method ) { + return $( element ).data( "msg" + method.charAt( 0 ).toUpperCase() + + method.substring( 1 ).toLowerCase() ) || $( element ).data( "msg" ); + }, + + // return the custom message for the given element name and validation method + customMessage: function( name, method ) { + var m = this.settings.messages[ name ]; + return m && ( m.constructor === String ? m : m[ method ]); + }, + + // return the first defined argument, allowing empty strings + findDefined: function() { + for ( var i = 0; i < arguments.length; i++) { + if ( arguments[ i ] !== undefined ) { + return arguments[ i ]; + } + } + return undefined; + }, + + defaultMessage: function( element, method ) { + return this.findDefined( + this.customMessage( element.name, method ), + this.customDataMessage( element, method ), + // title is never undefined, so handle empty string as undefined + !this.settings.ignoreTitle && element.title || undefined, + $.validator.messages[ method ], + "Warning: No message defined for " + element.name + "" + ); + }, + + formatAndAdd: function( element, rule ) { + var message = this.defaultMessage( element, rule.method ), + theregex = /\$?\{(\d+)\}/g; + if ( typeof message === "function" ) { + message = message.call( this, rule.parameters, element ); + } else if ( theregex.test( message ) ) { + message = $.validator.format( message.replace( theregex, "{$1}" ), rule.parameters ); + } + this.errorList.push({ + message: message, + element: element, + method: rule.method + }); + + this.errorMap[ element.name ] = message; + this.submitted[ element.name ] = message; + }, + + addWrapper: function( toToggle ) { + if ( this.settings.wrapper ) { + toToggle = toToggle.add( toToggle.parent( this.settings.wrapper ) ); + } + return toToggle; + }, + + defaultShowErrors: function() { + var i, elements, error; + for ( i = 0; this.errorList[ i ]; i++ ) { + error = this.errorList[ i ]; + if ( this.settings.highlight ) { + this.settings.highlight.call( this, error.element, this.settings.errorClass, this.settings.validClass ); + } + this.showLabel( error.element, error.message ); + } + if ( this.errorList.length ) { + this.toShow = this.toShow.add( this.containers ); + } + if ( this.settings.success ) { + for ( i = 0; this.successList[ i ]; i++ ) { + this.showLabel( this.successList[ i ] ); + } + } + if ( this.settings.unhighlight ) { + for ( i = 0, elements = this.validElements(); elements[ i ]; i++ ) { + this.settings.unhighlight.call( this, elements[ i ], this.settings.errorClass, this.settings.validClass ); + } + } + this.toHide = this.toHide.not( this.toShow ); + this.hideErrors(); + this.addWrapper( this.toShow ).show(); + }, + + validElements: function() { + return this.currentElements.not( this.invalidElements() ); + }, + + invalidElements: function() { + return $( this.errorList ).map(function() { + return this.element; + }); + }, + + showLabel: function( element, message ) { + var place, group, errorID, + error = this.errorsFor( element ), + elementID = this.idOrName( element ), + describedBy = $( element ).attr( "aria-describedby" ); + if ( error.length ) { + // refresh error/success class + error.removeClass( this.settings.validClass ).addClass( this.settings.errorClass ); + // replace message on existing label + error.html( message ); + } else { + // create error element + error = $( "<" + this.settings.errorElement + ">" ) + .attr( "id", elementID + "-error" ) + .addClass( this.settings.errorClass ) + .html( message || "" ); + + // Maintain reference to the element to be placed into the DOM + place = error; + if ( this.settings.wrapper ) { + // make sure the element is visible, even in IE + // actually showing the wrapped element is handled elsewhere + place = error.hide().show().wrap( "<" + this.settings.wrapper + "/>" ).parent(); + } + if ( this.labelContainer.length ) { + this.labelContainer.append( place ); + } else if ( this.settings.errorPlacement ) { + this.settings.errorPlacement( place, $( element ) ); + } else { + place.insertAfter( element ); + } + + // Link error back to the element + if ( error.is( "label" ) ) { + // If the error is a label, then associate using 'for' + error.attr( "for", elementID ); + } else if ( error.parents( "label[for='" + elementID + "']" ).length === 0 ) { + // If the element is not a child of an associated label, then it's necessary + // to explicitly apply aria-describedby + + errorID = error.attr( "id" ).replace( /(:|\.|\[|\]|\$)/g, "\\$1"); + // Respect existing non-error aria-describedby + if ( !describedBy ) { + describedBy = errorID; + } else if ( !describedBy.match( new RegExp( "\\b" + errorID + "\\b" ) ) ) { + // Add to end of list if not already present + describedBy += " " + errorID; + } + $( element ).attr( "aria-describedby", describedBy ); + + // If this element is grouped, then assign to all elements in the same group + group = this.groups[ element.name ]; + if ( group ) { + $.each( this.groups, function( name, testgroup ) { + if ( testgroup === group ) { + $( "[name='" + name + "']", this.currentForm ) + .attr( "aria-describedby", error.attr( "id" ) ); + } + }); + } + } + } + if ( !message && this.settings.success ) { + error.text( "" ); + if ( typeof this.settings.success === "string" ) { + error.addClass( this.settings.success ); + } else { + this.settings.success( error, element ); + } + } + this.toShow = this.toShow.add( error ); + }, + + errorsFor: function( element ) { + var name = this.idOrName( element ), + describer = $( element ).attr( "aria-describedby" ), + selector = "label[for='" + name + "'], label[for='" + name + "'] *"; + + // aria-describedby should directly reference the error element + if ( describer ) { + selector = selector + ", #" + describer.replace( /\s+/g, ", #" ); + } + return this + .errors() + .filter( selector ); + }, + + idOrName: function( element ) { + return this.groups[ element.name ] || ( this.checkable( element ) ? element.name : element.id || element.name ); + }, + + validationTargetFor: function( element ) { + + // If radio/checkbox, validate first element in group instead + if ( this.checkable( element ) ) { + element = this.findByName( element.name ); + } + + // Always apply ignore filter + return $( element ).not( this.settings.ignore )[ 0 ]; + }, + + checkable: function( element ) { + return ( /radio|checkbox/i ).test( element.type ); + }, + + findByName: function( name ) { + return $( this.currentForm ).find( "[name='" + name + "']" ); + }, + + getLength: function( value, element ) { + switch ( element.nodeName.toLowerCase() ) { + case "select": + return $( "option:selected", element ).length; + case "input": + if ( this.checkable( element ) ) { + return this.findByName( element.name ).filter( ":checked" ).length; + } + } + return value.length; + }, + + depend: function( param, element ) { + return this.dependTypes[typeof param] ? this.dependTypes[typeof param]( param, element ) : true; + }, + + dependTypes: { + "boolean": function( param ) { + return param; + }, + "string": function( param, element ) { + return !!$( param, element.form ).length; + }, + "function": function( param, element ) { + return param( element ); + } + }, + + optional: function( element ) { + var val = this.elementValue( element ); + return !$.validator.methods.required.call( this, val, element ) && "dependency-mismatch"; + }, + + startRequest: function( element ) { + if ( !this.pending[ element.name ] ) { + this.pendingRequest++; + this.pending[ element.name ] = true; + } + }, + + stopRequest: function( element, valid ) { + this.pendingRequest--; + // sometimes synchronization fails, make sure pendingRequest is never < 0 + if ( this.pendingRequest < 0 ) { + this.pendingRequest = 0; + } + delete this.pending[ element.name ]; + if ( valid && this.pendingRequest === 0 && this.formSubmitted && this.form() ) { + $( this.currentForm ).submit(); + this.formSubmitted = false; + } else if (!valid && this.pendingRequest === 0 && this.formSubmitted ) { + $( this.currentForm ).triggerHandler( "invalid-form", [ this ]); + this.formSubmitted = false; + } + }, + + previousValue: function( element ) { + return $.data( element, "previousValue" ) || $.data( element, "previousValue", { + old: null, + valid: true, + message: this.defaultMessage( element, "remote" ) + }); + }, + + // cleans up all forms and elements, removes validator-specific events + destroy: function() { + this.resetForm(); + + $( this.currentForm ) + .off( ".validate" ) + .removeData( "validator" ); + } + + }, + + classRuleSettings: { + required: { required: true }, + email: { email: true }, + url: { url: true }, + date: { date: true }, + dateISO: { dateISO: true }, + number: { number: true }, + digits: { digits: true }, + creditcard: { creditcard: true } + }, + + addClassRules: function( className, rules ) { + if ( className.constructor === String ) { + this.classRuleSettings[ className ] = rules; + } else { + $.extend( this.classRuleSettings, className ); + } + }, + + classRules: function( element ) { + var rules = {}, + classes = $( element ).attr( "class" ); + + if ( classes ) { + $.each( classes.split( " " ), function() { + if ( this in $.validator.classRuleSettings ) { + $.extend( rules, $.validator.classRuleSettings[ this ]); + } + }); + } + return rules; + }, + + normalizeAttributeRule: function( rules, type, method, value ) { + + // convert the value to a number for number inputs, and for text for backwards compability + // allows type="date" and others to be compared as strings + if ( /min|max/.test( method ) && ( type === null || /number|range|text/.test( type ) ) ) { + value = Number( value ); + + // Support Opera Mini, which returns NaN for undefined minlength + if ( isNaN( value ) ) { + value = undefined; + } + } + + if ( value || value === 0 ) { + rules[ method ] = value; + } else if ( type === method && type !== "range" ) { + + // exception: the jquery validate 'range' method + // does not test for the html5 'range' type + rules[ method ] = true; + } + }, + + attributeRules: function( element ) { + var rules = {}, + $element = $( element ), + type = element.getAttribute( "type" ), + method, value; + + for ( method in $.validator.methods ) { + + // support for in both html5 and older browsers + if ( method === "required" ) { + value = element.getAttribute( method ); + + // Some browsers return an empty string for the required attribute + // and non-HTML5 browsers might have required="" markup + if ( value === "" ) { + value = true; + } + + // force non-HTML5 browsers to return bool + value = !!value; + } else { + value = $element.attr( method ); + } + + this.normalizeAttributeRule( rules, type, method, value ); + } + + // maxlength may be returned as -1, 2147483647 ( IE ) and 524288 ( safari ) for text inputs + if ( rules.maxlength && /-1|2147483647|524288/.test( rules.maxlength ) ) { + delete rules.maxlength; + } + + return rules; + }, + + dataRules: function( element ) { + var rules = {}, + $element = $( element ), + type = element.getAttribute( "type" ), + method, value; + + for ( method in $.validator.methods ) { + value = $element.data( "rule" + method.charAt( 0 ).toUpperCase() + method.substring( 1 ).toLowerCase() ); + this.normalizeAttributeRule( rules, type, method, value ); + } + return rules; + }, + + staticRules: function( element ) { + var rules = {}, + validator = $.data( element.form, "validator" ); + + if ( validator.settings.rules ) { + rules = $.validator.normalizeRule( validator.settings.rules[ element.name ] ) || {}; + } + return rules; + }, + + normalizeRules: function( rules, element ) { + // handle dependency check + $.each( rules, function( prop, val ) { + // ignore rule when param is explicitly false, eg. required:false + if ( val === false ) { + delete rules[ prop ]; + return; + } + if ( val.param || val.depends ) { + var keepRule = true; + switch ( typeof val.depends ) { + case "string": + keepRule = !!$( val.depends, element.form ).length; + break; + case "function": + keepRule = val.depends.call( element, element ); + break; + } + if ( keepRule ) { + rules[ prop ] = val.param !== undefined ? val.param : true; + } else { + delete rules[ prop ]; + } + } + }); + + // evaluate parameters + $.each( rules, function( rule, parameter ) { + rules[ rule ] = $.isFunction( parameter ) ? parameter( element ) : parameter; + }); + + // clean number parameters + $.each([ "minlength", "maxlength" ], function() { + if ( rules[ this ] ) { + rules[ this ] = Number( rules[ this ] ); + } + }); + $.each([ "rangelength", "range" ], function() { + var parts; + if ( rules[ this ] ) { + if ( $.isArray( rules[ this ] ) ) { + rules[ this ] = [ Number( rules[ this ][ 0 ]), Number( rules[ this ][ 1 ] ) ]; + } else if ( typeof rules[ this ] === "string" ) { + parts = rules[ this ].replace(/[\[\]]/g, "" ).split( /[\s,]+/ ); + rules[ this ] = [ Number( parts[ 0 ]), Number( parts[ 1 ] ) ]; + } + } + }); + + if ( $.validator.autoCreateRanges ) { + // auto-create ranges + if ( rules.min != null && rules.max != null ) { + rules.range = [ rules.min, rules.max ]; + delete rules.min; + delete rules.max; + } + if ( rules.minlength != null && rules.maxlength != null ) { + rules.rangelength = [ rules.minlength, rules.maxlength ]; + delete rules.minlength; + delete rules.maxlength; + } + } + + return rules; + }, + + // Converts a simple string to a {string: true} rule, e.g., "required" to {required:true} + normalizeRule: function( data ) { + if ( typeof data === "string" ) { + var transformed = {}; + $.each( data.split( /\s/ ), function() { + transformed[ this ] = true; + }); + data = transformed; + } + return data; + }, + + // http://jqueryvalidation.org/jQuery.validator.addMethod/ + addMethod: function( name, method, message ) { + $.validator.methods[ name ] = method; + $.validator.messages[ name ] = message !== undefined ? message : $.validator.messages[ name ]; + if ( method.length < 3 ) { + $.validator.addClassRules( name, $.validator.normalizeRule( name ) ); + } + }, + + methods: { + + // http://jqueryvalidation.org/required-method/ + required: function( value, element, param ) { + // check if dependency is met + if ( !this.depend( param, element ) ) { + return "dependency-mismatch"; + } + if ( element.nodeName.toLowerCase() === "select" ) { + // could be an array for select-multiple or a string, both are fine this way + var val = $( element ).val(); + return val && val.length > 0; + } + if ( this.checkable( element ) ) { + return this.getLength( value, element ) > 0; + } + return value.length > 0; + }, + + // http://jqueryvalidation.org/email-method/ + email: function( value, element ) { + // From https://html.spec.whatwg.org/multipage/forms.html#valid-e-mail-address + // Retrieved 2014-01-14 + // If you have a problem with this implementation, report a bug against the above spec + // Or use custom methods to implement your own email validation + return this.optional( element ) || /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test( value ); + }, + + // http://jqueryvalidation.org/url-method/ + url: function( value, element ) { + + // Copyright (c) 2010-2013 Diego Perini, MIT licensed + // https://gist.github.com/dperini/729294 + // see also https://mathiasbynens.be/demo/url-regex + // modified to allow protocol-relative URLs + return this.optional( element ) || /^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test( value ); + }, + + // http://jqueryvalidation.org/date-method/ + date: function( value, element ) { + return this.optional( element ) || !/Invalid|NaN/.test( new Date( value ).toString() ); + }, + + // http://jqueryvalidation.org/dateISO-method/ + dateISO: function( value, element ) { + return this.optional( element ) || /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test( value ); + }, + + // http://jqueryvalidation.org/number-method/ + number: function( value, element ) { + return this.optional( element ) || /^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test( value ); + }, + + // http://jqueryvalidation.org/digits-method/ + digits: function( value, element ) { + return this.optional( element ) || /^\d+$/.test( value ); + }, + + // http://jqueryvalidation.org/creditcard-method/ + // based on http://en.wikipedia.org/wiki/Luhn_algorithm + creditcard: function( value, element ) { + if ( this.optional( element ) ) { + return "dependency-mismatch"; + } + // accept only spaces, digits and dashes + if ( /[^0-9 \-]+/.test( value ) ) { + return false; + } + var nCheck = 0, + nDigit = 0, + bEven = false, + n, cDigit; + + value = value.replace( /\D/g, "" ); + + // Basing min and max length on + // http://developer.ean.com/general_info/Valid_Credit_Card_Types + if ( value.length < 13 || value.length > 19 ) { + return false; + } + + for ( n = value.length - 1; n >= 0; n--) { + cDigit = value.charAt( n ); + nDigit = parseInt( cDigit, 10 ); + if ( bEven ) { + if ( ( nDigit *= 2 ) > 9 ) { + nDigit -= 9; + } + } + nCheck += nDigit; + bEven = !bEven; + } + + return ( nCheck % 10 ) === 0; + }, + + // http://jqueryvalidation.org/minlength-method/ + minlength: function( value, element, param ) { + var length = $.isArray( value ) ? value.length : this.getLength( value, element ); + return this.optional( element ) || length >= param; + }, + + // http://jqueryvalidation.org/maxlength-method/ + maxlength: function( value, element, param ) { + var length = $.isArray( value ) ? value.length : this.getLength( value, element ); + return this.optional( element ) || length <= param; + }, + + // http://jqueryvalidation.org/rangelength-method/ + rangelength: function( value, element, param ) { + var length = $.isArray( value ) ? value.length : this.getLength( value, element ); + return this.optional( element ) || ( length >= param[ 0 ] && length <= param[ 1 ] ); + }, + + // http://jqueryvalidation.org/min-method/ + min: function( value, element, param ) { + return this.optional( element ) || value >= param; + }, + + // http://jqueryvalidation.org/max-method/ + max: function( value, element, param ) { + return this.optional( element ) || value <= param; + }, + + // http://jqueryvalidation.org/range-method/ + range: function( value, element, param ) { + return this.optional( element ) || ( value >= param[ 0 ] && value <= param[ 1 ] ); + }, + + // http://jqueryvalidation.org/equalTo-method/ + equalTo: function( value, element, param ) { + // bind to the blur event of the target in order to revalidate whenever the target field is updated + // TODO find a way to bind the event just once, avoiding the unbind-rebind overhead + var target = $( param ); + if ( this.settings.onfocusout ) { + target.off( ".validate-equalTo" ).on( "blur.validate-equalTo", function() { + $( element ).valid(); + }); + } + return value === target.val(); + }, + + // http://jqueryvalidation.org/remote-method/ + remote: function( value, element, param ) { + if ( this.optional( element ) ) { + return "dependency-mismatch"; + } + + var previous = this.previousValue( element ), + validator, data; + + if (!this.settings.messages[ element.name ] ) { + this.settings.messages[ element.name ] = {}; + } + previous.originalMessage = this.settings.messages[ element.name ].remote; + this.settings.messages[ element.name ].remote = previous.message; + + param = typeof param === "string" && { url: param } || param; + + if ( previous.old === value ) { + return previous.valid; + } + + previous.old = value; + validator = this; + this.startRequest( element ); + data = {}; + data[ element.name ] = value; + $.ajax( $.extend( true, { + mode: "abort", + port: "validate" + element.name, + dataType: "json", + data: data, + context: validator.currentForm, + success: function( response ) { + var valid = response === true || response === "true", + errors, message, submitted; + + validator.settings.messages[ element.name ].remote = previous.originalMessage; + if ( valid ) { + submitted = validator.formSubmitted; + validator.prepareElement( element ); + validator.formSubmitted = submitted; + validator.successList.push( element ); + delete validator.invalid[ element.name ]; + validator.showErrors(); + } else { + errors = {}; + message = response || validator.defaultMessage( element, "remote" ); + errors[ element.name ] = previous.message = $.isFunction( message ) ? message( value ) : message; + validator.invalid[ element.name ] = true; + validator.showErrors( errors ); + } + previous.valid = valid; + validator.stopRequest( element, valid ); + } + }, param ) ); + return "pending"; + } + } + +}); + +// ajax mode: abort +// usage: $.ajax({ mode: "abort"[, port: "uniqueport"]}); +// if mode:"abort" is used, the previous request on that port (port can be undefined) is aborted via XMLHttpRequest.abort() + +var pendingRequests = {}, + ajax; +// Use a prefilter if available (1.5+) +if ( $.ajaxPrefilter ) { + $.ajaxPrefilter(function( settings, _, xhr ) { + var port = settings.port; + if ( settings.mode === "abort" ) { + if ( pendingRequests[port] ) { + pendingRequests[port].abort(); + } + pendingRequests[port] = xhr; + } + }); +} else { + // Proxy ajax + ajax = $.ajax; + $.ajax = function( settings ) { + var mode = ( "mode" in settings ? settings : $.ajaxSettings ).mode, + port = ( "port" in settings ? settings : $.ajaxSettings ).port; + if ( mode === "abort" ) { + if ( pendingRequests[port] ) { + pendingRequests[port].abort(); + } + pendingRequests[port] = ajax.apply(this, arguments); + return pendingRequests[port]; + } + return ajax.apply(this, arguments); + }; +} + +})); \ No newline at end of file diff --git a/src/Sample.RazorPages/wwwroot/lib/jquery/.bower.json b/src/Sample.RazorPages/wwwroot/lib/jquery/.bower.json new file mode 100644 index 0000000..419488b --- /dev/null +++ b/src/Sample.RazorPages/wwwroot/lib/jquery/.bower.json @@ -0,0 +1,25 @@ +{ + "name": "jquery", + "main": "dist/jquery.js", + "license": "MIT", + "ignore": [ + "package.json" + ], + "keywords": [ + "jquery", + "javascript", + "browser", + "library" + ], + "homepage": "https://github.com/jquery/jquery-dist", + "version": "2.2.0", + "_release": "2.2.0", + "_resolution": { + "type": "version", + "tag": "2.2.0", + "commit": "6fc01e29bdad0964f62ef56d01297039cdcadbe5" + }, + "_source": "git://github.com/jquery/jquery-dist.git", + "_target": "2.2.0", + "_originalSource": "jquery" +} \ No newline at end of file diff --git a/src/Sample.RazorPages/wwwroot/lib/jquery/LICENSE.txt b/src/Sample.RazorPages/wwwroot/lib/jquery/LICENSE.txt new file mode 100644 index 0000000..5312a4c --- /dev/null +++ b/src/Sample.RazorPages/wwwroot/lib/jquery/LICENSE.txt @@ -0,0 +1,36 @@ +Copyright jQuery Foundation and other contributors, https://jquery.org/ + +This software consists of voluntary contributions made by many +individuals. For exact contribution history, see the revision history +available at https://github.com/jquery/jquery + +The following license applies to all parts of this software except as +documented below: + +==== + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +==== + +All files located in the node_modules and external directories are +externally maintained libraries used by this software which have their +own licenses; we recommend you read them, as their terms may differ from +the terms above. diff --git a/src/Sample.RazorPages/wwwroot/lib/jquery/dist/jquery.js b/src/Sample.RazorPages/wwwroot/lib/jquery/dist/jquery.js new file mode 100644 index 0000000..1e0ba99 --- /dev/null +++ b/src/Sample.RazorPages/wwwroot/lib/jquery/dist/jquery.js @@ -0,0 +1,9831 @@ +/*! + * jQuery JavaScript Library v2.2.0 + * http://jquery.com/ + * + * Includes Sizzle.js + * http://sizzlejs.com/ + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license + * http://jquery.org/license + * + * Date: 2016-01-08T20:02Z + */ + +(function( global, factory ) { + + if ( typeof module === "object" && typeof module.exports === "object" ) { + // For CommonJS and CommonJS-like environments where a proper `window` + // is present, execute the factory and get jQuery. + // For environments that do not have a `window` with a `document` + // (such as Node.js), expose a factory as module.exports. + // This accentuates the need for the creation of a real `window`. + // e.g. var jQuery = require("jquery")(window); + // See ticket #14549 for more info. + module.exports = global.document ? + factory( global, true ) : + function( w ) { + if ( !w.document ) { + throw new Error( "jQuery requires a window with a document" ); + } + return factory( w ); + }; + } else { + factory( global ); + } + +// Pass this if window is not defined yet +}(typeof window !== "undefined" ? window : this, function( window, noGlobal ) { + +// Support: Firefox 18+ +// Can't be in strict mode, several libs including ASP.NET trace +// the stack via arguments.caller.callee and Firefox dies if +// you try to trace through "use strict" call chains. (#13335) +//"use strict"; +var arr = []; + +var document = window.document; + +var slice = arr.slice; + +var concat = arr.concat; + +var push = arr.push; + +var indexOf = arr.indexOf; + +var class2type = {}; + +var toString = class2type.toString; + +var hasOwn = class2type.hasOwnProperty; + +var support = {}; + + + +var + version = "2.2.0", + + // Define a local copy of jQuery + jQuery = function( selector, context ) { + + // The jQuery object is actually just the init constructor 'enhanced' + // Need init if jQuery is called (just allow error to be thrown if not included) + return new jQuery.fn.init( selector, context ); + }, + + // Support: Android<4.1 + // Make sure we trim BOM and NBSP + rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, + + // Matches dashed string for camelizing + rmsPrefix = /^-ms-/, + rdashAlpha = /-([\da-z])/gi, + + // Used by jQuery.camelCase as callback to replace() + fcamelCase = function( all, letter ) { + return letter.toUpperCase(); + }; + +jQuery.fn = jQuery.prototype = { + + // The current version of jQuery being used + jquery: version, + + constructor: jQuery, + + // Start with an empty selector + selector: "", + + // The default length of a jQuery object is 0 + length: 0, + + toArray: function() { + return slice.call( this ); + }, + + // Get the Nth element in the matched element set OR + // Get the whole matched element set as a clean array + get: function( num ) { + return num != null ? + + // Return just the one element from the set + ( num < 0 ? this[ num + this.length ] : this[ num ] ) : + + // Return all the elements in a clean array + slice.call( this ); + }, + + // Take an array of elements and push it onto the stack + // (returning the new matched element set) + pushStack: function( elems ) { + + // Build a new jQuery matched element set + var ret = jQuery.merge( this.constructor(), elems ); + + // Add the old object onto the stack (as a reference) + ret.prevObject = this; + ret.context = this.context; + + // Return the newly-formed element set + return ret; + }, + + // Execute a callback for every element in the matched set. + each: function( callback ) { + return jQuery.each( this, callback ); + }, + + map: function( callback ) { + return this.pushStack( jQuery.map( this, function( elem, i ) { + return callback.call( elem, i, elem ); + } ) ); + }, + + slice: function() { + return this.pushStack( slice.apply( this, arguments ) ); + }, + + first: function() { + return this.eq( 0 ); + }, + + last: function() { + return this.eq( -1 ); + }, + + eq: function( i ) { + var len = this.length, + j = +i + ( i < 0 ? len : 0 ); + return this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] ); + }, + + end: function() { + return this.prevObject || this.constructor(); + }, + + // For internal use only. + // Behaves like an Array's method, not like a jQuery method. + push: push, + sort: arr.sort, + splice: arr.splice +}; + +jQuery.extend = jQuery.fn.extend = function() { + var options, name, src, copy, copyIsArray, clone, + target = arguments[ 0 ] || {}, + i = 1, + length = arguments.length, + deep = false; + + // Handle a deep copy situation + if ( typeof target === "boolean" ) { + deep = target; + + // Skip the boolean and the target + target = arguments[ i ] || {}; + i++; + } + + // Handle case when target is a string or something (possible in deep copy) + if ( typeof target !== "object" && !jQuery.isFunction( target ) ) { + target = {}; + } + + // Extend jQuery itself if only one argument is passed + if ( i === length ) { + target = this; + i--; + } + + for ( ; i < length; i++ ) { + + // Only deal with non-null/undefined values + if ( ( options = arguments[ i ] ) != null ) { + + // Extend the base object + for ( name in options ) { + src = target[ name ]; + copy = options[ name ]; + + // Prevent never-ending loop + if ( target === copy ) { + continue; + } + + // Recurse if we're merging plain objects or arrays + if ( deep && copy && ( jQuery.isPlainObject( copy ) || + ( copyIsArray = jQuery.isArray( copy ) ) ) ) { + + if ( copyIsArray ) { + copyIsArray = false; + clone = src && jQuery.isArray( src ) ? src : []; + + } else { + clone = src && jQuery.isPlainObject( src ) ? src : {}; + } + + // Never move original objects, clone them + target[ name ] = jQuery.extend( deep, clone, copy ); + + // Don't bring in undefined values + } else if ( copy !== undefined ) { + target[ name ] = copy; + } + } + } + } + + // Return the modified object + return target; +}; + +jQuery.extend( { + + // Unique for each copy of jQuery on the page + expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ), + + // Assume jQuery is ready without the ready module + isReady: true, + + error: function( msg ) { + throw new Error( msg ); + }, + + noop: function() {}, + + isFunction: function( obj ) { + return jQuery.type( obj ) === "function"; + }, + + isArray: Array.isArray, + + isWindow: function( obj ) { + return obj != null && obj === obj.window; + }, + + isNumeric: function( obj ) { + + // parseFloat NaNs numeric-cast false positives (null|true|false|"") + // ...but misinterprets leading-number strings, particularly hex literals ("0x...") + // subtraction forces infinities to NaN + // adding 1 corrects loss of precision from parseFloat (#15100) + var realStringObj = obj && obj.toString(); + return !jQuery.isArray( obj ) && ( realStringObj - parseFloat( realStringObj ) + 1 ) >= 0; + }, + + isPlainObject: function( obj ) { + + // Not plain objects: + // - Any object or value whose internal [[Class]] property is not "[object Object]" + // - DOM nodes + // - window + if ( jQuery.type( obj ) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) { + return false; + } + + if ( obj.constructor && + !hasOwn.call( obj.constructor.prototype, "isPrototypeOf" ) ) { + return false; + } + + // If the function hasn't returned already, we're confident that + // |obj| is a plain object, created by {} or constructed with new Object + return true; + }, + + isEmptyObject: function( obj ) { + var name; + for ( name in obj ) { + return false; + } + return true; + }, + + type: function( obj ) { + if ( obj == null ) { + return obj + ""; + } + + // Support: Android<4.0, iOS<6 (functionish RegExp) + return typeof obj === "object" || typeof obj === "function" ? + class2type[ toString.call( obj ) ] || "object" : + typeof obj; + }, + + // Evaluates a script in a global context + globalEval: function( code ) { + var script, + indirect = eval; + + code = jQuery.trim( code ); + + if ( code ) { + + // If the code includes a valid, prologue position + // strict mode pragma, execute code by injecting a + // script tag into the document. + if ( code.indexOf( "use strict" ) === 1 ) { + script = document.createElement( "script" ); + script.text = code; + document.head.appendChild( script ).parentNode.removeChild( script ); + } else { + + // Otherwise, avoid the DOM node creation, insertion + // and removal by using an indirect global eval + + indirect( code ); + } + } + }, + + // Convert dashed to camelCase; used by the css and data modules + // Support: IE9-11+ + // Microsoft forgot to hump their vendor prefix (#9572) + camelCase: function( string ) { + return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); + }, + + nodeName: function( elem, name ) { + return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase(); + }, + + each: function( obj, callback ) { + var length, i = 0; + + if ( isArrayLike( obj ) ) { + length = obj.length; + for ( ; i < length; i++ ) { + if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) { + break; + } + } + } else { + for ( i in obj ) { + if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) { + break; + } + } + } + + return obj; + }, + + // Support: Android<4.1 + trim: function( text ) { + return text == null ? + "" : + ( text + "" ).replace( rtrim, "" ); + }, + + // results is for internal usage only + makeArray: function( arr, results ) { + var ret = results || []; + + if ( arr != null ) { + if ( isArrayLike( Object( arr ) ) ) { + jQuery.merge( ret, + typeof arr === "string" ? + [ arr ] : arr + ); + } else { + push.call( ret, arr ); + } + } + + return ret; + }, + + inArray: function( elem, arr, i ) { + return arr == null ? -1 : indexOf.call( arr, elem, i ); + }, + + merge: function( first, second ) { + var len = +second.length, + j = 0, + i = first.length; + + for ( ; j < len; j++ ) { + first[ i++ ] = second[ j ]; + } + + first.length = i; + + return first; + }, + + grep: function( elems, callback, invert ) { + var callbackInverse, + matches = [], + i = 0, + length = elems.length, + callbackExpect = !invert; + + // Go through the array, only saving the items + // that pass the validator function + for ( ; i < length; i++ ) { + callbackInverse = !callback( elems[ i ], i ); + if ( callbackInverse !== callbackExpect ) { + matches.push( elems[ i ] ); + } + } + + return matches; + }, + + // arg is for internal usage only + map: function( elems, callback, arg ) { + var length, value, + i = 0, + ret = []; + + // Go through the array, translating each of the items to their new values + if ( isArrayLike( elems ) ) { + length = elems.length; + for ( ; i < length; i++ ) { + value = callback( elems[ i ], i, arg ); + + if ( value != null ) { + ret.push( value ); + } + } + + // Go through every key on the object, + } else { + for ( i in elems ) { + value = callback( elems[ i ], i, arg ); + + if ( value != null ) { + ret.push( value ); + } + } + } + + // Flatten any nested arrays + return concat.apply( [], ret ); + }, + + // A global GUID counter for objects + guid: 1, + + // Bind a function to a context, optionally partially applying any + // arguments. + proxy: function( fn, context ) { + var tmp, args, proxy; + + if ( typeof context === "string" ) { + tmp = fn[ context ]; + context = fn; + fn = tmp; + } + + // Quick check to determine if target is callable, in the spec + // this throws a TypeError, but we will just return undefined. + if ( !jQuery.isFunction( fn ) ) { + return undefined; + } + + // Simulated bind + args = slice.call( arguments, 2 ); + proxy = function() { + return fn.apply( context || this, args.concat( slice.call( arguments ) ) ); + }; + + // Set the guid of unique handler to the same of original handler, so it can be removed + proxy.guid = fn.guid = fn.guid || jQuery.guid++; + + return proxy; + }, + + now: Date.now, + + // jQuery.support is not used in Core but other projects attach their + // properties to it so it needs to exist. + support: support +} ); + +// JSHint would error on this code due to the Symbol not being defined in ES5. +// Defining this global in .jshintrc would create a danger of using the global +// unguarded in another place, it seems safer to just disable JSHint for these +// three lines. +/* jshint ignore: start */ +if ( typeof Symbol === "function" ) { + jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ]; +} +/* jshint ignore: end */ + +// Populate the class2type map +jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ), +function( i, name ) { + class2type[ "[object " + name + "]" ] = name.toLowerCase(); +} ); + +function isArrayLike( obj ) { + + // Support: iOS 8.2 (not reproducible in simulator) + // `in` check used to prevent JIT error (gh-2145) + // hasOwn isn't used here due to false negatives + // regarding Nodelist length in IE + var length = !!obj && "length" in obj && obj.length, + type = jQuery.type( obj ); + + if ( type === "function" || jQuery.isWindow( obj ) ) { + return false; + } + + return type === "array" || length === 0 || + typeof length === "number" && length > 0 && ( length - 1 ) in obj; +} +var Sizzle = +/*! + * Sizzle CSS Selector Engine v2.2.1 + * http://sizzlejs.com/ + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license + * http://jquery.org/license + * + * Date: 2015-10-17 + */ +(function( window ) { + +var i, + support, + Expr, + getText, + isXML, + tokenize, + compile, + select, + outermostContext, + sortInput, + hasDuplicate, + + // Local document vars + setDocument, + document, + docElem, + documentIsHTML, + rbuggyQSA, + rbuggyMatches, + matches, + contains, + + // Instance-specific data + expando = "sizzle" + 1 * new Date(), + preferredDoc = window.document, + dirruns = 0, + done = 0, + classCache = createCache(), + tokenCache = createCache(), + compilerCache = createCache(), + sortOrder = function( a, b ) { + if ( a === b ) { + hasDuplicate = true; + } + return 0; + }, + + // General-purpose constants + MAX_NEGATIVE = 1 << 31, + + // Instance methods + hasOwn = ({}).hasOwnProperty, + arr = [], + pop = arr.pop, + push_native = arr.push, + push = arr.push, + slice = arr.slice, + // Use a stripped-down indexOf as it's faster than native + // http://jsperf.com/thor-indexof-vs-for/5 + indexOf = function( list, elem ) { + var i = 0, + len = list.length; + for ( ; i < len; i++ ) { + if ( list[i] === elem ) { + return i; + } + } + return -1; + }, + + booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", + + // Regular expressions + + // http://www.w3.org/TR/css3-selectors/#whitespace + whitespace = "[\\x20\\t\\r\\n\\f]", + + // http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier + identifier = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+", + + // Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors + attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace + + // Operator (capture 2) + "*([*^$|!~]?=)" + whitespace + + // "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]" + "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + whitespace + + "*\\]", + + pseudos = ":(" + identifier + ")(?:\\((" + + // To reduce the number of selectors needing tokenize in the preFilter, prefer arguments: + // 1. quoted (capture 3; capture 4 or capture 5) + "('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" + + // 2. simple (capture 6) + "((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" + + // 3. anything else (capture 2) + ".*" + + ")\\)|)", + + // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter + rwhitespace = new RegExp( whitespace + "+", "g" ), + rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ), + + rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ), + rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ), + + rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*?)" + whitespace + "*\\]", "g" ), + + rpseudo = new RegExp( pseudos ), + ridentifier = new RegExp( "^" + identifier + "$" ), + + matchExpr = { + "ID": new RegExp( "^#(" + identifier + ")" ), + "CLASS": new RegExp( "^\\.(" + identifier + ")" ), + "TAG": new RegExp( "^(" + identifier + "|[*])" ), + "ATTR": new RegExp( "^" + attributes ), + "PSEUDO": new RegExp( "^" + pseudos ), + "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace + + "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace + + "*(\\d+)|))" + whitespace + "*\\)|)", "i" ), + "bool": new RegExp( "^(?:" + booleans + ")$", "i" ), + // For use in libraries implementing .is() + // We use this for POS matching in `select` + "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + + whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" ) + }, + + rinputs = /^(?:input|select|textarea|button)$/i, + rheader = /^h\d$/i, + + rnative = /^[^{]+\{\s*\[native \w/, + + // Easily-parseable/retrievable ID or TAG or CLASS selectors + rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, + + rsibling = /[+~]/, + rescape = /'|\\/g, + + // CSS escapes http://www.w3.org/TR/CSS21/syndata.html#escaped-characters + runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ), + funescape = function( _, escaped, escapedWhitespace ) { + var high = "0x" + escaped - 0x10000; + // NaN means non-codepoint + // Support: Firefox<24 + // Workaround erroneous numeric interpretation of +"0x" + return high !== high || escapedWhitespace ? + escaped : + high < 0 ? + // BMP codepoint + String.fromCharCode( high + 0x10000 ) : + // Supplemental Plane codepoint (surrogate pair) + String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 ); + }, + + // Used for iframes + // See setDocument() + // Removing the function wrapper causes a "Permission Denied" + // error in IE + unloadHandler = function() { + setDocument(); + }; + +// Optimize for push.apply( _, NodeList ) +try { + push.apply( + (arr = slice.call( preferredDoc.childNodes )), + preferredDoc.childNodes + ); + // Support: Android<4.0 + // Detect silently failing push.apply + arr[ preferredDoc.childNodes.length ].nodeType; +} catch ( e ) { + push = { apply: arr.length ? + + // Leverage slice if possible + function( target, els ) { + push_native.apply( target, slice.call(els) ); + } : + + // Support: IE<9 + // Otherwise append directly + function( target, els ) { + var j = target.length, + i = 0; + // Can't trust NodeList.length + while ( (target[j++] = els[i++]) ) {} + target.length = j - 1; + } + }; +} + +function Sizzle( selector, context, results, seed ) { + var m, i, elem, nid, nidselect, match, groups, newSelector, + newContext = context && context.ownerDocument, + + // nodeType defaults to 9, since context defaults to document + nodeType = context ? context.nodeType : 9; + + results = results || []; + + // Return early from calls with invalid selector or context + if ( typeof selector !== "string" || !selector || + nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) { + + return results; + } + + // Try to shortcut find operations (as opposed to filters) in HTML documents + if ( !seed ) { + + if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) { + setDocument( context ); + } + context = context || document; + + if ( documentIsHTML ) { + + // If the selector is sufficiently simple, try using a "get*By*" DOM method + // (excepting DocumentFragment context, where the methods don't exist) + if ( nodeType !== 11 && (match = rquickExpr.exec( selector )) ) { + + // ID selector + if ( (m = match[1]) ) { + + // Document context + if ( nodeType === 9 ) { + if ( (elem = context.getElementById( m )) ) { + + // Support: IE, Opera, Webkit + // TODO: identify versions + // getElementById can match elements by name instead of ID + if ( elem.id === m ) { + results.push( elem ); + return results; + } + } else { + return results; + } + + // Element context + } else { + + // Support: IE, Opera, Webkit + // TODO: identify versions + // getElementById can match elements by name instead of ID + if ( newContext && (elem = newContext.getElementById( m )) && + contains( context, elem ) && + elem.id === m ) { + + results.push( elem ); + return results; + } + } + + // Type selector + } else if ( match[2] ) { + push.apply( results, context.getElementsByTagName( selector ) ); + return results; + + // Class selector + } else if ( (m = match[3]) && support.getElementsByClassName && + context.getElementsByClassName ) { + + push.apply( results, context.getElementsByClassName( m ) ); + return results; + } + } + + // Take advantage of querySelectorAll + if ( support.qsa && + !compilerCache[ selector + " " ] && + (!rbuggyQSA || !rbuggyQSA.test( selector )) ) { + + if ( nodeType !== 1 ) { + newContext = context; + newSelector = selector; + + // qSA looks outside Element context, which is not what we want + // Thanks to Andrew Dupont for this workaround technique + // Support: IE <=8 + // Exclude object elements + } else if ( context.nodeName.toLowerCase() !== "object" ) { + + // Capture the context ID, setting it first if necessary + if ( (nid = context.getAttribute( "id" )) ) { + nid = nid.replace( rescape, "\\$&" ); + } else { + context.setAttribute( "id", (nid = expando) ); + } + + // Prefix every selector in the list + groups = tokenize( selector ); + i = groups.length; + nidselect = ridentifier.test( nid ) ? "#" + nid : "[id='" + nid + "']"; + while ( i-- ) { + groups[i] = nidselect + " " + toSelector( groups[i] ); + } + newSelector = groups.join( "," ); + + // Expand context for sibling selectors + newContext = rsibling.test( selector ) && testContext( context.parentNode ) || + context; + } + + if ( newSelector ) { + try { + push.apply( results, + newContext.querySelectorAll( newSelector ) + ); + return results; + } catch ( qsaError ) { + } finally { + if ( nid === expando ) { + context.removeAttribute( "id" ); + } + } + } + } + } + } + + // All others + return select( selector.replace( rtrim, "$1" ), context, results, seed ); +} + +/** + * Create key-value caches of limited size + * @returns {function(string, object)} Returns the Object data after storing it on itself with + * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength) + * deleting the oldest entry + */ +function createCache() { + var keys = []; + + function cache( key, value ) { + // Use (key + " ") to avoid collision with native prototype properties (see Issue #157) + if ( keys.push( key + " " ) > Expr.cacheLength ) { + // Only keep the most recent entries + delete cache[ keys.shift() ]; + } + return (cache[ key + " " ] = value); + } + return cache; +} + +/** + * Mark a function for special use by Sizzle + * @param {Function} fn The function to mark + */ +function markFunction( fn ) { + fn[ expando ] = true; + return fn; +} + +/** + * Support testing using an element + * @param {Function} fn Passed the created div and expects a boolean result + */ +function assert( fn ) { + var div = document.createElement("div"); + + try { + return !!fn( div ); + } catch (e) { + return false; + } finally { + // Remove from its parent by default + if ( div.parentNode ) { + div.parentNode.removeChild( div ); + } + // release memory in IE + div = null; + } +} + +/** + * Adds the same handler for all of the specified attrs + * @param {String} attrs Pipe-separated list of attributes + * @param {Function} handler The method that will be applied + */ +function addHandle( attrs, handler ) { + var arr = attrs.split("|"), + i = arr.length; + + while ( i-- ) { + Expr.attrHandle[ arr[i] ] = handler; + } +} + +/** + * Checks document order of two siblings + * @param {Element} a + * @param {Element} b + * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b + */ +function siblingCheck( a, b ) { + var cur = b && a, + diff = cur && a.nodeType === 1 && b.nodeType === 1 && + ( ~b.sourceIndex || MAX_NEGATIVE ) - + ( ~a.sourceIndex || MAX_NEGATIVE ); + + // Use IE sourceIndex if available on both nodes + if ( diff ) { + return diff; + } + + // Check if b follows a + if ( cur ) { + while ( (cur = cur.nextSibling) ) { + if ( cur === b ) { + return -1; + } + } + } + + return a ? 1 : -1; +} + +/** + * Returns a function to use in pseudos for input types + * @param {String} type + */ +function createInputPseudo( type ) { + return function( elem ) { + var name = elem.nodeName.toLowerCase(); + return name === "input" && elem.type === type; + }; +} + +/** + * Returns a function to use in pseudos for buttons + * @param {String} type + */ +function createButtonPseudo( type ) { + return function( elem ) { + var name = elem.nodeName.toLowerCase(); + return (name === "input" || name === "button") && elem.type === type; + }; +} + +/** + * Returns a function to use in pseudos for positionals + * @param {Function} fn + */ +function createPositionalPseudo( fn ) { + return markFunction(function( argument ) { + argument = +argument; + return markFunction(function( seed, matches ) { + var j, + matchIndexes = fn( [], seed.length, argument ), + i = matchIndexes.length; + + // Match elements found at the specified indexes + while ( i-- ) { + if ( seed[ (j = matchIndexes[i]) ] ) { + seed[j] = !(matches[j] = seed[j]); + } + } + }); + }); +} + +/** + * Checks a node for validity as a Sizzle context + * @param {Element|Object=} context + * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value + */ +function testContext( context ) { + return context && typeof context.getElementsByTagName !== "undefined" && context; +} + +// Expose support vars for convenience +support = Sizzle.support = {}; + +/** + * Detects XML nodes + * @param {Element|Object} elem An element or a document + * @returns {Boolean} True iff elem is a non-HTML XML node + */ +isXML = Sizzle.isXML = function( elem ) { + // documentElement is verified for cases where it doesn't yet exist + // (such as loading iframes in IE - #4833) + var documentElement = elem && (elem.ownerDocument || elem).documentElement; + return documentElement ? documentElement.nodeName !== "HTML" : false; +}; + +/** + * Sets document-related variables once based on the current document + * @param {Element|Object} [doc] An element or document object to use to set the document + * @returns {Object} Returns the current document + */ +setDocument = Sizzle.setDocument = function( node ) { + var hasCompare, parent, + doc = node ? node.ownerDocument || node : preferredDoc; + + // Return early if doc is invalid or already selected + if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) { + return document; + } + + // Update global variables + document = doc; + docElem = document.documentElement; + documentIsHTML = !isXML( document ); + + // Support: IE 9-11, Edge + // Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936) + if ( (parent = document.defaultView) && parent.top !== parent ) { + // Support: IE 11 + if ( parent.addEventListener ) { + parent.addEventListener( "unload", unloadHandler, false ); + + // Support: IE 9 - 10 only + } else if ( parent.attachEvent ) { + parent.attachEvent( "onunload", unloadHandler ); + } + } + + /* Attributes + ---------------------------------------------------------------------- */ + + // Support: IE<8 + // Verify that getAttribute really returns attributes and not properties + // (excepting IE8 booleans) + support.attributes = assert(function( div ) { + div.className = "i"; + return !div.getAttribute("className"); + }); + + /* getElement(s)By* + ---------------------------------------------------------------------- */ + + // Check if getElementsByTagName("*") returns only elements + support.getElementsByTagName = assert(function( div ) { + div.appendChild( document.createComment("") ); + return !div.getElementsByTagName("*").length; + }); + + // Support: IE<9 + support.getElementsByClassName = rnative.test( document.getElementsByClassName ); + + // Support: IE<10 + // Check if getElementById returns elements by name + // The broken getElementById methods don't pick up programatically-set names, + // so use a roundabout getElementsByName test + support.getById = assert(function( div ) { + docElem.appendChild( div ).id = expando; + return !document.getElementsByName || !document.getElementsByName( expando ).length; + }); + + // ID find and filter + if ( support.getById ) { + Expr.find["ID"] = function( id, context ) { + if ( typeof context.getElementById !== "undefined" && documentIsHTML ) { + var m = context.getElementById( id ); + return m ? [ m ] : []; + } + }; + Expr.filter["ID"] = function( id ) { + var attrId = id.replace( runescape, funescape ); + return function( elem ) { + return elem.getAttribute("id") === attrId; + }; + }; + } else { + // Support: IE6/7 + // getElementById is not reliable as a find shortcut + delete Expr.find["ID"]; + + Expr.filter["ID"] = function( id ) { + var attrId = id.replace( runescape, funescape ); + return function( elem ) { + var node = typeof elem.getAttributeNode !== "undefined" && + elem.getAttributeNode("id"); + return node && node.value === attrId; + }; + }; + } + + // Tag + Expr.find["TAG"] = support.getElementsByTagName ? + function( tag, context ) { + if ( typeof context.getElementsByTagName !== "undefined" ) { + return context.getElementsByTagName( tag ); + + // DocumentFragment nodes don't have gEBTN + } else if ( support.qsa ) { + return context.querySelectorAll( tag ); + } + } : + + function( tag, context ) { + var elem, + tmp = [], + i = 0, + // By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too + results = context.getElementsByTagName( tag ); + + // Filter out possible comments + if ( tag === "*" ) { + while ( (elem = results[i++]) ) { + if ( elem.nodeType === 1 ) { + tmp.push( elem ); + } + } + + return tmp; + } + return results; + }; + + // Class + Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) { + if ( typeof context.getElementsByClassName !== "undefined" && documentIsHTML ) { + return context.getElementsByClassName( className ); + } + }; + + /* QSA/matchesSelector + ---------------------------------------------------------------------- */ + + // QSA and matchesSelector support + + // matchesSelector(:active) reports false when true (IE9/Opera 11.5) + rbuggyMatches = []; + + // qSa(:focus) reports false when true (Chrome 21) + // We allow this because of a bug in IE8/9 that throws an error + // whenever `document.activeElement` is accessed on an iframe + // So, we allow :focus to pass through QSA all the time to avoid the IE error + // See http://bugs.jquery.com/ticket/13378 + rbuggyQSA = []; + + if ( (support.qsa = rnative.test( document.querySelectorAll )) ) { + // Build QSA regex + // Regex strategy adopted from Diego Perini + assert(function( div ) { + // Select is set to empty string on purpose + // This is to test IE's treatment of not explicitly + // setting a boolean content attribute, + // since its presence should be enough + // http://bugs.jquery.com/ticket/12359 + docElem.appendChild( div ).innerHTML = "" + + ""; + + // Support: IE8, Opera 11-12.16 + // Nothing should be selected when empty strings follow ^= or $= or *= + // The test attribute must be unknown in Opera but "safe" for WinRT + // http://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section + if ( div.querySelectorAll("[msallowcapture^='']").length ) { + rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" ); + } + + // Support: IE8 + // Boolean attributes and "value" are not treated correctly + if ( !div.querySelectorAll("[selected]").length ) { + rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" ); + } + + // Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+ + if ( !div.querySelectorAll( "[id~=" + expando + "-]" ).length ) { + rbuggyQSA.push("~="); + } + + // Webkit/Opera - :checked should return selected option elements + // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked + // IE8 throws error here and will not see later tests + if ( !div.querySelectorAll(":checked").length ) { + rbuggyQSA.push(":checked"); + } + + // Support: Safari 8+, iOS 8+ + // https://bugs.webkit.org/show_bug.cgi?id=136851 + // In-page `selector#id sibing-combinator selector` fails + if ( !div.querySelectorAll( "a#" + expando + "+*" ).length ) { + rbuggyQSA.push(".#.+[+~]"); + } + }); + + assert(function( div ) { + // Support: Windows 8 Native Apps + // The type and name attributes are restricted during .innerHTML assignment + var input = document.createElement("input"); + input.setAttribute( "type", "hidden" ); + div.appendChild( input ).setAttribute( "name", "D" ); + + // Support: IE8 + // Enforce case-sensitivity of name attribute + if ( div.querySelectorAll("[name=d]").length ) { + rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" ); + } + + // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled) + // IE8 throws error here and will not see later tests + if ( !div.querySelectorAll(":enabled").length ) { + rbuggyQSA.push( ":enabled", ":disabled" ); + } + + // Opera 10-11 does not throw on post-comma invalid pseudos + div.querySelectorAll("*,:x"); + rbuggyQSA.push(",.*:"); + }); + } + + if ( (support.matchesSelector = rnative.test( (matches = docElem.matches || + docElem.webkitMatchesSelector || + docElem.mozMatchesSelector || + docElem.oMatchesSelector || + docElem.msMatchesSelector) )) ) { + + assert(function( div ) { + // Check to see if it's possible to do matchesSelector + // on a disconnected node (IE 9) + support.disconnectedMatch = matches.call( div, "div" ); + + // This should fail with an exception + // Gecko does not error, returns false instead + matches.call( div, "[s!='']:x" ); + rbuggyMatches.push( "!=", pseudos ); + }); + } + + rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") ); + rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") ); + + /* Contains + ---------------------------------------------------------------------- */ + hasCompare = rnative.test( docElem.compareDocumentPosition ); + + // Element contains another + // Purposefully self-exclusive + // As in, an element does not contain itself + contains = hasCompare || rnative.test( docElem.contains ) ? + function( a, b ) { + var adown = a.nodeType === 9 ? a.documentElement : a, + bup = b && b.parentNode; + return a === bup || !!( bup && bup.nodeType === 1 && ( + adown.contains ? + adown.contains( bup ) : + a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16 + )); + } : + function( a, b ) { + if ( b ) { + while ( (b = b.parentNode) ) { + if ( b === a ) { + return true; + } + } + } + return false; + }; + + /* Sorting + ---------------------------------------------------------------------- */ + + // Document order sorting + sortOrder = hasCompare ? + function( a, b ) { + + // Flag for duplicate removal + if ( a === b ) { + hasDuplicate = true; + return 0; + } + + // Sort on method existence if only one input has compareDocumentPosition + var compare = !a.compareDocumentPosition - !b.compareDocumentPosition; + if ( compare ) { + return compare; + } + + // Calculate position if both inputs belong to the same document + compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ? + a.compareDocumentPosition( b ) : + + // Otherwise we know they are disconnected + 1; + + // Disconnected nodes + if ( compare & 1 || + (!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) { + + // Choose the first element that is related to our preferred document + if ( a === document || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) { + return -1; + } + if ( b === document || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) { + return 1; + } + + // Maintain original order + return sortInput ? + ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) : + 0; + } + + return compare & 4 ? -1 : 1; + } : + function( a, b ) { + // Exit early if the nodes are identical + if ( a === b ) { + hasDuplicate = true; + return 0; + } + + var cur, + i = 0, + aup = a.parentNode, + bup = b.parentNode, + ap = [ a ], + bp = [ b ]; + + // Parentless nodes are either documents or disconnected + if ( !aup || !bup ) { + return a === document ? -1 : + b === document ? 1 : + aup ? -1 : + bup ? 1 : + sortInput ? + ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) : + 0; + + // If the nodes are siblings, we can do a quick check + } else if ( aup === bup ) { + return siblingCheck( a, b ); + } + + // Otherwise we need full lists of their ancestors for comparison + cur = a; + while ( (cur = cur.parentNode) ) { + ap.unshift( cur ); + } + cur = b; + while ( (cur = cur.parentNode) ) { + bp.unshift( cur ); + } + + // Walk down the tree looking for a discrepancy + while ( ap[i] === bp[i] ) { + i++; + } + + return i ? + // Do a sibling check if the nodes have a common ancestor + siblingCheck( ap[i], bp[i] ) : + + // Otherwise nodes in our document sort first + ap[i] === preferredDoc ? -1 : + bp[i] === preferredDoc ? 1 : + 0; + }; + + return document; +}; + +Sizzle.matches = function( expr, elements ) { + return Sizzle( expr, null, null, elements ); +}; + +Sizzle.matchesSelector = function( elem, expr ) { + // Set document vars if needed + if ( ( elem.ownerDocument || elem ) !== document ) { + setDocument( elem ); + } + + // Make sure that attribute selectors are quoted + expr = expr.replace( rattributeQuotes, "='$1']" ); + + if ( support.matchesSelector && documentIsHTML && + !compilerCache[ expr + " " ] && + ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) && + ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) { + + try { + var ret = matches.call( elem, expr ); + + // IE 9's matchesSelector returns false on disconnected nodes + if ( ret || support.disconnectedMatch || + // As well, disconnected nodes are said to be in a document + // fragment in IE 9 + elem.document && elem.document.nodeType !== 11 ) { + return ret; + } + } catch (e) {} + } + + return Sizzle( expr, document, null, [ elem ] ).length > 0; +}; + +Sizzle.contains = function( context, elem ) { + // Set document vars if needed + if ( ( context.ownerDocument || context ) !== document ) { + setDocument( context ); + } + return contains( context, elem ); +}; + +Sizzle.attr = function( elem, name ) { + // Set document vars if needed + if ( ( elem.ownerDocument || elem ) !== document ) { + setDocument( elem ); + } + + var fn = Expr.attrHandle[ name.toLowerCase() ], + // Don't get fooled by Object.prototype properties (jQuery #13807) + val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ? + fn( elem, name, !documentIsHTML ) : + undefined; + + return val !== undefined ? + val : + support.attributes || !documentIsHTML ? + elem.getAttribute( name ) : + (val = elem.getAttributeNode(name)) && val.specified ? + val.value : + null; +}; + +Sizzle.error = function( msg ) { + throw new Error( "Syntax error, unrecognized expression: " + msg ); +}; + +/** + * Document sorting and removing duplicates + * @param {ArrayLike} results + */ +Sizzle.uniqueSort = function( results ) { + var elem, + duplicates = [], + j = 0, + i = 0; + + // Unless we *know* we can detect duplicates, assume their presence + hasDuplicate = !support.detectDuplicates; + sortInput = !support.sortStable && results.slice( 0 ); + results.sort( sortOrder ); + + if ( hasDuplicate ) { + while ( (elem = results[i++]) ) { + if ( elem === results[ i ] ) { + j = duplicates.push( i ); + } + } + while ( j-- ) { + results.splice( duplicates[ j ], 1 ); + } + } + + // Clear input after sorting to release objects + // See https://github.com/jquery/sizzle/pull/225 + sortInput = null; + + return results; +}; + +/** + * Utility function for retrieving the text value of an array of DOM nodes + * @param {Array|Element} elem + */ +getText = Sizzle.getText = function( elem ) { + var node, + ret = "", + i = 0, + nodeType = elem.nodeType; + + if ( !nodeType ) { + // If no nodeType, this is expected to be an array + while ( (node = elem[i++]) ) { + // Do not traverse comment nodes + ret += getText( node ); + } + } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) { + // Use textContent for elements + // innerText usage removed for consistency of new lines (jQuery #11153) + if ( typeof elem.textContent === "string" ) { + return elem.textContent; + } else { + // Traverse its children + for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { + ret += getText( elem ); + } + } + } else if ( nodeType === 3 || nodeType === 4 ) { + return elem.nodeValue; + } + // Do not include comment or processing instruction nodes + + return ret; +}; + +Expr = Sizzle.selectors = { + + // Can be adjusted by the user + cacheLength: 50, + + createPseudo: markFunction, + + match: matchExpr, + + attrHandle: {}, + + find: {}, + + relative: { + ">": { dir: "parentNode", first: true }, + " ": { dir: "parentNode" }, + "+": { dir: "previousSibling", first: true }, + "~": { dir: "previousSibling" } + }, + + preFilter: { + "ATTR": function( match ) { + match[1] = match[1].replace( runescape, funescape ); + + // Move the given value to match[3] whether quoted or unquoted + match[3] = ( match[3] || match[4] || match[5] || "" ).replace( runescape, funescape ); + + if ( match[2] === "~=" ) { + match[3] = " " + match[3] + " "; + } + + return match.slice( 0, 4 ); + }, + + "CHILD": function( match ) { + /* matches from matchExpr["CHILD"] + 1 type (only|nth|...) + 2 what (child|of-type) + 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...) + 4 xn-component of xn+y argument ([+-]?\d*n|) + 5 sign of xn-component + 6 x of xn-component + 7 sign of y-component + 8 y of y-component + */ + match[1] = match[1].toLowerCase(); + + if ( match[1].slice( 0, 3 ) === "nth" ) { + // nth-* requires argument + if ( !match[3] ) { + Sizzle.error( match[0] ); + } + + // numeric x and y parameters for Expr.filter.CHILD + // remember that false/true cast respectively to 0/1 + match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) ); + match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" ); + + // other types prohibit arguments + } else if ( match[3] ) { + Sizzle.error( match[0] ); + } + + return match; + }, + + "PSEUDO": function( match ) { + var excess, + unquoted = !match[6] && match[2]; + + if ( matchExpr["CHILD"].test( match[0] ) ) { + return null; + } + + // Accept quoted arguments as-is + if ( match[3] ) { + match[2] = match[4] || match[5] || ""; + + // Strip excess characters from unquoted arguments + } else if ( unquoted && rpseudo.test( unquoted ) && + // Get excess from tokenize (recursively) + (excess = tokenize( unquoted, true )) && + // advance to the next closing parenthesis + (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) { + + // excess is a negative index + match[0] = match[0].slice( 0, excess ); + match[2] = unquoted.slice( 0, excess ); + } + + // Return only captures needed by the pseudo filter method (type and argument) + return match.slice( 0, 3 ); + } + }, + + filter: { + + "TAG": function( nodeNameSelector ) { + var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase(); + return nodeNameSelector === "*" ? + function() { return true; } : + function( elem ) { + return elem.nodeName && elem.nodeName.toLowerCase() === nodeName; + }; + }, + + "CLASS": function( className ) { + var pattern = classCache[ className + " " ]; + + return pattern || + (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) && + classCache( className, function( elem ) { + return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== "undefined" && elem.getAttribute("class") || "" ); + }); + }, + + "ATTR": function( name, operator, check ) { + return function( elem ) { + var result = Sizzle.attr( elem, name ); + + if ( result == null ) { + return operator === "!="; + } + if ( !operator ) { + return true; + } + + result += ""; + + return operator === "=" ? result === check : + operator === "!=" ? result !== check : + operator === "^=" ? check && result.indexOf( check ) === 0 : + operator === "*=" ? check && result.indexOf( check ) > -1 : + operator === "$=" ? check && result.slice( -check.length ) === check : + operator === "~=" ? ( " " + result.replace( rwhitespace, " " ) + " " ).indexOf( check ) > -1 : + operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" : + false; + }; + }, + + "CHILD": function( type, what, argument, first, last ) { + var simple = type.slice( 0, 3 ) !== "nth", + forward = type.slice( -4 ) !== "last", + ofType = what === "of-type"; + + return first === 1 && last === 0 ? + + // Shortcut for :nth-*(n) + function( elem ) { + return !!elem.parentNode; + } : + + function( elem, context, xml ) { + var cache, uniqueCache, outerCache, node, nodeIndex, start, + dir = simple !== forward ? "nextSibling" : "previousSibling", + parent = elem.parentNode, + name = ofType && elem.nodeName.toLowerCase(), + useCache = !xml && !ofType, + diff = false; + + if ( parent ) { + + // :(first|last|only)-(child|of-type) + if ( simple ) { + while ( dir ) { + node = elem; + while ( (node = node[ dir ]) ) { + if ( ofType ? + node.nodeName.toLowerCase() === name : + node.nodeType === 1 ) { + + return false; + } + } + // Reverse direction for :only-* (if we haven't yet done so) + start = dir = type === "only" && !start && "nextSibling"; + } + return true; + } + + start = [ forward ? parent.firstChild : parent.lastChild ]; + + // non-xml :nth-child(...) stores cache data on `parent` + if ( forward && useCache ) { + + // Seek `elem` from a previously-cached index + + // ...in a gzip-friendly way + node = parent; + outerCache = node[ expando ] || (node[ expando ] = {}); + + // Support: IE <9 only + // Defend against cloned attroperties (jQuery gh-1709) + uniqueCache = outerCache[ node.uniqueID ] || + (outerCache[ node.uniqueID ] = {}); + + cache = uniqueCache[ type ] || []; + nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ]; + diff = nodeIndex && cache[ 2 ]; + node = nodeIndex && parent.childNodes[ nodeIndex ]; + + while ( (node = ++nodeIndex && node && node[ dir ] || + + // Fallback to seeking `elem` from the start + (diff = nodeIndex = 0) || start.pop()) ) { + + // When found, cache indexes on `parent` and break + if ( node.nodeType === 1 && ++diff && node === elem ) { + uniqueCache[ type ] = [ dirruns, nodeIndex, diff ]; + break; + } + } + + } else { + // Use previously-cached element index if available + if ( useCache ) { + // ...in a gzip-friendly way + node = elem; + outerCache = node[ expando ] || (node[ expando ] = {}); + + // Support: IE <9 only + // Defend against cloned attroperties (jQuery gh-1709) + uniqueCache = outerCache[ node.uniqueID ] || + (outerCache[ node.uniqueID ] = {}); + + cache = uniqueCache[ type ] || []; + nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ]; + diff = nodeIndex; + } + + // xml :nth-child(...) + // or :nth-last-child(...) or :nth(-last)?-of-type(...) + if ( diff === false ) { + // Use the same loop as above to seek `elem` from the start + while ( (node = ++nodeIndex && node && node[ dir ] || + (diff = nodeIndex = 0) || start.pop()) ) { + + if ( ( ofType ? + node.nodeName.toLowerCase() === name : + node.nodeType === 1 ) && + ++diff ) { + + // Cache the index of each encountered element + if ( useCache ) { + outerCache = node[ expando ] || (node[ expando ] = {}); + + // Support: IE <9 only + // Defend against cloned attroperties (jQuery gh-1709) + uniqueCache = outerCache[ node.uniqueID ] || + (outerCache[ node.uniqueID ] = {}); + + uniqueCache[ type ] = [ dirruns, diff ]; + } + + if ( node === elem ) { + break; + } + } + } + } + } + + // Incorporate the offset, then check against cycle size + diff -= last; + return diff === first || ( diff % first === 0 && diff / first >= 0 ); + } + }; + }, + + "PSEUDO": function( pseudo, argument ) { + // pseudo-class names are case-insensitive + // http://www.w3.org/TR/selectors/#pseudo-classes + // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters + // Remember that setFilters inherits from pseudos + var args, + fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] || + Sizzle.error( "unsupported pseudo: " + pseudo ); + + // The user may use createPseudo to indicate that + // arguments are needed to create the filter function + // just as Sizzle does + if ( fn[ expando ] ) { + return fn( argument ); + } + + // But maintain support for old signatures + if ( fn.length > 1 ) { + args = [ pseudo, pseudo, "", argument ]; + return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ? + markFunction(function( seed, matches ) { + var idx, + matched = fn( seed, argument ), + i = matched.length; + while ( i-- ) { + idx = indexOf( seed, matched[i] ); + seed[ idx ] = !( matches[ idx ] = matched[i] ); + } + }) : + function( elem ) { + return fn( elem, 0, args ); + }; + } + + return fn; + } + }, + + pseudos: { + // Potentially complex pseudos + "not": markFunction(function( selector ) { + // Trim the selector passed to compile + // to avoid treating leading and trailing + // spaces as combinators + var input = [], + results = [], + matcher = compile( selector.replace( rtrim, "$1" ) ); + + return matcher[ expando ] ? + markFunction(function( seed, matches, context, xml ) { + var elem, + unmatched = matcher( seed, null, xml, [] ), + i = seed.length; + + // Match elements unmatched by `matcher` + while ( i-- ) { + if ( (elem = unmatched[i]) ) { + seed[i] = !(matches[i] = elem); + } + } + }) : + function( elem, context, xml ) { + input[0] = elem; + matcher( input, null, xml, results ); + // Don't keep the element (issue #299) + input[0] = null; + return !results.pop(); + }; + }), + + "has": markFunction(function( selector ) { + return function( elem ) { + return Sizzle( selector, elem ).length > 0; + }; + }), + + "contains": markFunction(function( text ) { + text = text.replace( runescape, funescape ); + return function( elem ) { + return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1; + }; + }), + + // "Whether an element is represented by a :lang() selector + // is based solely on the element's language value + // being equal to the identifier C, + // or beginning with the identifier C immediately followed by "-". + // The matching of C against the element's language value is performed case-insensitively. + // The identifier C does not have to be a valid language name." + // http://www.w3.org/TR/selectors/#lang-pseudo + "lang": markFunction( function( lang ) { + // lang value must be a valid identifier + if ( !ridentifier.test(lang || "") ) { + Sizzle.error( "unsupported lang: " + lang ); + } + lang = lang.replace( runescape, funescape ).toLowerCase(); + return function( elem ) { + var elemLang; + do { + if ( (elemLang = documentIsHTML ? + elem.lang : + elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) { + + elemLang = elemLang.toLowerCase(); + return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0; + } + } while ( (elem = elem.parentNode) && elem.nodeType === 1 ); + return false; + }; + }), + + // Miscellaneous + "target": function( elem ) { + var hash = window.location && window.location.hash; + return hash && hash.slice( 1 ) === elem.id; + }, + + "root": function( elem ) { + return elem === docElem; + }, + + "focus": function( elem ) { + return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex); + }, + + // Boolean properties + "enabled": function( elem ) { + return elem.disabled === false; + }, + + "disabled": function( elem ) { + return elem.disabled === true; + }, + + "checked": function( elem ) { + // In CSS3, :checked should return both checked and selected elements + // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked + var nodeName = elem.nodeName.toLowerCase(); + return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected); + }, + + "selected": function( elem ) { + // Accessing this property makes selected-by-default + // options in Safari work properly + if ( elem.parentNode ) { + elem.parentNode.selectedIndex; + } + + return elem.selected === true; + }, + + // Contents + "empty": function( elem ) { + // http://www.w3.org/TR/selectors/#empty-pseudo + // :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5), + // but not by others (comment: 8; processing instruction: 7; etc.) + // nodeType < 6 works because attributes (2) do not appear as children + for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { + if ( elem.nodeType < 6 ) { + return false; + } + } + return true; + }, + + "parent": function( elem ) { + return !Expr.pseudos["empty"]( elem ); + }, + + // Element/input types + "header": function( elem ) { + return rheader.test( elem.nodeName ); + }, + + "input": function( elem ) { + return rinputs.test( elem.nodeName ); + }, + + "button": function( elem ) { + var name = elem.nodeName.toLowerCase(); + return name === "input" && elem.type === "button" || name === "button"; + }, + + "text": function( elem ) { + var attr; + return elem.nodeName.toLowerCase() === "input" && + elem.type === "text" && + + // Support: IE<8 + // New HTML5 attribute values (e.g., "search") appear with elem.type === "text" + ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === "text" ); + }, + + // Position-in-collection + "first": createPositionalPseudo(function() { + return [ 0 ]; + }), + + "last": createPositionalPseudo(function( matchIndexes, length ) { + return [ length - 1 ]; + }), + + "eq": createPositionalPseudo(function( matchIndexes, length, argument ) { + return [ argument < 0 ? argument + length : argument ]; + }), + + "even": createPositionalPseudo(function( matchIndexes, length ) { + var i = 0; + for ( ; i < length; i += 2 ) { + matchIndexes.push( i ); + } + return matchIndexes; + }), + + "odd": createPositionalPseudo(function( matchIndexes, length ) { + var i = 1; + for ( ; i < length; i += 2 ) { + matchIndexes.push( i ); + } + return matchIndexes; + }), + + "lt": createPositionalPseudo(function( matchIndexes, length, argument ) { + var i = argument < 0 ? argument + length : argument; + for ( ; --i >= 0; ) { + matchIndexes.push( i ); + } + return matchIndexes; + }), + + "gt": createPositionalPseudo(function( matchIndexes, length, argument ) { + var i = argument < 0 ? argument + length : argument; + for ( ; ++i < length; ) { + matchIndexes.push( i ); + } + return matchIndexes; + }) + } +}; + +Expr.pseudos["nth"] = Expr.pseudos["eq"]; + +// Add button/input type pseudos +for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) { + Expr.pseudos[ i ] = createInputPseudo( i ); +} +for ( i in { submit: true, reset: true } ) { + Expr.pseudos[ i ] = createButtonPseudo( i ); +} + +// Easy API for creating new setFilters +function setFilters() {} +setFilters.prototype = Expr.filters = Expr.pseudos; +Expr.setFilters = new setFilters(); + +tokenize = Sizzle.tokenize = function( selector, parseOnly ) { + var matched, match, tokens, type, + soFar, groups, preFilters, + cached = tokenCache[ selector + " " ]; + + if ( cached ) { + return parseOnly ? 0 : cached.slice( 0 ); + } + + soFar = selector; + groups = []; + preFilters = Expr.preFilter; + + while ( soFar ) { + + // Comma and first run + if ( !matched || (match = rcomma.exec( soFar )) ) { + if ( match ) { + // Don't consume trailing commas as valid + soFar = soFar.slice( match[0].length ) || soFar; + } + groups.push( (tokens = []) ); + } + + matched = false; + + // Combinators + if ( (match = rcombinators.exec( soFar )) ) { + matched = match.shift(); + tokens.push({ + value: matched, + // Cast descendant combinators to space + type: match[0].replace( rtrim, " " ) + }); + soFar = soFar.slice( matched.length ); + } + + // Filters + for ( type in Expr.filter ) { + if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] || + (match = preFilters[ type ]( match ))) ) { + matched = match.shift(); + tokens.push({ + value: matched, + type: type, + matches: match + }); + soFar = soFar.slice( matched.length ); + } + } + + if ( !matched ) { + break; + } + } + + // Return the length of the invalid excess + // if we're just parsing + // Otherwise, throw an error or return tokens + return parseOnly ? + soFar.length : + soFar ? + Sizzle.error( selector ) : + // Cache the tokens + tokenCache( selector, groups ).slice( 0 ); +}; + +function toSelector( tokens ) { + var i = 0, + len = tokens.length, + selector = ""; + for ( ; i < len; i++ ) { + selector += tokens[i].value; + } + return selector; +} + +function addCombinator( matcher, combinator, base ) { + var dir = combinator.dir, + checkNonElements = base && dir === "parentNode", + doneName = done++; + + return combinator.first ? + // Check against closest ancestor/preceding element + function( elem, context, xml ) { + while ( (elem = elem[ dir ]) ) { + if ( elem.nodeType === 1 || checkNonElements ) { + return matcher( elem, context, xml ); + } + } + } : + + // Check against all ancestor/preceding elements + function( elem, context, xml ) { + var oldCache, uniqueCache, outerCache, + newCache = [ dirruns, doneName ]; + + // We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching + if ( xml ) { + while ( (elem = elem[ dir ]) ) { + if ( elem.nodeType === 1 || checkNonElements ) { + if ( matcher( elem, context, xml ) ) { + return true; + } + } + } + } else { + while ( (elem = elem[ dir ]) ) { + if ( elem.nodeType === 1 || checkNonElements ) { + outerCache = elem[ expando ] || (elem[ expando ] = {}); + + // Support: IE <9 only + // Defend against cloned attroperties (jQuery gh-1709) + uniqueCache = outerCache[ elem.uniqueID ] || (outerCache[ elem.uniqueID ] = {}); + + if ( (oldCache = uniqueCache[ dir ]) && + oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) { + + // Assign to newCache so results back-propagate to previous elements + return (newCache[ 2 ] = oldCache[ 2 ]); + } else { + // Reuse newcache so results back-propagate to previous elements + uniqueCache[ dir ] = newCache; + + // A match means we're done; a fail means we have to keep checking + if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) { + return true; + } + } + } + } + } + }; +} + +function elementMatcher( matchers ) { + return matchers.length > 1 ? + function( elem, context, xml ) { + var i = matchers.length; + while ( i-- ) { + if ( !matchers[i]( elem, context, xml ) ) { + return false; + } + } + return true; + } : + matchers[0]; +} + +function multipleContexts( selector, contexts, results ) { + var i = 0, + len = contexts.length; + for ( ; i < len; i++ ) { + Sizzle( selector, contexts[i], results ); + } + return results; +} + +function condense( unmatched, map, filter, context, xml ) { + var elem, + newUnmatched = [], + i = 0, + len = unmatched.length, + mapped = map != null; + + for ( ; i < len; i++ ) { + if ( (elem = unmatched[i]) ) { + if ( !filter || filter( elem, context, xml ) ) { + newUnmatched.push( elem ); + if ( mapped ) { + map.push( i ); + } + } + } + } + + return newUnmatched; +} + +function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) { + if ( postFilter && !postFilter[ expando ] ) { + postFilter = setMatcher( postFilter ); + } + if ( postFinder && !postFinder[ expando ] ) { + postFinder = setMatcher( postFinder, postSelector ); + } + return markFunction(function( seed, results, context, xml ) { + var temp, i, elem, + preMap = [], + postMap = [], + preexisting = results.length, + + // Get initial elements from seed or context + elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ), + + // Prefilter to get matcher input, preserving a map for seed-results synchronization + matcherIn = preFilter && ( seed || !selector ) ? + condense( elems, preMap, preFilter, context, xml ) : + elems, + + matcherOut = matcher ? + // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results, + postFinder || ( seed ? preFilter : preexisting || postFilter ) ? + + // ...intermediate processing is necessary + [] : + + // ...otherwise use results directly + results : + matcherIn; + + // Find primary matches + if ( matcher ) { + matcher( matcherIn, matcherOut, context, xml ); + } + + // Apply postFilter + if ( postFilter ) { + temp = condense( matcherOut, postMap ); + postFilter( temp, [], context, xml ); + + // Un-match failing elements by moving them back to matcherIn + i = temp.length; + while ( i-- ) { + if ( (elem = temp[i]) ) { + matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem); + } + } + } + + if ( seed ) { + if ( postFinder || preFilter ) { + if ( postFinder ) { + // Get the final matcherOut by condensing this intermediate into postFinder contexts + temp = []; + i = matcherOut.length; + while ( i-- ) { + if ( (elem = matcherOut[i]) ) { + // Restore matcherIn since elem is not yet a final match + temp.push( (matcherIn[i] = elem) ); + } + } + postFinder( null, (matcherOut = []), temp, xml ); + } + + // Move matched elements from seed to results to keep them synchronized + i = matcherOut.length; + while ( i-- ) { + if ( (elem = matcherOut[i]) && + (temp = postFinder ? indexOf( seed, elem ) : preMap[i]) > -1 ) { + + seed[temp] = !(results[temp] = elem); + } + } + } + + // Add elements to results, through postFinder if defined + } else { + matcherOut = condense( + matcherOut === results ? + matcherOut.splice( preexisting, matcherOut.length ) : + matcherOut + ); + if ( postFinder ) { + postFinder( null, results, matcherOut, xml ); + } else { + push.apply( results, matcherOut ); + } + } + }); +} + +function matcherFromTokens( tokens ) { + var checkContext, matcher, j, + len = tokens.length, + leadingRelative = Expr.relative[ tokens[0].type ], + implicitRelative = leadingRelative || Expr.relative[" "], + i = leadingRelative ? 1 : 0, + + // The foundational matcher ensures that elements are reachable from top-level context(s) + matchContext = addCombinator( function( elem ) { + return elem === checkContext; + }, implicitRelative, true ), + matchAnyContext = addCombinator( function( elem ) { + return indexOf( checkContext, elem ) > -1; + }, implicitRelative, true ), + matchers = [ function( elem, context, xml ) { + var ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || ( + (checkContext = context).nodeType ? + matchContext( elem, context, xml ) : + matchAnyContext( elem, context, xml ) ); + // Avoid hanging onto element (issue #299) + checkContext = null; + return ret; + } ]; + + for ( ; i < len; i++ ) { + if ( (matcher = Expr.relative[ tokens[i].type ]) ) { + matchers = [ addCombinator(elementMatcher( matchers ), matcher) ]; + } else { + matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches ); + + // Return special upon seeing a positional matcher + if ( matcher[ expando ] ) { + // Find the next relative operator (if any) for proper handling + j = ++i; + for ( ; j < len; j++ ) { + if ( Expr.relative[ tokens[j].type ] ) { + break; + } + } + return setMatcher( + i > 1 && elementMatcher( matchers ), + i > 1 && toSelector( + // If the preceding token was a descendant combinator, insert an implicit any-element `*` + tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" }) + ).replace( rtrim, "$1" ), + matcher, + i < j && matcherFromTokens( tokens.slice( i, j ) ), + j < len && matcherFromTokens( (tokens = tokens.slice( j )) ), + j < len && toSelector( tokens ) + ); + } + matchers.push( matcher ); + } + } + + return elementMatcher( matchers ); +} + +function matcherFromGroupMatchers( elementMatchers, setMatchers ) { + var bySet = setMatchers.length > 0, + byElement = elementMatchers.length > 0, + superMatcher = function( seed, context, xml, results, outermost ) { + var elem, j, matcher, + matchedCount = 0, + i = "0", + unmatched = seed && [], + setMatched = [], + contextBackup = outermostContext, + // We must always have either seed elements or outermost context + elems = seed || byElement && Expr.find["TAG"]( "*", outermost ), + // Use integer dirruns iff this is the outermost matcher + dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1), + len = elems.length; + + if ( outermost ) { + outermostContext = context === document || context || outermost; + } + + // Add elements passing elementMatchers directly to results + // Support: IE<9, Safari + // Tolerate NodeList properties (IE: "length"; Safari: ) matching elements by id + for ( ; i !== len && (elem = elems[i]) != null; i++ ) { + if ( byElement && elem ) { + j = 0; + if ( !context && elem.ownerDocument !== document ) { + setDocument( elem ); + xml = !documentIsHTML; + } + while ( (matcher = elementMatchers[j++]) ) { + if ( matcher( elem, context || document, xml) ) { + results.push( elem ); + break; + } + } + if ( outermost ) { + dirruns = dirrunsUnique; + } + } + + // Track unmatched elements for set filters + if ( bySet ) { + // They will have gone through all possible matchers + if ( (elem = !matcher && elem) ) { + matchedCount--; + } + + // Lengthen the array for every element, matched or not + if ( seed ) { + unmatched.push( elem ); + } + } + } + + // `i` is now the count of elements visited above, and adding it to `matchedCount` + // makes the latter nonnegative. + matchedCount += i; + + // Apply set filters to unmatched elements + // NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount` + // equals `i`), unless we didn't visit _any_ elements in the above loop because we have + // no element matchers and no seed. + // Incrementing an initially-string "0" `i` allows `i` to remain a string only in that + // case, which will result in a "00" `matchedCount` that differs from `i` but is also + // numerically zero. + if ( bySet && i !== matchedCount ) { + j = 0; + while ( (matcher = setMatchers[j++]) ) { + matcher( unmatched, setMatched, context, xml ); + } + + if ( seed ) { + // Reintegrate element matches to eliminate the need for sorting + if ( matchedCount > 0 ) { + while ( i-- ) { + if ( !(unmatched[i] || setMatched[i]) ) { + setMatched[i] = pop.call( results ); + } + } + } + + // Discard index placeholder values to get only actual matches + setMatched = condense( setMatched ); + } + + // Add matches to results + push.apply( results, setMatched ); + + // Seedless set matches succeeding multiple successful matchers stipulate sorting + if ( outermost && !seed && setMatched.length > 0 && + ( matchedCount + setMatchers.length ) > 1 ) { + + Sizzle.uniqueSort( results ); + } + } + + // Override manipulation of globals by nested matchers + if ( outermost ) { + dirruns = dirrunsUnique; + outermostContext = contextBackup; + } + + return unmatched; + }; + + return bySet ? + markFunction( superMatcher ) : + superMatcher; +} + +compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) { + var i, + setMatchers = [], + elementMatchers = [], + cached = compilerCache[ selector + " " ]; + + if ( !cached ) { + // Generate a function of recursive functions that can be used to check each element + if ( !match ) { + match = tokenize( selector ); + } + i = match.length; + while ( i-- ) { + cached = matcherFromTokens( match[i] ); + if ( cached[ expando ] ) { + setMatchers.push( cached ); + } else { + elementMatchers.push( cached ); + } + } + + // Cache the compiled function + cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) ); + + // Save selector and tokenization + cached.selector = selector; + } + return cached; +}; + +/** + * A low-level selection function that works with Sizzle's compiled + * selector functions + * @param {String|Function} selector A selector or a pre-compiled + * selector function built with Sizzle.compile + * @param {Element} context + * @param {Array} [results] + * @param {Array} [seed] A set of elements to match against + */ +select = Sizzle.select = function( selector, context, results, seed ) { + var i, tokens, token, type, find, + compiled = typeof selector === "function" && selector, + match = !seed && tokenize( (selector = compiled.selector || selector) ); + + results = results || []; + + // Try to minimize operations if there is only one selector in the list and no seed + // (the latter of which guarantees us context) + if ( match.length === 1 ) { + + // Reduce context if the leading compound selector is an ID + tokens = match[0] = match[0].slice( 0 ); + if ( tokens.length > 2 && (token = tokens[0]).type === "ID" && + support.getById && context.nodeType === 9 && documentIsHTML && + Expr.relative[ tokens[1].type ] ) { + + context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0]; + if ( !context ) { + return results; + + // Precompiled matchers will still verify ancestry, so step up a level + } else if ( compiled ) { + context = context.parentNode; + } + + selector = selector.slice( tokens.shift().value.length ); + } + + // Fetch a seed set for right-to-left matching + i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length; + while ( i-- ) { + token = tokens[i]; + + // Abort if we hit a combinator + if ( Expr.relative[ (type = token.type) ] ) { + break; + } + if ( (find = Expr.find[ type ]) ) { + // Search, expanding context for leading sibling combinators + if ( (seed = find( + token.matches[0].replace( runescape, funescape ), + rsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context + )) ) { + + // If seed is empty or no tokens remain, we can return early + tokens.splice( i, 1 ); + selector = seed.length && toSelector( tokens ); + if ( !selector ) { + push.apply( results, seed ); + return results; + } + + break; + } + } + } + } + + // Compile and execute a filtering function if one is not provided + // Provide `match` to avoid retokenization if we modified the selector above + ( compiled || compile( selector, match ) )( + seed, + context, + !documentIsHTML, + results, + !context || rsibling.test( selector ) && testContext( context.parentNode ) || context + ); + return results; +}; + +// One-time assignments + +// Sort stability +support.sortStable = expando.split("").sort( sortOrder ).join("") === expando; + +// Support: Chrome 14-35+ +// Always assume duplicates if they aren't passed to the comparison function +support.detectDuplicates = !!hasDuplicate; + +// Initialize against the default document +setDocument(); + +// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27) +// Detached nodes confoundingly follow *each other* +support.sortDetached = assert(function( div1 ) { + // Should return 1, but returns 4 (following) + return div1.compareDocumentPosition( document.createElement("div") ) & 1; +}); + +// Support: IE<8 +// Prevent attribute/property "interpolation" +// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx +if ( !assert(function( div ) { + div.innerHTML = ""; + return div.firstChild.getAttribute("href") === "#" ; +}) ) { + addHandle( "type|href|height|width", function( elem, name, isXML ) { + if ( !isXML ) { + return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 ); + } + }); +} + +// Support: IE<9 +// Use defaultValue in place of getAttribute("value") +if ( !support.attributes || !assert(function( div ) { + div.innerHTML = ""; + div.firstChild.setAttribute( "value", "" ); + return div.firstChild.getAttribute( "value" ) === ""; +}) ) { + addHandle( "value", function( elem, name, isXML ) { + if ( !isXML && elem.nodeName.toLowerCase() === "input" ) { + return elem.defaultValue; + } + }); +} + +// Support: IE<9 +// Use getAttributeNode to fetch booleans when getAttribute lies +if ( !assert(function( div ) { + return div.getAttribute("disabled") == null; +}) ) { + addHandle( booleans, function( elem, name, isXML ) { + var val; + if ( !isXML ) { + return elem[ name ] === true ? name.toLowerCase() : + (val = elem.getAttributeNode( name )) && val.specified ? + val.value : + null; + } + }); +} + +return Sizzle; + +})( window ); + + + +jQuery.find = Sizzle; +jQuery.expr = Sizzle.selectors; +jQuery.expr[ ":" ] = jQuery.expr.pseudos; +jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort; +jQuery.text = Sizzle.getText; +jQuery.isXMLDoc = Sizzle.isXML; +jQuery.contains = Sizzle.contains; + + + +var dir = function( elem, dir, until ) { + var matched = [], + truncate = until !== undefined; + + while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) { + if ( elem.nodeType === 1 ) { + if ( truncate && jQuery( elem ).is( until ) ) { + break; + } + matched.push( elem ); + } + } + return matched; +}; + + +var siblings = function( n, elem ) { + var matched = []; + + for ( ; n; n = n.nextSibling ) { + if ( n.nodeType === 1 && n !== elem ) { + matched.push( n ); + } + } + + return matched; +}; + + +var rneedsContext = jQuery.expr.match.needsContext; + +var rsingleTag = ( /^<([\w-]+)\s*\/?>(?:<\/\1>|)$/ ); + + + +var risSimple = /^.[^:#\[\.,]*$/; + +// Implement the identical functionality for filter and not +function winnow( elements, qualifier, not ) { + if ( jQuery.isFunction( qualifier ) ) { + return jQuery.grep( elements, function( elem, i ) { + /* jshint -W018 */ + return !!qualifier.call( elem, i, elem ) !== not; + } ); + + } + + if ( qualifier.nodeType ) { + return jQuery.grep( elements, function( elem ) { + return ( elem === qualifier ) !== not; + } ); + + } + + if ( typeof qualifier === "string" ) { + if ( risSimple.test( qualifier ) ) { + return jQuery.filter( qualifier, elements, not ); + } + + qualifier = jQuery.filter( qualifier, elements ); + } + + return jQuery.grep( elements, function( elem ) { + return ( indexOf.call( qualifier, elem ) > -1 ) !== not; + } ); +} + +jQuery.filter = function( expr, elems, not ) { + var elem = elems[ 0 ]; + + if ( not ) { + expr = ":not(" + expr + ")"; + } + + return elems.length === 1 && elem.nodeType === 1 ? + jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [] : + jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) { + return elem.nodeType === 1; + } ) ); +}; + +jQuery.fn.extend( { + find: function( selector ) { + var i, + len = this.length, + ret = [], + self = this; + + if ( typeof selector !== "string" ) { + return this.pushStack( jQuery( selector ).filter( function() { + for ( i = 0; i < len; i++ ) { + if ( jQuery.contains( self[ i ], this ) ) { + return true; + } + } + } ) ); + } + + for ( i = 0; i < len; i++ ) { + jQuery.find( selector, self[ i ], ret ); + } + + // Needed because $( selector, context ) becomes $( context ).find( selector ) + ret = this.pushStack( len > 1 ? jQuery.unique( ret ) : ret ); + ret.selector = this.selector ? this.selector + " " + selector : selector; + return ret; + }, + filter: function( selector ) { + return this.pushStack( winnow( this, selector || [], false ) ); + }, + not: function( selector ) { + return this.pushStack( winnow( this, selector || [], true ) ); + }, + is: function( selector ) { + return !!winnow( + this, + + // If this is a positional/relative selector, check membership in the returned set + // so $("p:first").is("p:last") won't return true for a doc with two "p". + typeof selector === "string" && rneedsContext.test( selector ) ? + jQuery( selector ) : + selector || [], + false + ).length; + } +} ); + + +// Initialize a jQuery object + + +// A central reference to the root jQuery(document) +var rootjQuery, + + // A simple way to check for HTML strings + // Prioritize #id over to avoid XSS via location.hash (#9521) + // Strict HTML recognition (#11290: must start with <) + rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/, + + init = jQuery.fn.init = function( selector, context, root ) { + var match, elem; + + // HANDLE: $(""), $(null), $(undefined), $(false) + if ( !selector ) { + return this; + } + + // Method init() accepts an alternate rootjQuery + // so migrate can support jQuery.sub (gh-2101) + root = root || rootjQuery; + + // Handle HTML strings + if ( typeof selector === "string" ) { + if ( selector[ 0 ] === "<" && + selector[ selector.length - 1 ] === ">" && + selector.length >= 3 ) { + + // Assume that strings that start and end with <> are HTML and skip the regex check + match = [ null, selector, null ]; + + } else { + match = rquickExpr.exec( selector ); + } + + // Match html or make sure no context is specified for #id + if ( match && ( match[ 1 ] || !context ) ) { + + // HANDLE: $(html) -> $(array) + if ( match[ 1 ] ) { + context = context instanceof jQuery ? context[ 0 ] : context; + + // Option to run scripts is true for back-compat + // Intentionally let the error be thrown if parseHTML is not present + jQuery.merge( this, jQuery.parseHTML( + match[ 1 ], + context && context.nodeType ? context.ownerDocument || context : document, + true + ) ); + + // HANDLE: $(html, props) + if ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) { + for ( match in context ) { + + // Properties of context are called as methods if possible + if ( jQuery.isFunction( this[ match ] ) ) { + this[ match ]( context[ match ] ); + + // ...and otherwise set as attributes + } else { + this.attr( match, context[ match ] ); + } + } + } + + return this; + + // HANDLE: $(#id) + } else { + elem = document.getElementById( match[ 2 ] ); + + // Support: Blackberry 4.6 + // gEBID returns nodes no longer in the document (#6963) + if ( elem && elem.parentNode ) { + + // Inject the element directly into the jQuery object + this.length = 1; + this[ 0 ] = elem; + } + + this.context = document; + this.selector = selector; + return this; + } + + // HANDLE: $(expr, $(...)) + } else if ( !context || context.jquery ) { + return ( context || root ).find( selector ); + + // HANDLE: $(expr, context) + // (which is just equivalent to: $(context).find(expr) + } else { + return this.constructor( context ).find( selector ); + } + + // HANDLE: $(DOMElement) + } else if ( selector.nodeType ) { + this.context = this[ 0 ] = selector; + this.length = 1; + return this; + + // HANDLE: $(function) + // Shortcut for document ready + } else if ( jQuery.isFunction( selector ) ) { + return root.ready !== undefined ? + root.ready( selector ) : + + // Execute immediately if ready is not present + selector( jQuery ); + } + + if ( selector.selector !== undefined ) { + this.selector = selector.selector; + this.context = selector.context; + } + + return jQuery.makeArray( selector, this ); + }; + +// Give the init function the jQuery prototype for later instantiation +init.prototype = jQuery.fn; + +// Initialize central reference +rootjQuery = jQuery( document ); + + +var rparentsprev = /^(?:parents|prev(?:Until|All))/, + + // Methods guaranteed to produce a unique set when starting from a unique set + guaranteedUnique = { + children: true, + contents: true, + next: true, + prev: true + }; + +jQuery.fn.extend( { + has: function( target ) { + var targets = jQuery( target, this ), + l = targets.length; + + return this.filter( function() { + var i = 0; + for ( ; i < l; i++ ) { + if ( jQuery.contains( this, targets[ i ] ) ) { + return true; + } + } + } ); + }, + + closest: function( selectors, context ) { + var cur, + i = 0, + l = this.length, + matched = [], + pos = rneedsContext.test( selectors ) || typeof selectors !== "string" ? + jQuery( selectors, context || this.context ) : + 0; + + for ( ; i < l; i++ ) { + for ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) { + + // Always skip document fragments + if ( cur.nodeType < 11 && ( pos ? + pos.index( cur ) > -1 : + + // Don't pass non-elements to Sizzle + cur.nodeType === 1 && + jQuery.find.matchesSelector( cur, selectors ) ) ) { + + matched.push( cur ); + break; + } + } + } + + return this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched ); + }, + + // Determine the position of an element within the set + index: function( elem ) { + + // No argument, return index in parent + if ( !elem ) { + return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1; + } + + // Index in selector + if ( typeof elem === "string" ) { + return indexOf.call( jQuery( elem ), this[ 0 ] ); + } + + // Locate the position of the desired element + return indexOf.call( this, + + // If it receives a jQuery object, the first element is used + elem.jquery ? elem[ 0 ] : elem + ); + }, + + add: function( selector, context ) { + return this.pushStack( + jQuery.uniqueSort( + jQuery.merge( this.get(), jQuery( selector, context ) ) + ) + ); + }, + + addBack: function( selector ) { + return this.add( selector == null ? + this.prevObject : this.prevObject.filter( selector ) + ); + } +} ); + +function sibling( cur, dir ) { + while ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {} + return cur; +} + +jQuery.each( { + parent: function( elem ) { + var parent = elem.parentNode; + return parent && parent.nodeType !== 11 ? parent : null; + }, + parents: function( elem ) { + return dir( elem, "parentNode" ); + }, + parentsUntil: function( elem, i, until ) { + return dir( elem, "parentNode", until ); + }, + next: function( elem ) { + return sibling( elem, "nextSibling" ); + }, + prev: function( elem ) { + return sibling( elem, "previousSibling" ); + }, + nextAll: function( elem ) { + return dir( elem, "nextSibling" ); + }, + prevAll: function( elem ) { + return dir( elem, "previousSibling" ); + }, + nextUntil: function( elem, i, until ) { + return dir( elem, "nextSibling", until ); + }, + prevUntil: function( elem, i, until ) { + return dir( elem, "previousSibling", until ); + }, + siblings: function( elem ) { + return siblings( ( elem.parentNode || {} ).firstChild, elem ); + }, + children: function( elem ) { + return siblings( elem.firstChild ); + }, + contents: function( elem ) { + return elem.contentDocument || jQuery.merge( [], elem.childNodes ); + } +}, function( name, fn ) { + jQuery.fn[ name ] = function( until, selector ) { + var matched = jQuery.map( this, fn, until ); + + if ( name.slice( -5 ) !== "Until" ) { + selector = until; + } + + if ( selector && typeof selector === "string" ) { + matched = jQuery.filter( selector, matched ); + } + + if ( this.length > 1 ) { + + // Remove duplicates + if ( !guaranteedUnique[ name ] ) { + jQuery.uniqueSort( matched ); + } + + // Reverse order for parents* and prev-derivatives + if ( rparentsprev.test( name ) ) { + matched.reverse(); + } + } + + return this.pushStack( matched ); + }; +} ); +var rnotwhite = ( /\S+/g ); + + + +// Convert String-formatted options into Object-formatted ones +function createOptions( options ) { + var object = {}; + jQuery.each( options.match( rnotwhite ) || [], function( _, flag ) { + object[ flag ] = true; + } ); + return object; +} + +/* + * Create a callback list using the following parameters: + * + * options: an optional list of space-separated options that will change how + * the callback list behaves or a more traditional option object + * + * By default a callback list will act like an event callback list and can be + * "fired" multiple times. + * + * Possible options: + * + * once: will ensure the callback list can only be fired once (like a Deferred) + * + * memory: will keep track of previous values and will call any callback added + * after the list has been fired right away with the latest "memorized" + * values (like a Deferred) + * + * unique: will ensure a callback can only be added once (no duplicate in the list) + * + * stopOnFalse: interrupt callings when a callback returns false + * + */ +jQuery.Callbacks = function( options ) { + + // Convert options from String-formatted to Object-formatted if needed + // (we check in cache first) + options = typeof options === "string" ? + createOptions( options ) : + jQuery.extend( {}, options ); + + var // Flag to know if list is currently firing + firing, + + // Last fire value for non-forgettable lists + memory, + + // Flag to know if list was already fired + fired, + + // Flag to prevent firing + locked, + + // Actual callback list + list = [], + + // Queue of execution data for repeatable lists + queue = [], + + // Index of currently firing callback (modified by add/remove as needed) + firingIndex = -1, + + // Fire callbacks + fire = function() { + + // Enforce single-firing + locked = options.once; + + // Execute callbacks for all pending executions, + // respecting firingIndex overrides and runtime changes + fired = firing = true; + for ( ; queue.length; firingIndex = -1 ) { + memory = queue.shift(); + while ( ++firingIndex < list.length ) { + + // Run callback and check for early termination + if ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false && + options.stopOnFalse ) { + + // Jump to end and forget the data so .add doesn't re-fire + firingIndex = list.length; + memory = false; + } + } + } + + // Forget the data if we're done with it + if ( !options.memory ) { + memory = false; + } + + firing = false; + + // Clean up if we're done firing for good + if ( locked ) { + + // Keep an empty list if we have data for future add calls + if ( memory ) { + list = []; + + // Otherwise, this object is spent + } else { + list = ""; + } + } + }, + + // Actual Callbacks object + self = { + + // Add a callback or a collection of callbacks to the list + add: function() { + if ( list ) { + + // If we have memory from a past run, we should fire after adding + if ( memory && !firing ) { + firingIndex = list.length - 1; + queue.push( memory ); + } + + ( function add( args ) { + jQuery.each( args, function( _, arg ) { + if ( jQuery.isFunction( arg ) ) { + if ( !options.unique || !self.has( arg ) ) { + list.push( arg ); + } + } else if ( arg && arg.length && jQuery.type( arg ) !== "string" ) { + + // Inspect recursively + add( arg ); + } + } ); + } )( arguments ); + + if ( memory && !firing ) { + fire(); + } + } + return this; + }, + + // Remove a callback from the list + remove: function() { + jQuery.each( arguments, function( _, arg ) { + var index; + while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) { + list.splice( index, 1 ); + + // Handle firing indexes + if ( index <= firingIndex ) { + firingIndex--; + } + } + } ); + return this; + }, + + // Check if a given callback is in the list. + // If no argument is given, return whether or not list has callbacks attached. + has: function( fn ) { + return fn ? + jQuery.inArray( fn, list ) > -1 : + list.length > 0; + }, + + // Remove all callbacks from the list + empty: function() { + if ( list ) { + list = []; + } + return this; + }, + + // Disable .fire and .add + // Abort any current/pending executions + // Clear all callbacks and values + disable: function() { + locked = queue = []; + list = memory = ""; + return this; + }, + disabled: function() { + return !list; + }, + + // Disable .fire + // Also disable .add unless we have memory (since it would have no effect) + // Abort any pending executions + lock: function() { + locked = queue = []; + if ( !memory ) { + list = memory = ""; + } + return this; + }, + locked: function() { + return !!locked; + }, + + // Call all callbacks with the given context and arguments + fireWith: function( context, args ) { + if ( !locked ) { + args = args || []; + args = [ context, args.slice ? args.slice() : args ]; + queue.push( args ); + if ( !firing ) { + fire(); + } + } + return this; + }, + + // Call all the callbacks with the given arguments + fire: function() { + self.fireWith( this, arguments ); + return this; + }, + + // To know if the callbacks have already been called at least once + fired: function() { + return !!fired; + } + }; + + return self; +}; + + +jQuery.extend( { + + Deferred: function( func ) { + var tuples = [ + + // action, add listener, listener list, final state + [ "resolve", "done", jQuery.Callbacks( "once memory" ), "resolved" ], + [ "reject", "fail", jQuery.Callbacks( "once memory" ), "rejected" ], + [ "notify", "progress", jQuery.Callbacks( "memory" ) ] + ], + state = "pending", + promise = { + state: function() { + return state; + }, + always: function() { + deferred.done( arguments ).fail( arguments ); + return this; + }, + then: function( /* fnDone, fnFail, fnProgress */ ) { + var fns = arguments; + return jQuery.Deferred( function( newDefer ) { + jQuery.each( tuples, function( i, tuple ) { + var fn = jQuery.isFunction( fns[ i ] ) && fns[ i ]; + + // deferred[ done | fail | progress ] for forwarding actions to newDefer + deferred[ tuple[ 1 ] ]( function() { + var returned = fn && fn.apply( this, arguments ); + if ( returned && jQuery.isFunction( returned.promise ) ) { + returned.promise() + .progress( newDefer.notify ) + .done( newDefer.resolve ) + .fail( newDefer.reject ); + } else { + newDefer[ tuple[ 0 ] + "With" ]( + this === promise ? newDefer.promise() : this, + fn ? [ returned ] : arguments + ); + } + } ); + } ); + fns = null; + } ).promise(); + }, + + // Get a promise for this deferred + // If obj is provided, the promise aspect is added to the object + promise: function( obj ) { + return obj != null ? jQuery.extend( obj, promise ) : promise; + } + }, + deferred = {}; + + // Keep pipe for back-compat + promise.pipe = promise.then; + + // Add list-specific methods + jQuery.each( tuples, function( i, tuple ) { + var list = tuple[ 2 ], + stateString = tuple[ 3 ]; + + // promise[ done | fail | progress ] = list.add + promise[ tuple[ 1 ] ] = list.add; + + // Handle state + if ( stateString ) { + list.add( function() { + + // state = [ resolved | rejected ] + state = stateString; + + // [ reject_list | resolve_list ].disable; progress_list.lock + }, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock ); + } + + // deferred[ resolve | reject | notify ] + deferred[ tuple[ 0 ] ] = function() { + deferred[ tuple[ 0 ] + "With" ]( this === deferred ? promise : this, arguments ); + return this; + }; + deferred[ tuple[ 0 ] + "With" ] = list.fireWith; + } ); + + // Make the deferred a promise + promise.promise( deferred ); + + // Call given func if any + if ( func ) { + func.call( deferred, deferred ); + } + + // All done! + return deferred; + }, + + // Deferred helper + when: function( subordinate /* , ..., subordinateN */ ) { + var i = 0, + resolveValues = slice.call( arguments ), + length = resolveValues.length, + + // the count of uncompleted subordinates + remaining = length !== 1 || + ( subordinate && jQuery.isFunction( subordinate.promise ) ) ? length : 0, + + // the master Deferred. + // If resolveValues consist of only a single Deferred, just use that. + deferred = remaining === 1 ? subordinate : jQuery.Deferred(), + + // Update function for both resolve and progress values + updateFunc = function( i, contexts, values ) { + return function( value ) { + contexts[ i ] = this; + values[ i ] = arguments.length > 1 ? slice.call( arguments ) : value; + if ( values === progressValues ) { + deferred.notifyWith( contexts, values ); + } else if ( !( --remaining ) ) { + deferred.resolveWith( contexts, values ); + } + }; + }, + + progressValues, progressContexts, resolveContexts; + + // Add listeners to Deferred subordinates; treat others as resolved + if ( length > 1 ) { + progressValues = new Array( length ); + progressContexts = new Array( length ); + resolveContexts = new Array( length ); + for ( ; i < length; i++ ) { + if ( resolveValues[ i ] && jQuery.isFunction( resolveValues[ i ].promise ) ) { + resolveValues[ i ].promise() + .progress( updateFunc( i, progressContexts, progressValues ) ) + .done( updateFunc( i, resolveContexts, resolveValues ) ) + .fail( deferred.reject ); + } else { + --remaining; + } + } + } + + // If we're not waiting on anything, resolve the master + if ( !remaining ) { + deferred.resolveWith( resolveContexts, resolveValues ); + } + + return deferred.promise(); + } +} ); + + +// The deferred used on DOM ready +var readyList; + +jQuery.fn.ready = function( fn ) { + + // Add the callback + jQuery.ready.promise().done( fn ); + + return this; +}; + +jQuery.extend( { + + // Is the DOM ready to be used? Set to true once it occurs. + isReady: false, + + // A counter to track how many items to wait for before + // the ready event fires. See #6781 + readyWait: 1, + + // Hold (or release) the ready event + holdReady: function( hold ) { + if ( hold ) { + jQuery.readyWait++; + } else { + jQuery.ready( true ); + } + }, + + // Handle when the DOM is ready + ready: function( wait ) { + + // Abort if there are pending holds or we're already ready + if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) { + return; + } + + // Remember that the DOM is ready + jQuery.isReady = true; + + // If a normal DOM Ready event fired, decrement, and wait if need be + if ( wait !== true && --jQuery.readyWait > 0 ) { + return; + } + + // If there are functions bound, to execute + readyList.resolveWith( document, [ jQuery ] ); + + // Trigger any bound ready events + if ( jQuery.fn.triggerHandler ) { + jQuery( document ).triggerHandler( "ready" ); + jQuery( document ).off( "ready" ); + } + } +} ); + +/** + * The ready event handler and self cleanup method + */ +function completed() { + document.removeEventListener( "DOMContentLoaded", completed ); + window.removeEventListener( "load", completed ); + jQuery.ready(); +} + +jQuery.ready.promise = function( obj ) { + if ( !readyList ) { + + readyList = jQuery.Deferred(); + + // Catch cases where $(document).ready() is called + // after the browser event has already occurred. + // Support: IE9-10 only + // Older IE sometimes signals "interactive" too soon + if ( document.readyState === "complete" || + ( document.readyState !== "loading" && !document.documentElement.doScroll ) ) { + + // Handle it asynchronously to allow scripts the opportunity to delay ready + window.setTimeout( jQuery.ready ); + + } else { + + // Use the handy event callback + document.addEventListener( "DOMContentLoaded", completed ); + + // A fallback to window.onload, that will always work + window.addEventListener( "load", completed ); + } + } + return readyList.promise( obj ); +}; + +// Kick off the DOM ready check even if the user does not +jQuery.ready.promise(); + + + + +// Multifunctional method to get and set values of a collection +// The value/s can optionally be executed if it's a function +var access = function( elems, fn, key, value, chainable, emptyGet, raw ) { + var i = 0, + len = elems.length, + bulk = key == null; + + // Sets many values + if ( jQuery.type( key ) === "object" ) { + chainable = true; + for ( i in key ) { + access( elems, fn, i, key[ i ], true, emptyGet, raw ); + } + + // Sets one value + } else if ( value !== undefined ) { + chainable = true; + + if ( !jQuery.isFunction( value ) ) { + raw = true; + } + + if ( bulk ) { + + // Bulk operations run against the entire set + if ( raw ) { + fn.call( elems, value ); + fn = null; + + // ...except when executing function values + } else { + bulk = fn; + fn = function( elem, key, value ) { + return bulk.call( jQuery( elem ), value ); + }; + } + } + + if ( fn ) { + for ( ; i < len; i++ ) { + fn( + elems[ i ], key, raw ? + value : + value.call( elems[ i ], i, fn( elems[ i ], key ) ) + ); + } + } + } + + return chainable ? + elems : + + // Gets + bulk ? + fn.call( elems ) : + len ? fn( elems[ 0 ], key ) : emptyGet; +}; +var acceptData = function( owner ) { + + // Accepts only: + // - Node + // - Node.ELEMENT_NODE + // - Node.DOCUMENT_NODE + // - Object + // - Any + /* jshint -W018 */ + return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType ); +}; + + + + +function Data() { + this.expando = jQuery.expando + Data.uid++; +} + +Data.uid = 1; + +Data.prototype = { + + register: function( owner, initial ) { + var value = initial || {}; + + // If it is a node unlikely to be stringify-ed or looped over + // use plain assignment + if ( owner.nodeType ) { + owner[ this.expando ] = value; + + // Otherwise secure it in a non-enumerable, non-writable property + // configurability must be true to allow the property to be + // deleted with the delete operator + } else { + Object.defineProperty( owner, this.expando, { + value: value, + writable: true, + configurable: true + } ); + } + return owner[ this.expando ]; + }, + cache: function( owner ) { + + // We can accept data for non-element nodes in modern browsers, + // but we should not, see #8335. + // Always return an empty object. + if ( !acceptData( owner ) ) { + return {}; + } + + // Check if the owner object already has a cache + var value = owner[ this.expando ]; + + // If not, create one + if ( !value ) { + value = {}; + + // We can accept data for non-element nodes in modern browsers, + // but we should not, see #8335. + // Always return an empty object. + if ( acceptData( owner ) ) { + + // If it is a node unlikely to be stringify-ed or looped over + // use plain assignment + if ( owner.nodeType ) { + owner[ this.expando ] = value; + + // Otherwise secure it in a non-enumerable property + // configurable must be true to allow the property to be + // deleted when data is removed + } else { + Object.defineProperty( owner, this.expando, { + value: value, + configurable: true + } ); + } + } + } + + return value; + }, + set: function( owner, data, value ) { + var prop, + cache = this.cache( owner ); + + // Handle: [ owner, key, value ] args + if ( typeof data === "string" ) { + cache[ data ] = value; + + // Handle: [ owner, { properties } ] args + } else { + + // Copy the properties one-by-one to the cache object + for ( prop in data ) { + cache[ prop ] = data[ prop ]; + } + } + return cache; + }, + get: function( owner, key ) { + return key === undefined ? + this.cache( owner ) : + owner[ this.expando ] && owner[ this.expando ][ key ]; + }, + access: function( owner, key, value ) { + var stored; + + // In cases where either: + // + // 1. No key was specified + // 2. A string key was specified, but no value provided + // + // Take the "read" path and allow the get method to determine + // which value to return, respectively either: + // + // 1. The entire cache object + // 2. The data stored at the key + // + if ( key === undefined || + ( ( key && typeof key === "string" ) && value === undefined ) ) { + + stored = this.get( owner, key ); + + return stored !== undefined ? + stored : this.get( owner, jQuery.camelCase( key ) ); + } + + // When the key is not a string, or both a key and value + // are specified, set or extend (existing objects) with either: + // + // 1. An object of properties + // 2. A key and value + // + this.set( owner, key, value ); + + // Since the "set" path can have two possible entry points + // return the expected data based on which path was taken[*] + return value !== undefined ? value : key; + }, + remove: function( owner, key ) { + var i, name, camel, + cache = owner[ this.expando ]; + + if ( cache === undefined ) { + return; + } + + if ( key === undefined ) { + this.register( owner ); + + } else { + + // Support array or space separated string of keys + if ( jQuery.isArray( key ) ) { + + // If "name" is an array of keys... + // When data is initially created, via ("key", "val") signature, + // keys will be converted to camelCase. + // Since there is no way to tell _how_ a key was added, remove + // both plain key and camelCase key. #12786 + // This will only penalize the array argument path. + name = key.concat( key.map( jQuery.camelCase ) ); + } else { + camel = jQuery.camelCase( key ); + + // Try the string as a key before any manipulation + if ( key in cache ) { + name = [ key, camel ]; + } else { + + // If a key with the spaces exists, use it. + // Otherwise, create an array by matching non-whitespace + name = camel; + name = name in cache ? + [ name ] : ( name.match( rnotwhite ) || [] ); + } + } + + i = name.length; + + while ( i-- ) { + delete cache[ name[ i ] ]; + } + } + + // Remove the expando if there's no more data + if ( key === undefined || jQuery.isEmptyObject( cache ) ) { + + // Support: Chrome <= 35-45+ + // Webkit & Blink performance suffers when deleting properties + // from DOM nodes, so set to undefined instead + // https://code.google.com/p/chromium/issues/detail?id=378607 + if ( owner.nodeType ) { + owner[ this.expando ] = undefined; + } else { + delete owner[ this.expando ]; + } + } + }, + hasData: function( owner ) { + var cache = owner[ this.expando ]; + return cache !== undefined && !jQuery.isEmptyObject( cache ); + } +}; +var dataPriv = new Data(); + +var dataUser = new Data(); + + + +// Implementation Summary +// +// 1. Enforce API surface and semantic compatibility with 1.9.x branch +// 2. Improve the module's maintainability by reducing the storage +// paths to a single mechanism. +// 3. Use the same single mechanism to support "private" and "user" data. +// 4. _Never_ expose "private" data to user code (TODO: Drop _data, _removeData) +// 5. Avoid exposing implementation details on user objects (eg. expando properties) +// 6. Provide a clear path for implementation upgrade to WeakMap in 2014 + +var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, + rmultiDash = /[A-Z]/g; + +function dataAttr( elem, key, data ) { + var name; + + // If nothing was found internally, try to fetch any + // data from the HTML5 data-* attribute + if ( data === undefined && elem.nodeType === 1 ) { + name = "data-" + key.replace( rmultiDash, "-$&" ).toLowerCase(); + data = elem.getAttribute( name ); + + if ( typeof data === "string" ) { + try { + data = data === "true" ? true : + data === "false" ? false : + data === "null" ? null : + + // Only convert to a number if it doesn't change the string + +data + "" === data ? +data : + rbrace.test( data ) ? jQuery.parseJSON( data ) : + data; + } catch ( e ) {} + + // Make sure we set the data so it isn't changed later + dataUser.set( elem, key, data ); + } else { + data = undefined; + } + } + return data; +} + +jQuery.extend( { + hasData: function( elem ) { + return dataUser.hasData( elem ) || dataPriv.hasData( elem ); + }, + + data: function( elem, name, data ) { + return dataUser.access( elem, name, data ); + }, + + removeData: function( elem, name ) { + dataUser.remove( elem, name ); + }, + + // TODO: Now that all calls to _data and _removeData have been replaced + // with direct calls to dataPriv methods, these can be deprecated. + _data: function( elem, name, data ) { + return dataPriv.access( elem, name, data ); + }, + + _removeData: function( elem, name ) { + dataPriv.remove( elem, name ); + } +} ); + +jQuery.fn.extend( { + data: function( key, value ) { + var i, name, data, + elem = this[ 0 ], + attrs = elem && elem.attributes; + + // Gets all values + if ( key === undefined ) { + if ( this.length ) { + data = dataUser.get( elem ); + + if ( elem.nodeType === 1 && !dataPriv.get( elem, "hasDataAttrs" ) ) { + i = attrs.length; + while ( i-- ) { + + // Support: IE11+ + // The attrs elements can be null (#14894) + if ( attrs[ i ] ) { + name = attrs[ i ].name; + if ( name.indexOf( "data-" ) === 0 ) { + name = jQuery.camelCase( name.slice( 5 ) ); + dataAttr( elem, name, data[ name ] ); + } + } + } + dataPriv.set( elem, "hasDataAttrs", true ); + } + } + + return data; + } + + // Sets multiple values + if ( typeof key === "object" ) { + return this.each( function() { + dataUser.set( this, key ); + } ); + } + + return access( this, function( value ) { + var data, camelKey; + + // The calling jQuery object (element matches) is not empty + // (and therefore has an element appears at this[ 0 ]) and the + // `value` parameter was not undefined. An empty jQuery object + // will result in `undefined` for elem = this[ 0 ] which will + // throw an exception if an attempt to read a data cache is made. + if ( elem && value === undefined ) { + + // Attempt to get data from the cache + // with the key as-is + data = dataUser.get( elem, key ) || + + // Try to find dashed key if it exists (gh-2779) + // This is for 2.2.x only + dataUser.get( elem, key.replace( rmultiDash, "-$&" ).toLowerCase() ); + + if ( data !== undefined ) { + return data; + } + + camelKey = jQuery.camelCase( key ); + + // Attempt to get data from the cache + // with the key camelized + data = dataUser.get( elem, camelKey ); + if ( data !== undefined ) { + return data; + } + + // Attempt to "discover" the data in + // HTML5 custom data-* attrs + data = dataAttr( elem, camelKey, undefined ); + if ( data !== undefined ) { + return data; + } + + // We tried really hard, but the data doesn't exist. + return; + } + + // Set the data... + camelKey = jQuery.camelCase( key ); + this.each( function() { + + // First, attempt to store a copy or reference of any + // data that might've been store with a camelCased key. + var data = dataUser.get( this, camelKey ); + + // For HTML5 data-* attribute interop, we have to + // store property names with dashes in a camelCase form. + // This might not apply to all properties...* + dataUser.set( this, camelKey, value ); + + // *... In the case of properties that might _actually_ + // have dashes, we need to also store a copy of that + // unchanged property. + if ( key.indexOf( "-" ) > -1 && data !== undefined ) { + dataUser.set( this, key, value ); + } + } ); + }, null, value, arguments.length > 1, null, true ); + }, + + removeData: function( key ) { + return this.each( function() { + dataUser.remove( this, key ); + } ); + } +} ); + + +jQuery.extend( { + queue: function( elem, type, data ) { + var queue; + + if ( elem ) { + type = ( type || "fx" ) + "queue"; + queue = dataPriv.get( elem, type ); + + // Speed up dequeue by getting out quickly if this is just a lookup + if ( data ) { + if ( !queue || jQuery.isArray( data ) ) { + queue = dataPriv.access( elem, type, jQuery.makeArray( data ) ); + } else { + queue.push( data ); + } + } + return queue || []; + } + }, + + dequeue: function( elem, type ) { + type = type || "fx"; + + var queue = jQuery.queue( elem, type ), + startLength = queue.length, + fn = queue.shift(), + hooks = jQuery._queueHooks( elem, type ), + next = function() { + jQuery.dequeue( elem, type ); + }; + + // If the fx queue is dequeued, always remove the progress sentinel + if ( fn === "inprogress" ) { + fn = queue.shift(); + startLength--; + } + + if ( fn ) { + + // Add a progress sentinel to prevent the fx queue from being + // automatically dequeued + if ( type === "fx" ) { + queue.unshift( "inprogress" ); + } + + // Clear up the last queue stop function + delete hooks.stop; + fn.call( elem, next, hooks ); + } + + if ( !startLength && hooks ) { + hooks.empty.fire(); + } + }, + + // Not public - generate a queueHooks object, or return the current one + _queueHooks: function( elem, type ) { + var key = type + "queueHooks"; + return dataPriv.get( elem, key ) || dataPriv.access( elem, key, { + empty: jQuery.Callbacks( "once memory" ).add( function() { + dataPriv.remove( elem, [ type + "queue", key ] ); + } ) + } ); + } +} ); + +jQuery.fn.extend( { + queue: function( type, data ) { + var setter = 2; + + if ( typeof type !== "string" ) { + data = type; + type = "fx"; + setter--; + } + + if ( arguments.length < setter ) { + return jQuery.queue( this[ 0 ], type ); + } + + return data === undefined ? + this : + this.each( function() { + var queue = jQuery.queue( this, type, data ); + + // Ensure a hooks for this queue + jQuery._queueHooks( this, type ); + + if ( type === "fx" && queue[ 0 ] !== "inprogress" ) { + jQuery.dequeue( this, type ); + } + } ); + }, + dequeue: function( type ) { + return this.each( function() { + jQuery.dequeue( this, type ); + } ); + }, + clearQueue: function( type ) { + return this.queue( type || "fx", [] ); + }, + + // Get a promise resolved when queues of a certain type + // are emptied (fx is the type by default) + promise: function( type, obj ) { + var tmp, + count = 1, + defer = jQuery.Deferred(), + elements = this, + i = this.length, + resolve = function() { + if ( !( --count ) ) { + defer.resolveWith( elements, [ elements ] ); + } + }; + + if ( typeof type !== "string" ) { + obj = type; + type = undefined; + } + type = type || "fx"; + + while ( i-- ) { + tmp = dataPriv.get( elements[ i ], type + "queueHooks" ); + if ( tmp && tmp.empty ) { + count++; + tmp.empty.add( resolve ); + } + } + resolve(); + return defer.promise( obj ); + } +} ); +var pnum = ( /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ ).source; + +var rcssNum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" ); + + +var cssExpand = [ "Top", "Right", "Bottom", "Left" ]; + +var isHidden = function( elem, el ) { + + // isHidden might be called from jQuery#filter function; + // in that case, element will be second argument + elem = el || elem; + return jQuery.css( elem, "display" ) === "none" || + !jQuery.contains( elem.ownerDocument, elem ); + }; + + + +function adjustCSS( elem, prop, valueParts, tween ) { + var adjusted, + scale = 1, + maxIterations = 20, + currentValue = tween ? + function() { return tween.cur(); } : + function() { return jQuery.css( elem, prop, "" ); }, + initial = currentValue(), + unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ), + + // Starting value computation is required for potential unit mismatches + initialInUnit = ( jQuery.cssNumber[ prop ] || unit !== "px" && +initial ) && + rcssNum.exec( jQuery.css( elem, prop ) ); + + if ( initialInUnit && initialInUnit[ 3 ] !== unit ) { + + // Trust units reported by jQuery.css + unit = unit || initialInUnit[ 3 ]; + + // Make sure we update the tween properties later on + valueParts = valueParts || []; + + // Iteratively approximate from a nonzero starting point + initialInUnit = +initial || 1; + + do { + + // If previous iteration zeroed out, double until we get *something*. + // Use string for doubling so we don't accidentally see scale as unchanged below + scale = scale || ".5"; + + // Adjust and apply + initialInUnit = initialInUnit / scale; + jQuery.style( elem, prop, initialInUnit + unit ); + + // Update scale, tolerating zero or NaN from tween.cur() + // Break the loop if scale is unchanged or perfect, or if we've just had enough. + } while ( + scale !== ( scale = currentValue() / initial ) && scale !== 1 && --maxIterations + ); + } + + if ( valueParts ) { + initialInUnit = +initialInUnit || +initial || 0; + + // Apply relative offset (+=/-=) if specified + adjusted = valueParts[ 1 ] ? + initialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] : + +valueParts[ 2 ]; + if ( tween ) { + tween.unit = unit; + tween.start = initialInUnit; + tween.end = adjusted; + } + } + return adjusted; +} +var rcheckableType = ( /^(?:checkbox|radio)$/i ); + +var rtagName = ( /<([\w:-]+)/ ); + +var rscriptType = ( /^$|\/(?:java|ecma)script/i ); + + + +// We have to close these tags to support XHTML (#13200) +var wrapMap = { + + // Support: IE9 + option: [ 1, "" ], + + // XHTML parsers do not magically insert elements in the + // same way that tag soup parsers do. So we cannot shorten + // this by omitting or other required elements. + thead: [ 1, "", "
            " ], + col: [ 2, "", "
            " ], + tr: [ 2, "", "
            " ], + td: [ 3, "", "
            " ], + + _default: [ 0, "", "" ] +}; + +// Support: IE9 +wrapMap.optgroup = wrapMap.option; + +wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; +wrapMap.th = wrapMap.td; + + +function getAll( context, tag ) { + + // Support: IE9-11+ + // Use typeof to avoid zero-argument method invocation on host objects (#15151) + var ret = typeof context.getElementsByTagName !== "undefined" ? + context.getElementsByTagName( tag || "*" ) : + typeof context.querySelectorAll !== "undefined" ? + context.querySelectorAll( tag || "*" ) : + []; + + return tag === undefined || tag && jQuery.nodeName( context, tag ) ? + jQuery.merge( [ context ], ret ) : + ret; +} + + +// Mark scripts as having already been evaluated +function setGlobalEval( elems, refElements ) { + var i = 0, + l = elems.length; + + for ( ; i < l; i++ ) { + dataPriv.set( + elems[ i ], + "globalEval", + !refElements || dataPriv.get( refElements[ i ], "globalEval" ) + ); + } +} + + +var rhtml = /<|&#?\w+;/; + +function buildFragment( elems, context, scripts, selection, ignored ) { + var elem, tmp, tag, wrap, contains, j, + fragment = context.createDocumentFragment(), + nodes = [], + i = 0, + l = elems.length; + + for ( ; i < l; i++ ) { + elem = elems[ i ]; + + if ( elem || elem === 0 ) { + + // Add nodes directly + if ( jQuery.type( elem ) === "object" ) { + + // Support: Android<4.1, PhantomJS<2 + // push.apply(_, arraylike) throws on ancient WebKit + jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem ); + + // Convert non-html into a text node + } else if ( !rhtml.test( elem ) ) { + nodes.push( context.createTextNode( elem ) ); + + // Convert html into DOM nodes + } else { + tmp = tmp || fragment.appendChild( context.createElement( "div" ) ); + + // Deserialize a standard representation + tag = ( rtagName.exec( elem ) || [ "", "" ] )[ 1 ].toLowerCase(); + wrap = wrapMap[ tag ] || wrapMap._default; + tmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ]; + + // Descend through wrappers to the right content + j = wrap[ 0 ]; + while ( j-- ) { + tmp = tmp.lastChild; + } + + // Support: Android<4.1, PhantomJS<2 + // push.apply(_, arraylike) throws on ancient WebKit + jQuery.merge( nodes, tmp.childNodes ); + + // Remember the top-level container + tmp = fragment.firstChild; + + // Ensure the created nodes are orphaned (#12392) + tmp.textContent = ""; + } + } + } + + // Remove wrapper from fragment + fragment.textContent = ""; + + i = 0; + while ( ( elem = nodes[ i++ ] ) ) { + + // Skip elements already in the context collection (trac-4087) + if ( selection && jQuery.inArray( elem, selection ) > -1 ) { + if ( ignored ) { + ignored.push( elem ); + } + continue; + } + + contains = jQuery.contains( elem.ownerDocument, elem ); + + // Append to fragment + tmp = getAll( fragment.appendChild( elem ), "script" ); + + // Preserve script evaluation history + if ( contains ) { + setGlobalEval( tmp ); + } + + // Capture executables + if ( scripts ) { + j = 0; + while ( ( elem = tmp[ j++ ] ) ) { + if ( rscriptType.test( elem.type || "" ) ) { + scripts.push( elem ); + } + } + } + } + + return fragment; +} + + +( function() { + var fragment = document.createDocumentFragment(), + div = fragment.appendChild( document.createElement( "div" ) ), + input = document.createElement( "input" ); + + // Support: Android 4.0-4.3, Safari<=5.1 + // Check state lost if the name is set (#11217) + // Support: Windows Web Apps (WWA) + // `name` and `type` must use .setAttribute for WWA (#14901) + input.setAttribute( "type", "radio" ); + input.setAttribute( "checked", "checked" ); + input.setAttribute( "name", "t" ); + + div.appendChild( input ); + + // Support: Safari<=5.1, Android<4.2 + // Older WebKit doesn't clone checked state correctly in fragments + support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked; + + // Support: IE<=11+ + // Make sure textarea (and checkbox) defaultValue is properly cloned + div.innerHTML = ""; + support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue; +} )(); + + +var + rkeyEvent = /^key/, + rmouseEvent = /^(?:mouse|pointer|contextmenu|drag|drop)|click/, + rtypenamespace = /^([^.]*)(?:\.(.+)|)/; + +function returnTrue() { + return true; +} + +function returnFalse() { + return false; +} + +// Support: IE9 +// See #13393 for more info +function safeActiveElement() { + try { + return document.activeElement; + } catch ( err ) { } +} + +function on( elem, types, selector, data, fn, one ) { + var origFn, type; + + // Types can be a map of types/handlers + if ( typeof types === "object" ) { + + // ( types-Object, selector, data ) + if ( typeof selector !== "string" ) { + + // ( types-Object, data ) + data = data || selector; + selector = undefined; + } + for ( type in types ) { + on( elem, type, selector, data, types[ type ], one ); + } + return elem; + } + + if ( data == null && fn == null ) { + + // ( types, fn ) + fn = selector; + data = selector = undefined; + } else if ( fn == null ) { + if ( typeof selector === "string" ) { + + // ( types, selector, fn ) + fn = data; + data = undefined; + } else { + + // ( types, data, fn ) + fn = data; + data = selector; + selector = undefined; + } + } + if ( fn === false ) { + fn = returnFalse; + } else if ( !fn ) { + return this; + } + + if ( one === 1 ) { + origFn = fn; + fn = function( event ) { + + // Can use an empty set, since event contains the info + jQuery().off( event ); + return origFn.apply( this, arguments ); + }; + + // Use same guid so caller can remove using origFn + fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ ); + } + return elem.each( function() { + jQuery.event.add( this, types, fn, data, selector ); + } ); +} + +/* + * Helper functions for managing events -- not part of the public interface. + * Props to Dean Edwards' addEvent library for many of the ideas. + */ +jQuery.event = { + + global: {}, + + add: function( elem, types, handler, data, selector ) { + + var handleObjIn, eventHandle, tmp, + events, t, handleObj, + special, handlers, type, namespaces, origType, + elemData = dataPriv.get( elem ); + + // Don't attach events to noData or text/comment nodes (but allow plain objects) + if ( !elemData ) { + return; + } + + // Caller can pass in an object of custom data in lieu of the handler + if ( handler.handler ) { + handleObjIn = handler; + handler = handleObjIn.handler; + selector = handleObjIn.selector; + } + + // Make sure that the handler has a unique ID, used to find/remove it later + if ( !handler.guid ) { + handler.guid = jQuery.guid++; + } + + // Init the element's event structure and main handler, if this is the first + if ( !( events = elemData.events ) ) { + events = elemData.events = {}; + } + if ( !( eventHandle = elemData.handle ) ) { + eventHandle = elemData.handle = function( e ) { + + // Discard the second event of a jQuery.event.trigger() and + // when an event is called after a page has unloaded + return typeof jQuery !== "undefined" && jQuery.event.triggered !== e.type ? + jQuery.event.dispatch.apply( elem, arguments ) : undefined; + }; + } + + // Handle multiple events separated by a space + types = ( types || "" ).match( rnotwhite ) || [ "" ]; + t = types.length; + while ( t-- ) { + tmp = rtypenamespace.exec( types[ t ] ) || []; + type = origType = tmp[ 1 ]; + namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort(); + + // There *must* be a type, no attaching namespace-only handlers + if ( !type ) { + continue; + } + + // If event changes its type, use the special event handlers for the changed type + special = jQuery.event.special[ type ] || {}; + + // If selector defined, determine special event api type, otherwise given type + type = ( selector ? special.delegateType : special.bindType ) || type; + + // Update special based on newly reset type + special = jQuery.event.special[ type ] || {}; + + // handleObj is passed to all event handlers + handleObj = jQuery.extend( { + type: type, + origType: origType, + data: data, + handler: handler, + guid: handler.guid, + selector: selector, + needsContext: selector && jQuery.expr.match.needsContext.test( selector ), + namespace: namespaces.join( "." ) + }, handleObjIn ); + + // Init the event handler queue if we're the first + if ( !( handlers = events[ type ] ) ) { + handlers = events[ type ] = []; + handlers.delegateCount = 0; + + // Only use addEventListener if the special events handler returns false + if ( !special.setup || + special.setup.call( elem, data, namespaces, eventHandle ) === false ) { + + if ( elem.addEventListener ) { + elem.addEventListener( type, eventHandle ); + } + } + } + + if ( special.add ) { + special.add.call( elem, handleObj ); + + if ( !handleObj.handler.guid ) { + handleObj.handler.guid = handler.guid; + } + } + + // Add to the element's handler list, delegates in front + if ( selector ) { + handlers.splice( handlers.delegateCount++, 0, handleObj ); + } else { + handlers.push( handleObj ); + } + + // Keep track of which events have ever been used, for event optimization + jQuery.event.global[ type ] = true; + } + + }, + + // Detach an event or set of events from an element + remove: function( elem, types, handler, selector, mappedTypes ) { + + var j, origCount, tmp, + events, t, handleObj, + special, handlers, type, namespaces, origType, + elemData = dataPriv.hasData( elem ) && dataPriv.get( elem ); + + if ( !elemData || !( events = elemData.events ) ) { + return; + } + + // Once for each type.namespace in types; type may be omitted + types = ( types || "" ).match( rnotwhite ) || [ "" ]; + t = types.length; + while ( t-- ) { + tmp = rtypenamespace.exec( types[ t ] ) || []; + type = origType = tmp[ 1 ]; + namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort(); + + // Unbind all events (on this namespace, if provided) for the element + if ( !type ) { + for ( type in events ) { + jQuery.event.remove( elem, type + types[ t ], handler, selector, true ); + } + continue; + } + + special = jQuery.event.special[ type ] || {}; + type = ( selector ? special.delegateType : special.bindType ) || type; + handlers = events[ type ] || []; + tmp = tmp[ 2 ] && + new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ); + + // Remove matching events + origCount = j = handlers.length; + while ( j-- ) { + handleObj = handlers[ j ]; + + if ( ( mappedTypes || origType === handleObj.origType ) && + ( !handler || handler.guid === handleObj.guid ) && + ( !tmp || tmp.test( handleObj.namespace ) ) && + ( !selector || selector === handleObj.selector || + selector === "**" && handleObj.selector ) ) { + handlers.splice( j, 1 ); + + if ( handleObj.selector ) { + handlers.delegateCount--; + } + if ( special.remove ) { + special.remove.call( elem, handleObj ); + } + } + } + + // Remove generic event handler if we removed something and no more handlers exist + // (avoids potential for endless recursion during removal of special event handlers) + if ( origCount && !handlers.length ) { + if ( !special.teardown || + special.teardown.call( elem, namespaces, elemData.handle ) === false ) { + + jQuery.removeEvent( elem, type, elemData.handle ); + } + + delete events[ type ]; + } + } + + // Remove data and the expando if it's no longer used + if ( jQuery.isEmptyObject( events ) ) { + dataPriv.remove( elem, "handle events" ); + } + }, + + dispatch: function( event ) { + + // Make a writable jQuery.Event from the native event object + event = jQuery.event.fix( event ); + + var i, j, ret, matched, handleObj, + handlerQueue = [], + args = slice.call( arguments ), + handlers = ( dataPriv.get( this, "events" ) || {} )[ event.type ] || [], + special = jQuery.event.special[ event.type ] || {}; + + // Use the fix-ed jQuery.Event rather than the (read-only) native event + args[ 0 ] = event; + event.delegateTarget = this; + + // Call the preDispatch hook for the mapped type, and let it bail if desired + if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) { + return; + } + + // Determine handlers + handlerQueue = jQuery.event.handlers.call( this, event, handlers ); + + // Run delegates first; they may want to stop propagation beneath us + i = 0; + while ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) { + event.currentTarget = matched.elem; + + j = 0; + while ( ( handleObj = matched.handlers[ j++ ] ) && + !event.isImmediatePropagationStopped() ) { + + // Triggered event must either 1) have no namespace, or 2) have namespace(s) + // a subset or equal to those in the bound event (both can have no namespace). + if ( !event.rnamespace || event.rnamespace.test( handleObj.namespace ) ) { + + event.handleObj = handleObj; + event.data = handleObj.data; + + ret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle || + handleObj.handler ).apply( matched.elem, args ); + + if ( ret !== undefined ) { + if ( ( event.result = ret ) === false ) { + event.preventDefault(); + event.stopPropagation(); + } + } + } + } + } + + // Call the postDispatch hook for the mapped type + if ( special.postDispatch ) { + special.postDispatch.call( this, event ); + } + + return event.result; + }, + + handlers: function( event, handlers ) { + var i, matches, sel, handleObj, + handlerQueue = [], + delegateCount = handlers.delegateCount, + cur = event.target; + + // Support (at least): Chrome, IE9 + // Find delegate handlers + // Black-hole SVG instance trees (#13180) + // + // Support: Firefox<=42+ + // Avoid non-left-click in FF but don't block IE radio events (#3861, gh-2343) + if ( delegateCount && cur.nodeType && + ( event.type !== "click" || isNaN( event.button ) || event.button < 1 ) ) { + + for ( ; cur !== this; cur = cur.parentNode || this ) { + + // Don't check non-elements (#13208) + // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764) + if ( cur.nodeType === 1 && ( cur.disabled !== true || event.type !== "click" ) ) { + matches = []; + for ( i = 0; i < delegateCount; i++ ) { + handleObj = handlers[ i ]; + + // Don't conflict with Object.prototype properties (#13203) + sel = handleObj.selector + " "; + + if ( matches[ sel ] === undefined ) { + matches[ sel ] = handleObj.needsContext ? + jQuery( sel, this ).index( cur ) > -1 : + jQuery.find( sel, this, null, [ cur ] ).length; + } + if ( matches[ sel ] ) { + matches.push( handleObj ); + } + } + if ( matches.length ) { + handlerQueue.push( { elem: cur, handlers: matches } ); + } + } + } + } + + // Add the remaining (directly-bound) handlers + if ( delegateCount < handlers.length ) { + handlerQueue.push( { elem: this, handlers: handlers.slice( delegateCount ) } ); + } + + return handlerQueue; + }, + + // Includes some event props shared by KeyEvent and MouseEvent + props: ( "altKey bubbles cancelable ctrlKey currentTarget detail eventPhase " + + "metaKey relatedTarget shiftKey target timeStamp view which" ).split( " " ), + + fixHooks: {}, + + keyHooks: { + props: "char charCode key keyCode".split( " " ), + filter: function( event, original ) { + + // Add which for key events + if ( event.which == null ) { + event.which = original.charCode != null ? original.charCode : original.keyCode; + } + + return event; + } + }, + + mouseHooks: { + props: ( "button buttons clientX clientY offsetX offsetY pageX pageY " + + "screenX screenY toElement" ).split( " " ), + filter: function( event, original ) { + var eventDoc, doc, body, + button = original.button; + + // Calculate pageX/Y if missing and clientX/Y available + if ( event.pageX == null && original.clientX != null ) { + eventDoc = event.target.ownerDocument || document; + doc = eventDoc.documentElement; + body = eventDoc.body; + + event.pageX = original.clientX + + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - + ( doc && doc.clientLeft || body && body.clientLeft || 0 ); + event.pageY = original.clientY + + ( doc && doc.scrollTop || body && body.scrollTop || 0 ) - + ( doc && doc.clientTop || body && body.clientTop || 0 ); + } + + // Add which for click: 1 === left; 2 === middle; 3 === right + // Note: button is not normalized, so don't use it + if ( !event.which && button !== undefined ) { + event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) ); + } + + return event; + } + }, + + fix: function( event ) { + if ( event[ jQuery.expando ] ) { + return event; + } + + // Create a writable copy of the event object and normalize some properties + var i, prop, copy, + type = event.type, + originalEvent = event, + fixHook = this.fixHooks[ type ]; + + if ( !fixHook ) { + this.fixHooks[ type ] = fixHook = + rmouseEvent.test( type ) ? this.mouseHooks : + rkeyEvent.test( type ) ? this.keyHooks : + {}; + } + copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props; + + event = new jQuery.Event( originalEvent ); + + i = copy.length; + while ( i-- ) { + prop = copy[ i ]; + event[ prop ] = originalEvent[ prop ]; + } + + // Support: Cordova 2.5 (WebKit) (#13255) + // All events should have a target; Cordova deviceready doesn't + if ( !event.target ) { + event.target = document; + } + + // Support: Safari 6.0+, Chrome<28 + // Target should not be a text node (#504, #13143) + if ( event.target.nodeType === 3 ) { + event.target = event.target.parentNode; + } + + return fixHook.filter ? fixHook.filter( event, originalEvent ) : event; + }, + + special: { + load: { + + // Prevent triggered image.load events from bubbling to window.load + noBubble: true + }, + focus: { + + // Fire native event if possible so blur/focus sequence is correct + trigger: function() { + if ( this !== safeActiveElement() && this.focus ) { + this.focus(); + return false; + } + }, + delegateType: "focusin" + }, + blur: { + trigger: function() { + if ( this === safeActiveElement() && this.blur ) { + this.blur(); + return false; + } + }, + delegateType: "focusout" + }, + click: { + + // For checkbox, fire native event so checked state will be right + trigger: function() { + if ( this.type === "checkbox" && this.click && jQuery.nodeName( this, "input" ) ) { + this.click(); + return false; + } + }, + + // For cross-browser consistency, don't fire native .click() on links + _default: function( event ) { + return jQuery.nodeName( event.target, "a" ); + } + }, + + beforeunload: { + postDispatch: function( event ) { + + // Support: Firefox 20+ + // Firefox doesn't alert if the returnValue field is not set. + if ( event.result !== undefined && event.originalEvent ) { + event.originalEvent.returnValue = event.result; + } + } + } + } +}; + +jQuery.removeEvent = function( elem, type, handle ) { + + // This "if" is needed for plain objects + if ( elem.removeEventListener ) { + elem.removeEventListener( type, handle ); + } +}; + +jQuery.Event = function( src, props ) { + + // Allow instantiation without the 'new' keyword + if ( !( this instanceof jQuery.Event ) ) { + return new jQuery.Event( src, props ); + } + + // Event object + if ( src && src.type ) { + this.originalEvent = src; + this.type = src.type; + + // Events bubbling up the document may have been marked as prevented + // by a handler lower down the tree; reflect the correct value. + this.isDefaultPrevented = src.defaultPrevented || + src.defaultPrevented === undefined && + + // Support: Android<4.0 + src.returnValue === false ? + returnTrue : + returnFalse; + + // Event type + } else { + this.type = src; + } + + // Put explicitly provided properties onto the event object + if ( props ) { + jQuery.extend( this, props ); + } + + // Create a timestamp if incoming event doesn't have one + this.timeStamp = src && src.timeStamp || jQuery.now(); + + // Mark it as fixed + this[ jQuery.expando ] = true; +}; + +// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding +// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html +jQuery.Event.prototype = { + constructor: jQuery.Event, + isDefaultPrevented: returnFalse, + isPropagationStopped: returnFalse, + isImmediatePropagationStopped: returnFalse, + + preventDefault: function() { + var e = this.originalEvent; + + this.isDefaultPrevented = returnTrue; + + if ( e ) { + e.preventDefault(); + } + }, + stopPropagation: function() { + var e = this.originalEvent; + + this.isPropagationStopped = returnTrue; + + if ( e ) { + e.stopPropagation(); + } + }, + stopImmediatePropagation: function() { + var e = this.originalEvent; + + this.isImmediatePropagationStopped = returnTrue; + + if ( e ) { + e.stopImmediatePropagation(); + } + + this.stopPropagation(); + } +}; + +// Create mouseenter/leave events using mouseover/out and event-time checks +// so that event delegation works in jQuery. +// Do the same for pointerenter/pointerleave and pointerover/pointerout +// +// Support: Safari 7 only +// Safari sends mouseenter too often; see: +// https://code.google.com/p/chromium/issues/detail?id=470258 +// for the description of the bug (it existed in older Chrome versions as well). +jQuery.each( { + mouseenter: "mouseover", + mouseleave: "mouseout", + pointerenter: "pointerover", + pointerleave: "pointerout" +}, function( orig, fix ) { + jQuery.event.special[ orig ] = { + delegateType: fix, + bindType: fix, + + handle: function( event ) { + var ret, + target = this, + related = event.relatedTarget, + handleObj = event.handleObj; + + // For mouseenter/leave call the handler if related is outside the target. + // NB: No relatedTarget if the mouse left/entered the browser window + if ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) { + event.type = handleObj.origType; + ret = handleObj.handler.apply( this, arguments ); + event.type = fix; + } + return ret; + } + }; +} ); + +jQuery.fn.extend( { + on: function( types, selector, data, fn ) { + return on( this, types, selector, data, fn ); + }, + one: function( types, selector, data, fn ) { + return on( this, types, selector, data, fn, 1 ); + }, + off: function( types, selector, fn ) { + var handleObj, type; + if ( types && types.preventDefault && types.handleObj ) { + + // ( event ) dispatched jQuery.Event + handleObj = types.handleObj; + jQuery( types.delegateTarget ).off( + handleObj.namespace ? + handleObj.origType + "." + handleObj.namespace : + handleObj.origType, + handleObj.selector, + handleObj.handler + ); + return this; + } + if ( typeof types === "object" ) { + + // ( types-object [, selector] ) + for ( type in types ) { + this.off( type, selector, types[ type ] ); + } + return this; + } + if ( selector === false || typeof selector === "function" ) { + + // ( types [, fn] ) + fn = selector; + selector = undefined; + } + if ( fn === false ) { + fn = returnFalse; + } + return this.each( function() { + jQuery.event.remove( this, types, fn, selector ); + } ); + } +} ); + + +var + rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi, + + // Support: IE 10-11, Edge 10240+ + // In IE/Edge using regex groups here causes severe slowdowns. + // See https://connect.microsoft.com/IE/feedback/details/1736512/ + rnoInnerhtml = /\s*$/g; + +function manipulationTarget( elem, content ) { + if ( jQuery.nodeName( elem, "table" ) && + jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) { + + return elem.getElementsByTagName( "tbody" )[ 0 ] || elem; + } + + return elem; +} + +// Replace/restore the type attribute of script elements for safe DOM manipulation +function disableScript( elem ) { + elem.type = ( elem.getAttribute( "type" ) !== null ) + "/" + elem.type; + return elem; +} +function restoreScript( elem ) { + var match = rscriptTypeMasked.exec( elem.type ); + + if ( match ) { + elem.type = match[ 1 ]; + } else { + elem.removeAttribute( "type" ); + } + + return elem; +} + +function cloneCopyEvent( src, dest ) { + var i, l, type, pdataOld, pdataCur, udataOld, udataCur, events; + + if ( dest.nodeType !== 1 ) { + return; + } + + // 1. Copy private data: events, handlers, etc. + if ( dataPriv.hasData( src ) ) { + pdataOld = dataPriv.access( src ); + pdataCur = dataPriv.set( dest, pdataOld ); + events = pdataOld.events; + + if ( events ) { + delete pdataCur.handle; + pdataCur.events = {}; + + for ( type in events ) { + for ( i = 0, l = events[ type ].length; i < l; i++ ) { + jQuery.event.add( dest, type, events[ type ][ i ] ); + } + } + } + } + + // 2. Copy user data + if ( dataUser.hasData( src ) ) { + udataOld = dataUser.access( src ); + udataCur = jQuery.extend( {}, udataOld ); + + dataUser.set( dest, udataCur ); + } +} + +// Fix IE bugs, see support tests +function fixInput( src, dest ) { + var nodeName = dest.nodeName.toLowerCase(); + + // Fails to persist the checked state of a cloned checkbox or radio button. + if ( nodeName === "input" && rcheckableType.test( src.type ) ) { + dest.checked = src.checked; + + // Fails to return the selected option to the default selected state when cloning options + } else if ( nodeName === "input" || nodeName === "textarea" ) { + dest.defaultValue = src.defaultValue; + } +} + +function domManip( collection, args, callback, ignored ) { + + // Flatten any nested arrays + args = concat.apply( [], args ); + + var fragment, first, scripts, hasScripts, node, doc, + i = 0, + l = collection.length, + iNoClone = l - 1, + value = args[ 0 ], + isFunction = jQuery.isFunction( value ); + + // We can't cloneNode fragments that contain checked, in WebKit + if ( isFunction || + ( l > 1 && typeof value === "string" && + !support.checkClone && rchecked.test( value ) ) ) { + return collection.each( function( index ) { + var self = collection.eq( index ); + if ( isFunction ) { + args[ 0 ] = value.call( this, index, self.html() ); + } + domManip( self, args, callback, ignored ); + } ); + } + + if ( l ) { + fragment = buildFragment( args, collection[ 0 ].ownerDocument, false, collection, ignored ); + first = fragment.firstChild; + + if ( fragment.childNodes.length === 1 ) { + fragment = first; + } + + // Require either new content or an interest in ignored elements to invoke the callback + if ( first || ignored ) { + scripts = jQuery.map( getAll( fragment, "script" ), disableScript ); + hasScripts = scripts.length; + + // Use the original fragment for the last item + // instead of the first because it can end up + // being emptied incorrectly in certain situations (#8070). + for ( ; i < l; i++ ) { + node = fragment; + + if ( i !== iNoClone ) { + node = jQuery.clone( node, true, true ); + + // Keep references to cloned scripts for later restoration + if ( hasScripts ) { + + // Support: Android<4.1, PhantomJS<2 + // push.apply(_, arraylike) throws on ancient WebKit + jQuery.merge( scripts, getAll( node, "script" ) ); + } + } + + callback.call( collection[ i ], node, i ); + } + + if ( hasScripts ) { + doc = scripts[ scripts.length - 1 ].ownerDocument; + + // Reenable scripts + jQuery.map( scripts, restoreScript ); + + // Evaluate executable scripts on first document insertion + for ( i = 0; i < hasScripts; i++ ) { + node = scripts[ i ]; + if ( rscriptType.test( node.type || "" ) && + !dataPriv.access( node, "globalEval" ) && + jQuery.contains( doc, node ) ) { + + if ( node.src ) { + + // Optional AJAX dependency, but won't run scripts if not present + if ( jQuery._evalUrl ) { + jQuery._evalUrl( node.src ); + } + } else { + jQuery.globalEval( node.textContent.replace( rcleanScript, "" ) ); + } + } + } + } + } + } + + return collection; +} + +function remove( elem, selector, keepData ) { + var node, + nodes = selector ? jQuery.filter( selector, elem ) : elem, + i = 0; + + for ( ; ( node = nodes[ i ] ) != null; i++ ) { + if ( !keepData && node.nodeType === 1 ) { + jQuery.cleanData( getAll( node ) ); + } + + if ( node.parentNode ) { + if ( keepData && jQuery.contains( node.ownerDocument, node ) ) { + setGlobalEval( getAll( node, "script" ) ); + } + node.parentNode.removeChild( node ); + } + } + + return elem; +} + +jQuery.extend( { + htmlPrefilter: function( html ) { + return html.replace( rxhtmlTag, "<$1>" ); + }, + + clone: function( elem, dataAndEvents, deepDataAndEvents ) { + var i, l, srcElements, destElements, + clone = elem.cloneNode( true ), + inPage = jQuery.contains( elem.ownerDocument, elem ); + + // Fix IE cloning issues + if ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) && + !jQuery.isXMLDoc( elem ) ) { + + // We eschew Sizzle here for performance reasons: http://jsperf.com/getall-vs-sizzle/2 + destElements = getAll( clone ); + srcElements = getAll( elem ); + + for ( i = 0, l = srcElements.length; i < l; i++ ) { + fixInput( srcElements[ i ], destElements[ i ] ); + } + } + + // Copy the events from the original to the clone + if ( dataAndEvents ) { + if ( deepDataAndEvents ) { + srcElements = srcElements || getAll( elem ); + destElements = destElements || getAll( clone ); + + for ( i = 0, l = srcElements.length; i < l; i++ ) { + cloneCopyEvent( srcElements[ i ], destElements[ i ] ); + } + } else { + cloneCopyEvent( elem, clone ); + } + } + + // Preserve script evaluation history + destElements = getAll( clone, "script" ); + if ( destElements.length > 0 ) { + setGlobalEval( destElements, !inPage && getAll( elem, "script" ) ); + } + + // Return the cloned set + return clone; + }, + + cleanData: function( elems ) { + var data, elem, type, + special = jQuery.event.special, + i = 0; + + for ( ; ( elem = elems[ i ] ) !== undefined; i++ ) { + if ( acceptData( elem ) ) { + if ( ( data = elem[ dataPriv.expando ] ) ) { + if ( data.events ) { + for ( type in data.events ) { + if ( special[ type ] ) { + jQuery.event.remove( elem, type ); + + // This is a shortcut to avoid jQuery.event.remove's overhead + } else { + jQuery.removeEvent( elem, type, data.handle ); + } + } + } + + // Support: Chrome <= 35-45+ + // Assign undefined instead of using delete, see Data#remove + elem[ dataPriv.expando ] = undefined; + } + if ( elem[ dataUser.expando ] ) { + + // Support: Chrome <= 35-45+ + // Assign undefined instead of using delete, see Data#remove + elem[ dataUser.expando ] = undefined; + } + } + } + } +} ); + +jQuery.fn.extend( { + + // Keep domManip exposed until 3.0 (gh-2225) + domManip: domManip, + + detach: function( selector ) { + return remove( this, selector, true ); + }, + + remove: function( selector ) { + return remove( this, selector ); + }, + + text: function( value ) { + return access( this, function( value ) { + return value === undefined ? + jQuery.text( this ) : + this.empty().each( function() { + if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { + this.textContent = value; + } + } ); + }, null, value, arguments.length ); + }, + + append: function() { + return domManip( this, arguments, function( elem ) { + if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { + var target = manipulationTarget( this, elem ); + target.appendChild( elem ); + } + } ); + }, + + prepend: function() { + return domManip( this, arguments, function( elem ) { + if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { + var target = manipulationTarget( this, elem ); + target.insertBefore( elem, target.firstChild ); + } + } ); + }, + + before: function() { + return domManip( this, arguments, function( elem ) { + if ( this.parentNode ) { + this.parentNode.insertBefore( elem, this ); + } + } ); + }, + + after: function() { + return domManip( this, arguments, function( elem ) { + if ( this.parentNode ) { + this.parentNode.insertBefore( elem, this.nextSibling ); + } + } ); + }, + + empty: function() { + var elem, + i = 0; + + for ( ; ( elem = this[ i ] ) != null; i++ ) { + if ( elem.nodeType === 1 ) { + + // Prevent memory leaks + jQuery.cleanData( getAll( elem, false ) ); + + // Remove any remaining nodes + elem.textContent = ""; + } + } + + return this; + }, + + clone: function( dataAndEvents, deepDataAndEvents ) { + dataAndEvents = dataAndEvents == null ? false : dataAndEvents; + deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents; + + return this.map( function() { + return jQuery.clone( this, dataAndEvents, deepDataAndEvents ); + } ); + }, + + html: function( value ) { + return access( this, function( value ) { + var elem = this[ 0 ] || {}, + i = 0, + l = this.length; + + if ( value === undefined && elem.nodeType === 1 ) { + return elem.innerHTML; + } + + // See if we can take a shortcut and just use innerHTML + if ( typeof value === "string" && !rnoInnerhtml.test( value ) && + !wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) { + + value = jQuery.htmlPrefilter( value ); + + try { + for ( ; i < l; i++ ) { + elem = this[ i ] || {}; + + // Remove element nodes and prevent memory leaks + if ( elem.nodeType === 1 ) { + jQuery.cleanData( getAll( elem, false ) ); + elem.innerHTML = value; + } + } + + elem = 0; + + // If using innerHTML throws an exception, use the fallback method + } catch ( e ) {} + } + + if ( elem ) { + this.empty().append( value ); + } + }, null, value, arguments.length ); + }, + + replaceWith: function() { + var ignored = []; + + // Make the changes, replacing each non-ignored context element with the new content + return domManip( this, arguments, function( elem ) { + var parent = this.parentNode; + + if ( jQuery.inArray( this, ignored ) < 0 ) { + jQuery.cleanData( getAll( this ) ); + if ( parent ) { + parent.replaceChild( elem, this ); + } + } + + // Force callback invocation + }, ignored ); + } +} ); + +jQuery.each( { + appendTo: "append", + prependTo: "prepend", + insertBefore: "before", + insertAfter: "after", + replaceAll: "replaceWith" +}, function( name, original ) { + jQuery.fn[ name ] = function( selector ) { + var elems, + ret = [], + insert = jQuery( selector ), + last = insert.length - 1, + i = 0; + + for ( ; i <= last; i++ ) { + elems = i === last ? this : this.clone( true ); + jQuery( insert[ i ] )[ original ]( elems ); + + // Support: QtWebKit + // .get() because push.apply(_, arraylike) throws + push.apply( ret, elems.get() ); + } + + return this.pushStack( ret ); + }; +} ); + + +var iframe, + elemdisplay = { + + // Support: Firefox + // We have to pre-define these values for FF (#10227) + HTML: "block", + BODY: "block" + }; + +/** + * Retrieve the actual display of a element + * @param {String} name nodeName of the element + * @param {Object} doc Document object + */ + +// Called only from within defaultDisplay +function actualDisplay( name, doc ) { + var elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ), + + display = jQuery.css( elem[ 0 ], "display" ); + + // We don't have any data stored on the element, + // so use "detach" method as fast way to get rid of the element + elem.detach(); + + return display; +} + +/** + * Try to determine the default display value of an element + * @param {String} nodeName + */ +function defaultDisplay( nodeName ) { + var doc = document, + display = elemdisplay[ nodeName ]; + + if ( !display ) { + display = actualDisplay( nodeName, doc ); + + // If the simple way fails, read from inside an iframe + if ( display === "none" || !display ) { + + // Use the already-created iframe if possible + iframe = ( iframe || jQuery( "