diff --git a/assets/scripts/aldine.js b/assets/scripts/aldine.js
index 556f6dd..6089204 100644
--- a/assets/scripts/aldine.js
+++ b/assets/scripts/aldine.js
@@ -1,6 +1,3 @@
-// import external dependencies
-import 'jquery';
-
// import local dependencies
import Router from './util/Router';
import common from './routes/common';
diff --git a/assets/scripts/routes/catalog.js b/assets/scripts/routes/catalog.js
index 71ab471..6cf86a0 100644
--- a/assets/scripts/routes/catalog.js
+++ b/assets/scripts/routes/catalog.js
@@ -4,108 +4,110 @@ const Isotope = require( 'isotope-layout' );
export default {
init() {
// JavaScript to be fired on the catalog page
- jQueryBridget( 'isotope', Isotope, $ );
- let $grid = $( '.books' );
- $grid.isotope( {
- itemSelector: '.book',
- getSortData: {
- title: '.title a',
- subject: '[data-subject]',
- latest: '[data-date-published]',
- },
- sortAscending: {
- title: true,
- subject: true,
- latest: false,
- },
- } );
- $( '.filters > a' ).click( e => {
- e.preventDefault();
- $( '.filters' ).toggleClass( 'is-active' );
- $( '.filter-groups > div' ).removeClass( 'is-active' );
- } );
- $( '.filter-groups .subjects > a' ).click( e => {
- e.preventDefault();
- let id = $( e.currentTarget ).attr( 'href' );
- $( `.filter-groups .subjects:not(${id})` ).removeClass( 'is-active' );
- $( `.filter-groups ${id}` ).toggleClass( 'is-active' );
- } );
- $( '.licenses > a' ).click( e => {
- e.preventDefault();
- let id = $( e.currentTarget ).attr( 'href' );
- $( id ).toggleClass( 'is-active' );
- } );
- $( '.subjects .filter-list a' ).click( e => {
- e.preventDefault();
- if ( $( e.currentTarget ).hasClass( 'is-active' ) ) {
- $( '.subjects .filter-list a' ).removeClass( 'is-active' );
- $( '.subjects' ).removeClass( 'has-active-child' );
- } else {
- $( '.subjects .filter-list a' ).removeClass( 'is-active' );
+ jQuery( $ => {
+ jQueryBridget( 'isotope', Isotope, $ );
+ let $grid = $( '.books' );
+ $grid.isotope( {
+ itemSelector: '.book',
+ getSortData: {
+ title: '.title a',
+ subject: '[data-subject]',
+ latest: '[data-date-published]',
+ },
+ sortAscending: {
+ title: true,
+ subject: true,
+ latest: false,
+ },
+ } );
+ $( '.filters > a' ).click( e => {
+ e.preventDefault();
+ $( '.filters' ).toggleClass( 'is-active' );
+ $( '.filter-groups > div' ).removeClass( 'is-active' );
+ } );
+ $( '.filter-groups .subjects > a' ).click( e => {
+ e.preventDefault();
+ let id = $( e.currentTarget ).attr( 'href' );
+ $( `.filter-groups .subjects:not(${id})` ).removeClass( 'is-active' );
+ $( `.filter-groups ${id}` ).toggleClass( 'is-active' );
+ } );
+ $( '.licenses > a' ).click( e => {
+ e.preventDefault();
+ let id = $( e.currentTarget ).attr( 'href' );
+ $( id ).toggleClass( 'is-active' );
+ } );
+ $( '.subjects .filter-list a' ).click( e => {
+ e.preventDefault();
+ if ( $( e.currentTarget ).hasClass( 'is-active' ) ) {
+ $( '.subjects .filter-list a' ).removeClass( 'is-active' );
+ $( '.subjects' ).removeClass( 'has-active-child' );
+ } else {
+ $( '.subjects .filter-list a' ).removeClass( 'is-active' );
+ $( e.currentTarget ).addClass( 'is-active' );
+ $( '.subjects' ).removeClass( 'has-active-child' );
+ $( e.currentTarget )
+ .parent()
+ .parent()
+ .parent( '.subjects' )
+ .addClass( 'has-active-child' );
+ }
+ let subjectValue = $( '.subjects .filter-list a.is-active' ).attr(
+ 'data-filter'
+ );
+ let licenseValue = $( '.licenses .filter-list a.is-active' ).attr(
+ 'data-filter'
+ );
+ if ( typeof licenseValue === 'undefined' ) {
+ licenseValue = '';
+ } else {
+ licenseValue = `[data-license="${licenseValue}"]`;
+ }
+ if ( typeof subjectValue === 'undefined' ) {
+ subjectValue = '';
+ } else {
+ subjectValue = `[data-subject="${subjectValue}"]`;
+ }
+ $grid.isotope( { filter: `${subjectValue}${licenseValue}` } );
+ } );
+ $( '.licenses .filter-list a' ).click( e => {
+ e.preventDefault();
+ if ( $( e.currentTarget ).hasClass( 'is-active' ) ) {
+ $( '.licenses .filter-list a' ).removeClass( 'is-active' );
+ $( '.licenses' ).removeClass( 'has-active-child' );
+ } else {
+ $( '.licenses .filter-list a' ).removeClass( 'is-active' );
+ $( e.currentTarget ).addClass( 'is-active' );
+ $( '.licenses' ).addClass( 'has-active-child' );
+ }
+ let subjectValue = $( '.subjects .filter-list a.is-active' ).attr(
+ 'data-filter'
+ );
+ let licenseValue = $( '.licenses .filter-list a.is-active' ).attr(
+ 'data-filter'
+ );
+ if ( typeof licenseValue === 'undefined' ) {
+ licenseValue = '';
+ } else {
+ licenseValue = `[data-license="${licenseValue}"]`;
+ }
+ if ( typeof subjectValue === 'undefined' ) {
+ subjectValue = '';
+ } else {
+ subjectValue = `[data-subject="${subjectValue}"]`;
+ }
+ $grid.isotope( { filter: `${subjectValue}${licenseValue}` } );
+ } );
+ $( '.sort > a' ).click( e => {
+ e.preventDefault();
+ $( '.sort' ).toggleClass( 'is-active' );
+ } );
+ $( '.sorts a' ).click( e => {
+ e.preventDefault();
+ let sortBy = $( e.currentTarget ).attr( 'data-sort' );
+ $( '.sorts a' ).removeClass( 'is-active' );
$( e.currentTarget ).addClass( 'is-active' );
- $( '.subjects' ).removeClass( 'has-active-child' );
- $( e.currentTarget )
- .parent()
- .parent()
- .parent( '.subjects' )
- .addClass( 'has-active-child' );
- }
- let subjectValue = $( '.subjects .filter-list a.is-active' ).attr(
- 'data-filter'
- );
- let licenseValue = $( '.licenses .filter-list a.is-active' ).attr(
- 'data-filter'
- );
- if ( typeof licenseValue === 'undefined' ) {
- licenseValue = '';
- } else {
- licenseValue = `[data-license="${licenseValue}"]`;
- }
- if ( typeof subjectValue === 'undefined' ) {
- subjectValue = '';
- } else {
- subjectValue = `[data-subject="${subjectValue}"]`;
- }
- $grid.isotope( { filter: `${subjectValue}${licenseValue}` } );
- } );
- $( '.licenses .filter-list a' ).click( e => {
- e.preventDefault();
- if ( $( e.currentTarget ).hasClass( 'is-active' ) ) {
- $( '.licenses .filter-list a' ).removeClass( 'is-active' );
- $( '.licenses' ).removeClass( 'has-active-child' );
- } else {
- $( '.licenses .filter-list a' ).removeClass( 'is-active' );
- $( e.currentTarget ).addClass( 'is-active' );
- $( '.licenses' ).addClass( 'has-active-child' );
- }
- let subjectValue = $( '.subjects .filter-list a.is-active' ).attr(
- 'data-filter'
- );
- let licenseValue = $( '.licenses .filter-list a.is-active' ).attr(
- 'data-filter'
- );
- if ( typeof licenseValue === 'undefined' ) {
- licenseValue = '';
- } else {
- licenseValue = `[data-license="${licenseValue}"]`;
- }
- if ( typeof subjectValue === 'undefined' ) {
- subjectValue = '';
- } else {
- subjectValue = `[data-subject="${subjectValue}"]`;
- }
- $grid.isotope( { filter: `${subjectValue}${licenseValue}` } );
- } );
- $( '.sort > a' ).click( e => {
- e.preventDefault();
- $( '.sort' ).toggleClass( 'is-active' );
- } );
- $( '.sorts a' ).click( e => {
- e.preventDefault();
- let sortBy = $( e.currentTarget ).attr( 'data-sort' );
- $( '.sorts a' ).removeClass( 'is-active' );
- $( e.currentTarget ).addClass( 'is-active' );
- $grid.isotope( { sortBy: sortBy } );
+ $grid.isotope( { sortBy: sortBy } );
+ } );
} );
},
finalize() {},
diff --git a/assets/scripts/routes/common.js b/assets/scripts/routes/common.js
index ff28237..02e3634 100644
--- a/assets/scripts/routes/common.js
+++ b/assets/scripts/routes/common.js
@@ -3,66 +3,73 @@ import * as Cookies from 'js-cookie';
export default {
init() {
// JavaScript to be fired on all pages
- $( 'body' )
- .removeClass( 'no-js' )
- .addClass( 'js' );
- $( document ).ready( function () {
- // Fontsize handler
- if ( Cookies.get( 'a11y-larger-fontsize' ) === '1' ) {
- $( 'html' ).addClass( 'fontsize' );
- $( '#is_normal_fontsize' )
- .attr( 'id', 'is_large_fontsize' )
- .attr( 'aria-checked', true )
- .addClass( 'active' )
- .text( PB_A11y.decrease_label )
- .attr( 'title', PB_A11y.decrease_label );
- }
-
- $( '.toggle-fontsize' ).on( 'click', function () {
- if ( $( this ).attr( 'id' ) === 'is_normal_fontsize' ) {
+ jQuery( $ => {
+ $( 'body' )
+ .removeClass( 'no-js' )
+ .addClass( 'js' );
+ $( document ).ready( function () {
+ // Fontsize handler
+ if ( Cookies.get( 'a11y-larger-fontsize' ) === '1' ) {
$( 'html' ).addClass( 'fontsize' );
- $( this )
+ $( '#is_normal_fontsize' )
.attr( 'id', 'is_large_fontsize' )
.attr( 'aria-checked', true )
.addClass( 'active' )
.text( PB_A11y.decrease_label )
.attr( 'title', PB_A11y.decrease_label );
- Cookies.set( 'a11y-larger-fontsize', '1', { expires: 365, path: '' } );
- return false;
- } else {
- $( 'html' ).removeClass( 'fontsize' );
- $( this )
- .attr( 'id', 'is_normal_fontsize' )
- .removeAttr( 'aria-checked' )
- .removeClass( 'active' )
- .text( PB_A11y.increase_label )
- .attr( 'title', PB_A11y.increase_label );
- Cookies.set( 'a11y-larger-fontsize', '0', { expires: 365, path: '' } );
- return false;
}
- } );
- // Sets a -1 tabindex to ALL sections for .focus()-ing
- let sections = document.getElementsByTagName( 'section' );
- for ( let i = 0, max = sections.length; i < max; i++ ) {
- sections[i].setAttribute( 'tabindex', -1 );
- sections[i].className += ' focusable';
- }
+ $( '.toggle-fontsize' ).on( 'click', function () {
+ if ( $( this ).attr( 'id' ) === 'is_normal_fontsize' ) {
+ $( 'html' ).addClass( 'fontsize' );
+ $( this )
+ .attr( 'id', 'is_large_fontsize' )
+ .attr( 'aria-checked', true )
+ .addClass( 'active' )
+ .text( PB_A11y.decrease_label )
+ .attr( 'title', PB_A11y.decrease_label );
+ Cookies.set( 'a11y-larger-fontsize', '1', {
+ expires: 365,
+ path: '',
+ } );
+ return false;
+ } else {
+ $( 'html' ).removeClass( 'fontsize' );
+ $( this )
+ .attr( 'id', 'is_normal_fontsize' )
+ .removeAttr( 'aria-checked' )
+ .removeClass( 'active' )
+ .text( PB_A11y.increase_label )
+ .attr( 'title', PB_A11y.increase_label );
+ Cookies.set( 'a11y-larger-fontsize', '0', {
+ expires: 365,
+ path: '',
+ } );
+ return false;
+ }
+ } );
- // If there is a '#' in the URL (someone linking directly to a page with an anchor), go directly to that area and focus is
- // Thanks to WebAIM.org for this idea
- if ( document.location.hash && document.location.hash !== '#' ) {
- let anchorUponArrival = document.location.hash;
- setTimeout( function () {
- $( anchorUponArrival ).scrollTo( { duration: 1500 } );
- $( anchorUponArrival ).focus();
- }, 100 );
- }
- } );
- $( '.js-header-menu-toggle' ).click( event => {
- event.preventDefault();
- $( event.currentTarget ).toggleClass( '--active' );
- $( '.js-header-nav' ).toggleClass( '--visible' );
+ // Sets a -1 tabindex to ALL sections for .focus()-ing
+ let sections = document.getElementsByTagName( 'section' );
+ for ( let i = 0, max = sections.length; i < max; i++ ) {
+ sections[i].setAttribute( 'tabindex', -1 );
+ sections[i].className += ' focusable';
+ }
+
+ // If there is a '#' in the URL (someone linking directly to a page with an anchor), go directly to that area and focus is
+ // Thanks to WebAIM.org for this idea
+ if ( document.location.hash && document.location.hash !== '#' ) {
+ let anchorUponArrival = document.location.hash;
+ setTimeout( function () {
+ $( anchorUponArrival ).scrollTo( { duration: 1500 } );
+ $( anchorUponArrival ).focus();
+ }, 100 );
+ }
+ } );
+ $( '.js-header-nav-toggle' ).click( event => {
+ event.preventDefault();
+ $( '.header__nav' ).toggleClass( 'header__nav--active' );
+ } );
} );
},
finalize() {
diff --git a/assets/scripts/util/Router.js b/assets/scripts/util/Router.js
index 372594e..0e4281e 100644
--- a/assets/scripts/util/Router.js
+++ b/assets/scripts/util/Router.js
@@ -9,55 +9,57 @@ import camelCase from './camelCase';
* Add additional events for more control over timing e.g. a finalize event
*/
class Router {
+ /**
+ * Create a new Router
+ * @param {Object} routes
+ */
+ constructor( routes ) {
+ this.routes = routes;
+ }
- /**
- * Create a new Router
- * @param {Object} routes
- */
- constructor(routes) {
- this.routes = routes;
- }
+ /**
+ * Fire Router events
+ * @param {string} route DOM-based route derived from body classes (`
`)
+ * @param {string} [event] Events on the route. By default, `init` and `finalize` events are called.
+ * @param {string} [arg] Any custom argument to be passed to the event.
+ */
+ fire( route, event = 'init', arg ) {
+ const fire =
+ route !== '' &&
+ this.routes[route] &&
+ typeof this.routes[route][event] === 'function';
+ if ( fire ) {
+ this.routes[route][event]( arg );
+ }
+ }
- /**
- * Fire Router events
- * @param {string} route DOM-based route derived from body classes (``)
- * @param {string} [event] Events on the route. By default, `init` and `finalize` events are called.
- * @param {string} [arg] Any custom argument to be passed to the event.
- */
- fire(route, event = 'init', arg) {
- const fire = route !== '' && this.routes[route] && typeof this.routes[route][event] === 'function';
- if (fire) {
- this.routes[route][event](arg);
- }
- }
+ /**
+ * Automatically load and fire Router events
+ *
+ * Events are fired in the following order:
+ * * common init
+ * * page-specific init
+ * * page-specific finalize
+ * * common finalize
+ */
+ loadEvents() {
+ // Fire common init JS
+ this.fire( 'common' );
- /**
- * Automatically load and fire Router events
- *
- * Events are fired in the following order:
- * * common init
- * * page-specific init
- * * page-specific finalize
- * * common finalize
- */
- loadEvents() {
- // Fire common init JS
- this.fire('common');
+ // Fire page-specific init JS, and then finalize JS
+ document.body.className
+ .toLowerCase()
+ .replace( /-/g, '_' )
+ .split( /\s+/ )
+ .map( camelCase )
+ .forEach( className => {
+ this.fire( className );
+ this.fire( className, 'finalize' );
+ } );
- // Fire page-specific init JS, and then finalize JS
- document.body.className
- .toLowerCase()
- .replace(/-/g, '_')
- .split(/\s+/)
- .map(camelCase)
- .forEach((className) => {
- this.fire(className);
- this.fire(className, 'finalize');
- });
-
- // Fire common finalize JS
- this.fire('common', 'finalize');
- }
+ // Fire common finalize JS
+ this.fire( 'common', 'finalize' );
+ }
}
-export default Router
+export default Router;
diff --git a/assets/scripts/util/camelCase.js b/assets/scripts/util/camelCase.js
index 17ea591..8a32289 100644
--- a/assets/scripts/util/camelCase.js
+++ b/assets/scripts/util/camelCase.js
@@ -3,7 +3,10 @@
* @param {string} str String that isn't camel-case, e.g., CAMeL_CaSEiS-harD
* @return {string} String converted to camel-case, e.g., camelCaseIsHard
*/
-export default str => `${str.charAt(0).toLowerCase()}${str.replace(/[\W_]/g, '|').split('|')
- .map(part => `${part.charAt(0).toUpperCase()}${part.slice(1)}`)
- .join('')
- .slice(1)}`;
+export default str =>
+ `${str.charAt( 0 ).toLowerCase()}${str
+ .replace( /[\W_]/g, '|' )
+ .split( '|' )
+ .map( part => `${part.charAt( 0 ).toUpperCase()}${part.slice( 1 )}` )
+ .join( '' )
+ .slice( 1 )}`;
diff --git a/assets/styles/aldine.scss b/assets/styles/aldine.scss
index 96f91ff..1ecb30f 100644
--- a/assets/styles/aldine.scss
+++ b/assets/styles/aldine.scss
@@ -14,7 +14,7 @@
// @import "components/forms";
// @import "components/grid";
// @import "components/wp-classes";
-// @import "layouts/header";
+@import "layouts/header";
// @import "layouts/sidebar";
// @import "layouts/footer";
// @import "layouts/pages";
diff --git a/assets/styles/layouts/_header.scss b/assets/styles/layouts/_header.scss
index 4ec0b36..7bb422c 100644
--- a/assets/styles/layouts/_header.scss
+++ b/assets/styles/layouts/_header.scss
@@ -1,214 +1,42 @@
-.banner {
+.home .header {
background-position: bottom;
background-size: cover;
+ height: 560px;
- .container {
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- align-items: center;
- height: 560px;
- width: 100%;
+ &__title {
+ font-family: $font-family-sans-serif;
+ font-size: 1.875rem;
+ margin-top: 3rem;
+ margin-bottom: 0;
+ text-align: center;
max-width: 100%;
- max-width: 1440px;
- }
-
- .toggle {
- display: block;
- position: absolute;
- top: 30px;
- right: 17px;
- width: 25px;
- height: 20px;
- z-index: 99;
- text-indent: -9999em;
-
- &__icon {
- display: block;
- position: absolute;
- top: 7px;
- width: 25px;
- height: 3px;
- background: var(--primary, $brand-primary);
-
- &::before,
- &::after {
- width: 25px;
- height: 3px;
- content: '';
- background: var(--primary, $brand-primary);
- }
-
- &::before {
- position: absolute;
- top: -7px;
- right: 0;
- }
-
- &::after {
- position: absolute;
- top: 7px;
- right: 0;
- }
- }
-
- &--active {
- .toggle__icon {
- background: var(--primary-fg, $white);
-
- &::before,
- &::after {
- background: var(--primary-fg, $white);
- }
- }
- }
}
- &__brand {
- display: block;
- align-self: flex-start;
- width: 6.5625rem;
- height: auto;
- margin: 30px 0 0 17px;
-
- svg,
- img {
- width: auto;
- max-width: 100%;
- height: auto;
- }
+ &__description {
+ font-family: $font-family-sans-serif;
+ font-size: 1.125rem;
+ margin-bottom: 0;
+ text-align: center;
+ max-width: 100%;
}
- &__navigation {
- display: flex;
- position: absolute;
- flex-direction: column;
- justify-content: center;
- align-items: flex-start;
- top: 0;
- width: 100%;
- height: 560px;
- margin: 0 0 0 -100%;
- padding: 0 17px;
- background: transparent;
-
- a {
- display: none;
- font-family: $font-family-sans-serif;
- font-size: rem(24);
- line-height: (80/24);
- color: var(--primary-fg, $white);
- letter-spacing: 0;
- }
-
- .sep {
- display: none;
- }
-
- &--visible {
- margin: 0;
- padding: 0 52px;
- z-index: 1;
- background: var(--primary, $brand-primary);
-
- a {
- display: block;
- width: 100%;
- border-bottom: solid 1px var(--primary-fg, $white);
+ @media #{$breakpoint-large} {
+ height: 880px;
- &:last-child {
- border-bottom: 0;
- }
- }
+ &__title {
+ font-size: 4.5rem;
}
- }
-
- &__branding {
- display: flex;
- flex-direction: column;
- justify-content: flex-start;
- align-items: center;
- height: 364px;
- text-align: center;
- p {
- font-family: $font-family-sans-serif;
+ &__description {
+ font-size: 1.875rem;
}
}
}
-.page:not(.home) .banner__branding {
- display: none;
+.page .header {
+ // TODO
}
-@media #{$breakpoint-large} {
- .banner {
- .container {
- height: 880px;
- margin: 0 auto;
- }
-
- .toggle {
- display: none;
- }
-
- &__brand {
- align-self: center;
- width: 16.5625rem;
- height: auto;
- margin-top: 40px;
- }
-
- &__navigation {
- top: 40px;
- height: 40px;
- max-width: 1440px;
- margin: 0 auto;
- flex-direction: row;
- justify-content: flex-start;
- align-items: center;
-
- a {
- display: inline-block;
- font-size: rem(18);
- color: var(--header-text, $black);
- line-height: normal;
-
- &:hover,
- &:focus {
- color: var(--primary, $brand-primary);
- }
- }
-
- &--catalog {
- margin-right: auto;
- }
-
- &--contact {
- margin: 0 1em 0 auto;
- }
-
- &--sep {
- display: inline-block;
- margin: 0 0.5em;
- }
- }
-
- &__branding {
- height: 576px;
-
- p {
- font-size: rem(30);
- letter-spacing: 0.75px;
- line-height: (40/30);
- }
- }
-
- h1 {
- margin-bottom: rem(32);
- font-size: rem(72);
- line-height: (40/72);
- letter-spacing: rem(1.8);
- }
- }
+.page.catalog .header {
+ // TODO
}
diff --git a/dist/mix-manifest.json b/dist/mix-manifest.json
index 804008a..6e32022 100644
--- a/dist/mix-manifest.json
+++ b/dist/mix-manifest.json
@@ -1,5 +1,5 @@
{
- "/scripts/aldine.js": "/scripts/aldine.js?id=f0380c51980a33b2d33c",
- "/styles/aldine.css": "/styles/aldine.css?id=405ee7591545ea8b1977",
+ "/scripts/aldine.js": "/scripts/aldine.js?id=af09fa97e83d238ec459",
+ "/styles/aldine.css": "/styles/aldine.css?id=28b42418cb02cfbe2c49",
"/scripts/customizer.js": "/scripts/customizer.js?id=f1f1f4225cba4c1b35f2"
}
\ No newline at end of file
diff --git a/dist/scripts/aldine.js b/dist/scripts/aldine.js
index 4cb7018..89a041c 100644
--- a/dist/scripts/aldine.js
+++ b/dist/scripts/aldine.js
@@ -1 +1 @@
-!function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}({"+E39":function(t,e,n){t.exports=!n("S82l")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"+Sdf":function(t,e,n){"use strict";(function(t){var i=n("lbHh");n.n(i);e.a={init:function(){t("body").removeClass("no-js").addClass("js"),t(document).ready(function(){"1"===i.get("a11y-larger-fontsize")&&(t("html").addClass("fontsize"),t("#is_normal_fontsize").attr("id","is_large_fontsize").attr("aria-checked",!0).addClass("active").text(PB_A11y.decrease_label).attr("title",PB_A11y.decrease_label)),t(".toggle-fontsize").on("click",function(){return"is_normal_fontsize"===t(this).attr("id")?(t("html").addClass("fontsize"),t(this).attr("id","is_large_fontsize").attr("aria-checked",!0).addClass("active").text(PB_A11y.decrease_label).attr("title",PB_A11y.decrease_label),i.set("a11y-larger-fontsize","1",{expires:365,path:""}),!1):(t("html").removeClass("fontsize"),t(this).attr("id","is_normal_fontsize").removeAttr("aria-checked").removeClass("active").text(PB_A11y.increase_label).attr("title",PB_A11y.increase_label),i.set("a11y-larger-fontsize","0",{expires:365,path:""}),!1)});for(var e=document.getElementsByTagName("section"),n=0,r=e.length;na||sa?1:-1)*(u?1:-1)}}return 0}}(this.sortHistory,this.options.sortAscending);this.filteredItems.sort(e)}},l._getIsSameSortBy=function(t){for(var e=0;e0&&e-1 in t)}function u(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}function c(t,e,n){return ft.isFunction(e)?ft.grep(t,function(t,i){return!!e.call(t,i,t)!==n}):e.nodeType?ft.grep(t,function(t){return t===e!==n}):"string"!=typeof e?ft.grep(t,function(t){return rt.call(e,t)>-1!==n}):wt.test(e)?ft.filter(e,t,n):(e=ft.filter(e,t),ft.grep(t,function(t){return rt.call(e,t)>-1!==n&&1===t.nodeType}))}function l(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function f(t){return t}function h(t){throw t}function p(t,e,n,i){var r;try{t&&ft.isFunction(r=t.promise)?r.call(t).done(e).fail(n):t&&ft.isFunction(r=t.then)?r.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}function d(){Z.removeEventListener("DOMContentLoaded",d),n.removeEventListener("load",d),ft.ready()}function m(){this.expando=ft.expando+m.uid++}function g(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(Ot,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:Nt.test(t)?JSON.parse(t):t)}(n)}catch(t){}At.set(t,e,n)}else n=void 0;return n}function v(t,e,n,i){var r,o=1,s=20,a=i?function(){return i.cur()}:function(){return ft.css(t,e,"")},u=a(),c=n&&n[3]||(ft.cssNumber[e]?"":"px"),l=(ft.cssNumber[e]||"px"!==c&&+u)&&Ht.exec(ft.css(t,e));if(l&&l[3]!==c){c=c||l[3],n=n||[],l=+u||1;do{l/=o=o||".5",ft.style(t,e,l+c)}while(o!==(o=a()/u)&&1!==o&&--s)}return n&&(l=+l||+u||0,r=n[1]?l+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=l,i.end=r)),r}function y(t){var e,n=t.ownerDocument,i=t.nodeName,r=Rt[i];return r||(e=n.body.appendChild(n.createElement(i)),r=ft.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),Rt[i]=r,r)}function x(t,e){for(var n,i,r=[],o=0,s=t.length;o-1)r&&r.push(o);else if(c=ft.contains(o.ownerDocument,o),s=b(f.appendChild(o),"script"),c&&w(s),n)for(l=0;o=s[l++];)Bt.test(o.type||"")&&n.push(o);return f}function T(){return!0}function _(){return!1}function E(){try{return Z.activeElement}catch(t){}}function S(t,e,n,i,r,o){var s,a;if("object"==typeof e){"string"!=typeof n&&(i=i||n,n=void 0);for(a in e)S(t,a,n,i,e[a],o);return t}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=_;else if(!r)return t;return 1===o&&(s=r,(r=function(t){return ft().off(t),s.apply(this,arguments)}).guid=s.guid||(s.guid=ft.guid++)),t.each(function(){ft.event.add(this,e,r,i,n)})}function D(t,e){return u(t,"table")&&u(11!==e.nodeType?e:e.firstChild,"tr")?ft(">tbody",t)[0]||t:t}function k(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function j(t){var e=Zt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function I(t,e){var n,i,r,o,s,a,u,c;if(1===e.nodeType){if(Lt.hasData(t)&&(o=Lt.access(t),s=Lt.set(e,o),c=o.events)){delete s.handle,s.events={};for(r in c)for(n=0,i=c[r].length;n1&&"string"==typeof d&&!lt.checkClone&&Kt.test(d))return t.each(function(r){var o=t.eq(r);m&&(e[0]=d.call(this,r,o.html())),A(o,e,n,i)});if(h&&(r=C(e,t[0].ownerDocument,!1,t,i),o=r.firstChild,1===r.childNodes.length&&(r=o),o||i)){for(u=(a=ft.map(b(r,"script"),k)).length;f=0&&nw.cacheLength&&delete t[e.shift()],t[n+" "]=i}var e=[];return t}function i(t){return t[W]=!0,t}function r(t){var e=L.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e){for(var n=t.split("|"),i=n.length;i--;)w.attrHandle[n[i]]=e}function s(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function a(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function u(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function c(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&Ct(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function l(t){return i(function(e){return e=+e,i(function(n,i){for(var r,o=t([],n.length,e),s=o.length;s--;)n[r=o[s]]&&(n[r]=!(i[r]=n[r]))})})}function f(t){return t&&void 0!==t.getElementsByTagName&&t}function h(){}function p(t){for(var e=0,n=t.length,i="";e1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function g(t,e,n,i,r){for(var o,s=[],a=0,u=t.length,c=null!=e;a-1&&(i[l]=!(a[l]=h))}}else x=g(x===a?x.splice(m,x.length):x),s?s(null,a,x,c):J.apply(a,x)})}function y(t){for(var e,n,i,r=t.length,o=w.relative[t[0].type],s=o||w.relative[" "],a=o?1:0,u=d(function(t){return t===e},s,!0),c=d(function(t){return K(e,t)>-1},s,!0),l=[function(t,n,i){var r=!o&&(i||n!==D)||((e=n).nodeType?u(t,n,i):c(t,n,i));return e=null,r}];a1&&m(l),a>1&&p(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(ot,"$1"),n,a+~]|"+tt+")"+tt+"*"),ut=new RegExp("="+tt+"*([^\\]'\"]*?)"+tt+"*\\]","g"),ct=new RegExp(it),lt=new RegExp("^"+et+"$"),ft={ID:new RegExp("^#("+et+")"),CLASS:new RegExp("^\\.("+et+")"),TAG:new RegExp("^("+et+"|[*])"),ATTR:new RegExp("^"+nt),PSEUDO:new RegExp("^"+it),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+tt+"*(even|odd|(([+-]|)(\\d*)n|)"+tt+"*(?:([+-]|)"+tt+"*(\\d+)|))"+tt+"*\\)|)","i"),bool:new RegExp("^(?:"+Z+")$","i"),needsContext:new RegExp("^"+tt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+tt+"*((?:-\\d)?\\d*)"+tt+"*\\)|)(?=[^-]|$)","i")},ht=/^(?:input|select|textarea|button)$/i,pt=/^h\d$/i,dt=/^[^{]+\{\s*\[native \w/,mt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,gt=/[+~]/,vt=new RegExp("\\\\([\\da-f]{1,6}"+tt+"?|("+tt+")|.)","ig"),yt=function(t,e,n){var i="0x"+e-65536;return i!=i||n?e:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},xt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,bt=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},wt=function(){I()},Ct=d(function(t){return!0===t.disabled&&("form"in t||"label"in t)},{dir:"parentNode",next:"legend"});try{J.apply(X=Q.call(F.childNodes),F.childNodes),X[F.childNodes.length].nodeType}catch(t){J={apply:X.length?function(t,e){V.apply(t,Q.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}b=e.support={},T=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},I=e.setDocument=function(t){var e,n,i=t?t.ownerDocument||t:F;return i!==L&&9===i.nodeType&&i.documentElement?(L=i,A=L.documentElement,N=!T(L),F!==L&&(n=L.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",wt,!1):n.attachEvent&&n.attachEvent("onunload",wt)),b.attributes=r(function(t){return t.className="i",!t.getAttribute("className")}),b.getElementsByTagName=r(function(t){return t.appendChild(L.createComment("")),!t.getElementsByTagName("*").length}),b.getElementsByClassName=dt.test(L.getElementsByClassName),b.getById=r(function(t){return A.appendChild(t).id=W,!L.getElementsByName||!L.getElementsByName(W).length}),b.getById?(w.filter.ID=function(t){var e=t.replace(vt,yt);return function(t){return t.getAttribute("id")===e}},w.find.ID=function(t,e){if(void 0!==e.getElementById&&N){var n=e.getElementById(t);return n?[n]:[]}}):(w.filter.ID=function(t){var e=t.replace(vt,yt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},w.find.ID=function(t,e){if(void 0!==e.getElementById&&N){var n,i,r,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(r=e.getElementsByName(t),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),w.find.TAG=b.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):b.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],r=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},w.find.CLASS=b.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&N)return e.getElementsByClassName(t)},z=[],O=[],(b.qsa=dt.test(L.querySelectorAll))&&(r(function(t){A.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&O.push("[*^$]="+tt+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||O.push("\\["+tt+"*(?:value|"+Z+")"),t.querySelectorAll("[id~="+W+"-]").length||O.push("~="),t.querySelectorAll(":checked").length||O.push(":checked"),t.querySelectorAll("a#"+W+"+*").length||O.push(".#.+[+~]")}),r(function(t){t.innerHTML="";var e=L.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&O.push("name"+tt+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&O.push(":enabled",":disabled"),A.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&O.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),O.push(",.*:")})),(b.matchesSelector=dt.test(H=A.matches||A.webkitMatchesSelector||A.mozMatchesSelector||A.oMatchesSelector||A.msMatchesSelector))&&r(function(t){b.disconnectedMatch=H.call(t,"*"),H.call(t,"[s!='']:x"),z.push("!=",it)}),O=O.length&&new RegExp(O.join("|")),z=z.length&&new RegExp(z.join("|")),e=dt.test(A.compareDocumentPosition),P=e||dt.test(A.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},U=e?function(t,e){if(t===e)return j=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!b.sortDetached&&e.compareDocumentPosition(t)===n?t===L||t.ownerDocument===F&&P(F,t)?-1:e===L||e.ownerDocument===F&&P(F,e)?1:k?K(k,t)-K(k,e):0:4&n?-1:1)}:function(t,e){if(t===e)return j=!0,0;var n,i=0,r=t.parentNode,o=e.parentNode,a=[t],u=[e];if(!r||!o)return t===L?-1:e===L?1:r?-1:o?1:k?K(k,t)-K(k,e):0;if(r===o)return s(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)u.unshift(n);for(;a[i]===u[i];)i++;return i?s(a[i],u[i]):a[i]===F?-1:u[i]===F?1:0},L):L},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==L&&I(t),n=n.replace(ut,"='$1']"),b.matchesSelector&&N&&!$[n+" "]&&(!z||!z.test(n))&&(!O||!O.test(n)))try{var i=H.call(t,n);if(i||b.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){}return e(n,L,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==L&&I(t),P(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==L&&I(t);var n=w.attrHandle[e.toLowerCase()],i=n&&Y.call(w.attrHandle,e.toLowerCase())?n(t,e,!N):void 0;return void 0!==i?i:b.attributes||!N?t.getAttribute(e):(i=t.getAttributeNode(e))&&i.specified?i.value:null},e.escape=function(t){return(t+"").replace(xt,bt)},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,n=[],i=0,r=0;if(j=!b.detectDuplicates,k=!b.sortStable&&t.slice(0),t.sort(U),j){for(;e=t[r++];)e===t[r]&&(i=n.push(r));for(;i--;)t.splice(n[i],1)}return k=null,t},C=e.getText=function(t){var e,n="",i=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=C(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[i++];)n+=C(e);return n},(w=e.selectors={cacheLength:50,createPseudo:i,match:ft,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(vt,yt),t[3]=(t[3]||t[4]||t[5]||"").replace(vt,yt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return ft.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&ct.test(n)&&(e=_(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(vt,yt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=q[t+" "];return e||(e=new RegExp("(^|"+tt+")"+t+"("+tt+"|$)"))&&q(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(r){var o=e.attr(r,t);return null==o?"!="===n:!n||(o+="","="===n?o===i:"!="===n?o!==i:"^="===n?i&&0===o.indexOf(i):"*="===n?i&&o.indexOf(i)>-1:"$="===n?i&&o.slice(-i.length)===i:"~="===n?(" "+o.replace(rt," ")+" ").indexOf(i)>-1:"|="===n&&(o===i||o.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,n,i,r){var o="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,u){var c,l,f,h,p,d,m=o!==s?"nextSibling":"previousSibling",g=e.parentNode,v=a&&e.nodeName.toLowerCase(),y=!u&&!a,x=!1;if(g){if(o){for(;m;){for(h=e;h=h[m];)if(a?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;d=m="only"===t&&!d&&"nextSibling"}return!0}if(d=[s?g.firstChild:g.lastChild],s&&y){for(x=(p=(c=(l=(f=(h=g)[W]||(h[W]={}))[h.uniqueID]||(f[h.uniqueID]={}))[t]||[])[0]===R&&c[1])&&c[2],h=p&&g.childNodes[p];h=++p&&h&&h[m]||(x=p=0)||d.pop();)if(1===h.nodeType&&++x&&h===e){l[t]=[R,p,x];break}}else if(y&&(x=p=(c=(l=(f=(h=e)[W]||(h[W]={}))[h.uniqueID]||(f[h.uniqueID]={}))[t]||[])[0]===R&&c[1]),!1===x)for(;(h=++p&&h&&h[m]||(x=p=0)||d.pop())&&((a?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++x||(y&&((l=(f=h[W]||(h[W]={}))[h.uniqueID]||(f[h.uniqueID]={}))[t]=[R,x]),h!==e)););return(x-=r)===i||x%i==0&&x/i>=0}}},PSEUDO:function(t,n){var r,o=w.pseudos[t]||w.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return o[W]?o(n):o.length>1?(r=[t,t,"",n],w.setFilters.hasOwnProperty(t.toLowerCase())?i(function(t,e){for(var i,r=o(t,n),s=r.length;s--;)t[i=K(t,r[s])]=!(e[i]=r[s])}):function(t){return o(t,0,r)}):o}},pseudos:{not:i(function(t){var e=[],n=[],r=E(t.replace(ot,"$1"));return r[W]?i(function(t,e,n,i){for(var o,s=r(t,null,i,[]),a=t.length;a--;)(o=s[a])&&(t[a]=!(e[a]=o))}):function(t,i,o){return e[0]=t,r(e,null,o,n),e[0]=null,!n.pop()}}),has:i(function(t){return function(n){return e(t,n).length>0}}),contains:i(function(t){return t=t.replace(vt,yt),function(e){return(e.textContent||e.innerText||C(e)).indexOf(t)>-1}}),lang:i(function(t){return lt.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(vt,yt).toLowerCase(),function(e){var n;do{if(n=N?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===A},focus:function(t){return t===L.activeElement&&(!L.hasFocus||L.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:c(!1),disabled:c(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!w.pseudos.empty(t)},header:function(t){return pt.test(t.nodeName)},input:function(t){return ht.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:l(function(){return[0]}),last:l(function(t,e){return[e-1]}),eq:l(function(t,e,n){return[n<0?n+e:n]}),even:l(function(t,e){for(var n=0;n=0;)t.push(i);return t}),gt:l(function(t,e,n){for(var i=n<0?n+e:n;++i0,o=t.length>0,s=function(i,s,a,u,c){var l,f,h,p=0,d="0",m=i&&[],v=[],y=D,x=i||o&&w.find.TAG("*",c),b=R+=null==y?1:Math.random()||.1,C=x.length;for(c&&(D=s===L||s||c);d!==C&&null!=(l=x[d]);d++){if(o&&l){for(f=0,s||l.ownerDocument===L||(I(l),a=!N);h=t[f++];)if(h(l,s||L,a)){u.push(l);break}c&&(R=b)}r&&((l=!h&&l)&&p--,i&&m.push(l))}if(p+=d,r&&d!==p){for(f=0;h=n[f++];)h(m,v,s,a);if(i){if(p>0)for(;d--;)m[d]||v[d]||(v[d]=G.call(u));v=g(v)}J.apply(u,v),c&&!i&&v.length>0&&p+n.length>1&&e.uniqueSort(u)}return c&&(R=b,D=y),m};return r?i(s):s}(s,o))).selector=t}return a},S=e.select=function(t,e,n,i){var r,o,s,a,u,c="function"==typeof t&&t,l=!i&&_(t=c.selector||t);if(n=n||[],1===l.length){if((o=l[0]=l[0].slice(0)).length>2&&"ID"===(s=o[0]).type&&9===e.nodeType&&N&&w.relative[o[1].type]){if(!(e=(w.find.ID(s.matches[0].replace(vt,yt),e)||[])[0]))return n;c&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(r=ft.needsContext.test(t)?0:o.length;r--&&(s=o[r],!w.relative[a=s.type]);)if((u=w.find[a])&&(i=u(s.matches[0].replace(vt,yt),gt.test(o[0].type)&&f(e.parentNode)||e))){if(o.splice(r,1),!(t=i.length&&p(o)))return J.apply(n,i),n;break}}return(c||E(t,l))(i,e,!N,n,!e||gt.test(t)&&f(e.parentNode)||e),n},b.sortStable=W.split("").sort(U).join("")===W,b.detectDuplicates=!!j,I(),b.sortDetached=r(function(t){return 1&t.compareDocumentPosition(L.createElement("fieldset"))}),r(function(t){return t.innerHTML="","#"===t.firstChild.getAttribute("href")})||o("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),b.attributes&&r(function(t){return t.innerHTML="",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||o("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),r(function(t){return null==t.getAttribute("disabled")})||o(Z,function(t,e,n){var i;if(!n)return!0===t[e]?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),e}(n);ft.find=gt,ft.expr=gt.selectors,ft.expr[":"]=ft.expr.pseudos,ft.uniqueSort=ft.unique=gt.uniqueSort,ft.text=gt.getText,ft.isXMLDoc=gt.isXML,ft.contains=gt.contains,ft.escapeSelector=gt.escape;var vt=function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&ft(t).is(n))break;i.push(t)}return i},yt=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},xt=ft.expr.match.needsContext,bt=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,wt=/^.[^:#\[\.,]*$/;ft.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?ft.find.matchesSelector(i,t)?[i]:[]:ft.find.matches(t,ft.grep(e,function(t){return 1===t.nodeType}))},ft.fn.extend({find:function(t){var e,n,i=this.length,r=this;if("string"!=typeof t)return this.pushStack(ft(t).filter(function(){for(e=0;e1?ft.uniqueSort(n):n},filter:function(t){return this.pushStack(c(this,t||[],!1))},not:function(t){return this.pushStack(c(this,t||[],!0))},is:function(t){return!!c(this,"string"==typeof t&&xt.test(t)?ft(t):t||[],!1).length}});var Ct,Tt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(ft.fn.init=function(t,e,n){var i,r;if(!t)return this;if(n=n||Ct,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:Tt.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof ft?e[0]:e,ft.merge(this,ft.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:Z,!0)),bt.test(i[1])&&ft.isPlainObject(e))for(i in e)ft.isFunction(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(r=Z.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):ft.isFunction(t)?void 0!==n.ready?n.ready(t):t(ft):ft.makeArray(t,this)}).prototype=ft.fn,Ct=ft(Z);var _t=/^(?:parents|prev(?:Until|All))/,Et={children:!0,contents:!0,next:!0,prev:!0};ft.fn.extend({has:function(t){var e=ft(t,this),n=e.length;return this.filter(function(){for(var t=0;t-1:1===n.nodeType&&ft.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?ft.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?rt.call(ft(t),this[0]):rt.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(ft.uniqueSort(ft.merge(this.get(),ft(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),ft.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return vt(t,"parentNode")},parentsUntil:function(t,e,n){return vt(t,"parentNode",n)},next:function(t){return l(t,"nextSibling")},prev:function(t){return l(t,"previousSibling")},nextAll:function(t){return vt(t,"nextSibling")},prevAll:function(t){return vt(t,"previousSibling")},nextUntil:function(t,e,n){return vt(t,"nextSibling",n)},prevUntil:function(t,e,n){return vt(t,"previousSibling",n)},siblings:function(t){return yt((t.parentNode||{}).firstChild,t)},children:function(t){return yt(t.firstChild)},contents:function(t){return u(t,"iframe")?t.contentDocument:(u(t,"template")&&(t=t.content||t),ft.merge([],t.childNodes))}},function(t,e){ft.fn[t]=function(n,i){var r=ft.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=ft.filter(i,r)),this.length>1&&(Et[t]||ft.uniqueSort(r),_t.test(t)&&r.reverse()),this.pushStack(r)}});var St=/[^\x20\t\r\n\f]+/g;ft.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return ft.each(t.match(St)||[],function(t,n){e[n]=!0}),e}(t):ft.extend({},t);var e,n,i,r,o=[],s=[],a=-1,u=function(){for(r=r||t.once,i=e=!0;s.length;a=-1)for(n=s.shift();++a-1;)o.splice(n,1),n<=a&&a--}),this},has:function(t){return t?ft.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=s=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=s=[],n||e||(o=n=""),this},locked:function(){return!!r},fireWith:function(t,n){return r||(n=[t,(n=n||[]).slice?n.slice():n],s.push(n),e||u()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},ft.extend({Deferred:function(t){var e=[["notify","progress",ft.Callbacks("memory"),ft.Callbacks("memory"),2],["resolve","done",ft.Callbacks("once memory"),ft.Callbacks("once memory"),0,"resolved"],["reject","fail",ft.Callbacks("once memory"),ft.Callbacks("once memory"),1,"rejected"]],i="pending",r={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return ft.Deferred(function(n){ft.each(e,function(e,i){var r=ft.isFunction(t[i[4]])&&t[i[4]];o[i[1]](function(){var t=r&&r.apply(this,arguments);t&&ft.isFunction(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,r?[t]:arguments)})}),t=null}).promise()},then:function(t,i,r){function o(t,e,i,r){return function(){var a=this,u=arguments,c=function(){var n,c;if(!(t=s&&(i!==h&&(a=void 0,u=[n]),e.rejectWith(a,u))}};t?l():(ft.Deferred.getStackHook&&(l.stackTrace=ft.Deferred.getStackHook()),n.setTimeout(l))}}var s=0;return ft.Deferred(function(n){e[0][3].add(o(0,n,ft.isFunction(r)?r:f,n.notifyWith)),e[1][3].add(o(0,n,ft.isFunction(t)?t:f)),e[2][3].add(o(0,n,ft.isFunction(i)?i:h))}).promise()},promise:function(t){return null!=t?ft.extend(t,r):r}},o={};return ft.each(e,function(t,n){var s=n[2],a=n[5];r[n[1]]=s.add,a&&s.add(function(){i=a},e[3-t][2].disable,e[0][2].lock),s.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=s.fireWith}),r.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,n=e,i=Array(n),r=et.call(arguments),o=ft.Deferred(),s=function(t){return function(n){i[t]=this,r[t]=arguments.length>1?et.call(arguments):n,--e||o.resolveWith(i,r)}};if(e<=1&&(p(t,o.done(s(n)).resolve,o.reject,!e),"pending"===o.state()||ft.isFunction(r[n]&&r[n].then)))return o.then();for(;n--;)p(r[n],s(n),o.reject);return o.promise()}});var Dt=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;ft.Deferred.exceptionHook=function(t,e){n.console&&n.console.warn&&t&&Dt.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},ft.readyException=function(t){n.setTimeout(function(){throw t})};var kt=ft.Deferred();ft.fn.ready=function(t){return kt.then(t).catch(function(t){ft.readyException(t)}),this},ft.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--ft.readyWait:ft.isReady)||(ft.isReady=!0,!0!==t&&--ft.readyWait>0||kt.resolveWith(Z,[ft]))}}),ft.ready.then=kt.then,"complete"===Z.readyState||"loading"!==Z.readyState&&!Z.documentElement.doScroll?n.setTimeout(ft.ready):(Z.addEventListener("DOMContentLoaded",d),n.addEventListener("load",d));var jt=function(t,e,n,i,r,o,s){var a=0,u=t.length,c=null==n;if("object"===ft.type(n)){r=!0;for(a in n)jt(t,e,a,n[a],!0,o,s)}else if(void 0!==i&&(r=!0,ft.isFunction(i)||(s=!0),c&&(s?(e.call(t,i),e=null):(c=e,e=function(t,e,n){return c.call(ft(t),n)})),e))for(;a1,null,!0)},removeData:function(t){return this.each(function(){At.remove(this,t)})}}),ft.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=Lt.get(t,e),n&&(!i||Array.isArray(n)?i=Lt.access(t,e,ft.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=ft.queue(t,e),i=n.length,r=n.shift(),o=ft._queueHooks(t,e),s=function(){ft.dequeue(t,e)};"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,s,o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return Lt.get(t,n)||Lt.access(t,n,{empty:ft.Callbacks("once memory").add(function(){Lt.remove(t,[e+"queue",n])})})}}),ft.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length\x20\t\r\n\f]+)/i,Bt=/^$|\/(?:java|ecma)script/i,$t={option:[1,""],thead:[1,""],col:[2,""],tr:[2,""],td:[3,""],_default:[0,"",""]};$t.optgroup=$t.option,$t.tbody=$t.tfoot=$t.colgroup=$t.caption=$t.thead,$t.th=$t.td;var Ut=/<|?\w+;/;!function(){var t=Z.createDocumentFragment().appendChild(Z.createElement("div")),e=Z.createElement("input");e.setAttribute("type","radio"),e.setAttribute("checked","checked"),e.setAttribute("name","t"),t.appendChild(e),lt.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="",lt.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var Yt=Z.documentElement,Xt=/^key/,Gt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Vt=/^([^.]*)(?:\.(.+)|)/;ft.event={global:{},add:function(t,e,n,i,r){var o,s,a,u,c,l,f,h,p,d,m,g=Lt.get(t);if(g)for(n.handler&&(n=(o=n).handler,r=o.selector),r&&ft.find.matchesSelector(Yt,r),n.guid||(n.guid=ft.guid++),(u=g.events)||(u=g.events={}),(s=g.handle)||(s=g.handle=function(e){return void 0!==ft&&ft.event.triggered!==e.type?ft.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(St)||[""]).length;c--;)p=m=(a=Vt.exec(e[c])||[])[1],d=(a[2]||"").split(".").sort(),p&&(f=ft.event.special[p]||{},p=(r?f.delegateType:f.bindType)||p,f=ft.event.special[p]||{},l=ft.extend({type:p,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&ft.expr.match.needsContext.test(r),namespace:d.join(".")},o),(h=u[p])||((h=u[p]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,i,d,s)||t.addEventListener&&t.addEventListener(p,s)),f.add&&(f.add.call(t,l),l.handler.guid||(l.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,l):h.push(l),ft.event.global[p]=!0)},remove:function(t,e,n,i,r){var o,s,a,u,c,l,f,h,p,d,m,g=Lt.hasData(t)&&Lt.get(t);if(g&&(u=g.events)){for(c=(e=(e||"").match(St)||[""]).length;c--;)if(a=Vt.exec(e[c])||[],p=m=a[1],d=(a[2]||"").split(".").sort(),p){for(f=ft.event.special[p]||{},h=u[p=(i?f.delegateType:f.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=h.length;o--;)l=h[o],!r&&m!==l.origType||n&&n.guid!==l.guid||a&&!a.test(l.namespace)||i&&i!==l.selector&&("**"!==i||!l.selector)||(h.splice(o,1),l.selector&&h.delegateCount--,f.remove&&f.remove.call(t,l));s&&!h.length&&(f.teardown&&!1!==f.teardown.call(t,d,g.handle)||ft.removeEvent(t,p,g.handle),delete u[p])}else for(p in u)ft.event.remove(t,p+e[c],n,i,!0);ft.isEmptyObject(u)&&Lt.remove(t,"handle events")}},dispatch:function(t){var e,n,i,r,o,s,a=ft.event.fix(t),u=new Array(arguments.length),c=(Lt.get(this,"events")||{})[a.type]||[],l=ft.event.special[a.type]||{};for(u[0]=a,e=1;e=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(o=[],s={},n=0;n-1:ft.find(r,this,null,[c]).length),s[r]&&o.push(i);o.length&&a.push({elem:c,handlers:o})}return c=this,u\x20\t\r\n\f]*)[^>]*)\/>/gi,Qt=/