kcc-gem-theme-core 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +138 -0
- data/_config.yml +262 -0
- data/_data/cache_bust_css.yml +1 -0
- data/_includes/accordion.html +36 -0
- data/_includes/accordion_path-sorting.html +29 -0
- data/_includes/body.html +13 -0
- data/_includes/breadcrumbs.html +65 -0
- data/_includes/card-section.html +32 -0
- data/_includes/chat-now.html +15 -0
- data/_includes/contacts.html +90 -0
- data/_includes/document-head.html +22 -0
- data/_includes/emergency-alerts.html +27 -0
- data/_includes/foot.html +3 -0
- data/_includes/footer.html +278 -0
- data/_includes/hash/theme_hash.yml +1 -0
- data/_includes/header-global.html +56 -0
- data/_includes/hero-slider.html +42 -0
- data/_includes/main-call-to-action.html +32 -0
- data/_includes/nav-global-bottom.html +47 -0
- data/_includes/nav-global-top.html +34 -0
- data/_includes/nav-local.html +29 -0
- data/_includes/preconnect.html +22 -0
- data/_includes/scripts/custom.html +4 -0
- data/_includes/scripts/google-api.html +2 -0
- data/_includes/scripts/google-noscript.html +9 -0
- data/_includes/scripts/google-tag.html +23 -0
- data/_includes/scripts/kcc-theme.html +2 -0
- data/_includes/scripts/table-cdn.html +6 -0
- data/_includes/scripts/translate.html +11 -0
- data/_includes/scripts/vendor-cdn.html +5 -0
- data/_includes/styles/fonts.html +4 -0
- data/_includes/styles/main.html +12 -0
- data/_includes/styles/vendor.html +6 -0
- data/_includes/svg/check.html +11 -0
- data/_includes/svg/check_circle-24px.html +13 -0
- data/_includes/svg/dot.html +1 -0
- data/_includes/svg/earn-more.html +30 -0
- data/_includes/svg/email-24px.html +13 -0
- data/_includes/svg/goals.html +21 -0
- data/_includes/svg/kcc-copy.html +62 -0
- data/_includes/svg/kcc.html +65 -0
- data/_includes/svg/kcc.svg +59 -0
- data/_includes/svg/love.html +13 -0
- data/_includes/svg/place-24px.html +13 -0
- data/_includes/svg/save-money.html +26 -0
- data/_includes/tabbed-content.html +27 -0
- data/_includes/translate.html +3 -0
- data/_layouts/default-core.html +27 -0
- data/_layouts/default.html +32 -0
- data/_layouts/hero-banner.html +17 -0
- data/_layouts/hero-slider.html +17 -0
- data/_layouts/markdown.html +13 -0
- data/_layouts/page.html +8 -0
- data/assets/css/content.css +37 -0
- data/assets/img/2016-senior-viewbook.jpg +0 -0
- data/assets/img/ATEC-DSC_1033.jpeg +0 -0
- data/assets/img/DSC_5650_helpful.jpg +0 -0
- data/assets/img/admissions-navigation-menu.jpg +0 -0
- data/assets/img/ajax-loader.gif +0 -0
- data/assets/img/alert.svg +1 -0
- data/assets/img/arrow-right.svg +1 -0
- data/assets/img/arrow_right_alt.svg +1 -0
- data/assets/img/blue-next.svg +1 -0
- data/assets/img/blue-prev.svg +1 -0
- data/assets/img/d-daun2.jpg +0 -0
- data/assets/img/dbl-next.svg +1 -0
- data/assets/img/dbl-next_mobile.svg +1 -0
- data/assets/img/dbl-prev.svg +1 -0
- data/assets/img/dbl-prev_mobile.svg +1 -0
- data/assets/img/dot.svg +13 -0
- data/assets/img/e-tech_a-roberts_mar2016_D41_6690.jpg +0 -0
- data/assets/img/facebook-f_white.svg +1 -0
- data/assets/img/fafsa-early-bird-banner-18.jpg +0 -0
- data/assets/img/go_cavs_20171002_193828-web.jpg +0 -0
- data/assets/img/heading-bg-underline-tan.png +0 -0
- data/assets/img/heading-bg-underline-transparent.png +0 -0
- data/assets/img/heading-bg-underline.png +0 -0
- data/assets/img/home.svg +8 -0
- data/assets/img/instagram-white.svg +1 -0
- data/assets/img/itransfer.png +0 -0
- data/assets/img/kankakee-community-college-word-logo.svg +1 -0
- data/assets/img/kcc-logo-inverse.svg +1 -0
- data/assets/img/kcc-logo.svg +1 -0
- data/assets/img/kcc-placeholder-square.png +0 -0
- data/assets/img/kcc-placeholder.png +0 -0
- data/assets/img/kcc-text-logo.svg +1 -0
- data/assets/img/keyboard_arrow_right.svg +1 -0
- data/assets/img/linkedin-white.svg +1 -0
- data/assets/img/loader.gif +0 -0
- data/assets/img/miguel2.jpg +0 -0
- data/assets/img/pause.svg +1 -0
- data/assets/img/pinterest-p_white.svg +1 -0
- data/assets/img/placeholder.png +0 -0
- data/assets/img/placeholder_16to9.jpg +0 -0
- data/assets/img/placeholder_4by3.jpg +0 -0
- data/assets/img/placeholder_square.jpg +0 -0
- data/assets/img/play.svg +1 -0
- data/assets/img/riverfrontcampus.jpg +0 -0
- data/assets/img/search.svg +1 -0
- data/assets/img/settings.svg +1 -0
- data/assets/img/settings_56.svg +1 -0
- data/assets/img/soccer.svg +1 -0
- data/assets/img/social-icon.svg +1 -0
- data/assets/img/toggle-off.svg +1 -0
- data/assets/img/toggle-on.svg +1 -0
- data/assets/img/twitter-white.svg +1 -0
- data/assets/img/video.svg +1 -0
- data/assets/img/x.svg +1 -0
- data/assets/img/youtube-white.svg +1 -0
- data/assets/img/yt-loading.png +0 -0
- data/assets/img/zippia.png +0 -0
- data/assets/js/alerts/addAccordionOrTabHistoryStates.js +50 -0
- data/assets/js/alerts/alerts.js +56 -0
- data/assets/js/alerts/cacheResponse.js +23 -0
- data/assets/js/alerts/checkForPrefersReducedMotion.js +19 -0
- data/assets/js/alerts/contentHashLink.js +94 -0
- data/assets/js/alerts/createAlertsHtml.js +73 -0
- data/assets/js/alerts/fetchNewAlert.js +33 -0
- data/assets/js/alerts/getCachedResponse.js +43 -0
- data/assets/js/alerts/parseMarkdownToHTML.js +85 -0
- data/assets/js/alerts/refreshAlertButton.js +37 -0
- data/assets/js/dist/102.bundle.js +1 -0
- data/assets/js/dist/126.bundle.js +1 -0
- data/assets/js/dist/154.bundle.js +1 -0
- data/assets/js/dist/238.bundle.js +1 -0
- data/assets/js/dist/282.bundle.js +1 -0
- data/assets/js/dist/315.bundle.js +1 -0
- data/assets/js/dist/381.798ee77dce545b7c224a.css +2 -0
- data/assets/js/dist/381.bundle.js +1 -0
- data/assets/js/dist/391.bundle.js +1 -0
- data/assets/js/dist/45.bundle.js +1 -0
- data/assets/js/dist/504.bundle.js +1 -0
- data/assets/js/dist/526.bundle.js +2 -0
- data/assets/js/dist/526.bundle.js.LICENSE.txt +24 -0
- data/assets/js/dist/57.bundle.js +1 -0
- data/assets/js/dist/576.bundle.js +1 -0
- data/assets/js/dist/582.bundle.js +1 -0
- data/assets/js/dist/614.bundle.js +1 -0
- data/assets/js/dist/640.bundle.js +1 -0
- data/assets/js/dist/644.bundle.js +1 -0
- data/assets/js/dist/647.798ee77dce545b7c224a.css +2 -0
- data/assets/js/dist/647.bundle.js +1 -0
- data/assets/js/dist/658.798ee77dce545b7c224a.css +2 -0
- data/assets/js/dist/658.bundle.js +1 -0
- data/assets/js/dist/707.bundle.js +1 -0
- data/assets/js/dist/734.bundle.js +2 -0
- data/assets/js/dist/734.bundle.js.LICENSE.txt +30 -0
- data/assets/js/dist/747.bundle.js +1 -0
- data/assets/js/dist/755.bundle.js +1 -0
- data/assets/js/dist/795.bundle.js +1 -0
- data/assets/js/dist/814.bundle.js +1 -0
- data/assets/js/dist/83.798ee77dce545b7c224a.css +2 -0
- data/assets/js/dist/83.bundle.js +1 -0
- data/assets/js/dist/853.bundle.js +1 -0
- data/assets/js/dist/859.bundle.js +1 -0
- data/assets/js/dist/862.bundle.js +1 -0
- data/assets/js/dist/909.bundle.js +1 -0
- data/assets/js/dist/92.bundle.js +1 -0
- data/assets/js/dist/936.bundle.js +1 -0
- data/assets/js/dist/968.bundle.js +1 -0
- data/assets/js/dist/987.bundle.js +1 -0
- data/assets/js/dist/kcc-theme.798ee77dce545b7c224a.css +2 -0
- data/assets/js/dist/kcc-theme.bundle.js +1 -0
- data/assets/js/nav/megaNav/closeMegaNavOnClick.js +50 -0
- data/assets/js/nav/megaNav/googleCustomSearch.js +112 -0
- data/assets/js/nav/megaNav/megaNav.js +17 -0
- data/assets/js/nav/megaNav/searchToggleMegaNav.js +96 -0
- data/assets/js/nav/megaNav/toggleDropdownOnWindowResize.js +78 -0
- data/assets/js/nav/megaNav/toggleDropdownOnWindowResizeTwo.js +54 -0
- data/assets/js/nav/megaNav/toggleMenuOnWindowResize.js +26 -0
- data/assets/js/nav/megaNav/underlineCurrentSite.js +22 -0
- data/assets/js/nav/nav/closeNavOnClick.js +50 -0
- data/assets/js/nav/nav/highlightCurrentNav.js +56 -0
- data/assets/js/nav/nav/moveSearchIcon.js +94 -0
- data/assets/js/nav/nav/nav.js +13 -0
- data/assets/js/nav/nav/searchToggleNav.js +40 -0
- data/assets/js/nav/nav/toggleNavSearchDropdownOnWindowResize.js +57 -0
- data/assets/js/src/addClassToOpenNavbar.js +20 -0
- data/assets/js/src/all.js +61 -0
- data/assets/js/src/darkMode.js +17 -0
- data/assets/js/src/errorPageSearch.js +16 -0
- data/assets/js/src/footerDate.js +7 -0
- data/assets/js/src/lazyLoad.js +13 -0
- data/assets/js/src/loadModule.js +13 -0
- data/assets/js/src/sliders.js +68 -0
- data/assets/js/src/test.js +7 -0
- data/assets/js/src/translate.js +1 -0
- data/assets/js/src/translateScript.js +54 -0
- data/assets/js/src/userSettings.js +53 -0
- data/assets/js/src/walkText.js +27 -0
- data/assets/js/src/wrapPowerText.js +21 -0
- data/assets/js/src/ytEmbed.js +30 -0
- data/assets/scss/0-tools/_bootstrap-overrides.scss +89 -0
- data/assets/scss/0-tools/_cloudcannon.scss +16 -0
- data/assets/scss/0-tools/_google-translate-overrides.scss +114 -0
- data/assets/scss/0-tools/_gsc-overrides.scss +144 -0
- data/assets/scss/0-tools/_gsc-search-page-overrides.scss +275 -0
- data/assets/scss/0-tools/_slick-vars.scss +15 -0
- data/assets/scss/0-tools/_vars.scss +98 -0
- data/assets/scss/1-base/_background.scss +5 -0
- data/assets/scss/1-base/_buttons.scss +200 -0
- data/assets/scss/1-base/_header-global.scss +483 -0
- data/assets/scss/1-base/_html.scss +4 -0
- data/assets/scss/1-base/_img.scss +17 -0
- data/assets/scss/1-base/_links.scss +126 -0
- data/assets/scss/1-base/_svg.scss +89 -0
- data/assets/scss/1-base/_typography.scss +645 -0
- data/assets/scss/2-modules/_accordion.scss +43 -0
- data/assets/scss/2-modules/_benefits.scss +371 -0
- data/assets/scss/2-modules/_breadcrumbs.scss +32 -0
- data/assets/scss/2-modules/_campus-alerts.scss +3 -0
- data/assets/scss/2-modules/_card-section.scss +9 -0
- data/assets/scss/2-modules/_contacts.scss +46 -0
- data/assets/scss/2-modules/_dark-mode.scss +350 -0
- data/assets/scss/2-modules/_error.scss +10 -0
- data/assets/scss/2-modules/_footer.scss +84 -0
- data/assets/scss/2-modules/_header.scss +21 -0
- data/assets/scss/2-modules/_hero-slider.scss +300 -0
- data/assets/scss/2-modules/_loader.scss +25 -0
- data/assets/scss/2-modules/_nav-content.scss +11 -0
- data/assets/scss/2-modules/_nav-landing.scss +203 -0
- data/assets/scss/2-modules/_nav-local.scss +45 -0
- data/assets/scss/2-modules/_setting.scss +78 -0
- data/assets/scss/2-modules/_sliders.scss +21 -0
- data/assets/scss/2-modules/_social-icons.scss +36 -0
- data/assets/scss/2-modules/_sub-nav.scss +32 -0
- data/assets/scss/2-modules/_yt-embed.scss +14 -0
- data/assets/scss/3-layout/_background.scss +3 -0
- data/assets/scss/3-layout/_margins.scss +2 -0
- data/assets/scss/3-layout/_padding.scss +2 -0
- data/assets/scss/3-layout/_positioning.scss +104 -0
- data/assets/scss/3-layout/_section.scss +23 -0
- data/assets/scss/3-layout/_tables.scss +8 -0
- data/assets/scss/4-pages/index/_home.scss +15 -0
- data/assets/scss/bootstrap.scss +75 -0
- data/assets/scss/darkMode.scss +5 -0
- data/assets/scss/kcc-theme.scss +47 -0
- data/assets/scss/searchPageOverrides.scss +2 -0
- data/assets/scss/slick-carousel.scss +9 -0
- data/assets/scss/translate.scss +4 -0
- metadata +326 -0
@@ -0,0 +1,94 @@
|
|
1
|
+
// Custom JS to do cool stuff with BS accordions and tabs by manipulating URL hashes and query's
|
2
|
+
// EXAMPLE:
|
3
|
+
// https://<ORIGIN>/?id=course-withdrawals#tuition-payment-and-deadlines
|
4
|
+
// The above URL will:
|
5
|
+
// 1. Open the #tuition-payment-and-deadlines accordion if it exists
|
6
|
+
// 2. The ?id=course-withdrawals query will:
|
7
|
+
// - look inside the opened accordion for an element with the id 'course-withdrawals', and
|
8
|
+
// - scroll that matching element into the user's viewport (in this case it's a heading within that accordion card)
|
9
|
+
//
|
10
|
+
// This JS will allow us to link to a specific area of content in a page where a traditional hash link wouldn't work
|
11
|
+
// In this case hash links won't work because the element with he matching ID is "stuck" in a closed accordion or tab.
|
12
|
+
//
|
13
|
+
const idRegex = /^id=/g; // Lets just cache these reused regex's here
|
14
|
+
const queryStartRegex = /^\?/g;
|
15
|
+
const endingSlashRegex = /\/$/g;
|
16
|
+
const PREFERS_REDUCED_MOTION_LOCALSTORAGE_KEY = 'userPrefersReducedMotion'; // This localStorage key is set by module: './checkForPrefersReducedMotion.js'
|
17
|
+
const scrollIntoViewOptionsObject = {
|
18
|
+
behavior: 'smooth',
|
19
|
+
block: 'center'
|
20
|
+
}
|
21
|
+
const reducedMotionscrollIntoViewOptionsObject = {
|
22
|
+
block: 'center'
|
23
|
+
}
|
24
|
+
|
25
|
+
function focusElement(el) {
|
26
|
+
const prefersReducedMotion = window.localStorage.getItem(PREFERS_REDUCED_MOTION_LOCALSTORAGE_KEY);
|
27
|
+
|
28
|
+
prefersReducedMotion == 'true' ? el.scrollIntoView(reducedMotionscrollIntoViewOptionsObject) : el.scrollIntoView(scrollIntoViewOptionsObject);
|
29
|
+
return el.focus();
|
30
|
+
}
|
31
|
+
|
32
|
+
function processIdQuery(query, hash) {
|
33
|
+
let id = query.replace(idRegex, '');
|
34
|
+
const parentEl = document.querySelector(hash);
|
35
|
+
const heading = parentEl.querySelector(`#${id}`);
|
36
|
+
|
37
|
+
focusElement(heading);
|
38
|
+
}
|
39
|
+
|
40
|
+
function checkForQuery(query, hash) {
|
41
|
+
query.search(idRegex) !== -1 ?
|
42
|
+
processIdQuery(query, hash)
|
43
|
+
: null;
|
44
|
+
}
|
45
|
+
|
46
|
+
function findContentTarget(hash) {
|
47
|
+
const target = document.querySelector(hash);
|
48
|
+
|
49
|
+
focusElement(target);
|
50
|
+
}
|
51
|
+
|
52
|
+
function checkForMatchingTabOrAccordion(hash) {
|
53
|
+
if ( document.querySelector(`.nav-tabs a[href="${hash}"]`) ) { // Looks for a matching BS4 tab element
|
54
|
+
let tab = $(`.nav-tabs a[href="${hash}"]`); // **SIGH**, BS4 requires JQuery
|
55
|
+
|
56
|
+
tab
|
57
|
+
.on('shown.bs.tab', () => { // Bootstrap 4 method for tab events // Must be defined before the tab is activated
|
58
|
+
window.location.search ?
|
59
|
+
checkForQuery(window.location.search.replace(queryStartRegex, ''), hash)
|
60
|
+
: findContentTarget(`${hash}-label`); // You need to .scrollIntoView() & .focus() on the tab-label which is an <a href="...">. It won't work to do .scrollIntoView() and .focus() on the div
|
61
|
+
})
|
62
|
+
.tab('show'); // Bootstrap 4 Tab method
|
63
|
+
} else if ( document.querySelector(`${hash}.collapse`) ) { // Looks for a matching BS4 collapse element
|
64
|
+
let card = $(hash); // **SIGH**, BS4 requires JQuery
|
65
|
+
|
66
|
+
card
|
67
|
+
.on('shown.bs.collapse', () => { // Bootstrap 4 Collapse method // Must be defined before the collapse is activated
|
68
|
+
window.location.search ?
|
69
|
+
checkForQuery(window.location.search.replace(queryStartRegex, ''), hash)
|
70
|
+
: findContentTarget(`button[data-target="${hash}"]`);
|
71
|
+
})
|
72
|
+
.collapse('show'); // Bootstrap 4 Collapse method
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
function checkForHash() {
|
77
|
+
if (window.location.hash) {
|
78
|
+
let hash = window.location.hash.replace(endingSlashRegex, '');
|
79
|
+
|
80
|
+
checkForMatchingTabOrAccordion(hash);
|
81
|
+
}
|
82
|
+
return;
|
83
|
+
}
|
84
|
+
|
85
|
+
function contentHashLink() {
|
86
|
+
checkForHash();
|
87
|
+
window.addEventListener('hashchange', checkForHash, false);
|
88
|
+
|
89
|
+
import('./addAccordionOrTabHistoryStates').then(({ default: addAccordionOrTabHistoryStates }) => {
|
90
|
+
addAccordionOrTabHistoryStates();
|
91
|
+
});
|
92
|
+
}
|
93
|
+
|
94
|
+
export default contentHashLink;
|
@@ -0,0 +1,73 @@
|
|
1
|
+
/*
|
2
|
+
// Custom JS | written by https://github.com/wdzajicek
|
3
|
+
// © 2020 Kankakee Community College
|
4
|
+
// =================================================== */
|
5
|
+
// JS module to build alert message using data from Google Sheets API v4
|
6
|
+
//
|
7
|
+
// This exported module requires you pass it's default-function the `response` object from the API call, as the only argument
|
8
|
+
//
|
9
|
+
import parseMarkdownToHTML from './parseMarkdownToHTML.js'; // Parses a simplified markdown into html & creates the paragraph el's with appropriate class
|
10
|
+
//
|
11
|
+
const CAMPUS_ALERTS_DIV_ID_STRING = 'emergencyAlerts'; // ID of the div to house campus alerts - already built into the page.
|
12
|
+
const ALERTS_VISIBLE_CLASS = 'position__offset-alert--visible';
|
13
|
+
const TARGET = document.getElementById(CAMPUS_ALERTS_DIV_ID_STRING); // This targets an element built into the DOM that we inject everything into.
|
14
|
+
|
15
|
+
function injectAlert(target, alert) {
|
16
|
+
target.innerHTML = alert;
|
17
|
+
return target.classList.add(ALERTS_VISIBLE_CLASS);
|
18
|
+
}
|
19
|
+
|
20
|
+
function checkAlertType(type) {
|
21
|
+
return type == 'SCHOOL EMERGENCY/CLOSURE - red' ? 'danger'
|
22
|
+
: type == 'SCHOOL INFO - blue' ? 'primary'
|
23
|
+
: type == 'SCHOOL INFO - cyan' ? 'info'
|
24
|
+
: 'warning';
|
25
|
+
}
|
26
|
+
|
27
|
+
function createAlertsHtml(response) { // Incoming response from our Google Sheet via the Sheets API
|
28
|
+
let [visibility, allPages, content, expire, start, end, type] = response.result.values[2]; // The 3rd row has our table's data
|
29
|
+
if (visibility === 'FALSE') // Predefined dropdown options in the Sheet are `'TRUE'` & `'FALSE'`
|
30
|
+
return;
|
31
|
+
|
32
|
+
const d = new Date;
|
33
|
+
const s = new Date(start);
|
34
|
+
const e = new Date(end);
|
35
|
+
const alertTypeClass = checkAlertType(type);
|
36
|
+
const alertType = checkAlertType(type);
|
37
|
+
const alertIsActive = expire === 'FALSE' || expire === 'TRUE' && s.getTime() <= d.getTime() && e.getTime() > d.getTime();
|
38
|
+
const indexPageOnly = allPages === 'TRUE' || allPages === 'FALSE' && window.location.pathname == '/';
|
39
|
+
let alert = `
|
40
|
+
<div class="container">
|
41
|
+
<div class="row">
|
42
|
+
<div class="col">
|
43
|
+
<div role="alert" class="alert alert-${alertType} d-lg-flex align-items-center pr-lg-1">
|
44
|
+
<div class="typography__last-p--mb0">
|
45
|
+
${parseMarkdownToHTML(content)}
|
46
|
+
</div>
|
47
|
+
<button
|
48
|
+
aria-label="Refresh the alert"
|
49
|
+
title="Refresh the alert"
|
50
|
+
id="syncAlert"
|
51
|
+
type="button"
|
52
|
+
class="btn btn-link buttons--sync ml-auto">
|
53
|
+
<svg xmlns="http://www.w3.org/2000/svg"
|
54
|
+
class="svg__sync"
|
55
|
+
height="24px"
|
56
|
+
width="24px"
|
57
|
+
viewBox="0 0 24 24">
|
58
|
+
<path d="M0 0h24v24H0z" fill="none"/>
|
59
|
+
<path d="M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20
|
60
|
+
12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0
|
61
|
+
4.42 3.58 8 8 8v3l4-4-4-4v3z"/>
|
62
|
+
</svg>
|
63
|
+
</button>
|
64
|
+
</div>
|
65
|
+
</div>
|
66
|
+
</div>
|
67
|
+
</div>`;
|
68
|
+
|
69
|
+
[d,s,e].map(d => d.setHours(0, 0, 0, 0));
|
70
|
+
return alertIsActive && indexPageOnly ? injectAlert(TARGET, alert) : null;
|
71
|
+
}
|
72
|
+
|
73
|
+
export default createAlertsHtml;
|
@@ -0,0 +1,33 @@
|
|
1
|
+
// Custom JS to make a Google API call to the alerts spreadsheet
|
2
|
+
// Then paint the alert into the DOM using module `./createAlertsHtml.js`
|
3
|
+
//
|
4
|
+
const SHEET_KEY = '1plXBiZY5pVbhNT-mszxEuqCl4zy8wMnz9gXXbbT_yLs'; // Corresponds to the ID of the Google Sheet
|
5
|
+
const SHEET_TAB = 'Alerts'; // Corresponds to the tab of workbook: either 'Alerts' or 'Alerts Testing' unless you make a new one.
|
6
|
+
const EMERGENCY_ALERT_DIV_ID = 'emergencyAlerts'
|
7
|
+
const SHEET_PARAMS = {spreadsheetId: SHEET_KEY, range: SHEET_TAB}; // Configures the Object used for `sheets.spreadsheets.values.get()` parameters
|
8
|
+
const API_PARAMS = { // This is configuration for API call with spreadsheets that are setup as readonly
|
9
|
+
'apiKey': 'AIzaSyCEBsbXfFcdbkASlg-PodD1rT_Fe3Nw62A',
|
10
|
+
'discoveryDocs': ['https://www.googleapis.com/discovery/v1/apis/sheets/v4/rest']
|
11
|
+
};
|
12
|
+
|
13
|
+
function fetchNewAlert() {
|
14
|
+
gapi.client.init(API_PARAMS).then(() => {
|
15
|
+
return gapi.client.sheets.spreadsheets.values.get(SHEET_PARAMS); // Get the new values from the spreadsheet
|
16
|
+
}).then(response => {
|
17
|
+
import('./createAlertsHtml').then(({default: createAlertsHtml}) => {
|
18
|
+
// Since everything in the page has already loaded, `createAlertsHtml()` can be lazily loaded w/ ES6 import()
|
19
|
+
// createAlertsHtml expects 2 args: 1.) `response` object and 2.) either `resolve()` (from `./alert.js`) or `undefined`
|
20
|
+
createAlertsHtml(response, undefined); // We don't need to resolve a promise this time so use `undefined` as 2nd arg
|
21
|
+
});
|
22
|
+
return response;
|
23
|
+
}).then(response => {
|
24
|
+
import('./cacheResponse').then(({default: cacheResponse}) => {
|
25
|
+
// Lazy load cacheResponse() using ES6 imports() w/ Webpack 5
|
26
|
+
cacheResponse(response);
|
27
|
+
})
|
28
|
+
}, err => {
|
29
|
+
console.error('Error fetching new alert from gapi:', err);
|
30
|
+
});
|
31
|
+
}
|
32
|
+
|
33
|
+
export default fetchNewAlert;
|
@@ -0,0 +1,43 @@
|
|
1
|
+
/*
|
2
|
+
// Custom JS | written by https://github.com/wdzajicek
|
3
|
+
// © 2020 Kankakee Community College
|
4
|
+
// =================================================== */
|
5
|
+
// Module to retrieve our cached Google Sheet response from sessionStorage
|
6
|
+
// 1. Create an object that replicates an API response where `response.result.values`
|
7
|
+
// is an array containing an array representing each row in the sheet.
|
8
|
+
// 2. Then we pass our mock-sheet response object to the `createAlertsHtml` module to
|
9
|
+
// build and inject the alert into the DOM.
|
10
|
+
import createAlertsHtml from './createAlertsHtml.js';
|
11
|
+
|
12
|
+
const cache = window.sessionStorage;
|
13
|
+
|
14
|
+
function createCachedResponseObject() {
|
15
|
+
let cachedResponse = { // Reconstructing our own Google Sheet-like response from the sessionStorage items
|
16
|
+
result: {
|
17
|
+
values: [
|
18
|
+
0, // First two rows aren't used by the `createAlertsHtml()` function
|
19
|
+
0,
|
20
|
+
[
|
21
|
+
cache.Visible,
|
22
|
+
cache.getItem('All-Pages'),
|
23
|
+
cache.getItem('Alert-Content'),
|
24
|
+
cache.getItem('Alert-Expiration'),
|
25
|
+
cache.Start,
|
26
|
+
cache.End,
|
27
|
+
cache.getItem('Alert-type/Color-scheme')
|
28
|
+
]
|
29
|
+
]
|
30
|
+
}
|
31
|
+
}
|
32
|
+
createAlertsHtml(cachedResponse);
|
33
|
+
}
|
34
|
+
|
35
|
+
function getCachedResponse() {
|
36
|
+
try {
|
37
|
+
createCachedResponseObject();
|
38
|
+
} catch (error) {
|
39
|
+
console.error(`Error retrieving cached response in sessionStorage:\nName: ${error.name}\nMessage: ${error.message}\n${error}`);
|
40
|
+
}
|
41
|
+
}
|
42
|
+
|
43
|
+
export default getCachedResponse;
|
@@ -0,0 +1,85 @@
|
|
1
|
+
const INLINE_MARKDOWN_ELEMENTS_OBJECT = {
|
2
|
+
'strong': /\*\*([^\*]*)\*\*/g,
|
3
|
+
'em': /_([^_]*)_/g
|
4
|
+
}
|
5
|
+
|
6
|
+
function replaceRegex(string, regex, replacement) {
|
7
|
+
const newString = string.replace(regex, replacement);
|
8
|
+
return newString;
|
9
|
+
}
|
10
|
+
|
11
|
+
function escapeCharacters(string, escapeOption) {
|
12
|
+
const escapedCharactersObject = {
|
13
|
+
'\\*': '__asterisk__',
|
14
|
+
'\\_': '__underscore__',
|
15
|
+
'\\[': '__openBracket__',
|
16
|
+
'\\]': '__closeBracket__',
|
17
|
+
'\\(': '__openParenthesis__',
|
18
|
+
'\\)': '__closeParenthesis__'
|
19
|
+
}
|
20
|
+
|
21
|
+
for (let char in escapedCharactersObject) {
|
22
|
+
if (escapedCharactersObject.hasOwnProperty(char)) {
|
23
|
+
escapeOption === true ? string = replaceRegex(string, char, escapedCharactersObject[char])
|
24
|
+
: escapeOption === false ? string = replaceRegex(string, escapedCharactersObject[char], char.replace(/^\\/g, ''))
|
25
|
+
: null;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
return string;
|
29
|
+
}
|
30
|
+
|
31
|
+
function createAnchorElements(string) {
|
32
|
+
return string = string.replace(/\[(?<linkText>[^\]]*)\]\((?<linkHref>[^\)]*)\)/g, '<a href="$<linkHref>" target="_blank" rel="noopener noreferrer">$<linkText></a>');
|
33
|
+
}
|
34
|
+
|
35
|
+
function replacer(match, p1) {
|
36
|
+
if ( p1 === '' ) { // Filters out the '__' (double underscore) matches.
|
37
|
+
return match;
|
38
|
+
} else {
|
39
|
+
for (var el in INLINE_MARKDOWN_ELEMENTS_OBJECT) {
|
40
|
+
if (INLINE_MARKDOWN_ELEMENTS_OBJECT.hasOwnProperty(el)) {
|
41
|
+
match = match.replace(INLINE_MARKDOWN_ELEMENTS_OBJECT[el], '<' + el + '>$1</' + el + '>' );
|
42
|
+
}
|
43
|
+
}
|
44
|
+
return match;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
48
|
+
function createInlineElements(string) {
|
49
|
+
for (var el in INLINE_MARKDOWN_ELEMENTS_OBJECT) {
|
50
|
+
if (INLINE_MARKDOWN_ELEMENTS_OBJECT.hasOwnProperty(el)) {
|
51
|
+
string = string.replace(INLINE_MARKDOWN_ELEMENTS_OBJECT[el], replacer);
|
52
|
+
}
|
53
|
+
}
|
54
|
+
return string;
|
55
|
+
}
|
56
|
+
|
57
|
+
function paragraphReplacer(match, p1) {
|
58
|
+
if ( p1 === '' ) { // Filters out blank lines
|
59
|
+
return match;
|
60
|
+
} else {
|
61
|
+
return match.replace(/^(.*)$/gm, '<p class="typography__alert">$1</p>');
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
function createParagraphElements(string) {
|
66
|
+
return string = string.replace(/^(.*)$/gm, paragraphReplacer);
|
67
|
+
}
|
68
|
+
|
69
|
+
function parseMarkdownToHTML(string) {
|
70
|
+
const escapedString = escapeCharacters(string, true);
|
71
|
+
const stringWithInlineElements = createInlineElements(escapedString);
|
72
|
+
const stringWithAnchorElements = createAnchorElements(stringWithInlineElements);
|
73
|
+
const stringWithParagraphElements = createParagraphElements(stringWithAnchorElements);
|
74
|
+
const unescapedString = escapeCharacters(stringWithParagraphElements, false);
|
75
|
+
//console.log(unescapedString);
|
76
|
+
return unescapedString;
|
77
|
+
}
|
78
|
+
|
79
|
+
//
|
80
|
+
// USAGE:
|
81
|
+
// import parseMarkdownToHTML from './parseMarkdownToHTML.js';
|
82
|
+
//
|
83
|
+
// parseMarkdownToHTML(stringContainingSimplifiedMarkdown);
|
84
|
+
|
85
|
+
export default parseMarkdownToHTML;
|
@@ -0,0 +1,37 @@
|
|
1
|
+
// Custom JS to give functionality to the "Refresh the alert" button
|
2
|
+
// Button HTML is build into DOM by ./alert.js
|
3
|
+
// Styling is located in /assets/scss/{ _buttons, _loader, _svg}.scss
|
4
|
+
const BUTTON = document.getElementById('syncAlert');
|
5
|
+
|
6
|
+
function syncHandler(e) {
|
7
|
+
const SVG = BUTTON.querySelector('.svg__sync');
|
8
|
+
|
9
|
+
Promise.resolve()
|
10
|
+
.then(() => {
|
11
|
+
BUTTON.classList.add('buttons--sync--visible');
|
12
|
+
SVG.classList.add('loader__sync--animate');
|
13
|
+
}).then(() => {
|
14
|
+
// Add a short delay before fetching the new alert
|
15
|
+
window.setTimeout(() => { // (alert fetches too fast for the loading animation without this delay)
|
16
|
+
import('./fetchNewAlert').then(({default: fetchNewAlert}) => {
|
17
|
+
gapi.load('client', fetchNewAlert); // Runs a new call to gapi and repaints the alert HTML
|
18
|
+
});
|
19
|
+
}, 1000);
|
20
|
+
})
|
21
|
+
}
|
22
|
+
|
23
|
+
function showButtonOnInitialLoad(button) {
|
24
|
+
button.classList.add('buttons--sync--preview'); // This class has an animation that shows the button for 3-sec.
|
25
|
+
window.setTimeout(() => {
|
26
|
+
button.classList.remove('buttons--sync--preview'); // Remove the class after enough time for animations has elapsed
|
27
|
+
}, 3000);
|
28
|
+
}
|
29
|
+
|
30
|
+
function refreshAlertButton() {
|
31
|
+
window.setTimeout(() => { // Short delay before showing the refresh button
|
32
|
+
showButtonOnInitialLoad(BUTTON);
|
33
|
+
}, 500);
|
34
|
+
BUTTON.addEventListener('click', syncHandler);
|
35
|
+
}
|
36
|
+
|
37
|
+
export default refreshAlertButton;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";(self.webpackChunkkcc_gem_theme_core=self.webpackChunkkcc_gem_theme_core||[]).push([[102],{2102:function(e,n,a){a.r(n);var t=a(9755),l="header-global__navbar--lg",o=document.getElementById("headerGlobalNavbar");function r(){var e=r.element;window.innerWidth<=992&&e.classList.contains(l)&&function(e){for(var n=e.length,a=0;a<n;a++)l=e[a],r=void 0,(r=l.parentElement).classList.contains("show")&&function(e){t(e).collapse("hide"),o.classList.remove("header-global__navbar--lg")}(r);var l,r}(document.getElementById("headerGlobalNavbarContent").querySelectorAll(".dropdown-toggle"))}n.default=function(){r.element=o,window.innerWidth>=992&&(l,o.classList.add("header-global__navbar--lg")),window.addEventListener("resize",r)}}}]);
|
@@ -0,0 +1 @@
|
|
1
|
+
(self.webpackChunkkcc_gem_theme_core=self.webpackChunkkcc_gem_theme_core||[]).push([[126],{5126:function(e,n,t){"use strict";t.r(n),t(4916),t(5306),t(4765);var r=document.getElementById("navGlobalBottom");n.default=function(){if("/"!==window.location.pathname)for(var e=r.querySelectorAll("li"),n=window.location.pathname.replace(/(^\/|\/$)/g,""),t=0,a=e.length;t<a;t++){var i=e[t].dataset.nav;if(-1!==n.search(i))return e[t].querySelector("a").classList.add("header-global__nav-bottom--underlined")}}},1530:function(e,n,t){"use strict";var r=t(8710).charAt;e.exports=function(e,n,t){return n+(t?r(e,n).length:1)}},7007:function(e,n,t){"use strict";t(4916);var r=t(1702),a=t(1320),i=t(2261),o=t(7293),u=t(5112),c=t(8880),l=u("species"),s=RegExp.prototype;e.exports=function(e,n,t,f){var v=u(e),d=!o((function(){var n={};return n[v]=function(){return 7},7!=""[e](n)})),x=d&&!o((function(){var n=!1,t=/a/;return"split"===e&&((t={}).constructor={},t.constructor[l]=function(){return t},t.flags="",t[v]=/./[v]),t.exec=function(){return n=!0,null},t[v](""),!n}));if(!d||!x||t){var p=r(/./[v]),g=n(v,""[e],(function(e,n,t,a,o){var u=r(e),c=n.exec;return c===i||c===s.exec?d&&!o?{done:!0,value:p(n,t,a)}:{done:!0,value:u(t,n,a)}:{done:!1}}));a(String.prototype,e,g[0]),a(s,v,g[1])}f&&c(s[v],"sham",!0)}},647:function(e,n,t){var r=t(1702),a=t(7908),i=Math.floor,o=r("".charAt),u=r("".replace),c=r("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,n,t,r,f,v){var d=t+e.length,x=r.length,p=s;return void 0!==f&&(f=a(f),p=l),u(v,p,(function(a,u){var l;switch(o(u,0)){case"$":return"$";case"&":return e;case"`":return c(n,0,t);case"'":return c(n,d);case"<":l=f[c(u,1,-1)];break;default:var s=+u;if(0===s)return a;if(s>x){var v=i(s/10);return 0===v?a:v<=x?void 0===r[v-1]?o(u,1):r[v-1]+o(u,1):a}l=r[s-1]}return void 0===l?"":l}))}},7651:function(e,n,t){var r=t(7854),a=t(6916),i=t(9670),o=t(614),u=t(4326),c=t(2261),l=r.TypeError;e.exports=function(e,n){var t=e.exec;if(o(t)){var r=a(t,e,n);return null!==r&&i(r),r}if("RegExp"===u(e))return a(c,e,n);throw l("RegExp#exec called on incompatible receiver")}},2261:function(e,n,t){"use strict";var r,a,i=t(6916),o=t(1702),u=t(1340),c=t(7066),l=t(2999),s=t(2309),f=t(30),v=t(9909).get,d=t(9441),x=t(7168),p=s("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,h=g,I=o("".charAt),b=o("".indexOf),E=o("".replace),m=o("".slice),y=(a=/b*/g,i(g,r=/a/,"a"),i(g,a,"a"),0!==r.lastIndex||0!==a.lastIndex),R=l.BROKEN_CARET,$=void 0!==/()??/.exec("")[1];(y||$||R||d||x)&&(h=function(e){var n,t,r,a,o,l,s,d=this,x=v(d),k=u(e),w=x.raw;if(w)return w.lastIndex=d.lastIndex,n=i(h,w,k),d.lastIndex=w.lastIndex,n;var _=x.groups,S=R&&d.sticky,A=i(c,d),C=d.source,O=0,T=k;if(S&&(A=E(A,"y",""),-1===b(A,"g")&&(A+="g"),T=m(k,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==I(k,d.lastIndex-1))&&(C="(?: "+C+")",T=" "+T,O++),t=new RegExp("^(?:"+C+")",A)),$&&(t=new RegExp("^"+C+"$(?!\\s)",A)),y&&(r=d.lastIndex),a=i(g,S?t:d,T),S?a?(a.input=m(a.input,O),a[0]=m(a[0],O),a.index=d.lastIndex,d.lastIndex+=a[0].length):d.lastIndex=0:y&&a&&(d.lastIndex=d.global?a.index+a[0].length:r),$&&a&&a.length>1&&i(p,a[0],t,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(a[o]=void 0)})),a&&_)for(a.groups=l=f(null),o=0;o<_.length;o++)l[(s=_[o])[0]]=a[s[1]];return a}),e.exports=h},7066:function(e,n,t){"use strict";var r=t(9670);e.exports=function(){var e=r(this),n="";return e.global&&(n+="g"),e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.dotAll&&(n+="s"),e.unicode&&(n+="u"),e.sticky&&(n+="y"),n}},2999:function(e,n,t){var r=t(7293),a=t(7854).RegExp,i=r((function(){var e=a("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),o=i||r((function(){return!a("a","y").sticky})),u=i||r((function(){var e=a("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:u,MISSED_STICKY:o,UNSUPPORTED_Y:i}},9441:function(e,n,t){var r=t(7293),a=t(7854).RegExp;e.exports=r((function(){var e=a(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},7168:function(e,n,t){var r=t(7293),a=t(7854).RegExp;e.exports=r((function(){var e=a("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},1150:function(e){e.exports=Object.is||function(e,n){return e===n?0!==e||1/e==1/n:e!=e&&n!=n}},4916:function(e,n,t){"use strict";var r=t(2109),a=t(2261);r({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},5306:function(e,n,t){"use strict";var r=t(2104),a=t(6916),i=t(1702),o=t(7007),u=t(7293),c=t(9670),l=t(614),s=t(9303),f=t(7466),v=t(1340),d=t(4488),x=t(1530),p=t(8173),g=t(647),h=t(7651),I=t(5112)("replace"),b=Math.max,E=Math.min,m=i([].concat),y=i([].push),R=i("".indexOf),$=i("".slice),k="$0"==="a".replace(/./,"$0"),w=!!/./[I]&&""===/./[I]("a","$0");o("replace",(function(e,n,t){var i=w?"$":"$0";return[function(e,t){var r=d(this),i=null==e?void 0:p(e,I);return i?a(i,e,r,t):a(n,v(r),e,t)},function(e,a){var o=c(this),u=v(e);if("string"==typeof a&&-1===R(a,i)&&-1===R(a,"$<")){var d=t(n,o,u,a);if(d.done)return d.value}var p=l(a);p||(a=v(a));var I=o.global;if(I){var k=o.unicode;o.lastIndex=0}for(var w=[];;){var _=h(o,u);if(null===_)break;if(y(w,_),!I)break;""===v(_[0])&&(o.lastIndex=x(u,f(o.lastIndex),k))}for(var S,A="",C=0,O=0;O<w.length;O++){for(var T=v((_=w[O])[0]),B=b(E(s(_.index),u.length),0),M=[],K=1;K<_.length;K++)y(M,void 0===(S=_[K])?S:String(S));var N=_.groups;if(p){var q=m([T],M,B,u);void 0!==N&&y(q,N);var D=v(r(a,void 0,q))}else D=g(T,u,B,M,N,a);B>=C&&(A+=$(u,C,B)+D,C=B+T.length)}return A+$(u,C)}]}),!!u((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!k||w)},4765:function(e,n,t){"use strict";var r=t(6916),a=t(7007),i=t(9670),o=t(4488),u=t(1150),c=t(1340),l=t(8173),s=t(7651);a("search",(function(e,n,t){return[function(n){var t=o(this),a=null==n?void 0:l(n,e);return a?r(a,n,t):new RegExp(n)[e](c(t))},function(e){var r=i(this),a=c(e),o=t(n,r,a);if(o.done)return o.value;var l=r.lastIndex;u(l,0)||(r.lastIndex=0);var f=s(r,a);return u(r.lastIndex,l)||(r.lastIndex=l),null===f?-1:f.index}]}))}}]);
|
@@ -0,0 +1 @@
|
|
1
|
+
(self.webpackChunkkcc_gem_theme_core=self.webpackChunkkcc_gem_theme_core||[]).push([[154],{9154:function(i,e,t){var o,s,n;!function(r){"use strict";s=[t(9755)],o=function(i){var e,t=window.Slick||{};(e=0,t=function(t,o){var s,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:i(t),appendDots:i(t),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return i('<button type="button" />').text(t+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},n.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},i.extend(n,n.initials),n.activeBreakpoint=null,n.animType=null,n.animProp=null,n.breakpoints=[],n.breakpointSettings=[],n.cssTransitions=!1,n.focussed=!1,n.interrupted=!1,n.hidden="hidden",n.paused=!0,n.positionProp=null,n.respondTo=null,n.rowCount=1,n.shouldClick=!0,n.$slider=i(t),n.$slidesCache=null,n.transformType=null,n.transitionType=null,n.visibilityChange="visibilitychange",n.windowWidth=0,n.windowTimer=null,s=i(t).data("slick")||{},n.options=i.extend({},n.defaults,o,s),n.currentSlide=n.options.initialSlide,n.originalSettings=n.options,void 0!==document.mozHidden?(n.hidden="mozHidden",n.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(n.hidden="webkitHidden",n.visibilityChange="webkitvisibilitychange"),n.autoPlay=i.proxy(n.autoPlay,n),n.autoPlayClear=i.proxy(n.autoPlayClear,n),n.autoPlayIterator=i.proxy(n.autoPlayIterator,n),n.changeSlide=i.proxy(n.changeSlide,n),n.clickHandler=i.proxy(n.clickHandler,n),n.selectHandler=i.proxy(n.selectHandler,n),n.setPosition=i.proxy(n.setPosition,n),n.swipeHandler=i.proxy(n.swipeHandler,n),n.dragHandler=i.proxy(n.dragHandler,n),n.keyHandler=i.proxy(n.keyHandler,n),n.instanceUid=e++,n.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,n.registerBreakpoints(),n.init(!0)}).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},t.prototype.addSlide=t.prototype.slickAdd=function(e,t,o){var s=this;if("boolean"==typeof t)o=t,t=null;else if(t<0||t>=s.slideCount)return!1;s.unload(),"number"==typeof t?0===t&&0===s.$slides.length?i(e).appendTo(s.$slideTrack):o?i(e).insertBefore(s.$slides.eq(t)):i(e).insertAfter(s.$slides.eq(t)):!0===o?i(e).prependTo(s.$slideTrack):i(e).appendTo(s.$slideTrack),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slides.each((function(e,t){i(t).attr("data-slick-index",e)})),s.$slidesCache=s.$slides,s.reinit()},t.prototype.animateHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.animate({height:e},i.options.speed)}},t.prototype.animateSlide=function(e,t){var o={},s=this;s.animateHeight(),!0===s.options.rtl&&!1===s.options.vertical&&(e=-e),!1===s.transformsEnabled?!1===s.options.vertical?s.$slideTrack.animate({left:e},s.options.speed,s.options.easing,t):s.$slideTrack.animate({top:e},s.options.speed,s.options.easing,t):!1===s.cssTransitions?(!0===s.options.rtl&&(s.currentLeft=-s.currentLeft),i({animStart:s.currentLeft}).animate({animStart:e},{duration:s.options.speed,easing:s.options.easing,step:function(i){i=Math.ceil(i),!1===s.options.vertical?(o[s.animType]="translate("+i+"px, 0px)",s.$slideTrack.css(o)):(o[s.animType]="translate(0px,"+i+"px)",s.$slideTrack.css(o))},complete:function(){t&&t.call()}})):(s.applyTransition(),e=Math.ceil(e),!1===s.options.vertical?o[s.animType]="translate3d("+e+"px, 0px, 0px)":o[s.animType]="translate3d(0px,"+e+"px, 0px)",s.$slideTrack.css(o),t&&setTimeout((function(){s.disableTransition(),t.call()}),s.options.speed))},t.prototype.getNavTarget=function(){var e=this.options.asNavFor;return e&&null!==e&&(e=i(e).not(this.$slider)),e},t.prototype.asNavFor=function(e){var t=this.getNavTarget();null!==t&&"object"==typeof t&&t.each((function(){var t=i(this).slick("getSlick");t.unslicked||t.slideHandler(e,!0)}))},t.prototype.applyTransition=function(i){var e=this,t={};!1===e.options.fade?t[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:t[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,!1===e.options.fade?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},t.prototype.autoPlay=function(){var i=this;i.autoPlayClear(),i.slideCount>i.options.slidesToShow&&(i.autoPlayTimer=setInterval(i.autoPlayIterator,i.options.autoplaySpeed))},t.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},t.prototype.autoPlayIterator=function(){var i=this,e=i.currentSlide+i.options.slidesToScroll;i.paused||i.interrupted||i.focussed||(!1===i.options.infinite&&(1===i.direction&&i.currentSlide+1===i.slideCount-1?i.direction=0:0===i.direction&&(e=i.currentSlide-i.options.slidesToScroll,i.currentSlide-1==0&&(i.direction=1))),i.slideHandler(e))},t.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&(e.$prevArrow=i(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=i(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),!0!==e.options.infinite&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},t.prototype.buildDots=function(){var e,t,o=this;if(!0===o.options.dots&&o.slideCount>o.options.slidesToShow){for(o.$slider.addClass("slick-dotted"),t=i("<ul />").addClass(o.options.dotsClass),e=0;e<=o.getDotCount();e+=1)t.append(i("<li />").append(o.options.customPaging.call(this,o,e)));o.$dots=t.appendTo(o.options.appendDots),o.$dots.find("li").first().addClass("slick-active")}},t.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each((function(e,t){i(t).attr("data-slick-index",e).data("originalStyling",i(t).attr("style")||"")})),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?i('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),!0!==e.options.centerMode&&!0!==e.options.swipeToSlide||(e.options.slidesToScroll=1),i("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),!0===e.options.draggable&&e.$list.addClass("draggable")},t.prototype.buildRows=function(){var i,e,t,o,s,n,r,l=this;if(o=document.createDocumentFragment(),n=l.$slider.children(),l.options.rows>0){for(r=l.options.slidesPerRow*l.options.rows,s=Math.ceil(n.length/r),i=0;i<s;i++){var d=document.createElement("div");for(e=0;e<l.options.rows;e++){var a=document.createElement("div");for(t=0;t<l.options.slidesPerRow;t++){var c=i*r+(e*l.options.slidesPerRow+t);n.get(c)&&a.appendChild(n.get(c))}d.appendChild(a)}o.appendChild(d)}l.$slider.empty().append(o),l.$slider.children().children().children().css({width:100/l.options.slidesPerRow+"%",display:"inline-block"})}},t.prototype.checkResponsive=function(e,t){var o,s,n,r=this,l=!1,d=r.$slider.width(),a=window.innerWidth||i(window).width();if("window"===r.respondTo?n=a:"slider"===r.respondTo?n=d:"min"===r.respondTo&&(n=Math.min(a,d)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){for(o in s=null,r.breakpoints)r.breakpoints.hasOwnProperty(o)&&(!1===r.originalSettings.mobileFirst?n<r.breakpoints[o]&&(s=r.breakpoints[o]):n>r.breakpoints[o]&&(s=r.breakpoints[o]));null!==s?null!==r.activeBreakpoint?(s!==r.activeBreakpoint||t)&&(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e),l=s),e||!1===l||r.$slider.trigger("breakpoint",[r,l])}},t.prototype.changeSlide=function(e,t){var o,s,n=this,r=i(e.currentTarget);switch(r.is("a")&&e.preventDefault(),r.is("li")||(r=r.closest("li")),o=n.slideCount%n.options.slidesToScroll!=0?0:(n.slideCount-n.currentSlide)%n.options.slidesToScroll,e.data.message){case"previous":s=0===o?n.options.slidesToScroll:n.options.slidesToShow-o,n.slideCount>n.options.slidesToShow&&n.slideHandler(n.currentSlide-s,!1,t);break;case"next":s=0===o?n.options.slidesToScroll:o,n.slideCount>n.options.slidesToShow&&n.slideHandler(n.currentSlide+s,!1,t);break;case"index":var l=0===e.data.index?0:e.data.index||r.index()*n.options.slidesToScroll;n.slideHandler(n.checkNavigable(l),!1,t),r.children().trigger("focus");break;default:return}},t.prototype.checkNavigable=function(i){var e,t;if(t=0,i>(e=this.getNavigableIndexes())[e.length-1])i=e[e.length-1];else for(var o in e){if(i<e[o]){i=t;break}t=e[o]}return i},t.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(i("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",i.proxy(e.interrupt,e,!0)).off("mouseleave.slick",i.proxy(e.interrupt,e,!1)),!0===e.options.accessibility&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),i(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),!0===e.options.accessibility&&e.$list.off("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().off("click.slick",e.selectHandler),i(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),i(window).off("resize.slick.slick-"+e.instanceUid,e.resize),i("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),i(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},t.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",i.proxy(e.interrupt,e,!1))},t.prototype.cleanUpRows=function(){var i,e=this;e.options.rows>0&&((i=e.$slides.children().children()).removeAttr("style"),e.$slider.empty().append(i))},t.prototype.clickHandler=function(i){!1===this.shouldClick&&(i.stopImmediatePropagation(),i.stopPropagation(),i.preventDefault())},t.prototype.destroy=function(e){var t=this;t.autoPlayClear(),t.touchObject={},t.cleanUpEvents(),i(".slick-cloned",t.$slider).detach(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.$prevArrow.length&&(t.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove()),t.$nextArrow&&t.$nextArrow.length&&(t.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove()),t.$slides&&(t.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each((function(){i(this).attr("style",i(this).data("originalStyling"))})),t.$slideTrack.children(this.options.slide).detach(),t.$slideTrack.detach(),t.$list.detach(),t.$slider.append(t.$slides)),t.cleanUpRows(),t.$slider.removeClass("slick-slider"),t.$slider.removeClass("slick-initialized"),t.$slider.removeClass("slick-dotted"),t.unslicked=!0,e||t.$slider.trigger("destroy",[t])},t.prototype.disableTransition=function(i){var e=this,t={};t[e.transitionType]="",!1===e.options.fade?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},t.prototype.fadeSlide=function(i,e){var t=this;!1===t.cssTransitions?(t.$slides.eq(i).css({zIndex:t.options.zIndex}),t.$slides.eq(i).animate({opacity:1},t.options.speed,t.options.easing,e)):(t.applyTransition(i),t.$slides.eq(i).css({opacity:1,zIndex:t.options.zIndex}),e&&setTimeout((function(){t.disableTransition(i),e.call()}),t.options.speed))},t.prototype.fadeSlideOut=function(i){var e=this;!1===e.cssTransitions?e.$slides.eq(i).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(i),e.$slides.eq(i).css({opacity:0,zIndex:e.options.zIndex-2}))},t.prototype.filterSlides=t.prototype.slickFilter=function(i){var e=this;null!==i&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(i).appendTo(e.$slideTrack),e.reinit())},t.prototype.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",(function(t){t.stopImmediatePropagation();var o=i(this);setTimeout((function(){e.options.pauseOnFocus&&(e.focussed=o.is(":focus"),e.autoPlay())}),0)}))},t.prototype.getCurrent=t.prototype.slickCurrentSlide=function(){return this.currentSlide},t.prototype.getDotCount=function(){var i=this,e=0,t=0,o=0;if(!0===i.options.infinite)if(i.slideCount<=i.options.slidesToShow)++o;else for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else if(!0===i.options.centerMode)o=i.slideCount;else if(i.options.asNavFor)for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else o=1+Math.ceil((i.slideCount-i.options.slidesToShow)/i.options.slidesToScroll);return o-1},t.prototype.getLeft=function(i){var e,t,o,s,n=this,r=0;return n.slideOffset=0,t=n.$slides.first().outerHeight(!0),!0===n.options.infinite?(n.slideCount>n.options.slidesToShow&&(n.slideOffset=n.slideWidth*n.options.slidesToShow*-1,s=-1,!0===n.options.vertical&&!0===n.options.centerMode&&(2===n.options.slidesToShow?s=-1.5:1===n.options.slidesToShow&&(s=-2)),r=t*n.options.slidesToShow*s),n.slideCount%n.options.slidesToScroll!=0&&i+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(i>n.slideCount?(n.slideOffset=(n.options.slidesToShow-(i-n.slideCount))*n.slideWidth*-1,r=(n.options.slidesToShow-(i-n.slideCount))*t*-1):(n.slideOffset=n.slideCount%n.options.slidesToScroll*n.slideWidth*-1,r=n.slideCount%n.options.slidesToScroll*t*-1))):i+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(i+n.options.slidesToShow-n.slideCount)*n.slideWidth,r=(i+n.options.slidesToShow-n.slideCount)*t),n.slideCount<=n.options.slidesToShow&&(n.slideOffset=0,r=0),!0===n.options.centerMode&&n.slideCount<=n.options.slidesToShow?n.slideOffset=n.slideWidth*Math.floor(n.options.slidesToShow)/2-n.slideWidth*n.slideCount/2:!0===n.options.centerMode&&!0===n.options.infinite?n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)-n.slideWidth:!0===n.options.centerMode&&(n.slideOffset=0,n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)),e=!1===n.options.vertical?i*n.slideWidth*-1+n.slideOffset:i*t*-1+r,!0===n.options.variableWidth&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,!0===n.options.centerMode&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow+1),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,e+=(n.$list.width()-o.outerWidth())/2)),e},t.prototype.getOption=t.prototype.slickGetOption=function(i){return this.options[i]},t.prototype.getNavigableIndexes=function(){var i,e=this,t=0,o=0,s=[];for(!1===e.options.infinite?i=e.slideCount:(t=-1*e.options.slidesToScroll,o=-1*e.options.slidesToScroll,i=2*e.slideCount);t<i;)s.push(t),t=o+e.options.slidesToScroll,o+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return s},t.prototype.getSlick=function(){return this},t.prototype.getSlideCount=function(){var e,t,o=this;return t=!0===o.options.centerMode?o.slideWidth*Math.floor(o.options.slidesToShow/2):0,!0===o.options.swipeToSlide?(o.$slideTrack.find(".slick-slide").each((function(s,n){if(n.offsetLeft-t+i(n).outerWidth()/2>-1*o.swipeLeft)return e=n,!1})),Math.abs(i(e).attr("data-slick-index")-o.currentSlide)||1):o.options.slidesToScroll},t.prototype.goTo=t.prototype.slickGoTo=function(i,e){this.changeSlide({data:{message:"index",index:parseInt(i)}},e)},t.prototype.init=function(e){var t=this;i(t.$slider).hasClass("slick-initialized")||(i(t.$slider).addClass("slick-initialized"),t.buildRows(),t.buildOut(),t.setProps(),t.startLoad(),t.loadSlider(),t.initializeEvents(),t.updateArrows(),t.updateDots(),t.checkResponsive(!0),t.focusHandler()),e&&t.$slider.trigger("init",[t]),!0===t.options.accessibility&&t.initADA(),t.options.autoplay&&(t.paused=!1,t.autoPlay())},t.prototype.initADA=function(){var e=this,t=Math.ceil(e.slideCount/e.options.slidesToShow),o=e.getNavigableIndexes().filter((function(i){return i>=0&&i<e.slideCount}));e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==e.$dots&&(e.$slides.not(e.$slideTrack.find(".slick-cloned")).each((function(t){var s=o.indexOf(t);if(i(this).attr({role:"tabpanel",id:"slick-slide"+e.instanceUid+t,tabindex:-1}),-1!==s){var n="slick-slide-control"+e.instanceUid+s;i("#"+n).length&&i(this).attr({"aria-describedby":n})}})),e.$dots.attr("role","tablist").find("li").each((function(s){var n=o[s];i(this).attr({role:"presentation"}),i(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+e.instanceUid+s,"aria-controls":"slick-slide"+e.instanceUid+n,"aria-label":s+1+" of "+t,"aria-selected":null,tabindex:"-1"})})).eq(e.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var s=e.currentSlide,n=s+e.options.slidesToShow;s<n;s++)e.options.focusOnChange?e.$slides.eq(s).attr({tabindex:"0"}):e.$slides.eq(s).removeAttr("tabindex");e.activateADA()},t.prototype.initArrowEvents=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},i.changeSlide),i.$nextArrow.off("click.slick").on("click.slick",{message:"next"},i.changeSlide),!0===i.options.accessibility&&(i.$prevArrow.on("keydown.slick",i.keyHandler),i.$nextArrow.on("keydown.slick",i.keyHandler)))},t.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&(i("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),!0===e.options.accessibility&&e.$dots.on("keydown.slick",e.keyHandler)),!0===e.options.dots&&!0===e.options.pauseOnDotsHover&&e.slideCount>e.options.slidesToShow&&i("li",e.$dots).on("mouseenter.slick",i.proxy(e.interrupt,e,!0)).on("mouseleave.slick",i.proxy(e.interrupt,e,!1))},t.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",i.proxy(e.interrupt,e,!1)))},t.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),i(document).on(e.visibilityChange,i.proxy(e.visibility,e)),!0===e.options.accessibility&&e.$list.on("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),i(window).on("orientationchange.slick.slick-"+e.instanceUid,i.proxy(e.orientationChange,e)),i(window).on("resize.slick.slick-"+e.instanceUid,i.proxy(e.resize,e)),i("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),i(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),i(e.setPosition)},t.prototype.initUI=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.show(),i.$nextArrow.show()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.show()},t.prototype.keyHandler=function(i){var e=this;i.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===i.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===i.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},t.prototype.lazyLoad=function(){var e,t,o,s=this;function n(e){i("img[data-lazy]",e).each((function(){var e=i(this),t=i(this).attr("data-lazy"),o=i(this).attr("data-srcset"),n=i(this).attr("data-sizes")||s.$slider.attr("data-sizes"),r=document.createElement("img");r.onload=function(){e.animate({opacity:0},100,(function(){o&&(e.attr("srcset",o),n&&e.attr("sizes",n)),e.attr("src",t).animate({opacity:1},200,(function(){e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")})),s.$slider.trigger("lazyLoaded",[s,e,t])}))},r.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),s.$slider.trigger("lazyLoadError",[s,e,t])},r.src=t}))}if(!0===s.options.centerMode?!0===s.options.infinite?o=(t=s.currentSlide+(s.options.slidesToShow/2+1))+s.options.slidesToShow+2:(t=Math.max(0,s.currentSlide-(s.options.slidesToShow/2+1)),o=s.options.slidesToShow/2+1+2+s.currentSlide):(t=s.options.infinite?s.options.slidesToShow+s.currentSlide:s.currentSlide,o=Math.ceil(t+s.options.slidesToShow),!0===s.options.fade&&(t>0&&t--,o<=s.slideCount&&o++)),e=s.$slider.find(".slick-slide").slice(t,o),"anticipated"===s.options.lazyLoad)for(var r=t-1,l=o,d=s.$slider.find(".slick-slide"),a=0;a<s.options.slidesToScroll;a++)r<0&&(r=s.slideCount-1),e=(e=e.add(d.eq(r))).add(d.eq(l)),r--,l++;n(e),s.slideCount<=s.options.slidesToShow?n(s.$slider.find(".slick-slide")):s.currentSlide>=s.slideCount-s.options.slidesToShow?n(s.$slider.find(".slick-cloned").slice(0,s.options.slidesToShow)):0===s.currentSlide&&n(s.$slider.find(".slick-cloned").slice(-1*s.options.slidesToShow))},t.prototype.loadSlider=function(){var i=this;i.setPosition(),i.$slideTrack.css({opacity:1}),i.$slider.removeClass("slick-loading"),i.initUI(),"progressive"===i.options.lazyLoad&&i.progressiveLazyLoad()},t.prototype.next=t.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},t.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},t.prototype.pause=t.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},t.prototype.play=t.prototype.slickPlay=function(){var i=this;i.autoPlay(),i.options.autoplay=!0,i.paused=!1,i.focussed=!1,i.interrupted=!1},t.prototype.postSlide=function(e){var t=this;t.unslicked||(t.$slider.trigger("afterChange",[t,e]),t.animating=!1,t.slideCount>t.options.slidesToShow&&t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),!0===t.options.accessibility&&(t.initADA(),t.options.focusOnChange&&i(t.$slides.get(t.currentSlide)).attr("tabindex",0).focus()))},t.prototype.prev=t.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},t.prototype.preventDefault=function(i){i.preventDefault()},t.prototype.progressiveLazyLoad=function(e){e=e||1;var t,o,s,n,r,l=this,d=i("img[data-lazy]",l.$slider);d.length?(t=d.first(),o=t.attr("data-lazy"),s=t.attr("data-srcset"),n=t.attr("data-sizes")||l.$slider.attr("data-sizes"),(r=document.createElement("img")).onload=function(){s&&(t.attr("srcset",s),n&&t.attr("sizes",n)),t.attr("src",o).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===l.options.adaptiveHeight&&l.setPosition(),l.$slider.trigger("lazyLoaded",[l,t,o]),l.progressiveLazyLoad()},r.onerror=function(){e<3?setTimeout((function(){l.progressiveLazyLoad(e+1)}),500):(t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),l.$slider.trigger("lazyLoadError",[l,t,o]),l.progressiveLazyLoad())},r.src=o):l.$slider.trigger("allImagesLoaded",[l])},t.prototype.refresh=function(e){var t,o,s=this;o=s.slideCount-s.options.slidesToShow,!s.options.infinite&&s.currentSlide>o&&(s.currentSlide=o),s.slideCount<=s.options.slidesToShow&&(s.currentSlide=0),t=s.currentSlide,s.destroy(!0),i.extend(s,s.initials,{currentSlide:t}),s.init(),e||s.changeSlide({data:{message:"index",index:t}},!1)},t.prototype.registerBreakpoints=function(){var e,t,o,s=this,n=s.options.responsive||null;if("array"===i.type(n)&&n.length){for(e in s.respondTo=s.options.respondTo||"window",n)if(o=s.breakpoints.length-1,n.hasOwnProperty(e)){for(t=n[e].breakpoint;o>=0;)s.breakpoints[o]&&s.breakpoints[o]===t&&s.breakpoints.splice(o,1),o--;s.breakpoints.push(t),s.breakpointSettings[t]=n[e].settings}s.breakpoints.sort((function(i,e){return s.options.mobileFirst?i-e:e-i}))}},t.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},t.prototype.resize=function(){var e=this;i(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout((function(){e.windowWidth=i(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()}),50))},t.prototype.removeSlide=t.prototype.slickRemove=function(i,e,t){var o=this;if(i="boolean"==typeof i?!0===(e=i)?0:o.slideCount-1:!0===e?--i:i,o.slideCount<1||i<0||i>o.slideCount-1)return!1;o.unload(),!0===t?o.$slideTrack.children().remove():o.$slideTrack.children(this.options.slide).eq(i).remove(),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slidesCache=o.$slides,o.reinit()},t.prototype.setCSS=function(i){var e,t,o=this,s={};!0===o.options.rtl&&(i=-i),e="left"==o.positionProp?Math.ceil(i)+"px":"0px",t="top"==o.positionProp?Math.ceil(i)+"px":"0px",s[o.positionProp]=i,!1===o.transformsEnabled?o.$slideTrack.css(s):(s={},!1===o.cssTransitions?(s[o.animType]="translate("+e+", "+t+")",o.$slideTrack.css(s)):(s[o.animType]="translate3d("+e+", "+t+", 0px)",o.$slideTrack.css(s)))},t.prototype.setDimensions=function(){var i=this;!1===i.options.vertical?!0===i.options.centerMode&&i.$list.css({padding:"0px "+i.options.centerPadding}):(i.$list.height(i.$slides.first().outerHeight(!0)*i.options.slidesToShow),!0===i.options.centerMode&&i.$list.css({padding:i.options.centerPadding+" 0px"})),i.listWidth=i.$list.width(),i.listHeight=i.$list.height(),!1===i.options.vertical&&!1===i.options.variableWidth?(i.slideWidth=Math.ceil(i.listWidth/i.options.slidesToShow),i.$slideTrack.width(Math.ceil(i.slideWidth*i.$slideTrack.children(".slick-slide").length))):!0===i.options.variableWidth?i.$slideTrack.width(5e3*i.slideCount):(i.slideWidth=Math.ceil(i.listWidth),i.$slideTrack.height(Math.ceil(i.$slides.first().outerHeight(!0)*i.$slideTrack.children(".slick-slide").length)));var e=i.$slides.first().outerWidth(!0)-i.$slides.first().width();!1===i.options.variableWidth&&i.$slideTrack.children(".slick-slide").width(i.slideWidth-e)},t.prototype.setFade=function(){var e,t=this;t.$slides.each((function(o,s){e=t.slideWidth*o*-1,!0===t.options.rtl?i(s).css({position:"relative",right:e,top:0,zIndex:t.options.zIndex-2,opacity:0}):i(s).css({position:"relative",left:e,top:0,zIndex:t.options.zIndex-2,opacity:0})})),t.$slides.eq(t.currentSlide).css({zIndex:t.options.zIndex-1,opacity:1})},t.prototype.setHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.css("height",e)}},t.prototype.setOption=t.prototype.slickSetOption=function(){var e,t,o,s,n,r=this,l=!1;if("object"===i.type(arguments[0])?(o=arguments[0],l=arguments[1],n="multiple"):"string"===i.type(arguments[0])&&(o=arguments[0],s=arguments[1],l=arguments[2],"responsive"===arguments[0]&&"array"===i.type(arguments[1])?n="responsive":void 0!==arguments[1]&&(n="single")),"single"===n)r.options[o]=s;else if("multiple"===n)i.each(o,(function(i,e){r.options[i]=e}));else if("responsive"===n)for(t in s)if("array"!==i.type(r.options.responsive))r.options.responsive=[s[t]];else{for(e=r.options.responsive.length-1;e>=0;)r.options.responsive[e].breakpoint===s[t].breakpoint&&r.options.responsive.splice(e,1),e--;r.options.responsive.push(s[t])}l&&(r.unload(),r.reinit())},t.prototype.setPosition=function(){var i=this;i.setDimensions(),i.setHeight(),!1===i.options.fade?i.setCSS(i.getLeft(i.currentSlide)):i.setFade(),i.$slider.trigger("setPosition",[i])},t.prototype.setProps=function(){var i=this,e=document.body.style;i.positionProp=!0===i.options.vertical?"top":"left","top"===i.positionProp?i.$slider.addClass("slick-vertical"):i.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===i.options.useCSS&&(i.cssTransitions=!0),i.options.fade&&("number"==typeof i.options.zIndex?i.options.zIndex<3&&(i.options.zIndex=3):i.options.zIndex=i.defaults.zIndex),void 0!==e.OTransform&&(i.animType="OTransform",i.transformType="-o-transform",i.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.MozTransform&&(i.animType="MozTransform",i.transformType="-moz-transform",i.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(i.animType=!1)),void 0!==e.webkitTransform&&(i.animType="webkitTransform",i.transformType="-webkit-transform",i.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.msTransform&&(i.animType="msTransform",i.transformType="-ms-transform",i.transitionType="msTransition",void 0===e.msTransform&&(i.animType=!1)),void 0!==e.transform&&!1!==i.animType&&(i.animType="transform",i.transformType="transform",i.transitionType="transition"),i.transformsEnabled=i.options.useTransform&&null!==i.animType&&!1!==i.animType},t.prototype.setSlideClasses=function(i){var e,t,o,s,n=this;if(t=n.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),n.$slides.eq(i).addClass("slick-current"),!0===n.options.centerMode){var r=n.options.slidesToShow%2==0?1:0;e=Math.floor(n.options.slidesToShow/2),!0===n.options.infinite&&(i>=e&&i<=n.slideCount-1-e?n.$slides.slice(i-e+r,i+e+1).addClass("slick-active").attr("aria-hidden","false"):(o=n.options.slidesToShow+i,t.slice(o-e+1+r,o+e+2).addClass("slick-active").attr("aria-hidden","false")),0===i?t.eq(t.length-1-n.options.slidesToShow).addClass("slick-center"):i===n.slideCount-1&&t.eq(n.options.slidesToShow).addClass("slick-center")),n.$slides.eq(i).addClass("slick-center")}else i>=0&&i<=n.slideCount-n.options.slidesToShow?n.$slides.slice(i,i+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):t.length<=n.options.slidesToShow?t.addClass("slick-active").attr("aria-hidden","false"):(s=n.slideCount%n.options.slidesToShow,o=!0===n.options.infinite?n.options.slidesToShow+i:i,n.options.slidesToShow==n.options.slidesToScroll&&n.slideCount-i<n.options.slidesToShow?t.slice(o-(n.options.slidesToShow-s),o+s).addClass("slick-active").attr("aria-hidden","false"):t.slice(o,o+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==n.options.lazyLoad&&"anticipated"!==n.options.lazyLoad||n.lazyLoad()},t.prototype.setupInfinite=function(){var e,t,o,s=this;if(!0===s.options.fade&&(s.options.centerMode=!1),!0===s.options.infinite&&!1===s.options.fade&&(t=null,s.slideCount>s.options.slidesToShow)){for(o=!0===s.options.centerMode?s.options.slidesToShow+1:s.options.slidesToShow,e=s.slideCount;e>s.slideCount-o;e-=1)t=e-1,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t-s.slideCount).prependTo(s.$slideTrack).addClass("slick-cloned");for(e=0;e<o+s.slideCount;e+=1)t=e,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t+s.slideCount).appendTo(s.$slideTrack).addClass("slick-cloned");s.$slideTrack.find(".slick-cloned").find("[id]").each((function(){i(this).attr("id","")}))}},t.prototype.interrupt=function(i){i||this.autoPlay(),this.interrupted=i},t.prototype.selectHandler=function(e){var t=this,o=i(e.target).is(".slick-slide")?i(e.target):i(e.target).parents(".slick-slide"),s=parseInt(o.attr("data-slick-index"));s||(s=0),t.slideCount<=t.options.slidesToShow?t.slideHandler(s,!1,!0):t.slideHandler(s)},t.prototype.slideHandler=function(i,e,t){var o,s,n,r,l,d=null,a=this;if(e=e||!1,!(!0===a.animating&&!0===a.options.waitForAnimate||!0===a.options.fade&&a.currentSlide===i))if(!1===e&&a.asNavFor(i),o=i,d=a.getLeft(o),r=a.getLeft(a.currentSlide),a.currentLeft=null===a.swipeLeft?r:a.swipeLeft,!1===a.options.infinite&&!1===a.options.centerMode&&(i<0||i>a.getDotCount()*a.options.slidesToScroll))!1===a.options.fade&&(o=a.currentSlide,!0!==t&&a.slideCount>a.options.slidesToShow?a.animateSlide(r,(function(){a.postSlide(o)})):a.postSlide(o));else if(!1===a.options.infinite&&!0===a.options.centerMode&&(i<0||i>a.slideCount-a.options.slidesToScroll))!1===a.options.fade&&(o=a.currentSlide,!0!==t&&a.slideCount>a.options.slidesToShow?a.animateSlide(r,(function(){a.postSlide(o)})):a.postSlide(o));else{if(a.options.autoplay&&clearInterval(a.autoPlayTimer),s=o<0?a.slideCount%a.options.slidesToScroll!=0?a.slideCount-a.slideCount%a.options.slidesToScroll:a.slideCount+o:o>=a.slideCount?a.slideCount%a.options.slidesToScroll!=0?0:o-a.slideCount:o,a.animating=!0,a.$slider.trigger("beforeChange",[a,a.currentSlide,s]),n=a.currentSlide,a.currentSlide=s,a.setSlideClasses(a.currentSlide),a.options.asNavFor&&(l=(l=a.getNavTarget()).slick("getSlick")).slideCount<=l.options.slidesToShow&&l.setSlideClasses(a.currentSlide),a.updateDots(),a.updateArrows(),!0===a.options.fade)return!0!==t?(a.fadeSlideOut(n),a.fadeSlide(s,(function(){a.postSlide(s)}))):a.postSlide(s),void a.animateHeight();!0!==t&&a.slideCount>a.options.slidesToShow?a.animateSlide(d,(function(){a.postSlide(s)})):a.postSlide(s)}},t.prototype.startLoad=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.hide(),i.$nextArrow.hide()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.hide(),i.$slider.addClass("slick-loading")},t.prototype.swipeDirection=function(){var i,e,t,o,s=this;return i=s.touchObject.startX-s.touchObject.curX,e=s.touchObject.startY-s.touchObject.curY,t=Math.atan2(e,i),(o=Math.round(180*t/Math.PI))<0&&(o=360-Math.abs(o)),o<=45&&o>=0||o<=360&&o>=315?!1===s.options.rtl?"left":"right":o>=135&&o<=225?!1===s.options.rtl?"right":"left":!0===s.options.verticalSwiping?o>=35&&o<=135?"down":"up":"vertical"},t.prototype.swipeEnd=function(i){var e,t,o=this;if(o.dragging=!1,o.swiping=!1,o.scrolling)return o.scrolling=!1,!1;if(o.interrupted=!1,o.shouldClick=!(o.touchObject.swipeLength>10),void 0===o.touchObject.curX)return!1;if(!0===o.touchObject.edgeHit&&o.$slider.trigger("edge",[o,o.swipeDirection()]),o.touchObject.swipeLength>=o.touchObject.minSwipe){switch(t=o.swipeDirection()){case"left":case"down":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide+o.getSlideCount()):o.currentSlide+o.getSlideCount(),o.currentDirection=0;break;case"right":case"up":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide-o.getSlideCount()):o.currentSlide-o.getSlideCount(),o.currentDirection=1}"vertical"!=t&&(o.slideHandler(e),o.touchObject={},o.$slider.trigger("swipe",[o,t]))}else o.touchObject.startX!==o.touchObject.curX&&(o.slideHandler(o.currentSlide),o.touchObject={})},t.prototype.swipeHandler=function(i){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==i.type.indexOf("mouse")))switch(e.touchObject.fingerCount=i.originalEvent&&void 0!==i.originalEvent.touches?i.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),i.data.action){case"start":e.swipeStart(i);break;case"move":e.swipeMove(i);break;case"end":e.swipeEnd(i)}},t.prototype.swipeMove=function(i){var e,t,o,s,n,r,l=this;return n=void 0!==i.originalEvent?i.originalEvent.touches:null,!(!l.dragging||l.scrolling||n&&1!==n.length)&&(e=l.getLeft(l.currentSlide),l.touchObject.curX=void 0!==n?n[0].pageX:i.clientX,l.touchObject.curY=void 0!==n?n[0].pageY:i.clientY,l.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(l.touchObject.curX-l.touchObject.startX,2))),r=Math.round(Math.sqrt(Math.pow(l.touchObject.curY-l.touchObject.startY,2))),!l.options.verticalSwiping&&!l.swiping&&r>4?(l.scrolling=!0,!1):(!0===l.options.verticalSwiping&&(l.touchObject.swipeLength=r),t=l.swipeDirection(),void 0!==i.originalEvent&&l.touchObject.swipeLength>4&&(l.swiping=!0,i.preventDefault()),s=(!1===l.options.rtl?1:-1)*(l.touchObject.curX>l.touchObject.startX?1:-1),!0===l.options.verticalSwiping&&(s=l.touchObject.curY>l.touchObject.startY?1:-1),o=l.touchObject.swipeLength,l.touchObject.edgeHit=!1,!1===l.options.infinite&&(0===l.currentSlide&&"right"===t||l.currentSlide>=l.getDotCount()&&"left"===t)&&(o=l.touchObject.swipeLength*l.options.edgeFriction,l.touchObject.edgeHit=!0),!1===l.options.vertical?l.swipeLeft=e+o*s:l.swipeLeft=e+o*(l.$list.height()/l.listWidth)*s,!0===l.options.verticalSwiping&&(l.swipeLeft=e+o*s),!0!==l.options.fade&&!1!==l.options.touchMove&&(!0===l.animating?(l.swipeLeft=null,!1):void l.setCSS(l.swipeLeft))))},t.prototype.swipeStart=function(i){var e,t=this;if(t.interrupted=!0,1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow)return t.touchObject={},!1;void 0!==i.originalEvent&&void 0!==i.originalEvent.touches&&(e=i.originalEvent.touches[0]),t.touchObject.startX=t.touchObject.curX=void 0!==e?e.pageX:i.clientX,t.touchObject.startY=t.touchObject.curY=void 0!==e?e.pageY:i.clientY,t.dragging=!0},t.prototype.unfilterSlides=t.prototype.slickUnfilter=function(){var i=this;null!==i.$slidesCache&&(i.unload(),i.$slideTrack.children(this.options.slide).detach(),i.$slidesCache.appendTo(i.$slideTrack),i.reinit())},t.prototype.unload=function(){var e=this;i(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},t.prototype.unslick=function(i){var e=this;e.$slider.trigger("unslick",[e,i]),e.destroy()},t.prototype.updateArrows=function(){var i=this;Math.floor(i.options.slidesToShow/2),!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&!i.options.infinite&&(i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===i.currentSlide?(i.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(i.currentSlide>=i.slideCount-i.options.slidesToShow&&!1===i.options.centerMode||i.currentSlide>=i.slideCount-1&&!0===i.options.centerMode)&&(i.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},t.prototype.updateDots=function(){var i=this;null!==i.$dots&&(i.$dots.find("li").removeClass("slick-active").end(),i.$dots.find("li").eq(Math.floor(i.currentSlide/i.options.slidesToScroll)).addClass("slick-active"))},t.prototype.visibility=function(){var i=this;i.options.autoplay&&(document[i.hidden]?i.interrupted=!0:i.interrupted=!1)},i.fn.slick=function(){var i,e,o=this,s=arguments[0],n=Array.prototype.slice.call(arguments,1),r=o.length;for(i=0;i<r;i++)if("object"==typeof s||void 0===s?o[i].slick=new t(o[i],s):e=o[i].slick[s].apply(o[i].slick,n),void 0!==e)return e;return o}},void 0===(n=o.apply(e,s))||(i.exports=n)}()}}]);
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";(self.webpackChunkkcc_gem_theme_core=self.webpackChunkkcc_gem_theme_core||[]).push([[238],{1238:function(e,n,t){t.r(n);var o=t(9755),a=document.getElementById("headerGlobalNavbar"),l="show";function r(){var e=document.getElementById("navGlobalBottom").querySelectorAll(".dropdown-toggle");window.innerWidth<=992?function(e){for(var n=e.length,t=0;t<n;t++)e[t].parentElement.classList.contains(l)&&function(){if(!0!==a.navbar_toggled){var e=document.getElementById("headerGlobalNavbarContent");a.navbar_toggled=!0,o(e).collapse(l)}}()}(e):a.navbar_toggled=!1}n.default=function(){a&&window.addEventListener("resize",r)}}}]);
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";(self.webpackChunkkcc_gem_theme_core=self.webpackChunkkcc_gem_theme_core||[]).push([[282],{8282:function(e,t,a){a.r(t);var c=["#gsc-i-id1","#gs_st50 .gsst_a",".gsc-search-button .gsc-search-button.gsc-search-button-v2"],n="header-global__search-icon",s="header-global__close-icon";function o(e,t,a){document.querySelector(e).setAttribute(t,a)}function r(e,t,a){t?(e.classList.add(a+"--hidden"),e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex","-1")):(e.classList.remove(a+"--hidden"),e.setAttribute("aria-hidden","false"),e.setAttribute("tabindex","0"))}function i(e){(e.target.closest("#openSearchButton")||e.target.closest("#closeSearchButton"))&&function(e){var t,a,i,l;e.target.closest("#openSearchButton")?t=!0:e.target.closest("#closeSearchButton")&&(t=!1),function(e){var t=document.getElementById("openSearchButton"),a=document.getElementById("closeSearchButton"),i=document.getElementById("gsc-i-id1"),l=c.length;if(e){r(t,!0,n),r(a,!1,s);for(var d=0;d<l;d++)o(c[d],"tabindex","0");i.focus()}else for(r(t,!1,n),r(a,!0,s),d=0;d<l;d++)o(c[d],"tabindex","-1")}(t),a=document.getElementById("searchCollapse"),i=document.getElementById("headerGlobalNavbar"),l=a.getAttribute("aria-hidden"),a.classList.toggle("header-global__search-collapse--visible"),"true"===l?a.setAttribute("aria-hidden","false"):a.setAttribute("aria-hidden","true"),i.classList.toggle("header-global__navbar--search-toggle")}(e)}t.default=function(){document.getElementById("openSearchButton")&&document.addEventListener("click",i)}}}]);
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";(self.webpackChunkkcc_gem_theme_core=self.webpackChunkkcc_gem_theme_core||[]).push([[315],{5315:function(e,c,t){t.r(c),c.default=function(){}}}]);
|
@@ -0,0 +1,2 @@
|
|
1
|
+
@import url(https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Oswald:wght@400;500&family=Roboto:wght@400;500;700&display=swap);
|
2
|
+
.slick-slider{position:relative;display:block;box-sizing:border-box;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;touch-action:pan-y;-webkit-tap-highlight-color:rgba(0,0,0,0)}.slick-list{position:relative;overflow:hidden;display:block;margin:0;padding:0}.slick-list:focus{outline:none}.slick-list.dragging{cursor:pointer;cursor:hand}.slick-slider .slick-track,.slick-slider .slick-list{transform:translate3d(0, 0, 0)}.slick-track{position:relative;left:0;top:0;display:block;margin-left:auto;margin-right:auto}.slick-track:before,.slick-track:after{content:"";display:table}.slick-track:after{clear:both}.slick-loading .slick-track{visibility:hidden}.slick-slide{float:left;height:100%;min-height:1px;display:none}[dir=rtl] .slick-slide{float:right}.slick-slide img{display:block}.slick-slide.slick-loading img{display:none}.slick-slide.dragging img{pointer-events:none}.slick-initialized .slick-slide{display:block}.slick-loading .slick-slide{visibility:hidden}.slick-vertical .slick-slide{display:block;height:auto;border:1px solid rgba(0,0,0,0)}.slick-arrow.slick-hidden{display:none}.slick-loading .slick-list{background:#fff url("/assets/img/ajax-loader.gif") center center no-repeat}.slick-prev,.slick-next{position:absolute;display:block;height:20px;width:20px;line-height:0px;font-size:0px;cursor:pointer;background:rgba(0,0,0,0);color:rgba(0,0,0,0);top:50%;transform:translate(0, -50%);padding:0;border:none;outline:none}.slick-prev:hover,.slick-prev:focus,.slick-next:hover,.slick-next:focus{outline:none;background:rgba(0,0,0,0);color:rgba(0,0,0,0)}.slick-prev:hover:before,.slick-prev:focus:before,.slick-next:hover:before,.slick-next:focus:before{opacity:1}.slick-prev.slick-disabled:before,.slick-next.slick-disabled:before{opacity:.25}.slick-prev:before,.slick-next:before{font-family:"none";font-size:20px;line-height:1;color:#fff;opacity:.75;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.slick-prev{left:-25px}[dir=rtl] .slick-prev{left:auto;right:-25px}.slick-prev:before{content:"←"}[dir=rtl] .slick-prev:before{content:"→"}.slick-next{right:-25px}[dir=rtl] .slick-next{left:-25px;right:auto}.slick-next:before{content:"→"}[dir=rtl] .slick-next:before{content:"←"}.slick-dotted.slick-slider{margin-bottom:30px}.slick-dots{position:absolute;bottom:-25px;list-style:none;display:block;text-align:center;padding:0;margin:0;width:100%}.slick-dots li{position:relative;display:inline-block;height:20px;width:20px;margin:0 5px;padding:0;cursor:pointer}.slick-dots li button{border:0;background:rgba(0,0,0,0);display:block;height:20px;width:20px;outline:none;line-height:0px;font-size:0px;color:rgba(0,0,0,0);padding:5px;cursor:pointer}.slick-dots li button:hover,.slick-dots li button:focus{outline:none}.slick-dots li button:hover:before,.slick-dots li button:focus:before{opacity:1}.slick-dots li button:before{position:absolute;top:0;left:0;content:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12"><circle stroke-width=".75" stroke="%23000" fill="%23e5e8ed" cx="6" cy="6" r="3.5"/></svg>');width:20px;height:20px;font-family:"none";font-size:6px;line-height:20px;text-align:center;color:#000;opacity:.25;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.slick-dots li.slick-active button:before{color:#000;opacity:.75}@font-face{font-family:"eurostile";src:url("https://use.typekit.net/af/198f80/00000000000000003b9b2162/27/l?subset_id=2&fvd=i7&v=3") format("woff2"),url("https://use.typekit.net/af/198f80/00000000000000003b9b2162/27/d?subset_id=2&fvd=i7&v=3") format("woff"),url("https://use.typekit.net/af/198f80/00000000000000003b9b2162/27/a?subset_id=2&fvd=i7&v=3") format("opentype");font-display:swap;font-style:italic;font-weight:700}.hero-slider__slider{visibility:hidden !important;height:auto}.hero-slider__slider img{visibility:hidden;position:absolute;height:0}.slick-initialized.hero-slider__slider img{visibility:visible;position:relative;height:auto}.slick-initialized{visibility:visible !important}.hero-slider__slider--sub-heading{color:#fff;font-family:"Roboto",sans-serif;font-size:.7em;font-weight:400;letter-spacing:.01em;margin-bottom:2px;padding-top:5px;text-transform:uppercase}@media screen and (min-width: 768px){.hero-slider__slider--sub-heading{font-size:.9em}}@media screen and (min-width: 992px){.hero-slider__slider--sub-heading{font-size:1em}}@media screen and (min-width: 1200px){.hero-slider__slider--sub-heading{font-size:1.2em}}.hero-slider__slider--slide-heading{color:#fff;font-family:"Libre Franklin",sans-serif;font-size:1em;font-weight:300;letter-spacing:.02em;text-transform:uppercase}@media screen and (min-width: 360px){.hero-slider__slider--slide-heading{font-size:1.2em}}@media screen and (min-width: 768px){.hero-slider__slider--slide-heading{font-size:2.1em}}@media screen and (min-width: 992px){.hero-slider__slider--slide-heading{font-size:2.8em}}@media screen and (min-width: 1200px){.hero-slider__slider--slide-heading{font-size:3em}}.hero-slider__heading--bold{color:#fff;filter:drop-shadow(2px 2px 5px #000);font-family:"Libre Franklin",sans-serif;font-size:1em;font-weight:500;letter-spacing:.02em;text-transform:uppercase}@media screen and (min-width: 360px){.hero-slider__heading--bold{font-size:1.2em}}@media screen and (min-width: 768px){.hero-slider__heading--bold{font-size:2.1em}}@media screen and (min-width: 992px){.hero-slider__heading--bold{font-size:2.8em}}@media screen and (min-width: 1200px){.hero-slider__heading--bold{font-size:3em}}.hero-slider__slider{padding-left:0;padding-right:0}.hero-slider__slider--heading-container{margin-left:.5%;padding-left:5px;position:absolute;top:55%;width:10%;z-index:4444}@media screen and (min-width: 488px){.hero-slider__slider--heading-container{top:63%}}@media screen and (min-width: 576px){.hero-slider__slider--heading-container{top:64%}}@media screen and (min-width: 768px){.hero-slider__slider--heading-container{padding-left:10px;top:64.5%}}@media screen and (min-width: 992px){.hero-slider__slider--heading-container{padding-left:20px;top:70%}}@media screen and (min-width: 1200px){.hero-slider__slider--heading-container{top:71%}}.hero-slider__slides-4{width:10%}.hero-slider__slides-8{width:5%}.hero-slider__slider--slide-img{position:relative;width:100%}.hero-slider__slider .slick-next{right:10px}.hero-slider__slider .slick-prev{left:10px;z-index:1}@media screen and (min-width: 488px){.hero-slider__slider .slick-next{right:20px}}@media screen and (min-width: 488px){.hero-slider__slider .slick-prev{left:20px}}@media screen and (min-width: 576px){.hero-slider__slider .slick-next{right:25px}.hero-slider__slider .slick-prev{left:25px}}.hero-slider__slider .slick-next,.hero-slider__slider .slick-prev{height:25px;top:75%;width:25px}@media screen and (min-width: 992px){.hero-slider__slider .slick-next,.hero-slider__slider .slick-prev{height:40px;top:80%;width:40px}}.hero-slider__slider .slick-dots li button:before{opacity:1}.hero-slider__slider .slick-dots li.slick-active button:before{opacity:1}.hero-slider__slider .slick-dots li{margin-left:1px;margin-right:1px;padding-left:0;padding-right:0}.hero-slider__slide-img--border{border-color:#d9d9d9;border-style:solid;border-width:thin}.slick-next::before{content:url("/assets/img/dbl-next_mobile.svg")}.slick-prev::before{content:url("/assets/img/dbl-prev_mobile.svg")}@media screen and (min-width: 992px){.slick-next::before{content:url("/assets/img/dbl-next.svg")}.slick-prev::before{content:url("/assets/img/dbl-prev.svg")}}.hero-slider__button--toggle{background:rgba(0,0,0,0);border:none;color:rgba(0,0,0,0);cursor:pointer;display:block;font-size:0;height:25px;right:50%;margin-right:-12.5px;line-height:0;outline:none;padding:0;position:absolute;bottom:0;transform:translate(0, -50%);width:25px}@media screen and (min-width: 992px){.hero-slider__button--toggle{width:40px;bottom:25px;margin-right:-20px}}.hero-slider__button--toggle:before{content:url("/assets/img/pause.svg");opacity:.75}.hero-slider__button--play:before{content:url("/assets/img/play.svg");opacity:.75}.hero-slider__button--toggle:hover,.hero-slider__button--toggle:focus{color:rgba(0,0,0,0);outline:none;background:rgba(0,0,0,0)}.hero-slider__button--toggle:hover:before,.hero-slider__button--toggle:focus:before{opacity:1}.slick-dots li.slick-active button:before{content:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12"><circle fill="%230f3b63" cx="6" cy="6" r="3.5"/></svg>')}
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";(self.webpackChunkkcc_gem_theme_core=self.webpackChunkkcc_gem_theme_core||[]).push([[381],{3381:function(e,c,k){k.r(c)}}]);
|
@@ -0,0 +1 @@
|
|
1
|
+
(self.webpackChunkkcc_gem_theme_core=self.webpackChunkkcc_gem_theme_core||[]).push([[391],{3391:function(t,n,e){"use strict";function r(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function o(t){var n,e=t.target;"true"===e.dataset.value?n=!0:"false"===e.dataset.value&&(n=!1),null===n&&new Error('Error in userSettings.js module\n"currentSettingState" is undefined:\nMake sure you have a "data-value" attribute set to "true" or "false"');var r='<span class="sr-only">Turn setting '.concat(n?"on":"off","</span>");return window.localStorage.setItem(e.dataset.setting,(!n).toString()),e.classList.toggle("setting__button--".concat(n?"on":"off")),e.classList.toggle("setting__button--".concat(n?"off":"on")),e.dataset.value=(!n).toString(),e.innerHTML=r}e.r(n),e(1539),e(9714),e(4747),e(2526),e(1817),e(2165),e(6992),e(8783),e(3948),e(1038),e(7042),e(8309),e(4916),document.getElementById("videoButton"),n.default=function(){var t;(t=document.querySelectorAll(".setting__button"),function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return r(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?r(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).forEach((function(t){t.addEventListener("click",o),function(t){var n,e=t.dataset.setting;if(window.localStorage.getItem(e)&&t.dataset.value!==window.localStorage.getItem(e)){n="false"!=window.localStorage.getItem(e);var r='<span class="sr-only sr-only-focusable">Turn setting '.concat(n?"off":"on","</span>");t.dataset.value=n.toString(),t.classList.remove("setting__button--".concat(n?"off":"on")),t.classList.add("setting__button--".concat(n?"on":"off")),t.innerHTML=r}}(t)}))}},8533:function(t,n,e){"use strict";var r=e(2092).forEach,o=e(9341)("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},9341:function(t,n,e){"use strict";var r=e(7293);t.exports=function(t,n){var e=[][t];return!!e&&r((function(){e.call(null,n||function(){return 1},1)}))}},9714:function(t,n,e){"use strict";var r=e(1702),o=e(6530).PROPER,a=e(1320),c=e(9670),i=e(7976),s=e(1340),u=e(7293),l=e(7066),f="toString",g=RegExp.prototype,d=g.toString,v=r(l),p=u((function(){return"/a/b"!=d.call({source:"a",flags:"b"})})),m=o&&d.name!=f;(p||m)&&a(RegExp.prototype,f,(function(){var t=c(this),n=s(t.source),e=t.flags;return"/"+n+"/"+s(void 0===e&&i(g,t)&&!("flags"in g)?v(t):e)}),{unsafe:!0})},4747:function(t,n,e){var r=e(7854),o=e(8324),a=e(8509),c=e(8533),i=e(8880),s=function(t){if(t&&t.forEach!==c)try{i(t,"forEach",c)}catch(n){t.forEach=c}};for(var u in o)o[u]&&s(r[u]&&r[u].prototype);s(a)}}]);
|
@@ -0,0 +1 @@
|
|
1
|
+
(self.webpackChunkkcc_gem_theme_core=self.webpackChunkkcc_gem_theme_core||[]).push([[45],{6045:function(e,r,n){"use strict";n.r(r),n(4916),n(5306);var t=document.querySelectorAll(".hero-slider__slider--slide-heading"),a=/\*\*(\S+)\*\*/g;r.default=function(){document.querySelectorAll(".hero-slider__slider--slide-heading")&&function(e){for(var r=0;r<e.length;r++)(n=e[r]).innerHTML=n.innerHTML.replace(a,'<span class="typography__power-text">$1</span>');var n}(t)}},1530:function(e,r,n){"use strict";var t=n(8710).charAt;e.exports=function(e,r,n){return r+(n?t(e,r).length:1)}},7007:function(e,r,n){"use strict";n(4916);var t=n(1702),a=n(1320),i=n(2261),c=n(7293),o=n(5112),u=n(8880),l=o("species"),s=RegExp.prototype;e.exports=function(e,r,n,f){var v=o(e),d=!c((function(){var r={};return r[v]=function(){return 7},7!=""[e](r)})),p=d&&!c((function(){var r=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[l]=function(){return n},n.flags="",n[v]=/./[v]),n.exec=function(){return r=!0,null},n[v](""),!r}));if(!d||!p||n){var x=t(/./[v]),g=r(v,""[e],(function(e,r,n,a,c){var o=t(e),u=r.exec;return u===i||u===s.exec?d&&!c?{done:!0,value:x(r,n,a)}:{done:!0,value:o(n,r,a)}:{done:!1}}));a(String.prototype,e,g[0]),a(s,v,g[1])}f&&u(s[v],"sham",!0)}},647:function(e,r,n){var t=n(1702),a=n(7908),i=Math.floor,c=t("".charAt),o=t("".replace),u=t("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,r,n,t,f,v){var d=n+e.length,p=t.length,x=s;return void 0!==f&&(f=a(f),x=l),o(v,x,(function(a,o){var l;switch(c(o,0)){case"$":return"$";case"&":return e;case"`":return u(r,0,n);case"'":return u(r,d);case"<":l=f[u(o,1,-1)];break;default:var s=+o;if(0===s)return a;if(s>p){var v=i(s/10);return 0===v?a:v<=p?void 0===t[v-1]?c(o,1):t[v-1]+c(o,1):a}l=t[s-1]}return void 0===l?"":l}))}},7651:function(e,r,n){var t=n(7854),a=n(6916),i=n(9670),c=n(614),o=n(4326),u=n(2261),l=t.TypeError;e.exports=function(e,r){var n=e.exec;if(c(n)){var t=a(n,e,r);return null!==t&&i(t),t}if("RegExp"===o(e))return a(u,e,r);throw l("RegExp#exec called on incompatible receiver")}},2261:function(e,r,n){"use strict";var t,a,i=n(6916),c=n(1702),o=n(1340),u=n(7066),l=n(2999),s=n(2309),f=n(30),v=n(9909).get,d=n(9441),p=n(7168),x=s("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,h=g,I=c("".charAt),y=c("".indexOf),E=c("".replace),b=c("".slice),$=(a=/b*/g,i(g,t=/a/,"a"),i(g,a,"a"),0!==t.lastIndex||0!==a.lastIndex),_=l.BROKEN_CARET,R=void 0!==/()??/.exec("")[1];($||R||_||d||p)&&(h=function(e){var r,n,t,a,c,l,s,d=this,p=v(d),m=o(e),k=p.raw;if(k)return k.lastIndex=d.lastIndex,r=i(h,k,m),d.lastIndex=k.lastIndex,r;var S=p.groups,A=_&&d.sticky,w=i(u,d),T=d.source,C=0,M=m;if(A&&(w=E(w,"y",""),-1===y(w,"g")&&(w+="g"),M=b(m,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==I(m,d.lastIndex-1))&&(T="(?: "+T+")",M=" "+M,C++),n=new RegExp("^(?:"+T+")",w)),R&&(n=new RegExp("^"+T+"$(?!\\s)",w)),$&&(t=d.lastIndex),a=i(g,A?n:d,M),A?a?(a.input=b(a.input,C),a[0]=b(a[0],C),a.index=d.lastIndex,d.lastIndex+=a[0].length):d.lastIndex=0:$&&a&&(d.lastIndex=d.global?a.index+a[0].length:t),R&&a&&a.length>1&&i(x,a[0],n,(function(){for(c=1;c<arguments.length-2;c++)void 0===arguments[c]&&(a[c]=void 0)})),a&&S)for(a.groups=l=f(null),c=0;c<S.length;c++)l[(s=S[c])[0]]=a[s[1]];return a}),e.exports=h},7066:function(e,r,n){"use strict";var t=n(9670);e.exports=function(){var e=t(this),r="";return e.global&&(r+="g"),e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.dotAll&&(r+="s"),e.unicode&&(r+="u"),e.sticky&&(r+="y"),r}},2999:function(e,r,n){var t=n(7293),a=n(7854).RegExp,i=t((function(){var e=a("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),c=i||t((function(){return!a("a","y").sticky})),o=i||t((function(){var e=a("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:o,MISSED_STICKY:c,UNSUPPORTED_Y:i}},9441:function(e,r,n){var t=n(7293),a=n(7854).RegExp;e.exports=t((function(){var e=a(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},7168:function(e,r,n){var t=n(7293),a=n(7854).RegExp;e.exports=t((function(){var e=a("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},4916:function(e,r,n){"use strict";var t=n(2109),a=n(2261);t({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},5306:function(e,r,n){"use strict";var t=n(2104),a=n(6916),i=n(1702),c=n(7007),o=n(7293),u=n(9670),l=n(614),s=n(9303),f=n(7466),v=n(1340),d=n(4488),p=n(1530),x=n(8173),g=n(647),h=n(7651),I=n(5112)("replace"),y=Math.max,E=Math.min,b=i([].concat),$=i([].push),_=i("".indexOf),R=i("".slice),m="$0"==="a".replace(/./,"$0"),k=!!/./[I]&&""===/./[I]("a","$0");c("replace",(function(e,r,n){var i=k?"$":"$0";return[function(e,n){var t=d(this),i=null==e?void 0:x(e,I);return i?a(i,e,t,n):a(r,v(t),e,n)},function(e,a){var c=u(this),o=v(e);if("string"==typeof a&&-1===_(a,i)&&-1===_(a,"$<")){var d=n(r,c,o,a);if(d.done)return d.value}var x=l(a);x||(a=v(a));var I=c.global;if(I){var m=c.unicode;c.lastIndex=0}for(var k=[];;){var S=h(c,o);if(null===S)break;if($(k,S),!I)break;""===v(S[0])&&(c.lastIndex=p(o,f(c.lastIndex),m))}for(var A,w="",T=0,C=0;C<k.length;C++){for(var M=v((S=k[C])[0]),O=y(E(s(S.index),o.length),0),K=[],N=1;N<S.length;N++)$(K,void 0===(A=S[N])?A:String(A));var q=S.groups;if(x){var B=b([M],K,O,o);void 0!==q&&$(B,q);var D=v(t(a,void 0,B))}else D=g(M,o,O,K,q,a);O>=T&&(w+=R(o,T,O)+D,T=O+M.length)}return w+R(o,T)}]}),!!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!m||k)}}]);
|
@@ -0,0 +1 @@
|
|
1
|
+
(self.webpackChunkkcc_gem_theme_core=self.webpackChunkkcc_gem_theme_core||[]).push([[504],{9504:function(e,n,r){"use strict";r.r(n),r(4916),r(4765),r(5306);var t=/---?/g,a=/---/;function i(e){return-1===e.search(a)?"—":e}n.default=function e(n){if(3==n.nodeType&&(n.data=n.data.replace(t,i)),1==n.nodeType&&"SCRIPT"!=n.nodeName)for(var r=0;r<n.childNodes.length;r++)e(n.childNodes[r])}},1530:function(e,n,r){"use strict";var t=r(8710).charAt;e.exports=function(e,n,r){return n+(r?t(e,n).length:1)}},7007:function(e,n,r){"use strict";r(4916);var t=r(1702),a=r(1320),i=r(2261),u=r(7293),c=r(5112),o=r(8880),l=c("species"),s=RegExp.prototype;e.exports=function(e,n,r,f){var v=c(e),d=!u((function(){var n={};return n[v]=function(){return 7},7!=""[e](n)})),x=d&&!u((function(){var n=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[l]=function(){return r},r.flags="",r[v]=/./[v]),r.exec=function(){return n=!0,null},r[v](""),!n}));if(!d||!x||r){var p=t(/./[v]),g=n(v,""[e],(function(e,n,r,a,u){var c=t(e),o=n.exec;return o===i||o===s.exec?d&&!u?{done:!0,value:p(n,r,a)}:{done:!0,value:c(r,n,a)}:{done:!1}}));a(String.prototype,e,g[0]),a(s,v,g[1])}f&&o(s[v],"sham",!0)}},647:function(e,n,r){var t=r(1702),a=r(7908),i=Math.floor,u=t("".charAt),c=t("".replace),o=t("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,n,r,t,f,v){var d=r+e.length,x=t.length,p=s;return void 0!==f&&(f=a(f),p=l),c(v,p,(function(a,c){var l;switch(u(c,0)){case"$":return"$";case"&":return e;case"`":return o(n,0,r);case"'":return o(n,d);case"<":l=f[o(c,1,-1)];break;default:var s=+c;if(0===s)return a;if(s>x){var v=i(s/10);return 0===v?a:v<=x?void 0===t[v-1]?u(c,1):t[v-1]+u(c,1):a}l=t[s-1]}return void 0===l?"":l}))}},7651:function(e,n,r){var t=r(7854),a=r(6916),i=r(9670),u=r(614),c=r(4326),o=r(2261),l=t.TypeError;e.exports=function(e,n){var r=e.exec;if(u(r)){var t=a(r,e,n);return null!==t&&i(t),t}if("RegExp"===c(e))return a(o,e,n);throw l("RegExp#exec called on incompatible receiver")}},2261:function(e,n,r){"use strict";var t,a,i=r(6916),u=r(1702),c=r(1340),o=r(7066),l=r(2999),s=r(2309),f=r(30),v=r(9909).get,d=r(9441),x=r(7168),p=s("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,h=g,I=u("".charAt),E=u("".indexOf),b=u("".replace),R=u("".slice),y=(a=/b*/g,i(g,t=/a/,"a"),i(g,a,"a"),0!==t.lastIndex||0!==a.lastIndex),$=l.BROKEN_CARET,m=void 0!==/()??/.exec("")[1];(y||m||$||d||x)&&(h=function(e){var n,r,t,a,u,l,s,d=this,x=v(d),k=c(e),_=x.raw;if(_)return _.lastIndex=d.lastIndex,n=i(h,_,k),d.lastIndex=_.lastIndex,n;var w=x.groups,S=$&&d.sticky,T=i(o,d),A=d.source,C=0,N=k;if(S&&(T=b(T,"y",""),-1===E(T,"g")&&(T+="g"),N=R(k,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==I(k,d.lastIndex-1))&&(A="(?: "+A+")",N=" "+N,C++),r=new RegExp("^(?:"+A+")",T)),m&&(r=new RegExp("^"+A+"$(?!\\s)",T)),y&&(t=d.lastIndex),a=i(g,S?r:d,N),S?a?(a.input=R(a.input,C),a[0]=R(a[0],C),a.index=d.lastIndex,d.lastIndex+=a[0].length):d.lastIndex=0:y&&a&&(d.lastIndex=d.global?a.index+a[0].length:t),m&&a&&a.length>1&&i(p,a[0],r,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(a[u]=void 0)})),a&&w)for(a.groups=l=f(null),u=0;u<w.length;u++)l[(s=w[u])[0]]=a[s[1]];return a}),e.exports=h},7066:function(e,n,r){"use strict";var t=r(9670);e.exports=function(){var e=t(this),n="";return e.global&&(n+="g"),e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.dotAll&&(n+="s"),e.unicode&&(n+="u"),e.sticky&&(n+="y"),n}},2999:function(e,n,r){var t=r(7293),a=r(7854).RegExp,i=t((function(){var e=a("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),u=i||t((function(){return!a("a","y").sticky})),c=i||t((function(){var e=a("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:c,MISSED_STICKY:u,UNSUPPORTED_Y:i}},9441:function(e,n,r){var t=r(7293),a=r(7854).RegExp;e.exports=t((function(){var e=a(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},7168:function(e,n,r){var t=r(7293),a=r(7854).RegExp;e.exports=t((function(){var e=a("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},1150:function(e){e.exports=Object.is||function(e,n){return e===n?0!==e||1/e==1/n:e!=e&&n!=n}},4916:function(e,n,r){"use strict";var t=r(2109),a=r(2261);t({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},5306:function(e,n,r){"use strict";var t=r(2104),a=r(6916),i=r(1702),u=r(7007),c=r(7293),o=r(9670),l=r(614),s=r(9303),f=r(7466),v=r(1340),d=r(4488),x=r(1530),p=r(8173),g=r(647),h=r(7651),I=r(5112)("replace"),E=Math.max,b=Math.min,R=i([].concat),y=i([].push),$=i("".indexOf),m=i("".slice),k="$0"==="a".replace(/./,"$0"),_=!!/./[I]&&""===/./[I]("a","$0");u("replace",(function(e,n,r){var i=_?"$":"$0";return[function(e,r){var t=d(this),i=null==e?void 0:p(e,I);return i?a(i,e,t,r):a(n,v(t),e,r)},function(e,a){var u=o(this),c=v(e);if("string"==typeof a&&-1===$(a,i)&&-1===$(a,"$<")){var d=r(n,u,c,a);if(d.done)return d.value}var p=l(a);p||(a=v(a));var I=u.global;if(I){var k=u.unicode;u.lastIndex=0}for(var _=[];;){var w=h(u,c);if(null===w)break;if(y(_,w),!I)break;""===v(w[0])&&(u.lastIndex=x(c,f(u.lastIndex),k))}for(var S,T="",A=0,C=0;C<_.length;C++){for(var N=v((w=_[C])[0]),O=E(b(s(w.index),c.length),0),M=[],K=1;K<w.length;K++)y(M,void 0===(S=w[K])?S:String(S));var P=w.groups;if(p){var B=R([N],M,O,c);void 0!==P&&y(B,P);var D=v(t(a,void 0,B))}else D=g(N,c,O,M,P,a);O>=A&&(T+=m(c,A,O)+D,A=O+N.length)}return T+m(c,A)}]}),!!c((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!k||_)},4765:function(e,n,r){"use strict";var t=r(6916),a=r(7007),i=r(9670),u=r(4488),c=r(1150),o=r(1340),l=r(8173),s=r(7651);a("search",(function(e,n,r){return[function(n){var r=u(this),a=null==n?void 0:l(n,e);return a?t(a,n,r):new RegExp(n)[e](o(r))},function(e){var t=i(this),a=o(e),u=r(n,t,a);if(u.done)return u.value;var l=t.lastIndex;c(l,0)||(t.lastIndex=0);var f=s(t,a);return c(t.lastIndex,l)||(t.lastIndex=l),null===f?-1:f.index}]}))}}]);
|