From ec8b8c25ba84f3875d8ea4ef65bade17d90db544 Mon Sep 17 00:00:00 2001 From: Cody Foss Date: Thu, 19 Mar 2026 16:07:23 -0600 Subject: [PATCH 01/22] Initial commit --- src/connector.css | 27 ++++++ src/connector.js | 224 +++++++++++++++++++++++++++++++++++++++++++++- test/srf-en.html | 84 +++++++++++++++++ 3 files changed, 333 insertions(+), 2 deletions(-) create mode 100644 test/srf-en.html diff --git a/src/connector.css b/src/connector.css index 9996800..c6fd2c5 100644 --- a/src/connector.css +++ b/src/connector.css @@ -50,3 +50,30 @@ width: 100%; } } + +/* + * Facet sidebar layout + */ +.gc-facet-toggle .glyphicon-chevron-left { + display: inline-block; + transition: transform 0.2s ease; +} + +/* Rotate chevron to point right when the panel is collapsed */ +.gc-facet-toggle[aria-expanded="false"] .glyphicon-chevron-left { + transform: rotate(180deg); +} + +.gc-facet-values li { + position: relative; +} + +/* Stretch the link click area to the full row without affecting its visual appearance */ +.gc-facet-values a::after { + content: ""; + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; +} diff --git a/src/connector.js b/src/connector.js index 8fb8558..e2dd60f 100644 --- a/src/connector.js +++ b/src/connector.js @@ -10,6 +10,7 @@ import { buildDidYouMean, buildContext, buildInteractiveResult, + buildFacet, loadAdvancedSearchQueryActions, loadSortCriteriaActions, HighlightUtils, @@ -40,7 +41,8 @@ const defaults = { "originLevel3": originPath, "pipeline": "", "automaticallyCorrectQuery": false, - "numberOfPages": 9 + "numberOfPages": 9, + "facets": [] }; let lang = document.querySelector( "html" )?.lang; let paramsOverride = baseElement ? JSON.parse( baseElement.dataset.gcSearch ) : {}; @@ -66,6 +68,12 @@ let unsubscribeResultListController; let unsubscribeQuerySummaryController; let unsubscribeDidYouMeanController; let unsubscribePagerController; +let unsubscribeFacetControllers = []; + +// Facet configs and controllers +let facetNormalizedConfigs = []; +let facetControllers = []; +let facetStates = []; // UI states let updateSearchBoxFromState = false; @@ -92,6 +100,8 @@ let querySummaryElement = document.querySelector( '#query-summary' ); let pagerElement = document.querySelector( '#pager' ); let suggestionsElement = document.querySelector( '#suggestions' ); let didYouMeanElement = document.querySelector( '#did-you-mean' ); +let facetSidebarElement = document.querySelector( '#gc-facet-sidebar' ); +let facetPanelElement = document.querySelector( '#gc-facet-panel' ); // UI templates let resultTemplateHTML = document.getElementById( 'sr-single' )?.innerHTML; @@ -371,6 +381,47 @@ function initTpl() { } } + // Normalize facet configs from the HTML attribute + facetNormalizedConfigs = Array.isArray( params.facets ) + ? params.facets.map( normalizeFacetConfig ).filter( Boolean ) + : []; + + // Auto-create two-column facet layout when valid facets are configured + if ( facetNormalizedConfigs.length > 0 && !facetPanelElement ) { + const isFr = lang === 'fr'; + const facetPlaceholders = facetNormalizedConfigs.map( ( config, index ) => + `
` + ).join( '' ); + + baseElement.insertAdjacentHTML( 'beforeend', + ` +
+
+
+

${isFr ? 'Filtres' : 'Filters'}

+ + ${facetPlaceholders} +
+
+
+
+
+
` + ); + + // Store references and attach event handlers after insertion + facetSidebarElement = document.getElementById( 'gc-facet-sidebar' ); + facetPanelElement = document.getElementById( 'gc-facet-panel' ); + resultsSection = document.getElementById( resultSectionID ); + document.getElementById( 'gc-facet-toggle' ).onclick = toggleFacetSidebar; + document.querySelector( '#gc-facet-clear-all-container .btn-link' ).onclick = + () => { facetControllers.forEach( ( c ) => c.deselectAll() ); }; + } + // auto-create results if ( !resultsSection ) { resultsSection = document.createElement( "section" ); @@ -492,6 +543,38 @@ function sanitizeQuery(q) { return q.replace(/<[^>]*>?/gm, ''); } +// Normalize a single raw facet config entry from the HTML attribute. +// Accepts { field, label|title, facetId, numberOfValues, sortCriteria }. +// Returns a clean config object, or null if the entry is invalid. +function normalizeFacetConfig( raw ) { + if ( !raw || typeof raw !== 'object' || Array.isArray( raw ) ) { + return null; + } + + const field = typeof raw.field === 'string' ? raw.field.trim() : ''; + if ( !field ) { + return null; + } + + const labelRaw = typeof raw.label === 'string' ? raw.label.trim() : ''; + const titleRaw = typeof raw.title === 'string' ? raw.title.trim() : ''; + const label = labelRaw || titleRaw || field; + + const facetId = ( typeof raw.facetId === 'string' && raw.facetId.trim() ) + ? raw.facetId.trim() + : field; + + const numberOfValues = ( Number.isInteger( raw.numberOfValues ) && raw.numberOfValues > 0 ) + ? raw.numberOfValues + : 8; + + const sortCriteria = ( raw.sortCriteria === 'alphanumeric' || raw.sortCriteria === 'occurrences' ) + ? raw.sortCriteria + : 'occurrences'; + + return { field, label, facetId, numberOfValues, sortCriteria }; +} + // rebuild a clean query string out of a JSON object function buildCleanQueryString( paramsObject ) { let urlParam = ""; @@ -681,6 +764,23 @@ function initEngine() { pagerController = buildPager( headlessEngine, { options: { numberOfPages: params.numberOfPages } } ); statusController = buildSearchStatus( headlessEngine ); + // Build a regular facet controller for each normalized facet config + facetNormalizedConfigs.forEach( ( config, index ) => { + const controller = buildFacet( headlessEngine, { + options: { + field: config.field, + facetId: config.facetId, + numberOfValues: config.numberOfValues, + sortCriteria: config.sortCriteria, + } + } ); + facetControllers[ index ] = controller; + facetStates[ index ] = controller.state; + unsubscribeFacetControllers[ index ] = controller.subscribe( + () => updateFacetState( index, controller.state ) + ); + } ); + // Refine search based on URL parameters for filters, mostly used in Advanced Search to trigger only one search per page load if ( urlParams.allq || urlParams.exctq || urlParams.anyq || urlParams.noneq || urlParams.fqupdate || urlParams.dmn || urlParams.fqocct || urlParams.elctn_cat || urlParams.filetype || urlParams.site || urlParams.year || urlParams.declaredtype || urlParams.startdate || urlParams.enddate || urlParams.dprtmnt ) { let q = []; @@ -924,6 +1024,7 @@ function initEngine() { unsubscribeQuerySummaryController?.(); unsubscribeDidYouMeanController?.(); unsubscribePagerController?.(); + unsubscribeFacetControllers.forEach( ( unsub ) => unsub?.() ); }; // Listen to URL change (hash) @@ -1080,7 +1181,7 @@ function openSuggestionsBox() { searchBoxElement.setAttribute( 'aria-expanded', 'true' ); } -// close the suggestions box +// close the suggestions box function closeSuggestionsBox() { if( !suggestionsElement ) { return; @@ -1091,6 +1192,29 @@ function closeSuggestionsBox() { searchBoxElement.removeAttribute( 'aria-activedescendant' ); } +// Toggle the facet sidebar between expanded and collapsed +function toggleFacetSidebar() { + if ( !facetSidebarElement || !facetPanelElement ) { + return; + } + + const toggleBtn = document.getElementById( 'gc-facet-toggle' ); + const resultsCol = document.getElementById( 'gc-results-col' ); + const isExpanded = toggleBtn?.getAttribute( 'aria-expanded' ) === 'true'; + + if ( isExpanded ) { + facetSidebarElement.hidden = true; + toggleBtn?.setAttribute( 'aria-expanded', 'false' ); + resultsCol?.classList.remove( 'col-md-8' ); + resultsCol?.classList.add( 'col-md-12' ); + } else { + facetSidebarElement.hidden = false; + toggleBtn?.setAttribute( 'aria-expanded', 'true' ); + resultsCol?.classList.remove( 'col-md-12' ); + resultsCol?.classList.add( 'col-md-8' ); + } +} + // Update the visual selection of the active suggestion function updateSuggestionSelection() { // clear current suggestion @@ -1418,6 +1542,102 @@ function updatePagerState( newState ) { pagerComponentElement.appendChild( nextLiNode ); } +// Rebuild a single facet's DOM inside the facet panel +function updateFacetState( index, newState ) { + facetStates[ index ] = newState; + + if ( !facetPanelElement || newState.isLoading ) { + return; + } + + const config = facetNormalizedConfigs[ index ]; + const facetEl = document.getElementById( 'gc-facet-' + config.facetId ); + + if ( !facetEl ) { + return; + } + + // Preserve the open/closed state across re-renders, then clear children + const wasOpen = facetEl.open; + facetEl.textContent = ''; + facetEl.open = wasOpen; + + // acts as the facet label / collapse toggle + const summaryEl = document.createElement( 'summary' ); + summaryEl.textContent = config.label; + facetEl.appendChild( summaryEl ); + + // Values list + const listEl = document.createElement( 'ul' ); + listEl.className = 'list-unstyled gc-facet-values'; + + newState.values.forEach( ( value ) => { + const liEl = document.createElement( 'li' ); + const isSelected = value.state === 'selected'; + const countFormatted = value.numberOfResults.toLocaleString( params.lang ); + const valueLabel = stripHtml( value.value ); + + if ( isSelected ) { + const removeHintEl = document.createElement( 'span' ); + removeHintEl.className = 'wb-inv'; + removeHintEl.textContent = lang === 'fr' ? 'Enlever le filtre actif:' : 'Remove active filter:'; + liEl.appendChild( removeHintEl ); + } + + const valueLink = document.createElement( 'a' ); + valueLink.href = '#'; + valueLink.onclick = ( e ) => { e.preventDefault(); facetControllers[ index ].toggleSelect( value ); }; + + if ( isSelected ) { + const iconEl = document.createElement( 'span' ); + iconEl.className = 'glyphicon glyphicon-ok mrgn-rght-sm'; + iconEl.setAttribute( 'aria-hidden', 'true' ); + valueLink.appendChild( iconEl ); + valueLink.appendChild( document.createTextNode( '\u00a0' ) ); + } + + valueLink.appendChild( document.createTextNode( valueLabel ) ); + + // Count sits outside as plain text so only the label looks like a link + const countEl = document.createElement( 'span' ); + countEl.className = 'gc-facet-count'; + countEl.innerHTML = ' (' + countFormatted + + ' ' + ( lang === 'fr' ? 'résultats' : 'results' ) + ')'; + + liEl.appendChild( valueLink ); + liEl.appendChild( countEl ); + listEl.appendChild( liEl ); + } ); + + facetEl.appendChild( listEl ); + + // Show more / show less — btn-link with chevron, matching the template + const showMoreBtn = document.createElement( 'button' ); + showMoreBtn.type = 'button'; + showMoreBtn.className = 'btn btn-link small gc-facet-show-more pl-0'; + showMoreBtn.hidden = !newState.canShowMoreValues; + showMoreBtn.onclick = () => { facetControllers[ index ].showMoreValues(); }; + showMoreBtn.innerHTML = ( lang === 'fr' ? 'Afficher davantage' : 'Show more' ) + + ' '; + + const showLessBtn = document.createElement( 'button' ); + showLessBtn.type = 'button'; + showLessBtn.className = 'btn btn-link small gc-facet-show-less pl-0'; + showLessBtn.hidden = !newState.canShowLessValues; + showLessBtn.onclick = () => { facetControllers[ index ].showLessValues(); }; + showLessBtn.innerHTML = ( lang === 'fr' ? 'Afficher moins' : 'Show less' ) + + ' '; + + facetEl.appendChild( showMoreBtn ); + facetEl.appendChild( showLessBtn ); + + // Update the global "Clear all" visibility based on all facet states + const clearAllContainer = document.getElementById( 'gc-facet-clear-all-container' ); + if ( clearAllContainer ) { + clearAllContainer.hidden = !facetStates.some( ( s ) => s?.hasActiveValues ); + } +} + // Update the URL parameter for pagination in advanced search mode function updatePagerUrlParam( currentPage ) { const resultsPerPage = buildResultsPerPage(headlessEngine); diff --git a/test/srf-en.html b/test/srf-en.html new file mode 100644 index 0000000..2f2b61d --- /dev/null +++ b/test/srf-en.html @@ -0,0 +1,84 @@ +--- +title: Search facets/filters results +description: Demo page for the search with facets +lang: en +altLangPage: srf-fr.html +nositesearch: true +pageclass: page-type-search +pageType: search +share: false +deptfeature: false +dateModified: 2026-03-19 +breadcrumbs: +- title: "GC Search UI" + link: "../index.html" +css: "../src/connector.css" +script: +- src: "assets/token.js" +- src: "../src/connector.js" + type: module +--- + + + + + +
+ +
+ + +

Expected output for the result section

+
+ Output for Results section + [To be completed, see Connector.js for reference until then] +
From 552e25440c4c35710eeff7ec4f6f7eabaa850920 Mon Sep 17 00:00:00 2001 From: Cody Foss Date: Thu, 19 Mar 2026 16:42:41 -0600 Subject: [PATCH 02/22] Date facets --- src/connector.js | 242 +++++++++++++++++++++++++++++++++++++++++++---- test/srf-en.html | 6 ++ 2 files changed, 229 insertions(+), 19 deletions(-) diff --git a/src/connector.js b/src/connector.js index e2dd60f..964adb8 100644 --- a/src/connector.js +++ b/src/connector.js @@ -11,6 +11,9 @@ import { buildContext, buildInteractiveResult, buildFacet, + buildDateFacet, + buildDateFilter, + buildDateRange, loadAdvancedSearchQueryActions, loadSortCriteriaActions, HighlightUtils, @@ -69,11 +72,14 @@ let unsubscribeQuerySummaryController; let unsubscribeDidYouMeanController; let unsubscribePagerController; let unsubscribeFacetControllers = []; +let unsubscribeDateFilterControllers = []; // Facet configs and controllers let facetNormalizedConfigs = []; let facetControllers = []; let facetStates = []; +let dateFilterControllers = []; +let dateFilterStates = []; // UI states let updateSearchBoxFromState = false; @@ -418,8 +424,10 @@ function initTpl() { facetPanelElement = document.getElementById( 'gc-facet-panel' ); resultsSection = document.getElementById( resultSectionID ); document.getElementById( 'gc-facet-toggle' ).onclick = toggleFacetSidebar; - document.querySelector( '#gc-facet-clear-all-container .btn-link' ).onclick = - () => { facetControllers.forEach( ( c ) => c.deselectAll() ); }; + document.querySelector( '#gc-facet-clear-all-container .btn-link' ).onclick = () => { + facetControllers.forEach( ( c ) => c?.deselectAll() ); + dateFilterControllers.forEach( ( c ) => c?.clear() ); + }; } // auto-create results @@ -572,9 +580,40 @@ function normalizeFacetConfig( raw ) { ? raw.sortCriteria : 'occurrences'; - return { field, label, facetId, numberOfValues, sortCriteria }; + const facetType = raw.facetType === 'dateRange' ? 'dateRange' : 'regular'; + + return { field, label, facetId, numberOfValues, sortCriteria, facetType }; +} + +// Format a Date as a Coveo date string: YYYY/MM/DD@HH:mm:ss +function formatCoveoDate( date ) { + const pad = ( n ) => String( n ).padStart( 2, '0' ); + return `${date.getFullYear()}/${pad( date.getMonth() + 1 )}/${pad( date.getDate() )}@${pad( date.getHours() )}:${pad( date.getMinutes() )}:${pad( date.getSeconds() )}`; +} + +// Convert YYYY-MM-DD (date input value) to Coveo date string +function inputDateToCoveoDate( dateStr, endOfDay ) { + if ( !dateStr ) { return ''; } + return dateStr.replace( /-/g, '/' ) + ( endOfDay ? '@23:59:59' : '@00:00:00' ); } +// Convert a Coveo date string to YYYY-MM-DD for a date input +function coveoDateToInputDate( coveoDate ) { + if ( !coveoDate ) { return ''; } + return String( coveoDate ).slice( 0, 10 ).replace( /\//g, '-' ); +} + +// Predefined relative date periods for the date facet (start is relative, end is fixed at page load) +const DATE_FACET_PERIODS = ( () => { + const end = formatCoveoDate( new Date() ); + return [ + { en: 'Past day', fr: 'Dernière journée', range: buildDateRange( { start: { period: 'past', unit: 'day', amount: 1 }, end, endInclusive: true } ) }, + { en: 'Past week', fr: 'Dernière semaine', range: buildDateRange( { start: { period: 'past', unit: 'week', amount: 1 }, end, endInclusive: true } ) }, + { en: 'Past month', fr: 'Dernier mois', range: buildDateRange( { start: { period: 'past', unit: 'month', amount: 1 }, end, endInclusive: true } ) }, + { en: 'Past year', fr: 'Dernière année', range: buildDateRange( { start: { period: 'past', unit: 'year', amount: 1 }, end, endInclusive: true } ) }, + ]; +} )(); + // rebuild a clean query string out of a JSON object function buildCleanQueryString( paramsObject ) { let urlParam = ""; @@ -764,21 +803,48 @@ function initEngine() { pagerController = buildPager( headlessEngine, { options: { numberOfPages: params.numberOfPages } } ); statusController = buildSearchStatus( headlessEngine ); - // Build a regular facet controller for each normalized facet config + // Build a facet controller for each normalized facet config facetNormalizedConfigs.forEach( ( config, index ) => { - const controller = buildFacet( headlessEngine, { - options: { - field: config.field, - facetId: config.facetId, - numberOfValues: config.numberOfValues, - sortCriteria: config.sortCriteria, - } - } ); - facetControllers[ index ] = controller; - facetStates[ index ] = controller.state; - unsubscribeFacetControllers[ index ] = controller.subscribe( - () => updateFacetState( index, controller.state ) - ); + if ( config.facetType === 'dateRange' ) { + const dateFacetController = buildDateFacet( headlessEngine, { + options: { + field: config.field, + facetId: config.facetId, + currentValues: DATE_FACET_PERIODS.map( ( p ) => p.range ), + generateAutomaticRanges: false, + } + } ); + const dateFilterController = buildDateFilter( headlessEngine, { + options: { + field: config.field, + facetId: config.facetId + '__filter', + } + } ); + facetControllers[ index ] = dateFacetController; + dateFilterControllers[ index ] = dateFilterController; + facetStates[ index ] = dateFacetController.state; + dateFilterStates[ index ] = dateFilterController.state; + unsubscribeFacetControllers[ index ] = dateFacetController.subscribe( + () => updateDateFacetState( index, dateFacetController.state, dateFilterController.state ) + ); + unsubscribeDateFilterControllers[ index ] = dateFilterController.subscribe( + () => updateDateFacetState( index, dateFacetController.state, dateFilterController.state ) + ); + } else { + const controller = buildFacet( headlessEngine, { + options: { + field: config.field, + facetId: config.facetId, + numberOfValues: config.numberOfValues, + sortCriteria: config.sortCriteria, + } + } ); + facetControllers[ index ] = controller; + facetStates[ index ] = controller.state; + unsubscribeFacetControllers[ index ] = controller.subscribe( + () => updateFacetState( index, controller.state ) + ); + } } ); // Refine search based on URL parameters for filters, mostly used in Advanced Search to trigger only one search per page load @@ -1025,6 +1091,7 @@ function initEngine() { unsubscribeDidYouMeanController?.(); unsubscribePagerController?.(); unsubscribeFacetControllers.forEach( ( unsub ) => unsub?.() ); + unsubscribeDateFilterControllers.forEach( ( unsub ) => unsub?.() ); }; // Listen to URL change (hash) @@ -1631,11 +1698,148 @@ function updateFacetState( index, newState ) { facetEl.appendChild( showMoreBtn ); facetEl.appendChild( showLessBtn ); - // Update the global "Clear all" visibility based on all facet states + updateClearAllVisibility(); +} + +function updateClearAllVisibility() { const clearAllContainer = document.getElementById( 'gc-facet-clear-all-container' ); if ( clearAllContainer ) { - clearAllContainer.hidden = !facetStates.some( ( s ) => s?.hasActiveValues ); + clearAllContainer.hidden = !facetStates.some( ( s ) => s?.hasActiveValues ) + && !dateFilterStates.some( ( s ) => s?.range ); + } +} + +// Rebuild the DOM for a date range facet (predefined periods + custom date pickers) +function updateDateFacetState( index, dateFacetState, dateFilterState ) { + facetStates[ index ] = dateFacetState; + dateFilterStates[ index ] = dateFilterState; + + if ( !facetPanelElement || dateFacetState.isLoading ) { + return; + } + + const config = facetNormalizedConfigs[ index ]; + const facetEl = document.getElementById( 'gc-facet-' + config.facetId ); + if ( !facetEl ) { + return; + } + + const isFr = lang === 'fr'; + const wasOpen = facetEl.open; + facetEl.textContent = ''; + facetEl.open = wasOpen; + + const summaryEl = document.createElement( 'summary' ); + summaryEl.textContent = config.label; + facetEl.appendChild( summaryEl ); + + // --- Custom date pickers (above the list) --- + const startId = 'gc-facet-date-start-' + index; + const endId = 'gc-facet-date-end-' + index; + + const datePickerContainer = document.createElement( 'div' ); + datePickerContainer.className = 'gc-date-pickers'; + const todayStr = new Date().toISOString().slice( 0, 10 ); + + datePickerContainer.insertAdjacentHTML( 'beforeend', + `
+ + +
+
+ + +
+ ` + ); + + const startInput = datePickerContainer.querySelector( '#' + startId ); + const endInput = datePickerContainer.querySelector( '#' + endId ); + + startInput.onchange = () => { if ( startInput.value ) { endInput.min = startInput.value; } }; + endInput.onchange = () => { if ( endInput.value ) { startInput.max = endInput.value; } }; + + // Pre-populate inputs if a custom filter is already active + if ( dateFilterState.range ) { + startInput.value = coveoDateToInputDate( dateFilterState.range.start ); + endInput.value = coveoDateToInputDate( dateFilterState.range.end ); + endInput.min = startInput.value; + startInput.max = endInput.value; } + + datePickerContainer.querySelector( '.gc-date-apply' ).onclick = () => { + let startVal = startInput.value; + let endVal = endInput.value; + if ( startVal && endVal ) { + // Swap if end is before start + if ( endVal < startVal ) { + [ startVal, endVal ] = [ endVal, startVal ]; + startInput.value = startVal; + endInput.value = endVal; + } + // Clear predefined range selection before applying custom filter + facetControllers[ index ].deselectAll(); + dateFilterControllers[ index ].setRange( { + start: inputDateToCoveoDate( startVal, false ), + end: inputDateToCoveoDate( endVal, true ), + } ); + } + }; + + facetEl.appendChild( datePickerContainer ); + + // --- Predefined date range list --- + const listEl = document.createElement( 'ul' ); + listEl.className = 'list-unstyled gc-facet-values mrgn-tp-sm'; + + dateFacetState.values.forEach( ( value, valueIndex ) => { + const period = DATE_FACET_PERIODS[ valueIndex ]; + if ( !period ) { + return; + } + + const liEl = document.createElement( 'li' ); + const isSelected = value.state === 'selected'; + const countFormatted = value.numberOfResults.toLocaleString( lang ); + const periodLabel = isFr ? period.fr : period.en; + + if ( isSelected ) { + const removeHintEl = document.createElement( 'span' ); + removeHintEl.className = 'wb-inv'; + removeHintEl.textContent = isFr ? 'Enlever le filtre actif:' : 'Remove active filter:'; + liEl.appendChild( removeHintEl ); + } + + const valueLink = document.createElement( 'a' ); + valueLink.href = '#'; + valueLink.onclick = ( e ) => { + e.preventDefault(); + // Clear custom date filter before selecting a predefined range + dateFilterControllers[ index ].clear(); + facetControllers[ index ].toggleSelect( value ); + }; + + if ( isSelected ) { + const iconEl = document.createElement( 'span' ); + iconEl.className = 'glyphicon glyphicon-ok mrgn-rght-sm'; + iconEl.setAttribute( 'aria-hidden', 'true' ); + valueLink.appendChild( iconEl ); + } + + valueLink.appendChild( document.createTextNode( periodLabel ) ); + + const countEl = document.createElement( 'span' ); + countEl.className = 'gc-facet-count'; + countEl.innerHTML = ' (' + countFormatted + + ' ' + ( isFr ? 'résultats' : 'results' ) + ')'; + + liEl.appendChild( valueLink ); + liEl.appendChild( countEl ); + listEl.appendChild( liEl ); + } ); + + facetEl.appendChild( listEl ); + updateClearAllVisibility(); } // Update the URL parameter for pagination in advanced search mode diff --git a/test/srf-en.html b/test/srf-en.html index 2f2b61d..7bf83ce 100644 --- a/test/srf-en.html +++ b/test/srf-en.html @@ -60,6 +60,12 @@ "numberOfValues": 12, "facetId": "source", "facetType": "regular" + }, + { + "field": "date", + "title": "Date", + "facetId": "date", + "facetType": "dateRange" } ] }'> From cdc3a9e969cae3c1d85f89a9e81c8c6499a8d271 Mon Sep 17 00:00:00 2001 From: Cody Foss Date: Thu, 19 Mar 2026 17:03:30 -0600 Subject: [PATCH 03/22] Fixes, clear filter button, improved date pickers --- src/connector.css | 5 +++++ src/connector.js | 31 ++++++++++++++++++++++++++++++- 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/src/connector.css b/src/connector.css index c6fd2c5..a7205fb 100644 --- a/src/connector.css +++ b/src/connector.css @@ -65,6 +65,7 @@ } .gc-facet-values li { + overflow-wrap: break-word; position: relative; } @@ -77,3 +78,7 @@ bottom: 0; left: 0; } + +.gc-date-pickers .form-control { + width: 100%; +} diff --git a/src/connector.js b/src/connector.js index 964adb8..408ead4 100644 --- a/src/connector.js +++ b/src/connector.js @@ -1632,6 +1632,14 @@ function updateFacetState( index, newState ) { // acts as the facet label / collapse toggle const summaryEl = document.createElement( 'summary' ); summaryEl.textContent = config.label; + if ( newState.hasActiveValues ) { + const clearBtn = document.createElement( 'button' ); + clearBtn.type = 'button'; + clearBtn.className = 'btn btn-link btn-sm pull-right'; + clearBtn.textContent = lang === 'fr' ? 'Effacer le filtre' : 'Clear filter'; + clearBtn.onclick = ( e ) => { e.stopPropagation(); facetControllers[ index ].deselectAll(); }; + summaryEl.appendChild( clearBtn ); + } facetEl.appendChild( summaryEl ); // Values list @@ -1731,6 +1739,18 @@ function updateDateFacetState( index, dateFacetState, dateFilterState ) { const summaryEl = document.createElement( 'summary' ); summaryEl.textContent = config.label; + if ( dateFacetState.hasActiveValues || dateFilterState.range ) { + const clearBtn = document.createElement( 'button' ); + clearBtn.type = 'button'; + clearBtn.className = 'btn btn-link btn-sm pull-right'; + clearBtn.textContent = isFr ? 'Effacer le filtre' : 'Clear filter'; + clearBtn.onclick = ( e ) => { + e.stopPropagation(); + facetControllers[ index ].deselectAll(); + dateFilterControllers[ index ].clear(); + }; + summaryEl.appendChild( clearBtn ); + } facetEl.appendChild( summaryEl ); // --- Custom date pickers (above the list) --- @@ -1750,7 +1770,8 @@ function updateDateFacetState( index, dateFacetState, dateFilterState ) { - ` + + ` ); const startInput = datePickerContainer.querySelector( '#' + startId ); @@ -1786,6 +1807,14 @@ function updateDateFacetState( index, dateFacetState, dateFilterState ) { } }; + datePickerContainer.querySelector( '.gc-date-clear' ).onclick = () => { + startInput.value = ''; + endInput.value = ''; + startInput.max = todayStr; + endInput.min = ''; + dateFilterControllers[ index ].clear(); + }; + facetEl.appendChild( datePickerContainer ); // --- Predefined date range list --- From 18b71dd446c55b41a9ff87a15ea7c03f2373e4ed Mon Sep 17 00:00:00 2001 From: Cody Foss Date: Thu, 19 Mar 2026 17:05:40 -0600 Subject: [PATCH 04/22] Netlify demo --- netlify/404.html | 183 + netlify/CODE_OF_CONDUCT.md | 122 + netlify/assets/favicon.ico | Bin 0 -> 5430 bytes netlify/index.html | 219 + netlify/src/connector.css | 84 + netlify/src/connector.js | 1890 ++ netlify/src/headless.esm.js | 59 + netlify/src/suggestions.js | 439 + netlify/src/theme.css | 20330 ++++++++++++++++++++++ netlify/test/assets/token.js | 32 + netlify/test/budget.html | 217 + netlify/test/demoted/v1_1_0_srb-en.html | 203 + netlify/test/demoted/v1_1_0_srb-fr.html | 203 + netlify/test/demoted/v1_1_0_src-en.html | 211 + netlify/test/demoted/v1_1_0_src-fr.html | 211 + netlify/test/election.html | 207 + netlify/test/gazette.html | 203 + netlify/test/index.html | 200 + netlify/test/newsadv-en.html | 394 + netlify/test/newsadv-fr.html | 426 + netlify/test/no-qs-en.html | 213 + netlify/test/no-qs-fr.html | 213 + netlify/test/no-token.html | 213 + netlify/test/qs-en-topright-custom.html | 222 + netlify/test/qs-en-topright.html | 220 + netlify/test/qs-en.html | 214 + netlify/test/qs-fr-topright-custom.html | 221 + netlify/test/qs-fr-topright.html | 219 + netlify/test/qs-fr.html | 214 + netlify/test/sra-en.html | 253 + netlify/test/sra-fr.html | 253 + netlify/test/srb-en.html | 212 + netlify/test/srb-fr.html | 212 + netlify/test/src-en.html | 221 + netlify/test/src-fr.html | 221 + netlify/test/srf-en.html | 254 + netlify/test/template.html | 247 + 37 files changed, 29655 insertions(+) create mode 100644 netlify/404.html create mode 100644 netlify/CODE_OF_CONDUCT.md create mode 100644 netlify/assets/favicon.ico create mode 100644 netlify/index.html create mode 100644 netlify/src/connector.css create mode 100644 netlify/src/connector.js create mode 100644 netlify/src/headless.esm.js create mode 100644 netlify/src/suggestions.js create mode 100644 netlify/src/theme.css create mode 100644 netlify/test/assets/token.js create mode 100644 netlify/test/budget.html create mode 100644 netlify/test/demoted/v1_1_0_srb-en.html create mode 100644 netlify/test/demoted/v1_1_0_srb-fr.html create mode 100644 netlify/test/demoted/v1_1_0_src-en.html create mode 100644 netlify/test/demoted/v1_1_0_src-fr.html create mode 100644 netlify/test/election.html create mode 100644 netlify/test/gazette.html create mode 100644 netlify/test/index.html create mode 100644 netlify/test/newsadv-en.html create mode 100644 netlify/test/newsadv-fr.html create mode 100644 netlify/test/no-qs-en.html create mode 100644 netlify/test/no-qs-fr.html create mode 100644 netlify/test/no-token.html create mode 100644 netlify/test/qs-en-topright-custom.html create mode 100644 netlify/test/qs-en-topright.html create mode 100644 netlify/test/qs-en.html create mode 100644 netlify/test/qs-fr-topright-custom.html create mode 100644 netlify/test/qs-fr-topright.html create mode 100644 netlify/test/qs-fr.html create mode 100644 netlify/test/sra-en.html create mode 100644 netlify/test/sra-fr.html create mode 100644 netlify/test/srb-en.html create mode 100644 netlify/test/srb-fr.html create mode 100644 netlify/test/src-en.html create mode 100644 netlify/test/src-fr.html create mode 100644 netlify/test/srf-en.html create mode 100644 netlify/test/template.html diff --git a/netlify/404.html b/netlify/404.html new file mode 100644 index 0000000..8bd7963 --- /dev/null +++ b/netlify/404.html @@ -0,0 +1,183 @@ + + + + + + +404 - Canada.ca + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + +
+

Recherche

+
+
+ + + +
+
+ +
+
+
+ + +
+
+ + +
+ + + + + + +
+ +

404

+
+

Page not found | Page introuvable

+
+ +
+

Détails de la page

+
Date de modification :
+
+
+
+ +
+ + + + + + + diff --git a/netlify/CODE_OF_CONDUCT.md b/netlify/CODE_OF_CONDUCT.md new file mode 100644 index 0000000..08e81c8 --- /dev/null +++ b/netlify/CODE_OF_CONDUCT.md @@ -0,0 +1,122 @@ +# Contributor Covenant Code of Conduct for the Canada.ca Search User Interface (UI) project + +([Français](#code-de-conduite-pour-le-projet-iu-recherche)) + +Contributors to repositories hosted in Canada.ca Search UI are expected to follow the Contributor Covenant Code of Conduct, and those working within Government are also expected to follow the Values and Ethics Code for the Public Sector + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation. + +## Our Standards + +Examples of behavior that contributes to creating a positive environment include: + +* Using welcoming and inclusive language +* Being respectful of differing viewpoints and experiences +* Gracefully accepting constructive criticism +* Focusing on what is best for the department +* Showing empathy towards other members + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery and unwelcome sexual attention or advances +* Trolling, insulting/derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or electronic address, without explicit permission +* Other conduct which could reasonably be considered inappropriate in a professional setting + +## Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. + +## Scope + +This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project, members or Employment and Social Development Canada. +Examples of representing a project, members or Employment and Social Development Canada include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. +Representation of a project may be further defined and clarified by project maintainers. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team via a contact method listed on [Principal Publisher's GCpedia page](https://www.gcpedia.gc.ca/wiki/Principal_Publisher_at_Service_Canada). + +All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. + +The project team is obligated to maintain confidentiality with regard to the reporter of an incident. + +Further details of specific enforcement policies may be posted separately. + +Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. + +## Attribution [EN] + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [https://www.contributor-covenant.org/version/1/4/code-of-conduct.html](https://www.contributor-covenant.org/version/1/4/code-of-conduct.html) + +[homepage]: https://www.contributor-covenant.org + +This Code of Conduct is also inspired by GDS' `alphagov` [Code of conduct](https://github.com/alphagov/code-of-conduct). + +--- + +# Code de conduite pour le projet Interface utilisateur (IU) de Recherche pour Canada.ca + + +([English](#contributor-covenant-code-of-conduct-for-the-search-ui-project)) + +Les contributeurs aux dépôts hébergés dans IU de Recherche pour Canada.ca sont tenus de respecter le Code de conduite du Pacte des contributeurs, et ceux qui travaillent au sein du gouvernement sont également tenus de respecter le [Code de valeurs et d'éthique du secteur public](https://www.tbs-sct.canada.ca/pol/doc-fra.aspx?id=25049). + +## Notre engagement + +Dans le but de favoriser un environnement ouvert et accueillant, nous nous engageons, en tant que collaborateurs et responsables, à faire de la participation à notre projet et à notre communauté une expérience sans harcèlement pour tous, quels que soient leur âge, leur taille, leur handicap, leur origine ethnique, leurs caractéristiques sexuelles, leur identité et expression sexuelles, leur niveau d'expérience, leur éducation, leur statut socio-économique, leur nationalité, leur apparence, leur race, leur religion, leur orientation sexuelle et leur identité. + +## Nos normes + +Exemples de comportements qui contribuent à créer un environnement positif incluent : + +* Utiliser un langage accueillant et inclusif +* Être respectueux des différents points de vue et expériences +* Accepter gracieusement les critiques constructives +* Se concentrer sur ce qui est le mieux pour la communauté +* Faire preuve d'empathie envers les autres membres de la communauté + +Voici des exemples de comportements inacceptables de la part des participants : + +* L'utilisation d'un langage ou d'images sexualisés et d'une attention sexuelle importunée, ou percées +* Trollage, commentaires insultants ou méprisants, et attaques personnelles ou politiques +* Harcèlement public ou privé +* La publication d'informations privées d'autrui, telles que des informations physiques ou électroniques. adresse, sans autorisation explicite +* Tout autre comportement qui pourrait raisonnablement être considéré comme inapproprié dans le cadre d'une enquête du contexte professionnel + +## Nos responsabilités + +Les responsables de la mise à jour du projet ont la responsabilité de clarifier les normes d'acceptabilité et on s'attend à ce qu'ils prennent des mesures correctives appropriées et équitables en cas de comportement inacceptable. + +Les responsables de projet ont le droit et la responsabilité de supprimer, d'éditer ou de rejeter les commentaires, les soumissions (commits), le code, les éditions du wiki, les problèmes et autres contributions qui ne sont pas conformes au présent Code de conduite, ou d'interdire temporairement ou définitivement tout contributeur pour d'autres comportements qu'ils jugent inappropriés, menaçant, offensant ou nuisible. + +## Portée + +Ce Code de conduite s'applique dans tous les espaces du projet, et il s'applique également lorsqu'une personne représente le projet, sa communauté dans les espaces publics ou Emploi et développement social Canada. +Des exemples de représentation d'un projet, d'une collectivité ou Emploi et développement social Canada comprennent l'utilisation d'un représentant officiel de l'adresse électronique du projet, l'affichage par l'entremise d'un compte officiel de médias sociaux ou le fait d'agir à titre intérimaire en tant que représentant désigné lors d'un événement en ligne ou hors ligne. +La représentation d'un projet peut être mieux définie et clarifiée par les responsables du projet. + +## Application des règles + +Les cas de comportement abusif, de harcèlement ou d'autres comportements inacceptables peuvent être rapportés en communiquant avec l'équipe de projet via une méthode de contact proposée sur la page [GCpédia de l'Éditeur principal](https://www.gcpedia.gc.ca/wiki/%C3%89diteur_principal_de_Service_Canada). + +Toutes les plaintes feront l'objet d'un examen et d'une enquête et donneront lieu à une réponse qui est jugée nécessaire et appropriée dans les circonstances. + +L'équipe de projet est dans l'obligation de respecter la confidentialité à l'égard du déclarant d'un incident. + +De plus amples détails sur les politiques d'application spécifiques peuvent être affichés séparément. + +Les responsables de projet qui ne respectent pas ou n'appliquent pas le Code de conduite en bonne et due forme peuvent faire face à des répercussions temporaires ou permanentes déterminées par d'autres membres de la direction du projet. + +## Attribution [FR] + +Le présent Code de conduite est adapté de la version 1.4 du [Pacte du contributeur][page d'accueil], disponible à l'adresse [https://www.contributor-covenant.org/version/1/4/code-of-conduct.html](https://www.contributor-covenant.org/version/1/4/code-of-conduct.html) + +[page d'accueil]: https://www.contributor-covenant.org + +Le présent Code de conduite s'inspire également du « Code de conduite » du [alphaGov](https://github.com/alphagov/code-of-conduct) de GDS. diff --git a/netlify/assets/favicon.ico b/netlify/assets/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..7848a38a5cf1f67f04b3211d028acbf9cd960592 GIT binary patch literal 5430 zcmcJT2~gB`vd0@i@It@?L`6aHLXbm2MDA;bYZ%Vqa5x8;`(TE9IOUL2hEu^a?k2{> zBZ&s_;1WdTPZL>Q(LLRbHi%7ngqh|Bogn>mIM_Emd7J^Dln$nQwRh z`q%vfFo8wj=m_-c2_bo{)IqO08G4jyZ?(6vnPgDg!C{15}AMjc(W!}){Bon&eB zJ~zG%YD5~yi8u1gNPlTg<3H5jD$a(tS)1gbl{&p7Ri57HN&a7z!D%ziif#tEKu_9R zK%CqJTb(YF|1XXgB_0Mf#i_1H1qJ-WAWrQxCI7E35jO46W|i>_>J;lE3IV*$`b*N` zZ8lP#ye!tg?Yhm%kN;<*?R#H&?>K%t$b0Z~d{CD@DZD$gkY5|Q)8)g*JDfj!EaEkW z=khvpb9pUIaY4hUA_LyJ?dy5rE4Q6DzR%~kUm2-LSw2{r0dKR@Rk85ePF2SJ`2O8m z4wML_c>q@s;8U_uG%*>)#fwML+UgUuUHj3ut5=V{T)XDl%S{_T`PO0M7~0xR;JWow zxPIep+`Rb?x;Rf^ZDA?@Y+VwZ(x;H6zG2Mg6lhZ_p;fMd7Kw~}SPxAy1wGTi(TaRf zrImS^m|XsT(V{E3WXV-rw)9h6w)|6EzG4h5SKdIIRo8Ki?MUi-c>Pw#q2s)t@(5gb;OK&MIpEm9>Iw8hY;&7o&%Xpw25S*!p>`XOkP zs-dey4ebi)CeD7tEfbTgXl`y~FJCc=D=n{~jm>pjy=Dy8uDy6S!INu_#SkqTpOggpDL3*1dD(KOQq4yVjWqKq19y#r!3ZFgO zk3Ivqjuz&mc^PRY-Igr-8m?YVY+ECH{e~O3Y11uqbTqQJG3*^vxXX14-FMBPyZbDr zM4z4R)<`|tmFmCC*Jam3b-pIq!S4M(0F06DE3D5M-7MRBjAgGO-RsufK!)w$@Fsf- zw{M?9SJ!FW?KX{`p10A<`!4SGe1M7E51u!O%L98flE2d5O8)Osi6N8QC0oDd{0~g7 zSy)`frAx{0q}|eza?bi1t|HxQNVhG^CZ7{~GwI&4WgNGR*u2PzJJhz!;hmyXOx2`QAl;|5*$OxQBiReuLb|>F=rw^o{+c`ILXz z(5BGX$M|=hT4X|djB?F_*h`lfW4?lP+c3I`y?QO}uV3hPeyw}kB>9|lyBmGZ=w{fy z`|jd?Vjm!OQ1E>W4V%N@(9e()bsu&4okPU8@^-J{1mjBKX9jH9jn3~8TYb#Hsc zW^{Y(HtP1?GsCideea{szK0kXIESI3bI9n9jCz1v&O?lid5H16M;M>*6l<+?k29V8b_Nox2T@q#0|u@TX&mkXy30-*X6F{g^k>Fa-Kzoz55N_zCOlW+q>^E zW+$Dx*;`R&B@+DVLI~wLmqYuWd>#|`1Y_cVi@bzq$V>V+EEHaQK2VzFsLhZ`tSR13 z4j2FI@Ac00#K>c3+;?914_muQTx)+9`Juh@LuEOuJJl+?K;I9(+Pdu?%l2S(Q?3zv zKa=MN?%_WF$H{BI(NWXi)=D};dbDcj*JimMO#SFT`H2s(L#2vs)3$(K z(zmEZS+}K5)>+!4DM}ft$O7HLGSH;gKw6Xmy0vl`(dRDDO=!E-E)#M`D)`VY&!;}D zR_5+DgS$QMviqB4k^aL-gJ|Pj&S^%MJ>8RaYZuk4HWv{uAUxKSQD5(-(tUp8bF} z4vtl%lm4`S$X5yKA)VVz{6g|s4j9zwP%A2fI#DT9=2eIKkk14BCl)ezzkV7TJpIFg zz=y2Q!-*Xc@d$abvp*DMTzZ6B|+7$}K_0j<#n>2*jKZPF^u-(O!`=FlY3(0MJRm=tiMIWr54ZVu-&Oo+d? z&|gu=ZC6)AGky0VW&5T!S<#+;c`)?J!^pyaH0Ie6c>=4yUz5P*pEk1`dg=WT<@%s5 z?q@bs8UvlmY|6nZXb_iBZ!Cjh$_u%0@M>7(=NQF(hMK&AtHV`k(5}`&lcEV46kX6E z%YuIC9_W+q`-S;}K^jPWJ-o>`s1yGtzeAA&dXb*Z#bf2PuPajN+z@eivG-plB+S1w zXmU6sWic>Z8b`UB5B2gM;tPrILu|_XpP3)=L;lbFYEcc0RHnj-%0$*qR`JXg*~jk6 zbI#ml-k+#UfRmN+^xFhbCpY{{_{XRwjFcz9a5)Zv@9urjxfhAm`l0ifh(%C2#jjPdwa4|I{Q_gr2BM1twpQl?$LX{=L1-9BxkYATtj!JtET| zGBePRYu$`957UbsV9&*Qs*R6Pn{PP659!HVw)D!v^5w>PVlCU(PEa4ua3^VQF|OU~ zbC2z1La29)jF`u`xcP-j@j!+`py!z{xsH}rH)-~~L9_NP+~e`li>=iEGyNFTdo%qA zH{$w>;1FZK%jG_yUh{KoQZ;aRL2ak)*IoVh?Jk#pziRCr%!)nIr^swA*|zO2+s`n+ z+1GC#OY#g_neg;bWYjavOq>3FreN+5mE!)R>CT2!_3U~Kz)1G-Gp6wb+$ zu5Q%t5|`Qf{2DNF6HMxd!?Mj(TgRH}*U8&jIA{Em;S_=%67r{HVG0?5b zhKQicPj-9GvojKNjt7T6!HlHQCr8vmsv}9zOSQT|)&fUVB4`rJ*!6v71x#NB4aFLl zkbtrO4hfw6CNPN3pzwL*#ohZxkUaHGhg#w?prbQK8Aa>ch*boK#Bw-Pm`A-p4AtFO zXc6amYqOj9b>hnC2s+22x%1c{Z;q}K5AfS$B9A^Loq1!*aJ+}auG^N5pfAv(6 W7&CJOcwqi}HPsma literal 0 HcmV?d00001 diff --git a/netlify/index.html b/netlify/index.html new file mode 100644 index 0000000..faf78c1 --- /dev/null +++ b/netlify/index.html @@ -0,0 +1,219 @@ + + + + + + +Search user interface (UI) with Headless - Canada.ca + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + +
+

Search

+
+
+ + + +
+
+ +
+
+
+ + +
+
+ + +
+ + + + + + +
+ +

Search user interface (UI) with Headless

+

This is a demo site for the GC Search UI.

+ +

Working examples

+ + + +

Regular pages

+ + +

Advanced tests

+ +
+

Please refer to the README documentation to get more information on the GC Search UI.

+ +
+

Page details

+
Date modified:
+
+
+
+ +
+ + + + + + + diff --git a/netlify/src/connector.css b/netlify/src/connector.css new file mode 100644 index 0000000..a7205fb --- /dev/null +++ b/netlify/src/connector.css @@ -0,0 +1,84 @@ +/* + * Search UI: Styles for Query suggestion List "combobox", TO BE eventually replaced by GCWeb reference implementation codebase + */ + .query-suggestions { + background-color: white; + border-left: 1px solid #ccc; + border-right: 1px solid #ccc; + cursor: pointer; + left: 0; + list-style-type: none; + padding: 0; + position: absolute; + top: 100%; + width: 100%; + z-index: 60; + + &:has(li) { + border-bottom: 1px solid #ccc; + } + + & .suggestion-item { + padding: 5px 10px; + + &:hover, &.selected-suggestion { + background-color: #ddd; + } + + &::before { + content: "\e003"; + font-family: "Glyphicons Halflings"; + font-size: 0.8em; + line-height: 1; + margin-right: 12px; + position: relative; + top: 1px; + } + } +} + +/* Top-right query suggestions */ +#wb-bnr .query-suggestions { + left: auto; + top: auto; + width: calc(100% - 30px); +} + +@media screen and (max-width: 991px) { + #wb-bnr .query-suggestions { + position: relative; + width: 100%; + } +} + +/* + * Facet sidebar layout + */ +.gc-facet-toggle .glyphicon-chevron-left { + display: inline-block; + transition: transform 0.2s ease; +} + +/* Rotate chevron to point right when the panel is collapsed */ +.gc-facet-toggle[aria-expanded="false"] .glyphicon-chevron-left { + transform: rotate(180deg); +} + +.gc-facet-values li { + overflow-wrap: break-word; + position: relative; +} + +/* Stretch the link click area to the full row without affecting its visual appearance */ +.gc-facet-values a::after { + content: ""; + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; +} + +.gc-date-pickers .form-control { + width: 100%; +} diff --git a/netlify/src/connector.js b/netlify/src/connector.js new file mode 100644 index 0000000..408ead4 --- /dev/null +++ b/netlify/src/connector.js @@ -0,0 +1,1890 @@ +import { + buildSearchEngine, + buildSearchBox, + buildResultList, + buildQuerySummary, + buildPager, + buildResultsPerPage, + buildSearchStatus, + buildUrlManager, + buildDidYouMean, + buildContext, + buildInteractiveResult, + buildFacet, + buildDateFacet, + buildDateFilter, + buildDateRange, + loadAdvancedSearchQueryActions, + loadSortCriteriaActions, + HighlightUtils, + getOrganizationEndpoints +} from './headless.esm.js'; + +// Search UI base +const baseElement = document.querySelector( '[data-gc-search]' ); + +// Window location variables +const winLoc = window.location; +const winPath = winLoc.pathname; +const winOrigin = winLoc.origin; +const originPath = winOrigin + winPath; + +// Parameters +const defaults = { + "searchHub": "canada-gouv-public-websites", + "organizationId": "", + "accessToken":"", + "searchBoxQuery": "#sch-inp-ac", + "lang": "en", + "numberOfSuggestions": 5, + "minimumCharsForSuggestions": 3, + "enableHistoryPush": true, + "isContextSearch": false, + "isAdvancedSearch": false, + "originLevel3": originPath, + "pipeline": "", + "automaticallyCorrectQuery": false, + "numberOfPages": 9, + "facets": [] +}; +let lang = document.querySelector( "html" )?.lang; +let paramsOverride = baseElement ? JSON.parse( baseElement.dataset.gcSearch ) : {}; +let paramsDetect = {}; +let params = {}; +let urlParams; +let hashParams; +let originLevel3RelativeUrl = ""; + +// Headless controllers +let headlessEngine; +let contextController; +let searchBoxController; +let resultListController; +let querySummaryController; +let didYouMeanController; +let pagerController; +let statusController; +let urlManager; +let unsubscribeManager; +let unsubscribeSearchBoxController; +let unsubscribeResultListController; +let unsubscribeQuerySummaryController; +let unsubscribeDidYouMeanController; +let unsubscribePagerController; +let unsubscribeFacetControllers = []; +let unsubscribeDateFilterControllers = []; + +// Facet configs and controllers +let facetNormalizedConfigs = []; +let facetControllers = []; +let facetStates = []; +let dateFilterControllers = []; +let dateFilterStates = []; + +// UI states +let updateSearchBoxFromState = false; +let searchBoxState; +let resultListState; +let querySummaryState; +let didYouMeanState; +let pagerState; +let lastCharKeyUp; +let activeSuggestion = 0; +let pagerManuallyCleared = false; + +// Firefox patch +let isFirefox = navigator.userAgent.indexOf( "Firefox" ) !== -1; +let waitForkeyUp = false; + +// UI Elements placeholders +const resultSectionID = "wb-land"; +let searchBoxElement; +let formElement = document.querySelector( `.page-type-search main [role=search], #gc-searchbox, form[action="#${resultSectionID}"]` ); +let resultsSection = document.querySelector( `#${resultSectionID}` ); +let resultListElement = document.querySelector( '#result-list' ); +let querySummaryElement = document.querySelector( '#query-summary' ); +let pagerElement = document.querySelector( '#pager' ); +let suggestionsElement = document.querySelector( '#suggestions' ); +let didYouMeanElement = document.querySelector( '#did-you-mean' ); +let facetSidebarElement = document.querySelector( '#gc-facet-sidebar' ); +let facetPanelElement = document.querySelector( '#gc-facet-panel' ); + +// UI templates +let resultTemplateHTML = document.getElementById( 'sr-single' )?.innerHTML; +let noResultTemplateHTML = document.getElementById( 'sr-nores' )?.innerHTML; +let resultErrorTemplateHTML = document.getElementById( 'sr-error' )?.innerHTML; +let querySummaryTemplateHTML = document.getElementById( 'sr-query-summary' )?.innerHTML; +let didYouMeanTemplateHTML = document.getElementById( 'sr-did-you-mean' )?.innerHTML; +let noQuerySummaryTemplateHTML = document.getElementById( 'sr-noquery-summary' )?.innerHTML; +let previousPageTemplateHTML = document.getElementById( 'sr-pager-previous' )?.innerHTML; +let pageTemplateHTML = document.getElementById( 'sr-pager-page' )?.innerHTML; +let nextPageTemplateHTML = document.getElementById( 'sr-pager-next' )?.innerHTML; +let pagerContainerTemplateHTML = document.getElementById( 'sr-pager-container' )?.innerHTML; +let qsA11yHintHTML = document.getElementById( 'sr-qs-hint' )?.innerHTML; + +// Init parameters and UI +function initSearchUI() { + if( !baseElement || !DOMPurify ) { + return; + } + + if ( !lang && winPath.includes( "/fr/" ) ) { + paramsDetect.lang = "fr"; + } + if ( lang.startsWith( "fr" ) ) { + paramsDetect.lang = "fr"; + } + + paramsDetect.isContextSearch = !winPath.endsWith( '/sr/srb.html' ) && !winPath.endsWith( '/sr/sra.html' ); + paramsDetect.isAdvancedSearch = !!document.getElementById( 'advseacon1' ) || winPath.endsWith( '/advanced-search.html' ) || winPath.endsWith( '/recherche-avancee.html' ); + paramsDetect.enableHistoryPush = !paramsDetect.isAdvancedSearch; + + // Final parameters object + params = Object.assign( defaults, paramsDetect, paramsOverride ); + + // Update the URL params and the hash params on navigation + window.onpopstate = () => { + var match, + pl = /\+/g, // Regex for replacing addition symbol with a space + search = /([^&=]+)=?([^&]*)/g, + decode = function ( s ) { return decodeURIComponent( s.replace( pl, " " ) ); }, + query = winLoc.search.substring( 1 ); + + urlParams = {}; + hashParams = {}; + + // Ignore linting errors in regard to affectation instead of condition in the loops + // jshint -W084 + while ( match = search.exec( query ) ) { // eslint-disable-line no-cond-assign + urlParams[ decode(match[ 1 ] ) ] = stripHtml( decode( match[ 2 ] ) ); + } + query = winLoc.hash.substring( 1 ); + + while ( match = search.exec( query ) ) { // eslint-disable-line no-cond-assign + hashParams[ decode( match[ 1 ] ) ] = stripHtml( decode( match[ 2 ] ) ); + } + // jshint +W084 + }; + + window.onpopstate(); + + // Initialize templates + initTpl(); + + // override origineLevel3 through query parameters + if ( urlParams.originLevel3 ) { + params.originLevel3 = urlParams.originLevel3; + } + // override sort through query parameters + if (urlParams.sort) { + params.sort = urlParams.sort; + } + // set the custom action cause for the initial search + if ( urlParams.actionCause ) { + params.actionCause = urlParams.actionCause; + + // changing the URL without reloading the page to remove actionCause + if ( window.history.replaceState ) { + var newUrl = new URL( winLoc.href ); + newUrl.searchParams.delete( 'actionCause' ); + window.history.replaceState( { path : newUrl.href }, '', newUrl.href ); + } + } + + // Auto detect relative path from originLevel3 + if( !params.originLevel3.startsWith( "/" ) && /http|www/.test( params.originLevel3 ) ) { + try { + const absoluteURL = new URL( params.originLevel3 ); + originLevel3RelativeUrl = absoluteURL.pathname; + } + catch( exception ) { + console.warn( "Exception while auto detecting relative path: " + exception.message ); + } + } + else { + originLevel3RelativeUrl = params.originLevel3; + } + + if ( !params.endpoints ) { + params.endpoints = getOrganizationEndpoints( params.organizationId, 'prod' ); + } + + // Show error on load if no access token is provided + if ( !params.accessToken ) { + showQueryErrorMessage(); + return; + } + + // Initialize the Headless engine + initEngine(); +} + +// Initialize default templates +function initTpl() { + + // Auto-create parts of search pages templates if not already defined + // Default templates + if ( !resultTemplateHTML ) { + if ( lang === "fr" ) { + resultTemplateHTML = + `

%[result.title]

+
  • %[result.raw.author]
+ %[result.breadcrumb] +

- %[highlightedExcerpt]

`; + } + else { + resultTemplateHTML = + `

%[result.title]

+
  • %[result.raw.author]
+ %[result.breadcrumb] +

- %[highlightedExcerpt]

`; + } + } + + if ( !noResultTemplateHTML ) { + if ( lang === "fr" ) { + noResultTemplateHTML = + `
+

Aucun résultat

+

Aucun résultat ne correspond à vos critères de recherche.

+

Suggestions :

+
    +
  • Assurez-vous que tous vos termes de recherches sont bien orthographiés
  • +
  • Utilisez de différents termes de recherche
  • +
  • Utilisez des termes de recherche plus généraux
  • +
  • Consultez les  trucs de recherche
  • +
  • Essayez la recherche avancée
  • +
+
`; + } + else { + noResultTemplateHTML = + `
+

No results

+

No pages were found that match your search terms.

+

Suggestions:

+
    +
  • Make sure all search terms are spelled correctly
  • +
  • Try different search terms
  • +
  • Try more general search terms
  • +
  • Consult the search tips
  • +
  • Try the advanced search
  • +
+
`; + } + } + + if ( !resultErrorTemplateHTML ) { + if ( lang === "fr" ) { + resultErrorTemplateHTML = + `
+

Nous éprouvons actuellement des problèmes avec la fonction de recherche sur le site Web Canada.ca

+

L'équipe chargée de rétablir les services touchés travaille de façon à résoudre le problème aussi rapidement que possible. Nous vous prions de nous excuser pour tout inconvénient.

+
`; + } + else { + resultErrorTemplateHTML = + `
+

The Canada.ca Search is currently experiencing issues

+

A resolution for the restoration is presently being worked. We apologize for any inconvenience.

+
`; + } + } + + if ( !querySummaryTemplateHTML ) { + if ( lang === "fr" ) { + querySummaryTemplateHTML = + `

%[numberOfResults] résultats de recherche pour "%[query]"

`; + } + else { + querySummaryTemplateHTML = + `

%[numberOfResults] search results for "%[query]"

`; + } + } + + if ( !didYouMeanTemplateHTML ) { + if ( lang === "fr" ) { + didYouMeanTemplateHTML = + `

Rechercher plutôt ?

`; + } + else { + didYouMeanTemplateHTML = + `

Did you mean ?

`; + } + } + + if ( !noQuerySummaryTemplateHTML ) { + if ( lang === "fr" ) { + noQuerySummaryTemplateHTML = + `

%[numberOfResults] résultats de recherche

`; + } + else { + noQuerySummaryTemplateHTML = + `

%[numberOfResults] search results

`; + } + } + + if ( !previousPageTemplateHTML ) { + if ( lang === "fr" ) { + previousPageTemplateHTML = + ` +
+
+
+

${isFr ? 'Filtres' : 'Filters'}

+ + ${facetPlaceholders} +
+
+
+
+
+
` + ); + + // Store references and attach event handlers after insertion + facetSidebarElement = document.getElementById( 'gc-facet-sidebar' ); + facetPanelElement = document.getElementById( 'gc-facet-panel' ); + resultsSection = document.getElementById( resultSectionID ); + document.getElementById( 'gc-facet-toggle' ).onclick = toggleFacetSidebar; + document.querySelector( '#gc-facet-clear-all-container .btn-link' ).onclick = () => { + facetControllers.forEach( ( c ) => c?.deselectAll() ); + dateFilterControllers.forEach( ( c ) => c?.clear() ); + }; + } + + // auto-create results + if ( !resultsSection ) { + resultsSection = document.createElement( "section" ); + resultsSection.id = resultSectionID; + } + + // auto-create query summary element + if ( !querySummaryElement ) { + querySummaryElement = document.createElement( "div" ); + querySummaryElement.id = "query-summary"; + + resultsSection.append( querySummaryElement ); + } + + // auto-create did you mean element + if ( !didYouMeanElement ) { + didYouMeanElement = document.createElement( "div" ); + didYouMeanElement.id = "did-you-mean"; + + resultsSection.append( didYouMeanElement ); + } + + // auto-create results section if not present + if ( !resultListElement ) { + resultListElement = document.createElement( "div" ); + resultListElement.id = "result-list"; + resultListElement.classList.add( "results" ); + + resultsSection.append( resultListElement ); + } + + // auto-create pager + if ( !pagerElement ) { + let newPagerElement = document.createElement( "div" ); + newPagerElement.innerHTML = pagerContainerTemplateHTML; + + resultsSection.append( newPagerElement ); + pagerElement = newPagerElement; + } + + // initialize the search box + searchBoxElement = document.querySelector( params.searchBoxQuery ); + + if ( searchBoxElement ) { + + // default searchbox attributes + searchBoxElement.setAttribute( 'type', 'search' ); // default, when query suggestions are disabled + + // if query suggestions are enabled and not advanced search, auto-create suggestions element and update searchbox attributes + if ( params.numberOfSuggestions > 0 && !params.isAdvancedSearch && !suggestionsElement ) { + searchBoxElement.setAttribute( 'type', 'text' ); + searchBoxElement.role = "combobox"; + searchBoxElement.setAttribute( 'aria-expanded', 'false' ); + searchBoxElement.setAttribute( 'aria-autocomplete', 'list' ); + + suggestionsElement = document.createElement( "ul" ); + suggestionsElement.id = "suggestions"; + suggestionsElement.role = "listbox"; + suggestionsElement.classList.add( "query-suggestions" ); + + searchBoxElement.after( suggestionsElement ); + searchBoxElement.setAttribute( 'aria-controls', 'suggestions' ); + + // Add accessibility instructions after query suggestions + suggestionsElement.insertAdjacentHTML( 'afterEnd', qsA11yHintHTML ); + suggestionsElement.setAttribute( "aria-describedby", "sr-qs-hint" ); + + // Document-wide listener to close query suggestion box if click elsewhere + document.addEventListener( "click", function( evnt ) { + if ( suggestionsElement && ( evnt.target.className !== "suggestion-item" && evnt.target.id !== searchBoxElement?.id ) ) { + closeSuggestionsBox(); + } + } ); + } + } +} + +// Detect if localStorage is available +function hasLocalStorage() { + try { + return typeof localStorage !== 'undefined'; + } catch ( error ) { + return false; + } +} + +// Limit actions history array to items newer than 7 days +function limitCoveoAnalyticsHistory( actionsHistory ) { + const now = new Date(); + const sevenDaysAgo = now.getTime() - 7 * 24 * 60 * 60 * 1000; + + return actionsHistory.filter( ( action ) => { + const parsedTime = new Date( action.time.replace( /^"|"$/g, "" ) ); + return parsedTime.getTime() >= sevenDaysAgo; + } ); +} + +// Saves the actions history array to either localStorage or a cookie, depending on what's available +function saveCoveoAnalyticsHistory( actionsHistory ) { + const key = '__coveo.analytics.history'; + const serialized = JSON.stringify( actionsHistory ); + + // Coveo will use localStorage if available, ignoring cookies + if ( hasLocalStorage() ) { + localStorage.setItem( key, serialized ); + } else { + // No localStorage, try cookies + try { + const expiry = 7 * 24 * 60 * 60; // 7-day expiry + document.cookie = `${key}=${serialized}; path=/; max-age=${expiry}`; + } catch ( error ) { + // Do nothing if cookies are disabled + } + } +} + +// Sanitize query to remove HTML tags +function sanitizeQuery(q) { + return q.replace(/<[^>]*>?/gm, ''); +} + +// Normalize a single raw facet config entry from the HTML attribute. +// Accepts { field, label|title, facetId, numberOfValues, sortCriteria }. +// Returns a clean config object, or null if the entry is invalid. +function normalizeFacetConfig( raw ) { + if ( !raw || typeof raw !== 'object' || Array.isArray( raw ) ) { + return null; + } + + const field = typeof raw.field === 'string' ? raw.field.trim() : ''; + if ( !field ) { + return null; + } + + const labelRaw = typeof raw.label === 'string' ? raw.label.trim() : ''; + const titleRaw = typeof raw.title === 'string' ? raw.title.trim() : ''; + const label = labelRaw || titleRaw || field; + + const facetId = ( typeof raw.facetId === 'string' && raw.facetId.trim() ) + ? raw.facetId.trim() + : field; + + const numberOfValues = ( Number.isInteger( raw.numberOfValues ) && raw.numberOfValues > 0 ) + ? raw.numberOfValues + : 8; + + const sortCriteria = ( raw.sortCriteria === 'alphanumeric' || raw.sortCriteria === 'occurrences' ) + ? raw.sortCriteria + : 'occurrences'; + + const facetType = raw.facetType === 'dateRange' ? 'dateRange' : 'regular'; + + return { field, label, facetId, numberOfValues, sortCriteria, facetType }; +} + +// Format a Date as a Coveo date string: YYYY/MM/DD@HH:mm:ss +function formatCoveoDate( date ) { + const pad = ( n ) => String( n ).padStart( 2, '0' ); + return `${date.getFullYear()}/${pad( date.getMonth() + 1 )}/${pad( date.getDate() )}@${pad( date.getHours() )}:${pad( date.getMinutes() )}:${pad( date.getSeconds() )}`; +} + +// Convert YYYY-MM-DD (date input value) to Coveo date string +function inputDateToCoveoDate( dateStr, endOfDay ) { + if ( !dateStr ) { return ''; } + return dateStr.replace( /-/g, '/' ) + ( endOfDay ? '@23:59:59' : '@00:00:00' ); +} + +// Convert a Coveo date string to YYYY-MM-DD for a date input +function coveoDateToInputDate( coveoDate ) { + if ( !coveoDate ) { return ''; } + return String( coveoDate ).slice( 0, 10 ).replace( /\//g, '-' ); +} + +// Predefined relative date periods for the date facet (start is relative, end is fixed at page load) +const DATE_FACET_PERIODS = ( () => { + const end = formatCoveoDate( new Date() ); + return [ + { en: 'Past day', fr: 'Dernière journée', range: buildDateRange( { start: { period: 'past', unit: 'day', amount: 1 }, end, endInclusive: true } ) }, + { en: 'Past week', fr: 'Dernière semaine', range: buildDateRange( { start: { period: 'past', unit: 'week', amount: 1 }, end, endInclusive: true } ) }, + { en: 'Past month', fr: 'Dernier mois', range: buildDateRange( { start: { period: 'past', unit: 'month', amount: 1 }, end, endInclusive: true } ) }, + { en: 'Past year', fr: 'Dernière année', range: buildDateRange( { start: { period: 'past', unit: 'year', amount: 1 }, end, endInclusive: true } ) }, + ]; +} )(); + +// rebuild a clean query string out of a JSON object +function buildCleanQueryString( paramsObject ) { + let urlParam = ""; + for ( var prop in paramsObject ) { + if ( paramsObject[ prop ] ) { + if ( urlParam !== "" ) { + urlParam += "&"; + } + + urlParam += prop + "=" + stripHtml( paramsObject[ prop ].replaceAll( '+', ' ' ) ); + } + } + return urlParam; +} + +// Filters out dangerous URIs that can create XSS attacks such as `javascript:`. +function filterProtocol( uri ) { + + const isAbsolute = /^(https?|mailto|tel):/i.test( uri ); + const isRelative = /^(\/|\.\/|\.\.\/)/.test( uri ); + + return isAbsolute || isRelative ? uri : ''; +} + +// Strip HTML tags of a given string +function stripHtml(html) { + let tmp = document.createElement( "DIV" ); + tmp.innerHTML = html; + return tmp.textContent || tmp.innerText || ""; +} + +// Focus to H2 heading in results section +function focusToView() { + let focusElement = resultsSection.querySelector( "h2" ); + + if( focusElement ) { + focusElement.tabIndex = -1; + focusElement.focus(); + } +} + +// Get date converted from GMT (Coveo) to current timezone +function getDateInCurrentTimeZone( date ) { + const offset = date.getTimezoneOffset(); + return new Date( date.getTime() + ( offset * 60 * 1000 ) ); +} + +// get a short date format like YYYY-MM-DD +function getShortDateFormat( date ){ + let currentTZDate = getDateInCurrentTimeZone( date ); + return currentTZDate.toISOString().split( 'T' )[ 0 ]; +} + +// get a long date format like May 21, 2024 +function getLongDateFormat( date, lang ){ + let currentTZDate = getDateInCurrentTimeZone( date ); + let langCA = lang + "-CA"; + + return currentTZDate.toLocaleDateString( langCA, { year: 'numeric', month: 'short', day: 'numeric' } ); +} + +// checking for default date , Jan 1st, 1970 +function isEmptyDate( date ) { + return date instanceof Date && + date.getFullYear() === 1970 && + date.getMonth() === 0 && // January is 0 + date.getDate() === 1; +} + +// Convert date parameter to GMT format YYYY/MM/DD +function getGMTDate( date ) { + const paramDate = new Date( date ); + const GMTDateTime = new Date( paramDate.getTime() - paramDate.getTimezoneOffset()*60*1000 ); + + const year = GMTDateTime.getFullYear(); + const month = GMTDateTime.getMonth() + 1; // Add 1 for 1-indexed month + const day = GMTDateTime.getDate(); + + const formattedMonth = month < 10 ? '0' + month : month; + const formattedDay = day < 10 ? '0' + day : day; + + return `${year}/${formattedMonth}/${formattedDay}`; +} + +// Initiate proprietary Headless engine +function initEngine() { + headlessEngine = buildSearchEngine( { + configuration: { + organizationEndpoints: params.endpoints, + organizationId: params.organizationId, + accessToken: params.accessToken, + search: { + locale: params.lang, + searchHub: params.searchHub, + pipeline: params.pipeline + }, + preprocessRequest: ( request, clientOrigin ) => { + try { + if( clientOrigin === 'analyticsFetch' || clientOrigin === 'analyticsBeacon' ) { + let requestContent = JSON.parse( request.body ); + + // filter user sensitive content + requestContent.originLevel3 = params.originLevel3; + + // override actionCause if present + if ( params.actionCause ) { + requestContent.actionCause = params.actionCause; + params.actionCause = ""; // reset the parameter to avoid polluting future searches with the same action cause + } + + // documentAuthor cannot be longer than 128 chars based on search platform + if ( requestContent.documentAuthor ) { + requestContent.documentAuthor = requestContent.documentAuthor.substring( 0, 128 ); + } + + request.body = JSON.stringify( requestContent ); + + // Event used to expose a data layer when search events occur; useful for analytics + const searchEvent = new CustomEvent( "searchEvent", { detail: requestContent } ); + document.dispatchEvent( searchEvent ); + } + if ( clientOrigin === 'searchApiFetch' ) { + let requestContent = JSON.parse( request.body ); + + // filter user sensitive content + requestContent.enableQuerySyntax = params.isAdvancedSearch; + requestContent.mlParameters = { + "filters": { + "c_context_searchpageurl": params.originLevel3, + "c_context_searchpagerelativeurl": originLevel3RelativeUrl + } + }; + + if ( requestContent.analytics ) { + requestContent.analytics.originLevel3 = params.originLevel3; + } + + // override actionCause if present + if ( params.actionCause ) { + requestContent.analytics.actionCause = params.actionCause; + } + + let q = requestContent.q; + requestContent.q = sanitizeQuery( q ); + + // Filters out actions history items older than 7 days + const actionsHistory = limitCoveoAnalyticsHistory( requestContent.actionsHistory ); + if ( actionsHistory.length !== requestContent.actionsHistory.length ) { + requestContent.actionsHistory = actionsHistory; + saveCoveoAnalyticsHistory( actionsHistory ); + } + + request.body = JSON.stringify( requestContent ); + } + } catch { + console.warn( "No Headless Engine Loaded." ); + } + + return request; + } + } + } ); + + contextController = buildContext( headlessEngine ); + contextController.set( { "searchPageUrl" : params.originLevel3, "searchPageRelativeUrl" : originLevel3RelativeUrl } ); + + // build controllers + searchBoxController = buildSearchBox( headlessEngine, { + options: { + numberOfSuggestions: params.numberOfSuggestions, + highlightOptions: { + notMatchDelimiters: { + open: '', + close: '', + }, + }, + } + } ); + + resultListController = buildResultList( headlessEngine, { + options: { + fieldsToInclude: [ "author", "date", "language", "urihash", "objecttype", "collection", "source", "permanentid", "displaynavlabel", "hostname", "disp_declared_type", "description" ] + } + } ); + querySummaryController = buildQuerySummary( headlessEngine ); + didYouMeanController = buildDidYouMean( headlessEngine, { options: { automaticallyCorrectQuery: params.automaticallyCorrectQuery } } ); + pagerController = buildPager( headlessEngine, { options: { numberOfPages: params.numberOfPages } } ); + statusController = buildSearchStatus( headlessEngine ); + + // Build a facet controller for each normalized facet config + facetNormalizedConfigs.forEach( ( config, index ) => { + if ( config.facetType === 'dateRange' ) { + const dateFacetController = buildDateFacet( headlessEngine, { + options: { + field: config.field, + facetId: config.facetId, + currentValues: DATE_FACET_PERIODS.map( ( p ) => p.range ), + generateAutomaticRanges: false, + } + } ); + const dateFilterController = buildDateFilter( headlessEngine, { + options: { + field: config.field, + facetId: config.facetId + '__filter', + } + } ); + facetControllers[ index ] = dateFacetController; + dateFilterControllers[ index ] = dateFilterController; + facetStates[ index ] = dateFacetController.state; + dateFilterStates[ index ] = dateFilterController.state; + unsubscribeFacetControllers[ index ] = dateFacetController.subscribe( + () => updateDateFacetState( index, dateFacetController.state, dateFilterController.state ) + ); + unsubscribeDateFilterControllers[ index ] = dateFilterController.subscribe( + () => updateDateFacetState( index, dateFacetController.state, dateFilterController.state ) + ); + } else { + const controller = buildFacet( headlessEngine, { + options: { + field: config.field, + facetId: config.facetId, + numberOfValues: config.numberOfValues, + sortCriteria: config.sortCriteria, + } + } ); + facetControllers[ index ] = controller; + facetStates[ index ] = controller.state; + unsubscribeFacetControllers[ index ] = controller.subscribe( + () => updateFacetState( index, controller.state ) + ); + } + } ); + + // Refine search based on URL parameters for filters, mostly used in Advanced Search to trigger only one search per page load + if ( urlParams.allq || urlParams.exctq || urlParams.anyq || urlParams.noneq || urlParams.fqupdate || urlParams.dmn || urlParams.fqocct || urlParams.elctn_cat || urlParams.filetype || urlParams.site || urlParams.year || urlParams.declaredtype || urlParams.startdate || urlParams.enddate || urlParams.dprtmnt ) { + let q = []; + let qString = ""; + let aqString = ""; + let fqupdate, elctn_cat, filetype, site, year, startDate, endDate; + + if ( urlParams.allq ) { + qString = urlParams.allq.replaceAll( '+', ' ' ); + } + if ( urlParams.exctq ) { + q.push( '"' + urlParams.exctq.replaceAll( '+', ' ' ) + '"' ); + } + if ( urlParams.anyq ) { + q.push( urlParams.anyq.replaceAll( '+', ' ' ).replaceAll( ' ', ' OR ' ) ); + } + if ( urlParams.noneq ) { + q.push( "NOT (" + urlParams.noneq.replaceAll( '+', ' ' ).replaceAll( ' ', ') NOT(' ) + ")" ); + } + + qString += q.length ? ' (' + q.join( ')(' ) + ')' : ''; + + if ( urlParams.fqocct ) { + if ( urlParams.fqocct === "title_t" ) { + aqString = "@title=" + qString; + qString = ""; + } + else if ( urlParams.fqocct === "url_t" ) { + aqString = "@uri=" + qString; + qString = ""; + } + } + + if ( urlParams.fqupdate ) { + fqupdate = urlParams.fqupdate.toLowerCase(); + + if ( fqupdate === "datemodified_dt:[now-1day to now]" ) { + aqString += ' @date>today-1d'; + } + else if( fqupdate === "datemodified_dt:[now-7days to now]" ) { + aqString += ' @date>today-7d'; + } + else if( fqupdate === "datemodified_dt:[now-1month to now]" ) { + aqString += ' @date>today-30d'; + } + else if( fqupdate === "datemodified_dt:[now-1year to now]" ) { + aqString += ' @date>today-365d'; + } + } + if ( urlParams.dmn ) { + aqString += ' @uri="' + urlParams.dmn + '"'; + } + + + // Specifically for Elections Canada, allows to search within scope + if ( urlParams.elctn_cat ) { + elctn_cat = urlParams.elctn_cat.toLowerCase(); + + if( elctn_cat === "his" ) { + aqString += ' @uri="dir=his"'; + } + else if( elctn_cat === "comp" ) { + aqString += ' @uri="compendium"'; + } + else if( elctn_cat === "ogi" ) { + aqString += ' @uri="dir=gui"'; + } + else if( elctn_cat === "officer_manuals" ) { + aqString += ' @uri="dir=pub"'; + } + else if( elctn_cat === "research" ) { + aqString += ' @uri="dir=rec"'; + } + else if( elctn_cat === "press_release" ) { + aqString += ' @uri="dir=pre"'; + } + else if( elctn_cat === "legislation" ) { + aqString += ' @uri="dir=loi"'; + } + else if( elctn_cat === "charg" ) { + aqString += ' @uri="section=charg"'; + } + else if( elctn_cat === "ca" ) { + aqString += ' @uri="dir=ca"'; + } + else if( elctn_cat === "un" ) { + aqString += ' @uri="dir=un"'; + } + else if( elctn_cat === "pre" ) { + aqString += ' @uri="dir=pre-com"'; + } + else if( elctn_cat === "spe" ) { + aqString += ' @uri="dir=spe-com"'; + } + else if( elctn_cat === "rep" ) { + aqString += ' @uri="section=rep"'; + } + } + + if ( urlParams.filetype ) { + filetype = urlParams.filetype.toLowerCase(); + + if ( filetype === "application/pdf" ) { + aqString += ' @filetype==(pdf)'; + } + else if ( filetype === "text/html" ) { + aqString += ' @filetype==(html)'; + } + else if ( filetype === "ps" ) { + aqString += ' @filetype==(ps)'; + } + else if ( filetype === "application/msword" ) { + aqString += ' @filetype==(doc,docx)'; + } + else if ( filetype === "application/vnd.ms-excel" ) { + aqString += ' @filetype==(xls,xlsx)'; + } + else if ( filetype === "application/vnd.ms-powerpoint" ) { + aqString += ' @filetype==(ppt,pptx)'; + } + else if ( filetype === "application/rtf" ) { + aqString += ' @filetype==(rtf)'; + } + } + + if ( urlParams.year ) { + year = Number.parseInt( urlParams.year ); + + if ( Number.isInteger( year ) && ( year >= 2000 ) && ( year <= ( new Date().getFullYear() + 1 ) ) ) { + aqString += ' @uri=".ca/' + urlParams.year + '"'; + } + else { + aqString += ' NOT @uri'; + } + } + + if ( urlParams.site ) { + site = urlParams.site.toLowerCase().replace( '*', '' ); + aqString += ' @canadagazettesite==' + site; + } + + if ( urlParams.startdate ) { + startDate = getGMTDate( urlParams.startdate ); + aqString += ' @date >= "' + startDate + '"'; + } + + if ( urlParams.enddate ) { + endDate = getGMTDate( urlParams.enddate ); + aqString += ' @date <= "' + endDate + '"'; + } + + if ( urlParams.dprtmnt ) { + aqString += ' @author = "' + urlParams.dprtmnt + '"'; + + } + + if ( urlParams.declaredtype ) { + aqString += ' @declared_type="' + urlParams.declaredtype.replaceAll( /'/g, ''' ) + '"'; + + } + + if ( aqString ) { + const action = loadAdvancedSearchQueryActions( headlessEngine ).updateAdvancedSearchQueries( { + aq: aqString, + } ); + headlessEngine.dispatch( action ); + } + + searchBoxController.updateText( qString ); + searchBoxController.submit(); + } + + if ( hashParams.q && searchBoxElement ) { + searchBoxElement.value = stripHtml( hashParams.q ); + } + else if ( urlParams.q && searchBoxElement ) { + searchBoxElement.value = stripHtml( urlParams.q ); + } + + // Get the query portion of the URL + const fragment = () => { + if ( !statusController.state.firstSearchExecuted && !hashParams.q ) { + return buildCleanQueryString( urlParams ); + } + + return buildCleanQueryString( hashParams ); + }; + + urlManager = buildUrlManager( headlessEngine, { + initialState: { + fragment: fragment(), + }, + } ); + if ( params.sort ) { + const sortAction = loadSortCriteriaActions( headlessEngine ).registerSortCriterion( { + by: "date", + order: params.sort , + } ); + headlessEngine.dispatch( sortAction ); + } + + // Unsubscribe to controllers + unsubscribeManager = urlManager.subscribe( () => { + if ( !params.enableHistoryPush || winOrigin.startsWith( 'file://' ) ) { + return; + } + + let hash = `#${urlManager.state.fragment}`; + + if ( !statusController.state.firstSearchExecuted ) { + window.history.replaceState( null, document.title, originPath + hash ); + } else { + window.history.pushState( null, document.title, originPath + hash ); + } + } ); + + // Sync controllers when URL changes + const onHashChange = () => { + updateSearchBoxFromState = true; + urlManager.synchronize( fragment() ); + }; + + // Execute a search if parameters in the URL on page load + if ( !statusController.state.firstSearchExecuted && fragment() && fragment() !== 'q=' ) { + headlessEngine.executeFirstSearch(); + } + + // Subscribe to Headless controllers + unsubscribeSearchBoxController = searchBoxController.subscribe( () => updateSearchBoxState( searchBoxController.state ) ); + unsubscribeResultListController = resultListController.subscribe( () => updateResultListState( resultListController.state ) ); + unsubscribeQuerySummaryController = querySummaryController.subscribe( () => updateQuerySummaryState( querySummaryController.state ) ); + unsubscribeDidYouMeanController = didYouMeanController.subscribe( () => updateDidYouMeanState( didYouMeanController.state ) ); + unsubscribePagerController = pagerController.subscribe( () => updatePagerState( pagerController.state ) ); + + // Clear event tracking, for legacy browsers + const onUnload = () => { + window.removeEventListener( 'hashchange', onHashChange ); + unsubscribeManager?.(); + unsubscribeSearchBoxController?.(); + unsubscribeResultListController?.(); + unsubscribeQuerySummaryController?.(); + unsubscribeDidYouMeanController?.(); + unsubscribePagerController?.(); + unsubscribeFacetControllers.forEach( ( unsub ) => unsub?.() ); + unsubscribeDateFilterControllers.forEach( ( unsub ) => unsub?.() ); + }; + + // Listen to URL change (hash) + window.addEventListener( 'hashchange', onHashChange ); + + // Listen to page unload envent + window.addEventListener( 'unload', onUnload ); + + // Listen to "Enter" key up event for search suggestions + if ( searchBoxElement ) { + searchBoxElement.onkeydown = ( e ) => { + // Enter + if ( e.keyCode === 13 && ( activeSuggestion !== 0 && suggestionsElement && !suggestionsElement.hidden ) ) { + selectSuggestion(); + closeSuggestionsBox(); + e.preventDefault(); + } + // Escape or Tab + else if ( e.keyCode === 27 || e.keyCode === 9 ) { + closeSuggestionsBox(); + + if ( e.keyCode === 27 ) { + e.preventDefault(); + } + } + // Arrow key up + else if ( e.keyCode === 38 ) { + if ( !( isFirefox && waitForkeyUp ) ) { + waitForkeyUp = true; + searchBoxArrowKey( "up" ); + e.preventDefault(); + } + } + // Arrow key down + else if ( e.keyCode === 40 ) { + if ( !( isFirefox && waitForkeyUp ) ) { + waitForkeyUp = true; + searchBoxArrowKey( "down" ); + } + } + }; + searchBoxElement.onkeyup = ( e ) => { + waitForkeyUp = false; + lastCharKeyUp = e.keyCode; + // Keys that don't changes the input value + if ( ( e.key.length !== 1 && e.keyCode !== 46 && e.keyCode !== 8 ) || // Non-printable char except Delete or Backspace + ( e.ctrlKey && e.key !== "x" && e.key !== "X" && e.key !== "v" && e.key !== "V" ) ) { // Ctrl-key is pressed but not X or V is use + return; + } + + // Any other key + if ( searchBoxController.state.value !== e.target.value ) { + searchBoxController.updateText( stripHtml( e.target.value ) ); + } + if ( e.target.value.length < params.minimumCharsForSuggestions ){ + closeSuggestionsBox(); + } + }; + searchBoxElement.onfocus = () => { + lastCharKeyUp = null; + if ( searchBoxElement.value.length >= params.minimumCharsForSuggestions ) { + searchBoxController.showSuggestions(); + } + }; + } + + // Listen to submit event from the search form (advanced searches will instead reload the page with URl parameters to search on load) + if ( formElement ) { + formElement.onsubmit = ( e ) => { + if ( params.isAdvancedSearch ) { + return; // advanced search forces a post back + } + + e.preventDefault(); + + if ( searchBoxElement && searchBoxElement.value ) { + // Make sure we have the latest value in the search box state + if( searchBoxController.state.value !== searchBoxElement.value ) { + searchBoxController.updateText( stripHtml( searchBoxElement.value ) ); + } + searchBoxController.submit(); + } + else { + resultListElement.textContent = ""; + querySummaryElement.textContent = ""; + didYouMeanElement.textContent = ""; + pagerElement.textContent = ""; + pagerManuallyCleared = true; + + // Show no results message in Query Summary if no query entered + querySummaryElement.innerHTML = noResultTemplateHTML; + focusToView(); + } + }; + } +} + +// Show error message in Query Summary +function showQueryErrorMessage() { + if( !document.getElementById( resultSectionID ) ) { + baseElement.prepend( resultsSection ); + } + if ( !querySummaryElement ) { + return; + } + + querySummaryElement.textContent = ""; + querySummaryElement.innerHTML = resultErrorTemplateHTML; + focusToView(); + pagerManuallyCleared = false; +} + +function searchBoxArrowKey( direction ) { + if ( suggestionsElement.hidden ) { + return; + } + + if ( direction === "up" ) { + if ( !activeSuggestion || activeSuggestion <= 1 ) { + activeSuggestion = searchBoxState.suggestions.length; + } + else { + activeSuggestion -= 1; + } + } else { + if ( !activeSuggestion || activeSuggestion >= searchBoxState.suggestions.length ) { + activeSuggestion = 1; + } + else { + activeSuggestion += 1; + } + } + + updateSuggestionSelection(); +} + +// Select the active suggestion +function selectSuggestion() { + let suggestionElement = document.getElementById( 'suggestion-' + activeSuggestion ); + + if ( suggestionElement ) { + const selectedVal = stripHtml( suggestionElement.innerText ); + + if ( searchBoxController.state.value !== selectedVal ) { + searchBoxController.selectSuggestion( selectedVal ); + searchBoxElement.value = selectedVal; + } + } +} + +// open the suggestions box +function openSuggestionsBox() { + suggestionsElement.hidden = false; + searchBoxElement.setAttribute( 'aria-expanded', 'true' ); +} + +// close the suggestions box +function closeSuggestionsBox() { + if( !suggestionsElement ) { + return; + } + suggestionsElement.hidden = true; + activeSuggestion = 0; + searchBoxElement.setAttribute( 'aria-expanded', 'false' ); + searchBoxElement.removeAttribute( 'aria-activedescendant' ); +} + +// Toggle the facet sidebar between expanded and collapsed +function toggleFacetSidebar() { + if ( !facetSidebarElement || !facetPanelElement ) { + return; + } + + const toggleBtn = document.getElementById( 'gc-facet-toggle' ); + const resultsCol = document.getElementById( 'gc-results-col' ); + const isExpanded = toggleBtn?.getAttribute( 'aria-expanded' ) === 'true'; + + if ( isExpanded ) { + facetSidebarElement.hidden = true; + toggleBtn?.setAttribute( 'aria-expanded', 'false' ); + resultsCol?.classList.remove( 'col-md-8' ); + resultsCol?.classList.add( 'col-md-12' ); + } else { + facetSidebarElement.hidden = false; + toggleBtn?.setAttribute( 'aria-expanded', 'true' ); + resultsCol?.classList.remove( 'col-md-12' ); + resultsCol?.classList.add( 'col-md-8' ); + } +} + +// Update the visual selection of the active suggestion +function updateSuggestionSelection() { + // clear current suggestion + let activeSelection = suggestionsElement.getElementsByClassName( 'selected-suggestion' ); + let selectedSuggestionId = 'suggestion-' + activeSuggestion; + let suggestionElement = document.getElementById( selectedSuggestionId ); + Array.prototype.forEach.call(activeSelection, function( suggestion ) { + suggestion.classList.remove( 'selected-suggestion' ); + suggestion.setAttribute( 'aria-selected', "false" ); + }); + + suggestionElement.classList.add( 'selected-suggestion' ); + suggestionElement.setAttribute( 'aria-selected', "true" ); + searchBoxElement.setAttribute( 'aria-activedescendant', selectedSuggestionId ); +} + +// Update the search box state after search actions - used for QS +function updateSearchBoxState( newState ) { + const previousState = searchBoxState; + searchBoxState = newState; + + // Show query suggestions if a search action was not executed (if enabled) + if ( updateSearchBoxFromState && searchBoxElement && searchBoxElement.value !== newState.value ) { + searchBoxElement.value = stripHtml( newState.value ); + updateSearchBoxFromState = false; + return; + } + + if ( !suggestionsElement ) { + return; + } + + if ( lastCharKeyUp === 13 ) { + closeSuggestionsBox(); + return; + } + + // Build suggestions list + activeSuggestion = 0; + if ( !searchBoxState.isLoadingSuggestions && previousState?.isLoadingSuggestions ) { + suggestionsElement.textContent = ''; + searchBoxState.suggestions.forEach( ( suggestion, index ) => { + const currentIndex = index + 1; + const suggestionId = "suggestion-" + currentIndex; + const node = document.createElement( "li" ); + node.setAttribute( "class", "suggestion-item" ); + node.setAttribute( "aria-selected", "false" ); + node.setAttribute( "aria-setsize", searchBoxState.suggestions.length ); + node.setAttribute( "aria-posinset", currentIndex ); + node.role = "option"; + node.id = suggestionId; + node.onmouseenter = () => { + activeSuggestion = index + 1; + updateSuggestionSelection(); + }; + node.onclick = ( e ) => { + searchBoxController.selectSuggestion( e.currentTarget.innerText ); + searchBoxElement.value = stripHtml( e.currentTarget.innerText ); + }; + node.innerHTML = DOMPurify.sanitize( suggestion.highlightedValue ); + suggestionsElement.appendChild( node ); + }); + + if ( !searchBoxState.isLoading && searchBoxState.suggestions.length > 0 && searchBoxState.value.length >= params.minimumCharsForSuggestions ) { + openSuggestionsBox(); + } + else{ + closeSuggestionsBox(); + } + } +} + +// Update results list +function updateResultListState( newState ) { + resultListState = newState; + + if ( resultListState.isLoading ) { + if ( suggestionsElement ) { + closeSuggestionsBox(); + } + return; + } + + // Clear results list + resultListElement.textContent = ""; + + // Rebuild results list + if( !resultListState.hasError && resultListState.hasResults ) { + + if( !document.getElementById( resultSectionID ) ) { + baseElement.prepend( resultsSection ); + } + + resultListState.results.forEach( ( result, index ) => { + const sectionNode = document.createElement( "section" ); + const highlightedExcerpt = HighlightUtils.highlightString( { + content: result.excerpt, + highlights: result.excerptHighlights, + openingDelimiter: '', + closingDelimiter: '', + } ); + + const resultDate = new Date( result.raw.date ); + let author = ""; + + if( result.raw.author ) { + if( Array.isArray( result.raw.author ) ) { + author = stripHtml( result.raw.author.join( ';' ) ); + } + else { + author = stripHtml( result.raw.author ); + } + + author = author.replaceAll( ';' , '
  • ' ); + } + + let breadcrumb = ""; + let disp_declared_type = ""; + let description = ""; + let printableUri = encodeURI( result.printableUri ); + let clickUri = encodeURI( result.clickUri ); + let title = stripHtml( result.title ); + + printableUri = printableUri.replaceAll( '&' , '&' ); + printableUri = printableUri.replaceAll( '%252F' , '/' ); // handle slash + printableUri = printableUri.replaceAll( "%252C" , "," ); // handle comma + clickUri = clickUri.replaceAll( "%252C" , "%2C" ); // handle comma + clickUri = clickUri.replaceAll( "%252F" , "%2F" ); // handle slash + + if ( result.raw.hostname && result.raw.displaynavlabel ) { + const splittedNavLabel = ( Array.isArray( result.raw.displaynavlabel ) ? result.raw.displaynavlabel[0] : result.raw.displaynavlabel).split( '>' ); + breadcrumb = '
    1. ' + stripHtml( result.raw.hostname ) + + ' 
    2. ' + stripHtml( splittedNavLabel[splittedNavLabel.length-1] ) + '
    '; + } else { + breadcrumb = '

    ' + printableUri + '

    '; + } + + if ( result.raw.disp_declared_type ) { + disp_declared_type = stripHtml( result.raw.disp_declared_type ); + } + if ( result.raw.description ) { + description = stripHtml( result.raw.description ); + } + + // Searh result template mappings + sectionNode.innerHTML = resultTemplateHTML + .replace( '%[index]', index + 1 ) + .replace( 'https://www.canada.ca', filterProtocol( clickUri ) ) // invalid href are stripped + .replace( '%[result.clickUri]', filterProtocol( clickUri ) ) + .replace( '%[result.title]', title ) + .replace( '%[result.raw.author]', author ) + .replace( '%[result.breadcrumb]', breadcrumb ) + .replace( '%[result.printableUri]', printableUri ) + .replace( '%[result.raw.disp_declared_type]', disp_declared_type ) + .replace( '%[result.raw.description]', description ) + .replaceAll( '%[short-date-en]', isEmptyDate(resultDate) ? '' : getShortDateFormat( resultDate ) ) + .replaceAll( '%[short-date-fr]', isEmptyDate(resultDate) ? '' : getShortDateFormat( resultDate ) ) + .replace( '%[long-date-en]', isEmptyDate(resultDate) ? '' : getLongDateFormat( resultDate, 'en' ) ) + .replace( '%[long-date-fr]', isEmptyDate(resultDate) ? '' : getLongDateFormat( resultDate, 'fr' ) ) + .replace( '%[highlightedExcerpt]', highlightedExcerpt ); + + const interactiveResult = buildInteractiveResult( + headlessEngine, { + options: { result }, + } + ); + + let resultLink = sectionNode.querySelector( ".result-link" ); + + resultLink.onclick = () => { interactiveResult.select(); }; + resultLink.oncontextmenu = () => { interactiveResult.select(); }; + resultLink.onmousedown = () => { interactiveResult.select(); }; + resultLink.onmouseup = () => { interactiveResult.select(); }; + resultLink.ontouchstart = () => { interactiveResult.beginDelayedSelect(); }; + resultLink.ontouchend = () => { interactiveResult.cancelPendingSelect(); }; + + resultListElement.appendChild( sectionNode ); + } ); + } +} + +// Update heading that has number of results displayed (Query Summary) +function updateQuerySummaryState( newState ) { + querySummaryState = newState; + + if ( resultListState.firstSearchExecuted && !querySummaryState.isLoading && !querySummaryState.hasError ) { + + if ( !querySummaryElement ) { + return; + } + if( !document.getElementById( resultSectionID ) ) { + baseElement.prepend( resultsSection ); + } + querySummaryElement.textContent = ""; + if ( querySummaryState.total > 0 ) { + // Manually ask pager to redraw since even is not sent when manually cleared + if ( pagerManuallyCleared ) { + updatePagerState( pagerState ); + } + + let numberOfResults = querySummaryState.total.toLocaleString( params.lang ); + + // Generate the text content + const querySummaryHTML = ( ( querySummaryState.query !== "" && !params.isAdvancedSearch ) ? querySummaryTemplateHTML : noQuerySummaryTemplateHTML ) + .replace( '%[numberOfResults]', numberOfResults ) + .replace( '%[query]', '' ) + .replace( '%[queryDurationInSeconds]', querySummaryState.durationInSeconds.toLocaleString( params.lang ) ); + + querySummaryElement.innerHTML = querySummaryHTML; + + const queryElement = querySummaryElement.querySelector( '.sr-query' ); + if ( queryElement ){ + queryElement.textContent = querySummaryState.query; + } + } else { + querySummaryElement.innerHTML = noResultTemplateHTML; + } + focusToView(); + pagerManuallyCleared = false; + } + else if ( querySummaryState.hasError ) { + showQueryErrorMessage(); + } +} + +// update "Did you mean" recommendation +function updateDidYouMeanState( newState ) { + didYouMeanState = newState; + + if ( !didYouMeanElement ) + return; + + if ( resultListState.firstSearchExecuted ) { + didYouMeanElement.textContent = ""; + if ( didYouMeanState.hasQueryCorrection ) { + didYouMeanElement.innerHTML = didYouMeanTemplateHTML.replace( + '%[correctedQuery]', + stripHtml( didYouMeanState.queryCorrection.correctedQuery ) ); + const buttonNode = didYouMeanElement.querySelector( 'button' ); + buttonNode.onclick = ( e ) => { + updateSearchBoxFromState = true; + didYouMeanController.applyCorrection(); + e.preventDefault(); + }; + } + } +} + +// Update Pagination section +function updatePagerState( newState ) { + pagerState = newState; + if ( pagerState.maxPage === 0 ) { + pagerElement.textContent = ""; + return; + } + else if ( pagerElement.textContent === "" ) { + pagerElement.innerHTML = pagerContainerTemplateHTML; + } + + let prevLiNode = document.createElement( "li" ), + nextLiNode = document.createElement( "li" ), + pagerComponentElement = pagerElement.querySelector( "#pager" ); + + pagerComponentElement.textContent = ""; + prevLiNode.innerHTML = previousPageTemplateHTML; + nextLiNode.innerHTML = nextPageTemplateHTML; + + if ( !pagerState.hasPreviousPage ) { + prevLiNode.classList.add( "disabled" ); + } + + if ( !pagerState.hasNextPage ) { + nextLiNode.classList.add( "disabled" ); + } + + prevLiNode.querySelector( "button" ).onclick = () => { + pagerController.previousPage(); + + if ( params.isAdvancedSearch ) { + updatePagerUrlParam( pagerState.currentPage ); + } + }; + + nextLiNode.querySelector( "button" ).onclick = () => { + pagerController.nextPage(); + + if ( params.isAdvancedSearch ) { + updatePagerUrlParam( pagerState.currentPage ); + } + }; + + pagerComponentElement.appendChild( prevLiNode ); + + pagerState.currentPages.forEach( ( page ) => { + const liNode = document.createElement( "li" ); + const pageNo = page; + + liNode.innerHTML = pageTemplateHTML.replaceAll( '%[page]', stripHtml( pageNo ) ); + + if ( pagerState.currentPage - 1 > page || page > pagerState.currentPage + 1 ) { + liNode.classList.add( 'hidden-xs', 'hidden-sm' ); + if ( pagerState.currentPage - 2 > page || page > pagerState.currentPage + 2 ) { + liNode.classList.add( 'hidden-md' ); + } + } + + const buttonNode = liNode.querySelector( 'button' ); + + if ( page === pagerState.currentPage ) { + liNode.classList.add( "active" ); + buttonNode.setAttribute( "aria-current", "page" ); + } + + buttonNode.onclick = () => { + pagerController.selectPage( pageNo ); + + if ( params.isAdvancedSearch ) { + updatePagerUrlParam( pagerState.currentPage ); + } + }; + + pagerComponentElement.appendChild( liNode ); + } ); + + pagerComponentElement.appendChild( nextLiNode ); +} + +// Rebuild a single facet's DOM inside the facet panel +function updateFacetState( index, newState ) { + facetStates[ index ] = newState; + + if ( !facetPanelElement || newState.isLoading ) { + return; + } + + const config = facetNormalizedConfigs[ index ]; + const facetEl = document.getElementById( 'gc-facet-' + config.facetId ); + + if ( !facetEl ) { + return; + } + + // Preserve the open/closed state across re-renders, then clear children + const wasOpen = facetEl.open; + facetEl.textContent = ''; + facetEl.open = wasOpen; + + // acts as the facet label / collapse toggle + const summaryEl = document.createElement( 'summary' ); + summaryEl.textContent = config.label; + if ( newState.hasActiveValues ) { + const clearBtn = document.createElement( 'button' ); + clearBtn.type = 'button'; + clearBtn.className = 'btn btn-link btn-sm pull-right'; + clearBtn.textContent = lang === 'fr' ? 'Effacer le filtre' : 'Clear filter'; + clearBtn.onclick = ( e ) => { e.stopPropagation(); facetControllers[ index ].deselectAll(); }; + summaryEl.appendChild( clearBtn ); + } + facetEl.appendChild( summaryEl ); + + // Values list + const listEl = document.createElement( 'ul' ); + listEl.className = 'list-unstyled gc-facet-values'; + + newState.values.forEach( ( value ) => { + const liEl = document.createElement( 'li' ); + const isSelected = value.state === 'selected'; + const countFormatted = value.numberOfResults.toLocaleString( params.lang ); + const valueLabel = stripHtml( value.value ); + + if ( isSelected ) { + const removeHintEl = document.createElement( 'span' ); + removeHintEl.className = 'wb-inv'; + removeHintEl.textContent = lang === 'fr' ? 'Enlever le filtre actif:' : 'Remove active filter:'; + liEl.appendChild( removeHintEl ); + } + + const valueLink = document.createElement( 'a' ); + valueLink.href = '#'; + valueLink.onclick = ( e ) => { e.preventDefault(); facetControllers[ index ].toggleSelect( value ); }; + + if ( isSelected ) { + const iconEl = document.createElement( 'span' ); + iconEl.className = 'glyphicon glyphicon-ok mrgn-rght-sm'; + iconEl.setAttribute( 'aria-hidden', 'true' ); + valueLink.appendChild( iconEl ); + valueLink.appendChild( document.createTextNode( '\u00a0' ) ); + } + + valueLink.appendChild( document.createTextNode( valueLabel ) ); + + // Count sits outside as plain text so only the label looks like a link + const countEl = document.createElement( 'span' ); + countEl.className = 'gc-facet-count'; + countEl.innerHTML = ' (' + countFormatted + + ' ' + ( lang === 'fr' ? 'résultats' : 'results' ) + ')'; + + liEl.appendChild( valueLink ); + liEl.appendChild( countEl ); + listEl.appendChild( liEl ); + } ); + + facetEl.appendChild( listEl ); + + // Show more / show less — btn-link with chevron, matching the template + const showMoreBtn = document.createElement( 'button' ); + showMoreBtn.type = 'button'; + showMoreBtn.className = 'btn btn-link small gc-facet-show-more pl-0'; + showMoreBtn.hidden = !newState.canShowMoreValues; + showMoreBtn.onclick = () => { facetControllers[ index ].showMoreValues(); }; + showMoreBtn.innerHTML = ( lang === 'fr' ? 'Afficher davantage' : 'Show more' ) + + ' '; + + const showLessBtn = document.createElement( 'button' ); + showLessBtn.type = 'button'; + showLessBtn.className = 'btn btn-link small gc-facet-show-less pl-0'; + showLessBtn.hidden = !newState.canShowLessValues; + showLessBtn.onclick = () => { facetControllers[ index ].showLessValues(); }; + showLessBtn.innerHTML = ( lang === 'fr' ? 'Afficher moins' : 'Show less' ) + + ' '; + + facetEl.appendChild( showMoreBtn ); + facetEl.appendChild( showLessBtn ); + + updateClearAllVisibility(); +} + +function updateClearAllVisibility() { + const clearAllContainer = document.getElementById( 'gc-facet-clear-all-container' ); + if ( clearAllContainer ) { + clearAllContainer.hidden = !facetStates.some( ( s ) => s?.hasActiveValues ) + && !dateFilterStates.some( ( s ) => s?.range ); + } +} + +// Rebuild the DOM for a date range facet (predefined periods + custom date pickers) +function updateDateFacetState( index, dateFacetState, dateFilterState ) { + facetStates[ index ] = dateFacetState; + dateFilterStates[ index ] = dateFilterState; + + if ( !facetPanelElement || dateFacetState.isLoading ) { + return; + } + + const config = facetNormalizedConfigs[ index ]; + const facetEl = document.getElementById( 'gc-facet-' + config.facetId ); + if ( !facetEl ) { + return; + } + + const isFr = lang === 'fr'; + const wasOpen = facetEl.open; + facetEl.textContent = ''; + facetEl.open = wasOpen; + + const summaryEl = document.createElement( 'summary' ); + summaryEl.textContent = config.label; + if ( dateFacetState.hasActiveValues || dateFilterState.range ) { + const clearBtn = document.createElement( 'button' ); + clearBtn.type = 'button'; + clearBtn.className = 'btn btn-link btn-sm pull-right'; + clearBtn.textContent = isFr ? 'Effacer le filtre' : 'Clear filter'; + clearBtn.onclick = ( e ) => { + e.stopPropagation(); + facetControllers[ index ].deselectAll(); + dateFilterControllers[ index ].clear(); + }; + summaryEl.appendChild( clearBtn ); + } + facetEl.appendChild( summaryEl ); + + // --- Custom date pickers (above the list) --- + const startId = 'gc-facet-date-start-' + index; + const endId = 'gc-facet-date-end-' + index; + + const datePickerContainer = document.createElement( 'div' ); + datePickerContainer.className = 'gc-date-pickers'; + const todayStr = new Date().toISOString().slice( 0, 10 ); + + datePickerContainer.insertAdjacentHTML( 'beforeend', + `
    + + +
    +
    + + +
    + + ` + ); + + const startInput = datePickerContainer.querySelector( '#' + startId ); + const endInput = datePickerContainer.querySelector( '#' + endId ); + + startInput.onchange = () => { if ( startInput.value ) { endInput.min = startInput.value; } }; + endInput.onchange = () => { if ( endInput.value ) { startInput.max = endInput.value; } }; + + // Pre-populate inputs if a custom filter is already active + if ( dateFilterState.range ) { + startInput.value = coveoDateToInputDate( dateFilterState.range.start ); + endInput.value = coveoDateToInputDate( dateFilterState.range.end ); + endInput.min = startInput.value; + startInput.max = endInput.value; + } + + datePickerContainer.querySelector( '.gc-date-apply' ).onclick = () => { + let startVal = startInput.value; + let endVal = endInput.value; + if ( startVal && endVal ) { + // Swap if end is before start + if ( endVal < startVal ) { + [ startVal, endVal ] = [ endVal, startVal ]; + startInput.value = startVal; + endInput.value = endVal; + } + // Clear predefined range selection before applying custom filter + facetControllers[ index ].deselectAll(); + dateFilterControllers[ index ].setRange( { + start: inputDateToCoveoDate( startVal, false ), + end: inputDateToCoveoDate( endVal, true ), + } ); + } + }; + + datePickerContainer.querySelector( '.gc-date-clear' ).onclick = () => { + startInput.value = ''; + endInput.value = ''; + startInput.max = todayStr; + endInput.min = ''; + dateFilterControllers[ index ].clear(); + }; + + facetEl.appendChild( datePickerContainer ); + + // --- Predefined date range list --- + const listEl = document.createElement( 'ul' ); + listEl.className = 'list-unstyled gc-facet-values mrgn-tp-sm'; + + dateFacetState.values.forEach( ( value, valueIndex ) => { + const period = DATE_FACET_PERIODS[ valueIndex ]; + if ( !period ) { + return; + } + + const liEl = document.createElement( 'li' ); + const isSelected = value.state === 'selected'; + const countFormatted = value.numberOfResults.toLocaleString( lang ); + const periodLabel = isFr ? period.fr : period.en; + + if ( isSelected ) { + const removeHintEl = document.createElement( 'span' ); + removeHintEl.className = 'wb-inv'; + removeHintEl.textContent = isFr ? 'Enlever le filtre actif:' : 'Remove active filter:'; + liEl.appendChild( removeHintEl ); + } + + const valueLink = document.createElement( 'a' ); + valueLink.href = '#'; + valueLink.onclick = ( e ) => { + e.preventDefault(); + // Clear custom date filter before selecting a predefined range + dateFilterControllers[ index ].clear(); + facetControllers[ index ].toggleSelect( value ); + }; + + if ( isSelected ) { + const iconEl = document.createElement( 'span' ); + iconEl.className = 'glyphicon glyphicon-ok mrgn-rght-sm'; + iconEl.setAttribute( 'aria-hidden', 'true' ); + valueLink.appendChild( iconEl ); + } + + valueLink.appendChild( document.createTextNode( periodLabel ) ); + + const countEl = document.createElement( 'span' ); + countEl.className = 'gc-facet-count'; + countEl.innerHTML = ' (' + countFormatted + + ' ' + ( isFr ? 'résultats' : 'results' ) + ')'; + + liEl.appendChild( valueLink ); + liEl.appendChild( countEl ); + listEl.appendChild( liEl ); + } ); + + facetEl.appendChild( listEl ); + updateClearAllVisibility(); +} + +// Update the URL parameter for pagination in advanced search mode +function updatePagerUrlParam( currentPage ) { + const resultsPerPage = buildResultsPerPage(headlessEngine); + const { numberOfResults } = resultsPerPage.state; + const urlParams = new URLSearchParams( winLoc.search ); + const paramName = 'firstResult'; + const pageNum = ( currentPage - 1 ) * numberOfResults; + + // Set the value of the parameter. If it doesn't exist, it will be added. + urlParams.set( paramName, pageNum ); + + const newSearch = urlParams.toString(); + window.history.replaceState( {}, '', `${winPath}?${newSearch}${winLoc.hash}` ); +} + +// Run Search UI +initSearchUI(); diff --git a/netlify/src/headless.esm.js b/netlify/src/headless.esm.js new file mode 100644 index 0000000..d45cfb0 --- /dev/null +++ b/netlify/src/headless.esm.js @@ -0,0 +1,59 @@ +/** + * @license + * + * Copyright 2024 Coveo Solutions Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +var UA=Object.create;var sc=Object.defineProperty;var _A=Object.getOwnPropertyDescriptor;var $A=Object.getOwnPropertyNames;var HA=Object.getPrototypeOf,GA=Object.prototype.hasOwnProperty;var Ym=e=>sc(e,"__esModule",{value:!0});var zA=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(t,r)=>(typeof require!="undefined"?require:t)[r]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var pe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Km=(e,t)=>{Ym(e);for(var r in t)sc(e,r,{get:t[r],enumerable:!0})},R=(e,t,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of $A(t))!GA.call(e,a)&&a!=="default"&&sc(e,a,{get:()=>t[a],enumerable:!(r=_A(t,a))||r.enumerable});return e},Ie=e=>R(Ym(sc(e!=null?UA(HA(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var lp=pe((pV,Qr)=>{function up(e){return Qr.exports=up=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qr.exports.__esModule=!0,Qr.exports.default=Qr.exports,up(e)}Qr.exports=up,Qr.exports.__esModule=!0,Qr.exports.default=Qr.exports});var pg=pe((fV,Wi)=>{var dg=lp().default;function ab(e,t){if(dg(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(dg(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}Wi.exports=ab,Wi.exports.__esModule=!0,Wi.exports.default=Wi.exports});var fg=pe((mV,Yi)=>{var nb=lp().default,ob=pg();function ib(e){var t=ob(e,"string");return nb(t)=="symbol"?t:String(t)}Yi.exports=ib,Yi.exports.__esModule=!0,Yi.exports.default=Yi.exports});var mg=pe((gV,Ki)=>{var sb=fg();function cb(e,t,r){return t=sb(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Ki.exports=cb,Ki.exports.__esModule=!0,Ki.exports.default=Ki.exports});var hg=pe((hV,Ji)=>{var ub=mg();function gg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function lb(e){for(var t=1;t{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});var db=hg();function pb(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var Sg=pb(db);function je(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var yg=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),dp=function(){return Math.random().toString(36).substring(7).split("").join(".")},Xi={INIT:"@@redux/INIT"+dp(),REPLACE:"@@redux/REPLACE"+dp(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+dp()}};function fb(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function pp(e,t,r){var a;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(je(0));if(typeof t=="function"&&typeof r=="undefined"&&(r=t,t=void 0),typeof r!="undefined"){if(typeof r!="function")throw new Error(je(1));return r(pp)(e,t)}if(typeof e!="function")throw new Error(je(2));var n=e,o=t,i=[],s=i,c=!1;function u(){s===i&&(s=i.slice())}function l(){if(c)throw new Error(je(3));return o}function d(g){if(typeof g!="function")throw new Error(je(4));if(c)throw new Error(je(5));var S=!0;return u(),s.push(g),function(){if(!!S){if(c)throw new Error(je(6));S=!1,u();var x=s.indexOf(g);s.splice(x,1),i=null}}}function p(g){if(!fb(g))throw new Error(je(7));if(typeof g.type=="undefined")throw new Error(je(8));if(c)throw new Error(je(9));try{c=!0,o=n(o,g)}finally{c=!1}for(var S=i=s,y=0;y{"use strict";function hF(e){try{return JSON.stringify(e)}catch{return'"[Circular]"'}}ph.exports=SF;function SF(e,t,r){var a=r&&r.stringify||hF,n=1;if(typeof e=="object"&&e!==null){var o=t.length+n;if(o===1)return e;var i=new Array(o);i[0]=a(e);for(var s=1;s-1?d:0,e.charCodeAt(f+1)){case 100:case 102:if(l>=c||t[l]==null)break;d=c||t[l]==null)break;d=c||t[l]===void 0)break;d",d=f+2,f++;break}u+=a(t[l]),d=f+2,f++;break;case 115:if(l>=c)break;d{"use strict";var mh=fh();vc.exports=Ur;var cs=qF().console||{},yF={mapHttpRequest:xc,mapHttpResponse:xc,wrapRequestSerializer:Op,wrapResponseSerializer:Op,wrapErrorSerializer:Op,req:xc,res:xc,err:hh,errWithCause:hh};function yc(e,t){return e==="silent"?1/0:t.levels.values[e]}var Ip=Symbol("pino.logFuncs"),Ep=Symbol("pino.hierarchy"),CF={error:"log",fatal:"error",warn:"error",info:"log",debug:"log",trace:"log"};function gh(e,t){let r={logger:t,parent:e[Ep]};t[Ep]=r}function xF(e,t,r){let a={};t.forEach(n=>{a[n]=r[n]?r[n]:cs[n]||cs[CF[n]||"log"]||us}),e[Ip]=a}function vF(e,t){return Array.isArray(e)?e.filter(function(a){return a!=="!stdSerializers.err"}):e===!0?Object.keys(t):!1}function Ur(e){e=e||{},e.browser=e.browser||{};let t=e.browser.transmit;if(t&&typeof t.send!="function")throw Error("pino: transmit option must have a send function");let r=e.browser.write||cs;e.browser.write&&(e.browser.asObject=!0);let a=e.serializers||{},n=vF(e.browser.serialize,a),o=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf("!stdSerializers.err")>-1&&(o=!1);let i=Object.keys(e.customLevels||{}),s=["error","fatal","warn","info","debug","trace"].concat(i);typeof r=="function"&&s.forEach(function(g){r[g]=r}),(e.enabled===!1||e.browser.disabled)&&(e.level="silent");let c=e.level||"info",u=Object.create(r);u.log||(u.log=us),xF(u,s,r),gh({},u),Object.defineProperty(u,"levelVal",{get:d}),Object.defineProperty(u,"level",{get:p,set:f});let l={transmit:t,serialize:n,asObject:e.browser.asObject,formatters:e.browser.formatters,levels:s,timestamp:EF(e)};u.levels=AF(e),u.level=c,u.setMaxListeners=u.getMaxListeners=u.emit=u.addListener=u.on=u.prependListener=u.once=u.prependOnceListener=u.removeListener=u.removeAllListeners=u.listeners=u.listenerCount=u.eventNames=u.write=u.flush=us,u.serializers=a,u._serialize=n,u._stdErrSerialize=o,u.child=m,t&&(u._logEvent=kp());function d(){return yc(this.level,this)}function p(){return this._level}function f(g){if(g!=="silent"&&!this.levels.values[g])throw Error("unknown level "+g);this._level=g,Wa(this,l,u,"error"),Wa(this,l,u,"fatal"),Wa(this,l,u,"warn"),Wa(this,l,u,"info"),Wa(this,l,u,"debug"),Wa(this,l,u,"trace"),i.forEach(S=>{Wa(this,l,u,S)})}function m(g,S){if(!g)throw new Error("missing bindings for child Pino");S=S||{},n&&g.serializers&&(S.serializers=g.serializers);let y=S.serializers;if(n&&y){var x=Object.assign({},a,y),b=e.browser.serialize===!0?Object.keys(x):n;delete g.serializers,Cc([g],b,x,this._stdErrSerialize)}function P(H){this._childLevel=(H._childLevel|0)+1,this.bindings=g,x&&(this.serializers=x,this._serialize=b),t&&(this._logEvent=kp([].concat(H._logEvent.bindings,g)))}P.prototype=this;let N=new P(this);return gh(this,N),N.level=this.level,N}return u}function AF(e){let t=e.customLevels||{},r=Object.assign({},Ur.levels.values,t),a=Object.assign({},Ur.levels.labels,bF(t));return{values:r,labels:a}}function bF(e){let t={};return Object.keys(e).forEach(function(r){t[e[r]]=r}),t}Ur.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}};Ur.stdSerializers=yF;Ur.stdTimeFunctions=Object.assign({},{nullTime:Sh,epochTime:yh,unixTime:kF,isoTime:OF});function FF(e){let t=[];e.bindings&&t.push(e.bindings);let r=e[Ep];for(;r.parent;)r=r.parent,r.logger.bindings&&t.push(r.logger.bindings);return t.reverse()}function Wa(e,t,r,a){if(e[a]=yc(e.level,r)>yc(a,r)?us:r[Ip][a],!t.transmit&&e[a]===us)return;e[a]=PF(e,t,r,a);let n=FF(e);n.length!==0&&(e[a]=RF(n,e[a]))}function RF(e,t){return function(){return t.apply(this,[...e,...arguments])}}function PF(e,t,r,a){return function(n){return function(){let i=t.timestamp(),s=new Array(arguments.length),c=Object.getPrototypeOf&&Object.getPrototypeOf(this)===cs?cs:this;for(var u=0;ue.levels.values[t],log:i=p=>p}=n;e._serialize&&Cc(r,e._serialize,e.serializers,e._stdErrSerialize);let s=r.slice(),c=s[0],u={};a&&(u.time=a),u.level=o(t,e.levels.values[t]);let l=(e._childLevel|0)+1;if(l<1&&(l=1),c!==null&&typeof c=="object"){for(;l--&&typeof s[0]=="object";)Object.assign(u,s.shift());c=s.length?mh(s.shift(),s):void 0}else typeof c=="string"&&(c=mh(s.shift(),s));return c!==void 0&&(u.msg=c),i(u)}function Cc(e,t,r,a){for(let n in e)if(a&&e[n]instanceof Error)e[n]=Ur.stdSerializers.err(e[n]);else if(typeof e[n]=="object"&&!Array.isArray(e[n]))for(let o in e[n])t&&t.indexOf(o)>-1&&o in r&&(e[n][o]=r[o](e[n][o]))}function IF(e,t,r){let a=t.send,n=t.ts,o=t.methodLevel,i=t.methodValue,s=t.val,c=e._logEvent.bindings;Cc(r,e._serialize||Object.keys(e.serializers),e.serializers,e._stdErrSerialize===void 0?!0:e._stdErrSerialize),e._logEvent.ts=n,e._logEvent.messages=r.filter(function(u){return c.indexOf(u)===-1}),e._logEvent.level.label=o,e._logEvent.level.value=i,a(o,e._logEvent,s),e._logEvent=kp(c)}function kp(e){return{ts:0,messages:[],bindings:e||[],level:{label:"",value:0}}}function hh(e){let t={type:e.constructor.name,msg:e.message,stack:e.stack};for(let r in e)t[r]===void 0&&(t[r]=e[r]);return t}function EF(e){return typeof e.timestamp=="function"?e.timestamp:e.timestamp===!1?Sh:yh}function xc(){return{}}function Op(e){return e}function us(){}function Sh(){return!1}function yh(){return Date.now()}function kF(){return Math.round(Date.now()/1e3)}function OF(){return new Date(Date.now()).toISOString()}function qF(){function e(t){return typeof t!="undefined"&&t}try{return typeof globalThis!="undefined"||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch{return e(self)||e(window)||e(this)||{}}}vc.exports.default=Ur;vc.exports.pino=Ur});var Ah=pe((VV,vh)=>{var TF="[object Object]";function DF(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function VF(e,t){return function(r){return e(t(r))}}var MF=Function.prototype,Ch=Object.prototype,xh=MF.toString,LF=Ch.hasOwnProperty,NF=xh.call(Object),QF=Ch.toString,BF=VF(Object.getPrototypeOf,Object);function jF(e){return!!e&&typeof e=="object"}function UF(e){if(!jF(e)||QF.call(e)!=TF||DF(e))return!1;var t=BF(e);if(t===null)return!0;var r=LF.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&xh.call(r)==NF}vh.exports=UF});var bh=pe(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});Tp.default=WF;var _F=Zi(),$F=Ah(),HF=GF($F);function GF(e){return e&&e.__esModule?e:{default:e}}function zF(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:[];return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};function a(){var o=[],i=[],s={getState:function(){return qp(r)?r(o):r},getActions:function(){return o},dispatch:function(u){if(!(0,HF.default)(u))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(typeof u.type=="undefined")throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant? Action: '+JSON.stringify(u));o.push(u);for(var l=0;l{(function(e,t){typeof Dp=="object"&&typeof Vp!="undefined"?Vp.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis!="undefined"?globalThis:e||self).dayjs=t()})(Dp,function(){"use strict";var e=1e3,t=6e4,r=36e5,a="millisecond",n="second",o="minute",i="hour",s="day",c="week",u="month",l="quarter",d="year",p="date",f="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(j){var L=["th","st","nd","rd"],Q=j%100;return"["+j+(L[(Q-20)%10]||L[Q]||L[0])+"]"}},y=function(j,L,Q){var z=String(j);return!z||z.length>=L?j:""+Array(L+1-z.length).join(Q)+j},x={s:y,z:function(j){var L=-j.utcOffset(),Q=Math.abs(L),z=Math.floor(Q/60),B=Q%60;return(L<=0?"+":"-")+y(z,2,"0")+":"+y(B,2,"0")},m:function j(L,Q){if(L.date()1)return j(ne[0])}else{var le=L.name;P[le]=L,B=le}return!z&&B&&(b=B),B||!z&&b},U=function(j,L){if(H(j))return j.clone();var Q=typeof L=="object"?L:{};return Q.date=j,Q.args=arguments,new fe(Q)},_=x;_.l=Z,_.i=H,_.w=function(j,L){return U(j,{locale:L.$L,utc:L.$u,x:L.$x,$offset:L.$offset})};var fe=function(){function j(Q){this.$L=Z(Q.locale,null,!0),this.parse(Q),this.$x=this.$x||Q.x||{},this[N]=!0}var L=j.prototype;return L.parse=function(Q){this.$d=function(z){var B=z.date,re=z.utc;if(B===null)return new Date(NaN);if(_.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var ne=B.match(m);if(ne){var le=ne[2]-1||0,be=(ne[7]||"0").substring(0,3);return re?new Date(Date.UTC(ne[1],le,ne[3]||1,ne[4]||0,ne[5]||0,ne[6]||0,be)):new Date(ne[1],le,ne[3]||1,ne[4]||0,ne[5]||0,ne[6]||0,be)}}return new Date(B)}(Q),this.init()},L.init=function(){var Q=this.$d;this.$y=Q.getFullYear(),this.$M=Q.getMonth(),this.$D=Q.getDate(),this.$W=Q.getDay(),this.$H=Q.getHours(),this.$m=Q.getMinutes(),this.$s=Q.getSeconds(),this.$ms=Q.getMilliseconds()},L.$utils=function(){return _},L.isValid=function(){return this.$d.toString()!==f},L.isSame=function(Q,z){var B=U(Q);return this.startOf(z)<=B&&B<=this.endOf(z)},L.isAfter=function(Q,z){return U(Q){(function(e,t){typeof Mp=="object"&&typeof Lp!="undefined"?Lp.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis!="undefined"?globalThis:e||self).dayjs_plugin_timezone=t()})(Mp,function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(r,a,n){var o,i=function(l,d,p){p===void 0&&(p={});var f=new Date(l),m=function(g,S){S===void 0&&(S={});var y=S.timeZoneName||"short",x=g+"|"+y,b=t[x];return b||(b=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:g,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:y}),t[x]=b),b}(d,p);return m.formatToParts(f)},s=function(l,d){for(var p=i(l,d),f=[],m=0;m=0&&(f[x]=parseInt(y,10))}var b=f[3],P=b===24?0:b,N=f[0]+"-"+f[1]+"-"+f[2]+" "+P+":"+f[4]+":"+f[5]+":000",H=+l;return(n.utc(N).valueOf()-(H-=H%1e3))/6e4},c=a.prototype;c.tz=function(l,d){l===void 0&&(l=o);var p=this.utcOffset(),f=this.toDate(),m=f.toLocaleString("en-US",{timeZone:l}),g=Math.round((f-new Date(m))/1e3/60),S=n(m,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(f.getTimezoneOffset()/15)-g,!0);if(d){var y=S.utcOffset();S=S.add(p-y,"minute")}return S.$x.$timezone=l,S},c.offsetName=function(l){var d=this.$x.$timezone||n.tz.guess(),p=i(this.valueOf(),d,{timeZoneName:l}).find(function(f){return f.type.toLowerCase()==="timezonename"});return p&&p.value};var u=c.startOf;c.startOf=function(l,d){if(!this.$x||!this.$x.$timezone)return u.call(this,l,d);var p=n(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return u.call(p,l,d).tz(this.$x.$timezone,!0)},n.tz=function(l,d,p){var f=p&&d,m=p||d||o,g=s(+n(),m);if(typeof l!="string")return n(l).tz(m);var S=function(P,N,H){var Z=P-60*N*1e3,U=s(Z,H);if(N===U)return[Z,N];var _=s(Z-=60*(U-N)*1e3,H);return U===_?[Z,U]:[P-60*Math.min(U,_)*1e3,Math.max(U,_)]}(n.utc(l,f).valueOf(),g,m),y=S[0],x=S[1],b=n(y).utcOffset(x);return b.$x.$timezone=m,b},n.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},n.tz.setDefault=function(l){o=l}}})});var Oh=pe((Np,Qp)=>{(function(e,t){typeof Np=="object"&&typeof Qp!="undefined"?Qp.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis!="undefined"?globalThis:e||self).dayjs_plugin_utc=t()})(Np,function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(a,n,o){var i=n.prototype;o.utc=function(f){var m={date:f,utc:!0,args:arguments};return new n(m)},i.utc=function(f){var m=o(this.toDate(),{locale:this.$L,utc:!0});return f?m.add(this.utcOffset(),e):m},i.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var s=i.parse;i.parse=function(f){f.utc&&(this.$u=!0),this.$utils().u(f.$offset)||(this.$offset=f.$offset),s.call(this,f)};var c=i.init;i.init=function(){if(this.$u){var f=this.$d;this.$y=f.getUTCFullYear(),this.$M=f.getUTCMonth(),this.$D=f.getUTCDate(),this.$W=f.getUTCDay(),this.$H=f.getUTCHours(),this.$m=f.getUTCMinutes(),this.$s=f.getUTCSeconds(),this.$ms=f.getUTCMilliseconds()}else c.call(this)};var u=i.utcOffset;i.utcOffset=function(f,m){var g=this.$utils().u;if(g(f))return this.$u?0:g(this.$offset)?u.call(this):this.$offset;if(typeof f=="string"&&(f=function(b){b===void 0&&(b="");var P=b.match(t);if(!P)return null;var N=(""+P[0]).match(r)||["-",0,0],H=N[0],Z=60*+N[1]+ +N[2];return Z===0?0:H==="+"?Z:-Z}(f),f===null))return this;var S=Math.abs(f)<=16?60*f:f,y=this;if(m)return y.$offset=S,y.$u=f===0,y;if(f!==0){var x=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(y=this.local().add(S+x,e)).$offset=S,y.$x.$localOffset=x}else y=this.utc();return y};var l=i.format;i.format=function(f){var m=f||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,m)},i.valueOf=function(){var f=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*f},i.isUTC=function(){return!!this.$u},i.toISOString=function(){return this.toDate().toISOString()},i.toString=function(){return this.toDate().toUTCString()};var d=i.toDate;i.toDate=function(f){return f==="s"&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var p=i.diff;i.diff=function(f,m,g){if(f&&this.$u===f.$u)return p.call(this,f,m,g);var S=this.local(),y=o(f).local();return p.call(S,y,m,g)}}})});var Th=pe((WV,qh)=>{qh.exports=fetch});var Dh=pe(ds=>{"use strict";var Ic=ds&&ds.__assign||function(){return Ic=Object.assign||function(e){for(var t,r=1,a=arguments.length;r{"use strict";Object.defineProperty(Bp,"__esModule",{value:!0});function aR(e){var t=Math.random()*e;return Math.round(t)}Bp.fullJitter=aR});var Mh=pe(jp=>{"use strict";Object.defineProperty(jp,"__esModule",{value:!0});function nR(e){return e}jp.noJitter=nR});var Lh=pe(Up=>{"use strict";Object.defineProperty(Up,"__esModule",{value:!0});var oR=Vh(),iR=Mh();function sR(e){switch(e.jitter){case"full":return oR.fullJitter;case"none":default:return iR.noJitter}}Up.JitterFactory=sR});var $p=pe(_p=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0});var cR=Lh(),uR=function(){function e(t){this.options=t,this.attempt=0}return e.prototype.apply=function(){var t=this;return new Promise(function(r){return setTimeout(r,t.jitteredDelay)})},e.prototype.setAttemptNumber=function(t){this.attempt=t},Object.defineProperty(e.prototype,"jitteredDelay",{get:function(){var t=cR.JitterFactory(this.options);return t(this.delay)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"delay",{get:function(){var t=this.options.startingDelay,r=this.options.timeMultiple,a=this.numOfDelayedAttempts,n=t*Math.pow(r,a);return Math.min(n,this.options.maxDelay)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numOfDelayedAttempts",{get:function(){return this.attempt},enumerable:!0,configurable:!0}),e}();_p.Delay=uR});var Nh=pe(_r=>{"use strict";var lR=_r&&_r.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,n){a.__proto__=n}||function(a,n){for(var o in n)n.hasOwnProperty(o)&&(a[o]=n[o])},e(t,r)};return function(t,r){e(t,r);function a(){this.constructor=t}t.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}}(),dR=_r&&_r.__awaiter||function(e,t,r,a){function n(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function s(l){try{u(a.next(l))}catch(d){i(d)}}function c(l){try{u(a.throw(l))}catch(d){i(d)}}function u(l){l.done?o(l.value):n(l.value).then(s,c)}u((a=a.apply(e,t||[])).next())})},pR=_r&&_r.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},a,n,o,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(u){return function(l){return c([u,l])}}function c(u){if(a)throw new TypeError("Generator is already executing.");for(;r;)try{if(a=1,n&&(o=u[0]&2?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,n=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]{"use strict";var gR=ps&&ps.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,n){a.__proto__=n}||function(a,n){for(var o in n)n.hasOwnProperty(o)&&(a[o]=n[o])},e(t,r)};return function(t,r){e(t,r);function a(){this.constructor=t}t.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}}();Object.defineProperty(ps,"__esModule",{value:!0});var hR=$p(),SR=function(e){gR(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(hR.Delay);ps.AlwaysDelay=SR});var Bh=pe(Hp=>{"use strict";Object.defineProperty(Hp,"__esModule",{value:!0});var yR=Nh(),CR=Qh();function xR(e,t){var r=vR(e);return r.setAttemptNumber(t),r}Hp.DelayFactory=xR;function vR(e){return e.delayFirstAttempt?new CR.AlwaysDelay(e):new yR.SkipFirstDelay(e)}});var jh=pe(Ka=>{"use strict";var Gp=Ka&&Ka.__awaiter||function(e,t,r,a){function n(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function s(l){try{u(a.next(l))}catch(d){i(d)}}function c(l){try{u(a.throw(l))}catch(d){i(d)}}function u(l){l.done?o(l.value):n(l.value).then(s,c)}u((a=a.apply(e,t||[])).next())})},zp=Ka&&Ka.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},a,n,o,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(u){return function(l){return c([u,l])}}function c(u){if(a)throw new TypeError("Generator is already executing.");for(;r;)try{if(a=1,n&&(o=u[0]&2?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,n=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]=this.options.numOfAttempts},enumerable:!0,configurable:!0}),e.prototype.applyDelay=function(){return Gp(this,void 0,void 0,function(){var t;return zp(this,function(r){switch(r.label){case 0:return t=bR.DelayFactory(this.options,this.attemptNumber),[4,t.apply()];case 1:return r.sent(),[2]}})})},e}()});var _h=pe((oM,Uh)=>{"use strict";function PR(e){if(arguments.length===0)throw new TypeError("1 argument required, but only 0 present.");if(e=`${e}`,e=e.replace(/[ \t\n\f\r]/g,""),e.length%4==0&&(e=e.replace(/==?$/,"")),e.length%4==1||/[^+/0-9A-Za-z]/.test(e))return null;let t="",r=0,a=0;for(let n=0;n>16),t+=String.fromCharCode((r&65280)>>8),t+=String.fromCharCode(r&255),r=a=0);return a===12?(r>>=4,t+=String.fromCharCode(r)):a===18&&(r>>=2,t+=String.fromCharCode((r&65280)>>8),t+=String.fromCharCode(r&255)),t}var wR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function IR(e){let t=wR.indexOf(e);return t<0?void 0:t}Uh.exports=PR});var Hh=pe((iM,$h)=>{"use strict";function ER(e){if(arguments.length===0)throw new TypeError("1 argument required, but only 0 present.");let t;for(e=`${e}`,t=0;t255)return null;let r="";for(t=0;t>2,a[1]=(e.charCodeAt(t)&3)<<4,e.length>t+1&&(a[1]|=e.charCodeAt(t+1)>>4,a[2]=(e.charCodeAt(t+1)&15)<<2),e.length>t+2&&(a[2]|=e.charCodeAt(t+2)>>6,a[3]=e.charCodeAt(t+2)&63);for(let n=0;n=0&&e<64)return kR[e]}$h.exports=ER});var Wp=pe((sM,Gh)=>{"use strict";var qR=_h(),TR=Hh();Gh.exports={atob:qR,btoa:TR}});var sS=pe((IL,iS)=>{"use strict";var Xp=typeof self!="undefined"?self:typeof window!="undefined"?window:void 0;if(!Xp)throw new Error("Unable to find global scope. Are you sure this is running in the browser?");if(!Xp.AbortController)throw new Error('Could not find "AbortController" in the global scope. You need to polyfill it first');iS.exports.AbortController=Xp.AbortController});var Zy=pe((Mf,Lf)=>{(function(e,t){typeof Mf=="object"&&typeof Lf!="undefined"?Lf.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis!="undefined"?globalThis:e||self).dayjs_plugin_quarterOfYear=t()})(Mf,function(){"use strict";var e="month",t="quarter";return function(r,a){var n=a.prototype;n.quarter=function(s){return this.$utils().u(s)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(s-1))};var o=n.add;n.add=function(s,c){return s=Number(s),this.$utils().p(c)===t?this.add(3*s,e):o.bind(this)(s,c)};var i=n.startOf;n.startOf=function(s,c){var u=this.$utils(),l=!!u.u(c)||c;if(u.p(s)===t){var d=this.quarter()-1;return l?this.month(3*d).startOf(e).startOf("day"):this.month(3*d+2).endOf(e).endOf("day")}return i.bind(this)(s,c)}}})});var eC=pe((Nf,Qf)=>{(function(e,t){typeof Nf=="object"&&typeof Qf!="undefined"?Qf.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis!="undefined"?globalThis:e||self).dayjs_plugin_customParseFormat=t()})(Nf,function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,a=/\d\d?/,n=/\d*[^-_:/,()\s\d]+/,o={},i=function(f){return(f=+f)+(f>68?1900:2e3)},s=function(f){return function(m){this[f]=+m}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(f){(this.zone||(this.zone={})).offset=function(m){if(!m||m==="Z")return 0;var g=m.match(/([+-]|\d\d)/g),S=60*g[1]+(+g[2]||0);return S===0?0:g[0]==="+"?-S:S}(f)}],u=function(f){var m=o[f];return m&&(m.indexOf?m:m.s.concat(m.f))},l=function(f,m){var g,S=o.meridiem;if(S){for(var y=1;y<=24;y+=1)if(f.indexOf(S(y,0,m))>-1){g=y>12;break}}else g=f===(m?"pm":"PM");return g},d={A:[n,function(f){this.afternoon=l(f,!1)}],a:[n,function(f){this.afternoon=l(f,!0)}],S:[/\d/,function(f){this.milliseconds=100*+f}],SS:[r,function(f){this.milliseconds=10*+f}],SSS:[/\d{3}/,function(f){this.milliseconds=+f}],s:[a,s("seconds")],ss:[a,s("seconds")],m:[a,s("minutes")],mm:[a,s("minutes")],H:[a,s("hours")],h:[a,s("hours")],HH:[a,s("hours")],hh:[a,s("hours")],D:[a,s("day")],DD:[r,s("day")],Do:[n,function(f){var m=o.ordinal,g=f.match(/\d+/);if(this.day=g[0],m)for(var S=1;S<=31;S+=1)m(S).replace(/\[|\]/g,"")===f&&(this.day=S)}],M:[a,s("month")],MM:[r,s("month")],MMM:[n,function(f){var m=u("months"),g=(u("monthsShort")||m.map(function(S){return S.slice(0,3)})).indexOf(f)+1;if(g<1)throw new Error;this.month=g%12||g}],MMMM:[n,function(f){var m=u("months").indexOf(f)+1;if(m<1)throw new Error;this.month=m%12||m}],Y:[/[+-]?\d+/,s("year")],YY:[r,function(f){this.year=i(f)}],YYYY:[/\d{4}/,s("year")],Z:c,ZZ:c};function p(f){var m,g;m=f,g=o&&o.formats;for(var S=(f=m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(Z,U,_){var fe=_&&_.toUpperCase();return U||g[_]||e[_]||g[fe].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(Se,j,L){return j||L.slice(1)})})).match(t),y=S.length,x=0;x-1)return new Date((z==="X"?1e3:1)*Q);var re=p(z)(Q),ne=re.year,le=re.month,be=re.day,we=re.hours,Ve=re.minutes,rt=re.seconds,ra=re.milliseconds,$t=re.zone,Lr=new Date,qt=be||(ne||le?1:Lr.getDate()),Me=ne||Lr.getFullYear(),pt=0;ne&&!le||(pt=le>0?le-1:Lr.getMonth());var Nr=we||0,aa=Ve||0,Wd=rt||0,Yd=ra||0;return $t?new Date(Date.UTC(Me,pt,qt,Nr,aa,Wd,Yd+60*$t.offset*1e3)):B?new Date(Date.UTC(Me,pt,qt,Nr,aa,Wd,Yd)):new Date(Me,pt,qt,Nr,aa,Wd,Yd)}catch{return new Date("")}}(b,H,P),this.init(),fe&&fe!==!0&&(this.$L=this.locale(fe).$L),_&&b!=this.format(H)&&(this.$d=new Date("")),o={}}else if(H instanceof Array)for(var Se=H.length,j=1;j<=Se;j+=1){N[1]=H[j-1];var L=g.apply(this,N);if(L.isValid()){this.$d=L.$d,this.$L=L.$L,this.init();break}j===Se&&(this.$d=new Date(""))}else y.call(this,x)}}})});var FC=pe((DG,bC)=>{var nE=/(^|; )Coveo-Pendragon=([^;]*)/;bC.exports=()=>nE.exec(document.cookie)?.pop()||null});var Ui=()=>global.crypto,Jm=()=>{typeof window=="undefined"&&(Ui()||(global.crypto=zA("crypto")),!Ui().getRandomValues&&Ui().webcrypto&&(global.crypto.getRandomValues=Ui().webcrypto.getRandomValues.bind(Ui().webcrypto)))};var h={};Km(h,{EnhancerArray:()=>Tg,MiddlewareArray:()=>qg,SHOULD_AUTOBATCH:()=>wp,TaskAbortError:()=>is,addListener:()=>sh,autoBatchEnhancer:()=>gF,clearAllListeners:()=>ch,configureStore:()=>Cp,createAction:()=>C,createActionCreatorInvariantMiddleware:()=>Tb,createAsyncThunk:()=>W,createDraftSafeSelector:()=>jr,createEntityAdapter:()=>Kb,createImmutableStateInvariantMiddleware:()=>Nb,createListenerMiddleware:()=>dF,createNextState:()=>ia,createReducer:()=>T,createSelector:()=>sa,createSerializableStateInvariantMiddleware:()=>Qb,createSlice:()=>$b,current:()=>$i,findNonSerializableValue:()=>fc,freeze:()=>_i,getDefaultMiddleware:()=>mc,getType:()=>Ob,isAction:()=>gp,isActionCreator:()=>Eg,isAllOf:()=>Ap,isAnyOf:()=>ns,isAsyncThunkAction:()=>Kg,isDraft:()=>He,isFluxStandardAction:()=>kg,isFulfilled:()=>Yg,isImmutableDefault:()=>Mg,isPending:()=>zg,isPlain:()=>Sp,isPlainObject:()=>pc,isRejected:()=>hc,isRejectedWithValue:()=>Wg,miniSerializeError:()=>$g,nanoid:()=>xp,original:()=>Xm,prepareAutoBatched:()=>pF,removeListener:()=>uh,unwrapResult:()=>Hg});function ft(e){for(var t=arguments.length,r=Array(t>1?t-1:0),a=1;a3?t.i-4:t.i:Array.isArray(e)?1:Kd(e)?2:Jd(e)?3:0}function Nn(e,t){return Ln(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function WA(e,t){return Ln(e)===2?e.get(t):e[t]}function Zm(e,t,r){var a=Ln(e);a===2?e.set(t,r):a===3?e.add(r):e[t]=r}function eg(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Kd(e){return XA&&e instanceof Map}function Jd(e){return ZA&&e instanceof Set}function na(e){return e.o||e.t}function Xd(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=lg(e);delete t[Ce];for(var r=Qn(t),a=0;a1&&(e.set=e.add=e.clear=e.delete=YA),Object.freeze(e),t&&Ga(e,function(r,a){return _i(a,!0)},!0)),e}function YA(){ft(2)}function Zd(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ht(e){var t=cp[e];return t||ft(18,e),t}function KA(e,t){cp[e]||(cp[e]=t)}function ep(){return Hi}function tp(e,t){t&&(Ht("Patches"),e.u=[],e.s=[],e.v=t)}function cc(e){rp(e),e.p.forEach(JA),e.p=null}function rp(e){e===Hi&&(Hi=e.l)}function tg(e){return Hi={p:[],l:Hi,h:e,m:!0,_:0}}function JA(e){var t=e[Ce];t.i===0||t.i===1?t.j():t.g=!0}function ap(e,t){t._=t.p.length;var r=t.p[0],a=e!==void 0&&e!==r;return t.h.O||Ht("ES5").S(t,e,a),a?(r[Ce].P&&(cc(t),ft(4)),Tt(e)&&(e=uc(t,e),t.l||lc(t,e)),t.u&&Ht("Patches").M(r[Ce].t,e,t.u,t.s)):e=uc(t,r,[]),cc(t),t.u&&t.v(t.u,t.s),e!==cg?e:void 0}function uc(e,t,r){if(Zd(t))return t;var a=t[Ce];if(!a)return Ga(t,function(s,c){return rg(e,a,t,s,c,r)},!0),t;if(a.A!==e)return t;if(!a.P)return lc(e,a.t,!0),a.t;if(!a.I){a.I=!0,a.A._--;var n=a.i===4||a.i===5?a.o=Xd(a.k):a.o,o=n,i=!1;a.i===3&&(o=new Set(n),n.clear(),i=!0),Ga(o,function(s,c){return rg(e,a,n,s,c,r,i)}),lc(e,n,!1),r&&e.u&&Ht("Patches").N(a,r,e.u,e.s)}return a.o}function rg(e,t,r,a,n,o,i){if(He(n)){var s=uc(e,n,o&&t&&t.i!==3&&!Nn(t.R,a)?o.concat(a):void 0);if(Zm(r,a,s),!He(s))return;e.m=!1}else i&&r.add(n);if(Tt(n)&&!Zd(n)){if(!e.h.D&&e._<1)return;uc(e,n),t&&t.A.l||lc(e,n)}}function lc(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&_i(t,r)}function np(e,t){var r=e[Ce];return(r?na(r):e)[t]}function ag(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var a=Object.getOwnPropertyDescriptor(r,t);if(a)return a;r=Object.getPrototypeOf(r)}}function oa(e){e.P||(e.P=!0,e.l&&oa(e.l))}function op(e){e.o||(e.o=Xd(e.t))}function ip(e,t,r){var a=Kd(t)?Ht("MapSet").F(t,r):Jd(t)?Ht("MapSet").T(t,r):e.O?function(n,o){var i=Array.isArray(n),s={i:i?1:0,A:o?o.A:ep(),P:!1,I:!1,R:{},l:o,t:n,k:null,o:null,j:null,C:!1},c=s,u=Gi;i&&(c=[s],u=zi);var l=Proxy.revocable(c,u),d=l.revoke,p=l.proxy;return s.k=p,s.j=d,p}(t,r):Ht("ES5").J(t,r);return(r?r.A:ep()).p.push(a),a}function $i(e){return He(e)||ft(22,e),function t(r){if(!Tt(r))return r;var a,n=r[Ce],o=Ln(r);if(n){if(!n.P&&(n.i<4||!Ht("ES5").K(n)))return n.t;n.I=!0,a=ng(r,o),n.I=!1}else a=ng(r,o);return Ga(a,function(i,s){n&&WA(n.t,i)===s||Zm(a,i,t(s))}),o===3?new Set(a):a}(e)}function ng(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Xd(e)}function og(){function e(i,s){var c=o[i];return c?c.enumerable=s:o[i]=c={configurable:!0,enumerable:s,get:function(){var u=this[Ce];return Gi.get(u,i)},set:function(u){var l=this[Ce];Gi.set(l,i,u)}},c}function t(i){for(var s=i.length-1;s>=0;s--){var c=i[s][Ce];if(!c.P)switch(c.i){case 5:a(c)&&oa(c);break;case 4:r(c)&&oa(c)}}}function r(i){for(var s=i.t,c=i.k,u=Qn(c),l=u.length-1;l>=0;l--){var d=u[l];if(d!==Ce){var p=s[d];if(p===void 0&&!Nn(s,d))return!0;var f=c[d],m=f&&f[Ce];if(m?m.t!==p:!eg(f,p))return!0}}var g=!!s[Ce];return u.length!==Qn(s).length+(g?0:1)}function a(i){var s=i.k;if(s.length!==i.t.length)return!0;var c=Object.getOwnPropertyDescriptor(s,s.length-1);if(c&&!c.get)return!0;for(var u=0;u1?y-1:0),b=1;b1?l-1:0),p=1;p=0;n--){var o=a[n];if(o.path.length===0&&o.op==="replace"){r=o.value;break}}n>-1&&(a=a.slice(n+1));var i=Ht("Patches").$;return He(r)?i(r,a):this.produce(r,function(s){return i(s,a)})},e}(),mt=new tb,rb=mt.produce,oV=mt.produceWithPatches.bind(mt),iV=mt.setAutoFreeze.bind(mt),sV=mt.setUseProxies.bind(mt),cV=mt.applyPatches.bind(mt),uV=mt.createDraft.bind(mt),lV=mt.finishDraft.bind(mt),ia=rb;R(h,Ie(Zi()));var dc="NOT_FOUND";function Cb(e){var t;return{get:function(a){return t&&e(t.key,a)?t.value:dc},put:function(a,n){t={key:a,value:n}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function xb(e,t){var r=[];function a(s){var c=r.findIndex(function(l){return t(s,l.key)});if(c>-1){var u=r[c];return c>0&&(r.splice(c,1),r.unshift(u)),u.value}return dc}function n(s,c){a(s)===dc&&(r.unshift({key:s,value:c}),r.length>e&&r.pop())}function o(){return r}function i(){r=[]}return{get:a,put:n,getEntries:o,clear:i}}var vg=function(t,r){return t===r};function vb(e){return function(r,a){if(r===null||a===null||r.length!==a.length)return!1;for(var n=r.length,o=0;o1?t-1:0),a=1;a0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]-1}function Ob(e){return""+e}function qb(e){var t=e?(""+e).split("/"):[],r=t[t.length-1]||"actionCreator";return'Detected an action creator with type "'+(e||"unknown")+`" being dispatched. +Make sure you're calling the action creator before dispatching, i.e. \`dispatch(`+r+"())` instead of `dispatch("+r+")`. This is necessary even if the action has no payload."}function Tb(e){return e===void 0&&(e={}),function(){return function(a){return function(n){return a(n)}}};var t=e.isActionCreator,r=t===void 0?Eg:t;return function(){return function(a){return function(n){return r(n)&&console.warn(qb(n.type)),a(n)}}}}function Og(e,t){var r=0;return{measureTime:function(a){var n=Date.now();try{return a()}finally{var o=Date.now();r+=o-n}},warnIfExceeded:function(){r>e&&console.warn(t+" took "+r+"ms, which is more than the warning threshold of "+e+`ms. +If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions. +It is disabled in production builds, so you don't need to worry about that.`)}}}var qg=function(e){Rg(t,e);function t(){for(var r=[],a=0;a0){var i=r.indexOf(this);~i?r.splice(i+1):r.push(this),~i?a.splice(i,1/0,n):a.push(n),~r.indexOf(o)&&(o=t.call(this,n,o))}else r.push(o);return e==null?o:e.call(this,n,o)}}function Mg(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function Lb(e,t,r){var a=Lg(e,t,r);return{detectMutations:function(){return Ng(e,t,a,r)}}}function Lg(e,t,r,a,n){t===void 0&&(t=[]),a===void 0&&(a=""),n===void 0&&(n=new Set);var o={value:r};if(!e(r)&&!n.has(r)){n.add(r),o.children={};for(var i in r){var s=a?a+"."+i:i;t.length&&t.indexOf(s)!==-1||(o.children[i]=Lg(e,t,r[i],s))}}return o}function Ng(e,t,r,a,n,o){t===void 0&&(t=[]),n===void 0&&(n=!1),o===void 0&&(o="");var i=r?r.value:void 0,s=i===a;if(n&&!s&&!Number.isNaN(a))return{wasMutated:!0,path:o};if(e(i)||e(a))return{wasMutated:!1};var c={};for(var u in r.children)c[u]=!0;for(var u in a)c[u]=!0;var l=t.length>0,d=function(f){var m=o?o+"."+f:f;if(l){var g=t.some(function(y){return y instanceof RegExp?y.test(m):m===y});if(g)return"continue"}var S=Ng(e,t,r.children[f],a[f],s,m);if(S.wasMutated)return{value:S}};for(var u in c){var p=d(u);if(typeof p=="object")return p.value}return{wasMutated:!1}}function Nb(e){return e===void 0&&(e={}),function(){return function(c){return function(u){return c(u)}}};var t=e.isImmutable,r=t===void 0?Mg:t,a=e.ignoredPaths,n=e.warnAfter,o=n===void 0?32:n,i=e.ignore;a=a||i;var s=Lb.bind(null,r,a);return function(c){var u=c.getState,l=u(),d=s(l),p;return function(f){return function(m){var g=Og(o,"ImmutableStateInvariantMiddleware");g.measureTime(function(){l=u(),p=d.detectMutations(),d=s(l),Vg(!p.wasMutated,"A state mutation was detected between dispatches, in the path '"+(p.path||"")+"'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")});var S=f(m);return g.measureTime(function(){l=u(),p=d.detectMutations(),d=s(l),p.wasMutated&&Vg(!p.wasMutated,"A state mutation was detected inside a dispatch, in the path: "+(p.path||"")+". Take a look at the reducer(s) handling the action "+Vb(m)+". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")}),g.warnIfExceeded(),S}}}}function Sp(e){var t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||pc(e)}function fc(e,t,r,a,n,o){t===void 0&&(t=""),r===void 0&&(r=Sp),n===void 0&&(n=[]);var i;if(!r(e))return{keyPath:t||"",value:e};if(typeof e!="object"||e===null||(o==null?void 0:o.has(e)))return!1;for(var s=a!=null?a(e):Object.entries(e),c=n.length>0,u=function(S,y){var x=t?t+"."+S:S;if(c){var b=n.some(function(P){return P instanceof RegExp?P.test(x):x===P});if(b)return"continue"}if(!r(y))return{value:{keyPath:x,value:y}};if(typeof y=="object"&&(i=fc(y,x,r,a,n,o),i))return{value:i}},l=0,d=s;l0;if(x){var b=m.filter(function(P){return u(S,P,g)}).length>0;b&&(g.ids=Object.keys(g.entities))}}function p(m,g){return f([m],g)}function f(m,g){var S=jg(m,e,g),y=S[0],x=S[1];d(x,g),r(y,g)}return{removeAll:Wb(c),addOne:Re(t),addMany:Re(r),setOne:Re(a),setMany:Re(n),setAll:Re(o),updateOne:Re(l),updateMany:Re(d),upsertOne:Re(p),upsertMany:Re(f),removeOne:Re(i),removeMany:Re(s)}}function Yb(e,t){var r=Ug(e),a=r.removeOne,n=r.removeMany,o=r.removeAll;function i(x,b){return s([x],b)}function s(x,b){x=za(x);var P=x.filter(function(N){return!(as(N,e)in b.entities)});P.length!==0&&S(P,b)}function c(x,b){return u([x],b)}function u(x,b){x=za(x),x.length!==0&&S(x,b)}function l(x,b){x=za(x),b.entities={},b.ids=[],s(x,b)}function d(x,b){return p([x],b)}function p(x,b){for(var P=!1,N=0,H=x;N-1;return r&&a}function os(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function zg(){for(var e=[],t=0;t0)for(var b=f.getState(),P=Array.from(r.values()),N=0,H=P;Nt=>r=>{var o,i;let a=(o=r.payload)==null?void 0:o.analyticsAction;a!==void 0&&((i=r.payload)==null||delete i.analyticsAction);let n=t(r);return r.type==="search/executeSearch/fullfilled"&&a===void 0&&console.error("No analytics action associated with search:",r),r.type==="recommendation/get/fullfilled"&&a===void 0&&console.error("No analytics action associated with recommendation:",r),r.type==="productRecommendations/get/fullfilled"&&a===void 0&&console.error("No analytics action associated with product recommendation:",r),a!==void 0&&e.dispatch(a),n};function YF(e){return e.instantlyCallable}var bc=()=>e=>t=>e(YF(t)?t():t);var Fc=e=>()=>t=>r=>{var n;if(!r.error)return t(r);let a=r.error;if(((n=r.payload)==null?void 0:n.ignored)||e.error(a.stack||a.message||a.name||"Error",`Action dispatch error ${r.type}`,r),r.error.name!=="SchemaValidationError")return t(r)},Rc=e=>t=>r=>a=>(e.debug({action:a,nextState:t.getState()},`Action dispatched: ${a.type}`),r(a));function KF(e,t){let r=` + The following properties are invalid: + + ${e.join(` + `)} + + ${t} + `;return new Ya(r)}var Ya=class extends Error{constructor(e){super(e);this.name="SchemaValidationError"}},Y=class{constructor(e){this.definition=e}validate(e={},t=""){let r={...this.default,...e},a=[];for(let n in this.definition){let o=this.definition[n].validate(r[n]);o&&a.push(`${n}: ${o}`)}if(a.length)throw KF(a,t);return r}get default(){let e={};for(let t in this.definition){let r=this.definition[t].default;r!==void 0&&(e[t]=r)}return e}},me=class{constructor(e={}){this.baseConfig=e}validate(e){return this.baseConfig.required&&te(e)?"value is required.":null}get default(){return this.baseConfig.default instanceof Function?this.baseConfig.default():this.baseConfig.default}get required(){return this.baseConfig.required===!0}};function Ee(e){return e===void 0}function JF(e){return e===null}function te(e){return Ee(e)||JF(e)}var D=class{constructor(e={}){this.config=e,this.value=new me(e)}validate(e){let t=this.value.validate(e);return t||(XF(e)?ethis.config.max?`maximum value of ${this.config.max} not respected.`:null:"value is not a number.")}get default(){return this.value.default}get required(){return this.value.required}};function XF(e){return Ee(e)||Fh(e)}function Fh(e){return typeof e=="number"&&!isNaN(e)}var K=class{constructor(e={}){this.value=new me(e)}validate(e){let t=this.value.validate(e);return t||(ZF(e)?null:"value is not a boolean.")}get default(){return this.value.default}get required(){return this.value.required}};function ZF(e){return Ee(e)||Rh(e)}function Rh(e){return typeof e=="boolean"}var eR=/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i,w=class{constructor(e={}){this.config={emptyAllowed:!0,url:!1,...e},this.value=new me(this.config)}validate(e){let{emptyAllowed:t,url:r,regex:a,constrainTo:n}=this.config,o=this.value.validate(e);return o||(Ee(e)?null:Un(e)?!t&&!e.length?"value is an empty string.":r&&!eR.test(e)?"value is not a valid URL.":a&&!a.test(e)?`value did not match provided regex ${a}`:n&&!n.includes(e)?`value should be one of: ${n.join(", ")}.`:null:"value is not a string.")}get default(){return this.value.default}get required(){return this.value.required}};function Un(e){return Object.prototype.toString.call(e)==="[object String]"}var q=class{constructor(e={}){this.config={options:{required:!1},values:{},...e}}validate(e){if(Ee(e))return this.config.options.required?"value is required and is currently undefined":null;if(!Ph(e))return"value is not an object";for(let[r,a]of Object.entries(this.config.values))if(a.required&&te(e[r]))return`value does not contain ${r}`;let t="";for(let[r,a]of Object.entries(this.config.values)){let n=e[r],o=a.validate(n);o!==null&&(t+=" "+o)}return t===""?null:t}get default(){}get required(){return!!this.config.options.required}};function Ph(e){return e!==void 0&&typeof e=="object"}var X=class{constructor(e={}){this.config=e,this.value=new me(this.config)}validate(e){if(!te(e)&&!Array.isArray(e))return"value is not an array";let t=this.value.validate(e);if(t!==null)return t;if(te(e))return null;if(this.config.max!==void 0&&e.length>this.config.max)return`value contains more than ${this.config.max}`;if(this.config.min!==void 0&&e.length{this.config.each.required&&te(a)&&(r=`value is null or undefined: ${e.join(",")}`);let n=this.validatePrimitiveValue(a,this.config.each);n!==null&&(r+=" "+n)}),r===""?null:r}return null}validatePrimitiveValue(e,t){return Rh(e)||Un(e)||Fh(e)||Ph(e)?t.validate(e):"value is not a primitive value"}get default(){}get required(){return this.value.required}};function _n(e){return Array.isArray(e)}var Dt=class{constructor(e){this.config=e,this.value=new me(e)}validate(e){let t=this.value.validate(e);return t!==null?t:Ee(e)||Object.values(this.config.enum).find(a=>a===e)?null:"value is not in enum."}get default(){return this.value.default}get required(){return this.value.required}};var O=new w({required:!0,emptyAllowed:!1}),de=new w({required:!1,emptyAllowed:!1}),ge=new w({required:!0,emptyAllowed:!0}),wh=new w({required:!1,emptyAllowed:!0}),Pc=new X({each:O,required:!0}),Ih=new w({required:!1,emptyAllowed:!1,regex:/^\d+\.\d+\.\d+$/}),Vt=({message:e,name:t,stack:r})=>({message:e,name:t,stack:r}),nt=(e,t)=>{if("required"in t)return{payload:new Y({value:t}).validate({value:e}).value};let n=new q({options:{required:!0},values:t}).validate(e);if(n)throw new Ya(n);return{payload:e}},A=(e,t)=>{try{return nt(e,t)}catch(r){return{payload:e,error:Vt(r)}}},ke=(e,t,r,a)=>{let n=`Check the initialState of ${a}`;return Eh(e,t,r,n,"Controller initialization error")},he=(e,t,r,a)=>{let n=`Check the options of ${a}`;return Eh(e,t,r,n,"Controller initialization error")},Eh=(e,t,r,a,n)=>{try{return t.validate(r,a)}catch(o){throw e.logger.error(o,n),o}};var Dc=Ie(wc()),aS=Ie(kh()),nS=Ie(Oh());var Zh=Ie(Th()),eS=Ie(jh());var k=new Error("Failed to load reducers."),fs=class extends Error{constructor(){super();this.name="ExpiredToken",this.message="The token being used to perform the request is expired."}},$n=class extends Error{constructor(t,r){super();this.name="Disconnected",this.message=`Client could not connect to the following URL: ${t}`,this.statusCode=r!=null?r:0}};var zh=Ie(Wp()),la=(e,t=5)=>e+Math.random().toString(36).substring(2,2+t);function Ec(e){return Array.isArray(e)}function kc(e){return e.trim()===""}function Wh(e,t){return[...e.reduce((r,a)=>{let n=t(a);return r.has(n)||r.set(n,a),r},new Map).values()]}function DR(e){return(typeof btoa!="undefined"?btoa:zh.btoa)(encodeURI(e))}function Oc(e,t){let{[e]:r,...a}=t;return a}function Hn(e){return DR(JSON.stringify(e))}var VR=new Set(["1",1,"yes",!0]);function qc(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;let e=navigator,t=window;return[e.globalPrivacyControl,e.doNotTrack,e.msDoNotTrack,t.doNotTrack].some(r=>VR.has(r))}function Yh(e){let t={};for(let[r,a]of e)t[r]=a;return t}function Kh(e,t,r){return clearTimeout(t),setTimeout(e,r)}function ms(e){if(typeof e!="object"||!e)return e;try{return JSON.parse(JSON.stringify(e))}catch(t){return e}}function Jh(e){let t=[];for(let r in e){let a=encodeURIComponent(r),n=encodeURIComponent(e[r]);t.push(`${a}=${n}`)}return t.join("&")}function Xh(e){return typeof e!="object"||!e?!1:Object.values(e).every(MR)}function MR(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function tS(e){return e===429}var ot=class{static async call(t){let r=LR(t),{logger:a}=t,n=await ot.preprocessRequest(r,t);a.info(n,"Platform request");let{url:o,...i}=n,s=async()=>{let c=await(0,Zh.default)(o,i);if(tS(c.status))throw c;return c};try{let c=await(0,eS.backOff)(s,{retry:u=>{let l=u&&tS(u.status);return l&&a.info("Platform retrying request"),l}});if(c.status===419)throw a.info("Platform renewing token"),new fs;if(c.status===404)throw new $n(o,c.status);return a.info({response:c,requestInfo:n},"Platform response"),c}catch(c){return c.message==="Failed to fetch"?new $n(o):c}}static async preprocessRequest(t,r){let{origin:a,preprocessRequest:n,logger:o,requestMetadata:i}=r,{signal:s,...c}=t,u=ms(c);try{let l=await n(t,a,i);return{...t,...l}}catch(l){o.error(l,"Platform request preprocessing failed. Returning default request options.")}return u}};function rS(e,t){let r=!t||!t.environment||t.environment==="prod"?"":t.environment,a=!t||!t.region||t.region==="us"?"":`-${t.region}`;return`https://${e}${r}${a}.cloud.coveo.com`}function gs(e,t="prod"){let r=t==="prod"?"":t,a=`https://${e}.org${r}.coveo.com`,n=`https://${e}.analytics.org${r}.coveo.com`,o=`${a}/rest/search/v2`,i=`https://${e}.admin.org${r}.coveo.com`;return{platform:a,analytics:n,search:o,admin:i}}function Tc(e){return(e==null?void 0:e.multiRegionSubDomain)?`https://${e.multiRegionSubDomain}.org.coveo.com`:rS("platform",e)}function Yp(e){return rS("analytics",e)}function LR(e){let{url:t,method:r,requestParams:a,contentType:n,accessToken:o,signal:i}=e,s=e.method==="POST"||e.method==="PUT",c=NR(a,n);return{url:t,method:r,headers:{"Content-Type":n,Authorization:`Bearer ${o}`,...e.headers},...s&&{body:c},signal:i}}function NR(e,t){return t==="application/x-www-form-urlencoded"?Xh(e)?Jh(e):"":JSON.stringify(e)}Dc.default.extend(nS.default);Dc.default.extend(aS.default);var Kp="/rest/search/v2",Jp="/rest/ua",it=()=>({organizationId:"",accessToken:"",platformUrl:Tc(),search:{apiBaseUrl:`${Tc()}${Kp}`,locale:"en-US",timezone:Dc.default.tz.guess(),authenticationProviders:[]},analytics:{enabled:!0,apiBaseUrl:`${Yp()}${Jp}`,nextApiBaseUrl:"",originContext:"Search",originLevel2:"default",originLevel3:"default",anonymous:!1,deviceId:"",userDisplayName:"",documentLocation:"",trackingId:"",analyticsMode:"legacy",source:{}}});var Ct=()=>!1;function Ja(){return{uniqueId:"",content:"",isLoading:!1,position:-1,resultsWithPreview:[]}}var Ge=()=>"default";var Mt=(r=>(r.Relevance="relevance",r.Fields="fields",r))(Mt||{}),Vc=(r=>(r.Ascending="asc",r.Descending="desc",r))(Vc||{});var jM=new q({options:{required:!1},values:{by:new Dt({enum:Mt,required:!0}),fields:new X({each:new q({values:{name:new w,direction:new Dt({enum:Vc})}})})}});var WM=new q({options:{required:!1},values:{by:new Dt({enum:Mt,required:!0}),fields:new X({each:new q({values:{field:new w({required:!0}),direction:new Dt({enum:Vc}),displayName:new w}})})}});function da(){return[]}function Xa(){return{}}function pa(){return{}}var Mc=()=>({});var JR=Ie(ls());var Za=e=>e;function Gn(){return{answerSnippet:"",documentId:{contentIdKey:"",contentIdValue:""},question:"",relatedQuestions:[],score:0}}function Te(){return{response:{results:[],searchUid:"",totalCountFiltered:0,facets:[],generateAutomaticFacets:{facets:[]},queryCorrections:[],triggers:[],questionAnswer:Gn(),pipeline:"",splitTestRun:"",termsToHighlight:{},phrasesToHighlight:{},extendedResults:{}},duration:0,queryExecuted:"",error:null,automaticallyCorrected:!1,isLoading:!1,results:[],searchResponseId:"",requestId:"",questionAnswer:Gn(),extendedResults:{}}}function Gt(e){let{url:t,accessToken:r,organizationId:a,authentication:n,...o}=e;return o}var $r=e=>{let{response:t}=e;return t.body?QR(e):BR(t)},QR=e=>UR(e)?_R(e):jR(e)?e.body:{message:"unknown",statusCode:0,type:"unknown"},BR=e=>{let t=JSON.parse(JSON.stringify(e,Object.getOwnPropertyNames(e)));return{...t,message:`Client side error: ${t.message||""}`,statusCode:400,type:"ClientError"}};function jR(e){return e.body.statusCode!==void 0}function UR(e){return e.body.exception!==void 0}var _R=e=>({message:e.body.exception.code,statusCode:e.response.status,type:e.body.exception.code});function Lc(){if(typeof window=="undefined"){let{AbortController:e}=sS();return new e}return typeof AbortController=="undefined"?null:new AbortController}var en=class{constructor(){this.currentAbortController=null}async enqueue(t,r){var o;let a=this.currentAbortController,n=this.currentAbortController=Lc();a&&(r.warnOnAbort&&r.logger.warn("Cancelling current pending search query"),a.abort());try{return await t((o=n==null?void 0:n.signal)!=null?o:null)}finally{this.currentAbortController===n&&(this.currentAbortController=null)}}};var tn=class{constructor(t){this._params={};this._basePath=t}addParam(t,r){this._params={...this.params,[t]:r}}get basePath(){return this._basePath}get params(){return this._params}get hasParams(){return Object.entries(this._params).length}get href(){return this.hasParams?`${this.basePath}?${Object.entries(this.params).map(([t,r])=>`${t}=${encodeURIComponent(r)}`).join("&")}`:this.basePath}},cS=e=>/^https:\/\/platform(dev|stg|hipaa)?(-)?(eu|au)?\.cloud\.coveo\.com/.test(e),uS=(e,t)=>{let r=Zp(e);return r&&r.organizationId===t?r:null},Zp=e=>{let t=e.match(/^https:\/\/(?\w+)\.org(?dev|stg|hipaa)?\.coveo\.com/);return(t==null?void 0:t.groups)?t.groups:null};function lS(e){return((e.headers.get("content-type")||"").split(";").find(a=>a.indexOf("charset=")!==-1)||"").split("=")[1]||"UTF-8"}var zt=(e,t,r,a)=>{let n=new tn(`${e.url}${a}`);return n.addParam("organizationId",e.organizationId),e.authentication&&n.addParam("authentication",e.authentication),{accessToken:e.accessToken,method:t,contentType:r,url:n.href,origin:"searchApiFetch"}};var dS=(e,t)=>{let r=new tn(`${e.url}${t}`);return r.addParam("access_token",e.accessToken),r.addParam("organizationId",e.organizationId),r.addParam("uniqueId",e.uniqueId),e.q!==void 0&&r.addParam("q",e.q),e.enableNavigation!==void 0&&r.addParam("enableNavigation",`${e.enableNavigation}`),e.requestedOutputSize!==void 0&&r.addParam("requestedOutputSize",`${e.requestedOutputSize}`),e.visitorId!==void 0&&r.addParam("visitorId",`${e.visitorId}`),r.href},pS=async(e,t)=>{let r=await ot.call({...zt(e,"POST","application/x-www-form-urlencoded","/html"),requestParams:Gt(e),requestMetadata:{method:"html"},...t});if(r instanceof Error)throw r;let a=lS(r),n=await r.arrayBuffer(),i=new TextDecoder(a).decode(n);return $R(i)?{success:i}:{error:$r({response:r,body:i})}};function $R(e){return typeof e=="string"}function HR(e){return{statusCode:e.statusCode,type:e.name,message:e.message}}function GR(e){return{statusCode:e.code,type:e.name,message:e.message,ignored:!0}}function hs(e,t){if(t&&e.name==="AbortError")return{error:GR(e)};if(e instanceof $n)return{error:HR(e)};throw e}var Ss=class{constructor(t){this.options=t;this.apiCallsQueues={unknown:new en,mainSearch:new en,facetValues:new en,foldingCollection:new en,instantResults:new en}}async plan(t){let r=await ot.call({...zt(t,"POST","application/json","/plan"),requestParams:Gt(t),requestMetadata:{method:"plan"},...this.options});if(r instanceof Error)return hs(r);let a=await r.json();return WR(a)?{success:a}:{error:$r({response:r,body:a})}}async querySuggest(t){let r=await ot.call({...zt(t,"POST","application/json","/querySuggest"),requestMetadata:{method:"querySuggest"},requestParams:Gt(t),...this.options});if(r instanceof Error)return hs(r);let a=await r.json(),n={response:r,body:a};return zR(a)?{success:(await this.options.postprocessQuerySuggestResponseMiddleware(n)).body}:{error:$r(n)}}async search(t,r){var s;let a=(s=r==null?void 0:r.origin)!=null?s:"unknown",n=await this.apiCallsQueues[a].enqueue(c=>ot.call({...zt(t,"POST","application/json",""),requestParams:Gt(t),requestMetadata:{method:"search",origin:r==null?void 0:r.origin},...this.options,signal:c!=null?c:void 0}),{logger:this.options.logger,warnOnAbort:!(r==null?void 0:r.disableAbortWarning)});if(n instanceof Error)return hs(n,r==null?void 0:r.disableAbortWarning);let o=await n.json(),i={response:n,body:o};return Qc(o)?(i.body=fS(o),{success:(await this.options.postprocessSearchResponseMiddleware(i)).body}):{error:$r(i)}}async facetSearch(t){let r=await ot.call({...zt(t,"POST","application/json","/facet"),requestParams:Gt(t),requestMetadata:{method:"facetSearch"},...this.options});if(r instanceof Error)throw r;let a=await r.json(),n={response:r,body:a};return(await this.options.postprocessFacetSearchResponseMiddleware(n)).body}async recommendations(t){let r=await ot.call({...zt(t,"POST","application/json",""),requestParams:Gt(t),requestMetadata:{method:"recommendations"},...this.options});if(r instanceof Error)throw r;let a=await r.json();return Qc(a)?{success:a}:{error:$r({response:r,body:a})}}async html(t){return pS(t,{...this.options})}async productRecommendations(t){let r=await ot.call({...zt(t,"POST","application/json",""),requestParams:Gt(t),requestMetadata:{method:"productRecommendations"},...this.options});if(r instanceof Error)throw r;let a=await r.json();return Qc(a)?{success:a}:{error:$r({response:r,body:a})}}async fieldDescriptions(t){let r=await ot.call({...zt(t,"GET","application/json","/fields"),requestParams:{},requestMetadata:{method:"fieldDescriptions"},...this.options});if(r instanceof Error)throw r;let a=await r.json();return YR(a)?{success:a}:{error:$r({response:r,body:a})}}},Nc=e=>e.success!==void 0,ye=e=>e.error!==void 0;function Qc(e){return e.results!==void 0}function fS(e){let t=Gn();return te(e.questionAnswer)?(e.questionAnswer=t,e):(e.questionAnswer={...t,...e.questionAnswer},e)}function zR(e){return e.completions!==void 0}function WR(e){return e.preprocessingOutput!==void 0}function YR(e){return e.fields!==void 0}function Wt(){return{contextValues:{}}}var Bc=()=>({correctedQuery:"",wordCorrections:[],originalQuery:""}),gS=()=>({correctedQuery:"",corrections:[],originalQuery:""});function ys(){return{enableDidYouMean:!1,wasCorrectedTo:"",wasAutomaticallyCorrected:!1,queryCorrection:Bc(),originalQuery:"",automaticallyCorrectQuery:!0,queryCorrectionMode:"legacy"}}function zn(){return{enabled:!0}}function fa(){return{freezeFacetOrder:!1,facets:{}}}function Yt(){return{}}function hS(e){return{request:e,hasBreadcrumbs:!0}}function Kt(){return{}}function SS(e){return{request:e}}function Jt(){return{}}function yS(e){return{request:e}}function Xt(){return{}}var ef=["author","language","urihash","objecttype","collection","source","permanentid"],CS=[...ef,"date","filetype","parents"],XR=[...CS,"ec_price","ec_name","ec_description","ec_brand","ec_category","ec_item_group_id","ec_shortdesc","ec_thumbnails","ec_images","ec_promo_price","ec_in_stock","ec_rating"],Wn=()=>({fieldsToInclude:ef,fetchAllFields:!1,fieldsDescription:[]});var rn=()=>({enabled:!1,fields:{collection:"foldingcollection",parent:"foldingparent",child:"foldingchild"},filterFieldRange:2,collections:{}});function Yn(){return{id:"",isVisible:!0,isLoading:!1,isStreaming:!1,citations:[],liked:!1,disliked:!1,responseFormat:{answerStyle:"default"},feedbackModalOpen:!1,feedbackSubmitted:!1,fieldsToIncludeInCitations:[]}}function Ue(){return{firstResult:0,defaultNumberOfResults:10,numberOfResults:10,totalCountFiltered:0}}var xe=()=>({q:"",enableQuerySyntax:!1});var Kn=()=>({liked:!1,disliked:!1,expanded:!1,feedbackModalOpen:!1,relatedQuestions:[]});var ma=(r=>(r.Ascending="ascending",r.Descending="descending",r))(ma||{}),Zt=(o=>(o.Relevancy="relevancy",o.QRE="qre",o.Date="date",o.Field="field",o.NoSort="nosort",o))(Zt||{}),Hr=e=>{if(_n(e))return e.map(t=>Hr(t)).join(",");switch(e.by){case"relevancy":case"qre":case"nosort":return e.by;case"date":return`date ${e.order}`;case"field":return`@${e.field} ${e.order}`;default:return""}},Cs=()=>({by:"relevancy"}),tf=e=>({by:"date",order:e}),rf=(e,t)=>({by:"field",order:t,field:e}),af=()=>({by:"qre"}),nf=()=>({by:"nosort"}),xS=new q({values:{by:new Dt({enum:Zt,required:!0}),order:new Dt({enum:ma}),field:new w}});function tt(){return Hr(Cs())}function an(){return{}}function nn(){return{}}function xs(){return{}}var vs=()=>({url:"",clientId:"",additionalFields:[],advancedParameters:{debug:!1},products:[],facets:{results:[]},error:null,isLoading:!1,responseId:""});function ga(){return{contextValues:{}}}var st=()=>({cq:"",cqWasSet:!1,aq:"",aqWasSet:!1,lq:"",lqWasSet:!1,dq:"",dqWasSet:!1,defaultFilters:{cq:"",aq:"",lq:"",dq:""}});var Lt=()=>"";var vS=Ie(ls());var jc=e=>e,Uc=e=>e,_c=e=>e;function AS(e){return new Ss({logger:(0,vS.default)({level:"silent"}),preprocessRequest:Za,postprocessSearchResponseMiddleware:jc,postprocessFacetSearchResponseMiddleware:Uc,postprocessQuerySuggestResponseMiddleware:_c,...e})}var ZR=10,$c=e=>({past:[],present:e,future:[]}),eP=e=>{let{past:t,present:r,future:a}=e;if(!r||t.length===0)return e;let n=t[t.length-1];return{past:t.slice(0,t.length-1),present:n,future:[r,...a]}},tP=e=>{let{past:t,present:r,future:a}=e;if(!r||a.length===0)return e;let n=a[0],o=a.slice(1);return{past:[...t,r],present:n,future:o}},rP=e=>{let{action:t,state:r,reducer:a}=e,{past:n,present:o}=r,i=a(o,t);return o?o===i?r:{past:[...n,o].slice(-ZR),present:i,future:[]}:$c(i)},bS=e=>{let{actionTypes:t,reducer:r}=e,a=$c();return(n=a,o)=>{switch(o.type){case t.undo:return eP(n);case t.redo:return tP(n);case t.snapshot:return rP({state:n,reducer:r,action:o});default:return n}}};function Hc(){return{length:void 0}}var FS=1,RS=20,Gc=5,PS=1,zc=8;function ha(){return{desiredCount:Gc,numberOfValues:zc,set:{}}}function Wc(){return Nt({})}function Nt(e){var t,r,a;return{context:e.context||Wt(),dictionaryFieldContext:e.dictionaryFieldContext||ga(),facetSet:e.facetSet||Kt(),numericFacetSet:e.numericFacetSet||Xt(),dateFacetSet:e.dateFacetSet||Jt(),categoryFacetSet:e.categoryFacetSet||Yt(),automaticFacetSet:(t=e.automaticFacetSet)!=null?t:ha(),pagination:e.pagination||Ue(),query:e.query||xe(),tabSet:e.tabSet||nn(),advancedSearchQueries:e.advancedSearchQueries||st(),staticFilterSet:e.staticFilterSet||an(),querySet:e.querySet||pa(),sortCriteria:e.sortCriteria||tt(),pipeline:e.pipeline||Lt(),searchHub:e.searchHub||Ge(),facetOptions:e.facetOptions||fa(),facetOrder:(r=e.facetOrder)!=null?r:da(),debug:(a=e.debug)!=null?a:Ct()}}function Yc(){return{}}function Kc(e){return e?e.expiresAt&&Date.now()>=e.expiresAt:!1}function Jc(){return{queries:[],maxLength:10}}function Xc(){return{results:[],maxLength:10}}function Zc(){return{}}var eu=()=>({redirectTo:"",query:"",executions:[],notifications:[],queryModification:{originalQuery:"",newQuery:"",queryToIgnore:""}});function tu(e={}){return{configuration:it(),advancedSearchQueries:st(),staticFilterSet:an(),facetSet:Kt(),dateFacetSet:Jt(),numericFacetSet:Xt(),categoryFacetSet:Yt(),facetSearchSet:Xa(),categoryFacetSearchSet:xs(),facetOptions:fa(),pagination:Ue(),query:xe(),querySet:pa(),instantResults:Yc(),tabSet:nn(),querySuggest:{},search:Te(),sortCriteria:tt(),context:Wt(),dictionaryFieldContext:ga(),didYouMean:ys(),fields:Wn(),history:$c(Wc()),pipeline:Lt(),facetOrder:da(),searchHub:Ge(),debug:Ct(),resultPreview:Ja(),version:"unit-testing-version",folding:rn(),triggers:eu(),questionAnswering:Kn(),standaloneSearchBoxSet:Zc(),recentResults:Xc(),recentQueries:Jc(),excerptLength:Hc(),automaticFacetSet:ha(),generatedAnswer:Yn(),...e}}function ES(e={}){let t=aP(e,tu);return{...t,executeFirstSearch:jest.fn(),executeFirstSearchAfterStandaloneSearchBoxRedirect:jest.fn(),apiClient:t.apiClient}}function aP(e={},t,r=nP){let a=(0,wS.default)({level:"silent"}),n=kS(e,t),{store:o,apiClient:i}=r(a,n),s=o(n),c=()=>{},{state:u,...l}=e;return{store:s,apiClient:i,state:kS(e,t),subscribe:jest.fn(()=>c),get dispatch(){return s.dispatch},get actions(){return s.getActions()},findAsyncAction(d){let p=this.actions.find(f=>f.type===d.type);return oP(p)?p:void 0},get relay(){return null},logger:a,addReducers:jest.fn(),enableAnalytics:jest.fn(),disableAnalytics:jest.fn(),...l}}function kS(e,t){let r=e.state||t();return r.configuration.analytics.enabled=!1,r}var nP=e=>{let t={apiClient:AS({logger:e}),validatePayload:nt,logger:e};return{store:(0,IS.default)([bc,Fc(e),Ac,es.withExtraArgument(t),...mc(),Rc(e)]),apiClient:t.apiClient}};function oP(e){return e?"meta"in e:!1}function As(e={}){return{urihash:"",parents:"",sfid:"",sfparentid:"",sfinsertedbyid:"",documenttype:"",sfcreatedbyid:"",permanentid:"",date:0,objecttype:"",sourcetype:"",sftitle:"",size:0,sffeeditemid:"",clickableuri:"",sfcreatedby:"",source:"",collection:"",connectortype:"",filetype:"",sfcreatedbyname:"",sflikecount:0,language:[],...e}}function OS(e={}){return{title:"",uri:"",printableUri:"",clickUri:"",uniqueId:"",excerpt:"",firstSentences:"",summary:null,flags:"",hasHtmlVersion:!1,score:0,percentScore:0,rankingInfo:null,isTopResult:!1,isRecommendation:!1,titleHighlights:[],firstSentencesHighlights:[],excerptHighlights:[],printableUriHighlights:[],summaryHighlights:[],absentTerms:[],raw:As(),isUserActionView:!1,...e}}var Cj={title:"example documentTitle",uri:"example documentUri",printableUri:"printable-uri",clickUri:"example documentUrl",uniqueId:"unique-id",excerpt:"excerpt",firstSentences:"first-sentences",flags:"flags",rankingModifier:"example rankingModifier",raw:As({urihash:"example documentUriHash",source:"example sourceName",collection:"example collectionName",permanentid:"example contentIDValue"})};var qS={};Km(qS,{escape:()=>Jn,getHighlightedSuggestion:()=>of,highlightString:()=>iP});function iP(e){if(kc(e.openingDelimiter)||kc(e.closingDelimiter))throw Error("delimiters should be a non-empty string");if(te(e.content)||kc(e.content))return e.content;if(e.highlights.length===0)return Jn(e.content);let t=e.content.length,r="",a=0;for(let n=0;nt)break;r+=Jn(e.content.slice(a,i)),r+=e.openingDelimiter,r+=Jn(e.content.slice(i,s)),r+=e.closingDelimiter,a=s}return a!==t&&(r+=Jn(e.content.slice(a))),r}function of(e,t){return e=Jn(e),e.replace(/\[(.*?)\]|\{(.*?)\}|\((.*?)\)/g,(r,a,n,o)=>a?sf(a,t.notMatchDelimiters):n?sf(n,t.exactMatchDelimiters):o?sf(o,t.correctionDelimiters):r)}function sf(e,t){return t?t.open+e+t.close:e}function Jn(e){let t={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},r="(?:"+Object.keys(t).join("|")+")",a=RegExp(r),n=RegExp(r,"g");return a.test(e)?e.replace(n,o=>t[o]):e}async function TS(e,t){let r=e.getReader(),a;for(;!(a=await r.read()).done;)t(a.value)}function DS(e){let t,r,a,n=!1;return function(i){t===void 0?(t=i,r=0,a=-1):t=sP(t,i);let s=t.length,c=0;for(;r0){let c=n.decode(i.subarray(0,s)),u=s+(i[s+1]===32?2:1),l=n.decode(i.subarray(u));switch(c){case"data":a.data=a.data?a.data+` +`+l:l;break;case"event":a.event=l;break;case"id":e(a.id=l);break;case"retry":let d=parseInt(l,10);isNaN(d)||t(a.retry=d);break}}}}function sP(e,t){let r=new Uint8Array(e.length+t.length);return r.set(e),r.set(t,e.length),r}function MS(){return{data:"",event:"",id:"",retry:void 0}}var cP=function(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(e);n{let f=Object.assign({},a);f.accept||(f.accept=ru);let m;function g(){m?.abort(),document.hidden||N()}c||document.addEventListener("visibilitychange",g);let S=uP,y=0;function x(){document.removeEventListener("visibilitychange",g),window.clearTimeout(y),m?.abort()}r==null||r.addEventListener("abort",()=>{x(),d()});let b=u??window.fetch,P=n??lP;async function N(){var H;m=typeof AbortController=="undefined"?null:new AbortController;try{let Z=await b(e,Object.assign(Object.assign({},l),{headers:f,signal:m?.signal}));await P(Z),await TS(Z.body,DS(VS(U=>{U?f[LS]=U:delete f[LS]},U=>{S=U},o))),i==null||i(),x(),d()}catch(Z){if(!m?.signal.aborted)try{let U=(H=s==null?void 0:s(Z))!==null&&H!==void 0?H:S;window.clearTimeout(y),y=window.setTimeout(N,U)}catch(U){x(),p(U)}}}N()})}function lP(e){let t=e.headers.get("content-type");if(!(t==null?void 0:t.startsWith(ru)))throw new Error(`Expected content-type to be ${ru}, Actual: ${t}`)}var dP=(e,t,r)=>new tn(`${e}/rest/organizations/${t}/machinelearning/streaming/${r}`).href,NS=3,pP=5e3,fP="text/event-stream",uf=1,QS=class extends Error{},au=class extends Error{constructor(t){super(t.message);this.payload=t}},BS=class{constructor(){this.timeouts=new Set}add(t){this.timeouts.add(t)}remove(t){clearTimeout(t),this.timeouts.delete(t)}isActive(t){return this.timeouts.has(t)}},lf=class{constructor(t){this.logger=t.logger}streamGeneratedAnswer(t,r){let{url:a,organizationId:n,streamId:o,accessToken:i}=t,{write:s,abort:c,close:u,resetAnswer:l}=r,d=new BS;if(!o){this.logger.error("No stream ID found");return}let p=0,f,m=()=>{f&&!d.isActive(f)&&(S==null||S.abort(),l(),y())},g=()=>{d.remove(f),f=Kh(m,f,pP),d.add(f)},S=Lc(),y=()=>cf(dP(a,n,o),{method:"GET",headers:{Authorization:`Bearer ${i}`,accept:"*/*"},signal:S==null?void 0:S.signal,async onopen(x){if(x.ok&&x.headers.get("content-type")===fP)return;throw x.status>=400&&x.status<500&&x.status!==429?new au({message:"Error opening stream",code:x.status}):new QS},onmessage:x=>{let b=JSON.parse(x.data);if(b.finishReason==="ERROR"){d.remove(f),S==null||S.abort(),c({message:b.errorMessage,code:b.statusCode});return}s(b),p=0,b.finishReason==="COMPLETED"?(d.remove(f),u()):g()},onerror:x=>{if(d.remove(f),x instanceof au)throw S==null||S.abort(),c(x),x;if(++p>NS){this.logger.info("Maximum retry exceeded.");let b={message:"Failed to complete stream.",code:uf};throw S==null||S.abort(),c(b),new au(b)}this.logger.info(`Retrying...(${p}/${NS})`),l()}});return y(),S}};function er(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(e);ngP.indexOf(e)!==-1?Object.assign({language:Xn()?document.documentElement.lang:"unknown",userAgent:df()?navigator.userAgent:"unknown"},t):t,Zn=class{static set(t,r,a){var n,o,i,s;a&&(o=new Date,o.setTime(o.getTime()+a)),s=window.location.hostname,s.indexOf(".")===-1?_S(t,r,o):(i=s.split("."),n=i[i.length-2]+"."+i[i.length-1],_S(t,r,o,n))}static get(t){for(var r=t+"=",a=document.cookie.split(";"),n=0;n(n.internalTime||0)-(a.internalTime||0))[0]:null}cropQueryElement(t){return t.name&&t.value&&t.name.toLowerCase()==="query"&&(t.value=t.value.slice(0,zS)),t}isValidEntry(t){let r=this.getMostRecentElement();return r&&r.value==t.value?(t.internalTime||0)-(r.internalTime||0)>GS:!0}stripInternalTime(t){return Array.isArray(t)?t.map(r=>{let{name:a,time:n,value:o}=r;return{name:a,time:n,value:o}}):[]}stripEmptyQuery(t){let{name:r,time:a,value:n}=t;return r&&typeof n=="string"&&r.toLowerCase()==="query"&&n.trim()===""?{name:r,time:a}:t}stripEmptyQueries(t){return t.map(r=>this.stripEmptyQuery(r))}},WS=Object.freeze({__proto__:null,HistoryStore:Fs,MAX_NUMBER_OF_HISTORY_ELEMENTS:HS,MAX_VALUE_SIZE:zS,MIN_THRESHOLD_FOR_DUPLICATE_VALUE:GS,STORE_KEY:bs,default:Fs}),yP=(e,t)=>F(void 0,void 0,void 0,function*(){return e===se.view?(yield CP(t.contentIdValue),Object.assign({location:window.location.toString(),referrer:document.referrer,title:document.title},t)):t}),CP=e=>F(void 0,void 0,void 0,function*(){let t=new Fs,r={name:"PageView",value:e,time:new Date().toISOString()};yield t.addElementAsync(r)}),nu,xP=new Uint8Array(16);function vP(){if(!nu&&(nu=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!nu))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return nu(xP)}var AP=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function ou(e){return typeof e=="string"&&AP.test(e)}var _e=[];for(let e=0;e<256;++e)_e.push((e+256).toString(16).slice(1));function YS(e,t=0){return(_e[e[t+0]]+_e[e[t+1]]+_e[e[t+2]]+_e[e[t+3]]+"-"+_e[e[t+4]]+_e[e[t+5]]+"-"+_e[e[t+6]]+_e[e[t+7]]+"-"+_e[e[t+8]]+_e[e[t+9]]+"-"+_e[e[t+10]]+_e[e[t+11]]+_e[e[t+12]]+_e[e[t+13]]+_e[e[t+14]]+_e[e[t+15]]).toLowerCase()}function bP(e){if(!ou(e))throw TypeError("Invalid UUID");let t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=t&255,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=t&255,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=t&255,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=t&255,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=t&255,r}function FP(e){e=unescape(encodeURIComponent(e));let t=[];for(let r=0;r>>32-t}function kP(e){let t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){let i=unescape(encodeURIComponent(e));e=[];for(let s=0;s>>0;p=d,d=l,l=ff(u,30)>>>0,u=c,c=g}r[0]=r[0]+c>>>0,r[1]=r[1]+u>>>0,r[2]=r[2]+l>>>0,r[3]=r[3]+d>>>0,r[4]=r[4]+p>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}var OP=wP("v5",80,kP),JS=OP,XS="2.29.3",ZS=e=>`${e.protocol}//${e.hostname}${e.pathname.indexOf("/")===0?e.pathname:`/${e.pathname}`}${e.search}`,Rs={pageview:"pageview",event:"event"},mf=class{constructor({client:t,uuidGenerator:r=on}){this.client=t,this.uuidGenerator=r}},ey=class extends mf{constructor({client:t,uuidGenerator:r=on}){super({client:t,uuidGenerator:r});this.actionData={},this.pageViewId=r(),this.nextPageViewId=this.pageViewId,this.currentLocation=ZS(window.location),this.lastReferrer=Xn()?document.referrer:"",this.addHooks()}getApi(t){switch(t){case"setAction":return this.setAction;default:return null}}setAction(t,r){this.action=t,this.actionData=r}clearData(){this.clearPluginData(),this.action=void 0,this.actionData={}}getLocationInformation(t,r){return Object.assign({hitType:t},this.getNextValues(t,r))}updateLocationInformation(t,r){this.updateLocationForNextPageView(t,r)}getDefaultContextInformation(t){let r={title:Xn()?document.title:"",encoding:Xn()?document.characterSet:"UTF-8"},a={screenResolution:`${screen.width}x${screen.height}`,screenColor:`${screen.colorDepth}-bit`},n={language:navigator.language,userAgent:navigator.userAgent},o={time:Date.now(),eventId:this.uuidGenerator()};return Object.assign(Object.assign(Object.assign(Object.assign({},o),a),n),r)}updateLocationForNextPageView(t,r){let{pageViewId:a,referrer:n,location:o}=this.getNextValues(t,r);this.lastReferrer=n,this.pageViewId=a,this.currentLocation=o,t===Rs.pageview&&(this.nextPageViewId=this.uuidGenerator(),this.hasSentFirstPageView=!0)}getNextValues(t,r){return{pageViewId:t===Rs.pageview?this.nextPageViewId:this.pageViewId,referrer:t===Rs.pageview&&this.hasSentFirstPageView?this.currentLocation:this.lastReferrer,location:t===Rs.pageview?this.getCurrentLocationFromPayload(r):this.currentLocation}}getCurrentLocationFromPayload(t){if(t.page){let r=n=>n.replace(/^\/?(.*)$/,"/$1");return`${(n=>n.split("/").slice(0,3).join("/"))(this.currentLocation)}${r(t.page)}`}else return ZS(window.location)}},tr=class{constructor(t,r){if(!ou(t))throw Error("Not a valid uuid");this.clientId=t,this.creationDate=Math.floor(r/1e3)}toString(){return this.clientId.replace(/-/g,"")+"."+this.creationDate.toString()}get expired(){let t=Math.floor(Date.now()/1e3)-this.creationDate;return t<0||t>tr.expirationTime}validate(t,r){return!this.expired&&this.matchReferrer(t,r)}matchReferrer(t,r){try{let a=new URL(t);return r.some(n=>new RegExp(n.replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*")+"$").test(a.host))}catch{return!1}}static fromString(t){let r=t.split(".");if(r.length!==2)return null;let[a,n]=r;if(a.length!==32||isNaN(parseInt(n)))return null;let o=a.substring(0,8)+"-"+a.substring(8,12)+"-"+a.substring(12,16)+"-"+a.substring(16,20)+"-"+a.substring(20,32);return ou(o)?new tr(o,Number.parseInt(n)*1e3):null}};tr.cvo_cid="cvo_cid";tr.expirationTime=120;var ty=class extends mf{constructor({client:t,uuidGenerator:r=on}){super({client:t,uuidGenerator:r})}getApi(t){switch(t){case"decorate":return this.decorate;case"acceptFrom":return this.acceptFrom;default:return null}}decorate(t){return F(this,void 0,void 0,function*(){if(!this.client.getCurrentVisitorId)throw new Error("Could not retrieve current clientId");try{let r=new URL(t),a=yield this.client.getCurrentVisitorId();return r.searchParams.set(tr.cvo_cid,new tr(a,Date.now()).toString()),r.toString()}catch{throw new Error("Invalid URL provided")}})}acceptFrom(t){this.client.setAcceptedLinkReferrers(t)}};ty.Id="link";var xt=Object.keys;function iu(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}var gf={id:"svc_ticket_id",subject:"svc_ticket_subject",description:"svc_ticket_description",category:"svc_ticket_category",productId:"svc_ticket_product_id",custom:"svc_ticket_custom"},qP=xt(gf).map(e=>gf[e]),TP=[...qP].join("|"),DP=new RegExp(`^(${TP}$)`),VP={svcAction:"svc_action",svcActionData:"svc_action_data"},MP=e=>xt(e).filter(t=>e[t]!==void 0).reduce((t,r)=>{let a=gf[r]||r;return Object.assign(Object.assign({},t),{[a]:e[r]})},{}),LP=e=>DP.test(e),NP=[LP],ry={id:"id",name:"nm",brand:"br",category:"ca",variant:"va",price:"pr",quantity:"qt",coupon:"cc",position:"ps",group:"group"},ay={id:"id",name:"nm",brand:"br",category:"ca",variant:"va",position:"ps",price:"pr",group:"group"},ze={action:"pa",list:"pal",listSource:"pls"},su={id:"ti",revenue:"tr",tax:"tt",shipping:"ts",coupon:"tcc",affiliation:"ta",step:"cos",option:"col"},QP=["loyaltyCardId","loyaltyTier","thirdPartyPersona","companyName","favoriteStore","storeName","userIndustry","userRole","userDepartment","businessUnit"],hf={id:"quoteId",affiliation:"quoteAffiliation"},Sf={id:"reviewId",rating:"reviewRating",comment:"reviewComment"},BP={add:ze,bookmark_add:ze,bookmark_remove:ze,click:ze,checkout:ze,checkout_option:ze,detail:ze,impression:ze,remove:ze,refund:Object.assign(Object.assign({},ze),su),purchase:Object.assign(Object.assign({},ze),su),quickview:ze,quote:Object.assign(Object.assign({},ze),hf),review:Object.assign(Object.assign({},ze),Sf)},jP=xt(ry).map(e=>ry[e]),UP=xt(ay).map(e=>ay[e]),_P=xt(ze).map(e=>ze[e]),$P=xt(su).map(e=>su[e]),HP=xt(Sf).map(e=>Sf[e]),GP=xt(hf).map(e=>hf[e]),zP=[...jP,"custom"].join("|"),WP=[...UP,"custom"].join("|"),ny="(pr[0-9]+)",oy="(il[0-9]+pi[0-9]+)",YP=new RegExp(`^${ny}(${zP})$`),KP=new RegExp(`^(${oy}(${WP}))|(il[0-9]+nm)$`),JP=new RegExp(`^(${_P.join("|")})$`),XP=new RegExp(`^(${$P.join("|")})$`),ZP=new RegExp(`^${ny}custom$`),ew=new RegExp(`^${oy}custom$`),tw=new RegExp(`^(${[...QP,...HP,...GP].join("|")})$`),rw=e=>YP.test(e),aw=e=>KP.test(e),nw=e=>JP.test(e),ow=e=>XP.test(e),iw=e=>tw.test(e),sw=[aw,rw,nw,ow,iw],cw=[ZP,ew],uw={anonymizeIp:"aip"},lw={eventCategory:"ec",eventAction:"ea",eventLabel:"el",eventValue:"ev",page:"dp",visitorId:"cid",clientId:"cid",userId:"uid",currencyCode:"cu"},dw={hitType:"t",pageViewId:"pid",encoding:"de",location:"dl",referrer:"dr",screenColor:"sd",screenResolution:"sr",title:"dt",userAgent:"ua",language:"ul",eventId:"z",time:"tm"},pw=["contentId","contentIdKey","contentType","searchHub","tab","searchUid","permanentId","contentLocale","trackingId"],fw=Object.assign(Object.assign(Object.assign(Object.assign({},uw),lw),dw),pw.reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:t}),{})),yf=Object.assign(Object.assign({},fw),VP),mw=e=>{let t=!!e.action&&BP[e.action]||{};return xt(e).reduce((r,a)=>{let n=t[a]||yf[a]||a;return Object.assign(Object.assign({},r),{[n]:e[a]})},{})},gw=xt(yf).map(e=>yf[e]),hw=e=>gw.indexOf(e)!==-1,Sw=e=>e==="custom",yw=e=>[...sw,...NP,hw,Sw].some(t=>t(e)),Cw=e=>xt(e).reduce((t,r)=>{let a=xw(r);return a?Object.assign(Object.assign({},t),vw(a,e[r])):Object.assign(Object.assign({},t),{[r]:e[r]})},{}),xw=e=>{let t;return[...cw].every(r=>{var a;return t=(a=r.exec(e))===null||a===void 0?void 0:a[1],!Boolean(t)}),t},vw=(e,t)=>xt(t).reduce((r,a)=>Object.assign(Object.assign({},r),{[`${e}${a}`]:t[a]}),{}),iy=class{constructor(t){this.opts=t}sendEvent(t,r){return F(this,void 0,void 0,function*(){if(!this.isAvailable())throw new Error('navigator.sendBeacon is not supported in this browser. Consider adding a polyfill like "sendbeacon-polyfill".');let{baseUrl:a,preprocessRequest:n}=this.opts,o=yield this.getQueryParamsForEventType(t),{url:i,payload:s}=yield this.preProcessRequestAsPotentialJSONString(`${a}/analytics/${t}?${o}`,r,n),c=this.encodeForEventType(t,s),u=new Blob([c],{type:"application/x-www-form-urlencoded"});navigator.sendBeacon(i,u)})}isAvailable(){return"sendBeacon"in navigator}deleteHttpCookieVisitorId(){return Promise.resolve()}preProcessRequestAsPotentialJSONString(t,r,a){return F(this,void 0,void 0,function*(){let n=t,o=r;if(a){let i=yield a({url:t,body:JSON.stringify(r)},"analyticsBeacon"),{url:s,body:c}=i;n=s||t;try{o=JSON.parse(c)}catch(u){console.error("Unable to process the request body as a JSON string",u)}}return{payload:o,url:n}})}encodeForEventType(t,r){return this.isEventTypeLegacy(t)?this.encodeEventToJson(t,r):this.encodeEventToJson(t,r,this.opts.token)}getQueryParamsForEventType(t){return F(this,void 0,void 0,function*(){let{token:r,visitorIdProvider:a}=this.opts,n=yield a.getCurrentVisitorId();return[r&&this.isEventTypeLegacy(t)?`access_token=${r}`:"",n?`visitorId=${n}`:"","discardVisitInfo=true"].filter(o=>!!o).join("&")})}isEventTypeLegacy(t){return[se.click,se.custom,se.search,se.view].indexOf(t)!==-1}encodeEventToJson(t,r,a){let n=`${t}Event=${encodeURIComponent(JSON.stringify(r))}`;return a&&(n=`access_token=${encodeURIComponent(a)}&${n}`),n}},sy=class{sendEvent(t,r){return F(this,void 0,void 0,function*(){return Promise.resolve()})}deleteHttpCookieVisitorId(){return F(this,void 0,void 0,function*(){return Promise.resolve()})}},cy=window.fetch,Cf=class{constructor(t){this.opts=t}sendEvent(t,r){return F(this,void 0,void 0,function*(){let{baseUrl:a,visitorIdProvider:n,preprocessRequest:o}=this.opts,i=this.shouldAppendVisitorId(t)?yield this.getVisitorIdParam():"",s={url:`${a}/analytics/${t}${i}`,credentials:"include",mode:"cors",headers:this.getHeaders(),method:"POST",body:JSON.stringify(r)},c=Object.assign(Object.assign({},s),o?yield o(s,"analyticsFetch"):{}),{url:u}=c,l=er(c,["url"]),d=yield cy(u,l);if(d.ok){let p=yield d.json();return p.visitorId&&n.setCurrentVisitorId(p.visitorId),p}else{try{d.json()}catch{}throw console.error(`An error has occured when sending the "${t}" event.`,d,r),new Error(`An error has occurred when sending the "${t}" event. Check the console logs for more details.`)}})}deleteHttpCookieVisitorId(){return F(this,void 0,void 0,function*(){let{baseUrl:t}=this.opts,r=`${t}/analytics/visit`;yield cy(r,{headers:this.getHeaders(),method:"DELETE"})})}shouldAppendVisitorId(t){return[se.click,se.custom,se.search,se.view].indexOf(t)!==-1}getVisitorIdParam(){return F(this,void 0,void 0,function*(){let{visitorIdProvider:t}=this.opts,r=yield t.getCurrentVisitorId();return r?`?visitor=${r}`:""})}getHeaders(){let{token:t}=this.opts;return Object.assign(Object.assign({},t?{Authorization:`Bearer ${t}`}:{}),{"Content-Type":"application/json"})}},uy=class{constructor(t,r){pf()&&US()?this.storage=new $S:pf()?this.storage=localStorage:(console.warn("BrowserRuntime detected no valid storage available.",this),this.storage=new eo),this.client=new Cf(t),this.beaconClient=new iy(t),window.addEventListener("beforeunload",()=>{let a=r();for(let{eventType:n,payload:o}of a)this.beaconClient.sendEvent(n,o)})}getClientDependingOnEventType(t){return t==="click"&&this.beaconClient.isAvailable()?this.beaconClient:this.client}},ly=class{constructor(t,r){this.storage=r||new eo,this.client=new Cf(t)}getClientDependingOnEventType(t){return this.client}},dy=class{constructor(){this.storage=new eo,this.client=new sy}getClientDependingOnEventType(t){return this.client}},Aw="xx",bw=e=>(e==null?void 0:e.startsWith(Aw))||!1,Fw=` + We've detected you're using React Native but have not provided the corresponding runtime, + for an optimal experience please use the "coveo.analytics/react-native" subpackage. + Follow the Readme on how to set it up: https://github.com/coveo/coveo.analytics.js#using-react-native + `;function Rw(){return typeof navigator!="undefined"&&navigator.product=="ReactNative"}var Pw=["1",1,"yes",!0];function Ps(){return df()&&[navigator.globalPrivacyControl,navigator.doNotTrack,navigator.msDoNotTrack,window.doNotTrack].some(e=>Pw.indexOf(e)!==-1)}var py="v15",fy={default:"https://analytics.cloud.coveo.com/rest/ua",production:"https://analytics.cloud.coveo.com/rest/ua",hipaa:"https://analyticshipaa.cloud.coveo.com/rest/ua"};function ww(e=fy.default,t=py,r=!1){if(e=e.replace(/\/$/,""),r)return`${e}/${t}`;let a=e.endsWith("/rest")||e.endsWith("/rest/ua");return`${e}${a?"":"/rest"}/${t}`}var Iw="38824e1f-37f5-42d3-8372-a4b8fa9df946",Qt=class{get defaultOptions(){return{endpoint:fy.default,isCustomEndpoint:!1,token:"",version:py,beforeSendHooks:[],afterSendHooks:[]}}get version(){return XS}constructor(t){if(this.acceptedLinkReferrers=[],!t)throw new Error("You have to pass options to this constructor");this.options=Object.assign(Object.assign({},this.defaultOptions),t),this.visitorId="",this.bufferedRequests=[],this.beforeSendHooks=[yP,hP].concat(this.options.beforeSendHooks),this.afterSendHooks=this.options.afterSendHooks,this.eventTypeMapping={};let r={baseUrl:this.baseUrl,token:this.options.token,visitorIdProvider:this,preprocessRequest:this.options.preprocessRequest};this.runtime=this.options.runtimeEnvironment||this.initRuntime(r),Ps()&&(this.runtime.storage=new eo),this.addEventTypeMapping(se.view,{newEventType:se.view,addClientIdParameter:!0}),this.addEventTypeMapping(se.click,{newEventType:se.click,addClientIdParameter:!0}),this.addEventTypeMapping(se.custom,{newEventType:se.custom,addClientIdParameter:!0}),this.addEventTypeMapping(se.search,{newEventType:se.search,addClientIdParameter:!0})}initRuntime(t){return jS()&&Xn()?new uy(t,()=>{let r=[...this.bufferedRequests];return this.bufferedRequests=[],r}):(Rw()&&console.warn(Fw),new ly(t))}get storage(){return this.runtime.storage}determineVisitorId(){return F(this,void 0,void 0,function*(){try{return jS()&&this.extractClientIdFromLink(window.location.href)||(yield this.storage.getItem("visitorId"))||on()}catch(t){return console.log("Could not get visitor ID from the current runtime environment storage. Using a random ID instead.",t),on()}})}getCurrentVisitorId(){return F(this,void 0,void 0,function*(){if(!this.visitorId){let t=yield this.determineVisitorId();yield this.setCurrentVisitorId(t)}return this.visitorId})}setCurrentVisitorId(t){return F(this,void 0,void 0,function*(){this.visitorId=t,yield this.storage.setItem("visitorId",t)})}setClientId(t,r){return F(this,void 0,void 0,function*(){if(ou(t))this.setCurrentVisitorId(t.toLowerCase());else{if(!r)throw Error("Cannot generate uuid client id without a specific namespace string.");this.setCurrentVisitorId(JS(t,JS(r,Iw)))}})}getParameters(t,...r){return F(this,void 0,void 0,function*(){return yield this.resolveParameters(t,...r)})}getPayload(t,...r){return F(this,void 0,void 0,function*(){let a=yield this.resolveParameters(t,...r);return yield this.resolvePayloadForParameters(t,a)})}get currentVisitorId(){return typeof(this.visitorId||this.storage.getItem("visitorId"))!="string"&&this.setCurrentVisitorId(on()),this.visitorId}set currentVisitorId(t){this.visitorId=t,this.storage.setItem("visitorId",t)}extractClientIdFromLink(t){if(Ps())return null;try{let r=new URL(t).searchParams.get(tr.cvo_cid);if(r==null)return null;let a=tr.fromString(r);return!a||!Xn()||!a.validate(document.referrer,this.acceptedLinkReferrers)?null:a.clientId}catch{}return null}resolveParameters(t,...r){return F(this,void 0,void 0,function*(){let{variableLengthArgumentsNames:a=[],addVisitorIdParameter:n=!1,usesMeasurementProtocol:o=!1,addClientIdParameter:i=!1}=this.eventTypeMapping[t]||{};return yield[f=>a.length>0?this.parseVariableArgumentsPayload(a,f):f[0],f=>F(this,void 0,void 0,function*(){return Object.assign(Object.assign({},f),{visitorId:n?yield this.getCurrentVisitorId():""})}),f=>F(this,void 0,void 0,function*(){return i?Object.assign(Object.assign({},f),{clientId:yield this.getCurrentVisitorId()}):f}),f=>o?this.ensureAnonymousUserWhenUsingApiKey(f):f,f=>this.beforeSendHooks.reduce((m,g)=>F(this,void 0,void 0,function*(){let S=yield m;return yield g(t,S)}),f)].reduce((f,m)=>F(this,void 0,void 0,function*(){let g=yield f;return yield m(g)}),Promise.resolve(r))})}resolvePayloadForParameters(t,r){return F(this,void 0,void 0,function*(){let{usesMeasurementProtocol:a=!1}=this.eventTypeMapping[t]||{};return yield[d=>this.setTrackingIdIfTrackingIdNotPresent(d),d=>this.removeEmptyPayloadValues(d,t),d=>this.validateParams(d,t),d=>a?mw(d):d,d=>a?this.removeUnknownParameters(d):d,d=>a?this.processCustomParameters(d):this.mapCustomParametersToCustomData(d)].reduce((d,p)=>F(this,void 0,void 0,function*(){let f=yield d;return yield p(f)}),Promise.resolve(r))})}makeEvent(t,...r){return F(this,void 0,void 0,function*(){let{newEventType:a=t}=this.eventTypeMapping[t]||{},n=yield this.resolveParameters(t,...r),o=yield this.resolvePayloadForParameters(t,n);return{eventType:a,payload:o,log:i=>F(this,void 0,void 0,function*(){return this.bufferedRequests.push({eventType:a,payload:Object.assign(Object.assign({},o),i)}),yield Promise.all(this.afterSendHooks.map(s=>s(t,Object.assign(Object.assign({},n),i)))),yield this.deferExecution(),yield this.sendFromBuffer()})}})}sendEvent(t,...r){return F(this,void 0,void 0,function*(){return(yield this.makeEvent(t,...r)).log({})})}deferExecution(){return new Promise(t=>setTimeout(t,0))}sendFromBuffer(){return F(this,void 0,void 0,function*(){let t=this.bufferedRequests.shift();if(t){let{eventType:r,payload:a}=t;return this.runtime.getClientDependingOnEventType(r).sendEvent(r,a)}})}clear(){this.storage.removeItem("visitorId"),new Fs().clear()}deleteHttpOnlyVisitorId(){this.runtime.client.deleteHttpCookieVisitorId()}makeSearchEvent(t){return F(this,void 0,void 0,function*(){return this.makeEvent(se.search,t)})}sendSearchEvent(t){var{searchQueryUid:r}=t,a=er(t,["searchQueryUid"]);return F(this,void 0,void 0,function*(){return(yield this.makeSearchEvent(a)).log({searchQueryUid:r})})}makeClickEvent(t){return F(this,void 0,void 0,function*(){return this.makeEvent(se.click,t)})}sendClickEvent(t){var{searchQueryUid:r}=t,a=er(t,["searchQueryUid"]);return F(this,void 0,void 0,function*(){return(yield this.makeClickEvent(a)).log({searchQueryUid:r})})}makeCustomEvent(t){return F(this,void 0,void 0,function*(){return this.makeEvent(se.custom,t)})}sendCustomEvent(t){var{lastSearchQueryUid:r}=t,a=er(t,["lastSearchQueryUid"]);return F(this,void 0,void 0,function*(){return(yield this.makeCustomEvent(a)).log({lastSearchQueryUid:r})})}makeViewEvent(t){return F(this,void 0,void 0,function*(){return this.makeEvent(se.view,t)})}sendViewEvent(t){return F(this,void 0,void 0,function*(){return(yield this.makeViewEvent(t)).log({})})}getVisit(){return F(this,void 0,void 0,function*(){let r=yield(yield fetch(`${this.baseUrl}/analytics/visit`)).json();return this.visitorId=r.visitorId,r})}getHealth(){return F(this,void 0,void 0,function*(){return yield(yield fetch(`${this.baseUrl}/analytics/monitoring/health`)).json()})}registerBeforeSendEventHook(t){this.beforeSendHooks.push(t)}registerAfterSendEventHook(t){this.afterSendHooks.push(t)}addEventTypeMapping(t,r){this.eventTypeMapping[t]=r}setAcceptedLinkReferrers(t){if(Array.isArray(t)&&t.every(r=>typeof r=="string"))this.acceptedLinkReferrers=t;else throw Error("Parameter should be an array of domain strings")}parseVariableArgumentsPayload(t,r){let a={};for(let n=0,o=r.length;ntypeof n!="undefined"&&n!==null&&n!=="";return Object.keys(t).filter(n=>this.isKeyAllowedEmpty(r,n)||a(t[n])).reduce((n,o)=>Object.assign(Object.assign({},n),{[o]:t[o]}),{})}removeUnknownParameters(t){return Object.keys(t).filter(a=>{if(yw(a))return!0;console.log(a,"is not processed by coveoua")}).reduce((a,n)=>Object.assign(Object.assign({},a),{[n]:t[n]}),{})}processCustomParameters(t){let{custom:r}=t,a=er(t,["custom"]),n={};r&&iu(r)&&(n=this.lowercaseKeys(r));let o=Cw(a);return Object.assign(Object.assign({},n),o)}mapCustomParametersToCustomData(t){let{custom:r}=t,a=er(t,["custom"]);if(r&&iu(r)){let n=this.lowercaseKeys(r);return Object.assign(Object.assign({},a),{customData:Object.assign(Object.assign({},n),t.customData)})}else return t}lowercaseKeys(t){let r=Object.keys(t),a={};return r.forEach(n=>{a[n.toLowerCase()]=t[n]}),a}validateParams(t,r){let{anonymizeIp:a}=t,n=er(t,["anonymizeIp"]);return a!==void 0&&["0","false","undefined","null","{}","[]",""].indexOf(`${a}`.toLowerCase())==-1&&(n.anonymizeIp=1),(r==se.view||r==se.click||r==se.search||r==se.custom)&&(n.originLevel3=this.limit(n.originLevel3,128)),r==se.view&&(n.location=this.limit(n.location,128)),(r=="pageview"||r=="event")&&(n.referrer=this.limit(n.referrer,2048),n.location=this.limit(n.location,2048),n.page=this.limit(n.page,2048)),n}ensureAnonymousUserWhenUsingApiKey(t){let{userId:r}=t,a=er(t,["userId"]);return bw(this.options.token)&&!r?(a.userId="anonymous",a):t}setTrackingIdIfTrackingIdNotPresent(t){let{trackingId:r}=t,a=er(t,["trackingId"]);return r?t:(a.hasOwnProperty("custom")&&iu(a.custom)&&(a.custom.hasOwnProperty("context_website")||a.custom.hasOwnProperty("siteName"))&&(a.trackingId=a.custom.context_website||a.custom.siteName),a.hasOwnProperty("customData")&&iu(a.customData)&&(a.customData.hasOwnProperty("context_website")||a.customData.hasOwnProperty("siteName"))&&(a.trackingId=a.customData.context_website||a.customData.siteName),a)}limit(t,r){return typeof t!="string"?t:t.substring(0,r)}get baseUrl(){return ww(this.options.endpoint,this.options.version,this.options.isCustomEndpoint)}},$e;(function(e){e.contextChanged="contextChanged",e.expandToFullUI="expandToFullUI",e.openUserActions="openUserActions",e.showPrecedingSessions="showPrecedingSessions",e.showFollowingSessions="showFollowingSessions",e.clickViewedDocument="clickViewedDocument",e.clickPageView="clickPageView",e.createArticle="createArticle"})($e||($e={}));var v;(function(e){e.interfaceLoad="interfaceLoad",e.interfaceChange="interfaceChange",e.didyoumeanAutomatic="didyoumeanAutomatic",e.didyoumeanClick="didyoumeanClick",e.resultsSort="resultsSort",e.searchboxSubmit="searchboxSubmit",e.searchboxClear="searchboxClear",e.searchboxAsYouType="searchboxAsYouType",e.breadcrumbFacet="breadcrumbFacet",e.breadcrumbResetAll="breadcrumbResetAll",e.documentQuickview="documentQuickview",e.documentOpen="documentOpen",e.omniboxAnalytics="omniboxAnalytics",e.omniboxFromLink="omniboxFromLink",e.searchFromLink="searchFromLink",e.triggerNotify="notify",e.triggerExecute="execute",e.triggerQuery="query",e.undoTriggerQuery="undoQuery",e.triggerRedirect="redirect",e.pagerResize="pagerResize",e.pagerNumber="pagerNumber",e.pagerNext="pagerNext",e.pagerPrevious="pagerPrevious",e.pagerScrolling="pagerScrolling",e.staticFilterClearAll="staticFilterClearAll",e.staticFilterSelect="staticFilterSelect",e.staticFilterDeselect="staticFilterDeselect",e.facetClearAll="facetClearAll",e.facetSearch="facetSearch",e.facetSelect="facetSelect",e.facetSelectAll="facetSelectAll",e.facetDeselect="facetDeselect",e.facetExclude="facetExclude",e.facetUnexclude="facetUnexclude",e.facetUpdateSort="facetUpdateSort",e.facetShowMore="showMoreFacetResults",e.facetShowLess="showLessFacetResults",e.queryError="query",e.queryErrorBack="errorBack",e.queryErrorClear="errorClearQuery",e.queryErrorRetry="errorRetry",e.recommendation="recommendation",e.recommendationInterfaceLoad="recommendationInterfaceLoad",e.recommendationOpen="recommendationOpen",e.likeSmartSnippet="likeSmartSnippet",e.dislikeSmartSnippet="dislikeSmartSnippet",e.expandSmartSnippet="expandSmartSnippet",e.collapseSmartSnippet="collapseSmartSnippet",e.openSmartSnippetFeedbackModal="openSmartSnippetFeedbackModal",e.closeSmartSnippetFeedbackModal="closeSmartSnippetFeedbackModal",e.sendSmartSnippetReason="sendSmartSnippetReason",e.expandSmartSnippetSuggestion="expandSmartSnippetSuggestion",e.collapseSmartSnippetSuggestion="collapseSmartSnippetSuggestion",e.showMoreSmartSnippetSuggestion="showMoreSmartSnippetSuggestion",e.showLessSmartSnippetSuggestion="showLessSmartSnippetSuggestion",e.openSmartSnippetSource="openSmartSnippetSource",e.openSmartSnippetSuggestionSource="openSmartSnippetSuggestionSource",e.openSmartSnippetInlineLink="openSmartSnippetInlineLink",e.openSmartSnippetSuggestionInlineLink="openSmartSnippetSuggestionInlineLink",e.recentQueryClick="recentQueriesClick",e.clearRecentQueries="clearRecentQueries",e.recentResultClick="recentResultClick",e.clearRecentResults="clearRecentResults",e.noResultsBack="noResultsBack",e.showMoreFoldedResults="showMoreFoldedResults",e.showLessFoldedResults="showLessFoldedResults",e.copyToClipboard="copyToClipboard",e.caseSendEmail="Case.SendEmail",e.feedItemTextPost="FeedItem.TextPost",e.caseAttach="caseAttach",e.caseDetach="caseDetach",e.retryGeneratedAnswer="retryGeneratedAnswer",e.likeGeneratedAnswer="likeGeneratedAnswer",e.dislikeGeneratedAnswer="dislikeGeneratedAnswer",e.openGeneratedAnswerSource="openGeneratedAnswerSource",e.generatedAnswerStreamEnd="generatedAnswerStreamEnd",e.generatedAnswerSourceHover="generatedAnswerSourceHover",e.generatedAnswerCopyToClipboard="generatedAnswerCopyToClipboard",e.generatedAnswerHideAnswers="generatedAnswerHideAnswers",e.generatedAnswerShowAnswers="generatedAnswerShowAnswers",e.generatedAnswerFeedbackSubmit="generatedAnswerFeedbackSubmit",e.rephraseGeneratedAnswer="rephraseGeneratedAnswer"})(v||(v={}));var xf={[v.triggerNotify]:"queryPipelineTriggers",[v.triggerExecute]:"queryPipelineTriggers",[v.triggerQuery]:"queryPipelineTriggers",[v.triggerRedirect]:"queryPipelineTriggers",[v.queryError]:"errors",[v.queryErrorBack]:"errors",[v.queryErrorClear]:"errors",[v.queryErrorRetry]:"errors",[v.pagerNext]:"getMoreResults",[v.pagerPrevious]:"getMoreResults",[v.pagerNumber]:"getMoreResults",[v.pagerResize]:"getMoreResults",[v.pagerScrolling]:"getMoreResults",[v.facetSearch]:"facet",[v.facetShowLess]:"facet",[v.facetShowMore]:"facet",[v.recommendation]:"recommendation",[v.likeSmartSnippet]:"smartSnippet",[v.dislikeSmartSnippet]:"smartSnippet",[v.expandSmartSnippet]:"smartSnippet",[v.collapseSmartSnippet]:"smartSnippet",[v.openSmartSnippetFeedbackModal]:"smartSnippet",[v.closeSmartSnippetFeedbackModal]:"smartSnippet",[v.sendSmartSnippetReason]:"smartSnippet",[v.expandSmartSnippetSuggestion]:"smartSnippetSuggestions",[v.collapseSmartSnippetSuggestion]:"smartSnippetSuggestions",[v.showMoreSmartSnippetSuggestion]:"smartSnippetSuggestions",[v.showLessSmartSnippetSuggestion]:"smartSnippetSuggestions",[v.clearRecentQueries]:"recentQueries",[v.recentResultClick]:"recentlyClickedDocuments",[v.clearRecentResults]:"recentlyClickedDocuments",[v.showLessFoldedResults]:"folding",[v.caseDetach]:"case",[v.likeGeneratedAnswer]:"generatedAnswer",[v.dislikeGeneratedAnswer]:"generatedAnswer",[v.openGeneratedAnswerSource]:"generatedAnswer",[v.generatedAnswerStreamEnd]:"generatedAnswer",[v.generatedAnswerSourceHover]:"generatedAnswer",[v.generatedAnswerCopyToClipboard]:"generatedAnswer",[v.generatedAnswerHideAnswers]:"generatedAnswer",[v.generatedAnswerShowAnswers]:"generatedAnswer",[v.generatedAnswerFeedbackSubmit]:"generatedAnswer",[$e.expandToFullUI]:"interface",[$e.openUserActions]:"User Actions",[$e.showPrecedingSessions]:"User Actions",[$e.showFollowingSessions]:"User Actions",[$e.clickViewedDocument]:"User Actions",[$e.clickPageView]:"User Actions",[$e.createArticle]:"createArticle"},sn=class{constructor(){this.runtime=new dy,this.currentVisitorId=""}getPayload(){return Promise.resolve()}getParameters(){return Promise.resolve()}makeEvent(t){return Promise.resolve({eventType:t,payload:null,log:()=>Promise.resolve()})}sendEvent(){return Promise.resolve()}makeSearchEvent(){return this.makeEvent(se.search)}sendSearchEvent(){return Promise.resolve()}makeClickEvent(){return this.makeEvent(se.click)}sendClickEvent(){return Promise.resolve()}makeCustomEvent(){return this.makeEvent(se.custom)}sendCustomEvent(){return Promise.resolve()}makeViewEvent(){return this.makeEvent(se.view)}sendViewEvent(){return Promise.resolve()}getVisit(){return Promise.resolve({id:"",visitorId:""})}getHealth(){return Promise.resolve({status:""})}registerBeforeSendEventHook(){}registerAfterSendEventHook(){}addEventTypeMapping(){}get version(){return XS}};function Ew(e){let t="";return e.filter(r=>{let a=r!==t;return t=r,a})}function kw(e){return e.map(t=>t.replace(/;/g,""))}function my(e){let t=256,r=e.join(";");return r.length<=t?r:my(e.slice(1))}var gy=e=>{let t=kw(e),r=Ew(t);return my(r)};function hy(e){let t=typeof e.partialQueries=="string"?e.partialQueries:gy(e.partialQueries),r=typeof e.suggestions=="string"?e.suggestions:gy(e.suggestions);return Object.assign(Object.assign({},e),{partialQueries:t,suggestions:r})}var cn=class{constructor(t,r){this.opts=t,this.provider=r;let a=t.enableAnalytics===!1||Ps();this.coveoAnalyticsClient=a?new sn:new Qt(t)}disable(){this.coveoAnalyticsClient=new sn}enable(){this.coveoAnalyticsClient=new Qt(this.opts)}makeInterfaceLoad(){return this.makeSearchEvent(v.interfaceLoad)}logInterfaceLoad(){return F(this,void 0,void 0,function*(){return(yield this.makeInterfaceLoad()).log({searchUID:this.provider.getSearchUID()})})}makeRecommendationInterfaceLoad(){return this.makeSearchEvent(v.recommendationInterfaceLoad)}logRecommendationInterfaceLoad(){return F(this,void 0,void 0,function*(){return(yield this.makeRecommendationInterfaceLoad()).log({searchUID:this.provider.getSearchUID()})})}makeRecommendation(){return this.makeCustomEvent(v.recommendation)}logRecommendation(){return F(this,void 0,void 0,function*(){return(yield this.makeRecommendation()).log({searchUID:this.provider.getSearchUID()})})}makeRecommendationOpen(t,r){return this.makeClickEvent(v.recommendationOpen,t,r)}logRecommendationOpen(t,r){return F(this,void 0,void 0,function*(){return(yield this.makeRecommendationOpen(t,r)).log({searchUID:this.provider.getSearchUID()})})}makeStaticFilterClearAll(t){return this.makeSearchEvent(v.staticFilterClearAll,t)}logStaticFilterClearAll(t){return F(this,void 0,void 0,function*(){return(yield this.makeStaticFilterClearAll(t)).log({searchUID:this.provider.getSearchUID()})})}makeStaticFilterSelect(t){return this.makeSearchEvent(v.staticFilterSelect,t)}logStaticFilterSelect(t){return F(this,void 0,void 0,function*(){return(yield this.makeStaticFilterSelect(t)).log({searchUID:this.provider.getSearchUID()})})}makeStaticFilterDeselect(t){return this.makeSearchEvent(v.staticFilterDeselect,t)}logStaticFilterDeselect(t){return F(this,void 0,void 0,function*(){return(yield this.makeStaticFilterDeselect(t)).log({searchUID:this.provider.getSearchUID()})})}makeFetchMoreResults(){return this.makeCustomEvent(v.pagerScrolling,{type:"getMoreResults"})}logFetchMoreResults(){return F(this,void 0,void 0,function*(){return(yield this.makeFetchMoreResults()).log({searchUID:this.provider.getSearchUID()})})}makeInterfaceChange(t){return this.makeSearchEvent(v.interfaceChange,t)}logInterfaceChange(t){return F(this,void 0,void 0,function*(){return(yield this.makeInterfaceChange(t)).log({searchUID:this.provider.getSearchUID()})})}makeDidYouMeanAutomatic(){return this.makeSearchEvent(v.didyoumeanAutomatic)}logDidYouMeanAutomatic(){return F(this,void 0,void 0,function*(){return(yield this.makeDidYouMeanAutomatic()).log({searchUID:this.provider.getSearchUID()})})}makeDidYouMeanClick(){return this.makeSearchEvent(v.didyoumeanClick)}logDidYouMeanClick(){return F(this,void 0,void 0,function*(){return(yield this.makeDidYouMeanClick()).log({searchUID:this.provider.getSearchUID()})})}makeResultsSort(t){return this.makeSearchEvent(v.resultsSort,t)}logResultsSort(t){return F(this,void 0,void 0,function*(){return(yield this.makeResultsSort(t)).log({searchUID:this.provider.getSearchUID()})})}makeSearchboxSubmit(){return this.makeSearchEvent(v.searchboxSubmit)}logSearchboxSubmit(){return F(this,void 0,void 0,function*(){return(yield this.makeSearchboxSubmit()).log({searchUID:this.provider.getSearchUID()})})}makeSearchboxClear(){return this.makeSearchEvent(v.searchboxClear)}logSearchboxClear(){return F(this,void 0,void 0,function*(){return(yield this.makeSearchboxClear()).log({searchUID:this.provider.getSearchUID()})})}makeSearchboxAsYouType(){return this.makeSearchEvent(v.searchboxAsYouType)}logSearchboxAsYouType(){return F(this,void 0,void 0,function*(){return(yield this.makeSearchboxAsYouType()).log({searchUID:this.provider.getSearchUID()})})}makeBreadcrumbFacet(t){return this.makeSearchEvent(v.breadcrumbFacet,t)}logBreadcrumbFacet(t){return F(this,void 0,void 0,function*(){return(yield this.makeBreadcrumbFacet(t)).log({searchUID:this.provider.getSearchUID()})})}makeBreadcrumbResetAll(){return this.makeSearchEvent(v.breadcrumbResetAll)}logBreadcrumbResetAll(){return F(this,void 0,void 0,function*(){return(yield this.makeBreadcrumbResetAll()).log({searchUID:this.provider.getSearchUID()})})}makeDocumentQuickview(t,r){return this.makeClickEvent(v.documentQuickview,t,r)}logDocumentQuickview(t,r){return F(this,void 0,void 0,function*(){return(yield this.makeDocumentQuickview(t,r)).log({searchUID:this.provider.getSearchUID()})})}makeDocumentOpen(t,r){return this.makeClickEvent(v.documentOpen,t,r)}logDocumentOpen(t,r){return F(this,void 0,void 0,function*(){return(yield this.makeDocumentOpen(t,r)).log({searchUID:this.provider.getSearchUID()})})}makeOmniboxAnalytics(t){return this.makeSearchEvent(v.omniboxAnalytics,hy(t))}logOmniboxAnalytics(t){return F(this,void 0,void 0,function*(){return(yield this.makeOmniboxAnalytics(t)).log({searchUID:this.provider.getSearchUID()})})}makeOmniboxFromLink(t){return this.makeSearchEvent(v.omniboxFromLink,hy(t))}logOmniboxFromLink(t){return F(this,void 0,void 0,function*(){return(yield this.makeOmniboxFromLink(t)).log({searchUID:this.provider.getSearchUID()})})}makeSearchFromLink(){return this.makeSearchEvent(v.searchFromLink)}logSearchFromLink(){return F(this,void 0,void 0,function*(){return(yield this.makeSearchFromLink()).log({searchUID:this.provider.getSearchUID()})})}makeTriggerNotify(t){return this.makeCustomEvent(v.triggerNotify,t)}logTriggerNotify(t){return F(this,void 0,void 0,function*(){return(yield this.makeTriggerNotify(t)).log({searchUID:this.provider.getSearchUID()})})}makeTriggerExecute(t){return this.makeCustomEvent(v.triggerExecute,t)}logTriggerExecute(t){return F(this,void 0,void 0,function*(){return(yield this.makeTriggerExecute(t)).log({searchUID:this.provider.getSearchUID()})})}makeTriggerQuery(){return this.makeCustomEvent(v.triggerQuery,{query:this.provider.getSearchEventRequestPayload().queryText},"queryPipelineTriggers")}logTriggerQuery(){return F(this,void 0,void 0,function*(){return(yield this.makeTriggerQuery()).log({searchUID:this.provider.getSearchUID()})})}makeUndoTriggerQuery(t){return this.makeSearchEvent(v.undoTriggerQuery,t)}logUndoTriggerQuery(t){return F(this,void 0,void 0,function*(){return(yield this.makeUndoTriggerQuery(t)).log({searchUID:this.provider.getSearchUID()})})}makeTriggerRedirect(t){return this.makeCustomEvent(v.triggerRedirect,Object.assign(Object.assign({},t),{query:this.provider.getSearchEventRequestPayload().queryText}))}logTriggerRedirect(t){return F(this,void 0,void 0,function*(){return(yield this.makeTriggerRedirect(t)).log({searchUID:this.provider.getSearchUID()})})}makePagerResize(t){return this.makeCustomEvent(v.pagerResize,t)}logPagerResize(t){return F(this,void 0,void 0,function*(){return(yield this.makePagerResize(t)).log({searchUID:this.provider.getSearchUID()})})}makePagerNumber(t){return this.makeCustomEvent(v.pagerNumber,t)}logPagerNumber(t){return F(this,void 0,void 0,function*(){return(yield this.makePagerNumber(t)).log({searchUID:this.provider.getSearchUID()})})}makePagerNext(t){return this.makeCustomEvent(v.pagerNext,t)}logPagerNext(t){return F(this,void 0,void 0,function*(){return(yield this.makePagerNext(t)).log({searchUID:this.provider.getSearchUID()})})}makePagerPrevious(t){return this.makeCustomEvent(v.pagerPrevious,t)}logPagerPrevious(t){return F(this,void 0,void 0,function*(){return(yield this.makePagerPrevious(t)).log({searchUID:this.provider.getSearchUID()})})}makePagerScrolling(){return this.makeCustomEvent(v.pagerScrolling)}logPagerScrolling(){return F(this,void 0,void 0,function*(){return(yield this.makePagerScrolling()).log({searchUID:this.provider.getSearchUID()})})}makeFacetClearAll(t){return this.makeSearchEvent(v.facetClearAll,t)}logFacetClearAll(t){return F(this,void 0,void 0,function*(){return(yield this.makeFacetClearAll(t)).log({searchUID:this.provider.getSearchUID()})})}makeFacetSearch(t){return this.makeSearchEvent(v.facetSearch,t)}logFacetSearch(t){return F(this,void 0,void 0,function*(){return(yield this.makeFacetSearch(t)).log({searchUID:this.provider.getSearchUID()})})}makeFacetSelect(t){return this.makeSearchEvent(v.facetSelect,t)}logFacetSelect(t){return F(this,void 0,void 0,function*(){return(yield this.makeFacetSelect(t)).log({searchUID:this.provider.getSearchUID()})})}makeFacetDeselect(t){return this.makeSearchEvent(v.facetDeselect,t)}logFacetDeselect(t){return F(this,void 0,void 0,function*(){return(yield this.makeFacetDeselect(t)).log({searchUID:this.provider.getSearchUID()})})}makeFacetExclude(t){return this.makeSearchEvent(v.facetExclude,t)}logFacetExclude(t){return F(this,void 0,void 0,function*(){return(yield this.makeFacetExclude(t)).log({searchUID:this.provider.getSearchUID()})})}makeFacetUnexclude(t){return this.makeSearchEvent(v.facetUnexclude,t)}logFacetUnexclude(t){return F(this,void 0,void 0,function*(){return(yield this.makeFacetUnexclude(t)).log({searchUID:this.provider.getSearchUID()})})}makeFacetSelectAll(t){return this.makeSearchEvent(v.facetSelectAll,t)}logFacetSelectAll(t){return F(this,void 0,void 0,function*(){return(yield this.makeFacetSelectAll(t)).log({searchUID:this.provider.getSearchUID()})})}makeFacetUpdateSort(t){return this.makeSearchEvent(v.facetUpdateSort,t)}logFacetUpdateSort(t){return F(this,void 0,void 0,function*(){return(yield this.makeFacetUpdateSort(t)).log({searchUID:this.provider.getSearchUID()})})}makeFacetShowMore(t){return this.makeCustomEvent(v.facetShowMore,t)}logFacetShowMore(t){return F(this,void 0,void 0,function*(){return(yield this.makeFacetShowMore(t)).log({searchUID:this.provider.getSearchUID()})})}makeFacetShowLess(t){return this.makeCustomEvent(v.facetShowLess,t)}logFacetShowLess(t){return F(this,void 0,void 0,function*(){return(yield this.makeFacetShowLess(t)).log({searchUID:this.provider.getSearchUID()})})}makeQueryError(t){return this.makeCustomEvent(v.queryError,t)}logQueryError(t){return F(this,void 0,void 0,function*(){return(yield this.makeQueryError(t)).log({searchUID:this.provider.getSearchUID()})})}makeQueryErrorBack(){return F(this,void 0,void 0,function*(){let t=yield this.makeCustomEvent(v.queryErrorBack);return{description:t.description,log:()=>F(this,void 0,void 0,function*(){return yield t.log({searchUID:this.provider.getSearchUID()}),this.logSearchEvent(v.queryErrorBack)})}})}logQueryErrorBack(){return F(this,void 0,void 0,function*(){return(yield this.makeQueryErrorBack()).log({searchUID:this.provider.getSearchUID()})})}makeQueryErrorRetry(){return F(this,void 0,void 0,function*(){let t=yield this.makeCustomEvent(v.queryErrorRetry);return{description:t.description,log:()=>F(this,void 0,void 0,function*(){return yield t.log({searchUID:this.provider.getSearchUID()}),this.logSearchEvent(v.queryErrorRetry)})}})}logQueryErrorRetry(){return F(this,void 0,void 0,function*(){return(yield this.makeQueryErrorRetry()).log({searchUID:this.provider.getSearchUID()})})}makeQueryErrorClear(){return F(this,void 0,void 0,function*(){let t=yield this.makeCustomEvent(v.queryErrorClear);return{description:t.description,log:()=>F(this,void 0,void 0,function*(){return yield t.log({searchUID:this.provider.getSearchUID()}),this.logSearchEvent(v.queryErrorClear)})}})}logQueryErrorClear(){return F(this,void 0,void 0,function*(){return(yield this.makeQueryErrorClear()).log({searchUID:this.provider.getSearchUID()})})}makeLikeSmartSnippet(){return this.makeCustomEvent(v.likeSmartSnippet)}logLikeSmartSnippet(){return F(this,void 0,void 0,function*(){return(yield this.makeLikeSmartSnippet()).log({searchUID:this.provider.getSearchUID()})})}makeDislikeSmartSnippet(){return this.makeCustomEvent(v.dislikeSmartSnippet)}logDislikeSmartSnippet(){return F(this,void 0,void 0,function*(){return(yield this.makeDislikeSmartSnippet()).log({searchUID:this.provider.getSearchUID()})})}makeExpandSmartSnippet(){return this.makeCustomEvent(v.expandSmartSnippet)}logExpandSmartSnippet(){return F(this,void 0,void 0,function*(){return(yield this.makeExpandSmartSnippet()).log({searchUID:this.provider.getSearchUID()})})}makeCollapseSmartSnippet(){return this.makeCustomEvent(v.collapseSmartSnippet)}logCollapseSmartSnippet(){return F(this,void 0,void 0,function*(){return(yield this.makeCollapseSmartSnippet()).log({searchUID:this.provider.getSearchUID()})})}makeOpenSmartSnippetFeedbackModal(){return this.makeCustomEvent(v.openSmartSnippetFeedbackModal)}logOpenSmartSnippetFeedbackModal(){return F(this,void 0,void 0,function*(){return(yield this.makeOpenSmartSnippetFeedbackModal()).log({searchUID:this.provider.getSearchUID()})})}makeCloseSmartSnippetFeedbackModal(){return this.makeCustomEvent(v.closeSmartSnippetFeedbackModal)}logCloseSmartSnippetFeedbackModal(){return F(this,void 0,void 0,function*(){return(yield this.makeCloseSmartSnippetFeedbackModal()).log({searchUID:this.provider.getSearchUID()})})}makeSmartSnippetFeedbackReason(t,r){return this.makeCustomEvent(v.sendSmartSnippetReason,{reason:t,details:r})}logSmartSnippetFeedbackReason(t,r){return F(this,void 0,void 0,function*(){return(yield this.makeSmartSnippetFeedbackReason(t,r)).log({searchUID:this.provider.getSearchUID()})})}makeExpandSmartSnippetSuggestion(t){return this.makeCustomEvent(v.expandSmartSnippetSuggestion,"documentId"in t?t:{documentId:t})}logExpandSmartSnippetSuggestion(t){return F(this,void 0,void 0,function*(){return(yield this.makeExpandSmartSnippetSuggestion(t)).log({searchUID:this.provider.getSearchUID()})})}makeCollapseSmartSnippetSuggestion(t){return this.makeCustomEvent(v.collapseSmartSnippetSuggestion,"documentId"in t?t:{documentId:t})}logCollapseSmartSnippetSuggestion(t){return F(this,void 0,void 0,function*(){return(yield this.makeCollapseSmartSnippetSuggestion(t)).log({searchUID:this.provider.getSearchUID()})})}makeShowMoreSmartSnippetSuggestion(t){return this.makeCustomEvent(v.showMoreSmartSnippetSuggestion,t)}logShowMoreSmartSnippetSuggestion(t){return F(this,void 0,void 0,function*(){return(yield this.makeShowMoreSmartSnippetSuggestion(t)).log({searchUID:this.provider.getSearchUID()})})}makeShowLessSmartSnippetSuggestion(t){return this.makeCustomEvent(v.showLessSmartSnippetSuggestion,t)}logShowLessSmartSnippetSuggestion(t){return F(this,void 0,void 0,function*(){return(yield this.makeShowLessSmartSnippetSuggestion(t)).log({searchUID:this.provider.getSearchUID()})})}makeOpenSmartSnippetSource(t,r){return this.makeClickEvent(v.openSmartSnippetSource,t,r)}logOpenSmartSnippetSource(t,r){return F(this,void 0,void 0,function*(){return(yield this.makeOpenSmartSnippetSource(t,r)).log({searchUID:this.provider.getSearchUID()})})}makeOpenSmartSnippetSuggestionSource(t,r){return this.makeClickEvent(v.openSmartSnippetSuggestionSource,t,{contentIDKey:r.documentId.contentIdKey,contentIDValue:r.documentId.contentIdValue},r)}makeCopyToClipboard(t,r){return this.makeClickEvent(v.copyToClipboard,t,r)}logCopyToClipboard(t,r){return F(this,void 0,void 0,function*(){return(yield this.makeCopyToClipboard(t,r)).log({searchUID:this.provider.getSearchUID()})})}logOpenSmartSnippetSuggestionSource(t,r){return F(this,void 0,void 0,function*(){return(yield this.makeOpenSmartSnippetSuggestionSource(t,r)).log({searchUID:this.provider.getSearchUID()})})}makeOpenSmartSnippetInlineLink(t,r){return this.makeClickEvent(v.openSmartSnippetInlineLink,t,{contentIDKey:r.contentIDKey,contentIDValue:r.contentIDValue},r)}logOpenSmartSnippetInlineLink(t,r){return F(this,void 0,void 0,function*(){return(yield this.makeOpenSmartSnippetInlineLink(t,r)).log({searchUID:this.provider.getSearchUID()})})}makeOpenSmartSnippetSuggestionInlineLink(t,r){return this.makeClickEvent(v.openSmartSnippetSuggestionInlineLink,t,{contentIDKey:r.documentId.contentIdKey,contentIDValue:r.documentId.contentIdValue},r)}logOpenSmartSnippetSuggestionInlineLink(t,r){return F(this,void 0,void 0,function*(){return(yield this.makeOpenSmartSnippetSuggestionInlineLink(t,r)).log({searchUID:this.provider.getSearchUID()})})}makeRecentQueryClick(){return this.makeSearchEvent(v.recentQueryClick)}logRecentQueryClick(){return F(this,void 0,void 0,function*(){return(yield this.makeRecentQueryClick()).log({searchUID:this.provider.getSearchUID()})})}makeClearRecentQueries(){return this.makeCustomEvent(v.clearRecentQueries)}logClearRecentQueries(){return F(this,void 0,void 0,function*(){return(yield this.makeClearRecentQueries()).log({searchUID:this.provider.getSearchUID()})})}makeRecentResultClick(t,r){return this.makeCustomEvent(v.recentResultClick,{info:t,identifier:r})}logRecentResultClick(t,r){return F(this,void 0,void 0,function*(){return(yield this.makeRecentResultClick(t,r)).log({searchUID:this.provider.getSearchUID()})})}makeClearRecentResults(){return this.makeCustomEvent(v.clearRecentResults)}logClearRecentResults(){return F(this,void 0,void 0,function*(){return(yield this.makeClearRecentResults()).log({searchUID:this.provider.getSearchUID()})})}makeNoResultsBack(){return this.makeSearchEvent(v.noResultsBack)}logNoResultsBack(){return F(this,void 0,void 0,function*(){return(yield this.makeNoResultsBack()).log({searchUID:this.provider.getSearchUID()})})}makeShowMoreFoldedResults(t,r){return this.makeClickEvent(v.showMoreFoldedResults,t,r)}logShowMoreFoldedResults(t,r){return F(this,void 0,void 0,function*(){return(yield this.makeShowMoreFoldedResults(t,r)).log({searchUID:this.provider.getSearchUID()})})}makeShowLessFoldedResults(){return this.makeCustomEvent(v.showLessFoldedResults)}logShowLessFoldedResults(){return F(this,void 0,void 0,function*(){return(yield this.makeShowLessFoldedResults()).log({searchUID:this.provider.getSearchUID()})})}makeEventDescription(t,r){var a;return{actionCause:r,customData:(a=t.payload)===null||a===void 0?void 0:a.customData}}makeCustomEvent(t,r,a=xf[t]){return F(this,void 0,void 0,function*(){this.coveoAnalyticsClient.getParameters;let n=Object.assign(Object.assign({},this.provider.getBaseMetadata()),r),o=Object.assign(Object.assign({},yield this.getBaseEventRequest(n)),{eventType:a,eventValue:t}),i=yield this.coveoAnalyticsClient.makeCustomEvent(o);return{description:this.makeEventDescription(i,t),log:({searchUID:s})=>i.log({lastSearchQueryUid:s})}})}logCustomEvent(t,r,a=xf[t]){return F(this,void 0,void 0,function*(){return(yield this.makeCustomEvent(t,r,a)).log({searchUID:this.provider.getSearchUID()})})}makeCustomEventWithType(t,r,a){return F(this,void 0,void 0,function*(){let n=Object.assign(Object.assign({},this.provider.getBaseMetadata()),a),o=Object.assign(Object.assign({},yield this.getBaseEventRequest(n)),{eventType:r,eventValue:t}),i=yield this.coveoAnalyticsClient.makeCustomEvent(o);return{description:this.makeEventDescription(i,t),log:({searchUID:s})=>i.log({lastSearchQueryUid:s})}})}logCustomEventWithType(t,r,a){return F(this,void 0,void 0,function*(){return(yield this.makeCustomEventWithType(t,r,a)).log({searchUID:this.provider.getSearchUID()})})}logSearchEvent(t,r){return F(this,void 0,void 0,function*(){return(yield this.makeSearchEvent(t,r)).log({searchUID:this.provider.getSearchUID()})})}makeSearchEvent(t,r){return F(this,void 0,void 0,function*(){let a=yield this.getBaseSearchEventRequest(t,r),n=yield this.coveoAnalyticsClient.makeSearchEvent(a);return{description:this.makeEventDescription(n,t),log:({searchUID:o})=>n.log({searchQueryUid:o})}})}makeClickEvent(t,r,a,n){return F(this,void 0,void 0,function*(){let o=Object.assign(Object.assign(Object.assign({},r),yield this.getBaseEventRequest(Object.assign(Object.assign({},a),n))),{queryPipeline:this.provider.getPipeline(),actionCause:t}),i=yield this.coveoAnalyticsClient.makeClickEvent(o);return{description:this.makeEventDescription(i,t),log:({searchUID:s})=>i.log({searchQueryUid:s})}})}logClickEvent(t,r,a,n){return F(this,void 0,void 0,function*(){return(yield this.makeClickEvent(t,r,a,n)).log({searchUID:this.provider.getSearchUID()})})}getBaseSearchEventRequest(t,r){var a,n;return F(this,void 0,void 0,function*(){return Object.assign(Object.assign(Object.assign({},yield this.getBaseEventRequest(Object.assign(Object.assign({},r),(n=(a=this.provider).getGeneratedAnswerMetadata)===null||n===void 0?void 0:n.call(a)))),this.provider.getSearchEventRequestPayload()),{queryPipeline:this.provider.getPipeline(),actionCause:t})})}getBaseEventRequest(t){return F(this,void 0,void 0,function*(){let r=Object.assign(Object.assign({},this.provider.getBaseMetadata()),t);return Object.assign(Object.assign(Object.assign({},this.getOrigins()),this.getSplitTestRun()),{customData:r,language:this.provider.getLanguage(),facetState:this.provider.getFacetState?this.provider.getFacetState():[],anonymous:this.provider.getIsAnonymous(),clientId:yield this.getClientId()})})}getOrigins(){var t,r;return{originContext:(r=(t=this.provider).getOriginContext)===null||r===void 0?void 0:r.call(t),originLevel1:this.provider.getOriginLevel1(),originLevel2:this.provider.getOriginLevel2(),originLevel3:this.provider.getOriginLevel3()}}getClientId(){return this.coveoAnalyticsClient instanceof Qt?this.coveoAnalyticsClient.getCurrentVisitorId():void 0}getSplitTestRun(){let t=this.provider.getSplitTestRunName?this.provider.getSplitTestRunName():"",r=this.provider.getSplitTestRunVersion?this.provider.getSplitTestRunVersion():"";return Object.assign(Object.assign({},t&&{splitTestRunName:t}),r&&{splitTestRunVersion:r})}makeLikeGeneratedAnswer(t){return this.makeCustomEvent(v.likeGeneratedAnswer,t)}logLikeGeneratedAnswer(t){return F(this,void 0,void 0,function*(){return(yield this.makeLikeGeneratedAnswer(t)).log({searchUID:this.provider.getSearchUID()})})}makeDislikeGeneratedAnswer(t){return this.makeCustomEvent(v.dislikeGeneratedAnswer,t)}logDislikeGeneratedAnswer(t){return F(this,void 0,void 0,function*(){return(yield this.makeDislikeGeneratedAnswer(t)).log({searchUID:this.provider.getSearchUID()})})}makeOpenGeneratedAnswerSource(t){return this.makeCustomEvent(v.openGeneratedAnswerSource,t)}logOpenGeneratedAnswerSource(t){return F(this,void 0,void 0,function*(){return(yield this.makeOpenGeneratedAnswerSource(t)).log({searchUID:this.provider.getSearchUID()})})}makeGeneratedAnswerSourceHover(t){return this.makeCustomEvent(v.generatedAnswerSourceHover,t)}logGeneratedAnswerSourceHover(t){return F(this,void 0,void 0,function*(){return(yield this.makeGeneratedAnswerSourceHover(t)).log({searchUID:this.provider.getSearchUID()})})}makeGeneratedAnswerCopyToClipboard(t){return this.makeCustomEvent(v.generatedAnswerCopyToClipboard,t)}logGeneratedAnswerCopyToClipboard(t){return F(this,void 0,void 0,function*(){return(yield this.makeGeneratedAnswerCopyToClipboard(t)).log({searchUID:this.provider.getSearchUID()})})}makeGeneratedAnswerHideAnswers(t){return this.makeCustomEvent(v.generatedAnswerHideAnswers,t)}logGeneratedAnswerHideAnswers(t){return F(this,void 0,void 0,function*(){return(yield this.makeGeneratedAnswerHideAnswers(t)).log({searchUID:this.provider.getSearchUID()})})}makeGeneratedAnswerShowAnswers(t){return this.makeCustomEvent(v.generatedAnswerShowAnswers,t)}logGeneratedAnswerShowAnswers(t){return F(this,void 0,void 0,function*(){return(yield this.makeGeneratedAnswerShowAnswers(t)).log({searchUID:this.provider.getSearchUID()})})}makeGeneratedAnswerFeedbackSubmit(t){return this.makeCustomEvent(v.generatedAnswerFeedbackSubmit,t)}logGeneratedAnswerFeedbackSubmit(t){return F(this,void 0,void 0,function*(){return(yield this.makeGeneratedAnswerFeedbackSubmit(t)).log({searchUID:this.provider.getSearchUID()})})}makeRephraseGeneratedAnswer(t){return this.makeSearchEvent(v.rephraseGeneratedAnswer,t)}logRephraseGeneratedAnswer(t){return F(this,void 0,void 0,function*(){return(yield this.makeRephraseGeneratedAnswer(t)).log({searchUID:this.provider.getSearchUID()})})}makeRetryGeneratedAnswer(){return this.makeSearchEvent(v.retryGeneratedAnswer)}logRetryGeneratedAnswer(){return F(this,void 0,void 0,function*(){return(yield this.makeRetryGeneratedAnswer()).log({searchUID:this.provider.getSearchUID()})})}makeGeneratedAnswerStreamEnd(t){return this.makeCustomEvent(v.generatedAnswerStreamEnd,t)}logGeneratedAnswerStreamEnd(t){return F(this,void 0,void 0,function*(){return(yield this.makeGeneratedAnswerStreamEnd(t)).log({searchUID:this.provider.getSearchUID()})})}},cu=Object.assign({},Rs),Sy=Object.keys(cu).map(e=>cu[e]),ws=class extends ey{constructor({client:t,uuidGenerator:r=on}){super({client:t,uuidGenerator:r});this.ticket={}}getApi(t){let r=super.getApi(t);if(r!==null)return r;switch(t){case"setTicket":return this.setTicket;default:return null}}addHooks(){this.addHooksForEvent(),this.addHooksForPageView(),this.addHooksForSVCEvents()}setTicket(t){this.ticket=t}clearPluginData(){this.ticket={}}addHooksForSVCEvents(){this.client.registerBeforeSendEventHook((t,...[r])=>Sy.indexOf(t)!==-1?this.addSVCDataToPayload(t,r):r),this.client.registerAfterSendEventHook((t,...[r])=>(Sy.indexOf(t)!==-1&&this.updateLocationInformation(t,r),r))}addHooksForPageView(){this.client.addEventTypeMapping(cu.pageview,{newEventType:se.collect,variableLengthArgumentsNames:["page"],addVisitorIdParameter:!0,usesMeasurementProtocol:!0})}addHooksForEvent(){this.client.addEventTypeMapping(cu.event,{newEventType:se.collect,variableLengthArgumentsNames:["eventCategory","eventAction","eventLabel","eventValue"],addVisitorIdParameter:!0,usesMeasurementProtocol:!0})}addSVCDataToPayload(t,r){var a;let n=Object.assign(Object.assign(Object.assign(Object.assign({},this.getLocationInformation(t,r)),this.getDefaultContextInformation(t)),this.action?{svcAction:this.action}:{}),Object.keys((a=this.actionData)!==null&&a!==void 0?a:{}).length>0?{svcActionData:this.actionData}:{}),o=this.getTicketPayload();return this.clearData(),Object.assign(Object.assign(Object.assign({},o),n),r)}getTicketPayload(){return MP(this.ticket)}};ws.Id="svc";var uu;(function(e){e.click="click",e.flowStart="flowStart"})(uu||(uu={}));var Bt;(function(e){e.enterInterface="ticket_create_start",e.fieldUpdate="ticket_field_update",e.fieldSuggestionClick="ticket_classification_click",e.suggestionClick="suggestion_click",e.suggestionRate="suggestion_rate",e.nextCaseStep="ticket_next_stage",e.caseCancelled="ticket_cancel",e.caseSolved="ticket_cancel",e.caseCreated="ticket_create"})(Bt||(Bt={}));var lu;(function(e){e.quit="Quit",e.solved="Solved"})(lu||(lu={}));var vf=class{constructor(t,r){var a;this.options=t,this.provider=r;let n=((a=t.enableAnalytics)!==null&&a!==void 0?a:!0)&&!Ps();this.coveoAnalyticsClient=n?new Qt(t):new sn,this.svc=new ws({client:this.coveoAnalyticsClient})}disable(){this.coveoAnalyticsClient=new sn,this.svc=new ws({client:this.coveoAnalyticsClient})}enable(){this.coveoAnalyticsClient=new Qt(this.options),this.svc=new ws({client:this.coveoAnalyticsClient})}logEnterInterface(t){return this.svc.setAction(Bt.enterInterface),this.svc.setTicket(t.ticket),this.sendFlowStartEvent()}logUpdateCaseField(t){return this.svc.setAction(Bt.fieldUpdate,{fieldName:t.fieldName}),this.svc.setTicket(t.ticket),this.sendClickEvent()}logSelectFieldSuggestion(t){return this.svc.setAction(Bt.fieldSuggestionClick,t.suggestion),this.svc.setTicket(t.ticket),this.sendClickEvent()}logSelectDocumentSuggestion(t){return this.svc.setAction(Bt.suggestionClick,t.suggestion),this.svc.setTicket(t.ticket),this.sendClickEvent()}logRateDocumentSuggestion(t){return this.svc.setAction(Bt.suggestionRate,Object.assign({rate:t.rating},t.suggestion)),this.svc.setTicket(t.ticket),this.sendClickEvent()}logMoveToNextCaseStep(t){return this.svc.setAction(Bt.nextCaseStep,{stage:t==null?void 0:t.stage}),this.svc.setTicket(t.ticket),this.sendClickEvent()}logCaseCancelled(t){return this.svc.setAction(Bt.caseCancelled,{reason:lu.quit}),this.svc.setTicket(t.ticket),this.sendClickEvent()}logCaseSolved(t){return this.svc.setAction(Bt.caseSolved,{reason:lu.solved}),this.svc.setTicket(t.ticket),this.sendClickEvent()}logCaseCreated(t){return this.svc.setAction(Bt.caseCreated),this.svc.setTicket(t.ticket),this.sendClickEvent()}sendFlowStartEvent(){return this.coveoAnalyticsClient.sendEvent("event","svc",uu.flowStart,this.provider?{searchHub:this.provider.getOriginLevel1()}:null)}sendClickEvent(){return this.coveoAnalyticsClient.sendEvent("event","svc",uu.click,this.provider?{searchHub:this.provider.getOriginLevel1()}:null)}},Ow=e=>{let t={};return e.caseContext&&Object.keys(e.caseContext).forEach(r=>{var a;let n=(a=e.caseContext)===null||a===void 0?void 0:a[r];if(n){let o=`context_${r}`;t[o]=n}}),t},G=(e,t=!0)=>{let{caseContext:r,caseId:a,caseNumber:n}=e,o=er(e,["caseContext","caseId","caseNumber"]),i=Ow(e);return Object.assign(Object.assign(Object.assign({CaseId:a,CaseNumber:n},o),!!i.context_Case_Subject&&{CaseSubject:i.context_Case_Subject}),t&&i)},Af=class{constructor(t,r){this.opts=t,this.provider=r;let a=t.enableAnalytics===!1||Ps();this.coveoAnalyticsClient=a?new sn:new Qt(t)}disable(){this.coveoAnalyticsClient=new sn}enable(){this.coveoAnalyticsClient=new Qt(this.opts)}logInterfaceLoad(t){if(t){let r=G(t);return this.logSearchEvent(v.interfaceLoad,r)}return this.logSearchEvent(v.interfaceLoad)}logInterfaceChange(t){let r=G(t);return this.logSearchEvent(v.interfaceChange,r)}logStaticFilterDeselect(t){let r=G(t);return this.logSearchEvent(v.staticFilterDeselect,r)}logFetchMoreResults(t){if(t){let r=G(t);return this.logCustomEvent(v.pagerScrolling,Object.assign(Object.assign({},r),{type:"getMoreResults"}))}return this.logCustomEvent(v.pagerScrolling,{type:"getMoreResults"})}logBreadcrumbFacet(t){let r=G(t);return this.logSearchEvent(v.breadcrumbFacet,r)}logBreadcrumbResetAll(t){if(t){let r=G(t);return this.logSearchEvent(v.breadcrumbResetAll,r)}return this.logSearchEvent(v.breadcrumbResetAll)}logFacetSelect(t){let r=G(t);return this.logSearchEvent(v.facetSelect,r)}logFacetExclude(t){let r=G(t);return this.logSearchEvent(v.facetExclude,r)}logFacetDeselect(t){let r=G(t);return this.logSearchEvent(v.facetDeselect,r)}logFacetUpdateSort(t){let r=G(t);return this.logSearchEvent(v.facetUpdateSort,r)}logFacetClearAll(t){let r=G(t);return this.logSearchEvent(v.facetClearAll,r)}logFacetShowMore(t){let r=G(t,!1);return this.logCustomEvent(v.facetShowMore,r)}logFacetShowLess(t){let r=G(t,!1);return this.logCustomEvent(v.facetShowLess,r)}logQueryError(t){let r=G(t,!1);return this.logCustomEvent(v.queryError,r)}logPagerNumber(t){let r=G(t,!1);return this.logCustomEvent(v.pagerNumber,r)}logPagerNext(t){let r=G(t,!1);return this.logCustomEvent(v.pagerNext,r)}logPagerPrevious(t){let r=G(t,!1);return this.logCustomEvent(v.pagerPrevious,r)}logDidYouMeanAutomatic(t){if(t){let r=G(t);return this.logSearchEvent(v.didyoumeanAutomatic,r)}return this.logSearchEvent(v.didyoumeanAutomatic)}logDidYouMeanClick(t){if(t){let r=G(t);return this.logSearchEvent(v.didyoumeanClick,r)}return this.logSearchEvent(v.didyoumeanClick)}logResultsSort(t){let r=G(t);return this.logSearchEvent(v.resultsSort,r)}logSearchboxSubmit(t){if(t){let r=G(t);return this.logSearchEvent(v.searchboxSubmit,r)}return this.logSearchEvent(v.searchboxSubmit)}logContextChanged(t){let r=G(t);return this.logSearchEvent($e.contextChanged,r)}logExpandToFullUI(t){let r=G(t);return this.logCustomEvent($e.expandToFullUI,r)}logOpenUserActions(t){let r=G(t,!1);return this.logCustomEvent($e.openUserActions,r)}logShowPrecedingSessions(t){let r=G(t,!1);return this.logCustomEvent($e.showPrecedingSessions,r)}logShowFollowingSessions(t){let r=G(t,!1);return this.logCustomEvent($e.showFollowingSessions,r)}logViewedDocumentClick(t,r){return this.logCustomEvent($e.clickViewedDocument,Object.assign(Object.assign({},G(r,!1)),{document:t}))}logPageViewClick(t,r){return this.logCustomEvent($e.clickPageView,Object.assign(Object.assign({},G(r,!1)),{pageView:t}))}logCreateArticle(t,r){return this.logCustomEvent($e.createArticle,r?Object.assign(Object.assign({},G(r,!1)),t):t)}logDocumentOpen(t,r,a){return this.logClickEvent(v.documentOpen,t,r,a?G(a,!1):void 0)}logCopyToClipboard(t,r,a){return this.logClickEvent(v.copyToClipboard,t,r,a?G(a,!1):void 0)}logCaseSendEmail(t,r,a){return this.logClickEvent(v.caseSendEmail,t,r,a?G(a,!1):void 0)}logFeedItemTextPost(t,r,a){return this.logClickEvent(v.feedItemTextPost,t,r,a?G(a,!1):void 0)}logDocumentQuickview(t,r,a){let n={documentTitle:t.documentTitle,documentURL:t.documentUrl};return this.logClickEvent(v.documentQuickview,t,r,a?Object.assign(Object.assign({},G(a,!1)),n):n)}logCaseAttach(t,r,a){let n={documentTitle:t.documentTitle,documentURL:t.documentUrl,resultUriHash:t.documentUriHash};return this.logClickEvent(v.caseAttach,t,r,a?Object.assign(Object.assign({},G(a,!1)),n):n)}logCaseDetach(t,r){return this.logCustomEvent(v.caseDetach,r?Object.assign(Object.assign({},G(r,!1)),{resultUriHash:t}):{resultUriHash:t})}logLikeSmartSnippet(t){return this.logCustomEvent(v.likeSmartSnippet,t?G(t,!1):void 0)}logDislikeSmartSnippet(t){return this.logCustomEvent(v.dislikeSmartSnippet,t?G(t,!1):void 0)}logExpandSmartSnippet(t){return this.logCustomEvent(v.expandSmartSnippet,t?G(t,!1):void 0)}logCollapseSmartSnippet(t){return this.logCustomEvent(v.collapseSmartSnippet,t?G(t,!1):void 0)}logOpenSmartSnippetFeedbackModal(t){return this.logCustomEvent(v.openSmartSnippetFeedbackModal,t?G(t,!1):void 0)}logCloseSmartSnippetFeedbackModal(t){return this.logCustomEvent(v.closeSmartSnippetFeedbackModal,t?G(t,!1):void 0)}logSmartSnippetFeedbackReason(t,r,a){return this.logCustomEvent(v.sendSmartSnippetReason,a?Object.assign(Object.assign({},G(a,!1)),{reason:t,details:r}):{reason:t,details:r})}logExpandSmartSnippetSuggestion(t,r){let a="documentId"in t?t:{documentId:t};return this.logCustomEvent(v.expandSmartSnippetSuggestion,r?Object.assign(Object.assign({},G(r,!1)),a):a)}logCollapseSmartSnippetSuggestion(t,r){let a="documentId"in t?t:{documentId:t};return this.logCustomEvent(v.collapseSmartSnippetSuggestion,r?Object.assign(Object.assign({},G(r,!1)),a):a)}logOpenSmartSnippetSource(t,r,a){return this.logClickEvent(v.openSmartSnippetSource,t,r,a?G(a,!1):void 0)}logOpenSmartSnippetSuggestionSource(t,r,a){return this.logClickEvent(v.openSmartSnippetSuggestionSource,t,{contentIDKey:r.documentId.contentIdKey,contentIDValue:r.documentId.contentIdValue},a?Object.assign(Object.assign({},G(a,!1)),r):r)}logOpenSmartSnippetInlineLink(t,r,a){return this.logClickEvent(v.openSmartSnippetInlineLink,t,{contentIDKey:r.contentIDKey,contentIDValue:r.contentIDValue},a?Object.assign(Object.assign({},G(a,!1)),r):r)}logOpenSmartSnippetSuggestionInlineLink(t,r,a){return this.logClickEvent(v.openSmartSnippetSuggestionInlineLink,t,{contentIDKey:r.documentId.contentIdKey,contentIDValue:r.documentId.contentIdValue},a?Object.assign(Object.assign({},G(a,!1)),r):r)}logLikeGeneratedAnswer(t,r){return this.logCustomEvent(v.likeGeneratedAnswer,r?Object.assign(Object.assign({},G(r,!1)),t):t)}logDislikeGeneratedAnswer(t,r){return this.logCustomEvent(v.dislikeGeneratedAnswer,r?Object.assign(Object.assign({},G(r,!1)),t):t)}logOpenGeneratedAnswerSource(t,r){return this.logCustomEvent(v.openGeneratedAnswerSource,r?Object.assign(Object.assign({},G(r,!1)),t):t)}logGeneratedAnswerSourceHover(t,r){return this.logCustomEvent(v.generatedAnswerSourceHover,r?Object.assign(Object.assign({},G(r,!1)),t):t)}logGeneratedAnswerCopyToClipboard(t,r){return this.logCustomEvent(v.generatedAnswerCopyToClipboard,r?Object.assign(Object.assign({},G(r,!1)),t):t)}logGeneratedAnswerHideAnswers(t,r){return this.logCustomEvent(v.generatedAnswerHideAnswers,r?Object.assign(Object.assign({},G(r,!1)),t):t)}logGeneratedAnswerShowAnswers(t,r){return this.logCustomEvent(v.generatedAnswerShowAnswers,r?Object.assign(Object.assign({},G(r,!1)),t):t)}logGeneratedAnswerFeedbackSubmit(t,r){return this.logCustomEvent(v.generatedAnswerFeedbackSubmit,r?Object.assign(Object.assign({},G(r,!1)),t):t)}logRephraseGeneratedAnswer(t,r){return this.logSearchEvent(v.rephraseGeneratedAnswer,r?Object.assign(Object.assign({},G(r,!1)),t):t)}logRetryGeneratedAnswer(t){return this.logSearchEvent(v.retryGeneratedAnswer,t?Object.assign({},G(t,!1)):{})}logGeneratedAnswerStreamEnd(t,r){return this.logCustomEvent(v.generatedAnswerStreamEnd,r?Object.assign(Object.assign({},G(r,!1)),t):t)}logCustomEvent(t,r){return F(this,void 0,void 0,function*(){let a=Object.assign(Object.assign({},this.provider.getBaseMetadata()),r),n=Object.assign(Object.assign({},yield this.getBaseCustomEventRequest(a)),{eventType:xf[t],eventValue:t});return this.coveoAnalyticsClient.sendCustomEvent(n)})}logSearchEvent(t,r){return F(this,void 0,void 0,function*(){return this.coveoAnalyticsClient.sendSearchEvent(yield this.getBaseSearchEventRequest(t,r))})}logClickEvent(t,r,a,n){return F(this,void 0,void 0,function*(){let o=Object.assign(Object.assign(Object.assign({},r),yield this.getBaseEventRequest(Object.assign(Object.assign({},a),n))),{searchQueryUid:this.provider.getSearchUID(),queryPipeline:this.provider.getPipeline(),actionCause:t});return this.coveoAnalyticsClient.sendClickEvent(o)})}logShowMoreFoldedResults(t,r,a){return F(this,void 0,void 0,function*(){return this.logClickEvent(v.showMoreFoldedResults,t,r,a?G(a,!1):void 0)})}logShowLessFoldedResults(t){return F(this,void 0,void 0,function*(){return this.logCustomEvent(v.showLessFoldedResults,t?G(t,!1):void 0)})}getBaseCustomEventRequest(t){return F(this,void 0,void 0,function*(){return Object.assign(Object.assign({},yield this.getBaseEventRequest(t)),{lastSearchQueryUid:this.provider.getSearchUID()})})}getBaseSearchEventRequest(t,r){var a,n;return F(this,void 0,void 0,function*(){return Object.assign(Object.assign(Object.assign({},yield this.getBaseEventRequest(Object.assign(Object.assign({},r),(n=(a=this.provider).getGeneratedAnswerMetadata)===null||n===void 0?void 0:n.call(a)))),this.provider.getSearchEventRequestPayload()),{searchQueryUid:this.provider.getSearchUID(),queryPipeline:this.provider.getPipeline(),actionCause:t})})}getBaseEventRequest(t){return F(this,void 0,void 0,function*(){let r=Object.assign(Object.assign({},this.provider.getBaseMetadata()),t);return Object.assign(Object.assign({},this.getOrigins()),{customData:r,language:this.provider.getLanguage(),facetState:this.provider.getFacetState?this.provider.getFacetState():[],anonymous:this.provider.getIsAnonymous(),clientId:yield this.getClientId()})})}getOrigins(){var t,r;return{originContext:(r=(t=this.provider).getOriginContext)===null||r===void 0?void 0:r.call(t),originLevel1:this.provider.getOriginLevel1(),originLevel2:this.provider.getOriginLevel2(),originLevel3:this.provider.getOriginLevel3()}}getClientId(){return this.coveoAnalyticsClient instanceof Qt?this.coveoAnalyticsClient.getCurrentVisitorId():void 0}};var rr=(e,t)=>{let r=a=>a.facetId===t;if("productListing"in e&&e.productListing&&"facets"in e.productListing&&"results"in e.productListing.facets)return e.productListing.facets.results.find(r);if("search"in e&&e.search)return e.search.response.facets.find(r)},bf=(e,t)=>{var r;return(r=e.facetSet[t])==null?void 0:r.request};function qw(e,t){return!!t&&t.facetId in e.facetSet}var Is=(e,t)=>{let r=rr(e,t);if(qw(e,r))return r},Tw=(e,t)=>{let r=Is(e,t);return r?r.values.filter(a=>a.state==="selected"):[]},yy=(e,t)=>{let r=Is(e,t);return r?r.values.filter(a=>a.state!=="idle"):[]},ar=e=>"productListing"in e?e.productListing.isLoading:e.search.isLoading;function Cy(e){if(!e)return{parents:[],values:[]};let t=[],r=e;for(;r.length&&r[0].children.length;)t=[...t,...r],r=r[0].children;let a=r.find(n=>n.state==="selected");return a&&(t=[...t,a],r=[]),{parents:t,values:r}}function gt(e){let{activeValue:t,ancestryMap:r}=Dw(e);return t?Vw(t,r):[]}function Dw(e){let t=[...e],r=new Map;for(;t.length>0;){let a=t.shift();if(a.state==="selected")return{activeValue:a,ancestryMap:r};if(r)for(let n of a.children)r.set(n,a);t.unshift(...a.children)}return{}}function Vw(e,t){let r=[];if(!e)return[];let a=e;do r.unshift(a),a=t.get(a);while(a);return r}function Mw(e,t){return!!t&&t.facetId in e.categoryFacetSet}var Ff=(e,t)=>{let r=rr(e,t);if(Mw(e,r))return r},Rf=(e,t)=>{var r;return(r=e.categoryFacetSet[t])==null?void 0:r.request},xy=(e,t)=>{var a;let r=Ff(e,t);return gt((a=r==null?void 0:r.values)!=null?a:[])},Pf=(e,t)=>{var a;let r=Rf(e,t);return gt((a=r==null?void 0:r.currentValues)!=null?a:[])};var to=(e,t)=>{let r=Fy(t,e),a=r?r.field:"",n=wf(a,e);return{facetId:e,facetField:a,facetTitle:n}};function ro(e,t){let{facetId:r,facetValue:a}=e,n=to(r,t),o=Ry(t,r);return{...n,facetValue:o==="hierarchical"?by(t,r):a}}function ct(e){var t,r,a,n,o;return{facetSet:(t=e.facetSet)!=null?t:Kt(),categoryFacetSet:(r=e.categoryFacetSet)!=null?r:Yt(),dateFacetSet:(a=e.dateFacetSet)!=null?a:Jt(),numericFacetSet:(n=e.numericFacetSet)!=null?n:Xt(),automaticFacetSet:(o=e.automaticFacetSet)!=null?o:ha()}}var du=e=>{let t=[];return Qw(e).forEach((r,a)=>{let n=Ry(e,r.facetId),o=$w(r,a+1);if(Nw(r)){if(!!!Pf(e,r.facetId).length)return;t.push({...o,...Uw(e,r.facetId),facetType:n,state:"selected"});return}r.currentValues.forEach((i,s)=>{if(i.state==="idle")return;let c=vy(i,s+1,n),u=Lw(r)?Ay(i):jw(i);t.push({...o,...c,...u})})}),Bw(e).forEach((r,a)=>{let n=_w(r,a+1);r.values.forEach((o,i)=>{if(o.state==="idle")return;let s=vy(o,i+1,"specific"),c=Ay(o);t.push({...n,...s,...c})})}),t},Lw=e=>e.type==="specific",Nw=e=>e.type==="hierarchical",Qw=e=>[...Object.values(e.facetSet),...Object.values(e.categoryFacetSet),...Object.values(e.dateFacetSet),...Object.values(e.numericFacetSet)].map(t=>t.request),Bw=e=>[...Object.values(e.automaticFacetSet.set)].map(t=>t.response),vy=(e,t,r)=>({state:e.state,valuePosition:t,facetType:r}),jw=e=>({displayValue:`${e.start}..${e.end}`,value:`${e.start}..${e.end}`,start:e.start,end:e.end,endInclusive:e.endInclusive}),Ay=e=>({displayValue:e.value,value:e.value}),by=(e,t)=>Pf(e,t).map(a=>a.value).join(";"),Uw=(e,t)=>{let r=1,a=by(e,t);return{value:a,valuePosition:r,displayValue:a}},_w=(e,t)=>({title:wf(e.field,e.field),field:e.field,id:e.field,facetPosition:t}),$w=(e,t)=>({title:wf(e.field,e.facetId),field:e.field,id:e.facetId,facetPosition:t}),wf=(e,t)=>`${e}_${t}`,Fy=(e,t)=>{var r,a,n,o,i;return((r=e.facetSet[t])==null?void 0:r.request)||((a=e.categoryFacetSet[t])==null?void 0:a.request)||((n=e.dateFacetSet[t])==null?void 0:n.request)||((o=e.numericFacetSet[t])==null?void 0:o.request)||((i=e.automaticFacetSet.set[t])==null?void 0:i.response)},Ry=(e,t)=>{let r=Fy(e,t);return r?r.type:"specific"};var un="2.52.0",Py=["@coveo/atomic","@coveo/quantic"];var Hw=e=>{let t=e.configuration.search.locale.split("-")[0];return!t||t.length!==2?"en":t},Gr=class{constructor(t){this.getState=t;this.state=t()}getLanguage(){return Hw(this.state)}getBaseMetadata(){let{context:t,configuration:r}=this.state,a=(t==null?void 0:t.contextValues)||{},n={};for(let[o,i]of Object.entries(a)){let s=`context_${o}`;n[s]=i}return r.analytics.analyticsMode==="legacy"&&(n.coveoHeadlessVersion=un),n}getOriginContext(){return this.state.configuration.analytics.originContext}getOriginLevel1(){return this.state.searchHub||Ge()}getOriginLevel2(){return this.state.configuration.analytics.originLevel2}getOriginLevel3(){return this.state.configuration.analytics.originLevel3}getIsAnonymous(){return this.state.configuration.analytics.anonymous}};var We=e=>new Qt(e).getCurrentVisitorId(),vt=new WS.HistoryStore,nr=(e,t)=>typeof t=="function"?(...r)=>{let a=ms(r[0]);try{return t.apply(t,r)}catch(n){return e.error(n,"Error in analytics preprocessRequest. Returning original request."),a}}:void 0,or=(e,t)=>(...r)=>{let a=ms(r[1]);try{return t.apply(t,r)}catch(n){return e.error(n,"Error in analytics hook. Returning original request."),a}};var pu=class extends Gr{constructor(){super(...arguments);this.getFacetRequest=t=>{var r,a,n,o,i,s,c,u,l,d;return((a=(r=this.state.facetSet)==null?void 0:r[t])==null?void 0:a.request)||((o=(n=this.state.categoryFacetSet)==null?void 0:n[t])==null?void 0:o.request)||((s=(i=this.state.dateFacetSet)==null?void 0:i[t])==null?void 0:s.request)||((u=(c=this.state.numericFacetSet)==null?void 0:c[t])==null?void 0:u.request)||((d=(l=this.state.automaticFacetSet)==null?void 0:l.set[t])==null?void 0:d.response)}}getFacetState(){return du(ct(this.getState()))}getPipeline(){var t;return this.state.pipeline||((t=this.state.search)==null?void 0:t.response.pipeline)||pu.fallbackPipelineName}getSearchEventRequestPayload(){return{queryText:this.queryText,responseTime:this.responseTime,results:this.resultURIs,numberOfResults:this.numberOfResults}}getSearchUID(){var r,a;let t=this.getState();return((r=t.search)==null?void 0:r.searchResponseId)||((a=t.search)==null?void 0:a.response.searchUid)||Te().response.searchUid}getSplitTestRunName(){var t;return(t=this.state.search)==null?void 0:t.response.splitTestRun}getSplitTestRunVersion(){var a;let t=!!this.getSplitTestRunName(),r=((a=this.state.search)==null?void 0:a.response.pipeline)||this.state.pipeline||pu.fallbackPipelineName;return t?r:void 0}getBaseMetadata(){var n,o,i;let t=this.getState(),r=super.getBaseMetadata(),a=(i=(o=(n=t.search)==null?void 0:n.response)==null?void 0:o.extendedResults)==null?void 0:i.generativeQuestionAnsweringId;return a&&(r.generativeQuestionAnsweringId=a),r}getFacetMetadata(t,r){var o;let a=this.getFacetRequest(t),n=(o=a==null?void 0:a.field)!=null?o:"";return{...this.getBaseMetadata(),facetId:t,facetField:n,facetValue:r,facetTitle:`${n}_${t}`}}getFacetClearAllMetadata(t){var n;let r=this.getFacetRequest(t),a=(n=r==null?void 0:r.field)!=null?n:"";return{...this.getBaseMetadata(),facetId:t,facetField:a,facetTitle:`${a}_${t}`}}getFacetUpdateSortMetadata(t,r){var o;let a=this.getFacetRequest(t),n=(o=a==null?void 0:a.field)!=null?o:"";return{...this.getBaseMetadata(),facetId:t,facetField:n,criteria:r,facetTitle:`${n}_${t}`}}getRangeBreadcrumbFacetMetadata(t,r){var o;let a=this.getFacetRequest(t),n=(o=a==null?void 0:a.field)!=null?o:"";return{...this.getBaseMetadata(),facetId:t,facetField:n,facetRangeEnd:r.end,facetRangeEndInclusive:r.endInclusive,facetRangeStart:r.start,facetTitle:`${n}_${t}`}}getResultSortMetadata(){var t;return{...this.getBaseMetadata(),resultsSortBy:(t=this.state.sortCriteria)!=null?t:tt()}}getStaticFilterToggleMetadata(t,r){return{...this.getBaseMetadata(),staticFilterId:t,staticFilterValue:r}}getStaticFilterClearAllMetadata(t){return{...this.getBaseMetadata(),staticFilterId:t}}getUndoTriggerQueryMetadata(t){return{...this.getBaseMetadata(),undoneQuery:t}}getCategoryBreadcrumbFacetMetadata(t,r){var o;let a=this.getFacetRequest(t),n=(o=a==null?void 0:a.field)!=null?o:"";return{...this.getBaseMetadata(),categoryFacetId:t,categoryFacetField:n,categoryFacetPath:r,categoryFacetTitle:`${n}_${t}`}}getOmniboxAnalyticsMetadata(t,r){let a=this.state.querySuggest&&this.state.querySuggest[t],n=a.completions.map(c=>c.expression),o=a.partialQueries.length-1,i=a.partialQueries[o]||"",s=a.responseId;return{...this.getBaseMetadata(),suggestionRanking:n.indexOf(r),partialQuery:i,partialQueries:a.partialQueries.length>0?a.partialQueries:"",suggestions:n.length>0?n:"",querySuggestResponseId:s}}getInterfaceChangeMetadata(){return{...this.getBaseMetadata(),interfaceChangeTo:this.state.configuration.analytics.originLevel2}}getOmniboxFromLinkMetadata(t){return{...this.getBaseMetadata(),...t}}getGeneratedAnswerMetadata(){var a;let t=this.getState(),r={};return((a=t.generatedAnswer)==null?void 0:a.isVisible)!==void 0&&(r.showGeneratedAnswer=t.generatedAnswer.isVisible),r}get resultURIs(){var t;return(t=this.results)==null?void 0:t.map(r=>({documentUri:r.uri,documentUriHash:r.raw.urihash}))}get results(){var t;return(t=this.state.search)==null?void 0:t.response.results}get queryText(){var t;return((t=this.state.query)==null?void 0:t.q)||xe().q}get responseTime(){var t;return((t=this.state.search)==null?void 0:t.duration)||Te().duration}get numberOfResults(){var t;return((t=this.state.search)==null?void 0:t.response.totalCountFiltered)||Te().response.totalCountFiltered}},ae=pu;ae.fallbackPipelineName="default";var wy=({logger:e,getState:t,analyticsClientMiddleware:r=(o,i)=>i,preprocessRequest:a,provider:n=new ae(t)})=>{let o=t(),i=o.configuration.accessToken,s=o.configuration.analytics.apiBaseUrl,c=o.configuration.analytics.runtimeEnvironment,u=o.configuration.analytics.enabled,l=new cn({token:i,endpoint:s,runtimeEnvironment:c,preprocessRequest:nr(e,a),beforeSendHooks:[or(e,r),(d,p)=>(e.info({...p,type:d,endpoint:s,token:i},"Analytics request"),p)]},n);return u||l.disable(),l},If=()=>{let t=vt.getHistory().reverse().find(r=>r.name==="PageView"&&r.value);return t?t.value:""};function Gw({config:e,environment:t,event:r,listenerManager:a}){let{url:n,token:o,mode:i}=e;i!=="disabled"&&(a.call(r),t.send(n,o,r))}var zw=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Ww(e){return typeof e=="string"&&zw.test(e)}function Yw(e){let t="visitorId";return{getClientId:()=>{let r=e.get(),a=r.storage,n=a.getItem(t),o=n&&Ww(n)?n:r.generateUUID();return a.setItem(t,o),o},clear:()=>{e.get().storage.removeItem(t)}}}var Iy="0.7.4";function Kw(e){let{trackingId:t}=e;return{trackingId:t,user:null}}function Jw(e){return(e.source||[]).concat([`relay@${Iy}`])}function Ey(e,t,r,a){let{getReferrer:n,getLocation:o,getUserAgent:i}=r,s=Kw(t),c=a.getClientId();return Object.freeze({type:e,config:s,ts:Date.now(),source:Jw(t),clientId:c,userAgent:i(),referrer:n(),location:o()})}function Xw(e,t,r,a,n){return{...t,meta:Ey(e,r,a,n)}}var Zw="*";function eI(){let e=[];function t({type:c,callback:u}){return e.findIndex(l=>l.type===c&&l.callback===u)}function r(c,u){return c.type==="*"||u===c.type}function a(c){return t(c)<0&&e.push(c),()=>s(c.type,c.callback)}function n(c){e.forEach(u=>{if(r(u,c.meta.type))try{u.callback(c)}catch(l){console.error(l)}})}function o(c){if(c===Zw)e.length=0;else for(let u=e.length-1;u>=0;u--)e[u].type===c&&e.splice(u,1)}function i(c){let u=t(c);u>=0&&e.splice(u,1)}function s(c,u){u?i({type:c,callback:u}):o(c)}return{add:a,call:n,remove:s}}function ky({url:e,token:t,trackingId:r,...a}){return Object.freeze({url:e,token:t,trackingId:r,...!!a.mode&&{mode:a.mode},...!!a.source&&{source:a.source}})}function tI(e){let t=ky(e);return{get:()=>t,update:r=>{t=ky({...t,...r})}}}function rI(){let e=typeof window!="undefined";return{sendMessage(t){e&&window.postMessage(t,"*")}}}var Ef=aI();function aI(){let e="coveo_",t=r=>{let a=r.split(".").slice(-2);return a.length==2?a.join("."):""};return{getItem(r){let a=`${e}${r}=`,n=document.cookie.split(";");for(let o of n){let i=o.replace(/^\s+/,"");if(i.lastIndexOf(a,0)===0)return i.substring(a.length,i.length)}return null},setItem(r,a,n){let o=t(window.location.hostname),i=`;expires=${new Date(new Date().getTime()+n).toUTCString()}`,s=o?`;domain=${o}`:"";document.cookie=`${e}${r}=${a}${i}${s};path=/;SameSite=Lax`},removeItem(r){this.setItem(r,"",-1)}}}function nI(){return{getItem(e){return Ef.getItem(e)||localStorage.getItem(e)},removeItem(e){Ef.removeItem(e),localStorage.removeItem(e)},setItem(e,t){let r=31556952e3;localStorage.setItem(e,t),Ef.setItem(e,t,r)}}}function oI(){let e=document.referrer;return e===""?null:e}function iI(){return{runtime:"browser",send:(e,t,r)=>{let a=navigator.sendBeacon(`${e}?access_token=${t}`,new Blob([JSON.stringify([r])],{type:"application/json"}));if(rI().sendMessage({kind:"EVENT_PROTOCOL",event:r,url:e,token:t}),!a)throw new Error("Failed to send the event(s) because the payload size exceeded the maximum allowed size (32 KB). Please contact support if the problem persists.")},getReferrer:()=>oI(),getLocation:()=>window.location.href,getUserAgent:()=>navigator.userAgent,generateUUID:()=>crypto.randomUUID(),storage:nI()}}function sI(){return{getItem(){return null},removeItem(){},setItem(){}}}function cI(){return{runtime:"null",send:()=>{},getReferrer:()=>null,getLocation:()=>null,getUserAgent:()=>null,generateUUID:()=>"",storage:sI()}}function uI(e){return e.get().mode!=="disabled"&&lI()?iI():cI()}function lI(){try{return typeof window=="object"}catch{return!1}}function dI(e){return{get:()=>Object.freeze(uI(e))}}function Oy(e){let t=tI(e),r=eI(),a=dI(t),n=Yw(a);return{emit:(o,i)=>{let s=t.get(),c=a.get(),u=Xw(o,i,s,c,n);return Gw({config:s,environment:c,event:u,listenerManager:r})},getMeta:o=>Ey(o,t.get(),a.get(),n),on:(o,i)=>r.add({type:o,callback:i}),off:(o,i)=>r.remove(o,i),updateConfig:o=>t.update(o),version:Iy,clearStorage:()=>{n.clear()}}}var fu=sa(e=>e.source,e=>[`@coveo/headless@${un}`].concat(Object.entries(e).map(([t,r])=>`${t}@${r}`)));var mu=sa(e=>e.configuration.accessToken,e=>e.configuration.analytics,e=>fu(e.configuration.analytics),(e,{trackingId:t,nextApiBaseUrl:r},a)=>Oy({url:r,token:e,trackingId:t,source:a}));var gu=class{constructor(t){this.state=t()}getSearchUID(){return null}getOriginLevel1(){return this.state.searchHub||Ge()}},qy=({logger:e,getState:t,analyticsClientMiddleware:r=(o,i)=>i,preprocessRequest:a,provider:n=new gu(t)})=>{let o=t(),i=o.configuration.accessToken,s=o.configuration.analytics.apiBaseUrl,c=o.configuration.analytics.runtimeEnvironment,u=o.configuration.analytics.enabled,l=new vf({enableAnalytics:u,token:i,endpoint:s,runtimeEnvironment:c,preprocessRequest:nr(e,a),beforeSendHooks:[or(e,r),(d,p)=>(e.info({...p,type:d,endpoint:s,token:i},"Analytics request"),p)]},n);return u||l.disable(),l};var ao=class extends Gr{constructor(){super(...arguments);this.initialState=vs()}getPipeline(){return""}getSearchEventRequestPayload(){return{queryText:"",responseTime:0,results:this.mapResultsToAnalyticsDocument(),numberOfResults:this.numberOfResults}}getSearchUID(){var r;return((r=this.getState().productListing)==null?void 0:r.responseId)||this.initialState.responseId}mapResultsToAnalyticsDocument(){var t;return(t=this.state.productListing)==null?void 0:t.products.map(r=>({documentUri:r.documentUri,documentUriHash:r.documentUriHash,permanentid:r.permanentid}))}get numberOfResults(){return this.state.productListing.products.length}},Ty=({logger:e,getState:t,analyticsClientMiddleware:r=(o,i)=>i,preprocessRequest:a,provider:n=new ao(t)})=>{let o=t(),i=o.configuration.accessToken,s=o.configuration.analytics.apiBaseUrl,c=o.configuration.analytics.runtimeEnvironment,u=o.configuration.analytics.enabled,l=new cn({token:i,endpoint:s,runtimeEnvironment:c,preprocessRequest:nr(e,a),beforeSendHooks:[or(e,r),(d,p)=>(e.info({...p,type:d,endpoint:s,token:i},"Analytics request"),p)]},n);return u||l.disable(),l};var hu=class extends Gr{getSearchUID(){var r,a;let t=this.getState();return((r=t.search)==null?void 0:r.searchResponseId)||((a=t.search)==null?void 0:a.response.searchUid)||Te().response.searchUid}getPipeline(){var t;return this.state.pipeline||((t=this.state.search)==null?void 0:t.response.pipeline)||"default"}getSearchEventRequestPayload(){return{queryText:this.queryText,responseTime:this.responseTime,results:this.mapResultsToAnalyticsDocument(),numberOfResults:this.numberOfResults}}getFacetState(){return du(ct(this.state))}getBaseMetadata(){var n,o,i;let t=this.getState(),r=super.getBaseMetadata(),a=(i=(o=(n=t.search)==null?void 0:n.response)==null?void 0:o.extendedResults)==null?void 0:i.generativeQuestionAnsweringId;return a&&(r.generativeQuestionAnsweringId=a),r}getGeneratedAnswerMetadata(){var r;let t=this.getState();return{...((r=t.generatedAnswer)==null?void 0:r.isVisible)!==void 0&&{showGeneratedAnswer:t.generatedAnswer.isVisible}}}get queryText(){var t;return((t=this.state.query)==null?void 0:t.q)||xe().q}get responseTime(){var t;return((t=this.state.search)==null?void 0:t.duration)||Te().duration}mapResultsToAnalyticsDocument(){var t;return(t=this.state.search)==null?void 0:t.response.results.map(r=>({documentUri:r.uri,documentUriHash:r.raw.urihash}))}get numberOfResults(){var t;return((t=this.state.search)==null?void 0:t.response.results.length)||Te().response.results.length}},Dy=({logger:e,getState:t,analyticsClientMiddleware:r=(o,i)=>i,preprocessRequest:a,provider:n=new hu(t)})=>{let o=t(),i=o.configuration.accessToken,s=o.configuration.analytics.apiBaseUrl,c=o.configuration.analytics.runtimeEnvironment,u=o.configuration.analytics.enabled,l=new Af({enableAnalytics:u,token:i,endpoint:s,runtimeEnvironment:c,preprocessRequest:nr(e,a),beforeSendHooks:[or(e,r),(d,p)=>(e.info({...p,type:d,endpoint:s,token:i},"Analytics request"),p)]},n);return u||l.disable(),l};var no=class extends Gr{constructor(){super(...arguments);this.initialState=vs()}getPipeline(){return""}getSearchEventRequestPayload(){return{queryText:"",responseTime:0,results:this.mapResultsToAnalyticsDocument(),numberOfResults:this.numberOfResults}}getSearchUID(){var r;return((r=this.getState().productListing)==null?void 0:r.responseId)||this.initialState.responseId}mapResultsToAnalyticsDocument(){var t;return(t=this.state.productListing)==null?void 0:t.products.map(r=>({documentUri:r.documentUri,documentUriHash:r.documentUriHash,permanentid:r.permanentid}))}get numberOfResults(){return this.state.productListing.products.length}},Vy=({logger:e,getState:t,analyticsClientMiddleware:r=(o,i)=>i,preprocessRequest:a,provider:n=new no(t)})=>{let o=t(),i=o.configuration.accessToken,s=o.configuration.analytics.apiBaseUrl,c=o.configuration.analytics.runtimeEnvironment,u=o.configuration.analytics.enabled,l=new cn({token:i,endpoint:s,runtimeEnvironment:c,preprocessRequest:nr(e,a),beforeSendHooks:[or(e,r),(d,p)=>(e.info({...p,type:d,endpoint:s,token:i},"Analytics request"),p)]},n);return u||l.disable(),l};function Su(e){let t=My(e),r=[e,...t].filter(n=>n.parentResult).map(n=>n.parentResult);return Wh([e,...t,...r],n=>n.uniqueId)}function My(e){return e.childResults?e.childResults.flatMap(t=>[t,...My(t)]):[]}function Ly(e,t){return{...new ae(t).getBaseMetadata(),actionCause:e,type:e}}function pI(e){return Object.assign(e,{instantlyCallable:!0})}function fI(e,t){let r=o=>pI(W(e,o)),a=r(async(o,{getState:i,extra:s})=>{let{analyticsClientMiddleware:c,preprocessRequest:u,logger:l}=s;return await(await t({getState:i,analyticsClientMiddleware:c,preprocessRequest:u,logger:l})).log({state:i(),extra:s})});return Object.assign(a,{prepare:async({getState:o,analyticsClientMiddleware:i,preprocessRequest:s,logger:c})=>{let{description:u,log:l}=await t({getState:o,analyticsClientMiddleware:i,preprocessRequest:s,logger:c});return{description:u,action:r(async(d,{getState:p,extra:f})=>await l({state:p(),extra:f}))}}}),a}var Es=(e,t,r)=>{function a(...n){let o=n.length===1?{...n[0],__legacy__getBuilder:t(n[0].__legacy__getBuilder),analyticsConfigurator:e,providerClass:r}:{prefix:n[0],__legacy__getBuilder:t(n[1]),__legacy__provider:n[2],analyticsConfigurator:e,providerClass:r};return hI(o)}return a},mI=e=>e.configuration.analytics.analyticsMode==="legacy",gI=e=>e.configuration.analytics.analyticsMode==="next",hI=({prefix:e,__legacy__getBuilder:t,__legacy__provider:r,analyticsPayloadBuilder:a,analyticsType:n,analyticsConfigurator:o,providerClass:i})=>(r!=null||(r=s=>new i(s)),fI(e,async({getState:s,analyticsClientMiddleware:c,preprocessRequest:u,logger:l})=>{let d=[],p={log:async({state:y})=>{for(let x of d)await x(y)}},f=s(),m=o({getState:s,logger:l,analyticsClientMiddleware:c,preprocessRequest:u,provider:r(s)}),g=await t(m,s());p.description=g==null?void 0:g.description,d.push(async y=>{mI(y)&&await SI(g,r,y,l,m.coveoAnalyticsClient)});let{emit:S}=mu(f);return d.push(async y=>{if(gI(y)&&n&&a){let x=a(y);await FI(S,n,x)}}),p}));async function SI(e,t,r,a,n){t(()=>r);let o=await(e==null?void 0:e.log({searchUID:t(()=>r).getSearchUID()}));a.info({client:n,response:o},"Analytics response")}var Ny=e=>(t,r)=>Promise.resolve({description:{actionCause:"caseAssist"},log:async a=>{e(t,r)}}),E=Es(wy,e=>e,ae),h1=Es(qy,Ny,gu),S1=Es(Dy,Ny,hu),Qy=Es(Ty,e=>e,ao),By=Es(Vy,e=>e,no);var Oe=(e,t)=>{var o;let r=i=>{var s,c;return i+((c=(s=t.pagination)==null?void 0:s.firstResult)!=null?c:0)},a=-1,n=(o=t.search)==null?void 0:o.results;return a=Uy(e,n),a<0&&(a=bI(e,n)),a<0&&(a=0),yI(e,r(a),t)};function yI(e,t,r){let a=e.raw.collection;return{collectionName:typeof a=="string"?a:"default",documentAuthor:vI(e),documentPosition:t+1,documentTitle:e.title,documentUri:e.uri,documentUriHash:e.raw.urihash,documentUrl:e.clickUri,rankingModifier:e.rankingModifier||"",sourceName:AI(e),queryPipeline:r.pipeline||Lt()}}var Le=e=>(e.raw.permanentid||console.warn("Missing field permanentid on result. This might cause many issues with your Coveo deployment. See https://docs.coveo.com/en/1913 and https://docs.coveo.com/en/1640 for more information.",e),{contentIDKey:"permanentid",contentIDValue:e.raw.permanentid||""}),jy={urihash:new w,sourcetype:new w,permanentid:new w},oo={uniqueId:O,raw:new q({values:jy}),title:O,uri:O,clickUri:O,rankingModifier:new w({required:!1,emptyAllowed:!0})};function CI(e){return Object.assign({},...Object.keys(jy).map(t=>({[t]:e[t]})))}function xI(e){return Object.assign({},...Object.keys(oo).map(t=>({[t]:e[t]})),{raw:CI(e.raw)})}function vI(e){let t=e.raw.author;return te(t)?"unknown":Array.isArray(t)?t.join(";"):`${t}`}function AI(e){let t=e.raw.source;return te(t)?"unknown":t}var ut=e=>new Y(oo).validate(xI(e));function bI(e,t){for(let[r,a]of t.entries()){let n=Su(a);if(Uy(e,n)!==-1)return r}return-1}function Uy(e,t=[]){return t.findIndex(({uniqueId:r})=>r===e.uniqueId)}async function FI(e,t,r){await e(t,r)}var oe=(V=>(V.interfaceLoad="interfaceLoad",V.interfaceChange="interfaceChange",V.didyoumeanAutomatic="didyoumeanAutomatic",V.didyoumeanClick="didyoumeanClick",V.resultsSort="resultsSort",V.searchboxSubmit="searchboxSubmit",V.searchboxClear="searchboxClear",V.searchboxAsYouType="searchboxAsYouType",V.breadcrumbFacet="breadcrumbFacet",V.breadcrumbResetAll="breadcrumbResetAll",V.documentQuickview="documentQuickview",V.documentOpen="documentOpen",V.omniboxAnalytics="omniboxAnalytics",V.omniboxFromLink="omniboxFromLink",V.searchFromLink="searchFromLink",V.triggerNotify="notify",V.triggerExecute="execute",V.triggerQuery="query",V.undoTriggerQuery="undoQuery",V.triggerRedirect="redirect",V.pagerResize="pagerResize",V.pagerNumber="pagerNumber",V.pagerNext="pagerNext",V.pagerPrevious="pagerPrevious",V.pagerScrolling="pagerScrolling",V.staticFilterClearAll="staticFilterClearAll",V.staticFilterSelect="staticFilterSelect",V.staticFilterDeselect="staticFilterDeselect",V.facetClearAll="facetClearAll",V.facetSearch="facetSearch",V.facetSelect="facetSelect",V.facetSelectAll="facetSelectAll",V.facetDeselect="facetDeselect",V.facetExclude="facetExclude",V.facetUnexclude="facetUnexclude",V.facetUpdateSort="facetUpdateSort",V.facetShowMore="showMoreFacetResults",V.facetShowLess="showLessFacetResults",V.queryError="query",V.queryErrorBack="errorBack",V.queryErrorClear="errorClearQuery",V.queryErrorRetry="errorRetry",V.recommendation="recommendation",V.recommendationInterfaceLoad="recommendationInterfaceLoad",V.recommendationOpen="recommendationOpen",V.likeSmartSnippet="likeSmartSnippet",V.dislikeSmartSnippet="dislikeSmartSnippet",V.expandSmartSnippet="expandSmartSnippet",V.collapseSmartSnippet="collapseSmartSnippet",V.openSmartSnippetFeedbackModal="openSmartSnippetFeedbackModal",V.closeSmartSnippetFeedbackModal="closeSmartSnippetFeedbackModal",V.sendSmartSnippetReason="sendSmartSnippetReason",V.expandSmartSnippetSuggestion="expandSmartSnippetSuggestion",V.collapseSmartSnippetSuggestion="collapseSmartSnippetSuggestion",V.showMoreSmartSnippetSuggestion="showMoreSmartSnippetSuggestion",V.showLessSmartSnippetSuggestion="showLessSmartSnippetSuggestion",V.openSmartSnippetSource="openSmartSnippetSource",V.openSmartSnippetSuggestionSource="openSmartSnippetSuggestionSource",V.openSmartSnippetInlineLink="openSmartSnippetInlineLink",V.openSmartSnippetSuggestionInlineLink="openSmartSnippetSuggestionInlineLink",V.recentQueryClick="recentQueriesClick",V.clearRecentQueries="clearRecentQueries",V.recentResultClick="recentResultClick",V.clearRecentResults="clearRecentResults",V.noResultsBack="noResultsBack",V.showMoreFoldedResults="showMoreFoldedResults",V.showLessFoldedResults="showLessFoldedResults",V.copyToClipboard="copyToClipboard",V.caseSendEmail="Case.SendEmail",V.feedItemTextPost="FeedItem.TextPost",V.caseAttach="caseAttach",V.caseDetach="caseDetach",V.retryGeneratedAnswer="retryGeneratedAnswer",V.likeGeneratedAnswer="likeGeneratedAnswer",V.dislikeGeneratedAnswer="dislikeGeneratedAnswer",V.openGeneratedAnswerSource="openGeneratedAnswerSource",V.generatedAnswerStreamEnd="generatedAnswerStreamEnd",V.historyForward="historyForward",V.historyBackward="historyBackward",V))(oe||{});var kf=e=>A(e,{evt:O,type:de}),_y=e=>E("analytics/generic/search",t=>{kf(e);let{evt:r,meta:a}=e;return t.makeSearchEvent(r,a)}),$y=e=>E("analytics/generic/click",(t,r)=>(ut(e.result),kf(e),t.makeClickEvent(e.evt,Oe(e.result,r),Le(e.result),e.meta))),Hy=e=>E("analytics/generic/custom",t=>(kf(e),t.makeCustomEventWithType(e.evt,e.type,e.meta))),yu=()=>E("analytics/interface/load",e=>e.makeInterfaceLoad()),ya=()=>E("analytics/interface/change",(e,t)=>e.makeInterfaceChange({interfaceChangeTo:t.configuration.analytics.originLevel2})),Cu=()=>E("analytics/interface/searchFromLink",e=>e.makeSearchFromLink()),xu=e=>E("analytics/interface/omniboxFromLink",t=>t.makeOmniboxFromLink(e)),Gy=()=>({actionCause:oe.interfaceLoad,getEventExtraPayload:e=>new ae(()=>e).getBaseMetadata()}),io=()=>({actionCause:oe.interfaceChange,getEventExtraPayload:e=>new ae(()=>e).getInterfaceChangeMetadata()}),zy=()=>({actionCause:oe.searchFromLink,getEventExtraPayload:e=>new ae(()=>e).getBaseMetadata()}),Wy=e=>({actionCause:oe.omniboxFromLink,getEventExtraPayload:t=>new ae(()=>t).getOmniboxFromLinkMetadata(e)});var Of=()=>de,Yy=()=>O,ir=C("configuration/updateBasicConfiguration",e=>A(e,{accessToken:de,organizationId:de,platformUrl:de})),At=C("configuration/updateSearchConfiguration",e=>A(e,{apiBaseUrl:de,pipeline:new w({required:!1,emptyAllowed:!0}),searchHub:de,timezone:de,locale:de,authenticationProviders:new X({required:!1,each:O})})),RI={enabled:new K({default:!0}),originContext:Of(),originLevel2:Of(),originLevel3:Of(),apiBaseUrl:de,nextApiBaseUrl:de,runtimeEnvironment:new me,anonymous:new K({default:!1}),deviceId:de,userDisplayName:de,documentLocation:de,trackingId:de,analyticsMode:new w({constrainTo:["legacy","next"],required:!1,default:"legacy"}),source:new q({options:{required:!1},values:Py.reduce((e,t)=>(e[t]=Ih,e),{})})},Ca=C("configuration/updateAnalyticsConfiguration",e=>(qc()&&(e.enabled=!1),A(e,RI))),so=C("configuration/analytics/disable"),co=C("configuration/analytics/enable"),vu=C("configuration/analytics/originlevel2",e=>A(e,{originLevel2:Yy()})),Au=C("configuration/analytics/originlevel3",e=>A(e,{originLevel3:Yy()}));var bu={q:new w,enableQuerySyntax:new K,aq:new w,cq:new w,firstResult:new D({min:0}),numberOfResults:new D({min:0}),sortCriteria:new w,f:new q,fExcluded:new q,cf:new q,nf:new q,df:new q,debug:new K,sf:new q,tab:new w,af:new q};var ue=C("searchParameters/restore",e=>A(e,bu));var xa=C("debug/enable"),uo=C("debug/disable");var lo=T(Ct(),e=>{e.addCase(xa,()=>!0).addCase(uo,()=>!1).addCase(ue,(t,r)=>{var a;return(a=r.payload.debug)!=null?a:t})});var qf=C("history/undo"),Tf=C("history/redo"),ht=C("history/snapshot"),ks=W("history/back",async(e,{dispatch:t})=>{t(qf()),await t(ce())}),Fu=W("history/forward",async(e,{dispatch:t})=>{t(Tf()),await t(ce())}),ce=W("history/change",async(e,{getState:t})=>t().history.present);var po=C("pipeline/set",e=>A(e,new w({required:!0,emptyAllowed:!0})));var fo=T(Lt(),e=>{e.addCase(po,(t,r)=>r.payload).addCase(ce.fulfilled,(t,r)=>{var a,n;return(n=(a=r.payload)==null?void 0:a.pipeline)!=null?n:t}).addCase(At,(t,r)=>r.payload.pipeline||t)});var mo=C("searchHub/set",e=>A(e,new w({required:!0,emptyAllowed:!0})));var go=T(Ge(),e=>{e.addCase(mo,(t,r)=>r.payload).addCase(ce.fulfilled,(t,r)=>{var a,n;return(n=(a=r.payload)==null?void 0:a.searchHub)!=null?n:t}).addCase(At,(t,r)=>r.payload.searchHub||t)});var Fe=C("breadcrumb/deselectAll"),va=C("breadcrumb/deselectAllNonBreadcrumbs");var bt=C("facet/updateFacetAutoSelection",e=>A(e,{allow:new K({required:!0})}));var Ru=class extends ae{constructor(t){super(t);this.getState=t}get activeInstantResultQuery(){let t=this.getState().instantResults;for(let r in t)for(let a in t[r].cache)if(t[r].cache[a].isActive)return t[r].q;return null}get activeInstantResultCache(){let t=this.getState().instantResults;for(let r in t)for(let a in t[r].cache)if(t[r].cache[a].isActive)return t[r].cache[a];return null}get results(){var t;return(t=this.activeInstantResultCache)==null?void 0:t.results}get queryText(){var t;return(t=this.activeInstantResultQuery)!=null?t:xe().q}get responseTime(){var t,r;return(r=(t=this.activeInstantResultCache)==null?void 0:t.duration)!=null?r:Te().duration}get numberOfResults(){var t,r;return(r=(t=this.activeInstantResultCache)==null?void 0:t.totalCountFiltered)!=null?r:Te().response.totalCountFiltered}getSearchUID(){var r;return((r=this.activeInstantResultCache)==null?void 0:r.searchUid)||super.getSearchUID()}};var Ky=e=>E({prefix:"analytics/instantResult/open",__legacy__getBuilder:(t,r)=>(ut(e),t.makeDocumentOpen(Oe(e,r),Le(e))),__legacy__provider:t=>new Ru(t),analyticsType:"itemClick",analyticsPayloadBuilder:t=>{var n,o;let r=Oe(e,t),a=Le(e);return{searchUid:(o=(n=t.search)==null?void 0:n.response.searchUid)!=null?o:"",position:r.documentPosition,actionCause:"open",itemMetadata:{uniqueFieldName:a.contentIDKey,uniqueFieldValue:a.contentIDValue,title:r.documentTitle,author:r.documentAuthor,url:r.documentUrl}}}}),Jy=()=>E("analytics/instantResult/searchboxAsYouType",e=>e.makeSearchboxAsYouType(),e=>new Ru(e)),Xy=()=>({actionCause:oe.searchboxAsYouType,getEventExtraPayload:e=>new ae(()=>e).getBaseMetadata()});var Df={id:O},PI={...Df,q:ge},ho=C("instantResults/register",e=>A(e,Df)),sr=C("instantResults/updateQuery",e=>A(e,PI)),So=C("instantResults/clearExpired",e=>A(e,Df));var Pu=new D({required:!0,min:0}),yo=C("pagination/registerNumberOfResults",e=>A(e,Pu)),Co=C("pagination/updateNumberOfResults",e=>A(e,Pu)),xo=C("pagination/registerPage",e=>A(e,Pu)),Ft=C("pagination/updatePage",e=>A(e,Pu)),vo=C("pagination/nextPage"),Ao=C("pagination/previousPage");var Ye=C("query/updateQuery",e=>A(e,{q:new w,enableQuerySyntax:new K}));var bo=async(e,t)=>{let r=e.analyticsMode==="next";return{analytics:{clientId:await We(e),clientTimestamp:new Date().toISOString(),documentReferrer:e.originLevel3,originContext:e.originContext,...t&&{actionCause:t.actionCause,customData:t.customData},...e.userDisplayName&&{userDisplayName:e.userDisplayName},...e.documentLocation&&{documentLocation:e.documentLocation},...e.deviceId&&{deviceId:e.deviceId},...If()&&{pageId:If()},...r&&e.trackingId&&{trackingId:e.trackingId},capture:r,...r&&{source:fu(e)}}}};var Aa=async(e,t)=>{var r,a,n,o;return{accessToken:e.configuration.accessToken,organizationId:e.configuration.organizationId,url:e.configuration.search.apiBaseUrl,locale:e.configuration.search.locale,debug:e.debug,tab:e.configuration.analytics.originLevel2,referrer:e.configuration.analytics.originLevel3,timezone:e.configuration.search.timezone,...e.configuration.analytics.enabled&&{visitorId:await We(e.configuration.analytics),actionsHistory:vt.getHistory()},...((r=e.advancedSearchQueries)==null?void 0:r.aq)&&{aq:e.advancedSearchQueries.aq},...((a=e.advancedSearchQueries)==null?void 0:a.cq)&&{cq:e.advancedSearchQueries.cq},...((n=e.advancedSearchQueries)==null?void 0:n.lq)&&{lq:e.advancedSearchQueries.lq},...((o=e.advancedSearchQueries)==null?void 0:o.dq)&&{dq:e.advancedSearchQueries.dq},...e.context&&{context:e.context.contextValues},...e.fields&&!e.fields.fetchAllFields&&{fieldsToInclude:e.fields.fieldsToInclude},...e.dictionaryFieldContext&&{dictionaryFieldContext:e.dictionaryFieldContext.contextValues},...e.pipeline&&{pipeline:e.pipeline},...e.query&&{q:e.query.q,enableQuerySyntax:e.query.enableQuerySyntax},...e.searchHub&&{searchHub:e.searchHub},...e.sortCriteria&&{sortCriteria:e.sortCriteria},...e.configuration.analytics.enabled&&await bo(e.configuration.analytics,t),...e.excerptLength&&!te(e.excerptLength.length)&&{excerptLength:e.excerptLength.length},...e.configuration.search.authenticationProviders.length&&{authentication:e.configuration.search.authenticationProviders.join(",")}}};var Vf=()=>E("search/logFetchMoreResults",e=>e.makeFetchMoreResults()),lt=e=>E("search/queryError",(t,r)=>{var a,n,o,i;return t.makeQueryError({query:((a=r.query)==null?void 0:a.q)||xe().q,aq:((n=r.advancedSearchQueries)==null?void 0:n.aq)||st().aq,cq:((o=r.advancedSearchQueries)==null?void 0:o.cq)||st().cq,dq:((i=r.advancedSearchQueries)==null?void 0:i.dq)||st().dq,errorType:e.type,errorMessage:e.message})});var Ts=Ie(wc()),aC=Ie(Zy());var wu=Ie(wc()),tC=Ie(eC());wu.default.extend(tC.default);var Os="YYYY/MM/DD@HH:mm:ss",wI="1401-01-01";function ln(e,t){let r=(0,wu.default)(e,t);return!r.isValid()&&!t?(0,wu.default)(e,Os):r}function qs(e){return e.format(Os)}function rC(e){return qs(ln(e))===e}function Iu(e,t){let r=ln(e,t);if(!r.isValid()){let a=". Please provide a date format string in the configuration options. See https://day.js.org/docs/en/parse/string-format for more information.",n=` with the format "${t}""`;throw new Error(`Could not parse the provided date "${e}"${t?n:a}`)}Bf(r)}function Bf(e){if(e.isBefore(wI))throw new Error(`Date is before year 1401, which is unsupported by the API: ${e}`)}Ts.default.extend(aC.default);var nC=["past","now","next"],oC=["minute","hour","day","week","month","quarter","year"],II=e=>{let t=e==="now";return{amount:new D({required:!t,min:1}),unit:new w({required:!t,constrainTo:oC}),period:new w({required:!0,constrainTo:nC})}};function dn(e){if(typeof e=="string"&&!cr(e))throw new Error(`The value "${e}" is not respecting the relative date format "period-amount-unit"`);let t=typeof e=="string"?jf(e):e;new Y(II(t.period)).validate(t);let r=sC(t),a=JSON.stringify(t);if(!r.isValid())throw new Error(`Date is invalid: ${a}`);Bf(r)}function iC(e){let{period:t,amount:r,unit:a}=e;switch(t){case"past":case"next":return`${t}-${r}-${a}`;case"now":return t}}function sC(e){let{period:t,amount:r,unit:a}=e;switch(t){case"past":return(0,Ts.default)().subtract(r,a);case"next":return(0,Ts.default)().add(r,a);case"now":return(0,Ts.default)()}}function Ds(e){return qs(sC(jf(e)))}function cC(e){return e.toLocaleLowerCase().split("-")}function cr(e){let[t,r,a]=cC(e);if(t==="now")return!0;if(!nC.includes(t)||!oC.includes(a))return!1;let n=parseInt(r);return!(isNaN(n)||n<=0)}function uC(e){return!!e&&typeof e=="object"&&"period"in e}function jf(e){let[t,r,a]=cC(e);return t==="now"?{period:"now"}:{period:t,amount:r?parseInt(r):void 0,unit:a||void 0}}function EI(e){return dn(e),jf(e)}function lC(e){return e.type==="dateRange"}function dC(e){return`start${e}`}function pC(e){return`end${e}`}var kI=()=>({dateFacetValueMap:{}});function OI(e,t,r){let a=e.start,n=e.end;return cr(a)&&(a=Ds(a),r.dateFacetValueMap[t][dC(a)]=e.start),cr(n)&&(n=Ds(n),r.dateFacetValueMap[t][pC(n)]=e.end),{...e,start:a,end:n}}function qI(e,t){if(lC(e)){let{facetId:r,currentValues:a}=e;return t.dateFacetValueMap[r]={},{...e,currentValues:a.map(n=>OI(n,r,t))}}return e}function Fo(e){var a;let t=kI();return{request:{...e,facets:(a=e.facets)==null?void 0:a.map(n=>qI(n,t))},mappings:t}}function TI(e,t,r){return{...e,start:r.dateFacetValueMap[t][dC(e.start)]||e.start,end:r.dateFacetValueMap[t][pC(e.end)]||e.end}}function DI(e,t){return e.facetId in t.dateFacetValueMap}function VI(e,t){return DI(e,t)?{...e,values:e.values.map(r=>TI(r,e.facetId,t))}:e}function Eu(e,t){var r;return"success"in e?{success:{...e.success,facets:(r=e.success.facets)==null?void 0:r.map(n=>VI(n,t))}}:e}function Ro(e,t){let r={};e.forEach(o=>r[o.facetId]=o);let a=[];t.forEach(o=>{o in r&&(a.push(r[o]),delete r[o])});let n=Object.values(r);return[...a,...n]}function zr(e){return Object.values(e).map(t=>t.request)}var pn=1,Vs=5e3;var qe=async(e,t)=>{var s;let r=UI(e),a=MI(e),n=LI(e),o=await Aa(e,t),i=()=>e.pagination?e.pagination.firstResult+e.pagination.numberOfResults>Vs?Vs-e.pagination.firstResult:e.pagination.numberOfResults:void 0;return Fo({...o,...e.didYouMean&&{queryCorrection:{enabled:e.didYouMean.enableDidYouMean&&e.didYouMean.queryCorrectionMode==="next",options:{automaticallyCorrect:e.didYouMean.automaticallyCorrectQuery?"whenNoResults":"never"}},enableDidYouMean:e.didYouMean.enableDidYouMean&&e.didYouMean.queryCorrectionMode==="legacy"},...r&&{cq:r},...a.length&&{facets:a},...e.pagination&&{numberOfResults:i(),firstResult:e.pagination.firstResult},...e.facetOptions&&{facetOptions:{freezeFacetOrder:e.facetOptions.freezeFacetOrder}},...((s=e.folding)==null?void 0:s.enabled)&&{filterField:e.folding.fields.collection,childField:e.folding.fields.parent,parentField:e.folding.fields.child,filterFieldRange:e.folding.filterFieldRange},...e.automaticFacetSet&&{generateAutomaticFacets:{desiredCount:e.automaticFacetSet.desiredCount,numberOfValues:e.automaticFacetSet.numberOfValues,currentFacets:n}},...e.generatedAnswer&&{pipelineRuleParameters:{mlGenerativeQuestionAnswering:{responseFormat:e.generatedAnswer.responseFormat,citationsFieldToInclude:e.generatedAnswer.fieldsToIncludeInCitations}}}})};function MI(e){var t;return Ro(QI(e),(t=e.facetOrder)!=null?t:[])}function LI(e){var r;let t=(r=e.automaticFacetSet)==null?void 0:r.set;return t?Object.values(t).map(a=>a.response).map(NI).filter(a=>a.currentValues.length>0):void 0}function NI(e){let{field:t,label:r,values:a}=e,n=a.filter(o=>o.state==="selected");return{field:t,label:r,currentValues:n}}function QI(e){return BI(e).filter(({facetId:t})=>{var r,a,n;return(n=(a=(r=e.facetOptions)==null?void 0:r.facets[t])==null?void 0:a.enabled)!=null?n:!0})}function BI(e){var t,r,a,n;return[...jI((t=e.facetSet)!=null?t:{}),...fC((r=e.numericFacetSet)!=null?r:{}),...fC((a=e.dateFacetSet)!=null?a:{}),...zr((n=e.categoryFacetSet)!=null?n:{})]}function jI(e){return zr(e).map(t=>t.sortCriteria==="alphanumericDescending"?{...t,sortCriteria:{type:"alphanumeric",order:"descending"}}:t)}function fC(e){return zr(e).map(t=>{let a=t.currentValues.some(({state:n})=>n!=="idle");return t.generateAutomaticRanges&&!a?{...t,currentValues:[]}:t})}function UI(e){var o;let t=((o=e.advancedSearchQueries)==null?void 0:o.cq.trim())||"",r=Object.values(e.tabSet||{}).find(i=>i.isActive),a=(r==null?void 0:r.expression.trim())||"",n=_I(e);return[t,a,...n].filter(i=>!!i).join(" AND ")}function _I(e){return Object.values(e.staticFilterSet||{}).map(r=>{let a=r.values.filter(o=>o.state==="selected"&&!!o.expression.trim()),n=a.map(o=>o.expression).join(" OR ");return a.length>1?`(${n})`:n})}var Po=C("didYouMean/enable"),ku=C("didYouMean/disable"),wo=C("didYouMean/automaticCorrections/disable"),Ou=C("didYouMean/automaticCorrections/enable"),Rt=C("didYouMean/correction",e=>A(e,O)),Io=C("didYouMean/automaticCorrections/mode",e=>A(e,new w({constrainTo:["next","legacy"],emptyAllowed:!1,required:!0})));var qu=()=>E("analytics/didyoumean/click",e=>e.makeDidYouMeanClick()),Uf=()=>E("analytics/didyoumean/automatic",e=>e.makeDidYouMeanAutomatic()),mC=()=>({actionCause:oe.didyoumeanClick,getEventExtraPayload:e=>new ae(()=>e).getBaseMetadata()}),gC=()=>({actionCause:oe.didyoumeanAutomatic,getEventExtraPayload:e=>new ae(()=>e).getBaseMetadata()});var $I=new q({values:{undoneQuery:ge},options:{required:!0}}),Tu=()=>E("analytics/trigger/query",(e,t)=>{var r;return((r=t.triggers)==null?void 0:r.queryModification.newQuery)?e.makeTriggerQuery():null}),Du=e=>E("analytics/trigger/query/undo",t=>(A(e,$I),t.makeUndoTriggerQuery(e))),Vu=()=>E("analytics/trigger/notify",(e,t)=>{var r;return((r=t.triggers)==null?void 0:r.notifications.length)?e.makeTriggerNotify({notifications:t.triggers.notifications}):null}),Mu=()=>E("analytics/trigger/redirect",(e,t)=>{var r;return((r=t.triggers)==null?void 0:r.redirectTo)?e.makeTriggerRedirect({redirectedTo:t.triggers.redirectTo}):null}),Lu=()=>E("analytics/trigger/execute",(e,t)=>{var r;return((r=t.triggers)==null?void 0:r.executions.length)?e.makeTriggerExecute({executions:t.triggers.executions}):null}),hC=e=>({actionCause:oe.undoTriggerQuery,getEventExtraPayload:t=>new ae(()=>t).getUndoTriggerQueryMetadata(e)});var ba=C("trigger/query/ignore",e=>A(e,new w({emptyAllowed:!0,required:!0}))),Eo=C("trigger/query/modification",e=>A(e,new q({values:{originalQuery:de,modification:de}})));var fn=class{constructor(t,r=a=>{this.dispatch(Ye({q:a}))}){this.config=t;this.onUpdateQueryForCorrection=r}async fetchFromAPI({mappings:t,request:r},a){var c;let n=new Date().getTime(),o=Eu(await this.extra.apiClient.search(r,a),t),i=new Date().getTime()-n,s=((c=this.getState().query)==null?void 0:c.q)||"";return{response:o,duration:i,queryExecuted:s,requestExecuted:r}}async process(t){var r,a,n;return(n=(a=(r=this.processQueryErrorOrContinue(t))!=null?r:await this.processQueryCorrectionsOrContinue(t))!=null?a:await this.processQueryTriggersOrContinue(t))!=null?n:this.processSuccessResponse(t)}processQueryErrorOrContinue(t){return ye(t.response)?(this.dispatch(lt(t.response.error)),this.rejectWithValue(t.response.error)):null}async processQueryCorrectionsOrContinue(t){let r=this.getState(),a=this.getSuccessResponse(t);if(!a||!r.didYouMean)return null;let{enableDidYouMean:n,automaticallyCorrectQuery:o}=r.didYouMean,{results:i,queryCorrections:s,queryCorrection:c}=a;if(!n||!o)return null;let u=i.length===0&&s&&s.length!==0,l=!te(c)&&!te(c.correctedQuery);if(!u&&!l)return null;let p=u?await this.processLegacyDidYouMeanAutoCorrection(t):this.processModernDidYouMeanAutoCorrection(t);return this.dispatch(ht(Nt(this.getState()))),p}async processLegacyDidYouMeanAutoCorrection(t){let r=this.getCurrentQuery(),a=this.getSuccessResponse(t);if(!a.queryCorrections)return null;let{correctedQuery:n}=a.queryCorrections[0],o=await this.automaticallyRetryQueryWithCorrection(n);return ye(o.response)?(this.dispatch(lt(o.response.error)),this.rejectWithValue(o.response.error)):(this.logOriginalAnalyticsQueryBeforeAutoCorrection(t),this.dispatch(ht(Nt(this.getState()))),{...o,response:{...o.response.success,queryCorrections:a.queryCorrections},automaticallyCorrected:!0,originalQuery:r,analyticsAction:Uf()})}processModernDidYouMeanAutoCorrection(t){let r=this.getSuccessResponse(t),{correctedQuery:a,originalQuery:n}=r.queryCorrection;return this.onUpdateQueryForCorrection(a),{...t,response:{...r},queryExecuted:a,automaticallyCorrected:!0,originalQuery:n,analyticsAction:Uf()}}logOriginalAnalyticsQueryBeforeAutoCorrection(t){let r=this.getState(),a=this.getSuccessResponse(t);this.analyticsAction&&this.analyticsAction()(this.dispatch,()=>this.getStateAfterResponse(t.queryExecuted,t.duration,r,a),this.extra)}async processQueryTriggersOrContinue(t){var s,c;let r=this.getSuccessResponse(t);if(!r)return null;let a=((s=r.triggers.find(u=>u.type==="query"))==null?void 0:s.content)||"";if(!a)return null;if(((c=this.getState().triggers)==null?void 0:c.queryModification.queryToIgnore)===a)return this.dispatch(ba("")),null;this.analyticsAction&&await this.dispatch(this.analyticsAction);let o=this.getCurrentQuery(),i=await this.automaticallyRetryQueryWithTriggerModification(a);return ye(i.response)?(this.dispatch(lt(i.response.error)),this.rejectWithValue(i.response.error)):(this.dispatch(ht(Nt(this.getState()))),{...i,response:{...i.response.success},automaticallyCorrected:!1,originalQuery:o,analyticsAction:Tu()})}getStateAfterResponse(t,r,a,n){var o,i;return{...a,query:{q:t,enableQuerySyntax:(i=(o=a.query)==null?void 0:o.enableQuerySyntax)!=null?i:xe().enableQuerySyntax},search:{...Te(),duration:r,response:n,results:n.results}}}processSuccessResponse(t){return this.dispatch(ht(Nt(this.getState()))),{...t,response:this.getSuccessResponse(t),automaticallyCorrected:!1,originalQuery:this.getCurrentQuery(),analyticsAction:this.analyticsAction}}getSuccessResponse(t){return Nc(t.response)?t.response.success:null}async automaticallyRetryQueryWithCorrection(t){this.onUpdateQueryForCorrection(t);let r=await this.fetchFromAPI(await qe(this.getState()),{origin:"mainSearch"});return this.dispatch(Rt(t)),r}async automaticallyRetryQueryWithTriggerModification(t){return this.dispatch(Eo({newQuery:t,originalQuery:this.getCurrentQuery()})),this.onUpdateQueryForCorrection(t),await this.fetchFromAPI(await qe(this.getState()),{origin:"mainSearch"})}getCurrentQuery(){var r;let t=this.getState();return((r=t.query)==null?void 0:r.q)!==void 0?t.query.q:""}get extra(){return this.config.extra}getState(){return this.config.getState()}get dispatch(){return this.config.dispatch}get analyticsAction(){return this.config.analyticsAction}get rejectWithValue(){return this.config.rejectWithValue}};var qH=W("search/prepareForSearchWithQuery",(e,t)=>{let{dispatch:r}=t;A(e,{q:new w,enableQuerySyntax:new K,clearFilters:new K}),e.clearFilters&&(r(Fe()),r(va())),r(bt({allow:!0})),r(Ye({q:e.q,enableQuerySyntax:e.enableQuerySyntax})),r(Ft(1))}),ko=W("search/executeSearch",async(e,t)=>{let r=t.getState();return await Qu(r,t,e)}),Oo=W("search/fetchPage",async(e,t)=>{let r=t.getState();return await $f(r,t,e)}),qo=W("search/fetchMoreResults",async(e,t)=>{let r=t.getState();return await Hf(t,r)}),Nu=W("search/fetchFacetValues",async(e,t)=>{let r=t.getState();return await WI(t,e,r)}),SC=W("search/fetchInstantResults",async(e,t)=>_f(e,t)),HI=async(e,t)=>{var a,n,o,i;let r=await qe(e,t);return r.request={...r.request,firstResult:((n=(a=e.pagination)==null?void 0:a.firstResult)!=null?n:0)+((i=(o=e.search)==null?void 0:o.results.length)!=null?i:0)},r},GI=async(e,t,r)=>{let a=await Aa(e);return Fo({...a,...e.didYouMean&&{enableDidYouMean:e.didYouMean.enableDidYouMean},numberOfResults:r,q:t})},zI=async(e,t)=>{let r=await qe(e,t);return r.request.numberOfResults=0,r},yC=e=>{var t;e.configuration.analytics.enabled&&vt.addElement({name:"Query",...((t=e.query)==null?void 0:t.q)&&{value:e.query.q},time:JSON.stringify(new Date)})};async function _f(e,t){A(e,{id:O,q:O,maxResultsPerQuery:new D({required:!0,min:1}),cacheTimeout:new D});let{q:r,maxResultsPerQuery:a}=e,n=t.getState(),o=new fn({...t,analyticsAction:Jy()},u=>{t.dispatch(sr({q:u,id:e.id}))}),i=await GI(n,r,a),s=await o.fetchFromAPI(i,{origin:"instantResults",disableAbortWarning:!0}),c=await o.process(s);return"response"in c?{results:c.response.results,searchUid:c.response.searchUid,analyticsAction:c.analyticsAction,totalCountFiltered:c.response.totalCountFiltered,duration:c.duration}:c}async function $f(e,t,r){yC(e);let{analyticsClientMiddleware:a,preprocessRequest:n,logger:o}=t.extra,{description:i}=await r.prepare({getState:()=>t.getState(),analyticsClientMiddleware:a,preprocessRequest:n,logger:o}),s=new fn({...t,analyticsAction:r}),c=await qe(e,i),u=await s.fetchFromAPI(c,{origin:"mainSearch"});return await s.process(u)}async function Hf(e,t){let{analyticsClientMiddleware:r,preprocessRequest:a,logger:n}=e.extra,{description:o}=await Vf().prepare({getState:()=>e.getState(),analyticsClientMiddleware:r,preprocessRequest:a,logger:n}),i=new fn({...e,analyticsAction:Vf()}),s=await HI(t,o),c=await i.fetchFromAPI(s,{origin:"mainSearch"});return await i.process(c)}async function WI(e,t,r){let{analyticsClientMiddleware:a,preprocessRequest:n,logger:o}=e.extra,{description:i}=await t.prepare({getState:()=>e.getState(),analyticsClientMiddleware:a,preprocessRequest:n,logger:o}),s=new fn({...e,analyticsAction:t}),c=await zI(r,i),u=await s.fetchFromAPI(c,{origin:"facetValues"});return await s.process(u)}async function Qu(e,t,r){yC(e);let{analyticsClientMiddleware:a,preprocessRequest:n,logger:o}=t.extra,{description:i}=await r.prepare({getState:()=>t.getState(),analyticsClientMiddleware:a,preprocessRequest:n,logger:o}),s=await qe(e,i),c=new fn({...t,analyticsAction:r}),u=await c.fetchFromAPI(s,{origin:"mainSearch"});return await c.process(u)}var mn=class{constructor(t,r=a=>{this.dispatch(Ye({q:a}))}){this.config=t;this.onUpdateQueryForCorrection=r}async fetchFromAPI({mappings:t,request:r},a){var c;let n=new Date().getTime(),o=Eu(await this.extra.apiClient.search(r,a),t),i=new Date().getTime()-n,s=((c=this.getState().query)==null?void 0:c.q)||"";return{response:o,duration:i,queryExecuted:s,requestExecuted:r}}async process(t){var r,a,n;return(n=(a=(r=this.processQueryErrorOrContinue(t))!=null?r:await this.processQueryCorrectionsOrContinue(t))!=null?a:await this.processQueryTriggersOrContinue(t))!=null?n:this.processSuccessResponse(t)}processQueryErrorOrContinue(t){return ye(t.response)?(this.dispatch(lt(t.response.error)),this.rejectWithValue(t.response.error)):null}async processQueryCorrectionsOrContinue(t){let r=this.getState(),a=this.getSuccessResponse(t);if(!a||!r.didYouMean)return null;let{enableDidYouMean:n,automaticallyCorrectQuery:o}=r.didYouMean,{results:i,queryCorrections:s,queryCorrection:c}=a;if(!n||!o)return null;let u=i.length===0&&s&&s.length!==0,l=!te(c)&&!te(c.correctedQuery);if(!u&&!l)return null;let p=u?await this.processLegacyDidYouMeanAutoCorrection(t):this.processModernDidYouMeanAutoCorrection(t);return this.dispatch(ht(Nt(this.getState()))),p}async processLegacyDidYouMeanAutoCorrection(t){let r=this.getCurrentQuery(),a=this.getSuccessResponse(t);if(!a.queryCorrections)return null;let{correctedQuery:n}=a.queryCorrections[0],o=await this.automaticallyRetryQueryWithCorrection(n);return ye(o.response)?(this.dispatch(lt(o.response.error)),this.rejectWithValue(o.response.error)):(this.dispatch(ht(Nt(this.getState()))),{...o,response:{...o.response.success,queryCorrections:a.queryCorrections},automaticallyCorrected:!0,originalQuery:r})}processModernDidYouMeanAutoCorrection(t){let r=this.getSuccessResponse(t),{correctedQuery:a,originalQuery:n}=r.queryCorrection;return this.onUpdateQueryForCorrection(a),{...t,response:{...r},queryExecuted:a,automaticallyCorrected:!0,originalQuery:n}}async processQueryTriggersOrContinue(t){var s,c;let r=this.getSuccessResponse(t);if(!r)return null;let a=((s=r.triggers.find(u=>u.type==="query"))==null?void 0:s.content)||"";if(!a)return null;if(((c=this.getState().triggers)==null?void 0:c.queryModification.queryToIgnore)===a)return this.dispatch(ba("")),null;let o=this.getCurrentQuery(),i=await this.automaticallyRetryQueryWithTriggerModification(a);return ye(i.response)?(this.dispatch(lt(i.response.error)),this.rejectWithValue(i.response.error)):(this.dispatch(ht(Nt(this.getState()))),{...i,response:{...i.response.success},automaticallyCorrected:!1,originalQuery:o})}processSuccessResponse(t){return this.dispatch(ht(Nt(this.getState()))),{...t,response:this.getSuccessResponse(t),automaticallyCorrected:!1,originalQuery:this.getCurrentQuery()}}getSuccessResponse(t){return Nc(t.response)?t.response.success:null}async automaticallyRetryQueryWithCorrection(t){this.onUpdateQueryForCorrection(t);let r=this.getState(),{actionCause:a,getEventExtraPayload:n}=gC(),o=await this.fetchFromAPI(await qe(r,{actionCause:a,customData:n(r)}),{origin:"mainSearch"});return this.dispatch(Rt(t)),o}async automaticallyRetryQueryWithTriggerModification(t){return this.dispatch(Eo({newQuery:t,originalQuery:this.getCurrentQuery()})),this.onUpdateQueryForCorrection(t),await this.fetchFromAPI(await qe(this.getState()),{origin:"mainSearch"})}getCurrentQuery(){var r;let t=this.getState();return((r=t.query)==null?void 0:r.q)!==void 0?t.query.q:""}get extra(){return this.config.extra}getState(){return this.config.getState()}get dispatch(){return this.config.dispatch}get rejectWithValue(){return this.config.rejectWithValue}};var Bu=W("search/prepareForSearchWithQuery",(e,t)=>{let{dispatch:r}=t;A(e,{q:new w,enableQuerySyntax:new K,clearFilters:new K}),e.clearFilters&&(r(Fe()),r(va())),r(bt({allow:!0})),r(Ye({q:e.q,enableQuerySyntax:e.enableQuerySyntax})),r(Ft(1))}),I=W("search/executeSearch",async(e,t)=>{let r=t.getState();if(r.configuration.analytics.analyticsMode==="legacy"||!e.next)return Qu(r,t,e.legacy);CC(r);let a=Gf(e.next,r),n=await qe(r,a),o=new mn({...t,analyticsAction:a}),i=await o.fetchFromAPI(n,{origin:"mainSearch"});return await o.process(i)}),ur=W("search/fetchPage",async(e,t)=>{let r=t.getState();if(CC(r),r.configuration.analytics.analyticsMode==="legacy"||!e.next)return $f(r,t,e.legacy);let a=new mn({...t,analyticsAction:e.next}),n=await qe(r,e.next),o=await a.fetchFromAPI(n,{origin:"mainSearch"});return await a.process(o)}),Fa=W("search/fetchMoreResults",async(e,t)=>{let r=t.getState();if(r.configuration.analytics.analyticsMode==="legacy")return Hf(t,r);let a=Ly(oe.pagerScrolling,t.getState),n=new mn({...t,analyticsAction:a}),o=await YI(r,a),i=await n.fetchFromAPI(o,{origin:"mainSearch"});return await n.process(i)}),lr=W("search/fetchFacetValues",async(e,t)=>{let r=t.getState();if(r.configuration.analytics.analyticsMode==="legacy"||!e.next)return Qu(r,t,e.legacy);let a=Gf(e.next,r),n=new mn({...t,analyticsAction:a}),o=await JI(r,a),i=await n.fetchFromAPI(o,{origin:"facetValues"});return await n.process(i)}),To=W("search/fetchInstantResults",async(e,t)=>{let r=t.getState();if(r.configuration.analytics.analyticsMode==="legacy")return _f(e,t);A(e,{id:O,q:O,maxResultsPerQuery:new D({required:!0,min:1}),cacheTimeout:new D});let{q:a,maxResultsPerQuery:n}=e,o=Gf(Xy(),r),i=await KI(r,a,n,o),s=new mn({...t,analyticsAction:o},l=>{t.dispatch(sr({q:l,id:e.id}))}),c=await s.fetchFromAPI(i,{origin:"instantResults",disableAbortWarning:!0}),u=await s.process(c);return"response"in u?{results:u.response.results,searchUid:u.response.searchUid,totalCountFiltered:u.response.totalCountFiltered,duration:u.duration}:u}),YI=async(e,t)=>{var a,n,o,i;let r=await qe(e,t);return r.request={...r.request,firstResult:((n=(a=e.pagination)==null?void 0:a.firstResult)!=null?n:0)+((i=(o=e.search)==null?void 0:o.results.length)!=null?i:0)},r},KI=async(e,t,r,a)=>{let n=await Aa(e,a);return Fo({...n,...e.didYouMean&&{enableDidYouMean:e.didYouMean.enableDidYouMean},numberOfResults:r,q:t})},JI=async(e,t)=>{let r=await qe(e,t);return r.request.numberOfResults=0,r},CC=e=>{var t;e.configuration.analytics.enabled&&vt.addElement({name:"Query",...((t=e.query)==null?void 0:t.q)&&{value:e.query.q},time:JSON.stringify(new Date)})},Gf=(e,t)=>({customData:e.getEventExtraPayload(t),actionCause:e.actionCause,type:e.actionCause});var Ra=(e,t)=>{let r=e;return te(r[t])?te(e.raw[t])?null:e.raw[t]:r[t]},XI=e=>t=>e.every(r=>!te(Ra(t,r))),ZI=e=>t=>e.every(r=>te(Ra(t,r))),eE=(e,t)=>r=>{let a=xC(e,r);return t.some(n=>a.some(o=>`${o}`.toLowerCase()===n.toLowerCase()))},tE=(e,t)=>r=>{let a=xC(e,r);return t.every(n=>a.every(o=>`${o}`.toLowerCase()!==n.toLowerCase()))},xC=(e,t)=>{let r=Ra(t,e);return Ec(r)?r:[r]},rE={getResultProperty:Ra,fieldsMustBeDefined:XI,fieldsMustNotBeDefined:ZI,fieldMustMatch:eE,fieldMustNotMatch:tE};function Ms(e){return e.search.response.searchUid!==""}function vC(e,t,r){return e.search.results.find(a=>Ra(a,t)===r)}function zf(e,t){var a;let r=(a=t.payload)!=null?a:null;r&&(e.response=Te().response,e.results=[],e.questionAnswer=Gn()),e.error=r,e.isLoading=!1}function Wf(e,t){e.error=null,e.response=t.payload.response,e.queryExecuted=t.payload.queryExecuted,e.duration=t.payload.duration,e.isLoading=!1}function aE(e,t){Wf(e,t),e.results=t.payload.response.results,e.searchResponseId=t.payload.response.searchUid,e.questionAnswer=t.payload.response.questionAnswer,e.extendedResults=t.payload.response.extendedResults}function Yf(e,t){e.isLoading=!0,e.requestId=t.meta.requestId}var J=T(Te(),e=>{e.addCase(ko.rejected,(t,r)=>zf(t,r)),e.addCase(qo.rejected,(t,r)=>zf(t,r)),e.addCase(Oo.rejected,(t,r)=>zf(t,r)),e.addCase(ko.fulfilled,(t,r)=>{aE(t,r)}),e.addCase(qo.fulfilled,(t,r)=>{Wf(t,r),t.results=[...t.results,...r.payload.response.results]}),e.addCase(Oo.fulfilled,(t,r)=>{Wf(t,r),t.results=r.payload.response.results}),e.addCase(Nu.fulfilled,(t,r)=>{t.response.facets=r.payload.response.facets,t.response.searchUid=r.payload.response.searchUid}),e.addCase(ko.pending,Yf),e.addCase(qo.pending,Yf),e.addCase(Oo.pending,Yf)});var AC=T(un,e=>e);var RC=Ie(FC());var Do=C("tab/register",e=>{let t=new q({values:{id:O,expression:ge}});return A(e,t)}),jt=C("tab/updateActiveTab",e=>A(e,O));function oE(e,t){if(cS(e))return e.replace(/^(https:\/\/)platform/,"$1analytics")+Jp;let a=uS(e,t);return a?gs(t,a.environment).analytics:e}var ju=T(it(),e=>e.addCase(ir,(t,r)=>{r.payload.accessToken&&(t.accessToken=r.payload.accessToken),r.payload.organizationId&&(t.organizationId=r.payload.organizationId),r.payload.platformUrl&&(t.platformUrl=r.payload.platformUrl,t.search.apiBaseUrl=`${r.payload.platformUrl}${Kp}`,t.analytics.apiBaseUrl=oE(r.payload.platformUrl,t.organizationId))}).addCase(At,(t,r)=>{r.payload.apiBaseUrl&&(t.search.apiBaseUrl=r.payload.apiBaseUrl),r.payload.locale&&(t.search.locale=r.payload.locale),r.payload.timezone&&(t.search.timezone=r.payload.timezone),r.payload.authenticationProviders&&(t.search.authenticationProviders=r.payload.authenticationProviders)}).addCase(Ca,(t,r)=>{te(r.payload.enabled)||(t.analytics.enabled=r.payload.enabled),te(r.payload.originContext)||(t.analytics.originContext=r.payload.originContext),te(r.payload.originLevel2)||(t.analytics.originLevel2=r.payload.originLevel2),te(r.payload.originLevel3)||(t.analytics.originLevel3=r.payload.originLevel3),te(r.payload.apiBaseUrl)||(t.analytics.apiBaseUrl=r.payload.apiBaseUrl),te(r.payload.nextApiBaseUrl)||(t.analytics.nextApiBaseUrl=r.payload.nextApiBaseUrl),te(r.payload.trackingId)||(t.analytics.trackingId=r.payload.trackingId),te(r.payload.analyticsMode)||(t.analytics.analyticsMode=r.payload.analyticsMode),te(r.payload.source)||(t.analytics.source=r.payload.source);let a=(0,RC.default)();a&&(t.analytics.analyticsMode="next",t.analytics.trackingId=a),te(r.payload.runtimeEnvironment)||(t.analytics.runtimeEnvironment=r.payload.runtimeEnvironment),te(r.payload.anonymous)||(t.analytics.anonymous=r.payload.anonymous),te(r.payload.deviceId)||(t.analytics.deviceId=r.payload.deviceId),te(r.payload.userDisplayName)||(t.analytics.userDisplayName=r.payload.userDisplayName),te(r.payload.documentLocation)||(t.analytics.documentLocation=r.payload.documentLocation)}).addCase(so,t=>{t.analytics.enabled=!1}).addCase(co,t=>{t.analytics.enabled=!0}).addCase(vu,(t,r)=>{t.analytics.originLevel2=r.payload.originLevel2}).addCase(Au,(t,r)=>{t.analytics.originLevel3=r.payload.originLevel3}).addCase(jt,(t,r)=>{t.analytics.originLevel2=r.payload}).addCase(ue,(t,r)=>{t.analytics.originLevel2=r.payload.tab||t.analytics.originLevel2}));var $=ju;function PC(e,t){let r={...e},a,n=o=>(i,s)=>{let c=o(i,s);return a?a(c,s):c};return{get combinedReducer(){let o=Yh(Object.entries(t).filter(([i])=>!(i in r)).map(([i,s])=>[i,()=>s]));return n((0,h.combineReducers)({...o,...r}))},containsAll(o){return Object.keys(o).every(s=>s in r)},add(o){Object.keys(o).filter(i=>!(i in r)).forEach(i=>r[i]=o[i])},addCrossReducer(o){a=o}}}function Uu(e,t,r){var a,n,o;t===void 0&&(t=50),r===void 0&&(r={});var i=(a=r.isImmediate)!=null&&a,s=(n=r.callback)!=null&&n,c=r.maxWait,u=Date.now(),l=[];function d(){if(c!==void 0){var f=Date.now()-u;if(f+t>=c)return c-f}return t}var p=function(){var f=[].slice.call(arguments),m=this;return new Promise(function(g,S){var y=i&&o===void 0;if(o!==void 0&&clearTimeout(o),o=setTimeout(function(){if(o=void 0,u=Date.now(),!i){var b=e.apply(m,f);s&&s(b),l.forEach(function(P){return(0,P.resolve)(b)}),l=[]}},d()),y){var x=e.apply(m,f);return s&&s(x),g(x)}l.push({resolve:g,reject:S})})};return p.cancel=function(f){o!==void 0&&clearTimeout(o),l.forEach(function(m){return(0,m.reject)(f)}),l=[]},p}function wC(e,t){let r=0,a=Uu(()=>r=0,500);return n=>o=>async i=>{if(!(typeof i=="function"))return o(i);let c=await o(i);if(!iE(c))return c;if(typeof t!="function")return e.warn("Unable to renew the expired token because a renew function was not provided. Please specify the #renewAccessToken option when initializing the engine."),c;if(r>=5)return e.warn("Attempted to renew the token but was not successful. Please check the #renewAccessToken function."),c;r++,a();let u=await sE(t);n.dispatch(ir({accessToken:u})),n.dispatch(i)}}function iE(e){var t;return((t=e==null?void 0:e.error)==null?void 0:t.name)===new fs().name}async function sE(e){try{return await e()}catch(t){return""}}function IC({reducer:e,preloadedState:t,middlewares:r=[],thunkExtraArguments:a,name:n}){return Cp({reducer:e,preloadedState:t,devTools:{stateSanitizer:o=>o.history?{...o,history:"<>"}:o,name:n,shouldHotReload:!1},middleware:o=>[...r,...o({thunk:{extraArgument:a}}),Rc(a.logger)]})}var cE={configuration:$,version:AC};function uE(e,t){var i,s;let r=((i=e.configuration.organizationEndpoints)==null?void 0:i.analytics)||void 0,{analyticsClientMiddleware:a,...n}=(s=e.configuration.analytics)!=null?s:{},o={...n,nextApiBaseUrl:`${r}/rest/organizations/${e.configuration.organizationId}/events/v1`,apiBaseUrl:r};return qc()?(t.info("Analytics disabled since doNotTrack is active."),{...o,enabled:!1}):o}function EC(e,t){var c;let r=lE(e,t),{accessToken:a,organizationId:n}=e.configuration,{organizationEndpoints:o}=e.configuration,i=(o==null?void 0:o.platform)||e.configuration.platformUrl;mE(e)&&r.logger.warn(`The \`platformUrl\` (${e.configuration.platformUrl}) option will be deprecated in the next major version. Consider using the \`organizationEndpoints\` option instead. See [Organization endpoints](https://docs.coveo.com/en/mcc80216).`),fE(e)?r.logger.warn("The `organizationEndpoints` options was not explicitly set in the Headless engine configuration. Coveo recommends setting this option, as it has resiliency benefits and simplifies the overall configuration for multi-region deployments. See [Organization endpoints](https://docs.coveo.com/en/mcc80216)."):gE(e)&&r.logger.warn(`There is a mismatch between the \`organizationId\` option (${e.configuration.organizationId}) and the organization configured in the \`organizationEndpoints\` option (${(c=e.configuration.organizationEndpoints)==null?void 0:c.platform}). This could lead to issues that are complex to troubleshoot. Please make sure both values match.`),r.dispatch(ir({accessToken:a,organizationId:n,platformUrl:i}));let s=uE(e,r.logger);return s&&r.dispatch(Ca(s)),r}function lE(e,t){var i;let{reducers:r}=e,a=PC({...cE,...r},(i=e.preloadedState)!=null?i:{});e.crossReducer&&a.addCrossReducer(e.crossReducer);let n=t.logger,o=dE(e,t,a);return{addReducers(s){a.containsAll(s)||(a.add(s),o.replaceReducer(a.combinedReducer))},dispatch:o.dispatch,subscribe:o.subscribe,enableAnalytics(){o.dispatch(co())},disableAnalytics(){o.dispatch(so())},get state(){return o.getState()},get relay(){return mu(this.state)},logger:n,store:o}}function dE(e,t,r){let{preloadedState:a,configuration:n}=e,o=n.name||"coveo-headless",i=pE(e,t.logger);return IC({preloadedState:a,reducer:r.combinedReducer,middlewares:i,thunkExtraArguments:t,name:o})}function pE(e,t){let{renewAccessToken:r}=e.configuration,a=wC(t,r);return[bc,a,Fc(t),Ac].concat(e.middlewares||[])}function fE(e){return Ee(e.configuration.organizationEndpoints)}function mE(e){var t;return!te(e.configuration.platformUrl)||te((t=e.configuration.organizationEndpoints)==null?void 0:t.platform)}function gE(e){let{platform:t}=e.configuration.organizationEndpoints;if(Ee(t))return!1;let r=Zp(t);return r&&r.organizationId!==e.configuration.organizationId}var kC=Ie(ls());function OC(e){return(0,kC.default)({name:"@coveo/headless",level:(e==null?void 0:e.level)||"warn",formatters:{log:e==null?void 0:e.logFormatter}})}function qC(e,t){let r=hE(e),a=nt,n=SE(e);return{analyticsClientMiddleware:r,validatePayload:a,preprocessRequest:n,logger:t}}function hE(e){let{analytics:t}=e,r=(a,n)=>n;return(t==null?void 0:t.analyticsClientMiddleware)||r}function SE(e){return e.preprocessRequest||Za}var TC=Ie(Wp());var Kf=(e,t,r,a,n,o)=>{let i=e[t];te(i)||te(n)||n!==i&&n!==a&&(o.warn(`Mismatch on access token (JWT Token) ${t} and engine configuration.`),o.warn(`To remove this warning, make sure that access token value [${i}] matches engine configuration value [${r}]`))},Jf=(e,t)=>!(te(e)||t===e),Ls=e=>{try{let t=typeof atob!="undefined"?atob:TC.atob,a=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),n=t(a);if(!n)return!1;let o=decodeURIComponent(n.split("").map(i=>"%"+("00"+i.charCodeAt(0).toString(16)).slice(-2)).join(""));return JSON.parse(o)}catch(t){return!1}},DC=(e,t)=>(Jf(e.searchHub,t.searchHub)&&(t.searchHub=e.searchHub),t),VC=(e,t,r,a)=>(Kf(e,"searchHub",t.searchHub,Ge(),r,a),DC(e,t)),MC=(e,t)=>(Jf(e.pipeline,t.pipeline)&&(t.pipeline=e.pipeline),t),LC=(e,t,r,a)=>(Kf(e,"pipeline",t.pipeline,Lt(),r,a),MC(e,t)),NC=(e,t)=>(Jf(e.userDisplayName,t.configuration.analytics.userDisplayName)&&(t.configuration.analytics.userDisplayName=e.userDisplayName),t),yE=(e,t,r,a)=>(Kf(e,"userDisplayName",t.configuration.analytics.userDisplayName,it().analytics.userDisplayName,r,a),NC(e,t)),QC=e=>T({},t=>{t.addCase(mo,(r,a)=>{let n=Ls(r.configuration.accessToken);return n?VC(n,r,a.payload,e):r}).addCase(po,(r,a)=>{let n=Ls(r.configuration.accessToken);return n?LC(n,r,a.payload,e):r}).addCase(ir,(r,a)=>{if(r.configuration.accessToken!==a.payload.accessToken)return r;let{accessToken:n}=a.payload;if(!n)return r;let o=Ls(n);return o?[MC,DC,NC].reduce((i,s)=>s(o,i),r):r}).addCase(At,(r,a)=>{var s;let n=Ls(r.configuration.accessToken);if(!n)return r;let o=VC(n,r,a.payload.searchHub,e);return LC(n,o,(s=a.payload)==null?void 0:s.pipeline,e)}).addCase(Ca,(r,a)=>{let n=Ls(r.configuration.accessToken);return n?yE(n,r,a.payload.userDisplayName,e):r})});var BC={organizationId:O,accessToken:O,platformUrl:new w({required:!1,emptyAllowed:!1}),name:new w({required:!1,emptyAllowed:!1}),analytics:new q({options:{required:!1},values:{enabled:new K({required:!1}),originContext:new w({required:!1}),originLevel2:new w({required:!1}),originLevel3:new w({required:!1}),analyticsMode:new w({constrainTo:["legacy","next"],required:!1})}})};function jC(){return{organizationId:"searchuisamples",accessToken:"xx564559b1-0045-48e1-953c-3addd1ee4457",organizationEndpoints:gs("searchuisamples")}}var UC=new Y({...BC,search:new q({options:{required:!1},values:{pipeline:new w({required:!1,emptyAllowed:!0}),searchHub:de,locale:de,timezone:de,authenticationProviders:new X({required:!1,each:O})}})});function _C(){return{...jC(),search:{searchHub:"default"}}}var CE={debug:lo,pipeline:fo,searchHub:go,search:J};function xE(e){var n;let t=e.configuration.search,r=((n=e.configuration.organizationEndpoints)==null?void 0:n.search)||void 0;return{...t,apiBaseUrl:r}}function vE(e){let t=OC(e.loggerOptions);AE(e.configuration,t);let r=bE(e.configuration,t),a=FE(t),n={...qC(e.configuration,t),apiClient:r,streamingClient:a},o={...e,reducers:CE,crossReducer:QC(t)},i=EC(o,n),s=xE(e);return s&&i.dispatch(At(s)),{...i,get state(){return i.state},executeFirstSearch(c=yu()){if(Ms(i.state))return;let u=I({legacy:c,next:Gy()});i.dispatch(u)},executeFirstSearchAfterStandaloneSearchBoxRedirect(c){let{cause:u,metadata:l}=c;if(Ms(i.state))return;let d=l&&u==="omniboxFromLink",p=I({legacy:d?xu(l):Cu(),next:d?Wy(l):zy()});i.dispatch(p)}}}function AE(e,t){try{UC.validate(e)}catch(r){throw t.error(r,"Search engine configuration error"),r}}function bE(e,t){let{search:r}=e;return new Ss({logger:t,preprocessRequest:e.preprocessRequest||Za,postprocessSearchResponseMiddleware:(r==null?void 0:r.preprocessSearchResponseMiddleware)||jc,postprocessFacetSearchResponseMiddleware:(r==null?void 0:r.preprocessFacetSearchResponseMiddleware)||Uc,postprocessQuerySuggestResponseMiddleware:(r==null?void 0:r.preprocessQuerySuggestResponseMiddleware)||_c})}function FE(e){return new lf({logger:e})}function M(e){let t,r=new Map,a=()=>r.size===0,n=o=>{try{let i=JSON.stringify(o),s=t!==i;return t=i,s}catch(i){return console.warn('Could not detect if state has changed, check the controller "get state method"',i),!0}};return{subscribe(o){o();let i=Symbol(),s;return a()&&(t=JSON.stringify(this.state),s=e.subscribe(()=>{n(this.state)&&r.forEach(c=>c())})),r.set(i,o),()=>{r.delete(i),a()&&s&&s()}},get state(){return{}}}}var $C=e=>{let t=/Document weights:\n((?:.)*?)\n+/g,r=/Terms weights:\n((?:.|\n)*)\n+/g,a=/Total weight: ([0-9]+)/g;if(!e)return null;let n=t.exec(e),o=r.exec(e),i=a.exec(e),s=PE(e),c=HC(n?n[1]:null),u=RE(o),l=i?Number(i[1]):null;return{documentWeights:c,termsWeight:u,totalWeight:l,qreWeights:s}},HC=e=>{let t=/(\w+(?:\s\w+)*): ([-0-9]+)/g,r=/^(\w+(?:\s\w+)*): ([-0-9]+)$/;if(!e)return null;let a=e.match(t);if(!a)return null;let n={};for(let o of a){let i=o.match(r);if(i){let s=i[1],c=i[2];n[s]=Number(c)}}return n},GC=(e,t)=>{let r=[],a;for(;(a=t.exec(e))!==null;)r.push(a);return r},RE=e=>{let t=/((?:[^:]+: [0-9]+, [0-9]+; )+)\n((?:\w+: [0-9]+; )+)/g,r=/([^:]+): ([0-9]+), ([0-9]+); /g;if(!e||!e[1])return null;let a=GC(e[1],t);if(!a)return null;let n={};for(let o of a){let i=GC(o[1],r),s={};for(let u of i)s[u[1]]={Correlation:Number(u[2]),"TF-IDF":Number(u[3])};let c=HC(o[2]);n[Object.keys(s).join(", ")]={terms:s,Weights:c}}return n},PE=e=>{let t=/(Expression:\s".*")\sScore:\s(?!0)([-0-9]+)\n+/g,r=t.exec(e),a=[];for(;r;)a.push({expression:r[1],score:parseInt(r[2],10)}),r=t.exec(e);return a};function zC(e){return e.search.response.results.map(r=>{let a=$C(r.rankingInfo);return{result:r,ranking:a}})}var Pa=C("fields/registerFieldsToInclude",e=>A(e,Pc)),Vo=C("fields/fetchall/enable"),gn=C("fields/fetchall/disable"),Mo=W("fields/fetchDescription",async(e,{extra:t,getState:r,rejectWithValue:a})=>{let n=r(),{accessToken:o,organizationId:i}=n.configuration,{apiBaseUrl:s}=n.configuration.search,c=await t.apiClient.fieldDescriptions({accessToken:o,organizationId:i,url:s});return ye(c)?a(c.error):c.success.fields});var Xf={collectionField:new w({emptyAllowed:!1,required:!1}),parentField:new w({emptyAllowed:!1,required:!1}),childField:new w({emptyAllowed:!1,required:!1}),numberOfFoldedResults:new D({min:0,required:!1})},wa=C("folding/register",e=>A(e,Xf)),Ia=W("folding/loadCollection",async(e,{getState:t,rejectWithValue:r,extra:{apiClient:a}})=>{let n=t(),o=await Aa(n),i=await a.search({...o,q:wE(n),enableQuerySyntax:!0,cq:`@${n.folding.fields.collection}="${e}"`,filterField:n.folding.fields.collection,childField:n.folding.fields.parent,parentField:n.folding.fields.child,filterFieldRange:100},{origin:"foldingCollection"});return ye(i)?r(i.error):{collectionId:e,results:i.success.results,rootResult:n.folding.collections[e].result}});function wE(e){return e.query.q===""?"":e.query.enableQuerySyntax?`${e.query.q} OR @uri`:`( <@- ${e.query.q} -@> ) OR @uri`}var Ea=T(Wn(),e=>e.addCase(Pa,(t,r)=>{t.fieldsToInclude=[...new Set(t.fieldsToInclude.concat(r.payload))]}).addCase(Vo,t=>{t.fetchAllFields=!0}).addCase(gn,t=>{t.fetchAllFields=!1}).addCase(Mo.fulfilled,(t,{payload:r})=>{t.fieldsDescription=r}).addCase(wa,(t,{payload:r})=>{var n,o,i;let a=rn().fields;t.fieldsToInclude.push((n=r.collectionField)!=null?n:a.collection,(o=r.parentField)!=null?o:a.parent,(i=r.childField)!=null?i:a.child)}));var IE=new Y({enabled:new K({default:!1})});function EE(e,t={}){if(!kE(e))throw k;let r=M(e),{dispatch:a}=e,n=()=>e.state;ke(e,IE,t.initialState,"buildRelevanceInspector").enabled&&a(xa());let i=s=>{e.logger.warn(`Flag [ ${s} ] is now activated. This should *not* be used in any production environment as it negatively impact performance.`)};return{...r,get state(){let s=n(),c=s.debug;if(!s.debug)return{isEnabled:c};let{executionReport:u,basicExpression:l,advancedExpression:d,constantExpression:p,userIdentities:f,rankingExpressions:m}=s.search.response,{fieldsDescription:g,fetchAllFields:S}=s.fields;return{isEnabled:c,rankingInformation:zC(s),executionReport:u,expressions:{basicExpression:l,advancedExpression:d,constantExpression:p},userIdentities:f,rankingExpressions:m,fieldsDescription:g,fetchAllFields:S}},enable(){a(xa()),i("debug")},disable(){a(uo()),a(gn())},enableFetchAllFields(){a(Vo()),i("fetchAllFields")},disableFetchAllFields(){a(gn())},fetchFieldsDescription(){!this.state.isEnabled&&a(xa()),a(Mo()),i("fieldsDescription"),e.logger.warn(`For production environment, please specify the necessary fields either when instantiating a ResultList controller, or by dispatching a registerFieldsToInclude action. + + https://docs.coveo.com/en/headless/latest/reference/search/controllers/result-list/#resultlistoptions + https://docs.coveo.com/en/headless/latest/reference/search/actions/field/#registerfieldstoinclude`)}}}function kE(e){return e.addReducers({debug:lo,search:J,configuration:$,fields:Ea}),!0}var OE=new X({each:O,required:!0}),WC=(e,t)=>(A(e,O),Un(t)?A(t,O):A(t,OE),{payload:{contextKey:e,contextValue:t}}),hn=C("context/set",e=>{for(let[t,r]of Object.entries(e))WC(t,r);return{payload:e}}),Sn=C("context/add",e=>WC(e.contextKey,e.contextValue)),yn=C("context/remove",e=>A(e,O));var _u=T(Wt(),e=>{e.addCase(hn,(t,r)=>{t.contextValues=r.payload}).addCase(Sn,(t,r)=>{t.contextValues[r.payload.contextKey]=r.payload.contextValue}).addCase(yn,(t,r)=>{delete t.contextValues[r.payload]}).addCase(ce.fulfilled,(t,r)=>{!r.payload||(t.contextValues=r.payload.context.contextValues)})});var qE=["caseId","caseNumber"],TE={caseId:"caseContext",caseNumber:"caseContext"},$u=class extends Error{constructor(t){super(`The key "${t}" is reserved for internal use. Use ${TE[t]} to set this value.}`)}};function Zf(e){return qE.includes(e)}var DE=new Y({values:new q({options:{required:!1}})});function YC(e,t={}){if(!LE(e))throw k;let r=M(e),{dispatch:a}=e,n=()=>e.state,o=ke(e,DE,t.initialState,"buildContext");return o.values&&a(hn(o.values)),{...r,get state(){return{values:n().context.contextValues}},set(i){a(hn(i))},...n().configuration.analytics.analyticsMode==="legacy"?VE(a):ME(a)}}var VE=e=>({add(t,r){e(Sn({contextKey:t,contextValue:r}))},remove(t){e(yn(t))}}),ME=e=>({add(t,r){if(Zf(t))throw new $u(t);e(Sn({contextKey:t,contextValue:r}))},remove(t){if(Zf(t))throw new $u(t);e(yn(t))}});function LE(e){return e.addReducers({context:_u}),!0}function NE(e,t){return YC(e,t)}var Lo=C("dictionaryFieldContext/set",e=>{let t=new q({options:{required:!0}}),r=A(e,t).error;if(r)return{payload:e,error:r};let a=Object.values(e),n=new X({each:ge}),o=A(a,n).error;return o?{payload:e,error:o}:{payload:e}}),No=C("dictionaryFieldContext/add",e=>{let t=new q({options:{required:!0},values:{field:ge,key:ge}});return A(e,t)}),Qo=C("dictionaryFieldContext/remove",e=>A(e,ge));var Hu=T(ga(),e=>{e.addCase(Lo,(t,r)=>{t.contextValues=r.payload}).addCase(No,(t,r)=>{let{field:a,key:n}=r.payload;t.contextValues[a]=n}).addCase(Qo,(t,r)=>{delete t.contextValues[r.payload]}).addCase(ce.fulfilled,(t,r)=>{!r.payload||(t.contextValues=r.payload.dictionaryFieldContext.contextValues)})});function QE(e){if(!BE(e))throw k;let t=M(e),{dispatch:r}=e,a=()=>e.state;return{...t,get state(){return{values:a().dictionaryFieldContext.contextValues}},set(n){r(Lo(n))},add(n,o){r(No({field:n,key:o}))},remove(n){r(Qo(n))}}}function BE(e){return e.addReducers({dictionaryFieldContext:Hu}),!0}var Gu=T(ys(),e=>{e.addCase(Po,t=>{t.enableDidYouMean=!0}).addCase(ku,t=>{t.enableDidYouMean=!1}).addCase(Ou,t=>{t.automaticallyCorrectQuery=!0}).addCase(wo,t=>{t.automaticallyCorrectQuery=!1}).addCase(I.pending,t=>{t.queryCorrection=Bc(),t.wasAutomaticallyCorrected=!1,t.wasCorrectedTo=""}).addCase(I.fulfilled,(t,r)=>{var o;let{queryCorrection:a,queryCorrections:n}=r.payload.response;if(t.queryCorrectionMode==="legacy"){let i=n&&n[0]?n[0]:Bc();t.queryCorrection=i}if(t.queryCorrectionMode==="next"){let i={...gS(),...a,correctedQuery:(a==null?void 0:a.correctedQuery)||((o=a==null?void 0:a.corrections[0])==null?void 0:o.correctedQuery)||""};t.queryCorrection=i,t.wasCorrectedTo=i.correctedQuery}t.wasAutomaticallyCorrected=r.payload.automaticallyCorrected,t.originalQuery=r.payload.originalQuery}).addCase(Rt,(t,r)=>{t.wasCorrectedTo=r.payload}).addCase(Io,(t,r)=>{t.queryCorrectionMode=r.payload})});function KC(e,t={}){var o,i;if(!jE(e))throw k;let r=M(e),{dispatch:a}=e;a(Po()),((o=t.options)==null?void 0:o.automaticallyCorrectQuery)===!1&&a(wo()),a(Io(((i=t.options)==null?void 0:i.queryCorrectionMode)||"legacy"));let n=()=>e.state;return{...r,get state(){let s=n();return{originalQuery:s.didYouMean.originalQuery,wasCorrectedTo:s.didYouMean.wasCorrectedTo,wasAutomaticallyCorrected:s.didYouMean.wasAutomaticallyCorrected,queryCorrection:s.didYouMean.queryCorrection,hasQueryCorrection:s.didYouMean.queryCorrection.correctedQuery!==""||s.didYouMean.wasCorrectedTo!==""}},applyCorrection(){a(Rt(this.state.queryCorrection.correctedQuery))}}}function jE(e){return e.addReducers({configuration:$,didYouMean:Gu}),!0}function UE(e,t={}){let r=KC(e,t),{dispatch:a}=e;return{...r,get state(){return r.state},applyCorrection(){r.applyCorrection(),a(I({legacy:qu(),next:mC()}))}}}var ee=O;var ie=C("facetOptions/update",(e={freezeFacetOrder:!0})=>A(e,{freezeFacetOrder:new K({required:!1})})),Ke=C("facetOptions/facet/enable",e=>A(e,ee)),ve=C("facetOptions/facet/disable",e=>A(e,ee));var Ns={facetId:ee,captions:new q({options:{required:!1}}),numberOfValues:new D({required:!1,min:1}),query:new w({required:!1,emptyAllowed:!0})};var _E={path:new X({required:!0,each:O}),displayValue:ge,rawValue:ge,count:new D({required:!0,min:0})},Bo=C("categoryFacet/selectSearchResult",e=>A(e,{facetId:ee,value:new q({values:_E})})),jo=C("categoryFacetSearch/register",e=>A(e,Ns));function Uo(e,t){var o;let{facetId:r,criterion:a}=t,n=(o=e[r])==null?void 0:o.request;!n||(n.sortCriteria=a)}function Qs(e){!e||(e.currentValues=e.currentValues.map(t=>({...t,state:"idle"})),e.preventAutoSelect=!0)}function zu(e,t){!e||(e.numberOfValues=t)}function Wu(e,t){let r=e[t];!r||(r.request.numberOfValues=r.initialNumberOfValues,r.request.currentValues=[],r.request.preventAutoSelect=!0)}function em(e,t,r){e.currentValues=$E(t,r),e.numberOfValues=t.length?1:r,e.preventAutoSelect=!0}function $E(e,t){if(!e.length)return[];let r=JC(e[0],t),a=r;for(let n of e.splice(1)){let o=JC(n,t);a.children.push(o),a=o}return a.state="selected",a.retrieveChildren=!0,[r]}function JC(e,t){return{value:e,retrieveCount:t,children:[],state:"idle",retrieveChildren:!1}}var HE={state:new me({required:!0}),numberOfResults:new D({required:!0,min:0}),value:new w({required:!0,emptyAllowed:!0}),path:new X({required:!0,each:O}),moreValuesAvailable:new K({required:!1})};function tm(e){e.children.forEach(t=>{tm(t)}),nt({state:e.state,numberOfResults:e.numberOfResults,value:e.value,path:e.path,moreValuesAvailable:e.moreValuesAvailable},HE)}var _o={facetId:ee,field:O,delimitingCharacter:new w({required:!1,emptyAllowed:!0}),filterFacetCount:new K({required:!1}),injectionDepth:new D({required:!1,min:0}),numberOfValues:new D({required:!1,min:1}),sortCriteria:new me({required:!1}),basePath:new X({required:!1,each:O}),filterByBasePath:new K({required:!1})},dr=C("categoryFacet/register",e=>A(e,_o)),ka=C("categoryFacet/toggleSelectValue",e=>{try{return nt(e.facetId,O),tm(e.selection),{payload:e,error:null}}catch(t){return{payload:e,error:Vt(t)}}}),pr=C("categoryFacet/deselectAll",e=>A(e,_o.facetId)),Cn=C("categoryFacet/updateNumberOfValues",e=>A(e,{facetId:_o.facetId,numberOfValues:_o.numberOfValues})),$o=C("categoryFacet/updateSortCriterion",e=>A(e,{facetId:_o.facetId,criterion:new me})),Yu=C("categoryFacet/updateBasePath",e=>A(e,{facetId:_o.facetId,basePath:new X({each:O})}));var fr=T(Yt(),e=>{e.addCase(dr,(t,r)=>{let a=r.payload,{facetId:n}=a;if(n in t)return;let o=zE(a),i=o.numberOfValues;t[n]={request:o,initialNumberOfValues:i}}).addCase(ce.fulfilled,(t,r)=>{var a,n;return(n=(a=r.payload)==null?void 0:a.categoryFacetSet)!=null?n:t}).addCase(ue,(t,r)=>{let a=r.payload.cf||{};Object.keys(t).forEach(n=>{let o=t[n].request,i=a[n]||[];(i.length||o.currentValues.length)&&em(o,i,t[n].initialNumberOfValues)})}).addCase($o,(t,r)=>{var i;let{facetId:a,criterion:n}=r.payload,o=(i=t[a])==null?void 0:i.request;!o||(o.sortCriteria=n)}).addCase(Yu,(t,r)=>{var i;let{facetId:a,basePath:n}=r.payload,o=(i=t[a])==null?void 0:i.request;!o||(o.basePath=[...n])}).addCase(ka,(t,r)=>{var d;let{facetId:a,selection:n,retrieveCount:o}=r.payload,i=(d=t[a])==null?void 0:d.request;if(!i)return;let{path:s}=n,c=s.slice(0,s.length-1),u=GE(i,c,o);if(u.length){let p=u[0];p.retrieveChildren=!0,p.state="selected",p.children=[];return}let l=XC(n.value,o);l.state="selected",u.push(l),i.numberOfValues=1}).addCase(pr,(t,r)=>{let a=r.payload;Wu(t,a)}).addCase(Fe,t=>{Object.keys(t).forEach(r=>Wu(t,r))}).addCase(bt,(t,r)=>Object.keys(t).forEach(a=>{t[a].request.preventAutoSelect=!r.payload.allow})).addCase(Cn,(t,r)=>{var i;let{facetId:a,numberOfValues:n}=r.payload,o=(i=t[a])==null?void 0:i.request;if(!!o){if(!o.currentValues.length)return zu(o,n);WE(t,r.payload)}}).addCase(Bo,(t,r)=>{let{facetId:a,value:n}=r.payload,o=t[a];if(!o)return;let i=[...n.path,n.rawValue];em(o.request,i,o.initialNumberOfValues)}).addCase(lr.fulfilled,(t,r)=>{ZC(t,r.payload.response.facets)}).addCase(I.fulfilled,(t,r)=>{ZC(t,r.payload.response.facets)}).addCase(ve,(t,r)=>{Wu(t,r.payload)})}),Bs={delimitingCharacter:";",filterFacetCount:!0,injectionDepth:1e3,numberOfValues:5,sortCriteria:"occurrences",basePath:[],filterByBasePath:!0,resultsMustMatch:"atLeastOneValue"};function GE(e,t,r){let a=e.currentValues;for(let n of t){let o=a[0];(!o||n!==o.value)&&(o=XC(n,r),a.length=0,a.push(o)),o.retrieveChildren=!1,o.state="idle",a=o.children}return a}function zE(e){return{...Bs,currentValues:[],preventAutoSelect:!1,type:"hierarchical",...e}}function XC(e,t){return{value:e,state:"idle",children:[],retrieveChildren:!0,retrieveCount:t}}function ZC(e,t){t.forEach(r=>{var i;if(!YE(e,r))return;let a=r.facetId,n=(i=e[a])==null?void 0:i.request;if(!n)return;let o=KE(n,r);n.currentValues=o?[]:n.currentValues,n.preventAutoSelect=!1})}function WE(e,t){var o;let{facetId:r,numberOfValues:a}=t,n=(o=e[r])==null?void 0:o.request.currentValues[0];if(!!n){for(;n.children.length&&(n==null?void 0:n.state)!=="selected";)n=n.children[0];n.retrieveCount=a}}function YE(e,t){return t.facetId in e}function KE(e,t){let r=gt(e.currentValues),a=gt(t.values);return r.length!==a.length}function Ku(e,t,r){let{facetId:a}=t;if(e[a])return;let n=!1,o={...mr,...t},i=r();e[a]={options:o,isLoading:n,response:i,initialNumberOfValues:o.numberOfValues,requestId:""}}function Ju(e,t){let{facetId:r,...a}=t,n=e[r];!n||(n.options={...n.options,...a})}function js(e,t,r){let a=e[t];!a||(a.requestId=r,a.isLoading=!0)}function Us(e,t){let r=e[t];!r||(r.isLoading=!1)}function Xu(e,t,r){let{facetId:a,response:n}=t,o=e[a];!o||o.requestId===r&&(o.isLoading=!1,o.response=n)}function ex(e,t,r){let{facetId:a,response:n}=t,o=e[a];!o||o.requestId===r&&(o.isLoading=!1,"success"in n&&(o.response=n.success))}function _s(e,t,r){let{facetId:a}=t,n=e[a];!n||(n.requestId="",n.isLoading=!1,n.response=r(),n.options.numberOfValues=n.initialNumberOfValues,n.options.query=mr.query)}function xn(e,t){Object.keys(e).forEach(r=>_s(e,{facetId:r},t))}var mr={captions:{},numberOfValues:10,query:""};var tx=async(e,t,r)=>{let a=t.categoryFacetSearchSet[e].options,n=t.categoryFacetSet[e].request,{captions:o,query:i,numberOfValues:s}=a,{field:c,delimitingCharacter:u,basePath:l,filterFacetCount:d}=n,p=JE(n),f=p.length?[p]:[],m=`*${i}*`;return{url:t.configuration.search.apiBaseUrl,accessToken:t.configuration.accessToken,organizationId:t.configuration.organizationId,...t.configuration.search.authenticationProviders.length&&{authentication:t.configuration.search.authenticationProviders.join(",")},basePath:l,captions:o,numberOfValues:s,query:m,field:c,delimitingCharacter:u,ignorePaths:f,filterFacetCount:d,type:"hierarchical",...r?{}:{searchContext:(await qe(t)).request}}},JE=e=>{let t=[],r=e.currentValues[0];for(;r;)t.push(r.value),r=r.children[0];return t};var rx=async(e,t,r)=>{let{captions:a,query:n,numberOfValues:o}=t.facetSearchSet[e].options,{field:i,currentValues:s,filterFacetCount:c}=t.facetSet[e].request,u=s.filter(d=>d.state!=="idle").map(d=>d.value),l=`*${n}*`;return{url:t.configuration.search.apiBaseUrl,accessToken:t.configuration.accessToken,organizationId:t.configuration.organizationId,...t.configuration.search.authenticationProviders&&{authentication:t.configuration.search.authenticationProviders.join(",")},captions:a,numberOfValues:o,query:l,field:i,ignoreValues:u,filterFacetCount:c,type:"specific",...r?{}:{searchContext:(await qe(t)).request}}};var ax=e=>async(t,{getState:r,extra:{apiClient:a,validatePayload:n}})=>{let o=r(),i;n(t,O),XE(o,t)?i=await rx(t,o,e):i=await tx(t,o,e);let s=await a.facetSearch(i);return{facetId:t,response:s}},Je=W("facetSearch/executeSearch",ax(!1)),Oa=W("facetSearch/executeSearch",ax(!0)),Ho=C("facetSearch/clearResults",e=>A(e,{facetId:ee})),XE=(e,t)=>e.facetSearchSet!==void 0&&e.facetSet!==void 0&&e.facetSet[t]!==void 0;var nx={facetId:ee,value:new q({values:{displayValue:ge,rawValue:ge,count:new D({required:!0,min:0})}})},Zu=C("facetSearch/register",e=>A(e,Ns)),qa=C("facetSearch/update",e=>A(e,Ns)),vn=C("facetSearch/toggleSelectValue",e=>A(e,nx)),An=C("facetSearch/toggleExcludeValue",e=>A(e,nx));var Go=T(xs(),e=>{e.addCase(jo,(t,r)=>{let a=r.payload;Ku(t,a,rm)}).addCase(qa,(t,r)=>{Ju(t,r.payload)}).addCase(Je.pending,(t,r)=>{let a=r.meta.arg;js(t,a,r.meta.requestId)}).addCase(Je.rejected,(t,r)=>{let a=r.meta.arg;Us(t,a)}).addCase(Je.fulfilled,(t,r)=>{Xu(t,r.payload,r.meta.requestId)}).addCase(Ho,(t,{payload:{facetId:r}})=>{_s(t,{facetId:r},rm)}).addCase(I.fulfilled,t=>{xn(t,rm)})});function rm(){return{moreValuesAvailable:!1,values:[]}}var zo=e=>E("analytics/facet/showMore",(t,r)=>{A(e,ee);let a=to(e,ct(r));return t.makeFacetShowMore(a)}),Wo=e=>E("analytics/facet/showLess",(t,r)=>{A(e,ee);let a=to(e,ct(r));return t.makeFacetShowLess(a)}),gr=e=>E("analytics/facet/sortChange",(t,r)=>{A(e,{facetId:ee,criterion:new me({required:!0})});let{facetId:a,criterion:n}=e,o=ct(r),s={...to(a,o),criteria:n};return t.makeFacetUpdateSort(s)}),Ne=e=>E("analytics/facet/reset",(t,r)=>{A(e,ee);let a=ct(r),n=to(e,a);return t.makeFacetClearAll(n)}),Pe=e=>E("analytics/facet/select",(t,r)=>{A(e,{facetId:ee,facetValue:O});let a=ct(r),n=ro(e,a);return t.makeFacetSelect(n)}),St=e=>E("analytics/facet/exclude",(t,r)=>{A(e,{facetId:ee,facetValue:O});let a=ct(r),n=ro(e,a);return t.makeFacetExclude(n)}),Ut=e=>E("analytics/facet/deselect",(t,r)=>{A(e,{facetId:ee,facetValue:O});let a=ct(r),n=ro(e,a);return t.makeFacetDeselect(n)}),Wr=e=>E("analytics/facet/unexclude",(t,r)=>{A(e,{facetId:ee,facetValue:O});let a=ct(r),n=ro(e,a);return t.makeFacetUnexclude(n)}),Yo=e=>E("analytics/facet/breadcrumb",(t,r)=>{A(e,{facetId:ee,facetValue:O});let a=ro(e,ct(r));return t.makeBreadcrumbFacet(a)}),Ta=(e,t)=>({actionCause:oe.facetUpdateSort,getEventExtraPayload:r=>new ae(()=>r).getFacetUpdateSortMetadata(e,t)}),Xe=e=>({actionCause:oe.facetClearAll,getEventExtraPayload:t=>new ae(()=>t).getFacetClearAllMetadata(e)}),De=(e,t)=>({actionCause:oe.facetSelect,getEventExtraPayload:r=>new ae(()=>r).getFacetMetadata(e,t)}),hr=(e,t)=>({actionCause:oe.facetExclude,getEventExtraPayload:r=>new ae(()=>r).getFacetMetadata(e,t)}),Yr=(e,t)=>({actionCause:oe.facetDeselect,getEventExtraPayload:r=>new ae(()=>r).getFacetMetadata(e,t)}),am=(e,t)=>({actionCause:oe.facetUnexclude,getEventExtraPayload:r=>new ae(()=>r).getFacetMetadata(e,t)}),el=(e,t)=>({actionCause:oe.breadcrumbFacet,getEventExtraPayload:r=>new ae(()=>r).getFacetMetadata(e,t)});var Sr=(e,t)=>{var r,a;return(a=(r=e.facetOptions.facets[t])==null?void 0:r.enabled)!=null?a:!0};var yr=new w({regex:/^[a-zA-Z0-9-_]+$/}),Cr=new w({required:!0}),ox=new X({each:new w}),ix=new w,sx=new K,xr=new K,vr=new D({min:0}),_t=new D({min:1}),tl=new K({required:!0}),ZE=new q,ek=new w,tk={captions:ZE,numberOfValues:_t,query:ek},Ko=new q({values:tk}),rl=new q({options:{required:!1},values:{type:new w({constrainTo:["simple"],emptyAllowed:!1,required:!0}),values:new X({required:!0,max:25,each:new w({emptyAllowed:!1,required:!0})})}}),cx=new K,al=new X({min:1,max:25,required:!1,each:new w({emptyAllowed:!1,required:!0})});var bn={value:O,numberOfResults:new D({min:0}),state:O};var rk={facetId:ee,field:new w({required:!0,emptyAllowed:!0}),filterFacetCount:new K({required:!1}),injectionDepth:new D({required:!1,min:0}),numberOfValues:new D({required:!1,min:1}),sortCriteria:new me({required:!1}),resultsMustMatch:new me({required:!1}),allowedValues:rl,customSort:al},Ar=C("facet/register",e=>A(e,rk)),br=C("facet/toggleSelectValue",e=>A(e,{facetId:ee,selection:new q({values:bn})})),Fr=C("facet/toggleExcludeValue",e=>A(e,{facetId:ee,selection:new q({values:bn})})),Ae=C("facet/deselectAll",e=>A(e,ee)),Jo=C("facet/updateSortCriterion",e=>A(e,{facetId:ee,criterion:new me({required:!0})})),Fn=C("facet/updateNumberOfValues",e=>A(e,{facetId:ee,numberOfValues:new D({required:!0,min:1})})),Rn=C("facet/updateIsFieldExpanded",e=>A(e,{facetId:ee,isFieldExpanded:new K({required:!0})})),Kr=C("facet/updateFreezeCurrentValues",e=>A(e,{facetId:ee,freezeCurrentValues:new K({required:!0})}));function Pn(e){var o,i;let t=ux(e.start,e),r=ux(e.end,e),a=(o=e.endInclusive)!=null?o:!1,n=(i=e.state)!=null?i:"idle";return{start:t,end:r,endInclusive:a,state:n}}function ux(e,t){let{dateFormat:r}=t;return uC(e)?(dn(e),iC(e)):typeof e=="string"&&cr(e)?(dn(e),e):(Iu(e,r),qs(ln(e,r)))}var Xo=C("rangeFacet/updateSortCriterion",e=>A(e,{facetId:ee,criterion:new me({required:!0})}));var wn={state:O,start:new D({required:!0}),end:new D({required:!0}),endInclusive:new K({required:!0}),numberOfResults:new D({required:!0,min:0})},In={start:O,end:O,endInclusive:new K({required:!0}),state:O,numberOfResults:new D({required:!0,min:0})},En=e=>({facetId:ee,selection:typeof e.start=="string"?new q({values:In}):new q({values:wn})});var ak={start:O,end:O,endInclusive:new K({required:!0}),state:O},nk={facetId:ee,field:O,currentValues:new X({required:!1,each:new q({values:ak})}),generateAutomaticRanges:new K({required:!0}),filterFacetCount:new K({required:!1}),injectionDepth:new D({required:!1,min:0}),numberOfValues:new D({required:!1,min:1}),sortCriteria:new me({required:!1}),rangeAlgorithm:new me({required:!1})};function lx(e){return cr(e)?Ds(e):e}function nl(e){!e.currentValues||e.currentValues.forEach(t=>{let{start:r,end:a}=Pn(t);if(ln(lx(r)).isAfter(ln(lx(a))))throw new Error(`The start value is greater than the end value for the date range ${t.start} to ${t.end}`)})}var Rr=C("dateFacet/register",e=>{try{return nt(e,nk),nl(e),{payload:e,error:null}}catch(t){return{payload:e,error:Vt(t)}}}),Pr=C("dateFacet/toggleSelectValue",e=>A(e,{facetId:ee,selection:new q({values:In})})),wr=C("dateFacet/toggleExcludeValue",e=>A(e,{facetId:ee,selection:new q({values:In})})),Jr=C("dateFacet/updateFacetValues",e=>{try{return nt(e,{facetId:ee,values:new X({each:new q({values:In})})}),nl({currentValues:e.values}),{payload:e,error:null}}catch(t){return{payload:e,error:Vt(t)}}}),ol=Xo,il=Ae;var ok={state:O,start:new D({required:!0}),end:new D({required:!0}),endInclusive:new K({required:!0})},ik={facetId:ee,field:O,currentValues:new X({required:!1,each:new q({values:ok})}),generateAutomaticRanges:new K({required:!0}),filterFacetCount:new K({required:!1}),injectionDepth:new D({required:!1,min:0}),numberOfValues:new D({required:!1,min:1}),sortCriteria:new me({required:!1}),rangeAlgorithm:new me({required:!1})};function sl(e){!e.currentValues||e.currentValues.forEach(({start:t,end:r})=>{if(t>r)throw new Error(`The start value is greater than the end value for the numeric range ${t} to ${r}`)})}var Ir=C("numericFacet/register",e=>{try{return A(e,ik),sl(e),{payload:e,error:null}}catch(t){return{payload:e,error:Vt(t)}}}),Er=C("numericFacet/toggleSelectValue",e=>A(e,{facetId:ee,selection:new q({values:wn})})),kr=C("numericFacet/toggleExcludeValue",e=>A(e,{facetId:ee,selection:new q({values:wn})})),Xr=C("numericFacet/updateFacetValues",e=>{try{return nt(e,{facetId:ee,values:new X({each:new q({values:wn})})}),sl({currentValues:e.values}),{payload:e,error:null}}catch(t){return{payload:e,error:Vt(t)}}}),cl=Xo,ul=Ae;var Qe=T(fa(),e=>{e.addCase(ie,(t,r)=>({...t,...r.payload})).addCase(I.fulfilled,t=>{t.freezeFacetOrder=!1}).addCase(I.rejected,t=>{t.freezeFacetOrder=!1}).addCase(ce.fulfilled,(t,r)=>{var a,n;return(n=(a=r.payload)==null?void 0:a.facetOptions)!=null?n:t}).addCase(dr,(t,r)=>{t.facets[r.payload.facetId]=zn()}).addCase(Ar,(t,r)=>{t.facets[r.payload.facetId]=zn()}).addCase(Rr,(t,r)=>{t.facets[r.payload.facetId]=zn()}).addCase(Ir,(t,r)=>{t.facets[r.payload.facetId]=zn()}).addCase(Ke,(t,r)=>{t.facets[r.payload].enabled=!0}).addCase(ve,(t,r)=>{t.facets[r.payload].enabled=!1}).addCase(ue,(t,r)=>{var a,n,o,i,s;[...Object.keys((a=r.payload.f)!=null?a:{}),...Object.keys((n=r.payload.fExcluded)!=null?n:{}),...Object.keys((o=r.payload.cf)!=null?o:{}),...Object.keys((i=r.payload.nf)!=null?i:{}),...Object.keys((s=r.payload.df)!=null?s:{})].forEach(c=>{c in t||(t.facets[c]=zn()),t.facets[c].enabled=!0})})});function dx(e,t){let{field:r,state:a}=e;if(!sk(e))return r;let n=`${r}_`,o=ck(n,a);return lk(r,t),`${n}${o}`}function sk(e){let{field:t,state:r}=e;return px(r).some(n=>n&&t in n)}function ck(e,t){let a=px(t).map(n=>Object.keys(n||{})).reduce((n,o)=>n.concat(o),[]);return uk(a,e)+1}function px(e){let{facetSet:t,numericFacetSet:r,dateFacetSet:a,categoryFacetSet:n}=e;return[t,r,a,n]}function uk(e,t){let r=0,n=e.map(o=>{let i=o.split(t)[1],s=parseInt(i,10);return Number.isNaN(s)?r:s}).sort().pop();return n!=null?n:r}function lk(e,t){let r=`A facet with field "${e}" already exists. + To avoid unexpected behaviour, configure the #id option on the facet controller.`;t.warn(r)}function Ze(e,t){let{state:r,logger:a}=e,{field:n,facetId:o}=t;return o||dx({field:n,state:r},a)}var fx=["alphanumeric","occurrences"];var mx=new Y({field:Cr,basePath:ox,delimitingCharacter:ix,facetId:yr,facetSearch:Ko,filterByBasePath:sx,filterFacetCount:xr,injectionDepth:vr,numberOfValues:_t,sortCriteria:new w({constrainTo:fx})});function gx(e,t){if(!dk(e))throw k;let r=M(e),{dispatch:a}=e,n=Ze(e,t.options),o={...Bs,...Oc("facetSearch",t.options),field:t.options.field,facetId:n},i={facetSearch:{...mr,...t.options.facetSearch},...o};he(e,mx,i,"buildCategoryFacet");let s=()=>Rf(e.state,n),c=()=>Ff(e.state,n),u=()=>ar(e.state),l=()=>Sr(e.state,n);return a(dr(o)),{...r,toggleSelect(d){let p=i.numberOfValues;a(ka({facetId:n,selection:d,retrieveCount:p})),a(ie())},deselectAll(){a(pr(n)),a(ie())},sortBy(d){a($o({facetId:n,criterion:d})),a(ie())},isSortedBy(d){return s().sortCriteria===d},showMoreValues(){var g;let{numberOfValues:d}=i,{activeValue:p,valuesAsTrees:f}=this.state,m=((g=p==null?void 0:p.children.length)!=null?g:f.length)+d;a(Cn({facetId:n,numberOfValues:m})),a(ie())},showLessValues(){let{numberOfValues:d}=i;a(Cn({facetId:n,numberOfValues:d})),a(ie())},enable(){a(Ke(n))},disable(){a(ve(n))},get state(){var U,_,fe,Se;let d=s(),p=c(),f=u(),m=l(),g=(U=p==null?void 0:p.values)!=null?U:[],S=(_=g.some(j=>j.children.length>0))!=null?_:!1,{parents:y,values:x}=Cy(p==null?void 0:p.values),b=gt(g),P=b.length?b[b.length-1]:void 0,N=!!P,H=(Se=(fe=P==null?void 0:P.moreValuesAvailable)!=null?fe:p==null?void 0:p.moreValuesAvailable)!=null?Se:!1,Z=P?P.children.length>i.numberOfValues:g.length>i.numberOfValues;return{facetId:n,parents:y,selectedValueAncestry:b,values:x,isHierarchical:S,valuesAsTrees:g,activeValue:P,isLoading:f,hasActiveValues:N,canShowMoreValues:H,canShowLessValues:Z,sortCriteria:d.sortCriteria,enabled:m}}}}function dk(e){return e.addReducers({categoryFacetSet:fr,categoryFacetSearchSet:Go,facetOptions:Qe,configuration:$,search:J}),!0}function Zo(e,t){let r=e.dispatch,{options:a,getFacetSearch:n,executeFacetSearchActionCreator:o,executeFieldSuggestActionCreator:i}=t,{facetId:s}=a;return{updateText(c){r(qa({facetId:s,query:c,numberOfValues:n().initialNumberOfValues}))},showMoreResults(){let{initialNumberOfValues:c,options:u}=n();r(qa({facetId:s,numberOfValues:u.numberOfValues+c})),r(t.isForFieldSuggestions?i(s):o(s))},search(){r(t.isForFieldSuggestions?i(s):o(s))},clear(){r(Ho({facetId:s}))},updateCaptions(c){r(qa({facetId:s,captions:c}))},get state(){let{response:c,isLoading:u,options:l}=n(),{query:d}=l,p=c.values;return{...c,values:p,isLoading:u,query:d}}}}function hx(e,t){let{dispatch:r}=e,a={...mr,...t.options},{facetId:n}=a,o=()=>e.state.categoryFacetSearchSet[n];r(jo(a));let i=Zo(e,{options:a,getFacetSearch:o,isForFieldSuggestions:t.isForFieldSuggestions,executeFacetSearchActionCreator:Je,executeFieldSuggestActionCreator:Oa});return{...i,select(s){r(Bo({facetId:n,value:s}))},get state(){return i.state}}}function ll(e,t){let{dispatch:r}=e,a={...mr,...t.options},{facetId:n}=a,o=()=>e.state.categoryFacetSearchSet[n],i=hx(e,{options:{...a},isForFieldSuggestions:t.isForFieldSuggestions});r(jo(a));let s=Zo(e,{options:a,getFacetSearch:o,isForFieldSuggestions:t.isForFieldSuggestions,executeFacetSearchActionCreator:Je,executeFieldSuggestActionCreator:Oa});return{...s,...i,select:c=>{i.select(c),r(ie()),r(I({legacy:Pe({facetId:n,facetValue:c.rawValue}),next:De(n,c.rawValue)}))},get state(){return{...s.state,...i.state}}}}function pk(e,t){if(!fk(e))throw k;let r=gx(e,t),{dispatch:a}=e,n=()=>r.state.facetId,o=ll(e,{options:{facetId:n(),...t.options.facetSearch},isForFieldSuggestions:!1}),{state:i,...s}=o;return{...r,facetSearch:s,toggleSelect(c){r.toggleSelect(c),a(I({legacy:mk(n(),c),next:gk(n(),c)}))},deselectAll(){r.deselectAll(),a(I({legacy:Ne(n()),next:Xe(n())}))},sortBy(c){r.sortBy(c),a(I({legacy:gr({facetId:n(),criterion:c}),next:Ta(n(),c)}))},showMoreValues(){r.showMoreValues(),a(lr({legacy:zo(n())}))},showLessValues(){r.showLessValues(),a(lr({legacy:Wo(n())}))},get state(){return{...r.state,facetSearch:o.state}}}}function fk(e){return e.addReducers({categoryFacetSet:fr,categoryFacetSearchSet:Go,configuration:$,search:J}),!0}function mk(e,t){let r={facetId:e,facetValue:t.value};return t.state==="selected"?Ut(r):Pe(r)}function gk(e,t){return t.state==="selected"?Yr(e,t.value):De(e,t.value)}var nm={url:O,referrer:wh},om={userId:de,email:de,userIp:de,userAgent:de},im={trackingId:O,language:O,country:O,currency:O,user:new q({values:{...om}}),view:new q({options:{required:!0},values:{...nm}})},u6=new Y(im);var g6=C("commerce/setContext",e=>A(e,im)),h6=C("commerce/setUser",e=>te(e.userId)&&te(e.email)?{payload:e,error:Vt(new Ya("Either userId or email is required"))}:A(e,om)),Sx=C("commerce/setView",e=>A(e,nm));var ei=async e=>{let t=hk(e),{view:r,user:a,...n}=e.commerceContext;return{accessToken:e.configuration.accessToken,url:e.configuration.platformUrl,organizationId:e.configuration.organizationId,...n,clientId:await We(e.configuration.analytics),context:{user:a,view:r,cart:e.cart.cartItems.map(o=>e.cart.cart[o])},facets:t,...e.commercePagination&&{page:e.commercePagination.page},...e.commerceSort&&{sort:Sk(e.commerceSort.appliedSort)}}};function hk(e){return!e.facetOrder||!e.commerceFacetSet?[]:e.facetOrder.map(t=>e.commerceFacetSet[t].request).filter(t=>t.values.length>0)}function Sk(e){if(!!e)return e.by===Mt.Relevance?{sortCriteria:Mt.Relevance}:{sortCriteria:Mt.Fields,fields:e.fields.map(({name:t,direction:r})=>({field:t,direction:r}))}}var yx=async(e,t,r)=>{var S;let n=`*${t.facetSearchSet[e].options.query}*`,o=(S=t.query)==null?void 0:S.q,{url:i,accessToken:s,organizationId:c,trackingId:u,language:l,country:d,currency:p,clientId:f,context:m,...g}=await ei(t);return{url:i,accessToken:s,organizationId:c,facetId:e,facetQuery:n,trackingId:u,language:l,country:d,currency:p,clientId:f,context:m,...!r&&{...g,query:o}}};var Cx=e=>async(t,{getState:r,extra:{apiClient:a,validatePayload:n}})=>{let o=r();n(t,O);let i=await yx(t,o,e),s=await a.facetSearch(i);return{facetId:t,response:s}},dl=W("commerce/facetSearch/executeSearch",Cx(!1)),I6=W("commerce/facetSearch/executeSearch",Cx(!0));var pl=()=>Qy("analytics/commerce/productListing/load",e=>e.makeInterfaceLoad(),e=>new ao(e));var fl=W("commerce/productListing/fetch",async(e,{getState:t,dispatch:r,rejectWithValue:a,extra:n})=>{let o=t(),{apiClient:i}=n,s=await i.getProductListing(await ei(o));return ye(s)?(r(lt(s.error)),a(s.error)):{response:s.success,analyticsAction:pl()}});var ml=W("commerce/search/executeSearch",async(e,{getState:t,dispatch:r,rejectWithValue:a,extra:n})=>{var c;let o=t(),{apiClient:i}=n,s=await i.search({...await ei(o),query:(c=o.commerceQuery)==null?void 0:c.query});return ye(s)?(r(lt(s.error)),a(s.error)):{response:s.success,analyticsAction:pl()}});var ti=T(Xa(),e=>{e.addCase(Zu,(t,r)=>{let a=r.payload;Ku(t,a,ri)}).addCase(qa,(t,r)=>{Ju(t,r.payload)}).addCase(dl.pending,(t,r)=>{let a=r.meta.arg;js(t,a,r.meta.requestId)}).addCase(Je.pending,(t,r)=>{let a=r.meta.arg;js(t,a,r.meta.requestId)}).addCase(dl.rejected,(t,r)=>{let a=r.meta.arg;Us(t,a)}).addCase(Je.rejected,(t,r)=>{let a=r.meta.arg;Us(t,a)}).addCase(dl.fulfilled,(t,r)=>{ex(t,r.payload,r.meta.requestId)}).addCase(Je.fulfilled,(t,r)=>{Xu(t,r.payload,r.meta.requestId)}).addCase(Ho,(t,{payload:r})=>{_s(t,r,ri)}).addCase(I.fulfilled,t=>{xn(t,ri)}).addCase(fl.fulfilled,t=>xn(t,ri)).addCase(ml.fulfilled,t=>xn(t,ri)).addCase(Sx,t=>xn(t,ri))});function ri(){return{moreValuesAvailable:!1,values:[]}}var xx=()=>By("analytics/productListing/load",e=>e.makeInterfaceLoad(),e=>new no(e));var F5=C("productlisting/setUrl",e=>A(e,{url:new w({required:!0,url:!0})})),R5=C("productlisting/setAdditionalFields",e=>A(e,{additionalFields:new X({required:!0,each:new w({required:!0,emptyAllowed:!1})})})),Da=W("productlisting/fetch",async(e,{getState:t,dispatch:r,rejectWithValue:a,extra:n})=>{let o=t(),{apiClient:i}=n,s=await i.getProducts(await yk(o));return ye(s)?(r(lt(s.error)),a(s.error)):{response:s.success,analyticsAction:xx()}}),yk=async e=>{var a,n,o;let t=xk(e),r=await We(e.configuration.analytics);return{accessToken:e.configuration.accessToken,organizationId:e.configuration.organizationId,platformUrl:e.configuration.platformUrl,url:(a=e.productListing)==null?void 0:a.url,...e.configuration.analytics.enabled&&r?{clientId:r}:{},...((n=e.productListing.additionalFields)==null?void 0:n.length)?{additionalFields:e.productListing.additionalFields}:{},...e.productListing.advancedParameters&&Ck(e.productListing.advancedParameters)?{advancedParameters:e.productListing.advancedParameters||{}}:{},...t.length&&{facets:{requests:t}},...e.pagination&&{pagination:{numberOfValues:e.pagination.numberOfResults,page:Math.ceil(e.pagination.firstResult/(e.pagination.numberOfResults||1))+1}},...(((o=e.sort)==null?void 0:o.by)||Mt.Relevance)!==Mt.Relevance&&{sort:e.sort},...e.context&&{userContext:e.context.contextValues}}};function Ck(e){return e.debug}function xk(e){var t;return Ro(vk(e),(t=e.facetOrder)!=null?t:[])}function vk(e){var t,r,a,n;return[...zr((t=e.facetSet)!=null?t:{}),...zr((r=e.numericFacetSet)!=null?r:{}),...zr((a=e.dateFacetSet)!=null?a:{}),...zr((n=e.categoryFacetSet)!=null?n:{})]}var Or=T(Kt(),e=>{e.addCase(Ar,(t,r)=>{let{facetId:a}=r.payload;a in t||(t[a]=hS(Ak(r.payload)))}).addCase(ce.fulfilled,(t,r)=>{if(!!r.payload&&Object.keys(r.payload.facetSet).length!==0)return r.payload.facetSet}).addCase(ue,(t,r)=>{let a=r.payload.f||{},n=r.payload.fExcluded||{};Object.keys(t).forEach(i=>{let{request:s}=t[i],c=a[i]||[],u=n[i]||[],l=c.length+u.length,d=s.currentValues.filter(p=>!c.includes(p.value)&&!u.includes(p.value));s.currentValues=[...c.map(vx),...u.map(Ax),...d.map(Fk)],s.preventAutoSelect=l>0,s.numberOfValues=Math.max(l,s.numberOfValues)})}).addCase(br,(t,r)=>{var c;let{facetId:a,selection:n}=r.payload,o=(c=t[a])==null?void 0:c.request;if(!o)return;o.preventAutoSelect=!0;let i=o.currentValues.find(u=>u.value===n.value);if(!i){gl(o,n);return}let s=i.state==="selected";i.state=s?"idle":"selected",o.freezeCurrentValues=!0}).addCase(Fr,(t,r)=>{var c;let{facetId:a,selection:n}=r.payload,o=(c=t[a])==null?void 0:c.request;if(!o)return;o.preventAutoSelect=!0;let i=o.currentValues.find(u=>u.value===n.value);if(!i){gl(o,n);return}let s=i.state==="excluded";i.state=s?"idle":"excluded",o.freezeCurrentValues=!0}).addCase(Kr,(t,r)=>{var i;let{facetId:a,freezeCurrentValues:n}=r.payload,o=(i=t[a])==null?void 0:i.request;!o||(o.freezeCurrentValues=n)}).addCase(Ae,(t,r)=>{var a;Qs((a=t[r.payload])==null?void 0:a.request)}).addCase(Fe,t=>{Object.values(t).filter(r=>r.hasBreadcrumbs).forEach(({request:r})=>Qs(r))}).addCase(va,t=>{Object.values(t).filter(r=>!r.hasBreadcrumbs).forEach(({request:r})=>Qs(r))}).addCase(bt,(t,r)=>Object.values(t).forEach(a=>{a.request.preventAutoSelect=!r.payload.allow})).addCase(Jo,(t,r)=>{Uo(t,r.payload)}).addCase(Fn,(t,r)=>{var o;let{facetId:a,numberOfValues:n}=r.payload;zu((o=t[a])==null?void 0:o.request,n)}).addCase(Rn,(t,r)=>{var i;let{facetId:a,isFieldExpanded:n}=r.payload,o=(i=t[a])==null?void 0:i.request;!o||(o.isFieldExpanded=n)}).addCase(I.fulfilled,(t,r)=>{r.payload.response.facets.forEach(n=>{var o;return sm((o=t[n.facetId])==null?void 0:o.request,n)})}).addCase(Da.fulfilled,(t,r)=>{var n,o;(((o=(n=r.payload.response)==null?void 0:n.facets)==null?void 0:o.results)||[]).forEach(i=>{var s;return sm((s=t[i.facetId])==null?void 0:s.request,i)})}).addCase(lr.fulfilled,(t,r)=>{r.payload.response.facets.forEach(n=>{var o;return sm((o=t[n.facetId])==null?void 0:o.request,n)})}).addCase(vn,(t,r)=>{var l;let{facetId:a,value:n}=r.payload,o=(l=t[a])==null?void 0:l.request;if(!o)return;let{rawValue:i}=n,{currentValues:s}=o,c=s.find(d=>d.value===i);if(c){c.state="selected";return}let u=vx(i);gl(o,u),o.freezeCurrentValues=!0,o.preventAutoSelect=!0}).addCase(An,(t,r)=>{var l;let{facetId:a,value:n}=r.payload,o=(l=t[a])==null?void 0:l.request;if(!o)return;let{rawValue:i}=n,{currentValues:s}=o,c=s.find(d=>d.value===i);if(c){c.state="excluded";return}let u=Ax(i);gl(o,u),o.freezeCurrentValues=!0,o.preventAutoSelect=!0}).addCase(ve,(t,r)=>{if(!(r.payload in t))return;let{request:a}=t[r.payload];Qs(a)})});function gl(e,t){let{currentValues:r}=e,a=r.findIndex(s=>s.state==="idle"),n=a===-1?r.length:a,o=r.slice(0,n),i=r.slice(n+1);e.currentValues=[...o,t,...i],e.numberOfValues=e.currentValues.length}function sm(e,t){!e||(e.currentValues=t.values.map(bk),e.freezeCurrentValues=!1,e.preventAutoSelect=!1)}var $s={filterFacetCount:!0,injectionDepth:1e3,numberOfValues:8,sortCriteria:"automatic",resultsMustMatch:"atLeastOneValue"};function Ak(e){return{...$s,type:"specific",currentValues:[],freezeCurrentValues:!1,isFieldExpanded:!1,preventAutoSelect:!1,...e}}function bk(e){let{value:t,state:r}=e;return{value:t,state:r}}function vx(e){return{value:e,state:"selected"}}function Ax(e){return{value:e,state:"excluded"}}function Fk(e){return{...e,state:"idle"}}var hl=e=>e.state==="selected",Sl=e=>e.state==="excluded",yl=(e,t)=>{let r={facetId:e,facetValue:t.value};return hl(t)?Ut(r):Pe(r)},Cl=(e,t)=>hl(t)?Yr(e,t.value):De(e,t.value),bx=(e,t)=>{let r={facetId:e,facetValue:t.value};return Sl(t)?Wr(r):St(r)},Fx=(e,t)=>Sl(t)?am(e,t.value):hr(e,t.value);function xl(e,t){let{dispatch:r}=e,{options:a,select:n,exclude:o,isForFieldSuggestions:i,executeFacetSearchActionCreator:s,executeFieldSuggestActionCreator:c}=t,{facetId:u}=a,l=()=>e.state.facetSearchSet[u];r(Zu(a));let d=Zo(e,{options:a,getFacetSearch:l,isForFieldSuggestions:i,executeFacetSearchActionCreator:s,executeFieldSuggestActionCreator:c});return{...d,select(p){r(vn({facetId:u,value:p})),n(p)},exclude(p){r(An({facetId:u,value:p})),o(p)},singleSelect(p){r(Ae(u)),r(vn({facetId:u,value:p})),n(p)},singleExclude(p){r(Ae(u)),r(An({facetId:u,value:p})),o(p)},get state(){let{values:p}=d.state;return{...d.state,values:p.map(({count:f,displayValue:m,rawValue:g})=>({count:f,displayValue:m,rawValue:g}))}}}}var Rx={facetId:ee,selection:new q({values:bn})},Px=W("facet/executeToggleSelect",({facetId:e,selection:t},r)=>{let{dispatch:a,extra:{validatePayload:n}}=r;n({facetId:e,selection:t},Rx),a(br({facetId:e,selection:t})),a(ie())}),wx=W("facet/executeToggleExclude",({facetId:e,selection:t},r)=>{let{dispatch:a,extra:{validatePayload:n}}=r;n({facetId:e,selection:t},Rx),a(Fr({facetId:e,selection:t})),a(ie())});var ai=["allValues","atLeastOneValue"];var vl=["score","alphanumeric","alphanumericDescending","occurrences","automatic"];var Ix=new Y({facetId:yr,field:Cr,filterFacetCount:xr,injectionDepth:vr,numberOfValues:_t,sortCriteria:new w({constrainTo:vl}),resultsMustMatch:new w({constrainTo:ai}),facetSearch:Ko});function Ex(e,t,r=Ix){if(!Rk(e))throw k;let{dispatch:a}=e,n=M(e),o=Ze(e,t.options),i={...$s,...Oc("facetSearch",t.options),field:t.options.field,facetId:o},s={facetSearch:{...mr,...t.options.facetSearch},...i};he(e,r,s,"buildFacet");let c=()=>bf(e.state,o),u=()=>Is(e.state,o),l=()=>ar(e.state),d=()=>Sr(e.state,o),p=()=>{let{currentValues:m}=c();return m.filter(g=>g.state!=="idle").length},f=()=>{let{currentValues:m}=c(),g=s.numberOfValues,S=!!m.find(y=>y.state==="idle");return ga(Px({facetId:s.facetId,selection:m})),toggleExclude:m=>a(wx({facetId:s.facetId,selection:m})),toggleSingleSelect:function(m){m.state==="idle"&&a(Ae(o)),this.toggleSelect(m)},toggleSingleExclude:function(m){m.state==="idle"&&a(Ae(o)),this.toggleExclude(m)},isValueSelected:hl,isValueExcluded:Sl,deselectAll(){a(Ae(o)),a(ie())},sortBy(m){a(Jo({facetId:o,criterion:m})),a(ie())},isSortedBy(m){return this.state.sortCriterion===m},showMoreValues(){let m=c().numberOfValues,g=s.numberOfValues,S=g-m%g,y=m+S;a(Fn({facetId:o,numberOfValues:y})),a(Rn({facetId:o,isFieldExpanded:!0})),a(ie())},showLessValues(){let m=s.numberOfValues,g=Math.max(m,p());a(Fn({facetId:o,numberOfValues:g})),a(Rn({facetId:o,isFieldExpanded:!1})),a(ie())},enable(){a(Ke(o))},disable(){a(ve(o))},get state(){let m=c(),g=u(),S=l(),y=d(),x;typeof m.sortCriteria=="object"?x=m.sortCriteria.order==="descending"?"alphanumericDescending":"alphanumeric":x=m.sortCriteria;let b=g?g.values:[],P=b.some(Z=>Z.state!=="idle"),N=g?g.moreValuesAvailable:!1,H=m.resultsMustMatch;return{label:g==null?void 0:g.label,facetId:o,values:b,sortCriterion:x,resultsMustMatch:H,isLoading:S,hasActiveValues:P,canShowMoreValues:N,canShowLessValues:f(),enabled:y}}}}function Rk(e){return e.addReducers({facetSet:Or,facetOptions:Qe,configuration:$,facetSearchSet:ti}),!0}var kx=new Y({facetId:yr,field:Cr,filterFacetCount:xr,injectionDepth:vr,numberOfValues:_t,sortCriteria:new w({constrainTo:vl}),resultsMustMatch:new w({constrainTo:ai}),facetSearch:Ko,allowedValues:rl,hasBreadcrumbs:cx,customSort:al});function Pk(e,t){if(!wk(e))throw k;let{dispatch:r}=e,a=Ex(e,{...t,options:{...t.options,...t.options.allowedValues&&{allowedValues:{type:"simple",values:t.options.allowedValues}}}},kx),n=()=>a.state.facetId,i=(()=>{let{facetSearch:u}=t.options;return xl(e,{options:{facetId:n(),...u},select:l=>{r(ie()),r(I({legacy:Pe({facetId:n(),facetValue:l.rawValue}),next:De(n(),l.rawValue)}))},exclude:l=>{r(ie()),r(I({legacy:St({facetId:n(),facetValue:l.rawValue}),next:hr(n(),l.rawValue)}))},isForFieldSuggestions:!1,executeFacetSearchActionCreator:Je,executeFieldSuggestActionCreator:Oa})})(),{state:s,...c}=i;return{...a,facetSearch:c,toggleSelect(u){a.toggleSelect(u),r(I({legacy:yl(n(),u),next:Cl(n(),u)}))},toggleExclude(u){a.toggleExclude(u),r(I({legacy:bx(n(),u),next:Fx(n(),u)}))},deselectAll(){a.deselectAll(),r(I({legacy:Ne(n()),next:Xe(n())}))},sortBy(u){a.sortBy(u),r(I({legacy:gr({facetId:n(),criterion:u}),next:Ta(n(),u)}))},isSortedBy(u){return this.state.sortCriterion===u},showMoreValues(){a.showMoreValues(),r(lr({legacy:zo(n())}))},showLessValues(){a.showLessValues(),r(lr({legacy:Wo(n())}))},get state(){return{...a.state,facetSearch:i.state}}}}function wk(e){return e.addReducers({facetSet:Or,configuration:$,facetSearchSet:ti,search:J}),!0}var Al=e=>e.state==="selected",cm=e=>e.state==="excluded",bl=(e,t)=>{let r=`${t.start}..${t.end}`,a={facetId:e,facetValue:r};return Al(t)?Ut(a):Pe(a)},Fl=(e,t)=>{let r=`${t.start}..${t.end}`;return Al(t)?Yr(e,r):De(e,r)},Ox=(e,t)=>{let r=`${t.start}..${t.end}`,a={facetId:e,facetValue:r};return cm(t)?Wr(a):St(a)};var Rl=C("rangeFacet/executeToggleSelect",e=>A(e,En(e.selection))),Pl=C("rangeFacet/executeToggleExclude",e=>A(e,En(e.selection)));var qx={facetId:ee,selection:new q({values:In})},Tx=W("dateFacet/executeToggleSelect",(e,{dispatch:t,extra:{validatePayload:r}})=>{r(e,qx),t(Pr(e)),t(Rl(e)),t(ie())}),Dx=W("dateFacet/executeToggleExclude",(e,{dispatch:t,extra:{validatePayload:r}})=>{r(e,qx),t(wr(e)),t(Pl(e)),t(ie())});var wl={filterFacetCount:!0,injectionDepth:1e3,numberOfValues:8,sortCriteria:"ascending",rangeAlgorithm:"even",resultsMustMatch:"atLeastOneValue"};function Il(e,t){let{request:r}=t,{facetId:a}=r;if(a in e)return;let n=Vx(r);r.numberOfValues=n,e[a]=t}function El(e,t,r){var n;let a=(n=e[t])==null?void 0:n.request;!a||(a.currentValues=r,a.numberOfValues=Vx(a))}function kl(e,t,r){var i;let a=(i=e[t])==null?void 0:i.request;if(!a)return;let n=Tl(a.currentValues,r);if(!n)return;let o=n.state==="selected";n.state=o?"idle":"selected",a.preventAutoSelect=!0}function Ol(e,t,r){var i;let a=(i=e[t])==null?void 0:i.request;if(!a)return;let n=Tl(a.currentValues,r);if(!n)return;let o=n.state==="excluded";n.state=o?"idle":"excluded",a.preventAutoSelect=!0}function Va(e,t){var a;let r=(a=e[t])==null?void 0:a.request;!r||r.currentValues.forEach(n=>n.state="idle")}function ql(e,t){Object.entries(e).forEach(([r,{request:a}])=>{let n=t[r]||[];a.currentValues.forEach(s=>{let c=!!Tl(n,s);return s.state=c?"selected":"idle",s});let o=n.filter(s=>!Tl(a.currentValues,s)),i=a.currentValues;i.push(...o),a.numberOfValues=Math.max(a.numberOfValues,i.length)})}function ni(e,t,r){t.forEach(a=>{var s;let n=a.facetId,o=(s=e[n])==null?void 0:s.request;if(!o)return;let i=r(a.values);o.currentValues=i,o.preventAutoSelect=!1})}function Tl(e,t){let{start:r,end:a}=t;return e.find(n=>n.start===r&&n.end===a)}function Vx(e){let{generateAutomaticRanges:t,currentValues:r,numberOfValues:a}=e;return t?Math.max(a,r.length):r.length}var qr=T(Jt(),e=>{e.addCase(Rr,(t,r)=>{let{payload:a}=r,n=Ik(a);Il(t,SS(n))}).addCase(ce.fulfilled,(t,r)=>{var a,n;return(n=(a=r.payload)==null?void 0:a.dateFacetSet)!=null?n:t}).addCase(ue,(t,r)=>{let a=r.payload.df||{};ql(t,a)}).addCase(Pr,(t,r)=>{let{facetId:a,selection:n}=r.payload;kl(t,a,n)}).addCase(wr,(t,r)=>{let{facetId:a,selection:n}=r.payload;Ol(t,a,n)}).addCase(Jr,(t,r)=>{let{facetId:a,values:n}=r.payload;El(t,a,n)}).addCase(il,(t,r)=>{Va(t,r.payload)}).addCase(Fe,t=>{Object.keys(t).forEach(r=>{Va(t,r)})}).addCase(ol,(t,r)=>{Uo(t,r.payload)}).addCase(I.fulfilled,(t,r)=>{let a=r.payload.response.facets;ni(t,a,Mx)}).addCase(Da.fulfilled,(t,r)=>{var n,o;let a=((o=(n=r.payload.response)==null?void 0:n.facets)==null?void 0:o.results)||[];ni(t,a,Mx)}).addCase(ve,(t,r)=>{Va(t,r.payload)})});function Ik(e){return{...wl,currentValues:[],preventAutoSelect:!1,type:"dateRange",...e}}function Mx(e){return e.map(t=>{let{numberOfResults:r,...a}=t;return a})}function Dl(e,t){let{facetId:r,getRequest:a}=t,n=M(e),o=e.dispatch,i=()=>Sr(e.state,r);return{...n,isValueSelected:Al,isValueExcluded:cm,deselectAll(){o(Ae(r)),o(ie())},sortBy(s){o(Xo({facetId:r,criterion:s})),o(ie())},isSortedBy(s){return this.state.sortCriterion===s},enable(){o(Ke(r))},disable(){o(ve(r))},get state(){let s=a(),c=rr(e.state,r),u=s.sortCriteria,l=s.resultsMustMatch,d=c?c.values:[],p=ar(e.state),f=i(),m=d.some(g=>g.state!=="idle");return{facetId:r,values:d,sortCriterion:u,resultsMustMatch:l,hasActiveValues:m,isLoading:p,enabled:f}}}}function Vl(e,t){if(!e.generateAutomaticRanges&&e.currentValues===void 0){let r=`currentValues should be specified for ${t} when generateAutomaticRanges is false.`;throw new Error(r)}}var Ml=["idle","selected","excluded"];var Ll=["ascending","descending"],Nl=["even","equiprobable"];var Ek={start:new w,end:new w,endInclusive:new K,state:new w({constrainTo:Ml})},kk=new Y({facetId:yr,field:Cr,generateAutomaticRanges:tl,filterFacetCount:xr,injectionDepth:vr,numberOfValues:_t,currentValues:new X({each:new q({values:Ek})}),sortCriteria:new w({constrainTo:Ll}),rangeAlgorithm:new w({constrainTo:Nl})});function Ql(e,t){he(e,kk,t,"buildDateFacet"),nl(t)}function Lx(e,t){if(!Ok(e))throw k;Vl(t.options,"buildDateFacet");let r=e.dispatch,a=Ze(e,t.options),n={currentValues:[],...t.options,facetId:a};Ql(e,n),r(Rr(n));let o=Dl(e,{facetId:a,getRequest:()=>e.state.dateFacetSet[a].request});return{...o,toggleSelect:i=>r(Tx({facetId:a,selection:i})),toggleSingleSelect:function(i){i.state==="idle"&&r(Ae(a)),this.toggleSelect(i)},toggleExclude:i=>r(Dx({facetId:a,selection:i})),toggleSingleExclude:function(i){i.state==="idle"&&r(Ae(a)),this.toggleExclude(i)},get state(){return o.state}}}function Ok(e){return e.addReducers({configuration:$,search:J,dateFacetSet:qr,facetOptions:Qe}),!0}function qk(e,t){let r=Lx(e,t),a=e.dispatch,n=()=>r.state.facetId;return{...r,deselectAll(){r.deselectAll(),a(I({legacy:Ne(n()),next:Xe(n())}))},sortBy(o){r.sortBy(o),a(I({legacy:gr({facetId:n(),criterion:o}),next:Ta(n(),o)}))},toggleSelect:o=>{r.toggleSelect(o),a(I({legacy:bl(n(),o),next:Fl(n(),o)}))},toggleExclude:o=>{r.toggleExclude(o),a(I({legacy:Ox(n(),o)}))},get state(){return r.state}}}var Pt=T(Xt(),e=>{e.addCase(Ir,(t,r)=>{let{payload:a}=r,n=Tk(a);Il(t,yS(n))}).addCase(ce.fulfilled,(t,r)=>{var a,n;return(n=(a=r.payload)==null?void 0:a.numericFacetSet)!=null?n:t}).addCase(ue,(t,r)=>{let a=r.payload.nf||{};ql(t,a)}).addCase(Er,(t,r)=>{let{facetId:a,selection:n}=r.payload;kl(t,a,n)}).addCase(kr,(t,r)=>{let{facetId:a,selection:n}=r.payload;Ol(t,a,n)}).addCase(Xr,(t,r)=>{let{facetId:a,values:n}=r.payload;El(t,a,n)}).addCase(ul,(t,r)=>{Va(t,r.payload)}).addCase(Fe,t=>{Object.keys(t).forEach(r=>{Va(t,r)})}).addCase(cl,(t,r)=>{Uo(t,r.payload)}).addCase(I.fulfilled,(t,r)=>{let a=r.payload.response.facets;ni(t,a,Nx)}).addCase(Da.fulfilled,(t,r)=>{var n,o;let a=((o=(n=r.payload.response)==null?void 0:n.facets)==null?void 0:o.results)||[];ni(t,a,Nx)}).addCase(ve,(t,r)=>{Va(t,r.payload)})});function Tk(e){return{...wl,currentValues:[],preventAutoSelect:!1,type:"numericalRange",...e}}function Nx(e){return e.map(t=>{let{numberOfResults:r,...a}=t;return a})}var Qx={facetId:ee,selection:new q({values:wn})},Bx=W("numericFacet/executeToggleSelect",(e,{dispatch:t,extra:{validatePayload:r}})=>{r(e,Qx),t(Er(e)),t(Rl(e)),t(ie())}),K9=W("numericFacet/executeToggleExclude",(e,{dispatch:t,extra:{validatePayload:r}})=>{r(e,Qx),t(kr(e)),t(Pl(e)),t(ie())});var Dk={start:new D,end:new D,endInclusive:new K,state:new w({constrainTo:Ml})},Vk=new Y({facetId:yr,field:Cr,generateAutomaticRanges:tl,filterFacetCount:xr,injectionDepth:vr,numberOfValues:_t,currentValues:new X({each:new q({values:Dk})}),sortCriteria:new w({constrainTo:Ll}),resultsMustMatch:new w({constrainTo:ai}),rangeAlgorithm:new w({constrainTo:Nl})});function Bl(e,t){he(e,Vk,t,"buildNumericFacet"),sl(t)}function Hs(e){return{endInclusive:!1,state:"idle",...e}}function jx(e,t){if(!Mk(e))throw k;Vl(t.options,"buildNumericFacet");let r=e.dispatch,a=Ze(e,t.options),n={currentValues:[],...t.options,facetId:a};Bl(e,n),r(Ir(n));let o=Dl(e,{facetId:a,getRequest:()=>e.state.numericFacetSet[a].request});return{...o,toggleSelect:i=>r(Bx({facetId:a,selection:i})),toggleSingleSelect(i){i.state==="idle"&&r(Ae(a)),this.toggleSelect(i)},get state(){return o.state}}}function Mk(e){return e.addReducers({numericFacetSet:Pt,facetOptions:Qe,configuration:$,search:J}),!0}function Lk(e,t){if(!Nk(e))throw k;let r=jx(e,t),a=e.dispatch,n=()=>r.state.facetId;return{...r,deselectAll(){r.deselectAll(),a(I({legacy:Ne(n()),next:Xe(n())}))},sortBy(o){r.sortBy(o),a(I({legacy:gr({facetId:n(),criterion:o}),next:Ta(n(),o)}))},toggleSelect:o=>{r.toggleSelect(o),a(I({legacy:bl(n(),o),next:Fl(n(),o)}))},get state(){return{...r.state}}}}function Nk(e){return e.addReducers({numericFacetSet:Pt,configuration:$,search:J}),!0}function Qk(e,t){return!!t&&t.facetId in e.numericFacetSet}var Ux=(e,t)=>{let r=rr(e,t);if(Qk(e,r))return r},_x=(e,t)=>(Ux(e,t)||{values:[]}).values.filter(a=>a.state!=="idle"),$x=(e,t)=>(Ux(e,t)||{values:[]}).values.filter(a=>a.state==="selected");function Hx(e,t){var c;if(!Bk(e))throw k;let r=M(e),{dispatch:a}=e,n=()=>e.state,o=Ze(e,t.options),i={...t.options,currentValues:((c=t.initialState)==null?void 0:c.range)?[{...t.initialState.range,endInclusive:!0,state:"selected"}]:[],generateAutomaticRanges:!1,facetId:o};Bl(e,i),a(Ir(i));let s=()=>Sr(e.state,o);return{...r,clear:()=>{a(Xr({facetId:o,values:[]})),a(ie())},setRange:u=>{let l={...u,state:"selected",numberOfResults:0,endInclusive:!0},d=Xr({facetId:o,values:[l]});return d.error?!1:(a(d),a(ie()),!0)},enable(){a(Ke(o))},disable(){a(ve(o))},get state(){let u=ar(n()),l=s(),d=$x(n(),o),p=d.length?d[0]:void 0;return{facetId:o,isLoading:u,range:p,enabled:l}}}}function Bk(e){return e.addReducers({numericFacetSet:Pt,facetOptions:Qe,configuration:$,search:J}),!0}function jk(e,t){if(!Uk(e))throw k;let r=Hx(e,t),{dispatch:a}=e,n=()=>r.state.facetId;return{...r,clear:()=>{r.clear(),a(I({legacy:Ne(n()),next:Xe(n())}))},setRange:o=>{let i=r.setRange(o);return i&&a(I({legacy:Pe({facetId:n(),facetValue:`${o.start}..${o.end}`}),next:De(n(),`${o.start}..${o.end}`)})),i},get state(){return{...r.state}}}}function Uk(e){return e.addReducers({numericFacetSet:Pt,configuration:$,search:J}),!0}function _k(e,t){return!!t&&t.facetId in e.dateFacetSet}var Gx=(e,t)=>{let r=rr(e,t);if(_k(e,r))return r},zx=(e,t)=>(Gx(e,t)||{values:[]}).values.filter(a=>a.state==="selected"),Wx=(e,t)=>(Gx(e,t)||{values:[]}).values.filter(a=>a.state!=="idle");function Yx(e,t){var c;if(!$k(e))throw k;let r=M(e),{dispatch:a}=e,n=()=>e.state,o=Ze(e,t.options),i={...t.options,currentValues:((c=t.initialState)==null?void 0:c.range)?[{...t.initialState.range,endInclusive:!0,state:"selected"}]:[],generateAutomaticRanges:!1,facetId:o};Ql(e,i),a(Rr(i));let s=()=>Sr(e.state,o);return{...r,clear:()=>{a(Jr({facetId:o,values:[]})),a(ie())},setRange:u=>{let l={...u,state:"selected",numberOfResults:0,endInclusive:!0},d=Jr({facetId:o,values:[l]});return d.error?!1:(a(d),a(ie()),!0)},enable(){a(Ke(o))},disable(){a(ve(o))},get state(){let u=ar(n()),l=s(),d=zx(n(),o),p=d.length?d[0]:void 0;return{facetId:o,isLoading:u,range:p,enabled:l}}}}function $k(e){return e.addReducers({dateFacetSet:qr,facetOptions:Qe,configuration:$,search:J}),!0}function Hk(e,t){if(!Gk(e))throw k;let r=Yx(e,t),{dispatch:a}=e,n=()=>r.state.facetId;return{...r,clear:()=>{r.clear(),a(I({legacy:Ne(n()),next:Xe(n())}))},setRange:o=>{let i=r.setRange(o);return i&&a(I({legacy:Pe({facetId:n(),facetValue:`${o.start}..${o.end}`}),next:De(n(),`${o.start}..${o.end}`)})),i},get state(){return{...r.state}}}}function Gk(e){return e.addReducers({dateFacetSet:qr,configuration:$,search:J}),!0}var jl=T(da(),e=>{e.addCase(I.fulfilled,um).addCase(fl.fulfilled,um).addCase(ml.fulfilled,um).addCase(ce.fulfilled,(t,r)=>{var a,n;return(n=(a=r.payload)==null?void 0:a.facetOrder)!=null?n:t})});function um(e,t){return t.payload.response.facets.map(r=>r.facetId)}var Ul=()=>E("history/analytics/forward",e=>e.makeSearchEvent("historyForward")),_l=()=>E("history/analytics/backward",e=>e.makeSearchEvent("historyBackward")),$l=()=>E("history/analytics/noresultsback",e=>e.makeNoResultsBack()),Kx=()=>({actionCause:oe.historyForward,getEventExtraPayload:e=>new ae(()=>e).getBaseMetadata()}),Jx=()=>({actionCause:oe.historyBackward,getEventExtraPayload:e=>new ae(()=>e).getBaseMetadata()}),Xx=()=>({actionCause:oe.noResultsBack,getEventExtraPayload:e=>new ae(()=>e).getBaseMetadata()});var zk=Object.getOwnPropertyNames,Wk=Object.getOwnPropertySymbols,Yk=Object.prototype.hasOwnProperty;function Zx(e,t){return function(a,n,o){return e(a,n,o)&&t(a,n,o)}}function Hl(e){return function(r,a,n){if(!r||!a||typeof r!="object"||typeof a!="object")return e(r,a,n);var o=n.cache,i=o.get(r),s=o.get(a);if(i&&s)return i===a&&s===r;o.set(r,a),o.set(a,r);var c=e(r,a,n);return o.delete(r),o.delete(a),c}}function ev(e){return zk(e).concat(Wk(e))}var tv=Object.hasOwn||function(e,t){return Yk.call(e,t)};function oi(e,t){return e||t?e===t:e===t||e!==e&&t!==t}var rv="_owner",av=Object.getOwnPropertyDescriptor,nv=Object.keys;function Kk(e,t,r){var a=e.length;if(t.length!==a)return!1;for(;a-- >0;)if(!r.equals(e[a],t[a],a,a,e,t,r))return!1;return!0}function Jk(e,t){return oi(e.getTime(),t.getTime())}function ov(e,t,r){if(e.size!==t.size)return!1;for(var a={},n=e.entries(),o=0,i,s;(i=n.next())&&!i.done;){for(var c=t.entries(),u=!1,l=0;(s=c.next())&&!s.done;){var d=i.value,p=d[0],f=d[1],m=s.value,g=m[0],S=m[1];!u&&!a[l]&&(u=r.equals(p,g,o,l,e,t,r)&&r.equals(f,S,p,g,e,t,r))&&(a[l]=!0),l++}if(!u)return!1;o++}return!0}function Xk(e,t,r){var a=nv(e),n=a.length;if(nv(t).length!==n)return!1;for(var o;n-- >0;)if(o=a[n],o===rv&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!tv(t,o)||!r.equals(e[o],t[o],o,o,e,t,r))return!1;return!0}function Gs(e,t,r){var a=ev(e),n=a.length;if(ev(t).length!==n)return!1;for(var o,i,s;n-- >0;)if(o=a[n],o===rv&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!tv(t,o)||!r.equals(e[o],t[o],o,o,e,t,r)||(i=av(e,o),s=av(t,o),(i||s)&&(!i||!s||i.configurable!==s.configurable||i.enumerable!==s.enumerable||i.writable!==s.writable)))return!1;return!0}function Zk(e,t){return oi(e.valueOf(),t.valueOf())}function eO(e,t){return e.source===t.source&&e.flags===t.flags}function iv(e,t,r){if(e.size!==t.size)return!1;for(var a={},n=e.values(),o,i;(o=n.next())&&!o.done;){for(var s=t.values(),c=!1,u=0;(i=s.next())&&!i.done;)!c&&!a[u]&&(c=r.equals(o.value,i.value,o.value,i.value,e,t,r))&&(a[u]=!0),u++;if(!c)return!1}return!0}function tO(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}var rO="[object Arguments]",aO="[object Boolean]",nO="[object Date]",oO="[object Map]",iO="[object Number]",sO="[object Object]",cO="[object RegExp]",uO="[object Set]",lO="[object String]",dO=Array.isArray,sv=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,cv=Object.assign,pO=Object.prototype.toString.call.bind(Object.prototype.toString);function fO(e){var t=e.areArraysEqual,r=e.areDatesEqual,a=e.areMapsEqual,n=e.areObjectsEqual,o=e.arePrimitiveWrappersEqual,i=e.areRegExpsEqual,s=e.areSetsEqual,c=e.areTypedArraysEqual;return function(l,d,p){if(l===d)return!0;if(l==null||d==null||typeof l!="object"||typeof d!="object")return l!==l&&d!==d;var f=l.constructor;if(f!==d.constructor)return!1;if(f===Object)return n(l,d,p);if(dO(l))return t(l,d,p);if(sv!=null&&sv(l))return c(l,d,p);if(f===Date)return r(l,d,p);if(f===RegExp)return i(l,d,p);if(f===Map)return a(l,d,p);if(f===Set)return s(l,d,p);var m=pO(l);return m===nO?r(l,d,p):m===cO?i(l,d,p):m===oO?a(l,d,p):m===uO?s(l,d,p):m===sO?typeof l.then!="function"&&typeof d.then!="function"&&n(l,d,p):m===rO?n(l,d,p):m===aO||m===iO||m===lO?o(l,d,p):!1}}function mO(e){var t=e.circular,r=e.createCustomConfig,a=e.strict,n={areArraysEqual:a?Gs:Kk,areDatesEqual:Jk,areMapsEqual:a?Zx(ov,Gs):ov,areObjectsEqual:a?Gs:Xk,arePrimitiveWrappersEqual:Zk,areRegExpsEqual:eO,areSetsEqual:a?Zx(iv,Gs):iv,areTypedArraysEqual:a?Gs:tO};if(r&&(n=cv({},n,r(n))),t){var o=Hl(n.areArraysEqual),i=Hl(n.areMapsEqual),s=Hl(n.areObjectsEqual),c=Hl(n.areSetsEqual);n=cv({},n,{areArraysEqual:o,areMapsEqual:i,areObjectsEqual:s,areSetsEqual:c})}return n}function gO(e){return function(t,r,a,n,o,i,s){return e(t,r,s)}}function hO(e){var t=e.circular,r=e.comparator,a=e.createState,n=e.equals,o=e.strict;if(a)return function(c,u){var l=a(),d=l.cache,p=d===void 0?t?new WeakMap:void 0:d,f=l.meta;return r(c,u,{cache:p,equals:n,meta:f,strict:o})};if(t)return function(c,u){return r(c,u,{cache:new WeakMap,equals:n,meta:void 0,strict:o})};var i={cache:void 0,equals:n,meta:void 0,strict:o};return function(c,u){return r(c,u,i)}}var dZ=Tr(),pZ=Tr({strict:!0}),fZ=Tr({circular:!0}),mZ=Tr({circular:!0,strict:!0}),gZ=Tr({createInternalComparator:function(){return oi}}),hZ=Tr({strict:!0,createInternalComparator:function(){return oi}}),SZ=Tr({circular:!0,createInternalComparator:function(){return oi}}),yZ=Tr({circular:!0,createInternalComparator:function(){return oi},strict:!0});function Tr(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,a=e.createInternalComparator,n=e.createState,o=e.strict,i=o===void 0?!1:o,s=mO(e),c=fO(s),u=a?a(c):gO(c);return hO({circular:r,comparator:c,createState:n,equals:u,strict:i})}function kn(e,t,r=(a,n)=>a===n){return e.length===t.length&&e.findIndex((a,n)=>!r(t[n],a))===-1}function SO(e,t){return e.length!==t.length?!1:e.every(r=>t.findIndex(a=>zs(r,a))!==-1)}var zs=Tr({createCustomConfig:e=>({...e,areArraysEqual:SO})});var yO=T(Wc(),e=>{e.addCase(ht,(t,r)=>CO(t,r.payload)?void 0:r.payload)}),CO=(e,t)=>xO(e.context,t.context)&&vO(e.dictionaryFieldContext,t.dictionaryFieldContext)&&IO(e.advancedSearchQueries,t.advancedSearchQueries)&&AO(e.tabSet,t.tabSet)&&bO(e.staticFilterSet,t.staticFilterSet)&&lm(e.facetSet,t.facetSet)&&lm(e.dateFacetSet,t.dateFacetSet)&&lm(e.numericFacetSet,t.numericFacetSet)&&RO(e.automaticFacetSet,t.automaticFacetSet)&&FO(e.categoryFacetSet,t.categoryFacetSet)&&PO(e.pagination,t.pagination)&&wO(e.query,t.query)&&EO(e,t)&&kO(e.pipeline,t.pipeline)&&OO(e.searchHub,t.searchHub)&&qO(e.facetOrder,t.facetOrder)&&TO(e.debug,t.debug),xO=(e,t)=>JSON.stringify(e.contextValues)===JSON.stringify(t.contextValues),vO=(e,t)=>JSON.stringify(e.contextValues)===JSON.stringify(t.contextValues),AO=(e,t)=>{let r=uv(e),a=uv(t);return(r==null?void 0:r.id)===(a==null?void 0:a.id)},uv=e=>Object.values(e).find(t=>t.isActive),bO=(e,t)=>{for(let[r,a]of Object.entries(t)){if(!e[r])return!1;let n=lv(e[r]),o=lv(a);if(JSON.stringify(n)!==JSON.stringify(o))return!1}return!0},lv=e=>e.values.filter(t=>t.state!=="idle"),lm=(e,t)=>{for(let[r,a]of Object.entries(t)){if(!e[r])return!1;let n=e[r].request.currentValues.filter(i=>i.state!=="idle"),o=a.request.currentValues.filter(i=>i.state!=="idle");if(JSON.stringify(n)!==JSON.stringify(o))return!1}return!0},FO=(e,t)=>{var r;for(let[a,n]of Object.entries(t)){if(!e[a])return!1;let o=gt((r=e[a])==null?void 0:r.request.currentValues).map(({value:s})=>s),i=gt(n==null?void 0:n.request.currentValues).map(({value:s})=>s);if(JSON.stringify(o)!==JSON.stringify(i))return!1}return!0},RO=(e,t)=>{for(let[r,a]of Object.entries(t.set)){if(!e.set[r])return!1;let n=e.set[r].response.values.filter(i=>i.state!=="idle"),o=a.response.values.filter(i=>i.state!=="idle");if(JSON.stringify(n)!==JSON.stringify(o))return!1}return!0},PO=(e,t)=>e.firstResult===t.firstResult&&e.numberOfResults===t.numberOfResults,wO=(e,t)=>JSON.stringify(e)===JSON.stringify(t),IO=(e,t)=>JSON.stringify(e)===JSON.stringify(t),EO=(e,t)=>e.sortCriteria===t.sortCriteria,kO=(e,t)=>e===t,OO=(e,t)=>e===t,qO=(e,t)=>kn(e,t),TO=(e,t)=>e===t,Gl=bS({actionTypes:{redo:Tf.type,undo:qf.type,snapshot:ht.type},reducer:yO});function DO(e){if(!VO(e))throw k;let t=M(e),{dispatch:r}=e,a=()=>e.state,n=o=>o.past.length>0&&!te(o.present);return{...t,subscribe(o){o();let i=JSON.stringify(a().history.present),s=()=>{let c=JSON.stringify(a().history.present);i!==c&&(i=c,o())};return e.subscribe(()=>s())},get state(){return a().history},async back(){!n(this.state)||(await r(ks()),r(I({legacy:_l(),next:Jx()})))},async forward(){!this.state.future.length||!this.state.present||(await r(Fu()),r(I({legacy:Ul(),next:Kx()})))},async backOnNoResults(){!n(this.state)||(await r(ks()),r(I({legacy:$l(),next:Xx()})))}}}function VO(e){return e.addReducers({history:Gl,configuration:$,facetOrder:jl}),!0}var MO=new D({min:PS,default:zc,required:!1}),LO=new D({min:FS,max:RS,default:Gc,required:!1}),NO={desiredCount:LO,numberOfValues:MO},zl=C("automaticFacet/setOptions",e=>A(e,NO)),Wl=C("automaticFacet/deselectAll",e=>A(e,ee)),QO=O,Ma=C("automaticFacet/toggleSelectValue",e=>A(e,{field:QO,selection:new q({values:bn})}));var Dr=T(Ue(),e=>{e.addCase(yo,(t,r)=>{let a=dm(t),n=r.payload;t.defaultNumberOfResults=t.numberOfResults=n,t.firstResult=Ws(a,n)}).addCase(Co,(t,r)=>{t.numberOfResults=r.payload,t.firstResult=0}).addCase(jt,t=>{t.firstResult=0}).addCase(xo,(t,r)=>{let a=r.payload;t.firstResult=Ws(a,t.numberOfResults)}).addCase(Ft,(t,r)=>{let a=r.payload;t.firstResult=Ws(a,t.numberOfResults)}).addCase(Ao,t=>{let r=dm(t),a=Math.max(r-1,pn);t.firstResult=Ws(a,t.numberOfResults)}).addCase(vo,t=>{let r=dm(t),a=BO(t),n=Math.min(r+1,a);t.firstResult=Ws(n,t.numberOfResults)}).addCase(ce.fulfilled,(t,r)=>{r.payload&&(t.numberOfResults=r.payload.pagination.numberOfResults,t.firstResult=r.payload.pagination.firstResult)}).addCase(ue,(t,r)=>{var a,n;t.firstResult=(a=r.payload.firstResult)!=null?a:t.firstResult,t.numberOfResults=(n=r.payload.numberOfResults)!=null?n:t.defaultNumberOfResults}).addCase(I.fulfilled,(t,r)=>{let{response:a}=r.payload;t.totalCountFiltered=a.totalCountFiltered}).addCase(Da.fulfilled,(t,r)=>{let{response:a}=r.payload;t.totalCountFiltered=a.pagination.totalCount}).addCase(Ae,t=>{et(t)}).addCase(wr,t=>{et(t)}).addCase(Fr,t=>{et(t)}).addCase(kr,t=>{et(t)}).addCase(An,t=>{et(t)}).addCase(br,t=>{et(t)}).addCase(pr,t=>{et(t)}).addCase(ka,t=>{et(t)}).addCase(Bo,t=>{et(t)}).addCase(Pr,t=>{et(t)}).addCase(Er,t=>{et(t)}).addCase(Fe,t=>{et(t)}).addCase(Jr,t=>{et(t)}).addCase(Xr,t=>{et(t)}).addCase(vn,t=>{et(t)}).addCase(Ma,t=>{et(t)})});function et(e){e.firstResult=Ue().firstResult}function dm(e){let{firstResult:t,numberOfResults:r}=e;return pm(t,r)}function BO(e){let{totalCountFiltered:t,numberOfResults:r}=e;return fm(t,r)}function Ws(e,t){return(e-1)*t}function pm(e,t){return Math.round(e/t)+1}function fm(e,t){let r=Math.min(e,Vs);return Math.ceil(r/t)}function jO(e){return e.pagination.firstResult}function dv(e){return e.pagination.numberOfResults}function UO(e){return e.pagination.totalCountFiltered}var La=e=>{let t=jO(e),r=dv(e);return pm(t,r)},Yl=e=>{let t=UO(e),r=dv(e);return fm(t,r)},mm=(e,t)=>{let r=La(e),a=Yl(e),n=_O(r,t);return n=$O(n),n=HO(n,a),GO(n)};function _O(e,t){let r=t%2==0,a=Math.floor(t/2),n=r?a-1:a,o=e-a,i=e+n;return{start:o,end:i}}function $O(e){let t=Math.max(pn-e.start,0),r=e.start+t,a=e.end+t;return{start:r,end:a}}function HO(e,t){let r=Math.max(e.end-t,0),a=Math.max(e.start-r,pn),n=e.end-r;return{start:a,end:n}}function GO(e){let t=[];for(let r=e.start;r<=e.end;++r)t.push(r);return t}var ii=()=>E("analytics/pager/resize",(e,t)=>{var r;return e.makePagerResize({currentResultsPerPage:((r=t.pagination)==null?void 0:r.numberOfResults)||Ue().numberOfResults})}),si=()=>E("analytics/pager/number",(e,t)=>e.makePagerNumber({pagerNumber:La(t)})),Kl=()=>E("analytics/pager/next",(e,t)=>e.makePagerNext({pagerNumber:La(t)})),Jl=()=>E("analytics/pager/previous",(e,t)=>e.makePagerPrevious({pagerNumber:La(t)}));var zO=new Y({numberOfPages:new D({default:5,min:0})}),WO=new Y({page:new D({min:1})});function pv(e,t={}){if(!YO(e))throw k;let r=M(e),{dispatch:a}=e,n=he(e,zO,t.options,"buildPager"),i=ke(e,WO,t.initialState,"buildPager").page;i&&a(xo(i));let s=()=>La(e.state),c=()=>{let{numberOfPages:l}=n;return mm(e.state,l)},u=()=>Yl(e.state);return{...r,get state(){let l=s(),d=u(),p=l>pn&&d>0,f=le.state;return{...t,get state(){return{hasError:r().search.error!==null,error:r().search.error}}}}function JO(e){return e.addReducers({search:J}),!0}function XO(e){return fv(e)}function ci(e){if(!ZO(e))throw k;let t=M(e),r=()=>e.state;return{...t,get state(){let a=r();return{hasError:a.search.error!==null,isLoading:a.search.isLoading,hasResults:!!a.search.results.length,firstSearchExecuted:Ms(a)}}}}function ZO(e){return e.addReducers({search:J}),!0}function mv(e){if(!eq(e))throw k;let t=M(e),r=ci(e),a=()=>e.state,n=()=>{let o=a().search.duration/1e3;return Math.round((o+Number.EPSILON)*100)/100};return{...t,get state(){return{...r.state,durationInMilliseconds:a().search.duration,durationInSeconds:n(),firstResult:a().pagination.firstResult+1,hasDuration:a().search.duration!==0,hasQuery:a().search.queryExecuted!=="",lastResult:a().pagination.firstResult+a().search.results.length,query:a().search.queryExecuted,total:a().pagination.totalCountFiltered}}}}function eq(e){return e.addReducers({search:J,pagination:Dr}),!0}function tq(e){return mv(e)}var rq=new Y({fieldsToInclude:new X({required:!1,each:new w({required:!0,emptyAllowed:!1})})});function Xl(e,t){if(!aq(e))throw k;let r=M(e),a=ci(e),{dispatch:n}=e,o=()=>e.state,i=he(e,rq,t==null?void 0:t.options,"buildCoreResultList");i.fieldsToInclude&&n(Pa(i.fieldsToInclude));let s=()=>e.state.search.results.length{if(e.state.search.isLoading)return;if(!s()){e.logger.info("No more results are available for the result list to fetch.");return}if(Date.now()-c=l){c=Date.now(),!p&&e.logger.error(`The result list method "fetchMoreResults" execution prevented because it has been triggered consecutively ${l} times, with little delay. Please verify the conditions under which the function is called.`),p=!0;return}}else u=0;p=!1,(t==null?void 0:t.fetchMoreResultsActionCreator)&&(await n(t==null?void 0:t.fetchMoreResultsActionCreator()),c=Date.now())}}}function aq(e){return e.addReducers({search:J,configuration:$,fields:Ea}),!0}function nq(e,t){return Xl(e,{...t,fetchMoreResultsActionCreator:Fa})}var oq={results:new X({required:!0,each:new q({values:oo})}),maxLength:new D({required:!0,min:1,default:10})},ui=C("recentResults/registerRecentResults",e=>A(e,oq)),wt=C("recentResults/pushRecentResult",e=>(ut(e),{payload:e})),li=C("recentResults/clearRecentResults");var Zl=e=>E({prefix:"analytics/result/open",__legacy__getBuilder:(t,r)=>(ut(e),t.makeDocumentOpen(Oe(e,r),Le(e))),analyticsType:"itemClick",analyticsPayloadBuilder:t=>{var n,o;let r=Oe(e,t),a=Le(e);return{searchUid:(o=(n=t.search)==null?void 0:n.response.searchUid)!=null?o:"",position:r.documentPosition,itemMetadata:{uniqueFieldName:a.contentIDKey,uniqueFieldValue:a.contentIDValue,title:r.documentTitle,author:r.documentAuthor,url:r.documentUrl}}}});function dt(e,t,r){if(!iq(e))throw k;let a=1e3,n={selectionDelay:a,debounceWait:a,...t.options},o;return{select:Uu(r,n.debounceWait,{isImmediate:!0}),beginDelayedSelect(){o=setTimeout(r,n.selectionDelay)},cancelPendingSelect(){o&&clearTimeout(o)}}}function iq(e){return e.addReducers({configuration:$}),!0}function sq(e,t){let r=!1,a=()=>{r||(r=!0,e.dispatch(Zl(t.options.result)))};return dt(e,t,()=>{a(),e.dispatch(wt(t.options.result))})}function cq(e,t){let r=!1,a=()=>{r||(r=!0,e.dispatch(Ky(t.options.result)))};return dt(e,t,()=>{a(),e.dispatch(wt(t.options.result))})}var uq=new Y({numberOfResults:new D({min:0})});function gv(e,t={}){if(!lq(e))throw k;let r=M(e),{dispatch:a}=e,n=()=>e.state,i=ke(e,uq,t.initialState,"buildResultsPerPage").numberOfResults;return i!==void 0&&a(yo(i)),{...r,get state(){return{numberOfResults:n().pagination.numberOfResults}},set(s){a(Co(s))},isSetTo(s){return s===this.state.numberOfResults}}}function lq(e){return e.addReducers({pagination:Dr,configuration:$}),!0}function dq(e,t={}){if(!pq(e))throw k;let r=gv(e,t),{dispatch:a}=e;return{...r,get state(){return{...r.state}},set(n){r.set(n),a(ur({legacy:ii()}))}}}function pq(e){return e.addReducers({pagination:Dr,configuration:$}),!0}var On={id:O},di=C("querySuggest/register",e=>A(e,{...On,count:new D({min:0})})),hv=C("querySuggest/unregister",e=>A(e,On)),Vr=C("querySuggest/selectSuggestion",e=>A(e,{...On,expression:ge})),Na=C("querySuggest/clear",e=>A(e,On)),Qa=W("querySuggest/fetch",async(e,{getState:t,rejectWithValue:r,extra:{apiClient:a,validatePayload:n}})=>{n(e,On);let o=e.id,i=await fq(o,t()),s=await a.querySuggest(i);return ye(s)?r(s.error):{id:o,q:i.q,...s.success}}),fq=async(e,t)=>({accessToken:t.configuration.accessToken,organizationId:t.configuration.organizationId,url:t.configuration.search.apiBaseUrl,count:t.querySuggest[e].count,q:t.querySet[e],locale:t.configuration.search.locale,timezone:t.configuration.search.timezone,actionsHistory:t.configuration.analytics.enabled?vt.getHistory():[],...t.context&&{context:t.context.contextValues},...t.pipeline&&{pipeline:t.pipeline},...t.searchHub&&{searchHub:t.searchHub},...t.configuration.analytics.enabled&&{visitorId:await We(t.configuration.analytics),...t.configuration.analytics.enabled&&await bo(t.configuration.analytics)},...t.configuration.search.authenticationProviders.length&&{authentication:t.configuration.search.authenticationProviders.join(",")}});var Ba=()=>E("analytics/searchbox/submit",e=>e.makeSearchboxSubmit()),ed=()=>({actionCause:oe.searchboxSubmit,getEventExtraPayload:e=>new ae(()=>e).getBaseMetadata()});var Sv={id:O,query:ge},pi=C("querySet/register",e=>A(e,Sv)),qn=C("querySet/update",e=>A(e,Sv));var fi=T(pa(),e=>{e.addCase(pi,(t,r)=>{let{id:a,query:n}=r.payload;a in t||(t[a]=n)}).addCase(qn,(t,r)=>{let{id:a,query:n}=r.payload;gm(t,a,n)}).addCase(Vr,(t,r)=>{let{id:a,expression:n}=r.payload;gm(t,a,n)}).addCase(I.fulfilled,(t,r)=>{let{queryExecuted:a}=r.payload;yv(t,a)}).addCase(ue,(t,r)=>{te(r.payload.q)||yv(t,r.payload.q)}).addCase(ce.fulfilled,(t,r)=>{if(!!r.payload)for(let[a,n]of Object.entries(r.payload.querySet))gm(t,a,n)})});function yv(e,t){Object.keys(e).forEach(r=>e[r]=t)}var gm=(e,t,r)=>{t in e&&(e[t]=r)};var td=e=>E("analytics/querySuggest",(t,r)=>{let a=hm(r,e);return t.makeOmniboxAnalytics(a)}),Cv=(e,t)=>({actionCause:oe.omniboxAnalytics,getEventExtraPayload:r=>new ae(()=>r).getOmniboxAnalyticsMetadata(e,t)});function hm(e,t){let{id:r,suggestion:a}=t,n=e.querySuggest&&e.querySuggest[r];if(!n)throw new Error(`Unable to determine the query suggest analytics metadata to send because no query suggest with id "${r}" was found. Please check the sent #id.`);let o=n.completions.map(u=>u.expression),i=n.partialQueries.length-1,s=n.partialQueries[i]||"",c=n.responseId;return{suggestionRanking:o.indexOf(a),partialQuery:s,partialQueries:n.partialQueries,suggestions:o,querySuggestResponseId:c}}var rd=W("commerce/querySuggest/fetch",async(e,{getState:t,rejectWithValue:r,extra:{apiClient:a,validatePayload:n}})=>{n(e,On);let o=t(),i=await mq(e.id,o),s=await a.querySuggest(i);return ye(s)?r(s.error):{id:e.id,query:i.query,...s.success}}),mq=async(e,t)=>{let{view:r,user:a,...n}=t.commerceContext;return{accessToken:t.configuration.accessToken,url:t.configuration.platformUrl,organizationId:t.configuration.organizationId,query:t.querySet[e],...n,clientId:await We(t.configuration.analytics),context:{user:a,view:r,cart:t.cart.cartItems.map(o=>t.cart.cart[o])}}};var mi=T(Mc(),e=>e.addCase(di,(t,r)=>{let a=r.payload.id;a in t||(t[a]=gq(r.payload))}).addCase(hv,(t,r)=>{delete t[r.payload.id]}).addCase(Qa.pending,xv).addCase(Qa.fulfilled,(t,r)=>{let a=t[r.meta.arg.id];if(!a||r.meta.requestId!==a.currentRequestId)return;let{q:n}=r.payload;n&&a.partialQueries.push(n.replace(/;/,encodeURIComponent(";"))),a.responseId=r.payload.responseId,a.completions=r.payload.completions,a.isLoading=!1,a.error=null}).addCase(Qa.rejected,vv).addCase(rd.pending,xv).addCase(rd.fulfilled,(t,r)=>{let a=t[r.meta.arg.id];if(!a||r.meta.requestId!==a.currentRequestId)return;let{query:n}=r.payload;n&&a.partialQueries.push(n.replace(/;/,encodeURIComponent(";"))),a.responseId=r.payload.responseId,a.completions=r.payload.completions.map(o=>({expression:o.expression,highlighted:o.highlighted,score:0,executableConfidence:0})),a.isLoading=!1,a.error=null}).addCase(rd.rejected,vv).addCase(Na,(t,r)=>{let a=t[r.payload.id];!a||(a.responseId="",a.completions=[],a.partialQueries=[])}));function gq(e){return{id:"",completions:[],responseId:"",count:5,currentRequestId:"",error:null,partialQueries:[],isLoading:!1,...e}}function xv(e,t){let r=e[t.meta.arg.id];!r||(r.currentRequestId=t.meta.requestId,r.isLoading=!0)}function vv(e,t){let r=e[t.meta.arg.id];!r||(r.error=t.payload||null,r.isLoading=!1)}var It=T(xe(),e=>e.addCase(Ye,(t,r)=>({...t,...r.payload})).addCase(Rt,(t,r)=>{t.q=r.payload}).addCase(Vr,(t,r)=>{t.q=r.payload.expression}).addCase(ce.fulfilled,(t,r)=>{var a,n;return(n=(a=r.payload)==null?void 0:a.query)!=null?n:t}).addCase(ue,(t,r)=>{var a,n;t.q=(a=r.payload.q)!=null?a:t.q,t.enableQuerySyntax=(n=r.payload.enableQuerySyntax)!=null?n:t.enableQuerySyntax}));var ad={enableQuerySyntax:!1,numberOfSuggestions:5,clearFilters:!0},Sm={open:new w,close:new w},ym={id:O,numberOfSuggestions:new D({min:0}),enableQuerySyntax:new K,highlightOptions:new q({values:{notMatchDelimiters:new q({values:Sm}),exactMatchDelimiters:new q({values:Sm}),correctionDelimiters:new q({values:Sm})}}),clearFilters:new K},Av=new Y(ym);function bv(e,t){var u,l;if(!Sq(e))throw k;let r=M(e),{dispatch:a}=e,n=()=>e.state,o=((u=t.options)==null?void 0:u.id)||la("search_box"),i={id:o,highlightOptions:{...(l=t.options)==null?void 0:l.highlightOptions},...ad,...t.options};he(e,Av,i,"buildSearchBox"),a(pi({id:o,query:e.state.query.q})),i.numberOfSuggestions&&a(di({id:o,count:i.numberOfSuggestions}));let s=()=>e.state.querySet[i.id],c=async d=>{let{enableQuerySyntax:p,clearFilters:f}=i;a(Bu({q:s(),enableQuerySyntax:p,clearFilters:f})),t.isNextAnalyticsReady?a(t.executeSearchActionCreator(d)):a(t.executeSearchActionCreator(d.legacy))};return{...r,updateText(d){a(qn({id:o,query:d})),this.showSuggestions()},clear(){a(qn({id:o,query:""})),a(Na({id:o}))},showSuggestions(){i.numberOfSuggestions&&a(t.fetchQuerySuggestionsActionCreator({id:o}))},selectSuggestion(d){a(Vr({id:o,expression:d})),c({legacy:td({id:o,suggestion:d}),next:Cv(o,d)}).then(()=>{a(Na({id:o}))})},submit(d=Ba(),p){c({legacy:d,next:p}),a(Na({id:o}))},get state(){let d=n(),p=d.querySuggest[i.id],f=hq(p,i.highlightOptions),m=p?p.isLoading:!1;return{value:s(),suggestions:f,isLoading:d.search.isLoading,isLoadingSuggestions:m}}}}function hq(e,t){return e?e.completions.map(r=>({highlightedValue:of(r.highlighted,t),rawValue:r.expression})):[]}function Sq(e){return e.addReducers({query:It,querySuggest:mi,configuration:$,querySet:fi,search:J}),!0}function Cm(e,t={}){let r=bv(e,{...t,executeSearchActionCreator:I,fetchQuerySuggestionsActionCreator:Qa,isNextAnalyticsReady:!0});return{...r,submit(){r.submit(Ba(),ed())},get state(){return r.state}}}var nd=T(Yc(),e=>{e.addCase(ho,(t,r)=>{let{id:a}=r.payload;t[a]||(t[a]={q:"",cache:{}})}),e.addCase(sr,(t,r)=>{let{q:a,id:n}=r.payload;!a||(t[n].q=a)}),e.addCase(So,(t,r)=>{let{id:a}=r.payload;Object.entries(t[a].cache).forEach(([n,o])=>{Kc(o)&&delete t[a].cache[n]})}),e.addCase(To.pending,(t,r)=>{for(let n in t)for(let o in t[n].cache)t[n].cache[o].isActive=!1;if(!od(t,r.meta)){yq(t,r.meta);return}let a=od(t,r.meta);a.isLoading=!0,a.isActive=!0,a.error=null}),e.addCase(To.fulfilled,(t,r)=>{let{results:a,searchUid:n,totalCountFiltered:o,duration:i}=r.payload,{cacheTimeout:s}=r.meta.arg,c=od(t,r.meta);c.isActive=!0,c.searchUid=n,c.isLoading=!1,c.error=null,c.results=a,c.expiresAt=s?s+Date.now():0,c.totalCountFiltered=o,c.duration=i}),e.addCase(To.rejected,(t,r)=>{let a=od(t,r.meta);a.error=r.error||null,a.isLoading=!1,a.isActive=!1})}),yq=(e,t)=>{let{q:r,id:a}=t.arg;e[a].cache[r]={isLoading:!0,error:null,results:[],expiresAt:0,isActive:!0,searchUid:"",totalCountFiltered:0,duration:0}},od=(e,t)=>{let{q:r,id:a}=t.arg;return e[a].cache[r]||null};var Cq={searchBoxId:de,maxResultsPerQuery:new D({required:!0,min:1}),cacheTimeout:new D},Fv=new Y(Cq);function xq(e,t){if(!vq(e))throw k;let r=M(e),{dispatch:a}=e,n=()=>e.state,o={searchBoxId:t.options.searchBoxId||la("instant-results-"),cacheTimeout:t.options.cacheTimeout||6e4,maxResultsPerQuery:t.options.maxResultsPerQuery};he(e,Fv,o,"buildInstantResults");let i=o.searchBoxId;a(ho({id:i}));let s=()=>n().instantResults[i],c=d=>s().cache[d],u=()=>s().q,l=()=>{let d=c(u());return d?d.isLoading?[]:d.results:[]};return{...r,updateQuery(d){if(!d)return;let p=c(d);(!p||!p.isLoading&&(p.error||Kc(p)))&&a(To({id:i,q:d,maxResultsPerQuery:o.maxResultsPerQuery,cacheTimeout:o.cacheTimeout})),a(sr({id:i,q:d}))},clearExpired(){a(So({id:i}))},get state(){let d=u(),p=c(d);return{q:d,isLoading:(p==null?void 0:p.isLoading)||!1,error:(p==null?void 0:p.error)||null,results:l()}}}}function vq(e){return e.addReducers({instantResults:nd}),!0}var gi=()=>E("analytics/sort/results",(e,t)=>e.makeResultsSort({resultsSortBy:t.sortCriteria||tt()})),id=()=>({actionCause:oe.resultsSort,getEventExtraPayload:e=>new ae(()=>e).getResultSortMetadata()});var Rv={by:new Dt({enum:Zt,required:!0})},hi=C("sortCriteria/register",e=>Pv(e)),Si=C("sortCriteria/update",e=>Pv(e)),Pv=e=>_n(e)?(e.forEach(t=>A(t,Rv)),{payload:e}):A(e,Rv);var sd=T(tt(),e=>{e.addCase(hi,(t,r)=>Hr(r.payload)).addCase(Si,(t,r)=>Hr(r.payload)).addCase(ce.fulfilled,(t,r)=>{var a,n;return(n=(a=r.payload)==null?void 0:a.sortCriteria)!=null?n:t}).addCase(ue,(t,r)=>{var a;return(a=r.payload.sortCriteria)!=null?a:t})});function Aq(e,t){if(!t)return;let r=new Y({criterion:new X({each:xS})}),a=bq(t),n={...t,criterion:a};ke(e,r,n,"buildSort")}function bq(e){return e.criterion?_n(e.criterion)?e.criterion:[e.criterion]:[]}function wv(e,t){var i;if(!Fq(e))throw k;let r=M(e),{dispatch:a}=e,n=()=>e.state;Aq(e,t.initialState);let o=(i=t.initialState)==null?void 0:i.criterion;return o&&a(hi(o)),{...r,sortBy(s){a(Si(s)),a(Ft(1))},isSortedBy(s){return this.state.sortCriteria===Hr(s)},get state(){return{sortCriteria:n().sortCriteria}}}}function Fq(e){return e.addReducers({configuration:$,sortCriteria:sd}),!0}function Rq(e,t={}){let{dispatch:r}=e,a=wv(e,t),n=()=>r(I({legacy:gi(),next:id()}));return{...a,get state(){return a.state},sortBy(o){a.sortBy(o),n()}}}var Tn=O,cd=new q({options:{required:!0},values:{caption:ge,expression:ge,state:new w({constrainTo:["idle","selected","excluded"]})}}),ud=new X({required:!0,each:cd});var yi=C("staticFilter/register",e=>A(e,{id:Tn,values:ud})),Zr=C("staticFilter/toggleSelect",e=>A(e,{id:Tn,value:cd})),ea=C("staticFilter/toggleExclude",e=>A(e,{id:Tn,value:cd})),ja=C("staticFilter/deselectAllFilterValues",e=>A(e,Tn)),ld=e=>E("analytics/staticFilter/select",t=>t.makeStaticFilterSelect(e)),Ci=e=>E("analytics/staticFilter/deselect",t=>t.makeStaticFilterDeselect(e)),dd=e=>E("analytics/staticFilter/clearAll",t=>t.makeStaticFilterClearAll(e)),Iv=(e,t)=>({actionCause:oe.staticFilterSelect,getEventExtraPayload:r=>new ae(()=>r).getStaticFilterToggleMetadata(e,t)}),pd=(e,t)=>({actionCause:oe.staticFilterDeselect,getEventExtraPayload:r=>new ae(()=>r).getStaticFilterToggleMetadata(e,t)}),Ev=e=>({actionCause:oe.staticFilterClearAll,getEventExtraPayload:t=>new ae(()=>t).getStaticFilterClearAllMetadata(e)});var fd=T(an(),e=>e.addCase(yi,(t,r)=>{let a=r.payload,{id:n}=a;n in t||(t[n]=a)}).addCase(Zr,(t,r)=>{let{id:a,value:n}=r.payload,o=t[a];if(!o)return;let i=o.values.find(c=>c.caption===n.caption);if(!i)return;let s=i.state==="selected";i.state=s?"idle":"selected"}).addCase(ea,(t,r)=>{let{id:a,value:n}=r.payload,o=t[a];if(!o)return;let i=o.values.find(c=>c.caption===n.caption);if(!i)return;let s=i.state==="excluded";i.state=s?"idle":"excluded"}).addCase(ja,(t,r)=>{let a=r.payload,n=t[a];!n||n.values.forEach(o=>o.state="idle")}).addCase(Fe,t=>{Object.values(t).forEach(r=>{r.values.forEach(a=>a.state="idle")})}).addCase(ue,(t,r)=>{let a=r.payload.sf||{};Object.entries(t).forEach(([n,o])=>{let i=a[n]||[];o.values.forEach(s=>{s.state=i.includes(s.caption)?"selected":"idle"})})}));function kv(e){return{state:"idle",...e}}var Pq=new Y({id:Tn,values:ud});function wq(e,t){if(!Iq(e))throw k;he(e,Pq,t.options,"buildStaticFilter");let r=M(e),{dispatch:a}=e,n=()=>e.state,{id:o}=t.options;return a(yi(t.options)),{...r,toggleSelect(i){a(Zr({id:o,value:i})),a(I({legacy:md(o,i),next:gd(o,i)}))},toggleSingleSelect(i){i.state==="idle"&&a(ja(o)),a(Zr({id:o,value:i})),a(I({legacy:md(o,i),next:gd(o,i)}))},toggleExclude(i){a(ea({id:o,value:i})),a(I({legacy:md(o,i),next:gd(o,i)}))},toggleSingleExclude(i){i.state==="idle"&&a(ja(o)),a(ea({id:o,value:i})),a(I({legacy:md(o,i),next:gd(o,i)}))},deselectAll(){a(ja(o)),a(I({legacy:dd({staticFilterId:o}),next:Ev(o)}))},isValueSelected(i){return i.state==="selected"},isValueExcluded(i){return i.state==="excluded"},get state(){var c;let i=((c=n().staticFilterSet[o])==null?void 0:c.values)||[],s=i.some(u=>u.state!=="idle");return{id:o,values:i,hasActiveValues:s}}}}function Iq(e){return e.addReducers({staticFilterSet:fd}),!0}function md(e,t){let{caption:r,expression:a,state:n}=t;return(n==="idle"?ld:Ci)({staticFilterId:e,staticFilterValue:{caption:r,expression:a}})}function gd(e,t){return t.state==="selected"?Iv(e,t):pd(e,t)}var hd=T(nn(),e=>{e.addCase(Do,(t,r)=>{let a=r.payload,{id:n}=a;n in t||(t[n]={...a,isActive:!1})}).addCase(jt,(t,r)=>{let a=r.payload;Ov(t,a)}).addCase(ue,(t,r)=>{let a=r.payload.tab||"";Ov(t,a)}).addCase(ce.fulfilled,(t,r)=>{var a,n;return(n=(a=r.payload)==null?void 0:a.tabSet)!=null?n:t})});function Ov(e,t){t in e&&Object.keys(e).forEach(a=>{e[a].isActive=a===t})}var Eq=new Y({expression:ge,id:O}),kq=new Y({isActive:new K});function qv(e,t){if(qq(t.options.id),!Oq(e))throw k;let r=M(e),{dispatch:a}=e;he(e,Eq,t.options,"buildTab");let n=ke(e,kq,t.initialState,"buildTab"),{id:o,expression:i}=t.options;return a(Do({id:o,expression:i})),n.isActive&&a(jt(o)),{...r,select(){a(jt(o))},get state(){var c;return{isActive:(c=e.state.tabSet[o])==null?void 0:c.isActive}}}}function Oq(e){return e.addReducers({configuration:$,tabSet:hd}),!0}function qq(e){let t=it().analytics.originLevel2;if(e===t)throw new Error(`The #id option on the Tab controller cannot use the reserved value "${t}". Please specify a different value.`)}function Tq(e,t){let{dispatch:r}=e,a=qv(e,t),n=()=>r(I({legacy:ya(),next:io()}));return{...a,get state(){return a.state},select(){a.select(),n()}}}function Tv(e){if(!Dq(e))throw k;let t=M(e),r=()=>e.state;return{...t,sort(a){return Ro(a,this.state.facetIds)},get state(){return{facetIds:r().search.response.facets.map(o=>o.facetId)}}}}function Dq(e){return e.addReducers({search:J,facetOptions:Qe}),!0}function Vq(e){return Tv(e)}var Mq={categoryFacetId:ee,categoryFacetPath:new X({required:!0,each:O})},Lq=(e,{categoryFacetId:t,categoryFacetPath:r})=>{let a=e.categoryFacetSet[t],n=a==null?void 0:a.request.field,o=`${n}_${t}`;return{categoryFacetId:t,categoryFacetPath:r,categoryFacetField:n,categoryFacetTitle:o}},Sd=e=>E("analytics/categoryFacet/breadcrumb",(t,r)=>(A(e,Mq),t.makeBreadcrumbFacet(Lq(r,e)))),Dv=(e,t)=>({actionCause:oe.breadcrumbFacet,getEventExtraPayload:r=>new ae(()=>r).getCategoryBreadcrumbFacetMetadata(e,t)});var yd=()=>E("analytics/facet/deselectAllBreadcrumbs",e=>e.makeBreadcrumbResetAll()),Vv=()=>({actionCause:oe.breadcrumbResetAll,getEventExtraPayload:e=>new ae(()=>e).getBaseMetadata()});var Cd=(e,{facetId:t,selection:r})=>{let n=(e.dateFacetSet[t]||e.numericFacetSet[t]).request.field,o=`${n}_${t}`;return{facetId:t,facetField:n,facetTitle:o,facetRangeEndInclusive:r.endInclusive,facetRangeEnd:`${r.end}`,facetRangeStart:`${r.start}`}},xd=(e,t)=>({actionCause:oe.breadcrumbFacet,getEventExtraPayload:r=>new ae(()=>r).getRangeBreadcrumbFacetMetadata(e,t)});var Ys=e=>E("analytics/dateFacet/breadcrumb",(t,r)=>{A(e,En(e.selection));let a=Cd(r,e);return t.makeBreadcrumbFacet(a)}),xm=(e,t)=>xd(e,t);var Ks=e=>E("analytics/numericFacet/breadcrumb",(t,r)=>{A(e,En(e.selection));let a=Cd(r,e);return t.makeBreadcrumbFacet(a)}),vm=(e,t)=>xd(e,t);var vd=e=>Object.keys(e.facetSet).map(t=>{let r=e.facetValuesSelector(e.engine.state,t).map(a=>({value:a,deselect:()=>{a.state==="selected"?e.executeToggleSelect({facetId:t,selection:a}):a.state==="excluded"&&e.executeToggleExclude({facetId:t,selection:a})}}));return{facetId:t,field:e.facetSet[t].request.field,values:r}}).filter(t=>t.values.length);function Mv(e){let t=M(e),{dispatch:r}=e;return{...t,get state(){return{facetBreadcrumbs:[],categoryFacetBreadcrumbs:[],numericFacetBreadcrumbs:[],dateFacetBreadcrumbs:[],staticFilterBreadcrumbs:[],hasBreadcrumbs:!1}},deselectAll:()=>{r(Fe())},deselectBreadcrumb(a){a.deselect()}}}function Nq(e){if(!Qq(e))throw k;let t=Mv(e),{dispatch:r}=e,a=()=>e.state,n=()=>{let S={engine:e,facetSet:a().facetSet,executeToggleSelect:({facetId:y,selection:x})=>{r(br({facetId:y,selection:x})),r(Kr({facetId:y,freezeCurrentValues:!1})),r(I({legacy:Yo({facetId:y,facetValue:x.value}),next:el(y,x.value)}))},executeToggleExclude:({facetId:y,selection:x})=>{r(Fr({facetId:y,selection:x})),r(Kr({facetId:y,freezeCurrentValues:!1})),r(I({legacy:Yo({facetId:y,facetValue:x.value}),next:el(y,x.value)}))},facetValuesSelector:yy};return vd(S)},o=()=>{let S={engine:e,facetSet:a().numericFacetSet,executeToggleSelect:y=>{r(Er(y)),r(I({legacy:Ks(y),next:vm(y.facetId,y.selection)}))},executeToggleExclude:y=>{r(kr(y)),r(I({legacy:Ks(y),next:vm(y.facetId,y.selection)}))},facetValuesSelector:_x};return vd(S)},i=()=>{let S={engine:e,facetSet:a().dateFacetSet,executeToggleSelect:y=>{r(Pr(y)),r(I({legacy:Ys(y),next:xm(y.facetId,y.selection)}))},executeToggleExclude:y=>{r(wr(y)),r(I({legacy:Ys(y),next:xm(y.facetId,y.selection)}))},facetValuesSelector:Wx};return vd(S)},s=()=>Object.keys(a().categoryFacetSet).map(c).filter(S=>S.path.length),c=S=>{let y=xy(a(),S);return{facetId:S,field:a().categoryFacetSet[S].request.field,path:y,deselect:()=>{r(pr(S)),r(I({legacy:Sd({categoryFacetPath:y.map(x=>x.value),categoryFacetId:S}),next:Dv(S,y.map(x=>x.value))}))}}},u=()=>{var y;let S=(y=a().staticFilterSet)!=null?y:{};return Object.values(S).map(l)},l=S=>{let{id:y,values:x}=S,b=x.filter(P=>P.state!=="idle").map(P=>d(y,P));return{id:y,values:b}},d=(S,y)=>({value:y,deselect:()=>{let{caption:x,expression:b}=y;y.state==="selected"?r(Zr({id:S,value:y})):y.state==="excluded"&&r(ea({id:S,value:y})),r(I({legacy:Ci({staticFilterId:S,staticFilterValue:{caption:x,expression:b}}),next:pd(S,{caption:x,expression:b})}))}}),p=()=>{var y,x;let S=(x=(y=a().automaticFacetSet)==null?void 0:y.set)!=null?x:{};return Object.values(S).map(b=>f(b.response))},f=S=>{let{field:y,label:x}=S,b=S.values.filter(P=>P.state==="selected").map(P=>m(y,P));return{facetId:y,field:y,label:x,values:b}},m=(S,y)=>({value:y,deselect:()=>{r(Ma({field:S,selection:y})),r(I({legacy:Yo({facetId:S,facetValue:y.value}),next:el(S,y.value)}))}});function g(){return!![...n(),...o(),...i(),...s(),...u(),...p()].length}return{...t,get state(){return{facetBreadcrumbs:n(),categoryFacetBreadcrumbs:s(),numericFacetBreadcrumbs:o(),dateFacetBreadcrumbs:i(),staticFilterBreadcrumbs:u(),automaticFacetBreadcrumbs:p(),hasBreadcrumbs:g()}},deselectAll:()=>{t.deselectAll(),r(I({legacy:yd(),next:Vv()}))}}}function Qq(e){return e.addReducers({configuration:$,search:J,facetSet:Or,numericFacetSet:Pt,dateFacetSet:qr,categoryFacetSet:fr}),!0}function Lv(e){return e.type==="redirect"}var Am=class{constructor(t){this.response=t}get basicExpression(){return this.response.parsedInput.basicExpression}get largeExpression(){return this.response.parsedInput.largeExpression}get redirectionUrl(){let t=this.response.preprocessingOutput.triggers.filter(Lv);return t.length?t[0].content:null}};var xi=C("standaloneSearchBox/register",e=>A(e,{id:O,redirectionUrl:O})),vi=C("standaloneSearchBox/reset",e=>A(e,{id:O})),Ai=C("standaloneSearchBox/updateAnalyticsToSearchFromLink",e=>A(e,{id:O})),bi=C("standaloneSearchBox/updateAnalyticsToOmniboxFromLink"),Ua=W("standaloneSearchBox/fetchRedirect",async(e,{dispatch:t,getState:r,rejectWithValue:a,extra:{apiClient:n,validatePayload:o}})=>{o(e,{id:new w({emptyAllowed:!1})});let i=await jq(r()),s=await n.plan(i);if(ye(s))return a(s.error);let{redirectionUrl:c}=new Am(s.success);return c&&t(Bq(c)),c||""}),Bq=e=>E("analytics/standaloneSearchBox/redirect",t=>t.makeTriggerRedirect({redirectedTo:e})),jq=async e=>({accessToken:e.configuration.accessToken,organizationId:e.configuration.organizationId,url:e.configuration.search.apiBaseUrl,locale:e.configuration.search.locale,timezone:e.configuration.search.timezone,q:e.query.q,...e.context&&{context:e.context.contextValues},...e.pipeline&&{pipeline:e.pipeline},...e.searchHub&&{searchHub:e.searchHub},...e.configuration.analytics.enabled&&{visitorId:await We(e.configuration.analytics)},...e.configuration.analytics.enabled&&await bo(e.configuration.analytics),...e.configuration.search.authenticationProviders.length&&{authentication:e.configuration.search.authenticationProviders.join(",")}});var Ad=T(Zc(),e=>e.addCase(xi,(t,r)=>{let{id:a,redirectionUrl:n}=r.payload;a in t||(t[a]=Nv(n))}).addCase(vi,(t,r)=>{let{id:a}=r.payload,n=t[a];if(n){t[a]=Nv(n.defaultRedirectionUrl);return}}).addCase(Ua.pending,(t,r)=>{let a=t[r.meta.arg.id];!a||(a.isLoading=!0)}).addCase(Ua.fulfilled,(t,r)=>{let a=r.payload,n=t[r.meta.arg.id];!n||(n.redirectTo=a||n.defaultRedirectionUrl,n.isLoading=!1)}).addCase(Ua.rejected,(t,r)=>{let a=t[r.meta.arg.id];!a||(a.isLoading=!1)}).addCase(Ai,(t,r)=>{let a=t[r.payload.id];!a||(a.analytics.cause="searchFromLink")}).addCase(bi,(t,r)=>{let a=t[r.payload.id];!a||(a.analytics.cause="omniboxFromLink",a.analytics.metadata=r.payload.metadata)}));function Nv(e){return{defaultRedirectionUrl:e,redirectTo:"",isLoading:!1,analytics:{cause:"",metadata:null}}}var Qv=new Y({...ym,redirectionUrl:new w({required:!0,emptyAllowed:!1})});function Uq(e,t){if(!_q(e))throw k;let{dispatch:r}=e,a=()=>e.state,n=t.options.id||la("standalone_search_box"),o={id:n,highlightOptions:{...t.options.highlightOptions},...ad,...t.options};he(e,Qv,o,"buildStandaloneSearchBox");let i=Cm(e,{options:o});return r(xi({id:n,redirectionUrl:o.redirectionUrl})),{...i,updateText(s){i.updateText(s),r(Ai({id:n}))},selectSuggestion(s){let c=hm(a(),{id:n,suggestion:s});r(Vr({id:n,expression:s})),r(bi({id:n,metadata:c})),this.submit()},afterRedirection(){r(vi({id:n}))},submit(){r(Ye({q:this.state.value,enableQuerySyntax:o.enableQuerySyntax})),r(Ua({id:n}))},get state(){let c=a().standaloneSearchBoxSet[n];return{...i.state,isLoading:c.isLoading,redirectTo:c.redirectTo,analytics:c.analytics}}}}function _q(e){return e.addReducers({standaloneSearchBoxSet:Ad,configuration:$,query:It,querySuggest:mi}),!0}function Bv(e,t){return e.q!==t.q?Ba():e.sortCriteria!==t.sortCriteria?gi():e.firstResult!==t.firstResult?si():e.numberOfResults!==t.numberOfResults?ii():Et(e.f,t.f)?Js(e.f,t.f):Et(e.fExcluded,t.fExcluded)?Js(e.fExcluded,t.fExcluded,!0):Et(e.cf,t.cf)?Js(e.cf,t.cf):Et(e.af,t.af)?Js(e.af,t.af):Et(e.nf,t.nf)?jv(e.nf,t.nf):Et(e.df,t.df)?jv(e.df,t.df):ya()}function Js(e={},t={},r=!1){let a=Object.keys(e),n=Object.keys(t),o=a.filter(p=>!n.includes(p));if(o.length){let p=o[0];switch(!0){case e[p].length>1:return Ne(p);case r:return Wr({facetId:p,facetValue:e[p][0]});default:return Ut({facetId:p,facetValue:e[p][0]})}}let i=n.filter(p=>!a.includes(p));if(i.length){let p=i[0];return r?St({facetId:p,facetValue:t[p][0]}):Pe({facetId:p,facetValue:t[p][0]})}let s=n.find(p=>t[p].filter(f=>e[p].includes(f)));if(!s)return ya();let c=e[s],u=t[s],l=u.filter(p=>!c.includes(p));if(l.length)return r?St({facetId:s,facetValue:l[0]}):Pe({facetId:s,facetValue:l[0]});let d=c.filter(p=>!u.includes(p));return d.length?r?Wr({facetId:s,facetValue:d[0]}):Ut({facetId:s,facetValue:d[0]}):ya()}function jv(e={},t={}){return Js(Ri(e),Ri(t))}function Uv(e,t){return e.q!==t.q?ed():e.sortCriteria!==t.sortCriteria?id():Et(e.f,t.f)?Fi(e.f,t.f):Et(e.fExcluded,t.fExcluded)?Fi(e.fExcluded,t.fExcluded,!0):Et(e.cf,t.cf)?Fi(e.cf,t.cf):Et(e.af,t.af)?Fi(e.af,t.af):Et(e.nf,t.nf)?Fi(Ri(e.nf),Ri(t.nf)):Et(e.df,t.df)?Fi(Ri(e.df),Ri(t.df)):io()}function Et(e={},t={}){return JSON.stringify(e)!==JSON.stringify(t)}function Fi(e={},t={},r=!1){let a=Object.keys(e),n=Object.keys(t),o=a.filter(p=>!n.includes(p));if(o.length){let p=o[0];return e[p].length>1?Xe(p):Yr(p,e[p][0])}let i=n.filter(p=>!a.includes(p));if(i.length){let p=i[0];return r?hr(p,t[p][0]):De(p,t[p][0])}let s=n.find(p=>t[p].filter(f=>e[p].includes(f)));if(!s)return io();let c=e[s],u=t[s],l=u.filter(p=>!c.includes(p));if(l.length)return r?hr(s,l[0]):De(s,l[0]);let d=c.filter(p=>!u.includes(p));return d.length?Yr(s,d[0]):io()}function Ri(e={}){let t={};return Object.keys(e).forEach(r=>t[r]=e[r].map(a=>`${a.start}..${a.end}`)),t}function _v(e){var t,r,a,n,o,i;return{q:xe().q,enableQuerySyntax:xe().enableQuerySyntax,aq:(r=(t=e.advancedSearchQueries)==null?void 0:t.defaultFilters.aq)!=null?r:st().defaultFilters.aq,cq:(n=(a=e.advancedSearchQueries)==null?void 0:a.defaultFilters.cq)!=null?n:st().defaultFilters.cq,firstResult:Ue().firstResult,numberOfResults:(i=(o=e.pagination)==null?void 0:o.defaultNumberOfResults)!=null?i:Ue().defaultNumberOfResults,sortCriteria:tt(),f:{},fExcluded:{},cf:{},nf:{},df:{},debug:Ct(),sf:{},tab:"",af:{}}}var $q=new Y({parameters:new q({options:{required:!0},values:bu})});function $v(e,t){let{dispatch:r}=e,a=M(e);return ke(e,$q,t.initialState,"buildSearchParameterManager"),r(ue(t.initialState.parameters)),{...a,synchronize(n){let o=bd(e,n);r(ue(o))},get state(){return{parameters:bm(e)}}}}function bd(e,t){return{..._v(e.state),...t}}function Hv(e,t){return zq(e,t)}function bm(e){let t=e.state;return{...Hq(t),...Gq(t),...Wq(t),...Gv(t,zv,"f"),...Gv(t,Yq,"fExcluded"),...Kq(t),...Jq(t),...Xq(t),...Zq(t)}}function Hq(e){if(e.query===void 0)return{};let t=e.query.q;return t!==xe().q?{q:t}:{}}function Gq(e){var r;let t=Object.values((r=e.tabSet)!=null?r:{}).find(a=>a.isActive);return t?{tab:t.id}:{}}function zq(e,t){let r=e.state.tabSet,a=t.tab;if(!r||!Object.entries(r).length||!a)return!0;let n=a in r;return n||e.logger.warn(`The tab search parameter "${a}" is invalid. Ignoring change.`),n}function Wq(e){if(e.sortCriteria===void 0)return{};let t=e.sortCriteria;return t!==tt()?{sortCriteria:t}:{}}function Gv(e,t,r){if(e.facetSet===void 0)return{};let a=Object.entries(e.facetSet).filter(([n])=>{var o,i,s;return(s=(i=(o=e.facetOptions)==null?void 0:o.facets[n])==null?void 0:i.enabled)!=null?s:!0}).map(([n,{request:o}])=>{let i=t(o.currentValues);return i.length?{[n]:i}:{}}).reduce((n,o)=>({...n,...o}),{});return Object.keys(a).length?{[r]:a}:{}}function zv(e){return e.filter(t=>t.state==="selected").map(t=>t.value)}function Yq(e){return e.filter(t=>t.state==="excluded").map(t=>t.value)}function Kq(e){if(e.categoryFacetSet===void 0)return{};let t=Object.entries(e.categoryFacetSet).filter(([r])=>{var a,n,o;return(o=(n=(a=e.facetOptions)==null?void 0:a.facets[r])==null?void 0:n.enabled)!=null?o:!0}).map(([r,a])=>{let o=gt(a.request.currentValues).map(i=>i.value);return o.length?{[r]:o}:{}}).reduce((r,a)=>({...r,...a}),{});return Object.keys(t).length?{cf:t}:{}}function Jq(e){if(e.numericFacetSet===void 0)return{};let t=Object.entries(e.numericFacetSet).filter(([r])=>{var a,n,o;return(o=(n=(a=e.facetOptions)==null?void 0:a.facets[r])==null?void 0:n.enabled)!=null?o:!0}).map(([r,{request:a}])=>{let n=Wv(a.currentValues);return n.length?{[r]:n}:{}}).reduce((r,a)=>({...r,...a}),{});return Object.keys(t).length?{nf:t}:{}}function Xq(e){if(e.dateFacetSet===void 0)return{};let t=Object.entries(e.dateFacetSet).filter(([r])=>{var a,n,o;return(o=(n=(a=e.facetOptions)==null?void 0:a.facets[r])==null?void 0:n.enabled)!=null?o:!0}).map(([r,{request:a}])=>{let n=Wv(a.currentValues);return n.length?{[r]:n}:{}}).reduce((r,a)=>({...r,...a}),{});return Object.keys(t).length?{df:t}:{}}function Wv(e){return e.filter(t=>t.state==="selected")}function Zq(e){var a;let t=(a=e.automaticFacetSet)==null?void 0:a.set;if(t===void 0)return{};let r=Object.entries(t).map(([n,{response:o}])=>{let i=zv(o.values);return i.length?{[n]:i}:{}}).reduce((n,o)=>({...n,...o}),{});return Object.keys(r).length?{af:r}:{}}function Fm(e,t){let{dispatch:r}=e,a=$v(e,t);return{...a,synchronize(n){let o=Yv(e),i=bd(e,o),s=bd(e,n);zs(i,s)||!Hv(e,s)||(a.synchronize(n),r(I({legacy:Bv(i,s),next:Uv(i,s)})))},get state(){return{parameters:Yv(e)}}}}function Yv(e){let t=e.state;return{...bm(e),...eT(t),...tT(t),...rT(t),...aT(t),...nT(t),...sT(t),...oT(t)}}function eT(e){if(e.query===void 0)return{};let t=e.query.enableQuerySyntax;return t!==void 0&&t!==xe().enableQuerySyntax?{enableQuerySyntax:t}:{}}function tT(e){if(e.advancedSearchQueries===void 0)return{};let{aq:t,defaultFilters:r}=e.advancedSearchQueries;return t!==r.aq?{aq:t}:{}}function rT(e){if(e.advancedSearchQueries===void 0)return{};let{cq:t,defaultFilters:r}=e.advancedSearchQueries;return t!==r.cq?{cq:t}:{}}function aT(e){if(e.pagination===void 0)return{};let t=e.pagination.firstResult;return t!==Ue().firstResult?{firstResult:t}:{}}function nT(e){if(e.pagination===void 0)return{};let{numberOfResults:t,defaultNumberOfResults:r}=e.pagination;return t!==r?{numberOfResults:t}:{}}function oT(e){if(e.staticFilterSet===void 0)return{};let t=Object.entries(e.staticFilterSet).map(([r,a])=>{let n=iT(a.values);return n.length?{[r]:n}:{}}).reduce((r,a)=>({...r,...a}),{});return Object.keys(t).length?{sf:t}:{}}function iT(e){return e.filter(t=>t.state==="selected").map(t=>t.caption)}function sT(e){if(e.debug===void 0)return{};let t=e.debug;return t!==Ct()?{debug:t}:{}}var Kv="..",Rm="...",cT=/^(f|fExcluded|cf|nf|df|sf|af)-(.+)$/,uT={f:!0,fExcluded:!0,cf:!0,sf:!0,af:!0,nf:!0,df:!0},Fd="&",Xs="=";function Rd(){return{serialize:pT(fT),deserialize:CT}}function Zs(e){return e in uT}function lT(e){return e in{q:!0,aq:!0,cq:!0,enableQuerySyntax:!0,firstResult:!0,numberOfResults:!0,sortCriteria:!0,debug:!0,tab:!0}}function dT(e){let r=e in{nf:!0,df:!0};return Zs(e)&&r}function Jv(e){return lT(e)||Zs(e)}var pT=e=>t=>Object.entries(t).map(e).filter(r=>r).join(Fd);function fT(e){let[t,r]=e;return Jv(t)?Zs(t)&&!dT(t)?gT(r)?ST(t,r):"":t==="nf"||t==="df"?hT(r)?yT(t,r):"":mT(t,r):""}function mT(e,t){return`${e}${Xs}${encodeURIComponent(t)}`}function gT(e){return Pm(e)?Xv(e,r=>typeof r=="string"):!1}function hT(e){return Pm(e)?Xv(e,r=>Pm(r)&&"start"in r&&"end"in r):!1}function Pm(e){return!!(e&&typeof e=="object")}function Xv(e,t){return Object.entries(e).filter(a=>{let n=a[1];return!Array.isArray(n)||!n.every(t)}).length===0}function ST(e,t){return Object.entries(t).map(([r,a])=>`${e}-${r}${Xs}${a.map(n=>encodeURIComponent(n)).join(",")}`).join(Fd)}function yT(e,t){return Object.entries(t).map(([r,a])=>{let n=a.map(({start:o,end:i,endInclusive:s})=>`${o}${s?Rm:Kv}${i}`).join(",");return`${e}-${r}${Xs}${n}`}).join(Fd)}function CT(e){return e.split(Fd).map(a=>xT(a)).map(vT).filter(RT).map(a=>PT(a)).reduce((a,n)=>{let[o,i]=n;if(Zs(o)){let s={...a[o],...i};return{...a,[o]:s}}return{...a,[o]:i}},{})}function xT(e){let[t,...r]=e.split(Xs),a=r.join(Xs);return[t,a]}function vT(e){let[t,r]=e,a=cT.exec(t);if(!a)return e;let n=a[1],o=a[2],i=r.split(","),s=AT(n,i),c={[o]:s};return[n,JSON.stringify(c)]}function AT(e,t){return e==="nf"?bT(t):e==="df"?FT(t):t}function bT(e){return e.map(t=>{let{startAsString:r,endAsString:a,isEndInclusive:n}=eA(t);return{start:parseFloat(r),end:parseFloat(a),endInclusive:n}}).filter(({start:t,end:r})=>Number.isFinite(t)&&Number.isFinite(r)).map(({start:t,end:r,endInclusive:a})=>Hs({start:t,end:r,state:"selected",endInclusive:a}))}function Zv(e){try{return rC(e)?(Iu(e,Os),!0):cr(e)?(dn(e),!0):!1}catch(t){return!1}}function FT(e){return e.map(t=>{let{isEndInclusive:r,startAsString:a,endAsString:n}=eA(t);return{start:a,end:n,endInclusive:r}}).filter(({start:t,end:r})=>Zv(t)&&Zv(r)).map(({start:t,end:r,endInclusive:a})=>Pn({start:t,end:r,state:"selected",endInclusive:a}))}function RT(e){let t=Jv(e[0]),r=e.length===2;return t&&r}function PT(e,t=!0){let[r,a]=e;return r==="enableQuerySyntax"?[r,a==="true"]:r==="debug"?[r,a==="true"]:r==="firstResult"?[r,parseInt(a)]:r==="numberOfResults"?[r,parseInt(a)]:Zs(r)?[r,wT(a)]:[r,t?decodeURIComponent(a):a]}function wT(e){let t=JSON.parse(e),r={};return Object.entries(t).forEach(a=>{let[n,o]=a;r[n]=o.map(i=>Un(i)?decodeURIComponent(i):i)}),r}function eA(e){let t=e.indexOf(Rm)!==-1,[r,a]=e.split(t?Rm:Kv);return{isEndInclusive:t,startAsString:r,endAsString:a}}var IT=new Y({fragment:new w});function ET(e,t){let r;function a(){r=e.state.search.requestId}function n(){return r!==e.state.search.requestId}if(!OT(e))throw k;ke(e,IT,t.initialState,"buildUrlManager");let o=M(e),i=t.initialState.fragment;a();let s=Fm(e,{initialState:{parameters:Pd(i)}});return{...o,subscribe(c){let u=()=>{let l=this.state.fragment;!kT(i,l)&&n()&&(i=l,c()),a()};return u(),e.subscribe(u)},get state(){return{fragment:Rd().serialize(s.state.parameters)}},synchronize(c){i=c;let u=Pd(c);s.synchronize(u)}}}function kT(e,t){if(e===t)return!0;let r=Pd(e),a=Pd(t);return zs(r,a)}function Pd(e){return Rd().deserialize(e)}function OT(e){return e.addReducers({configuration:$}),!0}function qT(e){return ci(e)}async function wd(e,t){var s;let{search:r,accessToken:a,organizationId:n,analytics:o}=e.configuration,i=((s=e.query)==null?void 0:s.q)||"";return{url:r.apiBaseUrl,accessToken:a,organizationId:n,enableNavigation:!1,...o.enabled&&{visitorId:await We(e.configuration.analytics)},q:i,...t,requestedOutputSize:t.requestedOutputSize||0,...r.authenticationProviders.length&&{authentication:r.authenticationProviders.join(",")}}}var Dn=W("resultPreview/fetchResultContent",async(e,{extra:t,getState:r,rejectWithValue:a})=>{let n=r(),o=await wd(n,e),i=await t.apiClient.html(o);return ye(i)?a(i.error):{content:i.success,uniqueId:e.uniqueId}}),Pi=C("resultPreview/next"),wi=C("resultPreview/previous"),Ii=C("resultPreview/prepare",e=>A(e,{results:new X({required:!0})})),tA=2048,Ei=W("resultPreview/updateContentURL",async(e,{getState:t,extra:r})=>{let a=t(),n=dS(await e.buildResultPreviewRequest(a,{uniqueId:e.uniqueId,requestedOutputSize:e.requestedOutputSize}),e.path);return(n==null?void 0:n.length)>tA&&r.logger.error(`The content URL was truncated as it exceeds the maximum allowed length of ${tA} characters.`),{contentURL:n}});var rA=e=>E({prefix:"analytics/resultPreview/open",__legacy__getBuilder:(t,r)=>{ut(e);let a=Oe(e,r),n=Le(e);return t.makeDocumentQuickview(a,n)},analyticsType:"itemClick",analyticsPayloadBuilder:t=>{var n,o;let r=Oe(e,t),a=Le(e);return{searchUid:(o=(n=t.search)==null?void 0:n.response.searchUid)!=null?o:"",position:r.documentPosition,actionCause:"open",itemMetadata:{uniqueFieldName:a.contentIDKey,uniqueFieldValue:a.contentIDValue,title:r.documentTitle,author:r.documentAuthor,url:r.documentUrl}}}});var wm=e=>{let{content:t,isLoading:r,uniqueId:a,contentURL:n}=Ja();e.content=t,e.isLoading=r,e.uniqueId=a,e.contentURL=n},Im=e=>e.filter(t=>t.hasHtmlVersion).map(t=>t.uniqueId),Id=T(Ja(),e=>{e.addCase(Dn.pending,t=>{t.isLoading=!0}).addCase(Dn.fulfilled,(t,r)=>{let{content:a,uniqueId:n}=r.payload;t.position=t.resultsWithPreview.indexOf(n),t.content=a,t.uniqueId=n,t.isLoading=!1}).addCase(I.fulfilled,(t,r)=>{wm(t),t.resultsWithPreview=Im(r.payload.response.results)}).addCase(Fa.fulfilled,(t,r)=>{wm(t),t.resultsWithPreview=t.resultsWithPreview.concat(Im(r.payload.response.results))}).addCase(ur.fulfilled,wm).addCase(Ii,(t,r)=>{t.resultsWithPreview=Im(r.payload.results)}).addCase(Pi,t=>{if(t.isLoading)return;let r=t.position+1;r>t.resultsWithPreview.length-1&&(r=0),t.position=r}).addCase(wi,t=>{if(t.isLoading)return;let r=t.position-1;r<0&&(r=t.resultsWithPreview.length-1),t.position=r}).addCase(Ei.fulfilled,(t,r)=>{t.contentURL=r.payload.contentURL})});function aA(e,t,r,a,n){if(!TT(e))throw k;let{dispatch:o}=e,i=()=>e.state,s=M(e),{result:c,maximumPreviewSize:u}=t.options,l=()=>{let{resultsWithPreview:p,position:f}=i().resultPreview;return p[f]},d=p=>{o(Ei({uniqueId:p,requestedOutputSize:u,buildResultPreviewRequest:r,path:a})),t.options.onlyContentURL||o(Dn({uniqueId:p,requestedOutputSize:u})),n&&n()};return{...s,fetchResultContent(){d(c.uniqueId)},next(){o(Pi()),d(l())},previous(){o(wi()),d(l())},get state(){let p=i(),f=c.hasHtmlVersion,m=p.resultPreview,g=c.uniqueId===m.uniqueId?m.content:"",S=m.isLoading,y=m.contentURL,x=l();return{content:g,resultHasPreview:f,isLoading:S,contentURL:y,currentResultUniqueId:x}}}}function TT(e){return e.addReducers({configuration:$,resultPreview:Id}),!0}function DT(e,t){if(!VT(e))throw k;let{dispatch:r}=e,a=()=>e.state,n=()=>a().search.results,s=aA(e,t,wd,"/html",()=>{e.dispatch(rA(t.options.result))});return r(Ii({results:n()})),{...s,get state(){return{...s.state,currentResult:n().findIndex(c=>c.uniqueId===s.state.currentResultUniqueId)+1,totalResults:n().length}}}}function VT(e){return e.addReducers({search:J}),!0}var MT=e=>E("analytics/folding/showMore",(t,r)=>(ut(e),t.makeShowMoreFoldedResults(Oe(e,r),Le(e)))),LT=()=>E("analytics/folding/showLess",e=>e.makeShowLessFoldedResults()),nA={logShowMoreFoldedResults:MT,logShowLessFoldedResults:LT};function NT(e,t){return e.raw[t.collection]}function Em(e,t){return e.raw[t.parent]}function ec(e,t){let r=e.raw[t.child];return Ec(r)?r[0]:r}function QT(e,t){return(e||t)!==void 0&&e===t}function oA(e,t,r,a=[]){let n=ec(e,r);return n?a.indexOf(n)!==-1?[]:t.filter(o=>{let i=ec(o,r)===ec(e,r);return Em(o,r)===n&&!i}).map(o=>({result:o,children:oA(o,t,r,[...a,n])})):[]}function BT(e,t){return e.find(r=>{let a=Em(r,t)===void 0,n=QT(Em(r,t),ec(r,t));return a||n})}function iA(e){return e.parentResult?iA(e.parentResult):e}function jT(e,t,r){var o;let a=Su(e),n=(o=r!=null?r:BT(a,t))!=null?o:iA(e);return{result:n,children:oA(n,a,t),moreResultsAvailable:!0,isLoadingMoreResults:!1}}function Ed(e,t,r){let a={};return e.forEach(n=>{let o=NT(n,t);!o||!ec(n,t)&&!n.parentResult||(a[o]=jT(n,t,r))}),a}function sA(e,t){if(!e.collections[t])throw new Error(`Missing collection ${t} from ${Object.keys(e.collections)}: Folding most probably in an invalid state...`);return e.collections[t]}var kd=T(rn(),e=>e.addCase(I.fulfilled,(t,{payload:r})=>{t.collections=t.enabled?Ed(r.response.results,t.fields):{}}).addCase(ur.fulfilled,(t,{payload:r})=>{t.collections=t.enabled?Ed(r.response.results,t.fields):{}}).addCase(Fa.fulfilled,(t,{payload:r})=>{t.collections=t.enabled?{...t.collections,...Ed(r.response.results,t.fields)}:{}}).addCase(wa,(t,{payload:r})=>{var a,n,o,i;return t.enabled?t:{enabled:!0,collections:{},fields:{collection:(a=r.collectionField)!=null?a:t.fields.collection,parent:(n=r.parentField)!=null?n:t.fields.parent,child:(o=r.childField)!=null?o:t.fields.child},filterFieldRange:(i=r.numberOfFoldedResults)!=null?i:t.filterFieldRange}}).addCase(Ia.pending,(t,{meta:r})=>{let a=r.arg;sA(t,a).isLoadingMoreResults=!0}).addCase(Ia.rejected,(t,{meta:r})=>{let a=r.arg;sA(t,a).isLoadingMoreResults=!1}).addCase(Ia.fulfilled,(t,{payload:{collectionId:r,results:a,rootResult:n}})=>{let o=Ed(a,t.fields,n);if(!o||!o[r])throw new Error(`Unable to create collection ${r} from received results: ${JSON.stringify(a)}. Folding most probably in an invalid state... `);t.collections[r]=o[r],t.collections[r].moreResultsAvailable=!1}));var UT=new Y(Xf);function cA(e,t,r){var s;if(!_T(e))throw k;let a=Xl(e,t),{dispatch:n}=e,o=()=>e.state,i=((s=t.options)==null?void 0:s.folding)?he(e,UT,t.options.folding,"buildFoldedResultList"):{};return n(wa({...i})),{...a,loadCollection:c=>{n(t.loadCollectionActionCreator(c.result.raw[e.state.folding.fields.collection])),n(r.logShowMoreFoldedResults(c.result))},logShowMoreFoldedResults:c=>{n(r.logShowMoreFoldedResults(c))},logShowLessFoldedResults:()=>{n(r.logShowLessFoldedResults())},findResultById(c){return km(this.state.results,u=>u.result.uniqueId===c.result.uniqueId)},findResultByCollection(c){return km(this.state.results,u=>u.result.raw.foldingcollection===c.result.raw.foldingcollection)},get state(){let c=o();return{...a.state,results:a.state.results.map(u=>{let l=u.raw[c.folding.fields.collection];return!l||!c.folding.collections[l]?{result:u,moreResultsAvailable:!1,isLoadingMoreResults:!1,children:[]}:c.folding.collections[l]})}}}}function _T(e){return e.addReducers({search:J,configuration:ju,folding:kd,query:It}),!0}function km(e,t){for(let r=0;re.addCase(I.pending,t=>{t.query="",t.queryModification={originalQuery:"",newQuery:"",queryToIgnore:t.queryModification.queryToIgnore}}).addCase(I.fulfilled,(t,r)=>{var s;let a=[],n=[],o=[],i=[];r.payload.response.triggers.forEach(c=>{switch(c.type){case"redirect":a.push(c.content);break;case"query":n.push(c.content);break;case"execute":o.push({functionName:c.content.name,params:c.content.params});break;case"notify":i.push(c.content);break}}),t.redirectTo=(s=a[0])!=null?s:"",t.query=t.queryModification.newQuery,t.executions=o,t.notifications=i}).addCase(Eo,(t,r)=>{t.queryModification={...r.payload,queryToIgnore:""}}).addCase(ba,(t,r)=>{t.queryModification.queryToIgnore=r.payload}));function HT(e){if(!GT(e))throw k;let t=M(e),{dispatch:r}=e,a=()=>e.state,n=a().triggers.redirectTo;return{...t,subscribe(o){let i=()=>{let s=n!==this.state.redirectTo;n=this.state.redirectTo,s&&this.state.redirectTo&&(o(),r(Mu()))};return i(),e.subscribe(i)},get state(){return{redirectTo:a().triggers.redirectTo}}}}function GT(e){return e.addReducers({triggers:_a}),!0}function zT(e){if(!WT(e))throw k;let t=M(e),{dispatch:r}=e,a=()=>e.state,n=()=>a().triggers.queryModification.newQuery,o=()=>a().triggers.queryModification.originalQuery;return{...t,get state(){return{newQuery:n(),originalQuery:o(),wasQueryModified:n()!==""}},undo(){r(ba(n())),r(Ye({q:o()})),r(I({legacy:Du({undoneQuery:n()}),next:hC(n())}))}}}function WT(e){return e.addReducers({triggers:_a,query:It}),!0}function YT(e){if(!KT(e))throw k;let t=M(e),{dispatch:r}=e,a=()=>e.state,n=a().triggers.executions;return{...t,subscribe(o){let i=()=>{let s=!kn(this.state.executions,n,(c,u)=>c.functionName===u.functionName&&kn(c.params,u.params));n=this.state.executions,s&&this.state.executions.length&&(o(),r(Lu()))};return i(),e.subscribe(i)},get state(){return{executions:a().triggers.executions}}}}function KT(e){return e.addReducers({triggers:_a}),!0}function JT(e){if(!XT(e))throw k;let t=M(e),{dispatch:r}=e,a=()=>e.state,n=a().triggers.notifications;return{...t,subscribe(o){let i=()=>{let s=!kn(n,this.state.notifications);n=this.state.notifications,s&&(o(),r(Vu()))};return i(),e.subscribe(i)},get state(){return{notifications:a().triggers.notifications}}}}function XT(e){return e.addReducers({triggers:_a}),!0}var Od=()=>new q({values:{questionAnswerId:O},options:{required:!0}}),Om=()=>new q({values:{linkText:ge,linkURL:ge},options:{required:!0}});function ki(e){return A(e,Od())}function ta(e,t){var a,n;let r=t!=null?t:(n=(a=e.search)==null?void 0:a.questionAnswer)==null?void 0:n.documentId;return r&&e.search&&vC(e,r.contentIdKey,r.contentIdValue)}function Vn(e,t){var n,o,i,s,c;let r=(o=(n=e.questionAnswering)==null?void 0:n.relatedQuestions.findIndex(u=>u.questionAnswerId===t))!=null?o:-1;if(r===-1)return null;let a=(c=(s=(i=e.search)==null?void 0:i.questionAnswer)==null?void 0:s.relatedQuestions)==null?void 0:c[r];return a!=null?a:null}var qm=()=>E("analytics/smartSnippet/expand",e=>e.makeExpandSmartSnippet()),Tm=()=>E("analytics/smartSnippet/collapse",e=>e.makeCollapseSmartSnippet()),Dm=()=>E("analytics/smartSnippet/like",e=>e.makeLikeSmartSnippet()),Vm=()=>E("analytics/smartSnippet/dislike",e=>e.makeDislikeSmartSnippet());function Mm(){return E("analytics/smartSnippet/source/open",(e,t)=>{let r=ta(t);return e.makeOpenSmartSnippetSource(Oe(r,t),Le(r))})}var tc=e=>E("analytics/smartSnippet/source/open",(t,r)=>{A(e,Om());let a=ta(r);return t.makeOpenSmartSnippetInlineLink(Oe(a,r),{...Le(a),...e})}),Lm=()=>E("analytics/smartSnippet/feedbackModal/open",e=>e.makeOpenSmartSnippetFeedbackModal()),Nm=()=>E("analytics/smartSnippet/feedbackModal/close",e=>e.makeCloseSmartSnippetFeedbackModal()),Qm=e=>E("analytics/smartSnippet/sendFeedback",t=>t.makeSmartSnippetFeedbackReason(e)),Bm=e=>E("analytics/smartSnippet/sendFeedback",t=>t.makeSmartSnippetFeedbackReason("other",e)),jm=e=>E("analytics/smartSnippetSuggestion/expand",(t,r)=>{ki(e);let a=Vn(r,e.questionAnswerId);return a?t.makeExpandSmartSnippetSuggestion({question:a.question,answerSnippet:a.answerSnippet,documentId:a.documentId}):null}),Um=e=>E("analytics/smartSnippetSuggestion/expand",(t,r)=>{ki(e);let a=Vn(r,e.questionAnswerId);return a?t.makeCollapseSmartSnippetSuggestion({question:a.question,answerSnippet:a.answerSnippet,documentId:a.documentId}):null}),rc=e=>E("analytics/smartSnippet/source/open",(t,r)=>{A(e,Od());let a=Vn(r,e.questionAnswerId);if(!a)return null;let n=ta(r,a.documentId);return n?t.makeOpenSmartSnippetSuggestionSource(Oe(n,r),{question:a.question,answerSnippet:a.answerSnippet,documentId:a.documentId}):null}),qd=(e,t)=>E("analytics/smartSnippet/source/open",(r,a)=>{A(e,Od()),A(t,Om());let n=Vn(a,e.questionAnswerId);if(!n)return null;let o=ta(a,n.documentId);return o?r.makeOpenSmartSnippetSuggestionInlineLink(Oe(o,a),{question:n.question,answerSnippet:n.answerSnippet,documentId:n.documentId,linkText:t.linkText,linkURL:t.linkURL}):null}),Td={logExpandSmartSnippet:qm,logCollapseSmartSnippet:Tm,logLikeSmartSnippet:Dm,logDislikeSmartSnippet:Vm,logOpenSmartSnippetSource:Mm,logOpenSmartSnippetInlineLink:tc,logOpenSmartSnippetFeedbackModal:Lm,logCloseSmartSnippetFeedbackModal:Nm,logSmartSnippetFeedback:Qm,logSmartSnippetDetailedFeedback:Bm,logExpandSmartSnippetSuggestion:jm,logCollapseSmartSnippetSuggestion:Um,logOpenSmartSnippetSuggestionSource:rc};var Oi=C("smartSnippet/expand"),qi=C("smartSnippet/collapse"),Ti=C("smartSnippet/like"),Di=C("smartSnippet/dislike"),Vi=C("smartSnippet/feedbackModal/open"),$a=C("smartSnippet/feedbackModal/close"),Mi=C("smartSnippet/related/expand",e=>ki(e)),Li=C("smartSnippet/related/collapse",e=>ki(e));var uA=(e,t)=>e.findIndex(r=>r.questionAnswerId===t.questionAnswerId);function lA({question:e,answerSnippet:t,documentId:{contentIdKey:r,contentIdValue:a}}){return Hn({question:e,answerSnippet:t,contentIdKey:r,contentIdValue:a})}function ZT(e,t){let r=lA(e);return t&&r===t.questionAnswerId?t:{contentIdKey:e.documentId.contentIdKey,contentIdValue:e.documentId.contentIdValue,expanded:!1,questionAnswerId:r}}var Mr=T(Kn(),e=>e.addCase(Oi,t=>{t.expanded=!0}).addCase(qi,t=>{t.expanded=!1}).addCase(Ti,t=>{t.liked=!0,t.disliked=!1,t.feedbackModalOpen=!1}).addCase(Di,t=>{t.liked=!1,t.disliked=!0}).addCase(Vi,t=>{t.feedbackModalOpen=!0}).addCase($a,t=>{t.feedbackModalOpen=!1}).addCase(I.fulfilled,(t,r)=>{let a=r.payload.response.questionAnswer.relatedQuestions.map((o,i)=>ZT(o,t.relatedQuestions[i])),n=lA(r.payload.response.questionAnswer);return t.questionAnswerId===n?{...t,relatedQuestions:a}:{...Kn(),relatedQuestions:a,questionAnswerId:n}}).addCase(Mi,(t,r)=>{let a=uA(t.relatedQuestions,r.payload);a!==-1&&(t.relatedQuestions[a].expanded=!0)}).addCase(Li,(t,r)=>{let a=uA(t.relatedQuestions,r.payload);a!==-1&&(t.relatedQuestions[a].expanded=!1)}));function dA(e,t,r){var c;if(!eD(e))throw k;let a=M(e),n=()=>e.state,o=()=>ta(n()),i=null,s=dt(e,{options:{selectionDelay:(c=r==null?void 0:r.options)==null?void 0:c.selectionDelay}},()=>{let u=o();if(!u){i=null;return}let{searchResponseId:l}=n().search;i!==l&&(i=l,e.dispatch(t.logOpenSmartSnippetSource()),e.dispatch(wt(u)))});return{...a,get state(){let u=n();return{question:u.search.questionAnswer.question,answer:u.search.questionAnswer.answerSnippet,documentId:u.search.questionAnswer.documentId,expanded:u.questionAnswering.expanded,answerFound:u.search.questionAnswer.answerSnippet!=="",liked:u.questionAnswering.liked,disliked:u.questionAnswering.disliked,feedbackModalOpen:u.questionAnswering.feedbackModalOpen,source:o()}},expand(){e.dispatch(t.logExpandSmartSnippet()),e.dispatch(Oi())},collapse(){e.dispatch(t.logCollapseSmartSnippet()),e.dispatch(qi())},like(){e.dispatch(t.logLikeSmartSnippet()),e.dispatch(Ti())},dislike(){e.dispatch(t.logDislikeSmartSnippet()),e.dispatch(Di())},openFeedbackModal(){e.dispatch(t.logOpenSmartSnippetFeedbackModal()),e.dispatch(Vi())},closeFeedbackModal(){e.dispatch(t.logCloseSmartSnippetFeedbackModal()),e.dispatch($a())},sendFeedback(u){e.dispatch(t.logSmartSnippetFeedback(u)),e.dispatch($a())},sendDetailedFeedback(u){e.dispatch(t.logSmartSnippetDetailedFeedback(u)),e.dispatch($a())},selectSource(){s.select()},beginDelayedSelectSource(){s.beginDelayedSelect()},cancelPendingSelectSource(){s.cancelPendingSelect()}}}function eD(e){return e.addReducers({search:J,questionAnswering:Mr}),!0}function Dd(e,t){if(!tD(e))throw k;let r=()=>e.state,a=new Set,n=l=>a.has(l)?!0:(a.add(l),!1),o=null,i=l=>{o!==l&&(o=l,c={},a.clear())},s=(l,d,p)=>{var f;return dt(e,{options:{selectionDelay:(f=t==null?void 0:t.options)==null?void 0:f.selectionDelay}},()=>{n(d)||e.dispatch(p?qd({questionAnswerId:p},l):tc(l))})},c={},u=(l,d)=>{let{searchResponseId:p}=r().search;i(p);let f=Hn({...l,questionAnswerId:d});return f in c||(c[f]=s(l,f,d)),c[f]};return{selectInlineLink(l,d){var p;(p=u(l,d))==null||p.select()},beginDelayedSelectInlineLink(l,d){var p;(p=u(l,d))==null||p.beginDelayedSelect()},cancelPendingSelectInlineLink(l,d){var p;(p=u(l,d))==null||p.cancelPendingSelect()}}}function tD(e){return e.addReducers({search:J,questionAnswering:Mr}),!0}function rD(e,t){var n;let r=dA(e,Td,t),a=Dd(e,{options:{selectionDelay:(n=t==null?void 0:t.options)==null?void 0:n.selectionDelay}});return{...r,get state(){return r.state},selectInlineLink(o){a.selectInlineLink(o)},beginDelayedSelectInlineLink(o){a.beginDelayedSelectInlineLink(o)},cancelPendingSelectInlineLink(o){a.cancelPendingSelectInlineLink(o)}}}function pA(e,t){if(!aD(e))throw k;let r=M(e),a=()=>e.state,n=o=>{let{contentIdKey:i,contentIdValue:s}=o;return e.state.search.results.find(c=>Ra(c,i)===s)};return{...r,get state(){let o=a();return{questions:o.search.questionAnswer.relatedQuestions.map((i,s)=>({question:i.question,answer:i.answerSnippet,documentId:i.documentId,questionAnswerId:o.questionAnswering.relatedQuestions[s].questionAnswerId,expanded:o.questionAnswering.relatedQuestions[s].expanded,source:n(i.documentId)}))}},expand(o){let i={questionAnswerId:o};e.dispatch(t.logExpandSmartSnippetSuggestion(i)),e.dispatch(Mi(i))},collapse(o){let i={questionAnswerId:o};e.dispatch(t.logCollapseSmartSnippetSuggestion(i)),e.dispatch(Li(i))}}}function aD(e){return e.addReducers({search:J,questionAnswering:Mr}),!0}function fA(e,t){if(!nD(e))throw k;let r=()=>e.state,a=d=>{let p=r(),f=Vn(p,d);return f?ta(p,f.documentId):null},n=new Set,o=d=>n.has(d)?!0:(n.add(d),!1),i=null,s=d=>{i!==d&&(i=d,u={},n.clear())},c=(d,p)=>{var f;return dt(e,{options:{selectionDelay:(f=t==null?void 0:t.options)==null?void 0:f.selectionDelay}},()=>{o(p)||(e.dispatch(rc({questionAnswerId:p})),e.dispatch(wt(d)))})},u={},l=d=>{let{searchResponseId:p}=r().search;s(p);let f=a(d);return f?(d in u||(u[d]=c(f,d)),u[d]):null};return{selectSource(d){var p;(p=l(d))==null||p.select()},beginDelayedSelectSource(d){var p;(p=l(d))==null||p.beginDelayedSelect()},cancelPendingSelectSource(d){var p;(p=l(d))==null||p.cancelPendingSelect()}}}function nD(e){return e.addReducers({search:J,questionAnswering:Mr}),!0}function oD(e,t){var o,i;let r=pA(e,Td),a=Dd(e,{options:{selectionDelay:(o=t==null?void 0:t.options)==null?void 0:o.selectionDelay}}),n=fA(e,{options:{selectionDelay:(i=t==null?void 0:t.options)==null?void 0:i.selectionDelay}});return{...r,get state(){return r.state},selectSource(s){n.selectSource(s)},beginDelayedSelectSource(s){n.beginDelayedSelectSource(s)},cancelPendingSelectSource(s){n.cancelPendingSelectSource(s)},selectInlineLink(s,c){a.selectInlineLink(c,s)},beginDelayedSelectInlineLink(s,c){a.beginDelayedSelectInlineLink(c,s)},cancelPendingSelectInlineLink(s,c){a.cancelPendingSelectInlineLink(c,s)}}}var iD={queries:new X({required:!0,each:new w({emptyAllowed:!1})}),maxLength:new D({required:!0,min:1,default:10})},Ni=C("recentQueries/registerRecentQueries",e=>A(e,iD)),Qi=C("recentQueries/clearRecentQueries");var mA=()=>E("analytics/recentQueries/clear",e=>e.makeClearRecentQueries()),gA=()=>E("analytics/recentQueries/click",e=>e.makeRecentQueryClick()),hA=()=>({actionCause:oe.recentQueryClick,getEventExtraPayload:e=>new ae(()=>e).getBaseMetadata()});var Vd=T(Jc(),e=>{e.addCase(Ni,(t,r)=>{t.queries=r.payload.queries.slice(0,r.payload.maxLength),t.maxLength=r.payload.maxLength}).addCase(Qi,t=>{t.queries=[]}).addCase(I.fulfilled,(t,r)=>{let a=r.payload.queryExecuted.trim(),n=r.payload.response.results;if(!a.length||!n.length)return;t.queries=t.queries.filter(i=>i!==a);let o=t.queries.slice(0,t.maxLength-1);t.queries=[a,...o]})});var sD={queries:[]},cD={maxLength:10,clearFilters:!0},uD=new Y({queries:new X({required:!0})}),lD=new Y({maxLength:new D({required:!0,min:1}),clearFilters:new K});function dD(e,t){he(e,lD,t==null?void 0:t.options,"buildRecentQueriesList"),ke(e,uD,t==null?void 0:t.initialState,"buildRecentQueriesList")}function pD(e,t){if(!fD(e))throw k;let r=M(e),{dispatch:a}=e,n=()=>e.state,o={...cD,...t==null?void 0:t.options},i={...sD,...t==null?void 0:t.initialState};dD(e,{options:o,initialState:i});let s={queries:i.queries,maxLength:o.maxLength};return a(Ni(s)),{...r,get state(){let c=n();return{...c.recentQueries,analyticsEnabled:c.configuration.analytics.enabled}},clear(){a(mA()),a(Qi())},executeRecentQuery(c){let u=new D({required:!0,min:0,max:this.state.queries.length}).validate(c);if(u)throw new Error(u);a(Bu({q:this.state.queries[c],clearFilters:o.clearFilters})),a(I({legacy:gA(),next:hA()}))}}}function fD(e){return e.addReducers({search:J,recentQueries:Vd}),!0}var SA=e=>E("analytics/recentResults/click",(t,r)=>(ut(e),t.makeRecentResultClick(Oe(e,r),Le(e)))),yA=()=>E("analytics/recentResults/clear",e=>e.makeClearRecentResults());var Md=T(Xc(),e=>{e.addCase(ui,(t,r)=>{t.results=r.payload.results.slice(0,r.payload.maxLength),t.maxLength=r.payload.maxLength}).addCase(li,t=>{t.results=[]}).addCase(wt,(t,r)=>{let a=r.payload;t.results=t.results.filter(o=>o.uniqueId!==a.uniqueId);let n=t.results.slice(0,t.maxLength-1);t.results=[a,...n]})});var mD={initialState:{results:[]},options:{maxLength:10}},gD=new Y({results:new X({required:!0})}),hD=new Y({maxLength:new D({required:!0,min:1})});function SD(e,t){he(e,hD,t==null?void 0:t.options,"buildRecentResultsList"),ke(e,gD,t==null?void 0:t.initialState,"buildRecentResultsList")}function yD(e,t){if(!CD(e))throw k;let r=M(e),{dispatch:a}=e,n=()=>e.state,o={...mD,...t};SD(e,o);let i={results:o.initialState.results,maxLength:o.options.maxLength};return a(ui(i)),{...r,get state(){return n().recentResults},clear(){a(yA()),a(li())}}}function CD(e){return e.addReducers({recentResults:Md}),!0}function xD(e,t){return dt(e,t,()=>e.dispatch(SA(t.options.result)))}function vD(e,t){if(!AD(e))throw k;let r=p=>{var f,m;return(m=(f=e.state.facetOptions.facets[p])==null?void 0:f.enabled)!=null?m:!1},a=p=>{var f,m,g,S,y,x,b,P,N,H,Z,U,_,fe,Se,j;return(j=(Se=(Z=(b=(g=(m=(f=e.state.facetSet)==null?void 0:f[p])==null?void 0:m.request)==null?void 0:g.currentValues)!=null?b:(x=(y=(S=e.state.categoryFacetSet)==null?void 0:S[p])==null?void 0:y.request)==null?void 0:x.currentValues)!=null?Z:(H=(N=(P=e.state.numericFacetSet)==null?void 0:P[p])==null?void 0:N.request)==null?void 0:H.currentValues)!=null?Se:(fe=(_=(U=e.state.dateFacetSet)==null?void 0:U[p])==null?void 0:_.request)==null?void 0:fe.currentValues)!=null?j:null},n=p=>p in e.state.facetOptions.facets,o=()=>Hn({isFacetRegistered:n(t.facetId),parentFacets:t.conditions.map(({parentFacetId:p})=>n(p)?{enabled:r(p),values:a(p)}:null)}),i=()=>{let p=o();return p===l?!1:(l=p,!0)},s=()=>t.conditions.some(p=>{if(!r(p.parentFacetId))return!1;let f=a(p.parentFacetId);return f===null?!1:p.condition(f)}),c=()=>{e.state.facetSet&&Object.entries(e.state.facetSet).forEach(([p,f])=>f.request.freezeCurrentValues&&e.dispatch(Kr({facetId:p,freezeCurrentValues:!1})))},u=()=>{if(!n(t.facetId))return;let p=r(t.facetId),f=s();p!==f&&(e.dispatch(f?Ke(t.facetId):ve(t.facetId)),c())};if(!t.conditions.length)return{stopWatching(){}};let l=o(),d=e.subscribe(()=>{i()&&u()});return u(),{stopWatching(){d()}}}function AD(e){return e.addReducers({facetOptions:Qe}),!0}function bD(e,t){if(!FD(e))throw k;let{facetSearch:r,allowedValues:a,...n}=t.options.facet,o=Ze(e,n);e.dispatch(Ar({...$s,...n,facetId:o,...a&&{allowedValues:{type:"simple",values:a}}}));let i=xl(e,{options:{...r,facetId:o},select:c=>{e.dispatch(ie()),e.dispatch(I({legacy:Pe({facetId:o,facetValue:c.rawValue}),next:De(o,c.rawValue)}))},exclude:c=>{e.dispatch(ie()),e.dispatch(I({legacy:St({facetId:o,facetValue:c.rawValue}),next:hr(o,c.rawValue)}))},isForFieldSuggestions:!0,executeFacetSearchActionCreator:Je,executeFieldSuggestActionCreator:Oa});return{...M(e),...i,updateText:function(c){i.updateText(c),i.search()},get state(){return i.state}}}function FD(e){return e.addReducers({facetSet:Or,configuration:$,facetSearchSet:ti,search:J}),!0}function RD(e,t){if(!PD(e))throw k;let{facetSearch:r,...a}=t.options.facet,n=Ze(e,a);e.dispatch(dr({...Bs,...a,facetId:n}));let o=ll(e,{options:{...r,facetId:n},isForFieldSuggestions:!0});return{...M(e),...o,updateText:function(s){o.updateText(s),o.search()},get state(){return o.state}}}function PD(e){return e.addReducers({categoryFacetSet:fr,configuration:$,categoryFacetSearchSet:Go,search:J}),!0}var CA=T(ha(),e=>{e.addCase(I.fulfilled,(t,r)=>{var n;t.set={};let a=(n=r.payload.response.generateAutomaticFacets)==null?void 0:n.facets;a==null||a.forEach(o=>{t.set[o.field]={response:o}})}).addCase(zl,(t,r)=>{r.payload.desiredCount&&(t.desiredCount=r.payload.desiredCount),r.payload.numberOfValues&&(t.numberOfValues=r.payload.numberOfValues)}).addCase(Ma,(t,r)=>{var c;let{field:a,selection:n}=r.payload,o=(c=t.set[a])==null?void 0:c.response;if(!o)return;let i=o.values.find(u=>u.value===n.value);if(!i)return;let s=i.state==="selected";i.state=s?"idle":"selected"}).addCase(Wl,(t,r)=>{var o;let a=r.payload,n=(o=t.set[a])==null?void 0:o.response;if(!!n)for(let i of n.values)i.state="idle"}).addCase(ue,(t,r)=>{var o,i,s;let a=(o=r.payload.af)!=null?o:{},n=Object.keys(t.set);for(let c in a)if(!t.set[c]){let u=wD(c),l=a[c].map(d=>ID(d));u.values.push(...l),t.set[c]={response:u}}for(let c of n)if(!(c in a)){let u=(i=t.set[c])==null?void 0:i.response;for(let l of u.values)l.state="idle"}for(let c in a){let u=(s=t.set[c])==null?void 0:s.response;if(u){let l=u.values;for(let d of l)a[c].includes(d.value)?d.state==="idle"&&(d.state="selected"):d.state="idle"}}}).addCase(ce.fulfilled,(t,r)=>{if(!!r.payload&&Object.keys(r.payload.automaticFacetSet.set).length!==0)return r.payload.automaticFacetSet}).addCase(Fe,t=>{Object.values(t.set).forEach(({response:r})=>{r.values.forEach(a=>a.state="idle")})})});function wD(e){return{field:e,values:[],moreValuesAvailable:!1,label:"",indexScore:0}}function ID(e){return{value:e,state:"selected",numberOfResults:0}}function xA(e,t){let{dispatch:r}=e,a=M(e),{field:n}=t;return{...a,toggleSelect(o){r(Ma({field:n,selection:o})),r(I({legacy:yl(n,o),next:Cl(n,o)}))},deselectAll(){r(Wl(n)),r(I({legacy:Ne(n),next:Xe(n)}))},get state(){var s,c;let o=(c=(s=e.state.automaticFacetSet)==null?void 0:s.set[n])==null?void 0:c.response;return o?{field:o.field,label:o.label,values:o.values}:{field:"",values:[],label:""}}}}function vA(e){return{desiredCount:e.desiredCount,numberOfValues:e.numberOfValues}}function ED(e,t){if(!kD(e))throw k;let{dispatch:r}=e,a=vA(t.options);return r(zl(a)),{...M(e),get state(){var i,s;return{automaticFacets:(s=(i=e.state.search.response.generateAutomaticFacets)==null?void 0:i.facets.map(c=>xA(e,{field:c.field})))!=null?s:[]}}}}function kD(e){return e.addReducers({automaticFacetSet:CA,configuration:$,search:J}),!0}function _m(e,t){var r,a;return(a=(r=e.generatedAnswer)==null?void 0:r.citations)==null?void 0:a.find(n=>n.id===t)}function kt(e){var t,r,a;return(a=(r=(t=e.search)==null?void 0:t.response)==null?void 0:r.extendedResults)==null?void 0:a.generativeQuestionAnsweringId}var OD=()=>E("analytics/generatedAnswer/retry",e=>e.makeRetryGeneratedAnswer()),qD=e=>E("analytics/generatedAnswer/rephrase",(t,r)=>{let a=kt(r);return a?t.makeRephraseGeneratedAnswer({generativeQuestionAnsweringId:a,rephraseFormat:e.answerStyle}):null}),TD=e=>E("analytics/generatedAnswer/openAnswerSource",(t,r)=>{let a=kt(r),n=_m(r,e);return!a||!n?null:t.makeOpenGeneratedAnswerSource({generativeQuestionAnsweringId:a,permanentId:n.permanentid,citationId:n.id})}),DD=(e,t)=>E("analytics/generatedAnswer/hoverCitation",(r,a)=>{let n=kt(a),o=_m(a,e);return!n||!o?null:r.makeGeneratedAnswerSourceHover({generativeQuestionAnsweringId:n,permanentId:o.permanentid,citationId:o.id,citationHoverTimeMs:t})}),VD=()=>E("analytics/generatedAnswer/like",(e,t)=>{let r=kt(t);return r?e.makeLikeGeneratedAnswer({generativeQuestionAnsweringId:r}):null}),MD=()=>E("analytics/generatedAnswer/dislike",(e,t)=>{let r=kt(t);return r?e.makeDislikeGeneratedAnswer({generativeQuestionAnsweringId:r}):null}),LD=e=>E("analytics/generatedAnswer/sendFeedback",(t,r)=>{let a=kt(r);return a?t.makeGeneratedAnswerFeedbackSubmit({generativeQuestionAnsweringId:a,reason:e}):null}),ND=e=>E("analytics/generatedAnswer/sendFeedback",(t,r)=>{let a=kt(r);return a?t.makeGeneratedAnswerFeedbackSubmit({generativeQuestionAnsweringId:a,reason:"other",details:e}):null}),$m=e=>E("analytics/generatedAnswer/streamEnd",(t,r)=>{let a=kt(r);return a?t.makeGeneratedAnswerStreamEnd({generativeQuestionAnsweringId:a,answerGenerated:e}):null}),QD=()=>E("analytics/generatedAnswer/show",(e,t)=>{let r=kt(t);return r?e.makeGeneratedAnswerShowAnswers({generativeQuestionAnsweringId:r}):null}),BD=()=>E("analytics/generatedAnswer/hide",(e,t)=>{let r=kt(t);return r?e.makeGeneratedAnswerHideAnswers({generativeQuestionAnsweringId:r}):null}),jD=()=>E("analytics/generatedAnswer/copy",(e,t)=>{let r=kt(t);return r?e.makeGeneratedAnswerCopyToClipboard({generativeQuestionAnsweringId:r}):null}),Bi={logCopyGeneratedAnswer:jD,logGeneratedAnswerHideAnswers:BD,logGeneratedAnswerShowAnswers:QD,logGeneratedAnswerStreamEnd:$m,logGeneratedAnswerDetailedFeedback:ND,logGeneratedAnswerFeedback:LD,logDislikeGeneratedAnswer:MD,logLikeGeneratedAnswer:VD,logHoverCitation:DD,logOpenGeneratedAnswerSource:TD,logRetryGeneratedAnswer:OD,logRephraseGeneratedAnswer:qD};var AA=async e=>{var t;return{accessToken:e.configuration.accessToken,organizationId:e.configuration.organizationId,url:e.configuration.platformUrl,streamId:(t=e.search.extendedResults)==null?void 0:t.generativeQuestionAnsweringId}};var bA=["default","bullet","step","concise"];var ac=new w({required:!0}),FA=new w,Hm=new K({required:!0}),UD={id:ac,title:ac,uri:ac,permanentid:ac,clickUri:FA},ji=C("generatedAnswer/setIsVisible",e=>A(e,Hm)),Gm=C("generatedAnswer/updateMessage",e=>A(e,{textDelta:ac})),zm=C("generatedAnswer/updateCitations",e=>A(e,{citations:new X({required:!0,each:new q({values:UD})})})),Wm=C("generatedAnswer/updateError",e=>A(e,{message:FA,code:new D({min:0})})),Mn=C("generatedAnswer/resetAnswer"),Ld=C("generatedAnswer/like"),Nd=C("generatedAnswer/dislike"),Qd=C("generatedAnswer/feedbackModal/open"),Bd=C("generatedAnswer/setId",e=>A(e,{id:new w({required:!0})})),jd=C("generatedAnswer/feedbackModal/close"),nc=C("generatedAnswer/sendFeedback"),oc=C("generatedAnswer/setIsLoading",e=>A(e,Hm)),Ud=C("generatedAnswer/setIsStreaming",e=>A(e,Hm)),ic=C("generatedAnswer/updateResponseFormat",e=>A(e,{answerStyle:new w({required:!0,constrainTo:bA})})),_d=C("generatedAnswer/registerFieldsToIncludeInCitations",e=>A(e,Pc)),RA=W("generatedAnswer/streamAnswer",async(e,t)=>{var l;let r=t.getState(),{dispatch:a,extra:n}=t,{setAbortControllerRef:o}=e,i=await AA(r),s=(d,p)=>{switch(d){case"genqa.messageType":a(Gm(JSON.parse(p)));break;case"genqa.citationsType":a(zm(JSON.parse(p)));break;case"genqa.endOfStreamType":a(Ud(!1)),a($m(JSON.parse(p).answerGenerated));break;default:r.debug&&n.logger.warn(`Unknown payloadType: "${d}"`)}};a(oc(!0));let c=d=>d.streamId===t.getState().search.extendedResults.generativeQuestionAnsweringId,u=(l=n.streamingClient)==null?void 0:l.streamGeneratedAnswer(i,{write:d=>{c(i)&&(a(oc(!1)),d.payload&&d.payloadType&&s(d.payloadType,d.payload))},abort:d=>{c(i)&&a(Wm(d))},close:()=>{c(i)&&a(Ud(!1))},resetAnswer:()=>{c(i)&&a(Mn())}});u?o(u):a(oc(!1))});var $d=T(Yn(),e=>e.addCase(ji,(t,{payload:r})=>{t.isVisible=r}).addCase(Bd,(t,{payload:r})=>{t.id=r.id}).addCase(Gm,(t,{payload:r})=>{t.isLoading=!1,t.isStreaming=!0,t.answer||(t.answer=""),t.answer+=r.textDelta,delete t.error}).addCase(zm,(t,{payload:r})=>{t.isLoading=!1,t.isStreaming=!0,t.citations=t.citations.concat(r.citations),delete t.error}).addCase(Wm,(t,{payload:r})=>{t.isLoading=!1,t.isStreaming=!1,t.error={...r,isRetryable:r.code===uf},t.citations=[],delete t.answer}).addCase(Ld,t=>{t.liked=!0,t.disliked=!1}).addCase(Nd,t=>{t.liked=!1,t.disliked=!0}).addCase(Qd,t=>{t.feedbackModalOpen=!0}).addCase(jd,t=>{t.feedbackModalOpen=!1}).addCase(nc,t=>{t.feedbackSubmitted=!0}).addCase(Mn,t=>({...Yn(),responseFormat:t.responseFormat,fieldsToIncludeInCitations:t.fieldsToIncludeInCitations,isVisible:t.isVisible,id:t.id})).addCase(oc,(t,{payload:r})=>{t.isLoading=r}).addCase(Ud,(t,{payload:r})=>{t.isStreaming=r}).addCase(ic,(t,{payload:r})=>{t.responseFormat=r}).addCase(_d,(t,r)=>{t.fieldsToIncludeInCitations=[...new Set(t.fieldsToIncludeInCitations.concat(r.payload))]}));var yt={engines:{},setAbortControllerRef:(e,t)=>{yt.engines[t].abortController=e},getIsStreamInProgress:e=>{var t;return!yt.engines[e].abortController||((t=yt.engines[e].abortController)==null?void 0:t.signal.aborted)?(yt.engines[e].abortController=void 0,!1):!0},subscribeToSearchRequests:e=>{let t=()=>{var s;let r=e.state,a=r.search.requestId,n=r.search.extendedResults.generativeQuestionAnsweringId,o=r.generatedAnswer.id;yt.engines[o].lastRequestId!==a&&(yt.engines[o].lastRequestId=a,(s=yt.engines[o].abortController)==null||s.abort(),e.dispatch(Mn())),!yt.getIsStreamInProgress(o)&&n&&n!==yt.engines[o].lastStreamId&&(yt.engines[o].lastStreamId=n,e.dispatch(RA({setAbortControllerRef:c=>yt.setAbortControllerRef(c,o)})))};return e.subscribe(t)}};function PA(e,t,r={}){var u,l;if(!_D(e))throw k;let{dispatch:a}=e,n=M(e),o=()=>e.state;if(!e.state.generatedAnswer.id){let d=la("genQA-",12);a(Bd({id:d})),yt.engines[d]={abortController:void 0,lastRequestId:"",lastStreamId:""}}let i=(u=r.initialState)==null?void 0:u.isVisible;i!==void 0&&a(ji(i));let s=(l=r.initialState)==null?void 0:l.responseFormat;s&&a(ic(s));let c=r.fieldsToIncludeInCitations;return c&&a(_d(c)),yt.subscribeToSearchRequests(e),{...n,get state(){return o().generatedAnswer},like(){this.state.liked||(a(Ld()),a(t.logLikeGeneratedAnswer()))},dislike(){this.state.disliked||(a(Nd()),a(t.logDislikeGeneratedAnswer()))},openFeedbackModal(){a(Qd())},closeFeedbackModal(){a(jd())},sendFeedback(d){a(t.logGeneratedAnswerFeedback(d)),a(nc())},sendDetailedFeedback(d){a(t.logGeneratedAnswerDetailedFeedback(d)),a(nc())},logCitationClick(d){a(t.logOpenGeneratedAnswerSource(d))},logCitationHover(d,p){a(t.logHoverCitation(d,p))},rephrase(d){a(ic(d))},show(){this.state.isVisible||(a(ji(!0)),a(t.logGeneratedAnswerShowAnswers()))},hide(){this.state.isVisible&&(a(ji(!1)),a(t.logGeneratedAnswerHideAnswers()))},logCopyToClipboard(){a(t.logCopyGeneratedAnswer())},retry(){}}}function _D(e){return e.addReducers({generatedAnswer:$d}),!0}function $D(e,t={}){let{dispatch:r}=e,a=PA(e,Bi,t);return{...a,get state(){return a.state},retry(){r(I({legacy:Bi.logRetryGeneratedAnswer()}))},rephrase(n){a.rephrase(n),r(I({legacy:Bi.logRephraseGeneratedAnswer(n)}))}}}function wA(e,t,r){let a=!1,n=()=>{a||(a=!0,e.dispatch(t.logOpenGeneratedAnswerSource(r.options.citation.id)))};return dt(e,r,()=>{n()})}function HD(e,t){return wA(e,Bi,t)}var Ha=()=>new w({required:!1,emptyAllowed:!0}),Hd=C("advancedSearchQueries/update",e=>A(e,{aq:Ha(),cq:Ha(),lq:Ha(),dq:Ha()})),Gd=C("advancedSearchQueries/register",e=>A(e,{aq:Ha(),cq:Ha(),lq:Ha(),dq:Ha()}));var IA=T(st(),e=>{e.addCase(Hd,(t,r)=>{let{aq:a,cq:n,lq:o,dq:i}=r.payload;Ee(a)||(t.aq=a,t.aqWasSet=!0),Ee(n)||(t.cq=n,t.cqWasSet=!0),Ee(o)||(t.lq=o,t.lqWasSet=!0),Ee(i)||(t.dq=i,t.dqWasSet=!0)}).addCase(Gd,(t,r)=>{let{aq:a,cq:n,lq:o,dq:i}=r.payload;Ee(a)||(t.defaultFilters.aq=a,t.aqWasSet||(t.aq=a)),Ee(n)||(t.defaultFilters.cq=n,t.cqWasSet||(t.cq=n)),Ee(o)||(t.defaultFilters.lq=o,t.lqWasSet||(t.lq=o)),Ee(i)||(t.defaultFilters.dq=i,t.dqWasSet||(t.dq=i))}).addCase(ce.fulfilled,(t,r)=>{var a,n;return(n=(a=r.payload)==null?void 0:a.advancedSearchQueries)!=null?n:t}).addCase(ue,(t,r)=>{let{aq:a,cq:n}=r.payload;Ee(a)||(t.aq=a,t.aqWasSet=!0),Ee(n)||(t.cq=n,t.cqWasSet=!0)})});function uhe(e){return e.addReducers({advancedSearchQueries:IA}),{updateAdvancedSearchQueries:Hd,registerAdvancedSearchQueries:Gd}}function xhe(e){return e.addReducers({categoryFacetSet:fr}),{deselectAllCategoryFacetValues:pr,registerCategoryFacet:dr,toggleSelectCategoryFacetValue:ka,updateCategoryFacetNumberOfValues:Cn,updateCategoryFacetSortCriterion:$o,updateFacetAutoSelection:bt,updateCategoryFacetBasePath:Yu}}function qhe(e){return e.addReducers({facetSet:Or}),{deselectAllFacetValues:Ae,registerFacet:Ar,toggleSelectFacetValue:br,toggleExcludeFacetValue:Fr,updateFacetIsFieldExpanded:Rn,updateFacetNumberOfValues:Fn,updateFacetSortCriterion:Jo,updateFreezeCurrentValues:Kr,updateFacetAutoSelection:bt}}function jhe(e){return e.addReducers({configuration:$}),{disableAnalytics:so,enableAnalytics:co,setOriginLevel2:vu,setOriginLevel3:Au,updateAnalyticsConfiguration:Ca,updateBasicConfiguration:ir}}function Whe(e){return e.addReducers({configuration:$,pipeline:fo,searchHub:go}),{updateSearchConfiguration:At}}function Zhe(e){return e.addReducers({context:_u}),{addContext:Sn,removeContext:yn,setContext:hn}}function nSe(e){return e.addReducers({dictionaryFieldContext:Hu}),{addContext:No,removeContext:Qo,setContext:Lo}}function cSe(e){return e.addReducers({debug:lo}),{disableDebug:uo,enableDebug:xa}}function hSe(e){return e.addReducers({dateFacetSet:qr}),{deselectAllDateFacetValues:il,registerDateFacet:Rr,toggleSelectDateFacetValue:Pr,toggleExcludeDateFacetValue:wr,updateDateFacetSortCriterion:ol,updateDateFacetValues:Jr}}function bSe(e){return e.addReducers({facetOptions:Qe}),{updateFacetOptions:ie,enableFacet:Ke,disableFacet:ve}}function ISe(e){return e.addReducers({didYouMean:Gu,query:It}),{applyDidYouMeanCorrection:Rt,disableDidYouMean:ku,enableDidYouMean:Po,enableAutomaticQueryCorrection:Ou,disableAutomaticQueryCorrection:wo,setCorrectionMode:Io}}function qSe(e){return e.addReducers({fields:Ea}),{registerFieldsToInclude:Pa,enableFetchAllFields:Vo,disableFetchAllFields:gn,fetchFieldsDescription:Mo}}function LSe(e){return e.addReducers({history:Gl,facetOrder:jl}),{back:ks,forward:Fu}}function HSe(e){return e.addReducers({numericFacetSet:Pt}),{deselectAllNumericFacetValues:ul,registerNumericFacet:Ir,toggleSelectNumericFacetValue:Er,toggleExcludeNumericFacetValue:kr,updateNumericFacetSortCriterion:cl,updateNumericFacetValues:Xr}}function XSe(e){return e.addReducers({folding:kd}),{registerFolding:wa,loadCollection:Ia}}function rye(e){return e.addReducers({pagination:Dr}),{nextPage:vo,previousPage:Ao,registerNumberOfResults:yo,registerPage:xo,updateNumberOfResults:Co,updatePage:Ft}}function iye(e){return e.addReducers({pipeline:fo}),{setPipeline:po}}function dye(e){return e.addReducers({query:It}),{updateQuery:Ye}}function Sye(e){return e.addReducers({querySet:fi}),{registerQuerySetQuery:pi,updateQuerySetQuery:qn}}function Pye(e){return e.addReducers({instantResults:nd}),{registerInstantResults:ho,updateInstantResultsQuery:sr,clearExpiredResults:So}}function Lye(e){return e.addReducers({querySuggest:mi,querySet:fi}),{clearQuerySuggest:Na,fetchQuerySuggestions:Qa,registerQuerySuggest:di,selectQuerySuggestion:Vr}}function Uye(e){return e.addReducers({search:J}),{executeSearch:ko,fetchMoreResults:qo,fetchFacetValues:Nu,fetchPage:Oo,fetchInstantResults:SC}}function Gye(e){return e.addReducers({searchHub:go}),{setSearchHub:mo}}function Kye(e){return e.addReducers({sortCriteria:sd}),{registerSortCriterion:hi,updateSortCriterion:Si}}function iCe(e){return e.addReducers({standaloneSearchBoxSet:Ad}),{registerStandaloneSearchBox:xi,fetchRedirectUrl:Ua,updateAnalyticsToSearchFromLink:Ai,updateAnalyticsToOmniboxFromLink:bi,resetStandaloneSearchBox:vi}}function pCe(e){return e.addReducers({staticFilterSet:fd}),{registerStaticFilter:yi,toggleSelectStaticFilterValue:Zr,toggleExcludeStaticFilterValue:ea,deselectAllStaticFilterValues:ja}}function SCe(e){return e.addReducers({tabSet:hd}),{registerTab:Do,updateActiveTab:jt}}function vCe(e){return e.addReducers({questionAnswering:Mr}),{collapseSmartSnippet:qi,expandSmartSnippet:Oi,dislikeSmartSnippet:Di,likeSmartSnippet:Ti,openFeedbackModal:Vi,closeFeedbackModal:$a,expandSmartSnippetRelatedQuestion:Mi,collapseSmartSnippetRelatedQuestion:Li}}function FCe(e){return e.addReducers({}),{deselectAllBreadcrumbs:Fe,deselectAllNonBreadcrumbs:va}}function ECe(e){return e.addReducers({recentQueries:Vd}),{registerRecentQueries:Ni,clearRecentQueries:Qi}}function DCe(e){return e.addReducers({recentResults:Md}),{registerRecentResults:ui,clearRecentResults:li,pushRecentResult:wt}}var zd=C("excerptLength/set",e=>A(e,new D({min:0,required:!0})));var EA=T(Hc(),e=>{e.addCase(zd,(t,r)=>{t.length=r.payload})});function GCe(e){return e.addReducers({excerptLength:EA}),{setExcerptLength:zd}}function txe(e){return e.addReducers({resultPreview:Id}),{fetchResultContent:Dn,updateContentURL:Ei,nextPreview:Pi,previousPreview:wi,preparePreviewPagination:Ii}}function oxe(e){return e.addReducers({generatedAnswer:$d}),{resetAnswer:Mn}}var GD=new Y({content:new me({required:!0}),conditions:new me({required:!0}),priority:new D({required:!1,default:0,min:0}),fields:new X({required:!1,each:O})});function zD(e){if(!WD(e))throw k;let t=[],r=a=>{a.forEach(n=>{if(GD.validate(n),!n.conditions.every(i=>i instanceof Function))throw new Ya("Each result template conditions should be a function that takes a result as an argument and returns a boolean")})};return{registerTemplates(...a){let n=[];r(a),a.forEach(o=>{let i={...o,priority:o.priority||0,fields:o.fields||[]};t.push(i),n.push(...i.fields)}),t.sort((o,i)=>i.priority-o.priority),n.length&&e.dispatch(Pa(n))},selectTemplate(a){let n=t.find(o=>o.conditions.every(i=>i(a)));return n?n.content:null}}}function WD(e){return e.addReducers({fields:Ea}),!0}function $xe(e){return e.addReducers({}),{logClearBreadcrumbs:yd,logInterfaceLoad:yu,logSearchFromLink:Cu,logOmniboxFromLink:xu,logInterfaceChange:ya,logDidYouMeanClick:qu,logCategoryFacetBreadcrumb:Sd,logFacetBreadcrumb:Yo,logFacetClearAll:Ne,logFacetUnexclude:Wr,logFacetExclude:St,logFacetDeselect:Ut,logFacetSelect:Pe,logFacetShowLess:Wo,logFacetShowMore:zo,logFacetUpdateSort:gr,logDateFacetBreadcrumb:Ys,logNumericFacetBreadcrumb:Ks,logNavigateBackward:_l,logNavigateForward:Ul,logPageNext:Kl,logPageNumber:si,logPagePrevious:Jl,logPagerResize:ii,logSearchboxSubmit:Ba,logQuerySuggestionClick:td,logResultsSort:gi,logDislikeSmartSnippet:Vm,logLikeSmartSnippet:Dm,logOpenSmartSnippetFeedbackModal:Lm,logCloseSmartSnippetFeedbackModal:Nm,logSmartSnippetFeedback:Qm,logSmartSnippetDetailedFeedback:Bm,logExpandSmartSnippet:qm,logCollapseSmartSnippet:Tm,logExpandSmartSnippetSuggestion:jm,logCollapseSmartSnippetSuggestion:Um,logNoResultsBack:$l,logStaticFilterSelect:ld,logStaticFilterDeselect:Ci,logStaticFilterClearAll:dd,logTriggerQuery:Tu,logUndoTriggerQuery:Du,logNotifyTrigger:Vu,logTriggerRedirect:Mu,logTriggerExecute:Lu}}function Wxe(e){return e.addReducers({}),{logDocumentOpen:Zl,logOpenSmartSnippetSource:Mm,logOpenSmartSnippetSuggestionSource:rc,logOpenSmartSnippetInlineLink:tc,logOpenSmartSnippetSuggestionInlineLink:qd}}function eve(e){return e.addReducers({}),{logSearchEvent:_y,logClickEvent:$y,logCustomEvent:Hy}}var kA=W("analytics/addPageViewEntry",async(e,{getState:t})=>{t().configuration.analytics.enabled&&vt.addElement({name:"PageView",value:e,time:JSON.stringify(new Date)})});function ive(e){return e.addReducers({}),{addPageViewEntryInActionsHistory:kA}}function YD(e){let{by:t,order:r}=e;switch(t){case Zt.Relevancy:return Cs();case Zt.QRE:return af();case Zt.NoSort:return nf();case Zt.Date:if(!r)throw new Error('An order (i.e., ascending or descending) should be specified for a sort criterion sorted by "date"');return tf(r);default:if(!r)throw new Error(`An order (i.e., ascending or descending) should be specified for a sort criterion sorted by a field, such as "${t}"`);return rf(t,r)}}function KD(e){return e===void 0||e===ma.Ascending||e===ma.Descending}function JD(e){let t=e.split(","),r=new Error(`Wrong criterion expression format for "${e}"`);if(!t.length)throw r;return t.map(a=>{let n=a.trim().split(" "),o=n[0].toLowerCase(),i=n[1]&&n[1].toLowerCase();if(n.length>2||o==="")throw r;if(!KD(i))throw new Error(`Wrong criterion sort order "${i}" in expression "${e}". Order should either be "${ma.Ascending}" or "${ma.Descending}"`);return YD({by:o,order:i})})}function Be(e){return e.negate?"NOT ":""}function Ot(e){return{contains:"=",differentThan:"<>",fuzzyMatch:"~=",greaterThan:">",greaterThanOrEqual:">=",isExactly:"==",lowerThan:"<",lowerThanOrEqual:"<=",phoneticMatch:"%=",regexMatch:"/=",wildcardMatch:"*="}[e]}function OA(e){return{toQuerySyntax(){let{field:t,value:r}=e,a=Ot(e.operator);return`${Be(e)}@${t}${a}${r}`}}}function qA(e){return{toQuerySyntax(){let t=Be(e),{field:r,from:a,to:n}=e,o=Ot("isExactly");return`${t}@${r}${o}${a}..${n}`}}}function TA(e){return{toQuerySyntax(){let t=Be(e),{expression:r}=e;return`${t}"${r}"`}}}function DA(e){return{toQuerySyntax(){let t=Be(e),{field:r}=e;return`${t}@${r}`}}}function VA(e){return{toQuerySyntax(){let{expression:t,negate:r}=e;return r?`NOT (${t})`:t}}}function MA(e){return{toQuerySyntax(){let t=Be(e),{startTerm:r,otherTerms:a}=e,n=XD(a),o=`${r} ${n}`;return e.negate?`${t}(${o})`:o}}}function XD(e){return e.map(t=>{let{endTerm:r,maxKeywordsBetween:a}=t;return`near:${a} ${r}`}).join(" ")}function LA(e){return{toQuerySyntax(){let{field:t,value:r}=e,a=Be(e),n=Ot(e.operator);return`${a}@${t}${n}${r}`}}}function NA(e){return{toQuerySyntax(){let t=Be(e),{field:r,from:a,to:n}=e,o=Ot("isExactly");return`${t}@${r}${o}${a}..${n}`}}}function QA(e){return{toQuerySyntax(){let{name:t,parameters:r}=e,a=ZD(r);return`$${t}(${a})`}}}function ZD(e){return Object.entries(e).map(t=>{let[r,a]=t,n=typeof a=="string"?a:a.toQuerySyntax();return`${r}: ${n}`}).join(", ")}function BA(e){return{toQuerySyntax(){let t=Be(e),{field:r,operator:a,value:n}=e,o=Ot(a),i=a==="fuzzyMatch"?` $quoteVar(value: ${n})`:`("${n}")`;return`${t}@${r}${o}${i}`}}}function jA(e){return{toQuerySyntax(){let{field:t}=e,r=Be(e),a=Ot(e.operator),n=e.values.map(i=>`"${i}"`),o=n.length===1?n[0]:`(${n.join(",")})`;return`${r}@${t}${a}${o}`}}}function vAe(){let e=[],t="and";return{addExpression(r){return e.push(r),this},addKeyword(r){return e.push(VA(r)),this},addNear(r){return e.push(MA(r)),this},addExactMatch(r){return e.push(TA(r)),this},addFieldExists(r){return e.push(DA(r)),this},addStringField(r){return e.push(jA(r)),this},addStringFacetField(r){return e.push(BA(r)),this},addNumericField(r){return e.push(LA(r)),this},addNumericRangeField(r){return e.push(NA(r)),this},addDateField(r){return e.push(OA(r)),this},addDateRangeField(r){return e.push(qA(r)),this},addQueryExtension(r){return e.push(QA(r)),this},joinUsing(r){return t=r,this},toQuerySyntax(){let r=eV(t),a=e.map(n=>n.toQuerySyntax()).join(`) ${r} (`);return e.length<=1?a:`(${a})`}}}function eV(e){return e==="and"?"AND":"OR"}var IAe={buildMockRaw:As,buildMockSearchAppEngine:ES,buildMockResult:OS,createMockState:tu};Jm();export{Os as API_DATE_FORMAT,CS as DefaultFieldsToInclude,XR as EcommerceDefaultFieldsToInclude,qS as HighlightUtils,ef as MinimumFieldsToInclude,rE as ResultTemplatesHelpers,Zt as SortBy,ma as SortOrder,IAe as TestUtils,un as VERSION,Yp as analyticsUrl,rr as baseFacetResponseSelector,ED as buildAutomaticFacetGenerator,Nq as buildBreadcrumbManager,pk as buildCategoryFacet,RD as buildCategoryFieldSuggestions,NE as buildContext,M as buildController,Hr as buildCriterionExpression,qk as buildDateFacet,Hk as buildDateFilter,Pn as buildDateRange,tf as buildDateSortCriterion,QE as buildDictionaryFieldContext,UE as buildDidYouMean,YT as buildExecuteTrigger,Pk as buildFacet,vD as buildFacetConditionsManager,Vq as buildFacetManager,rf as buildFieldSortCriterion,bD as buildFieldSuggestions,$T as buildFoldedResultList,$D as buildGeneratedAnswer,DO as buildHistoryManager,xq as buildInstantResults,HD as buildInteractiveCitation,cq as buildInteractiveInstantResult,xD as buildInteractiveRecentResult,sq as buildInteractiveResult,nf as buildNoSortCriterion,JT as buildNotifyTrigger,Lk as buildNumericFacet,jk as buildNumericFilter,Hs as buildNumericRange,KO as buildPager,XO as buildQueryError,vAe as buildQueryExpression,af as buildQueryRankingExpressionSortCriterion,tq as buildQuerySummary,zT as buildQueryTrigger,DT as buildQuickview,pD as buildRecentQueriesList,yD as buildRecentResultsList,HT as buildRedirectionTrigger,EE as buildRelevanceInspector,Cs as buildRelevanceSortCriterion,nq as buildResultList,zD as buildResultTemplatesManager,dq as buildResultsPerPage,Cm as buildSearchBox,vE as buildSearchEngine,Fm as buildSearchParameterManager,Rd as buildSearchParameterSerializer,qT as buildSearchStatus,rD as buildSmartSnippet,oD as buildSmartSnippetQuestionsList,Rq as buildSort,Uq as buildStandaloneSearchBox,wq as buildStaticFilter,kv as buildStaticFilterValue,Tq as buildTab,ET as buildUrlManager,C as createAction,W as createAsyncThunk,T as createReducer,La as currentPageSelector,mm as currentPagesSelector,EI as deserializeRelativeDate,bf as facetRequestSelector,Tw as facetResponseSelectedValuesSelector,Is as facetResponseSelector,gs as getOrganizationEndpoints,_C as getSampleSearchEngineConfiguration,uhe as loadAdvancedSearchQueryActions,FCe as loadBreadcrumbActions,xhe as loadCategoryFacetSetActions,Wxe as loadClickAnalyticsActions,jhe as loadConfigurationActions,Zhe as loadContextActions,hSe as loadDateFacetSetActions,cSe as loadDebugActions,nSe as loadDictionaryFieldContextActions,ISe as loadDidYouMeanActions,GCe as loadExcerptLengthActions,bSe as loadFacetOptionsActions,qhe as loadFacetSetActions,qSe as loadFieldActions,XSe as loadFoldingActions,oxe as loadGeneratedAnswerActions,eve as loadGenericAnalyticsActions,LSe as loadHistoryActions,ive as loadIPXActionsHistoryActions,Pye as loadInstantResultsActions,HSe as loadNumericFacetSetActions,rye as loadPaginationActions,iye as loadPipelineActions,dye as loadQueryActions,Sye as loadQuerySetActions,Lye as loadQuerySuggestActions,vCe as loadQuestionAnsweringActions,ECe as loadRecentQueriesActions,DCe as loadRecentResultsActions,txe as loadResultPreviewActions,Uye as loadSearchActions,$xe as loadSearchAnalyticsActions,Whe as loadSearchConfigurationActions,Gye as loadSearchHubActions,Kye as loadSortCriteriaActions,iCe as loadStandaloneSearchBoxSetActions,pCe as loadStaticFilterSetActions,SCe as loadTabSetActions,Yl as maxPageSelector,JD as parseCriterionExpression,Tc as platformUrl,dn as validateRelativeDate}; +/** + * @license + * + * Copyright 2024 Coveo Solutions Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ diff --git a/netlify/src/suggestions.js b/netlify/src/suggestions.js new file mode 100644 index 0000000..580a619 --- /dev/null +++ b/netlify/src/suggestions.js @@ -0,0 +1,439 @@ +( function( document, window ) { +"use strict"; + +// Search UI base +const baseElement = document.querySelector( '[data-gc-search]' ); + +// Window location variables +const winLoc = window.location; +const winPath = winLoc.pathname; +const winOrigin = winLoc.origin; +const originPath = winOrigin + winPath; + +// Parameters +const defaults = { + "searchHub": "canada-gouv-public-websites", + "organizationId": "", + "accessToken":"", + "searchBoxQuery": "#wb-srch-q", + "lang": "en", + "numberOfSuggestions": 5, + "minimumCharsForSuggestions": 3, + "originLevel3": originPath, + "pipeline": "", + "endpoint": "https://apps.canada.ca/search" +}; +let lang = document.querySelector( "html" )?.lang; +let paramsOverride = baseElement ? JSON.parse( baseElement.dataset.gcSearch ) : {}; +let paramsDetect = {}; +let params = {}; +let urlParams; +let originLevel3RelativeUrl = ""; + +// UI states +let updateSearchBoxFromState = false; +let searchBoxState; +let lastCharKeyUp; +let activeSuggestion = 0; + +// Firefox patch +let isFirefox = navigator.userAgent.indexOf( "Firefox" ) !== -1; +let waitForkeyUp = false; + +// UI Elements placeholders +let searchBoxElement; +let formElement = document.querySelector( 'form[name="cse-search-box"]' ); +let suggestionsElement = document.querySelector( '#suggestions' ); +let qsA11yHintHTML = document.getElementById( 'sr-qs-hint' )?.innerHTML; + +if ( !qsA11yHintHTML ) { + if ( lang === "fr" ) { + qsA11yHintHTML = + ``; + } + else { + qsA11yHintHTML = + ``; + } +} + +// Init parameters and UI +function initSearchUI() { + if( !baseElement || !DOMPurify ) { + return; + } + + if ( !lang && winPath.includes( "/fr/" ) ) { + paramsDetect.lang = "fr"; + } + if ( lang.startsWith( "fr" ) ) { + paramsDetect.lang = "fr"; + } + + paramsDetect.originLevel3 = formElement.action; + + // Final parameters object + params = Object.assign( defaults, paramsDetect, paramsOverride ); + + // Initialize templates + initTpl(); + + // override origineLevel3 through query parameters + if ( urlParams?.originLevel3 ) { + params.originLevel3 = urlParams.originLevel3; + } + + // Auto detect relative path from originLevel3 + if( !params.originLevel3.startsWith( "/" ) && /http|www/.test( params.originLevel3 ) ) { + try { + const absoluteURL = new URL( params.originLevel3 ); + originLevel3RelativeUrl = absoluteURL.pathname; + } + catch( exception ) { + console.warn( "Exception while auto detecting relative path: " + exception.message ); + } + } + else { + originLevel3RelativeUrl = params.originLevel3; + } + + // Do nothing if no access token is provided + if ( !params.accessToken ) { + return; + } + + // Initialize the engine + initEngine(); +} + +// Initialize default templates +function initTpl() { + // auto-create suggestions element + searchBoxElement = document.querySelector( params.searchBoxQuery ); + if ( searchBoxElement ) { + + // default searchbox attributes + searchBoxElement.setAttribute( 'type', 'search' ); // default, when query suggestions are disabled + + // if query suggestions are enabled and not advanced search, auto-create suggestions element and update searchbox attributes + if ( params.numberOfSuggestions > 0 && !suggestionsElement ) { + searchBoxElement.setAttribute( 'type', 'text' ); + searchBoxElement.role = "combobox"; + searchBoxElement.setAttribute( 'autocomplete', 'off' ); + searchBoxElement.setAttribute( 'aria-expanded', 'false' ); + searchBoxElement.setAttribute( 'aria-autocomplete', 'list' ); + + suggestionsElement = document.createElement( "ul" ); + suggestionsElement.id = "suggestions"; + suggestionsElement.role = "listbox"; + suggestionsElement.classList.add( "query-suggestions" ); + + searchBoxElement.after( suggestionsElement ); + searchBoxElement.setAttribute( 'aria-controls', 'suggestions' ); + + // Add accessibility instructions after query suggestions + suggestionsElement.insertAdjacentHTML( 'afterEnd', qsA11yHintHTML ); + suggestionsElement.setAttribute( "aria-describedby", "sr-qs-hint" ); + + // Document-wide listener to close query suggestion box if click elsewhere + document.addEventListener( "click", function( evnt ) { + if ( suggestionsElement && ( evnt.target.className !== "suggestion-item" && evnt.target.id !== searchBoxElement?.id ) ) { + closeSuggestionsBox(); + } + } ); + } + } +} + +function sanitizeQuery(q) { + return q.replace(/<[^>]*>?/gm, ''); +} + +// rebuild a clean query string out of a JSON object +function buildCleanQueryString( paramsObject ) { + let urlParam = ""; + for ( var prop in paramsObject ) { + if ( paramsObject[ prop ] ) { + if ( urlParam !== "" ) { + urlParam += "&"; + } + + urlParam += prop + "=" + stripHtml( paramsObject[ prop ].replaceAll( '+', ' ' ) ); + } + } + return urlParam; +} + +// Strip HTML tags of a given string +function stripHtml(html) { + let tmp = document.createElement( "DIV" ); + tmp.innerHTML = html; + return tmp.textContent || tmp.innerText || ""; +} + +// Initiate engine +function initEngine() { + // Listen to "Enter" key up event for search suggestions + if ( searchBoxElement ) { + searchBoxElement.onkeydown = ( e ) => { + // Enter + if ( e.keyCode === 13 && ( activeSuggestion !== 0 && suggestionsElement && !suggestionsElement.hidden ) ) { + selectSuggestion(); + closeSuggestionsBox(); + e.preventDefault(); + } + // Escape or Tab + else if ( e.keyCode === 27 || e.keyCode === 9 ) { + closeSuggestionsBox(); + + if ( e.keyCode === 27 ) { + e.preventDefault(); + } + } + // Arrow key up + else if ( e.keyCode === 38 ) { + if ( !( isFirefox && waitForkeyUp ) ) { + waitForkeyUp = true; + searchBoxArrowKey( "up" ); + e.preventDefault(); + } + } + // Arrow key down + else if ( e.keyCode === 40 ) { + if ( !( isFirefox && waitForkeyUp ) ) { + waitForkeyUp = true; + searchBoxArrowKey( "down" ); + } + } + }; + searchBoxElement.onkeyup = ( e ) => { + waitForkeyUp = false; + lastCharKeyUp = e.keyCode; + // Keys that don't changes the input value + if ( ( e.key.length !== 1 && e.keyCode !== 46 && e.keyCode !== 8 ) || // Non-printable char except Delete or Backspace + ( e.ctrlKey && e.key !== "x" && e.key !== "X" && e.key !== "v" && e.key !== "V" ) ) { // Ctrl-key is pressed but not X or V is use + return; + } + + // Any other key + if ( e.target.value ) { + updateSearchBoxText( sanitizeQuery( e.target.value ) ); + } + if ( e.target.value.length < params.minimumCharsForSuggestions ){ + closeSuggestionsBox(); + } + }; + searchBoxElement.onfocus = () => { + lastCharKeyUp = null; + if ( searchBoxElement.value.length >= params.minimumCharsForSuggestions ) { + updateSearchBoxText( sanitizeQuery( searchBoxElement.value ) ); + } + }; + } + + // Listen to submit event from the search form (advanced searches will instead reload the page with URl parameters to search on load) + if ( formElement ) { + formElement.onsubmit = ( e ) => { + e.preventDefault(); + redirectToSearchPage( 'headerSearchBoxSubmit' ); + }; + } +} + +function redirectToSearchPage( actionCause ) { + if ( formElement && searchBoxElement ) { + window.location.href = formElement.action + "?" + buildCleanQueryString( { q: searchBoxElement.value, actionCause : actionCause } ); + } +} + +function formatHighlightedSuggestion( highlighted ) { + return highlighted.replaceAll( '[', '' ) + .replaceAll( ']', '' ) + .replaceAll( '(', '' ) + .replaceAll( ')', '' ) + .replaceAll( '{', '' ) + .replaceAll( '}', '' ); +} + +function updateSearchBoxText( text ) { + if ( text.length < params.minimumCharsForSuggestions ) { + return; + } + + const body = { + count: params.numberOfSuggestions, + q: text, + locale: params.lang, + timezone: Intl.DateTimeFormat().resolvedOptions().timeZone, + context:{ + searchPageUrl: params.originLevel3, + searchPageRelativeUrl: originLevel3RelativeUrl + }, + searchHub: params.searchHub + }; + + const options = { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + 'Authorization': 'Bearer ' + params.accessToken + }, + body: JSON.stringify( body ) + }; + + fetch(params.endpoint + "/querySuggest?organizationId=" + params.organizationId, options) + .then((response) => { + if (!response.ok) { + // Handle HTTP errors, e.g., 404 Not Found + console.error("HTTP error while getting query suggestions: ", response.status, response.statusText); + } + // Parse the response body as JSON and return a new Promise + return response.json(); + }) + .then((data) => { + updateSearchBoxState( { + isLoadingSuggestions: false, + isLoading: false, + value: text, + suggestions: data.completions.map( suggestion => ( { + highlightedValue: formatHighlightedSuggestion( suggestion.highlighted ), + highlighted: suggestion.highlighted + } ) ) + } ); + }) + .catch((error) => { + // Handle network errors or errors thrown in the .then() block + console.error("Error updating search box suggestions: ", error); + }); +} + +function searchBoxArrowKey( direction ) { + if ( suggestionsElement.hidden ) { + return; + } + + if ( direction === "up" ) { + if ( !activeSuggestion || activeSuggestion <= 1 ) { + activeSuggestion = searchBoxState.suggestions.length; + } + else { + activeSuggestion -= 1; + } + } else { + if ( !activeSuggestion || activeSuggestion >= searchBoxState.suggestions.length ) { + activeSuggestion = 1; + } + else { + activeSuggestion += 1; + } + } + + updateSuggestionSelection(); +} + +// Select the active suggestion +function selectSuggestion() { + let suggestionElement = document.getElementById( 'suggestion-' + activeSuggestion ); + + if ( suggestionElement ) { + const selectedVal = stripHtml( suggestionElement.innerText ); + + if ( selectedVal ) { + searchBoxElement.value = selectedVal; + redirectToSearchPage( 'headerSearchBoxSuggestion' ); + } + } +} + +// open the suggestions box +function openSuggestionsBox() { + suggestionsElement.hidden = false; + searchBoxElement.setAttribute( 'aria-expanded', 'true' ); +} + +// close the suggestions box +function closeSuggestionsBox() { + if( !suggestionsElement ) { + return; + } + suggestionsElement.hidden = true; + activeSuggestion = 0; + searchBoxElement.setAttribute( 'aria-expanded', 'false' ); + searchBoxElement.removeAttribute( 'aria-activedescendant' ); +} + +// Update the visual selection of the active suggestion +function updateSuggestionSelection() { + // clear current suggestion + let activeSelection = suggestionsElement.getElementsByClassName( 'selected-suggestion' ); + let selectedSuggestionId = 'suggestion-' + activeSuggestion; + let suggestionElement = document.getElementById( selectedSuggestionId ); + Array.prototype.forEach.call(activeSelection, function( suggestion ) { + suggestion.classList.remove( 'selected-suggestion' ); + suggestion.setAttribute( 'aria-selected', "false" ); + }); + + suggestionElement.classList.add( 'selected-suggestion' ); + suggestionElement.setAttribute( 'aria-selected', "true" ); + searchBoxElement.setAttribute( 'aria-activedescendant', selectedSuggestionId ); +} + +// Update the search box state after search actions - used for QS +function updateSearchBoxState( newState ) { + searchBoxState = newState; + + // Show query suggestions if a search action was not executed (if enabled) + if ( updateSearchBoxFromState && searchBoxElement && searchBoxElement.value !== newState.value ) { + searchBoxElement.value = stripHtml( newState.value ); + updateSearchBoxFromState = false; + return; + } + + if ( !suggestionsElement ) { + return; + } + + if ( lastCharKeyUp === 13 ) { + closeSuggestionsBox(); + return; + } + + // Build suggestions list + activeSuggestion = 0; + if ( !searchBoxState.isLoadingSuggestions ) { + suggestionsElement.textContent = ''; + searchBoxState.suggestions.forEach( ( suggestion, index ) => { + const currentIndex = index + 1; + const suggestionId = "suggestion-" + currentIndex; + const node = document.createElement( "li" ); + node.setAttribute( "class", "suggestion-item" ); + node.setAttribute( "aria-selected", "false" ); + node.setAttribute( "aria-setsize", searchBoxState.suggestions.length ); + node.setAttribute( "aria-posinset", currentIndex ); + node.role = "option"; + node.id = suggestionId; + node.onmouseenter = () => { + activeSuggestion = index + 1; + updateSuggestionSelection(); + }; + node.onclick = ( e ) => { + searchBoxElement.value = stripHtml( e.currentTarget.innerText ); + redirectToSearchPage( 'headerSearchBoxSuggestion' ); + }; + node.innerHTML = DOMPurify.sanitize( suggestion.highlightedValue ); + suggestionsElement.appendChild( node ); + }); + + if ( !searchBoxState.isLoading && searchBoxState.suggestions.length > 0 && searchBoxState.value.length >= params.minimumCharsForSuggestions ) { + openSuggestionsBox(); + } + else{ + closeSuggestionsBox(); + } + } +} + +// Run Search UI +initSearchUI(); + +} )( document, window ); diff --git a/netlify/src/theme.css b/netlify/src/theme.css new file mode 100644 index 0000000..62869a3 --- /dev/null +++ b/netlify/src/theme.css @@ -0,0 +1,20330 @@ +@charset "utf-8"; /*! + * @title Web Experience Toolkit (WET) / Boîte à outils de l'expérience Web (BOEW) + * @license wet-boew.github.io/wet-boew/License-en.html / wet-boew.github.io/wet-boew/Licence-fr.html + * v19.0.0 - 2026-03-18 + * + */ +/*! Global and helpers */ +#mb-pnl .modal-body h2,#wb-bc li:first-child:before,.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,.pager.disabled,.pager>li.disabled,.pagination.disabled,.pagination>li.disabled,.wb-tabs.carousel-s1 [role=tablist]>li,.wb-tabs.carousel-s2 [role=tablist]>li,.wb-twitter .wb-twitter-notice-end,.wb-twitter .wb-twitter-notice-start,[dir=rtl] #wb-bc li:first-child:before,[dir=rtl] .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,[dir=rtl] .dataTables_wrapper .dataTables_paginate .paginate_button.next:after,[dir=rtl] .dataTables_wrapper .dataTables_paginate .paginate_button.previous:before,[dir=rtl] .pager [rel=next]:after,[dir=rtl] .pager [rel=prev]:before,[dir=rtl] .pagination [rel=next]:after,[dir=rtl] .pagination [rel=prev]:before,table.dataTable thead .sorting-icons,table.dataTable thead .sorting_asc_disabled .sorting-icons:before,table.dataTable thead .sorting_desc_disabled .sorting-icons:after { + display: none +} + +.wb-disable .wb-tabs>.tabpanels>details,.wb-disable .wb-tabs>details,.wb-menu .sm.open li,.wb-twitter .wb-twitter-notice-start[tabindex] { + display: block +} + +.wb-disable #wb-info,.wb-disable #wb-sec,.wb-disable #wb-sm,.wb-disable #wb-srch,.wb-disable .mfp-hide,.wb-disable .wb-overlay { + display: block!important +} + +.wb-menu .active>a,.wb-menu .menu>li a,.wb-menu .menu>li a:focus,.wb-menu .menu>li a:hover { + text-decoration: none +} + +.geomap-progress:after,.geomap-progress:before,.wb-mltmd.video.waiting .display:after,.wb-mltmd.video.waiting .display:before,.wb-mltmd.video:not(.playing):not(.waiting):not(.youtube) .display:after,.wb-mltmd.video:not(.playing):not(.waiting):not(.youtube) .display:before { + bottom: 0; + content: " "; + height: 100px; + left: 0; + margin: auto; + position: absolute; + right: 0; + top: 0; + width: 100px +} + +.geomap-progress:after,.wb-mltmd.video.waiting .display:after,.wb-mltmd.video:not(.playing):not(.waiting):not(.youtube) .display:after { + z-index: 1 +} + +.geomap-progress:before,.wb-mltmd.video.waiting .display:before,.wb-mltmd.video:not(.playing):not(.waiting):not(.youtube) .display:before { + background: rgba(0,0,0,.7); + border-radius: 10px +} + +.geomap-progress:after,.wb-mltmd.video.waiting .display:after { + -webkit-animation-duration: .5s; + animation-duration: .5s; + -webkit-animation-iteration-count: infinite; + animation-iteration-count: infinite; + -webkit-animation-name: spin; + animation-name: spin; + -webkit-animation-timing-function: linear; + animation-timing-function: linear; + color: #fff; + content: "\e031"; + height: 1em; + line-height: 1.03; + width: 1em; + z-index: 2; + font-family: "Glyphicons Halflings"; + font-size: 3.5em +} + +/*! Reset and dependencies */ +/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */ +html { + font-family: sans-serif; + -ms-text-size-adjust: 100%; + -webkit-text-size-adjust: 100% +} + +body { + margin: 0 +} + +article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary { + display: block +} + +audio,canvas,progress,video { + display: inline-block; + vertical-align: baseline +} + +audio:not([controls]) { + display: none; + height: 0 +} + +[hidden],template { + display: none +} + +a { + background-color: transparent +} + +a:active,a:hover { + outline: 0 +} + +abbr[title] { + border-bottom: none; + text-decoration: underline; + text-decoration: underline dotted +} + +b,strong { + font-weight: 700 +} + +dfn { + font-style: italic +} + +h1 { + font-size: 2em; + margin: .67em 0 +} + +mark { + background: #ff0; + color: #000 +} + +small { + font-size: 80% +} + +sub,sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline +} + +sup { + top: -.5em +} + +sub { + bottom: -.25em +} + +img { + border: 0 +} + +svg:not(:root) { + overflow: hidden +} + +figure { + margin: 1em 40px +} + +hr { + -webkit-box-sizing: content-box; + box-sizing: content-box; + height: 0 +} + +pre { + overflow: auto +} + +code,kbd,pre,samp { + font-family: monospace,monospace; + font-size: 1em +} + +button,input,optgroup,select,textarea { + color: inherit; + font: inherit; + margin: 0 +} + +button { + overflow: visible +} + +button,select { + text-transform: none +} + +button,html input[type=button],input[type=reset],input[type=submit] { + -webkit-appearance: button; + cursor: pointer +} + +button[disabled],html input[disabled] { + cursor: default +} + +button::-moz-focus-inner,input::-moz-focus-inner { + border: 0; + padding: 0 +} + +input { + line-height: normal +} + +input[type=checkbox],input[type=radio] { + -webkit-box-sizing: border-box; + box-sizing: border-box; + padding: 0 +} + +input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button { + height: auto +} + +input[type=search] { + -webkit-appearance: textfield; + -webkit-box-sizing: content-box; + box-sizing: content-box +} + +input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration { + -webkit-appearance: none +} + +fieldset { + border: 1px solid silver; + margin: 0 2px; + padding: .35em .625em .75em +} + +legend { + border: 0; + padding: 0 +} + +textarea { + overflow: auto +} + +optgroup { + font-weight: 700 +} + +table { + border-collapse: collapse; + border-spacing: 0 +} + +td,th { + padding: 0 +} + +a:active,a:hover { + outline: revert +} + +/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */ +@media print { + *,:after,:before { + color: #000!important; + text-shadow: none!important; + background: 0 0!important; + -webkit-box-shadow: none!important; + box-shadow: none!important + } + + a,a:visited { + text-decoration: underline + } + + a[href]:after { + content: " (" attr(href) ")" + } + + abbr[title]:after { + content: " (" attr(title) ")" + } + + a[href^="#"]:after,a[href^="javascript:"]:after { + content: "" + } + + blockquote,pre { + border: 1px solid #999; + page-break-inside: avoid + } + + thead { + display: table-header-group + } + + img,tr { + page-break-inside: avoid + } + + img { + max-width: 100%!important + } + + h2,h3,p { + orphans: 3; + widows: 3 + } + + h2,h3 { + page-break-after: avoid + } + + .navbar { + display: none + } + + .btn>.caret,.dropup>.btn>.caret { + border-top-color: #000!important + } + + .label { + border: 1px solid #000 + } + + .table { + border-collapse: collapse!important + } + + .table td,.table th { + background-color: #fff!important + } + + .table-bordered td,.table-bordered th { + border: 1px solid #ddd!important + } +} + +@font-face { + font-family: "Glyphicons Halflings"; + src: url("../../wet-boew/fonts/glyphicons-halflings-regular.eot"); + src: url("../../wet-boew/fonts/glyphicons-halflings-regular.eot?#iefix") format("embedded-opentype"),url("../../wet-boew/fonts/glyphicons-halflings-regular.woff2") format("woff2"),url("../../wet-boew/fonts/glyphicons-halflings-regular.woff") format("woff"),url("../../wet-boew/fonts/glyphicons-halflings-regular.ttf") format("truetype"),url("../../wet-boew/fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular") format("svg") +} + +.glyphicon { + position: relative; + top: 1px; + display: inline-block; + font-family: "Glyphicons Halflings"; + font-style: normal; + font-weight: 400; + line-height: 1; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale +} + +.glyphicon-asterisk:before { + content: "*" +} + +.glyphicon-plus:before { + content: "+" +} + +.glyphicon-eur:before,.glyphicon-euro:before { + content: "€" +} + +.glyphicon-minus:before { + content: "−" +} + +.glyphicon-cloud:before { + content: "☁" +} + +.glyphicon-envelope:before { + content: "✉" +} + +.glyphicon-pencil:before { + content: "✏" +} + +.glyphicon-glass:before { + content: "\e001" +} + +.glyphicon-music:before { + content: "\e002" +} + +.glyphicon-search:before { + content: "\e003" +} + +.glyphicon-heart:before { + content: "\e005" +} + +.glyphicon-star:before { + content: "\e006" +} + +.glyphicon-star-empty:before { + content: "\e007" +} + +.glyphicon-user:before { + content: "\e008" +} + +.glyphicon-film:before { + content: "\e009" +} + +.glyphicon-th-large:before { + content: "\e010" +} + +.glyphicon-th:before { + content: "\e011" +} + +.glyphicon-th-list:before { + content: "\e012" +} + +.glyphicon-ok:before { + content: "\e013" +} + +.glyphicon-remove:before { + content: "\e014" +} + +.glyphicon-zoom-in:before { + content: "\e015" +} + +.glyphicon-zoom-out:before { + content: "\e016" +} + +.glyphicon-off:before { + content: "\e017" +} + +.glyphicon-signal:before { + content: "\e018" +} + +.glyphicon-cog:before { + content: "\e019" +} + +.glyphicon-trash:before { + content: "\e020" +} + +.glyphicon-home:before { + content: "\e021" +} + +.glyphicon-file:before { + content: "\e022" +} + +.glyphicon-time:before { + content: "\e023" +} + +.glyphicon-road:before { + content: "\e024" +} + +.glyphicon-download-alt:before { + content: "\e025" +} + +.glyphicon-download:before { + content: "\e026" +} + +.glyphicon-upload:before { + content: "\e027" +} + +.glyphicon-inbox:before { + content: "\e028" +} + +.glyphicon-play-circle:before { + content: "\e029" +} + +.glyphicon-repeat:before { + content: "\e030" +} + +.glyphicon-refresh:before { + content: "\e031" +} + +.glyphicon-list-alt:before { + content: "\e032" +} + +.glyphicon-lock:before { + content: "\e033" +} + +.glyphicon-flag:before { + content: "\e034" +} + +.glyphicon-headphones:before { + content: "\e035" +} + +.glyphicon-volume-off:before { + content: "\e036" +} + +.glyphicon-volume-down:before { + content: "\e037" +} + +.glyphicon-volume-up:before { + content: "\e038" +} + +.glyphicon-qrcode:before { + content: "\e039" +} + +.glyphicon-barcode:before { + content: "\e040" +} + +.glyphicon-tag:before { + content: "\e041" +} + +.glyphicon-tags:before { + content: "\e042" +} + +.glyphicon-book:before { + content: "\e043" +} + +.glyphicon-bookmark:before { + content: "\e044" +} + +.glyphicon-print:before { + content: "\e045" +} + +.glyphicon-camera:before { + content: "\e046" +} + +.glyphicon-font:before { + content: "\e047" +} + +.glyphicon-bold:before { + content: "\e048" +} + +.glyphicon-italic:before { + content: "\e049" +} + +.glyphicon-text-height:before { + content: "\e050" +} + +.glyphicon-text-width:before { + content: "\e051" +} + +.glyphicon-align-left:before { + content: "\e052" +} + +.glyphicon-align-center:before { + content: "\e053" +} + +.glyphicon-align-right:before { + content: "\e054" +} + +.glyphicon-align-justify:before { + content: "\e055" +} + +.glyphicon-list:before { + content: "\e056" +} + +.glyphicon-indent-left:before { + content: "\e057" +} + +.glyphicon-indent-right:before { + content: "\e058" +} + +.glyphicon-facetime-video:before { + content: "\e059" +} + +.glyphicon-picture:before { + content: "\e060" +} + +.glyphicon-map-marker:before { + content: "\e062" +} + +.glyphicon-adjust:before { + content: "\e063" +} + +.glyphicon-tint:before { + content: "\e064" +} + +.glyphicon-edit:before { + content: "\e065" +} + +.glyphicon-share:before { + content: "\e066" +} + +.glyphicon-check:before { + content: "\e067" +} + +.glyphicon-move:before { + content: "\e068" +} + +.glyphicon-step-backward:before { + content: "\e069" +} + +.glyphicon-fast-backward:before { + content: "\e070" +} + +.glyphicon-backward:before { + content: "\e071" +} + +.glyphicon-play:before { + content: "\e072" +} + +.glyphicon-pause:before { + content: "\e073" +} + +.glyphicon-stop:before { + content: "\e074" +} + +.glyphicon-forward:before { + content: "\e075" +} + +.glyphicon-fast-forward:before { + content: "\e076" +} + +.glyphicon-step-forward:before { + content: "\e077" +} + +.glyphicon-eject:before { + content: "\e078" +} + +.glyphicon-chevron-left:before { + content: "\e079" +} + +.glyphicon-chevron-right:before { + content: "\e080" +} + +.glyphicon-plus-sign:before { + content: "\e081" +} + +.glyphicon-minus-sign:before { + content: "\e082" +} + +.glyphicon-remove-sign:before { + content: "\e083" +} + +.glyphicon-ok-sign:before { + content: "\e084" +} + +.glyphicon-question-sign:before { + content: "\e085" +} + +.glyphicon-info-sign:before { + content: "\e086" +} + +.glyphicon-screenshot:before { + content: "\e087" +} + +.glyphicon-remove-circle:before { + content: "\e088" +} + +.glyphicon-ok-circle:before { + content: "\e089" +} + +.glyphicon-ban-circle:before { + content: "\e090" +} + +.glyphicon-arrow-left:before { + content: "\e091" +} + +.glyphicon-arrow-right:before { + content: "\e092" +} + +.glyphicon-arrow-up:before { + content: "\e093" +} + +.glyphicon-arrow-down:before { + content: "\e094" +} + +.glyphicon-share-alt:before { + content: "\e095" +} + +.glyphicon-resize-full:before { + content: "\e096" +} + +.glyphicon-resize-small:before { + content: "\e097" +} + +.glyphicon-exclamation-sign:before { + content: "\e101" +} + +.glyphicon-gift:before { + content: "\e102" +} + +.glyphicon-leaf:before { + content: "\e103" +} + +.glyphicon-fire:before { + content: "\e104" +} + +.glyphicon-eye-open:before { + content: "\e105" +} + +.glyphicon-eye-close:before { + content: "\e106" +} + +.glyphicon-warning-sign:before { + content: "\e107" +} + +.glyphicon-plane:before { + content: "\e108" +} + +.glyphicon-calendar:before { + content: "\e109" +} + +.glyphicon-random:before { + content: "\e110" +} + +.glyphicon-comment:before { + content: "\e111" +} + +.glyphicon-magnet:before { + content: "\e112" +} + +.glyphicon-chevron-up:before { + content: "\e113" +} + +.glyphicon-chevron-down:before { + content: "\e114" +} + +.glyphicon-retweet:before { + content: "\e115" +} + +.glyphicon-shopping-cart:before { + content: "\e116" +} + +.glyphicon-folder-close:before { + content: "\e117" +} + +.glyphicon-folder-open:before { + content: "\e118" +} + +.glyphicon-resize-vertical:before { + content: "\e119" +} + +.glyphicon-resize-horizontal:before { + content: "\e120" +} + +.glyphicon-hdd:before { + content: "\e121" +} + +.glyphicon-bullhorn:before { + content: "\e122" +} + +.glyphicon-bell:before { + content: "\e123" +} + +.glyphicon-certificate:before { + content: "\e124" +} + +.glyphicon-thumbs-up:before { + content: "\e125" +} + +.glyphicon-thumbs-down:before { + content: "\e126" +} + +.glyphicon-hand-right:before { + content: "\e127" +} + +.glyphicon-hand-left:before { + content: "\e128" +} + +.glyphicon-hand-up:before { + content: "\e129" +} + +.glyphicon-hand-down:before { + content: "\e130" +} + +.glyphicon-circle-arrow-right:before { + content: "\e131" +} + +.glyphicon-circle-arrow-left:before { + content: "\e132" +} + +.glyphicon-circle-arrow-up:before { + content: "\e133" +} + +.glyphicon-circle-arrow-down:before { + content: "\e134" +} + +.glyphicon-globe:before { + content: "\e135" +} + +.glyphicon-wrench:before { + content: "\e136" +} + +.glyphicon-tasks:before { + content: "\e137" +} + +.glyphicon-filter:before { + content: "\e138" +} + +.glyphicon-briefcase:before { + content: "\e139" +} + +.glyphicon-fullscreen:before { + content: "\e140" +} + +.glyphicon-dashboard:before { + content: "\e141" +} + +.glyphicon-paperclip:before { + content: "\e142" +} + +.glyphicon-heart-empty:before { + content: "\e143" +} + +.glyphicon-link:before { + content: "\e144" +} + +.glyphicon-phone:before { + content: "\e145" +} + +.glyphicon-pushpin:before { + content: "\e146" +} + +.glyphicon-usd:before { + content: "\e148" +} + +.glyphicon-gbp:before { + content: "\e149" +} + +.glyphicon-sort:before { + content: "\e150" +} + +.glyphicon-sort-by-alphabet:before { + content: "\e151" +} + +.glyphicon-sort-by-alphabet-alt:before { + content: "\e152" +} + +.glyphicon-sort-by-order:before { + content: "\e153" +} + +.glyphicon-sort-by-order-alt:before { + content: "\e154" +} + +.glyphicon-sort-by-attributes:before { + content: "\e155" +} + +.glyphicon-sort-by-attributes-alt:before { + content: "\e156" +} + +.glyphicon-unchecked:before { + content: "\e157" +} + +.glyphicon-expand:before { + content: "\e158" +} + +.glyphicon-collapse-down:before { + content: "\e159" +} + +.glyphicon-collapse-up:before { + content: "\e160" +} + +.glyphicon-log-in:before { + content: "\e161" +} + +.glyphicon-flash:before { + content: "\e162" +} + +.glyphicon-log-out:before { + content: "\e163" +} + +.glyphicon-new-window:before { + content: "\e164" +} + +.glyphicon-record:before { + content: "\e165" +} + +.glyphicon-save:before { + content: "\e166" +} + +.glyphicon-open:before { + content: "\e167" +} + +.glyphicon-saved:before { + content: "\e168" +} + +.glyphicon-import:before { + content: "\e169" +} + +.glyphicon-export:before { + content: "\e170" +} + +.glyphicon-send:before { + content: "\e171" +} + +.glyphicon-floppy-disk:before { + content: "\e172" +} + +.glyphicon-floppy-saved:before { + content: "\e173" +} + +.glyphicon-floppy-remove:before { + content: "\e174" +} + +.glyphicon-floppy-save:before { + content: "\e175" +} + +.glyphicon-floppy-open:before { + content: "\e176" +} + +.glyphicon-credit-card:before { + content: "\e177" +} + +.glyphicon-transfer:before { + content: "\e178" +} + +.glyphicon-cutlery:before { + content: "\e179" +} + +.glyphicon-header:before { + content: "\e180" +} + +.glyphicon-compressed:before { + content: "\e181" +} + +.glyphicon-earphone:before { + content: "\e182" +} + +.glyphicon-phone-alt:before { + content: "\e183" +} + +.glyphicon-tower:before { + content: "\e184" +} + +.glyphicon-stats:before { + content: "\e185" +} + +.glyphicon-sd-video:before { + content: "\e186" +} + +.glyphicon-hd-video:before { + content: "\e187" +} + +.glyphicon-subtitles:before { + content: "\e188" +} + +.glyphicon-sound-stereo:before { + content: "\e189" +} + +.glyphicon-sound-dolby:before { + content: "\e190" +} + +.glyphicon-sound-5-1:before { + content: "\e191" +} + +.glyphicon-sound-6-1:before { + content: "\e192" +} + +.glyphicon-sound-7-1:before { + content: "\e193" +} + +.glyphicon-copyright-mark:before { + content: "\e194" +} + +.glyphicon-registration-mark:before { + content: "\e195" +} + +.glyphicon-cloud-download:before { + content: "\e197" +} + +.glyphicon-cloud-upload:before { + content: "\e198" +} + +.glyphicon-tree-conifer:before { + content: "\e199" +} + +.glyphicon-tree-deciduous:before { + content: "\e200" +} + +.glyphicon-cd:before { + content: "\e201" +} + +.glyphicon-save-file:before { + content: "\e202" +} + +.glyphicon-open-file:before { + content: "\e203" +} + +.glyphicon-level-up:before { + content: "\e204" +} + +.glyphicon-copy:before { + content: "\e205" +} + +.glyphicon-paste:before { + content: "\e206" +} + +.glyphicon-alert:before { + content: "\e209" +} + +.glyphicon-equalizer:before { + content: "\e210" +} + +.glyphicon-king:before { + content: "\e211" +} + +.glyphicon-queen:before { + content: "\e212" +} + +.glyphicon-pawn:before { + content: "\e213" +} + +.glyphicon-bishop:before { + content: "\e214" +} + +.glyphicon-knight:before { + content: "\e215" +} + +.glyphicon-baby-formula:before { + content: "\e216" +} + +.glyphicon-tent:before { + content: "⛺" +} + +.glyphicon-blackboard:before { + content: "\e218" +} + +.glyphicon-bed:before { + content: "\e219" +} + +.glyphicon-apple:before { + content: "\f8ff" +} + +.glyphicon-erase:before { + content: "\e221" +} + +.glyphicon-hourglass:before { + content: "⌛" +} + +.glyphicon-lamp:before { + content: "\e223" +} + +.glyphicon-duplicate:before { + content: "\e224" +} + +.glyphicon-piggy-bank:before { + content: "\e225" +} + +.glyphicon-scissors:before { + content: "\e226" +} + +.glyphicon-bitcoin:before { + content: "\e227" +} + +.glyphicon-btc:before { + content: "\e227" +} + +.glyphicon-xbt:before { + content: "\e227" +} + +.glyphicon-yen:before { + content: "¥" +} + +.glyphicon-jpy:before { + content: "¥" +} + +.glyphicon-ruble:before { + content: "₽" +} + +.glyphicon-rub:before { + content: "₽" +} + +.glyphicon-scale:before { + content: "\e230" +} + +.glyphicon-ice-lolly:before { + content: "\e231" +} + +.glyphicon-ice-lolly-tasted:before { + content: "\e232" +} + +.glyphicon-education:before { + content: "\e233" +} + +.glyphicon-option-horizontal:before { + content: "\e234" +} + +.glyphicon-option-vertical:before { + content: "\e235" +} + +.glyphicon-menu-hamburger:before { + content: "\e236" +} + +.glyphicon-modal-window:before { + content: "\e237" +} + +.glyphicon-oil:before { + content: "\e238" +} + +.glyphicon-grain:before { + content: "\e239" +} + +.glyphicon-sunglasses:before { + content: "\e240" +} + +.glyphicon-text-size:before { + content: "\e241" +} + +.glyphicon-text-color:before { + content: "\e242" +} + +.glyphicon-text-background:before { + content: "\e243" +} + +.glyphicon-object-align-top:before { + content: "\e244" +} + +.glyphicon-object-align-bottom:before { + content: "\e245" +} + +.glyphicon-object-align-horizontal:before { + content: "\e246" +} + +.glyphicon-object-align-left:before { + content: "\e247" +} + +.glyphicon-object-align-vertical:before { + content: "\e248" +} + +.glyphicon-object-align-right:before { + content: "\e249" +} + +.glyphicon-triangle-right:before { + content: "\e250" +} + +.glyphicon-triangle-left:before { + content: "\e251" +} + +.glyphicon-triangle-bottom:before { + content: "\e252" +} + +.glyphicon-triangle-top:before { + content: "\e253" +} + +.glyphicon-console:before { + content: "\e254" +} + +.glyphicon-superscript:before { + content: "\e255" +} + +.glyphicon-subscript:before { + content: "\e256" +} + +.glyphicon-menu-left:before { + content: "\e257" +} + +.glyphicon-menu-right:before { + content: "\e258" +} + +.glyphicon-menu-down:before { + content: "\e259" +} + +.glyphicon-menu-up:before { + content: "\e260" +} + +/*! Core - HTML */ +main .glyphicon { + top: 2px +} + +.glyphicon-error { + color: #96323a; + font-size: 400% +} + +@font-face { + font-family: gcweb; + font-style: normal; + font-weight: 400; + src: url("../fonts/gcweb_0c4a4eb7974d0a7287c93c02965f9b3f.eot"),url("../fonts/gcweb_0c4a4eb7974d0a7287c93c02965f9b3f.eot?#iefix") format("embedded-opentype"),url("../fonts/gcweb_0c4a4eb7974d0a7287c93c02965f9b3f.woff") format("woff"),url("../fonts/gcweb_0c4a4eb7974d0a7287c93c02965f9b3f.ttf") format("truetype"),url("../fonts/gcweb_0c4a4eb7974d0a7287c93c02965f9b3f.svg#gcweb") format("svg") +} + +.cndwrdmrk:after,.cndwrdmrk:before,.icn-sig-en:before,.icn-sig-fr:before { + display: block; + -webkit-font-smoothing: antialiased; + line-height: 1; + text-decoration: none; + text-shadow: 0 0 1px rgba(0,0,0,.3); + -webkit-text-stroke: 1px transparent; + text-transform: none; + -webkit-transform: rotate(0); + transform: rotate(0); + font-family: gcweb; + font-style: normal; + font-variant: normal; + font-weight: 400 +} + +.icn-sig-en,.icn-sig-fr { + color: #fff; + display: inline-block; + font-size: 1.5em; + padding: .7em 0 .5em +} + +.icn-sig-en:before,.icn-sig-fr:before { + position: relative +} + +.icn-sig-fr:before,:root .icn-sig-en:before { + left: -10em +} + +.icn-sig-en:before { + content: "\f102" +} + +.icn-sig-fr:before { + content: "\f103" +} + +.cndwrdmrk { + font-size: 3.5em; + min-width: 100%; + position: relative; + text-decoration: none +} + +.cndwrdmrk:after,.cndwrdmrk:before { + display: inline; + position: relative +} + +.cndwrdmrk:before { + color: #000; + content: "\f100" +} + +.cndwrdmrk:after { + color: red; + content: "\f101"; + left: -1em +} + +@font-face { + font-display: optional; + font-family: "Noto Sans"; + font-style: italic; + font-weight: 400; + src: url("https://fonts.gstatic.com/s/notosans/v25/o-0OIpQlx3QUlC5A4PNr4ARMQ_m87A.woff2") format("woff2"); + unicode-range: U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF +} + +@font-face { + font-display: fallback; + font-family: "Noto Sans"; + font-style: italic; + font-weight: 400; + src: url("https://fonts.gstatic.com/s/notosans/v25/o-0OIpQlx3QUlC5A4PNr4ARCQ_k.woff2") format("woff2"); + unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD +} + +@font-face { + font-display: optional; + font-family: "Noto Sans"; + font-style: italic; + font-weight: 700; + src: url("https://fonts.gstatic.com/s/notosans/v25/o-0TIpQlx3QUlC5A4PNr4Az5ZuyNzW1aPQ.woff2") format("woff2"); + unicode-range: U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF +} + +@font-face { + font-display: optional; + font-family: "Noto Sans"; + font-style: italic; + font-weight: 700; + src: url("https://fonts.gstatic.com/s/notosans/v25/o-0TIpQlx3QUlC5A4PNr4Az5ZuyDzW0.woff2") format("woff2"); + unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD +} + +@font-face { + font-display: optional; + font-family: "Noto Sans"; + font-style: normal; + font-weight: 400; + src: url("https://fonts.gstatic.com/s/notosans/v25/o-0IIpQlx3QUlC5A4PNr6zRAW_0.woff2") format("woff2"); + unicode-range: U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF +} + +@font-face { + font-display: fallback; + font-family: "Noto Sans"; + font-style: normal; + font-weight: 400; + src: url("https://fonts.gstatic.com/s/notosans/v25/o-0IIpQlx3QUlC5A4PNr5TRA.woff2") format("woff2"); + unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD +} + +@font-face { + font-display: optional; + font-family: "Noto Sans"; + font-style: normal; + font-weight: 700; + src: url("https://fonts.gstatic.com/s/notosans/v25/o-0NIpQlx3QUlC5A4PNjXhFVatyB1Wk.woff2") format("woff2"); + unicode-range: U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF +} + +@font-face { + font-display: fallback; + font-family: "Noto Sans"; + font-style: normal; + font-weight: 700; + src: url("https://fonts.gstatic.com/s/notosans/v25/o-0NIpQlx3QUlC5A4PNjXhFVZNyB.woff2") format("woff2"); + unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD +} + +@font-face { + font-display: fallback; + font-family: "Noto Sans Canadian Aboriginal"; + font-style: normal; + font-weight: 400; + src: url("https://fonts.gstatic.com/s/notosanscanadianaboriginal/v28/4C_gLjTuEqPj-8J01CwaGkiZ9os0iGVkezM1mUT-j_Lmlx15whAXAg.woff2") format("woff2"); + unicode-range: U+1400-167F,U+18B0-18FF,U+11AB0-11ABF +} + +@font-face { + font-display: fallback; + font-family: "Noto Sans Canadian Aboriginal"; + font-style: normal; + font-weight: 700; + src: url("https://fonts.gstatic.com/s/notosanscanadianaboriginal/v28/4C_gLjTuEqPj-8J01CwaGkiZ9os0iGVkezM1mUT-j_Lmlx15whAXAg.woff2") format("woff2"); + unicode-range: U+1400-167F,U+18B0-18FF,U+11AB0-11ABF +} + +@font-face { + font-display: optional; + font-family: Lato; + font-style: italic; + font-weight: 400; + src: url("https://fonts.gstatic.com/s/lato/v22/S6u8w4BMUTPHjxsAUi-qJCY.woff2") format("woff2"); + unicode-range: U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF +} + +@font-face { + font-display: fallback; + font-family: Lato; + font-style: italic; + font-weight: 400; + src: url("https://fonts.gstatic.com/s/lato/v22/S6u8w4BMUTPHjxsAXC-q.woff2") format("woff2"); + unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD +} + +@font-face { + font-display: optional; + font-family: Lato; + font-style: italic; + font-weight: 700; + src: url("https://fonts.gstatic.com/s/lato/v22/S6u_w4BMUTPHjxsI5wq_FQft1dw.woff2") format("woff2"); + unicode-range: U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF +} + +@font-face { + font-display: fallback; + font-family: Lato; + font-style: italic; + font-weight: 700; + src: url("https://fonts.gstatic.com/s/lato/v22/S6u_w4BMUTPHjxsI5wq_Gwft.woff2") format("woff2"); + unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD +} + +@font-face { + font-display: optional; + font-family: Lato; + font-style: normal; + font-weight: 400; + src: url("https://fonts.gstatic.com/s/lato/v22/S6uyw4BMUTPHjxAwXjeu.woff2") format("woff2"); + unicode-range: U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF +} + +@font-face { + font-display: fallback; + font-family: Lato; + font-style: normal; + font-weight: 400; + src: url("https://fonts.gstatic.com/s/lato/v22/S6uyw4BMUTPHjx4wXg.woff2") format("woff2"); + unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD +} + +@font-face { + font-display: optional; + font-family: Lato; + font-style: normal; + font-weight: 700; + src: url("https://fonts.gstatic.com/s/lato/v22/S6u9w4BMUTPHh6UVSwaPGR_p.woff2") format("woff2"); + unicode-range: U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF +} + +@font-face { + font-display: fallback; + font-family: Lato; + font-style: normal; + font-weight: 700; + src: url("https://fonts.gstatic.com/s/lato/v22/S6u9w4BMUTPHh6UVSwiPGQ.woff2") format("woff2"); + unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD +} + +* { + -webkit-box-sizing: border-box; + box-sizing: border-box +} + +:after,:before { + -webkit-box-sizing: border-box; + box-sizing: border-box +} + +html { + font-size: 10px; + -webkit-tap-highlight-color: transparent +} + +body { + font-family: "Noto Sans","Noto Sans Canadian Aboriginal",sans-serif; + font-size: 16px; + line-height: 1.4375; + color: #333; + background-color: #fff +} + +button,input,select,textarea { + font-family: inherit; + font-size: inherit; + line-height: inherit +} + +a { + color: #295376; + text-decoration: none +} + +a:focus,a:hover { + color: #0535d2; + text-decoration: underline +} + +a:focus { + outline: 5px auto -webkit-focus-ring-color; + outline-offset: -2px +} + +figure { + margin: 0 +} + +img { + vertical-align: middle +} + +.img-responsive { + display: block; + max-width: 100%; + height: auto +} + +.img-rounded { + border-radius: 6px +} + +.img-thumbnail { + padding: 4px; + line-height: 1.4375; + background-color: #fff; + border: 1px solid #ddd; + border-radius: 4px; + -webkit-transition: all .2s ease-in-out; + transition: all .2s ease-in-out; + display: inline-block; + max-width: 100%; + height: auto +} + +.img-circle { + border-radius: 50% +} + +hr { + margin-top: 23px; + margin-bottom: 23px; + border: 0; + border-top: 1px solid rgb(238.425,238.425,238.425) +} + +.sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0,0,0,0); + border: 0 +} + +.sr-only-focusable:active,.sr-only-focusable:focus { + position: static; + width: auto; + height: auto; + margin: 0; + overflow: visible; + clip: auto +} + +[role=button] { + cursor: pointer +} + +.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6 { + font-family: inherit; + font-weight: 500; + line-height: 1.1; + color: inherit +} + +.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small { + font-weight: 400; + line-height: 1; + color: #6f6f6f +} + +.h1,.h2,.h3,h1,h2,h3 { + margin-top: 23px; + margin-bottom: 11.5px +} + +.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small { + font-size: 65% +} + +.h4,.h5,.h6,h4,h5,h6 { + margin-top: 11.5px; + margin-bottom: 11.5px +} + +.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small { + font-size: 75% +} + +.h1,h1 { + font-size: 2.5625rem +} + +.h2,h2 { + font-size: 2.4375rem +} + +.h3,h3 { + font-size: 1.8125rem +} + +.h4,h4 { + font-size: 1.6875rem +} + +.h5,h5 { + font-size: 1.5rem +} + +.h6,h6 { + font-size: 1.375rem +} + +p { + margin: 0 0 11.5px +} + +.lead { + margin-bottom: 23px; + font-size: 18px; + font-weight: 300; + line-height: 1.4 +} + +@media (min-width: 768px) { + .lead { + font-size:24px + } +} + +.small,small { + font-size: 87% +} + +.mark,mark { + padding: .2em; + background-color: #fcf8e3 +} + +.text-left { + text-align: left +} + +.text-right { + text-align: right +} + +.text-center { + text-align: center +} + +.text-justify { + text-align: justify +} + +.text-nowrap { + white-space: nowrap +} + +.text-lowercase { + text-transform: lowercase +} + +.initialism,.text-uppercase { + text-transform: uppercase +} + +.text-capitalize { + text-transform: capitalize +} + +.text-muted { + color: #6f6f6f +} + +.text-primary { + color: #2572b4 +} + +a.text-primary:focus,a.text-primary:hover { + color: rgb(28.3041474654,87.2073732719,137.6958525346) +} + +.text-success { + color: #3c763d +} + +a.text-success:focus,a.text-success:hover { + color: rgb(42.808988764,84.191011236,43.5224719101) +} + +.text-info { + color: #31708f +} + +a.text-info:focus,a.text-info:hover { + color: rgb(35.984375,82.25,105.015625) +} + +.text-warning { + color: #8a6d3b +} + +a.text-warning:focus,a.text-warning:hover { + color: rgb(102.2741116751,80.7817258883,43.7258883249) +} + +.text-danger { + color: #a94442 +} + +a.text-danger:focus,a.text-danger:hover { + color: rgb(132.3234042553,53.2425531915,51.6765957447) +} + +.bg-primary { + color: #fff +} + +.bg-primary { + background-color: #2572b4 +} + +a.bg-primary:focus,a.bg-primary:hover { + background-color: rgb(28.3041474654,87.2073732719,137.6958525346) +} + +.bg-success { + background-color: #dff0d8 +} + +a.bg-success:focus,a.bg-success:hover { + background-color: rgb(192.7777777778,225.8333333333,179.1666666667) +} + +.bg-info { + background-color: #d9edf7 +} + +a.bg-info:focus,a.bg-info:hover { + background-color: rgb(174.8695652174,217.0434782609,238.1304347826) +} + +.bg-warning { + background-color: #fcf8e3 +} + +a.bg-warning:focus,a.bg-warning:hover { + background-color: rgb(247.064516129,236.4838709677,180.935483871) +} + +.bg-danger { + background-color: #f2dede +} + +a.bg-danger:focus,a.bg-danger:hover { + background-color: rgb(227.5869565217,185.4130434783,185.4130434783) +} + +.page-header { + padding-bottom: 10.5px; + margin: 46px 0 23px; + border-bottom: 1px solid rgb(238.425,238.425,238.425) +} + +ol,ul { + margin-top: 0; + margin-bottom: 11.5px +} + +ol ol,ol ul,ul ol,ul ul { + margin-bottom: 0 +} + +.list-unstyled { + padding-left: 0; + list-style: none +} + +.list-inline { + padding-left: 0; + list-style: none; + margin-left: -5px +} + +.list-inline>li { + display: inline-block; + padding-right: 5px; + padding-left: 5px +} + +dl { + margin-top: 0; + margin-bottom: 23px +} + +dd,dt { + line-height: 1.4375 +} + +dt { + font-weight: 700 +} + +dd { + margin-left: 0 +} + +.dl-horizontal dd:after,.dl-horizontal dd:before { + display: table; + content: " " +} + +.dl-horizontal dd:after { + clear: both +} + +@media (min-width: 768px) { + .dl-horizontal dt { + float:left; + width: 160px; + clear: left; + text-align: right; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap + } + + .dl-horizontal dd { + margin-left: 180px + } +} + +abbr[data-original-title],abbr[title] { + cursor: help +} + +.initialism { + font-size: 90% +} + +blockquote { + padding: 11.5px 23px; + margin: 0 0 23px; + font-size: 20px; + border-left: 5px solid rgb(238.425,238.425,238.425) +} + +blockquote ol:last-child,blockquote p:last-child,blockquote ul:last-child { + margin-bottom: 0 +} + +blockquote .small,blockquote footer,blockquote small { + display: block; + font-size: 80%; + line-height: 1.4375; + color: #6f6f6f +} + +blockquote .small:before,blockquote footer:before,blockquote small:before { + content: "— " +} + +.blockquote-reverse,blockquote.pull-right { + padding-right: 15px; + padding-left: 0; + text-align: right; + border-right: 5px solid rgb(238.425,238.425,238.425); + border-left: 0 +} + +.blockquote-reverse .small:before,.blockquote-reverse footer:before,.blockquote-reverse small:before,blockquote.pull-right .small:before,blockquote.pull-right footer:before,blockquote.pull-right small:before { + content: "" +} + +.blockquote-reverse .small:after,.blockquote-reverse footer:after,.blockquote-reverse small:after,blockquote.pull-right .small:after,blockquote.pull-right footer:after,blockquote.pull-right small:after { + content: " —" +} + +address { + margin-bottom: 23px; + font-style: normal; + line-height: 1.4375 +} + +/*! Placeholders */ +.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6 { + font-weight: 700 +} + +.h1,.h2,h1,h2 { + margin-top: 38px +} + +.h3,h3 { + margin-top: 32px +} + +.h4,h4 { + margin-top: 26px +} + +.h5,h5 { + margin-top: 23px +} + +.h6,h6 { + margin-top: 21px +} + +.list-responsive>li { + float: left; + padding-right: 5px; + width: 50% +} + +.list-responsive>li:nth-child(2n+2) { + clear: right +} + +.list-responsive:after,.list-responsive:before { + content: " "; + display: table +} + +.list-responsive:after { + clear: both +} + +ul[class*=list-col] { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -ms-flex-wrap: wrap; + flex-wrap: wrap; + list-style: none; + padding-left: 0; + padding-right: 0 +} + +ul[class*=list-col]>li { + -ms-flex-preferred-size: 100%; + flex-basis: 100%; + -webkit-box-flex: 0; + -ms-flex-positive: 0; + flex-grow: 0; + -ms-flex-negative: 0; + flex-shrink: 0 +} + +ul.list-col-xs-1>li { + -ms-flex-preferred-size: 100%; + flex-basis: 100% +} + +ul.list-col-xs-2>li { + -ms-flex-preferred-size: 50%; + flex-basis: 50% +} + +ul.list-col-xs-3>li { + -ms-flex-preferred-size: 33.33%; + flex-basis: 33.33% +} + +ul.list-col-xs-4>li { + -ms-flex-preferred-size: 25%; + flex-basis: 25% +} + +.lst-lwr-alph,div.lst-lwr-alph>ol { + list-style-type: lower-alpha +} + +.lst-upr-alph,div.lst-upr-alph>ol { + list-style-type: upper-alpha +} + +.lst-lwr-rmn,div.lst-lwr-rmn>ol { + list-style-type: lower-roman +} + +.lst-upr-rmn,div.lst-upr-rmn>ol { + list-style-type: upper-roman +} + +.lst-num { + list-style-type: decimal +} + +.lst-none,div.lst-none>ul { + list-style-type: none +} + +div.lst-spcd>ol>li,div.lst-spcd>ul>li,ol.lst-spcd>li,ul.lst-spcd>li { + margin-bottom: 10px +} + +div.lst-spcd>ol ol,div.lst-spcd>ol ul,div.lst-spcd>ul ol,div.lst-spcd>ul ul,ol.lst-spcd ol,ol.lst-spcd ul,ul.lst-spcd ol,ul.lst-spcd ul { + margin-top: 10px +} + +div.lst-spcd-2>ol>li,div.lst-spcd-2>ul>li,ol.lst-spcd-2>li,ul.lst-spcd-2>li { + margin-bottom: 20px +} + +div.lst-spcd-2>ol ol,div.lst-spcd-2>ol ul,div.lst-spcd-2>ul ol,div.lst-spcd-2>ul ul,ol.lst-spcd-2 ol,ol.lst-spcd-2 ul,ul.lst-spcd-2 ol,ul.lst-spcd-2 ul { + margin-top: 20px +} + +div.list-unstyled>ul { + list-style: none; + padding-left: 0 +} + +div.list-inline>ul { + list-style: none; + margin-left: -5px; + padding-left: 0 +} + +div.list-inline>ul>li { + display: inline-block; + padding-left: 5px; + padding-right: 5px +} + +div.list-advanced.disc>ul,ul.disc { + list-style-type: disc +} + +div.list-advanced.circle>ul,ul.circle { + list-style-type: circle +} + +div.list-advanced.square>ul,ul.square { + list-style-type: square +} + +ul.compact li { + font-size: 17px; + line-height: 1.5em +} + +/*! Placeholders */ +.nav a,a.btn { + text-decoration: none +} + +a { + text-decoration: underline +} + +a:visited { + color: #7834bc +} + +a:not([href]) { + color: inherit; + text-decoration: none +} + +a:not([href]):focus,a:not([href]):hover { + color: inherit; + outline: 0; + text-decoration: none +} + +@media (min-width: 768px) { + .dl-horizontal.brdr-0 dd,.dl-horizontal.brdr-0 dt { + border:0!important + } + + .dl-horizontal dt { + border-top: 1px solid #ccc; + -ms-hyphens: auto; + hyphens: auto; + padding: 10px 10px 10px 0; + text-align: left; + white-space: normal; + width: 20ch; + word-break: break-word + } + + .dl-horizontal dd { + border-top: 1px solid #ccc; + margin-bottom: 3px; + margin-left: 20ch; + padding: 10px 10px 10px 0 + } + + .dl-horizontal dt+dd { + padding-bottom: 0 + } + + .dl-horizontal.dt-max { + display: grid; + grid-template-columns: minmax(-webkit-min-content,-webkit-min-content) auto; + grid-template-columns: minmax(min-content,min-content) auto + } + + .dl-horizontal.dt-max dt { + -ms-hyphens: none; + hyphens: none; + min-width: 20ch; + white-space: normal; + width: auto; + word-break: initial + } + + .dl-horizontal.dt-max dd { + margin-left: 0 + } +} + +.dl-inline dd,.dl-inline dt { + display: inline +} + +.dl-inline dd+dt { + margin-left: 15px +} + +abbr[title] { + border-bottom: 1px dotted; + text-decoration: none +} + +@supports (text-decoration: underline dotted) { + abbr[title] { + border-bottom:0; + text-decoration: underline dotted; + -webkit-text-decoration-skip-ink: none; + text-decoration-skip-ink: none + } +} + +code { + white-space: normal +} + +dt { + margin-bottom: 3px +} + +dd { + margin-bottom: 15px +} + +blockquote { + font-size: 16px +} + +[dir=rtl] .list-unstyled { + padding-right: 0 +} + +mark { + background-color: #ff0; + color: #000; + font-weight: 700 +} + +[hidden] { + display: none!important +} + +q:after,q:before { + content: "" +} + +summary { + cursor: pointer +} + +summary:focus,summary:hover { + background: #ddd; + color: #000 +} + +summary>:first-child { + display: inline +} + +details { + padding-left: 1.1em; + padding-right: 1.1em +} + +details>summary { + margin-left: -1.1em; + margin-right: -1.1em +} + +details[open] { + padding-bottom: 1em +} + +#wb-sec,main h1,main h2,main h3,main h4,main h5,main h6,main p,main table caption p { + word-break: break-word +} + +html { + font-size: unset; + -webkit-font-smoothing: antialiased; + text-rendering: optimizeLegibility +} + +body { + font-size: unset +} + +main { + font-size: 1.25rem; + line-height: 1.6; + position: relative +} + +main table caption { + text-align: left +} + +main table p { + word-break: initial +} + +.cnt-wdth-lmtd main h2,main .cnt-wdth-lmtd h2 { + max-width: 33ch +} + +.cnt-wdth-lmtd main h3,main .cnt-wdth-lmtd h3 { + max-width: 50ch +} + +.cnt-wdth-lmtd main h4,main .cnt-wdth-lmtd h4 { + max-width: 59ch +} + +.cnt-wdth-lmtd main li,main .cnt-wdth-lmtd li { + max-width: 63ch +} + +.cnt-wdth-lmtd main dd,.cnt-wdth-lmtd main dt,.cnt-wdth-lmtd main h5,.cnt-wdth-lmtd main h6,.cnt-wdth-lmtd main p,main .cnt-wdth-lmtd dd,main .cnt-wdth-lmtd dt,main .cnt-wdth-lmtd h5,main .cnt-wdth-lmtd h6,main .cnt-wdth-lmtd p { + max-width: 65ch +} + +a { + color: #284162 +} + +a img.thumbnail:hover { + -webkit-box-shadow: 1px 1px 5px #999; + box-shadow: 1px 1px 5px #999 +} + +a.no-undrln { + text-decoration: none +} + +a.figcaption { + text-decoration: none +} + +a.figcaption:not([class*=text-]) * :not(figcaption) { + color: #333 +} + +a.figcaption figure>:not(blockquote,img,table,div) { + margin-left: .8ch; + margin-right: .8ch +} + +a.figcaption figcaption { + text-decoration: underline +} + +details[open]>summary.btn-default { + border: 1px outset rgb(220.2692307692,221.9230769231,225.2307692308); + border-bottom-left-radius: 4px; + border-bottom-right-radius: 4px +} + +code,kbd,pre,samp { + font-family: Menlo,Monaco,Consolas,"Courier New",monospace +} + +code { + padding: 2px 4px; + font-size: 90%; + color: #c7254e; + background-color: #f9f2f4; + border-radius: 4px +} + +kbd { + padding: 2px 4px; + font-size: 90%; + color: #fff; + background-color: #333; + border-radius: 3px; + -webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,.25); + box-shadow: inset 0 -1px 0 rgba(0,0,0,.25) +} + +kbd kbd { + padding: 0; + font-size: 100%; + font-weight: 700; + -webkit-box-shadow: none; + box-shadow: none +} + +pre { + display: block; + padding: 11px; + margin: 0 0 11.5px; + font-size: 15px; + line-height: 1.4375; + color: #333; + word-break: break-all; + word-wrap: break-word; + background-color: #f5f5f5; + border: 1px solid #ccc; + border-radius: 4px +} + +pre code { + padding: 0; + font-size: inherit; + color: inherit; + white-space: pre-wrap; + background-color: transparent; + border-radius: 0 +} + +.pre-scrollable { + max-height: 340px; + overflow-y: scroll +} + +.container { + padding-right: 15px; + padding-left: 15px; + margin-right: auto; + margin-left: auto +} + +.container:after,.container:before { + display: table; + content: " " +} + +.container:after { + clear: both +} + +@media (min-width: 768px) { + .container { + width:750px + } +} + +@media (min-width: 992px) { + .container { + width:970px + } +} + +@media (min-width: 1200px) { + .container { + width:1170px + } +} + +.container-fluid { + padding-right: 15px; + padding-left: 15px; + margin-right: auto; + margin-left: auto +} + +.container-fluid:after,.container-fluid:before { + display: table; + content: " " +} + +.container-fluid:after { + clear: both +} + +.row { + margin-right: -15px; + margin-left: -15px +} + +.row:after,.row:before { + display: table; + content: " " +} + +.row:after { + clear: both +} + +.no-js #gc-pft .row-no-gutters,.row-no-gutters,.wb-disable #gc-pft .row-no-gutters { + margin-right: 0; + margin-left: 0 +} + +.no-js #gc-pft .row-no-gutters [class*=col-],.row-no-gutters [class*=col-],.wb-disable #gc-pft .row-no-gutters [class*=col-] { + padding-right: 0; + padding-left: 0 +} + +.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.no-js #gc-pft .nojs-col-sm-12,.wb-disable #gc-pft .nojs-col-sm-12 { + position: relative; + min-height: 1px; + padding-right: 15px; + padding-left: 15px +} + +.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9 { + float: left +} + +.col-xs-1 { + width: 8.3333333333% +} + +.col-xs-2 { + width: 16.6666666667% +} + +.col-xs-3 { + width: 25% +} + +.col-xs-4 { + width: 33.3333333333% +} + +.col-xs-5 { + width: 41.6666666667% +} + +.col-xs-6 { + width: 50% +} + +.col-xs-7 { + width: 58.3333333333% +} + +.col-xs-8 { + width: 66.6666666667% +} + +.col-xs-9 { + width: 75% +} + +.col-xs-10 { + width: 83.3333333333% +} + +.col-xs-11 { + width: 91.6666666667% +} + +.col-xs-12 { + width: 100% +} + +.col-xs-pull-0 { + right: auto +} + +.col-xs-pull-1 { + right: 8.3333333333% +} + +.col-xs-pull-2 { + right: 16.6666666667% +} + +.col-xs-pull-3 { + right: 25% +} + +.col-xs-pull-4 { + right: 33.3333333333% +} + +.col-xs-pull-5 { + right: 41.6666666667% +} + +.col-xs-pull-6 { + right: 50% +} + +.col-xs-pull-7 { + right: 58.3333333333% +} + +.col-xs-pull-8 { + right: 66.6666666667% +} + +.col-xs-pull-9 { + right: 75% +} + +.col-xs-pull-10 { + right: 83.3333333333% +} + +.col-xs-pull-11 { + right: 91.6666666667% +} + +.col-xs-pull-12 { + right: 100% +} + +.col-xs-push-0 { + left: auto +} + +.col-xs-push-1 { + left: 8.3333333333% +} + +.col-xs-push-2 { + left: 16.6666666667% +} + +.col-xs-push-3 { + left: 25% +} + +.col-xs-push-4 { + left: 33.3333333333% +} + +.col-xs-push-5 { + left: 41.6666666667% +} + +.col-xs-push-6 { + left: 50% +} + +.col-xs-push-7 { + left: 58.3333333333% +} + +.col-xs-push-8 { + left: 66.6666666667% +} + +.col-xs-push-9 { + left: 75% +} + +.col-xs-push-10 { + left: 83.3333333333% +} + +.col-xs-push-11 { + left: 91.6666666667% +} + +.col-xs-push-12 { + left: 100% +} + +.col-xs-offset-0 { + margin-left: 0 +} + +.col-xs-offset-1 { + margin-left: 8.3333333333% +} + +.col-xs-offset-2 { + margin-left: 16.6666666667% +} + +.col-xs-offset-3 { + margin-left: 25% +} + +.col-xs-offset-4 { + margin-left: 33.3333333333% +} + +.col-xs-offset-5 { + margin-left: 41.6666666667% +} + +.col-xs-offset-6 { + margin-left: 50% +} + +.col-xs-offset-7 { + margin-left: 58.3333333333% +} + +.col-xs-offset-8 { + margin-left: 66.6666666667% +} + +.col-xs-offset-9 { + margin-left: 75% +} + +.col-xs-offset-10 { + margin-left: 83.3333333333% +} + +.col-xs-offset-11 { + margin-left: 91.6666666667% +} + +.col-xs-offset-12 { + margin-left: 100% +} + +@media (min-width: 768px) { + .col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.no-js #gc-pft .nojs-col-sm-12,.wb-disable #gc-pft .nojs-col-sm-12 { + float:left + } + + .col-sm-1 { + width: 8.3333333333% + } + + .col-sm-2 { + width: 16.6666666667% + } + + .col-sm-3 { + width: 25% + } + + .col-sm-4 { + width: 33.3333333333% + } + + .col-sm-5 { + width: 41.6666666667% + } + + .col-sm-6 { + width: 50% + } + + .col-sm-7 { + width: 58.3333333333% + } + + .col-sm-8 { + width: 66.6666666667% + } + + .col-sm-9 { + width: 75% + } + + .col-sm-10 { + width: 83.3333333333% + } + + .col-sm-11 { + width: 91.6666666667% + } + + .col-sm-12,.no-js #gc-pft .nojs-col-sm-12,.wb-disable #gc-pft .nojs-col-sm-12 { + width: 100% + } + + .col-sm-pull-0 { + right: auto + } + + .col-sm-pull-1 { + right: 8.3333333333% + } + + .col-sm-pull-2 { + right: 16.6666666667% + } + + .col-sm-pull-3 { + right: 25% + } + + .col-sm-pull-4 { + right: 33.3333333333% + } + + .col-sm-pull-5 { + right: 41.6666666667% + } + + .col-sm-pull-6 { + right: 50% + } + + .col-sm-pull-7 { + right: 58.3333333333% + } + + .col-sm-pull-8 { + right: 66.6666666667% + } + + .col-sm-pull-9 { + right: 75% + } + + .col-sm-pull-10 { + right: 83.3333333333% + } + + .col-sm-pull-11 { + right: 91.6666666667% + } + + .col-sm-pull-12 { + right: 100% + } + + .col-sm-push-0 { + left: auto + } + + .col-sm-push-1 { + left: 8.3333333333% + } + + .col-sm-push-2 { + left: 16.6666666667% + } + + .col-sm-push-3 { + left: 25% + } + + .col-sm-push-4 { + left: 33.3333333333% + } + + .col-sm-push-5 { + left: 41.6666666667% + } + + .col-sm-push-6 { + left: 50% + } + + .col-sm-push-7 { + left: 58.3333333333% + } + + .col-sm-push-8 { + left: 66.6666666667% + } + + .col-sm-push-9 { + left: 75% + } + + .col-sm-push-10 { + left: 83.3333333333% + } + + .col-sm-push-11 { + left: 91.6666666667% + } + + .col-sm-push-12 { + left: 100% + } + + .col-sm-offset-0 { + margin-left: 0 + } + + .col-sm-offset-1 { + margin-left: 8.3333333333% + } + + .col-sm-offset-2 { + margin-left: 16.6666666667% + } + + .col-sm-offset-3 { + margin-left: 25% + } + + .col-sm-offset-4 { + margin-left: 33.3333333333% + } + + .col-sm-offset-5 { + margin-left: 41.6666666667% + } + + .col-sm-offset-6 { + margin-left: 50% + } + + .col-sm-offset-7 { + margin-left: 58.3333333333% + } + + .col-sm-offset-8 { + margin-left: 66.6666666667% + } + + .col-sm-offset-9 { + margin-left: 75% + } + + .col-sm-offset-10 { + margin-left: 83.3333333333% + } + + .col-sm-offset-11 { + margin-left: 91.6666666667% + } + + .col-sm-offset-12 { + margin-left: 100% + } +} + +@media (min-width: 992px) { + .col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9 { + float:left + } + + .col-md-1 { + width: 8.3333333333% + } + + .col-md-2 { + width: 16.6666666667% + } + + .col-md-3 { + width: 25% + } + + .col-md-4 { + width: 33.3333333333% + } + + .col-md-5 { + width: 41.6666666667% + } + + .col-md-6 { + width: 50% + } + + .col-md-7 { + width: 58.3333333333% + } + + .col-md-8 { + width: 66.6666666667% + } + + .col-md-9 { + width: 75% + } + + .col-md-10 { + width: 83.3333333333% + } + + .col-md-11 { + width: 91.6666666667% + } + + .col-md-12 { + width: 100% + } + + .col-md-pull-0 { + right: auto + } + + .col-md-pull-1 { + right: 8.3333333333% + } + + .col-md-pull-2 { + right: 16.6666666667% + } + + .col-md-pull-3 { + right: 25% + } + + .col-md-pull-4 { + right: 33.3333333333% + } + + .col-md-pull-5 { + right: 41.6666666667% + } + + .col-md-pull-6 { + right: 50% + } + + .col-md-pull-7 { + right: 58.3333333333% + } + + .col-md-pull-8 { + right: 66.6666666667% + } + + .col-md-pull-9 { + right: 75% + } + + .col-md-pull-10 { + right: 83.3333333333% + } + + .col-md-pull-11 { + right: 91.6666666667% + } + + .col-md-pull-12 { + right: 100% + } + + .col-md-push-0 { + left: auto + } + + .col-md-push-1 { + left: 8.3333333333% + } + + .col-md-push-2 { + left: 16.6666666667% + } + + .col-md-push-3 { + left: 25% + } + + .col-md-push-4 { + left: 33.3333333333% + } + + .col-md-push-5 { + left: 41.6666666667% + } + + .col-md-push-6 { + left: 50% + } + + .col-md-push-7 { + left: 58.3333333333% + } + + .col-md-push-8 { + left: 66.6666666667% + } + + .col-md-push-9 { + left: 75% + } + + .col-md-push-10 { + left: 83.3333333333% + } + + .col-md-push-11 { + left: 91.6666666667% + } + + .col-md-push-12 { + left: 100% + } + + .col-md-offset-0 { + margin-left: 0 + } + + .col-md-offset-1 { + margin-left: 8.3333333333% + } + + .col-md-offset-2 { + margin-left: 16.6666666667% + } + + .col-md-offset-3 { + margin-left: 25% + } + + .col-md-offset-4 { + margin-left: 33.3333333333% + } + + .col-md-offset-5 { + margin-left: 41.6666666667% + } + + .col-md-offset-6 { + margin-left: 50% + } + + .col-md-offset-7 { + margin-left: 58.3333333333% + } + + .col-md-offset-8 { + margin-left: 66.6666666667% + } + + .col-md-offset-9 { + margin-left: 75% + } + + .col-md-offset-10 { + margin-left: 83.3333333333% + } + + .col-md-offset-11 { + margin-left: 91.6666666667% + } + + .col-md-offset-12 { + margin-left: 100% + } +} + +@media (min-width: 1200px) { + .col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9 { + float:left + } + + .col-lg-1 { + width: 8.3333333333% + } + + .col-lg-2 { + width: 16.6666666667% + } + + .col-lg-3 { + width: 25% + } + + .col-lg-4 { + width: 33.3333333333% + } + + .col-lg-5 { + width: 41.6666666667% + } + + .col-lg-6 { + width: 50% + } + + .col-lg-7 { + width: 58.3333333333% + } + + .col-lg-8 { + width: 66.6666666667% + } + + .col-lg-9 { + width: 75% + } + + .col-lg-10 { + width: 83.3333333333% + } + + .col-lg-11 { + width: 91.6666666667% + } + + .col-lg-12 { + width: 100% + } + + .col-lg-pull-0 { + right: auto + } + + .col-lg-pull-1 { + right: 8.3333333333% + } + + .col-lg-pull-2 { + right: 16.6666666667% + } + + .col-lg-pull-3 { + right: 25% + } + + .col-lg-pull-4 { + right: 33.3333333333% + } + + .col-lg-pull-5 { + right: 41.6666666667% + } + + .col-lg-pull-6 { + right: 50% + } + + .col-lg-pull-7 { + right: 58.3333333333% + } + + .col-lg-pull-8 { + right: 66.6666666667% + } + + .col-lg-pull-9 { + right: 75% + } + + .col-lg-pull-10 { + right: 83.3333333333% + } + + .col-lg-pull-11 { + right: 91.6666666667% + } + + .col-lg-pull-12 { + right: 100% + } + + .col-lg-push-0 { + left: auto + } + + .col-lg-push-1 { + left: 8.3333333333% + } + + .col-lg-push-2 { + left: 16.6666666667% + } + + .col-lg-push-3 { + left: 25% + } + + .col-lg-push-4 { + left: 33.3333333333% + } + + .col-lg-push-5 { + left: 41.6666666667% + } + + .col-lg-push-6 { + left: 50% + } + + .col-lg-push-7 { + left: 58.3333333333% + } + + .col-lg-push-8 { + left: 66.6666666667% + } + + .col-lg-push-9 { + left: 75% + } + + .col-lg-push-10 { + left: 83.3333333333% + } + + .col-lg-push-11 { + left: 91.6666666667% + } + + .col-lg-push-12 { + left: 100% + } + + .col-lg-offset-0 { + margin-left: 0 + } + + .col-lg-offset-1 { + margin-left: 8.3333333333% + } + + .col-lg-offset-2 { + margin-left: 16.6666666667% + } + + .col-lg-offset-3 { + margin-left: 25% + } + + .col-lg-offset-4 { + margin-left: 33.3333333333% + } + + .col-lg-offset-5 { + margin-left: 41.6666666667% + } + + .col-lg-offset-6 { + margin-left: 50% + } + + .col-lg-offset-7 { + margin-left: 58.3333333333% + } + + .col-lg-offset-8 { + margin-left: 66.6666666667% + } + + .col-lg-offset-9 { + margin-left: 75% + } + + .col-lg-offset-10 { + margin-left: 83.3333333333% + } + + .col-lg-offset-11 { + margin-left: 91.6666666667% + } + + .col-lg-offset-12 { + margin-left: 100% + } +} + +table { + background-color: transparent +} + +table col[class*=col-] { + position: static; + display: table-column; + float: none +} + +table td[class*=col-],table th[class*=col-] { + position: static; + display: table-cell; + float: none +} + +caption { + padding-top: 8px; + padding-bottom: 8px; + color: #6f6f6f; + text-align: left +} + +th { + text-align: left +} + +.table { + width: 100%; + max-width: 100%; + margin-bottom: 23px +} + +.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td,.table>thead>tr>th { + padding: 8px; + line-height: 1.4375; + vertical-align: top; + border-top: 1px solid #ddd +} + +.table>thead>tr>th { + vertical-align: bottom; + border-bottom: 2px solid #ddd +} + +.table>caption+thead>tr:first-child>td,.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>td,.table>thead:first-child>tr:first-child>th { + border-top: 0 +} + +.table>tbody+tbody { + border-top: 2px solid #ddd +} + +.table .table { + background-color: #fff +} + +.table-condensed>tbody>tr>td,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>td,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>thead>tr>th { + padding: 5px +} + +.table-bordered { + border: 1px solid #ddd +} + +.table-bordered>tbody>tr>td,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>td,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>thead>tr>th { + border: 1px solid #ddd +} + +.table-bordered>thead>tr>td,.table-bordered>thead>tr>th { + border-bottom-width: 2px +} + +.table-striped>tbody>tr:nth-of-type(odd) { + background-color: #f5f5f5 +} + +.table-hover>tbody>tr:hover { + background-color: #f0f0f0 +} + +.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>thead>tr>td.active,.table>thead>tr>th.active { + background-color: #f0f0f0 +} + +.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover { + background-color: rgb(227.25,227.25,227.25) +} + +.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>thead>tr>td.success,.table>thead>tr>th.success { + background-color: #dff0d8 +} + +.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover { + background-color: rgb(207.8888888889,232.9166666667,197.5833333333) +} + +.table>tbody>tr.info>td,.table>tbody>tr.info>th,.table>tbody>tr>td.info,.table>tbody>tr>th.info,.table>tfoot>tr.info>td,.table>tfoot>tr.info>th,.table>tfoot>tr>td.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>thead>tr.info>th,.table>thead>tr>td.info,.table>thead>tr>th.info { + background-color: #d9edf7 +} + +.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover { + background-color: rgb(195.9347826087,227.0217391304,242.5652173913) +} + +.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>thead>tr>td.warning,.table>thead>tr>th.warning { + background-color: #fcf8e3 +} + +.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover { + background-color: rgb(249.5322580645,242.2419354839,203.9677419355) +} + +.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>thead>tr>td.danger,.table>thead>tr>th.danger { + background-color: #f2dede +} + +.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover { + background-color: rgb(234.7934782609,203.7065217391,203.7065217391) +} + +.table-responsive { + min-height: .01%; + overflow-x: auto +} + +@media screen and (max-width: 767px) { + .table-responsive { + width:100%; + margin-bottom: 17.25px; + overflow-y: hidden; + -ms-overflow-style: -ms-autohiding-scrollbar; + border: 1px solid #ddd + } + + .table-responsive>.table { + margin-bottom: 0 + } + + .table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th { + white-space: nowrap + } + + .table-responsive>.table-bordered { + border: 0 + } + + .table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>thead>tr>th:first-child { + border-left: 0 + } + + .table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>thead>tr>th:last-child { + border-right: 0 + } + + .table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>th { + border-bottom: 0 + } +} + +caption { + color: #333; + text-align: center; + font-size: 1.1em; + font-weight: 700 +} + +@media screen and (max-width: 767px) { + .table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th { + white-space:initial + } +} + +fieldset { + min-width: 0; + padding: 0; + margin: 0; + border: 0 +} + +legend { + display: block; + width: 100%; + padding: 0; + margin-bottom: 23px; + font-size: 24px; + line-height: inherit; + color: #333; + border: 0; + border-bottom: 1px solid #e5e5e5 +} + +label { + display: inline-block; + max-width: 100%; + margin-bottom: 5px; + font-weight: 700 +} + +input[type=search] { + -webkit-box-sizing: border-box; + box-sizing: border-box; + -webkit-appearance: none; + -moz-appearance: none; + appearance: none +} + +input[type=checkbox],input[type=radio] { + margin: 4px 0 0; + line-height: normal +} + +fieldset[disabled] input[type=checkbox],fieldset[disabled] input[type=radio],input[type=checkbox].disabled,input[type=checkbox][disabled],input[type=radio].disabled,input[type=radio][disabled] { + cursor: not-allowed +} + +input[type=file] { + display: block +} + +input[type=range] { + display: block; + width: 100% +} + +select[multiple],select[size] { + height: auto +} + +input[type=checkbox]:focus,input[type=file]:focus,input[type=radio]:focus { + outline: 5px auto -webkit-focus-ring-color; + outline-offset: -2px +} + +output { + display: block; + padding-top: 11px; + font-size: 16px; + line-height: 1.4375; + color: rgb(85.425,85.425,85.425) +} + +.form-control { + display: block; + width: 100%; + height: 37px; + padding: 10px 14px; + font-size: 16px; + line-height: 1.4375; + color: rgb(85.425,85.425,85.425); + background-color: #fff; + background-image: none; + border: 1px solid #ccc; + border-radius: 4px; + -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075); + box-shadow: inset 0 1px 1px rgba(0,0,0,.075); + -webkit-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s; + -webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s; + transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s; + transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s; + transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s,-webkit-box-shadow ease-in-out .15s +} + +.form-control:focus { + border-color: #66afe9; + outline: 0; + -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6); + box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6) +} + +.form-control::-moz-placeholder { + color: #5c5c5c!important; + opacity: 1 +} + +.form-control:-ms-input-placeholder { + color: #5c5c5c!important +} + +.form-control::-webkit-input-placeholder { + color: #5c5c5c!important +} + +.form-control::-ms-expand { + background-color: transparent; + border: 0 +} + +.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control { + background-color: rgb(238.425,238.425,238.425); + opacity: 1 +} + +.form-control[disabled],fieldset[disabled] .form-control { + cursor: not-allowed +} + +textarea.form-control { + height: auto +} + +@media screen and (-webkit-min-device-pixel-ratio: 0) { + input[type=date].form-control,input[type=datetime-local].form-control,input[type=month].form-control,input[type=time].form-control { + line-height:37px + } + + .input-group-sm input[type=date],.input-group-sm input[type=datetime-local],.input-group-sm input[type=month],.input-group-sm input[type=time],.input-group-sm>.input-group-btn>input[type=date].btn,.input-group-sm>.input-group-btn>input[type=datetime-local].btn,.input-group-sm>.input-group-btn>input[type=month].btn,.input-group-sm>.input-group-btn>input[type=time].btn,input[type=date].input-sm,input[type=datetime-local].input-sm,input[type=month].input-sm,input[type=time].input-sm { + line-height: 33px + } + + .input-group-lg input[type=date],.input-group-lg input[type=datetime-local],.input-group-lg input[type=month],.input-group-lg input[type=time],.input-group-lg>.input-group-btn>input[type=date].btn,.input-group-lg>.input-group-btn>input[type=datetime-local].btn,.input-group-lg>.input-group-btn>input[type=month].btn,.input-group-lg>.input-group-btn>input[type=time].btn,input[type=date].input-lg,input[type=datetime-local].input-lg,input[type=month].input-lg,input[type=time].input-lg { + line-height: 46px + } +} + +.form-group { + margin-bottom: 15px +} + +.checkbox,.radio { + position: relative; + display: block; + margin-top: 10px; + margin-bottom: 10px +} + +.checkbox.disabled label,.radio.disabled label,fieldset[disabled] .checkbox label,fieldset[disabled] .radio label { + cursor: not-allowed +} + +.checkbox label,.radio label { + min-height: 23px; + padding-left: 20px; + margin-bottom: 0; + font-weight: 400; + cursor: pointer +} + +.checkbox input[type=checkbox],.checkbox-inline input[type=checkbox],.radio input[type=radio],.radio-inline input[type=radio] { + position: absolute; + margin-left: -20px +} + +.checkbox+.checkbox,.radio+.radio { + margin-top: -5px +} + +.checkbox-inline,.radio-inline { + position: relative; + display: inline-block; + padding-left: 20px; + margin-bottom: 0; + font-weight: 400; + vertical-align: middle; + cursor: pointer +} + +.checkbox-inline.disabled,.radio-inline.disabled,fieldset[disabled] .checkbox-inline,fieldset[disabled] .radio-inline { + cursor: not-allowed +} + +.checkbox-inline+.checkbox-inline,.radio-inline+.radio-inline { + margin-top: 0; + margin-left: 10px +} + +.form-control-static { + min-height: 39px; + padding-top: 11px; + padding-bottom: 11px; + margin-bottom: 0 +} + +.form-control-static.input-lg,.form-control-static.input-sm,.input-group-lg>.form-control-static.form-control,.input-group-lg>.form-control-static.input-group-addon,.input-group-lg>.input-group-btn>.form-control-static.btn,.input-group-sm>.form-control-static.form-control,.input-group-sm>.form-control-static.input-group-addon,.input-group-sm>.input-group-btn>.form-control-static.btn { + padding-right: 0; + padding-left: 0 +} + +.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn,.input-sm { + height: 33px; + padding: 5px 10px; + font-size: 14px; + line-height: 1.5; + border-radius: 3px +} + +.input-group-sm>.input-group-btn>select.btn,.input-group-sm>select.form-control,.input-group-sm>select.input-group-addon,select.input-sm { + height: 33px; + line-height: 33px +} + +.input-group-sm>.input-group-btn>select[multiple].btn,.input-group-sm>.input-group-btn>textarea.btn,.input-group-sm>select[multiple].form-control,.input-group-sm>select[multiple].input-group-addon,.input-group-sm>textarea.form-control,.input-group-sm>textarea.input-group-addon,select[multiple].input-sm,textarea.input-sm { + height: auto +} + +.form-group-sm .form-control { + height: 33px; + padding: 5px 10px; + font-size: 14px; + line-height: 1.5; + border-radius: 3px +} + +.form-group-sm select.form-control { + height: 33px; + line-height: 33px +} + +.form-group-sm select[multiple].form-control,.form-group-sm textarea.form-control { + height: auto +} + +.form-group-sm .form-control-static { + height: 33px; + min-height: 37px; + padding: 6px 10px; + font-size: 14px; + line-height: 1.5 +} + +.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn,.input-lg { + height: 46px; + padding: 10px 16px; + font-size: 18px; + line-height: 1.3333333; + border-radius: 6px +} + +.input-group-lg>.input-group-btn>select.btn,.input-group-lg>select.form-control,.input-group-lg>select.input-group-addon,select.input-lg { + height: 46px; + line-height: 46px +} + +.input-group-lg>.input-group-btn>select[multiple].btn,.input-group-lg>.input-group-btn>textarea.btn,.input-group-lg>select[multiple].form-control,.input-group-lg>select[multiple].input-group-addon,.input-group-lg>textarea.form-control,.input-group-lg>textarea.input-group-addon,select[multiple].input-lg,textarea.input-lg { + height: auto +} + +.form-group-lg .form-control { + height: 46px; + padding: 10px 16px; + font-size: 18px; + line-height: 1.3333333; + border-radius: 6px +} + +.form-group-lg select.form-control { + height: 46px; + line-height: 46px +} + +.form-group-lg select[multiple].form-control,.form-group-lg textarea.form-control { + height: auto +} + +.form-group-lg .form-control-static { + height: 46px; + min-height: 41px; + padding: 11px 16px; + font-size: 18px; + line-height: 1.3333333 +} + +.has-feedback { + position: relative +} + +.has-feedback .form-control { + padding-right: 46.25px +} + +.form-control-feedback { + position: absolute; + top: 0; + right: 0; + z-index: 2; + display: block; + width: 37px; + height: 37px; + line-height: 37px; + text-align: center; + pointer-events: none +} + +.form-group-lg .form-control+.form-control-feedback,.input-group-lg+.form-control-feedback,.input-group-lg>.form-control+.form-control-feedback,.input-group-lg>.input-group-addon+.form-control-feedback,.input-group-lg>.input-group-btn>.btn+.form-control-feedback,.input-lg+.form-control-feedback { + width: 46px; + height: 46px; + line-height: 46px +} + +.form-group-sm .form-control+.form-control-feedback,.input-group-sm+.form-control-feedback,.input-group-sm>.form-control+.form-control-feedback,.input-group-sm>.input-group-addon+.form-control-feedback,.input-group-sm>.input-group-btn>.btn+.form-control-feedback,.input-sm+.form-control-feedback { + width: 33px; + height: 33px; + line-height: 33px +} + +.has-success .checkbox,.has-success .checkbox-inline,.has-success .control-label,.has-success .help-block,.has-success .radio,.has-success .radio-inline,.has-success.checkbox label,.has-success.checkbox-inline label,.has-success.radio label,.has-success.radio-inline label { + color: #3c763d +} + +.has-success .form-control { + border-color: #3c763d; + -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075); + box-shadow: inset 0 1px 1px rgba(0,0,0,.075) +} + +.has-success .form-control:focus { + border-color: rgb(42.808988764,84.191011236,43.5224719101); + -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 6px rgb(102.5280898876,177.4719101124,103.8202247191); + box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 6px rgb(102.5280898876,177.4719101124,103.8202247191) +} + +.has-success .input-group-addon { + color: #3c763d; + background-color: #dff0d8; + border-color: #3c763d +} + +.has-success .form-control-feedback { + color: #3c763d +} + +.has-warning .checkbox,.has-warning .checkbox-inline,.has-warning .control-label,.has-warning .help-block,.has-warning .radio,.has-warning .radio-inline,.has-warning.checkbox label,.has-warning.checkbox-inline label,.has-warning.radio label,.has-warning.radio-inline label { + color: #8a6d3b +} + +.has-warning .form-control { + border-color: #8a6d3b; + -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075); + box-shadow: inset 0 1px 1px rgba(0,0,0,.075) +} + +.has-warning .form-control:focus { + border-color: rgb(102.2741116751,80.7817258883,43.7258883249); + -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 6px rgb(191.807106599,160.7461928934,107.192893401); + box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 6px rgb(191.807106599,160.7461928934,107.192893401) +} + +.has-warning .input-group-addon { + color: #8a6d3b; + background-color: #fcf8e3; + border-color: #8a6d3b +} + +.has-warning .form-control-feedback { + color: #8a6d3b +} + +.has-error .checkbox,.has-error .checkbox-inline,.has-error .control-label,.has-error .help-block,.has-error .radio,.has-error .radio-inline,.has-error.checkbox label,.has-error.checkbox-inline label,.has-error.radio label,.has-error.radio-inline label { + color: #a94442 +} + +.has-error .form-control { + border-color: #a94442; + -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075); + box-shadow: inset 0 1px 1px rgba(0,0,0,.075) +} + +.has-error .form-control:focus { + border-color: rgb(132.3234042553,53.2425531915,51.6765957447); + -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 6px rgb(206.4127659574,132.0595744681,130.5872340426); + box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 6px rgb(206.4127659574,132.0595744681,130.5872340426) +} + +.has-error .input-group-addon { + color: #a94442; + background-color: #f2dede; + border-color: #a94442 +} + +.has-error .form-control-feedback { + color: #a94442 +} + +.has-feedback label~.form-control-feedback { + top: 28px +} + +.has-feedback label.sr-only~.form-control-feedback { + top: 0 +} + +.help-block { + display: block; + margin-top: 5px; + margin-bottom: 10px; + color: rgb(114.75,114.75,114.75) +} + +@media (min-width: 768px) { + .form-inline .form-group { + display:inline-block; + margin-bottom: 0; + vertical-align: middle + } + + .form-inline .form-control { + display: inline-block; + width: auto; + vertical-align: middle + } + + .form-inline .form-control-static { + display: inline-block + } + + .form-inline .input-group { + display: inline-table; + vertical-align: middle + } + + .form-inline .input-group .form-control,.form-inline .input-group .input-group-addon,.form-inline .input-group .input-group-btn { + width: auto + } + + .form-inline .input-group>.form-control { + width: 100% + } + + .form-inline .control-label { + margin-bottom: 0; + vertical-align: middle + } + + .form-inline .checkbox,.form-inline .radio { + display: inline-block; + margin-top: 0; + margin-bottom: 0; + vertical-align: middle + } + + .form-inline .checkbox label,.form-inline .radio label { + padding-left: 0 + } + + .form-inline .checkbox input[type=checkbox],.form-inline .radio input[type=radio] { + position: relative; + margin-left: 0 + } + + .form-inline .has-feedback .form-control-feedback { + top: 0 + } +} + +.form-horizontal .checkbox,.form-horizontal .checkbox-inline,.form-horizontal .radio,.form-horizontal .radio-inline { + padding-top: 11px; + margin-top: 0; + margin-bottom: 0 +} + +.form-horizontal .checkbox,.form-horizontal .radio { + min-height: 34px +} + +.form-horizontal .form-group { + margin-right: -15px; + margin-left: -15px +} + +.form-horizontal .form-group:after,.form-horizontal .form-group:before { + display: table; + content: " " +} + +.form-horizontal .form-group:after { + clear: both +} + +@media (min-width: 768px) { + .form-horizontal .control-label { + padding-top:11px; + margin-bottom: 0; + text-align: right + } +} + +.form-horizontal .has-feedback .form-control-feedback { + right: 15px +} + +@media (min-width: 768px) { + .form-horizontal .form-group-lg .control-label { + padding-top:11px; + font-size: 18px + } +} + +@media (min-width: 768px) { + .form-horizontal .form-group-sm .control-label { + padding-top:6px; + font-size: 14px + } +} + +/*! Placeholders */ +.btn.disabled,.btn[disabled],fieldset[disabled] .btn { + border-style: solid +} + +input[type=button],input[type=reset],input[type=submit] { + height: auto; + min-height: 37px +} + +.btn-group-lg>input[type=button].btn,.btn-group-lg>input[type=reset].btn,.btn-group-lg>input[type=submit].btn,.input-group-lg>.input-group-btn>input[type=button].btn,.input-group-lg>.input-group-btn>input[type=reset].btn,.input-group-lg>.input-group-btn>input[type=submit].btn,.input-group-lg>input[type=button].form-control,.input-group-lg>input[type=button].input-group-addon,.input-group-lg>input[type=reset].form-control,.input-group-lg>input[type=reset].input-group-addon,.input-group-lg>input[type=submit].form-control,.input-group-lg>input[type=submit].input-group-addon,input[type=button].btn-lg,input[type=button].input-lg,input[type=reset].btn-lg,input[type=reset].input-lg,input[type=submit].btn-lg,input[type=submit].input-lg { + height: 46px +} + +.btn-group-sm>input[type=button].btn,.btn-group-sm>input[type=reset].btn,.btn-group-sm>input[type=submit].btn,.input-group-sm>.input-group-btn>input[type=button].btn,.input-group-sm>.input-group-btn>input[type=reset].btn,.input-group-sm>.input-group-btn>input[type=submit].btn,.input-group-sm>input[type=button].form-control,.input-group-sm>input[type=button].input-group-addon,.input-group-sm>input[type=reset].form-control,.input-group-sm>input[type=reset].input-group-addon,.input-group-sm>input[type=submit].form-control,.input-group-sm>input[type=submit].input-group-addon,input[type=button].btn-sm,input[type=button].input-sm,input[type=reset].btn-sm,input[type=reset].input-sm,input[type=submit].btn-sm,input[type=submit].input-sm { + height: 33px +} + +.btn-group-xs>input[type=button].btn,.btn-group-xs>input[type=reset].btn,.btn-group-xs>input[type=submit].btn,input[type=button].btn-xs,input[type=reset].btn-xs,input[type=submit].btn-xs { + height: 25px +} + +.form-control { + height: auto; + max-width: 100%; + min-height: 37px; + width: auto +} + +.form-inline .label-inline { + position: relative; + vertical-align: middle +} + +.form-inline .label-inline label { + font-weight: 400; + margin-bottom: 0; + padding-left: 2px +} + +legend { + border-bottom: 0; + float: left +} + +fieldset { + border-top: 1px solid #e5e5e5; + padding-top: 10px +} + +fieldset:first-child { + border-top: 0 +} + +fieldset.legend-brdr-bttm { + border-top: 0 +} + +fieldset.legend-brdr-bttm legend { + border-bottom: 1px solid #e5e5e5; + float: none; + margin-bottom: 10px +} + +fieldset.chkbxrdio-grp { + border-top: 0; + padding-top: 0 +} + +fieldset.chkbxrdio-grp legend { + font-size: 16px; + font-weight: 700; + margin-bottom: 5px +} + +.checkbox.required strong.required,.checkbox.required:not(.required-no-asterisk .required):before,label.required strong.required,label.required:not(.required-no-asterisk .required):before,legend.required strong.required,legend.required:not(.required-no-asterisk .required):before { + color: #d3080c; + font-weight: 700 +} + +.checkbox.required:not(.required-no-asterisk .required):before,label.required:not(.required-no-asterisk .required):before,legend.required:not(.required-no-asterisk .required):before { + content: "* "; + margin-left: -.87em; + vertical-align: top +} + +.form-group.has-error .checkbox { + color: #333 +} + +.form-group .checkbox.checkbox-standalone label { + font-weight: 700 +} + +[dir=rtl] label.required:not(.required-no-asterisk .required):before,[dir=rtl] legend.required:not(.required-no-asterisk .required):before { + margin-left: auto; + margin-right: -.87em +} + +fieldset.chkbxrdio-grp legend { + font-size: 20px +} + +input[type=checkbox],input[type=radio] { + margin-top: 9px +} + +.input-group .form-control,.input-group .input-group-addon,.input-group .input-group-btn button,.input-group .input-group-btn input { + min-height: 39px +} + +.form-horizontal .control-label { + padding-top: 7px +} + +.btn { + display: inline-block; + margin-bottom: 0; + font-weight: 400; + text-align: center; + white-space: nowrap; + vertical-align: middle; + -ms-touch-action: manipulation; + touch-action: manipulation; + cursor: pointer; + background-image: none; + border: 1px solid transparent; + padding: 10px 14px; + font-size: 16px; + line-height: 1.4375; + border-radius: 4px; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none +} + +.btn.active.focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn:active:focus,.btn:focus { + outline: 5px auto -webkit-focus-ring-color; + outline-offset: -2px +} + +.btn.focus,.btn:focus,.btn:hover { + color: #335075; + text-decoration: none +} + +.btn.active,.btn:active { + background-image: none; + outline: 0; + -webkit-box-shadow: inset 0 3px 5px rgba(0,0,0,.125); + box-shadow: inset 0 3px 5px rgba(0,0,0,.125) +} + +.btn.disabled,.btn[disabled],fieldset[disabled] .btn { + cursor: not-allowed; + opacity: .65; + -webkit-box-shadow: none; + box-shadow: none +} + +a.btn.disabled,fieldset[disabled] a.btn { + pointer-events: none +} + +.btn-default { + color: #335075; + background-color: #eaebed; + border-color: rgb(220.2692307692,221.9230769231,225.2307692308) +} + +.btn-default.focus,.btn-default:focus { + color: #335075; + background-color: rgb(206.5384615385,208.8461538462,213.4615384615); + border-color: rgb(151.6153846154,156.5384615385,166.3846153846) +} + +.btn-default:hover { + color: #335075; + background-color: rgb(206.5384615385,208.8461538462,213.4615384615); + border-color: rgb(187.3153846154,190.5384615385,196.9846153846) +} + +.btn-default.active,.btn-default:active,.open>.btn-default.dropdown-toggle { + color: #335075; + background-color: rgb(206.5384615385,208.8461538462,213.4615384615); + background-image: none; + border-color: rgb(187.3153846154,190.5384615385,196.9846153846) +} + +.btn-default.active.focus,.btn-default.active:focus,.btn-default.active:hover,.btn-default:active.focus,.btn-default:active:focus,.btn-default:active:hover,.open>.btn-default.dropdown-toggle.focus,.open>.btn-default.dropdown-toggle:focus,.open>.btn-default.dropdown-toggle:hover { + color: #335075; + background-color: rgb(187.3153846154,190.5384615385,196.9846153846); + border-color: rgb(151.6153846154,156.5384615385,166.3846153846) +} + +.btn-default.disabled.focus,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled].focus,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover { + background-color: #eaebed; + border-color: rgb(220.2692307692,221.9230769231,225.2307692308) +} + +.btn-default .badge { + color: #eaebed; + background-color: #335075 +} + +.btn-primary { + color: #fff; + background-color: #2572b4; + border-color: rgb(19.6082949309,60.4147465438,95.3917050691) +} + +.btn-primary.focus,.btn-primary:focus { + color: #fff; + background-color: rgb(28.3041474654,87.2073732719,137.6958525346); + border-color: #000 +} + +.btn-primary:hover { + color: #fff; + background-color: rgb(28.3041474654,87.2073732719,137.6958525346); + border-color: rgb(9.1732718894,28.26359447,44.6267281106) +} + +.btn-primary.active,.btn-primary:active,.open>.btn-primary.dropdown-toggle { + color: #fff; + background-color: rgb(28.3041474654,87.2073732719,137.6958525346); + background-image: none; + border-color: rgb(9.1732718894,28.26359447,44.6267281106) +} + +.btn-primary.active.focus,.btn-primary.active:focus,.btn-primary.active:hover,.btn-primary:active.focus,.btn-primary:active:focus,.btn-primary:active:hover,.open>.btn-primary.dropdown-toggle.focus,.open>.btn-primary.dropdown-toggle:focus,.open>.btn-primary.dropdown-toggle:hover { + color: #fff; + background-color: rgb(22.2170506912,68.4525345622,108.0829493088); + border-color: #000 +} + +.btn-primary.disabled.focus,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled].focus,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover { + background-color: #2572b4; + border-color: rgb(19.6082949309,60.4147465438,95.3917050691) +} + +.btn-primary .badge { + color: #2572b4; + background-color: #fff +} + +.btn-success { + color: #fff; + background-color: #1b6c1c; + border-color: rgb(6.6,26.4,6.8444444444) +} + +.btn-success.focus,.btn-success:focus { + color: #fff; + background-color: rgb(16.8,67.2,17.4222222222); + border-color: #000 +} + +.btn-success:hover { + color: #fff; + background-color: rgb(16.8,67.2,17.4222222222); + border-color: #000 +} + +.btn-success.active,.btn-success:active,.open>.btn-success.dropdown-toggle { + color: #fff; + background-color: rgb(16.8,67.2,17.4222222222); + background-image: none; + border-color: #000 +} + +.btn-success.active.focus,.btn-success.active:focus,.btn-success.active:hover,.btn-success:active.focus,.btn-success:active:focus,.btn-success:active:hover,.open>.btn-success.dropdown-toggle.focus,.open>.btn-success.dropdown-toggle:focus,.open>.btn-success.dropdown-toggle:hover { + color: #fff; + background-color: rgb(9.66,38.64,10.0177777778); + border-color: #000 +} + +.btn-success.disabled.focus,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled].focus,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover { + background-color: #1b6c1c; + border-color: rgb(6.6,26.4,6.8444444444) +} + +.btn-success .badge { + color: #1b6c1c; + background-color: #fff +} + +.btn-info { + color: #fff; + background-color: #4d4d4d; + border-color: #1a1a1a +} + +.btn-info.focus,.btn-info:focus { + color: #fff; + background-color: rgb(51.5,51.5,51.5); + border-color: #000 +} + +.btn-info:hover { + color: #fff; + background-color: rgb(51.5,51.5,51.5); + border-color: #000 +} + +.btn-info.active,.btn-info:active,.open>.btn-info.dropdown-toggle { + color: #fff; + background-color: rgb(51.5,51.5,51.5); + background-image: none; + border-color: #000 +} + +.btn-info.active.focus,.btn-info.active:focus,.btn-info.active:hover,.btn-info:active.focus,.btn-info:active:focus,.btn-info:active:hover,.open>.btn-info.dropdown-toggle.focus,.open>.btn-info.dropdown-toggle:focus,.open>.btn-info.dropdown-toggle:hover { + color: #fff; + background-color: rgb(33.65,33.65,33.65); + border-color: #000 +} + +.btn-info.disabled.focus,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled].focus,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover { + background-color: #4d4d4d; + border-color: #1a1a1a +} + +.btn-info .badge { + color: #4d4d4d; + background-color: #fff +} + +.btn-warning { + color: #000; + background-color: #f2d40d; + border-color: rgb(145.2,127.2,7.8) +} + +.btn-warning.focus,.btn-warning:focus { + color: #000; + background-color: rgb(193.6,169.6,10.4); + border-color: rgb(24.2,21.2,1.3) +} + +.btn-warning:hover { + color: #000; + background-color: rgb(193.6,169.6,10.4); + border-color: rgb(87.12,76.32,4.68) +} + +.btn-warning.active,.btn-warning:active,.open>.btn-warning.dropdown-toggle { + color: #000; + background-color: rgb(193.6,169.6,10.4); + background-image: none; + border-color: rgb(87.12,76.32,4.68) +} + +.btn-warning.active.focus,.btn-warning.active:focus,.btn-warning.active:hover,.btn-warning:active.focus,.btn-warning:active:focus,.btn-warning:active:hover,.open>.btn-warning.dropdown-toggle.focus,.open>.btn-warning.dropdown-toggle:focus,.open>.btn-warning.dropdown-toggle:hover { + color: #000; + background-color: rgb(159.72,139.92,8.58); + border-color: rgb(24.2,21.2,1.3) +} + +.btn-warning.disabled.focus,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled].focus,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover { + background-color: #f2d40d; + border-color: rgb(145.2,127.2,7.8) +} + +.btn-warning .badge { + color: #f2d40d; + background-color: #000 +} + +.btn-danger { + color: #fff; + background-color: #bc3331; + border-color: rgb(107.0886075949,29.0506329114,27.9113924051) +} + +.btn-danger.focus,.btn-danger:focus { + color: #fff; + background-color: rgb(147.5443037975,40.0253164557,38.4556962025); + border-color: rgb(5.9493670886,1.6139240506,1.5506329114) +} + +.btn-danger:hover { + color: #fff; + background-color: rgb(147.5443037975,40.0253164557,38.4556962025); + border-color: rgb(58.5417721519,15.8810126582,15.2582278481) +} + +.btn-danger.active,.btn-danger:active,.open>.btn-danger.dropdown-toggle { + color: #fff; + background-color: rgb(147.5443037975,40.0253164557,38.4556962025); + background-image: none; + border-color: rgb(58.5417721519,15.8810126582,15.2582278481) +} + +.btn-danger.active.focus,.btn-danger.active:focus,.btn-danger.active:hover,.btn-danger:active.focus,.btn-danger:active:focus,.btn-danger:active:hover,.open>.btn-danger.dropdown-toggle.focus,.open>.btn-danger.dropdown-toggle:focus,.open>.btn-danger.dropdown-toggle:hover { + color: #fff; + background-color: rgb(119.2253164557,32.3430379747,31.0746835443); + border-color: rgb(5.9493670886,1.6139240506,1.5506329114) +} + +.btn-danger.disabled.focus,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled].focus,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover { + background-color: #bc3331; + border-color: rgb(107.0886075949,29.0506329114,27.9113924051) +} + +.btn-danger .badge { + color: #bc3331; + background-color: #fff +} + +.btn-link { + font-weight: 400; + color: #295376; + border-radius: 0 +} + +.btn-link,.btn-link.active,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link { + background-color: transparent; + -webkit-box-shadow: none; + box-shadow: none +} + +.btn-link,.btn-link:active,.btn-link:focus,.btn-link:hover { + border-color: transparent +} + +.btn-link:focus,.btn-link:hover { + color: #0535d2; + text-decoration: underline; + background-color: transparent +} + +.btn-link[disabled]:focus,.btn-link[disabled]:hover,fieldset[disabled] .btn-link:focus,fieldset[disabled] .btn-link:hover { + color: #6f6f6f; + text-decoration: none +} + +.btn-group-lg>.btn,.btn-lg { + padding: 10px 16px; + font-size: 18px; + line-height: 1.3333333; + border-radius: 6px +} + +.btn-group-sm>.btn,.btn-sm { + padding: 5px 10px; + font-size: 14px; + line-height: 1.5; + border-radius: 3px +} + +.btn-group-xs>.btn,.btn-xs { + padding: 1px 5px; + font-size: 14px; + line-height: 1.5; + border-radius: 3px +} + +.btn-block { + display: block; + width: 100% +} + +.btn-block+.btn-block { + margin-top: 5px +} + +input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block { + width: 100% +} + +.btn-default:visited { + color: #335075 +} + +.btn-primary:visited { + color: #fff +} + +.btn-success:visited { + color: #fff +} + +.btn-info:visited { + color: #fff +} + +.btn-warning:visited { + color: #000 +} + +.btn-danger:visited { + color: #fff +} + +.btn { + border-style: outset; + height: auto; + min-height: 36px; + min-width: 36px; + white-space: normal +} + +body .btn-primary { + background-color: #26374a; + border-color: #26374a +} + +.btn { + font-family: Lato,sans-serif +} + +.btn-call-to-action { + color: #fff; + background-color: #318000; + border-color: #458259 +} + +.btn-call-to-action.focus,.btn-call-to-action:focus { + color: #fff; + background-color: rgb(29.4765625,77,0); + border-color: rgb(24.7914572864,46.7085427136,31.9773869347) +} + +.btn-call-to-action:hover { + color: #fff; + background-color: rgb(29.4765625,77,0); + border-color: rgb(47.7798994975,90.0201005025,61.6291457286) +} + +.btn-call-to-action.active,.btn-call-to-action:active,.open>.btn-call-to-action.dropdown-toggle { + color: #fff; + background-color: rgb(29.4765625,77,0); + background-image: none; + border-color: rgb(47.7798994975,90.0201005025,61.6291457286) +} + +.btn-call-to-action.active.focus,.btn-call-to-action.active:focus,.btn-call-to-action.active:hover,.btn-call-to-action:active.focus,.btn-call-to-action:active:focus,.btn-call-to-action:active:hover,.open>.btn-call-to-action.dropdown-toggle.focus,.open>.btn-call-to-action.dropdown-toggle:focus,.open>.btn-call-to-action.dropdown-toggle:hover { + color: #fff; + background-color: rgb(15.81015625,41.3,0); + border-color: rgb(24.7914572864,46.7085427136,31.9773869347) +} + +.btn-call-to-action.disabled.focus,.btn-call-to-action.disabled:focus,.btn-call-to-action.disabled:hover,.btn-call-to-action[disabled].focus,.btn-call-to-action[disabled]:focus,.btn-call-to-action[disabled]:hover,fieldset[disabled] .btn-call-to-action.focus,fieldset[disabled] .btn-call-to-action:focus,fieldset[disabled] .btn-call-to-action:hover { + background-color: #318000; + border-color: #458259 +} + +.btn-call-to-action .badge { + color: #318000; + background-color: #fff +} + +.btn-call-to-action { + font-size: 1.1em; + margin-bottom: 25px; + margin-top: 15px; + padding: .58em 1em; + text-shadow: 1px 2px #333 +} + +.btn-call-to-action:visited { + color: #fff +} + +input.btn.btn-call-to-action { + padding-bottom: 2em +} + +.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6 { + font-family: Lato,"Noto Sans","Noto Sans Canadian Aboriginal",sans-serif; + -webkit-font-variant-ligatures: no-common-ligatures; + font-variant-ligatures: no-common-ligatures; + font-weight: 700 +} + +.h3,.h4,.h5,.h6 { + border: 0 +} + +.h1,h1 { + line-height: 1.17; + margin-bottom: .2em; + margin-top: 1em; + padding-bottom: 4px +} + +.h2,h2 { + line-height: 1.23 +} + +.h3,h3 { + line-height: 1.37 +} + +.h4,.h5,h4,h5 { + line-height: 1.33 +} + +.h6,h6 { + line-height: 1.45 +} + +body:has(gcds-header) h1#wb-cont { + margin-top: 0 +} + +[placeholder],input[placeholder] { + color: #5c5c5c!important +} + +legend { + font-size: 1.2em; + line-height: 1.65em +} + +output { + font-size: 1em +} + +pre { + font-size: 1rem +} + +blockquote { + font-size: 1em +} + +.force-style-gcweb-4-0-29 h1 { + margin-top: 1.25em +} + +.force-style-gcweb-4-0-29 .h1,.force-style-gcweb-4-0-29 h1 { + font-family: Helvetica,Arial,sans-serif; + font-size: 34px +} + +.force-style-gcweb-4-0-29 .h2,.force-style-gcweb-4-0-29 h2 { + font-family: Helvetica,Arial,sans-serif; + font-size: 26px +} + +.force-style-gcweb-4-0-29 .h3,.force-style-gcweb-4-0-29 h3 { + font-family: Helvetica,Arial,sans-serif; + font-size: 22px +} + +.force-style-gcweb-4-0-29 .h4,.force-style-gcweb-4-0-29 h4 { + font-family: Helvetica,Arial,sans-serif; + font-size: 18px +} + +.force-style-gcweb-4-0-29 .h5,.force-style-gcweb-4-0-29 h5 { + font-family: Helvetica,Arial,sans-serif; + font-size: 16px +} + +.force-style-gcweb-4-0-29 .h6,.force-style-gcweb-4-0-29 h6 { + font-family: Helvetica,Arial,sans-serif; + font-size: 14px; + font-weight: 700 +} + +.force-style-gcweb-4-0-29 .glyphicon { + top: 1px +} + +.force-style-gcweb-4-0-29 main,main.force-style-gcweb-4-0-29 { + font-family: Helvetica,Arial,sans-serif; + font-size: 16px; + line-height: 1.4375em +} + +.force-style-gcweb-4-0-29 .btn,main .force-style-gcweb-4-0-29 { + font-family: Helvetica,Arial,sans-serif; + font-size: 16px; + line-height: 23px +} + +.force-style-gcweb-4-0-29 .btn-group-lg>.btn,.force-style-gcweb-4-0-29 .btn.btn-lg,form .btn-group-lg>.btn,form .btn.btn-lg { + padding: 10px 16px; + font-size: 18px; + line-height: 1.3333333; + border-radius: 6px +} + +.force-style-gcweb-4-0-29 .btn-group-sm>.btn,.force-style-gcweb-4-0-29 .btn.btn-sm,form .btn-group-sm>.btn,form .btn.btn-sm { + padding: 5px 10px; + font-size: 14px; + line-height: 1.5; + border-radius: 3px +} + +.force-style-gcweb-4-0-29 .btn-group-xs>.btn,.force-style-gcweb-4-0-29 .btn.btn-xs,form .btn-group-xs>.btn,form .btn.btn-xs { + padding: 1px 5px; + font-size: 14px; + line-height: 1.5; + border-radius: 3px +} + +datalist { + display: none +} + +summary { + display: list-item!important; + list-style-type: none; + list-style-type: disclosure-closed +} + +details { + margin-bottom: .25em +} + +details summary { + border: 1px solid #ddd; + border-radius: 4px; + color: #295376; + padding: 5px 15px 5px 30px; + text-indent: -16px +} + +details summary:focus,details summary:hover { + background-color: transparent; + color: #0535d2; + text-decoration: underline +} + +details summary:focus { + outline-style: dotted; + outline-width: 1px +} + +details[open] { + border: 1px solid #ddd; + border-radius: 4px +} + +details[open]>summary { + border: 0; + border-bottom: 1px solid #ddd; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; + list-style-type: disclosure-open; + margin-bottom: .25em +} + +.datepicker-format { + display: none +} + +.picker-overlay { + width: 19em +} + +/*! Base Site */ +#mb-pnl .srch-pnl label,#mb-pnl h3,#wb-bc h2,#wb-glb-mn h2,#wb-info h2,#wb-lng h2,#wb-sec h2,#wb-sm h2,#wb-srch h2,#wb-srch label,.wb-calevt-cal .cal-days td ul,.wb-fnote dt,.wb-inv,.wb-invisible,.wb-show-onfocus,.wb-sl,.wb-twitter .wb-twitter-notice-end[tabindex],.wb-twitter .wb-twitter-notice-start[tabindex],.wb-twitter .wb-twitter-skip a { + clip-path: inset(50%); + height: 1px; + margin: 0; + overflow: hidden; + position: absolute; + width: 1px +} + +.wb-disable .wb-slc .wb-sl,.wb-show-onfocus:focus,.wb-sl:focus,.wb-twitter .wb-twitter-notice-end[tabindex]:focus,.wb-twitter .wb-twitter-skip a:focus { + clip-path: none; + height: inherit; + margin: inherit; + overflow: inherit; + position: static; + width: inherit +} + +#wb-tphp { + list-style-type: none; + margin-bottom: 0 +} + +.wb-slc { + left: 0; + position: absolute; + text-align: center; + top: 10px; + width: 100%; + z-index: 3 +} + +.wb-sl { + padding: 5px; + z-index: 501 +} + +.wb-disable #wb-tphp { + background: #fff +} + +.wb-disable .wb-slc { + position: static +} + +.wb-disable .wb-slc .wb-sl { + background: 0 0; + color: #295376; + display: block!important; + font-weight: 400 +} + +.wb-disable .wb-slc .wb-sl:focus,.wb-disable .wb-slc .wb-sl:hover { + color: #0535d2 +} + +.wb-disable #wb-dtmd { + float: none!important +} + +.wb-disable #wb-tphp+section h2 { + margin-left: 1.3em +} + +.wb-disable #wb-tphp+section h2::before { + color: #f90; + content: "\e107"; + display: inline-block; + font-family: "Glyphicons Halflings"; + margin-left: -1.3em; + position: absolute +} + +#wb-bc ol { + border-radius: 0; + margin-bottom: 0; + padding: 1px 13px +} + +#wb-bc li { + max-width: 100%; + overflow: hidden; + padding: 7px 2px; + text-overflow: ellipsis; + white-space: nowrap +} + +#wb-bc li:before { + color: #333; + content: ">"; + font-family: "Glyphicons Halflings"; + font-size: .7em +} + +[dir=rtl] #wb-bc li:before { + content: "<"; + display: inline-block +} + +#wb-bc ol { + margin-top: 15px; + padding-left: 0; + padding-right: 0 +} + +#wb-bc li:before { + content: "\e080"; + padding: 0 4px 0 0; + position: relative +} + +#wb-bc li:first-child a { + padding-left: 0 +} + +#wb-bc a { + padding: 5px 0 +} + +.wb-lng-lnks-horiz .wb-lng-lnk { + display: inline-block +} + +.wb-lng-lnks-vert .wb-lng-lnk { + display: block +} + +.wb-lng-lnks-rtl .wb-lng-lnk { + float: right +} + +.wb-lng-lnks-rtl:after { + clear: both; + content: ""; + display: table +} + +#wb-so { + text-align: right +} + +#wb-so .row { + padding: 1em 0 0 +} + +.gc-archv.modal-content { + border: none; + border-radius: 0 +} + +.gc-archv { + background-color: gold!important; + -webkit-box-shadow: 0 5px 15px rgba(0,0,0,.5); + box-shadow: 0 5px 15px rgba(0,0,0,.5); + padding: 25px 0 +} + +.gc-archv h2 { + margin-top: 0 +} + +.gc-archv .mfp-close.overlay-close { + color: #000 +} + +.gc-archv .mfp-close.overlay-close:focus,.gc-archv .mfp-close.overlay-close:focus-visible { + outline: 5px auto rgb(0,95,204); + outline-offset: -2px +} + +.wb-disable .gc-arch.wb-overlay { + display: none +} + +header { + position: relative +} + +header .brand { + margin-bottom: 10px; + padding-bottom: 0; + padding-top: 10px +} + +header .brand a { + display: block; + height: auto; + padding-bottom: 0; + position: relative; + text-decoration: none; + width: auto +} + +header .brand a:after { + bottom: 0; + content: ""; + left: 0; + position: absolute; + right: 0; + top: 0 +} + +header .brand img,header .brand object { + height: auto; + max-height: 40px +} + +header .brand img { + margin-bottom: .375em +} + +.lt-ie9 header .brand a { + margin-top: 0 +} + +.lt-ie9 header .brand img { + height: 40px +} + +[dir=rtl] header .brand { + float: right +} + +#wb-info { + position: relative; + z-index: 5 +} + +#wb-info h3 { + font-size: 1.625rem; + margin-bottom: 1.5rem; + margin-top: 0 +} + +#wb-info a { + text-decoration: none +} + +#wb-info nav { + padding-bottom: .75rem; + padding-top: 2.25rem; + position: relative +} + +#wb-info nav ul[class*=colcount-] { + -webkit-column-gap: 0; + -moz-column-gap: 0; + column-gap: 0 +} + +#wb-info nav li { + margin-bottom: 1.5rem +} + +#wb-info .gc-contextual { + background-color: #33465c; + color: #fff +} + +#wb-info .gc-contextual nav { + padding-bottom: 0 +} + +#wb-info .gc-contextual a { + color: #fff +} + +#wb-info .gc-contextual a:hover { + text-decoration: underline +} + +#wb-info .gc-main-footer { + background: #26374a url("../assets/landscape.png") no-repeat right bottom; + color: #fff +} + +#wb-info .gc-main-footer h4 { + margin-bottom: 2rem; + margin-top: 1.75rem; + position: relative +} + +#wb-info .gc-main-footer h4::before { + border-bottom: 4px solid #fff; + content: ""; + display: block; + position: absolute; + top: -1.5rem; + width: 40px +} + +#wb-info .gc-main-footer a { + color: #fff +} + +#wb-info .gc-main-footer a:hover { + text-decoration: underline +} + +#wb-info .gc-sub-footer { + background: #f8f8f8; + color: #333; + padding: 1.75rem 0 2.25rem +} + +#wb-info .gc-sub-footer img,#wb-info .gc-sub-footer object { + height: 40px; + width: auto +} + +#wb-info .gc-sub-footer nav { + -webkit-box-flex: 1; + -ms-flex: 1 1 auto; + flex: 1 1 auto; + padding-bottom: 0; + padding-top: 0 +} + +#wb-info .gc-sub-footer nav ul { + list-style-type: none; + margin: 0; + padding: 0 +} + +#wb-info .gc-sub-footer nav ul li { + display: inline-block; + -webkit-margin-end: .5rem; + margin-inline-end:.5rem;margin-bottom: 0 +} + +#wb-info .gc-sub-footer nav ul li:not(:first-child)::before { + content: "•"; + -webkit-margin-end: .7rem; + margin-inline-end:.7rem} + +#wb-info .gc-sub-footer .wtrmrk { + text-align: right +} + +[dir=rtl] #wb-info .gc-sub-footer .wtrmrk { + text-align: left +} + +#wb-lng { + padding-top: 10px +} + +#wb-lng li { + padding-right: 0 +} + +#wb-lng abbr { + font-family: "Noto Sans","Noto Sans Canadian Aboriginal",sans-serif; + font-size: 1.125rem; + text-decoration: none +} + +[dir=rtl] #wb-lng { + text-align: left +} + +[dir=rtl] #wb-lng ul { + padding-right: 0 +} + +#wb-srch,.srchbox { + padding-top: 1em +} + +#wb-srch .submit,.srchbox .submit { + position: absolute; + right: 15px; + top: 1em +} + +#wb-srch button,#wb-srch input,.srchbox button,.srchbox input { + border-radius: 0 +} + +#wb-srch button,.srchbox button { + background-color: #26374a; + border: 0; + border-bottom: #26374a solid 1px; + font-size: 17px +} + +#wb-srch button:active,#wb-srch button:focus,#wb-srch button:hover,.srchbox button:active,.srchbox button:focus,.srchbox button:hover { + background: #444 +} + +#wb-srch .glyphicon,.srchbox .glyphicon { + top: auto; + vertical-align: middle +} + +#wb-srch input,.srchbox input { + border-color: #e0e0e0; + border-style: solid; + -webkit-box-shadow: none; + box-shadow: none; + color: #555; + position: relative +} + +#wb-srch input:active,#wb-srch input:focus,.srchbox input:active,.srchbox input:focus { + -webkit-box-shadow: inset 0 0 1px #000,0 0 8px rgba(102,175,233,.6); + box-shadow: inset 0 0 1px #000,0 0 8px rgba(102,175,233,.6); + outline: #66afe9 solid 1px; + position: relative +} + +#wb-srch .wb-srch-qry,.srchbox .wb-srch-qry { + width: 100% +} + +#wb-srch .wb-srch-qry input,.srchbox .wb-srch-qry input { + max-width: inherit; + width: 100% +} + +#wb-srch-sub { + margin-left: 5px +} + +[dir=rtl] #wb-srch { + text-align: left +} + +[dir=rtl] #wb-srch input { + margin-left: -4px; + margin-right: auto +} + +[dir=rtl] #wb-srch-sub { + margin-left: 0; + margin-right: 5px +} + +input#wb-srch-q { + width: 100% +} + +#wb-sec .list-group .list-group .list-group .list-group-item.wb-navcurr,#wb-sec .list-group a.list-group-item.wb-navcurr,#wb-sec .list-group a.list-group-item[href]:focus,#wb-sec .list-group a.list-group-item[href]:hover,#wb-sec h3 a:hover { + background-color: #243850; + color: #fff +} + +#wb-sec { + margin-top: 20px; + padding-bottom: 2em +} + +#wb-sec h3 { + border: 1px solid #ddd; + border-bottom: 5px solid #26374a; + font-size: 1.1em; + margin: 15px 0 1px; + padding: 15px +} + +#wb-sec h3 a { + color: #333; + display: block; + margin: -15px; + padding: 15px; + text-decoration: none +} + +#wb-sec .list-group { + margin-bottom: 0; + margin-left: 10px +} + +#wb-sec .list-group a.list-group-item { + background-color: #fff; + border-radius: 0; + color: #555; + margin-top: -1px; + text-decoration: none +} + +#wb-sec .list-group a.list-group-item.wb-navcurr { + cursor: text +} + +#wb-sec .list-group a.list-group-item.wb-navcurr[href]:hover { + background-color: #26374a +} + +#wb-sec .list-group .list-group .list-group-item { + background-color: rgb(229.5,229.5,229.5); + color: #000; + padding-left: 1.8em +} + +#wb-sec .list-group .list-group .list-group .list-group-item { + background-color: #fff +} + +#wb-sec .list-group .list-group .list-group .list-group-item.wb-navcurr { + cursor: text +} + +[dir=rtl] #wb-sec .list-group .list-group .list-group-item { + padding-left: 15px; + padding-right: 1.8em +} + +a.shr-opn,a.shr-opn:hover { + text-decoration: none +} + +.pagedetails .row div:first-child a,.pagedetails .row div:first-child details,.pagedetails div+.wb-share-inited { + margin-top: .5em +} + +.pagedetails.text-right .shr-pg { + text-align: left +} + +main .pagedetails { + font-size: 16px +} + +.pagedetails { + padding-bottom: 2em; + padding-top: 2em +} + +.pagedetails.row details { + margin-bottom: .25em; + margin-left: 1.1em; + margin-right: 1.1em +} + +.pagedetails details { + margin-bottom: 0 +} + +.pagedetails details .well,.pagedetails details a.gc-dwnld { + margin-left: -1.1em; + margin-right: -1.1em +} + +.datemod { + padding-bottom: 7px; + padding-top: 7px +} + +.datemod #wb-dtmd { + margin-top: 0 +} + +#gc-pft details { + margin-bottom: 15px; + margin-top: 0 +} + +#gc-pft legend { + font-size: 1rem +} + +#gc-pft .btn { + padding: 6px 12px +} + +#gc-pft .gc-pft-no { + font-weight: 700 +} + +.no-js #gc-pft .nojs-text-left,.wb-disable #gc-pft .nojs-text-left { + text-align: left +} + +.home .gcweb-menu { + color: #284162 +} + +.home .gcweb-menu button[aria-haspopup=true] { + background-color: #fff; + border-color: #fff; + color: #284162 +} + +.home .gcweb-menu button[aria-haspopup=true]:hover { + background-color: #444; + color: #fff +} + +.home #wb-bnr+.gcweb-menu { + margin-left: 0 +} + +#wb-bnr+.gcweb-menu { + border-top: 3px solid #38414d; + font-size: 20px; + margin-top: 5px +} + +#wb-bnr+.gcweb-menu .container { + padding: 0 +} + +.gcweb-menu button[aria-haspopup=true] { + background-color: #26374a; + border: 1px solid #26374a; + color: #fff; + margin-left: 0; + padding: .5em 1em; + text-transform: uppercase +} + +.gcweb-menu button[aria-haspopup=true]:hover,.gcweb-menu button[aria-haspopup=true][aria-expanded=true] { + background-color: #444; + border-color: #444; + color: #fff +} + +.gcweb-menu button[aria-haspopup=true]:focus { + background-color: #fff; + border: 1px dotted #555; + color: #333 +} + +.gcweb-menu [aria-haspopup=true][aria-expanded=false]+[role=menu] { + display: none +} + +.gcweb-menu button[aria-haspopup=true][aria-expanded=true]+[role=menu] { + z-index: 9999 +} + +.gcweb-menu [role=menu] { + background-color: #444; + color: #fff; + list-style: none; + padding: 0; + position: absolute +} + +.gcweb-menu [role=menu]>li { + border-left: #444 solid 1px +} + +.gcweb-menu [role=menu]>li:first-child { + border-top: #444 solid 1px +} + +.gcweb-menu [role=menu]>li:last-child { + border-bottom: #444 solid 1px +} + +.gcweb-menu [role=menu]>li [role=menu]>li { + border: none +} + +.gcweb-menu [role=menuitem] { + display: block; + padding: 14px 30px; + width: 360px +} + +.gcweb-menu [role=menuitem],.gcweb-menu [role=menuitem]:visited { + border-bottom: 1px solid #555; + color: #fff; + font-size: 18px; + text-decoration: none +} + +.gcweb-menu li:last-child [role=menuitem] { + border-bottom: none +} + +.gcweb-menu [role=menuitem]:hover,.gcweb-menu [role=menuitem][aria-expanded=true],.gcweb-menu [role=menuitem][aria-expanded=true]+[role=menu] [role=menuitem]:focus { + background-color: #fff; + color: #333 +} + +.gcweb-menu [role=menu] [role=menu] { + background-color: #fff; + border-top: #eee solid 1px; + -webkit-box-shadow: 10px 10px 10px 5px rgba(0,0,0,.1); + box-shadow: 10px 10px 10px 5px rgba(0,0,0,.1); + color: #000; + left: 360px; + margin-bottom: 25px; + min-height: 880px; + padding: 0 39px 24px; + top: 0; + width: 810px +} + +[lang=fr] .gcweb-menu [role=menu] [role=menu] { + min-height: 931px +} + +.gcweb-menu [role=menu] [role=menu] [role=menu] { + border-top: none; + -webkit-box-shadow: none; + box-shadow: none; + left: auto; + min-height: auto; + top: auto; + width: auto +} + +.gcweb-menu [role=menu] [role=menu] [role=menuitem] { + border-bottom: none; + color: #000; + width: auto +} + +.gcweb-menu [role=menu] [role=menu] li [role=menuitem] { + color: #284162; + padding: 6px 0; + text-decoration: underline +} + +.gcweb-menu [role=menu] [role=menu] li [role=menuitem]:hover { + color: #0535d2 +} + +.gcweb-menu [role=menu] [role=menu] li:first-child [role=menuitem] { + font-size: 32px; + font-weight: 700; + text-decoration: underline +} + +.gcweb-menu [role=menu] [role=menu] [role=menu] li:first-child [role=menuitem] { + font-size: 18px; + font-weight: 400; + text-decoration: underline; + width: auto +} + +.gcweb-menu [role=menu] [role=menu] li:last-child [role=menu] { + list-style: disc; + padding-top: 0 +} + +.gcweb-menu [role=menu] [role=menu] li { + width: 45% +} + +.gcweb-menu [role=menu] [role=menu] li:first-child { + margin-bottom: 1.5em; + width: 100% +} + +.gcweb-menu [role=menu] [role=menu] [role=menu] li:first-child { + margin-bottom: 0 +} + +.gcweb-menu [role=menu] [role=menu] li:last-child { + left: 400px; + position: absolute; + top: 4.5em +} + +.gcweb-menu [role=menu] [role=menu] [role=menu] li:last-child { + left: auto; + position: relative; + top: auto +} + +.gcweb-menu [role=menu] [role=menu] [role=menu] li { + width: 100% +} + +.wb-disable .gcweb-menu [aria-haspopup=true][aria-expanded=false]+[role=menu] { + display: block +} + +.wb-disable .gcweb-menu [role=menu] { + position: static +} + +.wb-disable .gcweb-menu [role=menu]>li { + float: left; + padding-right: 5px; + width: 50% +} + +.wb-disable .gcweb-menu [role=menu]>li:nth-child(2n+2) { + clear: right +} + +.wb-disable .gcweb-menu [role=menu]>li:nth-child(2n+3) { + clear: left +} + +.wb-disable .gcweb-menu [role=menu]>li a { + width: auto +} + +.wb-disable .gcweb-menu [role=menu]:after,.wb-disable .gcweb-menu [role=menu]:before { + content: " "; + display: table +} + +.wb-disable .gcweb-menu [role=menu]:after { + clear: both +} + +#wb-sm { + background: #26374a +} + +#wb-sm .menu { + display: table; + margin-bottom: 0; + text-shadow: 1px 1px 1px #222; + width: 100% +} + +#wb-sm .menu .active,#wb-sm .menu .selected,#wb-sm .menu .wb-navcurr { + background: #243850!important; + color: #fff!important +} + +#wb-sm .menu>li { + border-left: 1px solid #999; + display: table-cell; + float: none +} + +#wb-sm .menu>li:last-child { + border-right: 1px solid #999 +} + +#wb-sm .menu>li a { + color: #fff +} + +#wb-sm .menu>li a:focus,#wb-sm .menu>li a:hover { + background: #243850!important; + text-shadow: none +} + +#wb-sm .sm.open { + background: #ccc; + border-bottom: 5px solid #243850 +} + +#wb-sm .sm.open li a,#wb-sm .sm.open li summary { + color: #444; + padding: 5px 10px; + text-shadow: none +} + +#wb-sm .sm.open li a:active,#wb-sm .sm.open li a:focus,#wb-sm .sm.open li a:hover,#wb-sm .sm.open li summary:active,#wb-sm .sm.open li summary:focus,#wb-sm .sm.open li summary:hover { + background: #243850; + color: #fff +} + +#wb-sm .sm.open .slflnk a { + background: #bbb +} + +#wb-sm .sm .row { + background: 0 0 +} + +#wb-sm .sm .row a { + color: #6e6e6e +} + +.wb-disable #wb-sm .nvbar { + display: block!important +} + +#mb-pnl { + background: url("data:image/gif;base64,R0lGODlh6AMBAIAAABk0UQAAACH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS4zLWMwMTEgNjYuMTQ1NjYxLCAyMDEyLzAyLzA2LTE0OjU2OjI3ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M2IChNYWNpbnRvc2gpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkMxRUQ2ODczNUEyODExRTNBODM4OUNCRUJBOUJGN0REIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkMxRUQ2ODc0NUEyODExRTNBODM4OUNCRUJBOUJGN0REIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6QzFFRDY4NzE1QTI4MTFFM0E4Mzg5Q0JFQkE5QkY3REQiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6QzFFRDY4NzI1QTI4MTFFM0E4Mzg5Q0JFQkE5QkY3REQiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4B//79/Pv6+fj39vX08/Lx8O/u7ezr6uno5+bl5OPi4eDf3t3c29rZ2NfW1dTT0tHQz87NzMvKycjHxsXEw8LBwL++vby7urm4t7a1tLOysbCvrq2sq6qpqKempaSjoqGgn56dnJuamZiXlpWUk5KRkI+OjYyLiomIh4aFhIOCgYB/fn18e3p5eHd2dXRzcnFwb25tbGtqaWhnZmVkY2JhYF9eXVxbWllYV1ZVVFNSUVBPTk1MS0pJSEdGRURDQkFAPz49PDs6OTg3NjU0MzIxMC8uLSwrKikoJyYlJCMiISAfHh0cGxoZGBcWFRQTEhEQDw4NDAsKCQgHBgUEAwIBAAAh+QQAAAAAACwAAAAA6AMBAAACHoSPqcvtD6OctNqLs968+w+G4kiW5omm6sq27gs7BQA7"); + background-position: 15px 0; + background-repeat: repeat-y; + -webkit-box-shadow: none; + box-shadow: none; + padding-left: 15px +} + +#mb-pnl a[href$="#wb-cont"] { + display: none!important +} + +#mb-pnl .modal-header { + background: #2e5274; + border-bottom: 1px solid #2e5274; + -webkit-box-shadow: 0 3px 3px -2px rgba(0,0,0,.3),3px 3px 3px -2px rgba(0,0,0,.3),-3px 3px 3px -2px rgba(0,0,0,.3); + box-shadow: 0 3px 3px -2px rgba(0,0,0,.3),3px 3px 3px -2px rgba(0,0,0,.3),-3px 3px 3px -2px rgba(0,0,0,.3); + color: #fff; + margin-left: 0; + padding: 0 44px 0 1em; + position: relative; + text-align: left; + text-decoration: none; + top: 1em; + z-index: 1045 +} + +#mb-pnl .modal-header:before { + border-bottom: 1.45em solid #2e5274; + border-left: 1em solid transparent; + border-top: 1.45em solid #2e5274; + content: ""; + left: -1em; + position: absolute; + top: 0 +} + +#mb-pnl .modal-header h2 { + border: 0; + margin-bottom: 0; + margin-top: 1px; + padding: 9px +} + +#mb-pnl .modal-body { + background: #0e4164; + margin-left: 0; + padding-bottom: 0; + padding-left: 0; + padding-right: 0; + padding-top: 5em; + position: relative; + top: -3em +} + +#mb-pnl .modal-body summary { + color: #fff +} + +#mb-pnl .modal-body summary:focus,#mb-pnl .modal-body summary:hover { + background: 0 0; + color: #fff +} + +#mb-pnl .modal-body a { + color: #fff; + text-decoration: none +} + +#mb-pnl .modal-body ul { + list-style-type: none +} + +#mb-pnl .modal-body li { + line-height: 2; + list-style-type: none +} + +#mb-pnl .modal-footer { + background: #0e4164 +} + +#mb-pnl .mfp-close { + top: .55em +} + +#mb-pnl .srch-pnl form button { + background-color: #26374a; + border: 0; + border-color: #26374a; + border-radius: 0; + position: relative +} + +#mb-pnl .srch-pnl form button:active,#mb-pnl .srch-pnl form button:focus,#mb-pnl .srch-pnl form button:hover { + background: #243850 +} + +#mb-pnl .srch-pnl form input { + background-color: #e0e0e0; + border-color: #e0e0e0; + border-radius: 0; + border-right: 0; + border-style: solid; + -webkit-box-shadow: none; + box-shadow: none; + color: #555; + margin-right: -4px; + position: relative +} + +#mb-pnl .srch-pnl .btn { + line-height: 1.65; + margin-top: -1px +} + +#mb-pnl .srch-pnl .form-group { + float: left; + margin-left: 15px; + width: 75% +} + +#mb-pnl .srch-pnl .form-group.submit { + margin-left: 0; + width: 15% +} + +#mb-pnl .lng-ofr { + padding-right: 30px; + text-align: right +} + +#mb-pnl .sm-pnl { + background: #0e4164; + padding-left: 15px +} + +#mb-pnl .info-pnl { + background: #193451; + border-top: 2px solid #061e38; + color: #325375!important; + padding-left: 15px +} + +#mb-pnl .active>a { + font-weight: 800 +} + +#mb-pnl .sec-pnl { + background: #cdd4da!important; + display: none!important; + padding-left: 15px +} + +#mb-pnl .sec-pnl a,#mb-pnl .sec-pnl summary { + color: #2e5576!important +} + +#wb-glb-mn { + margin-top: 20px +} + +#wb-glb-mn ul { + min-width: 150px +} + +#wb-glb-mn ul.chvrn { + background: #26374a; + display: inline-block; + float: right; + height: 2.75em +} + +#wb-glb-mn ul.chvrn li { + display: block; + padding-right: 0 +} + +#wb-glb-mn ul.chvrn li a { + color: #fff; + display: block; + font-size: 1.9em; + padding: 5px 20px 0 0 +} + +#wb-glb-mn ul.chvrn span .glyphicon-th-list { + padding-left: 12px; + top: 0 +} + +#wb-glb-mn ul.chvrn:before { + border-bottom: 1.375em solid transparent; + border-left: .6875em solid #f8f8f8; + border-top: 1.375em solid transparent; + content: " "; + display: block; + float: left; + height: 0; + position: relative; + width: 0 +} + +[dir=rtl] #wb-sm .menu>li { + border-right: 1px solid #999 +} + +[dir=rtl] #mb-pnl { + background: 0 0; + padding-left: 0; + padding-right: 15px +} + +[dir=rtl] #mb-pnl .srch-pnl .form-group { + float: right; + margin-left: 0; + margin-right: 15px +} + +[dir=rtl] #mb-pnl .srch-pnl .form-group input { + margin-left: 0; + margin-right: -4px +} + +[dir=rtl] #mb-pnl .srch-pnl .form-group.submit { + margin-right: 0 +} + +[dir=rtl] #mb-pnl .modal-header { + text-align: right +} + +[dir=rtl] #mb-pnl .modal-header:before { + border-left: 0; + border-right: 1em solid transparent; + left: auto; + right: -1em +} + +[dir=rtl] #wb-glb-mn ul.chvrn { + padding-left: 1.5em; + padding-right: 0; + text-align: left +} + +[dir=rtl] #wb-glb-mn ul.chvrn span .glyphicon-th-list { + padding-left: 0; + padding-right: 10px +} + +[dir=rtl] #wb-glb-mn ul.chvrn:before { + border-left: 0; + border-right: 11px solid #f8f8f8; + float: right +} + +#wb-so .btn { + border-radius: 0; + margin-top: 5px +} + +#wb-so a.btn-primary:hover { + background-color: #444 +} + +#wb-bnr+hr { + border-top: 3px solid #38414d; + margin-bottom: 0; + margin-top: 5px +} + +#wb-bnr+hr+.container { + font-size: 1.25rem +} + +h1#wb-cont,hgroup#wb-cont h1 { + border-bottom: 6px solid #a62a1e; + -o-border-image: linear-gradient(to right,#a62a1e 72px,transparent 72px); + border-image: linear-gradient(to right,#a62a1e 72px,transparent 72px); + border-image-slice: 1; + border-left-width: 0; + border-right-width: 0; + border-top-width: 0 +} + +[dir=rtl] h1#wb-cont,[dir=rtl] hgroup#wb-cont h1,h1#wb-cont[dir=rtl],hgroup#wb-cont[dir=rtl] h1 { + border-bottom: 6px solid #a62a1e; + -o-border-image: linear-gradient(to left,#a62a1e 72px,transparent 72px); + border-image: linear-gradient(to left,#a62a1e 72px,transparent 72px); + border-image-slice: 1; + border-left-width: 0; + border-right-width: 0; + border-top-width: 0 +} + +hgroup#wb-cont { + margin-top: 1em +} + +hgroup#wb-cont p:first-child { + color: #555; + font-size: 26px; + font-weight: 500; + margin-bottom: .17em +} + +hgroup#wb-cont h1 { + margin-top: 0 +} + +hgroup#wb-cont p.gc-byline { + font-weight: 700; + margin-bottom: 30px +} + +.gc-contributors { + font-size: 20px; + margin-top: 38px +} + +.gc-contributors h2,.gc-contributors h3,.gc-contributors ul { + font-size: 87%; + margin-top: 0 +} + +.gc-contributors ul { + -webkit-padding-start: 20px; + padding-inline-start:20px} + +.gc-contributors ul li { + font-weight: 700 +} + +/*! GCDS Components complementary style */ +.gcdscardcontainer.section>gcds-grid[equal-row-height]>div.gcdscard>gcds-card { + height: 100% +} + +/*! Components (CSS type only) */ +.fade { + opacity: 0; + -webkit-transition: opacity .15s linear; + transition: opacity .15s linear +} + +.fade.in { + opacity: 1 +} + +.collapse { + display: none +} + +.collapse.in { + display: block +} + +tr.collapse.in { + display: table-row +} + +tbody.collapse.in { + display: table-row-group +} + +.collapsing { + position: relative; + height: 0; + overflow: hidden; + -webkit-transition-property: height,visibility; + transition-property: height,visibility; + -webkit-transition-duration: .35s; + transition-duration: .35s; + -webkit-transition-timing-function: ease; + transition-timing-function: ease +} + +/*! Placeholders */ +.fade.in,.fade.reverse.out,.pop.in { + opacity: 1; + visibility: visible +} + +.fade.out,.fade.reverse.in,.pop.out { + opacity: 0; + visibility: hidden +} + +@-webkit-keyframes spin { + from { + -webkit-transform: rotate(0); + transform: rotate(0) + } + + to { + -webkit-transform: rotate(360deg); + transform: rotate(360deg) + } +} + +@keyframes spin { + from { + -webkit-transform: rotate(0); + transform: rotate(0) + } + + to { + -webkit-transform: rotate(360deg); + transform: rotate(360deg) + } +} + +.out { + display: none!important +} + +.csstransitions .out { + display: block!important +} + +.pop { + -webkit-transform-origin: 50% 50%; + transform-origin: 50% 50% +} + +.pop.in { + -webkit-animation-duration: 350ms; + animation-duration: 350ms; + -webkit-animation-name: popin; + animation-name: popin; + -webkit-transform: scale(1); + transform: scale(1); + visibility: visible +} + +.pop.out { + -webkit-animation-duration: .1s; + animation-duration: .1s; + -webkit-animation-name: fadeout; + animation-name: fadeout; + visibility: hidden +} + +.pop.reverse.in { + -webkit-animation-name: fadein; + animation-name: fadein +} + +.pop.reverse.out { + -webkit-animation-name: popout; + animation-name: popout; + -webkit-transform: scale(.8); + transform: scale(.8) +} + +@-webkit-keyframes popin { + 0% { + opacity: 1; + visibility: visible; + -webkit-transform: scale(.8); + transform: scale(.8) + } + + 100% { + opacity: 0; + visibility: hidden; + -webkit-transform: scale(1); + transform: scale(1) + } +} + +@keyframes popin { + 0% { + opacity: 1; + visibility: visible; + -webkit-transform: scale(.8); + transform: scale(.8) + } + + 100% { + opacity: 0; + visibility: hidden; + -webkit-transform: scale(1); + transform: scale(1) + } +} + +@-webkit-keyframes popout { + 0% { + opacity: 1; + visibility: visible; + -webkit-transform: scale(1); + transform: scale(1) + } + + 100% { + opacity: 0; + visibility: hidden; + -webkit-transform: scale(.8); + transform: scale(.8) + } +} + +@keyframes popout { + 0% { + opacity: 1; + visibility: visible; + -webkit-transform: scale(1); + transform: scale(1) + } + + 100% { + opacity: 0; + visibility: hidden; + -webkit-transform: scale(.8); + transform: scale(.8) + } +} + +.fade { + -webkit-transition: all 0 ease 0; + transition: all 0 ease 0 +} + +.fade.in { + -webkit-animation-duration: 225ms; + animation-duration: 225ms; + -webkit-animation-name: fadein; + animation-name: fadein +} + +.fade.out { + -webkit-animation-duration: 125ms; + animation-duration: 125ms; + -webkit-animation-name: fadeout; + animation-name: fadeout; + z-index: -1 +} + +.fade.out.noheight { + -webkit-animation-name: fadeoutnoheight; + animation-name: fadeoutnoheight; + max-height: 0 +} + +.fade.reverse.in { + -webkit-animation-name: fadeout; + animation-name: fadeout +} + +.fade.reverse.out { + -webkit-animation-name: fadein; + animation-name: fadein +} + +.wb-disable .fade { + opacity: 1 +} + +@-webkit-keyframes fadein { + 0% { + opacity: 0; + visibility: hidden + } + + 100% { + opacity: 1; + visibility: visible + } +} + +@keyframes fadein { + 0% { + opacity: 0; + visibility: hidden + } + + 100% { + opacity: 1; + visibility: visible + } +} + +@-webkit-keyframes fadeout { + 0% { + opacity: 1; + visibility: visible + } + + 100% { + opacity: 0; + visibility: hidden + } +} + +@keyframes fadeout { + 0% { + opacity: 1; + visibility: visible + } + + 100% { + opacity: 0; + visibility: hidden + } +} + +@-webkit-keyframes fadeoutnoheight { + 0% { + opacity: 1; + visibility: visible; + max-height: 100% + } + + 99.9999% { + max-height: 100% + } + + 100% { + opacity: 0; + visibility: hidden; + max-height: 0 + } +} + +@keyframes fadeoutnoheight { + 0% { + opacity: 1; + visibility: visible; + max-height: 100% + } + + 99.9999% { + max-height: 100% + } + + 100% { + opacity: 0; + visibility: hidden; + max-height: 0 + } +} + +.slide.in,.slide.out { + -webkit-animation-duration: 350ms; + animation-duration: 350ms; + -webkit-animation-timing-function: ease-out; + animation-timing-function: ease-out +} + +.slide.out { + -webkit-animation-name: slideouttoleft; + animation-name: slideouttoleft; + -webkit-transform: translateX(-100%); + transform: translateX(-100%); + visibility: hidden +} + +.slide.in { + -webkit-animation-name: slideinfromright; + animation-name: slideinfromright; + -webkit-transform: translateX(0); + transform: translateX(0); + visibility: visible +} + +.slide.reverse.out { + -webkit-animation-name: slideouttoright; + animation-name: slideouttoright; + -webkit-transform: translateX(100%); + transform: translateX(100%) +} + +.slide.reverse.in { + -webkit-animation-name: slideinfromleft; + animation-name: slideinfromleft +} + +@-webkit-keyframes slideinfromright { + 0% { + -webkit-transform: translateX(100%); + transform: translateX(100%) + } + + 100% { + -webkit-transform: translateX(0); + transform: translateX(0) + } +} + +@keyframes slideinfromright { + 0% { + -webkit-transform: translateX(100%); + transform: translateX(100%) + } + + 100% { + -webkit-transform: translateX(0); + transform: translateX(0) + } +} + +@-webkit-keyframes slideinfromleft { + 0% { + -webkit-transform: translateX(-100%); + transform: translateX(-100%) + } + + 100% { + -webkit-transform: translateX(0); + transform: translateX(0) + } +} + +@keyframes slideinfromleft { + 0% { + -webkit-transform: translateX(-100%); + transform: translateX(-100%) + } + + 100% { + -webkit-transform: translateX(0); + transform: translateX(0) + } +} + +@-webkit-keyframes slideouttoleft { + 0% { + -webkit-transform: translateX(0); + transform: translateX(0); + visibility: visible + } + + 99% { + visibility: visible + } + + 100% { + -webkit-transform: translateX(-100%); + transform: translateX(-100%); + visibility: hidden + } +} + +@keyframes slideouttoleft { + 0% { + -webkit-transform: translateX(0); + transform: translateX(0); + visibility: visible + } + + 99% { + visibility: visible + } + + 100% { + -webkit-transform: translateX(-100%); + transform: translateX(-100%); + visibility: hidden + } +} + +@-webkit-keyframes slideouttoright { + 0% { + -webkit-transform: translateX(0); + transform: translateX(0); + visibility: visible + } + + 99% { + visibility: visible + } + + 100% { + -webkit-transform: translateX(100%); + transform: translateX(100%); + visibility: hidden + } +} + +@keyframes slideouttoright { + 0% { + -webkit-transform: translateX(0); + transform: translateX(0); + visibility: visible + } + + 99% { + visibility: visible + } + + 100% { + -webkit-transform: translateX(100%); + transform: translateX(100%); + visibility: hidden + } +} + +.slidefade.out { + -webkit-animation-duration: 225ms; + animation-duration: 225ms; + -webkit-animation-name: slideouttoleft; + animation-name: slideouttoleft; + -webkit-transform: translateX(-100%); + transform: translateX(-100%) +} + +.slidefade.in { + -webkit-animation-duration: .2s; + animation-duration: .2s; + -webkit-animation-name: fadein; + animation-name: fadein; + -webkit-transform: translateX(0); + transform: translateX(0) +} + +.slidefade.reverse.out { + -webkit-animation-name: slideouttoright; + animation-name: slideouttoright; + -webkit-transform: translateX(100%); + transform: translateX(100%) +} + +.slidevert.in,.slidevert.out { + -webkit-animation-duration: 350ms; + animation-duration: 350ms; + -webkit-animation-timing-function: ease-out; + animation-timing-function: ease-out +} + +.slidevert.out { + -webkit-animation-name: slideouttobottom; + animation-name: slideouttobottom; + -webkit-transform: translateY(100%); + transform: translateY(100%); + visibility: hidden +} + +.slidevert.in { + -webkit-animation-name: slideinfromtop; + animation-name: slideinfromtop; + -webkit-transform: translateY(0); + transform: translateY(0); + visibility: visible +} + +.slidevert.reverse.out { + -webkit-animation-name: slideouttotop; + animation-name: slideouttotop; + -webkit-transform: translateY(-100%); + transform: translateY(-100%) +} + +.slidevert.reverse.in { + -webkit-animation-name: slideinfrombottom; + animation-name: slideinfrombottom +} + +@-webkit-keyframes slideinfromtop { + 0% { + -webkit-transform: translateY(-100%); + transform: translateY(-100%) + } + + 100% { + -webkit-transform: translateY(0); + transform: translateY(0) + } +} + +@keyframes slideinfromtop { + 0% { + -webkit-transform: translateY(-100%); + transform: translateY(-100%) + } + + 100% { + -webkit-transform: translateY(0); + transform: translateY(0) + } +} + +@-webkit-keyframes slideouttotop { + 0% { + -webkit-transform: translateY(0); + transform: translateY(0); + visibility: visible + } + + 99% { + visibility: visible + } + + 100% { + -webkit-transform: translateY(-100%); + transform: translateY(-100%); + visibility: hidden + } +} + +@keyframes slideouttotop { + 0% { + -webkit-transform: translateY(0); + transform: translateY(0); + visibility: visible + } + + 99% { + visibility: visible + } + + 100% { + -webkit-transform: translateY(-100%); + transform: translateY(-100%); + visibility: hidden + } +} + +@-webkit-keyframes slideinfrombottom { + 0% { + -webkit-transform: translateY(100%); + transform: translateY(100%) + } + + 100% { + -webkit-transform: translateY(0); + transform: translateY(0) + } +} + +@keyframes slideinfrombottom { + 0% { + -webkit-transform: translateY(100%); + transform: translateY(100%) + } + + 100% { + -webkit-transform: translateY(0); + transform: translateY(0) + } +} + +@-webkit-keyframes slideouttobottom { + 0% { + -webkit-transform: translateY(0); + transform: translateY(0); + visibility: visible + } + + 99% { + visibility: visible + } + + 100% { + -webkit-transform: translateY(100%); + transform: translateY(100%); + visibility: hidden + } +} + +@keyframes slideouttobottom { + 0% { + -webkit-transform: translateY(0); + transform: translateY(0); + visibility: visible + } + + 99% { + visibility: visible + } + + 100% { + -webkit-transform: translateY(100%); + transform: translateY(100%); + visibility: hidden + } +} + +.caret { + display: inline-block; + width: 0; + height: 0; + margin-left: 2px; + vertical-align: middle; + border-top: 4px dashed; + border-right: 4px solid transparent; + border-left: 4px solid transparent +} + +.dropdown,.dropup { + position: relative +} + +.dropdown-toggle:focus { + outline: 0 +} + +.dropdown-menu { + position: absolute; + top: 100%; + left: 0; + z-index: 1000; + display: none; + float: left; + min-width: 160px; + padding: 5px 0; + margin: 2px 0 0; + font-size: 16px; + text-align: left; + list-style: none; + background-color: #fff; + background-clip: padding-box; + border: 1px solid #ccc; + border: 1px solid rgba(0,0,0,.15); + border-radius: 4px; + -webkit-box-shadow: 0 6px 12px rgba(0,0,0,.175); + box-shadow: 0 6px 12px rgba(0,0,0,.175) +} + +.dropdown-menu.pull-right { + right: 0; + left: auto +} + +.dropdown-menu .divider { + height: 1px; + margin: 10.5px 0; + overflow: hidden; + background-color: #e5e5e5 +} + +.dropdown-menu>li>a { + display: block; + padding: 3px 20px; + clear: both; + font-weight: 400; + line-height: 1.4375; + color: #333; + white-space: nowrap +} + +.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover { + color: rgb(38.25,38.25,38.25); + text-decoration: none; + background-color: #f5f5f5 +} + +.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover { + color: #fff; + text-decoration: none; + background-color: #2572b4; + outline: 0 +} + +.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover { + color: #6f6f6f +} + +.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover { + text-decoration: none; + cursor: not-allowed; + background-color: transparent; + background-image: none +} + +.open>.dropdown-menu { + display: block +} + +.open>a { + outline: 0 +} + +.dropdown-menu-right { + right: 0; + left: auto +} + +.dropdown-menu-left { + right: auto; + left: 0 +} + +.dropdown-header { + display: block; + padding: 3px 20px; + font-size: 14px; + line-height: 1.4375; + color: #6f6f6f; + white-space: nowrap +} + +.dropdown-backdrop { + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 990 +} + +.pull-right>.dropdown-menu { + right: 0; + left: auto +} + +.dropup .caret,.navbar-fixed-bottom .dropdown .caret { + content: ""; + border-top: 0; + border-bottom: 4px dashed +} + +.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu { + top: auto; + bottom: 100%; + margin-bottom: 2px +} + +@media (min-width: 768px) { + .navbar-right .dropdown-menu { + right:0; + left: auto + } + + .navbar-right .dropdown-menu-left { + left: 0; + right: auto + } +} + +.btn-group,.btn-group-vertical { + position: relative; + display: inline-block; + vertical-align: middle +} + +.btn-group-vertical>.btn,.btn-group>.btn { + position: relative; + float: left +} + +.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover { + z-index: 2 +} + +.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group { + margin-left: -1px +} + +.btn-toolbar { + margin-left: -5px +} + +.btn-toolbar:after,.btn-toolbar:before { + display: table; + content: " " +} + +.btn-toolbar:after { + clear: both +} + +.btn-toolbar .btn,.btn-toolbar .btn-group,.btn-toolbar .input-group { + float: left +} + +.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group { + margin-left: 5px +} + +.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle) { + border-radius: 0 +} + +.btn-group>.btn:first-child { + margin-left: 0 +} + +.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle) { + border-top-right-radius: 0; + border-bottom-right-radius: 0 +} + +.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child) { + border-top-left-radius: 0; + border-bottom-left-radius: 0 +} + +.btn-group>.btn-group { + float: left +} + +.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn { + border-radius: 0 +} + +.btn-group>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group>.btn-group:first-child:not(:last-child)>.dropdown-toggle { + border-top-right-radius: 0; + border-bottom-right-radius: 0 +} + +.btn-group>.btn-group:last-child:not(:first-child)>.btn:first-child { + border-top-left-radius: 0; + border-bottom-left-radius: 0 +} + +.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle { + outline: 0 +} + +.btn-group>.btn+.dropdown-toggle { + padding-right: 8px; + padding-left: 8px +} + +.btn-group.btn-group-lg>.btn+.dropdown-toggle,.btn-group>.btn-lg+.dropdown-toggle { + padding-right: 12px; + padding-left: 12px +} + +.btn-group.open .dropdown-toggle { + -webkit-box-shadow: inset 0 3px 5px rgba(0,0,0,.125); + box-shadow: inset 0 3px 5px rgba(0,0,0,.125) +} + +.btn-group.open .dropdown-toggle.btn-link { + -webkit-box-shadow: none; + box-shadow: none +} + +.btn .caret { + margin-left: 0 +} + +.btn-group-lg>.btn .caret,.btn-lg .caret { + border-width: 5px 5px 0; + border-bottom-width: 0 +} + +.dropup .btn-group-lg>.btn .caret,.dropup .btn-lg .caret { + border-width: 0 5px 5px +} + +.btn-group-vertical>.btn,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn { + display: block; + float: none; + width: 100%; + max-width: 100% +} + +.btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before { + display: table; + content: " " +} + +.btn-group-vertical>.btn-group:after { + clear: both +} + +.btn-group-vertical>.btn-group>.btn { + float: none +} + +.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group { + margin-top: -1px; + margin-left: 0 +} + +.btn-group-vertical>.btn:not(:first-child):not(:last-child) { + border-radius: 0 +} + +.btn-group-vertical>.btn:first-child:not(:last-child) { + border-top-left-radius: 4px; + border-top-right-radius: 4px; + border-bottom-right-radius: 0; + border-bottom-left-radius: 0 +} + +.btn-group-vertical>.btn:last-child:not(:first-child) { + border-top-left-radius: 0; + border-top-right-radius: 0; + border-bottom-right-radius: 4px; + border-bottom-left-radius: 4px +} + +.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn { + border-radius: 0 +} + +.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle { + border-bottom-right-radius: 0; + border-bottom-left-radius: 0 +} + +.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child { + border-top-left-radius: 0; + border-top-right-radius: 0 +} + +.btn-group-justified { + display: table; + width: 100%; + table-layout: fixed; + border-collapse: separate +} + +.btn-group-justified>.btn,.btn-group-justified>.btn-group { + display: table-cell; + float: none; + width: 1% +} + +.btn-group-justified>.btn-group .btn { + width: 100% +} + +.btn-group-justified>.btn-group .dropdown-menu { + left: auto +} + +[data-toggle=buttons]>.btn input[type=checkbox],[data-toggle=buttons]>.btn input[type=radio],[data-toggle=buttons]>.btn-group>.btn input[type=checkbox],[data-toggle=buttons]>.btn-group>.btn input[type=radio] { + position: absolute; + clip: rect(0,0,0,0); + pointer-events: none +} + +.input-group { + position: relative; + display: table; + border-collapse: separate +} + +.input-group[class*=col-] { + float: none; + padding-right: 0; + padding-left: 0 +} + +.input-group .form-control { + position: relative; + z-index: 2; + float: left; + width: 100%; + margin-bottom: 0 +} + +.input-group .form-control:focus { + z-index: 3 +} + +.input-group .form-control,.input-group-addon,.input-group-btn { + display: table-cell +} + +.input-group .form-control:not(:first-child):not(:last-child),.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child) { + border-radius: 0 +} + +.input-group-addon,.input-group-btn { + width: 1%; + white-space: nowrap; + vertical-align: middle +} + +.input-group-addon { + padding: 10px 14px; + font-size: 16px; + font-weight: 400; + line-height: 1; + color: rgb(85.425,85.425,85.425); + text-align: center; + background-color: rgb(238.425,238.425,238.425); + border: 1px solid #ccc; + border-radius: 4px +} + +.input-group-addon.input-sm,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.input-group-addon.btn { + padding: 5px 10px; + font-size: 14px; + border-radius: 3px +} + +.input-group-addon.input-lg,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.input-group-addon.btn { + padding: 10px 16px; + font-size: 18px; + border-radius: 6px +} + +.input-group-addon input[type=checkbox],.input-group-addon input[type=radio] { + margin-top: 0 +} + +.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn-group:not(:last-child)>.btn,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle) { + border-top-right-radius: 0; + border-bottom-right-radius: 0 +} + +.input-group-addon:first-child { + border-right: 0 +} + +.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:first-child>.btn-group:not(:first-child)>.btn,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle { + border-top-left-radius: 0; + border-bottom-left-radius: 0 +} + +.input-group-addon:last-child { + border-left: 0 +} + +.input-group-btn { + position: relative; + font-size: 0; + white-space: nowrap +} + +.input-group-btn>.btn { + position: relative +} + +.input-group-btn>.btn+.btn { + margin-left: -1px +} + +.input-group-btn>.btn:active,.input-group-btn>.btn:focus,.input-group-btn>.btn:hover { + z-index: 2 +} + +.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group { + margin-right: -1px +} + +.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group { + z-index: 2; + margin-left: -1px +} + +.nav { + padding-left: 0; + margin-bottom: 0; + list-style: none +} + +.nav:after,.nav:before { + display: table; + content: " " +} + +.nav:after { + clear: both +} + +.nav>li { + position: relative; + display: block +} + +.nav>li>a { + position: relative; + display: block; + padding: 10px 15px +} + +.nav>li>a:focus,.nav>li>a:hover { + text-decoration: none; + background-color: rgb(238.425,238.425,238.425) +} + +.nav>li.disabled>a { + color: #6f6f6f +} + +.nav>li.disabled>a:focus,.nav>li.disabled>a:hover { + color: #6f6f6f; + text-decoration: none; + cursor: not-allowed; + background-color: transparent +} + +.nav .open>a,.nav .open>a:focus,.nav .open>a:hover { + background-color: rgb(238.425,238.425,238.425); + border-color: #295376 +} + +.nav .nav-divider { + height: 1px; + margin: 10.5px 0; + overflow: hidden; + background-color: #e5e5e5 +} + +.nav>li>a>img { + max-width: none +} + +.nav-tabs { + border-bottom: 1px solid #ddd +} + +.nav-tabs>li { + float: left; + margin-bottom: -1px +} + +.nav-tabs>li>a { + margin-right: 2px; + line-height: 1.4375; + border: 1px solid transparent; + border-radius: 4px 4px 0 0 +} + +.nav-tabs>li>a:hover { + border-color: rgb(238.425,238.425,238.425) rgb(238.425,238.425,238.425) #ddd +} + +.nav-tabs>li.active>a,.nav-tabs>li.active>a:focus,.nav-tabs>li.active>a:hover { + color: rgb(85.425,85.425,85.425); + cursor: default; + background-color: #fff; + border: 1px solid #ddd; + border-bottom-color: transparent +} + +.nav-pills>li { + float: left +} + +.nav-pills>li>a { + border-radius: 4px +} + +.nav-pills>li+li { + margin-left: 2px +} + +.nav-pills>li.active>a,.nav-pills>li.active>a:focus,.nav-pills>li.active>a:hover { + color: #fff; + background-color: #2572b4 +} + +.nav-stacked>li { + float: none +} + +.nav-stacked>li+li { + margin-top: 2px; + margin-left: 0 +} + +.nav-justified,.nav-tabs.nav-justified { + width: 100% +} + +.nav-justified>li,.nav-tabs.nav-justified>li { + float: none +} + +.nav-justified>li>a,.nav-tabs.nav-justified>li>a { + margin-bottom: 5px; + text-align: center +} + +.nav-justified>.dropdown .dropdown-menu { + top: auto; + left: auto +} + +@media (min-width: 768px) { + .nav-justified>li,.nav-tabs.nav-justified>li { + display:table-cell; + width: 1% + } + + .nav-justified>li>a,.nav-tabs.nav-justified>li>a { + margin-bottom: 0 + } +} + +.nav-tabs-justified,.nav-tabs.nav-justified { + border-bottom: 0 +} + +.nav-tabs-justified>li>a,.nav-tabs.nav-justified>li>a { + margin-right: 0; + border-radius: 4px +} + +.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover,.nav-tabs.nav-justified>.active>a { + border: 1px solid #ddd +} + +@media (min-width: 768px) { + .nav-tabs-justified>li>a,.nav-tabs.nav-justified>li>a { + border-bottom:1px solid #ddd; + border-radius: 4px 4px 0 0 + } + + .nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover,.nav-tabs.nav-justified>.active>a { + border-bottom-color: #fff + } +} + +.tab-content>.tab-pane { + display: none +} + +.tab-content>.active { + display: block +} + +.nav-tabs .dropdown-menu { + margin-top: -1px; + border-top-left-radius: 0; + border-top-right-radius: 0 +} + +.navbar { + position: relative; + min-height: 50px; + margin-bottom: 23px; + border: 1px solid transparent +} + +.navbar:after,.navbar:before { + display: table; + content: " " +} + +.navbar:after { + clear: both +} + +@media (min-width: 768px) { + .navbar { + border-radius:4px + } +} + +.navbar-header:after,.navbar-header:before { + display: table; + content: " " +} + +.navbar-header:after { + clear: both +} + +@media (min-width: 768px) { + .navbar-header { + float:left + } +} + +.navbar-collapse { + padding-right: 15px; + padding-left: 15px; + overflow-x: visible; + border-top: 1px solid transparent; + -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.1); + box-shadow: inset 0 1px 0 rgba(255,255,255,.1) +} + +.navbar-collapse:after,.navbar-collapse:before { + display: table; + content: " " +} + +.navbar-collapse:after { + clear: both +} + +.navbar-collapse { + -webkit-overflow-scrolling: touch +} + +.navbar-collapse.in { + overflow-y: auto +} + +@media (min-width: 768px) { + .navbar-collapse { + width:auto; + border-top: 0; + -webkit-box-shadow: none; + box-shadow: none + } + + .navbar-collapse.collapse { + display: block!important; + height: auto!important; + padding-bottom: 0; + overflow: visible!important + } + + .navbar-collapse.in { + overflow-y: visible + } + + .navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse { + padding-right: 0; + padding-left: 0 + } +} + +.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse { + max-height: 340px +} + +@media (max-device-width: 480px) and (orientation:landscape) { + .navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse { + max-height:200px + } +} + +.navbar-fixed-bottom,.navbar-fixed-top { + position: fixed; + right: 0; + left: 0; + z-index: 1030 +} + +@media (min-width: 768px) { + .navbar-fixed-bottom,.navbar-fixed-top { + border-radius:0 + } +} + +.navbar-fixed-top { + top: 0; + border-width: 0 0 1px +} + +.navbar-fixed-bottom { + bottom: 0; + margin-bottom: 0; + border-width: 1px 0 0 +} + +.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header { + margin-right: -15px; + margin-left: -15px +} + +@media (min-width: 768px) { + .container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header { + margin-right:0; + margin-left: 0 + } +} + +.navbar-static-top { + z-index: 1000; + border-width: 0 0 1px +} + +@media (min-width: 768px) { + .navbar-static-top { + border-radius:0 + } +} + +.navbar-brand { + float: left; + height: 50px; + padding: 13.5px 15px; + font-size: 18px; + line-height: 23px +} + +.navbar-brand:focus,.navbar-brand:hover { + text-decoration: none +} + +.navbar-brand>img { + display: block +} + +@media (min-width: 768px) { + .navbar>.container .navbar-brand,.navbar>.container-fluid .navbar-brand { + margin-left:-15px + } +} + +.navbar-toggle { + position: relative; + float: right; + padding: 9px 10px; + margin-right: 15px; + margin-top: 8px; + margin-bottom: 8px; + background-color: transparent; + background-image: none; + border: 1px solid transparent; + border-radius: 4px +} + +.navbar-toggle:focus { + outline: 0 +} + +.navbar-toggle .icon-bar { + display: block; + width: 22px; + height: 2px; + border-radius: 1px +} + +.navbar-toggle .icon-bar+.icon-bar { + margin-top: 4px +} + +@media (min-width: 768px) { + .navbar-toggle { + display:none + } +} + +.navbar-nav { + margin: 6.75px -15px +} + +.navbar-nav>li>a { + padding-top: 10px; + padding-bottom: 10px; + line-height: 23px +} + +@media (max-width: 767px) { + .navbar-nav .open .dropdown-menu { + position:static; + float: none; + width: auto; + margin-top: 0; + background-color: transparent; + border: 0; + -webkit-box-shadow: none; + box-shadow: none + } + + .navbar-nav .open .dropdown-menu .dropdown-header,.navbar-nav .open .dropdown-menu>li>a { + padding: 5px 15px 5px 25px + } + + .navbar-nav .open .dropdown-menu>li>a { + line-height: 23px + } + + .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-nav .open .dropdown-menu>li>a:hover { + background-image: none + } +} + +@media (min-width: 768px) { + .navbar-nav { + float:left; + margin: 0 + } + + .navbar-nav>li { + float: left + } + + .navbar-nav>li>a { + padding-top: 13.5px; + padding-bottom: 13.5px + } +} + +.navbar-form { + padding: 10px 15px; + margin-right: -15px; + margin-left: -15px; + border-top: 1px solid transparent; + border-bottom: 1px solid transparent; + -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1); + box-shadow: inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1) +} + +@media (min-width: 768px) { + .navbar-form .form-group { + display:inline-block; + margin-bottom: 0; + vertical-align: middle + } + + .navbar-form .form-control { + display: inline-block; + width: auto; + vertical-align: middle + } + + .navbar-form .form-control-static { + display: inline-block + } + + .navbar-form .input-group { + display: inline-table; + vertical-align: middle + } + + .navbar-form .input-group .form-control,.navbar-form .input-group .input-group-addon,.navbar-form .input-group .input-group-btn { + width: auto + } + + .navbar-form .input-group>.form-control { + width: 100% + } + + .navbar-form .control-label { + margin-bottom: 0; + vertical-align: middle + } + + .navbar-form .checkbox,.navbar-form .radio { + display: inline-block; + margin-top: 0; + margin-bottom: 0; + vertical-align: middle + } + + .navbar-form .checkbox label,.navbar-form .radio label { + padding-left: 0 + } + + .navbar-form .checkbox input[type=checkbox],.navbar-form .radio input[type=radio] { + position: relative; + margin-left: 0 + } + + .navbar-form .has-feedback .form-control-feedback { + top: 0 + } +} + +@media (max-width: 767px) { + .navbar-form .form-group { + margin-bottom:5px + } + + .navbar-form .form-group:last-child { + margin-bottom: 0 + } +} + +.navbar-form { + margin-top: 6.5px; + margin-bottom: 6.5px +} + +@media (min-width: 768px) { + .navbar-form { + width:auto; + padding-top: 0; + padding-bottom: 0; + margin-right: 0; + margin-left: 0; + border: 0; + -webkit-box-shadow: none; + box-shadow: none + } +} + +.navbar-nav>li>.dropdown-menu { + margin-top: 0; + border-top-left-radius: 0; + border-top-right-radius: 0 +} + +.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu { + margin-bottom: 0; + border-top-left-radius: 4px; + border-top-right-radius: 4px; + border-bottom-right-radius: 0; + border-bottom-left-radius: 0 +} + +.navbar-btn { + margin-top: 6.5px; + margin-bottom: 6.5px +} + +.btn-group-sm>.navbar-btn.btn,.navbar-btn.btn-sm { + margin-top: 8.5px; + margin-bottom: 8.5px +} + +.btn-group-xs>.navbar-btn.btn,.navbar-btn.btn-xs { + margin-top: 14px; + margin-bottom: 14px +} + +.navbar-text { + margin-top: 13.5px; + margin-bottom: 13.5px +} + +@media (min-width: 768px) { + .navbar-text { + float:left; + margin-right: 15px; + margin-left: 15px + } +} + +@media (min-width: 768px) { + .navbar-left { + float:left!important + } + + .navbar-right { + float: right!important; + margin-right: -15px + } + + .navbar-right~.navbar-right { + margin-right: 0 + } +} + +.navbar-default { + background-color: #f8f8f8; + border-color: rgb(231.425,231.425,231.425) +} + +.navbar-default .navbar-brand { + color: #777 +} + +.navbar-default .navbar-brand:focus,.navbar-default .navbar-brand:hover { + color: rgb(93.5,93.5,93.5); + background-color: transparent +} + +.navbar-default .navbar-text { + color: #777 +} + +.navbar-default .navbar-nav>li>a { + color: #777 +} + +.navbar-default .navbar-nav>li>a:focus,.navbar-default .navbar-nav>li>a:hover { + color: #333; + background-color: transparent +} + +.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:focus,.navbar-default .navbar-nav>.active>a:hover { + color: #555; + background-color: rgb(231.425,231.425,231.425) +} + +.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:focus,.navbar-default .navbar-nav>.disabled>a:hover { + color: #ccc; + background-color: transparent +} + +.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:focus,.navbar-default .navbar-nav>.open>a:hover { + color: #555; + background-color: rgb(231.425,231.425,231.425) +} + +@media (max-width: 767px) { + .navbar-default .navbar-nav .open .dropdown-menu>li>a { + color:#777 + } + + .navbar-default .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover { + color: #333; + background-color: transparent + } + + .navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover { + color: #555; + background-color: rgb(231.425,231.425,231.425) + } + + .navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover { + color: #ccc; + background-color: transparent + } +} + +.navbar-default .navbar-toggle { + border-color: #ddd +} + +.navbar-default .navbar-toggle:focus,.navbar-default .navbar-toggle:hover { + background-color: #ddd +} + +.navbar-default .navbar-toggle .icon-bar { + background-color: #888 +} + +.navbar-default .navbar-collapse,.navbar-default .navbar-form { + border-color: rgb(231.425,231.425,231.425) +} + +.navbar-default .navbar-link { + color: #777 +} + +.navbar-default .navbar-link:hover { + color: #333 +} + +.navbar-default .btn-link { + color: #777 +} + +.navbar-default .btn-link:focus,.navbar-default .btn-link:hover { + color: #333 +} + +.navbar-default .btn-link[disabled]:focus,.navbar-default .btn-link[disabled]:hover,fieldset[disabled] .navbar-default .btn-link:focus,fieldset[disabled] .navbar-default .btn-link:hover { + color: #ccc +} + +.navbar-inverse { + background-color: #222; + border-color: rgb(8.5,8.5,8.5) +} + +.navbar-inverse .navbar-brand { + color: rgb(149.25,149.25,149.25) +} + +.navbar-inverse .navbar-brand:focus,.navbar-inverse .navbar-brand:hover { + color: #fff; + background-color: transparent +} + +.navbar-inverse .navbar-text { + color: rgb(149.25,149.25,149.25) +} + +.navbar-inverse .navbar-nav>li>a { + color: rgb(149.25,149.25,149.25) +} + +.navbar-inverse .navbar-nav>li>a:focus,.navbar-inverse .navbar-nav>li>a:hover { + color: #fff; + background-color: transparent +} + +.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:focus,.navbar-inverse .navbar-nav>.active>a:hover { + color: #fff; + background-color: rgb(8.5,8.5,8.5) +} + +.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:focus,.navbar-inverse .navbar-nav>.disabled>a:hover { + color: #444; + background-color: transparent +} + +.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:focus,.navbar-inverse .navbar-nav>.open>a:hover { + color: #fff; + background-color: rgb(8.5,8.5,8.5) +} + +@media (max-width: 767px) { + .navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header { + border-color:rgb(8.5,8.5,8.5) + } + + .navbar-inverse .navbar-nav .open .dropdown-menu .divider { + background-color: rgb(8.5,8.5,8.5) + } + + .navbar-inverse .navbar-nav .open .dropdown-menu>li>a { + color: rgb(149.25,149.25,149.25) + } + + .navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover { + color: #fff; + background-color: transparent + } + + .navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover { + color: #fff; + background-color: rgb(8.5,8.5,8.5) + } + + .navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover { + color: #444; + background-color: transparent + } +} + +.navbar-inverse .navbar-toggle { + border-color: #333 +} + +.navbar-inverse .navbar-toggle:focus,.navbar-inverse .navbar-toggle:hover { + background-color: #333 +} + +.navbar-inverse .navbar-toggle .icon-bar { + background-color: #fff +} + +.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form { + border-color: rgb(16.15,16.15,16.15) +} + +.navbar-inverse .navbar-link { + color: rgb(149.25,149.25,149.25) +} + +.navbar-inverse .navbar-link:hover { + color: #fff +} + +.navbar-inverse .btn-link { + color: rgb(149.25,149.25,149.25) +} + +.navbar-inverse .btn-link:focus,.navbar-inverse .btn-link:hover { + color: #fff +} + +.navbar-inverse .btn-link[disabled]:focus,.navbar-inverse .btn-link[disabled]:hover,fieldset[disabled] .navbar-inverse .btn-link:focus,fieldset[disabled] .navbar-inverse .btn-link:hover { + color: #444 +} + +.breadcrumb { + padding: 8px 15px; + margin-bottom: 23px; + list-style: none; + background-color: transparent; + border-radius: 4px +} + +.breadcrumb>li { + display: inline-block +} + +.breadcrumb>li+li:before { + padding: 0 5px; + color: #ccc; + content: "/ " +} + +.breadcrumb>.active { + color: #6f6f6f +} + +.pagination { + display: inline-block; + padding-left: 0; + margin: 23px 0; + border-radius: 4px +} + +.pagination>li { + display: inline +} + +.pagination>li>a,.pagination>li>span { + position: relative; + float: left; + padding: 10px 14px; + margin-left: -1px; + line-height: 1.4375; + color: #335075; + text-decoration: none; + background-color: #eaebed; + border: 1px solid rgb(220.2692307692,221.9230769231,225.2307692308) +} + +.pagination>li>a:focus,.pagination>li>a:hover,.pagination>li>span:focus,.pagination>li>span:hover { + z-index: 2; + color: #335075; + background-color: rgb(212.0307692308,214.0769230769,218.1692307692); + border-color: rgb(187.3153846154,190.5384615385,196.9846153846) +} + +.pagination>li:first-child>a,.pagination>li:first-child>span { + margin-left: 0; + border-top-left-radius: 4px; + border-bottom-left-radius: 4px +} + +.pagination>li:last-child>a,.pagination>li:last-child>span { + border-top-right-radius: 4px; + border-bottom-right-radius: 4px +} + +.pagination>.active>a,.pagination>.active>a:focus,.pagination>.active>a:hover,.pagination>.active>span,.pagination>.active>span:focus,.pagination>.active>span:hover { + z-index: 3; + color: #fff; + cursor: default; + background-color: #2572b4; + border-color: #2572b4 +} + +.pagination>.disabled>a,.pagination>.disabled>a:focus,.pagination>.disabled>a:hover,.pagination>.disabled>span,.pagination>.disabled>span:focus,.pagination>.disabled>span:hover { + color: #6f6f6f; + cursor: not-allowed; + background-color: #fff; + border-color: #ddd +} + +.pagination-lg>li>a,.pagination-lg>li>span { + padding: 10px 16px; + font-size: 18px; + line-height: 1.3333333 +} + +.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span { + border-top-left-radius: 6px; + border-bottom-left-radius: 6px +} + +.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span { + border-top-right-radius: 6px; + border-bottom-right-radius: 6px +} + +.pagination-sm>li>a,.pagination-sm>li>span { + padding: 5px 10px; + font-size: 14px; + line-height: 1.5 +} + +.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span { + border-top-left-radius: 3px; + border-bottom-left-radius: 3px +} + +.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span { + border-top-right-radius: 3px; + border-bottom-right-radius: 3px +} + +.pager { + padding-left: 0; + margin: 23px 0; + text-align: center; + list-style: none +} + +.pager:after,.pager:before { + display: table; + content: " " +} + +.pager:after { + clear: both +} + +.pager li { + display: inline +} + +.pager li>a,.pager li>span { + display: inline-block; + padding: 5px 14px; + background-color: #eaebed; + border: 1px solid rgb(220.2692307692,221.9230769231,225.2307692308); + border-radius: 4px +} + +.pager li>a:focus,.pager li>a:hover { + text-decoration: none; + background-color: rgb(212.0307692308,214.0769230769,218.1692307692) +} + +.pager .next>a,.pager .next>span { + float: right +} + +.pager .previous>a,.pager .previous>span { + float: left +} + +.pager .disabled>a,.pager .disabled>a:focus,.pager .disabled>a:hover,.pager .disabled>span { + color: #6f6f6f; + cursor: not-allowed; + background-color: #eaebed +} + +.label { + display: inline; + padding: .2em .6em .3em; + font-size: 75%; + font-weight: 700; + line-height: 1; + color: #fff; + text-align: center; + white-space: nowrap; + vertical-align: baseline; + border-radius: .25em +} + +.label:empty { + display: none +} + +.btn .label { + position: relative; + top: -1px +} + +a.label:focus,a.label:hover { + color: #fff; + text-decoration: none; + cursor: pointer +} + +.label-default { + background-color: #6f6f6f +} + +.label-default[href]:focus,.label-default[href]:hover { + background-color: rgb(85.5,85.5,85.5) +} + +.label-primary { + background-color: #2572b4 +} + +.label-primary[href]:focus,.label-primary[href]:hover { + background-color: rgb(28.3041474654,87.2073732719,137.6958525346) +} + +.label-success { + background-color: #1b6c1c +} + +.label-success[href]:focus,.label-success[href]:hover { + background-color: rgb(16.8,67.2,17.4222222222) +} + +.label-info { + background-color: #4d4d4d +} + +.label-info[href]:focus,.label-info[href]:hover { + background-color: rgb(51.5,51.5,51.5) +} + +.label-warning { + background-color: #f2d40d +} + +.label-warning[href]:focus,.label-warning[href]:hover { + background-color: rgb(193.6,169.6,10.4) +} + +.label-danger { + background-color: #bc3331 +} + +.label-danger[href]:focus,.label-danger[href]:hover { + background-color: rgb(147.5443037975,40.0253164557,38.4556962025) +} + +.alert { + padding: 15px; + margin-bottom: 23px; + border: 1px solid transparent; + border-radius: 4px +} + +.alert h4 { + margin-top: 0; + color: inherit +} + +.alert .alert-link { + font-weight: 700 +} + +.alert>p,.alert>ul { + margin-bottom: 0 +} + +.alert>p+p { + margin-top: 5px +} + +.alert-dismissable,.alert-dismissible { + padding-right: 35px +} + +.alert-dismissable .close,.alert-dismissible .close { + position: relative; + top: -2px; + right: -21px; + color: inherit +} + +.alert-success { + color: #3c763d; + background-color: #dff0d8; + border-color: rgb(213.7777777778,232.9166666667,197.5833333333) +} + +.alert-success hr { + border-top-color: rgb(200.5555555556,225.8333333333,179.1666666667) +} + +.alert-success .alert-link { + color: rgb(42.808988764,84.191011236,43.5224719101) +} + +.alert-info { + color: #31708f; + background-color: #d9edf7; + border-color: rgb(187.5086956522,231.9108695652,240.7913043478) +} + +.alert-info hr { + border-top-color: rgb(166.4434782609,224.7043478261,236.3565217391) +} + +.alert-info .alert-link { + color: rgb(35.984375,82.25,105.015625) +} + +.alert-warning { + color: #8a6d3b; + background-color: #fcf8e3; + border-color: rgb(249.5322580645,234.6478494624,203.9677419355) +} + +.alert-warning hr { + border-top-color: rgb(247.064516129,225.4623655914,180.935483871) +} + +.alert-warning .alert-link { + color: rgb(102.2741116751,80.7817258883,43.7258883249) +} + +.alert-danger { + color: #a94442; + background-color: #f2dede; + border-color: rgb(234.7934782609,203.7065217391,208.8876811594) +} + +.alert-danger hr { + border-top-color: rgb(227.5869565217,185.4130434783,192.4420289855) +} + +.alert-danger .alert-link { + color: rgb(132.3234042553,53.2425531915,51.6765957447) +} + +.alert,.label { + border-radius: 0; + border-style: solid; + border-width: 0 0 0 4px +} + +.alert-danger,.alert-info,.alert-success,.alert-warning,.label-danger,.label-danger[href]:active,.label-danger[href]:focus,.label-danger[href]:hover,.label-default,.label-default[href]:active,.label-default[href]:focus,.label-default[href]:hover,.label-info,.label-info[href]:active,.label-info[href]:focus,.label-info[href]:hover,.label-primary,.label-primary[href]:active,.label-primary[href]:focus,.label-primary[href]:hover,.label-success,.label-success[href]:active,.label-success[href]:focus,.label-success[href]:hover,.label-warning,.label-warning[href]:active,.label-warning[href]:focus,.label-warning[href]:hover { + color: #000 +} + +.label-danger[href]:active,.label-danger[href]:focus,.label-danger[href]:hover,.label-default[href]:active,.label-default[href]:focus,.label-default[href]:hover,.label-info[href]:active,.label-info[href]:focus,.label-info[href]:hover,.label-primary[href]:active,.label-primary[href]:focus,.label-primary[href]:hover,.label-success[href]:active,.label-success[href]:focus,.label-success[href]:hover,.label-warning[href]:active,.label-warning[href]:focus,.label-warning[href]:hover { + text-decoration: underline +} + +.label-default,.label-default[href]:active,.label-default[href]:focus,.label-default[href]:hover { + background: #eee; + border-color: #acacac +} + +.label-primary,.label-primary[href]:active,.label-primary[href]:focus,.label-primary[href]:hover { + background: #e8f2f4; + border-color: #083c6c +} + +.alert-success,.label-success,.label-success[href]:active,.label-success[href]:focus,.label-success[href]:hover,details.alert.alert-success,details.alert[open].alert-success { + background: #d8eeca; + border-color: #278400 +} + +.alert-info,.label-info,.label-info[href]:active,.label-info[href]:focus,.label-info[href]:hover,details.alert.alert-info,details.alert[open].alert-info { + background: #d7faff; + border-color: #269abc +} + +.alert-warning,.label-warning,.label-warning[href]:active,.label-warning[href]:focus,.label-warning[href]:hover,details.alert.alert-warning,details.alert[open].alert-warning { + background: #f9f4d4; + border-color: #f90 +} + +.alert-danger,.label-danger,.label-danger[href]:active,.label-danger[href]:focus,.label-danger[href]:hover,details.alert.alert-danger,details.alert[open].alert-danger { + background: #f3e9e8; + border-color: #d3080c +} + +.alert>:first-child { + margin-left: 1.2em; + margin-top: auto +} + +.alert>:first-child:before { + display: inline-block; + font-family: "Glyphicons Halflings"; + margin-left: -1.3em; + position: absolute +} + +.alert>em:first-child,.alert>span:first-child,.alert>strong:first-child { + display: inline-block +} + +.alert-success>:first-child:before { + color: #278400; + content: "\e084" +} + +.alert-info>:first-child:before { + color: #269abc; + content: "\e086" +} + +.alert-warning>:first-child:before { + color: #f90; + content: "\e107" +} + +.alert-danger>:first-child:before { + color: #d3080c; + content: "\e101" +} + +[dir=rtl] .alert>:first-child { + margin-left: auto; + margin-right: 1.2em +} + +[dir=rtl] .alert>:first-child:before { + margin-left: auto; + margin-right: -1.3em +} + +[dir=rtl] details.alert { + padding-right: 45px +} + +[dir=rtl] details.alert:before { + margin-right: -1.3em +} + +[dir=rtl] details.alert>* { + margin-right: .7em +} + +[dir=rtl] details.alert>:first-child { + margin-right: .4em +} + +.badge { + display: inline-block; + min-width: 10px; + padding: 3px 7px; + font-size: 14px; + font-weight: 700; + line-height: 1; + color: #fff; + text-align: center; + white-space: nowrap; + vertical-align: middle; + background-color: #6f6f6f; + border-radius: 10px +} + +.badge:empty { + display: none +} + +.btn .badge { + position: relative; + top: -1px +} + +.btn-group-xs>.btn .badge,.btn-xs .badge { + top: 0; + padding: 1px 5px +} + +.list-group-item.active>.badge,.nav-pills>.active>a>.badge { + color: #295376; + background-color: #fff +} + +.list-group-item>.badge { + float: right +} + +.list-group-item>.badge+.badge { + margin-right: 5px +} + +.nav-pills>li>a>.badge { + margin-left: 3px +} + +a.badge:focus,a.badge:hover { + color: #fff; + text-decoration: none; + cursor: pointer +} + +.badge.badge-dept { + background-color: #eee; + color: #333; + font-size: 2em; + margin: 20px 10px 0 +} + +.jumbotron { + padding-top: 30px; + padding-bottom: 30px; + margin-bottom: 30px; + color: inherit; + background-color: rgb(238.425,238.425,238.425) +} + +.jumbotron .h1,.jumbotron h1 { + color: inherit +} + +.jumbotron p { + margin-bottom: 15px; + font-size: 24px; + font-weight: 200 +} + +.jumbotron>hr { + border-top-color: rgb(212.925,212.925,212.925) +} + +.container .jumbotron,.container-fluid .jumbotron { + padding-right: 15px; + padding-left: 15px; + border-radius: 6px +} + +.jumbotron .container { + max-width: 100% +} + +@media screen and (min-width: 768px) { + .jumbotron { + padding-top:48px; + padding-bottom: 48px + } + + .container .jumbotron,.container-fluid .jumbotron { + padding-right: 60px; + padding-left: 60px + } + + .jumbotron .h1,.jumbotron h1 { + font-size: 72px + } +} + +.thumbnail { + display: block; + padding: 4px; + margin-bottom: 23px; + line-height: 1.4375; + background-color: #fff; + border: 1px solid #ddd; + border-radius: 4px; + -webkit-transition: border .2s ease-in-out; + transition: border .2s ease-in-out +} + +.thumbnail a>img,.thumbnail>img { + display: block; + max-width: 100%; + height: auto; + margin-right: auto; + margin-left: auto +} + +.thumbnail .caption { + padding: 9px; + color: #333 +} + +a.thumbnail.active,a.thumbnail:focus,a.thumbnail:hover { + border-color: #295376 +} + +.thumbnail { + background: #eaebed; + border-color: #eee; + border-radius: 0; + padding: 5px +} + +.thumbnail:hover img { + -webkit-box-shadow: 1px 1px 5px #999; + box-shadow: 1px 1px 5px #999 +} + +@-webkit-keyframes progress-bar-stripes { + from { + background-position: 40px 0 + } + + to { + background-position: 0 0 + } +} + +@keyframes progress-bar-stripes { + from { + background-position: 40px 0 + } + + to { + background-position: 0 0 + } +} + +.progress { + height: 23px; + margin-bottom: 23px; + overflow: hidden; + background-color: #f5f5f5; + border-radius: 4px; + -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,.1); + box-shadow: inset 0 1px 2px rgba(0,0,0,.1) +} + +.progress-bar { + float: left; + width: 0%; + height: 100%; + font-size: 14px; + line-height: 23px; + color: #fff; + text-align: center; + background-color: #2572b4; + -webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,.15); + box-shadow: inset 0 -1px 0 rgba(0,0,0,.15); + -webkit-transition: width .6s ease; + transition: width .6s ease +} + +.progress-bar-striped,.progress-striped .progress-bar { + background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent); + background-size: 40px 40px +} + +.progress-bar.active,.progress.active .progress-bar { + -webkit-animation: progress-bar-stripes 2s linear infinite; + animation: progress-bar-stripes 2s linear infinite +} + +.progress-bar-success { + background-color: #1b6c1c +} + +.progress-striped .progress-bar-success { + background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent) +} + +.progress-bar-info { + background-color: #4d4d4d +} + +.progress-striped .progress-bar-info { + background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent) +} + +.progress-bar-warning { + background-color: #f2d40d +} + +.progress-striped .progress-bar-warning { + background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent) +} + +.progress-bar-danger { + background-color: #bc3331 +} + +.progress-striped .progress-bar-danger { + background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent) +} + +.media { + margin-top: 15px +} + +.media:first-child { + margin-top: 0 +} + +.media,.media-body { + overflow: hidden; + zoom:1} + +.media-body { + width: 10000px +} + +.media-object { + display: block +} + +.media-object.img-thumbnail { + max-width: none +} + +.media-right,.media>.pull-right { + padding-left: 10px +} + +.media-left,.media>.pull-left { + padding-right: 10px +} + +.media-body,.media-left,.media-right { + display: table-cell; + vertical-align: top +} + +.media-middle { + vertical-align: middle +} + +.media-bottom { + vertical-align: bottom +} + +.media-heading { + margin-top: 0; + margin-bottom: 5px +} + +.media-list { + padding-left: 0; + list-style: none +} + +.list-group { + padding-left: 0; + margin-bottom: 20px +} + +.list-group-item { + position: relative; + display: block; + padding: 10px 15px; + margin-bottom: -1px; + background-color: #fff; + border: 1px solid #ddd +} + +.list-group-item:first-child { + border-top-left-radius: 4px; + border-top-right-radius: 4px +} + +.list-group-item:last-child { + margin-bottom: 0; + border-bottom-right-radius: 4px; + border-bottom-left-radius: 4px +} + +.list-group-item.disabled,.list-group-item.disabled:focus,.list-group-item.disabled:hover { + color: #6f6f6f; + cursor: not-allowed; + background-color: rgb(238.425,238.425,238.425) +} + +.list-group-item.disabled .list-group-item-heading,.list-group-item.disabled:focus .list-group-item-heading,.list-group-item.disabled:hover .list-group-item-heading { + color: inherit +} + +.list-group-item.disabled .list-group-item-text,.list-group-item.disabled:focus .list-group-item-text,.list-group-item.disabled:hover .list-group-item-text { + color: #6f6f6f +} + +.list-group-item.active,.list-group-item.active:focus,.list-group-item.active:hover { + z-index: 2; + color: #fff; + background-color: #2572b4; + border-color: #2572b4 +} + +.list-group-item.active .list-group-item-heading,.list-group-item.active .list-group-item-heading>.small,.list-group-item.active .list-group-item-heading>small,.list-group-item.active:focus .list-group-item-heading,.list-group-item.active:focus .list-group-item-heading>.small,.list-group-item.active:focus .list-group-item-heading>small,.list-group-item.active:hover .list-group-item-heading,.list-group-item.active:hover .list-group-item-heading>.small,.list-group-item.active:hover .list-group-item-heading>small { + color: inherit +} + +.list-group-item.active .list-group-item-text,.list-group-item.active:focus .list-group-item-text,.list-group-item.active:hover .list-group-item-text { + color: rgb(181.1751152074,212.7557603687,239.8248847926) +} + +a.list-group-item,button.list-group-item { + color: #555 +} + +a.list-group-item .list-group-item-heading,button.list-group-item .list-group-item-heading { + color: #333 +} + +a.list-group-item:focus,a.list-group-item:hover,button.list-group-item:focus,button.list-group-item:hover { + color: #555; + text-decoration: none; + background-color: #f5f5f5 +} + +button.list-group-item { + width: 100%; + text-align: left +} + +.list-group-item-success { + color: #3c763d; + background-color: #dff0d8 +} + +a.list-group-item-success,button.list-group-item-success { + color: #3c763d +} + +a.list-group-item-success .list-group-item-heading,button.list-group-item-success .list-group-item-heading { + color: inherit +} + +a.list-group-item-success:focus,a.list-group-item-success:hover,button.list-group-item-success:focus,button.list-group-item-success:hover { + color: #3c763d; + background-color: rgb(207.8888888889,232.9166666667,197.5833333333) +} + +a.list-group-item-success.active,a.list-group-item-success.active:focus,a.list-group-item-success.active:hover,button.list-group-item-success.active,button.list-group-item-success.active:focus,button.list-group-item-success.active:hover { + color: #fff; + background-color: #3c763d; + border-color: #3c763d +} + +.list-group-item-info { + color: #31708f; + background-color: #d9edf7 +} + +a.list-group-item-info,button.list-group-item-info { + color: #31708f +} + +a.list-group-item-info .list-group-item-heading,button.list-group-item-info .list-group-item-heading { + color: inherit +} + +a.list-group-item-info:focus,a.list-group-item-info:hover,button.list-group-item-info:focus,button.list-group-item-info:hover { + color: #31708f; + background-color: rgb(195.9347826087,227.0217391304,242.5652173913) +} + +a.list-group-item-info.active,a.list-group-item-info.active:focus,a.list-group-item-info.active:hover,button.list-group-item-info.active,button.list-group-item-info.active:focus,button.list-group-item-info.active:hover { + color: #fff; + background-color: #31708f; + border-color: #31708f +} + +.list-group-item-warning { + color: #8a6d3b; + background-color: #fcf8e3 +} + +a.list-group-item-warning,button.list-group-item-warning { + color: #8a6d3b +} + +a.list-group-item-warning .list-group-item-heading,button.list-group-item-warning .list-group-item-heading { + color: inherit +} + +a.list-group-item-warning:focus,a.list-group-item-warning:hover,button.list-group-item-warning:focus,button.list-group-item-warning:hover { + color: #8a6d3b; + background-color: rgb(249.5322580645,242.2419354839,203.9677419355) +} + +a.list-group-item-warning.active,a.list-group-item-warning.active:focus,a.list-group-item-warning.active:hover,button.list-group-item-warning.active,button.list-group-item-warning.active:focus,button.list-group-item-warning.active:hover { + color: #fff; + background-color: #8a6d3b; + border-color: #8a6d3b +} + +.list-group-item-danger { + color: #a94442; + background-color: #f2dede +} + +a.list-group-item-danger,button.list-group-item-danger { + color: #a94442 +} + +a.list-group-item-danger .list-group-item-heading,button.list-group-item-danger .list-group-item-heading { + color: inherit +} + +a.list-group-item-danger:focus,a.list-group-item-danger:hover,button.list-group-item-danger:focus,button.list-group-item-danger:hover { + color: #a94442; + background-color: rgb(234.7934782609,203.7065217391,203.7065217391) +} + +a.list-group-item-danger.active,a.list-group-item-danger.active:focus,a.list-group-item-danger.active:hover,button.list-group-item-danger.active,button.list-group-item-danger.active:focus,button.list-group-item-danger.active:hover { + color: #fff; + background-color: #a94442; + border-color: #a94442 +} + +.list-group-item-heading { + margin-top: 0; + margin-bottom: 5px +} + +.list-group-item-text { + margin-bottom: 0; + line-height: 1.3 +} + +.panel { + margin-bottom: 23px; + background-color: #fff; + border: 1px solid transparent; + border-radius: 4px; + -webkit-box-shadow: 0 1px 1px rgba(0,0,0,.05); + box-shadow: 0 1px 1px rgba(0,0,0,.05) +} + +.panel-body { + padding: 15px +} + +.panel-body:after,.panel-body:before { + display: table; + content: " " +} + +.panel-body:after { + clear: both +} + +.panel-heading { + padding: 10px 15px; + border-bottom: 1px solid transparent; + border-top-left-radius: 3px; + border-top-right-radius: 3px +} + +.panel-heading>.dropdown .dropdown-toggle { + color: inherit +} + +.panel-title { + margin-top: 0; + margin-bottom: 0; + font-size: 18px; + color: inherit +} + +.panel-title>.small,.panel-title>.small>a,.panel-title>a,.panel-title>small,.panel-title>small>a { + color: inherit +} + +.panel-footer { + padding: 10px 15px; + background-color: #f5f5f5; + border-top: 1px solid #8e8e8e; + border-bottom-right-radius: 3px; + border-bottom-left-radius: 3px +} + +.panel>.list-group,.panel>.panel-collapse>.list-group { + margin-bottom: 0 +} + +.panel>.list-group .list-group-item,.panel>.panel-collapse>.list-group .list-group-item { + border-width: 1px 0; + border-radius: 0 +} + +.panel>.list-group:first-child .list-group-item:first-child,.panel>.panel-collapse>.list-group:first-child .list-group-item:first-child { + border-top: 0; + border-top-left-radius: 3px; + border-top-right-radius: 3px +} + +.panel>.list-group:last-child .list-group-item:last-child,.panel>.panel-collapse>.list-group:last-child .list-group-item:last-child { + border-bottom: 0; + border-bottom-right-radius: 3px; + border-bottom-left-radius: 3px +} + +.panel>.panel-heading+.panel-collapse>.list-group .list-group-item:first-child { + border-top-left-radius: 0; + border-top-right-radius: 0 +} + +.panel-heading+.list-group .list-group-item:first-child { + border-top-width: 0 +} + +.list-group+.panel-footer { + border-top-width: 0 +} + +.panel>.panel-collapse>.table,.panel>.table,.panel>.table-responsive>.table { + margin-bottom: 0 +} + +.panel>.panel-collapse>.table caption,.panel>.table caption,.panel>.table-responsive>.table caption { + padding-right: 15px; + padding-left: 15px +} + +.panel>.table-responsive:first-child>.table:first-child,.panel>.table:first-child { + border-top-left-radius: 3px; + border-top-right-radius: 3px +} + +.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child,.panel>.table:first-child>thead:first-child>tr:first-child { + border-top-left-radius: 3px; + border-top-right-radius: 3px +} + +.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child { + border-top-left-radius: 3px +} + +.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child { + border-top-right-radius: 3px +} + +.panel>.table-responsive:last-child>.table:last-child,.panel>.table:last-child { + border-bottom-right-radius: 3px; + border-bottom-left-radius: 3px +} + +.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child { + border-bottom-right-radius: 3px; + border-bottom-left-radius: 3px +} + +.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child { + border-bottom-left-radius: 3px +} + +.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child { + border-bottom-right-radius: 3px +} + +.panel>.panel-body+.table,.panel>.panel-body+.table-responsive,.panel>.table+.panel-body,.panel>.table-responsive+.panel-body { + border-top: 1px solid #ddd +} + +.panel>.table>tbody:first-child>tr:first-child td,.panel>.table>tbody:first-child>tr:first-child th { + border-top: 0 +} + +.panel>.table-bordered,.panel>.table-responsive>.table-bordered { + border: 0 +} + +.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child { + border-left: 0 +} + +.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child { + border-right: 0 +} + +.panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th { + border-bottom: 0 +} + +.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th { + border-bottom: 0 +} + +.panel>.table-responsive { + margin-bottom: 0; + border: 0 +} + +.panel-group { + margin-bottom: 23px +} + +.panel-group .panel { + margin-bottom: 0; + border-radius: 4px +} + +.panel-group .panel+.panel { + margin-top: 5px +} + +.panel-group .panel-heading { + border-bottom: 0 +} + +.panel-group .panel-heading+.panel-collapse>.list-group,.panel-group .panel-heading+.panel-collapse>.panel-body { + border-top: 1px solid #8e8e8e +} + +.panel-group .panel-footer { + border-top: 0 +} + +.panel-group .panel-footer+.panel-collapse .panel-body { + border-bottom: 1px solid #8e8e8e +} + +.panel-default { + border-color: #8e8e8e +} + +.panel-default>.panel-heading { + color: #333; + background-color: #f5f5f5; + border-color: #8e8e8e +} + +.panel-default>.panel-heading+.panel-collapse>.panel-body { + border-top-color: #8e8e8e +} + +.panel-default>.panel-heading .badge { + color: #f5f5f5; + background-color: #333 +} + +.panel-default>.panel-footer+.panel-collapse>.panel-body { + border-bottom-color: #8e8e8e +} + +.panel-primary { + border-color: #2572b4 +} + +.panel-primary>.panel-heading { + color: #fff; + background-color: #2572b4; + border-color: #2572b4 +} + +.panel-primary>.panel-heading+.panel-collapse>.panel-body { + border-top-color: #2572b4 +} + +.panel-primary>.panel-heading .badge { + color: #2572b4; + background-color: #fff +} + +.panel-primary>.panel-footer+.panel-collapse>.panel-body { + border-bottom-color: #2572b4 +} + +.panel-success { + border-color: #629339 +} + +.panel-success>.panel-heading { + color: #3c763d; + background-color: #dff0d8; + border-color: #629339 +} + +.panel-success>.panel-heading+.panel-collapse>.panel-body { + border-top-color: #629339 +} + +.panel-success>.panel-heading .badge { + color: #dff0d8; + background-color: #3c763d +} + +.panel-success>.panel-footer+.panel-collapse>.panel-body { + border-bottom-color: #629339 +} + +.panel-info { + border-color: #2392a9 +} + +.panel-info>.panel-heading { + color: #31708f; + background-color: #d9edf7; + border-color: #2392a9 +} + +.panel-info>.panel-heading+.panel-collapse>.panel-body { + border-top-color: #2392a9 +} + +.panel-info>.panel-heading .badge { + color: #d9edf7; + background-color: #31708f +} + +.panel-info>.panel-footer+.panel-collapse>.panel-body { + border-bottom-color: #2392a9 +} + +.panel-warning { + border-color: #ba8312 +} + +.panel-warning>.panel-heading { + color: #8a6d3b; + background-color: #fcf8e3; + border-color: #ba8312 +} + +.panel-warning>.panel-heading+.panel-collapse>.panel-body { + border-top-color: #ba8312 +} + +.panel-warning>.panel-heading .badge { + color: #fcf8e3; + background-color: #8a6d3b +} + +.panel-warning>.panel-footer+.panel-collapse>.panel-body { + border-bottom-color: #ba8312 +} + +.panel-danger { + border-color: #c16171 +} + +.panel-danger>.panel-heading { + color: #a94442; + background-color: #f2dede; + border-color: #c16171 +} + +.panel-danger>.panel-heading+.panel-collapse>.panel-body { + border-top-color: #c16171 +} + +.panel-danger>.panel-heading .badge { + color: #f2dede; + background-color: #a94442 +} + +.panel-danger>.panel-footer+.panel-collapse>.panel-body { + border-bottom-color: #c16171 +} + +.embed-responsive { + position: relative; + display: block; + height: 0; + padding: 0; + overflow: hidden +} + +.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video { + position: absolute; + top: 0; + bottom: 0; + left: 0; + width: 100%; + height: 100%; + border: 0 +} + +.embed-responsive-16by9 { + padding-bottom: 56.25% +} + +.embed-responsive-4by3 { + padding-bottom: 75% +} + +.well,a.gc-dwnld { + min-height: 20px; + padding: 19px; + margin-bottom: 20px; + background-color: #f5f5f5; + border: 1px solid rgb(227.15,227.15,227.15); + border-radius: 4px; + -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.05); + box-shadow: inset 0 1px 1px rgba(0,0,0,.05) +} + +.well blockquote,a.gc-dwnld blockquote { + border-color: #ddd; + border-color: rgba(0,0,0,.15) +} + +.well-lg { + padding: 24px; + border-radius: 6px +} + +.well-sm { + padding: 9px; + border-radius: 3px +} + +.close { + float: right; + font-size: 24px; + font-weight: 700; + line-height: 1; + color: #000; + text-shadow: 0 1px 0 #fff; + opacity: .2 +} + +.close:focus,.close:hover { + color: #000; + text-decoration: none; + cursor: pointer; + opacity: .5 +} + +button.close { + padding: 0; + cursor: pointer; + background: 0 0; + border: 0; + -webkit-appearance: none; + -moz-appearance: none; + appearance: none +} + +/*! Placeholders */ +.dataTables_wrapper .dataTables_paginate .paginate_button.next:after,.dataTables_wrapper .dataTables_paginate .paginate_button.previous:before,.pager>li:first-child [rel=prev]:before,.pager>li:last-child [rel=next]:after,.pagination>li:first-child [rel=prev]:before,.pagination>li:last-child [rel=next]:after,[dir=rtl] .dataTables_wrapper .dataTables_paginate .paginate_button.next:before,[dir=rtl] .dataTables_wrapper .dataTables_paginate .paginate_button.previous:after,[dir=rtl] .pager [rel=next]:before,[dir=rtl] .pager [rel=prev]:after,[dir=rtl] .pagination [rel=next]:before,[dir=rtl] .pagination [rel=prev]:after,table.dataTable thead .sorting-icons:after,table.dataTable thead .sorting-icons:before { + content: " "; + font-family: "Glyphicons Halflings"; + font-weight: 400; + line-height: 1em; + position: relative; + top: .1em +} + +.dataTables_wrapper .dataTables_paginate .paginate_button.previous:before,.pager>li:first-child [rel=prev]:before,.pagination>li:first-child [rel=prev]:before,[dir=rtl] .dataTables_wrapper .dataTables_paginate .paginate_button.next:before,[dir=rtl] .pager [rel=next]:before,[dir=rtl] .pagination [rel=next]:before { + content: "\e091"; + margin-right: .5em +} + +.dataTables_wrapper .dataTables_paginate .paginate_button.next:after,.pager>li:last-child [rel=next]:after,.pagination>li:last-child [rel=next]:after,[dir=rtl] .dataTables_wrapper .dataTables_paginate .paginate_button.previous:after,[dir=rtl] .pager [rel=prev]:after,[dir=rtl] .pagination [rel=prev]:after { + content: "\e092"; + margin-left: .5em +} + +.btn-group-xs .btn,.btn.btn-xs { + min-height: 0 +} + +.dropdown-menu>li>a:visited { + color: #333 +} + +.nav>li>a:visited { + color: #295376 +} + +.nav-pills>li.active>a:visited { + color: #fff +} + +.navbar-default .navbar-nav>li>a:visited { + color: #777 +} + +@media (max-width: 767px) { + .navbar-default .open .dropdown-menu>li>a { + color:#777 + } +} + +.navbar-default .navbar-link:visited { + color: #777 +} + +.navbar-inverse .navbar-nav>li>a:visited { + color: rgb(149.25,149.25,149.25) +} + +@media (max-width: 767px) { + .navbar-inverse .open .dropdown-menu>li>a:visited { + color:rgb(149.25,149.25,149.25) + } +} + +.navbar-inverse .navbar-link:visited { + color: rgb(149.25,149.25,149.25) +} + +.pager>li>a,.pagination>li>a { + cursor: pointer; + display: inline-block; + margin-bottom: .5em; + padding: 10px 16px +} + +.pager>li.active>a,.pagination>li.active>a { + cursor: default +} + +.pager>li.disabled+li>a,.pagination>li.disabled+li>a { + border-top-left-radius: 4px; + border-bottom-left-radius: 4px +} + +.pager>li>a { + text-decoration: none +} + +.pager>li>a:focus,.pager>li>a:hover,.pager>li>span:focus,.pager>li>span:hover { + border-color: rgb(187.3153846154,190.5384615385,196.9846153846); + color: #335075 +} + +.pagination>.active { + color: #fff +} + +[dir=rtl] .pager [rel=prev],[dir=rtl] .pagination [rel=prev] { + border-top-left-radius: 0; + border-bottom-left-radius: 0; + border-top-right-radius: 4px; + border-bottom-right-radius: 4px +} + +[dir=rtl] .pager [rel=next],[dir=rtl] .pagination [rel=next] { + border-top-left-radius: 4px; + border-bottom-left-radius: 4px; + border-top-right-radius: 0; + border-bottom-right-radius: 0 +} + +[dir=rtl] .pager>li,[dir=rtl] .pagination>li { + float: right +} + +[dir=rtl] .pager>li.disabled+li>a,[dir=rtl] .pagination>li.disabled+li>a { + border-top-left-radius: 0; + border-bottom-left-radius: 0; + border-top-right-radius: 4px; + border-bottom-right-radius: 4px +} + +.wb-elps { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap +} + +.modal-open { + overflow: hidden +} + +.modal { + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 1050; + display: none; + overflow: hidden; + -webkit-overflow-scrolling: touch; + outline: 0 +} + +.modal.fade .modal-dialog { + -webkit-transform: translate(0,-25%); + transform: translate(0,-25%); + -webkit-transition: -webkit-transform .3s ease-out; + transition: -webkit-transform .3s ease-out; + transition: transform .3s ease-out; + transition: transform .3s ease-out,-webkit-transform .3s ease-out +} + +.modal.in .modal-dialog { + -webkit-transform: translate(0,0); + transform: translate(0,0) +} + +.modal-open .modal { + overflow-x: hidden; + overflow-y: auto +} + +.modal-dialog { + position: relative; + width: auto; + margin: 10px +} + +.modal-content { + position: relative; + background-color: #fff; + background-clip: padding-box; + border: 1px solid #999; + border: 1px solid rgba(0,0,0,.2); + border-radius: 6px; + -webkit-box-shadow: 0 3px 9px rgba(0,0,0,.5); + box-shadow: 0 3px 9px rgba(0,0,0,.5); + outline: 0 +} + +.modal-backdrop { + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 1040; + background-color: #000 +} + +.modal-backdrop.fade { + opacity: 0 +} + +.modal-backdrop.in { + opacity: .5 +} + +.modal-header { + padding: 15px; + border-bottom: 1px solid #e5e5e5 +} + +.modal-header:after,.modal-header:before { + display: table; + content: " " +} + +.modal-header:after { + clear: both +} + +.modal-header .close { + margin-top: -2px +} + +.modal-title { + margin: 0; + line-height: 1.4375 +} + +.modal-body { + position: relative; + padding: 15px +} + +.modal-footer { + padding: 15px; + text-align: right; + border-top: 1px solid #e5e5e5 +} + +.modal-footer:after,.modal-footer:before { + display: table; + content: " " +} + +.modal-footer:after { + clear: both +} + +.modal-footer .btn+.btn { + margin-bottom: 0; + margin-left: 5px +} + +.modal-footer .btn-group .btn+.btn { + margin-left: -1px +} + +.modal-footer .btn-block+.btn-block { + margin-left: 0 +} + +.modal-scrollbar-measure { + position: absolute; + top: -9999px; + width: 50px; + height: 50px; + overflow: scroll +} + +@media (min-width: 768px) { + .modal-dialog { + width:600px; + margin: 30px auto + } + + .modal-content { + -webkit-box-shadow: 0 5px 15px rgba(0,0,0,.5); + box-shadow: 0 5px 15px rgba(0,0,0,.5) + } + + .modal-sm { + width: 300px + } +} + +@media (min-width: 992px) { + .modal-lg { + width:900px + } +} + +.tooltip { + position: absolute; + z-index: 1070; + display: block; + font-family: "Noto Sans","Noto Sans Canadian Aboriginal",sans-serif; + font-style: normal; + font-weight: 400; + line-height: 1.4375; + line-break: auto; + text-align: left; + text-align: start; + text-decoration: none; + text-shadow: none; + text-transform: none; + letter-spacing: normal; + word-break: normal; + word-spacing: normal; + word-wrap: normal; + white-space: normal; + font-size: 14px; + opacity: 0 +} + +.tooltip.in { + opacity: .9 +} + +.tooltip.top { + padding: 5px 0; + margin-top: -3px +} + +.tooltip.right { + padding: 0 5px; + margin-left: 3px +} + +.tooltip.bottom { + padding: 5px 0; + margin-top: 3px +} + +.tooltip.left { + padding: 0 5px; + margin-left: -3px +} + +.tooltip.top .tooltip-arrow { + bottom: 0; + left: 50%; + margin-left: -5px; + border-width: 5px 5px 0; + border-top-color: #000 +} + +.tooltip.top-left .tooltip-arrow { + right: 5px; + bottom: 0; + margin-bottom: -5px; + border-width: 5px 5px 0; + border-top-color: #000 +} + +.tooltip.top-right .tooltip-arrow { + bottom: 0; + left: 5px; + margin-bottom: -5px; + border-width: 5px 5px 0; + border-top-color: #000 +} + +.tooltip.right .tooltip-arrow { + top: 50%; + left: 0; + margin-top: -5px; + border-width: 5px 5px 5px 0; + border-right-color: #000 +} + +.tooltip.left .tooltip-arrow { + top: 50%; + right: 0; + margin-top: -5px; + border-width: 5px 0 5px 5px; + border-left-color: #000 +} + +.tooltip.bottom .tooltip-arrow { + top: 0; + left: 50%; + margin-left: -5px; + border-width: 0 5px 5px; + border-bottom-color: #000 +} + +.tooltip.bottom-left .tooltip-arrow { + top: 0; + right: 5px; + margin-top: -5px; + border-width: 0 5px 5px; + border-bottom-color: #000 +} + +.tooltip.bottom-right .tooltip-arrow { + top: 0; + left: 5px; + margin-top: -5px; + border-width: 0 5px 5px; + border-bottom-color: #000 +} + +.tooltip-inner { + max-width: 200px; + padding: 3px 8px; + color: #fff; + text-align: center; + background-color: #000; + border-radius: 4px +} + +.tooltip-arrow { + position: absolute; + width: 0; + height: 0; + border-color: transparent; + border-style: solid +} + +.popover { + position: absolute; + top: 0; + left: 0; + z-index: 1060; + display: none; + max-width: 276px; + padding: 1px; + font-family: "Noto Sans","Noto Sans Canadian Aboriginal",sans-serif; + font-style: normal; + font-weight: 400; + line-height: 1.4375; + line-break: auto; + text-align: left; + text-align: start; + text-decoration: none; + text-shadow: none; + text-transform: none; + letter-spacing: normal; + word-break: normal; + word-spacing: normal; + word-wrap: normal; + white-space: normal; + font-size: 16px; + background-color: #fff; + background-clip: padding-box; + border: 1px solid #ccc; + border: 1px solid rgba(0,0,0,.2); + border-radius: 6px; + -webkit-box-shadow: 0 5px 10px rgba(0,0,0,.2); + box-shadow: 0 5px 10px rgba(0,0,0,.2) +} + +.popover.top { + margin-top: -10px +} + +.popover.right { + margin-left: 10px +} + +.popover.bottom { + margin-top: 10px +} + +.popover.left { + margin-left: -10px +} + +.popover>.arrow { + border-width: 11px +} + +.popover>.arrow,.popover>.arrow:after { + position: absolute; + display: block; + width: 0; + height: 0; + border-color: transparent; + border-style: solid +} + +.popover>.arrow:after { + content: ""; + border-width: 10px +} + +.popover.top>.arrow { + bottom: -11px; + left: 50%; + margin-left: -11px; + border-top-color: #999; + border-top-color: rgba(0,0,0,.25); + border-bottom-width: 0 +} + +.popover.top>.arrow:after { + bottom: 1px; + margin-left: -10px; + content: " "; + border-top-color: #fff; + border-bottom-width: 0 +} + +.popover.right>.arrow { + top: 50%; + left: -11px; + margin-top: -11px; + border-right-color: #999; + border-right-color: rgba(0,0,0,.25); + border-left-width: 0 +} + +.popover.right>.arrow:after { + bottom: -10px; + left: 1px; + content: " "; + border-right-color: #fff; + border-left-width: 0 +} + +.popover.bottom>.arrow { + top: -11px; + left: 50%; + margin-left: -11px; + border-top-width: 0; + border-bottom-color: #999; + border-bottom-color: rgba(0,0,0,.25) +} + +.popover.bottom>.arrow:after { + top: 1px; + margin-left: -10px; + content: " "; + border-top-width: 0; + border-bottom-color: #fff +} + +.popover.left>.arrow { + top: 50%; + right: -11px; + margin-top: -11px; + border-right-width: 0; + border-left-color: #999; + border-left-color: rgba(0,0,0,.25) +} + +.popover.left>.arrow:after { + right: 1px; + bottom: -10px; + content: " "; + border-right-width: 0; + border-left-color: #fff +} + +.popover-title { + padding: 8px 14px; + margin: 0; + font-size: 16px; + background-color: rgb(247.35,247.35,247.35); + border-bottom: 1px solid rgb(234.6,234.6,234.6); + border-radius: 5px 5px 0 0 +} + +.popover-content { + padding: 9px 14px +} + +.carousel { + position: relative +} + +.carousel-inner { + position: relative; + width: 100%; + overflow: hidden +} + +.carousel-inner>.item { + position: relative; + display: none; + -webkit-transition: .6s ease-in-out left; + transition: .6s ease-in-out left +} + +.carousel-inner>.item>a>img,.carousel-inner>.item>img { + display: block; + max-width: 100%; + height: auto; + line-height: 1 +} + +@media all and (transform-3d),(-webkit-transform-3d) { + .carousel-inner>.item { + -webkit-transition: -webkit-transform .6s ease-in-out; + transition: -webkit-transform .6s ease-in-out; + transition: transform .6s ease-in-out; + transition: transform .6s ease-in-out,-webkit-transform .6s ease-in-out; + -webkit-backface-visibility: hidden; + backface-visibility: hidden; + -webkit-perspective: 1000px; + perspective: 1000px + } + + .carousel-inner>.item.active.right,.carousel-inner>.item.next { + -webkit-transform: translate3d(100%,0,0); + transform: translate3d(100%,0,0); + left: 0 + } + + .carousel-inner>.item.active.left,.carousel-inner>.item.prev { + -webkit-transform: translate3d(-100%,0,0); + transform: translate3d(-100%,0,0); + left: 0 + } + + .carousel-inner>.item.active,.carousel-inner>.item.next.left,.carousel-inner>.item.prev.right { + -webkit-transform: translate3d(0,0,0); + transform: translate3d(0,0,0); + left: 0 + } +} + +.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev { + display: block +} + +.carousel-inner>.active { + left: 0 +} + +.carousel-inner>.next,.carousel-inner>.prev { + position: absolute; + top: 0; + width: 100% +} + +.carousel-inner>.next { + left: 100% +} + +.carousel-inner>.prev { + left: -100% +} + +.carousel-inner>.next.left,.carousel-inner>.prev.right { + left: 0 +} + +.carousel-inner>.active.left { + left: -100% +} + +.carousel-inner>.active.right { + left: 100% +} + +.carousel-control { + position: absolute; + top: 0; + bottom: 0; + left: 0; + width: 15%; + font-size: 20px; + color: #fff; + text-align: center; + text-shadow: 0 1px 2px rgba(0,0,0,.6); + background-color: rgba(0,0,0,0); + opacity: .5 +} + +.carousel-control.left { + background-image: -webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,.0001))); + background-image: linear-gradient(to right,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%); + background-repeat: repeat-x +} + +.carousel-control.right { + right: 0; + left: auto; + background-image: -webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.0001)),to(rgba(0,0,0,.5))); + background-image: linear-gradient(to right,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%); + background-repeat: repeat-x +} + +.carousel-control:focus,.carousel-control:hover { + color: #fff; + text-decoration: none; + outline: 0; + opacity: .9 +} + +.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev { + position: absolute; + top: 50%; + z-index: 5; + display: inline-block; + margin-top: -10px +} + +.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev { + left: 50%; + margin-left: -10px +} + +.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next { + right: 50%; + margin-right: -10px +} + +.carousel-control .icon-next,.carousel-control .icon-prev { + width: 20px; + height: 20px; + font-family: serif; + line-height: 1 +} + +.carousel-control .icon-prev:before { + content: "‹" +} + +.carousel-control .icon-next:before { + content: "›" +} + +.carousel-indicators { + position: absolute; + bottom: 10px; + left: 50%; + z-index: 15; + width: 60%; + padding-left: 0; + margin-left: -30%; + text-align: center; + list-style: none +} + +.carousel-indicators li { + display: inline-block; + width: 10px; + height: 10px; + margin: 1px; + text-indent: -999px; + cursor: pointer; + background-color: rgba(0,0,0,0); + border: 1px solid #fff; + border-radius: 10px +} + +.carousel-indicators .active { + width: 12px; + height: 12px; + margin: 0; + background-color: #fff +} + +.carousel-caption { + position: absolute; + right: 15%; + bottom: 20px; + left: 15%; + z-index: 10; + padding-top: 20px; + padding-bottom: 20px; + color: #fff; + text-align: center; + text-shadow: 0 1px 2px rgba(0,0,0,.6) +} + +.carousel-caption .btn { + text-shadow: none +} + +@media screen and (min-width: 768px) { + .carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev { + width:30px; + height: 30px; + margin-top: -10px; + font-size: 30px + } + + .carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev { + margin-left: -10px + } + + .carousel-control .glyphicon-chevron-right,.carousel-control .icon-next { + margin-right: -10px + } + + .carousel-caption { + right: 20%; + left: 20%; + padding-bottom: 30px + } + + .carousel-indicators { + bottom: 20px + } +} + +.wb-calevt-cal .cal-days td ul.ev-details,.wb-calevt-cal .cal-days td:hover ul { + background-color: #fff; + border: 1px solid #333; + clip-path: none; + color: #000; + height: inherit; + list-style-type: none; + margin: 0; + margin-top: -.5em; + overflow: inherit; + padding: 0; + position: absolute; + width: 10em; + z-index: 5 +} + +.wb-calevt-cal .cal-days td ul.ev-details a:focus,.wb-calevt-cal .cal-days td ul.ev-details a:hover,.wb-calevt-cal .cal-days td:hover ul a:focus,.wb-calevt-cal .cal-days td:hover ul a:hover { + color: #fff +} + +.wb-calevt-cal { + width: 19em +} + +.wb-calevt-cal .cal-days .cal-evt { + background: #176ca7; + color: #fff +} + +.wb-calevt-cal .cal-evt-lnk { + display: block; + padding: .5em +} + +.wb-calevt-cal.cal-cnt-fluid { + width: 100% +} + +.wb-clndr td>a { + display: block; + height: 100%; + width: 100% +} + +.wb-clndr td div,.wb-clndr td>a,.wb-clndr td>time,.wb-clndr th abbr { + color: #000; + padding: 20% 0; + text-align: center +} + +.wb-clndr .cal-curr-day,.wb-clndr .cal-curr-day a,.wb-clndr .cal-curr-day div { + color: #000 +} + +.wb-clndr { + background: #fff; + position: relative; + width: 100% +} + +.wb-clndr .cal-nav { + background: #333; + padding: .5em; + text-align: center +} + +.wb-clndr .form-group { + margin: 0; + padding: 10px 14px +} + +.wb-clndr .btn { + background: 0 0; + color: #fff +} + +.wb-clndr .btn[disabled] { + color: #ccc +} + +.wb-clndr option[disabled] { + color: #aaa +} + +.wb-clndr table { + width: 100% +} + +.wb-clndr th { + background: #555; + border: 1px solid #333 +} + +.wb-clndr th abbr { + color: #fff; + display: block +} + +.wb-clndr td { + background: #fff; + border: 1px solid #aaa; + padding: 0; + text-align: center +} + +.wb-clndr td>time { + display: block +} + +.wb-clndr td a:focus,.wb-clndr td a:hover { + background: #333; + color: #fff +} + +.wb-clndr .cal-curr-day { + background: #ccc; + font-weight: bolder +} + +figure .pieLabel { + background-color: #fff; + border: solid #000 1px; + color: #000; + padding: 1px +} + +details.alert,details.alert[open] { + border-radius: 0; + border-width: 0 0 0 4px; + padding-left: 45px; + padding-right: 0; + position: relative +} + +details.alert:before,details.alert[open]:before { + display: inline-block; + font-family: "Glyphicons Halflings"; + font-size: 24px; + margin-left: -1.3em; + margin-top: -3px; + position: absolute; + top: 15px +} + +details.alert summary,details.alert[open] summary { + border-width: 0; + margin-right: 15px; + padding-left: 21px +} + +details.alert summary:focus,details.alert summary:hover,details.alert[open] summary:focus,details.alert[open] summary:hover { + text-decoration: none +} + +details.alert summary:focus h2,details.alert summary:focus h3,details.alert summary:focus h4,details.alert summary:focus h5,details.alert summary:focus h6,details.alert summary:hover h2,details.alert summary:hover h3,details.alert summary:hover h4,details.alert summary:hover h5,details.alert summary:hover h6,details.alert[open] summary:focus h2,details.alert[open] summary:focus h3,details.alert[open] summary:focus h4,details.alert[open] summary:focus h5,details.alert[open] summary:focus h6,details.alert[open] summary:hover h2,details.alert[open] summary:hover h3,details.alert[open] summary:hover h4,details.alert[open] summary:hover h5,details.alert[open] summary:hover h6 { + text-decoration: underline +} + +details.alert>*,details.alert[open]>* { + margin-left: .7em +} + +details.alert>:first-child,details.alert[open]>:first-child { + margin-left: .2em +} + +details.alert>:first-child:before,details.alert[open]>:first-child:before { + color: #000; + content: "" +} + +details.alert.alert-success:before,details.alert[open].alert-success:before { + color: #278400; + content: "\e084" +} + +details.alert.alert-info:before,details.alert[open].alert-info:before { + color: #269abc; + content: "\e086" +} + +details.alert.alert-warning:before,details.alert[open].alert-warning:before { + color: #f90; + content: "\e107" +} + +details.alert.alert-danger:before,details.alert[open].alert-danger:before { + color: #d3080c; + content: "\e101" +} + +.wb-enable.no-details details.alert>summary { + margin-left: 1.2em +} + +.wb-enable.no-details details.alert>summary:before { + content: "► " +} + +.wb-enable.no-details details.alert[open]>summary:before { + content: "▼ " +} + +.wb-enable.no-details[dir=rtl] details.alert>summary { + margin-right: 1.2em +} + +.wb-dismissable-container { + background-color: #eee; + display: table; + margin: 10px 0; + padding: 10px; + width: 100% +} + +.wb-dismissable-container .mfp-close { + color: #555; + display: table-cell; + position: static +} + +.wb-dismissable-wrapper { + display: table-cell; + width: 100% +} + +.wb-eqht-grd { + -webkit-box-align: stretch; + -ms-flex-align: stretch; + align-items: stretch; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -ms-flex-wrap: wrap; + flex-wrap: wrap; + height: 100% +} + +.wb-eqht-grd>[class*=col-] { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column +} + +.wb-eqht-grd>[class*=col-] .hght-inhrt,.wb-eqht-grd>[class*=col-]>section { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-flex: 1; + -ms-flex: 1 1 auto; + flex: 1 1 auto; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column +} + +.wb-eqht-grd.grow>[class*=col-] { + -webkit-box-flex: 1; + -ms-flex-positive: 1; + flex-grow: 1 +} + +.hght-inhrt { + min-height: inherit +} + +.sect-lnks { + display: inline-block; + width: 100% +} + +.sect-lnks h2 a,.sect-lnks h3 a,.sect-lnks h4 a { + font-size: 20px +} + +.wb-fltr-out { + display: none!important +} + +.wb-filter .input-group { + max-width: 100% +} + +.fn-lnk:focus,.fn-lnk:hover,.wb-fnote .fn-rtn a:focus,.wb-fnote .fn-rtn a:hover,.wb-fnote dd:focus .fn-rtn a { + background-color: #555; + border-color: #555; + color: #fff!important +} + +.fn-lnk,.wb-fnote .fn-rtn a { + background-color: #eee; + border: 1px solid #ccc; + display: inline-block; + padding: 1px 10px 2px; + white-space: nowrap +} + +.wb-fnote dd>ol:first-child,.wb-fnote dd>ul:first-child,.wb-fnote h2,.wb-fnote table:first-child { + margin-top: .375em +} + +.fn-lnk { + line-height: 1.15; + margin-left: 5px +} + +.wb-fnote { + border-color: #ccc; + border-style: solid; + border-width: 1px 0; + margin: 2em 0 0 +} + +.wb-fnote h2 { + margin-left: 0; + margin-right: 0 +} + +.wb-fnote dl { + margin: 0 +} + +.wb-fnote dd { + border: 1px solid transparent; + margin: .375em 0; + position: relative +} + +.wb-fnote dd:focus { + background-color: #eee; + border-color: #555 +} + +.wb-fnote dd>ol,.wb-fnote dd>ul { + margin: 0 .375em .375em 4.25em +} + +.wb-fnote p { + margin: 0 0 0 3.875em; + padding: 0 .375em .375em +} + +.wb-fnote p:first-child { + margin-top: .11em; + padding-top: .375em +} + +.wb-fnote ol,.wb-fnote ul { + margin-bottom: .375em +} + +.wb-fnote table { + margin: 0 .375em .375em 4.25em +} + +.wb-fnote .fn-rtn { + margin: 0; + overflow: hidden; + padding-right: 0; + padding-top: .375em; + position: absolute; + top: 0; + width: 3.5em +} + +.wb-fnote .fn-rtn a { + display: inline-block; + margin-top: 0; + padding-bottom: 0 +} + +[dir=rtl] sup .fn-lnk { + margin-left: 0; + margin-right: 5px +} + +[dir=rtl] .wb-fnote p { + margin: 0 3.875em 0 0 +} + +[dir=rtl] .wb-fnote .fn-rtn { + margin-right: 0; + padding-right: 0 +} + +.wb-frm label strong.error,.wb-frm legend .error,.wb-frmvld label strong.error,.wb-frmvld legend .error { + display: inline-block; + width: 100% +} + +.wb-frm label strong.error .label,.wb-frm legend .error .label,.wb-frmvld label strong.error .label,.wb-frmvld legend .error .label { + font-size: 100%; + white-space: normal +} + +.wb-server-error { + display: block!important; + font-size: 100%!important; + text-align: left!important; + white-space: normal!important +} + +.css-implicite-input { + font-weight: 400; + margin-top: 5px +} + +.mfp-bg { + top: 0; + left: 0; + width: 100%; + height: 100%; + z-index: 1042; + overflow: hidden; + position: fixed; + background: #0b0b0b; + opacity: .8 +} + +.mfp-wrap { + top: 0; + left: 0; + width: 100%; + height: 100%; + z-index: 1043; + position: fixed; + outline: 0!important; + -webkit-backface-visibility: hidden +} + +.mfp-container { + text-align: center; + position: absolute; + width: 100%; + height: 100%; + left: 0; + top: 0; + padding: 0 8px; + -webkit-box-sizing: border-box; + box-sizing: border-box +} + +.mfp-container:before { + content: ""; + display: inline-block; + height: 100%; + vertical-align: middle +} + +.mfp-align-top .mfp-container:before { + display: none +} + +.mfp-content { + position: relative; + display: inline-block; + vertical-align: middle; + margin: 0 auto; + text-align: left; + z-index: 1045 +} + +.mfp-ajax-holder .mfp-content,.mfp-inline-holder .mfp-content { + width: 100%; + cursor: auto +} + +.mfp-ajax-cur { + cursor: progress +} + +.mfp-zoom-out-cur,.mfp-zoom-out-cur .mfp-image-holder .mfp-close { + cursor: -webkit-zoom-out; + cursor: zoom-out +} + +.mfp-zoom { + cursor: pointer; + cursor: -webkit-zoom-in; + cursor: zoom-in +} + +.mfp-auto-cursor .mfp-content { + cursor: auto +} + +.mfp-arrow,.mfp-close,.mfp-counter,.mfp-preloader { + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none +} + +.mfp-loading.mfp-figure { + display: none +} + +.mfp-hide { + display: none!important +} + +.mfp-preloader { + color: #ccc; + position: absolute; + top: 50%; + width: auto; + text-align: center; + margin-top: -.8em; + left: 8px; + right: 8px; + z-index: 1044 +} + +.mfp-preloader a { + color: #ccc +} + +.mfp-preloader a:hover { + color: #fff +} + +.mfp-s-ready .mfp-preloader { + display: none +} + +.mfp-s-error .mfp-content { + display: none +} + +button.mfp-arrow,button.mfp-close { + overflow: visible; + cursor: pointer; + background: 0 0; + border: 0; + -webkit-appearance: none; + display: block; + outline: 0; + padding: 0; + z-index: 1046; + -webkit-box-shadow: none; + box-shadow: none; + -ms-touch-action: manipulation; + touch-action: manipulation +} + +button::-moz-focus-inner { + padding: 0; + border: 0 +} + +.mfp-close { + width: 44px; + height: 44px; + line-height: 44px; + position: absolute; + right: 0; + top: 0; + text-decoration: none; + text-align: center; + opacity: .65; + padding: 0 0 18px 10px; + color: #fff; + font-style: normal; + font-size: 28px; + font-family: Arial,Baskerville,monospace +} + +.mfp-close:focus,.mfp-close:hover { + opacity: 1 +} + +.mfp-close:active { + top: 1px +} + +.mfp-close-btn-in .mfp-close { + color: #333 +} + +.mfp-iframe-holder .mfp-close,.mfp-image-holder .mfp-close { + color: #fff; + right: -6px; + text-align: right; + padding-right: 6px; + width: 100% +} + +.mfp-counter { + position: absolute; + top: 0; + right: 0; + color: #ccc; + font-size: 12px; + line-height: 18px; + white-space: nowrap +} + +.mfp-arrow { + position: absolute; + opacity: .65; + margin: 0; + top: 50%; + margin-top: -55px; + padding: 0; + width: 90px; + height: 110px; + -webkit-tap-highlight-color: transparent +} + +.mfp-arrow:active { + margin-top: -54px +} + +.mfp-arrow:focus,.mfp-arrow:hover { + opacity: 1 +} + +.mfp-arrow:after,.mfp-arrow:before { + content: ""; + display: block; + width: 0; + height: 0; + position: absolute; + left: 0; + top: 0; + margin-top: 35px; + margin-left: 35px; + border: medium inset transparent +} + +.mfp-arrow:after { + border-top-width: 13px; + border-bottom-width: 13px; + top: 8px +} + +.mfp-arrow:before { + border-top-width: 21px; + border-bottom-width: 21px; + opacity: .7 +} + +.mfp-arrow-left { + left: 0 +} + +.mfp-arrow-left:after { + border-right: 17px solid #fff; + margin-left: 31px +} + +.mfp-arrow-left:before { + margin-left: 25px; + border-right: 27px solid #3f3f3f +} + +.mfp-arrow-right { + right: 0 +} + +.mfp-arrow-right:after { + border-left: 17px solid #fff; + margin-left: 39px +} + +.mfp-arrow-right:before { + border-left: 27px solid #3f3f3f +} + +.mfp-iframe-holder { + padding-top: 40px; + padding-bottom: 40px +} + +.mfp-iframe-holder .mfp-content { + line-height: 0; + width: 100%; + max-width: 900px +} + +.mfp-iframe-holder .mfp-close { + top: -40px +} + +.mfp-iframe-scaler { + width: 100%; + height: 0; + overflow: hidden; + padding-top: 56.25% +} + +.mfp-iframe-scaler iframe { + position: absolute; + display: block; + top: 0; + left: 0; + width: 100%; + height: 100%; + -webkit-box-shadow: 0 0 8px rgba(0,0,0,.6); + box-shadow: 0 0 8px rgba(0,0,0,.6); + background: #000 +} + +img.mfp-img { + width: auto; + max-width: 100%; + height: auto; + display: block; + line-height: 0; + -webkit-box-sizing: border-box; + box-sizing: border-box; + padding: 40px 0 40px; + margin: 0 auto +} + +.mfp-figure { + line-height: 0 +} + +.mfp-figure:after { + content: ""; + position: absolute; + left: 0; + top: 40px; + bottom: 40px; + display: block; + right: 0; + width: auto; + height: auto; + z-index: -1; + -webkit-box-shadow: 0 0 8px rgba(0,0,0,.6); + box-shadow: 0 0 8px rgba(0,0,0,.6); + background: #444 +} + +.mfp-figure small { + color: #bdbdbd; + display: block; + font-size: 12px; + line-height: 14px +} + +.mfp-figure figure { + margin: 0 +} + +.mfp-bottom-bar { + margin-top: -36px; + position: absolute; + top: 100%; + left: 0; + width: 100%; + cursor: auto +} + +.mfp-title { + text-align: left; + line-height: 18px; + color: #f3f3f3; + word-wrap: break-word; + padding-right: 36px +} + +.mfp-image-holder .mfp-content { + max-width: 100% +} + +.mfp-gallery .mfp-image-holder .mfp-figure { + cursor: pointer +} + +@media screen and (max-width: 800px) and (orientation:landscape),screen and (max-height:300px) { + .mfp-img-mobile .mfp-image-holder { + padding-left:0; + padding-right: 0 + } + + .mfp-img-mobile img.mfp-img { + padding: 0 + } + + .mfp-img-mobile .mfp-figure:after { + top: 0; + bottom: 0 + } + + .mfp-img-mobile .mfp-figure small { + display: inline; + margin-left: 5px + } + + .mfp-img-mobile .mfp-bottom-bar { + background: rgba(0,0,0,.6); + bottom: 0; + margin: 0; + top: auto; + padding: 3px 5px; + position: fixed; + -webkit-box-sizing: border-box; + box-sizing: border-box + } + + .mfp-img-mobile .mfp-bottom-bar:empty { + padding: 0 + } + + .mfp-img-mobile .mfp-counter { + right: 5px; + top: 3px + } + + .mfp-img-mobile .mfp-close { + top: 0; + right: 0; + width: 35px; + height: 35px; + line-height: 35px; + background: rgba(0,0,0,.6); + position: fixed; + text-align: center; + padding: 0 + } +} + +@media all and (max-width: 900px) { + .mfp-arrow { + -webkit-transform:scale(.75); + transform: scale(.75) + } + + .mfp-arrow-left { + -webkit-transform-origin: 0; + transform-origin: 0 + } + + .mfp-arrow-right { + -webkit-transform-origin: 100%; + transform-origin: 100% + } + + .mfp-container { + padding-left: 6px; + padding-right: 6px + } +} + +.mfp-arrow:focus,.mfp-close:focus { + outline: 1px dotted #fff; + outline-offset: -2px +} + +body.wb-modal summary,body.wb-modal>#wb-tphp,body.wb-modal>footer,body.wb-modal>header,body.wb-modal>main { + visibility: hidden!important +} + +.lbx-hide-gal li { + display: none; + list-style-type: none +} + +.lbx-hide-gal li:first-child { + display: block +} + +body.wb-modal .modal-dialog summary { + visibility: visible!important +} + +.modal-dialog { + left: auto; + padding: 0; + position: relative +} + +.modal-content { + background: 0 0 +} + +.modal-body { + background: #fff +} + +.modal-footer { + background: #fff; + margin-top: 0 +} + +.mfp-gallery .modal-body { + padding: 20px 30px +} + +.mfp-close { + cursor: pointer!important; + font-weight: 700 +} + +.mfp-arrow { + opacity: 1 +} + +.mfp-arrow-left .mfp-b,.mfp-arrow-left:before { + border-right: 27px solid #000 +} + +.mfp-arrow-right .mfp-b,.mfp-arrow-right:before { + border-left: 27px solid #000 +} + +.mfp-bottom-bar .mfp-title { + padding-right: 5px; + width: 75% +} + +.mfp-bottom-bar .mfp-counter { + font-size: 1em; + text-align: right; + width: 25% +} + +.wb-modal dialog { + background-color: transparent; + border: none +} + +.expicon { + font-size: .7em; + margin: 0 -.35em 0 .7em +} + +.wb-menu .sm { + display: none; + max-height: 0; + overflow: hidden; + position: relative +} + +.wb-menu .sm.open { + display: inline; + max-height: 1000px; + min-width: 12.5em; + position: absolute; + text-transform: none; + top: auto; + z-index: 500 +} + +.wb-menu .sm.open li a { + text-align: left +} + +.wb-menu .sm details>* { + margin-left: auto; + margin-right: auto +} + +.wb-menu .menu { + margin-left: 0; + position: relative +} + +.wb-menu .menu>li { + float: left; + margin: 0; + padding: 0 +} + +.wb-menu .menu>li a { + display: block; + padding: 1em; + text-align: center +} + +.wb-menu .menu>li a[aria-haspopup]:focus,.wb-menu .menu>li a[aria-haspopup]:hover { + cursor: default +} + +.wb-menu .sm-open .expicon { + z-index: -1 +} + +.wb-menu details,.wb-menu details[open] { + border: 0; + margin-bottom: 0 +} + +.wb-menu details summary,.wb-menu details[open] summary { + border: 0; + color: inherit +} + +.wb-menu details summary:focus,.wb-menu details summary:hover,.wb-menu details[open] summary:focus,.wb-menu details[open] summary:hover { + text-decoration: none +} + +#mb-pnl nav a.wb-navcurr,#mb-pnl nav summary.wb-navcurr { + outline: 1px solid +} + +#mb-pnl nav a.wb-navcurr:focus,#mb-pnl nav summary.wb-navcurr:focus { + outline-style: dotted +} + +#mb-pnl .srch-pnl,#mb-pnl nav { + padding: 10px 20px 8px +} + +#mb-pnl .srch-pnl form { + white-space: nowrap +} + +#mb-pnl .lng-ofr { + padding: 7px 15px 0; + text-align: right +} + +#mb-pnl .lng-ofr ul { + margin-bottom: 0 +} + +#mb-pnl .lng-ofr li { + line-height: normal; + padding-left: 10px; + padding-right: 0 +} + +#mb-pnl .lng-ofr li a { + padding: 5px +} + +#mb-pnl nav ul li.no-sect { + padding-left: 1.27em +} + +#mb-pnl nav ul li.no-sect .list-group { + margin-bottom: 0 +} + +#mb-pnl nav ul li.no-sect a { + margin: 0 0 0 -6px +} + +#mb-pnl nav .mb-menu>li { + padding: 10px 0 2px +} + +#mb-pnl nav a { + display: inline-block; + margin: 6px 0 6px -6px; + padding: 0 6px; + width: 100% +} + +#mb-pnl nav summary { + padding-left: 3px +} + +#mb-pnl nav summary.wb-navcurr:focus { + outline-offset: -2px +} + +#mb-pnl details[open] { + padding-bottom: 0 +} + +#mb-pnl details ul { + padding-left: 1.2em +} + +#mb-pnl details details { + margin: 6px 0 6px -1.28em +} + +.wb-disable #wb-glb-mn { + display: none!important +} + +.wb-disable #wb-sm .menu { + background: #0e4164 +} + +[dir=rtl] .wb-menu .menu { + padding-right: 0 +} + +[dir=rtl] .wb-menu .menu>li { + float: right +} + +[dir=rtl] .wb-menu .sm.open li a { + text-align: right +} + +[dir=rtl] .expicon { + margin: 0 .7em 0 -.35em +} + +[dir=rtl] #mb-pnl .lng-ofr { + text-align: left +} + +[dir=rtl] #mb-pnl .lng-ofr li { + padding-left: 0; + padding-right: 10px +} + +[dir=rtl] #mb-pnl nav ul li.no-sect { + padding-left: 0; + padding-right: 1.27em +} + +[dir=rtl] #mb-pnl nav a { + margin-left: 0; + margin-right: -6px +} + +[dir=rtl] #mb-pnl nav summary { + margin-left: 0; + margin-right: -3px; + padding-left: 0; + padding-right: 3px +} + +[dir=rtl] #mb-pnl details ul { + padding-left: 0; + padding-right: .7em +} + +.wb-mltmd.audio .lastpnl,.wb-mltmd.youtube.cc_on .wb-mm-cc { + display: none +} + +.wb-mm-ctrls .btn:focus,.wb-mm-ctrls input[type=range]:focus,.wb-mm-ctrls progress:focus { + outline: 1px solid #4aafff +} + +.wb-mm-ctrls .fd-slider-bar,.wb-mm-ctrls .fd-slider-range { + background: #aaa; + border: 0 +} + +.xxsmallview .wb-mm-ctrls .frstpnl,.xxsmallview .wb-mm-ctrls .lastpnl { + padding-top: 2em +} + +.wb-mltmd iframe,.wb-mltmd object,.wb-mltmd video { + display: block; + width: 100% +} + +.wb-mm-cc { + max-height: 0; + padding: 0 +} + +.wb-mm-cc div,.wb-mm-cc:before { + display: table-cell; + height: 2.875em; + vertical-align: middle +} + +.wb-mltmd { + display: block; + position: relative +} + +.wb-mltmd.video:not(.playing):not(.waiting):not(.youtube) .display { + cursor: pointer; + position: relative +} + +.wb-mltmd.video:not(.playing):not(.waiting):not(.youtube) .display:before { + text-align: center +} + +.wb-mltmd.video:not(.playing):not(.waiting):not(.youtube) .display:after { + color: #fff; + content: "\e072"; + font-family: "Glyphicons Halflings"; + font-size: 65px; + text-align: center +} + +.wb-mltmd.video.waiting .display { + position: relative +} + +.wb-mltmd.video.waiting .display:after,.wb-mltmd.video.waiting .display:before { + display: block +} + +.wb-mltmd.audio object { + position: absolute +} + +.wb-mltmd video { + height: auto; + width: 100% +} + +.wb-mltmd.cc_on.played:not(.youtube) .wb-mm-cc { + display: table; + height: calc(2.875em + 1em); + padding: .5em +} + +.wb-mltmd.cc_on:not(.errmsg) .cc:after { + border-bottom: 3px solid #4aafff; + content: " "; + display: block; + margin-left: -2px; + width: 1.2em +} + +.wb-mltmd.skn-lt { + border-bottom: 1px solid #ddd; + color: #000 +} + +.wb-mltmd.skn-lt .wb-mm-ctrls { + background: #fff; + color: #000 +} + +.wb-mltmd.skn-lt .wb-mm-ctrls .btn { + background: #fff; + border: 0; + color: #000 +} + +.wb-mltmd.skn-lt .wb-mm-ctrls .btn[disabled]:active:hover { + color: #000 +} + +.wb-mltmd .wb-share { + text-align: right +} + +.wb-mltmd details[open],.wb-mltmd summary { + border-top-left-radius: 0; + border-top-right-radius: 0 +} + +.wb-mm-cc { + background-color: #000; + color: #fff; + text-align: center; + -webkit-transition: all .26s ease; + transition: all .26s ease; + width: 100% +} + +.wb-mm-cc:before { + content: " " +} + +.wb-mm-ctrls .frstpnl,.wb-mm-ctrls .lastpnl,.wb-mm-ctrls .tline { + display: table-cell; + vertical-align: middle +} + +.wb-mm-ctrls { + background: #3e3e3e; + color: #fff; + display: table; + padding-top: 2em; + position: relative; + width: 100% +} + +.wb-mm-ctrls .btn { + background: 0 0; + border: 0; + color: #fff; + font-size: 130%; + border-top-left-radius: 0!important; + border-top-right-radius: 0!important +} + +.wb-mm-ctrls .btn[disabled]:active:hover { + color: #fff +} + +.wb-mm-ctrls .btn[disabled]:hover { + background-color: transparent +} + +.wb-mm-ctrls .fs { + display: none +} + +.wb-mltmd[data-fullscreen-btn] .wb-mm-ctrls .fs { + display: block +} + +.wb-mm-ctrls .frstpnl { + text-align: center; + width: 13em +} + +.wb-mm-ctrls .lastpnl { + text-align: center; + width: 3em +} + +.wb-mltmd[data-fullscreen-btn] .wb-mm-ctrls .lastpnl { + width: 6em +} + +.wb-mm-ctrls .tline .wb-mm-tmln-crrnt:after { + content: " / "; + padding: 0 .5em +} + +.wb-mm-ctrls .wb-mm-txtonly { + padding: 0 1em +} + +.wb-mm-ctrls .wb-mm-txtonly p { + display: inline +} + +.wb-mm-ctrls .wb-mm-prgrss,.wb-mm-ctrls .wb-mm-txtonly { + display: table-cell; + vertical-align: middle +} + +.wb-mm-ctrls progress { + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + background: #fff; + background-clip: padding-box; + border: 7px solid #3e3e3e; + border-radius: 14px; + color: #176ca7; + display: block; + height: 30px; + left: 0; + padding: 2px; + position: absolute; + top: 0; + width: 100% +} + +.wb-mm-ctrls progress.wb-progress-inited { + overflow: hidden; + padding: 0 +} + +.wb-mm-ctrls progress::-webkit-progress-bar { + background: #fff +} + +.wb-mm-ctrls progress::-webkit-progress-value { + background: #176ca7; + border-radius: 7px +} + +.wb-mm-ctrls progress::-moz-progress-bar { + background: #176ca7; + border-radius: 7px +} + +.wb-mm-ctrls .progress { + height: 22px +} + +.wb-mm-ctrls input[type=range] { + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + background: 0 0; + display: inline-block; + height: 2.5em; + padding: 0; + width: 7em +} + +.wb-mm-ctrls input[type=range]:focus { + outline-offset: 0 +} + +.wb-mm-ctrls input[type=range]::-webkit-slider-runnable-track { + background: #aaa; + height: 4px +} + +.wb-mm-ctrls input[type=range]::-webkit-slider-thumb { + -webkit-appearance: none; + appearance: none; + background: #fff; + border: 1px solid #707070; + -webkit-box-sizing: content-box; + box-sizing: content-box; + height: 1.3em; + margin-top: -9px; + width: 10px +} + +.wb-mm-ctrls input[type=range]::-moz-range-track { + background: #aaa; + border: 0 +} + +.wb-mm-ctrls input[type=range]::-moz-range-thumb { + background: #fff; + border: 1px solid #707070; + border-radius: 0; + height: 1.3em; + width: 10px +} + +.wb-mm-ctrls input[type=range]::-ms-track { + border: 0; + color: transparent; + height: 4px +} + +.wb-mm-ctrls input[type=range]::-ms-fill-upper { + background: #aaa +} + +.wb-mm-ctrls input[type=range]::-ms-fill-lower { + background: #aaa +} + +.wb-mm-ctrls input[type=range]::-ms-thumb { + background: #fff; + border: 1px solid #707070; + height: 1.3em; + width: 10px +} + +.wb-mm-ctrls .fd-slider { + display: inline-block; + height: 100%; + margin-top: 10px; + width: 7em +} + +.wb-mm-ctrls .fd-slider-handle { + background: #fff; + border: 1px solid #707070; + -webkit-box-sizing: content-box; + box-sizing: content-box; + width: 10px +} + +.xxsmallview .wb-mm-ctrls .wb-mm-txtonly { + left: 0; + margin-top: -2em; + position: absolute +} + +.wb-mltmd { + margin-bottom: 10px; + margin-top: 10px +} + +.wb-mltmd.cc_on .wb-mm-cc { + height: calc(3.3em + 1em) +} + +.wb-mltmd.video:not(.playing,.waiting) .display::after { + line-height: 1.5em +} + +.wb-mm-cc div,.wb-mm-cc:before { + height: 3.3em +} + +.wb-mm-ctrls .wb-mm-txtonly p { + white-space: nowrap +} + +.wb-frmvld section[id^=errors-] h2 { + font-size: 1.75em +} + +.wb-overlay { + background-clip: border-box; + background-color: #fff; + border: 0; + border-radius: 0; + display: none; + -webkit-transform: translateZ(0); + transform: translateZ(0); + z-index: 1050 +} + +.wb-overlay.wb-inview { + display: block +} + +.wb-overlay.open { + display: inline-block; + position: fixed +} + +.wb-panel-l,.wb-panel-r { + height: 100%; + max-width: 90%; + top: 0 +} + +.wb-bar-b,.wb-bar-t { + border-bottom: 0; + left: 0; + max-height: 90%; + min-width: 100% +} + +.wb-popup-mid { + max-height: 90%; + max-width: 90% +} + +.wb-panel-l { + left: 0 +} + +.wb-panel-r { + right: 0 +} + +.wb-bar-t { + top: 0 +} + +.wb-bar-b { + bottom: 0 +} + +.wb-popup-mid { + border-radius: 6px; + bottom: 0; + left: 0; + margin: auto; + right: 0; + top: 0; + width: 90% +} + +.wb-popup-full { + height: 100%; + left: 0; + top: 0; + width: 100% +} + +.mfp-bg { + opacity: .97 +} + +.wb-overlay-dlg { + overflow: hidden +} + +.wb-overlay-dlg .overlay-bg { + -webkit-box-shadow: 0 0 1000px 1000px #000; + box-shadow: 0 0 1000px 1000px #000 +} + +.overlay-def { + overflow-y: auto +} + +.overlay-def header { + background-color: #2e5274; + color: #fff; + display: block; + padding: 0 44px 0 1em +} + +.overlay-def .modal-title { + font-size: 1.15em; + padding: 10px 0 +} + +.overlay-def.wb-bar-b,.overlay-def.wb-bar-t { + background-color: #000 +} + +.overlay-def.wb-bar-b header,.overlay-def.wb-bar-t header { + background-color: #000 +} + +.overlay-def .mfp-close { + color: #fff +} + +.hidden-hd .modal-body { + padding-top: 50px +} + +.hidden-hd .overlay-close:not(.btn) { + background-color: #000; + border-radius: 999px; + height: 1em; + line-height: 1em; + margin-right: 20px; + margin-top: 10px; + width: 1em +} + +[dir=rtl] .mfp-close { + left: 0; + right: auto +} + +[dir=rtl] .wb-panel-l { + left: auto; + right: 0 +} + +[dir=rtl] .wb-panel-r { + left: 0; + right: auto +} + +[dir=rtl] .overlay-def header { + padding: 0 1em 0 44px +} + +.overlay-def header { + background: #26374a +} + +.pln { + color: #000 +} + +pre.prettyprint { + background-color: #f5f5f5; + border: 1px solid #ddd; + color: #707070; + font-size: 95%; + padding: 8px +} + +pre.prettyprint.linenums { + -webkit-box-shadow: 40px 0 0 #fbfbfc inset,41px 0 0 #eee inset; + box-shadow: 40px 0 0 #fbfbfc inset,41px 0 0 #eee inset +} + +pre.prettyprint code { + -moz-tab-size: 20px; + -o-tab-size: 20px; + tab-size: 20px +} + +pre.prettyprint code ins { + font-weight: 700; + text-decoration: none +} + +ol.linenums { + margin: 0!important +} + +ol.linenums li { + padding-left: 10px; + text-shadow: 0 1px 0 #fff +} + +[dir=rtl] pre.prettyprint { + direction: ltr +} + +#wb-rsz { + clip-path: inset(50%); + margin: 0; + overflow: hidden; + position: absolute; + top: -1000px +} + +.shr-opn span { + padding-right: .2em +} + +.shr-pg .shr-lnk { + font-size: 115%; + line-height: 32px; + margin-bottom: 8px; + min-height: 32px; + text-align: left; + text-decoration: none; + width: 100% +} + +.shr-pg .shr-lnk:before { + content: " "; + display: inline-block; + height: 32px; + margin-right: .6em; + vertical-align: middle; + width: 32px +} + +.shr-pg .blogger:before { + background-image: url(../../wet-boew/assets/sprites_share.png); + background-position: 0 0; + width: 32px; + height: 32px +} + +.shr-pg .bluesky:before { + background-image: url(../../wet-boew/assets/sprites_share.png); + background-position: -32px 0; + width: 32px; + height: 32px +} + +.shr-pg .diigo:before { + background-image: url(../../wet-boew/assets/sprites_share.png); + background-position: 0 -32px; + width: 32px; + height: 32px +} + +.shr-pg .facebook:before { + background-image: url(../../wet-boew/assets/sprites_share.png); + background-position: -32px -32px; + width: 32px; + height: 32px +} + +.shr-pg .feed:before { + background-image: url(../../wet-boew/assets/sprites_share.png); + background-position: -64px 0; + width: 32px; + height: 32px +} + +.shr-pg .gmail:before { + background-image: url(../../wet-boew/assets/sprites_share.png); + background-position: -64px -32px; + width: 32px; + height: 32px +} + +.shr-pg .linkedin:before { + background-image: url(../../wet-boew/assets/sprites_share.png); + background-position: 0 -64px; + width: 32px; + height: 32px +} + +.shr-pg .myspace:before { + background-image: url(../../wet-boew/assets/sprites_share.png); + background-position: -32px -64px; + width: 32px; + height: 32px +} + +.shr-pg .pinterest:before { + background-image: url(../../wet-boew/assets/sprites_share.png); + background-position: -64px -64px; + width: 32px; + height: 32px +} + +.shr-pg .reddit:before { + background-image: url(../../wet-boew/assets/sprites_share.png); + background-position: -96px 0; + width: 32px; + height: 32px +} + +.shr-pg .tinyurl:before { + background-image: url(../../wet-boew/assets/sprites_share.png); + background-position: -96px -32px; + width: 32px; + height: 32px +} + +.shr-pg .tumblr:before { + background-image: url(../../wet-boew/assets/sprites_share.png); + background-position: -96px -64px; + width: 32px; + height: 32px +} + +.shr-pg .twitter:before { + background-image: url(../../wet-boew/assets/sprites_share.png); + background-position: 0 -96px; + width: 32px; + height: 32px +} + +.shr-pg .whatsapp:before { + background-image: url(../../wet-boew/assets/sprites_share.png); + background-position: -32px -96px; + width: 32px; + height: 32px +} + +.shr-pg .x:before { + background-image: url(../../wet-boew/assets/sprites_share.png); + background-position: -64px -96px; + width: 32px; + height: 32px +} + +.shr-pg .yahoomail:before { + background-image: url(../../wet-boew/assets/sprites_share.png); + background-position: -96px -96px; + width: 32px; + height: 32px +} + +.shr-pg .shr-dscl { + padding-bottom: 0 +} + +.shr-pg .email:before { + content: "✉"; + display: inline-block; + font-family: "Glyphicons Halflings"; + font-size: 32px; + margin-right: .3em +} + +.shr-pg .shr-pg { + text-align: left +} + +.shr-pg ul { + list-style-type: none; + margin: 10px; + padding: 0 +} + +[dir=rtl] .shr-opn span { + padding-left: .2em; + padding-right: 0 +} + +[dir=rtl] .shr-pg { + text-align: right +} + +[dir=rtl] .shr-pg .shr-lnk { + text-align: right +} + +[dir=rtl] .shr-pg .shr-lnk:before { + margin-left: .4em; + margin-right: auto +} + +[dir=rtl] .email:before { + margin-left: .6em; + margin-right: auto +} + +.wb-steps { + counter-reset: fieldset_counter +} + +.wb-steps .wb-tggle-fildst>legend:before { + content: counter(fieldset_counter) ". "; + counter-increment: fieldset_counter +} + +.wb-steps .wb-tggle-fildst>legend.wb-steps-active { + color: #1c578a +} + +.wb-steps .wb-tggle-fildst>legend.wb-steps-error { + color: #942826 +} + +.wb-steps .steps-wrapper { + border-bottom: 1px solid silver +} + +.wb-steps .subfields { + border: 0 +} + +.wb-steps.quiz .steps-wrapper { + border-bottom: none +} + +.wb-steps.quiz .steps-wrapper .buttons .btn { + display: inline-block; + margin: 10px 1%; + width: 48% +} + +.wb-steps.quiz fieldset legend+* { + clear: left +} + +.wb-steps.quiz .wb-tggle-fildst>legend:before { + content: ""; + counter-increment: none +} + +.wb-steps.quiz .wb-tggle-fildst ul { + list-style: none; + padding-left: 20px +} + +.wb-steps.quiz label { + display: block +} + +.wb-steps.quiz progress.progressBar { + width: 100% +} + +.wb-steps.quiz .progressText { + text-align: center +} + +.wb-steps.quiz p { + font-size: 20px +} + +.cnt-wdth-lmtd main .panel.stepsquiz:has(.wb-steps.quiz) { + max-width: 65ch +} + +.dataTables_wrapper .dataTables_scroll,table.dataTable { + clear: both +} + +table.dataTable thead td:active,table.dataTable thead th:active { + outline: 0 +} + +.dataTables_wrapper .dataTables_filter,.dataTables_wrapper .dataTables_length { + font-weight: 400 +} + +table.dataTable tfoot th,table.dataTable thead th { + font-weight: 700 +} + +.dataTables_wrapper.no-footer .dataTables_scrollBody,table.dataTable tfoot td,table.dataTable tfoot th,table.dataTable thead td,table.dataTable thead th,table.dataTable.no-footer { + border-bottom: 1px solid #111 +} + +table.dataTable td.right,table.dataTable th.right { + text-align: right +} + +table.dataTable td.center,table.dataTable td.dataTables_empty,table.dataTable th.center { + text-align: center +} + +table.dataTable.display tbody td,table.dataTable.display tbody th,table.dataTable.rowborder tbody td,table.dataTable.rowborder tbody th { + border-top: 1px solid #ddd +} + +table.dataTable.cell-border tbody tr:first-child td,table.dataTable.cell-border tbody tr:first-child th,table.dataTable.display tbody tr:first-child td,table.dataTable.display tbody tr:first-child th,table.dataTable.rowborder tbody tr:first-child td,table.dataTable.rowborder tbody tr:first-child th { + border-top: 0 +} + +table.dataTable.cell-border tbody td,table.dataTable.cell-border tbody th { + border-right: 1px solid #ddd; + border-top: 1px solid #ddd +} + +table.dataTable.cell-border tbody tr td:first-child,table.dataTable.cell-border tbody tr th:first-child { + border-left: 1px solid #ddd +} + +.dataTables_wrapper .dataTables_filter,.dataTables_wrapper .dataTables_info,.dataTables_wrapper .dataTables_length,.dataTables_wrapper .dataTables_processing { + color: #333 +} + +table.dataTable.display tbody tr.even:hover.selected>.sorting_1,table.dataTable.display tbody tr.odd:hover.selected>.sorting_1,table.dataTable.display tbody tr:hover.selected>.sorting_1,table.dataTable.order-column.hover tbody tr.even:hover.selected>.sorting_1,table.dataTable.order-column.hover tbody tr.odd:hover.selected>.sorting_1,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_1 { + background-color: #a1aec7 +} + +table.dataTable.display tbody tr.even:hover.selected>.sorting_2,table.dataTable.display tbody tr.odd:hover.selected>.sorting_2,table.dataTable.display tbody tr:hover.selected>.sorting_2,table.dataTable.order-column.hover tbody tr.even:hover.selected>.sorting_2,table.dataTable.order-column.hover tbody tr.odd:hover.selected>.sorting_2,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_2 { + background-color: #a2afc8 +} + +table.dataTable.display tbody tr.even:hover.selected>.sorting_3,table.dataTable.display tbody tr.odd:hover.selected>.sorting_3,table.dataTable.display tbody tr:hover.selected>.sorting_3,table.dataTable.order-column.hover tbody tr.even:hover.selected>.sorting_3,table.dataTable.order-column.hover tbody tr.odd:hover.selected>.sorting_3,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_3 { + background-color: #a4b2cb +} + +table.dataTable.display tbody tr.odd.selected>.sorting_1,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_1 { + background-color: #a6b3cd +} + +table.dataTable.display tbody tr.odd.selected>.sorting_2,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_2 { + background-color: #a7b5ce +} + +table.dataTable.display tbody tr.odd.selected>.sorting_3,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_3 { + background-color: #a9b6d0 +} + +table.dataTable.display tbody tr.even:hover.selected,table.dataTable.display tbody tr.odd:hover.selected,table.dataTable.display tbody tr:hover.selected,table.dataTable.hover tbody tr.even:hover.selected,table.dataTable.hover tbody tr.odd:hover.selected,table.dataTable.hover tbody tr:hover.selected { + background-color: #a9b7d1 +} + +table.dataTable.display tbody tr.odd.selected,table.dataTable.stripe tbody tr.odd.selected { + background-color: #abb9d3 +} + +table.dataTable.display tbody tr.even.selected>.sorting_1,table.dataTable.display tbody tr.selected>.sorting_1,table.dataTable.display tbody tr.selected>.sorting_2,table.dataTable.display tbody tr.selected>.sorting_3,table.dataTable.order-column tbody tr.selected>.sorting_1,table.dataTable.order-column tbody tr.selected>.sorting_2,table.dataTable.order-column tbody tr.selected>.sorting_3,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_1 { + background-color: #acbad4 +} + +table.dataTable.display tbody tr.even.selected>.sorting_2,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_2 { + background-color: #adbbd6 +} + +table.dataTable.display tbody tr.even.selected>.sorting_3,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_3 { + background-color: #afbdd8 +} + +table.dataTable thead .sorting_asc,table.dataTable thead .sorting_desc { + background-color: #e7e7e7 +} + +table.dataTable.display tbody tr.even:hover>.sorting_1,table.dataTable.display tbody tr.odd:hover>.sorting_1,table.dataTable.display tbody tr:hover>.sorting_1,table.dataTable.order-column.hover tbody tr.even:hover>.sorting_1,table.dataTable.order-column.hover tbody tr.odd:hover>.sorting_1,table.dataTable.order-column.hover tbody tr:hover>.sorting_1 { + background-color: #eaeaea +} + +table.dataTable.display tbody tr.even:hover>.sorting_2,table.dataTable.display tbody tr.odd:hover>.sorting_2,table.dataTable.display tbody tr:hover>.sorting_2,table.dataTable.order-column.hover tbody tr.even:hover>.sorting_2,table.dataTable.order-column.hover tbody tr.odd:hover>.sorting_2,table.dataTable.order-column.hover tbody tr:hover>.sorting_2 { + background-color: #ebebeb +} + +table.dataTable.display tbody tr.even:hover>.sorting_3,table.dataTable.display tbody tr.odd:hover>.sorting_3,table.dataTable.display tbody tr:hover>.sorting_3,table.dataTable.order-column.hover tbody tr.even:hover>.sorting_3,table.dataTable.order-column.hover tbody tr.odd:hover>.sorting_3,table.dataTable.order-column.hover tbody tr:hover>.sorting_3 { + background-color: #eee +} + +table.dataTable.display tbody tr.odd>.sorting_1,table.dataTable.order-column.stripe tbody tr.odd>.sorting_1 { + background-color: #f1f1f1 +} + +table.dataTable.display tbody tr.odd>.sorting_2,table.dataTable.order-column.stripe tbody tr.odd>.sorting_2 { + background-color: #f3f3f3 +} + +table.dataTable.display tbody tr.even:hover,table.dataTable.display tbody tr.odd:hover,table.dataTable.display tbody tr.odd>.sorting_3,table.dataTable.display tbody tr:hover,table.dataTable.hover tbody tr.even:hover,table.dataTable.hover tbody tr.odd:hover,table.dataTable.hover tbody tr:hover,table.dataTable.order-column.stripe tbody tr.odd>.sorting_3 { + background-color: #f5f5f5 +} + +table.dataTable.display tbody tr.even>.sorting_1,table.dataTable.display tbody tr.odd,table.dataTable.display tbody tr>.sorting_1,table.dataTable.display tbody tr>.sorting_2,table.dataTable.display tbody tr>.sorting_3,table.dataTable.order-column tbody tr>.sorting_1,table.dataTable.order-column tbody tr>.sorting_2,table.dataTable.order-column tbody tr>.sorting_3,table.dataTable.order-column.stripe tbody tr.even>.sorting_1,table.dataTable.stripe tbody tr.odd { + background-color: #f9f9f9 +} + +table.dataTable.display tbody tr.even>.sorting_2,table.dataTable.order-column.stripe tbody tr.even>.sorting_2 { + background-color: #fbfbfb +} + +table.dataTable.display tbody tr.even>.sorting_3,table.dataTable.order-column.stripe tbody tr.even>.sorting_3 { + background-color: #fdfdfd +} + +table.dataTable,table.dataTable td,table.dataTable th { + -webkit-box-sizing: content-box; + box-sizing: content-box +} + +table.dataTable thead .sorting .sorting-icons:after,table.dataTable thead .sorting .sorting-icons:before,table.dataTable thead .sorting_asc .sorting-icons:after,table.dataTable thead .sorting_desc .sorting-icons:before { + background: #fff; + border: 1px solid #aaa; + color: #757575 +} + +table.dataTable thead .sorting_asc .sorting-icons:before,table.dataTable thead .sorting_desc .sorting-icons:after { + background: #ccc; + border: 1px solid #111; + color: #000 +} + +table.dataTable thead .sorting,table.dataTable thead .sorting_asc,table.dataTable thead .sorting_desc { + cursor: pointer +} + +table.dataTable thead .sorting .sorting-icons,table.dataTable thead .sorting_asc .sorting-icons,table.dataTable thead .sorting_asc_disabled .sorting-icons,table.dataTable thead .sorting_desc .sorting-icons,table.dataTable thead .sorting_desc_disabled .sorting-icons { + display: inline-block +} + +table.dataTable { + border-collapse: separate; + border-spacing: 0; + margin: 0 auto; + width: 100%!important +} + +table.dataTable thead button { + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + background: 0 0; + border: 0; + font-family: inherit; + padding: 0; + text-align: left +} + +table.dataTable thead .sorting-cnt { + white-space: nowrap +} + +table.dataTable thead .sorting-cnt:before { + content: " " +} + +table.dataTable thead .sorting-icons { + margin-top: 2px +} + +table.dataTable thead .sorting-icons:before { + content: "\e093"; + padding: 0 .1em 0 0 +} + +table.dataTable thead .sorting-icons:after { + content: "\e094"; + padding: 0 .04em 0 .06em +} + +table.dataTable tbody tr { + background-color: #fff +} + +table.dataTable tbody tr.selected { + background-color: #b0bed9 +} + +.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody td>div.dataTables_sizing,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody th>div.dataTables_sizing { + height: 0; + margin: 0!important; + overflow: hidden; + padding: 0!important +} + +.dataTables_wrapper .dataTables_paginate .paginate_button.current:first-child,.dataTables_wrapper .dataTables_paginate .paginate_button.previous { + border-top-left-radius: 4px; + border-bottom-left-radius: 4px; + margin-left: 0 +} + +.dataTables_wrapper .dataTables_paginate .paginate_button.current:last-child,.dataTables_wrapper .dataTables_paginate .paginate_button.next { + border-top-right-radius: 4px; + border-bottom-right-radius: 4px +} + +.dataTables_wrapper { + clear: both; + position: relative; + zoom:1} + +.dataTables_wrapper .dataTables_filter { + float: left; + margin-right: 15px +} + +.dataTables_wrapper .dataTables_filter input { + margin-left: .5em +} + +.dataTables_wrapper.filterEmphasis.provisional .dataTables_filter { + background-color: #d9edf7; + float: none; + margin-bottom: 7px; + padding: 10px +} + +.dataTables_wrapper.filterEmphasis.provisional .dataTables_info { + padding-left: 7px +} + +.dataTables_wrapper.filterEmphasis.provisional .dataTables_info:after { + content: "" +} + +.dataTables_wrapper .dataTables_length { + display: inline-block; + margin-top: 5px +} + +.dataTables_wrapper .dataTables_info { + display: inline-block +} + +.dataTables_wrapper .dataTables_paginate { + padding-top: 1.25em; + text-align: center +} + +.dataTables_wrapper .dataTables_paginate .paginate_button { + background-color: #eaebed; + border: 1px solid rgb(220.2692307692,221.9230769231,225.2307692308); + color: #335075; + cursor: pointer; + display: inline-block; + line-height: 1.4375; + margin-bottom: .5em; + margin-left: -1px; + padding: 10px 16px; + position: relative; + text-decoration: none +} + +.dataTables_wrapper .dataTables_paginate .paginate_button.current { + background-color: #2572b4; + border-color: #2572b4; + color: #fff; + cursor: default; + z-index: 2 +} + +.dataTables_wrapper .dataTables_paginate .paginate_button:active,.dataTables_wrapper .dataTables_paginate .paginate_button:focus,.dataTables_wrapper .dataTables_paginate .paginate_button:hover { + background-color: rgb(212.0307692308,214.0769230769,218.1692307692); + border-color: rgb(187.3153846154,190.5384615385,196.9846153846); + color: #335075 +} + +.dataTables_wrapper .dataTables_processing { + background: -webkit-gradient(linear,left top,right top,from(rgba(255,255,255,0)),color-stop(25%,rgba(255,255,255,.9)),color-stop(75%,rgba(255,255,255,.9)),to(rgba(255,255,255,0))); + background: linear-gradient(to right,rgba(255,255,255,0) 0,rgba(255,255,255,.9) 25%,rgba(255,255,255,.9) 75%,rgba(255,255,255,0) 100%); + background-color: #fff; + font-size: 1.2em; + height: 40px; + left: 50%; + margin-left: -50%; + margin-top: -25px; + padding-top: 20px; + position: absolute; + text-align: center; + top: 50%; + width: 100% +} + +.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody { + -webkit-overflow-scrolling: touch +} + +.dataTables_wrapper.no-footer div.dataTables_scrollBody table,.dataTables_wrapper.no-footer div.dataTables_scrollHead table { + border-bottom: 0 +} + +.dataTables_wrapper:after { + clear: both; + content: ""; + display: block; + height: 0; + visibility: hidden +} + +[dir=rtl] table.dataTable thead .sorting,[dir=rtl] table.dataTable thead .sorting_asc,[dir=rtl] table.dataTable thead .sorting_asc_disabled,[dir=rtl] table.dataTable thead .sorting_desc,[dir=rtl] table.dataTable thead .sorting_desc_disabled { + text-align: right +} + +[dir=rtl] table.dataTable thead .sorting:after,[dir=rtl] table.dataTable thead .sorting_asc:after,[dir=rtl] table.dataTable thead .sorting_asc_disabled:after,[dir=rtl] table.dataTable thead .sorting_desc:after,[dir=rtl] table.dataTable thead .sorting_desc_disabled:after { + margin-left: 0; + margin-right: 5px +} + +[dir=rtl] .dataTables_wrapper .dataTables_paginate .paginate_button.current:first-child,[dir=rtl] .dataTables_wrapper .dataTables_paginate .paginate_button.previous { + border-top-left-radius: 0; + border-bottom-left-radius: 0; + border-top-right-radius: 4px; + border-bottom-right-radius: 4px +} + +[dir=rtl] .dataTables_wrapper .dataTables_paginate .paginate_button.current:last-child,[dir=rtl] .dataTables_wrapper .dataTables_paginate .paginate_button.next { + border-top-left-radius: 4px; + border-bottom-left-radius: 4px; + border-top-right-radius: 0; + border-bottom-right-radius: 0 +} + +[dir=rtl] .dataTables_wrapper .dataTables_info,[dir=rtl] .dataTables_wrapper .dataTables_length { + float: right +} + +[dir=rtl] .dataTables_wrapper .dataTables_filter { + float: left; + text-align: left +} + +[dir=rtl] .dataTables_wrapper .dataTables_filter input { + margin-left: auto; + margin-right: .5em +} + +.dataTables_wrapper .top { + font-size: 17px +} + +.dataTables_wrapper .top [type=search] { + max-width: 205px +} + +.wb-tabs [role=tablist].allow-wrap li,.wb-tabs.carousel-s1 [role=tablist]>li,.wb-tabs.carousel-s2 [role=tablist]>li { + margin: 0 10px 0 0 +} + +.wb-tabs,.wb-tabs.carousel-s1 figure,.wb-tabs.carousel-s2 figure { + position: relative +} + +.wb-tabs.carousel-s1 [role=tablist]>li,.wb-tabs.carousel-s2 [role=tablist]>li { + z-index: 100 +} + +.wb-tabs.carousel-s1 figure,.wb-tabs.carousel-s2 figure { + background: #243850; + background: rgba(36,56,80,.9) +} + +.wb-tabs.carousel-s1 figure img,.wb-tabs.carousel-s2 figure img { + height: auto; + width: 100% +} + +.wb-tabs.carousel-s1 figcaption,.wb-tabs.carousel-s2 figcaption { + bottom: 0; + color: #fff; + left: 0; + padding: .5em 1em; + position: relative; + right: 0; + z-index: 101 +} + +.wb-tabs.carousel-s1 [role=tabpanel] a figure::after,.wb-tabs.carousel-s1 [role=tabpanel] a figure::before,.wb-tabs.carousel-s2 [role=tabpanel] a figure::after,.wb-tabs.carousel-s2 [role=tabpanel] a figure::before { + content: ""; + outline: inherit; + position: absolute +} + +.wb-tabs.carousel-s1 [role=tabpanel] a,.wb-tabs.carousel-s2 [role=tabpanel] a { + color: #000; + outline-offset: 0 +} + +.wb-tabs.carousel-s1 [role=tabpanel] a figure,.wb-tabs.carousel-s2 [role=tabpanel] a figure { + outline: inherit +} + +.wb-tabs.carousel-s1 [role=tabpanel] a figure::before,.wb-tabs.carousel-s2 [role=tabpanel] a figure::before { + height: calc(100% - 4px); + margin: 2px; + outline-color: #fff; + width: calc(100% - 4px) +} + +.wb-tabs.carousel-s1 [role=tabpanel] a figure::after,.wb-tabs.carousel-s2 [role=tabpanel] a figure::after { + height: calc(100% - 2px); + margin: 1px; + top: 0; + width: calc(100% - 2px) +} + +.wb-tabs.carousel-s1 [role=tabpanel] a figcaption,.wb-tabs.carousel-s2 [role=tabpanel] a figcaption { + color: #fff; + text-decoration: underline +} + +.wb-tabs.carousel-s1 [role=tabpanel] figure a,.wb-tabs.carousel-s2 [role=tabpanel] figure a { + color: #fff +} + +.wb-tabs.carousel-s1 .display:focus-within,.wb-tabs.carousel-s2 .display:focus-within { + outline: 1px dotted #fff; + outline-offset: -2px +} + +.wb-tabs.carousel-s1 video:focus,.wb-tabs.carousel-s2 video:focus { + outline-offset: -1px +} + +.wb-tabs.carousel-s2 [role=tablist]>li.nxt,.wb-tabs.carousel-s2 [role=tablist]>li.prv { + background: 0 0; + margin: 0; + padding: 0 +} + +.wb-tabs.carousel-s2 [role=tablist]>li.nxt a,.wb-tabs.carousel-s2 [role=tablist]>li.prv a { + border: 0; + padding: 10px 5px; + width: 100% +} + +.wb-tabs.carousel-s2 [role=tablist]>li.nxt a .glyphicon,.wb-tabs.carousel-s2 [role=tablist]>li.plypause a,.wb-tabs.carousel-s2 [role=tablist]>li.prv a .glyphicon { + background: #fff; + border-radius: 999px; + -webkit-box-shadow: 0 0 4px #243850; + box-shadow: 0 0 4px #243850 +} + +.wb-tabs.carousel-s2 [role=tablist]>li.nxt a,.wb-tabs.carousel-s2 [role=tablist]>li.plypause a,.wb-tabs.carousel-s2 [role=tablist]>li.prv a { + color: #243850 +} + +.wb-tabs.carousel-s2 [role=tablist]>li.nxt a .glyphicon,.wb-tabs.carousel-s2 [role=tablist]>li.prv a .glyphicon { + font-size: 1.75em; + height: 1.75em; + line-height: 1.75em; + margin: auto 0; + text-align: center; + width: 1.75em +} + +.wb-tabs.carousel-s2 [role=tablist]>li.nxt a:focus,.wb-tabs.carousel-s2 [role=tablist]>li.nxt a:hover,.wb-tabs.carousel-s2 [role=tablist]>li.prv a:focus,.wb-tabs.carousel-s2 [role=tablist]>li.prv a:hover { + background: 0 0 +} + +.wb-tabs.carousel-s2 [role=tablist]>li.nxt a:focus .glyphicon,.wb-tabs.carousel-s2 [role=tablist]>li.nxt a:hover .glyphicon,.wb-tabs.carousel-s2 [role=tablist]>li.plypause a:focus,.wb-tabs.carousel-s2 [role=tablist]>li.plypause a:hover,.wb-tabs.carousel-s2 [role=tablist]>li.prv a:focus .glyphicon,.wb-tabs.carousel-s2 [role=tablist]>li.prv a:hover .glyphicon { + -webkit-box-shadow: none; + box-shadow: none +} + +.wb-tabs [role=tablist]>li,.wb-tabs [role=tablist]>li a,.wb-tabs.carousel-s1 [role=tablist]>li.control,.wb-tabs.carousel-s2 [role=tablist]>li.control { + display: inline-block +} + +.wb-tabs.carousel-s1 figcaption p,.wb-tabs.carousel-s2 figcaption p { + margin-bottom: 0 +} + +.wb-tabs>.tabpanels>details,.wb-tabs>details { + padding: 6px 12px +} + +.wb-tabs>.tabpanels>details>summary,.wb-tabs>details>summary { + margin: -6px -12px +} + +.csstransitions .wb-tabs [role=tabpanel].out { + position: absolute; + top: 0; + width: 100%; + z-index: 0 +} + +.wb-tabs details[open] { + border-top-left-radius: 0 +} + +.wb-tabs>.tabpanels { + overflow: hidden; + position: relative +} + +.wb-tabs [role=tablist] { + border-spacing: 10px 0; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + list-style: none; + margin-bottom: -1px; + overflow-x: auto; + overflow-y: hidden; + padding: 0; + position: relative +} + +.wb-tabs [role=tablist]>li { + background: #ebf2fc; + color: #000; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + position: relative; + text-align: center; + border-color: #ccc; + border-style: solid; + border-width: 1px +} + +.wb-tabs [role=tablist]>li a { + color: #000; + padding: 10px; + text-decoration: none +} + +.wb-tabs [role=tablist]>li a:focus,.wb-tabs [role=tablist]>li a:hover { + background: #ccc; + background: rgba(204,204,204,.9) +} + +.wb-tabs [role=tablist]>li.active { + border-bottom: 0; + z-index: 2 +} + +.wb-tabs [role=tablist]>li.active a { + background: #fff; + border-color: #666; + border-style: solid; + border-width: 4px 0 0 0; + cursor: default; + padding-top: 6px +} + +.wb-tabs [role=tablist]>li.tab-count { + line-height: normal +} + +.wb-tabs [role=tablist]>li.tab-count>div { + position: relative; + top: 0 +} + +.wb-tabs [role=tablist]>li.tab-count .curr-count { + font-size: 1.5em +} + +.wb-tabs [role=tablist]>li+li { + margin-left: 10px +} + +.wb-tabs [role=tablist].generated li { + border-bottom: 0; + top: 1px +} + +.wb-tabs [role=tablist].allow-wrap { + border-spacing: 0; + display: block +} + +.wb-tabs [role=tablist].allow-wrap li { + display: inline-block; + left: auto +} + +.wb-tabs [role=tabpanel] { + overflow-x: auto; + position: relative; + z-index: 1 +} + +.wb-tabs.carousel-s1 { + border-top: 0 +} + +.wb-tabs.carousel-s1 [role=tablist] { + bottom: 1em; + left: 1em; + position: static +} + +.wb-tabs.carousel-s1 [role=tablist]>li.tab-count { + background: 0 0; + border: 0; + font-size: .9em; + padding: 0 .1em +} + +.wb-tabs.carousel-s2 { + background: #eee +} + +.wb-tabs.carousel-s2 [role=tablist] { + bottom: 0; + position: absolute; + width: 100% +} + +.wb-tabs.carousel-s2 [role=tablist]>li { + background: 0 0; + border: 0 +} + +.wb-tabs.carousel-s2 [role=tablist]>li.prv a { + padding-left: 1em +} + +.wb-tabs.carousel-s2 [role=tablist]>li.tab-count { + margin: 10px +} + +.wb-tabs.carousel-s2 [role=tablist]>li.plypause { + background: 0 0; + border: 0; + -webkit-box-flex: 1; + -ms-flex-positive: 1; + flex-grow: 1; + margin-right: 0; + padding: 2px 0; + text-align: right +} + +.wb-tabs.carousel-s2 [role=tablist]>li.plypause a { + font-size: 1.5em; + margin-right: .65em; + margin-top: .4em; + padding: 8px 10px 4px +} + +.wb-tabs.carousel-s2 [role=tablist] a:focus { + outline-offset: 0 +} + +.wb-disable.csstransitions .wb-tabs [role=tabpanel].out { + position: static; + width: auto +} + +.wb-disable .wb-tabs.carousel-s2 { + background: 0 0 +} + +.wb-disable .wb-tabs>details[open]>summary { + display: list-item!important +} + +.wb-disable .wb-tabs>.tabpanels>details[open]>summary { + display: list-item!important +} + +.wb-disable .wb-tabs .out { + visibility: visible +} + +.wb-disable .wb-tabs [role=tablist] { + display: none +} + +.wb-disable .wb-tabs [role=tabpanel] { + -webkit-animation: none; + animation: none; + display: block; + margin-bottom: .5em; + opacity: 1; + -webkit-transform: none; + transform: none +} + +.carousel-s1,.carousel-s2 { + margin-bottom: 15px +} + +.carousel-s1 .wb-mltmd,.carousel-s2 .wb-mltmd { + margin-top: 0 +} + +.wb-tgfltr-out { + display: none!important +} + +.wb-tagfilter-noresult { + display: none +} + +.wb-tagfilter-items:not(:has([data-wb-tags]:not(.wb-tgfltr-out,.wb-fltr-out)))+.wb-tagfilter-noresult { + display: block +} + +.wb-tagfilter-items:has(+ .wb-tagfilter-noresult):not(:has([data-wb-tags]:not(.wb-tgfltr-out,.wb-fltr-out))) { + display: none +} + +html:not(.wb-disable) .wb-tagfilter-items:not(:has([data-wb-tags]))+.wb-tagfilter-noresult { + display: none!important +} + +.wb-twitter .wb-twitter-notice-end[tabindex],.wb-twitter .wb-twitter-skip a { + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + font-weight: 700; + -webkit-box-pack: center; + -ms-flex-pack: center; + justify-content: center; + left: 0; + min-height: 77px; + outline-offset: -6px; + padding: 3px 12px; + right: 0 +} + +.wb-twitter .wb-twitter-notice-end[tabindex]:focus,.wb-twitter .wb-twitter-skip a:focus { + height: auto; + margin: 0; + position: absolute +} + +.wb-twitter .wb-twitter-notice-end[tabindex] span,.wb-twitter .wb-twitter-skip a span { + overflow-wrap: break-word; + width: 100% +} + +.wb-twitter { + position: relative +} + +.wb-twitter iframe { + max-width: 100%; + min-width: 224px +} + +.wb-twitter .twitter-timeline-rendered { + border-radius: 12px; + overflow-x: auto +} + +.wb-twitter .wb-twitter-notice-start[tabindex]:focus+.wb-twitter-skip-end+.twitter-timeline-rendered { + outline-style: auto +} + +.wb-twitter .wb-twitter-skip { + margin-bottom: 0; + text-align: center +} + +.wb-twitter .wb-twitter-skip.wb-twitter-skip-end a:focus { + border-top-left-radius: 12px; + border-top-right-radius: 12px; + top: 0 +} + +.wb-twitter .wb-twitter-skip.wb-twitter-skip-start a:focus { + border-bottom-right-radius: 12px; + border-bottom-left-radius: 12px; + bottom: 0 +} + +.wb-twitter .wb-twitter-skip a { + background-color: #000; + color: #fff +} + +.wb-twitter .wb-twitter-notice-end[tabindex] { + border-bottom-right-radius: 12px; + border-bottom-left-radius: 12px; + background-color: #fff; + border: 1px solid #cfd9de; + bottom: 0; + color: #000; + text-align: center +} + +.ol-overlay-container { + will-change: left,right,top,bottom; + z-index: 1000 +} + +.ol-popup { + background-color: #fff; + border: 1px solid #ccc; + border-radius: 3px; + bottom: 12px; + -webkit-box-shadow: 0 1px 4px rgba(0,0,0,.2); + box-shadow: 0 1px 4px rgba(0,0,0,.2); + display: block; + -webkit-filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2)); + filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .2)); + font-size: .75em; + left: -50px; + min-width: 250px; + padding: 15px; + position: absolute +} + +.ol-popup:after,.ol-popup:before { + border: solid transparent; + content: " "; + height: 0; + pointer-events: none; + position: absolute; + top: 100%; + width: 0 +} + +.ol-popup:after { + border-top-color: #fff; + border-width: 10px; + left: 48px; + margin-left: -10px +} + +.ol-popup:before { + border-top-color: #ccc; + border-width: 11px; + left: 48px; + margin-left: -11px +} + +.ol-popup-closer { + color: #333; + font-family: Arial,Baskerville,monospace; + font-size: 24px; + font-weight: 700; + height: 28px; + line-height: 28px; + position: absolute; + right: 0; + text-align: center; + text-decoration: none; + top: 0; + width: 28px +} + +.ol-popup-closer:active,.ol-popup-closer:hover,.ol-popup-closer:link,.ol-popup-closer:visited { + color: #333; + text-decoration: none +} + +.popup-content h5 { + border-bottom: solid 1px #999; + color: #999; + font-size: 1em; + margin: -5px 0 5px; + padding-bottom: 3px +} + +.popup-content table td,.popup-content table th { + padding: 2px +} + +.wb-geomap.legend-label-only .geomap-lgnd-layer:has(> div > ul > li:only-child) { + display: -webkit-box; + display: -ms-flexbox; + display: flex +} + +.wb-geomap.legend-label-only .geomap-lgnd-layer:has(> div > ul > li:only-child) label { + margin-right: 5px +} + +.wb-geomap.legend-label-only .geomap-lgnd-layer:has(> div > ul > li:only-child) .geomap-legend-symbol-text { + display: none +} + +.wb-geomap-map { + outline: 1px solid #ccc; + overflow: hidden; + position: relative +} + +.wb-geomap-map.active { + -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6); + box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6); + outline-color: #66afe9 +} + +.geomap-legend-detail { + padding-top: 10px +} + +.geomap-legend-element { + overflow: hidden; + width: 100% +} + +.geomap-legend-symbol { + float: left; + margin-right: 5px +} + +.geomap-legend-symbol-text { + display: inline-block; + line-height: 30px; + vertical-align: middle +} + +.geomap-clear-format { + clear: both +} + +.geomap-legend-label { + display: inline +} + +.geomap-lgnd-layer { + margin-bottom: 10px; + margin-top: 0!important +} + +.geomap-lgnd>:last-child { + margin-bottom: 0 +} + +.geomap-geoloc { + background: 0 0; + left: .25em; + top: .25em +} + +.geomap-geoloc input[type=text] { + border-color: #fff; + border-radius: 2px; + -webkit-box-shadow: 1px 2px 4px #999; + box-shadow: 1px 2px 4px #999; + width: 100% +} + +.geomap-aoi legend { + border: 0; + font-size: 1em; + margin-bottom: 1em +} + +.geomap-aoi button.geomap-geoloc-aoi-btn { + position: absolute; + right: 15px; + top: auto +} + +.geoloc-progress { + -webkit-animation-duration: .5s; + animation-duration: .5s; + -webkit-animation-iteration-count: infinite; + animation-iteration-count: infinite; + -webkit-animation-name: spin; + animation-name: spin; + -webkit-animation-timing-function: linear; + animation-timing-function: linear; + color: #333; + content: "\e031"; + height: 1em; + line-height: 1.03; + width: 1em; + z-index: 2; + font-family: "Glyphicons Halflings"; + font-size: 1em +} + +.ol-geolocate { + bottom: 8em; + right: 1em +} + +.ol-touch .ol-geolocate { + bottom: 1.5em; + right: .5em +} + +.ol-mouse-position { + background: #fff; + background: rgba(255,255,255,.7); + border-radius: 2px; + bottom: 3em; + font-size: .75em; + left: .6666em; + min-width: 100px; + padding: 2px 6px; + position: absolute; + will-change: contents,width +} + +.ol-mouse-position:before { + content: "\e062"; + font-family: "Glyphicons Halflings"; + margin-right: 3px +} + +.ol-mouse-position-inner { + padding: 10px +} + +.ol-mouse-position:empty { + display: none +} + +.ol-touch .ol-mouse-position { + display: none +} + +.ol-scale-line { + background: #fff; + background: rgba(255,255,255,.7); + border-radius: 2px; + bottom: .5em; + left: .5em; + padding: 2px; + position: absolute +} + +.ol-touch .ol-scale-line { + display: none +} + +.ol-scale-line-inner { + border: 1px solid #000; + border-top: none; + color: #000; + font-size: .75em; + margin: 1px; + text-align: center; + will-change: contents,width +} + +.ol-unsupported { + display: none +} + +.ol-viewport .ol-unselectable { + -webkit-tap-highlight-color: transparent; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none +} + +.ol-control { + background-color: rgba(255,255,255,.4); + border-radius: 4px; + padding: 2px; + position: absolute +} + +.ol-control:hover { + background-color: rgba(255,255,255,.4) +} + +.ol-zoom { + bottom: 1.5em; + right: 1em +} + +.ol-touch .ol-zoom { + display: none +} + +.ol-rotate { + bottom: 1.5em; + right: 3.25em; + -webkit-transition: opacity .25s linear,visibility 0s linear; + transition: opacity .25s linear,visibility 0s linear +} + +.ol-rotate.ol-hidden { + opacity: 0; + -webkit-transition: opacity .25s linear,visibility 0s linear .25s; + transition: opacity .25s linear,visibility 0s linear .25s; + visibility: hidden +} + +.ol-zoom-extent { + bottom: 6em; + right: 1em +} + +.ol-touch .ol-zoom-extent { + display: none +} + +.ol-zoom-extent span.glyphicon { + top: 3px +} + +.ol-full-screen { + right: .5em; + top: .5em +} + +@media print { + .ol-control { + display: none + } +} + +.ol-control button { + background-color: #fff; + border: none; + border-radius: 2px; + -webkit-box-shadow: 1px 2px 4px #999; + box-shadow: 1px 2px 4px #999; + color: #333; + display: block; + font-size: 1.14em; + font-weight: 700; + height: 1.5em; + line-height: .4em; + margin: 0; + padding: 0; + text-align: center; + text-decoration: none; + width: 1.5em +} + +.ol-control button::-moz-focus-inner { + border: none; + padding: 0 +} + +.ol-zoom-extent button { + line-height: 1.4em +} + +ol-geolocate button { + line-height: 1em +} + +.ol-compass { + display: block; + font-size: 1.2em; + font-weight: 400; + will-change: transform +} + +.ol-touch .ol-control button { + font-size: 1.5em +} + +.ol-control button:focus,.ol-control button:hover { + text-decoration: none +} + +.ol-zoom .ol-zoom-in { + border-bottom: solid 1px #999; + border-radius: 2px 2px 0 0 +} + +.ol-zoom .ol-zoom-out { + border-radius: 0 0 2px 2px +} + +.ol-attribution { + background: rgba(255,255,255,.7); + border-radius: 2px 0 0; + bottom: 0; + line-height: .75em; + max-width: calc(80% - 1.3em); + right: 0; + text-align: right +} + +.ol-attribution ul { + color: #333; + font-size: .75em; + margin: 0; + padding: .15em .25em; + text-shadow: 0 0 2px #fff +} + +.ol-attribution li { + display: inline; + line-height: inherit; + list-style: none +} + +.ol-attribution li :after { + content: " " +} + +.ol-attribution li :last-child:after { + content: "" +} + +.ol-attribution img { + max-height: 2em; + max-width: inherit +} + +.ol-attribution a { + color: #333; + text-decoration: none +} + +.ol-attribution a:active,.ol-attribution a:visited { + color: #333 +} + +.ol-attribution button,.ol-attribution ul { + display: inline-block +} + +.ol-attribution.ol-collapsed ul { + display: none +} + +.ol-attribution.ol-logo-only ul { + display: block +} + +.ol-attribution.ol-uncollapsible { + border-radius: 4px 0 0; + bottom: 0; + height: 1.3em; + line-height: .75em; + right: 0 +} + +.ol-attribution.ol-logo-only { + background: 0 0; + bottom: .4em; + height: 1.1em; + line-height: 1em +} + +.ol-attribution.ol-uncollapsible img { + margin-top: -.2em; + max-height: 1.6em +} + +.ol-attribution.ol-logo-only button,.ol-attribution.ol-uncollapsible button { + display: none +} + +.ol-box { + border: 2px solid #2572b4; + border-radius: 2px; + -webkit-box-sizing: border-box; + box-sizing: border-box +} + +.ol-dragbox { + border: 2px solid #f03; + border-radius: 2px; + -webkit-box-sizing: border-box; + box-sizing: border-box +} + +.ol-overviewmap { + bottom: .5em; + left: .5em +} + +.ol-overviewmap.ol-uncollapsible { + border-radius: 0 4px 0 0; + bottom: 0; + left: 0 +} + +.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button { + display: inline-block +} + +.ol-overviewmap .ol-overviewmap-map { + border: 1px solid #7b98bc; + height: 150px; + margin: 2px; + width: 150px +} + +.ol-overviewmap:not(.ol-collapsed) button { + bottom: 1px; + left: 2px; + position: absolute +} + +.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button { + display: none +} + +.ol-overviewmap:not(.ol-collapsed) { + background: rgba(255,255,255,.8) +} + +.ol-overviewmap-box { + border: 2px dotted rgba(0,60,136,.7) +} + +.geomap-help-btn { + background-color: transparent; + right: .5em; + top: .5em +} + +.geomap-help-btn:focus,.geomap-help-btn:hover { + background-color: transparent +} + +.geomap-help-btn button { + background-color: #333; + border-radius: 50%; + color: #fff +} + +.ol-touch .geomap-help-btn { + display: none +} + +.geomap-help-dialog { + background-color: #fff; + height: auto; + margin: 10px; + right: 0; + top: 0; + width: auto +} + +.geomap-help-dialog header { + position: static +} + +.geomap-help-dialog a.btn { + color: #333; + font-family: Arial,Baskerville,monospace; + font-size: 28px; + font-weight: 700; + height: 44px; + line-height: 44px; + padding: 0; + position: absolute; + right: 0; + text-align: center; + text-decoration: none; + top: 0; + width: 44px +} + +.geomap-help-dialog:hover { + background-color: #fff +} + +.tooltip-txt::after { + border-color: silver transparent transparent; + border-style: solid; + border-width: 5px; + content: " "; + left: 50%; + margin-left: -5px; + position: absolute; + top: 100% +} + +.tooltip-txt { + background: silver; + border: solid 1px silver; + border-radius: 5px; + bottom: 100%; + -webkit-box-shadow: 0 1px 4px rgba(0,0,0,.2); + box-shadow: 0 1px 4px rgba(0,0,0,.2); + color: #333; + cursor: default; + -webkit-filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2)); + filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .2)); + font-size: .8em; + left: 50%; + margin-left: -60px; + padding: 5px 0; + position: absolute; + text-align: center; + width: 120px +} + +.wb-geomap-geoloc-al-cnt,.wb-geomap-geoloc-al-cnt .wb-geomap-geoloc-al { + max-height: 15em +} + +.wb-geomap-geoloc-al-cnt { + border: 1px solid transparent; + left: 0; + margin-top: 0; + position: absolute; + z-index: 50 +} + +.wb-geomap-geoloc-al-cnt .wb-geomap-geoloc-al { + background: #fff; + border: solid 1px #ccc; + border-top: 0; + font-size: .9em; + list-style-type: none; + -webkit-overflow-scrolling: touch; + overflow-y: scroll; + padding: 0 +} + +.wb-geomap-geoloc-al-cnt .wb-geomap-geoloc-al li { + border-bottom: solid 1px #ccc +} + +.wb-geomap-geoloc-al-cnt .wb-geomap-geoloc-al li:last-of-type { + border-bottom: 0 +} + +.wb-geomap-geoloc-al-cnt .wb-geomap-geoloc-al a { + color: #333; + display: block; + padding: 5px; + text-decoration: none +} + +.wb-geomap-geoloc-al-cnt .wb-geomap-geoloc-al a:focus,.wb-geomap-geoloc-al-cnt .wb-geomap-geoloc-al a:hover { + background: #666; + color: #fff +} + +.wb-geomap-geoloc-al-cnt .wb-geomap-geoloc-al a span.glyphicon { + color: #ccc; + margin-right: 5px +} + +.glyphicon-spin { + -webkit-animation: spin 1s infinite linear; + animation: spin 1s infinite linear +} + +@keyframes spin { + 0% { + -webkit-transform: rotate(0); + transform: rotate(0) + } + + 100% { + -webkit-transform: rotate(359deg); + transform: rotate(359deg) + } +} + +.skeleton-lgnd-1 { + background-color: #f5f5f5; + height: 25px; + margin-top: 10px; + width: 100% +} + +.skeleton-lgnd-2 { + background-color: #f5f5f5; + height: 25px; + margin: 20px 0; + width: 100% +} + +.skeleton-lgnd-3 { + background-color: #fff; + display: block; + height: 25px; + margin-left: 25px; + width: 15px +} + +.table-hover .wb-group-summary tr:hover td,.table-hover .wb-group-summary tr:hover th,.wb-zebra-col-hover .wb-group-summary col.table-hover { + background-color: #fafaff +} + +.wb-cell-layout { + background-color: transparent +} + +.wb-cell-desc,.wb-cell-key { + font-style: italic +} + +.wb-zebra>colgroup+colgroup { + border-left: 2px solid #ddd +} + +.wb-group-summary { + background-color: #f0f2f4 +} + +.wb-zebra-col-hover col.table-hover { + background-color: #f0f0f0 +} + +.feeds-cont.waiting:after,.feeds-cont.waiting:before { + bottom: 0; + content: " "; + height: 50px; + left: 0; + margin: auto; + position: absolute; + right: 0; + top: 0; + width: 50px +} + +.feeds-cont.waiting { + min-height: 100px; + min-width: 100px +} + +.feeds-cont.waiting:after { + -webkit-animation-duration: 1s; + animation-duration: 1s; + -webkit-animation-iteration-count: infinite; + animation-iteration-count: infinite; + -webkit-animation-name: spin; + animation-name: spin; + -webkit-animation-timing-function: linear; + animation-timing-function: linear; + background: url("../../wet-boew/assets/loading.png") center center no-repeat; + background-size: 30px 30px; + z-index: 2 +} + +.feeds-cont.waiting:before { + background: rgba(0,0,0,0); + z-index: 1 +} + +.feeds-cont .feeds-date:before { + content: "[" +} + +.feeds-cont .feeds-date:after { + content: "]" +} + +.feeds-cont button[data-youtube] { + border: none; + padding: 0 +} + +.wb-paginate-pager .paginate-next,.wb-paginate-pager li.active:nth-last-child(2) button { + border-bottom-right-radius: 4px; + border-top-right-radius: 4px +} + +.wb-paginate-pager .paginate-prev,.wb-paginate-pager li.active:nth-child(2) button { + border-bottom-left-radius: 4px; + border-top-left-radius: 4px +} + +.wb-paginate-pager .paginate-next::after,.wb-paginate-pager .paginate-prev::before { + font-family: "Glyphicons Halflings"; + font-weight: 400; + line-height: 1em; + position: relative; + top: .1em +} + +.wb-paginate-pager { + text-align: center +} + +.wb-paginate-pager .paginate-prev::before { + content: "\e091"; + margin-right: .5em +} + +.wb-paginate-pager .paginate-next::after { + content: "\e092"; + margin-left: .5em +} + +.wb-paginate-pager .paginate-prev { + margin-left: 0 +} + +.wb-paginate-pager .pagination>li>button { + background-color: #eaebed; + border: 1px solid rgb(220.2692307692,221.9230769231,225.2307692308); + color: #335075; + margin-bottom: .5em; + margin-left: -1px; + padding: 10px 16px; + position: relative +} + +.wb-paginate-pager .pagination>li>button:focus,.wb-paginate-pager .pagination>li>button:hover { + background-color: #d4d6da; + border-color: #bbbfc5; + z-index: 2 +} + +.wb-paginate-pager .pagination>li>button:focus { + outline: 5px auto -webkit-focus-ring-color; + outline-offset: -2px +} + +.wb-paginate-pager .pagination>.active>button,.wb-paginate-pager .pagination>.active>button:focus,.wb-paginate-pager .pagination>.active>button:hover { + background-color: #2572b4; + border-color: #2572b4; + color: #fff; + cursor: default; + z-index: 3 +} + +html:not(.wb-disable) .wb-pgfltr-out { + display: none!important +} + +.feeds-cont li a { + font-weight: 700 +} + +.wb-geomap.large-checkboxes .geomap-lgnd-layer.gc-chckbxrdio input[type=checkbox]+label { + padding-left: 4px +} + +.wb-geomap.large-checkboxes .geomap-lgnd-layer.gc-chckbxrdio input[type=checkbox]+label::before { + left: 2px +} + +.wb-geomap.large-checkboxes .geomap-lgnd-layer.gc-chckbxrdio input[type=checkbox]+label::after { + left: 10px +} + +.wb-geomap.large-checkboxes .wb-geomap-layers table td .gc-chckbxrdio { + margin-bottom: 0; + margin-top: 0 +} + +.wb-geomap.large-checkboxes .wb-geomap-layers table td .gc-chckbxrdio label { + margin-left: 28px; + padding-left: 0 +} + +.wb-geomap.large-checkboxes .wb-geomap-layers table td .gc-chckbxrdio label::before { + left: 2px +} + +.wb-geomap.large-checkboxes .wb-geomap-layers table td .gc-chckbxrdio label::after { + left: 10px +} + +.bg-gctheme { + background-color: #355688 +} + +.panel-title { + font-size: 1.8125rem +} + +.alert-danger>:first-child::before,.alert-info>:first-child::before,.alert-success>:first-child::before,.alert-warning>:first-child::before { + color: inherit; + content: none +} + +.alert { + background-clip: content-box; + background-color: inherit; + border-left: 6px solid #000; + margin-bottom: 23px; + margin-left: 10px; + padding: 0 0 0 15px +} + +.alert details { + margin-left: .5em; + padding-top: 15px +} + +.alert>ol,.alert>p,.alert>ul { + margin-bottom: 0 +} + +.alert>* { + margin-left: 15px +} + +.alert>:first-child:not(details) { + margin-top: auto; + padding-top: 15px +} + +.alert>:last-child { + padding-bottom: 25px +} + +.alert::before { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + font-family: "Glyphicons Halflings"; + font-size: 26px; + line-height: 2.3em; + margin-left: -1.27em; + padding: 2px; + position: absolute +} + +.alert>:first-child { + margin-left: 15px +} + +.alert-info { + border-color: #269abc; + -o-border-image: linear-gradient(to bottom,#269abc 16px,#269abc 16px,transparent 16px,transparent 48px,#269abc 48px,#269abc 48px) 1 100%; + border-image: linear-gradient(to bottom,#269abc 16px,#269abc 16px,transparent 16px,transparent 48px,#269abc 48px,#269abc 48px) 1 100% +} + +.alert-info::before { + color: #269abc; + content: "\e086" +} + +.alert-success { + border-color: #278400; + -o-border-image: linear-gradient(to bottom,#278400 16px,#278400 16px,transparent 16px,transparent 48px,#278400 48px,#278400 48px) 1 100%; + border-image: linear-gradient(to bottom,#278400 16px,#278400 16px,transparent 16px,transparent 48px,#278400 48px,#278400 48px) 1 100% +} + +.alert-success::before { + color: #278400; + content: "\e084" +} + +.alert-warning { + border-color: #ee7100; + -o-border-image: linear-gradient(to bottom,#ee7100 16px,#ee7100 16px,transparent 16px,transparent 48px,#ee7100 48px,#ee7100 48px) 1 100%; + border-image: linear-gradient(to bottom,#ee7100 16px,#ee7100 16px,transparent 16px,transparent 48px,#ee7100 48px,#ee7100 48px) 1 100% +} + +.alert-warning::before { + color: #ee7100; + content: "\e107" +} + +.alert-danger { + border-color: #d3080c; + -o-border-image: linear-gradient(to bottom,#d3080c 16px,#d3080c 16px,transparent 16px,transparent 48px,#d3080c 48px,#d3080c 48px) 1 100%; + border-image: linear-gradient(to bottom,#d3080c 16px,#d3080c 16px,transparent 16px,transparent 48px,#d3080c 48px,#d3080c 48px) 1 100% +} + +.alert-danger::before { + color: #d3080c; + content: "\e101" +} + +.whtwedo p { + font-weight: 700; + margin-bottom: 30px; + margin-top: 15px +} + +.whtwedo ul>li { + margin-bottom: 10px +} + +.lnkbx>ul>li { + margin-bottom: 10px +} + +.lnkbx dl a { + overflow-wrap: break-word; + word-break: break-all; + word-wrap: break-word +} + +.lnkbx dl dt { + margin-top: 10px +} + +.lnkbx dl dd { + margin-bottom: 0 +} + +.gc-crprt ul:first-child { + list-style: outside none none; + margin: 0; + padding: 0 +} + +.gc-crprt ul:first-child>li { + margin-bottom: 10px +} + +.gc-crprt h3 { + margin-top: 0 +} + +.gc-crprt .col-md-8 .col-md-4 { + margin-bottom: 15px +} + +.gc-instttn .gc-rms-lngth img,.gc-orgnztn .gc-rms-lngth img { + margin-bottom: 30px +} + +.gc-theme .profile { + margin-bottom: 25px +} + +.gc-cntct-lst dl dd,.gc-cntct-lst dl dt,.lnkbx dl dd,.lnkbx dl dt { + border: 0 +} + +.gc-advnc-srvc .col-md-8 h2:first-child { + margin-top: 0 +} + +.gc-fld-srvy-container { + height: 0; + overflow: hidden; + -webkit-overflow-scrolling: touch; + overflow-y: scroll; + padding-bottom: 70%; + position: relative +} + +.gc-fld-srvy-mbd { + border: 0; + height: 100%; + left: 0; + position: absolute; + top: 0; + width: 100%; + zoom:1} + +main .subtitle { + color: #555; + font-size: 1em; + font-weight: 300; + margin-bottom: 1em +} + +main .departments .learnmore { + padding: 3em 0 +} + +main .priorities { + padding-top: 2em +} + +main .priorities .thumbnail { + margin-bottom: 1.5em; + padding: 1em +} + +main .gc-rms-lngth img { + background-color: #fff; + border: solid 1px #e1e4e7; + padding: 18px +} + +.departments a h2,.departments a h3,.departments a h4,.priorities a h2,.priorities a h3,.priorities a h4 { + font-size: 20px +} + +.gc-dwnld .gc-dwnld-txt { + text-decoration: underline +} + +.gc-dwnld .gc-dwnld-txt:hover { + text-decoration: none +} + +.gc-dwnld .gc-dwnld-txt span { + display: block +} + +.gc-dwnld .gc-dwnld-img { + margin-bottom: 0 +} + +.gc-dwnld p { + margin-bottom: 0 +} + +a.gc-dwnld { + display: -webkit-inline-box; + display: -ms-inline-flexbox; + display: inline-flex; + gap: 30px +} + +a.gc-dwnld>img { + -ms-flex-item-align: start; + align-self: start; + border: 5px solid #eaebed; + max-width: 25% +} + +a.gc-dwnld>span { + display: block +} + +a.gc-dwnld.vertical { + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; + gap: 15px +} + +a.gc-dwnld.vertical>img { + -ms-flex-item-align: center; + align-self: center; + max-width: 100% +} + +a.gc-dwnld:hover { + text-decoration: none +} + +a.gc-dwnld:hover>img { + -webkit-box-shadow: 1px 5px 7px rgba(0,0,0,.15); + box-shadow: 1px 5px 7px rgba(0,0,0,.15) +} + +.gc-nws a h2,.gc-nws a h3,.gc-nws a h4 { + font-size: 20px; + margin-top: 15px +} + +.gc-drmt h2,.gc-srvinfo h2 { + font-size: 1.8125rem +} + +.gc-drmt h3,.gc-drmt h4,.gc-drmt h5,.gc-drmt h6,.gc-srvinfo h3,.gc-srvinfo h4,.gc-srvinfo h5,.gc-srvinfo h6 { + font-size: 20px; + margin-bottom: 5px; + margin-top: 23px +} + +.gc-drmt p,.gc-srvinfo p { + font-size: 18px; + line-height: 1.5 +} + +.gc-drmt .input-group,.gc-srvinfo .input-group { + max-width: 65ch +} + +.redacted { + display: inline-block; + line-break: anywhere; + overflow-wrap: break-word; + word-break: break-all; + word-wrap: break-word +} + +.dshbrd .cntrls li { + padding-right: 0 +} + +.dshbrd .cntrls a { + background: #eee; + border: 1px solid #ddd; + color: #000; + padding: 7px 5px +} + +.dshbrd>details { + display: inline; + left: 0; + position: relative; + top: 0 +} + +.dshbrd>details>summary { + font-size: 0; + max-height: 0 +} + +#triangle-up { + border-bottom: 10px solid #fff; + border-left: 5px solid transparent; + border-right: 5px solid transparent; + height: 0; + width: 0 +} + +.gc-byline { + font-weight: 700; + margin-bottom: 30px +} + +.followus .email,.followus .facebook,.followus .flickr,.followus .foursquare,.followus .googleplus,.followus .instagram,.followus .linkedin,.followus .periscope,.followus .pinterest,.followus .reddit,.followus .rss,.followus .twitter,.followus .x-social,.followus .youtube { + background-position: center center; + background-repeat: no-repeat; + display: inline; + min-height: 27px; + min-width: 27px; + position: relative; + vertical-align: text-bottom +} + +.followus .foursquare,.icon.foursquare { + background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAYAAACN1PRVAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIFdpbmRvd3MiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NjJBQzE4OUE2MjdDMTFFM0FGNUNFRUJBQTFBNTFFNzciIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NjJBQzE4OUI2MjdDMTFFM0FGNUNFRUJBQTFBNTFFNzciPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo2MkFDMTg5ODYyN0MxMUUzQUY1Q0VFQkFBMUE1MUU3NyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo2MkFDMTg5OTYyN0MxMUUzQUY1Q0VFQkFBMUE1MUU3NyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PqP7yl8AAAX0SURBVHjafFZLbFRVGP7OfcydmXamZWjpMFPaTlMphQCRYEWiYhFD0BgTKRhXLtxgRMVEV+rCBYkLIyZ04YIgamTDYwUsCKlGIGgIPnkUkyJFyqulMLYzvXMf5/ifc+9MS6ftuTn3nJlz7v/97/9nzUdHRgHE8MgQ4SLUlI/6S5TPaHJeWT26o9P+s+4GbM0lMOFyzDImDXrV0IxWHUkQERBmtKip8YABTmcs3NOB7/noSll4Jh2D7c0KJIcmwfhcEjEWAGlMTjHts/ArFlw1ad2UiaExaqAwNxg3qoDK9JiipegqMExnIFCtfHzaN1gaXm5NwPYF5hvGTFspddHDhUlvXRFmzCfAEgxSHWMamE7QnqdmUXBszNYiW2tAkHpZFdtVYKKyCJiI6w+xPPUTsjVXlCS3J5Zj6OF6skc9vH//gj3wK6K55bDaVyJGzLzYkkCExLdFQIeJakCTzo3pduIigpbERbzU+gUWRocUkBxdC09hbPEJnOzfgEsHT0Fz8yj81o/oc9vQ88JmYiwCX2BKKjYFKGdMZxixfWWSwHqktpR1i4A+x6L4IH1swuMRNX1uoiE6iJ6u/UgmJ4hSBLzk4L/+w1hbGkJj3KA7oVRlgqHN4wbD1byD98+NhGB0TydWVqR+QBMBOX68St+uZ2Bxh441m1xwn1FsAS2pJNZnkiiVvEeBQqeKEdDZO5PYeeYuTtNakcxgDpaQCqUkc5mYEYH2leQYPCD81JrV6Oxohz0xTs7iVKyv7EOXj1wbJ4nu4fqEi7ipBQ6ihYR05s7gb5bI1AL3j0Uj6N3yPBzXUxC+PQmdUoNlRVHyOfZdeYCvB/KwOSOb6fCJrlbmWNpsdDJHxNw5gTwiMnLDgOu4WLOiE6uWddB/PoJgIYl8D/fz49h9YQTfXM1TlmGwDCWF0qtWzn1c6Pj7QQ+5dwKG5lSHP1xYrA4dkS1k00m8unkjrEhEpTRGRGtiMVwevIY3P/gYx37+A5ZpqnCoPIwFamQEJiW6W+jE2eEdeDbbB9N0yCMDYh63KfqSeNzageiT3bjR62NV19IKUMyycPL0OXy6dx8Gb9zEktx6aKS6IO2FYKRO1nz0XkEDj0uDypxhaBqWxH9HbrIPjXU3ydXr8FhDN1bUvoIFfCUx4KLklqATMQkiAb89ehx7DhzEg7ExJNuWYdHru8Bj9XDozCUwOclmxUAyxirKkuO23Y2R8d0Y+64PxesD2LCOYdcbCaS7dHIICk7NIslNFIpF7Nn/PQ4cOQa3ZKO+bSmatr4FVt8Ih+wqpUKoQrnXk699+JEmvVXFBlO21OEhklyAeGsXSjev4eKF8+j/5QIBOehsb0VdIoGh4Vv45MuvcOjEKbrPUdvcgWzv2zDSrfBcl+JQg095VHohV2mcuaEaKR0yWQBluRAqTkw6tqJRiPvDuHO4D/nBy8ScjqfXrkbPuidw/MezOP/nJYofHdHFrchs2wm9qQUl2yZX0kh15L2cBStN8tmiAmPTwKSnTgeMkJfx0WHcPrQXE/8MELc6DIPSE7m8LnzEMm3Ibn8HZroNDqnSpbTlkjRUTxWQ3MsyRLmzqE2rlSSuNKSQXKjEKlXgULBqqQzSvTtRQ8Y3ZD1TocMRzeaQISBDAZVI+fJ7cjeSyKdLnLFKSyFLk1ZOalwByniTnLCAQ6UCRrnPBhZm0LTtXcQ7VivGoi3LkN7+HrR0js5LwV0/UJlXZlZ1EBI0hKGGp0Aw8SBtkSqlk8i4U44iKBTKTkPTpAJJkvr5URjJFFisBtxzKeNDSeErO4kQkEBor6QTqgQUjUo9kFmkUpGY4j7oMYRqpDgx5ztEQo+ANTQTQQ5BeVEo1dG5H6pf/Q7UJyUq05EvoyotiQBQhElTAYVqVlEjs4bwKgwJBGdcubhsJ0QwFeAU0IweZKp74GHlkz2FxoKPJKhqdpRHscptERJVXWQZJGQOM6qcEVaYqgOuesKQkJSm8lS3sxJEZngFJNg8fSNjBboxS7PHgoY3tKE2T42TAPOABDWMOuL/BRgAhjXnmC+gjRsAAAAASUVORK5CYII=") +} + +.followus .youtube,.icon.youtube { + background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAbCAYAAAAQ2f3dAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAA5dJREFUeNrMl81vFWUUxn9n5p373RZjMVK1IRrKwmJciPG6YMOalS6UuPAv8M9xaWLcCInCmrZAbGuAGK0m0LgRi6XVFunt7e297dze93Exc+lHotxpL4aTnEwyycx55nnPeeY8tvDmGAaYWcXgbaCK8RowCJTSzAO5PenSDIEgTSMJAT7NDrCTZhuIge00W0ATqAN/ALclfpS0ofTlAC+CPhVcBEbwFIAoLdwF0C181FAKuJttoIXxF/A18AWw4oCC4BPEZ8Aozz5sD+PdGEK8DAwrYfdzJxgDPtT/A+pp8QrwAXDdSZxNbzwvcQJ4z0kaB4YyN4oEXhAYFgQg9QvYMWDceTECFDMD80I7OyBhYYiFIVhf5qMIjDgvHUsloFeqwItwcBArl+nU1ug8fkyQz4Nz/QAXAYNOopLKQQ/zZNDpoDgmGh5m6OOLKIqoXb5E/MvPsFHHCiUsF+0Kw+GmtuwklbL2ljodFIbkx05TrFaJXn+D+nc3ad64QfvePNbYJCgWIZ9PymTvv4LziapnUkcBvr2Dj2PMjEq1Sm58nMY779KYmqT1/Sw7v93HajXI5bBCAYIgC4U5J+0Tup5aTNpfwoD8wAC58+cpvnWGevV9NicmaM/9hF9dRe028h7rvf9Cp4w0S9rNAwwYUDr+ErkLFyidO0djdpbmlStsz86gZhMyTK7zyqpfu/lvJ+OAytAQOnWKrZER5CLU8SgIe65zaGD/9Vz84AH1a9eoTU7Smp9HjQZyUcJpj/WOeJT7EW//fp/16zepT03RnJuj8+gRGFihmDR/hlpOopOdMaEwhDCZm3hxkfr0NOuTUzRu3yFeeggSYamM5XJJL2b7/o7zydKWTS4s+fp46SG1iSnWrl6lPjPD9sICmBGUy1gUPWH2EBE7Sc1MdJlBFBGvrbF66TLtlRVa9+axICAYGEj1CuT9UX5LW05iI90kw57/GC4iXv2b7cUlhBKGggBlaO6nHMqm81It3cWLWUdTqS7JggRPf1afNlB3EsuCreyrT8Lck92sb+sYLYNlJ3FXsA68kJ30/qHZE+vAXeelO8ASxsnnYrEWfwpuOcGvgm9MjAKvij4atSztnsQy8K3BvCPpr68kAuAjJWagtMfYhgcMbT9g+H2+UmxB4ivN+BLYtOkTo4loiorgDOgs4iRwHKikQ5FPV153wIV3QXevB5243+PED7rxXSduLAK3DH4ws3UD/hkAxN++zimLNSwAAAAASUVORK5CYII=") +} + +.followus .twitter,.followus .x-social,.icon.twitter,.icon.x-social { + background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAAAZlBMVEUAAACpqalRUVFra2sWFhbS0tIODg6enp4ICAgEBATX19dFRUV5eXni4uIdHR01NTUkJCSEhIQ9PT2MjIzBwcHExMSgoKDOzs65ubleXl4sLCyTk5P19fWYmJguLi6zs7Pa2trIyMjWijNVAAAA+ElEQVQoz7VSSYKEIAwEQQiIbKLY7v7/k0P3jMuo1+YUklCpKoLQd04xNpw3mdju4tV3W2zDgHmUZu/NOd37fE7Ax/kv4euRHqBCRYNepfqgdnVrzxP1jCn00qeQ8txf6EQibD1rRPtYXKgmVI+yRTFXZjcdFLcalORSwV2kWSvQeKjYkwNEZqhYKniqMR4sUg/jPlzLESgO9qFE+VASNMX+jircQvia7JE3VCBJfVdzxsZ1urxKbiasTBLUrc1/HSbit/fgkpmpQZxKU4v1r+mhpcJFc/qGUNtdiAMbMDvY57v34ErM80FtqKY6dgXp6r08in1pN38AoggMXei8ngUAAAAASUVORK5CYII=") +} + +.followus .flickr,.icon.flickr { + background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAYAAACN1PRVAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIFdpbmRvd3MiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NTNGMkVFMUY2MjdBMTFFMzhCMjNGNDNCRDQ2QTY3RTIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NTNGMkVFMjA2MjdBMTFFMzhCMjNGNDNCRDQ2QTY3RTIiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo1M0YyRUUxRDYyN0ExMUUzOEIyM0Y0M0JENDZBNjdFMiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo1M0YyRUUxRTYyN0ExMUUzOEIyM0Y0M0JENDZBNjdFMiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pjapqp8AAAPMSURBVHjavFZNaFxVFP7ufX+TZpxMOklbS2tIaHWhQSZUGvAHu+hCUwXBta1SKLqrWKQrwYUirtxEkC4FtQtFDP7sBIk4uGmbbMwkYlAxmQZm5s3f+7v3eu57M5NpnKEuMjlwYOa98+53zvedc95jS0tLJtkbuVzutVQqNY19NKVUUKvVCuVy+T3G2M+m4zjv5vP56wSGYZgQYmF9ff1J8hfYxsaGmJmZ4e1M9h2MKoKUEoVC4Sczm83GQPrCMEwXwDlHOp2e5Tg4M8zeDIZsytQgHR8qEp3fF4w0hcnbP+iypHtikKQU0g5O/mvtRf/E/wNmGSzG+KcqUGtJ2BbD0YyBEYchCPYcokFIfJTqYK4fJ6eOpYFRBwhC7JWoRzPAsYBtV+D971x88WsTJQK0bYZzpxxcv5DB04+kEkCdnGOA1UMYH/wC/ukK2J81AuOQTx2HuDoP+eJpsDCKmemSsL29rcbHx4kEgXJT4aXFHSyveIRM5fE2Nb5CJsPx2ZUcnn8sBU9TGghYr3wL48vbmg/yTmNTRYaF8MYCxKXHgVYAy7awurrqcj1f2k2u8OEPLpbvENAhepDojGXQnmJwaxJv3qygVIvALQP8xm0CWqGbju5q7AbbpFkE8+0foYp3Ic1kqON507noAqpNia9vtShJ1r8RqNLf/gpR2AxhtXwYXxV7APaaBVYqw/j+DyirqxR4jMgUtlyJmtfDxgAr7giwVkj8N+4TrCimrtsz7uYuWBRJZFMKKQv3CNrneRxLk7rUNDI3cp9gDjExQp2gIIVIaIzBpMLEKMOzDxNaNODZUOHBSQPzD3EEaQfR+Sm90wcA0uHpNKJnTkB5YXe0ujyEBHjt/CimTxDHLbV7jky6UY/TOwujOEl7O2xGCC7PQjyhAf12kGp7FP/33zoDMTsBFojdWjvd6AUS0zmGb17P4OV5B5mRZHvYhP3olInPr2Rw8ayNJsXJIII87KB+8wL8V+egsk571RJ10zk0P34O3rUzUKRt5/x4zjY3N9XY2Jh+ycUXUtSNejXd+jvC7zsShwk0f9LEkQcYGoHCPSuUBltvDePOXRjrFahDJqL8UajjtEUIiDoj2RymiWKx6Jp72fZIG93Mc0Tn2akk3o8U6n4fbfwkQU1XNHckZpP5RGMjGLwbO0PX03QxqBf+z5XuEYC3+2y/jT9w6w/j9dJdxAcGdlCVkTMehmH8BTQs63xdRVFU4ltbW8saUH8B6Rv77frcSqWCarW6aNbr9Utra2ufTE5OnrNte9/pazQabqlUWqTqPvpXgAEAXskOrNb+EfQAAAAASUVORK5CYII=") +} + +.followus .facebook,.icon.facebook { + background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABcAAAAXCAMAAADX9CSSAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo2NTU5MTU0RTVBMkUxMUUzQTgzODlDQkVCQTlCRjdERCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo2NTU5MTU0RjVBMkUxMUUzQTgzODlDQkVCQTlCRjdERCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjY1NTkxNTRDNUEyRTExRTNBODM4OUNCRUJBOUJGN0REIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjY1NTkxNTRENUEyRTExRTNBODM4OUNCRUJBOUJGN0REIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+tKO1uwAAAaRQTFRF9vf68/X5UGmoVm6rGzuNMlCZeIy8OlacSmSkPFidPlqfdoq7PVmePFieR2KjOVWcPFedU2ypJ0aTPlmeQlyg3uPvHj6OSGKkQFygPVie/f7+IUCQ9Pb6GjqMM1CZK0mVdYi6LEqVPFeePlqeHDyNOVacPlmf0tnqRl+iOladRV+hGzeLP1mfX3awVW2q2N7sHT6OOFWbLkyX4+fx9/j7NVGaMk+ZRV6irbjWMU+YME2XZ320PVqe6+713eLuI0ORg5XB6e30GjyNdYm6IUCP9/f7KEeTIkKReIu7NlKaKEeU5eny3+Tv5unyNlSaYHavSWOk0dfoSmKkPVmdTmenRmGiQl6hW3Ou5OjyJEOS3uLuNVKbYnix8vT5CSyEa4G1OFWcIkGRKkiUSmSl6u30h5jDn63QMU+ZRF6iKUeTO1ad7vH3K0qVr7rYMU6YJkSTYniw8vX58fT4LUqWLkyYbYK32d7sIUGReo689fb6TGal8PL3NlOb+Pr8/Pz909rpSGOkU2up+Pn8xs3iNFGZXXStXHStAySAP1qfT2in////O1ed8qxkgAAAARpJREFUeNqU0sVuxEAMBuApbTa8zFhmZtoyMzMzMzNOPC/ddKUko2ov/S+WP1mWD0b9JrPyN2bTIOIJHdGOMadWHkk0N37MujK7GUwkpBjKZnQdk8kRh7xnUWjHUc9Wc9P91Y4/m3ZhtyYH1DyNBTHl3pCt9pdhI9dFO+fPbwU4PBn+Gu8lhrOOUmsA3ooOtkNENFyo6vv2nsGtpy1mkzlqPkssmDgFZL2QV0i64eXLc89OH/gGSpyj69eFmjNrN6BlH3dwuod53d/D54K+5+Gu57OlEx43L9un58uM/Zah+qWpRUAvq9EjlqXuIfagkgSouI7JUxvKcWqy6ilp8eb/7k7obhRJ6BFUof3Da/VCACobpPg/zPwIMACYFdTbOAfyBwAAAABJRU5ErkJggg==") +} + +.followus .pinterest,.icon.pinterest { + background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAYAAACN1PRVAAAACXBIWXMAAC4jAAAuIwF4pT92AAA50WlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS41LWMwMjEgNzkuMTU0OTExLCAyMDEzLzEwLzI5LTExOjQ3OjE2ICAgICAgICAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgICAgICAgICAgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIgogICAgICAgICAgICB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIKICAgICAgICAgICAgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOmV4aWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vZXhpZi8xLjAvIj4KICAgICAgICAgPHhtcDpDcmVhdG9yVG9vbD5BZG9iZSBQaG90b3Nob3AgQ0MgKFdpbmRvd3MpPC94bXA6Q3JlYXRvclRvb2w+CiAgICAgICAgIDx4bXA6Q3JlYXRlRGF0ZT4yMDEzLTA4LTA5VDE1OjE4OjQ4LTA0OjAwPC94bXA6Q3JlYXRlRGF0ZT4KICAgICAgICAgPHhtcDpNb2RpZnlEYXRlPjIwMTQtMTAtMjhUMTI6Mjk6MTItMDQ6MDA8L3htcDpNb2RpZnlEYXRlPgogICAgICAgICA8eG1wOk1ldGFkYXRhRGF0ZT4yMDE0LTEwLTI4VDEyOjI5OjEyLTA0OjAwPC94bXA6TWV0YWRhdGFEYXRlPgogICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3BuZzwvZGM6Zm9ybWF0PgogICAgICAgICA8cGhvdG9zaG9wOkNvbG9yTW9kZT4zPC9waG90b3Nob3A6Q29sb3JNb2RlPgogICAgICAgICA8eG1wTU06SW5zdGFuY2VJRD54bXAuaWlkOjdlMGJlZTI3LWEzZTAtNTM0YS1iMmQ2LTMyYTk3NjM5MzkzODwveG1wTU06SW5zdGFuY2VJRD4KICAgICAgICAgPHhtcE1NOkRvY3VtZW50SUQ+eG1wLmRpZDpkZjYyMDZlMi0zZTA3LTUyNDQtYjI4OS0xYjM3MjQyNzcwMmM8L3htcE1NOkRvY3VtZW50SUQ+CiAgICAgICAgIDx4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ+eG1wLmRpZDpkZjYyMDZlMi0zZTA3LTUyNDQtYjI4OS0xYjM3MjQyNzcwMmM8L3htcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD4KICAgICAgICAgPHhtcE1NOkhpc3Rvcnk+CiAgICAgICAgICAgIDxyZGY6U2VxPgogICAgICAgICAgICAgICA8cmRmOmxpIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmFjdGlvbj5jcmVhdGVkPC9zdEV2dDphY3Rpb24+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDppbnN0YW5jZUlEPnhtcC5paWQ6ZGY2MjA2ZTItM2UwNy01MjQ0LWIyODktMWIzNzI0Mjc3MDJjPC9zdEV2dDppbnN0YW5jZUlEPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6d2hlbj4yMDEzLTA4LTA5VDE1OjE4OjQ4LTA0OjAwPC9zdEV2dDp3aGVuPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6c29mdHdhcmVBZ2VudD5BZG9iZSBQaG90b3Nob3AgQ0MgKFdpbmRvd3MpPC9zdEV2dDpzb2Z0d2FyZUFnZW50PgogICAgICAgICAgICAgICA8L3JkZjpsaT4KICAgICAgICAgICAgICAgPHJkZjpsaSByZGY6cGFyc2VUeXBlPSJSZXNvdXJjZSI+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDphY3Rpb24+c2F2ZWQ8L3N0RXZ0OmFjdGlvbj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0Omluc3RhbmNlSUQ+eG1wLmlpZDo3ZTBiZWUyNy1hM2UwLTUzNGEtYjJkNi0zMmE5NzYzOTM5Mzg8L3N0RXZ0Omluc3RhbmNlSUQ+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDp3aGVuPjIwMTQtMTAtMjhUMTI6Mjk6MTItMDQ6MDA8L3N0RXZ0OndoZW4+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDpzb2Z0d2FyZUFnZW50PkFkb2JlIFBob3Rvc2hvcCBDQyAoV2luZG93cyk8L3N0RXZ0OnNvZnR3YXJlQWdlbnQ+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDpjaGFuZ2VkPi88L3N0RXZ0OmNoYW5nZWQ+CiAgICAgICAgICAgICAgIDwvcmRmOmxpPgogICAgICAgICAgICA8L3JkZjpTZXE+CiAgICAgICAgIDwveG1wTU06SGlzdG9yeT4KICAgICAgICAgPHRpZmY6T3JpZW50YXRpb24+MTwvdGlmZjpPcmllbnRhdGlvbj4KICAgICAgICAgPHRpZmY6WFJlc29sdXRpb24+MzAwMDAwMC8xMDAwMDwvdGlmZjpYUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6WVJlc29sdXRpb24+MzAwMDAwMC8xMDAwMDwvdGlmZjpZUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6UmVzb2x1dGlvblVuaXQ+MjwvdGlmZjpSZXNvbHV0aW9uVW5pdD4KICAgICAgICAgPGV4aWY6Q29sb3JTcGFjZT42NTUzNTwvZXhpZjpDb2xvclNwYWNlPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+Mjc8L2V4aWY6UGl4ZWxYRGltZW5zaW9uPgogICAgICAgICA8ZXhpZjpQaXhlbFlEaW1lbnNpb24+Mjc8L2V4aWY6UGl4ZWxZRGltZW5zaW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAKPD94cGFja2V0IGVuZD0idyI/PlHalvsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAuFJREFUeNqc1k2IllUUB/DfPFqaWdbCoKZIN6kIVqYljQsrbZHpGBnMShSpTQQVBIIoRQsXhYK1DEGQaNGXpkFkWllZGX04ZKZtMnNIzcKIcejDNueF4+2+7zt4Ns+595x7/889H/97e76YOs0o5Ar0YRZuwAQM4xgG8THOdttkbBf7HDyKBzCpg99ZvIkXcaCdU9NmfhxeioUruwDBlViBz7EFl40WbDq+x2oXJ6twBDO7hXEavsGlHTb7CWdCvwbXVnyux9e4Bd/WwMbj0zZAu7ENewIsy0wsxWMF8Fjsj7k/yzC+hquKjc6gH4uwtQIk/nwDpkaeyyp+vczZfNxXOB7HDOyI8Z2x2UH8jB/CNhD2ETyM54t97sUC6Ik++yj6qCXncWM6ySY83iGPr+KhNN6PeWn8GeY10aR9xeK1CWhjAjqPkxWw5ViXxo8U9jswpcH9hWE4heJmPBH6V5GXXjxTAVyTimsQ3xX2JQ1mF5Pv4a/Qn4zv31iIH0N/ukJPE6J1ciiz3NpEbsrqasnc+O5LvQVj2hBCZo4/Cltvg8uLyX+K0oWhwud2TKyAnSoo7IIfaXCumJyS9KFEYfkk/RWgXyPMtX1gpKk06qKkPxs5mo3JXcA+wb+pf28r7ENNcGGWyanU38JvoZ9Op5xeAduc9IWVMA422FlZuCn4blyA70y5rHHn28GfLVlX8dnV4GhQUCnbcSL0HWn+IJ5L45exOI0Hgv6yHMKhFl0tbnPClszAYVySevC6yM3x5LcAeyvrl2F7q8J2xS1bk5MBBHfF9T8pTt0Cuhrr2wB9GVG64D5bGqXeUzjvKy7X/gB5B7/HRdnXpu9gSe3y/CXC8EHhnMd3x3ciHhzFE+GelPf/Uc6HEarhoiDy4tHISPTrnm4PnvdxUxByPv2yRF+d5N0I9+7S0NPlkToQD5ehyE8n2YsX8MbFPlJfSdX2VFy0vcHu5+J5MBh5PdLtyP8NANPznqhL35DdAAAAAElFTkSuQmCC") +} + +.followus .linkedin,.icon.linkedin { + background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAYAAACN1PRVAAAACXBIWXMAAAsTAAALEwEAmpwYAAA7amlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS41LWMwMjEgNzkuMTU1NzcyLCAyMDE0LzAxLzEzLTE5OjQ0OjAwICAgICAgICAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgICAgICAgICB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIKICAgICAgICAgICAgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIKICAgICAgICAgICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICAgICAgICAgICB4bWxuczpwaG90b3Nob3A9Imh0dHA6Ly9ucy5hZG9iZS5jb20vcGhvdG9zaG9wLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOnRpZmY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vdGlmZi8xLjAvIgogICAgICAgICAgICB4bWxuczpleGlmPSJodHRwOi8vbnMuYWRvYmUuY29tL2V4aWYvMS4wLyI+CiAgICAgICAgIDx4bXA6Q3JlYXRvclRvb2w+QWRvYmUgUGhvdG9zaG9wIENDIDIwMTQgKFdpbmRvd3MpPC94bXA6Q3JlYXRvclRvb2w+CiAgICAgICAgIDx4bXA6Q3JlYXRlRGF0ZT4yMDEyLTExLTAxVDEzOjA4OjE0LTA0OjAwPC94bXA6Q3JlYXRlRGF0ZT4KICAgICAgICAgPHhtcDpNb2RpZnlEYXRlPjIwMTUtMDItMjRUMTM6MjY6MjMtMDU6MDA8L3htcDpNb2RpZnlEYXRlPgogICAgICAgICA8eG1wOk1ldGFkYXRhRGF0ZT4yMDE1LTAyLTI0VDEzOjI2OjIzLTA1OjAwPC94bXA6TWV0YWRhdGFEYXRlPgogICAgICAgICA8eG1wTU06SW5zdGFuY2VJRD54bXAuaWlkOjVjYTc1ZjdmLTU0NWMtOGY0YS05NDRiLTdmNjUwYmRjZjdkMDwveG1wTU06SW5zdGFuY2VJRD4KICAgICAgICAgPHhtcE1NOkRvY3VtZW50SUQ+YWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOjkxYjg0YjE0LWJjNTItMTFlNC04ZmMyLWMzMmMzN2VlOTM3ODwveG1wTU06RG9jdW1lbnRJRD4KICAgICAgICAgPHhtcE1NOkRlcml2ZWRGcm9tIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgPHN0UmVmOmluc3RhbmNlSUQ+eG1wLmlpZDpDMTAyMEM1NTFDN0IxMUUyQjkxNEY3RUNEMkY1ODRBRDwvc3RSZWY6aW5zdGFuY2VJRD4KICAgICAgICAgICAgPHN0UmVmOmRvY3VtZW50SUQ+eG1wLmRpZDpDMTAyMEM1NjFDN0IxMUUyQjkxNEY3RUNEMkY1ODRBRDwvc3RSZWY6ZG9jdW1lbnRJRD4KICAgICAgICAgPC94bXBNTTpEZXJpdmVkRnJvbT4KICAgICAgICAgPHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD54bXAuZGlkOkMxMDIwQzU4MUM3QjExRTJCOTE0RjdFQ0QyRjU4NEFEPC94bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ+CiAgICAgICAgIDx4bXBNTTpIaXN0b3J5PgogICAgICAgICAgICA8cmRmOlNlcT4KICAgICAgICAgICAgICAgPHJkZjpsaSByZGY6cGFyc2VUeXBlPSJSZXNvdXJjZSI+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDphY3Rpb24+c2F2ZWQ8L3N0RXZ0OmFjdGlvbj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0Omluc3RhbmNlSUQ+eG1wLmlpZDpiYWU1MTMwNy0xYzQwLTQ5NGEtOGYyMS01MzlkMWRkNWU3NDE8L3N0RXZ0Omluc3RhbmNlSUQ+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDp3aGVuPjIwMTUtMDItMjRUMTM6MjM6NTgtMDU6MDA8L3N0RXZ0OndoZW4+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDpzb2Z0d2FyZUFnZW50PkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE0IChXaW5kb3dzKTwvc3RFdnQ6c29mdHdhcmVBZ2VudD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmNoYW5nZWQ+Lzwvc3RFdnQ6Y2hhbmdlZD4KICAgICAgICAgICAgICAgPC9yZGY6bGk+CiAgICAgICAgICAgICAgIDxyZGY6bGkgcmRmOnBhcnNlVHlwZT0iUmVzb3VyY2UiPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6YWN0aW9uPnNhdmVkPC9zdEV2dDphY3Rpb24+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDppbnN0YW5jZUlEPnhtcC5paWQ6NWNhNzVmN2YtNTQ1Yy04ZjRhLTk0NGItN2Y2NTBiZGNmN2QwPC9zdEV2dDppbnN0YW5jZUlEPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6d2hlbj4yMDE1LTAyLTI0VDEzOjI2OjIzLTA1OjAwPC9zdEV2dDp3aGVuPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6c29mdHdhcmVBZ2VudD5BZG9iZSBQaG90b3Nob3AgQ0MgMjAxNCAoV2luZG93cyk8L3N0RXZ0OnNvZnR3YXJlQWdlbnQ+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDpjaGFuZ2VkPi88L3N0RXZ0OmNoYW5nZWQ+CiAgICAgICAgICAgICAgIDwvcmRmOmxpPgogICAgICAgICAgICA8L3JkZjpTZXE+CiAgICAgICAgIDwveG1wTU06SGlzdG9yeT4KICAgICAgICAgPGRjOmZvcm1hdD5pbWFnZS9wbmc8L2RjOmZvcm1hdD4KICAgICAgICAgPHBob3Rvc2hvcDpDb2xvck1vZGU+MzwvcGhvdG9zaG9wOkNvbG9yTW9kZT4KICAgICAgICAgPHRpZmY6T3JpZW50YXRpb24+MTwvdGlmZjpPcmllbnRhdGlvbj4KICAgICAgICAgPHRpZmY6WFJlc29sdXRpb24+NzIwMDAwLzEwMDAwPC90aWZmOlhSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpZUmVzb2x1dGlvbj43MjAwMDAvMTAwMDA8L3RpZmY6WVJlc29sdXRpb24+CiAgICAgICAgIDx0aWZmOlJlc29sdXRpb25Vbml0PjI8L3RpZmY6UmVzb2x1dGlvblVuaXQ+CiAgICAgICAgIDxleGlmOkNvbG9yU3BhY2U+NjU1MzU8L2V4aWY6Q29sb3JTcGFjZT4KICAgICAgICAgPGV4aWY6UGl4ZWxYRGltZW5zaW9uPjI3PC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjI3PC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz51EJCFAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAL9SURBVHjavJZLaNRQFIa/O0nm4UwfVouttiC1PkEUrRtdKBatiC4FEQQFwY3dWhBBBF3pTtyoaxE3ilIEERREQcRHfZf6wkdL7XNenUkmyXVxayaZqULttD+EzNxzc0/Of/7zE0FX9zHgNGAweygApwRd3ZI5Qggwi/8EOC6MZGEoA6at1ioDUwcsIEJIQK4AjmTX5qXEDY2b7wZxknmoiYI7YwIsvciqC47k8sENHNnUDEDPQIqOi48ZTJsQMypCo8LYBB0blniJANY1VnNyzxpImRXrmYLjUh8Pl21YlAiDlBVOVhvj9rMfvBlMe0uulJy/1wfxykxFsWcxg2QyT9uFR5xqX04ionHl6XdevR+EBXFwZLBCIZRSLRuyBUBCWIeoDpqAKcgQdHWngCrE5AFDWUjlVTSqQ0MVGBrkbXX9QVSHjAmJCOuaazE0wefRCUYH0uolyhWcLlZmuaALrnVuoSER8ZaP3nhN7/Of7Gxv5cS2Vq+o/VdfEKuNcf1QGxubagAYzlrc7Rvm+K23/OxPQd28QELd1yBAsG9tY2COF8bD9CbzLFsQZ2tLnbd+tmMle9Yson6eEdh7YP1itrcuZNWZeySzVmBkQj5CAfg2nguOve2CoZExixRK4HBbUyCRHw2JMJ07VkDa/Isap4E/hY/nCpy+84Fz9z9hlzjM3hX1UBUB252Cxul6j+Oy7dITeh58Ain5lbM4t3u1F19cHVEUWs7Mk30YytLzcRha6iBl8vDLWCCuCpUzpxFgZMJSP7QQaIKC65Ykk2Wz9t/JspYDBcdroBBiGnY1TWhCqIErEc2sJJuZEc9pMll0AT8MTYDtEjWC7zU/ZhSNWUq1j6DzUCJIvTTty/4UTTVRbzljOhAzGM4W+DqW80k/o5Q4qciM6QTiP5L5Mu6Kru9VWKJXv8oCMVGuin89O+n6Qd5sNzgfRkhVYLsB6yEkVExOStGV6jvGL09D858c1oFISZPKO+tKdXi4JCZ9dzFFPIiIDnTO1Rfx7wEA4YQP61bPS5MAAAAASUVORK5CYII=") +} + +.followus .instagram,.icon.instagram { + background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAJnElEQVRYw4WXbYxdR3nHf88zc17u3b3r9a6zydqO49hgzNoiJuEl1CFNEDhV1IQqEJQPjdSG8qI6kkHiS5MGiqClpbSAKlHaKpUQoR8AUUgrFWLUkDZOwFaICTVxTBySze7a3rXX6929b+ecmacfzl3XQg4daXTu3Hvn/P/zf56Z5z/CazcFuOu+p0eSpLkHZJuajTmLeRIt82aaRPBmuBDx0aKLse8CPR9s0VfxparoHP309/ctD94XLwcil/ty67Y7dO/Nf7YP1QMI7xKz1JnhYySxiI9GYoaPhosRH8FFwwfDRXCDp48UrrL/1Cp8+Wu/+MvHDi8cjP8fAb33/Y9v8Onwwwi/qxZRapDEIkk0klgT8LEeu2gDFawmYjW4RlADQQBF4N+LqvPBjx668+ylalxKQD98+8HNLmseFGyHmqGXrDqJoQYfEPEDJdyaEgZqhrMaUhBEBEEHMAoiJ4qq+54/fOr3ZtZIXCTwR3v/pdkamjykwp4aPOAtkMRApsYVm5uMrE/JUiVx4AQUQ22QLNGgMkI/0D/Xo/3qKgRBREEUQTEEQ44udM/s3f/MfR0Av7b69en4g66q9igRZ4HEAiMjjnf+wU6m3nM12ZBHRF4zY83s4u9mRrlaMv39lznx8DGqlaImgsNE9kzmYw8CDwFRAPb/1j+OrW9sfsUThz2BJFaMTWZ84G9voTXRJIbI2RMLtE+vUHULqCIYYIYYIINIe8U3EpqTLcbeMIE4pXOqzeH9P6R/pg/iAMVEVmc7p6750LP7Fz2gY9noXZkUw7XkFYkE7vzUbzNy5RAvP/kST3/+CcLZLqkIDnAWUbNaVAOJF9eCRSNYIJlosuehdzN50zbe/Jm9PPOhxwZhdxg6fFU2ehfwzwqQEm9LY0keC3Iref3bJpjYMc65Xy5w6IH/IDnXpSXGEJGmVTSoaFhJbhU5JbkUNFxBQwuGh5VdH72RK3dcwc8+9j1WTp5ldPcVbHjrBnys8FR4q0ix29YOG82IU7mVNKyiEQu2vn0SgBe/c5RmFcgHYJmVZFaSxpLECvI0kiWRJBYk1iel4Jp7drPtw2/nui/cQUON2W89i5kx/o6NeKtqEhZIzKYA9YDmFiYaGKmVOCtZt7mFmdE5fprcShIZ7G8M54WNH7ieK++8jsbm9QB0pxeZ/+5POfPNI6wc/RWhcyMXjk6ThB79508B0NzSwllJnTwATADqt4+83udWNnNizS4WZMMJIoIur5JaRUJ9JqTDKW/80j20dm+qM32pDUBj6zhbP76P8Vt38uKBb/DMLX+BRCETj3Q6iAh+OMVZhciAgklz19A276dGd2hulU8tkFiFtxKfuHpv9nqkVuDNUItsf+C9tHZvYvXELC995tt0j80iQGP3ZrZ98m5ae7ZwzZ/czqsPfhtEgYj2CwBcpjWBKJgKhvi3jOxUHXG5plZqRklmBakV9VwgiT1S+iTWp7VjjLFb30hxdpkXP/IPyPNzDKtjSB16bI6TH/kq5flV1t/2JhrXjuGswlmFhqo+clVwWqIEnAWcBR31TdVUjNwKzSjItU/uu6gYZkbu2+TpClm6wvq9WwFYfPQQWfsCiVR4AgkRTyQ932bx0Z8A0HrH63AElIBahZmBGCrlgEQ1IGL4VEsaSYeGliTaw9NHJSIiZHkHzduIGdkVOSKCnZoly7qIeYgeqxSLghmE6QVEhGR8CEfEALE4qAmgFhGpMBFc9OpF8Inv08xXaLgKL30cBaJ1scqyLpp3EDNs5ezFhAt5B8xDcJj3WKmEUsm3jAMQzl5ALQyq3VrhM5SA4IgSECFGq1BxXZp5J+b5KnmjTZa3EaknpY0+aaNH1uxRHTuCmdG6/VaSCU+SteueruKzNulVnnXvvREzo/f0L3DEAWCsQ2AgFhACSkS0IlChq2GZNG/HLO+QZV2yvAsWMDOSRknS6OEbffTMcbpHDqGj6xj780+R7tqCZl0065BddzUTf/cJdN0wq48dhlfmUGLd3Zofqsfyfz2er5ajPzz/akyzqSr1IfVSIhQQisHeNbTfR6Q+P7pf/zxu7HNkr9vF6F99AVtZrit/q4WI0P358yx/+WGSDGIhxABkWudOv0QxzCJIQEyrHy//En9scbFKsl4vSULTSYlYCb3axvl1ObLSRwdl1seCzpfup3/z+8hvuoNkcgtglDPTtA/+gP6/HSSNjphlCIb1E1wrrwVY6Q4S0ohmGKF3vHOq8kCUpDvvUxtzUm+ReG4auIHk2u3Y/HMXCWCCCyXxiUfo/PARAhmxUrRvuJCSuZSYpbVcFnExkk1tBKCcXkAwGIQgWpwHogKxkO4Jl/ZxWYnLS8LJJzEzspvehzZA0wLNyotPn5XkeaDpuzR9jyyvcFmBSwtc2q//l/TRZqR19811XTn0PCq1J8KMbuifuEhgqWw/7rIK16hwjQivPkk4/QJu4w7Se/8a2bAByQzJB71haB7QNODSEk0qNC2RpEB8gfo+brLF+s8dIL12I71jL1P85IWBArUK58vVx9dchB7Yu2nrQ7+z5eeNnKaqIRqpWhvJ7/573MhVWAzYmeOwfBorelBVEAyLBqEOjZkDScA3kPFJ3NbtiHMUc/PM3/832ExBtJQoCT2j88WZH+36p9OHptdMXvrsA9d/8Q2TjT92qSBeQKFMRtE330e6/d1oNnxZ//da49hepf34j1j92vfQcxD6TULZoMJxsnfhK/v+5ysfB4q1WfqunaObv7F/9w/Gx/KdkijiFFSJBmV02NAmSEdBMzAHEayy2h8WEesHrFMSl3uEhSXi9ALaS7F+Tug1Cb0hyl7OYhmO33/yu7c9tfLyDBDXjgn71dleW1N35IZdE/vyVnOd5DmSZ2iW4RspiXZJwhK+XMAXp/HdU/jOHH51Frc8i7swiz8/h1s6g1tdwYX69WYeM0cIjqWimv7q3JHf/9fFYy9QBw93qbV+6oWlM3NLxRPXT101NTQ6vEXzHMkySDMkySBNEZ8iPkGcB+8Q78E5UAeqay4PM8UqIUalqJSZdve/PvvSUx98ZP65owNwu+zVDFDnZOLhP73lznfecPW9ExuG35Z451WltuAWIUQoA1YGKEusX2HdEmtXxNWKsBypliP9RatOL4TDh2YvfP3ATw8/GszmB9Y4/sbL6YBICozd8tarN95z+9SbNk20rhluJqNeJFUxrzGqVaEmUlRYv4xVp6zKdlWsnC+WZk53XvnWz2ae+++Zc3PAIlBc7oYs/Oa2pqm/5Hnx6n6ZtgZQDT5Xv77iX2//CwOk7MFopqLgAAAAAElFTkSuQmCC") +} + +.followus .googleplus,.icon.googleplus { + background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAuCAYAAABXuSs3AAAAAXNSR0IArs4c6QAAA9lJREFUaAXtmX9IU1EUx882tznnr0ynGREpFvRfkWZ/FCRSRGQWmEgU/VF/FNEPqD8LwiAoIUihfyMoSyywoP6oDCEtqUj6IWRIhKVu/pq2qU+39zrnuvt82x6Mt+3pgl04vHPPu+/cz/t6d3bvBPhPm0GFWy2mMmzJQ5JyRiUk+aaAka+8p3xmqX0CJvMHjL1AioLC9KayvCrPZm00GYyFiviyu35JHHTNzp3e/uLtU4TxEZAxQEXqmhMRmvhISEeqpYkY0dhKUIJbEk1pguYtwGbBfjg4H5TAV1Vw5XpPVHZiDFKcQFkgUYkDXDIjX+MJzhuOlwQP10TfSFJxffUNz55UPFwTfSMxfekY7HbIPlgH9i1bwZyP+zKssvPOIfB+6AZ36z2Qpqd1o48aPG1zGeSePAdmR0EQnHVtEZBl7KgAZ1MDCD0fg+7HqxMVuG1TKRRcvgYGw8IX2dyIC2a+9zIm24aNYMlzgOT3g2/wd7w4w/JoBjek2SHv1HkGLfp8MNZ8ByYfPwCDKLLkktEI6bv3wUx3J4jjo2ETxiugGTz7QK28PCYeNcNU6/2gTQ69gPd5W0S+4rZ2NqZ/f0XEsWoDNJdDe2k5yyPiB8/dclct55LENCtuLljNwISfP/AQRcfAxcZVXIwseJ7ODnBev8I6oWN4X6vymhWXJH7YlneYoZzhfROdwePbNCvuc/4B07oSsBaV4AkQj4Dz8zLRcGOD7JuysiDv6AnW942PyfG+qp3MX//kNbvyvilQoeSBERzNinvedbGURpsNcuqOBaX3vnwG3ExmOmUtNKH3C3fx4GtgxgOhfR6PdNWs+GRbC2RU7AJL/irIrj4EEpbEiYf4IcW6zVvm3mpYUXOYdYWBX+Dp6uC35Gu0SvMEmsGlmRlw3boBhfUNYMS1m1N7BDIr98Bsfx+AKOESKpbLpYilceT2zaCX4hNrXRr8OX7VDE4PCl97YPDSBXCcuciUT1mZC+loyuZzT4ALoYVvn5XhuPlRgdPsBD9w9jhkVtWAvWwbWAvXBDZZw+D99B4m8ctJ+jsVN9DQRFGDs0S4bKZwfZPxIglYLvkeJnSyePZjA1eQyFVdY1lTpNDkai6HmrLrODgJrqO4qqmTiqvKomMwqbiO4qqmTiquKouOQaXioiD6XTrOFVPqANvCTwmYiYPTVsPXPjR6VfD7R2KaQYeHienV8Fg9MaKxbRHfYtALpKPlo+WgpaLxe+guayPQWbRxNCeaB03kmyy6KaC5KYhG5y7+10B3WRvxzKHRHpkYgxTHPgOlf4ASNL1QIilOS4Tg6WTO1vk/yrUG/vk8ZeYAAAAASUVORK5CYII=") +} + +.followus .reddit,.icon.reddit { + background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAACAUlEQVRIS+2TTUhUURiGnxm1zJ9KQScVmxT/MlJQCFNQNyJBZLrSQPyBNokbwRKNRBdGCG1EWhg06kLd+L8RQRRJJNBKURyVURjFRJhSw4pJRw4HnWQu3rloO7/Vved8533Oed9zdI4sHPzH0l0A1NzVbpG3L3h6wc8fUjvAADod2L4psrQDntRAaBToPWDfDml5oNdDSQx833SBaAc8b4PGInA4IPAGmJbltwDYNs4B8KId3hQ6ha4HS8D21jlYZDDCg6dgeqmW7fG8ukV+AZCaA8Y7EH8fRMhfRsAyA5MDsGs7FeYKiEyE/CqwmsHrMuSUwRV/ZZFfu9DXDPbfcPM2dLwGy9cTva6AljkwxrttwYnGNTOUxqkA3s/L3RxVczlMDkJ9P0TclaMrs/DqEaQ8hLImZ+/aIpTGqgCEyLvP8p6LKoyAzVWoNEFWkRwbboXGYjDcgvYVOXawD8+SZDb/lHLIvdvgc9W52+VpyMyXmYiy/4HRTohKcp5qbwceX3OxVhlQ2w1pudpy+NgDdXluAoLC4e04iHsvHpFYmJgJ0clSYGkK5iegpkv+Cwsr0mHL6iZAtIVEQnUHxN6Dv3aYGYP1RSkQFgMJ6eB5CcyfoKEANiyKJ1Z/aAkZkF0C4XEQFi1F1pfAugBDHyT4lFIHaEtCg0VnFD5afnECVSMPAeyytmHDG1/pAAAAAElFTkSuQmCC") +} + +.followus .rss,.icon.rss { + background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB0AAAAdCAMAAABhTZc9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NTc3MiwgMjAxNC8wMS8xMy0xOTo0NDowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo0NzZiMjA1Zi00ZGUxLTZiNDctOTMyMC03ZWY5NWQ5OWI3MzEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QTUxRjNCOTIyODA5MTFFNjgyRDVDNTkyQTkzNDdBRjYiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QTUxRjNCOTEyODA5MTFFNjgyRDVDNTkyQTkzNDdBRjYiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTQgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NDc2YjIwNWYtNGRlMS02YjQ3LTkzMjAtN2VmOTVkOTliNzMxIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjQ3NmIyMDVmLTRkZTEtNmI0Ny05MzIwLTdlZjk1ZDk5YjczMSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pmuk6osAAAF9UExURfTr3vT08/eiNPTw6vXWrfTz8vXewfegLvXiyvefLPejN/XjzPbBfPTu5vimO/a/ePilOvinPvXfxPbAevTy8Pa2YfenP/XgxvXXr/XRovTn1PipQ/ayWvXewPa0XfXWrvXYs/XTp/a1YPbFh/XOmvTs4PTt4/XUqfa1YfXSpPegL/XVq/ekOPeqR/XQn/To1/Tw6/egMPeoQ/Tx7PvPlvilOfekOfbGh/a4aPbEhPXiy/auTva5afawU/Tm0/bAe/epRPTx7fa6bPXbuvbIjfXJj/a7b/XgxPTp2/XLlPayWPejNfTz8fXdv/XjzfXKkvXNmfeqRvTv6fepRfzWpfbEg/Xcu/Xbufa2Yvzcs/a8cPXYsva1X/ioQfXSpfbJj/Tt5PTn1fXZtfXUqveoQfTq3Pa0Xva9dPa8cfa3ZPXLk/awVfXUqPXMlvXcvfTv6PemPPTm1PbGiPirR/auUPayWfa3ZfTy7va6bfzWpPelOvXfw/imPPT09PeeKmiQOqoAAAFoSURBVHjafJJlY8IwEIaDU9yHO0M3mLu7u7u7+1buty9Jw4BReL/cNU96GrT1YuLFZfB8IQ9UF4/aalAD4gGsoQVjYkUq9i+m8jyW3jIV/hajobwgyYRVU0nj+T9pLznRyEyKgOMf3Xw+cN27JYx3v5VTIm6pMz0k4Hp7BcVSve5/UHz4Xkob9dm5Oz8p1/5EcaynhJ7Qcny6doCGdYrrHov0ltWjDgNonNRNinQkWwPI/FDvvJg3JivwDhx8kjhBVYGe9iV0AeGCQgewTTpvuSrtSOVVUvwwDakR4jhTZf1KoxRvNMHnLNnZYPk0wEUX1QszNIyxQI3a3NGYCqT0VCmFUWLjjPpt5KsLYFiBre0GdkmJ84ymhfng1BbiRMCBsDlj9FiYFE5xTRw5cFpsEKPjlC5iesGu+cgiGeWiy5LcTgZTr9bdnw3i2SKE1ISa8KFmIBlpFn3P5hqv3YRW9/hqMrf+CjAAaC1Z2TOY0NQAAAAASUVORK5CYII=") +} + +.followus .periscope { + background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB0AAAAdCAIAAADZ8fBYAAAACXBIWXMAABJ0AAASdAHeZh94AAAAB3RJTUUH4gQVEAg4+eKAogAABDhJREFUSMedVk1oXGUUPfe+N/Mmk0x+GpM0TdOaBlOpSgXdtAoVhUrBuhGKK0EXrrpyIYi4KxQXrYhUcSFaEWtFpVJxI/5iKoVWa9pqUmObnza/k2Q6M3Ey8953j4sXqyGZJPZbPXjvO+9w7zn3XHnkgx+xjiMgIAAAcvFhtaNrfyECkhACBAgRcE1gf3WOhBgJkeaUf0c6cMap+XI+dLfe/n9ckiJC7utue7y7rasxXeurEYXQ9U3lT10ZuzCZBwkAsgK6rFxfEiKbM6mXdt21o6V+xf9+2j927PzVGHk5tL8cUQQU6axPHXnsvpZ0MjSKQAkzp76vQATA7Km7N2UC/3DvFRHhOuuQ8OTl3T0t6WTFzBNRILw5d+2NV8uT43X37mx78kC6o7Pi3N6u1j9mip8MjAvA1fUgACFPbGvd3pwpG31VJWmWbGxq2b3H9V/Kff7xwAvP5y6c8zwvcvbMzq0bUj4B0KrjkgQ8cH/PJiNUZe78WVcpi+dBJGhrD2pr000b/Pn88NFDldlZE80kvL1drQBUtCquqkBkW2N6S0ONCRhGY28dzX72IcsLlezU9Mn3ATByydoMJ25kv/pCFQQe3NQkoC3lu7S+BICuxloPqAALo8Nudnr2o+Pzvd9F80U3OyPJADQSvu+Xfr9ogE+016VSKiWLBS0r9o2AZIIERQhExYKSGgTl6yNQ0VSKZgSEEFUulGhwitpkIuV7pYoT+bd7uqxtiMwAGJBs2SjJJM00CMTzF10AiAqd85uaY3KRmTNbbT7E94bmigDEMdm+seae+6NiAepBhGTsQQBmrH/oUQoUmCguFEIHkqyGSwLonymOF8u+wojW5w5qa3t0c26xrb4Ps0p2OrN3f/3De6KIAvRN5CiqssR1S+sgIrQypXc064tEkQWbOzsPvZ56YJdzLirko0Le+X7D08+2H3yRBk9Qcfx6aAqAcVW/xSPqVP+Nfd0bEwl1oQVb79x86LXSlYFwfBTqBdt6Uh0dNERmdb5+M5z9M1f6rxKq+5g29lf45eDEgR0dBQEcBazp2Z7u2R73wCJH8TyVBeOJi0MQWY67bK5LXCeeuDwyNl8OPDGShEXmKpGrhBY6ika0GpXTA2ODN8swB9V15IUIyFzFjp0dTMo/+hOB58NLQNWRaU+H8qV3fxmqNt1XziECMHdmPHfyt+t1voakAQQJGuEBkdmRMwMlAqSorjvfRAmB2ds/X/vpxlxDQp0xNouRaV/fPHf10sw8zFWLoqq5GbMg5HDvwK/T+YaEhkaY1Sf0+MWR04OToEFkxRBaK49VQRZC98q3l78fyTYmtCbhvXNh+L2+UZgjAalOq+r+EEuHBA3q0WzPlubcQtiXLdI5iEh1sqvmcXxHBOLFE+eH63OxukVlUSG3tz8s8TegIAmuhbjefecWtBGssi3cLl8A60aMz9/uIDYzpseL+gAAAABJRU5ErkJggg==") +} + +.followus .email { + background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAWCAYAAABOm/V6AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gQVECMqfCsMgwAAAshJREFUSMfF1s9P02AYwPFvyxwbHRuMrYOVVgS2BRNBDfHqxXDxz/Bq4sH/QA+e/B8MR+9e/QcUMk0IMBRho4R1g7LRbmPA6mFuqLAxfj9Jk6bv276fPHnep6+QnJ3xAq+Bl0CEm41PwBsX8AJ4y+3Ec2DYBbwCCClj7O1k6Q3KRO5OXNuqlVKRjVQSr6+PXSMDMCUCIwCylkCJTWHt5smuLV4LYL9ssZFK4g9GUMYnm8/Fvyd5fX1Exx7UIetXC6mWbTLLc/gHBpG1+D9jIuDUb51jyPgklpknu750NYBKifTSVwKhKOHhGCCcQJwIry+AEptizzQw0suXByx+oS+sEFLGEQThxByx1cseyc9w/BHFnSy5zAqO41wYEAgrDERHTwW0RQB4enpRE48pbG+S13/iOLVz1UADEIqOIoitlxLP+li314eWmKaQ09nWV3FqZ0P2Sxbp5TkC4SghZawtoCMEgNsroU1Ms5vTyW+uts1IpVQkk5rHHxxsWQMXQgC4PXVIIaeT11dPrZGKXUBPJekNRpC1eEeAcyGqlRJGOoUUCFHI6+QyKWpHh81xu7CNvvKd7h4fFbuImc10XD+uzgA2RjqFRwoQUkbZL9ts/vjG4UGVbq+PWu0Qy8zROxBBVuNU7CJGJgVAf0S9fCb+B9SLVUK7/wTXHTd2cYdq2SasxpDVeHN7y2qcPdNo/B8unoljgL8JaERXlwtZS9Cuz8hqrN5jgH5ZPX8mGjXgkfwMREcv1C09kp+wGsPaaZ8R8biRH1fywX4ZI71cBwzd67jKW2ZES7BnGpgtICJQBZpN6KBaIbu+hEfyExwaObPRdBLdPT5kLYFlGqfuGhGYB9haW+Do8ICtXwt1wKCGIAg4Tu1KLrenh7AaxzKzZNcWsXZzDUNJSM7OPPtz1nPf0hHvowv4DDwF3gEPAekGFnaADPABeP8bNrJaPIc3C6EAAAAASUVORK5CYII=") +} + +.gc-followus ul .facebook::before,.gc-followus ul .instagram::before,.gc-followus ul .linkedin::before,.gc-followus ul .twitter::before,.gc-followus ul .x-social::before,.gc-followus ul .youtube::before { + background-repeat: no-repeat; + background-size: cover; + content: ""; + height: 38px; + margin-right: 10px; + min-width: 38px +} + +.gc-followus h2 { + font-size: 1.6875rem; + margin-top: 0 +} + +.gc-followus ul { + display: block; + font-size: 87%; + font-weight: 700; + list-style: none; + -webkit-margin-before: 1em; + margin-block-start:1em;-webkit-padding-start: calc(1em + 6px); + padding-inline-start:calc(1em + 6px)} + +.gc-followus ul li { + margin-bottom: 21px +} + +.gc-followus ul li:first-child { + margin-top: 34px +} + +.gc-followus ul li:last-child { + margin-bottom: 15px +} + +.gc-followus ul li.more-ways { + display: block +} + +.gc-followus ul li.more-ways a { + text-decoration: underline +} + +.gc-followus ul li a { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + line-height: 1.54; + max-width: -webkit-max-content; + max-width: -moz-max-content; + max-width: max-content; + text-decoration: none +} + +.gc-followus ul li a::before { + margin-right: 10px; + margin-top: -6px +} + +.gc-followus ul li a:active,.gc-followus ul li a:focus,.gc-followus ul li a:hover { + text-decoration: underline +} + +.gc-followus ul.list-inline { + -webkit-padding-start: 0; + padding-inline-start:0} + +.gc-followus ul.list-inline li:not(.more-ways) { + display: inline-block; + padding-right: 0 +} + +.gc-followus ul.list-inline li:not(.more-ways):first-child { + margin-top: 0 +} + +.gc-followus ul.list-inline li:not(.more-ways) a { + border-radius: 100%; + height: 38px; + overflow: hidden; + width: 38px +} + +.gc-followus ul.list-inline li:not(.more-ways) a::before { + margin-top: 0 +} + +.gc-followus ul.list-inline li:not(.more-ways) a:active,.gc-followus ul.list-inline li:not(.more-ways) a:focus,.gc-followus ul.list-inline li:not(.more-ways) a:hover { + outline: solid 2px #0535d2; + outline-offset: 1px +} + +.gc-followus ul .facebook::before { + background-image: url("../assets/gc-follow-us/facebook.svg") +} + +.gc-followus ul .twitter::before { + background-image: url("../assets/gc-follow-us/x.svg") +} + +.gc-followus ul .x-social::before { + background-image: url("../assets/gc-follow-us/x.svg") +} + +.gc-followus ul .youtube::before { + background-image: url("../assets/gc-follow-us/youtube.svg") +} + +.gc-followus ul .instagram::before { + background-image: url("../assets/gc-follow-us/instagram.svg") +} + +.gc-followus ul .linkedin::before { + background-image: url("../assets/gc-follow-us/linkedin.svg") +} + +.shr-pg a { + background-image: none +} + +.followus { + background-color: #eaebed; + display: inline-block; + margin-bottom: 15px; + padding: 10px 5px +} + +.followus h2 { + display: inline; + font-size: 16px; + margin-left: 5px +} + +.followus ul { + display: inline; + margin-left: 5px; + padding-left: 0 +} + +.followus ul li { + display: inline-block; + margin: 5px 0; + padding: 0 +} + +.followus ul li a { + border: solid 2px #eaebed; + padding: 10px 17px +} + +.followus ul li a:active,.followus ul li a:focus,.followus ul li a:hover { + border: solid 2px #0535d2 +} + +.followus .youtube { + min-width: 38px +} + +.followus .googleplus { + background-repeat: no-repeat; + background-size: 35px 35px +} + +.icon { + background-position: left center; + background-repeat: no-repeat; + display: inline-block; + min-height: 32px; + min-width: 32px; + padding-left: 35px +} + +.icon.youtube { + padding-left: 45px +} + +.icon.googleplus { + height: 45px; + padding-left: 48px +} + +.gc-minister { + margin-bottom: 15px +} + +.gc-minister h3 { + font-size: 20px; + margin-bottom: 15px; + margin-top: 15px +} + +.gc-minister p,.gc-minister ul { + font-size: 17px +} + +.gc-minister img { + border: 1px #ddd solid; + margin-bottom: 15px; + max-width: 100% +} + +.gc-most-requested { + background-color: #f5f5f5; + margin-bottom: 20px; + padding: 24px 0 12px +} + +.gc-most-requested h2 { + font-size: 22px; + margin-top: 0 +} + +.gc-most-requested ul li { + font-family: Lato,sans-serif; + font-size: 18px; + font-weight: 700; + line-height: 1.8em +} + +.container .gc-most-requested { + background: 0 0 +} + +.provisional.gc-most-requested h2 { + white-space: nowrap +} + +.provisional.gc-most-requested ul { + display: block!important +} + +.fd-wdgt.panel { + padding-left: 0; + padding-right: 0 +} + +.fd-wdgt .panel-heading { + border-bottom: 1px solid #ddd +} + +.fd-wdgt .panel-body { + max-height: 25em; + overflow-y: scroll; + padding: 0 +} + +.fd-wdgt .media { + border-top: 1px solid #ddd; + margin-top: 0; + padding: 15px 15px 0 5px; + position: relative +} + +.fd-wdgt .media:first-child { + border-top: 0 +} + +.fd-wdgt .media p { + font-size: .9em +} + +.fd-wdgt .panel-title { + padding-right: 30px +} + +.fd-wdgt .panel-title .icon { + position: absolute; + right: 5px; + top: 5px +} + +.fd-wdgt .feeds-date:before { + content: "" +} + +.fd-wdgt .feeds-date:after { + content: "" +} + +.fd-wdgt .feeds-date { + display: inline-block; + float: none!important; + padding-top: 10px +} + +.fd-wdgt .media-body img { + display: block; + margin-left: auto; + margin-right: auto; + padding: 15px 10px 5px +} + +.lt-ie9 .fd-wdgt .panel-title { + padding-right: 30px +} + +.lt-ie9 .fd-wdgt .panel-title .icon { + padding-left: 0 +} + +.pagntn-prv-nxt { + margin-bottom: 15px +} + +.pagntn-prv-nxt .glyphicon-chevron-left,.pagntn-prv-nxt .glyphicon-chevron-right { + font-size: 2em +} + +.pagntn-prv-nxt .glyphicon-chevron-left { + float: left; + margin: -4px 0 0 -32px +} + +.pagntn-prv-nxt .glyphicon-chevron-right { + float: right; + margin: -4px -32px 0 0 +} + +.pagntn-prv-nxt li { + font-size: 16px; + font-weight: 300; + list-style: none outside none +} + +.pagntn-prv-nxt li a { + display: block; + padding: 15px 40px; + text-decoration: none +} + +.pagntn-prv-nxt li a:hover { + background-color: #eaebed +} + +.pagntn-prv-nxt li a .pgntn-lbl { + display: block; + font-size: 27px; + font-weight: 400 +} + +.toc li { + display: inline; + font-size: .85em +} + +.toc li .list-group-item:focus,.toc li .list-group-item:hover { + background-color: #f5f5f5; + text-decoration: none +} + +.toc li .list-group-item.active,.toc li .list-group-item.active:focus,.toc li .list-group-item.active:hover { + background-color: #26374a; + color: #fff; + cursor: auto; + text-decoration: none; + z-index: 2 +} + +.bg-gctheme.well.header-rwd,a.bg-gctheme.header-rwd.gc-dwnld { + background-color: #26374a +} + +.well.header-rwd,a.header-rwd.gc-dwnld { + width: 100% +} + +.table-columnfloat th:first-child { + float: left +} + +.table-columnfloat td:first-of-type { + clear: left; + float: left +} + +.table-columnfloat thead th:nth-child(2) { + clip: rect(1px,1px,1px,1px); + height: 1px; + margin: 0; + overflow: hidden; + position: absolute; + width: 1px +} + +.table-columnfloat td:first-of-type,.table-columnfloat th:first-child { + border: none +} + +.table-columnfloat td,.table-columnfloat th:not(:first-of-type),.table-columnfloat tr { + border-bottom: 1px solid #ddd +} + +.wb-fieldflow-form .input-group .form-control:last-child { + border-radius: 4px 0 0 4px +} + +fieldset.gc-chckbxrdio { + border-top: 0; + padding-top: 0 +} + +.gc-chckbxrdio label { + cursor: pointer; + display: block; + font-size: 20px +} + +.gc-chckbxrdio legend { + float: none; + font-size: 22px; + font-weight: 700; + margin-bottom: 15px; + margin-top: 0 +} + +.gc-chckbxrdio input[type=checkbox],.gc-chckbxrdio input[type=radio] { + margin-left: 10px; + opacity: 0; + z-index: 2 +} + +.gc-chckbxrdio input[type=checkbox][disabled]+label,.gc-chckbxrdio input[type=radio][disabled]+label { + cursor: not-allowed; + opacity: .5 +} + +.gc-chckbxrdio input[type=checkbox]+label,.gc-chckbxrdio input[type=radio]+label { + display: inline-block; + line-height: 2; + margin-left: 36px; + width: auto +} + +.gc-chckbxrdio input[type=checkbox]+label::before,.gc-chckbxrdio input[type=radio]+label::before { + border: 4px solid #fff; + -webkit-box-shadow: 0 0 0 2px #000; + box-shadow: 0 0 0 2px #000; + content: ""; + display: inline-block; + height: 36px; + left: 0; + position: absolute; + top: 2px; + width: 36px +} + +.gc-chckbxrdio input[type=checkbox]+label:hover::before,.gc-chckbxrdio input[type=radio]+label:hover::before { + background-image: -webkit-gradient(linear,left top,left bottom,from(#e5e5e5),color-stop(50%,#fff)); + background-image: linear-gradient(to bottom,#e5e5e5,#fff 50%) +} + +.gc-chckbxrdio input[type=checkbox]:hover,.gc-chckbxrdio input[type=radio]:hover { + cursor: pointer +} + +.gc-chckbxrdio input[type=checkbox]:hover+label::before,.gc-chckbxrdio input[type=radio]:hover+label::before { + background-image: -webkit-gradient(linear,left top,left bottom,from(#e5e5e5),color-stop(50%,#fff)); + background-image: linear-gradient(to bottom,#e5e5e5,#fff 50%) +} + +.gc-chckbxrdio input[type=checkbox]:focus+label::before,.gc-chckbxrdio input[type=radio]:focus+label::before { + -webkit-box-shadow: 0 0 0 2px #000,0 0 8px 4px #3b99fc; + box-shadow: 0 0 0 2px #000,0 0 8px 4px #3b99fc +} + +.gc-chckbxrdio input[type=radio]+label::before { + border-radius: 50% +} + +.gc-chckbxrdio input[type=radio]:checked+label::before { + background: #444 +} + +.gc-chckbxrdio.checkbox input[type=checkbox]+label,.gc-chckbxrdio.checkbox input[type=checkbox]+label+ul { + font-size: 17px; + min-height: 23px +} + +.gc-chckbxrdio.checkbox input[type=checkbox]+label::before { + height: 24px; + left: 6px; + top: 4px; + width: 24px +} + +.gc-chckbxrdio.checkbox input[type=checkbox]:checked+label::after { + border-width: 0 3px 3px 0; + height: 16px; + left: 14px; + top: 6px; + width: 9px +} + +.gc-chckbxrdio input[type=checkbox]:checked+label::after { + border-color: #333; + border-style: solid; + border-width: 0 5px 5px 0; + content: ""; + display: inline-block; + height: 26px; + left: 12px; + position: absolute; + top: 4px; + -webkit-transform: rotate(45deg); + transform: rotate(45deg); + width: 13px +} + +.gc-chckbxrdio.form-inline .label-inline { + padding-right: 20px +} + +.gc-chckbxrdio.form-inline .label-inline label { + padding-left: 10px +} + +@media (prefers-contrast:more) { + .gc-chckbxrdio input[type=checkbox]:focus+label::before { + border: 5px double #000 + } + + .gc-chckbxrdio input[type=radio]:focus+label::before { + border: 5px double #000 + } + + .gc-chckbxrdio input[type=radio]:checked+label::before { + outline: 10px solid #444; + outline-offset: -20px + } +} + +.gc-features { + margin-bottom: 15px +} + +.gc-features h3,.gc-features h4,.gc-features h5,.gc-features h6 { + font-size: 1.5rem; + margin-bottom: 5px; + margin-top: 23px +} + +.gc-features p { + font-size: 17px; + line-height: 1.5em +} + +.gc-features img { + width: 100% +} + +.gc-features .well,.gc-features a.gc-dwnld { + border-radius: 0; + position: relative +} + +aside.site-related h2 { + font-size: 28px; + margin-top: 0 +} + +aside.features { + background-color: #eaebed; + background-image: -webkit-gradient(linear,left top,left bottom,from(#eaebed),to(#eaebed)); + background-image: linear-gradient(to bottom,#eaebed 0,#eaebed 100%); + padding-bottom: 1.5em +} + +aside.features h2 { + border: 0 +} + +aside.features figcaption { + font-weight: 700; + margin-top: 3px +} + +aside.features .thumbnail { + background-color: transparent; + border: 0; + border-radius: 0; + margin-bottom: 1.5em; + padding: 10px 10px 0 +} + +aside.features .thumbnail img { + border: solid 1px #eee; + max-width: 100% +} + +.gc-nttvs { + border-top: 1px solid #ccc +} + +.gc-nttvs a,.gc-prtts a { + text-decoration: none +} + +.gc-nttvs a figcaption,.gc-nttvs a h2,.gc-nttvs a h3,.gc-nttvs a h4,.gc-prtts a figcaption,.gc-prtts a h2,.gc-prtts a h3,.gc-prtts a h4 { + font-size: 20px; + font-weight: 700; + margin-top: 23px; + text-decoration: underline +} + +.gc-nttvs a p:last-child,.gc-prtts a p:last-child { + color: #000 +} + +.gc-stp-stp { + border-bottom: solid 1px #ccc; + margin-bottom: 30px; + margin-top: 15px +} + +.gc-stp-stp ol:not(.col-md-12),.gc-stp-stp ul:not(.col-md-12) { + margin-left: 0; + margin-right: 0; + padding-left: 0 +} + +ul[class*=cnjnctn-type-] { + list-style-type: ""; + padding-left: 0 +} + +[class*=cnjnctn-type-] { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; + -ms-flex-wrap: nowrap; + flex-wrap: nowrap; + margin-bottom: 15px; + margin-right: 0; + margin-top: 15px; + min-height: 3em; + position: relative +} + +[class*=cnjnctn-type-]>[class*=cnjnctn-col]:not(:first-child):after { + border-left: 3px solid #6f6f6f; + content: " "; + height: 100%; + left: 0; + position: absolute; + top: 0 +} + +[class*=cnjnctn-type-]>[class*=cnjnctn-col] { + width: 100% +} + +[class*=cnjnctn-type-]:not(.brdr-0)>[class*=cnjnctn-col] { + padding-left: 15px; + padding-right: 15px +} + +[class*=cnjnctn-type-]>[class*=cnjnctn-col]>:first-child:not([class*=mrgn-tp-]) { + margin-top: 15px +} + +[class*=cnjnctn-type-]>[class*=cnjnctn-col]>:last-child:not([class*=mrgn-bttm-]) { + margin-bottom: 0 +} + +[class*=cnjnctn-type-]>[class*=cnjnctn-col]:not(:last-child) { + margin-bottom: 1.8em; + margin-right: 1.5em +} + +[class*=cnjnctn-type-]>[class*=cnjnctn-col]:not(:first-child) { + margin-top: 1.8em +} + +[class*=cnjnctn-type-]>[class*=cnjnctn-col]:not(:first-child):before { + border-color: #6f6f6f; + border-style: solid; + -webkit-box-sizing: content-box; + box-sizing: content-box; + font-size: .8em; + font-weight: 600; + height: 1.8em; + left: auto; + line-height: 1.7em; + margin-top: -3.8em; + padding: .3em; + position: absolute; + text-align: center; + width: 1.8em +} + +.cnjnctn-type-or>[class*=cnjnctn-col]:not(:first-child):before { + border-radius: 50%; + border-width: 3px +} + +.cnjnctn-type-and>[class*=cnjnctn-col]:not(:first-child):before { + border-width: 3px 0 +} + +html:lang(en) .cnjnctn-type-and>[class*=cnjnctn-col]:not(:first-child):before { + content: "and" +} + +html:lang(fr) .cnjnctn-type-and>[class*=cnjnctn-col]:not(:first-child):before { + content: "et" +} + +html:lang(en) .cnjnctn-type-or>[class*=cnjnctn-col]:not(:first-child):before { + content: "or" +} + +html:lang(fr) .cnjnctn-type-or>[class*=cnjnctn-col]:not(:first-child):before { + content: "ou" +} + +[class*=cnjnctn-type-]>.cnjnctn-col-90 { + -ms-flex-preferred-size: 90%; + flex-basis: 90% +} + +[class*=cnjnctn-type-]>.cnjnctn-col-80 { + -ms-flex-preferred-size: 80%; + flex-basis: 80% +} + +[class*=cnjnctn-type-]>.cnjnctn-col-75 { + -ms-flex-preferred-size: 75%; + flex-basis: 75% +} + +[class*=cnjnctn-type-]>.cnjnctn-col-70 { + -ms-flex-preferred-size: 70%; + flex-basis: 70% +} + +[class*=cnjnctn-type-]>.cnjnctn-col-60 { + -ms-flex-preferred-size: 60%; + flex-basis: 60% +} + +[class*=cnjnctn-type-]>.cnjnctn-col-50 { + -ms-flex-preferred-size: 50%; + flex-basis: 50% +} + +[class*=cnjnctn-type-]>.cnjnctn-col-40 { + -ms-flex-preferred-size: 40%; + flex-basis: 40% +} + +[class*=cnjnctn-type-]>.cnjnctn-col-30 { + -ms-flex-preferred-size: 30%; + flex-basis: 30% +} + +[class*=cnjnctn-type-]>.cnjnctn-col-25 { + -ms-flex-preferred-size: 25%; + flex-basis: 25% +} + +[class*=cnjnctn-type-]>.cnjnctn-col-20 { + -ms-flex-preferred-size: 20%; + flex-basis: 20% +} + +[class*=cnjnctn-type-].cnjnctn-xs { + -webkit-box-orient: horizontal; + -webkit-box-direction: normal; + -ms-flex-direction: row; + flex-direction: row +} + +[class*=cnjnctn-type-].cnjnctn-xs:not(.brdr-0)>[class*=cnjnctn-col] { + min-height: 3em; + padding-left: 0; + padding-right: 0 +} + +[class*=cnjnctn-type-].cnjnctn-xs>[class*=cnjnctn-col]:not(:first-child):after { + -o-border-image: linear-gradient(to bottom,#6f6f6f 0.3em,#6f6f6f 0.3em,transparent 0.3em,transparent 2.35em,#6f6f6f 2.35em,#6f6f6f 2.35em) 1 100%; + border-image: -webkit-gradient(linear,left top,left bottom,color-stop(0.3em,#6f6f6f),color-stop(0.3em,#6f6f6f),color-stop(0.3em,transparent),color-stop(2.35em,transparent),color-stop(2.35em,#6f6f6f),color-stop(2.35em,#6f6f6f)) 1 100%; + border-image: linear-gradient(to bottom,#6f6f6f 0.3em,#6f6f6f 0.3em,transparent 0.3em,transparent 2.35em,#6f6f6f 2.35em,#6f6f6f 2.35em) 1 100%; + border-left: 3px solid #6f6f6f; + margin-left: -1.6em +} + +@media (prefers-contrast:more) { + [class*=cnjnctn-type-].cnjnctn-xs>[class*=cnjnctn-col]:not(:first-child):after { + -o-border-image: linear-gradient(to bottom,#fff 0.3em,#fff 0.3em,transparent 0.3em,transparent 2.35em,#fff 2.35em,#fff 2.35em) 1 100%; + border-image: -webkit-gradient(linear,left top,left bottom,color-stop(0.3em,#fff),color-stop(0.3em,#fff),color-stop(0.3em,transparent),color-stop(2.35em,transparent),color-stop(2.35em,#fff),color-stop(2.35em,#fff)) 1 100%; + border-image: linear-gradient(to bottom,#fff 0.3em,#fff 0.3em,transparent 0.3em,transparent 2.35em,#fff 2.35em,#fff 2.35em) 1 100%; + border-left: none + } +} + +[class*=cnjnctn-type-].cnjnctn-xs>[class*=cnjnctn-col]:not(:first-child) { + margin-left: 1.4em; + margin-top: 0; + position: relative +} + +.cnjnctn-type-or.cnjnctn-xs>[class*=cnjnctn-col]:not(:first-child):before { + margin-left: -3.3em +} + +.cnjnctn-type-and.cnjnctn-xs>[class*=cnjnctn-col]:not(:first-child):before { + border-width: 3px 0; + margin-left: -3.15em +} + +[class*=cnjnctn-type-].cnjnctn-xs>[class*=cnjnctn-col]:not(:first-child):before { + margin-top: .3em +} + +[class*=cnjnctn-type-].cnjnctn-xs>[class*=cnjnctn-col]:not(:last-child) { + margin-bottom: 0 +} + +[class*=cnjnctn-type-].brdr-0>[class*=cnjnctn-col]:after { + border-left: none +} + +ol.lst-stps { + counter-reset: item; + padding-left: 0 +} + +ol.lst-stps,ol.lst-stps-sub { + list-style-type: none +} + +ol.lst-stps>li { + content: counter(item); + counter-increment: item +} + +ol.lst-stps>li:before { + content: counter(item) +} + +ol.lst-stps.ld-zr>li:before { + content: counter(item,decimal-leading-zero); + font-size: 1.4em; + padding-left: .5em +} + +ol.lst-stps>li ol.lst-stps-sub { + clear: both; + counter-reset: subitem; + padding-left: 0 +} + +ol.lst-stps>li ol.lst-stps-sub>li:before { + content: counter(item) "" counter(subitem,lower-alpha) ""; + counter-increment: subitem; + margin-left: -3em; + margin-top: -6px +} + +ol.lst-stps-sub:not(.stps-strpd)>li,ol.lst-stps:not(.stps-strpd)>li { + margin-top: 20px; + min-height: 3em; + padding-left: 3.2em; + padding-right: 15px +} + +ol.lst-stps-sub:not(.stps-strpd)>li { + min-height: 2em; + padding-left: 2.6em +} + +ol.lst-stps>li ol.lst-stps-sub>li:before,ol.lst-stps>li:before { + border-style: solid; + border-width: 3px; + -webkit-box-sizing: content-box; + box-sizing: content-box; + float: left; + font-family: Lato,sans-serif; + font-weight: 600; + line-height: 2; + margin-left: -3.2em; + margin-right: 10px; + margin-top: -8px; + position: relative; + text-align: center; + width: 2em +} + +ol.lst-stps:not(.ld-zr)>li ol.lst-stps-sub>li:before,ol.lst-stps:not(.ld-zr)>li:before { + border-radius: 50% +} + +ol.lst-stps:not(.ld-zr) ol.lst-stps-sub>li:before { + font-size: .8em +} + +ol.lst-stps.ld-zr>li ol.lst-stps-sub>li:before,ol.lst-stps.ld-zr>li:before { + border-width: 0 3px 0 0; + line-height: 1.4; + margin-top: 0; + padding-bottom: .8em +} + +ol.lst-stps-sub.stps-strpd>li :first-child:is(h2,h3,h4,h5,h6,p),ol.lst-stps.stps-strpd>li :first-child:is(h2,h3,h4,h5,h6,p) { + margin-top: auto +} + +ol.lst-stps-sub.stps-strpd>li,ol.lst-stps.stps-strpd>li { + min-height: 4em; + padding-left: 3.6em; + padding-right: 15px +} + +ol.lst-stps>li ol.lst-stps-sub.stps-strpd>li { + padding-left: 3em +} + +ol.lst-stps.stps-strpd>li:nth-child(2n) ol.lst-stps-sub.stps-strpd>li:nth-child(odd),ol.lst-stps.stps-strpd>li:nth-child(odd),ol.lst-stps.stps-strpd>li:nth-child(odd) ol.lst-stps-sub.stps-strpd>li:nth-child(2n) { + background-color: #f5f5f5 +} + +ol.lst-stps.stps-strpd>li:nth-child(odd) ol.lst-stps-sub.stps-strpd>li:nth-child(odd) { + background-color: #fff!important +} + +ol.lst-stps.stps-strpd>li,ol.lst-stps.stps-strpd>li ol.lst-stps-sub.stps-strpd>li { + padding-bottom: 20px; + padding-top: 20px +} + +ol.lst-stps.stps-strpd:not(.ld-zr)>li ol.lst-stps-sub.stps-strpd>li:before,ol.lst-stps.stps-strpd:not(.ld-zr)>li:before { + background-color: #fff +} + +ol.lst-stps[start="2"] { + counter-set: item 1 +} + +ol.lst-stps[start="3"] { + counter-set: item 2 +} + +ol.lst-stps[start="4"] { + counter-set: item 3 +} + +ol.lst-stps[start="5"] { + counter-set: item 4 +} + +ol.lst-stps[start="6"] { + counter-set: item 5 +} + +ol.lst-stps[start="7"] { + counter-set: item 6 +} + +ol.lst-stps[start="8"] { + counter-set: item 7 +} + +ol.lst-stps[start="9"] { + counter-set: item 8 +} + +.cnt-wdth-lmtd .lst-stps .lst-stps-sub>li:has(div,section,table),.cnt-wdth-lmtd .lst-stps>li:has(div,section,table) { + max-width: none +} + +.gc-rprt-prblm-thnk { + padding-bottom: 25px +} + +.gc-rprt-prblm-frm.gc-rprt-prblm-tggl.show { + display: none!important +} + +.gc-rprt-prblm-frm .form-group { + display: none!important +} + +.gc-rprt-prblm-frm label[for=problem6] { + display: none!important +} + +@-webkit-keyframes slideInFromRight { + 0% { + -webkit-transform: scale(0,1); + transform: scale(0,1) + } + + 95% { + -webkit-transform: scale(0,1); + transform: scale(0,1) + } + + 100% { + -webkit-transform: scale(1,1); + transform: scale(1,1) + } +} + +@keyframes slideInFromRight { + 0% { + -webkit-transform: scale(0,1); + transform: scale(0,1) + } + + 95% { + -webkit-transform: scale(0,1); + transform: scale(0,1) + } + + 100% { + -webkit-transform: scale(1,1); + transform: scale(1,1) + } +} + +@-webkit-keyframes pulseIn { + 0% { + -webkit-transform: scale(1,1); + transform: scale(1,1) + } + + 15% { + -webkit-transform: scale(1.15,1.15); + transform: scale(1.15,1.15) + } + + 30% { + -webkit-transform: scale(1,1); + transform: scale(1,1) + } + + 65% { + -webkit-transform: scale(1.3,1.3); + transform: scale(1.3,1.3) + } + + 100% { + -webkit-transform: scale(1,1); + transform: scale(1,1) + } +} + +@keyframes pulseIn { + 0% { + -webkit-transform: scale(1,1); + transform: scale(1,1) + } + + 15% { + -webkit-transform: scale(1.15,1.15); + transform: scale(1.15,1.15) + } + + 30% { + -webkit-transform: scale(1,1); + transform: scale(1,1) + } + + 65% { + -webkit-transform: scale(1.3,1.3); + transform: scale(1.3,1.3) + } + + 100% { + -webkit-transform: scale(1,1); + transform: scale(1,1) + } +} + +@-webkit-keyframes grow { + to { + -webkit-transform: translateX(-50%) scale(0); + transform: translateX(-50%) scale(0) + } +} + +@keyframes grow { + to { + -webkit-transform: translateX(-50%) scale(0); + transform: translateX(-50%) scale(0) + } +} + +.trans-left { + -webkit-animation-delay: 0s; + animation-delay: 0s; + -webkit-animation-duration: 5s; + animation-duration: 5s; + -webkit-animation-iteration-count: 1; + animation-iteration-count: 1; + -webkit-animation-name: slideInFromRight; + animation-name: slideInFromRight; + -webkit-animation-timing-function: ease-out; + animation-timing-function: ease-out; + -webkit-transform-origin: 100% 50%; + transform-origin: 100% 50%; + will-change: scroll-position +} + +.trans-pulse { + -webkit-animation: .5s linear 3.5s 1 pulseIn,.5s linear 15s 1 pulseIn,.5s linear 30s 1 pulseIn; + animation: .5s linear 3.5s 1 pulseIn,.5s linear 15s 1 pulseIn,.5s linear 30s 1 pulseIn; + will-change: transform +} + +.loader-typing { + bottom: 30%; + height: 6px; + left: 30px; + position: absolute; + -webkit-transform: translateX(-50%) translateY(-50%); + transform: translateX(-50%) translateY(-50%); + width: 26px +} + +.loader-dot { + -webkit-animation: grow .5s ease-in-out infinite alternate; + animation: grow .5s ease-in-out infinite alternate; + background-color: #444; + border-radius: 50%; + height: 6px; + position: absolute; + width: 6px; + will-change: transform +} + +.loader-dot.dot1 { + left: 0; + -webkit-transform-origin: 100% 50%; + transform-origin: 100% 50% +} + +.loader-dot.dot2 { + -webkit-animation-delay: .1s; + animation-delay: .1s; + left: 50%; + margin-left: -3px; + -webkit-transform: scale(.99); + transform: scale(.99) +} + +.loader-dot.dot3 { + -webkit-animation-delay: .2s; + animation-delay: .2s; + right: 0 +} + +.wb-chtwzrd-bubble-wrap { + bottom: 30px; + height: 60px; + position: fixed; + right: 30px; + width: 60px; + z-index: 1049 +} + +.wb-chtwzrd-bubble-wrap p { + background: #335075; + border-bottom-left-radius: 25px; + border-top-left-radius: 25px; + -webkit-box-shadow: 0 1px 3px rgba(0,0,0,.45); + box-shadow: 0 1px 3px rgba(0,0,0,.45); + color: #fff; + font-size: 14px; + line-height: 20px; + min-height: 50px; + padding: 5px 37.5px 5px 27.5px; + position: relative; + right: 195px; + top: 5px; + width: 225px +} + +.wb-chtwzrd-bubble-wrap p .notif-close { + background: #333; + border-radius: 50%; + color: #fff; + font-size: 19px; + height: 1.25em; + line-height: 21px; + position: absolute; + right: 92.5%; + text-align: center; + text-decoration: none; + top: 0; + width: 1.25em +} + +.wb-chtwzrd-bubble-wrap .notif { + cursor: pointer +} + +.wb-chtwzrd-bubble-wrap .bubble { + background: #fff url("../assets/wb-chtwzrd/default-avatar.png") center no-repeat; + border-radius: 50%; + bottom: 0; + -webkit-box-shadow: 0 2px 4px rgba(0,0,0,.45); + box-shadow: 0 2px 4px rgba(0,0,0,.45); + height: 100%; + overflow: hidden; + position: absolute; + right: 0; + text-indent: -9999px; + white-space: nowrap; + width: 100%; + z-index: 1048 +} + +.wb-chtwzrd-bubble-wrap .bubble:focus { + border: 1px solid rgba(0,0,0,.5); + -webkit-box-shadow: 0 2px 3px rgba(0,0,0,.7); + box-shadow: 0 2px 3px rgba(0,0,0,.7) +} + +.wb-chtwzrd-btn-extrnl+.wb-chtwzrd-bubble-wrap { + display: none!important +} + +.wb-disable .wb-chtwzrd.hidden { + display: block!important +} + +.wb-chtwzrd-container { + background-color: #fff; + bottom: 20px; + display: none; + font-size: .9em; + min-height: 200px; + overflow: hidden; + position: fixed; + right: 20px; + width: 25%; + z-index: 1050 +} + +.wb-chtwzrd-container .header { + max-height: 70px; + min-height: 39px; + padding-right: 84px +} + +.wb-chtwzrd-container .header .title { + -webkit-box-orient: vertical; + display: -webkit-box; + font-size: 19px; + -webkit-line-clamp: 2; + line-height: 1.35; + overflow: hidden; + padding: 6px 0; + text-overflow: ellipsis +} + +.wb-chtwzrd-container .minimize,.wb-chtwzrd-container .reset { + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + background: 0 0; + border: 0; + color: #fff; + font-size: 1em; + font-weight: 700; + height: 40px; + line-height: 41px; + margin: 0; + opacity: .65; + overflow: visible; + padding: 0; + position: absolute; + right: 0; + text-decoration: none; + top: 0; + width: 40px +} + +.wb-chtwzrd-container .reset { + right: 42px +} + +.wb-chtwzrd-container .minimize:focus,.wb-chtwzrd-container .reset:focus { + opacity: 1; + outline: 1px dotted #fff; + outline-offset: -2px +} + +.wb-chtwzrd-container .conversation { + margin-bottom: 15px; + max-height: 45vh; + min-height: 200px; + overflow-x: hidden; + overflow-y: auto +} + +.wb-chtwzrd-container .history { + padding-top: 15px +} + +.wb-chtwzrd-container .history::before { + background: -webkit-gradient(linear,left top,left bottom,color-stop(20%,#fff),to(rgba(255,255,255,0))); + background: linear-gradient(to bottom,#fff 20%,rgba(255,255,255,0) 100%); + content: ""; + height: 40px; + left: 0; + pointer-events: none; + position: absolute; + top: 0; + width: 100%; + z-index: 1054 +} + +.wb-chtwzrd-container .controls { + height: 75px +} + +.wb-chtwzrd-container .inputs-zone fieldset:first-child { + border-top: 1px solid #e5e5e5 +} + +.wb-chtwzrd-container .inputs-zone ul:last-child { + margin-bottom: 0 +} + +.wb-chtwzrd-container .choices input[type=radio]:checked+span { + color: #333 +} + +.wb-chtwzrd-container h4,.wb-chtwzrd-container h4 .question a,.wb-chtwzrd-container legend { + font-size: 1em; + line-height: 1.4375 +} + +.wb-chtwzrd-container .message,.wb-chtwzrd-container .question,.wb-chtwzrd-container label { + border-radius: 15px; + color: #5a5a5a; + font-weight: 400; + padding: 8px 12px; + width: auto +} + +.wb-chtwzrd-container .question { + background-color: #efefef; + min-width: 60px; + position: relative +} + +.wb-chtwzrd-container .message:focus { + -webkit-box-shadow: 0 0 4px #666; + box-shadow: 0 0 4px #666 +} + +.wb-chtwzrd-container .message,.wb-chtwzrd-container label { + background-color: #ddd +} + +.wb-chtwzrd-container .message { + margin-right: 15px +} + +.wb-chtwzrd-container label { + border: 1px solid #c1c1c1; + font-weight: 700; + padding: 6px 10px +} + +.wb-chtwzrd-container .avatar,.wb-chtwzrd-container .question { + display: table-cell; + vertical-align: middle +} + +.wb-chtwzrd-container .avatar { + background-color: #fff; + background-image: url("../assets/default-avatar.png"); + background-position: center; + background-repeat: no-repeat; + background-size: 25px; + height: 30px; + width: 30px +} + +.wb-chtwzrd-container .basic-link { + min-height: inherit +} + +.wb-chtwzrd-mrgn { + margin-top: 80px +} + +.wb-chtwzrd-container legend:focus { + outline: 1px dotted #666 +} + +.wb-chtwzrd-contained { + bottom: 0; + -webkit-box-shadow: none; + box-shadow: none; + margin: 30px auto; + position: static; + right: 0; + width: 100% +} + +.wb-chtwzrd-contained .conversation { + max-height: 70vh +} + +.wb-chtwzrd-contained .minimize { + display: none +} + +.wb-chtwzrd-contained .reset { + right: 0 +} + +@media screen and (max-width: 1199px) { + .wb-chtwzrd-container { + width:35% + } +} + +@media screen and (max-width: 992px) { + .wb-chtwzrd-container { + width:45% + } +} + +@media screen and (max-width: 768px) { + .wb-chtwzrd-bubble-wrap { + right:10px + } + + .wb-chtwzrd-container { + bottom: 0; + height: 100%; + margin: 0; + padding: 0; + right: 0; + width: 100% + } + + .wb-chtwzrd-container .body { + -webkit-box-direction: normal; + -webkit-box-orient: vertical; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -ms-flex-direction: column; + flex-direction: column; + -ms-flex-wrap: nowrap; + flex-wrap: nowrap; + height: 100%; + padding-bottom: 75px; + width: 100% + } + + .wb-chtwzrd-container .conversation { + -webkit-box-flex: 1; + flex-grow: 1; + -ms-flex-positive: 1; + max-height: none; + min-height: 2em + } + + .wb-chtwzrd-container .controls { + -ms-flex-negative: 0; + flex-shrink: 0; + height: 75px + } + + .wb-chtwzrd-noscroll { + overflow: hidden!important + } + + .wb-chtwzrd-bubble-wrap p .notif-close { + font-size: 2em; + height: 35px; + line-height: 1.1em; + right: 90%; + width: 35px + } + + .wb-chtwzrd-contained .body { + padding-bottom: 10px + } +} + +.gc-subway:not(.gc-subway-index) { + border: 4px solid #26374a; + border-radius: 6px; + margin: 2em 0 0 .5em; + padding-bottom: 1em; + position: relative +} + +.gc-subway:not(.gc-subway-index) ul { + clear: both; + list-style: none; + margin-bottom: 0; + margin-left: -.685em; + padding-left: .5em +} + +.gc-subway:not(.gc-subway-index) ul li { + border-left: 4px solid #26374a; + line-height: 1.25em; + padding-bottom: 1.25em; + padding-left: 1em; + position: relative +} + +.gc-subway:not(.gc-subway-index) ul li:last-child { + border-left-color: transparent; + padding-bottom: 0 +} + +.gc-subway:not(.gc-subway-index) ul li a { + display: inline-block +} + +.gc-subway:not(.gc-subway-index) ul li a::before { + background-color: #26374a; + border: 3px solid #26374a; + border-radius: 50%; + -webkit-box-shadow: 0 0 0 10px #fff inset; + box-shadow: 0 0 0 10px #fff inset; + content: ""; + height: 1.2em; + left: -.7em; + position: absolute; + top: 0; + -webkit-transition: -webkit-box-shadow .25s ease; + transition: -webkit-box-shadow .25s ease; + transition: box-shadow .25s ease; + transition: box-shadow .25s ease,-webkit-box-shadow .25s ease; + width: 1.2em +} + +.gc-subway:not(.gc-subway-index) ul li a.active { + color: #333; + cursor: default; + text-decoration: none +} + +.gc-subway:not(.gc-subway-index) ul li a.active::before { + -webkit-box-shadow: 0 0 0 10px #26374a inset; + box-shadow: 0 0 0 10px #26374a inset +} + +.gc-subway:not(.gc-subway-index) ul li a.active:focus,.gc-subway:not(.gc-subway-index) ul li a.active:hover { + color: #333; + text-decoration: none +} + +.gc-subway:not(.gc-subway-index) ul li a:not(.active):focus::before,.gc-subway:not(.gc-subway-index) ul li a:not(.active):hover::before { + -webkit-box-shadow: 0 0 0 4px #fff inset; + box-shadow: 0 0 0 4px #fff inset +} + +.gc-subway:not(.gc-subway-index) ul li ul { + margin: 1em 0 0 +} + +.gc-subway:not(.gc-subway-index) ul li ul li:last-child { + padding-bottom: 0 +} + +.gc-subway:not(.gc-subway-index) ul li ul.noline li { + border-left-color: transparent +} + +.gc-subway:not(.gc-subway-index) ul li ul.noline li::before { + display: none +} + +.gc-subway:not(.gc-subway-index) ul li ul.noline li a.active::after { + background-color: #26374a; + content: ""; + display: block; + height: 4px; + left: -1.75em; + position: absolute; + top: .5em; + width: 1.125em +} + +.gc-subway.gc-subway-index h2 { + position: static +} + +.gc-subway.gc-subway-index dl { + margin-left: .5em +} + +.gc-subway.gc-subway-index dl dd,.gc-subway.gc-subway-index dl dt { + border-left: 4px solid #26374a; + font-weight: 400; + margin: 0; + padding-left: 1em; + position: relative +} + +.gc-subway.gc-subway-index dl dd:last-of-type,.gc-subway.gc-subway-index dl dt:last-of-type { + border-left-color: transparent; + padding-bottom: 0 +} + +.gc-subway.gc-subway-index dl dt a::before { + background-color: #26374a; + border: 3px solid #26374a; + border-radius: 50%; + -webkit-box-shadow: 0 0 0 10px #fff inset; + box-shadow: 0 0 0 10px #fff inset; + content: ""; + height: 1.2em; + left: -.7em; + position: absolute; + top: 0; + -webkit-transition: -webkit-box-shadow .25s ease; + transition: -webkit-box-shadow .25s ease; + transition: box-shadow .25s ease; + transition: box-shadow .25s ease,-webkit-box-shadow .25s ease; + width: 1.2em +} + +.gc-subway.gc-subway-index dl dd { + padding-bottom: 1.25em; + padding-top: .25em +} + +.gc-subway-section hgroup p { + display: none +} + +.gc-subway-pagination { + margin-bottom: 3em; + margin-top: 3em +} + +.provisional.gc-table td ul { + -webkit-padding-start: 20px; + padding-inline-start:20px} + +.gc-featured-link { + background-color: #355688; + color: #fff; + font-family: Lato,sans-serif; + opacity: .9; + padding-bottom: 15px; + padding-top: 15px; + position: relative +} + +.gc-featured-link p { + margin-bottom: 0 +} + +.gc-featured-link a { + color: #fff; + font-weight: 700 +} + +html:not(.wb-disable) .gc-featured-link[data-bg-color] { + background-color: transparent; + color: #333 +} + +html:not(.wb-disable) .gc-featured-link[data-bg-color] a { + color: #333 +} + +.bold-content,.well.well-bold,a.well-bold.gc-dwnld { + font-weight: 700 +} + +.bold-content strong,.well.well-bold strong,a.well-bold.gc-dwnld strong { + font-weight: 400 +} + +.page-type-nav .profile .thumbnail,.secondary .profile .thumbnail { + margin-top: 1.25em +} + +.page-type-search .alert { + margin-top: 30px +} + +.page-type-search .current { + font-weight: 700 +} + +.page-type-search #wb-land h2 { + font-size: 1.5rem +} + +.page-type-search #wb-land h3 { + font-size: 1.375rem +} + +.page-type-search #wb-land .location,.page-type-search #wb-land p { + font-size: 1.125rem +} + +.page-type-search #wb-land .location { + color: #1b6c1c; + padding-left: 0 +} + +.page-type-search #wb-land .location li { + display: inline-block; + word-break: break-word +} + +.page-type-search #wb-land .location li+li:before { + content: "> " +} + +.page-type-search #wb-land .location cite { + font-style: normal; + word-break: break-word +} + +.page-type-search #wb-land .location cite a { + color: #1b6c1c +} + +.page-type-search .results>section { + border-bottom: solid 1px #000; + margin-bottom: 1.5em; + padding-bottom: 1.5em +} + +.page-type-search .results>section .context-labels { + font-size: 1rem; + list-style: none; + padding-left: 0 +} + +.page-type-search .results>section .context-labels li { + background-color: #5e738b; + color: #fff; + display: inline-block; + font-weight: 700; + margin-bottom: 1px; + padding: 0 5px +} + +.home h1 { + font-weight: 500; + margin-top: 10px +} + +.home h2 { + font-size: 29px; + margin-top: 1rem +} + +.home #wb-bnr+hr { + border-top: 1px solid #ddd; + color: #284162; + margin-left: 0 +} + +.home #wb-bnr+.gcweb-menu { + border-top: 1px solid #ddd; + color: #284162; + margin-left: 0 +} + +.home #wb-bnr+.gcweb-menu .container { + padding: 0 +} + +.home #wb-so .btn { + margin-top: 3px +} + +.home .header-rwd { + margin: 1em 0 +} + +.home .home-most-requested li { + font-family: Lato,"Noto Sans","Noto Sans Canadian Aboriginal",sans-serif; + font-size: 17.5px; + font-weight: 700; + line-height: 26px; + margin-top: 0 +} + +.home .gc-features { + margin-bottom: -1em +} + +.home .gc-srvinfo p { + font-size: 18px +} + +.home .home-your-gov { + background-image: url("https://www.canada.ca/content/dam/canada/carousel/bkg-home-yourgov.jpg"),url("../assets/bkg-home-yourgov.jpg"); + background-position: right center; + background-repeat: no-repeat; + background-size: 38% +} + +.home .home-your-gov ul { + margin-bottom: 1rem +} + +.home .home-your-gov li { + font-size: 18px; + line-height: 2.3 +} + +.home .gc-srvinfo .container>p:last-child { + margin-bottom: 35px; + margin-top: 20px +} + +.home .gc-srvinfo .container>p:last-child .btn-all-services { + border: 2px solid #26374a; + color: #26374a; + font-size: 1.1em; + font-weight: 700; + padding: .65em 1.1em +} + +.home .gc-srvinfo .container>p:last-child .btn-all-services:hover { + text-decoration: underline +} + +.blog article .col-md-3,.blog article .col-md-9 { + display: inline-block; + float: none; + margin-right: -4px; + vertical-align: middle +} + +.zbra section.brdr-tp:nth-child(odd) { + background: #eee +} + +.zbra section.brdr-tp .row { + margin-left: -5px; + margin-right: -5px +} + +#mobile-centre_wrapper .product-department,#mobile-centre_wrapper .product-links,#mobile-centre_wrapper .product-longdescription,#mobile-centre_wrapper .product-name,#mobile-centre_wrapper .product-platforms,#mobile-centre_wrapper .product-shortdescription,.backgroundsize.csstransitions .product-department,.backgroundsize.csstransitions .product-language,.backgroundsize.csstransitions .product-link-container,.backgroundsize.csstransitions .product-name,.backgroundsize.csstransitions .product-platforms { + border: 0; + display: block +} + +#mobile-centre_wrapper .product-data-expanded,#mobile-centre_wrapper .product-data-hidden,#mobile-centre_wrapper .record-close,#mobile-centre_wrapper table :target .product-data-compressed,.backgroundsize.csstransitions #mobile-centre tbody tr .product-department,.backgroundsize.csstransitions #mobile-centre tbody tr .product-longdescription,.backgroundsize.csstransitions #mobile-centre tbody tr td.product-link-container { + display: none; + visibility: hidden +} + +#mobile-centre_wrapper .product-data-compressed,#mobile-centre_wrapper table :target .product-data-expanded,#mobile-centre_wrapper table :target .record-close,.backgroundsize.csstransitions #mobile-centre tbody tr:target .product-department,.backgroundsize.csstransitions #mobile-centre tbody tr:target .product-longdescription,.backgroundsize.csstransitions #mobile-centre tbody tr:target td.product-link-container { + display: block; + visibility: visible +} + +.backgroundsize.csstransitions #social-media-centre tbody { + padding-top: 2em +} + +.backgroundsize.csstransitions #social-media-centre tbody tr { + background-clip: content-box; + background-color: #eee; + background-image: url("data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw=="),url("data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw=="),url("data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw=="),url("data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw=="); + background-origin: content-box; + background-position: top left,top left,bottom left,top right; + background-repeat: repeat-x,repeat-y,repeat-x,repeat-y; + border: 0; + display: inline-block; + margin-bottom: 20px; + padding: 5px; + text-align: center; + vertical-align: middle; + width: 100% +} + +@media (min-width: 768px) { + .backgroundsize.csstransitions #social-media-centre tbody tr { + width:50% + } +} + +@media (min-width: 1200px) { + .backgroundsize.csstransitions #social-media-centre tbody tr { + width:33.333% + } +} + +.backgroundsize.csstransitions #social-media-centre tbody tr .product-department { + height: 3em; + white-space: normal +} + +.backgroundsize.csstransitions .product-listing { + border: 0; + width: 100% +} + +.backgroundsize.csstransitions .product-record { + display: inline-block; + margin-bottom: 20px; + width: 100% +} + +.backgroundsize.csstransitions .product-record:target { + height: auto!important +} + +.backgroundsize.csstransitions .product-department,.backgroundsize.csstransitions .product-language,.backgroundsize.csstransitions .product-link-container { + margin-top: 1em +} + +.backgroundsize.csstransitions .product-department,.backgroundsize.csstransitions .product-language { + font-weight: 700; + margin-top: 1em +} + +.backgroundsize.csstransitions .product-link { + display: block; + padding: 6px 12px!important; + text-decoration: none; + text-transform: none!important; + white-space: normal +} + +.backgroundsize.csstransitions .product-link:focus,.backgroundsize.csstransitions .product-link:hover { + text-decoration: none +} + +#social-media-centre_wrapper .datatables_wrapper { + margin-bottom: 3em +} + +#social-media-centre_wrapper .product-listing { + border: 1px solid #ddd +} + +#social-media-centre_wrapper .product-listing td { + padding: 8px +} + +#mobile-centre_wrapper .product-department,#mobile-centre_wrapper .product-links,#mobile-centre_wrapper .product-longdescription,#mobile-centre_wrapper .product-name,#mobile-centre_wrapper .product-platforms,#mobile-centre_wrapper .product-shortdescription,.backgroundsize.csstransitions .product-department,.backgroundsize.csstransitions .product-language,.backgroundsize.csstransitions .product-link-container,.backgroundsize.csstransitions .product-name,.backgroundsize.csstransitions .product-platforms { + border: 0; + display: block +} + +#mobile-centre_wrapper .product-data-expanded,#mobile-centre_wrapper .product-data-hidden,#mobile-centre_wrapper .record-close,#mobile-centre_wrapper table :target .product-data-compressed,.backgroundsize.csstransitions #mobile-centre tbody tr .product-department,.backgroundsize.csstransitions #mobile-centre tbody tr .product-longdescription,.backgroundsize.csstransitions #mobile-centre tbody tr td.product-link-container { + display: none; + visibility: hidden +} + +#mobile-centre_wrapper .product-data-compressed,#mobile-centre_wrapper table :target .product-data-expanded,#mobile-centre_wrapper table :target .record-close,.backgroundsize.csstransitions #mobile-centre tbody tr:target .product-department,.backgroundsize.csstransitions #mobile-centre tbody tr:target .product-longdescription,.backgroundsize.csstransitions #mobile-centre tbody tr:target td.product-link-container { + display: block; + visibility: visible +} + +.backgroundsize.csstransitions #mobile-centre tbody { + padding-top: 2em +} + +.backgroundsize.csstransitions #mobile-centre tbody tr { + background-clip: content-box; + background-color: #eee; + background-image: url("data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw=="),url("data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw=="),url("data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw=="),url("data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw=="); + background-origin: content-box; + background-position: top left,top left,bottom left,top right; + background-repeat: repeat-x,repeat-y,repeat-x,repeat-y; + border: 0; + display: inline-block; + margin-bottom: 20px; + min-height: 20em; + padding: 5px; + vertical-align: middle; + width: 100% +} + +@media (min-width: 768px) { + .backgroundsize.csstransitions #mobile-centre tbody tr { + width:50% + } +} + +@media (min-width: 1200px) { + .backgroundsize.csstransitions #mobile-centre tbody tr { + width:33.333% + } +} + +.backgroundsize.csstransitions #mobile-centre tbody tr .product-platforms span { + margin-right: 5px +} + +.backgroundsize.csstransitions #mobile-centre tbody tr:target { + height: auto!important; + width: 100% +} + +.backgroundsize.csstransitions #mobile-centre tbody tr:target .product-longdescription { + float: none +} + +.backgroundsize.csstransitions #mobile-centre tbody tr:target .product-link-container { + border: 0; + float: none +} + +.backgroundsize.csstransitions #mobile-centre tbody tr:hover { + background-color: rgb(232.25,232.25,232.25); + border-color: rgb(214.25,214.25,214.25) +} + +.backgroundsize.no-csstransitions #mobile-centre tr,.no-backgroundsize.no-csstransitions #mobile-centre tr { + border-bottom: 1px solid #999!important; + border-top: 1px solid #999!important +} + +.backgroundsize.no-csstransitions #mobile-centre .product-department,.backgroundsize.no-csstransitions #mobile-centre .product-links,.backgroundsize.no-csstransitions #mobile-centre .product-longdescription,.backgroundsize.no-csstransitions #mobile-centre .product-name,.backgroundsize.no-csstransitions #mobile-centre .product-platforms,.backgroundsize.no-csstransitions #mobile-centre .product-shortdescription,.no-backgroundsize.no-csstransitions #mobile-centre .product-department,.no-backgroundsize.no-csstransitions #mobile-centre .product-links,.no-backgroundsize.no-csstransitions #mobile-centre .product-longdescription,.no-backgroundsize.no-csstransitions #mobile-centre .product-name,.no-backgroundsize.no-csstransitions #mobile-centre .product-platforms,.no-backgroundsize.no-csstransitions #mobile-centre .product-shortdescription { + float: left!important; + margin-left: 10px; + margin-right: 10px +} + +.backgroundsize.no-csstransitions #mobile-centre .product-department,.backgroundsize.no-csstransitions #mobile-centre .product-longdescription,.backgroundsize.no-csstransitions #mobile-centre .product-name,.backgroundsize.no-csstransitions #mobile-centre .product-platforms,.backgroundsize.no-csstransitions #mobile-centre .product-shortdescription,.no-backgroundsize.no-csstransitions #mobile-centre .product-department,.no-backgroundsize.no-csstransitions #mobile-centre .product-longdescription,.no-backgroundsize.no-csstransitions #mobile-centre .product-name,.no-backgroundsize.no-csstransitions #mobile-centre .product-platforms,.no-backgroundsize.no-csstransitions #mobile-centre .product-shortdescription { + width: 96%!important +} + +.backgroundsize.no-csstransitions #mobile-centre .product-name,.backgroundsize.no-csstransitions #mobile-centre .product-platforms,.no-backgroundsize.no-csstransitions #mobile-centre .product-name,.no-backgroundsize.no-csstransitions #mobile-centre .product-platforms { + margin-top: 10px +} + +.backgroundsize.no-csstransitions #mobile-centre .product-name,.no-backgroundsize.no-csstransitions #mobile-centre .product-name { + padding-bottom: 0 +} + +.backgroundsize.no-csstransitions #mobile-centre .product-platforms,.no-backgroundsize.no-csstransitions #mobile-centre .product-platforms { + padding-top: 0 +} + +.backgroundsize.no-csstransitions #mobile-centre .product-department,.backgroundsize.no-csstransitions #mobile-centre .product-links,.backgroundsize.no-csstransitions #mobile-centre .product-longdescription,.backgroundsize.no-csstransitions #mobile-centre .product-platforms,.backgroundsize.no-csstransitions #mobile-centre .product-shortdescription,.no-backgroundsize.no-csstransitions #mobile-centre .product-department,.no-backgroundsize.no-csstransitions #mobile-centre .product-links,.no-backgroundsize.no-csstransitions #mobile-centre .product-longdescription,.no-backgroundsize.no-csstransitions #mobile-centre .product-platforms,.no-backgroundsize.no-csstransitions #mobile-centre .product-shortdescription { + clear: left; + margin-top: 0 +} + +.backgroundsize.no-csstransitions #mobile-centre .product-shortdescription,.backgroundsize.no-csstransitions #mobile-centre .record-close,.no-backgroundsize.no-csstransitions #mobile-centre .product-shortdescription,.no-backgroundsize.no-csstransitions #mobile-centre .record-close { + display: none!important +} + +.backgroundsize.no-csstransitions #mobile-centre .product-link-container,.no-backgroundsize.no-csstransitions #mobile-centre .product-link-container { + border: none!important +} + +.backgroundsize.no-csstransitions #mobile-centre .product-link-list li,.no-backgroundsize.no-csstransitions #mobile-centre .product-link-list li { + display: inline; + float: left +} + +#mobile-centre_wrapper .product-record { + display: inline-block; + margin-bottom: 20px; + width: 100% +} + +#mobile-centre_wrapper .product-record:target { + height: auto!important +} + +#mobile-centre_wrapper .product-record:hover { + background-color: rgb(232.25,232.25,232.25); + border-color: rgb(214.25,214.25,214.25); + cursor: pointer +} + +#mobile-centre_wrapper .product-icon { + border: 0; + float: left; + height: 48px; + margin-bottom: 10px; + margin-right: 10px; + padding-bottom: 3px; + padding-right: 3px; + width: 48px +} + +#mobile-centre_wrapper .product-longdescription,#mobile-centre_wrapper .product-shortdescription { + margin-top: 1em +} + +#mobile-centre_wrapper .product-department { + font-weight: 700; + margin-top: 1em +} + +#mobile-centre_wrapper .product-link-list { + list-style-type: none; + margin-top: 1em; + padding-left: 0 +} + +#mobile-centre_wrapper .product-link-container { + margin-bottom: 1em +} + +#mobile-centre_wrapper .product-link { + display: block; + padding: 6px 12px!important; + text-align: left; + text-decoration: none; + text-transform: none!important; + white-space: normal +} + +#mobile-centre_wrapper .product-link:focus,#mobile-centre_wrapper .product-link:hover { + text-decoration: none +} + +#mobile-centre_wrapper .record-expand { + color: inherit; + text-decoration: none +} + +#mobile-centre_wrapper .record-expand:focus,#mobile-centre_wrapper .record-expand:hover { + color: inherit; + text-decoration: underline +} + +#mobile-centre_wrapper .record-close { + float: right +} + +#mobile-centre_wrapper .product-listing { + border: 1px solid #ddd +} + +#mobile-centre_wrapper .product-listing td { + padding: 8px +} + +@media (min-width: 768px) { + #mobile-centre_wrapper .product-record { + margin-left:10px; + margin-right: 10px; + max-width: 47% + } + + #mobile-centre_wrapper .product-record:target { + max-width: 100% + } + + #mobile-centre_wrapper .product-department,#mobile-centre_wrapper .product-links { + margin-right: 10px; + width: 30% + } + + #mobile-centre_wrapper .product-longdescription { + float: right; + margin-left: 10px; + width: 67% + } +} + +@media (min-width: 1200px) { + #mobile-centre_wrapper .product-record { + max-width:31.5% + } +} + +.infostripe .btn-cnt { + bottom: 5px; + padding-right: 30px; + position: absolute; + text-align: center; + width: 100% +} + +.infostripe .col-md-6 { + min-height: 830px!important; + vertical-align: top +} + +#anti_infographic_4.modal-dialog { + width: 50% +} + +.page-type-nav .infostripe .h1,.secondary .infostripe .h1 { + font-size: 1.5em +} + +.page-type-nav .infostripe.dbl .h1,.secondary .infostripe.dbl .h1 { + min-height: 3.1em +} + +.page-type-nav .infostripe.trpl .h1,.secondary .infostripe.trpl .h1 { + min-height: 4em +} + +[lang=fr] .infostripe .col-md-6 { + min-height: 870px!important +} + +.gc-prtts.dbl .h5 { + min-height: 2.2em +} + +.cmpgn-sctns a { + text-decoration: none +} + +.cmpgn-sctns a:active strong,.cmpgn-sctns a:focus strong,.cmpgn-sctns a:hover strong { + text-decoration: underline +} + +.cmpgn-sctns strong { + display: block +} + +table.nws-tbl td { + display: block +} + +table.nws-tbl .nws-tbl-desc,table.nws-tbl .nws-tbl-ttl { + margin-top: 15px +} + +table.nws-tbl .nws-tbl-date,table.nws-tbl .nws-tbl-dept,table.nws-tbl .nws-tbl-type { + color: #555; + letter-spacing: .01em +} + +table.nws-tbl tbody tr { + background-color: #fff +} + +table.nws-tbl>tbody>tr>td,table.nws-tbl>tbody>tr>th,table.nws-tbl>tfoot>tr>td,table.nws-tbl>tfoot>tr>th,table.nws-tbl>thead>tr>td,table.nws-tbl>thead>tr>th { + border-top: 0; + padding-bottom: 0; + padding-top: 0 +} + +.nws-tbl .tp-rail { + display: inline-block +} + +.nws-tbl details summary,.nws-tbl details[open] { + border: 0 +} + +.nws-tbl .one-dot { + background: #000; + border-radius: 50%; + display: inline-block; + height: .5em; + vertical-align: middle; + width: .5em +} + +.nws-tbl .tp-rail.commit { + font-size: 1.15em; + font-weight: 600; + max-width: 67%; + min-width: 67% +} + +.largeview .nws-tbl .tp-rail.commit,.xlargeview .nws-tbl .tp-rail.commit { + max-width: 71%; + min-width: 71% +} + +table.dataTable.nws-tbl .label.label-success { + padding: .6em .6em .3em +} + +.info-banner { + background-color: #d9edf7; + color: #333; + font-size: 20px; + line-height: 1.65em; + padding: 15px 0 +} + +.info-banner h2 { + float: left; + font-size: 1em; + line-height: 1.65em; + margin: 0 .25em 0 0 +} + +.info-banner h2:after { + content: ":"; + margin-left: .125em +} + +.info-banner .info-banner-actions { + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-pack: justify; + -ms-flex-pack: justify; + justify-content: space-between +} + +.application-bar { + background-color: #38414d; + color: #fff; + margin-top: 15px +} + +.application-bar h2 { + border: none; + font-size: 1.6875rem; + margin: 10px 0 8px +} + +.application-bar h2 a { + color: #fff; + text-decoration: none +} + +.application-bar h2 a:hover { + text-decoration: underline +} + +.page-type-ilp h2 { + font-size: 1.8125rem; + margin-top: 15px +} + +.page-type-ilp .gc-most-requested h2 { + font-size: 22px; + margin-top: 0 +} + +.page-type-ilp .gc-followus ul li { + margin-bottom: 21px +} + +.page-type-ilp .gc-followus ul li:last-child { + margin-bottom: 15px +} + +.page-type-theme #wb-bnr+hr { + border-top: 1px solid #ddd +} + +.page-type-theme #wb-bc li:first-child a { + border-left: solid #26374a 5px; + padding-left: 8px +} + +.page-type-theme #wb-bc .breadcrumb { + margin-bottom: 15px +} + +.page-type-theme #theme-nav li a { + color: #295376; + display: block; + font-size: 16px; + line-height: 1.65em; + padding: 10px 14px; + text-decoration: none +} + +.page-type-theme #theme-nav li a:hover { + background-color: #f5f5f5; + color: #284162; + text-decoration: underline +} + +.page-type-theme #theme-nav li a.wb-navcurr,.page-type-theme #theme-nav li a.wb-navcurr:hover { + background-color: #26374a; + color: #fff +} + +.page-type-theme #theme-nav li a.wb-navcurr:focus { + outline: 5px auto #fff; + outline-offset: -5px +} + +.page-type-theme #menu-btn { + border-radius: 0; + display: block; + margin: .25em 0 1em -15px; + text-align: left; + width: calc(100% + 30px) +} + +.page-type-theme #menu-btn .glyphicon-chevron-down { + margin-left: 10px +} + +.page-type-theme #menu-btn.expanded .glyphicon-chevron-down { + -webkit-transform: rotate(180deg) translateY(2px); + transform: rotate(180deg) translateY(2px) +} + +.wb-disable .page-type-theme #menu-btn { + display: none +} + +.page-type-theme h1#wb-cont { + border: none; + font-size: 1.2em; + line-height: 1.1; + margin: 10px 0 11.5px +} + +.page-type-theme .gc-most-requested h2 { + float: none; + font-size: 1em; + width: auto +} + +#gcwu-sig,#wmms { + height: 2em; + max-width: 100% +} + +#wmms { + float: right +} + +#wb-bnr:not(:has(#wb-lng)) { + margin-top: 1.2em +} + +/*! Core - Utilities */ +.clearfix:after,.clearfix:before,.gc-subway-landmark-end:after,.gc-subway-landmark-end:before { + display: table; + content: " " +} + +.clearfix:after,.gc-subway-landmark-end:after { + clear: both +} + +.center-block { + display: block; + margin-right: auto; + margin-left: auto +} + +.pull-right { + float: right!important +} + +.pull-left { + float: left!important +} + +.hide { + display: none!important +} + +.show { + display: block!important +} + +.invisible { + visibility: hidden +} + +.text-hide { + font: 0/0 a; + color: transparent; + text-shadow: none; + background-color: transparent; + border: 0 +} + +.hidden { + display: none!important +} + +.affix { + position: fixed +} + +.opct-100 { + opacity: 1 +} + +.opct-90 { + opacity: .9 +} + +.opct-80 { + opacity: .8 +} + +.opct-70 { + opacity: .7 +} + +.opct-60 { + opacity: .6 +} + +.opct-50 { + opacity: .5 +} + +.opct-40 { + opacity: .4 +} + +.opct-30 { + opacity: .3 +} + +.opct-20 { + opacity: .2 +} + +.opct-10 { + opacity: .1 +} + +.fnt-nrml { + font-weight: 400 +} + +[class*=clmn-] { + list-style: outside; + padding-left: 1.3em +} + +[class*=clmn-]>li { + margin-left: 1.3em +} + +.pstn-bttm-lg,.pstn-bttm-md,.pstn-bttm-sm,.pstn-bttm-xs,.pstn-lft-lg,.pstn-lft-md,.pstn-lft-sm,.pstn-lft-xs,.pstn-rght-lg,.pstn-rght-md,.pstn-rght-sm,.pstn-rght-xs,.pstn-tp-lg,.pstn-tp-md,.pstn-tp-sm,.pstn-tp-xs { + margin: 0 +} + +.pstn-lft-xs { + position: absolute; + left: 0; + right: auto +} + +.pstn-rght-xs { + position: absolute; + right: 0; + left: auto +} + +.pstn-tp-xs { + position: absolute; + top: 0; + bottom: auto +} + +.pstn-bttm-xs { + position: absolute; + bottom: 0; + top: auto +} + +.mrgn-lft-0 { + margin-left: 0 +} + +.mrgn-lft-sm { + margin-left: 5px +} + +.mrgn-lft-md { + margin-left: 15px +} + +.mrgn-lft-lg { + margin-left: 30px +} + +.mrgn-lft-xl { + margin-left: 50px +} + +.mrgn-bttm-0 { + margin-bottom: 0 +} + +.mrgn-bttm-sm { + margin-bottom: 5px +} + +.mrgn-bttm-md { + margin-bottom: 15px +} + +.mrgn-bttm-lg { + margin-bottom: 30px +} + +.mrgn-bttm-xl { + margin-bottom: 50px +} + +.mrgn-tp-0 { + margin-top: 0 +} + +.mrgn-tp-sm { + margin-top: 5px +} + +.mrgn-tp-md { + margin-top: 15px +} + +.mrgn-tp-lg { + margin-top: 30px +} + +.mrgn-tp-xl { + margin-top: 50px +} + +.mrgn-rght-0 { + margin-right: 0 +} + +.mrgn-rght-sm { + margin-right: 5px +} + +.mrgn-rght-md { + margin-right: 15px +} + +.mrgn-rght-lg { + margin-right: 30px +} + +.mrgn-rght-xl { + margin-right: 50px +} + +.brdr-bttm,.brdr-lft,.brdr-rght,.brdr-tp { + border: solid 0 #ccc +} + +.brdr-lft { + border-left-width: 1px +} + +.brdr-rght { + border-right-width: 1px +} + +.brdr-tp { + border-top-width: 1px +} + +.brdr-bttm { + border-bottom-width: 1px +} + +.brdr-0 { + border: 0!important +} + +.brdr-rds-0 { + border-radius: 0!important +} + +.tbl-gridify tfoot,.tbl-gridify thead { + display: none +} + +.tbl-gridify tbody,.tbl-gridify td { + display: block +} + +[class*=colcount-] { + list-style-position: outside; + padding-left: 1.3em +} + +[class*=colcount-]>li { + margin-left: 1.3em +} + +[class*=colcount-].list-unstyled { + list-style: none outside none; + padding-left: 0 +} + +[class*=colcount-].list-unstyled li { + margin-left: 0 +} + +.colcount-no-break>dd,.colcount-no-break>dt,.colcount-no-break>li,dl.colcount-no-break>div { + -webkit-column-break-inside: avoid; + -moz-column-break-inside: avoid; + break-inside: avoid-column +} + +.colcount-xxs-2 { + -webkit-column-count: 2; + -moz-column-count: 2; + column-count: 2 +} + +.colcount-xxs-3 { + -webkit-column-count: 3; + -moz-column-count: 3; + column-count: 3 +} + +.colcount-xxs-4 { + -webkit-column-count: 4; + -moz-column-count: 4; + column-count: 4 +} + +.full-width { + width: 100% +} + +.p-0 { + padding: 0!important +} + +.pl-2,.px-2 { + padding-left: 5px!important +} + +.pr-2,.px-2 { + padding-right: 5px!important +} + +.pt-4,.py-4 { + padding-top: 30px!important +} + +.pb-4,.py-4 { + padding-bottom: 30px!important +} + +.mt-auto { + margin-top: auto!important +} + +.stretched-link:after { + background-color: rgba(0,0,0,0); + bottom: 0; + content: ""; + left: 0; + pointer-events: auto; + position: absolute; + right: 0; + top: 0; + z-index: 1 +} + +.h-100 { + height: 100%!important +} + +.position-relative { + position: relative!important +} + +.d-flex { + display: -webkit-box!important; + display: -ms-flexbox!important; + display: flex!important +} + +.flex-column { + -webkit-box-orient: vertical!important; + -webkit-box-direction: normal!important; + -ms-flex-direction: column!important; + flex-direction: column!important +} + +.align-items-center { + -webkit-box-align: center!important; + -ms-flex-align: center!important; + align-items: center!important +} + +.align-self-center { + -ms-flex-item-align: center!important; + align-self: center!important +} + +.align-self-end { + -ms-flex-item-align: end!important; + align-self: flex-end!important +} + +.align-top { + vertical-align: top!important +} + +.align-middle { + vertical-align: middle!important +} + +.align-bottom { + vertical-align: bottom!important +} + +.text-white,a.text-white:visited { + color: #fff +} + +a.text-white:focus,a.text-white:hover { + color: #b3ffff +} + +.btn.text-white:focus,.btn.text-white:hover { + color: #b3ffff +} + +@-ms-viewport { + width: device-width +} + +.visible-xs { + display: none!important +} + +.visible-sm { + display: none!important +} + +.visible-md { + display: none!important +} + +.visible-lg { + display: none!important +} + +.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block { + display: none!important +} + +@media (max-width: 767px) { + .visible-xs { + display:block!important + } + + table.visible-xs { + display: table!important + } + + tr.visible-xs { + display: table-row!important + } + + td.visible-xs,th.visible-xs { + display: table-cell!important + } +} + +@media (max-width: 767px) { + .visible-xs-block { + display:block!important + } +} + +@media (max-width: 767px) { + .visible-xs-inline { + display:inline!important + } +} + +@media (max-width: 767px) { + .visible-xs-inline-block { + display:inline-block!important + } +} + +@media (min-width: 768px) and (max-width:991px) { + .visible-sm { + display:block!important + } + + table.visible-sm { + display: table!important + } + + tr.visible-sm { + display: table-row!important + } + + td.visible-sm,th.visible-sm { + display: table-cell!important + } +} + +@media (min-width: 768px) and (max-width:991px) { + .visible-sm-block { + display:block!important + } +} + +@media (min-width: 768px) and (max-width:991px) { + .visible-sm-inline { + display:inline!important + } +} + +@media (min-width: 768px) and (max-width:991px) { + .visible-sm-inline-block { + display:inline-block!important + } +} + +@media (min-width: 992px) and (max-width:1199px) { + .visible-md { + display:block!important + } + + table.visible-md { + display: table!important + } + + tr.visible-md { + display: table-row!important + } + + td.visible-md,th.visible-md { + display: table-cell!important + } +} + +@media (min-width: 992px) and (max-width:1199px) { + .visible-md-block { + display:block!important + } +} + +@media (min-width: 992px) and (max-width:1199px) { + .visible-md-inline { + display:inline!important + } +} + +@media (min-width: 992px) and (max-width:1199px) { + .visible-md-inline-block { + display:inline-block!important + } +} + +@media (min-width: 1200px) { + .visible-lg { + display:block!important + } + + table.visible-lg { + display: table!important + } + + tr.visible-lg { + display: table-row!important + } + + td.visible-lg,th.visible-lg { + display: table-cell!important + } +} + +@media (min-width: 1200px) { + .visible-lg-block { + display:block!important + } +} + +@media (min-width: 1200px) { + .visible-lg-inline { + display:inline!important + } +} + +@media (min-width: 1200px) { + .visible-lg-inline-block { + display:inline-block!important + } +} + +@media (max-width: 767px) { + .hidden-xs { + display:none!important + } +} + +@media (min-width: 768px) and (max-width:991px) { + .hidden-sm { + display:none!important + } +} + +@media (min-width: 992px) and (max-width:1199px) { + .hidden-md { + display:none!important + } +} + +@media (min-width: 1200px) { + .hidden-lg { + display:none!important + } +} + +.visible-print { + display: none!important +} + +@media print { + .visible-print { + display: block!important + } + + table.visible-print { + display: table!important + } + + tr.visible-print { + display: table-row!important + } + + td.visible-print,th.visible-print { + display: table-cell!important + } +} + +.visible-print-block { + display: none!important +} + +@media print { + .visible-print-block { + display: block!important + } +} + +.visible-print-inline { + display: none!important +} + +@media print { + .visible-print-inline { + display: inline!important + } +} + +.visible-print-inline-block { + display: none!important +} + +@media print { + .visible-print-inline-block { + display: inline-block!important + } +} + +@media print { + .hidden-print { + display: none!important + } +} + +.nojs-show,.wb-disable .nojs-hide,.wbdisable-show { + display: none!important +} + +.wb-disable .nojs-show,.wb-disable .wbdisable-show { + display: block!important +} + +.bg-cover { + background-size: cover +} + +.bg-center { + background-position: center +} + +.bg-norepeat { + background-repeat: no-repeat +} + +.bg-darker { + background-color: #000 +} + +.bg-dark { + background-color: #343a40 +} + +button.bg-dark:focus,button.bg-dark:hover { + background-color: #1d2124 +} + +.panel:not(:has(.panel,.well)):has(.stretched-link):hover,.panel:not(:has(.panel,.well)):has(.stretched-link:focus),.well:not(:has(.panel,.well)):has(.stretched-link):hover,.well:not(:has(.panel,.well)):has(.stretched-link:focus),a.gc-dwnld:not(:has(.panel,.well)):has(.stretched-link):hover,a.gc-dwnld:not(:has(.panel,.well)):has(.stretched-link:focus) { + -webkit-box-shadow: 1px 5px 7px rgba(0,0,0,.15); + box-shadow: 1px 5px 7px rgba(0,0,0,.15) +} + +.max-content { + max-width: -webkit-max-content; + max-width: -moz-max-content; + max-width: max-content +} + +.fnt-hdng { + font-family: Lato,"Noto Sans","Noto Sans Canadian Aboriginal",sans-serif +} + +.lead { + font-size: 1.2em +} + +.bg-light { + background-color: #f5f5f5 +} + +.m-0 { + margin: 0!important +} + +.mt-0,.my-0 { + margin-top: 0!important +} + +.mr-0,.mx-0 { + margin-right: 0!important +} + +.mb-0,.my-0 { + margin-bottom: 0!important +} + +.ml-0,.mx-0 { + margin-left: 0!important +} + +.m-1 { + margin: 5px!important +} + +.mt-1,.my-1 { + margin-top: 5px!important +} + +.mr-1,.mx-1 { + margin-right: 5px!important +} + +.mb-1,.my-1 { + margin-bottom: 5px!important +} + +.ml-1,.mx-1 { + margin-left: 5px!important +} + +.m-2 { + margin: 10px!important +} + +.mt-2,.my-2 { + margin-top: 10px!important +} + +.mr-2,.mx-2 { + margin-right: 10px!important +} + +.mb-2,.my-2 { + margin-bottom: 10px!important +} + +.ml-2,.mx-2 { + margin-left: 10px!important +} + +.m-3 { + margin: 20px!important +} + +.mt-3,.my-3 { + margin-top: 20px!important +} + +.mr-3,.mx-3 { + margin-right: 20px!important +} + +.mb-3,.my-3 { + margin-bottom: 20px!important +} + +.ml-3,.mx-3 { + margin-left: 20px!important +} + +.m-4 { + margin: 30px!important +} + +.mt-4,.my-4 { + margin-top: 30px!important +} + +.mr-4,.mx-4 { + margin-right: 30px!important +} + +.mb-4,.my-4 { + margin-bottom: 30px!important +} + +.ml-4,.mx-4 { + margin-left: 30px!important +} + +.m-5 { + margin: 60px!important +} + +.mt-5,.my-5 { + margin-top: 60px!important +} + +.mr-5,.mx-5 { + margin-right: 60px!important +} + +.mb-5,.my-5 { + margin-bottom: 60px!important +} + +.ml-5,.mx-5 { + margin-left: 60px!important +} + +.p-0 { + padding: 0!important +} + +.pt-0,.py-0 { + padding-top: 0!important +} + +.pr-0,.px-0 { + padding-right: 0!important +} + +.pb-0,.py-0 { + padding-bottom: 0!important +} + +.pl-0,.px-0 { + padding-left: 0!important +} + +.p-1 { + padding: 5px!important +} + +.pt-1,.py-1 { + padding-top: 5px!important +} + +.pr-1,.px-1 { + padding-right: 5px!important +} + +.pb-1,.py-1 { + padding-bottom: 5px!important +} + +.pl-1,.px-1 { + padding-left: 5px!important +} + +.p-2 { + padding: 10px!important +} + +.pt-2,.py-2 { + padding-top: 10px!important +} + +.pr-2,.px-2 { + padding-right: 10px!important +} + +.pb-2,.py-2 { + padding-bottom: 10px!important +} + +.pl-2,.px-2 { + padding-left: 10px!important +} + +.p-3 { + padding: 20px!important +} + +.pt-3,.py-3 { + padding-top: 20px!important +} + +.pr-3,.px-3 { + padding-right: 20px!important +} + +.pb-3,.py-3 { + padding-bottom: 20px!important +} + +.pl-3,.px-3 { + padding-left: 20px!important +} + +.p-4 { + padding: 30px!important +} + +.pt-4,.py-4 { + padding-top: 30px!important +} + +.pr-4,.px-4 { + padding-right: 30px!important +} + +.pb-4,.py-4 { + padding-bottom: 30px!important +} + +.pl-4,.px-4 { + padding-left: 30px!important +} + +.p-5 { + padding: 60px!important +} + +.pt-5,.py-5 { + padding-top: 60px!important +} + +.pr-5,.px-5 { + padding-right: 60px!important +} + +.pb-5,.py-5 { + padding-bottom: 60px!important +} + +.pl-5,.px-5 { + padding-left: 60px!important +} + +.m-auto { + margin: auto!important +} + +.mt-auto,.my-auto { + margin-top: auto!important +} + +.mr-auto,.mx-auto { + margin-right: auto!important +} + +.mb-auto,.my-auto { + margin-bottom: auto!important +} + +.ml-auto,.mx-auto { + margin-left: auto!important +} + +.margin-bottom-none { + margin-bottom: 0 +} + +.margin-bottom-small { + margin-bottom: .25em +} + +.margin-top-large { + margin-top: 1.5em +} + +.margin-top-medium { + margin-top: .75em +} + +@media screen { + .mathml body>div>math,.no-mathml body>div>math { + display: none!important + } + + #wb-dtmd { + margin: 2em 0 0 + } + + #wb-dtmd dd,#wb-dtmd dt { + display: inline; + font-weight: 400; + margin-right: 0 + } + + .nowrap { + white-space: nowrap + } + + .col-lg-auto,.col-md-auto,.col-sm-auto,.col-xs-auto { + min-height: 1px; + padding-left: 15px; + padding-right: 15px + } + + .col-xs-auto { + width: auto + } + + .wb-sl { + background: #26374a; + color: #fff; + font-weight: 700 + } + + .wb-sl:focus { + color: #fff; + text-decoration: none + } + + .wb-sl:hover { + background-color: #444; + color: #fff + } + + .overlay-def .modal-header { + background: #2e5274 + } + + .atn,.dec,.typ,.var { + color: #606 + } + + .clo,.opn,.pun { + color: #660 + } + + .atv,.str { + color: #2f6d2f + } + + .kwd { + color: #024b6e + } + + .com { + color: #800 + } + + .lit { + color: #066 + } + + .tag { + color: #125b7e + } + + .fun { + color: red + } + + .wb-tabs.carousel-s2.wb-init { + padding-bottom: 4.375em + } + + .wb-tabs.carousel-s2.exclude-controls { + padding-bottom: 0 + } + + .prm-flpr { + background-color: #eee; + margin-top: 1px + } + + .prm-flpr .wb-tabs.carousel-s2 [role=tablist] li.plypause { + font-size: 1.3em + } + + .prm-flpr .wb-tabs.carousel-s2 [role=tablist] li.plypause a { + margin-top: .15em + } + + .prm-flpr .wb-tabs.carousel-s2 figure figcaption { + font-size: 1.3em + } + + .prm-flpr .wb-tabs.carousel-s2 figure figcaption a { + text-decoration: none + } + + .prm-flpr .wb-tabs.carousel-s2 figure figcaption a:hover { + text-decoration: underline + } + + .wb-tabs.carousel-s2 [role=tablist] li.plypause a,.wb-tabs.carousel-s2 [role=tablist] li.tab-count .curr-count { + font-size: 1.2em + } + + .wb-tabs.carousel-s2 [role=tablist] li.nxt a .glyphicon,.wb-tabs.carousel-s2 [role=tablist] li.prv a .glyphicon { + font-size: 1.65em + } + + .gc-nttvs a:active h3,.gc-nttvs a:active img,.gc-nttvs a:focus h3,.gc-nttvs a:focus img { + outline: thin dotted + } + + .gc-nttvs h3 { + float: left; + text-decoration: underline + } + + .gc-nttvs img { + float: left; + margin-right: 100% + } + + .gc-nttvs p { + clear: both + } + + [dir=rtl] .gc-nttvs h3 { + float: right + } + + [dir=rtl] .gc-nttvs img { + float: right; + margin-left: 100%; + margin-right: 0 + } +} + +@media screen and (max-width: 767px) { + header .brand img { + margin-top:15px + } + + header .brand img,header .brand object { + max-height: 30px + } + + .list-responsive>li { + clear: right; + width: 100% + } + + main { + font-size: 1.125rem; + line-height: 1.55 + } + + .gcweb-menu>[role=menu] { + margin-left: -15px; + margin-right: -15px + } + + #wb-bnr+.gcweb-menu button[aria-haspopup=true] { + margin-left: 15px!important + } + + #wb-bnr+.gcweb-menu>[role=menu] { + margin-left: 0; + margin-right: 0 + } + + #wb-glb-mn { + margin-top: 20px + } + + #wb-glb-mn ul.chvrn li a { + font-size: 1.7em + } + + .pagedetails .pull-right { + float: none!important + } + + .wb-eqht-grd>[class*=col-] { + width: 100% + } + + [class*=col-] .well.header-rwd[class*=pstn-],[class*=col-] a.header-rwd[class*=pstn-].gc-dwnld { + left: 15px; + right: 15px; + width: inherit + } + + .pager { + margin-bottom: 50px + } + + .toc li { + display: block; + margin-bottom: 0 + } + + .toc li .list-group-item { + border-bottom: 0; + border-radius: 0; + padding: 4px 10px + } + + .toc li:last-child .list-group-item { + border-bottom: 1px solid #ddd + } + + ol.lst-stps-sub:not(.stps-strpd)>li,ol.lst-stps:not(.stps-strpd)>li { + padding-left: 2.6em + } + + ol.lst-stps.ld-zr:not(.stps-strpd)>li,ol.lst-stps.ld-zr>li ol.lst-stps-sub:not(.stps-strpd)>li { + padding-left: 2.8em + } + + ol.lst-stps>li:before { + font-size: .8em + } + + ol.lst-stps.ld-zr>li:before { + font-size: 1.2em + } + + ol.lst-stps-sub.stps-strpd>li,ol.lst-stps.stps-strpd>li { + padding-left: 3em + } + + .cmpgn-sctns { + margin-top: 0 + } + + .cmpgn-sctns li { + margin-top: 20px + } + + .cmpgn-sctns .h4 { + margin-top: 0; + padding-top: 15px + } + + .cmpgn-sctns .sctn-desc { + margin-bottom: 10px + } + + .application-bar h2 { + font-size: 18px; + margin: 12px 0 9px + } + + .home .header-rwd { + margin: 0; + opacity: 1 + } +} + +@media screen and (max-width: 991px) { + header .brand img { + margin-top:10px + } + + .h1,h1 { + font-size: 2.3125rem; + line-height: 1.19; + margin-top: 1.265rem + } + + .h2,h2 { + font-size: 2.1875rem; + line-height: 1.25 + } + + .h3,h3 { + font-size: 1.625rem; + line-height: 1.23 + } + + .h4,h4 { + font-size: 1.375rem; + line-height: 1.33 + } + + .h5,h5 { + font-size: 1.25rem; + line-height: 1.27 + } + + .h6,h6 { + font-size: 1.125rem; + line-height: 1.4 + } + + #wb-bnr+.gcweb-menu button[aria-haspopup=true] { + margin-left: calc(50% - 360px) + } + + .gcweb-menu .container { + padding: 0; + width: 100% + } + + .gcweb-menu [role=menu] { + position: static; + width: auto + } + + .gcweb-menu button[aria-haspopup=true][aria-expanded=true]+[role=menu] { + border-right: #eee solid 1px + } + + .gcweb-menu [role=menuitem] { + width: auto + } + + .gcweb-menu [role=menu] [role=menu] li:first-child [role=menuitem] { + font-size: 18px; + font-weight: 400; + text-decoration: underline; + width: auto + } + + .gcweb-menu [role=menu] [role=menu] { + border-top: none; + -webkit-box-shadow: none; + box-shadow: none; + margin-bottom: 0; + min-height: auto; + padding: 0; + width: auto + } + + .gcweb-menu [role=menu] [role=menu] li { + width: auto + } + + .gcweb-menu button:hover { + text-decoration: underline + } + + .gcweb-menu button+[role=menu] [role=menuitem][aria-expanded=false]:focus,.gcweb-menu button+[role=menu] [role=menuitem][aria-expanded=false]:hover { + background: 0 0; + color: #fff + } + + .gcweb-menu button+[role=menu] [role=menu] [role=menuitem][aria-expanded=false]:focus,.gcweb-menu button+[role=menu] [role=menu] [role=menuitem][aria-expanded=false]:hover { + color: #000 + } + + .gcweb-menu [role=menu] [role=menu] li:first-child { + margin-bottom: 0 + } + + .gcweb-menu [role=menu] [role=menu] li [role=menuitem] { + padding-bottom: 14px; + padding-left: 0; + padding-right: 30px; + padding-top: 14px + } + + .gcweb-menu [aria-expanded=true]:not(button)+[role=menu] li { + margin-left: 65px + } + + .gcweb-menu [aria-expanded=true]:not(button)+[role=menu] li:first-child [role=menuitem],.gcweb-menu [aria-expanded=true]:not(button)+[role=menu] li:last-child [role=menuitem] { + padding-left: 65px + } + + .gcweb-menu [aria-expanded=true]:not(button)+[role=menu] li:first-child,.gcweb-menu [aria-expanded=true]:not(button)+[role=menu] li:last-child { + margin-left: 0 + } + + .gcweb-menu [aria-haspopup]:not(button)::before,.gcweb-menu [role=treegrid]>[role=row]>[role=rowheader]::before { + content: "► " + } + + .gcweb-menu [aria-haspopup][aria-expanded=true]:not(button)::before,.gcweb-menu [role=treegrid]>[role=row][aria-expanded=true]>[role=rowheader]::before { + content: "▼ " + } + + .gcweb-menu [role=menu] [role=menu] [role=menuitem],.gcweb-menu [role=menu] [role=menu] li:first-child [role=menuitem] { + border-bottom: 1px solid #ccc; + color: #000 + } + + .gcweb-menu [role=menu] [role=menu] [role=menu] li:first-child [role=menuitem],.gcweb-menu [role=menu] [role=menu] [role=menuitem],.gcweb-menu [role=menu] [role=menu] li:last-child [role=menuitem] { + color: #284162; + text-decoration: none + } + + .gcweb-menu [role=menu] [role=menu] [role=menuitem]:focus,.gcweb-menu [role=menu] [role=menu] [role=menuitem]:hover,.gcweb-menu [role=menu] [role=menu] li:first-child [role=menuitem]:focus,.gcweb-menu [role=menu] [role=menu] li:first-child [role=menuitem]:hover,.gcweb-menu [role=menu] [role=menu] li:last-child [role=menuitem]:focus,.gcweb-menu [role=menu] [role=menu] li:last-child [role=menuitem]:hover { + color: #000; + text-decoration: underline + } + + .gcweb-menu [role=menu] [role=menu] li:first-child [role=menuitem],.gcweb-menu [role=menu] [role=menu] li:last-child [role=menuitem] { + background-color: #e1e1e1 + } + + .gcweb-menu [role=menu] [role=menu] li:last-child { + left: auto; + position: static; + top: auto + } + + .gcweb-menu [role=menu] [role=menu] li:last-child [role=menu] { + list-style: none + } + + .gcweb-menu [aria-expanded=true]+[role=menu] [role=menu] [role=menu] { + background-color: #e1e1e1 + } + + .gcweb-menu [aria-expanded=true]:not(button)+[role=menu] [role=menu] li { + margin-left: 100px + } + + .gcweb-menu [aria-expanded=true]:not(button)+[role=menu] li:last-child [role=menu] [role=menuitem] { + padding-left: 0 + } + + .gcweb-menu [role=menu] [role=menu] [role=menu] li { + width: auto + } + + #wb-bnr+hr+.container .col-md-8 .gcweb-menu>[role=menu] { + margin-bottom: 50px + } + + #wb-bnr+hr+.container .col-xs-5,#wb-bnr+hr+.container .col-xs-6 { + margin-top: -50px + } + + #wb-info .gc-sub-footer nav ul li { + display: block + } + + #wb-info .gc-sub-footer nav ul li:not(:last-child) { + margin-bottom: 1.5em + } + + #wb-info .gc-sub-footer nav ul li::before { + display: none + } + + .dshbrd details { + display: block + } + + .dshbrd details summary { + background: #26374a; + color: #fff; + font-size: 1em; + margin-top: 5px; + max-height: 999px; + padding: 1em + } + + .dshbrd details .cntnt { + border: 1px solid #26374a; + padding: 15px + } + + .gc-features p { + font-size: 17px + } + + .gc-subway:not(.gc-subway-index) h1 { + background-color: #fff; + border-bottom: none; + color: #555; + float: left; + font-size: 1.3em; + margin-left: -.5em; + margin-right: .5em; + margin-top: -.75em; + padding: 0 20px 10px 0 + } + + .gc-subway:not(.gc-subway-index) ul { + padding-top: .25em + } + + .dataTables_wrapper .dataTables_info { + padding-bottom: 5px + } + + .dataTables_wrapper .dataTables_filter { + float: left; + text-align: left; + width: 100% + } + + [dir=rtl] .dataTables_wrapper .dataTables_filter { + float: right; + text-align: right + } + + .provisional.gc-table.table-bordered { + border: 0 + } + + .provisional.gc-table.table-bordered>tbody>tr>td,.provisional.gc-table.table-bordered>tbody>tr>th,.provisional.gc-table.table-bordered>tfoot>tr>td,.provisional.gc-table.table-bordered>tfoot>tr>th,.provisional.gc-table.table-bordered>thead>tr>td,.provisional.gc-table.table-bordered>thead>tr>th { + border-bottom: 0; + border-left: 0; + border-right: 0 + } + + .provisional.gc-table.dataTable.no-footer { + border-bottom: 0 + } + + .provisional.gc-table .text-left { + clear: both; + display: block + } + + .provisional.gc-table>tbody>tr>td:first-child,.provisional.gc-table>tfoot>tr>td:first-child { + border-top: none + } + + .provisional.gc-table tr { + border: 1px solid #ddd; + display: block; + margin-bottom: .625em; + padding: .35em + } + + .provisional.gc-table>:last-child>tr:last-of-type { + margin-bottom: 0 + } + + .provisional.gc-table caption { + font-size: 1.1em + } + + .provisional.gc-table thead { + border: none; + clip: rect(0 0 0 0); + height: 1px; + margin: -1px; + overflow: hidden; + padding: 0; + position: absolute; + width: 1px + } + + .provisional.gc-table tbody+tbody>tr:first-of-type { + margin-top: .625em + } + + .provisional.gc-table td { + display: flow-root; + font-size: 1em; + text-align: right + } + + .provisional.gc-table td::before { + content: attr(data-label); + float: left; + font-weight: 700; + text-align: left + } + + .provisional.gc-table td:last-child { + border-bottom: 0 + } + + .gc-chckbxrdio.form-inline .label-inline { + margin-bottom: 20px; + padding-right: 20px + } + + .wb-tabs.carousel-s1,.wb-tabs.carousel-s2 { + border: 0 + } + + .wb-tabs>.tabpanels>details,.wb-tabs>details { + border: 0; + border-bottom: #ccc solid 1px; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0 + } + + .wb-tabs>.tabpanels>details:last-of-type,.wb-tabs>details:last-of-type { + border-bottom: 0 + } + + .wb-tabs>.tabpanels>details[style],.wb-tabs>details[style] { + min-height: 0!important + } + + .wb-tabs>.tabpanels>details>summary,.wb-tabs>details>summary { + border: 0 + } + + .wb-tabs>.tabpanels>details[open]>summary,.wb-tabs>details[open]>summary { + border: 0; + margin-bottom: 0 + } + + .wb-tabs { + border-color: #ccc; + border-radius: 4px; + border-style: solid; + border-width: 1px; + margin-bottom: 15px; + padding-left: 0; + padding-right: 0 + } + + .wb-tabs.tabs-acc>ul { + display: none + } + + .home h2 { + font-size: 26px + } + + .home .home-most-requested li { + font-size: 19px + } + + .home .home-your-gov { + background-image: none + } + + .page-type-ilp .gc-followus { + margin-bottom: 40px; + margin-top: 40px + } + + .page-type-ilp .wb-feeds { + margin-bottom: 40px + } + + .page-type-theme #theme-nav ul { + display: none + } + + .wb-disable .page-type-theme #theme-nav ul { + display: block + } + + .page-type-theme #theme-nav ul li { + border-bottom: #f5f5f5 solid 1px; + position: relative + } + + .page-type-theme #theme-nav ul li a::after { + content: "›"; + font-size: 1.5em; + margin-left: 10px; + position: absolute; + right: 14px; + top: 50%; + -webkit-transform: translateY(-50%); + transform: translateY(-50%) + } + + .page-type-theme #theme-nav ul li.active a::after { + display: none + } + + .page-type-theme #menu-btn.expanded+ul { + display: block + } +} + +@media screen and (max-width: 1199px) { + #wb-sm .menu { + border-right:1px solid #999 + } + + #wb-sm .menu>li:last-child { + border-right: 0 + } +} + +@media screen and (min-width: 480px) { + #mb-pnl { + min-width:300px + } + + .dataTables_wrapper .dataTables_info:after { + content: "|"; + font-size: 1.2em; + line-height: 1em; + padding: 0 .25em + } + + .colcount-xs-2 { + -webkit-column-count: 2; + -moz-column-count: 2; + column-count: 2 + } + + .colcount-xs-3 { + -webkit-column-count: 3; + -moz-column-count: 3; + column-count: 3 + } + + .colcount-xs-4 { + -webkit-column-count: 4; + -moz-column-count: 4; + column-count: 4 + } +} + +@media screen and (min-width: 768px) { + .col-sm-auto { + width:auto + } + + .form-inline .label-inline { + display: inline-block; + padding-right: 10px + } + + .form-inline .label-inline:last-child { + padding-right: 0 + } + + ul.list-col-sm-1>li { + -ms-flex-preferred-size: 100%; + flex-basis: 100% + } + + ul.list-col-sm-2>li { + -ms-flex-preferred-size: 50%; + flex-basis: 50% + } + + ul.list-col-sm-3>li { + -ms-flex-preferred-size: 33.33%; + flex-basis: 33.33% + } + + ul.list-col-sm-4>li { + -ms-flex-preferred-size: 25%; + flex-basis: 25% + } + + .wb-filter .input-group { + max-width: 80% + } + + .well.header-rwd,a.header-rwd.gc-dwnld { + width: 75% + } + + .form-inline .gc-chckbxrdio.checkbox input[type=checkbox] { + position: absolute + } + + .form-inline.gc-chckbxrdio .checkbox input[type=checkbox],.form-inline.gc-chckbxrdio .radio input[type=radio] { + position: absolute + } + + .gc-stp-stp ol:not(.lst-spcd) li,.gc-stp-stp ul:not(.lst-spcd) li { + margin-bottom: 10px + } + + table.nws-tbl td { + display: inline; + margin-top: 10px + } + + table.nws-tbl .nws-tbl-dept,table.nws-tbl .nws-tbl-type { + border-left: solid 1px #666 + } + + table.nws-tbl .nws-tbl-desc,table.nws-tbl .nws-tbl-ttl { + display: block + } + + .cmpgn-img { + min-height: 117px + } + + .cmpgn-sctns { + margin-top: -10% + } + + .cmpgn-sctns img { + width: 40% + } + + .colcount-sm-2 { + -webkit-column-count: 2; + -moz-column-count: 2; + column-count: 2 + } + + .colcount-sm-3 { + -webkit-column-count: 3; + -moz-column-count: 3; + column-count: 3 + } + + .colcount-sm-4 { + -webkit-column-count: 4; + -moz-column-count: 4; + column-count: 4 + } + + .pstn-lft-sm { + position: absolute; + left: 0; + right: auto + } + + .pstn-rght-sm { + position: absolute; + right: 0; + left: auto + } + + .pstn-tp-sm { + position: absolute; + top: 0; + bottom: auto + } + + .pstn-bttm-sm { + position: absolute; + bottom: 0; + top: auto + } + + .text-sm-left { + text-align: left + } + + .text-sm-right { + text-align: right + } + + .d-sm-flex { + display: -webkit-box; + display: -ms-flexbox; + display: flex + } + + .flex-sm-wrap { + -ms-flex-wrap: wrap; + flex-wrap: wrap + } + + .align-items-sm-center { + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center + } + + .mb-sm-5 { + margin-bottom: 50px + } + + .p-sm-3 { + padding: 15px + } + + .px-sm-3 { + padding-left: 15px; + padding-right: 15px + } + + .pr-sm-3 { + padding-right: 15px!important + } + + .m-sm-0 { + margin: 0!important + } + + .mt-sm-0,.my-sm-0 { + margin-top: 0!important + } + + .mr-sm-0,.mx-sm-0 { + margin-right: 0!important + } + + .mb-sm-0,.my-sm-0 { + margin-bottom: 0!important + } + + .ml-sm-0,.mx-sm-0 { + margin-left: 0!important + } + + .m-sm-1 { + margin: 5px!important + } + + .mt-sm-1,.my-sm-1 { + margin-top: 5px!important + } + + .mr-sm-1,.mx-sm-1 { + margin-right: 5px!important + } + + .mb-sm-1,.my-sm-1 { + margin-bottom: 5px!important + } + + .ml-sm-1,.mx-sm-1 { + margin-left: 5px!important + } + + .m-sm-2 { + margin: 10px!important + } + + .mt-sm-2,.my-sm-2 { + margin-top: 10px!important + } + + .mr-sm-2,.mx-sm-2 { + margin-right: 10px!important + } + + .mb-sm-2,.my-sm-2 { + margin-bottom: 10px!important + } + + .ml-sm-2,.mx-sm-2 { + margin-left: 10px!important + } + + .m-sm-3 { + margin: 20px!important + } + + .mt-sm-3,.my-sm-3 { + margin-top: 20px!important + } + + .mr-sm-3,.mx-sm-3 { + margin-right: 20px!important + } + + .mb-sm-3,.my-sm-3 { + margin-bottom: 20px!important + } + + .ml-sm-3,.mx-sm-3 { + margin-left: 20px!important + } + + .m-sm-4 { + margin: 30px!important + } + + .mt-sm-4,.my-sm-4 { + margin-top: 30px!important + } + + .mr-sm-4,.mx-sm-4 { + margin-right: 30px!important + } + + .mb-sm-4,.my-sm-4 { + margin-bottom: 30px!important + } + + .ml-sm-4,.mx-sm-4 { + margin-left: 30px!important + } + + .m-sm-5 { + margin: 60px!important + } + + .mt-sm-5,.my-sm-5 { + margin-top: 60px!important + } + + .mr-sm-5,.mx-sm-5 { + margin-right: 60px!important + } + + .mb-sm-5,.my-sm-5 { + margin-bottom: 60px!important + } + + .ml-sm-5,.mx-sm-5 { + margin-left: 60px!important + } + + .p-sm-0 { + padding: 0!important + } + + .pt-sm-0,.py-sm-0 { + padding-top: 0!important + } + + .pr-sm-0,.px-sm-0 { + padding-right: 0!important + } + + .pb-sm-0,.py-sm-0 { + padding-bottom: 0!important + } + + .pl-sm-0,.px-sm-0 { + padding-left: 0!important + } + + .p-sm-1 { + padding: 5px!important + } + + .pt-sm-1,.py-sm-1 { + padding-top: 5px!important + } + + .pr-sm-1,.px-sm-1 { + padding-right: 5px!important + } + + .pb-sm-1,.py-sm-1 { + padding-bottom: 5px!important + } + + .pl-sm-1,.px-sm-1 { + padding-left: 5px!important + } + + .p-sm-2 { + padding: 10px!important + } + + .pt-sm-2,.py-sm-2 { + padding-top: 10px!important + } + + .pr-sm-2,.px-sm-2 { + padding-right: 10px!important + } + + .pb-sm-2,.py-sm-2 { + padding-bottom: 10px!important + } + + .pl-sm-2,.px-sm-2 { + padding-left: 10px!important + } + + .p-sm-3 { + padding: 20px!important + } + + .pt-sm-3,.py-sm-3 { + padding-top: 20px!important + } + + .pr-sm-3,.px-sm-3 { + padding-right: 20px!important + } + + .pb-sm-3,.py-sm-3 { + padding-bottom: 20px!important + } + + .pl-sm-3,.px-sm-3 { + padding-left: 20px!important + } + + .p-sm-4 { + padding: 30px!important + } + + .pt-sm-4,.py-sm-4 { + padding-top: 30px!important + } + + .pr-sm-4,.px-sm-4 { + padding-right: 30px!important + } + + .pb-sm-4,.py-sm-4 { + padding-bottom: 30px!important + } + + .pl-sm-4,.px-sm-4 { + padding-left: 30px!important + } + + .p-sm-5 { + padding: 60px!important + } + + .pt-sm-5,.py-sm-5 { + padding-top: 60px!important + } + + .pr-sm-5,.px-sm-5 { + padding-right: 60px!important + } + + .pb-sm-5,.py-sm-5 { + padding-bottom: 60px!important + } + + .pl-sm-5,.px-sm-5 { + padding-left: 60px!important + } + + .m-sm-auto { + margin: auto!important + } + + .mt-sm-auto,.my-sm-auto { + margin-top: auto!important + } + + .mr-sm-auto,.mx-sm-auto { + margin-right: auto!important + } + + .mb-sm-auto,.my-sm-auto { + margin-bottom: auto!important + } + + .ml-sm-auto,.mx-sm-auto { + margin-left: auto!important + } + + [class*=cnjnctn-type-].cnjnctn-sm { + border-left: 0 solid transparent; + -webkit-box-orient: horizontal; + -webkit-box-direction: normal; + -ms-flex-direction: row; + flex-direction: row + } + + [class*=cnjnctn-type-].cnjnctn-sm>[class*=cnjnctn-col]:not(:first-child) { + margin-left: 1.4em; + margin-top: 0; + position: relative + } + + [class*=cnjnctn-type-].cnjnctn-sm>[class*=cnjnctn-col]:not(:first-child):after { + -o-border-image: linear-gradient(to bottom,#6f6f6f 0.3em,#6f6f6f 0.3em,transparent 0.3em,transparent 2.35em,#6f6f6f 2.35em,#6f6f6f 2.35em) 1 100%; + border-image: -webkit-gradient(linear,left top,left bottom,color-stop(0.3em,#6f6f6f),color-stop(0.3em,#6f6f6f),color-stop(0.3em,transparent),color-stop(2.35em,transparent),color-stop(2.35em,#6f6f6f),color-stop(2.35em,#6f6f6f)) 1 100%; + border-image: linear-gradient(to bottom,#6f6f6f 0.3em,#6f6f6f 0.3em,transparent 0.3em,transparent 2.35em,#6f6f6f 2.35em,#6f6f6f 2.35em) 1 100%; + border-left: 3px solid #6f6f6f; + margin-left: -1.6em + } + + .cnjnctn-type-or.cnjnctn-sm>[class*=cnjnctn-col]:not(:first-child):before { + margin-left: -3.3em + } + + .cnjnctn-type-and.cnjnctn-sm>[class*=cnjnctn-col]:not(:first-child):before { + border-width: 3px 0; + margin-left: -3.15em + } + + [class*=cnjnctn-type-].cnjnctn-sm>[class*=cnjnctn-col]:not(:first-child):before { + margin-top: .3em + } + + [class*=cnjnctn-type-].cnjnctn-sm>[class*=cnjnctn-col]:not(:last-child) { + margin-bottom: 0 + } +} + +@media screen and (min-width: 768px) and (prefers-contrast:more) { + [class*=cnjnctn-type-].cnjnctn-sm>[class*=cnjnctn-col]:not(:first-child):after { + -o-border-image:linear-gradient(to bottom,#fff 0.3em,#fff 0.3em,transparent 0.3em,transparent 2.35em,#fff 2.35em,#fff 2.35em) 1 100%; + border-image: -webkit-gradient(linear,left top,left bottom,color-stop(0.3em,#fff),color-stop(0.3em,#fff),color-stop(0.3em,transparent),color-stop(2.35em,transparent),color-stop(2.35em,#fff),color-stop(2.35em,#fff)) 1 100%; + border-image: linear-gradient(to bottom,#fff 0.3em,#fff 0.3em,transparent 0.3em,transparent 2.35em,#fff 2.35em,#fff 2.35em) 1 100%; + border-left: none + } +} + +@media screen and (min-width: 768px) { + [class*=cnjnctn-type-].cnjnctn-sm:not(.brdr-0)>[class*=cnjnctn-col] { + min-height:3em; + padding-left: 0; + padding-right: 0 + } +} + +@media screen and (min-width: 992px) { + [dir=rtl] main.col-md-push-3 { + left:auto + } + + [dir=rtl] #wb-sec.col-md-pull-9 { + right: auto + } + + .col-md-auto { + width: auto + } + + ul.list-col-md-1>li { + -ms-flex-preferred-size: 100%; + flex-basis: 100% + } + + ul.list-col-md-2>li { + -ms-flex-preferred-size: 50%; + flex-basis: 50% + } + + ul.list-col-md-3>li { + -ms-flex-preferred-size: 33.33%; + flex-basis: 33.33% + } + + ul.list-col-md-4>li { + -ms-flex-preferred-size: 25%; + flex-basis: 25% + } + + .gcweb-menu { + margin-left: -15px + } + + .gcweb-menu [role=menu] [role=menu] [role=menuitem][aria-haspopup=true],.gcweb-menu [role=menu] [role=menu] [role=menuitem][aria-haspopup=true]:hover { + color: #000; + font-size: 20px; + font-weight: 700; + text-decoration: none + } + + #wb-bnr+.gcweb-menu { + margin-left: 0 + } + + .wb-disable .gcweb-menu [role=menu]>li { + float: left; + padding-right: 5px; + width: 30% + } + + .wb-disable .gcweb-menu [role=menu]>li:nth-child(3n+3) { + clear: right + } + + .wb-disable .gcweb-menu [role=menu]>li:nth-child(3n+4) { + clear: left + } + + .wb-disable .gcweb-menu [role=menu]>li:nth-child(2n+2) { + clear: none + } + + .wb-disable .gcweb-menu [role=menu]>li:nth-child(2n+3) { + clear: none + } + + .pagedetails div:has(#gc-pft)+.wb-share-inited { + margin-top: 16px + } + + .gc-contributors { + display: -webkit-box; + display: -ms-flexbox; + display: flex + } + + .gc-contributors h2,.gc-contributors h3 { + line-height: 1.8em; + word-break: initial + } + + .gc-contributors ul { + -webkit-padding-start: 5px; + padding-inline-start:5px} + + .gc-contributors ul li { + display: inline-block; + margin-right: .25rem + } + + .gc-contributors ul li::after { + content: "|"; + margin-left: .25rem + } + + .gc-contributors ul li:last-child::after { + content: none + } + + #details-flickr,#details-youtube { + padding-left: 0; + padding-right: 0 + } + + .wb-tabs>.tabpanels>details,.wb-tabs>details { + border-color: #ccc; + border-style: solid; + border-width: 1px; + display: none + } + + .wb-tabs>.tabpanels>details[open],.wb-tabs>details[open] { + display: block + } + + .wb-tabs>.tabpanels>details[open]>summary,.wb-tabs>details[open]>summary { + display: none!important + } + + .wb-tabs.carousel-s2.show-thumbs [role=tablist] li.active a { + border-color: #666; + border-style: solid; + border-width: 10px; + margin-bottom: 1px; + padding: 0 + } + + .wb-tabs.carousel-s2.show-thumbs [role=tablist] li.active a:focus::before { + content: ""; + height: calc(100% - 6px); + left: 0; + margin: 2px; + outline: inherit; + outline-color: #fff; + position: absolute; + top: 0; + width: calc(100% - 4px) + } + + .wb-tabs.carousel-s2.show-thumbs [role=tablist] li[role=presentation] { + display: inline-block + } + + .wb-tabs.carousel-s2.show-thumbs [role=tablist] li[role=presentation] img { + opacity: .5; + width: 140px + } + + .wb-tabs.carousel-s2.show-thumbs [role=tablist] li[class=active] img { + opacity: 1 + } + + .wb-tabs.carousel-s2.show-thumbs [role=tablist] li.nxt,.wb-tabs.carousel-s2.show-thumbs [role=tablist] li.prv,.wb-tabs.carousel-s2.show-thumbs [role=tablist] li.tab-count { + display: none + } + + .gc-subway:not(.gc-subway-index).no-blink { + display: block + } + + .gc-subway:not(.gc-subway-index) { + border-color: transparent; + display: none + } + + .no-js .gc-subway:not(.gc-subway-index),.wb-disable .gc-subway:not(.gc-subway-index) { + display: block + } + + .gc-subway:not(.gc-subway-index) hgroup { + margin-left: -14px + } + + .gc-subway:not(.gc-subway-index) hgroup h1 { + clip: rect(1px,1px,1px,1px); + height: 1px; + margin: 0; + overflow: hidden; + position: absolute; + width: 1px + } + + .gc-subway:not(.gc-subway-index) ul li:last-child:has(ul) { + border-left: 4px solid #26374a; + padding-bottom: 1.25em + } + + .gc-subway:not(.gc-subway-index) ul li:last-child:has(ul)::after { + background-color: #26374a; + bottom: 0; + content: ""; + height: 4px; + left: -.45em; + position: absolute; + width: .75em + } + + .gc-subway-wrapper { + float: right; + width: calc(33.33% - .5em - 5px) + } + + .gc-subway-section { + display: flow-root; + padding-right: 30px; + width: 66.66% + } + + .gc-subway-section hgroup:first-of-type h1 { + margin-top: 0 + } + + .gc-subway-section hgroup:first-of-type p { + display: block; + font-size: 1.25em; + margin-bottom: 0 + } + + .gc-most-requested h2 { + float: left; + width: 16.666667% + } + + .gc-most-requested ul { + -webkit-column-count: 2; + -moz-column-count: 2; + column-count: 2; + -webkit-column-gap: 0; + -moz-column-gap: 0; + column-gap: 0; + margin-bottom: 0; + padding-left: 1.55em + } + + .gc-most-requested ul li { + display: inline-block; + line-height: 1.25em; + margin-bottom: 10px; + padding-left: 1.15em; + padding-right: 1em; + position: relative + } + + .gc-most-requested ul li::before { + content: "•"; + font-size: .8em; + left: 0; + position: absolute; + top: 0 + } + + .gc-most-requested ul li::after { + content: ""; + display: block; + width: 335px + } + + .gc-most-requested ul:has(> li:nth-child(2):last-child) { + display: -webkit-box; + display: -ms-flexbox; + display: flex + } + + .gc-most-requested ul:has(> li:nth-child(2):last-child)>li { + width: 50% + } + + .container .gc-most-requested h2 { + float: none + } + + .container .gc-most-requested ul { + -webkit-column-count: 1; + -moz-column-count: 1; + column-count: 1 + } + + .container .gc-most-requested ul li { + display: block + } + + .page-type-theme { + overflow-x: hidden + } + + .page-type-theme #gridContainer { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + margin: 0 auto; + padding: 0 15px; + width: 970px + } + + .page-type-theme #gridContainer>:first-child { + -webkit-box-flex: 0; + -ms-flex: 0 0 300px; + flex: 0 0 300px + } + + .page-type-theme #gridContainer>:first-child .container { + padding: 0; + width: auto + } + + .page-type-theme #gridContainer>:last-child { + border-left: 5px solid #26374a; + -webkit-box-flex: 1; + -ms-flex: 1 0 0%; + flex: 1 0 0% + } + + .page-type-theme #gridContainer>:last-child .container { + padding-left: 35px; + width: auto + } + + .page-type-theme #theme-nav .wb-sl { + display: block; + font-size: .8em; + margin: 0 5px 5px; + text-align: center + } + + .page-type-theme #menu-btn { + display: none + } + + .page-type-theme .gc-most-requested { + position: relative + } + + .page-type-theme .gc-most-requested::after { + background-color: #f5f5f5; + bottom: 0; + content: ""; + left: calc(100% - 1px); + position: absolute; + top: 0; + width: 9999px + } + + .page-type-theme .gc-most-requested ul li::after { + width: 240px + } + + .colcount-md-2 { + -webkit-column-count: 2; + -moz-column-count: 2; + column-count: 2 + } + + .colcount-md-3 { + -webkit-column-count: 3; + -moz-column-count: 3; + column-count: 3 + } + + .colcount-md-4 { + -webkit-column-count: 4; + -moz-column-count: 4; + column-count: 4 + } + + .pstn-lft-md { + position: absolute; + left: 0; + right: auto + } + + .pstn-rght-md { + position: absolute; + right: 0; + left: auto + } + + .pstn-tp-md { + position: absolute; + top: 0; + bottom: auto + } + + .pstn-bttm-md { + position: absolute; + bottom: 0; + top: auto + } + + .m-md-0 { + margin: 0!important + } + + .mt-md-0,.my-md-0 { + margin-top: 0!important + } + + .mr-md-0,.mx-md-0 { + margin-right: 0!important + } + + .mb-md-0,.my-md-0 { + margin-bottom: 0!important + } + + .ml-md-0,.mx-md-0 { + margin-left: 0!important + } + + .m-md-1 { + margin: 5px!important + } + + .mt-md-1,.my-md-1 { + margin-top: 5px!important + } + + .mr-md-1,.mx-md-1 { + margin-right: 5px!important + } + + .mb-md-1,.my-md-1 { + margin-bottom: 5px!important + } + + .ml-md-1,.mx-md-1 { + margin-left: 5px!important + } + + .m-md-2 { + margin: 10px!important + } + + .mt-md-2,.my-md-2 { + margin-top: 10px!important + } + + .mr-md-2,.mx-md-2 { + margin-right: 10px!important + } + + .mb-md-2,.my-md-2 { + margin-bottom: 10px!important + } + + .ml-md-2,.mx-md-2 { + margin-left: 10px!important + } + + .m-md-3 { + margin: 20px!important + } + + .mt-md-3,.my-md-3 { + margin-top: 20px!important + } + + .mr-md-3,.mx-md-3 { + margin-right: 20px!important + } + + .mb-md-3,.my-md-3 { + margin-bottom: 20px!important + } + + .ml-md-3,.mx-md-3 { + margin-left: 20px!important + } + + .m-md-4 { + margin: 30px!important + } + + .mt-md-4,.my-md-4 { + margin-top: 30px!important + } + + .mr-md-4,.mx-md-4 { + margin-right: 30px!important + } + + .mb-md-4,.my-md-4 { + margin-bottom: 30px!important + } + + .ml-md-4,.mx-md-4 { + margin-left: 30px!important + } + + .m-md-5 { + margin: 60px!important + } + + .mt-md-5,.my-md-5 { + margin-top: 60px!important + } + + .mr-md-5,.mx-md-5 { + margin-right: 60px!important + } + + .mb-md-5,.my-md-5 { + margin-bottom: 60px!important + } + + .ml-md-5,.mx-md-5 { + margin-left: 60px!important + } + + .p-md-0 { + padding: 0!important + } + + .pt-md-0,.py-md-0 { + padding-top: 0!important + } + + .pr-md-0,.px-md-0 { + padding-right: 0!important + } + + .pb-md-0,.py-md-0 { + padding-bottom: 0!important + } + + .pl-md-0,.px-md-0 { + padding-left: 0!important + } + + .p-md-1 { + padding: 5px!important + } + + .pt-md-1,.py-md-1 { + padding-top: 5px!important + } + + .pr-md-1,.px-md-1 { + padding-right: 5px!important + } + + .pb-md-1,.py-md-1 { + padding-bottom: 5px!important + } + + .pl-md-1,.px-md-1 { + padding-left: 5px!important + } + + .p-md-2 { + padding: 10px!important + } + + .pt-md-2,.py-md-2 { + padding-top: 10px!important + } + + .pr-md-2,.px-md-2 { + padding-right: 10px!important + } + + .pb-md-2,.py-md-2 { + padding-bottom: 10px!important + } + + .pl-md-2,.px-md-2 { + padding-left: 10px!important + } + + .p-md-3 { + padding: 20px!important + } + + .pt-md-3,.py-md-3 { + padding-top: 20px!important + } + + .pr-md-3,.px-md-3 { + padding-right: 20px!important + } + + .pb-md-3,.py-md-3 { + padding-bottom: 20px!important + } + + .pl-md-3,.px-md-3 { + padding-left: 20px!important + } + + .p-md-4 { + padding: 30px!important + } + + .pt-md-4,.py-md-4 { + padding-top: 30px!important + } + + .pr-md-4,.px-md-4 { + padding-right: 30px!important + } + + .pb-md-4,.py-md-4 { + padding-bottom: 30px!important + } + + .pl-md-4,.px-md-4 { + padding-left: 30px!important + } + + .p-md-5 { + padding: 60px!important + } + + .pt-md-5,.py-md-5 { + padding-top: 60px!important + } + + .pr-md-5,.px-md-5 { + padding-right: 60px!important + } + + .pb-md-5,.py-md-5 { + padding-bottom: 60px!important + } + + .pl-md-5,.px-md-5 { + padding-left: 60px!important + } + + .m-md-auto { + margin: auto!important + } + + .mt-md-auto,.my-md-auto { + margin-top: auto!important + } + + .mr-md-auto,.mx-md-auto { + margin-right: auto!important + } + + .mb-md-auto,.my-md-auto { + margin-bottom: auto!important + } + + .ml-md-auto,.mx-md-auto { + margin-left: auto!important + } + + [class*=cnjnctn-type-].cnjnctn-md { + border-left: 0 solid transparent; + -webkit-box-orient: horizontal; + -webkit-box-direction: normal; + -ms-flex-direction: row; + flex-direction: row + } + + [class*=cnjnctn-type-].cnjnctn-md>[class*=cnjnctn-col]:not(:first-child) { + margin-left: 1.4em; + margin-top: 0; + position: relative + } + + [class*=cnjnctn-type-].cnjnctn-md>[class*=cnjnctn-col]:not(:first-child):after { + -o-border-image: linear-gradient(to bottom,#6f6f6f 0.3em,#6f6f6f 0.3em,transparent 0.3em,transparent 2.35em,#6f6f6f 2.35em,#6f6f6f 2.35em) 1 100%; + border-image: -webkit-gradient(linear,left top,left bottom,color-stop(0.3em,#6f6f6f),color-stop(0.3em,#6f6f6f),color-stop(0.3em,transparent),color-stop(2.35em,transparent),color-stop(2.35em,#6f6f6f),color-stop(2.35em,#6f6f6f)) 1 100%; + border-image: linear-gradient(to bottom,#6f6f6f 0.3em,#6f6f6f 0.3em,transparent 0.3em,transparent 2.35em,#6f6f6f 2.35em,#6f6f6f 2.35em) 1 100%; + border-left: 3px solid #6f6f6f; + margin-left: -1.6em + } + + .cnjnctn-type-or.cnjnctn-md>[class*=cnjnctn-col]:not(:first-child):before { + margin-left: -3.3em + } + + .cnjnctn-type-and.cnjnctn-md>[class*=cnjnctn-col]:not(:first-child):before { + border-width: 3px 0; + margin-left: -3.15em + } + + [class*=cnjnctn-type-].cnjnctn-md>[class*=cnjnctn-col]:not(:first-child):before { + margin-top: .3em + } + + [class*=cnjnctn-type-].cnjnctn-md>[class*=cnjnctn-col]:not(:last-child) { + margin-bottom: 0 + } +} + +@media screen and (min-width: 992px) and (prefers-contrast:more) { + [class*=cnjnctn-type-].cnjnctn-md>[class*=cnjnctn-col]:not(:first-child):after { + -o-border-image:linear-gradient(to bottom,#fff 0.3em,#fff 0.3em,transparent 0.3em,transparent 2.35em,#fff 2.35em,#fff 2.35em) 1 100%; + border-image: -webkit-gradient(linear,left top,left bottom,color-stop(0.3em,#fff),color-stop(0.3em,#fff),color-stop(0.3em,transparent),color-stop(2.35em,transparent),color-stop(2.35em,#fff),color-stop(2.35em,#fff)) 1 100%; + border-image: linear-gradient(to bottom,#fff 0.3em,#fff 0.3em,transparent 0.3em,transparent 2.35em,#fff 2.35em,#fff 2.35em) 1 100%; + border-left: none + } +} + +@media screen and (min-width: 992px) { + [class*=cnjnctn-type-].cnjnctn-md:not(.brdr-0)>[class*=cnjnctn-col] { + min-height:3em; + padding-left: 0; + padding-right: 0 + } +} + +@media screen and (min-width: 1200px) { + .clr-lft-lg { + clear:left + } + + .clr-rght-lg { + clear: right + } + + .col-lg-auto { + width: auto + } + + ul.list-col-lg-1>li { + -ms-flex-preferred-size: 100%; + flex-basis: 100% + } + + ul.list-col-lg-2>li { + -ms-flex-preferred-size: 50%; + flex-basis: 50% + } + + ul.list-col-lg-3>li { + -ms-flex-preferred-size: 33.33%; + flex-basis: 33.33% + } + + ul.list-col-lg-4>li { + -ms-flex-preferred-size: 25%; + flex-basis: 25% + } + + .list-responsive>li { + width: 25% + } + + .list-responsive>li:nth-child(4n+4) { + clear: right + } + + .wb-filter .input-group { + max-width: 60% + } + + .well.header-rwd,a.header-rwd.gc-dwnld { + width: 50% + } + + .sect-lnks { + margin-right: 15px; + width: 31.7% + } + + main.col-md-9 .sect-lnks { + width: 31.2% + } + + .lt-ie9 .sect-lnks { + width: 30% + } + + .lt-ie9 main.col-md-9 .sect-lnks { + width: 30% + } + + .page-type-theme #gridContainer { + width: 1170px + } + + .page-type-theme .gc-most-requested ul li::after { + width: 335px + } + + .colcount-lg-2 { + -webkit-column-count: 2; + -moz-column-count: 2; + column-count: 2 + } + + .colcount-lg-3 { + -webkit-column-count: 3; + -moz-column-count: 3; + column-count: 3 + } + + .colcount-lg-4 { + -webkit-column-count: 4; + -moz-column-count: 4; + column-count: 4 + } + + .pstn-lft-lg { + position: absolute; + left: 0; + right: auto + } + + .pstn-rght-lg { + position: absolute; + right: 0; + left: auto + } + + .pstn-tp-lg { + position: absolute; + top: 0; + bottom: auto + } + + .pstn-bttm-lg { + position: absolute; + bottom: 0; + top: auto + } + + .m-lg-0 { + margin: 0!important + } + + .mt-lg-0,.my-lg-0 { + margin-top: 0!important + } + + .mr-lg-0,.mx-lg-0 { + margin-right: 0!important + } + + .mb-lg-0,.my-lg-0 { + margin-bottom: 0!important + } + + .ml-lg-0,.mx-lg-0 { + margin-left: 0!important + } + + .m-lg-1 { + margin: 5px!important + } + + .mt-lg-1,.my-lg-1 { + margin-top: 5px!important + } + + .mr-lg-1,.mx-lg-1 { + margin-right: 5px!important + } + + .mb-lg-1,.my-lg-1 { + margin-bottom: 5px!important + } + + .ml-lg-1,.mx-lg-1 { + margin-left: 5px!important + } + + .m-lg-2 { + margin: 10px!important + } + + .mt-lg-2,.my-lg-2 { + margin-top: 10px!important + } + + .mr-lg-2,.mx-lg-2 { + margin-right: 10px!important + } + + .mb-lg-2,.my-lg-2 { + margin-bottom: 10px!important + } + + .ml-lg-2,.mx-lg-2 { + margin-left: 10px!important + } + + .m-lg-3 { + margin: 20px!important + } + + .mt-lg-3,.my-lg-3 { + margin-top: 20px!important + } + + .mr-lg-3,.mx-lg-3 { + margin-right: 20px!important + } + + .mb-lg-3,.my-lg-3 { + margin-bottom: 20px!important + } + + .ml-lg-3,.mx-lg-3 { + margin-left: 20px!important + } + + .m-lg-4 { + margin: 30px!important + } + + .mt-lg-4,.my-lg-4 { + margin-top: 30px!important + } + + .mr-lg-4,.mx-lg-4 { + margin-right: 30px!important + } + + .mb-lg-4,.my-lg-4 { + margin-bottom: 30px!important + } + + .ml-lg-4,.mx-lg-4 { + margin-left: 30px!important + } + + .m-lg-5 { + margin: 60px!important + } + + .mt-lg-5,.my-lg-5 { + margin-top: 60px!important + } + + .mr-lg-5,.mx-lg-5 { + margin-right: 60px!important + } + + .mb-lg-5,.my-lg-5 { + margin-bottom: 60px!important + } + + .ml-lg-5,.mx-lg-5 { + margin-left: 60px!important + } + + .p-lg-0 { + padding: 0!important + } + + .pt-lg-0,.py-lg-0 { + padding-top: 0!important + } + + .pr-lg-0,.px-lg-0 { + padding-right: 0!important + } + + .pb-lg-0,.py-lg-0 { + padding-bottom: 0!important + } + + .pl-lg-0,.px-lg-0 { + padding-left: 0!important + } + + .p-lg-1 { + padding: 5px!important + } + + .pt-lg-1,.py-lg-1 { + padding-top: 5px!important + } + + .pr-lg-1,.px-lg-1 { + padding-right: 5px!important + } + + .pb-lg-1,.py-lg-1 { + padding-bottom: 5px!important + } + + .pl-lg-1,.px-lg-1 { + padding-left: 5px!important + } + + .p-lg-2 { + padding: 10px!important + } + + .pt-lg-2,.py-lg-2 { + padding-top: 10px!important + } + + .pr-lg-2,.px-lg-2 { + padding-right: 10px!important + } + + .pb-lg-2,.py-lg-2 { + padding-bottom: 10px!important + } + + .pl-lg-2,.px-lg-2 { + padding-left: 10px!important + } + + .p-lg-3 { + padding: 20px!important + } + + .pt-lg-3,.py-lg-3 { + padding-top: 20px!important + } + + .pr-lg-3,.px-lg-3 { + padding-right: 20px!important + } + + .pb-lg-3,.py-lg-3 { + padding-bottom: 20px!important + } + + .pl-lg-3,.px-lg-3 { + padding-left: 20px!important + } + + .p-lg-4 { + padding: 30px!important + } + + .pt-lg-4,.py-lg-4 { + padding-top: 30px!important + } + + .pr-lg-4,.px-lg-4 { + padding-right: 30px!important + } + + .pb-lg-4,.py-lg-4 { + padding-bottom: 30px!important + } + + .pl-lg-4,.px-lg-4 { + padding-left: 30px!important + } + + .p-lg-5 { + padding: 60px!important + } + + .pt-lg-5,.py-lg-5 { + padding-top: 60px!important + } + + .pr-lg-5,.px-lg-5 { + padding-right: 60px!important + } + + .pb-lg-5,.py-lg-5 { + padding-bottom: 60px!important + } + + .pl-lg-5,.px-lg-5 { + padding-left: 60px!important + } + + .m-lg-auto { + margin: auto!important + } + + .mt-lg-auto,.my-lg-auto { + margin-top: auto!important + } + + .mr-lg-auto,.mx-lg-auto { + margin-right: auto!important + } + + .mb-lg-auto,.my-lg-auto { + margin-bottom: auto!important + } + + .ml-lg-auto,.mx-lg-auto { + margin-left: auto!important + } + + [class*=cnjnctn-type-].cnjnctn-lg { + border-left: 0 solid transparent; + -webkit-box-orient: horizontal; + -webkit-box-direction: normal; + -ms-flex-direction: row; + flex-direction: row + } + + [class*=cnjnctn-type-].cnjnctn-lg>[class*=cnjnctn-col]:not(:first-child) { + margin-left: 1.4em; + margin-top: 0; + position: relative + } + + [class*=cnjnctn-type-].cnjnctn-lg>[class*=cnjnctn-col]:not(:first-child):after { + -o-border-image: linear-gradient(to bottom,#6f6f6f 0.3em,#6f6f6f 0.3em,transparent 0.3em,transparent 2.35em,#6f6f6f 2.35em,#6f6f6f 2.35em) 1 100%; + border-image: -webkit-gradient(linear,left top,left bottom,color-stop(0.3em,#6f6f6f),color-stop(0.3em,#6f6f6f),color-stop(0.3em,transparent),color-stop(2.35em,transparent),color-stop(2.35em,#6f6f6f),color-stop(2.35em,#6f6f6f)) 1 100%; + border-image: linear-gradient(to bottom,#6f6f6f 0.3em,#6f6f6f 0.3em,transparent 0.3em,transparent 2.35em,#6f6f6f 2.35em,#6f6f6f 2.35em) 1 100%; + border-left: 3px solid #6f6f6f; + margin-left: -1.6em + } + + .cnjnctn-type-or.cnjnctn-lg>[class*=cnjnctn-col]:not(:first-child):before { + margin-left: -3.3em + } + + .cnjnctn-type-and.cnjnctn-lg>[class*=cnjnctn-col]:not(:first-child):before { + border-width: 3px 0; + margin-left: -3.15em + } + + [class*=cnjnctn-type-].cnjnctn-lg>[class*=cnjnctn-col]:not(:first-child):before { + margin-top: .3em + } + + [class*=cnjnctn-type-].cnjnctn-lg>[class*=cnjnctn-col]:not(:last-child) { + margin-bottom: 0 + } +} + +@media screen and (min-width: 1200px) and (prefers-contrast:more) { + [class*=cnjnctn-type-].cnjnctn-lg>[class*=cnjnctn-col]:not(:first-child):after { + -o-border-image:linear-gradient(to bottom,#fff 0.3em,#fff 0.3em,transparent 0.3em,transparent 2.35em,#fff 2.35em,#fff 2.35em) 1 100%; + border-image: -webkit-gradient(linear,left top,left bottom,color-stop(0.3em,#fff),color-stop(0.3em,#fff),color-stop(0.3em,transparent),color-stop(2.35em,transparent),color-stop(2.35em,#fff),color-stop(2.35em,#fff)) 1 100%; + border-image: linear-gradient(to bottom,#fff 0.3em,#fff 0.3em,transparent 0.3em,transparent 2.35em,#fff 2.35em,#fff 2.35em) 1 100%; + border-left: none + } +} + +@media screen and (min-width: 1200px) { + [class*=cnjnctn-type-].cnjnctn-lg:not(.brdr-0)>[class*=cnjnctn-col] { + min-height:3em; + padding-left: 0; + padding-right: 0 + } +} + +@media screen and (max-width: 479px) { + header .brand.col-xs-5 { + float:none!important; + width: auto!important + } + + header .brand img,header .brand object { + padding-right: 0 + } + + #wb-info .gc-sub-footer img,#wb-info .gc-sub-footer object { + height: 25px; + margin-top: 15px; + max-width: 100%; + padding-right: 10px + } + + #wb-glb-mn { + float: none!important; + width: auto!important + } + + #wb-glb-mn ul { + width: 100% + } + + #wb-glb-mn ul.chvrn { + margin-left: auto + } + + #wb-glb-mn ul.chvrn:before { + border: 0 + } + + #wb-srch input { + max-width: inherit + } + + .gc-fld-srvy-container { + padding-bottom: 100% + } + + #mb-pnl { + min-width: 65% + } + + .dataTables_wrapper .dataTables_length { + width: 100% + } + + .wb-tabs.carousel-s2 [role=tablist] li.nxt,.wb-tabs.carousel-s2 [role=tablist] li.prv { + margin-right: 0 + } + + .wb-tabs.carousel-s2 [role=tablist] li.prv { + margin-left: 0 + } + + .wb-tabs.carousel-s2 [role=tablist] li.prv a { + padding: 10px 0 10px .4em + } + + .wb-tabs.carousel-s2 [role=tablist] li.nxt a { + padding: 10px 0 + } + + .wb-tabs.carousel-s2 [role=tablist] li.tab-count { + font-size: .9em; + margin-right: 5px + } + + .wb-tabs.carousel-s2 [role=tablist] li.plypause { + margin-right: 2% + } + + .wb-tabs.carousel-s2 [role=tablist] li.plypause a { + font-size: 1.3em; + margin-right: 0; + padding: 12px 10px 7px + } + + .prm-flpr .wb-tabs.carousel-s2 [role=tablist] li.plypause { + margin-top: 7px + } + + .prm-flpr .wb-tabs.carousel-s2 [role=tablist] li.plypause a { + font-size: 1em; + padding-bottom: 7.5px; + padding-top: 7.5px; + vertical-align: middle + } + + .prm-flpr .wb-tabs.carousel-s2 [role=tablist] li.tab-count { + height: 0; + margin-right: 0; + visibility: hidden; + width: 0 + } + + .prm-flpr .wb-tabs.carousel-s2 [role=tablist] li.tab-count .curr-count { + font-size: 1em + } +} + +@media screen and (min-width: 480px) and (max-width:767px) { + #wb-srch input { + max-width:50% + } +} + +@media screen and (min-width: 768px) and (max-width:991px) { + .clr-lft-sm { + clear:left + } + + .clr-rght-sm { + clear: right + } + + #wb-srch { + margin-bottom: 15px + } + + .pagedetails div:has(#gc-pft)+.wb-share-inited { + margin-top: 29px + } + + .cmpgn-sctns { + word-wrap: break-word + } +} + +@media screen and (min-width: 992px) and (max-width:1199px) { + .clr-lft-md { + clear:left + } + + .clr-rght-md { + clear: right + } + + .gcweb-menu [role=menu] [role=menu] { + width: 610px + } + + .gcweb-menu [role=menu] [role=menu] li { + width: 100% + } + + .gcweb-menu [role=menu] [role=menu] li:last-child { + left: auto; + margin-top: 1em; + position: relative; + top: auto + } + + .gcweb-menu [role=menu] [role=menu] [role=menu] li:last-child { + margin-top: 0 + } + + .gcweb-menu [role=menu] [role=menu] [role=menu] { + margin-bottom: 0; + padding-bottom: 0; + position: relative + } + + .sect-lnks { + margin-right: 15px; + width: 48.1% + } + + main.col-md-9 .sect-lnks { + width: 47.5% + } + + .lt-ie9 .sect-lnks { + width: 47% + } + + .lt-ie9 main.col-md-9 .sect-lnks { + width: 46% + } + + .home .home-your-gov { + background-image: url("https://www.canada.ca/content/dam/canada/carousel/bkg-home-yourgov-md.jpg"),url("../assets/bkg-home-yourgov-md.jpg") + } +} + +@media screen and (min-width: 1600px) { + .colcount-xl-2 { + -webkit-column-count:2; + -moz-column-count: 2; + column-count: 2 + } + + .colcount-xl-3 { + -webkit-column-count: 3; + -moz-column-count: 3; + column-count: 3 + } + + .colcount-xl-4 { + -webkit-column-count: 4; + -moz-column-count: 4; + column-count: 4 + } +} + +@media print { + .pg-brk-aft { + -webkit-column-break-after: always; + -moz-column-break-after: always; + break-after: always + } + + a[href]:after { + content: none + } + + #wb-tphp { + display: none + } + + header .brand { + margin-bottom: 0 + } + + #wb-bc .breadcrumb { + margin-bottom: 0 + } + + #wb-bc a[href]:after { + content: "" + } + + #wb-info { + display: none!important + } + + .tofpg { + display: none!important + } + + #wb-sm,.gcweb-menu { + display: none!important + } + + #wb-glb-mn { + display: none!important + } + + #wb-lng { + display: none!important + } + + #wb-srch { + display: none!important + } + + #wb-sec { + display: none!important + } + + .pagedetails details { + display: none!important + } + + .pagedetails .btn { + display: none!important + } + + #gc-pft { + display: none!important + } + + .fn-lnk,.wb-fnote .fn-rtn a { + background-color: transparent; + border: 0; + padding: 0 + } + + .wb-fnote { + border-left: 0; + border-right: 0; + margin-bottom: 1em; + margin-left: 0; + margin-right: 0 + } + + .wb-fnote dd { + border: 0; + display: inline-block; + width: 100% + } + + .wb-fnote .fn-rtn { + overflow: visible + } + + .olControlMousePosition,.olControlPanZoomBar,.wb-geomap-detail { + visibility: hidden + } + + .mfp-container,.mfp-wrap { + position: static + } + + .mfp-arrow,.mfp-close { + display: none!important + } + + .wb-mltmd.cc_on .wb-mm-cc,.wb-mm-ctrls,.wb-mm-ovrly { + display: none + } + + .wb-modal main>*,.wb-overlay-dlg main>* { + display: none + } + + .wb-modal main .mfp-content,.wb-modal main .wb-overlay.open,.wb-overlay-dlg main .mfp-content,.wb-overlay-dlg main .wb-overlay.open { + display: block + } + + .wb-overlay.open { + position: static + } + + .wb-overlay.open.no-print { + display: none + } + + .mfp-content:before,.wb-overlay.open:before { + content: attr(data-pgtitle); + display: block; + font-size: 2.5625rem + } + + .kwd,.tag,.typ { + font-weight: 700 + } + + .kwd,.tag { + color: #006 + } + + .atv,.str { + color: #060 + } + + .clo,.opn,.pun { + color: #440 + } + + .atn,.typ { + color: #404 + } + + .com { + color: #600; + font-style: italic + } + + .lit { + color: #044 + } + + .wb-tabs [role=tablist],.wb-tabs.print-active>.tabpanels>details.out .tgl-panel,.wb-tabs.print-active>.tabpanels>details>summary[aria-expanded=false]+.tgl-panel,.wb-tabs.print-active>.tabpanels>div.out { + display: none!important + } + + .wb-tabs.carousel-s1 [role=tabpanel],.wb-tabs.carousel-s2 [role=tabpanel] { + margin-bottom: .5em + } + + .wb-tabs.carousel-s1 figure,.wb-tabs.carousel-s2 figure { + -webkit-column-break-inside: avoid; + -moz-column-break-inside: avoid; + break-inside: avoid + } + + .wb-tabs.carousel-s1 figcaption,.wb-tabs.carousel-s2 figcaption { + border: 1px solid #000 + } + + .wb-tabs [role=tabpanel] { + display: block!important; + opacity: 1!important; + overflow: visible!important; + position: static!important; + -webkit-transform: none; + transform: none; + visibility: visible!important + } + + .wb-tabs [role=tabpanel] figcaption { + position: static + } + + .wb-tabs [role=tabpanel] summary { + display: list-item!important + } + + .wb-tabs [role=tabpanel].noheight { + max-height: none + } + + .wb-tabs>.tabpanels { + overflow: visible!important + } + + .gc-nttvs { + display: none + } + + .features { + display: none!important + } + + .followus { + display: none!important + } + + ol.lst-stps>li { + -webkit-column-break-inside: avoid; + -moz-column-break-inside: avoid; + break-inside: avoid; + padding-top: 1em + } + + .jumbotron.pagebrand figcaption { + position: static + } + + .cmpgn-sctns { + margin-top: 20px + } + + .application-bar h2 { + font-size: 34px + } +} + +.test-textSpacing * { + letter-spacing: .12em!important; + line-height: 1.5em!important; + word-spacing: 0.16em!important +} + +.test-textSpacing p { + margin-bottom: 2em!important +} + +:root { + --supports-has: false +} + +@supports selector(:has(*)) { + :root { + --supports-has: true + } +} diff --git a/netlify/test/assets/token.js b/netlify/test/assets/token.js new file mode 100644 index 0000000..4ebeca2 --- /dev/null +++ b/netlify/test/assets/token.js @@ -0,0 +1,32 @@ +// This file is to facilitate testing of the search pages through GitHub pages + +const formToken = document.getElementById( "sr-token" ); +const searchElm = document.querySelector( "[data-gc-search]" ); +const sessionName = "searchToken"; +const tokenSaved = sessionStorage.getItem( sessionName ); + +if( searchElm && tokenSaved ) { + let configData = JSON.parse( searchElm.dataset.gcSearch ); + + configData.accessToken = tokenSaved; + searchElm.dataset.gcSearch = JSON.stringify( configData ); +} + +if( formToken ) { + formToken.onsubmit = function( e ) { + e.preventDefault(); + + let formData = new FormData( formToken ); + let statusElm = document.getElementById( "sr-token-ok" ); + let tmpElm = document.createElement( "DIV" ); + + tmpElm.innerHTML = formData.get( "token" ); + formData = tmpElm.textContent; + sessionStorage.setItem( sessionName, formData ); + + statusElm.hidden = false; + const hideFeedback = setTimeout( function() { statusElm.hidden = true; }, 5000 ); + + return false; + }; +} diff --git a/netlify/test/budget.html b/netlify/test/budget.html new file mode 100644 index 0000000..4cdca9f --- /dev/null +++ b/netlify/test/budget.html @@ -0,0 +1,217 @@ + + + + + + +Sample advanced search for Budget (custom) - Canada.ca + + + + + + + + + + + + + + + + + +
    + +
    +
    +
    + + + + +
    +
    + + +
    + + + + + + +
    + +

    Sample advanced search for Budget (custom)

    + +
    +

    Try this out! Click on the following link to search for "Taxes" with the search results ordered by dates descending, instead of relevance.

    +

    Sort results by date

    +

    Note: Current implementation of the sorting feature requires server-side code or additional custom JS to make dynamic with the search query.

    +
    + + + + + +
    + + + + +
    +

    Page details

    +
    Date modified:
    +
    +
    +
    + +
    + + + + + + + + + + + diff --git a/netlify/test/demoted/v1_1_0_srb-en.html b/netlify/test/demoted/v1_1_0_srb-en.html new file mode 100644 index 0000000..63d385e --- /dev/null +++ b/netlify/test/demoted/v1_1_0_srb-en.html @@ -0,0 +1,203 @@ + + + + + + +Basic search page for Governement of Canada using Headless - Canada.ca + + + + + + + + + + + + + + + + + + + +
    +
    +
    + +
    +

    Language selection

    + +
    + + + + + +
    +
    + + +
    + + + + + + +
    + +

    Basic search page for Governement of Canada using Headless

    + + + + +
    +

    Perform an advanced search

    + + +

    Expected output for the result section

    +
    + Output for Results section + [To be completed, see Connector.js for reference until then] +
    + +
    +

    Page details

    +
    Date modified:
    +
    +
    +
    + +
    + + + + + + + + + diff --git a/netlify/test/demoted/v1_1_0_srb-fr.html b/netlify/test/demoted/v1_1_0_srb-fr.html new file mode 100644 index 0000000..2d7abd3 --- /dev/null +++ b/netlify/test/demoted/v1_1_0_srb-fr.html @@ -0,0 +1,203 @@ + + + + + + +Résultats de la recherche (base) pour le gouvernement du Canada avec Headless - Canada.ca + + + + + + + + + + + + + + + + + + + +
    +
    +
    + +
    +

    Sélection de la langue

    + +
    + + + + + +
    +
    + + +
    + + + + + + +
    + +

    Résultats de la recherche (base) pour le gouvernement du Canada avec Headless

    + + + + +
    +

    Effectuer une recherche avancée

    + + +

    Section Résultats attendu pour la section de résultats

    +
    + Section Résultats générée + [À compléter, voir Connector.js comme référence pour l'instant] +
    + +
    +

    Détails de la page

    +
    Date de modification :
    +
    +
    +
    + +
    + + + + + + + + + diff --git a/netlify/test/demoted/v1_1_0_src-en.html b/netlify/test/demoted/v1_1_0_src-en.html new file mode 100644 index 0000000..a2381ac --- /dev/null +++ b/netlify/test/demoted/v1_1_0_src-en.html @@ -0,0 +1,211 @@ + + + + + + +Contextual search page (ESDC) for Governement of Canada using Headless - Canada.ca + + + + + + + + + + + + + + + + + + + +
    +
    +
    + +
    +

    Language selection

    + +
    + + + + + +
    +
    + + +
    + + + + + + +
    + +

    Contextual search page (ESDC) for Governement of Canada using Headless

    + +
    +
    +
    + +
    + +
    +
    + + +
    +

    Search all Government of Canada websites

    +

    Don't include personal information (telephone, email, SIN, financial, medical, or work details).

    +
    + + +
    + + +

    Expected output for the result section

    +
    + Output for Results section + [To be completed, see Connector.js for reference until then] +
    + +
    +

    Page details

    +
    Date modified:
    +
    +
    +
    + +
    + + + + + + + + + diff --git a/netlify/test/demoted/v1_1_0_src-fr.html b/netlify/test/demoted/v1_1_0_src-fr.html new file mode 100644 index 0000000..2cae278 --- /dev/null +++ b/netlify/test/demoted/v1_1_0_src-fr.html @@ -0,0 +1,211 @@ + + + + + + +Résultats de la recherche (contextuels à EDSC) pour le gouvernement du Canada avec Headless - Canada.ca + + + + + + + + + + + + + + + + + + + +
    +
    +
    + +
    +

    Sélection de la langue

    + +
    + + + + + +
    +
    + + +
    + + + + + + +
    + +

    Résultats de la recherche (contextuels à EDSC) pour le gouvernement du Canada avec Headless

    + +
    +
    +
    + +
    + +
    +
    + + +
    +

    Effectuer une recherche sur tous les sites Web du gouvernement du Canada

    +

    N'incluez pas de renseignements personnels (téléphone, courriel, NAS, renseignements financiers, médicaux ou professionnels).

    +
    + + +
    + + +

    Section Résultats attendu pour la section de résultats

    +
    + Section Résultats générée + [À compléter, voir Connector.js comme référence pour l'instant] +
    + +
    +

    Détails de la page

    +
    Date de modification :
    +
    +
    +
    + +
    + + + + + + + + + diff --git a/netlify/test/election.html b/netlify/test/election.html new file mode 100644 index 0000000..bba2932 --- /dev/null +++ b/netlify/test/election.html @@ -0,0 +1,207 @@ + + + + + + +Sample advanced search for Elections (custom) - Canada.ca + + + + + + + + + + + + + + + + + + + +
    +
    +
    + + + + +
    +
    + + +
    + + + + + + +
    + +

    Sample advanced search for Elections (custom)

    + + + + +
    + +
    +

    Page details

    +
    Date modified:
    +
    +
    +
    + +
    + + + + + + + + + + + diff --git a/netlify/test/gazette.html b/netlify/test/gazette.html new file mode 100644 index 0000000..24782a7 --- /dev/null +++ b/netlify/test/gazette.html @@ -0,0 +1,203 @@ + + + + + + +Sample advanced search for Gazette (custom) - Canada.ca + + + + + + + + + + + + + + + + + + + +
    +
    +
    + + + + +
    +
    + + +
    + + + + + + +
    + +

    Sample advanced search for Gazette (custom)

    + + + + +
    + +
    +

    Page details

    +
    Date modified:
    +
    +
    +
    + +
    + + + + + + + + + + + diff --git a/netlify/test/index.html b/netlify/test/index.html new file mode 100644 index 0000000..bef28a0 --- /dev/null +++ b/netlify/test/index.html @@ -0,0 +1,200 @@ + + + + + + +Add token to test search pages - Canada.ca + + + + + + + + + + + + + + + + + + + +
    +
    +
    + + + + + +
    +

    Search

    +
    +
    + + + +
    +
    + +
    +
    +
    + + +
    +
    + + +
    + + + + + + +
    + +

    Add token to test search pages

    +
    +

    Use the form below to facilitate testing search pages by saving a token for the duration of your session. Please refer to the Readme file to get a valid access token or API key.

    +
    + +
    +
    + + +
    + + + +
    + +
    +

    Page details

    +
    Date modified:
    +
    +
    +
    + +
    + + + + + + + diff --git a/netlify/test/newsadv-en.html b/netlify/test/newsadv-en.html new file mode 100644 index 0000000..8a09a22 --- /dev/null +++ b/netlify/test/newsadv-en.html @@ -0,0 +1,394 @@ + + + + + + +News Advanced Search user interface - Canada.ca + + + + + + + + + + + + + + + + + + + +
    +
    +
    + +
    +

    Language selection

    + +
    + + + + + +
    +
    + + +
    + + + + + + +
    + +

    News Advanced Search user interface

    + + +
    + + +
    + + +
    + + + + +

    Expected output for the result section

    +
    + Output for Results section + [To be completed, see Connector.js for reference until then] +
    + +
    +

    Page details

    +
    Date modified:
    +
    +
    +
    + +
    + + + + + + + + + + + diff --git a/netlify/test/newsadv-fr.html b/netlify/test/newsadv-fr.html new file mode 100644 index 0000000..4cbc18e --- /dev/null +++ b/netlify/test/newsadv-fr.html @@ -0,0 +1,426 @@ + + + + + + +Interface utilisateur de la recherche avancée d'actualités - Canada.ca + + + + + + + + + + + + + + + + + + + +
    +
    +
    + +
    +

    Sélection de la langue

    + +
    + + + + + +
    +
    + + +
    + + + + + + +
    + +

    Interface utilisateur de la recherche avancée d'actualités

    + + + + + +
    + + + + +

    Section Résultats attendu pour la section de résultats

    +
    + Section Résultats générée + [À compléter, voir Connector.js comme référence pour l'instant] +
    + +
    +

    Détails de la page

    +
    Date de modification :
    +
    +
    +
    + +
    + + + + + + + + + + + diff --git a/netlify/test/no-qs-en.html b/netlify/test/no-qs-en.html new file mode 100644 index 0000000..31a253f --- /dev/null +++ b/netlify/test/no-qs-en.html @@ -0,0 +1,213 @@ + + + + + + +Search page without Query Suggestions (QS) - Canada.ca + + + + + + + + + + + + + + + + + + + +
    +
    +
    + +
    +

    Language selection

    + +
    + + + + + +
    +
    + + +
    + + + + + + +
    + +

    Search page without Query Suggestions (QS)

    + + + + +
    +

    Perform an advanced search

    + + +

    Expected output for the result section

    +
    + Output for Results section + [To be completed, see Connector.js for reference until then] +
    + +
    +

    Page details

    +
    Date modified:
    +
    +
    +
    + +
    + + + + + + + + + + + diff --git a/netlify/test/no-qs-fr.html b/netlify/test/no-qs-fr.html new file mode 100644 index 0000000..5e35edb --- /dev/null +++ b/netlify/test/no-qs-fr.html @@ -0,0 +1,213 @@ + + + + + + +Résultats de la recherche sans Suggestions de termes - Canada.ca + + + + + + + + + + + + + + + + + + + +
    +
    +
    + +
    +

    Sélection de la langue

    + +
    + + + + + +
    +
    + + +
    + + + + + + +
    + +

    Résultats de la recherche sans Suggestions de termes

    + + + + +
    +

    Effectuer une recherche avancée

    + + +

    Section Résultats attendu pour la section de résultats

    +
    + Section Résultats générée + [À compléter, voir Connector.js comme référence pour l'instant] +
    + +
    +

    Détails de la page

    +
    Date de modification :
    +
    +
    +
    + +
    + + + + + + + + + + + diff --git a/netlify/test/no-token.html b/netlify/test/no-token.html new file mode 100644 index 0000000..6e1c95f --- /dev/null +++ b/netlify/test/no-token.html @@ -0,0 +1,213 @@ + + + + + + +Basic search page for Governement of Canada using Headless - Canada.ca + + + + + + + + + + + + + + + + + + + +
    +
    +
    + +
    +

    Language selection

    + +
    + + + + + +
    +
    + + +
    + + + + + + +
    + +

    Basic search page for Governement of Canada using Headless

    + + + + +
    +

    Perform an advanced search

    + + +

    Expected output for the result section

    +
    + Output for Results section + [To be completed, see Connector.js for reference until then] +
    + +
    +

    Page details

    +
    Date modified:
    +
    +
    +
    + +
    + + + + + + + + + + + diff --git a/netlify/test/qs-en-topright-custom.html b/netlify/test/qs-en-topright-custom.html new file mode 100644 index 0000000..153b283 --- /dev/null +++ b/netlify/test/qs-en-topright-custom.html @@ -0,0 +1,222 @@ + + + + + + +QS in top right search box - Canada.ca + + + + + + + + + + + + + + + + + + + +
    +
    +
    + +
    +

    Language selection

    + +
    + + + + + + +
    +

    Search

    +
    +
    + + + +
    +
    + +
    +
    +
    + + +
    +
    + + +
    + + + + + + +
    + +

    QS in top right search box

    + +
    +
    + Lorem ipsum dolor sit amet consectetur adipisicing elit. Nihil cumque quos quia eaque impedit obcaecati quo molestiae quod ratione nostrum. Autem omnis hic possimus veritatis temporibus earum, quas enim ipsa! +
    + + +

    Expected output for the result section

    +
    + Output for Results section + [To be completed, see Connector.js for reference until then] +
    + +
    +

    Page details

    +
    Date modified:
    +
    +
    +
    + +
    + + + + + + + + + + + diff --git a/netlify/test/qs-en-topright.html b/netlify/test/qs-en-topright.html new file mode 100644 index 0000000..424ea50 --- /dev/null +++ b/netlify/test/qs-en-topright.html @@ -0,0 +1,220 @@ + + + + + + +QS in top right search box - Canada.ca + + + + + + + + + + + + + + + + + + + +
    +
    +
    + +
    +

    Language selection

    + +
    + + + + + + +
    +

    Search

    +
    +
    + + + +
    +
    + +
    +
    +
    + + +
    +
    + + +
    + + + + + + +
    + +

    QS in top right search box

    + +
    +
    + Lorem ipsum dolor sit amet consectetur adipisicing elit. Nihil cumque quos quia eaque impedit obcaecati quo molestiae quod ratione nostrum. Autem omnis hic possimus veritatis temporibus earum, quas enim ipsa! +
    + + +

    Expected output for the result section

    +
    + Output for Results section + [To be completed, see Connector.js for reference until then] +
    + +
    +

    Page details

    +
    Date modified:
    +
    +
    +
    + +
    + + + + + + + + + + + diff --git a/netlify/test/qs-en.html b/netlify/test/qs-en.html new file mode 100644 index 0000000..3c71425 --- /dev/null +++ b/netlify/test/qs-en.html @@ -0,0 +1,214 @@ + + + + + + +Search page with 10 Query Suggestions after at least 2 character entered - Canada.ca + + + + + + + + + + + + + + + + + + + +
    +
    +
    + +
    +

    Language selection

    + +
    + + + + + +
    +
    + + +
    + + + + + + +
    + +

    Search page with 10 Query Suggestions after at least 2 character entered

    + + + + +
    +

    Perform an advanced search

    + + +

    Expected output for the result section

    +
    + Output for Results section + [To be completed, see Connector.js for reference until then] +
    + +
    +

    Page details

    +
    Date modified:
    +
    +
    +
    + +
    + + + + + + + + + + + diff --git a/netlify/test/qs-fr-topright-custom.html b/netlify/test/qs-fr-topright-custom.html new file mode 100644 index 0000000..8ad1303 --- /dev/null +++ b/netlify/test/qs-fr-topright-custom.html @@ -0,0 +1,221 @@ + + + + + + +QS dans la boite de recherche en haut à droite - Canada.ca + + + + + + + + + + + + + + + + + + + +
    +
    +
    + +
    +

    Sélection de la langue

    + +
    + + + + + + +
    +

    Recherche

    +
    +
    + + + +
    +
    + +
    +
    +
    + + +
    +
    + + +
    + + + + + + +
    + +

    QS dans la boite de recherche en haut à droite

    + +
    +
    + Lorem ipsum dolor sit amet consectetur adipisicing elit. Nihil cumque quos quia eaque impedit obcaecati quo molestiae quod ratione nostrum. Autem omnis hic possimus veritatis temporibus earum, quas enim ipsa! +
    + + +

    Résultats attendus pour la section des résultats

    +
    + Sortie des résultats de recherche +
    + +
    +

    Détails de la page

    +
    Date de modification :
    +
    +
    +
    + +
    + + + + + + + + + + + diff --git a/netlify/test/qs-fr-topright.html b/netlify/test/qs-fr-topright.html new file mode 100644 index 0000000..d610e49 --- /dev/null +++ b/netlify/test/qs-fr-topright.html @@ -0,0 +1,219 @@ + + + + + + +QS dans la boite de recherche en haut à droite - Canada.ca + + + + + + + + + + + + + + + + + + + +
    +
    +
    + +
    +

    Sélection de la langue

    + +
    + + + + + + +
    +

    Recherche

    +
    +
    + + + +
    +
    + +
    +
    +
    + + +
    +
    + + +
    + + + + + + +
    + +

    QS dans la boite de recherche en haut à droite

    + +
    +
    + Lorem ipsum dolor sit amet consectetur adipisicing elit. Nihil cumque quos quia eaque impedit obcaecati quo molestiae quod ratione nostrum. Autem omnis hic possimus veritatis temporibus earum, quas enim ipsa! +
    + + +

    Résultats attendus pour la section des résultats

    +
    + Sortie des résultats de recherche +
    + +
    +

    Détails de la page

    +
    Date de modification :
    +
    +
    +
    + +
    + + + + + + + + + + + diff --git a/netlify/test/qs-fr.html b/netlify/test/qs-fr.html new file mode 100644 index 0000000..dd6666a --- /dev/null +++ b/netlify/test/qs-fr.html @@ -0,0 +1,214 @@ + + + + + + +Recherche avec 10 Suggestions de termes avec minimum de 2 caractères entrés - Canada.ca + + + + + + + + + + + + + + + + + + + +
    +
    +
    + +
    +

    Sélection de la langue

    + +
    + + + + + +
    +
    + + +
    + + + + + + +
    + +

    Recherche avec 10 Suggestions de termes avec minimum de 2 caractères entrés

    + + + + +
    +

    Effectuer une recherche avancée

    + + +

    Section Résultats attendu pour la section de résultats

    +
    + Section Résultats générée + [À compléter, voir Connector.js comme référence pour l'instant] +
    + +
    +

    Détails de la page

    +
    Date de modification :
    +
    +
    +
    + +
    + + + + + + + + + + + diff --git a/netlify/test/sra-en.html b/netlify/test/sra-en.html new file mode 100644 index 0000000..942463d --- /dev/null +++ b/netlify/test/sra-en.html @@ -0,0 +1,253 @@ + + + + + + +Advanced search page for Governement of Canada using Headless - Canada.ca + + + + + + + + + + + + + + + + + + + +
    +
    +
    + +
    +

    Language selection

    + +
    + + + + + +
    +
    + + +
    + + + + + + +
    + +

    Advanced search page for Governement of Canada using Headless

    + + +
    + + +
    + + +
    + + +

    Expected output for the result section

    +
    + Output for Results section + [To be completed, see Connector.js for reference until then] +
    + +
    +

    Page details

    +
    Date modified:
    +
    +
    +
    + +
    + + + + + + + + + + + diff --git a/netlify/test/sra-fr.html b/netlify/test/sra-fr.html new file mode 100644 index 0000000..03d9a66 --- /dev/null +++ b/netlify/test/sra-fr.html @@ -0,0 +1,253 @@ + + + + + + +Résultats de la recherche (avancée) pour le gouvernement du Canada avec Headless - Canada.ca + + + + + + + + + + + + + + + + + + + +
    +
    +
    + +
    +

    Sélection de la langue

    + +
    + + + + + +
    +
    + + +
    + + + + + + +
    + +

    Résultats de la recherche (avancée) pour le gouvernement du Canada avec Headless

    + + + + + +
    + + +

    Section Résultats attendu pour la section de résultats

    +
    + Section Résultats générée + [À compléter, voir Connector.js comme référence pour l'instant] +
    + +
    +

    Détails de la page

    +
    Date de modification :
    +
    +
    +
    + +
    + + + + + + + + + + + diff --git a/netlify/test/srb-en.html b/netlify/test/srb-en.html new file mode 100644 index 0000000..db27b24 --- /dev/null +++ b/netlify/test/srb-en.html @@ -0,0 +1,212 @@ + + + + + + +Basic search page for Governement of Canada using Headless - Canada.ca + + + + + + + + + + + + + + + + + + + +
    +
    +
    + +
    +

    Language selection

    + +
    + + + + + +
    +
    + + +
    + + + + + + +
    + +

    Basic search page for Governement of Canada using Headless

    + + + + +
    +

    Perform an advanced search

    + + +

    Expected output for the result section

    +
    + Output for Results section + [To be completed, see Connector.js for reference until then] +
    + +
    +

    Page details

    +
    Date modified:
    +
    +
    +
    + +
    + + + + + + + + + + + diff --git a/netlify/test/srb-fr.html b/netlify/test/srb-fr.html new file mode 100644 index 0000000..12bd0ac --- /dev/null +++ b/netlify/test/srb-fr.html @@ -0,0 +1,212 @@ + + + + + + +Résultats de la recherche (base) pour le gouvernement du Canada avec Headless - Canada.ca + + + + + + + + + + + + + + + + + + + +
    +
    +
    + +
    +

    Sélection de la langue

    + +
    + + + + + +
    +
    + + +
    + + + + + + +
    + +

    Résultats de la recherche (base) pour le gouvernement du Canada avec Headless

    + + + + +
    +

    Effectuer une recherche avancée

    + + +

    Section Résultats attendu pour la section de résultats

    +
    + Section Résultats générée + [À compléter, voir Connector.js comme référence pour l'instant] +
    + +
    +

    Détails de la page

    +
    Date de modification :
    +
    +
    +
    + +
    + + + + + + + + + + + diff --git a/netlify/test/src-en.html b/netlify/test/src-en.html new file mode 100644 index 0000000..b51505e --- /dev/null +++ b/netlify/test/src-en.html @@ -0,0 +1,221 @@ + + + + + + +Contextual search page (ESDC) for Governement of Canada using Headless - Canada.ca + + + + + + + + + + + + + + + + + + + +
    +
    +
    + +
    +

    Language selection

    + +
    + + + + + +
    +
    + + +
    + + + + + + +
    + +

    Contextual search page (ESDC) for Governement of Canada using Headless

    + +
    +
    +
    + +
    + +
    +
    + + +
    +

    Search all Government of Canada websites

    +

    Don't include personal information (telephone, email, SIN, financial, medical, or work details).

    +
    + + +
    + + +

    Expected output for the result section

    +
    + Output for Results section + [To be completed, see Connector.js for reference until then] +
    + +
    +

    Page details

    +
    Date modified:
    +
    +
    +
    + +
    + + + + + + + + + + + diff --git a/netlify/test/src-fr.html b/netlify/test/src-fr.html new file mode 100644 index 0000000..ce666a4 --- /dev/null +++ b/netlify/test/src-fr.html @@ -0,0 +1,221 @@ + + + + + + +Résultats de la recherche (contextuels à EDSC) pour le gouvernement du Canada avec Headless - Canada.ca + + + + + + + + + + + + + + + + + + + +
    +
    +
    + +
    +

    Sélection de la langue

    + +
    + + + + + +
    +
    + + +
    + + + + + + +
    + +

    Résultats de la recherche (contextuels à EDSC) pour le gouvernement du Canada avec Headless

    + +
    +
    +
    + +
    + +
    +
    + + +
    +

    Effectuer une recherche sur tous les sites Web du gouvernement du Canada

    +

    N'incluez pas de renseignements personnels (téléphone, courriel, NAS, renseignements financiers, médicaux ou professionnels).

    +
    + + +
    + + +

    Section Résultats attendu pour la section de résultats

    +
    + Section Résultats générée + [À compléter, voir Connector.js comme référence pour l'instant] +
    + +
    +

    Détails de la page

    +
    Date de modification :
    +
    +
    +
    + +
    + + + + + + + + + + + diff --git a/netlify/test/srf-en.html b/netlify/test/srf-en.html new file mode 100644 index 0000000..12d9c01 --- /dev/null +++ b/netlify/test/srf-en.html @@ -0,0 +1,254 @@ + + + + + + +Search facets/filters results - Canada.ca + + + + + + + + + + + + + + + + + + + +
    +
    +
    + +
    +

    Language selection

    + +
    + + + + + +
    +
    + + +
    + + + + + + +
    + +

    Search facets/filters results

    + + + + +
    + + + + +

    Expected output for the result section

    +
    + Output for Results section + [To be completed, see Connector.js for reference until then] +
    + +
    +

    Page details

    +
    Date modified:
    +
    +
    +
    + +
    + + + + + + + + + + + diff --git a/netlify/test/template.html b/netlify/test/template.html new file mode 100644 index 0000000..a47224b --- /dev/null +++ b/netlify/test/template.html @@ -0,0 +1,247 @@ + + + + + + +Search page with custom templates for summary and results - Canada.ca + + + + + + + + + + + + + + + + + + + +
    +
    +
    + + + + +
    +
    + + +
    + + + + + + +
    + +

    Search page with custom templates for summary and results

    + + + + +
    +

    Perform an advanced search

    + + + + + + + + + + + + + +

    Expected output for the result section

    +
    + Output for Results section + [To be completed, see Connector.js for reference until then] +
    + +
    +

    Page details

    +
    Date modified:
    +
    +
    +
    + +
    + + + + + + + + + + + From 6313598f615ea3cbe56bb6fe9d0dc243f3d61ce4 Mon Sep 17 00:00:00 2001 From: Cody Foss Date: Thu, 19 Mar 2026 18:19:59 -0600 Subject: [PATCH 05/22] Latest fixes + searchable facets --- src/connector.css | 3 +- src/connector.js | 165 +++++++++++++++++++++++++++++++++++----------- test/srf-en.html | 13 +--- 3 files changed, 133 insertions(+), 48 deletions(-) diff --git a/src/connector.css b/src/connector.css index a7205fb..680a94c 100644 --- a/src/connector.css +++ b/src/connector.css @@ -79,6 +79,7 @@ left: 0; } -.gc-date-pickers .form-control { +.gc-date-pickers .form-control, +.gc-facet-search { width: 100%; } diff --git a/src/connector.js b/src/connector.js index 408ead4..c976ed9 100644 --- a/src/connector.js +++ b/src/connector.js @@ -80,6 +80,8 @@ let facetControllers = []; let facetStates = []; let dateFilterControllers = []; let dateFilterStates = []; +let facetSearchTimers = []; +let facetSearchQueries = []; // UI states let updateSearchBoxFromState = false; @@ -1180,6 +1182,7 @@ function initEngine() { didYouMeanElement.textContent = ""; pagerElement.textContent = ""; pagerManuallyCleared = true; + updateFacetLayoutVisibility(true) // Show no results message in Query Summary if no query entered querySummaryElement.innerHTML = noResultTemplateHTML; @@ -1624,7 +1627,15 @@ function updateFacetState( index, newState ) { return; } - // Preserve the open/closed state across re-renders, then clear children + facetEl.hidden = newState.values.length === 0; + if ( facetEl.hidden ) { + updateFacetLayoutVisibility(); + return; + } + + // Preserve search focus and open/closed state across re-renders + const searchInputId = 'gc-facet-search-' + index; + const wasSearchFocused = document.activeElement?.id === searchInputId; const wasOpen = facetEl.open; facetEl.textContent = ''; facetEl.open = wasOpen; @@ -1642,55 +1653,104 @@ function updateFacetState( index, newState ) { } facetEl.appendChild( summaryEl ); - // Values list + // Facet search input (only if the controller exposes facetSearch) + // facetSearch methods live on the sub-controller; state is nested in newState.facetSearch + const facetSearch = facetControllers[ index ].facetSearch; + const facetSearchState = newState.facetSearch; + const isSearching = ( facetSearchState?.query?.length ?? 0 ) > 0; + + if ( facetSearchState ) { + const searchInput = document.createElement( 'input' ); + searchInput.type = 'search'; + searchInput.id = searchInputId; + searchInput.className = 'form-control input-sm mrgn-tp-sm mrgn-bttm-sm gc-facet-search'; + searchInput.placeholder = lang === 'fr' ? 'Filtrer...' : 'Filter...'; + searchInput.setAttribute( 'aria-label', ( lang === 'fr' ? 'Filtrer ' : 'Filter ' ) + config.label ); + searchInput.value = facetSearchQueries[ index ] ?? ''; + searchInput.oninput = () => { + clearTimeout( facetSearchTimers[ index ] ); + const query = searchInput.value; + facetSearchQueries[ index ] = query; + if ( query.length >= 2 ) { + facetSearchTimers[ index ] = setTimeout( () => { + facetSearch.updateText( query ); + facetSearch.search(); + }, 300 ); + } else { + facetSearch.updateText( '' ); + } + }; + facetEl.appendChild( searchInput ); + if ( wasSearchFocused ) { searchInput.focus(); } + } + + // Values list — show facet search results when a query is active, otherwise regular values const listEl = document.createElement( 'ul' ); listEl.className = 'list-unstyled gc-facet-values'; - newState.values.forEach( ( value ) => { - const liEl = document.createElement( 'li' ); - const isSelected = value.state === 'selected'; - const countFormatted = value.numberOfResults.toLocaleString( params.lang ); - const valueLabel = stripHtml( value.value ); - - if ( isSelected ) { - const removeHintEl = document.createElement( 'span' ); - removeHintEl.className = 'wb-inv'; - removeHintEl.textContent = lang === 'fr' ? 'Enlever le filtre actif:' : 'Remove active filter:'; - liEl.appendChild( removeHintEl ); - } + if ( isSearching ) { + facetSearchState.values.forEach( ( result ) => { + const liEl = document.createElement( 'li' ); + const valueLink = document.createElement( 'a' ); + valueLink.href = '#'; + valueLink.onclick = ( e ) => { e.preventDefault(); facetSearchQueries[ index ] = ''; facetSearch.select( result ); }; + valueLink.appendChild( document.createTextNode( stripHtml( result.displayValue ) ) ); + + const countEl = document.createElement( 'span' ); + countEl.className = 'gc-facet-count'; + countEl.innerHTML = ' (' + result.count.toLocaleString( lang ) + + ' ' + ( lang === 'fr' ? 'résultats' : 'results' ) + ')'; + + liEl.appendChild( valueLink ); + liEl.appendChild( countEl ); + listEl.appendChild( liEl ); + } ); + } else { + newState.values.forEach( ( value ) => { + const liEl = document.createElement( 'li' ); + const isSelected = value.state === 'selected'; + const countFormatted = value.numberOfResults.toLocaleString( params.lang ); + const valueLabel = stripHtml( value.value ); + + if ( isSelected ) { + const removeHintEl = document.createElement( 'span' ); + removeHintEl.className = 'wb-inv'; + removeHintEl.textContent = lang === 'fr' ? 'Enlever le filtre actif:' : 'Remove active filter:'; + liEl.appendChild( removeHintEl ); + } - const valueLink = document.createElement( 'a' ); - valueLink.href = '#'; - valueLink.onclick = ( e ) => { e.preventDefault(); facetControllers[ index ].toggleSelect( value ); }; + const valueLink = document.createElement( 'a' ); + valueLink.href = '#'; + valueLink.onclick = ( e ) => { e.preventDefault(); facetControllers[ index ].toggleSelect( value ); }; - if ( isSelected ) { - const iconEl = document.createElement( 'span' ); - iconEl.className = 'glyphicon glyphicon-ok mrgn-rght-sm'; - iconEl.setAttribute( 'aria-hidden', 'true' ); - valueLink.appendChild( iconEl ); - valueLink.appendChild( document.createTextNode( '\u00a0' ) ); - } + if ( isSelected ) { + const iconEl = document.createElement( 'span' ); + iconEl.className = 'glyphicon glyphicon-ok mrgn-rght-sm'; + iconEl.setAttribute( 'aria-hidden', 'true' ); + valueLink.appendChild( iconEl ); + valueLink.appendChild( document.createTextNode( '\u00a0' ) ); + } - valueLink.appendChild( document.createTextNode( valueLabel ) ); + valueLink.appendChild( document.createTextNode( valueLabel ) ); - // Count sits outside as plain text so only the label looks like a link - const countEl = document.createElement( 'span' ); - countEl.className = 'gc-facet-count'; - countEl.innerHTML = ' (' + countFormatted - + ' ' + ( lang === 'fr' ? 'résultats' : 'results' ) + ')'; + const countEl = document.createElement( 'span' ); + countEl.className = 'gc-facet-count'; + countEl.innerHTML = ' (' + countFormatted + + ' ' + ( lang === 'fr' ? 'résultats' : 'results' ) + ')'; - liEl.appendChild( valueLink ); - liEl.appendChild( countEl ); - listEl.appendChild( liEl ); - } ); + liEl.appendChild( valueLink ); + liEl.appendChild( countEl ); + listEl.appendChild( liEl ); + } ); + } facetEl.appendChild( listEl ); - // Show more / show less — btn-link with chevron, matching the template + // Show more / show less — hidden while searching (search has its own pagination) const showMoreBtn = document.createElement( 'button' ); showMoreBtn.type = 'button'; showMoreBtn.className = 'btn btn-link small gc-facet-show-more pl-0'; - showMoreBtn.hidden = !newState.canShowMoreValues; + showMoreBtn.hidden = isSearching || !newState.canShowMoreValues; showMoreBtn.onclick = () => { facetControllers[ index ].showMoreValues(); }; showMoreBtn.innerHTML = ( lang === 'fr' ? 'Afficher davantage' : 'Show more' ) + ' '; @@ -1698,7 +1758,7 @@ function updateFacetState( index, newState ) { const showLessBtn = document.createElement( 'button' ); showLessBtn.type = 'button'; showLessBtn.className = 'btn btn-link small gc-facet-show-less pl-0'; - showLessBtn.hidden = !newState.canShowLessValues; + showLessBtn.hidden = isSearching || !newState.canShowLessValues; showLessBtn.onclick = () => { facetControllers[ index ].showLessValues(); }; showLessBtn.innerHTML = ( lang === 'fr' ? 'Afficher moins' : 'Show less' ) + ' '; @@ -1706,9 +1766,33 @@ function updateFacetState( index, newState ) { facetEl.appendChild( showMoreBtn ); facetEl.appendChild( showLessBtn ); + updateFacetLayoutVisibility(); updateClearAllVisibility(); } +function updateFacetLayoutVisibility(forceHidden = false) { + const toggleBtn = document.getElementById( 'gc-facet-toggle' ); + const resultsCol = document.getElementById( 'gc-results-col' ); + if ( !toggleBtn || !facetSidebarElement || !resultsCol ) { return; } + + const hasFacetContent = facetStates.some( ( s ) => s?.values?.length > 0 ); + + if ( !hasFacetContent || forceHidden ) { + toggleBtn.hidden = true; + facetSidebarElement.hidden = true; + resultsCol.classList.remove( 'col-md-8' ); + resultsCol.classList.add( 'col-md-12' ); + } else { + toggleBtn.hidden = false; + const isExpanded = toggleBtn.getAttribute( 'aria-expanded' ) === 'true'; + facetSidebarElement.hidden = !isExpanded; + if ( isExpanded ) { + resultsCol.classList.remove( 'col-md-12' ); + resultsCol.classList.add( 'col-md-8' ); + } + } +} + function updateClearAllVisibility() { const clearAllContainer = document.getElementById( 'gc-facet-clear-all-container' ); if ( clearAllContainer ) { @@ -1732,6 +1816,12 @@ function updateDateFacetState( index, dateFacetState, dateFilterState ) { return; } + facetEl.hidden = dateFacetState.values.length === 0; + if ( facetEl.hidden ) { + updateFacetLayoutVisibility(); + return; + } + const isFr = lang === 'fr'; const wasOpen = facetEl.open; facetEl.textContent = ''; @@ -1868,6 +1958,7 @@ function updateDateFacetState( index, dateFacetState, dateFilterState ) { } ); facetEl.appendChild( listEl ); + updateFacetLayoutVisibility(); updateClearAllVisibility(); } diff --git a/test/srf-en.html b/test/srf-en.html index 7bf83ce..349f683 100644 --- a/test/srf-en.html +++ b/test/srf-en.html @@ -39,18 +39,11 @@ "originLevel3": "/en/sr/srf-en.html", "facets": [ { - "field": "hostname", - "title": "Website", + "field": "author", + "title": "Authors", "sortCriteria": "score", "numberOfValues": 12, - "facetId": "hostname", - "facetType": "regular" - }, - { - "field": "filetype", - "title": "Filetype", - "numberOfValues": 12, - "facetId": "filetype", + "facetId": "author", "facetType": "regular" }, { From 39cb30869c333ae026528f42cc1df0ae2e4f5edd Mon Sep 17 00:00:00 2001 From: Cody Foss Date: Thu, 19 Mar 2026 18:38:15 -0600 Subject: [PATCH 06/22] Fixes, styling, new facet option for search --- src/connector.js | 16 ++++++++-------- test/srf-en.html | 1 + 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/connector.js b/src/connector.js index c976ed9..de5e390 100644 --- a/src/connector.js +++ b/src/connector.js @@ -81,7 +81,6 @@ let facetStates = []; let dateFilterControllers = []; let dateFilterStates = []; let facetSearchTimers = []; -let facetSearchQueries = []; // UI states let updateSearchBoxFromState = false; @@ -408,7 +407,7 @@ function initTpl() {
    -

    ${isFr ? 'Filtres' : 'Filters'}

    +

    ${isFr ? 'Filtres' : 'Filters'}

    @@ -583,8 +582,9 @@ function normalizeFacetConfig( raw ) { : 'occurrences'; const facetType = raw.facetType === 'dateRange' ? 'dateRange' : 'regular'; + const enableSearch = raw.enableSearch === true; - return { field, label, facetId, numberOfValues, sortCriteria, facetType }; + return { field, label, facetId, numberOfValues, sortCriteria, facetType, enableSearch }; } // Format a Date as a Coveo date string: YYYY/MM/DD@HH:mm:ss @@ -1636,6 +1636,7 @@ function updateFacetState( index, newState ) { // Preserve search focus and open/closed state across re-renders const searchInputId = 'gc-facet-search-' + index; const wasSearchFocused = document.activeElement?.id === searchInputId; + const preservedSearchValue = document.getElementById( searchInputId )?.value ?? ''; const wasOpen = facetEl.open; facetEl.textContent = ''; facetEl.open = wasOpen; @@ -1659,18 +1660,17 @@ function updateFacetState( index, newState ) { const facetSearchState = newState.facetSearch; const isSearching = ( facetSearchState?.query?.length ?? 0 ) > 0; - if ( facetSearchState ) { + if ( config.enableSearch && facetSearchState ) { const searchInput = document.createElement( 'input' ); searchInput.type = 'search'; searchInput.id = searchInputId; - searchInput.className = 'form-control input-sm mrgn-tp-sm mrgn-bttm-sm gc-facet-search'; + searchInput.className = 'form-control input-sm mrgn-tp-md mrgn-bttm-md gc-facet-search'; searchInput.placeholder = lang === 'fr' ? 'Filtrer...' : 'Filter...'; searchInput.setAttribute( 'aria-label', ( lang === 'fr' ? 'Filtrer ' : 'Filter ' ) + config.label ); - searchInput.value = facetSearchQueries[ index ] ?? ''; + searchInput.value = preservedSearchValue; searchInput.oninput = () => { clearTimeout( facetSearchTimers[ index ] ); const query = searchInput.value; - facetSearchQueries[ index ] = query; if ( query.length >= 2 ) { facetSearchTimers[ index ] = setTimeout( () => { facetSearch.updateText( query ); @@ -1693,7 +1693,7 @@ function updateFacetState( index, newState ) { const liEl = document.createElement( 'li' ); const valueLink = document.createElement( 'a' ); valueLink.href = '#'; - valueLink.onclick = ( e ) => { e.preventDefault(); facetSearchQueries[ index ] = ''; facetSearch.select( result ); }; + valueLink.onclick = ( e ) => { e.preventDefault(); facetSearch.select( result ); }; valueLink.appendChild( document.createTextNode( stripHtml( result.displayValue ) ) ); const countEl = document.createElement( 'span' ); diff --git a/test/srf-en.html b/test/srf-en.html index 349f683..1e598b4 100644 --- a/test/srf-en.html +++ b/test/srf-en.html @@ -41,6 +41,7 @@ { "field": "author", "title": "Authors", + "enableSearch": true, "sortCriteria": "score", "numberOfValues": 12, "facetId": "author", From 8f80aa3e5a58e2629ca9d6c02ee32d5f7f7a1305 Mon Sep 17 00:00:00 2001 From: Cody Foss Date: Thu, 19 Mar 2026 18:41:21 -0600 Subject: [PATCH 07/22] Updated deploy --- netlify/404.html | 183 - netlify/CODE_OF_CONDUCT.md | 122 - netlify/index.html | 25 +- netlify/src/connector.css | 3 +- netlify/src/connector.js | 169 +- netlify/src/theme.css | 20330 ---------------------- netlify/test/budget.html | 217 - netlify/test/demoted/v1_1_0_srb-en.html | 203 - netlify/test/demoted/v1_1_0_srb-fr.html | 203 - netlify/test/demoted/v1_1_0_src-en.html | 211 - netlify/test/demoted/v1_1_0_src-fr.html | 211 - netlify/test/election.html | 207 - netlify/test/gazette.html | 203 - netlify/test/newsadv-en.html | 394 - netlify/test/newsadv-fr.html | 426 - netlify/test/no-qs-en.html | 213 - netlify/test/no-qs-fr.html | 213 - netlify/test/no-token.html | 213 - netlify/test/qs-en-topright-custom.html | 222 - netlify/test/qs-en-topright.html | 220 - netlify/test/qs-en.html | 214 - netlify/test/qs-fr-topright-custom.html | 221 - netlify/test/qs-fr-topright.html | 219 - netlify/test/qs-fr.html | 214 - netlify/test/sra-en.html | 253 - netlify/test/sra-fr.html | 253 - netlify/test/srb-en.html | 212 - netlify/test/srb-fr.html | 212 - netlify/test/src-en.html | 221 - netlify/test/src-fr.html | 221 - netlify/test/srf-en.html | 14 +- netlify/test/template.html | 247 - 32 files changed, 137 insertions(+), 26552 deletions(-) delete mode 100644 netlify/404.html delete mode 100644 netlify/CODE_OF_CONDUCT.md delete mode 100644 netlify/src/theme.css delete mode 100644 netlify/test/budget.html delete mode 100644 netlify/test/demoted/v1_1_0_srb-en.html delete mode 100644 netlify/test/demoted/v1_1_0_srb-fr.html delete mode 100644 netlify/test/demoted/v1_1_0_src-en.html delete mode 100644 netlify/test/demoted/v1_1_0_src-fr.html delete mode 100644 netlify/test/election.html delete mode 100644 netlify/test/gazette.html delete mode 100644 netlify/test/newsadv-en.html delete mode 100644 netlify/test/newsadv-fr.html delete mode 100644 netlify/test/no-qs-en.html delete mode 100644 netlify/test/no-qs-fr.html delete mode 100644 netlify/test/no-token.html delete mode 100644 netlify/test/qs-en-topright-custom.html delete mode 100644 netlify/test/qs-en-topright.html delete mode 100644 netlify/test/qs-en.html delete mode 100644 netlify/test/qs-fr-topright-custom.html delete mode 100644 netlify/test/qs-fr-topright.html delete mode 100644 netlify/test/qs-fr.html delete mode 100644 netlify/test/sra-en.html delete mode 100644 netlify/test/sra-fr.html delete mode 100644 netlify/test/srb-en.html delete mode 100644 netlify/test/srb-fr.html delete mode 100644 netlify/test/src-en.html delete mode 100644 netlify/test/src-fr.html delete mode 100644 netlify/test/template.html diff --git a/netlify/404.html b/netlify/404.html deleted file mode 100644 index 8bd7963..0000000 --- a/netlify/404.html +++ /dev/null @@ -1,183 +0,0 @@ - - - - - - -404 - Canada.ca - - - - - - - - - - - - - - - - - -
    - -
    -
    -
    - - - - - -
    -

    Recherche

    -
    -
    - - - -
    -
    - -
    -
    -
    - - -
    -
    - - -
    - - - - - - -
    - -

    404

    -
    -

    Page not found | Page introuvable

    -
    - -
    -

    Détails de la page

    -
    Date de modification :
    -
    -
    -
    - -
    - - - - - - - diff --git a/netlify/CODE_OF_CONDUCT.md b/netlify/CODE_OF_CONDUCT.md deleted file mode 100644 index 08e81c8..0000000 --- a/netlify/CODE_OF_CONDUCT.md +++ /dev/null @@ -1,122 +0,0 @@ -# Contributor Covenant Code of Conduct for the Canada.ca Search User Interface (UI) project - -([Français](#code-de-conduite-pour-le-projet-iu-recherche)) - -Contributors to repositories hosted in Canada.ca Search UI are expected to follow the Contributor Covenant Code of Conduct, and those working within Government are also expected to follow the Values and Ethics Code for the Public Sector - -## Our Pledge - -In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation. - -## Our Standards - -Examples of behavior that contributes to creating a positive environment include: - -* Using welcoming and inclusive language -* Being respectful of differing viewpoints and experiences -* Gracefully accepting constructive criticism -* Focusing on what is best for the department -* Showing empathy towards other members - -Examples of unacceptable behavior by participants include: - -* The use of sexualized language or imagery and unwelcome sexual attention or advances -* Trolling, insulting/derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or electronic address, without explicit permission -* Other conduct which could reasonably be considered inappropriate in a professional setting - -## Our Responsibilities - -Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. - -Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. - -## Scope - -This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project, members or Employment and Social Development Canada. -Examples of representing a project, members or Employment and Social Development Canada include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. -Representation of a project may be further defined and clarified by project maintainers. - -## Enforcement - -Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team via a contact method listed on [Principal Publisher's GCpedia page](https://www.gcpedia.gc.ca/wiki/Principal_Publisher_at_Service_Canada). - -All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. - -The project team is obligated to maintain confidentiality with regard to the reporter of an incident. - -Further details of specific enforcement policies may be posted separately. - -Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. - -## Attribution [EN] - -This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [https://www.contributor-covenant.org/version/1/4/code-of-conduct.html](https://www.contributor-covenant.org/version/1/4/code-of-conduct.html) - -[homepage]: https://www.contributor-covenant.org - -This Code of Conduct is also inspired by GDS' `alphagov` [Code of conduct](https://github.com/alphagov/code-of-conduct). - ---- - -# Code de conduite pour le projet Interface utilisateur (IU) de Recherche pour Canada.ca - - -([English](#contributor-covenant-code-of-conduct-for-the-search-ui-project)) - -Les contributeurs aux dépôts hébergés dans IU de Recherche pour Canada.ca sont tenus de respecter le Code de conduite du Pacte des contributeurs, et ceux qui travaillent au sein du gouvernement sont également tenus de respecter le [Code de valeurs et d'éthique du secteur public](https://www.tbs-sct.canada.ca/pol/doc-fra.aspx?id=25049). - -## Notre engagement - -Dans le but de favoriser un environnement ouvert et accueillant, nous nous engageons, en tant que collaborateurs et responsables, à faire de la participation à notre projet et à notre communauté une expérience sans harcèlement pour tous, quels que soient leur âge, leur taille, leur handicap, leur origine ethnique, leurs caractéristiques sexuelles, leur identité et expression sexuelles, leur niveau d'expérience, leur éducation, leur statut socio-économique, leur nationalité, leur apparence, leur race, leur religion, leur orientation sexuelle et leur identité. - -## Nos normes - -Exemples de comportements qui contribuent à créer un environnement positif incluent : - -* Utiliser un langage accueillant et inclusif -* Être respectueux des différents points de vue et expériences -* Accepter gracieusement les critiques constructives -* Se concentrer sur ce qui est le mieux pour la communauté -* Faire preuve d'empathie envers les autres membres de la communauté - -Voici des exemples de comportements inacceptables de la part des participants : - -* L'utilisation d'un langage ou d'images sexualisés et d'une attention sexuelle importunée, ou percées -* Trollage, commentaires insultants ou méprisants, et attaques personnelles ou politiques -* Harcèlement public ou privé -* La publication d'informations privées d'autrui, telles que des informations physiques ou électroniques. adresse, sans autorisation explicite -* Tout autre comportement qui pourrait raisonnablement être considéré comme inapproprié dans le cadre d'une enquête du contexte professionnel - -## Nos responsabilités - -Les responsables de la mise à jour du projet ont la responsabilité de clarifier les normes d'acceptabilité et on s'attend à ce qu'ils prennent des mesures correctives appropriées et équitables en cas de comportement inacceptable. - -Les responsables de projet ont le droit et la responsabilité de supprimer, d'éditer ou de rejeter les commentaires, les soumissions (commits), le code, les éditions du wiki, les problèmes et autres contributions qui ne sont pas conformes au présent Code de conduite, ou d'interdire temporairement ou définitivement tout contributeur pour d'autres comportements qu'ils jugent inappropriés, menaçant, offensant ou nuisible. - -## Portée - -Ce Code de conduite s'applique dans tous les espaces du projet, et il s'applique également lorsqu'une personne représente le projet, sa communauté dans les espaces publics ou Emploi et développement social Canada. -Des exemples de représentation d'un projet, d'une collectivité ou Emploi et développement social Canada comprennent l'utilisation d'un représentant officiel de l'adresse électronique du projet, l'affichage par l'entremise d'un compte officiel de médias sociaux ou le fait d'agir à titre intérimaire en tant que représentant désigné lors d'un événement en ligne ou hors ligne. -La représentation d'un projet peut être mieux définie et clarifiée par les responsables du projet. - -## Application des règles - -Les cas de comportement abusif, de harcèlement ou d'autres comportements inacceptables peuvent être rapportés en communiquant avec l'équipe de projet via une méthode de contact proposée sur la page [GCpédia de l'Éditeur principal](https://www.gcpedia.gc.ca/wiki/%C3%89diteur_principal_de_Service_Canada). - -Toutes les plaintes feront l'objet d'un examen et d'une enquête et donneront lieu à une réponse qui est jugée nécessaire et appropriée dans les circonstances. - -L'équipe de projet est dans l'obligation de respecter la confidentialité à l'égard du déclarant d'un incident. - -De plus amples détails sur les politiques d'application spécifiques peuvent être affichés séparément. - -Les responsables de projet qui ne respectent pas ou n'appliquent pas le Code de conduite en bonne et due forme peuvent faire face à des répercussions temporaires ou permanentes déterminées par d'autres membres de la direction du projet. - -## Attribution [FR] - -Le présent Code de conduite est adapté de la version 1.4 du [Pacte du contributeur][page d'accueil], disponible à l'adresse [https://www.contributor-covenant.org/version/1/4/code-of-conduct.html](https://www.contributor-covenant.org/version/1/4/code-of-conduct.html) - -[page d'accueil]: https://www.contributor-covenant.org - -Le présent Code de conduite s'inspire également du « Code de conduite » du [alphaGov](https://github.com/alphagov/code-of-conduct) de GDS. diff --git a/netlify/index.html b/netlify/index.html index faf78c1..3dcc9a4 100644 --- a/netlify/index.html +++ b/netlify/index.html @@ -123,32 +123,9 @@

    Before you test

    Regular pages

    -

    Advanced tests

    -

    Please refer to the README documentation to get more information on the GC Search UI.

    diff --git a/netlify/src/connector.css b/netlify/src/connector.css index a7205fb..680a94c 100644 --- a/netlify/src/connector.css +++ b/netlify/src/connector.css @@ -79,6 +79,7 @@ left: 0; } -.gc-date-pickers .form-control { +.gc-date-pickers .form-control, +.gc-facet-search { width: 100%; } diff --git a/netlify/src/connector.js b/netlify/src/connector.js index 408ead4..de5e390 100644 --- a/netlify/src/connector.js +++ b/netlify/src/connector.js @@ -80,6 +80,7 @@ let facetControllers = []; let facetStates = []; let dateFilterControllers = []; let dateFilterStates = []; +let facetSearchTimers = []; // UI states let updateSearchBoxFromState = false; @@ -406,7 +407,7 @@ function initTpl() {
    -

    ${isFr ? 'Filtres' : 'Filters'}

    +

    ${isFr ? 'Filtres' : 'Filters'}

    @@ -581,8 +582,9 @@ function normalizeFacetConfig( raw ) { : 'occurrences'; const facetType = raw.facetType === 'dateRange' ? 'dateRange' : 'regular'; + const enableSearch = raw.enableSearch === true; - return { field, label, facetId, numberOfValues, sortCriteria, facetType }; + return { field, label, facetId, numberOfValues, sortCriteria, facetType, enableSearch }; } // Format a Date as a Coveo date string: YYYY/MM/DD@HH:mm:ss @@ -1180,6 +1182,7 @@ function initEngine() { didYouMeanElement.textContent = ""; pagerElement.textContent = ""; pagerManuallyCleared = true; + updateFacetLayoutVisibility(true) // Show no results message in Query Summary if no query entered querySummaryElement.innerHTML = noResultTemplateHTML; @@ -1624,7 +1627,16 @@ function updateFacetState( index, newState ) { return; } - // Preserve the open/closed state across re-renders, then clear children + facetEl.hidden = newState.values.length === 0; + if ( facetEl.hidden ) { + updateFacetLayoutVisibility(); + return; + } + + // Preserve search focus and open/closed state across re-renders + const searchInputId = 'gc-facet-search-' + index; + const wasSearchFocused = document.activeElement?.id === searchInputId; + const preservedSearchValue = document.getElementById( searchInputId )?.value ?? ''; const wasOpen = facetEl.open; facetEl.textContent = ''; facetEl.open = wasOpen; @@ -1642,55 +1654,103 @@ function updateFacetState( index, newState ) { } facetEl.appendChild( summaryEl ); - // Values list + // Facet search input (only if the controller exposes facetSearch) + // facetSearch methods live on the sub-controller; state is nested in newState.facetSearch + const facetSearch = facetControllers[ index ].facetSearch; + const facetSearchState = newState.facetSearch; + const isSearching = ( facetSearchState?.query?.length ?? 0 ) > 0; + + if ( config.enableSearch && facetSearchState ) { + const searchInput = document.createElement( 'input' ); + searchInput.type = 'search'; + searchInput.id = searchInputId; + searchInput.className = 'form-control input-sm mrgn-tp-md mrgn-bttm-md gc-facet-search'; + searchInput.placeholder = lang === 'fr' ? 'Filtrer...' : 'Filter...'; + searchInput.setAttribute( 'aria-label', ( lang === 'fr' ? 'Filtrer ' : 'Filter ' ) + config.label ); + searchInput.value = preservedSearchValue; + searchInput.oninput = () => { + clearTimeout( facetSearchTimers[ index ] ); + const query = searchInput.value; + if ( query.length >= 2 ) { + facetSearchTimers[ index ] = setTimeout( () => { + facetSearch.updateText( query ); + facetSearch.search(); + }, 300 ); + } else { + facetSearch.updateText( '' ); + } + }; + facetEl.appendChild( searchInput ); + if ( wasSearchFocused ) { searchInput.focus(); } + } + + // Values list — show facet search results when a query is active, otherwise regular values const listEl = document.createElement( 'ul' ); listEl.className = 'list-unstyled gc-facet-values'; - newState.values.forEach( ( value ) => { - const liEl = document.createElement( 'li' ); - const isSelected = value.state === 'selected'; - const countFormatted = value.numberOfResults.toLocaleString( params.lang ); - const valueLabel = stripHtml( value.value ); - - if ( isSelected ) { - const removeHintEl = document.createElement( 'span' ); - removeHintEl.className = 'wb-inv'; - removeHintEl.textContent = lang === 'fr' ? 'Enlever le filtre actif:' : 'Remove active filter:'; - liEl.appendChild( removeHintEl ); - } + if ( isSearching ) { + facetSearchState.values.forEach( ( result ) => { + const liEl = document.createElement( 'li' ); + const valueLink = document.createElement( 'a' ); + valueLink.href = '#'; + valueLink.onclick = ( e ) => { e.preventDefault(); facetSearch.select( result ); }; + valueLink.appendChild( document.createTextNode( stripHtml( result.displayValue ) ) ); + + const countEl = document.createElement( 'span' ); + countEl.className = 'gc-facet-count'; + countEl.innerHTML = ' (' + result.count.toLocaleString( lang ) + + ' ' + ( lang === 'fr' ? 'résultats' : 'results' ) + ')'; + + liEl.appendChild( valueLink ); + liEl.appendChild( countEl ); + listEl.appendChild( liEl ); + } ); + } else { + newState.values.forEach( ( value ) => { + const liEl = document.createElement( 'li' ); + const isSelected = value.state === 'selected'; + const countFormatted = value.numberOfResults.toLocaleString( params.lang ); + const valueLabel = stripHtml( value.value ); + + if ( isSelected ) { + const removeHintEl = document.createElement( 'span' ); + removeHintEl.className = 'wb-inv'; + removeHintEl.textContent = lang === 'fr' ? 'Enlever le filtre actif:' : 'Remove active filter:'; + liEl.appendChild( removeHintEl ); + } - const valueLink = document.createElement( 'a' ); - valueLink.href = '#'; - valueLink.onclick = ( e ) => { e.preventDefault(); facetControllers[ index ].toggleSelect( value ); }; + const valueLink = document.createElement( 'a' ); + valueLink.href = '#'; + valueLink.onclick = ( e ) => { e.preventDefault(); facetControllers[ index ].toggleSelect( value ); }; - if ( isSelected ) { - const iconEl = document.createElement( 'span' ); - iconEl.className = 'glyphicon glyphicon-ok mrgn-rght-sm'; - iconEl.setAttribute( 'aria-hidden', 'true' ); - valueLink.appendChild( iconEl ); - valueLink.appendChild( document.createTextNode( '\u00a0' ) ); - } + if ( isSelected ) { + const iconEl = document.createElement( 'span' ); + iconEl.className = 'glyphicon glyphicon-ok mrgn-rght-sm'; + iconEl.setAttribute( 'aria-hidden', 'true' ); + valueLink.appendChild( iconEl ); + valueLink.appendChild( document.createTextNode( '\u00a0' ) ); + } - valueLink.appendChild( document.createTextNode( valueLabel ) ); + valueLink.appendChild( document.createTextNode( valueLabel ) ); - // Count sits outside as plain text so only the label looks like a link - const countEl = document.createElement( 'span' ); - countEl.className = 'gc-facet-count'; - countEl.innerHTML = ' (' + countFormatted - + ' ' + ( lang === 'fr' ? 'résultats' : 'results' ) + ')'; + const countEl = document.createElement( 'span' ); + countEl.className = 'gc-facet-count'; + countEl.innerHTML = ' (' + countFormatted + + ' ' + ( lang === 'fr' ? 'résultats' : 'results' ) + ')'; - liEl.appendChild( valueLink ); - liEl.appendChild( countEl ); - listEl.appendChild( liEl ); - } ); + liEl.appendChild( valueLink ); + liEl.appendChild( countEl ); + listEl.appendChild( liEl ); + } ); + } facetEl.appendChild( listEl ); - // Show more / show less — btn-link with chevron, matching the template + // Show more / show less — hidden while searching (search has its own pagination) const showMoreBtn = document.createElement( 'button' ); showMoreBtn.type = 'button'; showMoreBtn.className = 'btn btn-link small gc-facet-show-more pl-0'; - showMoreBtn.hidden = !newState.canShowMoreValues; + showMoreBtn.hidden = isSearching || !newState.canShowMoreValues; showMoreBtn.onclick = () => { facetControllers[ index ].showMoreValues(); }; showMoreBtn.innerHTML = ( lang === 'fr' ? 'Afficher davantage' : 'Show more' ) + ' '; @@ -1698,7 +1758,7 @@ function updateFacetState( index, newState ) { const showLessBtn = document.createElement( 'button' ); showLessBtn.type = 'button'; showLessBtn.className = 'btn btn-link small gc-facet-show-less pl-0'; - showLessBtn.hidden = !newState.canShowLessValues; + showLessBtn.hidden = isSearching || !newState.canShowLessValues; showLessBtn.onclick = () => { facetControllers[ index ].showLessValues(); }; showLessBtn.innerHTML = ( lang === 'fr' ? 'Afficher moins' : 'Show less' ) + ' '; @@ -1706,9 +1766,33 @@ function updateFacetState( index, newState ) { facetEl.appendChild( showMoreBtn ); facetEl.appendChild( showLessBtn ); + updateFacetLayoutVisibility(); updateClearAllVisibility(); } +function updateFacetLayoutVisibility(forceHidden = false) { + const toggleBtn = document.getElementById( 'gc-facet-toggle' ); + const resultsCol = document.getElementById( 'gc-results-col' ); + if ( !toggleBtn || !facetSidebarElement || !resultsCol ) { return; } + + const hasFacetContent = facetStates.some( ( s ) => s?.values?.length > 0 ); + + if ( !hasFacetContent || forceHidden ) { + toggleBtn.hidden = true; + facetSidebarElement.hidden = true; + resultsCol.classList.remove( 'col-md-8' ); + resultsCol.classList.add( 'col-md-12' ); + } else { + toggleBtn.hidden = false; + const isExpanded = toggleBtn.getAttribute( 'aria-expanded' ) === 'true'; + facetSidebarElement.hidden = !isExpanded; + if ( isExpanded ) { + resultsCol.classList.remove( 'col-md-12' ); + resultsCol.classList.add( 'col-md-8' ); + } + } +} + function updateClearAllVisibility() { const clearAllContainer = document.getElementById( 'gc-facet-clear-all-container' ); if ( clearAllContainer ) { @@ -1732,6 +1816,12 @@ function updateDateFacetState( index, dateFacetState, dateFilterState ) { return; } + facetEl.hidden = dateFacetState.values.length === 0; + if ( facetEl.hidden ) { + updateFacetLayoutVisibility(); + return; + } + const isFr = lang === 'fr'; const wasOpen = facetEl.open; facetEl.textContent = ''; @@ -1868,6 +1958,7 @@ function updateDateFacetState( index, dateFacetState, dateFilterState ) { } ); facetEl.appendChild( listEl ); + updateFacetLayoutVisibility(); updateClearAllVisibility(); } diff --git a/netlify/src/theme.css b/netlify/src/theme.css deleted file mode 100644 index 62869a3..0000000 --- a/netlify/src/theme.css +++ /dev/null @@ -1,20330 +0,0 @@ -@charset "utf-8"; /*! - * @title Web Experience Toolkit (WET) / Boîte à outils de l'expérience Web (BOEW) - * @license wet-boew.github.io/wet-boew/License-en.html / wet-boew.github.io/wet-boew/Licence-fr.html - * v19.0.0 - 2026-03-18 - * - */ -/*! Global and helpers */ -#mb-pnl .modal-body h2,#wb-bc li:first-child:before,.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,.pager.disabled,.pager>li.disabled,.pagination.disabled,.pagination>li.disabled,.wb-tabs.carousel-s1 [role=tablist]>li,.wb-tabs.carousel-s2 [role=tablist]>li,.wb-twitter .wb-twitter-notice-end,.wb-twitter .wb-twitter-notice-start,[dir=rtl] #wb-bc li:first-child:before,[dir=rtl] .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,[dir=rtl] .dataTables_wrapper .dataTables_paginate .paginate_button.next:after,[dir=rtl] .dataTables_wrapper .dataTables_paginate .paginate_button.previous:before,[dir=rtl] .pager [rel=next]:after,[dir=rtl] .pager [rel=prev]:before,[dir=rtl] .pagination [rel=next]:after,[dir=rtl] .pagination [rel=prev]:before,table.dataTable thead .sorting-icons,table.dataTable thead .sorting_asc_disabled .sorting-icons:before,table.dataTable thead .sorting_desc_disabled .sorting-icons:after { - display: none -} - -.wb-disable .wb-tabs>.tabpanels>details,.wb-disable .wb-tabs>details,.wb-menu .sm.open li,.wb-twitter .wb-twitter-notice-start[tabindex] { - display: block -} - -.wb-disable #wb-info,.wb-disable #wb-sec,.wb-disable #wb-sm,.wb-disable #wb-srch,.wb-disable .mfp-hide,.wb-disable .wb-overlay { - display: block!important -} - -.wb-menu .active>a,.wb-menu .menu>li a,.wb-menu .menu>li a:focus,.wb-menu .menu>li a:hover { - text-decoration: none -} - -.geomap-progress:after,.geomap-progress:before,.wb-mltmd.video.waiting .display:after,.wb-mltmd.video.waiting .display:before,.wb-mltmd.video:not(.playing):not(.waiting):not(.youtube) .display:after,.wb-mltmd.video:not(.playing):not(.waiting):not(.youtube) .display:before { - bottom: 0; - content: " "; - height: 100px; - left: 0; - margin: auto; - position: absolute; - right: 0; - top: 0; - width: 100px -} - -.geomap-progress:after,.wb-mltmd.video.waiting .display:after,.wb-mltmd.video:not(.playing):not(.waiting):not(.youtube) .display:after { - z-index: 1 -} - -.geomap-progress:before,.wb-mltmd.video.waiting .display:before,.wb-mltmd.video:not(.playing):not(.waiting):not(.youtube) .display:before { - background: rgba(0,0,0,.7); - border-radius: 10px -} - -.geomap-progress:after,.wb-mltmd.video.waiting .display:after { - -webkit-animation-duration: .5s; - animation-duration: .5s; - -webkit-animation-iteration-count: infinite; - animation-iteration-count: infinite; - -webkit-animation-name: spin; - animation-name: spin; - -webkit-animation-timing-function: linear; - animation-timing-function: linear; - color: #fff; - content: "\e031"; - height: 1em; - line-height: 1.03; - width: 1em; - z-index: 2; - font-family: "Glyphicons Halflings"; - font-size: 3.5em -} - -/*! Reset and dependencies */ -/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */ -html { - font-family: sans-serif; - -ms-text-size-adjust: 100%; - -webkit-text-size-adjust: 100% -} - -body { - margin: 0 -} - -article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary { - display: block -} - -audio,canvas,progress,video { - display: inline-block; - vertical-align: baseline -} - -audio:not([controls]) { - display: none; - height: 0 -} - -[hidden],template { - display: none -} - -a { - background-color: transparent -} - -a:active,a:hover { - outline: 0 -} - -abbr[title] { - border-bottom: none; - text-decoration: underline; - text-decoration: underline dotted -} - -b,strong { - font-weight: 700 -} - -dfn { - font-style: italic -} - -h1 { - font-size: 2em; - margin: .67em 0 -} - -mark { - background: #ff0; - color: #000 -} - -small { - font-size: 80% -} - -sub,sup { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline -} - -sup { - top: -.5em -} - -sub { - bottom: -.25em -} - -img { - border: 0 -} - -svg:not(:root) { - overflow: hidden -} - -figure { - margin: 1em 40px -} - -hr { - -webkit-box-sizing: content-box; - box-sizing: content-box; - height: 0 -} - -pre { - overflow: auto -} - -code,kbd,pre,samp { - font-family: monospace,monospace; - font-size: 1em -} - -button,input,optgroup,select,textarea { - color: inherit; - font: inherit; - margin: 0 -} - -button { - overflow: visible -} - -button,select { - text-transform: none -} - -button,html input[type=button],input[type=reset],input[type=submit] { - -webkit-appearance: button; - cursor: pointer -} - -button[disabled],html input[disabled] { - cursor: default -} - -button::-moz-focus-inner,input::-moz-focus-inner { - border: 0; - padding: 0 -} - -input { - line-height: normal -} - -input[type=checkbox],input[type=radio] { - -webkit-box-sizing: border-box; - box-sizing: border-box; - padding: 0 -} - -input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button { - height: auto -} - -input[type=search] { - -webkit-appearance: textfield; - -webkit-box-sizing: content-box; - box-sizing: content-box -} - -input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration { - -webkit-appearance: none -} - -fieldset { - border: 1px solid silver; - margin: 0 2px; - padding: .35em .625em .75em -} - -legend { - border: 0; - padding: 0 -} - -textarea { - overflow: auto -} - -optgroup { - font-weight: 700 -} - -table { - border-collapse: collapse; - border-spacing: 0 -} - -td,th { - padding: 0 -} - -a:active,a:hover { - outline: revert -} - -/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */ -@media print { - *,:after,:before { - color: #000!important; - text-shadow: none!important; - background: 0 0!important; - -webkit-box-shadow: none!important; - box-shadow: none!important - } - - a,a:visited { - text-decoration: underline - } - - a[href]:after { - content: " (" attr(href) ")" - } - - abbr[title]:after { - content: " (" attr(title) ")" - } - - a[href^="#"]:after,a[href^="javascript:"]:after { - content: "" - } - - blockquote,pre { - border: 1px solid #999; - page-break-inside: avoid - } - - thead { - display: table-header-group - } - - img,tr { - page-break-inside: avoid - } - - img { - max-width: 100%!important - } - - h2,h3,p { - orphans: 3; - widows: 3 - } - - h2,h3 { - page-break-after: avoid - } - - .navbar { - display: none - } - - .btn>.caret,.dropup>.btn>.caret { - border-top-color: #000!important - } - - .label { - border: 1px solid #000 - } - - .table { - border-collapse: collapse!important - } - - .table td,.table th { - background-color: #fff!important - } - - .table-bordered td,.table-bordered th { - border: 1px solid #ddd!important - } -} - -@font-face { - font-family: "Glyphicons Halflings"; - src: url("../../wet-boew/fonts/glyphicons-halflings-regular.eot"); - src: url("../../wet-boew/fonts/glyphicons-halflings-regular.eot?#iefix") format("embedded-opentype"),url("../../wet-boew/fonts/glyphicons-halflings-regular.woff2") format("woff2"),url("../../wet-boew/fonts/glyphicons-halflings-regular.woff") format("woff"),url("../../wet-boew/fonts/glyphicons-halflings-regular.ttf") format("truetype"),url("../../wet-boew/fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular") format("svg") -} - -.glyphicon { - position: relative; - top: 1px; - display: inline-block; - font-family: "Glyphicons Halflings"; - font-style: normal; - font-weight: 400; - line-height: 1; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale -} - -.glyphicon-asterisk:before { - content: "*" -} - -.glyphicon-plus:before { - content: "+" -} - -.glyphicon-eur:before,.glyphicon-euro:before { - content: "€" -} - -.glyphicon-minus:before { - content: "−" -} - -.glyphicon-cloud:before { - content: "☁" -} - -.glyphicon-envelope:before { - content: "✉" -} - -.glyphicon-pencil:before { - content: "✏" -} - -.glyphicon-glass:before { - content: "\e001" -} - -.glyphicon-music:before { - content: "\e002" -} - -.glyphicon-search:before { - content: "\e003" -} - -.glyphicon-heart:before { - content: "\e005" -} - -.glyphicon-star:before { - content: "\e006" -} - -.glyphicon-star-empty:before { - content: "\e007" -} - -.glyphicon-user:before { - content: "\e008" -} - -.glyphicon-film:before { - content: "\e009" -} - -.glyphicon-th-large:before { - content: "\e010" -} - -.glyphicon-th:before { - content: "\e011" -} - -.glyphicon-th-list:before { - content: "\e012" -} - -.glyphicon-ok:before { - content: "\e013" -} - -.glyphicon-remove:before { - content: "\e014" -} - -.glyphicon-zoom-in:before { - content: "\e015" -} - -.glyphicon-zoom-out:before { - content: "\e016" -} - -.glyphicon-off:before { - content: "\e017" -} - -.glyphicon-signal:before { - content: "\e018" -} - -.glyphicon-cog:before { - content: "\e019" -} - -.glyphicon-trash:before { - content: "\e020" -} - -.glyphicon-home:before { - content: "\e021" -} - -.glyphicon-file:before { - content: "\e022" -} - -.glyphicon-time:before { - content: "\e023" -} - -.glyphicon-road:before { - content: "\e024" -} - -.glyphicon-download-alt:before { - content: "\e025" -} - -.glyphicon-download:before { - content: "\e026" -} - -.glyphicon-upload:before { - content: "\e027" -} - -.glyphicon-inbox:before { - content: "\e028" -} - -.glyphicon-play-circle:before { - content: "\e029" -} - -.glyphicon-repeat:before { - content: "\e030" -} - -.glyphicon-refresh:before { - content: "\e031" -} - -.glyphicon-list-alt:before { - content: "\e032" -} - -.glyphicon-lock:before { - content: "\e033" -} - -.glyphicon-flag:before { - content: "\e034" -} - -.glyphicon-headphones:before { - content: "\e035" -} - -.glyphicon-volume-off:before { - content: "\e036" -} - -.glyphicon-volume-down:before { - content: "\e037" -} - -.glyphicon-volume-up:before { - content: "\e038" -} - -.glyphicon-qrcode:before { - content: "\e039" -} - -.glyphicon-barcode:before { - content: "\e040" -} - -.glyphicon-tag:before { - content: "\e041" -} - -.glyphicon-tags:before { - content: "\e042" -} - -.glyphicon-book:before { - content: "\e043" -} - -.glyphicon-bookmark:before { - content: "\e044" -} - -.glyphicon-print:before { - content: "\e045" -} - -.glyphicon-camera:before { - content: "\e046" -} - -.glyphicon-font:before { - content: "\e047" -} - -.glyphicon-bold:before { - content: "\e048" -} - -.glyphicon-italic:before { - content: "\e049" -} - -.glyphicon-text-height:before { - content: "\e050" -} - -.glyphicon-text-width:before { - content: "\e051" -} - -.glyphicon-align-left:before { - content: "\e052" -} - -.glyphicon-align-center:before { - content: "\e053" -} - -.glyphicon-align-right:before { - content: "\e054" -} - -.glyphicon-align-justify:before { - content: "\e055" -} - -.glyphicon-list:before { - content: "\e056" -} - -.glyphicon-indent-left:before { - content: "\e057" -} - -.glyphicon-indent-right:before { - content: "\e058" -} - -.glyphicon-facetime-video:before { - content: "\e059" -} - -.glyphicon-picture:before { - content: "\e060" -} - -.glyphicon-map-marker:before { - content: "\e062" -} - -.glyphicon-adjust:before { - content: "\e063" -} - -.glyphicon-tint:before { - content: "\e064" -} - -.glyphicon-edit:before { - content: "\e065" -} - -.glyphicon-share:before { - content: "\e066" -} - -.glyphicon-check:before { - content: "\e067" -} - -.glyphicon-move:before { - content: "\e068" -} - -.glyphicon-step-backward:before { - content: "\e069" -} - -.glyphicon-fast-backward:before { - content: "\e070" -} - -.glyphicon-backward:before { - content: "\e071" -} - -.glyphicon-play:before { - content: "\e072" -} - -.glyphicon-pause:before { - content: "\e073" -} - -.glyphicon-stop:before { - content: "\e074" -} - -.glyphicon-forward:before { - content: "\e075" -} - -.glyphicon-fast-forward:before { - content: "\e076" -} - -.glyphicon-step-forward:before { - content: "\e077" -} - -.glyphicon-eject:before { - content: "\e078" -} - -.glyphicon-chevron-left:before { - content: "\e079" -} - -.glyphicon-chevron-right:before { - content: "\e080" -} - -.glyphicon-plus-sign:before { - content: "\e081" -} - -.glyphicon-minus-sign:before { - content: "\e082" -} - -.glyphicon-remove-sign:before { - content: "\e083" -} - -.glyphicon-ok-sign:before { - content: "\e084" -} - -.glyphicon-question-sign:before { - content: "\e085" -} - -.glyphicon-info-sign:before { - content: "\e086" -} - -.glyphicon-screenshot:before { - content: "\e087" -} - -.glyphicon-remove-circle:before { - content: "\e088" -} - -.glyphicon-ok-circle:before { - content: "\e089" -} - -.glyphicon-ban-circle:before { - content: "\e090" -} - -.glyphicon-arrow-left:before { - content: "\e091" -} - -.glyphicon-arrow-right:before { - content: "\e092" -} - -.glyphicon-arrow-up:before { - content: "\e093" -} - -.glyphicon-arrow-down:before { - content: "\e094" -} - -.glyphicon-share-alt:before { - content: "\e095" -} - -.glyphicon-resize-full:before { - content: "\e096" -} - -.glyphicon-resize-small:before { - content: "\e097" -} - -.glyphicon-exclamation-sign:before { - content: "\e101" -} - -.glyphicon-gift:before { - content: "\e102" -} - -.glyphicon-leaf:before { - content: "\e103" -} - -.glyphicon-fire:before { - content: "\e104" -} - -.glyphicon-eye-open:before { - content: "\e105" -} - -.glyphicon-eye-close:before { - content: "\e106" -} - -.glyphicon-warning-sign:before { - content: "\e107" -} - -.glyphicon-plane:before { - content: "\e108" -} - -.glyphicon-calendar:before { - content: "\e109" -} - -.glyphicon-random:before { - content: "\e110" -} - -.glyphicon-comment:before { - content: "\e111" -} - -.glyphicon-magnet:before { - content: "\e112" -} - -.glyphicon-chevron-up:before { - content: "\e113" -} - -.glyphicon-chevron-down:before { - content: "\e114" -} - -.glyphicon-retweet:before { - content: "\e115" -} - -.glyphicon-shopping-cart:before { - content: "\e116" -} - -.glyphicon-folder-close:before { - content: "\e117" -} - -.glyphicon-folder-open:before { - content: "\e118" -} - -.glyphicon-resize-vertical:before { - content: "\e119" -} - -.glyphicon-resize-horizontal:before { - content: "\e120" -} - -.glyphicon-hdd:before { - content: "\e121" -} - -.glyphicon-bullhorn:before { - content: "\e122" -} - -.glyphicon-bell:before { - content: "\e123" -} - -.glyphicon-certificate:before { - content: "\e124" -} - -.glyphicon-thumbs-up:before { - content: "\e125" -} - -.glyphicon-thumbs-down:before { - content: "\e126" -} - -.glyphicon-hand-right:before { - content: "\e127" -} - -.glyphicon-hand-left:before { - content: "\e128" -} - -.glyphicon-hand-up:before { - content: "\e129" -} - -.glyphicon-hand-down:before { - content: "\e130" -} - -.glyphicon-circle-arrow-right:before { - content: "\e131" -} - -.glyphicon-circle-arrow-left:before { - content: "\e132" -} - -.glyphicon-circle-arrow-up:before { - content: "\e133" -} - -.glyphicon-circle-arrow-down:before { - content: "\e134" -} - -.glyphicon-globe:before { - content: "\e135" -} - -.glyphicon-wrench:before { - content: "\e136" -} - -.glyphicon-tasks:before { - content: "\e137" -} - -.glyphicon-filter:before { - content: "\e138" -} - -.glyphicon-briefcase:before { - content: "\e139" -} - -.glyphicon-fullscreen:before { - content: "\e140" -} - -.glyphicon-dashboard:before { - content: "\e141" -} - -.glyphicon-paperclip:before { - content: "\e142" -} - -.glyphicon-heart-empty:before { - content: "\e143" -} - -.glyphicon-link:before { - content: "\e144" -} - -.glyphicon-phone:before { - content: "\e145" -} - -.glyphicon-pushpin:before { - content: "\e146" -} - -.glyphicon-usd:before { - content: "\e148" -} - -.glyphicon-gbp:before { - content: "\e149" -} - -.glyphicon-sort:before { - content: "\e150" -} - -.glyphicon-sort-by-alphabet:before { - content: "\e151" -} - -.glyphicon-sort-by-alphabet-alt:before { - content: "\e152" -} - -.glyphicon-sort-by-order:before { - content: "\e153" -} - -.glyphicon-sort-by-order-alt:before { - content: "\e154" -} - -.glyphicon-sort-by-attributes:before { - content: "\e155" -} - -.glyphicon-sort-by-attributes-alt:before { - content: "\e156" -} - -.glyphicon-unchecked:before { - content: "\e157" -} - -.glyphicon-expand:before { - content: "\e158" -} - -.glyphicon-collapse-down:before { - content: "\e159" -} - -.glyphicon-collapse-up:before { - content: "\e160" -} - -.glyphicon-log-in:before { - content: "\e161" -} - -.glyphicon-flash:before { - content: "\e162" -} - -.glyphicon-log-out:before { - content: "\e163" -} - -.glyphicon-new-window:before { - content: "\e164" -} - -.glyphicon-record:before { - content: "\e165" -} - -.glyphicon-save:before { - content: "\e166" -} - -.glyphicon-open:before { - content: "\e167" -} - -.glyphicon-saved:before { - content: "\e168" -} - -.glyphicon-import:before { - content: "\e169" -} - -.glyphicon-export:before { - content: "\e170" -} - -.glyphicon-send:before { - content: "\e171" -} - -.glyphicon-floppy-disk:before { - content: "\e172" -} - -.glyphicon-floppy-saved:before { - content: "\e173" -} - -.glyphicon-floppy-remove:before { - content: "\e174" -} - -.glyphicon-floppy-save:before { - content: "\e175" -} - -.glyphicon-floppy-open:before { - content: "\e176" -} - -.glyphicon-credit-card:before { - content: "\e177" -} - -.glyphicon-transfer:before { - content: "\e178" -} - -.glyphicon-cutlery:before { - content: "\e179" -} - -.glyphicon-header:before { - content: "\e180" -} - -.glyphicon-compressed:before { - content: "\e181" -} - -.glyphicon-earphone:before { - content: "\e182" -} - -.glyphicon-phone-alt:before { - content: "\e183" -} - -.glyphicon-tower:before { - content: "\e184" -} - -.glyphicon-stats:before { - content: "\e185" -} - -.glyphicon-sd-video:before { - content: "\e186" -} - -.glyphicon-hd-video:before { - content: "\e187" -} - -.glyphicon-subtitles:before { - content: "\e188" -} - -.glyphicon-sound-stereo:before { - content: "\e189" -} - -.glyphicon-sound-dolby:before { - content: "\e190" -} - -.glyphicon-sound-5-1:before { - content: "\e191" -} - -.glyphicon-sound-6-1:before { - content: "\e192" -} - -.glyphicon-sound-7-1:before { - content: "\e193" -} - -.glyphicon-copyright-mark:before { - content: "\e194" -} - -.glyphicon-registration-mark:before { - content: "\e195" -} - -.glyphicon-cloud-download:before { - content: "\e197" -} - -.glyphicon-cloud-upload:before { - content: "\e198" -} - -.glyphicon-tree-conifer:before { - content: "\e199" -} - -.glyphicon-tree-deciduous:before { - content: "\e200" -} - -.glyphicon-cd:before { - content: "\e201" -} - -.glyphicon-save-file:before { - content: "\e202" -} - -.glyphicon-open-file:before { - content: "\e203" -} - -.glyphicon-level-up:before { - content: "\e204" -} - -.glyphicon-copy:before { - content: "\e205" -} - -.glyphicon-paste:before { - content: "\e206" -} - -.glyphicon-alert:before { - content: "\e209" -} - -.glyphicon-equalizer:before { - content: "\e210" -} - -.glyphicon-king:before { - content: "\e211" -} - -.glyphicon-queen:before { - content: "\e212" -} - -.glyphicon-pawn:before { - content: "\e213" -} - -.glyphicon-bishop:before { - content: "\e214" -} - -.glyphicon-knight:before { - content: "\e215" -} - -.glyphicon-baby-formula:before { - content: "\e216" -} - -.glyphicon-tent:before { - content: "⛺" -} - -.glyphicon-blackboard:before { - content: "\e218" -} - -.glyphicon-bed:before { - content: "\e219" -} - -.glyphicon-apple:before { - content: "\f8ff" -} - -.glyphicon-erase:before { - content: "\e221" -} - -.glyphicon-hourglass:before { - content: "⌛" -} - -.glyphicon-lamp:before { - content: "\e223" -} - -.glyphicon-duplicate:before { - content: "\e224" -} - -.glyphicon-piggy-bank:before { - content: "\e225" -} - -.glyphicon-scissors:before { - content: "\e226" -} - -.glyphicon-bitcoin:before { - content: "\e227" -} - -.glyphicon-btc:before { - content: "\e227" -} - -.glyphicon-xbt:before { - content: "\e227" -} - -.glyphicon-yen:before { - content: "¥" -} - -.glyphicon-jpy:before { - content: "¥" -} - -.glyphicon-ruble:before { - content: "₽" -} - -.glyphicon-rub:before { - content: "₽" -} - -.glyphicon-scale:before { - content: "\e230" -} - -.glyphicon-ice-lolly:before { - content: "\e231" -} - -.glyphicon-ice-lolly-tasted:before { - content: "\e232" -} - -.glyphicon-education:before { - content: "\e233" -} - -.glyphicon-option-horizontal:before { - content: "\e234" -} - -.glyphicon-option-vertical:before { - content: "\e235" -} - -.glyphicon-menu-hamburger:before { - content: "\e236" -} - -.glyphicon-modal-window:before { - content: "\e237" -} - -.glyphicon-oil:before { - content: "\e238" -} - -.glyphicon-grain:before { - content: "\e239" -} - -.glyphicon-sunglasses:before { - content: "\e240" -} - -.glyphicon-text-size:before { - content: "\e241" -} - -.glyphicon-text-color:before { - content: "\e242" -} - -.glyphicon-text-background:before { - content: "\e243" -} - -.glyphicon-object-align-top:before { - content: "\e244" -} - -.glyphicon-object-align-bottom:before { - content: "\e245" -} - -.glyphicon-object-align-horizontal:before { - content: "\e246" -} - -.glyphicon-object-align-left:before { - content: "\e247" -} - -.glyphicon-object-align-vertical:before { - content: "\e248" -} - -.glyphicon-object-align-right:before { - content: "\e249" -} - -.glyphicon-triangle-right:before { - content: "\e250" -} - -.glyphicon-triangle-left:before { - content: "\e251" -} - -.glyphicon-triangle-bottom:before { - content: "\e252" -} - -.glyphicon-triangle-top:before { - content: "\e253" -} - -.glyphicon-console:before { - content: "\e254" -} - -.glyphicon-superscript:before { - content: "\e255" -} - -.glyphicon-subscript:before { - content: "\e256" -} - -.glyphicon-menu-left:before { - content: "\e257" -} - -.glyphicon-menu-right:before { - content: "\e258" -} - -.glyphicon-menu-down:before { - content: "\e259" -} - -.glyphicon-menu-up:before { - content: "\e260" -} - -/*! Core - HTML */ -main .glyphicon { - top: 2px -} - -.glyphicon-error { - color: #96323a; - font-size: 400% -} - -@font-face { - font-family: gcweb; - font-style: normal; - font-weight: 400; - src: url("../fonts/gcweb_0c4a4eb7974d0a7287c93c02965f9b3f.eot"),url("../fonts/gcweb_0c4a4eb7974d0a7287c93c02965f9b3f.eot?#iefix") format("embedded-opentype"),url("../fonts/gcweb_0c4a4eb7974d0a7287c93c02965f9b3f.woff") format("woff"),url("../fonts/gcweb_0c4a4eb7974d0a7287c93c02965f9b3f.ttf") format("truetype"),url("../fonts/gcweb_0c4a4eb7974d0a7287c93c02965f9b3f.svg#gcweb") format("svg") -} - -.cndwrdmrk:after,.cndwrdmrk:before,.icn-sig-en:before,.icn-sig-fr:before { - display: block; - -webkit-font-smoothing: antialiased; - line-height: 1; - text-decoration: none; - text-shadow: 0 0 1px rgba(0,0,0,.3); - -webkit-text-stroke: 1px transparent; - text-transform: none; - -webkit-transform: rotate(0); - transform: rotate(0); - font-family: gcweb; - font-style: normal; - font-variant: normal; - font-weight: 400 -} - -.icn-sig-en,.icn-sig-fr { - color: #fff; - display: inline-block; - font-size: 1.5em; - padding: .7em 0 .5em -} - -.icn-sig-en:before,.icn-sig-fr:before { - position: relative -} - -.icn-sig-fr:before,:root .icn-sig-en:before { - left: -10em -} - -.icn-sig-en:before { - content: "\f102" -} - -.icn-sig-fr:before { - content: "\f103" -} - -.cndwrdmrk { - font-size: 3.5em; - min-width: 100%; - position: relative; - text-decoration: none -} - -.cndwrdmrk:after,.cndwrdmrk:before { - display: inline; - position: relative -} - -.cndwrdmrk:before { - color: #000; - content: "\f100" -} - -.cndwrdmrk:after { - color: red; - content: "\f101"; - left: -1em -} - -@font-face { - font-display: optional; - font-family: "Noto Sans"; - font-style: italic; - font-weight: 400; - src: url("https://fonts.gstatic.com/s/notosans/v25/o-0OIpQlx3QUlC5A4PNr4ARMQ_m87A.woff2") format("woff2"); - unicode-range: U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF -} - -@font-face { - font-display: fallback; - font-family: "Noto Sans"; - font-style: italic; - font-weight: 400; - src: url("https://fonts.gstatic.com/s/notosans/v25/o-0OIpQlx3QUlC5A4PNr4ARCQ_k.woff2") format("woff2"); - unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD -} - -@font-face { - font-display: optional; - font-family: "Noto Sans"; - font-style: italic; - font-weight: 700; - src: url("https://fonts.gstatic.com/s/notosans/v25/o-0TIpQlx3QUlC5A4PNr4Az5ZuyNzW1aPQ.woff2") format("woff2"); - unicode-range: U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF -} - -@font-face { - font-display: optional; - font-family: "Noto Sans"; - font-style: italic; - font-weight: 700; - src: url("https://fonts.gstatic.com/s/notosans/v25/o-0TIpQlx3QUlC5A4PNr4Az5ZuyDzW0.woff2") format("woff2"); - unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD -} - -@font-face { - font-display: optional; - font-family: "Noto Sans"; - font-style: normal; - font-weight: 400; - src: url("https://fonts.gstatic.com/s/notosans/v25/o-0IIpQlx3QUlC5A4PNr6zRAW_0.woff2") format("woff2"); - unicode-range: U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF -} - -@font-face { - font-display: fallback; - font-family: "Noto Sans"; - font-style: normal; - font-weight: 400; - src: url("https://fonts.gstatic.com/s/notosans/v25/o-0IIpQlx3QUlC5A4PNr5TRA.woff2") format("woff2"); - unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD -} - -@font-face { - font-display: optional; - font-family: "Noto Sans"; - font-style: normal; - font-weight: 700; - src: url("https://fonts.gstatic.com/s/notosans/v25/o-0NIpQlx3QUlC5A4PNjXhFVatyB1Wk.woff2") format("woff2"); - unicode-range: U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF -} - -@font-face { - font-display: fallback; - font-family: "Noto Sans"; - font-style: normal; - font-weight: 700; - src: url("https://fonts.gstatic.com/s/notosans/v25/o-0NIpQlx3QUlC5A4PNjXhFVZNyB.woff2") format("woff2"); - unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD -} - -@font-face { - font-display: fallback; - font-family: "Noto Sans Canadian Aboriginal"; - font-style: normal; - font-weight: 400; - src: url("https://fonts.gstatic.com/s/notosanscanadianaboriginal/v28/4C_gLjTuEqPj-8J01CwaGkiZ9os0iGVkezM1mUT-j_Lmlx15whAXAg.woff2") format("woff2"); - unicode-range: U+1400-167F,U+18B0-18FF,U+11AB0-11ABF -} - -@font-face { - font-display: fallback; - font-family: "Noto Sans Canadian Aboriginal"; - font-style: normal; - font-weight: 700; - src: url("https://fonts.gstatic.com/s/notosanscanadianaboriginal/v28/4C_gLjTuEqPj-8J01CwaGkiZ9os0iGVkezM1mUT-j_Lmlx15whAXAg.woff2") format("woff2"); - unicode-range: U+1400-167F,U+18B0-18FF,U+11AB0-11ABF -} - -@font-face { - font-display: optional; - font-family: Lato; - font-style: italic; - font-weight: 400; - src: url("https://fonts.gstatic.com/s/lato/v22/S6u8w4BMUTPHjxsAUi-qJCY.woff2") format("woff2"); - unicode-range: U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF -} - -@font-face { - font-display: fallback; - font-family: Lato; - font-style: italic; - font-weight: 400; - src: url("https://fonts.gstatic.com/s/lato/v22/S6u8w4BMUTPHjxsAXC-q.woff2") format("woff2"); - unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD -} - -@font-face { - font-display: optional; - font-family: Lato; - font-style: italic; - font-weight: 700; - src: url("https://fonts.gstatic.com/s/lato/v22/S6u_w4BMUTPHjxsI5wq_FQft1dw.woff2") format("woff2"); - unicode-range: U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF -} - -@font-face { - font-display: fallback; - font-family: Lato; - font-style: italic; - font-weight: 700; - src: url("https://fonts.gstatic.com/s/lato/v22/S6u_w4BMUTPHjxsI5wq_Gwft.woff2") format("woff2"); - unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD -} - -@font-face { - font-display: optional; - font-family: Lato; - font-style: normal; - font-weight: 400; - src: url("https://fonts.gstatic.com/s/lato/v22/S6uyw4BMUTPHjxAwXjeu.woff2") format("woff2"); - unicode-range: U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF -} - -@font-face { - font-display: fallback; - font-family: Lato; - font-style: normal; - font-weight: 400; - src: url("https://fonts.gstatic.com/s/lato/v22/S6uyw4BMUTPHjx4wXg.woff2") format("woff2"); - unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD -} - -@font-face { - font-display: optional; - font-family: Lato; - font-style: normal; - font-weight: 700; - src: url("https://fonts.gstatic.com/s/lato/v22/S6u9w4BMUTPHh6UVSwaPGR_p.woff2") format("woff2"); - unicode-range: U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF -} - -@font-face { - font-display: fallback; - font-family: Lato; - font-style: normal; - font-weight: 700; - src: url("https://fonts.gstatic.com/s/lato/v22/S6u9w4BMUTPHh6UVSwiPGQ.woff2") format("woff2"); - unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD -} - -* { - -webkit-box-sizing: border-box; - box-sizing: border-box -} - -:after,:before { - -webkit-box-sizing: border-box; - box-sizing: border-box -} - -html { - font-size: 10px; - -webkit-tap-highlight-color: transparent -} - -body { - font-family: "Noto Sans","Noto Sans Canadian Aboriginal",sans-serif; - font-size: 16px; - line-height: 1.4375; - color: #333; - background-color: #fff -} - -button,input,select,textarea { - font-family: inherit; - font-size: inherit; - line-height: inherit -} - -a { - color: #295376; - text-decoration: none -} - -a:focus,a:hover { - color: #0535d2; - text-decoration: underline -} - -a:focus { - outline: 5px auto -webkit-focus-ring-color; - outline-offset: -2px -} - -figure { - margin: 0 -} - -img { - vertical-align: middle -} - -.img-responsive { - display: block; - max-width: 100%; - height: auto -} - -.img-rounded { - border-radius: 6px -} - -.img-thumbnail { - padding: 4px; - line-height: 1.4375; - background-color: #fff; - border: 1px solid #ddd; - border-radius: 4px; - -webkit-transition: all .2s ease-in-out; - transition: all .2s ease-in-out; - display: inline-block; - max-width: 100%; - height: auto -} - -.img-circle { - border-radius: 50% -} - -hr { - margin-top: 23px; - margin-bottom: 23px; - border: 0; - border-top: 1px solid rgb(238.425,238.425,238.425) -} - -.sr-only { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - margin: -1px; - overflow: hidden; - clip: rect(0,0,0,0); - border: 0 -} - -.sr-only-focusable:active,.sr-only-focusable:focus { - position: static; - width: auto; - height: auto; - margin: 0; - overflow: visible; - clip: auto -} - -[role=button] { - cursor: pointer -} - -.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6 { - font-family: inherit; - font-weight: 500; - line-height: 1.1; - color: inherit -} - -.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small { - font-weight: 400; - line-height: 1; - color: #6f6f6f -} - -.h1,.h2,.h3,h1,h2,h3 { - margin-top: 23px; - margin-bottom: 11.5px -} - -.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small { - font-size: 65% -} - -.h4,.h5,.h6,h4,h5,h6 { - margin-top: 11.5px; - margin-bottom: 11.5px -} - -.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small { - font-size: 75% -} - -.h1,h1 { - font-size: 2.5625rem -} - -.h2,h2 { - font-size: 2.4375rem -} - -.h3,h3 { - font-size: 1.8125rem -} - -.h4,h4 { - font-size: 1.6875rem -} - -.h5,h5 { - font-size: 1.5rem -} - -.h6,h6 { - font-size: 1.375rem -} - -p { - margin: 0 0 11.5px -} - -.lead { - margin-bottom: 23px; - font-size: 18px; - font-weight: 300; - line-height: 1.4 -} - -@media (min-width: 768px) { - .lead { - font-size:24px - } -} - -.small,small { - font-size: 87% -} - -.mark,mark { - padding: .2em; - background-color: #fcf8e3 -} - -.text-left { - text-align: left -} - -.text-right { - text-align: right -} - -.text-center { - text-align: center -} - -.text-justify { - text-align: justify -} - -.text-nowrap { - white-space: nowrap -} - -.text-lowercase { - text-transform: lowercase -} - -.initialism,.text-uppercase { - text-transform: uppercase -} - -.text-capitalize { - text-transform: capitalize -} - -.text-muted { - color: #6f6f6f -} - -.text-primary { - color: #2572b4 -} - -a.text-primary:focus,a.text-primary:hover { - color: rgb(28.3041474654,87.2073732719,137.6958525346) -} - -.text-success { - color: #3c763d -} - -a.text-success:focus,a.text-success:hover { - color: rgb(42.808988764,84.191011236,43.5224719101) -} - -.text-info { - color: #31708f -} - -a.text-info:focus,a.text-info:hover { - color: rgb(35.984375,82.25,105.015625) -} - -.text-warning { - color: #8a6d3b -} - -a.text-warning:focus,a.text-warning:hover { - color: rgb(102.2741116751,80.7817258883,43.7258883249) -} - -.text-danger { - color: #a94442 -} - -a.text-danger:focus,a.text-danger:hover { - color: rgb(132.3234042553,53.2425531915,51.6765957447) -} - -.bg-primary { - color: #fff -} - -.bg-primary { - background-color: #2572b4 -} - -a.bg-primary:focus,a.bg-primary:hover { - background-color: rgb(28.3041474654,87.2073732719,137.6958525346) -} - -.bg-success { - background-color: #dff0d8 -} - -a.bg-success:focus,a.bg-success:hover { - background-color: rgb(192.7777777778,225.8333333333,179.1666666667) -} - -.bg-info { - background-color: #d9edf7 -} - -a.bg-info:focus,a.bg-info:hover { - background-color: rgb(174.8695652174,217.0434782609,238.1304347826) -} - -.bg-warning { - background-color: #fcf8e3 -} - -a.bg-warning:focus,a.bg-warning:hover { - background-color: rgb(247.064516129,236.4838709677,180.935483871) -} - -.bg-danger { - background-color: #f2dede -} - -a.bg-danger:focus,a.bg-danger:hover { - background-color: rgb(227.5869565217,185.4130434783,185.4130434783) -} - -.page-header { - padding-bottom: 10.5px; - margin: 46px 0 23px; - border-bottom: 1px solid rgb(238.425,238.425,238.425) -} - -ol,ul { - margin-top: 0; - margin-bottom: 11.5px -} - -ol ol,ol ul,ul ol,ul ul { - margin-bottom: 0 -} - -.list-unstyled { - padding-left: 0; - list-style: none -} - -.list-inline { - padding-left: 0; - list-style: none; - margin-left: -5px -} - -.list-inline>li { - display: inline-block; - padding-right: 5px; - padding-left: 5px -} - -dl { - margin-top: 0; - margin-bottom: 23px -} - -dd,dt { - line-height: 1.4375 -} - -dt { - font-weight: 700 -} - -dd { - margin-left: 0 -} - -.dl-horizontal dd:after,.dl-horizontal dd:before { - display: table; - content: " " -} - -.dl-horizontal dd:after { - clear: both -} - -@media (min-width: 768px) { - .dl-horizontal dt { - float:left; - width: 160px; - clear: left; - text-align: right; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap - } - - .dl-horizontal dd { - margin-left: 180px - } -} - -abbr[data-original-title],abbr[title] { - cursor: help -} - -.initialism { - font-size: 90% -} - -blockquote { - padding: 11.5px 23px; - margin: 0 0 23px; - font-size: 20px; - border-left: 5px solid rgb(238.425,238.425,238.425) -} - -blockquote ol:last-child,blockquote p:last-child,blockquote ul:last-child { - margin-bottom: 0 -} - -blockquote .small,blockquote footer,blockquote small { - display: block; - font-size: 80%; - line-height: 1.4375; - color: #6f6f6f -} - -blockquote .small:before,blockquote footer:before,blockquote small:before { - content: "— " -} - -.blockquote-reverse,blockquote.pull-right { - padding-right: 15px; - padding-left: 0; - text-align: right; - border-right: 5px solid rgb(238.425,238.425,238.425); - border-left: 0 -} - -.blockquote-reverse .small:before,.blockquote-reverse footer:before,.blockquote-reverse small:before,blockquote.pull-right .small:before,blockquote.pull-right footer:before,blockquote.pull-right small:before { - content: "" -} - -.blockquote-reverse .small:after,.blockquote-reverse footer:after,.blockquote-reverse small:after,blockquote.pull-right .small:after,blockquote.pull-right footer:after,blockquote.pull-right small:after { - content: " —" -} - -address { - margin-bottom: 23px; - font-style: normal; - line-height: 1.4375 -} - -/*! Placeholders */ -.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6 { - font-weight: 700 -} - -.h1,.h2,h1,h2 { - margin-top: 38px -} - -.h3,h3 { - margin-top: 32px -} - -.h4,h4 { - margin-top: 26px -} - -.h5,h5 { - margin-top: 23px -} - -.h6,h6 { - margin-top: 21px -} - -.list-responsive>li { - float: left; - padding-right: 5px; - width: 50% -} - -.list-responsive>li:nth-child(2n+2) { - clear: right -} - -.list-responsive:after,.list-responsive:before { - content: " "; - display: table -} - -.list-responsive:after { - clear: both -} - -ul[class*=list-col] { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - list-style: none; - padding-left: 0; - padding-right: 0 -} - -ul[class*=list-col]>li { - -ms-flex-preferred-size: 100%; - flex-basis: 100%; - -webkit-box-flex: 0; - -ms-flex-positive: 0; - flex-grow: 0; - -ms-flex-negative: 0; - flex-shrink: 0 -} - -ul.list-col-xs-1>li { - -ms-flex-preferred-size: 100%; - flex-basis: 100% -} - -ul.list-col-xs-2>li { - -ms-flex-preferred-size: 50%; - flex-basis: 50% -} - -ul.list-col-xs-3>li { - -ms-flex-preferred-size: 33.33%; - flex-basis: 33.33% -} - -ul.list-col-xs-4>li { - -ms-flex-preferred-size: 25%; - flex-basis: 25% -} - -.lst-lwr-alph,div.lst-lwr-alph>ol { - list-style-type: lower-alpha -} - -.lst-upr-alph,div.lst-upr-alph>ol { - list-style-type: upper-alpha -} - -.lst-lwr-rmn,div.lst-lwr-rmn>ol { - list-style-type: lower-roman -} - -.lst-upr-rmn,div.lst-upr-rmn>ol { - list-style-type: upper-roman -} - -.lst-num { - list-style-type: decimal -} - -.lst-none,div.lst-none>ul { - list-style-type: none -} - -div.lst-spcd>ol>li,div.lst-spcd>ul>li,ol.lst-spcd>li,ul.lst-spcd>li { - margin-bottom: 10px -} - -div.lst-spcd>ol ol,div.lst-spcd>ol ul,div.lst-spcd>ul ol,div.lst-spcd>ul ul,ol.lst-spcd ol,ol.lst-spcd ul,ul.lst-spcd ol,ul.lst-spcd ul { - margin-top: 10px -} - -div.lst-spcd-2>ol>li,div.lst-spcd-2>ul>li,ol.lst-spcd-2>li,ul.lst-spcd-2>li { - margin-bottom: 20px -} - -div.lst-spcd-2>ol ol,div.lst-spcd-2>ol ul,div.lst-spcd-2>ul ol,div.lst-spcd-2>ul ul,ol.lst-spcd-2 ol,ol.lst-spcd-2 ul,ul.lst-spcd-2 ol,ul.lst-spcd-2 ul { - margin-top: 20px -} - -div.list-unstyled>ul { - list-style: none; - padding-left: 0 -} - -div.list-inline>ul { - list-style: none; - margin-left: -5px; - padding-left: 0 -} - -div.list-inline>ul>li { - display: inline-block; - padding-left: 5px; - padding-right: 5px -} - -div.list-advanced.disc>ul,ul.disc { - list-style-type: disc -} - -div.list-advanced.circle>ul,ul.circle { - list-style-type: circle -} - -div.list-advanced.square>ul,ul.square { - list-style-type: square -} - -ul.compact li { - font-size: 17px; - line-height: 1.5em -} - -/*! Placeholders */ -.nav a,a.btn { - text-decoration: none -} - -a { - text-decoration: underline -} - -a:visited { - color: #7834bc -} - -a:not([href]) { - color: inherit; - text-decoration: none -} - -a:not([href]):focus,a:not([href]):hover { - color: inherit; - outline: 0; - text-decoration: none -} - -@media (min-width: 768px) { - .dl-horizontal.brdr-0 dd,.dl-horizontal.brdr-0 dt { - border:0!important - } - - .dl-horizontal dt { - border-top: 1px solid #ccc; - -ms-hyphens: auto; - hyphens: auto; - padding: 10px 10px 10px 0; - text-align: left; - white-space: normal; - width: 20ch; - word-break: break-word - } - - .dl-horizontal dd { - border-top: 1px solid #ccc; - margin-bottom: 3px; - margin-left: 20ch; - padding: 10px 10px 10px 0 - } - - .dl-horizontal dt+dd { - padding-bottom: 0 - } - - .dl-horizontal.dt-max { - display: grid; - grid-template-columns: minmax(-webkit-min-content,-webkit-min-content) auto; - grid-template-columns: minmax(min-content,min-content) auto - } - - .dl-horizontal.dt-max dt { - -ms-hyphens: none; - hyphens: none; - min-width: 20ch; - white-space: normal; - width: auto; - word-break: initial - } - - .dl-horizontal.dt-max dd { - margin-left: 0 - } -} - -.dl-inline dd,.dl-inline dt { - display: inline -} - -.dl-inline dd+dt { - margin-left: 15px -} - -abbr[title] { - border-bottom: 1px dotted; - text-decoration: none -} - -@supports (text-decoration: underline dotted) { - abbr[title] { - border-bottom:0; - text-decoration: underline dotted; - -webkit-text-decoration-skip-ink: none; - text-decoration-skip-ink: none - } -} - -code { - white-space: normal -} - -dt { - margin-bottom: 3px -} - -dd { - margin-bottom: 15px -} - -blockquote { - font-size: 16px -} - -[dir=rtl] .list-unstyled { - padding-right: 0 -} - -mark { - background-color: #ff0; - color: #000; - font-weight: 700 -} - -[hidden] { - display: none!important -} - -q:after,q:before { - content: "" -} - -summary { - cursor: pointer -} - -summary:focus,summary:hover { - background: #ddd; - color: #000 -} - -summary>:first-child { - display: inline -} - -details { - padding-left: 1.1em; - padding-right: 1.1em -} - -details>summary { - margin-left: -1.1em; - margin-right: -1.1em -} - -details[open] { - padding-bottom: 1em -} - -#wb-sec,main h1,main h2,main h3,main h4,main h5,main h6,main p,main table caption p { - word-break: break-word -} - -html { - font-size: unset; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility -} - -body { - font-size: unset -} - -main { - font-size: 1.25rem; - line-height: 1.6; - position: relative -} - -main table caption { - text-align: left -} - -main table p { - word-break: initial -} - -.cnt-wdth-lmtd main h2,main .cnt-wdth-lmtd h2 { - max-width: 33ch -} - -.cnt-wdth-lmtd main h3,main .cnt-wdth-lmtd h3 { - max-width: 50ch -} - -.cnt-wdth-lmtd main h4,main .cnt-wdth-lmtd h4 { - max-width: 59ch -} - -.cnt-wdth-lmtd main li,main .cnt-wdth-lmtd li { - max-width: 63ch -} - -.cnt-wdth-lmtd main dd,.cnt-wdth-lmtd main dt,.cnt-wdth-lmtd main h5,.cnt-wdth-lmtd main h6,.cnt-wdth-lmtd main p,main .cnt-wdth-lmtd dd,main .cnt-wdth-lmtd dt,main .cnt-wdth-lmtd h5,main .cnt-wdth-lmtd h6,main .cnt-wdth-lmtd p { - max-width: 65ch -} - -a { - color: #284162 -} - -a img.thumbnail:hover { - -webkit-box-shadow: 1px 1px 5px #999; - box-shadow: 1px 1px 5px #999 -} - -a.no-undrln { - text-decoration: none -} - -a.figcaption { - text-decoration: none -} - -a.figcaption:not([class*=text-]) * :not(figcaption) { - color: #333 -} - -a.figcaption figure>:not(blockquote,img,table,div) { - margin-left: .8ch; - margin-right: .8ch -} - -a.figcaption figcaption { - text-decoration: underline -} - -details[open]>summary.btn-default { - border: 1px outset rgb(220.2692307692,221.9230769231,225.2307692308); - border-bottom-left-radius: 4px; - border-bottom-right-radius: 4px -} - -code,kbd,pre,samp { - font-family: Menlo,Monaco,Consolas,"Courier New",monospace -} - -code { - padding: 2px 4px; - font-size: 90%; - color: #c7254e; - background-color: #f9f2f4; - border-radius: 4px -} - -kbd { - padding: 2px 4px; - font-size: 90%; - color: #fff; - background-color: #333; - border-radius: 3px; - -webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,.25); - box-shadow: inset 0 -1px 0 rgba(0,0,0,.25) -} - -kbd kbd { - padding: 0; - font-size: 100%; - font-weight: 700; - -webkit-box-shadow: none; - box-shadow: none -} - -pre { - display: block; - padding: 11px; - margin: 0 0 11.5px; - font-size: 15px; - line-height: 1.4375; - color: #333; - word-break: break-all; - word-wrap: break-word; - background-color: #f5f5f5; - border: 1px solid #ccc; - border-radius: 4px -} - -pre code { - padding: 0; - font-size: inherit; - color: inherit; - white-space: pre-wrap; - background-color: transparent; - border-radius: 0 -} - -.pre-scrollable { - max-height: 340px; - overflow-y: scroll -} - -.container { - padding-right: 15px; - padding-left: 15px; - margin-right: auto; - margin-left: auto -} - -.container:after,.container:before { - display: table; - content: " " -} - -.container:after { - clear: both -} - -@media (min-width: 768px) { - .container { - width:750px - } -} - -@media (min-width: 992px) { - .container { - width:970px - } -} - -@media (min-width: 1200px) { - .container { - width:1170px - } -} - -.container-fluid { - padding-right: 15px; - padding-left: 15px; - margin-right: auto; - margin-left: auto -} - -.container-fluid:after,.container-fluid:before { - display: table; - content: " " -} - -.container-fluid:after { - clear: both -} - -.row { - margin-right: -15px; - margin-left: -15px -} - -.row:after,.row:before { - display: table; - content: " " -} - -.row:after { - clear: both -} - -.no-js #gc-pft .row-no-gutters,.row-no-gutters,.wb-disable #gc-pft .row-no-gutters { - margin-right: 0; - margin-left: 0 -} - -.no-js #gc-pft .row-no-gutters [class*=col-],.row-no-gutters [class*=col-],.wb-disable #gc-pft .row-no-gutters [class*=col-] { - padding-right: 0; - padding-left: 0 -} - -.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.no-js #gc-pft .nojs-col-sm-12,.wb-disable #gc-pft .nojs-col-sm-12 { - position: relative; - min-height: 1px; - padding-right: 15px; - padding-left: 15px -} - -.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9 { - float: left -} - -.col-xs-1 { - width: 8.3333333333% -} - -.col-xs-2 { - width: 16.6666666667% -} - -.col-xs-3 { - width: 25% -} - -.col-xs-4 { - width: 33.3333333333% -} - -.col-xs-5 { - width: 41.6666666667% -} - -.col-xs-6 { - width: 50% -} - -.col-xs-7 { - width: 58.3333333333% -} - -.col-xs-8 { - width: 66.6666666667% -} - -.col-xs-9 { - width: 75% -} - -.col-xs-10 { - width: 83.3333333333% -} - -.col-xs-11 { - width: 91.6666666667% -} - -.col-xs-12 { - width: 100% -} - -.col-xs-pull-0 { - right: auto -} - -.col-xs-pull-1 { - right: 8.3333333333% -} - -.col-xs-pull-2 { - right: 16.6666666667% -} - -.col-xs-pull-3 { - right: 25% -} - -.col-xs-pull-4 { - right: 33.3333333333% -} - -.col-xs-pull-5 { - right: 41.6666666667% -} - -.col-xs-pull-6 { - right: 50% -} - -.col-xs-pull-7 { - right: 58.3333333333% -} - -.col-xs-pull-8 { - right: 66.6666666667% -} - -.col-xs-pull-9 { - right: 75% -} - -.col-xs-pull-10 { - right: 83.3333333333% -} - -.col-xs-pull-11 { - right: 91.6666666667% -} - -.col-xs-pull-12 { - right: 100% -} - -.col-xs-push-0 { - left: auto -} - -.col-xs-push-1 { - left: 8.3333333333% -} - -.col-xs-push-2 { - left: 16.6666666667% -} - -.col-xs-push-3 { - left: 25% -} - -.col-xs-push-4 { - left: 33.3333333333% -} - -.col-xs-push-5 { - left: 41.6666666667% -} - -.col-xs-push-6 { - left: 50% -} - -.col-xs-push-7 { - left: 58.3333333333% -} - -.col-xs-push-8 { - left: 66.6666666667% -} - -.col-xs-push-9 { - left: 75% -} - -.col-xs-push-10 { - left: 83.3333333333% -} - -.col-xs-push-11 { - left: 91.6666666667% -} - -.col-xs-push-12 { - left: 100% -} - -.col-xs-offset-0 { - margin-left: 0 -} - -.col-xs-offset-1 { - margin-left: 8.3333333333% -} - -.col-xs-offset-2 { - margin-left: 16.6666666667% -} - -.col-xs-offset-3 { - margin-left: 25% -} - -.col-xs-offset-4 { - margin-left: 33.3333333333% -} - -.col-xs-offset-5 { - margin-left: 41.6666666667% -} - -.col-xs-offset-6 { - margin-left: 50% -} - -.col-xs-offset-7 { - margin-left: 58.3333333333% -} - -.col-xs-offset-8 { - margin-left: 66.6666666667% -} - -.col-xs-offset-9 { - margin-left: 75% -} - -.col-xs-offset-10 { - margin-left: 83.3333333333% -} - -.col-xs-offset-11 { - margin-left: 91.6666666667% -} - -.col-xs-offset-12 { - margin-left: 100% -} - -@media (min-width: 768px) { - .col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.no-js #gc-pft .nojs-col-sm-12,.wb-disable #gc-pft .nojs-col-sm-12 { - float:left - } - - .col-sm-1 { - width: 8.3333333333% - } - - .col-sm-2 { - width: 16.6666666667% - } - - .col-sm-3 { - width: 25% - } - - .col-sm-4 { - width: 33.3333333333% - } - - .col-sm-5 { - width: 41.6666666667% - } - - .col-sm-6 { - width: 50% - } - - .col-sm-7 { - width: 58.3333333333% - } - - .col-sm-8 { - width: 66.6666666667% - } - - .col-sm-9 { - width: 75% - } - - .col-sm-10 { - width: 83.3333333333% - } - - .col-sm-11 { - width: 91.6666666667% - } - - .col-sm-12,.no-js #gc-pft .nojs-col-sm-12,.wb-disable #gc-pft .nojs-col-sm-12 { - width: 100% - } - - .col-sm-pull-0 { - right: auto - } - - .col-sm-pull-1 { - right: 8.3333333333% - } - - .col-sm-pull-2 { - right: 16.6666666667% - } - - .col-sm-pull-3 { - right: 25% - } - - .col-sm-pull-4 { - right: 33.3333333333% - } - - .col-sm-pull-5 { - right: 41.6666666667% - } - - .col-sm-pull-6 { - right: 50% - } - - .col-sm-pull-7 { - right: 58.3333333333% - } - - .col-sm-pull-8 { - right: 66.6666666667% - } - - .col-sm-pull-9 { - right: 75% - } - - .col-sm-pull-10 { - right: 83.3333333333% - } - - .col-sm-pull-11 { - right: 91.6666666667% - } - - .col-sm-pull-12 { - right: 100% - } - - .col-sm-push-0 { - left: auto - } - - .col-sm-push-1 { - left: 8.3333333333% - } - - .col-sm-push-2 { - left: 16.6666666667% - } - - .col-sm-push-3 { - left: 25% - } - - .col-sm-push-4 { - left: 33.3333333333% - } - - .col-sm-push-5 { - left: 41.6666666667% - } - - .col-sm-push-6 { - left: 50% - } - - .col-sm-push-7 { - left: 58.3333333333% - } - - .col-sm-push-8 { - left: 66.6666666667% - } - - .col-sm-push-9 { - left: 75% - } - - .col-sm-push-10 { - left: 83.3333333333% - } - - .col-sm-push-11 { - left: 91.6666666667% - } - - .col-sm-push-12 { - left: 100% - } - - .col-sm-offset-0 { - margin-left: 0 - } - - .col-sm-offset-1 { - margin-left: 8.3333333333% - } - - .col-sm-offset-2 { - margin-left: 16.6666666667% - } - - .col-sm-offset-3 { - margin-left: 25% - } - - .col-sm-offset-4 { - margin-left: 33.3333333333% - } - - .col-sm-offset-5 { - margin-left: 41.6666666667% - } - - .col-sm-offset-6 { - margin-left: 50% - } - - .col-sm-offset-7 { - margin-left: 58.3333333333% - } - - .col-sm-offset-8 { - margin-left: 66.6666666667% - } - - .col-sm-offset-9 { - margin-left: 75% - } - - .col-sm-offset-10 { - margin-left: 83.3333333333% - } - - .col-sm-offset-11 { - margin-left: 91.6666666667% - } - - .col-sm-offset-12 { - margin-left: 100% - } -} - -@media (min-width: 992px) { - .col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9 { - float:left - } - - .col-md-1 { - width: 8.3333333333% - } - - .col-md-2 { - width: 16.6666666667% - } - - .col-md-3 { - width: 25% - } - - .col-md-4 { - width: 33.3333333333% - } - - .col-md-5 { - width: 41.6666666667% - } - - .col-md-6 { - width: 50% - } - - .col-md-7 { - width: 58.3333333333% - } - - .col-md-8 { - width: 66.6666666667% - } - - .col-md-9 { - width: 75% - } - - .col-md-10 { - width: 83.3333333333% - } - - .col-md-11 { - width: 91.6666666667% - } - - .col-md-12 { - width: 100% - } - - .col-md-pull-0 { - right: auto - } - - .col-md-pull-1 { - right: 8.3333333333% - } - - .col-md-pull-2 { - right: 16.6666666667% - } - - .col-md-pull-3 { - right: 25% - } - - .col-md-pull-4 { - right: 33.3333333333% - } - - .col-md-pull-5 { - right: 41.6666666667% - } - - .col-md-pull-6 { - right: 50% - } - - .col-md-pull-7 { - right: 58.3333333333% - } - - .col-md-pull-8 { - right: 66.6666666667% - } - - .col-md-pull-9 { - right: 75% - } - - .col-md-pull-10 { - right: 83.3333333333% - } - - .col-md-pull-11 { - right: 91.6666666667% - } - - .col-md-pull-12 { - right: 100% - } - - .col-md-push-0 { - left: auto - } - - .col-md-push-1 { - left: 8.3333333333% - } - - .col-md-push-2 { - left: 16.6666666667% - } - - .col-md-push-3 { - left: 25% - } - - .col-md-push-4 { - left: 33.3333333333% - } - - .col-md-push-5 { - left: 41.6666666667% - } - - .col-md-push-6 { - left: 50% - } - - .col-md-push-7 { - left: 58.3333333333% - } - - .col-md-push-8 { - left: 66.6666666667% - } - - .col-md-push-9 { - left: 75% - } - - .col-md-push-10 { - left: 83.3333333333% - } - - .col-md-push-11 { - left: 91.6666666667% - } - - .col-md-push-12 { - left: 100% - } - - .col-md-offset-0 { - margin-left: 0 - } - - .col-md-offset-1 { - margin-left: 8.3333333333% - } - - .col-md-offset-2 { - margin-left: 16.6666666667% - } - - .col-md-offset-3 { - margin-left: 25% - } - - .col-md-offset-4 { - margin-left: 33.3333333333% - } - - .col-md-offset-5 { - margin-left: 41.6666666667% - } - - .col-md-offset-6 { - margin-left: 50% - } - - .col-md-offset-7 { - margin-left: 58.3333333333% - } - - .col-md-offset-8 { - margin-left: 66.6666666667% - } - - .col-md-offset-9 { - margin-left: 75% - } - - .col-md-offset-10 { - margin-left: 83.3333333333% - } - - .col-md-offset-11 { - margin-left: 91.6666666667% - } - - .col-md-offset-12 { - margin-left: 100% - } -} - -@media (min-width: 1200px) { - .col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9 { - float:left - } - - .col-lg-1 { - width: 8.3333333333% - } - - .col-lg-2 { - width: 16.6666666667% - } - - .col-lg-3 { - width: 25% - } - - .col-lg-4 { - width: 33.3333333333% - } - - .col-lg-5 { - width: 41.6666666667% - } - - .col-lg-6 { - width: 50% - } - - .col-lg-7 { - width: 58.3333333333% - } - - .col-lg-8 { - width: 66.6666666667% - } - - .col-lg-9 { - width: 75% - } - - .col-lg-10 { - width: 83.3333333333% - } - - .col-lg-11 { - width: 91.6666666667% - } - - .col-lg-12 { - width: 100% - } - - .col-lg-pull-0 { - right: auto - } - - .col-lg-pull-1 { - right: 8.3333333333% - } - - .col-lg-pull-2 { - right: 16.6666666667% - } - - .col-lg-pull-3 { - right: 25% - } - - .col-lg-pull-4 { - right: 33.3333333333% - } - - .col-lg-pull-5 { - right: 41.6666666667% - } - - .col-lg-pull-6 { - right: 50% - } - - .col-lg-pull-7 { - right: 58.3333333333% - } - - .col-lg-pull-8 { - right: 66.6666666667% - } - - .col-lg-pull-9 { - right: 75% - } - - .col-lg-pull-10 { - right: 83.3333333333% - } - - .col-lg-pull-11 { - right: 91.6666666667% - } - - .col-lg-pull-12 { - right: 100% - } - - .col-lg-push-0 { - left: auto - } - - .col-lg-push-1 { - left: 8.3333333333% - } - - .col-lg-push-2 { - left: 16.6666666667% - } - - .col-lg-push-3 { - left: 25% - } - - .col-lg-push-4 { - left: 33.3333333333% - } - - .col-lg-push-5 { - left: 41.6666666667% - } - - .col-lg-push-6 { - left: 50% - } - - .col-lg-push-7 { - left: 58.3333333333% - } - - .col-lg-push-8 { - left: 66.6666666667% - } - - .col-lg-push-9 { - left: 75% - } - - .col-lg-push-10 { - left: 83.3333333333% - } - - .col-lg-push-11 { - left: 91.6666666667% - } - - .col-lg-push-12 { - left: 100% - } - - .col-lg-offset-0 { - margin-left: 0 - } - - .col-lg-offset-1 { - margin-left: 8.3333333333% - } - - .col-lg-offset-2 { - margin-left: 16.6666666667% - } - - .col-lg-offset-3 { - margin-left: 25% - } - - .col-lg-offset-4 { - margin-left: 33.3333333333% - } - - .col-lg-offset-5 { - margin-left: 41.6666666667% - } - - .col-lg-offset-6 { - margin-left: 50% - } - - .col-lg-offset-7 { - margin-left: 58.3333333333% - } - - .col-lg-offset-8 { - margin-left: 66.6666666667% - } - - .col-lg-offset-9 { - margin-left: 75% - } - - .col-lg-offset-10 { - margin-left: 83.3333333333% - } - - .col-lg-offset-11 { - margin-left: 91.6666666667% - } - - .col-lg-offset-12 { - margin-left: 100% - } -} - -table { - background-color: transparent -} - -table col[class*=col-] { - position: static; - display: table-column; - float: none -} - -table td[class*=col-],table th[class*=col-] { - position: static; - display: table-cell; - float: none -} - -caption { - padding-top: 8px; - padding-bottom: 8px; - color: #6f6f6f; - text-align: left -} - -th { - text-align: left -} - -.table { - width: 100%; - max-width: 100%; - margin-bottom: 23px -} - -.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td,.table>thead>tr>th { - padding: 8px; - line-height: 1.4375; - vertical-align: top; - border-top: 1px solid #ddd -} - -.table>thead>tr>th { - vertical-align: bottom; - border-bottom: 2px solid #ddd -} - -.table>caption+thead>tr:first-child>td,.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>td,.table>thead:first-child>tr:first-child>th { - border-top: 0 -} - -.table>tbody+tbody { - border-top: 2px solid #ddd -} - -.table .table { - background-color: #fff -} - -.table-condensed>tbody>tr>td,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>td,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>thead>tr>th { - padding: 5px -} - -.table-bordered { - border: 1px solid #ddd -} - -.table-bordered>tbody>tr>td,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>td,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>thead>tr>th { - border: 1px solid #ddd -} - -.table-bordered>thead>tr>td,.table-bordered>thead>tr>th { - border-bottom-width: 2px -} - -.table-striped>tbody>tr:nth-of-type(odd) { - background-color: #f5f5f5 -} - -.table-hover>tbody>tr:hover { - background-color: #f0f0f0 -} - -.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>thead>tr>td.active,.table>thead>tr>th.active { - background-color: #f0f0f0 -} - -.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover { - background-color: rgb(227.25,227.25,227.25) -} - -.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>thead>tr>td.success,.table>thead>tr>th.success { - background-color: #dff0d8 -} - -.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover { - background-color: rgb(207.8888888889,232.9166666667,197.5833333333) -} - -.table>tbody>tr.info>td,.table>tbody>tr.info>th,.table>tbody>tr>td.info,.table>tbody>tr>th.info,.table>tfoot>tr.info>td,.table>tfoot>tr.info>th,.table>tfoot>tr>td.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>thead>tr.info>th,.table>thead>tr>td.info,.table>thead>tr>th.info { - background-color: #d9edf7 -} - -.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover { - background-color: rgb(195.9347826087,227.0217391304,242.5652173913) -} - -.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>thead>tr>td.warning,.table>thead>tr>th.warning { - background-color: #fcf8e3 -} - -.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover { - background-color: rgb(249.5322580645,242.2419354839,203.9677419355) -} - -.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>thead>tr>td.danger,.table>thead>tr>th.danger { - background-color: #f2dede -} - -.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover { - background-color: rgb(234.7934782609,203.7065217391,203.7065217391) -} - -.table-responsive { - min-height: .01%; - overflow-x: auto -} - -@media screen and (max-width: 767px) { - .table-responsive { - width:100%; - margin-bottom: 17.25px; - overflow-y: hidden; - -ms-overflow-style: -ms-autohiding-scrollbar; - border: 1px solid #ddd - } - - .table-responsive>.table { - margin-bottom: 0 - } - - .table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th { - white-space: nowrap - } - - .table-responsive>.table-bordered { - border: 0 - } - - .table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>thead>tr>th:first-child { - border-left: 0 - } - - .table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>thead>tr>th:last-child { - border-right: 0 - } - - .table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>th { - border-bottom: 0 - } -} - -caption { - color: #333; - text-align: center; - font-size: 1.1em; - font-weight: 700 -} - -@media screen and (max-width: 767px) { - .table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th { - white-space:initial - } -} - -fieldset { - min-width: 0; - padding: 0; - margin: 0; - border: 0 -} - -legend { - display: block; - width: 100%; - padding: 0; - margin-bottom: 23px; - font-size: 24px; - line-height: inherit; - color: #333; - border: 0; - border-bottom: 1px solid #e5e5e5 -} - -label { - display: inline-block; - max-width: 100%; - margin-bottom: 5px; - font-weight: 700 -} - -input[type=search] { - -webkit-box-sizing: border-box; - box-sizing: border-box; - -webkit-appearance: none; - -moz-appearance: none; - appearance: none -} - -input[type=checkbox],input[type=radio] { - margin: 4px 0 0; - line-height: normal -} - -fieldset[disabled] input[type=checkbox],fieldset[disabled] input[type=radio],input[type=checkbox].disabled,input[type=checkbox][disabled],input[type=radio].disabled,input[type=radio][disabled] { - cursor: not-allowed -} - -input[type=file] { - display: block -} - -input[type=range] { - display: block; - width: 100% -} - -select[multiple],select[size] { - height: auto -} - -input[type=checkbox]:focus,input[type=file]:focus,input[type=radio]:focus { - outline: 5px auto -webkit-focus-ring-color; - outline-offset: -2px -} - -output { - display: block; - padding-top: 11px; - font-size: 16px; - line-height: 1.4375; - color: rgb(85.425,85.425,85.425) -} - -.form-control { - display: block; - width: 100%; - height: 37px; - padding: 10px 14px; - font-size: 16px; - line-height: 1.4375; - color: rgb(85.425,85.425,85.425); - background-color: #fff; - background-image: none; - border: 1px solid #ccc; - border-radius: 4px; - -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075); - box-shadow: inset 0 1px 1px rgba(0,0,0,.075); - -webkit-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s; - -webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s; - transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s; - transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s; - transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s,-webkit-box-shadow ease-in-out .15s -} - -.form-control:focus { - border-color: #66afe9; - outline: 0; - -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6); - box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6) -} - -.form-control::-moz-placeholder { - color: #5c5c5c!important; - opacity: 1 -} - -.form-control:-ms-input-placeholder { - color: #5c5c5c!important -} - -.form-control::-webkit-input-placeholder { - color: #5c5c5c!important -} - -.form-control::-ms-expand { - background-color: transparent; - border: 0 -} - -.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control { - background-color: rgb(238.425,238.425,238.425); - opacity: 1 -} - -.form-control[disabled],fieldset[disabled] .form-control { - cursor: not-allowed -} - -textarea.form-control { - height: auto -} - -@media screen and (-webkit-min-device-pixel-ratio: 0) { - input[type=date].form-control,input[type=datetime-local].form-control,input[type=month].form-control,input[type=time].form-control { - line-height:37px - } - - .input-group-sm input[type=date],.input-group-sm input[type=datetime-local],.input-group-sm input[type=month],.input-group-sm input[type=time],.input-group-sm>.input-group-btn>input[type=date].btn,.input-group-sm>.input-group-btn>input[type=datetime-local].btn,.input-group-sm>.input-group-btn>input[type=month].btn,.input-group-sm>.input-group-btn>input[type=time].btn,input[type=date].input-sm,input[type=datetime-local].input-sm,input[type=month].input-sm,input[type=time].input-sm { - line-height: 33px - } - - .input-group-lg input[type=date],.input-group-lg input[type=datetime-local],.input-group-lg input[type=month],.input-group-lg input[type=time],.input-group-lg>.input-group-btn>input[type=date].btn,.input-group-lg>.input-group-btn>input[type=datetime-local].btn,.input-group-lg>.input-group-btn>input[type=month].btn,.input-group-lg>.input-group-btn>input[type=time].btn,input[type=date].input-lg,input[type=datetime-local].input-lg,input[type=month].input-lg,input[type=time].input-lg { - line-height: 46px - } -} - -.form-group { - margin-bottom: 15px -} - -.checkbox,.radio { - position: relative; - display: block; - margin-top: 10px; - margin-bottom: 10px -} - -.checkbox.disabled label,.radio.disabled label,fieldset[disabled] .checkbox label,fieldset[disabled] .radio label { - cursor: not-allowed -} - -.checkbox label,.radio label { - min-height: 23px; - padding-left: 20px; - margin-bottom: 0; - font-weight: 400; - cursor: pointer -} - -.checkbox input[type=checkbox],.checkbox-inline input[type=checkbox],.radio input[type=radio],.radio-inline input[type=radio] { - position: absolute; - margin-left: -20px -} - -.checkbox+.checkbox,.radio+.radio { - margin-top: -5px -} - -.checkbox-inline,.radio-inline { - position: relative; - display: inline-block; - padding-left: 20px; - margin-bottom: 0; - font-weight: 400; - vertical-align: middle; - cursor: pointer -} - -.checkbox-inline.disabled,.radio-inline.disabled,fieldset[disabled] .checkbox-inline,fieldset[disabled] .radio-inline { - cursor: not-allowed -} - -.checkbox-inline+.checkbox-inline,.radio-inline+.radio-inline { - margin-top: 0; - margin-left: 10px -} - -.form-control-static { - min-height: 39px; - padding-top: 11px; - padding-bottom: 11px; - margin-bottom: 0 -} - -.form-control-static.input-lg,.form-control-static.input-sm,.input-group-lg>.form-control-static.form-control,.input-group-lg>.form-control-static.input-group-addon,.input-group-lg>.input-group-btn>.form-control-static.btn,.input-group-sm>.form-control-static.form-control,.input-group-sm>.form-control-static.input-group-addon,.input-group-sm>.input-group-btn>.form-control-static.btn { - padding-right: 0; - padding-left: 0 -} - -.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn,.input-sm { - height: 33px; - padding: 5px 10px; - font-size: 14px; - line-height: 1.5; - border-radius: 3px -} - -.input-group-sm>.input-group-btn>select.btn,.input-group-sm>select.form-control,.input-group-sm>select.input-group-addon,select.input-sm { - height: 33px; - line-height: 33px -} - -.input-group-sm>.input-group-btn>select[multiple].btn,.input-group-sm>.input-group-btn>textarea.btn,.input-group-sm>select[multiple].form-control,.input-group-sm>select[multiple].input-group-addon,.input-group-sm>textarea.form-control,.input-group-sm>textarea.input-group-addon,select[multiple].input-sm,textarea.input-sm { - height: auto -} - -.form-group-sm .form-control { - height: 33px; - padding: 5px 10px; - font-size: 14px; - line-height: 1.5; - border-radius: 3px -} - -.form-group-sm select.form-control { - height: 33px; - line-height: 33px -} - -.form-group-sm select[multiple].form-control,.form-group-sm textarea.form-control { - height: auto -} - -.form-group-sm .form-control-static { - height: 33px; - min-height: 37px; - padding: 6px 10px; - font-size: 14px; - line-height: 1.5 -} - -.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn,.input-lg { - height: 46px; - padding: 10px 16px; - font-size: 18px; - line-height: 1.3333333; - border-radius: 6px -} - -.input-group-lg>.input-group-btn>select.btn,.input-group-lg>select.form-control,.input-group-lg>select.input-group-addon,select.input-lg { - height: 46px; - line-height: 46px -} - -.input-group-lg>.input-group-btn>select[multiple].btn,.input-group-lg>.input-group-btn>textarea.btn,.input-group-lg>select[multiple].form-control,.input-group-lg>select[multiple].input-group-addon,.input-group-lg>textarea.form-control,.input-group-lg>textarea.input-group-addon,select[multiple].input-lg,textarea.input-lg { - height: auto -} - -.form-group-lg .form-control { - height: 46px; - padding: 10px 16px; - font-size: 18px; - line-height: 1.3333333; - border-radius: 6px -} - -.form-group-lg select.form-control { - height: 46px; - line-height: 46px -} - -.form-group-lg select[multiple].form-control,.form-group-lg textarea.form-control { - height: auto -} - -.form-group-lg .form-control-static { - height: 46px; - min-height: 41px; - padding: 11px 16px; - font-size: 18px; - line-height: 1.3333333 -} - -.has-feedback { - position: relative -} - -.has-feedback .form-control { - padding-right: 46.25px -} - -.form-control-feedback { - position: absolute; - top: 0; - right: 0; - z-index: 2; - display: block; - width: 37px; - height: 37px; - line-height: 37px; - text-align: center; - pointer-events: none -} - -.form-group-lg .form-control+.form-control-feedback,.input-group-lg+.form-control-feedback,.input-group-lg>.form-control+.form-control-feedback,.input-group-lg>.input-group-addon+.form-control-feedback,.input-group-lg>.input-group-btn>.btn+.form-control-feedback,.input-lg+.form-control-feedback { - width: 46px; - height: 46px; - line-height: 46px -} - -.form-group-sm .form-control+.form-control-feedback,.input-group-sm+.form-control-feedback,.input-group-sm>.form-control+.form-control-feedback,.input-group-sm>.input-group-addon+.form-control-feedback,.input-group-sm>.input-group-btn>.btn+.form-control-feedback,.input-sm+.form-control-feedback { - width: 33px; - height: 33px; - line-height: 33px -} - -.has-success .checkbox,.has-success .checkbox-inline,.has-success .control-label,.has-success .help-block,.has-success .radio,.has-success .radio-inline,.has-success.checkbox label,.has-success.checkbox-inline label,.has-success.radio label,.has-success.radio-inline label { - color: #3c763d -} - -.has-success .form-control { - border-color: #3c763d; - -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075); - box-shadow: inset 0 1px 1px rgba(0,0,0,.075) -} - -.has-success .form-control:focus { - border-color: rgb(42.808988764,84.191011236,43.5224719101); - -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 6px rgb(102.5280898876,177.4719101124,103.8202247191); - box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 6px rgb(102.5280898876,177.4719101124,103.8202247191) -} - -.has-success .input-group-addon { - color: #3c763d; - background-color: #dff0d8; - border-color: #3c763d -} - -.has-success .form-control-feedback { - color: #3c763d -} - -.has-warning .checkbox,.has-warning .checkbox-inline,.has-warning .control-label,.has-warning .help-block,.has-warning .radio,.has-warning .radio-inline,.has-warning.checkbox label,.has-warning.checkbox-inline label,.has-warning.radio label,.has-warning.radio-inline label { - color: #8a6d3b -} - -.has-warning .form-control { - border-color: #8a6d3b; - -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075); - box-shadow: inset 0 1px 1px rgba(0,0,0,.075) -} - -.has-warning .form-control:focus { - border-color: rgb(102.2741116751,80.7817258883,43.7258883249); - -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 6px rgb(191.807106599,160.7461928934,107.192893401); - box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 6px rgb(191.807106599,160.7461928934,107.192893401) -} - -.has-warning .input-group-addon { - color: #8a6d3b; - background-color: #fcf8e3; - border-color: #8a6d3b -} - -.has-warning .form-control-feedback { - color: #8a6d3b -} - -.has-error .checkbox,.has-error .checkbox-inline,.has-error .control-label,.has-error .help-block,.has-error .radio,.has-error .radio-inline,.has-error.checkbox label,.has-error.checkbox-inline label,.has-error.radio label,.has-error.radio-inline label { - color: #a94442 -} - -.has-error .form-control { - border-color: #a94442; - -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075); - box-shadow: inset 0 1px 1px rgba(0,0,0,.075) -} - -.has-error .form-control:focus { - border-color: rgb(132.3234042553,53.2425531915,51.6765957447); - -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 6px rgb(206.4127659574,132.0595744681,130.5872340426); - box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 6px rgb(206.4127659574,132.0595744681,130.5872340426) -} - -.has-error .input-group-addon { - color: #a94442; - background-color: #f2dede; - border-color: #a94442 -} - -.has-error .form-control-feedback { - color: #a94442 -} - -.has-feedback label~.form-control-feedback { - top: 28px -} - -.has-feedback label.sr-only~.form-control-feedback { - top: 0 -} - -.help-block { - display: block; - margin-top: 5px; - margin-bottom: 10px; - color: rgb(114.75,114.75,114.75) -} - -@media (min-width: 768px) { - .form-inline .form-group { - display:inline-block; - margin-bottom: 0; - vertical-align: middle - } - - .form-inline .form-control { - display: inline-block; - width: auto; - vertical-align: middle - } - - .form-inline .form-control-static { - display: inline-block - } - - .form-inline .input-group { - display: inline-table; - vertical-align: middle - } - - .form-inline .input-group .form-control,.form-inline .input-group .input-group-addon,.form-inline .input-group .input-group-btn { - width: auto - } - - .form-inline .input-group>.form-control { - width: 100% - } - - .form-inline .control-label { - margin-bottom: 0; - vertical-align: middle - } - - .form-inline .checkbox,.form-inline .radio { - display: inline-block; - margin-top: 0; - margin-bottom: 0; - vertical-align: middle - } - - .form-inline .checkbox label,.form-inline .radio label { - padding-left: 0 - } - - .form-inline .checkbox input[type=checkbox],.form-inline .radio input[type=radio] { - position: relative; - margin-left: 0 - } - - .form-inline .has-feedback .form-control-feedback { - top: 0 - } -} - -.form-horizontal .checkbox,.form-horizontal .checkbox-inline,.form-horizontal .radio,.form-horizontal .radio-inline { - padding-top: 11px; - margin-top: 0; - margin-bottom: 0 -} - -.form-horizontal .checkbox,.form-horizontal .radio { - min-height: 34px -} - -.form-horizontal .form-group { - margin-right: -15px; - margin-left: -15px -} - -.form-horizontal .form-group:after,.form-horizontal .form-group:before { - display: table; - content: " " -} - -.form-horizontal .form-group:after { - clear: both -} - -@media (min-width: 768px) { - .form-horizontal .control-label { - padding-top:11px; - margin-bottom: 0; - text-align: right - } -} - -.form-horizontal .has-feedback .form-control-feedback { - right: 15px -} - -@media (min-width: 768px) { - .form-horizontal .form-group-lg .control-label { - padding-top:11px; - font-size: 18px - } -} - -@media (min-width: 768px) { - .form-horizontal .form-group-sm .control-label { - padding-top:6px; - font-size: 14px - } -} - -/*! Placeholders */ -.btn.disabled,.btn[disabled],fieldset[disabled] .btn { - border-style: solid -} - -input[type=button],input[type=reset],input[type=submit] { - height: auto; - min-height: 37px -} - -.btn-group-lg>input[type=button].btn,.btn-group-lg>input[type=reset].btn,.btn-group-lg>input[type=submit].btn,.input-group-lg>.input-group-btn>input[type=button].btn,.input-group-lg>.input-group-btn>input[type=reset].btn,.input-group-lg>.input-group-btn>input[type=submit].btn,.input-group-lg>input[type=button].form-control,.input-group-lg>input[type=button].input-group-addon,.input-group-lg>input[type=reset].form-control,.input-group-lg>input[type=reset].input-group-addon,.input-group-lg>input[type=submit].form-control,.input-group-lg>input[type=submit].input-group-addon,input[type=button].btn-lg,input[type=button].input-lg,input[type=reset].btn-lg,input[type=reset].input-lg,input[type=submit].btn-lg,input[type=submit].input-lg { - height: 46px -} - -.btn-group-sm>input[type=button].btn,.btn-group-sm>input[type=reset].btn,.btn-group-sm>input[type=submit].btn,.input-group-sm>.input-group-btn>input[type=button].btn,.input-group-sm>.input-group-btn>input[type=reset].btn,.input-group-sm>.input-group-btn>input[type=submit].btn,.input-group-sm>input[type=button].form-control,.input-group-sm>input[type=button].input-group-addon,.input-group-sm>input[type=reset].form-control,.input-group-sm>input[type=reset].input-group-addon,.input-group-sm>input[type=submit].form-control,.input-group-sm>input[type=submit].input-group-addon,input[type=button].btn-sm,input[type=button].input-sm,input[type=reset].btn-sm,input[type=reset].input-sm,input[type=submit].btn-sm,input[type=submit].input-sm { - height: 33px -} - -.btn-group-xs>input[type=button].btn,.btn-group-xs>input[type=reset].btn,.btn-group-xs>input[type=submit].btn,input[type=button].btn-xs,input[type=reset].btn-xs,input[type=submit].btn-xs { - height: 25px -} - -.form-control { - height: auto; - max-width: 100%; - min-height: 37px; - width: auto -} - -.form-inline .label-inline { - position: relative; - vertical-align: middle -} - -.form-inline .label-inline label { - font-weight: 400; - margin-bottom: 0; - padding-left: 2px -} - -legend { - border-bottom: 0; - float: left -} - -fieldset { - border-top: 1px solid #e5e5e5; - padding-top: 10px -} - -fieldset:first-child { - border-top: 0 -} - -fieldset.legend-brdr-bttm { - border-top: 0 -} - -fieldset.legend-brdr-bttm legend { - border-bottom: 1px solid #e5e5e5; - float: none; - margin-bottom: 10px -} - -fieldset.chkbxrdio-grp { - border-top: 0; - padding-top: 0 -} - -fieldset.chkbxrdio-grp legend { - font-size: 16px; - font-weight: 700; - margin-bottom: 5px -} - -.checkbox.required strong.required,.checkbox.required:not(.required-no-asterisk .required):before,label.required strong.required,label.required:not(.required-no-asterisk .required):before,legend.required strong.required,legend.required:not(.required-no-asterisk .required):before { - color: #d3080c; - font-weight: 700 -} - -.checkbox.required:not(.required-no-asterisk .required):before,label.required:not(.required-no-asterisk .required):before,legend.required:not(.required-no-asterisk .required):before { - content: "* "; - margin-left: -.87em; - vertical-align: top -} - -.form-group.has-error .checkbox { - color: #333 -} - -.form-group .checkbox.checkbox-standalone label { - font-weight: 700 -} - -[dir=rtl] label.required:not(.required-no-asterisk .required):before,[dir=rtl] legend.required:not(.required-no-asterisk .required):before { - margin-left: auto; - margin-right: -.87em -} - -fieldset.chkbxrdio-grp legend { - font-size: 20px -} - -input[type=checkbox],input[type=radio] { - margin-top: 9px -} - -.input-group .form-control,.input-group .input-group-addon,.input-group .input-group-btn button,.input-group .input-group-btn input { - min-height: 39px -} - -.form-horizontal .control-label { - padding-top: 7px -} - -.btn { - display: inline-block; - margin-bottom: 0; - font-weight: 400; - text-align: center; - white-space: nowrap; - vertical-align: middle; - -ms-touch-action: manipulation; - touch-action: manipulation; - cursor: pointer; - background-image: none; - border: 1px solid transparent; - padding: 10px 14px; - font-size: 16px; - line-height: 1.4375; - border-radius: 4px; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none -} - -.btn.active.focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn:active:focus,.btn:focus { - outline: 5px auto -webkit-focus-ring-color; - outline-offset: -2px -} - -.btn.focus,.btn:focus,.btn:hover { - color: #335075; - text-decoration: none -} - -.btn.active,.btn:active { - background-image: none; - outline: 0; - -webkit-box-shadow: inset 0 3px 5px rgba(0,0,0,.125); - box-shadow: inset 0 3px 5px rgba(0,0,0,.125) -} - -.btn.disabled,.btn[disabled],fieldset[disabled] .btn { - cursor: not-allowed; - opacity: .65; - -webkit-box-shadow: none; - box-shadow: none -} - -a.btn.disabled,fieldset[disabled] a.btn { - pointer-events: none -} - -.btn-default { - color: #335075; - background-color: #eaebed; - border-color: rgb(220.2692307692,221.9230769231,225.2307692308) -} - -.btn-default.focus,.btn-default:focus { - color: #335075; - background-color: rgb(206.5384615385,208.8461538462,213.4615384615); - border-color: rgb(151.6153846154,156.5384615385,166.3846153846) -} - -.btn-default:hover { - color: #335075; - background-color: rgb(206.5384615385,208.8461538462,213.4615384615); - border-color: rgb(187.3153846154,190.5384615385,196.9846153846) -} - -.btn-default.active,.btn-default:active,.open>.btn-default.dropdown-toggle { - color: #335075; - background-color: rgb(206.5384615385,208.8461538462,213.4615384615); - background-image: none; - border-color: rgb(187.3153846154,190.5384615385,196.9846153846) -} - -.btn-default.active.focus,.btn-default.active:focus,.btn-default.active:hover,.btn-default:active.focus,.btn-default:active:focus,.btn-default:active:hover,.open>.btn-default.dropdown-toggle.focus,.open>.btn-default.dropdown-toggle:focus,.open>.btn-default.dropdown-toggle:hover { - color: #335075; - background-color: rgb(187.3153846154,190.5384615385,196.9846153846); - border-color: rgb(151.6153846154,156.5384615385,166.3846153846) -} - -.btn-default.disabled.focus,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled].focus,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover { - background-color: #eaebed; - border-color: rgb(220.2692307692,221.9230769231,225.2307692308) -} - -.btn-default .badge { - color: #eaebed; - background-color: #335075 -} - -.btn-primary { - color: #fff; - background-color: #2572b4; - border-color: rgb(19.6082949309,60.4147465438,95.3917050691) -} - -.btn-primary.focus,.btn-primary:focus { - color: #fff; - background-color: rgb(28.3041474654,87.2073732719,137.6958525346); - border-color: #000 -} - -.btn-primary:hover { - color: #fff; - background-color: rgb(28.3041474654,87.2073732719,137.6958525346); - border-color: rgb(9.1732718894,28.26359447,44.6267281106) -} - -.btn-primary.active,.btn-primary:active,.open>.btn-primary.dropdown-toggle { - color: #fff; - background-color: rgb(28.3041474654,87.2073732719,137.6958525346); - background-image: none; - border-color: rgb(9.1732718894,28.26359447,44.6267281106) -} - -.btn-primary.active.focus,.btn-primary.active:focus,.btn-primary.active:hover,.btn-primary:active.focus,.btn-primary:active:focus,.btn-primary:active:hover,.open>.btn-primary.dropdown-toggle.focus,.open>.btn-primary.dropdown-toggle:focus,.open>.btn-primary.dropdown-toggle:hover { - color: #fff; - background-color: rgb(22.2170506912,68.4525345622,108.0829493088); - border-color: #000 -} - -.btn-primary.disabled.focus,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled].focus,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover { - background-color: #2572b4; - border-color: rgb(19.6082949309,60.4147465438,95.3917050691) -} - -.btn-primary .badge { - color: #2572b4; - background-color: #fff -} - -.btn-success { - color: #fff; - background-color: #1b6c1c; - border-color: rgb(6.6,26.4,6.8444444444) -} - -.btn-success.focus,.btn-success:focus { - color: #fff; - background-color: rgb(16.8,67.2,17.4222222222); - border-color: #000 -} - -.btn-success:hover { - color: #fff; - background-color: rgb(16.8,67.2,17.4222222222); - border-color: #000 -} - -.btn-success.active,.btn-success:active,.open>.btn-success.dropdown-toggle { - color: #fff; - background-color: rgb(16.8,67.2,17.4222222222); - background-image: none; - border-color: #000 -} - -.btn-success.active.focus,.btn-success.active:focus,.btn-success.active:hover,.btn-success:active.focus,.btn-success:active:focus,.btn-success:active:hover,.open>.btn-success.dropdown-toggle.focus,.open>.btn-success.dropdown-toggle:focus,.open>.btn-success.dropdown-toggle:hover { - color: #fff; - background-color: rgb(9.66,38.64,10.0177777778); - border-color: #000 -} - -.btn-success.disabled.focus,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled].focus,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover { - background-color: #1b6c1c; - border-color: rgb(6.6,26.4,6.8444444444) -} - -.btn-success .badge { - color: #1b6c1c; - background-color: #fff -} - -.btn-info { - color: #fff; - background-color: #4d4d4d; - border-color: #1a1a1a -} - -.btn-info.focus,.btn-info:focus { - color: #fff; - background-color: rgb(51.5,51.5,51.5); - border-color: #000 -} - -.btn-info:hover { - color: #fff; - background-color: rgb(51.5,51.5,51.5); - border-color: #000 -} - -.btn-info.active,.btn-info:active,.open>.btn-info.dropdown-toggle { - color: #fff; - background-color: rgb(51.5,51.5,51.5); - background-image: none; - border-color: #000 -} - -.btn-info.active.focus,.btn-info.active:focus,.btn-info.active:hover,.btn-info:active.focus,.btn-info:active:focus,.btn-info:active:hover,.open>.btn-info.dropdown-toggle.focus,.open>.btn-info.dropdown-toggle:focus,.open>.btn-info.dropdown-toggle:hover { - color: #fff; - background-color: rgb(33.65,33.65,33.65); - border-color: #000 -} - -.btn-info.disabled.focus,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled].focus,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover { - background-color: #4d4d4d; - border-color: #1a1a1a -} - -.btn-info .badge { - color: #4d4d4d; - background-color: #fff -} - -.btn-warning { - color: #000; - background-color: #f2d40d; - border-color: rgb(145.2,127.2,7.8) -} - -.btn-warning.focus,.btn-warning:focus { - color: #000; - background-color: rgb(193.6,169.6,10.4); - border-color: rgb(24.2,21.2,1.3) -} - -.btn-warning:hover { - color: #000; - background-color: rgb(193.6,169.6,10.4); - border-color: rgb(87.12,76.32,4.68) -} - -.btn-warning.active,.btn-warning:active,.open>.btn-warning.dropdown-toggle { - color: #000; - background-color: rgb(193.6,169.6,10.4); - background-image: none; - border-color: rgb(87.12,76.32,4.68) -} - -.btn-warning.active.focus,.btn-warning.active:focus,.btn-warning.active:hover,.btn-warning:active.focus,.btn-warning:active:focus,.btn-warning:active:hover,.open>.btn-warning.dropdown-toggle.focus,.open>.btn-warning.dropdown-toggle:focus,.open>.btn-warning.dropdown-toggle:hover { - color: #000; - background-color: rgb(159.72,139.92,8.58); - border-color: rgb(24.2,21.2,1.3) -} - -.btn-warning.disabled.focus,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled].focus,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover { - background-color: #f2d40d; - border-color: rgb(145.2,127.2,7.8) -} - -.btn-warning .badge { - color: #f2d40d; - background-color: #000 -} - -.btn-danger { - color: #fff; - background-color: #bc3331; - border-color: rgb(107.0886075949,29.0506329114,27.9113924051) -} - -.btn-danger.focus,.btn-danger:focus { - color: #fff; - background-color: rgb(147.5443037975,40.0253164557,38.4556962025); - border-color: rgb(5.9493670886,1.6139240506,1.5506329114) -} - -.btn-danger:hover { - color: #fff; - background-color: rgb(147.5443037975,40.0253164557,38.4556962025); - border-color: rgb(58.5417721519,15.8810126582,15.2582278481) -} - -.btn-danger.active,.btn-danger:active,.open>.btn-danger.dropdown-toggle { - color: #fff; - background-color: rgb(147.5443037975,40.0253164557,38.4556962025); - background-image: none; - border-color: rgb(58.5417721519,15.8810126582,15.2582278481) -} - -.btn-danger.active.focus,.btn-danger.active:focus,.btn-danger.active:hover,.btn-danger:active.focus,.btn-danger:active:focus,.btn-danger:active:hover,.open>.btn-danger.dropdown-toggle.focus,.open>.btn-danger.dropdown-toggle:focus,.open>.btn-danger.dropdown-toggle:hover { - color: #fff; - background-color: rgb(119.2253164557,32.3430379747,31.0746835443); - border-color: rgb(5.9493670886,1.6139240506,1.5506329114) -} - -.btn-danger.disabled.focus,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled].focus,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover { - background-color: #bc3331; - border-color: rgb(107.0886075949,29.0506329114,27.9113924051) -} - -.btn-danger .badge { - color: #bc3331; - background-color: #fff -} - -.btn-link { - font-weight: 400; - color: #295376; - border-radius: 0 -} - -.btn-link,.btn-link.active,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link { - background-color: transparent; - -webkit-box-shadow: none; - box-shadow: none -} - -.btn-link,.btn-link:active,.btn-link:focus,.btn-link:hover { - border-color: transparent -} - -.btn-link:focus,.btn-link:hover { - color: #0535d2; - text-decoration: underline; - background-color: transparent -} - -.btn-link[disabled]:focus,.btn-link[disabled]:hover,fieldset[disabled] .btn-link:focus,fieldset[disabled] .btn-link:hover { - color: #6f6f6f; - text-decoration: none -} - -.btn-group-lg>.btn,.btn-lg { - padding: 10px 16px; - font-size: 18px; - line-height: 1.3333333; - border-radius: 6px -} - -.btn-group-sm>.btn,.btn-sm { - padding: 5px 10px; - font-size: 14px; - line-height: 1.5; - border-radius: 3px -} - -.btn-group-xs>.btn,.btn-xs { - padding: 1px 5px; - font-size: 14px; - line-height: 1.5; - border-radius: 3px -} - -.btn-block { - display: block; - width: 100% -} - -.btn-block+.btn-block { - margin-top: 5px -} - -input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block { - width: 100% -} - -.btn-default:visited { - color: #335075 -} - -.btn-primary:visited { - color: #fff -} - -.btn-success:visited { - color: #fff -} - -.btn-info:visited { - color: #fff -} - -.btn-warning:visited { - color: #000 -} - -.btn-danger:visited { - color: #fff -} - -.btn { - border-style: outset; - height: auto; - min-height: 36px; - min-width: 36px; - white-space: normal -} - -body .btn-primary { - background-color: #26374a; - border-color: #26374a -} - -.btn { - font-family: Lato,sans-serif -} - -.btn-call-to-action { - color: #fff; - background-color: #318000; - border-color: #458259 -} - -.btn-call-to-action.focus,.btn-call-to-action:focus { - color: #fff; - background-color: rgb(29.4765625,77,0); - border-color: rgb(24.7914572864,46.7085427136,31.9773869347) -} - -.btn-call-to-action:hover { - color: #fff; - background-color: rgb(29.4765625,77,0); - border-color: rgb(47.7798994975,90.0201005025,61.6291457286) -} - -.btn-call-to-action.active,.btn-call-to-action:active,.open>.btn-call-to-action.dropdown-toggle { - color: #fff; - background-color: rgb(29.4765625,77,0); - background-image: none; - border-color: rgb(47.7798994975,90.0201005025,61.6291457286) -} - -.btn-call-to-action.active.focus,.btn-call-to-action.active:focus,.btn-call-to-action.active:hover,.btn-call-to-action:active.focus,.btn-call-to-action:active:focus,.btn-call-to-action:active:hover,.open>.btn-call-to-action.dropdown-toggle.focus,.open>.btn-call-to-action.dropdown-toggle:focus,.open>.btn-call-to-action.dropdown-toggle:hover { - color: #fff; - background-color: rgb(15.81015625,41.3,0); - border-color: rgb(24.7914572864,46.7085427136,31.9773869347) -} - -.btn-call-to-action.disabled.focus,.btn-call-to-action.disabled:focus,.btn-call-to-action.disabled:hover,.btn-call-to-action[disabled].focus,.btn-call-to-action[disabled]:focus,.btn-call-to-action[disabled]:hover,fieldset[disabled] .btn-call-to-action.focus,fieldset[disabled] .btn-call-to-action:focus,fieldset[disabled] .btn-call-to-action:hover { - background-color: #318000; - border-color: #458259 -} - -.btn-call-to-action .badge { - color: #318000; - background-color: #fff -} - -.btn-call-to-action { - font-size: 1.1em; - margin-bottom: 25px; - margin-top: 15px; - padding: .58em 1em; - text-shadow: 1px 2px #333 -} - -.btn-call-to-action:visited { - color: #fff -} - -input.btn.btn-call-to-action { - padding-bottom: 2em -} - -.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6 { - font-family: Lato,"Noto Sans","Noto Sans Canadian Aboriginal",sans-serif; - -webkit-font-variant-ligatures: no-common-ligatures; - font-variant-ligatures: no-common-ligatures; - font-weight: 700 -} - -.h3,.h4,.h5,.h6 { - border: 0 -} - -.h1,h1 { - line-height: 1.17; - margin-bottom: .2em; - margin-top: 1em; - padding-bottom: 4px -} - -.h2,h2 { - line-height: 1.23 -} - -.h3,h3 { - line-height: 1.37 -} - -.h4,.h5,h4,h5 { - line-height: 1.33 -} - -.h6,h6 { - line-height: 1.45 -} - -body:has(gcds-header) h1#wb-cont { - margin-top: 0 -} - -[placeholder],input[placeholder] { - color: #5c5c5c!important -} - -legend { - font-size: 1.2em; - line-height: 1.65em -} - -output { - font-size: 1em -} - -pre { - font-size: 1rem -} - -blockquote { - font-size: 1em -} - -.force-style-gcweb-4-0-29 h1 { - margin-top: 1.25em -} - -.force-style-gcweb-4-0-29 .h1,.force-style-gcweb-4-0-29 h1 { - font-family: Helvetica,Arial,sans-serif; - font-size: 34px -} - -.force-style-gcweb-4-0-29 .h2,.force-style-gcweb-4-0-29 h2 { - font-family: Helvetica,Arial,sans-serif; - font-size: 26px -} - -.force-style-gcweb-4-0-29 .h3,.force-style-gcweb-4-0-29 h3 { - font-family: Helvetica,Arial,sans-serif; - font-size: 22px -} - -.force-style-gcweb-4-0-29 .h4,.force-style-gcweb-4-0-29 h4 { - font-family: Helvetica,Arial,sans-serif; - font-size: 18px -} - -.force-style-gcweb-4-0-29 .h5,.force-style-gcweb-4-0-29 h5 { - font-family: Helvetica,Arial,sans-serif; - font-size: 16px -} - -.force-style-gcweb-4-0-29 .h6,.force-style-gcweb-4-0-29 h6 { - font-family: Helvetica,Arial,sans-serif; - font-size: 14px; - font-weight: 700 -} - -.force-style-gcweb-4-0-29 .glyphicon { - top: 1px -} - -.force-style-gcweb-4-0-29 main,main.force-style-gcweb-4-0-29 { - font-family: Helvetica,Arial,sans-serif; - font-size: 16px; - line-height: 1.4375em -} - -.force-style-gcweb-4-0-29 .btn,main .force-style-gcweb-4-0-29 { - font-family: Helvetica,Arial,sans-serif; - font-size: 16px; - line-height: 23px -} - -.force-style-gcweb-4-0-29 .btn-group-lg>.btn,.force-style-gcweb-4-0-29 .btn.btn-lg,form .btn-group-lg>.btn,form .btn.btn-lg { - padding: 10px 16px; - font-size: 18px; - line-height: 1.3333333; - border-radius: 6px -} - -.force-style-gcweb-4-0-29 .btn-group-sm>.btn,.force-style-gcweb-4-0-29 .btn.btn-sm,form .btn-group-sm>.btn,form .btn.btn-sm { - padding: 5px 10px; - font-size: 14px; - line-height: 1.5; - border-radius: 3px -} - -.force-style-gcweb-4-0-29 .btn-group-xs>.btn,.force-style-gcweb-4-0-29 .btn.btn-xs,form .btn-group-xs>.btn,form .btn.btn-xs { - padding: 1px 5px; - font-size: 14px; - line-height: 1.5; - border-radius: 3px -} - -datalist { - display: none -} - -summary { - display: list-item!important; - list-style-type: none; - list-style-type: disclosure-closed -} - -details { - margin-bottom: .25em -} - -details summary { - border: 1px solid #ddd; - border-radius: 4px; - color: #295376; - padding: 5px 15px 5px 30px; - text-indent: -16px -} - -details summary:focus,details summary:hover { - background-color: transparent; - color: #0535d2; - text-decoration: underline -} - -details summary:focus { - outline-style: dotted; - outline-width: 1px -} - -details[open] { - border: 1px solid #ddd; - border-radius: 4px -} - -details[open]>summary { - border: 0; - border-bottom: 1px solid #ddd; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; - list-style-type: disclosure-open; - margin-bottom: .25em -} - -.datepicker-format { - display: none -} - -.picker-overlay { - width: 19em -} - -/*! Base Site */ -#mb-pnl .srch-pnl label,#mb-pnl h3,#wb-bc h2,#wb-glb-mn h2,#wb-info h2,#wb-lng h2,#wb-sec h2,#wb-sm h2,#wb-srch h2,#wb-srch label,.wb-calevt-cal .cal-days td ul,.wb-fnote dt,.wb-inv,.wb-invisible,.wb-show-onfocus,.wb-sl,.wb-twitter .wb-twitter-notice-end[tabindex],.wb-twitter .wb-twitter-notice-start[tabindex],.wb-twitter .wb-twitter-skip a { - clip-path: inset(50%); - height: 1px; - margin: 0; - overflow: hidden; - position: absolute; - width: 1px -} - -.wb-disable .wb-slc .wb-sl,.wb-show-onfocus:focus,.wb-sl:focus,.wb-twitter .wb-twitter-notice-end[tabindex]:focus,.wb-twitter .wb-twitter-skip a:focus { - clip-path: none; - height: inherit; - margin: inherit; - overflow: inherit; - position: static; - width: inherit -} - -#wb-tphp { - list-style-type: none; - margin-bottom: 0 -} - -.wb-slc { - left: 0; - position: absolute; - text-align: center; - top: 10px; - width: 100%; - z-index: 3 -} - -.wb-sl { - padding: 5px; - z-index: 501 -} - -.wb-disable #wb-tphp { - background: #fff -} - -.wb-disable .wb-slc { - position: static -} - -.wb-disable .wb-slc .wb-sl { - background: 0 0; - color: #295376; - display: block!important; - font-weight: 400 -} - -.wb-disable .wb-slc .wb-sl:focus,.wb-disable .wb-slc .wb-sl:hover { - color: #0535d2 -} - -.wb-disable #wb-dtmd { - float: none!important -} - -.wb-disable #wb-tphp+section h2 { - margin-left: 1.3em -} - -.wb-disable #wb-tphp+section h2::before { - color: #f90; - content: "\e107"; - display: inline-block; - font-family: "Glyphicons Halflings"; - margin-left: -1.3em; - position: absolute -} - -#wb-bc ol { - border-radius: 0; - margin-bottom: 0; - padding: 1px 13px -} - -#wb-bc li { - max-width: 100%; - overflow: hidden; - padding: 7px 2px; - text-overflow: ellipsis; - white-space: nowrap -} - -#wb-bc li:before { - color: #333; - content: ">"; - font-family: "Glyphicons Halflings"; - font-size: .7em -} - -[dir=rtl] #wb-bc li:before { - content: "<"; - display: inline-block -} - -#wb-bc ol { - margin-top: 15px; - padding-left: 0; - padding-right: 0 -} - -#wb-bc li:before { - content: "\e080"; - padding: 0 4px 0 0; - position: relative -} - -#wb-bc li:first-child a { - padding-left: 0 -} - -#wb-bc a { - padding: 5px 0 -} - -.wb-lng-lnks-horiz .wb-lng-lnk { - display: inline-block -} - -.wb-lng-lnks-vert .wb-lng-lnk { - display: block -} - -.wb-lng-lnks-rtl .wb-lng-lnk { - float: right -} - -.wb-lng-lnks-rtl:after { - clear: both; - content: ""; - display: table -} - -#wb-so { - text-align: right -} - -#wb-so .row { - padding: 1em 0 0 -} - -.gc-archv.modal-content { - border: none; - border-radius: 0 -} - -.gc-archv { - background-color: gold!important; - -webkit-box-shadow: 0 5px 15px rgba(0,0,0,.5); - box-shadow: 0 5px 15px rgba(0,0,0,.5); - padding: 25px 0 -} - -.gc-archv h2 { - margin-top: 0 -} - -.gc-archv .mfp-close.overlay-close { - color: #000 -} - -.gc-archv .mfp-close.overlay-close:focus,.gc-archv .mfp-close.overlay-close:focus-visible { - outline: 5px auto rgb(0,95,204); - outline-offset: -2px -} - -.wb-disable .gc-arch.wb-overlay { - display: none -} - -header { - position: relative -} - -header .brand { - margin-bottom: 10px; - padding-bottom: 0; - padding-top: 10px -} - -header .brand a { - display: block; - height: auto; - padding-bottom: 0; - position: relative; - text-decoration: none; - width: auto -} - -header .brand a:after { - bottom: 0; - content: ""; - left: 0; - position: absolute; - right: 0; - top: 0 -} - -header .brand img,header .brand object { - height: auto; - max-height: 40px -} - -header .brand img { - margin-bottom: .375em -} - -.lt-ie9 header .brand a { - margin-top: 0 -} - -.lt-ie9 header .brand img { - height: 40px -} - -[dir=rtl] header .brand { - float: right -} - -#wb-info { - position: relative; - z-index: 5 -} - -#wb-info h3 { - font-size: 1.625rem; - margin-bottom: 1.5rem; - margin-top: 0 -} - -#wb-info a { - text-decoration: none -} - -#wb-info nav { - padding-bottom: .75rem; - padding-top: 2.25rem; - position: relative -} - -#wb-info nav ul[class*=colcount-] { - -webkit-column-gap: 0; - -moz-column-gap: 0; - column-gap: 0 -} - -#wb-info nav li { - margin-bottom: 1.5rem -} - -#wb-info .gc-contextual { - background-color: #33465c; - color: #fff -} - -#wb-info .gc-contextual nav { - padding-bottom: 0 -} - -#wb-info .gc-contextual a { - color: #fff -} - -#wb-info .gc-contextual a:hover { - text-decoration: underline -} - -#wb-info .gc-main-footer { - background: #26374a url("../assets/landscape.png") no-repeat right bottom; - color: #fff -} - -#wb-info .gc-main-footer h4 { - margin-bottom: 2rem; - margin-top: 1.75rem; - position: relative -} - -#wb-info .gc-main-footer h4::before { - border-bottom: 4px solid #fff; - content: ""; - display: block; - position: absolute; - top: -1.5rem; - width: 40px -} - -#wb-info .gc-main-footer a { - color: #fff -} - -#wb-info .gc-main-footer a:hover { - text-decoration: underline -} - -#wb-info .gc-sub-footer { - background: #f8f8f8; - color: #333; - padding: 1.75rem 0 2.25rem -} - -#wb-info .gc-sub-footer img,#wb-info .gc-sub-footer object { - height: 40px; - width: auto -} - -#wb-info .gc-sub-footer nav { - -webkit-box-flex: 1; - -ms-flex: 1 1 auto; - flex: 1 1 auto; - padding-bottom: 0; - padding-top: 0 -} - -#wb-info .gc-sub-footer nav ul { - list-style-type: none; - margin: 0; - padding: 0 -} - -#wb-info .gc-sub-footer nav ul li { - display: inline-block; - -webkit-margin-end: .5rem; - margin-inline-end:.5rem;margin-bottom: 0 -} - -#wb-info .gc-sub-footer nav ul li:not(:first-child)::before { - content: "•"; - -webkit-margin-end: .7rem; - margin-inline-end:.7rem} - -#wb-info .gc-sub-footer .wtrmrk { - text-align: right -} - -[dir=rtl] #wb-info .gc-sub-footer .wtrmrk { - text-align: left -} - -#wb-lng { - padding-top: 10px -} - -#wb-lng li { - padding-right: 0 -} - -#wb-lng abbr { - font-family: "Noto Sans","Noto Sans Canadian Aboriginal",sans-serif; - font-size: 1.125rem; - text-decoration: none -} - -[dir=rtl] #wb-lng { - text-align: left -} - -[dir=rtl] #wb-lng ul { - padding-right: 0 -} - -#wb-srch,.srchbox { - padding-top: 1em -} - -#wb-srch .submit,.srchbox .submit { - position: absolute; - right: 15px; - top: 1em -} - -#wb-srch button,#wb-srch input,.srchbox button,.srchbox input { - border-radius: 0 -} - -#wb-srch button,.srchbox button { - background-color: #26374a; - border: 0; - border-bottom: #26374a solid 1px; - font-size: 17px -} - -#wb-srch button:active,#wb-srch button:focus,#wb-srch button:hover,.srchbox button:active,.srchbox button:focus,.srchbox button:hover { - background: #444 -} - -#wb-srch .glyphicon,.srchbox .glyphicon { - top: auto; - vertical-align: middle -} - -#wb-srch input,.srchbox input { - border-color: #e0e0e0; - border-style: solid; - -webkit-box-shadow: none; - box-shadow: none; - color: #555; - position: relative -} - -#wb-srch input:active,#wb-srch input:focus,.srchbox input:active,.srchbox input:focus { - -webkit-box-shadow: inset 0 0 1px #000,0 0 8px rgba(102,175,233,.6); - box-shadow: inset 0 0 1px #000,0 0 8px rgba(102,175,233,.6); - outline: #66afe9 solid 1px; - position: relative -} - -#wb-srch .wb-srch-qry,.srchbox .wb-srch-qry { - width: 100% -} - -#wb-srch .wb-srch-qry input,.srchbox .wb-srch-qry input { - max-width: inherit; - width: 100% -} - -#wb-srch-sub { - margin-left: 5px -} - -[dir=rtl] #wb-srch { - text-align: left -} - -[dir=rtl] #wb-srch input { - margin-left: -4px; - margin-right: auto -} - -[dir=rtl] #wb-srch-sub { - margin-left: 0; - margin-right: 5px -} - -input#wb-srch-q { - width: 100% -} - -#wb-sec .list-group .list-group .list-group .list-group-item.wb-navcurr,#wb-sec .list-group a.list-group-item.wb-navcurr,#wb-sec .list-group a.list-group-item[href]:focus,#wb-sec .list-group a.list-group-item[href]:hover,#wb-sec h3 a:hover { - background-color: #243850; - color: #fff -} - -#wb-sec { - margin-top: 20px; - padding-bottom: 2em -} - -#wb-sec h3 { - border: 1px solid #ddd; - border-bottom: 5px solid #26374a; - font-size: 1.1em; - margin: 15px 0 1px; - padding: 15px -} - -#wb-sec h3 a { - color: #333; - display: block; - margin: -15px; - padding: 15px; - text-decoration: none -} - -#wb-sec .list-group { - margin-bottom: 0; - margin-left: 10px -} - -#wb-sec .list-group a.list-group-item { - background-color: #fff; - border-radius: 0; - color: #555; - margin-top: -1px; - text-decoration: none -} - -#wb-sec .list-group a.list-group-item.wb-navcurr { - cursor: text -} - -#wb-sec .list-group a.list-group-item.wb-navcurr[href]:hover { - background-color: #26374a -} - -#wb-sec .list-group .list-group .list-group-item { - background-color: rgb(229.5,229.5,229.5); - color: #000; - padding-left: 1.8em -} - -#wb-sec .list-group .list-group .list-group .list-group-item { - background-color: #fff -} - -#wb-sec .list-group .list-group .list-group .list-group-item.wb-navcurr { - cursor: text -} - -[dir=rtl] #wb-sec .list-group .list-group .list-group-item { - padding-left: 15px; - padding-right: 1.8em -} - -a.shr-opn,a.shr-opn:hover { - text-decoration: none -} - -.pagedetails .row div:first-child a,.pagedetails .row div:first-child details,.pagedetails div+.wb-share-inited { - margin-top: .5em -} - -.pagedetails.text-right .shr-pg { - text-align: left -} - -main .pagedetails { - font-size: 16px -} - -.pagedetails { - padding-bottom: 2em; - padding-top: 2em -} - -.pagedetails.row details { - margin-bottom: .25em; - margin-left: 1.1em; - margin-right: 1.1em -} - -.pagedetails details { - margin-bottom: 0 -} - -.pagedetails details .well,.pagedetails details a.gc-dwnld { - margin-left: -1.1em; - margin-right: -1.1em -} - -.datemod { - padding-bottom: 7px; - padding-top: 7px -} - -.datemod #wb-dtmd { - margin-top: 0 -} - -#gc-pft details { - margin-bottom: 15px; - margin-top: 0 -} - -#gc-pft legend { - font-size: 1rem -} - -#gc-pft .btn { - padding: 6px 12px -} - -#gc-pft .gc-pft-no { - font-weight: 700 -} - -.no-js #gc-pft .nojs-text-left,.wb-disable #gc-pft .nojs-text-left { - text-align: left -} - -.home .gcweb-menu { - color: #284162 -} - -.home .gcweb-menu button[aria-haspopup=true] { - background-color: #fff; - border-color: #fff; - color: #284162 -} - -.home .gcweb-menu button[aria-haspopup=true]:hover { - background-color: #444; - color: #fff -} - -.home #wb-bnr+.gcweb-menu { - margin-left: 0 -} - -#wb-bnr+.gcweb-menu { - border-top: 3px solid #38414d; - font-size: 20px; - margin-top: 5px -} - -#wb-bnr+.gcweb-menu .container { - padding: 0 -} - -.gcweb-menu button[aria-haspopup=true] { - background-color: #26374a; - border: 1px solid #26374a; - color: #fff; - margin-left: 0; - padding: .5em 1em; - text-transform: uppercase -} - -.gcweb-menu button[aria-haspopup=true]:hover,.gcweb-menu button[aria-haspopup=true][aria-expanded=true] { - background-color: #444; - border-color: #444; - color: #fff -} - -.gcweb-menu button[aria-haspopup=true]:focus { - background-color: #fff; - border: 1px dotted #555; - color: #333 -} - -.gcweb-menu [aria-haspopup=true][aria-expanded=false]+[role=menu] { - display: none -} - -.gcweb-menu button[aria-haspopup=true][aria-expanded=true]+[role=menu] { - z-index: 9999 -} - -.gcweb-menu [role=menu] { - background-color: #444; - color: #fff; - list-style: none; - padding: 0; - position: absolute -} - -.gcweb-menu [role=menu]>li { - border-left: #444 solid 1px -} - -.gcweb-menu [role=menu]>li:first-child { - border-top: #444 solid 1px -} - -.gcweb-menu [role=menu]>li:last-child { - border-bottom: #444 solid 1px -} - -.gcweb-menu [role=menu]>li [role=menu]>li { - border: none -} - -.gcweb-menu [role=menuitem] { - display: block; - padding: 14px 30px; - width: 360px -} - -.gcweb-menu [role=menuitem],.gcweb-menu [role=menuitem]:visited { - border-bottom: 1px solid #555; - color: #fff; - font-size: 18px; - text-decoration: none -} - -.gcweb-menu li:last-child [role=menuitem] { - border-bottom: none -} - -.gcweb-menu [role=menuitem]:hover,.gcweb-menu [role=menuitem][aria-expanded=true],.gcweb-menu [role=menuitem][aria-expanded=true]+[role=menu] [role=menuitem]:focus { - background-color: #fff; - color: #333 -} - -.gcweb-menu [role=menu] [role=menu] { - background-color: #fff; - border-top: #eee solid 1px; - -webkit-box-shadow: 10px 10px 10px 5px rgba(0,0,0,.1); - box-shadow: 10px 10px 10px 5px rgba(0,0,0,.1); - color: #000; - left: 360px; - margin-bottom: 25px; - min-height: 880px; - padding: 0 39px 24px; - top: 0; - width: 810px -} - -[lang=fr] .gcweb-menu [role=menu] [role=menu] { - min-height: 931px -} - -.gcweb-menu [role=menu] [role=menu] [role=menu] { - border-top: none; - -webkit-box-shadow: none; - box-shadow: none; - left: auto; - min-height: auto; - top: auto; - width: auto -} - -.gcweb-menu [role=menu] [role=menu] [role=menuitem] { - border-bottom: none; - color: #000; - width: auto -} - -.gcweb-menu [role=menu] [role=menu] li [role=menuitem] { - color: #284162; - padding: 6px 0; - text-decoration: underline -} - -.gcweb-menu [role=menu] [role=menu] li [role=menuitem]:hover { - color: #0535d2 -} - -.gcweb-menu [role=menu] [role=menu] li:first-child [role=menuitem] { - font-size: 32px; - font-weight: 700; - text-decoration: underline -} - -.gcweb-menu [role=menu] [role=menu] [role=menu] li:first-child [role=menuitem] { - font-size: 18px; - font-weight: 400; - text-decoration: underline; - width: auto -} - -.gcweb-menu [role=menu] [role=menu] li:last-child [role=menu] { - list-style: disc; - padding-top: 0 -} - -.gcweb-menu [role=menu] [role=menu] li { - width: 45% -} - -.gcweb-menu [role=menu] [role=menu] li:first-child { - margin-bottom: 1.5em; - width: 100% -} - -.gcweb-menu [role=menu] [role=menu] [role=menu] li:first-child { - margin-bottom: 0 -} - -.gcweb-menu [role=menu] [role=menu] li:last-child { - left: 400px; - position: absolute; - top: 4.5em -} - -.gcweb-menu [role=menu] [role=menu] [role=menu] li:last-child { - left: auto; - position: relative; - top: auto -} - -.gcweb-menu [role=menu] [role=menu] [role=menu] li { - width: 100% -} - -.wb-disable .gcweb-menu [aria-haspopup=true][aria-expanded=false]+[role=menu] { - display: block -} - -.wb-disable .gcweb-menu [role=menu] { - position: static -} - -.wb-disable .gcweb-menu [role=menu]>li { - float: left; - padding-right: 5px; - width: 50% -} - -.wb-disable .gcweb-menu [role=menu]>li:nth-child(2n+2) { - clear: right -} - -.wb-disable .gcweb-menu [role=menu]>li:nth-child(2n+3) { - clear: left -} - -.wb-disable .gcweb-menu [role=menu]>li a { - width: auto -} - -.wb-disable .gcweb-menu [role=menu]:after,.wb-disable .gcweb-menu [role=menu]:before { - content: " "; - display: table -} - -.wb-disable .gcweb-menu [role=menu]:after { - clear: both -} - -#wb-sm { - background: #26374a -} - -#wb-sm .menu { - display: table; - margin-bottom: 0; - text-shadow: 1px 1px 1px #222; - width: 100% -} - -#wb-sm .menu .active,#wb-sm .menu .selected,#wb-sm .menu .wb-navcurr { - background: #243850!important; - color: #fff!important -} - -#wb-sm .menu>li { - border-left: 1px solid #999; - display: table-cell; - float: none -} - -#wb-sm .menu>li:last-child { - border-right: 1px solid #999 -} - -#wb-sm .menu>li a { - color: #fff -} - -#wb-sm .menu>li a:focus,#wb-sm .menu>li a:hover { - background: #243850!important; - text-shadow: none -} - -#wb-sm .sm.open { - background: #ccc; - border-bottom: 5px solid #243850 -} - -#wb-sm .sm.open li a,#wb-sm .sm.open li summary { - color: #444; - padding: 5px 10px; - text-shadow: none -} - -#wb-sm .sm.open li a:active,#wb-sm .sm.open li a:focus,#wb-sm .sm.open li a:hover,#wb-sm .sm.open li summary:active,#wb-sm .sm.open li summary:focus,#wb-sm .sm.open li summary:hover { - background: #243850; - color: #fff -} - -#wb-sm .sm.open .slflnk a { - background: #bbb -} - -#wb-sm .sm .row { - background: 0 0 -} - -#wb-sm .sm .row a { - color: #6e6e6e -} - -.wb-disable #wb-sm .nvbar { - display: block!important -} - -#mb-pnl { - background: url("data:image/gif;base64,R0lGODlh6AMBAIAAABk0UQAAACH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS4zLWMwMTEgNjYuMTQ1NjYxLCAyMDEyLzAyLzA2LTE0OjU2OjI3ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M2IChNYWNpbnRvc2gpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkMxRUQ2ODczNUEyODExRTNBODM4OUNCRUJBOUJGN0REIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkMxRUQ2ODc0NUEyODExRTNBODM4OUNCRUJBOUJGN0REIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6QzFFRDY4NzE1QTI4MTFFM0E4Mzg5Q0JFQkE5QkY3REQiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6QzFFRDY4NzI1QTI4MTFFM0E4Mzg5Q0JFQkE5QkY3REQiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4B//79/Pv6+fj39vX08/Lx8O/u7ezr6uno5+bl5OPi4eDf3t3c29rZ2NfW1dTT0tHQz87NzMvKycjHxsXEw8LBwL++vby7urm4t7a1tLOysbCvrq2sq6qpqKempaSjoqGgn56dnJuamZiXlpWUk5KRkI+OjYyLiomIh4aFhIOCgYB/fn18e3p5eHd2dXRzcnFwb25tbGtqaWhnZmVkY2JhYF9eXVxbWllYV1ZVVFNSUVBPTk1MS0pJSEdGRURDQkFAPz49PDs6OTg3NjU0MzIxMC8uLSwrKikoJyYlJCMiISAfHh0cGxoZGBcWFRQTEhEQDw4NDAsKCQgHBgUEAwIBAAAh+QQAAAAAACwAAAAA6AMBAAACHoSPqcvtD6OctNqLs968+w+G4kiW5omm6sq27gs7BQA7"); - background-position: 15px 0; - background-repeat: repeat-y; - -webkit-box-shadow: none; - box-shadow: none; - padding-left: 15px -} - -#mb-pnl a[href$="#wb-cont"] { - display: none!important -} - -#mb-pnl .modal-header { - background: #2e5274; - border-bottom: 1px solid #2e5274; - -webkit-box-shadow: 0 3px 3px -2px rgba(0,0,0,.3),3px 3px 3px -2px rgba(0,0,0,.3),-3px 3px 3px -2px rgba(0,0,0,.3); - box-shadow: 0 3px 3px -2px rgba(0,0,0,.3),3px 3px 3px -2px rgba(0,0,0,.3),-3px 3px 3px -2px rgba(0,0,0,.3); - color: #fff; - margin-left: 0; - padding: 0 44px 0 1em; - position: relative; - text-align: left; - text-decoration: none; - top: 1em; - z-index: 1045 -} - -#mb-pnl .modal-header:before { - border-bottom: 1.45em solid #2e5274; - border-left: 1em solid transparent; - border-top: 1.45em solid #2e5274; - content: ""; - left: -1em; - position: absolute; - top: 0 -} - -#mb-pnl .modal-header h2 { - border: 0; - margin-bottom: 0; - margin-top: 1px; - padding: 9px -} - -#mb-pnl .modal-body { - background: #0e4164; - margin-left: 0; - padding-bottom: 0; - padding-left: 0; - padding-right: 0; - padding-top: 5em; - position: relative; - top: -3em -} - -#mb-pnl .modal-body summary { - color: #fff -} - -#mb-pnl .modal-body summary:focus,#mb-pnl .modal-body summary:hover { - background: 0 0; - color: #fff -} - -#mb-pnl .modal-body a { - color: #fff; - text-decoration: none -} - -#mb-pnl .modal-body ul { - list-style-type: none -} - -#mb-pnl .modal-body li { - line-height: 2; - list-style-type: none -} - -#mb-pnl .modal-footer { - background: #0e4164 -} - -#mb-pnl .mfp-close { - top: .55em -} - -#mb-pnl .srch-pnl form button { - background-color: #26374a; - border: 0; - border-color: #26374a; - border-radius: 0; - position: relative -} - -#mb-pnl .srch-pnl form button:active,#mb-pnl .srch-pnl form button:focus,#mb-pnl .srch-pnl form button:hover { - background: #243850 -} - -#mb-pnl .srch-pnl form input { - background-color: #e0e0e0; - border-color: #e0e0e0; - border-radius: 0; - border-right: 0; - border-style: solid; - -webkit-box-shadow: none; - box-shadow: none; - color: #555; - margin-right: -4px; - position: relative -} - -#mb-pnl .srch-pnl .btn { - line-height: 1.65; - margin-top: -1px -} - -#mb-pnl .srch-pnl .form-group { - float: left; - margin-left: 15px; - width: 75% -} - -#mb-pnl .srch-pnl .form-group.submit { - margin-left: 0; - width: 15% -} - -#mb-pnl .lng-ofr { - padding-right: 30px; - text-align: right -} - -#mb-pnl .sm-pnl { - background: #0e4164; - padding-left: 15px -} - -#mb-pnl .info-pnl { - background: #193451; - border-top: 2px solid #061e38; - color: #325375!important; - padding-left: 15px -} - -#mb-pnl .active>a { - font-weight: 800 -} - -#mb-pnl .sec-pnl { - background: #cdd4da!important; - display: none!important; - padding-left: 15px -} - -#mb-pnl .sec-pnl a,#mb-pnl .sec-pnl summary { - color: #2e5576!important -} - -#wb-glb-mn { - margin-top: 20px -} - -#wb-glb-mn ul { - min-width: 150px -} - -#wb-glb-mn ul.chvrn { - background: #26374a; - display: inline-block; - float: right; - height: 2.75em -} - -#wb-glb-mn ul.chvrn li { - display: block; - padding-right: 0 -} - -#wb-glb-mn ul.chvrn li a { - color: #fff; - display: block; - font-size: 1.9em; - padding: 5px 20px 0 0 -} - -#wb-glb-mn ul.chvrn span .glyphicon-th-list { - padding-left: 12px; - top: 0 -} - -#wb-glb-mn ul.chvrn:before { - border-bottom: 1.375em solid transparent; - border-left: .6875em solid #f8f8f8; - border-top: 1.375em solid transparent; - content: " "; - display: block; - float: left; - height: 0; - position: relative; - width: 0 -} - -[dir=rtl] #wb-sm .menu>li { - border-right: 1px solid #999 -} - -[dir=rtl] #mb-pnl { - background: 0 0; - padding-left: 0; - padding-right: 15px -} - -[dir=rtl] #mb-pnl .srch-pnl .form-group { - float: right; - margin-left: 0; - margin-right: 15px -} - -[dir=rtl] #mb-pnl .srch-pnl .form-group input { - margin-left: 0; - margin-right: -4px -} - -[dir=rtl] #mb-pnl .srch-pnl .form-group.submit { - margin-right: 0 -} - -[dir=rtl] #mb-pnl .modal-header { - text-align: right -} - -[dir=rtl] #mb-pnl .modal-header:before { - border-left: 0; - border-right: 1em solid transparent; - left: auto; - right: -1em -} - -[dir=rtl] #wb-glb-mn ul.chvrn { - padding-left: 1.5em; - padding-right: 0; - text-align: left -} - -[dir=rtl] #wb-glb-mn ul.chvrn span .glyphicon-th-list { - padding-left: 0; - padding-right: 10px -} - -[dir=rtl] #wb-glb-mn ul.chvrn:before { - border-left: 0; - border-right: 11px solid #f8f8f8; - float: right -} - -#wb-so .btn { - border-radius: 0; - margin-top: 5px -} - -#wb-so a.btn-primary:hover { - background-color: #444 -} - -#wb-bnr+hr { - border-top: 3px solid #38414d; - margin-bottom: 0; - margin-top: 5px -} - -#wb-bnr+hr+.container { - font-size: 1.25rem -} - -h1#wb-cont,hgroup#wb-cont h1 { - border-bottom: 6px solid #a62a1e; - -o-border-image: linear-gradient(to right,#a62a1e 72px,transparent 72px); - border-image: linear-gradient(to right,#a62a1e 72px,transparent 72px); - border-image-slice: 1; - border-left-width: 0; - border-right-width: 0; - border-top-width: 0 -} - -[dir=rtl] h1#wb-cont,[dir=rtl] hgroup#wb-cont h1,h1#wb-cont[dir=rtl],hgroup#wb-cont[dir=rtl] h1 { - border-bottom: 6px solid #a62a1e; - -o-border-image: linear-gradient(to left,#a62a1e 72px,transparent 72px); - border-image: linear-gradient(to left,#a62a1e 72px,transparent 72px); - border-image-slice: 1; - border-left-width: 0; - border-right-width: 0; - border-top-width: 0 -} - -hgroup#wb-cont { - margin-top: 1em -} - -hgroup#wb-cont p:first-child { - color: #555; - font-size: 26px; - font-weight: 500; - margin-bottom: .17em -} - -hgroup#wb-cont h1 { - margin-top: 0 -} - -hgroup#wb-cont p.gc-byline { - font-weight: 700; - margin-bottom: 30px -} - -.gc-contributors { - font-size: 20px; - margin-top: 38px -} - -.gc-contributors h2,.gc-contributors h3,.gc-contributors ul { - font-size: 87%; - margin-top: 0 -} - -.gc-contributors ul { - -webkit-padding-start: 20px; - padding-inline-start:20px} - -.gc-contributors ul li { - font-weight: 700 -} - -/*! GCDS Components complementary style */ -.gcdscardcontainer.section>gcds-grid[equal-row-height]>div.gcdscard>gcds-card { - height: 100% -} - -/*! Components (CSS type only) */ -.fade { - opacity: 0; - -webkit-transition: opacity .15s linear; - transition: opacity .15s linear -} - -.fade.in { - opacity: 1 -} - -.collapse { - display: none -} - -.collapse.in { - display: block -} - -tr.collapse.in { - display: table-row -} - -tbody.collapse.in { - display: table-row-group -} - -.collapsing { - position: relative; - height: 0; - overflow: hidden; - -webkit-transition-property: height,visibility; - transition-property: height,visibility; - -webkit-transition-duration: .35s; - transition-duration: .35s; - -webkit-transition-timing-function: ease; - transition-timing-function: ease -} - -/*! Placeholders */ -.fade.in,.fade.reverse.out,.pop.in { - opacity: 1; - visibility: visible -} - -.fade.out,.fade.reverse.in,.pop.out { - opacity: 0; - visibility: hidden -} - -@-webkit-keyframes spin { - from { - -webkit-transform: rotate(0); - transform: rotate(0) - } - - to { - -webkit-transform: rotate(360deg); - transform: rotate(360deg) - } -} - -@keyframes spin { - from { - -webkit-transform: rotate(0); - transform: rotate(0) - } - - to { - -webkit-transform: rotate(360deg); - transform: rotate(360deg) - } -} - -.out { - display: none!important -} - -.csstransitions .out { - display: block!important -} - -.pop { - -webkit-transform-origin: 50% 50%; - transform-origin: 50% 50% -} - -.pop.in { - -webkit-animation-duration: 350ms; - animation-duration: 350ms; - -webkit-animation-name: popin; - animation-name: popin; - -webkit-transform: scale(1); - transform: scale(1); - visibility: visible -} - -.pop.out { - -webkit-animation-duration: .1s; - animation-duration: .1s; - -webkit-animation-name: fadeout; - animation-name: fadeout; - visibility: hidden -} - -.pop.reverse.in { - -webkit-animation-name: fadein; - animation-name: fadein -} - -.pop.reverse.out { - -webkit-animation-name: popout; - animation-name: popout; - -webkit-transform: scale(.8); - transform: scale(.8) -} - -@-webkit-keyframes popin { - 0% { - opacity: 1; - visibility: visible; - -webkit-transform: scale(.8); - transform: scale(.8) - } - - 100% { - opacity: 0; - visibility: hidden; - -webkit-transform: scale(1); - transform: scale(1) - } -} - -@keyframes popin { - 0% { - opacity: 1; - visibility: visible; - -webkit-transform: scale(.8); - transform: scale(.8) - } - - 100% { - opacity: 0; - visibility: hidden; - -webkit-transform: scale(1); - transform: scale(1) - } -} - -@-webkit-keyframes popout { - 0% { - opacity: 1; - visibility: visible; - -webkit-transform: scale(1); - transform: scale(1) - } - - 100% { - opacity: 0; - visibility: hidden; - -webkit-transform: scale(.8); - transform: scale(.8) - } -} - -@keyframes popout { - 0% { - opacity: 1; - visibility: visible; - -webkit-transform: scale(1); - transform: scale(1) - } - - 100% { - opacity: 0; - visibility: hidden; - -webkit-transform: scale(.8); - transform: scale(.8) - } -} - -.fade { - -webkit-transition: all 0 ease 0; - transition: all 0 ease 0 -} - -.fade.in { - -webkit-animation-duration: 225ms; - animation-duration: 225ms; - -webkit-animation-name: fadein; - animation-name: fadein -} - -.fade.out { - -webkit-animation-duration: 125ms; - animation-duration: 125ms; - -webkit-animation-name: fadeout; - animation-name: fadeout; - z-index: -1 -} - -.fade.out.noheight { - -webkit-animation-name: fadeoutnoheight; - animation-name: fadeoutnoheight; - max-height: 0 -} - -.fade.reverse.in { - -webkit-animation-name: fadeout; - animation-name: fadeout -} - -.fade.reverse.out { - -webkit-animation-name: fadein; - animation-name: fadein -} - -.wb-disable .fade { - opacity: 1 -} - -@-webkit-keyframes fadein { - 0% { - opacity: 0; - visibility: hidden - } - - 100% { - opacity: 1; - visibility: visible - } -} - -@keyframes fadein { - 0% { - opacity: 0; - visibility: hidden - } - - 100% { - opacity: 1; - visibility: visible - } -} - -@-webkit-keyframes fadeout { - 0% { - opacity: 1; - visibility: visible - } - - 100% { - opacity: 0; - visibility: hidden - } -} - -@keyframes fadeout { - 0% { - opacity: 1; - visibility: visible - } - - 100% { - opacity: 0; - visibility: hidden - } -} - -@-webkit-keyframes fadeoutnoheight { - 0% { - opacity: 1; - visibility: visible; - max-height: 100% - } - - 99.9999% { - max-height: 100% - } - - 100% { - opacity: 0; - visibility: hidden; - max-height: 0 - } -} - -@keyframes fadeoutnoheight { - 0% { - opacity: 1; - visibility: visible; - max-height: 100% - } - - 99.9999% { - max-height: 100% - } - - 100% { - opacity: 0; - visibility: hidden; - max-height: 0 - } -} - -.slide.in,.slide.out { - -webkit-animation-duration: 350ms; - animation-duration: 350ms; - -webkit-animation-timing-function: ease-out; - animation-timing-function: ease-out -} - -.slide.out { - -webkit-animation-name: slideouttoleft; - animation-name: slideouttoleft; - -webkit-transform: translateX(-100%); - transform: translateX(-100%); - visibility: hidden -} - -.slide.in { - -webkit-animation-name: slideinfromright; - animation-name: slideinfromright; - -webkit-transform: translateX(0); - transform: translateX(0); - visibility: visible -} - -.slide.reverse.out { - -webkit-animation-name: slideouttoright; - animation-name: slideouttoright; - -webkit-transform: translateX(100%); - transform: translateX(100%) -} - -.slide.reverse.in { - -webkit-animation-name: slideinfromleft; - animation-name: slideinfromleft -} - -@-webkit-keyframes slideinfromright { - 0% { - -webkit-transform: translateX(100%); - transform: translateX(100%) - } - - 100% { - -webkit-transform: translateX(0); - transform: translateX(0) - } -} - -@keyframes slideinfromright { - 0% { - -webkit-transform: translateX(100%); - transform: translateX(100%) - } - - 100% { - -webkit-transform: translateX(0); - transform: translateX(0) - } -} - -@-webkit-keyframes slideinfromleft { - 0% { - -webkit-transform: translateX(-100%); - transform: translateX(-100%) - } - - 100% { - -webkit-transform: translateX(0); - transform: translateX(0) - } -} - -@keyframes slideinfromleft { - 0% { - -webkit-transform: translateX(-100%); - transform: translateX(-100%) - } - - 100% { - -webkit-transform: translateX(0); - transform: translateX(0) - } -} - -@-webkit-keyframes slideouttoleft { - 0% { - -webkit-transform: translateX(0); - transform: translateX(0); - visibility: visible - } - - 99% { - visibility: visible - } - - 100% { - -webkit-transform: translateX(-100%); - transform: translateX(-100%); - visibility: hidden - } -} - -@keyframes slideouttoleft { - 0% { - -webkit-transform: translateX(0); - transform: translateX(0); - visibility: visible - } - - 99% { - visibility: visible - } - - 100% { - -webkit-transform: translateX(-100%); - transform: translateX(-100%); - visibility: hidden - } -} - -@-webkit-keyframes slideouttoright { - 0% { - -webkit-transform: translateX(0); - transform: translateX(0); - visibility: visible - } - - 99% { - visibility: visible - } - - 100% { - -webkit-transform: translateX(100%); - transform: translateX(100%); - visibility: hidden - } -} - -@keyframes slideouttoright { - 0% { - -webkit-transform: translateX(0); - transform: translateX(0); - visibility: visible - } - - 99% { - visibility: visible - } - - 100% { - -webkit-transform: translateX(100%); - transform: translateX(100%); - visibility: hidden - } -} - -.slidefade.out { - -webkit-animation-duration: 225ms; - animation-duration: 225ms; - -webkit-animation-name: slideouttoleft; - animation-name: slideouttoleft; - -webkit-transform: translateX(-100%); - transform: translateX(-100%) -} - -.slidefade.in { - -webkit-animation-duration: .2s; - animation-duration: .2s; - -webkit-animation-name: fadein; - animation-name: fadein; - -webkit-transform: translateX(0); - transform: translateX(0) -} - -.slidefade.reverse.out { - -webkit-animation-name: slideouttoright; - animation-name: slideouttoright; - -webkit-transform: translateX(100%); - transform: translateX(100%) -} - -.slidevert.in,.slidevert.out { - -webkit-animation-duration: 350ms; - animation-duration: 350ms; - -webkit-animation-timing-function: ease-out; - animation-timing-function: ease-out -} - -.slidevert.out { - -webkit-animation-name: slideouttobottom; - animation-name: slideouttobottom; - -webkit-transform: translateY(100%); - transform: translateY(100%); - visibility: hidden -} - -.slidevert.in { - -webkit-animation-name: slideinfromtop; - animation-name: slideinfromtop; - -webkit-transform: translateY(0); - transform: translateY(0); - visibility: visible -} - -.slidevert.reverse.out { - -webkit-animation-name: slideouttotop; - animation-name: slideouttotop; - -webkit-transform: translateY(-100%); - transform: translateY(-100%) -} - -.slidevert.reverse.in { - -webkit-animation-name: slideinfrombottom; - animation-name: slideinfrombottom -} - -@-webkit-keyframes slideinfromtop { - 0% { - -webkit-transform: translateY(-100%); - transform: translateY(-100%) - } - - 100% { - -webkit-transform: translateY(0); - transform: translateY(0) - } -} - -@keyframes slideinfromtop { - 0% { - -webkit-transform: translateY(-100%); - transform: translateY(-100%) - } - - 100% { - -webkit-transform: translateY(0); - transform: translateY(0) - } -} - -@-webkit-keyframes slideouttotop { - 0% { - -webkit-transform: translateY(0); - transform: translateY(0); - visibility: visible - } - - 99% { - visibility: visible - } - - 100% { - -webkit-transform: translateY(-100%); - transform: translateY(-100%); - visibility: hidden - } -} - -@keyframes slideouttotop { - 0% { - -webkit-transform: translateY(0); - transform: translateY(0); - visibility: visible - } - - 99% { - visibility: visible - } - - 100% { - -webkit-transform: translateY(-100%); - transform: translateY(-100%); - visibility: hidden - } -} - -@-webkit-keyframes slideinfrombottom { - 0% { - -webkit-transform: translateY(100%); - transform: translateY(100%) - } - - 100% { - -webkit-transform: translateY(0); - transform: translateY(0) - } -} - -@keyframes slideinfrombottom { - 0% { - -webkit-transform: translateY(100%); - transform: translateY(100%) - } - - 100% { - -webkit-transform: translateY(0); - transform: translateY(0) - } -} - -@-webkit-keyframes slideouttobottom { - 0% { - -webkit-transform: translateY(0); - transform: translateY(0); - visibility: visible - } - - 99% { - visibility: visible - } - - 100% { - -webkit-transform: translateY(100%); - transform: translateY(100%); - visibility: hidden - } -} - -@keyframes slideouttobottom { - 0% { - -webkit-transform: translateY(0); - transform: translateY(0); - visibility: visible - } - - 99% { - visibility: visible - } - - 100% { - -webkit-transform: translateY(100%); - transform: translateY(100%); - visibility: hidden - } -} - -.caret { - display: inline-block; - width: 0; - height: 0; - margin-left: 2px; - vertical-align: middle; - border-top: 4px dashed; - border-right: 4px solid transparent; - border-left: 4px solid transparent -} - -.dropdown,.dropup { - position: relative -} - -.dropdown-toggle:focus { - outline: 0 -} - -.dropdown-menu { - position: absolute; - top: 100%; - left: 0; - z-index: 1000; - display: none; - float: left; - min-width: 160px; - padding: 5px 0; - margin: 2px 0 0; - font-size: 16px; - text-align: left; - list-style: none; - background-color: #fff; - background-clip: padding-box; - border: 1px solid #ccc; - border: 1px solid rgba(0,0,0,.15); - border-radius: 4px; - -webkit-box-shadow: 0 6px 12px rgba(0,0,0,.175); - box-shadow: 0 6px 12px rgba(0,0,0,.175) -} - -.dropdown-menu.pull-right { - right: 0; - left: auto -} - -.dropdown-menu .divider { - height: 1px; - margin: 10.5px 0; - overflow: hidden; - background-color: #e5e5e5 -} - -.dropdown-menu>li>a { - display: block; - padding: 3px 20px; - clear: both; - font-weight: 400; - line-height: 1.4375; - color: #333; - white-space: nowrap -} - -.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover { - color: rgb(38.25,38.25,38.25); - text-decoration: none; - background-color: #f5f5f5 -} - -.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover { - color: #fff; - text-decoration: none; - background-color: #2572b4; - outline: 0 -} - -.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover { - color: #6f6f6f -} - -.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover { - text-decoration: none; - cursor: not-allowed; - background-color: transparent; - background-image: none -} - -.open>.dropdown-menu { - display: block -} - -.open>a { - outline: 0 -} - -.dropdown-menu-right { - right: 0; - left: auto -} - -.dropdown-menu-left { - right: auto; - left: 0 -} - -.dropdown-header { - display: block; - padding: 3px 20px; - font-size: 14px; - line-height: 1.4375; - color: #6f6f6f; - white-space: nowrap -} - -.dropdown-backdrop { - position: fixed; - top: 0; - right: 0; - bottom: 0; - left: 0; - z-index: 990 -} - -.pull-right>.dropdown-menu { - right: 0; - left: auto -} - -.dropup .caret,.navbar-fixed-bottom .dropdown .caret { - content: ""; - border-top: 0; - border-bottom: 4px dashed -} - -.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu { - top: auto; - bottom: 100%; - margin-bottom: 2px -} - -@media (min-width: 768px) { - .navbar-right .dropdown-menu { - right:0; - left: auto - } - - .navbar-right .dropdown-menu-left { - left: 0; - right: auto - } -} - -.btn-group,.btn-group-vertical { - position: relative; - display: inline-block; - vertical-align: middle -} - -.btn-group-vertical>.btn,.btn-group>.btn { - position: relative; - float: left -} - -.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover { - z-index: 2 -} - -.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group { - margin-left: -1px -} - -.btn-toolbar { - margin-left: -5px -} - -.btn-toolbar:after,.btn-toolbar:before { - display: table; - content: " " -} - -.btn-toolbar:after { - clear: both -} - -.btn-toolbar .btn,.btn-toolbar .btn-group,.btn-toolbar .input-group { - float: left -} - -.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group { - margin-left: 5px -} - -.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle) { - border-radius: 0 -} - -.btn-group>.btn:first-child { - margin-left: 0 -} - -.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle) { - border-top-right-radius: 0; - border-bottom-right-radius: 0 -} - -.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child) { - border-top-left-radius: 0; - border-bottom-left-radius: 0 -} - -.btn-group>.btn-group { - float: left -} - -.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn { - border-radius: 0 -} - -.btn-group>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group>.btn-group:first-child:not(:last-child)>.dropdown-toggle { - border-top-right-radius: 0; - border-bottom-right-radius: 0 -} - -.btn-group>.btn-group:last-child:not(:first-child)>.btn:first-child { - border-top-left-radius: 0; - border-bottom-left-radius: 0 -} - -.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle { - outline: 0 -} - -.btn-group>.btn+.dropdown-toggle { - padding-right: 8px; - padding-left: 8px -} - -.btn-group.btn-group-lg>.btn+.dropdown-toggle,.btn-group>.btn-lg+.dropdown-toggle { - padding-right: 12px; - padding-left: 12px -} - -.btn-group.open .dropdown-toggle { - -webkit-box-shadow: inset 0 3px 5px rgba(0,0,0,.125); - box-shadow: inset 0 3px 5px rgba(0,0,0,.125) -} - -.btn-group.open .dropdown-toggle.btn-link { - -webkit-box-shadow: none; - box-shadow: none -} - -.btn .caret { - margin-left: 0 -} - -.btn-group-lg>.btn .caret,.btn-lg .caret { - border-width: 5px 5px 0; - border-bottom-width: 0 -} - -.dropup .btn-group-lg>.btn .caret,.dropup .btn-lg .caret { - border-width: 0 5px 5px -} - -.btn-group-vertical>.btn,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn { - display: block; - float: none; - width: 100%; - max-width: 100% -} - -.btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before { - display: table; - content: " " -} - -.btn-group-vertical>.btn-group:after { - clear: both -} - -.btn-group-vertical>.btn-group>.btn { - float: none -} - -.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group { - margin-top: -1px; - margin-left: 0 -} - -.btn-group-vertical>.btn:not(:first-child):not(:last-child) { - border-radius: 0 -} - -.btn-group-vertical>.btn:first-child:not(:last-child) { - border-top-left-radius: 4px; - border-top-right-radius: 4px; - border-bottom-right-radius: 0; - border-bottom-left-radius: 0 -} - -.btn-group-vertical>.btn:last-child:not(:first-child) { - border-top-left-radius: 0; - border-top-right-radius: 0; - border-bottom-right-radius: 4px; - border-bottom-left-radius: 4px -} - -.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn { - border-radius: 0 -} - -.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle { - border-bottom-right-radius: 0; - border-bottom-left-radius: 0 -} - -.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child { - border-top-left-radius: 0; - border-top-right-radius: 0 -} - -.btn-group-justified { - display: table; - width: 100%; - table-layout: fixed; - border-collapse: separate -} - -.btn-group-justified>.btn,.btn-group-justified>.btn-group { - display: table-cell; - float: none; - width: 1% -} - -.btn-group-justified>.btn-group .btn { - width: 100% -} - -.btn-group-justified>.btn-group .dropdown-menu { - left: auto -} - -[data-toggle=buttons]>.btn input[type=checkbox],[data-toggle=buttons]>.btn input[type=radio],[data-toggle=buttons]>.btn-group>.btn input[type=checkbox],[data-toggle=buttons]>.btn-group>.btn input[type=radio] { - position: absolute; - clip: rect(0,0,0,0); - pointer-events: none -} - -.input-group { - position: relative; - display: table; - border-collapse: separate -} - -.input-group[class*=col-] { - float: none; - padding-right: 0; - padding-left: 0 -} - -.input-group .form-control { - position: relative; - z-index: 2; - float: left; - width: 100%; - margin-bottom: 0 -} - -.input-group .form-control:focus { - z-index: 3 -} - -.input-group .form-control,.input-group-addon,.input-group-btn { - display: table-cell -} - -.input-group .form-control:not(:first-child):not(:last-child),.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child) { - border-radius: 0 -} - -.input-group-addon,.input-group-btn { - width: 1%; - white-space: nowrap; - vertical-align: middle -} - -.input-group-addon { - padding: 10px 14px; - font-size: 16px; - font-weight: 400; - line-height: 1; - color: rgb(85.425,85.425,85.425); - text-align: center; - background-color: rgb(238.425,238.425,238.425); - border: 1px solid #ccc; - border-radius: 4px -} - -.input-group-addon.input-sm,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.input-group-addon.btn { - padding: 5px 10px; - font-size: 14px; - border-radius: 3px -} - -.input-group-addon.input-lg,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.input-group-addon.btn { - padding: 10px 16px; - font-size: 18px; - border-radius: 6px -} - -.input-group-addon input[type=checkbox],.input-group-addon input[type=radio] { - margin-top: 0 -} - -.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn-group:not(:last-child)>.btn,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle) { - border-top-right-radius: 0; - border-bottom-right-radius: 0 -} - -.input-group-addon:first-child { - border-right: 0 -} - -.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:first-child>.btn-group:not(:first-child)>.btn,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle { - border-top-left-radius: 0; - border-bottom-left-radius: 0 -} - -.input-group-addon:last-child { - border-left: 0 -} - -.input-group-btn { - position: relative; - font-size: 0; - white-space: nowrap -} - -.input-group-btn>.btn { - position: relative -} - -.input-group-btn>.btn+.btn { - margin-left: -1px -} - -.input-group-btn>.btn:active,.input-group-btn>.btn:focus,.input-group-btn>.btn:hover { - z-index: 2 -} - -.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group { - margin-right: -1px -} - -.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group { - z-index: 2; - margin-left: -1px -} - -.nav { - padding-left: 0; - margin-bottom: 0; - list-style: none -} - -.nav:after,.nav:before { - display: table; - content: " " -} - -.nav:after { - clear: both -} - -.nav>li { - position: relative; - display: block -} - -.nav>li>a { - position: relative; - display: block; - padding: 10px 15px -} - -.nav>li>a:focus,.nav>li>a:hover { - text-decoration: none; - background-color: rgb(238.425,238.425,238.425) -} - -.nav>li.disabled>a { - color: #6f6f6f -} - -.nav>li.disabled>a:focus,.nav>li.disabled>a:hover { - color: #6f6f6f; - text-decoration: none; - cursor: not-allowed; - background-color: transparent -} - -.nav .open>a,.nav .open>a:focus,.nav .open>a:hover { - background-color: rgb(238.425,238.425,238.425); - border-color: #295376 -} - -.nav .nav-divider { - height: 1px; - margin: 10.5px 0; - overflow: hidden; - background-color: #e5e5e5 -} - -.nav>li>a>img { - max-width: none -} - -.nav-tabs { - border-bottom: 1px solid #ddd -} - -.nav-tabs>li { - float: left; - margin-bottom: -1px -} - -.nav-tabs>li>a { - margin-right: 2px; - line-height: 1.4375; - border: 1px solid transparent; - border-radius: 4px 4px 0 0 -} - -.nav-tabs>li>a:hover { - border-color: rgb(238.425,238.425,238.425) rgb(238.425,238.425,238.425) #ddd -} - -.nav-tabs>li.active>a,.nav-tabs>li.active>a:focus,.nav-tabs>li.active>a:hover { - color: rgb(85.425,85.425,85.425); - cursor: default; - background-color: #fff; - border: 1px solid #ddd; - border-bottom-color: transparent -} - -.nav-pills>li { - float: left -} - -.nav-pills>li>a { - border-radius: 4px -} - -.nav-pills>li+li { - margin-left: 2px -} - -.nav-pills>li.active>a,.nav-pills>li.active>a:focus,.nav-pills>li.active>a:hover { - color: #fff; - background-color: #2572b4 -} - -.nav-stacked>li { - float: none -} - -.nav-stacked>li+li { - margin-top: 2px; - margin-left: 0 -} - -.nav-justified,.nav-tabs.nav-justified { - width: 100% -} - -.nav-justified>li,.nav-tabs.nav-justified>li { - float: none -} - -.nav-justified>li>a,.nav-tabs.nav-justified>li>a { - margin-bottom: 5px; - text-align: center -} - -.nav-justified>.dropdown .dropdown-menu { - top: auto; - left: auto -} - -@media (min-width: 768px) { - .nav-justified>li,.nav-tabs.nav-justified>li { - display:table-cell; - width: 1% - } - - .nav-justified>li>a,.nav-tabs.nav-justified>li>a { - margin-bottom: 0 - } -} - -.nav-tabs-justified,.nav-tabs.nav-justified { - border-bottom: 0 -} - -.nav-tabs-justified>li>a,.nav-tabs.nav-justified>li>a { - margin-right: 0; - border-radius: 4px -} - -.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover,.nav-tabs.nav-justified>.active>a { - border: 1px solid #ddd -} - -@media (min-width: 768px) { - .nav-tabs-justified>li>a,.nav-tabs.nav-justified>li>a { - border-bottom:1px solid #ddd; - border-radius: 4px 4px 0 0 - } - - .nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover,.nav-tabs.nav-justified>.active>a { - border-bottom-color: #fff - } -} - -.tab-content>.tab-pane { - display: none -} - -.tab-content>.active { - display: block -} - -.nav-tabs .dropdown-menu { - margin-top: -1px; - border-top-left-radius: 0; - border-top-right-radius: 0 -} - -.navbar { - position: relative; - min-height: 50px; - margin-bottom: 23px; - border: 1px solid transparent -} - -.navbar:after,.navbar:before { - display: table; - content: " " -} - -.navbar:after { - clear: both -} - -@media (min-width: 768px) { - .navbar { - border-radius:4px - } -} - -.navbar-header:after,.navbar-header:before { - display: table; - content: " " -} - -.navbar-header:after { - clear: both -} - -@media (min-width: 768px) { - .navbar-header { - float:left - } -} - -.navbar-collapse { - padding-right: 15px; - padding-left: 15px; - overflow-x: visible; - border-top: 1px solid transparent; - -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.1); - box-shadow: inset 0 1px 0 rgba(255,255,255,.1) -} - -.navbar-collapse:after,.navbar-collapse:before { - display: table; - content: " " -} - -.navbar-collapse:after { - clear: both -} - -.navbar-collapse { - -webkit-overflow-scrolling: touch -} - -.navbar-collapse.in { - overflow-y: auto -} - -@media (min-width: 768px) { - .navbar-collapse { - width:auto; - border-top: 0; - -webkit-box-shadow: none; - box-shadow: none - } - - .navbar-collapse.collapse { - display: block!important; - height: auto!important; - padding-bottom: 0; - overflow: visible!important - } - - .navbar-collapse.in { - overflow-y: visible - } - - .navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse { - padding-right: 0; - padding-left: 0 - } -} - -.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse { - max-height: 340px -} - -@media (max-device-width: 480px) and (orientation:landscape) { - .navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse { - max-height:200px - } -} - -.navbar-fixed-bottom,.navbar-fixed-top { - position: fixed; - right: 0; - left: 0; - z-index: 1030 -} - -@media (min-width: 768px) { - .navbar-fixed-bottom,.navbar-fixed-top { - border-radius:0 - } -} - -.navbar-fixed-top { - top: 0; - border-width: 0 0 1px -} - -.navbar-fixed-bottom { - bottom: 0; - margin-bottom: 0; - border-width: 1px 0 0 -} - -.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header { - margin-right: -15px; - margin-left: -15px -} - -@media (min-width: 768px) { - .container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header { - margin-right:0; - margin-left: 0 - } -} - -.navbar-static-top { - z-index: 1000; - border-width: 0 0 1px -} - -@media (min-width: 768px) { - .navbar-static-top { - border-radius:0 - } -} - -.navbar-brand { - float: left; - height: 50px; - padding: 13.5px 15px; - font-size: 18px; - line-height: 23px -} - -.navbar-brand:focus,.navbar-brand:hover { - text-decoration: none -} - -.navbar-brand>img { - display: block -} - -@media (min-width: 768px) { - .navbar>.container .navbar-brand,.navbar>.container-fluid .navbar-brand { - margin-left:-15px - } -} - -.navbar-toggle { - position: relative; - float: right; - padding: 9px 10px; - margin-right: 15px; - margin-top: 8px; - margin-bottom: 8px; - background-color: transparent; - background-image: none; - border: 1px solid transparent; - border-radius: 4px -} - -.navbar-toggle:focus { - outline: 0 -} - -.navbar-toggle .icon-bar { - display: block; - width: 22px; - height: 2px; - border-radius: 1px -} - -.navbar-toggle .icon-bar+.icon-bar { - margin-top: 4px -} - -@media (min-width: 768px) { - .navbar-toggle { - display:none - } -} - -.navbar-nav { - margin: 6.75px -15px -} - -.navbar-nav>li>a { - padding-top: 10px; - padding-bottom: 10px; - line-height: 23px -} - -@media (max-width: 767px) { - .navbar-nav .open .dropdown-menu { - position:static; - float: none; - width: auto; - margin-top: 0; - background-color: transparent; - border: 0; - -webkit-box-shadow: none; - box-shadow: none - } - - .navbar-nav .open .dropdown-menu .dropdown-header,.navbar-nav .open .dropdown-menu>li>a { - padding: 5px 15px 5px 25px - } - - .navbar-nav .open .dropdown-menu>li>a { - line-height: 23px - } - - .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-nav .open .dropdown-menu>li>a:hover { - background-image: none - } -} - -@media (min-width: 768px) { - .navbar-nav { - float:left; - margin: 0 - } - - .navbar-nav>li { - float: left - } - - .navbar-nav>li>a { - padding-top: 13.5px; - padding-bottom: 13.5px - } -} - -.navbar-form { - padding: 10px 15px; - margin-right: -15px; - margin-left: -15px; - border-top: 1px solid transparent; - border-bottom: 1px solid transparent; - -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1); - box-shadow: inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1) -} - -@media (min-width: 768px) { - .navbar-form .form-group { - display:inline-block; - margin-bottom: 0; - vertical-align: middle - } - - .navbar-form .form-control { - display: inline-block; - width: auto; - vertical-align: middle - } - - .navbar-form .form-control-static { - display: inline-block - } - - .navbar-form .input-group { - display: inline-table; - vertical-align: middle - } - - .navbar-form .input-group .form-control,.navbar-form .input-group .input-group-addon,.navbar-form .input-group .input-group-btn { - width: auto - } - - .navbar-form .input-group>.form-control { - width: 100% - } - - .navbar-form .control-label { - margin-bottom: 0; - vertical-align: middle - } - - .navbar-form .checkbox,.navbar-form .radio { - display: inline-block; - margin-top: 0; - margin-bottom: 0; - vertical-align: middle - } - - .navbar-form .checkbox label,.navbar-form .radio label { - padding-left: 0 - } - - .navbar-form .checkbox input[type=checkbox],.navbar-form .radio input[type=radio] { - position: relative; - margin-left: 0 - } - - .navbar-form .has-feedback .form-control-feedback { - top: 0 - } -} - -@media (max-width: 767px) { - .navbar-form .form-group { - margin-bottom:5px - } - - .navbar-form .form-group:last-child { - margin-bottom: 0 - } -} - -.navbar-form { - margin-top: 6.5px; - margin-bottom: 6.5px -} - -@media (min-width: 768px) { - .navbar-form { - width:auto; - padding-top: 0; - padding-bottom: 0; - margin-right: 0; - margin-left: 0; - border: 0; - -webkit-box-shadow: none; - box-shadow: none - } -} - -.navbar-nav>li>.dropdown-menu { - margin-top: 0; - border-top-left-radius: 0; - border-top-right-radius: 0 -} - -.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu { - margin-bottom: 0; - border-top-left-radius: 4px; - border-top-right-radius: 4px; - border-bottom-right-radius: 0; - border-bottom-left-radius: 0 -} - -.navbar-btn { - margin-top: 6.5px; - margin-bottom: 6.5px -} - -.btn-group-sm>.navbar-btn.btn,.navbar-btn.btn-sm { - margin-top: 8.5px; - margin-bottom: 8.5px -} - -.btn-group-xs>.navbar-btn.btn,.navbar-btn.btn-xs { - margin-top: 14px; - margin-bottom: 14px -} - -.navbar-text { - margin-top: 13.5px; - margin-bottom: 13.5px -} - -@media (min-width: 768px) { - .navbar-text { - float:left; - margin-right: 15px; - margin-left: 15px - } -} - -@media (min-width: 768px) { - .navbar-left { - float:left!important - } - - .navbar-right { - float: right!important; - margin-right: -15px - } - - .navbar-right~.navbar-right { - margin-right: 0 - } -} - -.navbar-default { - background-color: #f8f8f8; - border-color: rgb(231.425,231.425,231.425) -} - -.navbar-default .navbar-brand { - color: #777 -} - -.navbar-default .navbar-brand:focus,.navbar-default .navbar-brand:hover { - color: rgb(93.5,93.5,93.5); - background-color: transparent -} - -.navbar-default .navbar-text { - color: #777 -} - -.navbar-default .navbar-nav>li>a { - color: #777 -} - -.navbar-default .navbar-nav>li>a:focus,.navbar-default .navbar-nav>li>a:hover { - color: #333; - background-color: transparent -} - -.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:focus,.navbar-default .navbar-nav>.active>a:hover { - color: #555; - background-color: rgb(231.425,231.425,231.425) -} - -.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:focus,.navbar-default .navbar-nav>.disabled>a:hover { - color: #ccc; - background-color: transparent -} - -.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:focus,.navbar-default .navbar-nav>.open>a:hover { - color: #555; - background-color: rgb(231.425,231.425,231.425) -} - -@media (max-width: 767px) { - .navbar-default .navbar-nav .open .dropdown-menu>li>a { - color:#777 - } - - .navbar-default .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover { - color: #333; - background-color: transparent - } - - .navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover { - color: #555; - background-color: rgb(231.425,231.425,231.425) - } - - .navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover { - color: #ccc; - background-color: transparent - } -} - -.navbar-default .navbar-toggle { - border-color: #ddd -} - -.navbar-default .navbar-toggle:focus,.navbar-default .navbar-toggle:hover { - background-color: #ddd -} - -.navbar-default .navbar-toggle .icon-bar { - background-color: #888 -} - -.navbar-default .navbar-collapse,.navbar-default .navbar-form { - border-color: rgb(231.425,231.425,231.425) -} - -.navbar-default .navbar-link { - color: #777 -} - -.navbar-default .navbar-link:hover { - color: #333 -} - -.navbar-default .btn-link { - color: #777 -} - -.navbar-default .btn-link:focus,.navbar-default .btn-link:hover { - color: #333 -} - -.navbar-default .btn-link[disabled]:focus,.navbar-default .btn-link[disabled]:hover,fieldset[disabled] .navbar-default .btn-link:focus,fieldset[disabled] .navbar-default .btn-link:hover { - color: #ccc -} - -.navbar-inverse { - background-color: #222; - border-color: rgb(8.5,8.5,8.5) -} - -.navbar-inverse .navbar-brand { - color: rgb(149.25,149.25,149.25) -} - -.navbar-inverse .navbar-brand:focus,.navbar-inverse .navbar-brand:hover { - color: #fff; - background-color: transparent -} - -.navbar-inverse .navbar-text { - color: rgb(149.25,149.25,149.25) -} - -.navbar-inverse .navbar-nav>li>a { - color: rgb(149.25,149.25,149.25) -} - -.navbar-inverse .navbar-nav>li>a:focus,.navbar-inverse .navbar-nav>li>a:hover { - color: #fff; - background-color: transparent -} - -.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:focus,.navbar-inverse .navbar-nav>.active>a:hover { - color: #fff; - background-color: rgb(8.5,8.5,8.5) -} - -.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:focus,.navbar-inverse .navbar-nav>.disabled>a:hover { - color: #444; - background-color: transparent -} - -.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:focus,.navbar-inverse .navbar-nav>.open>a:hover { - color: #fff; - background-color: rgb(8.5,8.5,8.5) -} - -@media (max-width: 767px) { - .navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header { - border-color:rgb(8.5,8.5,8.5) - } - - .navbar-inverse .navbar-nav .open .dropdown-menu .divider { - background-color: rgb(8.5,8.5,8.5) - } - - .navbar-inverse .navbar-nav .open .dropdown-menu>li>a { - color: rgb(149.25,149.25,149.25) - } - - .navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover { - color: #fff; - background-color: transparent - } - - .navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover { - color: #fff; - background-color: rgb(8.5,8.5,8.5) - } - - .navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover { - color: #444; - background-color: transparent - } -} - -.navbar-inverse .navbar-toggle { - border-color: #333 -} - -.navbar-inverse .navbar-toggle:focus,.navbar-inverse .navbar-toggle:hover { - background-color: #333 -} - -.navbar-inverse .navbar-toggle .icon-bar { - background-color: #fff -} - -.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form { - border-color: rgb(16.15,16.15,16.15) -} - -.navbar-inverse .navbar-link { - color: rgb(149.25,149.25,149.25) -} - -.navbar-inverse .navbar-link:hover { - color: #fff -} - -.navbar-inverse .btn-link { - color: rgb(149.25,149.25,149.25) -} - -.navbar-inverse .btn-link:focus,.navbar-inverse .btn-link:hover { - color: #fff -} - -.navbar-inverse .btn-link[disabled]:focus,.navbar-inverse .btn-link[disabled]:hover,fieldset[disabled] .navbar-inverse .btn-link:focus,fieldset[disabled] .navbar-inverse .btn-link:hover { - color: #444 -} - -.breadcrumb { - padding: 8px 15px; - margin-bottom: 23px; - list-style: none; - background-color: transparent; - border-radius: 4px -} - -.breadcrumb>li { - display: inline-block -} - -.breadcrumb>li+li:before { - padding: 0 5px; - color: #ccc; - content: "/ " -} - -.breadcrumb>.active { - color: #6f6f6f -} - -.pagination { - display: inline-block; - padding-left: 0; - margin: 23px 0; - border-radius: 4px -} - -.pagination>li { - display: inline -} - -.pagination>li>a,.pagination>li>span { - position: relative; - float: left; - padding: 10px 14px; - margin-left: -1px; - line-height: 1.4375; - color: #335075; - text-decoration: none; - background-color: #eaebed; - border: 1px solid rgb(220.2692307692,221.9230769231,225.2307692308) -} - -.pagination>li>a:focus,.pagination>li>a:hover,.pagination>li>span:focus,.pagination>li>span:hover { - z-index: 2; - color: #335075; - background-color: rgb(212.0307692308,214.0769230769,218.1692307692); - border-color: rgb(187.3153846154,190.5384615385,196.9846153846) -} - -.pagination>li:first-child>a,.pagination>li:first-child>span { - margin-left: 0; - border-top-left-radius: 4px; - border-bottom-left-radius: 4px -} - -.pagination>li:last-child>a,.pagination>li:last-child>span { - border-top-right-radius: 4px; - border-bottom-right-radius: 4px -} - -.pagination>.active>a,.pagination>.active>a:focus,.pagination>.active>a:hover,.pagination>.active>span,.pagination>.active>span:focus,.pagination>.active>span:hover { - z-index: 3; - color: #fff; - cursor: default; - background-color: #2572b4; - border-color: #2572b4 -} - -.pagination>.disabled>a,.pagination>.disabled>a:focus,.pagination>.disabled>a:hover,.pagination>.disabled>span,.pagination>.disabled>span:focus,.pagination>.disabled>span:hover { - color: #6f6f6f; - cursor: not-allowed; - background-color: #fff; - border-color: #ddd -} - -.pagination-lg>li>a,.pagination-lg>li>span { - padding: 10px 16px; - font-size: 18px; - line-height: 1.3333333 -} - -.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span { - border-top-left-radius: 6px; - border-bottom-left-radius: 6px -} - -.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span { - border-top-right-radius: 6px; - border-bottom-right-radius: 6px -} - -.pagination-sm>li>a,.pagination-sm>li>span { - padding: 5px 10px; - font-size: 14px; - line-height: 1.5 -} - -.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span { - border-top-left-radius: 3px; - border-bottom-left-radius: 3px -} - -.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span { - border-top-right-radius: 3px; - border-bottom-right-radius: 3px -} - -.pager { - padding-left: 0; - margin: 23px 0; - text-align: center; - list-style: none -} - -.pager:after,.pager:before { - display: table; - content: " " -} - -.pager:after { - clear: both -} - -.pager li { - display: inline -} - -.pager li>a,.pager li>span { - display: inline-block; - padding: 5px 14px; - background-color: #eaebed; - border: 1px solid rgb(220.2692307692,221.9230769231,225.2307692308); - border-radius: 4px -} - -.pager li>a:focus,.pager li>a:hover { - text-decoration: none; - background-color: rgb(212.0307692308,214.0769230769,218.1692307692) -} - -.pager .next>a,.pager .next>span { - float: right -} - -.pager .previous>a,.pager .previous>span { - float: left -} - -.pager .disabled>a,.pager .disabled>a:focus,.pager .disabled>a:hover,.pager .disabled>span { - color: #6f6f6f; - cursor: not-allowed; - background-color: #eaebed -} - -.label { - display: inline; - padding: .2em .6em .3em; - font-size: 75%; - font-weight: 700; - line-height: 1; - color: #fff; - text-align: center; - white-space: nowrap; - vertical-align: baseline; - border-radius: .25em -} - -.label:empty { - display: none -} - -.btn .label { - position: relative; - top: -1px -} - -a.label:focus,a.label:hover { - color: #fff; - text-decoration: none; - cursor: pointer -} - -.label-default { - background-color: #6f6f6f -} - -.label-default[href]:focus,.label-default[href]:hover { - background-color: rgb(85.5,85.5,85.5) -} - -.label-primary { - background-color: #2572b4 -} - -.label-primary[href]:focus,.label-primary[href]:hover { - background-color: rgb(28.3041474654,87.2073732719,137.6958525346) -} - -.label-success { - background-color: #1b6c1c -} - -.label-success[href]:focus,.label-success[href]:hover { - background-color: rgb(16.8,67.2,17.4222222222) -} - -.label-info { - background-color: #4d4d4d -} - -.label-info[href]:focus,.label-info[href]:hover { - background-color: rgb(51.5,51.5,51.5) -} - -.label-warning { - background-color: #f2d40d -} - -.label-warning[href]:focus,.label-warning[href]:hover { - background-color: rgb(193.6,169.6,10.4) -} - -.label-danger { - background-color: #bc3331 -} - -.label-danger[href]:focus,.label-danger[href]:hover { - background-color: rgb(147.5443037975,40.0253164557,38.4556962025) -} - -.alert { - padding: 15px; - margin-bottom: 23px; - border: 1px solid transparent; - border-radius: 4px -} - -.alert h4 { - margin-top: 0; - color: inherit -} - -.alert .alert-link { - font-weight: 700 -} - -.alert>p,.alert>ul { - margin-bottom: 0 -} - -.alert>p+p { - margin-top: 5px -} - -.alert-dismissable,.alert-dismissible { - padding-right: 35px -} - -.alert-dismissable .close,.alert-dismissible .close { - position: relative; - top: -2px; - right: -21px; - color: inherit -} - -.alert-success { - color: #3c763d; - background-color: #dff0d8; - border-color: rgb(213.7777777778,232.9166666667,197.5833333333) -} - -.alert-success hr { - border-top-color: rgb(200.5555555556,225.8333333333,179.1666666667) -} - -.alert-success .alert-link { - color: rgb(42.808988764,84.191011236,43.5224719101) -} - -.alert-info { - color: #31708f; - background-color: #d9edf7; - border-color: rgb(187.5086956522,231.9108695652,240.7913043478) -} - -.alert-info hr { - border-top-color: rgb(166.4434782609,224.7043478261,236.3565217391) -} - -.alert-info .alert-link { - color: rgb(35.984375,82.25,105.015625) -} - -.alert-warning { - color: #8a6d3b; - background-color: #fcf8e3; - border-color: rgb(249.5322580645,234.6478494624,203.9677419355) -} - -.alert-warning hr { - border-top-color: rgb(247.064516129,225.4623655914,180.935483871) -} - -.alert-warning .alert-link { - color: rgb(102.2741116751,80.7817258883,43.7258883249) -} - -.alert-danger { - color: #a94442; - background-color: #f2dede; - border-color: rgb(234.7934782609,203.7065217391,208.8876811594) -} - -.alert-danger hr { - border-top-color: rgb(227.5869565217,185.4130434783,192.4420289855) -} - -.alert-danger .alert-link { - color: rgb(132.3234042553,53.2425531915,51.6765957447) -} - -.alert,.label { - border-radius: 0; - border-style: solid; - border-width: 0 0 0 4px -} - -.alert-danger,.alert-info,.alert-success,.alert-warning,.label-danger,.label-danger[href]:active,.label-danger[href]:focus,.label-danger[href]:hover,.label-default,.label-default[href]:active,.label-default[href]:focus,.label-default[href]:hover,.label-info,.label-info[href]:active,.label-info[href]:focus,.label-info[href]:hover,.label-primary,.label-primary[href]:active,.label-primary[href]:focus,.label-primary[href]:hover,.label-success,.label-success[href]:active,.label-success[href]:focus,.label-success[href]:hover,.label-warning,.label-warning[href]:active,.label-warning[href]:focus,.label-warning[href]:hover { - color: #000 -} - -.label-danger[href]:active,.label-danger[href]:focus,.label-danger[href]:hover,.label-default[href]:active,.label-default[href]:focus,.label-default[href]:hover,.label-info[href]:active,.label-info[href]:focus,.label-info[href]:hover,.label-primary[href]:active,.label-primary[href]:focus,.label-primary[href]:hover,.label-success[href]:active,.label-success[href]:focus,.label-success[href]:hover,.label-warning[href]:active,.label-warning[href]:focus,.label-warning[href]:hover { - text-decoration: underline -} - -.label-default,.label-default[href]:active,.label-default[href]:focus,.label-default[href]:hover { - background: #eee; - border-color: #acacac -} - -.label-primary,.label-primary[href]:active,.label-primary[href]:focus,.label-primary[href]:hover { - background: #e8f2f4; - border-color: #083c6c -} - -.alert-success,.label-success,.label-success[href]:active,.label-success[href]:focus,.label-success[href]:hover,details.alert.alert-success,details.alert[open].alert-success { - background: #d8eeca; - border-color: #278400 -} - -.alert-info,.label-info,.label-info[href]:active,.label-info[href]:focus,.label-info[href]:hover,details.alert.alert-info,details.alert[open].alert-info { - background: #d7faff; - border-color: #269abc -} - -.alert-warning,.label-warning,.label-warning[href]:active,.label-warning[href]:focus,.label-warning[href]:hover,details.alert.alert-warning,details.alert[open].alert-warning { - background: #f9f4d4; - border-color: #f90 -} - -.alert-danger,.label-danger,.label-danger[href]:active,.label-danger[href]:focus,.label-danger[href]:hover,details.alert.alert-danger,details.alert[open].alert-danger { - background: #f3e9e8; - border-color: #d3080c -} - -.alert>:first-child { - margin-left: 1.2em; - margin-top: auto -} - -.alert>:first-child:before { - display: inline-block; - font-family: "Glyphicons Halflings"; - margin-left: -1.3em; - position: absolute -} - -.alert>em:first-child,.alert>span:first-child,.alert>strong:first-child { - display: inline-block -} - -.alert-success>:first-child:before { - color: #278400; - content: "\e084" -} - -.alert-info>:first-child:before { - color: #269abc; - content: "\e086" -} - -.alert-warning>:first-child:before { - color: #f90; - content: "\e107" -} - -.alert-danger>:first-child:before { - color: #d3080c; - content: "\e101" -} - -[dir=rtl] .alert>:first-child { - margin-left: auto; - margin-right: 1.2em -} - -[dir=rtl] .alert>:first-child:before { - margin-left: auto; - margin-right: -1.3em -} - -[dir=rtl] details.alert { - padding-right: 45px -} - -[dir=rtl] details.alert:before { - margin-right: -1.3em -} - -[dir=rtl] details.alert>* { - margin-right: .7em -} - -[dir=rtl] details.alert>:first-child { - margin-right: .4em -} - -.badge { - display: inline-block; - min-width: 10px; - padding: 3px 7px; - font-size: 14px; - font-weight: 700; - line-height: 1; - color: #fff; - text-align: center; - white-space: nowrap; - vertical-align: middle; - background-color: #6f6f6f; - border-radius: 10px -} - -.badge:empty { - display: none -} - -.btn .badge { - position: relative; - top: -1px -} - -.btn-group-xs>.btn .badge,.btn-xs .badge { - top: 0; - padding: 1px 5px -} - -.list-group-item.active>.badge,.nav-pills>.active>a>.badge { - color: #295376; - background-color: #fff -} - -.list-group-item>.badge { - float: right -} - -.list-group-item>.badge+.badge { - margin-right: 5px -} - -.nav-pills>li>a>.badge { - margin-left: 3px -} - -a.badge:focus,a.badge:hover { - color: #fff; - text-decoration: none; - cursor: pointer -} - -.badge.badge-dept { - background-color: #eee; - color: #333; - font-size: 2em; - margin: 20px 10px 0 -} - -.jumbotron { - padding-top: 30px; - padding-bottom: 30px; - margin-bottom: 30px; - color: inherit; - background-color: rgb(238.425,238.425,238.425) -} - -.jumbotron .h1,.jumbotron h1 { - color: inherit -} - -.jumbotron p { - margin-bottom: 15px; - font-size: 24px; - font-weight: 200 -} - -.jumbotron>hr { - border-top-color: rgb(212.925,212.925,212.925) -} - -.container .jumbotron,.container-fluid .jumbotron { - padding-right: 15px; - padding-left: 15px; - border-radius: 6px -} - -.jumbotron .container { - max-width: 100% -} - -@media screen and (min-width: 768px) { - .jumbotron { - padding-top:48px; - padding-bottom: 48px - } - - .container .jumbotron,.container-fluid .jumbotron { - padding-right: 60px; - padding-left: 60px - } - - .jumbotron .h1,.jumbotron h1 { - font-size: 72px - } -} - -.thumbnail { - display: block; - padding: 4px; - margin-bottom: 23px; - line-height: 1.4375; - background-color: #fff; - border: 1px solid #ddd; - border-radius: 4px; - -webkit-transition: border .2s ease-in-out; - transition: border .2s ease-in-out -} - -.thumbnail a>img,.thumbnail>img { - display: block; - max-width: 100%; - height: auto; - margin-right: auto; - margin-left: auto -} - -.thumbnail .caption { - padding: 9px; - color: #333 -} - -a.thumbnail.active,a.thumbnail:focus,a.thumbnail:hover { - border-color: #295376 -} - -.thumbnail { - background: #eaebed; - border-color: #eee; - border-radius: 0; - padding: 5px -} - -.thumbnail:hover img { - -webkit-box-shadow: 1px 1px 5px #999; - box-shadow: 1px 1px 5px #999 -} - -@-webkit-keyframes progress-bar-stripes { - from { - background-position: 40px 0 - } - - to { - background-position: 0 0 - } -} - -@keyframes progress-bar-stripes { - from { - background-position: 40px 0 - } - - to { - background-position: 0 0 - } -} - -.progress { - height: 23px; - margin-bottom: 23px; - overflow: hidden; - background-color: #f5f5f5; - border-radius: 4px; - -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,.1); - box-shadow: inset 0 1px 2px rgba(0,0,0,.1) -} - -.progress-bar { - float: left; - width: 0%; - height: 100%; - font-size: 14px; - line-height: 23px; - color: #fff; - text-align: center; - background-color: #2572b4; - -webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,.15); - box-shadow: inset 0 -1px 0 rgba(0,0,0,.15); - -webkit-transition: width .6s ease; - transition: width .6s ease -} - -.progress-bar-striped,.progress-striped .progress-bar { - background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent); - background-size: 40px 40px -} - -.progress-bar.active,.progress.active .progress-bar { - -webkit-animation: progress-bar-stripes 2s linear infinite; - animation: progress-bar-stripes 2s linear infinite -} - -.progress-bar-success { - background-color: #1b6c1c -} - -.progress-striped .progress-bar-success { - background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent) -} - -.progress-bar-info { - background-color: #4d4d4d -} - -.progress-striped .progress-bar-info { - background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent) -} - -.progress-bar-warning { - background-color: #f2d40d -} - -.progress-striped .progress-bar-warning { - background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent) -} - -.progress-bar-danger { - background-color: #bc3331 -} - -.progress-striped .progress-bar-danger { - background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent) -} - -.media { - margin-top: 15px -} - -.media:first-child { - margin-top: 0 -} - -.media,.media-body { - overflow: hidden; - zoom:1} - -.media-body { - width: 10000px -} - -.media-object { - display: block -} - -.media-object.img-thumbnail { - max-width: none -} - -.media-right,.media>.pull-right { - padding-left: 10px -} - -.media-left,.media>.pull-left { - padding-right: 10px -} - -.media-body,.media-left,.media-right { - display: table-cell; - vertical-align: top -} - -.media-middle { - vertical-align: middle -} - -.media-bottom { - vertical-align: bottom -} - -.media-heading { - margin-top: 0; - margin-bottom: 5px -} - -.media-list { - padding-left: 0; - list-style: none -} - -.list-group { - padding-left: 0; - margin-bottom: 20px -} - -.list-group-item { - position: relative; - display: block; - padding: 10px 15px; - margin-bottom: -1px; - background-color: #fff; - border: 1px solid #ddd -} - -.list-group-item:first-child { - border-top-left-radius: 4px; - border-top-right-radius: 4px -} - -.list-group-item:last-child { - margin-bottom: 0; - border-bottom-right-radius: 4px; - border-bottom-left-radius: 4px -} - -.list-group-item.disabled,.list-group-item.disabled:focus,.list-group-item.disabled:hover { - color: #6f6f6f; - cursor: not-allowed; - background-color: rgb(238.425,238.425,238.425) -} - -.list-group-item.disabled .list-group-item-heading,.list-group-item.disabled:focus .list-group-item-heading,.list-group-item.disabled:hover .list-group-item-heading { - color: inherit -} - -.list-group-item.disabled .list-group-item-text,.list-group-item.disabled:focus .list-group-item-text,.list-group-item.disabled:hover .list-group-item-text { - color: #6f6f6f -} - -.list-group-item.active,.list-group-item.active:focus,.list-group-item.active:hover { - z-index: 2; - color: #fff; - background-color: #2572b4; - border-color: #2572b4 -} - -.list-group-item.active .list-group-item-heading,.list-group-item.active .list-group-item-heading>.small,.list-group-item.active .list-group-item-heading>small,.list-group-item.active:focus .list-group-item-heading,.list-group-item.active:focus .list-group-item-heading>.small,.list-group-item.active:focus .list-group-item-heading>small,.list-group-item.active:hover .list-group-item-heading,.list-group-item.active:hover .list-group-item-heading>.small,.list-group-item.active:hover .list-group-item-heading>small { - color: inherit -} - -.list-group-item.active .list-group-item-text,.list-group-item.active:focus .list-group-item-text,.list-group-item.active:hover .list-group-item-text { - color: rgb(181.1751152074,212.7557603687,239.8248847926) -} - -a.list-group-item,button.list-group-item { - color: #555 -} - -a.list-group-item .list-group-item-heading,button.list-group-item .list-group-item-heading { - color: #333 -} - -a.list-group-item:focus,a.list-group-item:hover,button.list-group-item:focus,button.list-group-item:hover { - color: #555; - text-decoration: none; - background-color: #f5f5f5 -} - -button.list-group-item { - width: 100%; - text-align: left -} - -.list-group-item-success { - color: #3c763d; - background-color: #dff0d8 -} - -a.list-group-item-success,button.list-group-item-success { - color: #3c763d -} - -a.list-group-item-success .list-group-item-heading,button.list-group-item-success .list-group-item-heading { - color: inherit -} - -a.list-group-item-success:focus,a.list-group-item-success:hover,button.list-group-item-success:focus,button.list-group-item-success:hover { - color: #3c763d; - background-color: rgb(207.8888888889,232.9166666667,197.5833333333) -} - -a.list-group-item-success.active,a.list-group-item-success.active:focus,a.list-group-item-success.active:hover,button.list-group-item-success.active,button.list-group-item-success.active:focus,button.list-group-item-success.active:hover { - color: #fff; - background-color: #3c763d; - border-color: #3c763d -} - -.list-group-item-info { - color: #31708f; - background-color: #d9edf7 -} - -a.list-group-item-info,button.list-group-item-info { - color: #31708f -} - -a.list-group-item-info .list-group-item-heading,button.list-group-item-info .list-group-item-heading { - color: inherit -} - -a.list-group-item-info:focus,a.list-group-item-info:hover,button.list-group-item-info:focus,button.list-group-item-info:hover { - color: #31708f; - background-color: rgb(195.9347826087,227.0217391304,242.5652173913) -} - -a.list-group-item-info.active,a.list-group-item-info.active:focus,a.list-group-item-info.active:hover,button.list-group-item-info.active,button.list-group-item-info.active:focus,button.list-group-item-info.active:hover { - color: #fff; - background-color: #31708f; - border-color: #31708f -} - -.list-group-item-warning { - color: #8a6d3b; - background-color: #fcf8e3 -} - -a.list-group-item-warning,button.list-group-item-warning { - color: #8a6d3b -} - -a.list-group-item-warning .list-group-item-heading,button.list-group-item-warning .list-group-item-heading { - color: inherit -} - -a.list-group-item-warning:focus,a.list-group-item-warning:hover,button.list-group-item-warning:focus,button.list-group-item-warning:hover { - color: #8a6d3b; - background-color: rgb(249.5322580645,242.2419354839,203.9677419355) -} - -a.list-group-item-warning.active,a.list-group-item-warning.active:focus,a.list-group-item-warning.active:hover,button.list-group-item-warning.active,button.list-group-item-warning.active:focus,button.list-group-item-warning.active:hover { - color: #fff; - background-color: #8a6d3b; - border-color: #8a6d3b -} - -.list-group-item-danger { - color: #a94442; - background-color: #f2dede -} - -a.list-group-item-danger,button.list-group-item-danger { - color: #a94442 -} - -a.list-group-item-danger .list-group-item-heading,button.list-group-item-danger .list-group-item-heading { - color: inherit -} - -a.list-group-item-danger:focus,a.list-group-item-danger:hover,button.list-group-item-danger:focus,button.list-group-item-danger:hover { - color: #a94442; - background-color: rgb(234.7934782609,203.7065217391,203.7065217391) -} - -a.list-group-item-danger.active,a.list-group-item-danger.active:focus,a.list-group-item-danger.active:hover,button.list-group-item-danger.active,button.list-group-item-danger.active:focus,button.list-group-item-danger.active:hover { - color: #fff; - background-color: #a94442; - border-color: #a94442 -} - -.list-group-item-heading { - margin-top: 0; - margin-bottom: 5px -} - -.list-group-item-text { - margin-bottom: 0; - line-height: 1.3 -} - -.panel { - margin-bottom: 23px; - background-color: #fff; - border: 1px solid transparent; - border-radius: 4px; - -webkit-box-shadow: 0 1px 1px rgba(0,0,0,.05); - box-shadow: 0 1px 1px rgba(0,0,0,.05) -} - -.panel-body { - padding: 15px -} - -.panel-body:after,.panel-body:before { - display: table; - content: " " -} - -.panel-body:after { - clear: both -} - -.panel-heading { - padding: 10px 15px; - border-bottom: 1px solid transparent; - border-top-left-radius: 3px; - border-top-right-radius: 3px -} - -.panel-heading>.dropdown .dropdown-toggle { - color: inherit -} - -.panel-title { - margin-top: 0; - margin-bottom: 0; - font-size: 18px; - color: inherit -} - -.panel-title>.small,.panel-title>.small>a,.panel-title>a,.panel-title>small,.panel-title>small>a { - color: inherit -} - -.panel-footer { - padding: 10px 15px; - background-color: #f5f5f5; - border-top: 1px solid #8e8e8e; - border-bottom-right-radius: 3px; - border-bottom-left-radius: 3px -} - -.panel>.list-group,.panel>.panel-collapse>.list-group { - margin-bottom: 0 -} - -.panel>.list-group .list-group-item,.panel>.panel-collapse>.list-group .list-group-item { - border-width: 1px 0; - border-radius: 0 -} - -.panel>.list-group:first-child .list-group-item:first-child,.panel>.panel-collapse>.list-group:first-child .list-group-item:first-child { - border-top: 0; - border-top-left-radius: 3px; - border-top-right-radius: 3px -} - -.panel>.list-group:last-child .list-group-item:last-child,.panel>.panel-collapse>.list-group:last-child .list-group-item:last-child { - border-bottom: 0; - border-bottom-right-radius: 3px; - border-bottom-left-radius: 3px -} - -.panel>.panel-heading+.panel-collapse>.list-group .list-group-item:first-child { - border-top-left-radius: 0; - border-top-right-radius: 0 -} - -.panel-heading+.list-group .list-group-item:first-child { - border-top-width: 0 -} - -.list-group+.panel-footer { - border-top-width: 0 -} - -.panel>.panel-collapse>.table,.panel>.table,.panel>.table-responsive>.table { - margin-bottom: 0 -} - -.panel>.panel-collapse>.table caption,.panel>.table caption,.panel>.table-responsive>.table caption { - padding-right: 15px; - padding-left: 15px -} - -.panel>.table-responsive:first-child>.table:first-child,.panel>.table:first-child { - border-top-left-radius: 3px; - border-top-right-radius: 3px -} - -.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child,.panel>.table:first-child>thead:first-child>tr:first-child { - border-top-left-radius: 3px; - border-top-right-radius: 3px -} - -.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child { - border-top-left-radius: 3px -} - -.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child { - border-top-right-radius: 3px -} - -.panel>.table-responsive:last-child>.table:last-child,.panel>.table:last-child { - border-bottom-right-radius: 3px; - border-bottom-left-radius: 3px -} - -.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child { - border-bottom-right-radius: 3px; - border-bottom-left-radius: 3px -} - -.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child { - border-bottom-left-radius: 3px -} - -.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child { - border-bottom-right-radius: 3px -} - -.panel>.panel-body+.table,.panel>.panel-body+.table-responsive,.panel>.table+.panel-body,.panel>.table-responsive+.panel-body { - border-top: 1px solid #ddd -} - -.panel>.table>tbody:first-child>tr:first-child td,.panel>.table>tbody:first-child>tr:first-child th { - border-top: 0 -} - -.panel>.table-bordered,.panel>.table-responsive>.table-bordered { - border: 0 -} - -.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child { - border-left: 0 -} - -.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child { - border-right: 0 -} - -.panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th { - border-bottom: 0 -} - -.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th { - border-bottom: 0 -} - -.panel>.table-responsive { - margin-bottom: 0; - border: 0 -} - -.panel-group { - margin-bottom: 23px -} - -.panel-group .panel { - margin-bottom: 0; - border-radius: 4px -} - -.panel-group .panel+.panel { - margin-top: 5px -} - -.panel-group .panel-heading { - border-bottom: 0 -} - -.panel-group .panel-heading+.panel-collapse>.list-group,.panel-group .panel-heading+.panel-collapse>.panel-body { - border-top: 1px solid #8e8e8e -} - -.panel-group .panel-footer { - border-top: 0 -} - -.panel-group .panel-footer+.panel-collapse .panel-body { - border-bottom: 1px solid #8e8e8e -} - -.panel-default { - border-color: #8e8e8e -} - -.panel-default>.panel-heading { - color: #333; - background-color: #f5f5f5; - border-color: #8e8e8e -} - -.panel-default>.panel-heading+.panel-collapse>.panel-body { - border-top-color: #8e8e8e -} - -.panel-default>.panel-heading .badge { - color: #f5f5f5; - background-color: #333 -} - -.panel-default>.panel-footer+.panel-collapse>.panel-body { - border-bottom-color: #8e8e8e -} - -.panel-primary { - border-color: #2572b4 -} - -.panel-primary>.panel-heading { - color: #fff; - background-color: #2572b4; - border-color: #2572b4 -} - -.panel-primary>.panel-heading+.panel-collapse>.panel-body { - border-top-color: #2572b4 -} - -.panel-primary>.panel-heading .badge { - color: #2572b4; - background-color: #fff -} - -.panel-primary>.panel-footer+.panel-collapse>.panel-body { - border-bottom-color: #2572b4 -} - -.panel-success { - border-color: #629339 -} - -.panel-success>.panel-heading { - color: #3c763d; - background-color: #dff0d8; - border-color: #629339 -} - -.panel-success>.panel-heading+.panel-collapse>.panel-body { - border-top-color: #629339 -} - -.panel-success>.panel-heading .badge { - color: #dff0d8; - background-color: #3c763d -} - -.panel-success>.panel-footer+.panel-collapse>.panel-body { - border-bottom-color: #629339 -} - -.panel-info { - border-color: #2392a9 -} - -.panel-info>.panel-heading { - color: #31708f; - background-color: #d9edf7; - border-color: #2392a9 -} - -.panel-info>.panel-heading+.panel-collapse>.panel-body { - border-top-color: #2392a9 -} - -.panel-info>.panel-heading .badge { - color: #d9edf7; - background-color: #31708f -} - -.panel-info>.panel-footer+.panel-collapse>.panel-body { - border-bottom-color: #2392a9 -} - -.panel-warning { - border-color: #ba8312 -} - -.panel-warning>.panel-heading { - color: #8a6d3b; - background-color: #fcf8e3; - border-color: #ba8312 -} - -.panel-warning>.panel-heading+.panel-collapse>.panel-body { - border-top-color: #ba8312 -} - -.panel-warning>.panel-heading .badge { - color: #fcf8e3; - background-color: #8a6d3b -} - -.panel-warning>.panel-footer+.panel-collapse>.panel-body { - border-bottom-color: #ba8312 -} - -.panel-danger { - border-color: #c16171 -} - -.panel-danger>.panel-heading { - color: #a94442; - background-color: #f2dede; - border-color: #c16171 -} - -.panel-danger>.panel-heading+.panel-collapse>.panel-body { - border-top-color: #c16171 -} - -.panel-danger>.panel-heading .badge { - color: #f2dede; - background-color: #a94442 -} - -.panel-danger>.panel-footer+.panel-collapse>.panel-body { - border-bottom-color: #c16171 -} - -.embed-responsive { - position: relative; - display: block; - height: 0; - padding: 0; - overflow: hidden -} - -.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video { - position: absolute; - top: 0; - bottom: 0; - left: 0; - width: 100%; - height: 100%; - border: 0 -} - -.embed-responsive-16by9 { - padding-bottom: 56.25% -} - -.embed-responsive-4by3 { - padding-bottom: 75% -} - -.well,a.gc-dwnld { - min-height: 20px; - padding: 19px; - margin-bottom: 20px; - background-color: #f5f5f5; - border: 1px solid rgb(227.15,227.15,227.15); - border-radius: 4px; - -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.05); - box-shadow: inset 0 1px 1px rgba(0,0,0,.05) -} - -.well blockquote,a.gc-dwnld blockquote { - border-color: #ddd; - border-color: rgba(0,0,0,.15) -} - -.well-lg { - padding: 24px; - border-radius: 6px -} - -.well-sm { - padding: 9px; - border-radius: 3px -} - -.close { - float: right; - font-size: 24px; - font-weight: 700; - line-height: 1; - color: #000; - text-shadow: 0 1px 0 #fff; - opacity: .2 -} - -.close:focus,.close:hover { - color: #000; - text-decoration: none; - cursor: pointer; - opacity: .5 -} - -button.close { - padding: 0; - cursor: pointer; - background: 0 0; - border: 0; - -webkit-appearance: none; - -moz-appearance: none; - appearance: none -} - -/*! Placeholders */ -.dataTables_wrapper .dataTables_paginate .paginate_button.next:after,.dataTables_wrapper .dataTables_paginate .paginate_button.previous:before,.pager>li:first-child [rel=prev]:before,.pager>li:last-child [rel=next]:after,.pagination>li:first-child [rel=prev]:before,.pagination>li:last-child [rel=next]:after,[dir=rtl] .dataTables_wrapper .dataTables_paginate .paginate_button.next:before,[dir=rtl] .dataTables_wrapper .dataTables_paginate .paginate_button.previous:after,[dir=rtl] .pager [rel=next]:before,[dir=rtl] .pager [rel=prev]:after,[dir=rtl] .pagination [rel=next]:before,[dir=rtl] .pagination [rel=prev]:after,table.dataTable thead .sorting-icons:after,table.dataTable thead .sorting-icons:before { - content: " "; - font-family: "Glyphicons Halflings"; - font-weight: 400; - line-height: 1em; - position: relative; - top: .1em -} - -.dataTables_wrapper .dataTables_paginate .paginate_button.previous:before,.pager>li:first-child [rel=prev]:before,.pagination>li:first-child [rel=prev]:before,[dir=rtl] .dataTables_wrapper .dataTables_paginate .paginate_button.next:before,[dir=rtl] .pager [rel=next]:before,[dir=rtl] .pagination [rel=next]:before { - content: "\e091"; - margin-right: .5em -} - -.dataTables_wrapper .dataTables_paginate .paginate_button.next:after,.pager>li:last-child [rel=next]:after,.pagination>li:last-child [rel=next]:after,[dir=rtl] .dataTables_wrapper .dataTables_paginate .paginate_button.previous:after,[dir=rtl] .pager [rel=prev]:after,[dir=rtl] .pagination [rel=prev]:after { - content: "\e092"; - margin-left: .5em -} - -.btn-group-xs .btn,.btn.btn-xs { - min-height: 0 -} - -.dropdown-menu>li>a:visited { - color: #333 -} - -.nav>li>a:visited { - color: #295376 -} - -.nav-pills>li.active>a:visited { - color: #fff -} - -.navbar-default .navbar-nav>li>a:visited { - color: #777 -} - -@media (max-width: 767px) { - .navbar-default .open .dropdown-menu>li>a { - color:#777 - } -} - -.navbar-default .navbar-link:visited { - color: #777 -} - -.navbar-inverse .navbar-nav>li>a:visited { - color: rgb(149.25,149.25,149.25) -} - -@media (max-width: 767px) { - .navbar-inverse .open .dropdown-menu>li>a:visited { - color:rgb(149.25,149.25,149.25) - } -} - -.navbar-inverse .navbar-link:visited { - color: rgb(149.25,149.25,149.25) -} - -.pager>li>a,.pagination>li>a { - cursor: pointer; - display: inline-block; - margin-bottom: .5em; - padding: 10px 16px -} - -.pager>li.active>a,.pagination>li.active>a { - cursor: default -} - -.pager>li.disabled+li>a,.pagination>li.disabled+li>a { - border-top-left-radius: 4px; - border-bottom-left-radius: 4px -} - -.pager>li>a { - text-decoration: none -} - -.pager>li>a:focus,.pager>li>a:hover,.pager>li>span:focus,.pager>li>span:hover { - border-color: rgb(187.3153846154,190.5384615385,196.9846153846); - color: #335075 -} - -.pagination>.active { - color: #fff -} - -[dir=rtl] .pager [rel=prev],[dir=rtl] .pagination [rel=prev] { - border-top-left-radius: 0; - border-bottom-left-radius: 0; - border-top-right-radius: 4px; - border-bottom-right-radius: 4px -} - -[dir=rtl] .pager [rel=next],[dir=rtl] .pagination [rel=next] { - border-top-left-radius: 4px; - border-bottom-left-radius: 4px; - border-top-right-radius: 0; - border-bottom-right-radius: 0 -} - -[dir=rtl] .pager>li,[dir=rtl] .pagination>li { - float: right -} - -[dir=rtl] .pager>li.disabled+li>a,[dir=rtl] .pagination>li.disabled+li>a { - border-top-left-radius: 0; - border-bottom-left-radius: 0; - border-top-right-radius: 4px; - border-bottom-right-radius: 4px -} - -.wb-elps { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap -} - -.modal-open { - overflow: hidden -} - -.modal { - position: fixed; - top: 0; - right: 0; - bottom: 0; - left: 0; - z-index: 1050; - display: none; - overflow: hidden; - -webkit-overflow-scrolling: touch; - outline: 0 -} - -.modal.fade .modal-dialog { - -webkit-transform: translate(0,-25%); - transform: translate(0,-25%); - -webkit-transition: -webkit-transform .3s ease-out; - transition: -webkit-transform .3s ease-out; - transition: transform .3s ease-out; - transition: transform .3s ease-out,-webkit-transform .3s ease-out -} - -.modal.in .modal-dialog { - -webkit-transform: translate(0,0); - transform: translate(0,0) -} - -.modal-open .modal { - overflow-x: hidden; - overflow-y: auto -} - -.modal-dialog { - position: relative; - width: auto; - margin: 10px -} - -.modal-content { - position: relative; - background-color: #fff; - background-clip: padding-box; - border: 1px solid #999; - border: 1px solid rgba(0,0,0,.2); - border-radius: 6px; - -webkit-box-shadow: 0 3px 9px rgba(0,0,0,.5); - box-shadow: 0 3px 9px rgba(0,0,0,.5); - outline: 0 -} - -.modal-backdrop { - position: fixed; - top: 0; - right: 0; - bottom: 0; - left: 0; - z-index: 1040; - background-color: #000 -} - -.modal-backdrop.fade { - opacity: 0 -} - -.modal-backdrop.in { - opacity: .5 -} - -.modal-header { - padding: 15px; - border-bottom: 1px solid #e5e5e5 -} - -.modal-header:after,.modal-header:before { - display: table; - content: " " -} - -.modal-header:after { - clear: both -} - -.modal-header .close { - margin-top: -2px -} - -.modal-title { - margin: 0; - line-height: 1.4375 -} - -.modal-body { - position: relative; - padding: 15px -} - -.modal-footer { - padding: 15px; - text-align: right; - border-top: 1px solid #e5e5e5 -} - -.modal-footer:after,.modal-footer:before { - display: table; - content: " " -} - -.modal-footer:after { - clear: both -} - -.modal-footer .btn+.btn { - margin-bottom: 0; - margin-left: 5px -} - -.modal-footer .btn-group .btn+.btn { - margin-left: -1px -} - -.modal-footer .btn-block+.btn-block { - margin-left: 0 -} - -.modal-scrollbar-measure { - position: absolute; - top: -9999px; - width: 50px; - height: 50px; - overflow: scroll -} - -@media (min-width: 768px) { - .modal-dialog { - width:600px; - margin: 30px auto - } - - .modal-content { - -webkit-box-shadow: 0 5px 15px rgba(0,0,0,.5); - box-shadow: 0 5px 15px rgba(0,0,0,.5) - } - - .modal-sm { - width: 300px - } -} - -@media (min-width: 992px) { - .modal-lg { - width:900px - } -} - -.tooltip { - position: absolute; - z-index: 1070; - display: block; - font-family: "Noto Sans","Noto Sans Canadian Aboriginal",sans-serif; - font-style: normal; - font-weight: 400; - line-height: 1.4375; - line-break: auto; - text-align: left; - text-align: start; - text-decoration: none; - text-shadow: none; - text-transform: none; - letter-spacing: normal; - word-break: normal; - word-spacing: normal; - word-wrap: normal; - white-space: normal; - font-size: 14px; - opacity: 0 -} - -.tooltip.in { - opacity: .9 -} - -.tooltip.top { - padding: 5px 0; - margin-top: -3px -} - -.tooltip.right { - padding: 0 5px; - margin-left: 3px -} - -.tooltip.bottom { - padding: 5px 0; - margin-top: 3px -} - -.tooltip.left { - padding: 0 5px; - margin-left: -3px -} - -.tooltip.top .tooltip-arrow { - bottom: 0; - left: 50%; - margin-left: -5px; - border-width: 5px 5px 0; - border-top-color: #000 -} - -.tooltip.top-left .tooltip-arrow { - right: 5px; - bottom: 0; - margin-bottom: -5px; - border-width: 5px 5px 0; - border-top-color: #000 -} - -.tooltip.top-right .tooltip-arrow { - bottom: 0; - left: 5px; - margin-bottom: -5px; - border-width: 5px 5px 0; - border-top-color: #000 -} - -.tooltip.right .tooltip-arrow { - top: 50%; - left: 0; - margin-top: -5px; - border-width: 5px 5px 5px 0; - border-right-color: #000 -} - -.tooltip.left .tooltip-arrow { - top: 50%; - right: 0; - margin-top: -5px; - border-width: 5px 0 5px 5px; - border-left-color: #000 -} - -.tooltip.bottom .tooltip-arrow { - top: 0; - left: 50%; - margin-left: -5px; - border-width: 0 5px 5px; - border-bottom-color: #000 -} - -.tooltip.bottom-left .tooltip-arrow { - top: 0; - right: 5px; - margin-top: -5px; - border-width: 0 5px 5px; - border-bottom-color: #000 -} - -.tooltip.bottom-right .tooltip-arrow { - top: 0; - left: 5px; - margin-top: -5px; - border-width: 0 5px 5px; - border-bottom-color: #000 -} - -.tooltip-inner { - max-width: 200px; - padding: 3px 8px; - color: #fff; - text-align: center; - background-color: #000; - border-radius: 4px -} - -.tooltip-arrow { - position: absolute; - width: 0; - height: 0; - border-color: transparent; - border-style: solid -} - -.popover { - position: absolute; - top: 0; - left: 0; - z-index: 1060; - display: none; - max-width: 276px; - padding: 1px; - font-family: "Noto Sans","Noto Sans Canadian Aboriginal",sans-serif; - font-style: normal; - font-weight: 400; - line-height: 1.4375; - line-break: auto; - text-align: left; - text-align: start; - text-decoration: none; - text-shadow: none; - text-transform: none; - letter-spacing: normal; - word-break: normal; - word-spacing: normal; - word-wrap: normal; - white-space: normal; - font-size: 16px; - background-color: #fff; - background-clip: padding-box; - border: 1px solid #ccc; - border: 1px solid rgba(0,0,0,.2); - border-radius: 6px; - -webkit-box-shadow: 0 5px 10px rgba(0,0,0,.2); - box-shadow: 0 5px 10px rgba(0,0,0,.2) -} - -.popover.top { - margin-top: -10px -} - -.popover.right { - margin-left: 10px -} - -.popover.bottom { - margin-top: 10px -} - -.popover.left { - margin-left: -10px -} - -.popover>.arrow { - border-width: 11px -} - -.popover>.arrow,.popover>.arrow:after { - position: absolute; - display: block; - width: 0; - height: 0; - border-color: transparent; - border-style: solid -} - -.popover>.arrow:after { - content: ""; - border-width: 10px -} - -.popover.top>.arrow { - bottom: -11px; - left: 50%; - margin-left: -11px; - border-top-color: #999; - border-top-color: rgba(0,0,0,.25); - border-bottom-width: 0 -} - -.popover.top>.arrow:after { - bottom: 1px; - margin-left: -10px; - content: " "; - border-top-color: #fff; - border-bottom-width: 0 -} - -.popover.right>.arrow { - top: 50%; - left: -11px; - margin-top: -11px; - border-right-color: #999; - border-right-color: rgba(0,0,0,.25); - border-left-width: 0 -} - -.popover.right>.arrow:after { - bottom: -10px; - left: 1px; - content: " "; - border-right-color: #fff; - border-left-width: 0 -} - -.popover.bottom>.arrow { - top: -11px; - left: 50%; - margin-left: -11px; - border-top-width: 0; - border-bottom-color: #999; - border-bottom-color: rgba(0,0,0,.25) -} - -.popover.bottom>.arrow:after { - top: 1px; - margin-left: -10px; - content: " "; - border-top-width: 0; - border-bottom-color: #fff -} - -.popover.left>.arrow { - top: 50%; - right: -11px; - margin-top: -11px; - border-right-width: 0; - border-left-color: #999; - border-left-color: rgba(0,0,0,.25) -} - -.popover.left>.arrow:after { - right: 1px; - bottom: -10px; - content: " "; - border-right-width: 0; - border-left-color: #fff -} - -.popover-title { - padding: 8px 14px; - margin: 0; - font-size: 16px; - background-color: rgb(247.35,247.35,247.35); - border-bottom: 1px solid rgb(234.6,234.6,234.6); - border-radius: 5px 5px 0 0 -} - -.popover-content { - padding: 9px 14px -} - -.carousel { - position: relative -} - -.carousel-inner { - position: relative; - width: 100%; - overflow: hidden -} - -.carousel-inner>.item { - position: relative; - display: none; - -webkit-transition: .6s ease-in-out left; - transition: .6s ease-in-out left -} - -.carousel-inner>.item>a>img,.carousel-inner>.item>img { - display: block; - max-width: 100%; - height: auto; - line-height: 1 -} - -@media all and (transform-3d),(-webkit-transform-3d) { - .carousel-inner>.item { - -webkit-transition: -webkit-transform .6s ease-in-out; - transition: -webkit-transform .6s ease-in-out; - transition: transform .6s ease-in-out; - transition: transform .6s ease-in-out,-webkit-transform .6s ease-in-out; - -webkit-backface-visibility: hidden; - backface-visibility: hidden; - -webkit-perspective: 1000px; - perspective: 1000px - } - - .carousel-inner>.item.active.right,.carousel-inner>.item.next { - -webkit-transform: translate3d(100%,0,0); - transform: translate3d(100%,0,0); - left: 0 - } - - .carousel-inner>.item.active.left,.carousel-inner>.item.prev { - -webkit-transform: translate3d(-100%,0,0); - transform: translate3d(-100%,0,0); - left: 0 - } - - .carousel-inner>.item.active,.carousel-inner>.item.next.left,.carousel-inner>.item.prev.right { - -webkit-transform: translate3d(0,0,0); - transform: translate3d(0,0,0); - left: 0 - } -} - -.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev { - display: block -} - -.carousel-inner>.active { - left: 0 -} - -.carousel-inner>.next,.carousel-inner>.prev { - position: absolute; - top: 0; - width: 100% -} - -.carousel-inner>.next { - left: 100% -} - -.carousel-inner>.prev { - left: -100% -} - -.carousel-inner>.next.left,.carousel-inner>.prev.right { - left: 0 -} - -.carousel-inner>.active.left { - left: -100% -} - -.carousel-inner>.active.right { - left: 100% -} - -.carousel-control { - position: absolute; - top: 0; - bottom: 0; - left: 0; - width: 15%; - font-size: 20px; - color: #fff; - text-align: center; - text-shadow: 0 1px 2px rgba(0,0,0,.6); - background-color: rgba(0,0,0,0); - opacity: .5 -} - -.carousel-control.left { - background-image: -webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,.0001))); - background-image: linear-gradient(to right,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%); - background-repeat: repeat-x -} - -.carousel-control.right { - right: 0; - left: auto; - background-image: -webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.0001)),to(rgba(0,0,0,.5))); - background-image: linear-gradient(to right,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%); - background-repeat: repeat-x -} - -.carousel-control:focus,.carousel-control:hover { - color: #fff; - text-decoration: none; - outline: 0; - opacity: .9 -} - -.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev { - position: absolute; - top: 50%; - z-index: 5; - display: inline-block; - margin-top: -10px -} - -.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev { - left: 50%; - margin-left: -10px -} - -.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next { - right: 50%; - margin-right: -10px -} - -.carousel-control .icon-next,.carousel-control .icon-prev { - width: 20px; - height: 20px; - font-family: serif; - line-height: 1 -} - -.carousel-control .icon-prev:before { - content: "‹" -} - -.carousel-control .icon-next:before { - content: "›" -} - -.carousel-indicators { - position: absolute; - bottom: 10px; - left: 50%; - z-index: 15; - width: 60%; - padding-left: 0; - margin-left: -30%; - text-align: center; - list-style: none -} - -.carousel-indicators li { - display: inline-block; - width: 10px; - height: 10px; - margin: 1px; - text-indent: -999px; - cursor: pointer; - background-color: rgba(0,0,0,0); - border: 1px solid #fff; - border-radius: 10px -} - -.carousel-indicators .active { - width: 12px; - height: 12px; - margin: 0; - background-color: #fff -} - -.carousel-caption { - position: absolute; - right: 15%; - bottom: 20px; - left: 15%; - z-index: 10; - padding-top: 20px; - padding-bottom: 20px; - color: #fff; - text-align: center; - text-shadow: 0 1px 2px rgba(0,0,0,.6) -} - -.carousel-caption .btn { - text-shadow: none -} - -@media screen and (min-width: 768px) { - .carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev { - width:30px; - height: 30px; - margin-top: -10px; - font-size: 30px - } - - .carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev { - margin-left: -10px - } - - .carousel-control .glyphicon-chevron-right,.carousel-control .icon-next { - margin-right: -10px - } - - .carousel-caption { - right: 20%; - left: 20%; - padding-bottom: 30px - } - - .carousel-indicators { - bottom: 20px - } -} - -.wb-calevt-cal .cal-days td ul.ev-details,.wb-calevt-cal .cal-days td:hover ul { - background-color: #fff; - border: 1px solid #333; - clip-path: none; - color: #000; - height: inherit; - list-style-type: none; - margin: 0; - margin-top: -.5em; - overflow: inherit; - padding: 0; - position: absolute; - width: 10em; - z-index: 5 -} - -.wb-calevt-cal .cal-days td ul.ev-details a:focus,.wb-calevt-cal .cal-days td ul.ev-details a:hover,.wb-calevt-cal .cal-days td:hover ul a:focus,.wb-calevt-cal .cal-days td:hover ul a:hover { - color: #fff -} - -.wb-calevt-cal { - width: 19em -} - -.wb-calevt-cal .cal-days .cal-evt { - background: #176ca7; - color: #fff -} - -.wb-calevt-cal .cal-evt-lnk { - display: block; - padding: .5em -} - -.wb-calevt-cal.cal-cnt-fluid { - width: 100% -} - -.wb-clndr td>a { - display: block; - height: 100%; - width: 100% -} - -.wb-clndr td div,.wb-clndr td>a,.wb-clndr td>time,.wb-clndr th abbr { - color: #000; - padding: 20% 0; - text-align: center -} - -.wb-clndr .cal-curr-day,.wb-clndr .cal-curr-day a,.wb-clndr .cal-curr-day div { - color: #000 -} - -.wb-clndr { - background: #fff; - position: relative; - width: 100% -} - -.wb-clndr .cal-nav { - background: #333; - padding: .5em; - text-align: center -} - -.wb-clndr .form-group { - margin: 0; - padding: 10px 14px -} - -.wb-clndr .btn { - background: 0 0; - color: #fff -} - -.wb-clndr .btn[disabled] { - color: #ccc -} - -.wb-clndr option[disabled] { - color: #aaa -} - -.wb-clndr table { - width: 100% -} - -.wb-clndr th { - background: #555; - border: 1px solid #333 -} - -.wb-clndr th abbr { - color: #fff; - display: block -} - -.wb-clndr td { - background: #fff; - border: 1px solid #aaa; - padding: 0; - text-align: center -} - -.wb-clndr td>time { - display: block -} - -.wb-clndr td a:focus,.wb-clndr td a:hover { - background: #333; - color: #fff -} - -.wb-clndr .cal-curr-day { - background: #ccc; - font-weight: bolder -} - -figure .pieLabel { - background-color: #fff; - border: solid #000 1px; - color: #000; - padding: 1px -} - -details.alert,details.alert[open] { - border-radius: 0; - border-width: 0 0 0 4px; - padding-left: 45px; - padding-right: 0; - position: relative -} - -details.alert:before,details.alert[open]:before { - display: inline-block; - font-family: "Glyphicons Halflings"; - font-size: 24px; - margin-left: -1.3em; - margin-top: -3px; - position: absolute; - top: 15px -} - -details.alert summary,details.alert[open] summary { - border-width: 0; - margin-right: 15px; - padding-left: 21px -} - -details.alert summary:focus,details.alert summary:hover,details.alert[open] summary:focus,details.alert[open] summary:hover { - text-decoration: none -} - -details.alert summary:focus h2,details.alert summary:focus h3,details.alert summary:focus h4,details.alert summary:focus h5,details.alert summary:focus h6,details.alert summary:hover h2,details.alert summary:hover h3,details.alert summary:hover h4,details.alert summary:hover h5,details.alert summary:hover h6,details.alert[open] summary:focus h2,details.alert[open] summary:focus h3,details.alert[open] summary:focus h4,details.alert[open] summary:focus h5,details.alert[open] summary:focus h6,details.alert[open] summary:hover h2,details.alert[open] summary:hover h3,details.alert[open] summary:hover h4,details.alert[open] summary:hover h5,details.alert[open] summary:hover h6 { - text-decoration: underline -} - -details.alert>*,details.alert[open]>* { - margin-left: .7em -} - -details.alert>:first-child,details.alert[open]>:first-child { - margin-left: .2em -} - -details.alert>:first-child:before,details.alert[open]>:first-child:before { - color: #000; - content: "" -} - -details.alert.alert-success:before,details.alert[open].alert-success:before { - color: #278400; - content: "\e084" -} - -details.alert.alert-info:before,details.alert[open].alert-info:before { - color: #269abc; - content: "\e086" -} - -details.alert.alert-warning:before,details.alert[open].alert-warning:before { - color: #f90; - content: "\e107" -} - -details.alert.alert-danger:before,details.alert[open].alert-danger:before { - color: #d3080c; - content: "\e101" -} - -.wb-enable.no-details details.alert>summary { - margin-left: 1.2em -} - -.wb-enable.no-details details.alert>summary:before { - content: "► " -} - -.wb-enable.no-details details.alert[open]>summary:before { - content: "▼ " -} - -.wb-enable.no-details[dir=rtl] details.alert>summary { - margin-right: 1.2em -} - -.wb-dismissable-container { - background-color: #eee; - display: table; - margin: 10px 0; - padding: 10px; - width: 100% -} - -.wb-dismissable-container .mfp-close { - color: #555; - display: table-cell; - position: static -} - -.wb-dismissable-wrapper { - display: table-cell; - width: 100% -} - -.wb-eqht-grd { - -webkit-box-align: stretch; - -ms-flex-align: stretch; - align-items: stretch; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - height: 100% -} - -.wb-eqht-grd>[class*=col-] { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: vertical; - -webkit-box-direction: normal; - -ms-flex-direction: column; - flex-direction: column -} - -.wb-eqht-grd>[class*=col-] .hght-inhrt,.wb-eqht-grd>[class*=col-]>section { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-flex: 1; - -ms-flex: 1 1 auto; - flex: 1 1 auto; - -webkit-box-orient: vertical; - -webkit-box-direction: normal; - -ms-flex-direction: column; - flex-direction: column -} - -.wb-eqht-grd.grow>[class*=col-] { - -webkit-box-flex: 1; - -ms-flex-positive: 1; - flex-grow: 1 -} - -.hght-inhrt { - min-height: inherit -} - -.sect-lnks { - display: inline-block; - width: 100% -} - -.sect-lnks h2 a,.sect-lnks h3 a,.sect-lnks h4 a { - font-size: 20px -} - -.wb-fltr-out { - display: none!important -} - -.wb-filter .input-group { - max-width: 100% -} - -.fn-lnk:focus,.fn-lnk:hover,.wb-fnote .fn-rtn a:focus,.wb-fnote .fn-rtn a:hover,.wb-fnote dd:focus .fn-rtn a { - background-color: #555; - border-color: #555; - color: #fff!important -} - -.fn-lnk,.wb-fnote .fn-rtn a { - background-color: #eee; - border: 1px solid #ccc; - display: inline-block; - padding: 1px 10px 2px; - white-space: nowrap -} - -.wb-fnote dd>ol:first-child,.wb-fnote dd>ul:first-child,.wb-fnote h2,.wb-fnote table:first-child { - margin-top: .375em -} - -.fn-lnk { - line-height: 1.15; - margin-left: 5px -} - -.wb-fnote { - border-color: #ccc; - border-style: solid; - border-width: 1px 0; - margin: 2em 0 0 -} - -.wb-fnote h2 { - margin-left: 0; - margin-right: 0 -} - -.wb-fnote dl { - margin: 0 -} - -.wb-fnote dd { - border: 1px solid transparent; - margin: .375em 0; - position: relative -} - -.wb-fnote dd:focus { - background-color: #eee; - border-color: #555 -} - -.wb-fnote dd>ol,.wb-fnote dd>ul { - margin: 0 .375em .375em 4.25em -} - -.wb-fnote p { - margin: 0 0 0 3.875em; - padding: 0 .375em .375em -} - -.wb-fnote p:first-child { - margin-top: .11em; - padding-top: .375em -} - -.wb-fnote ol,.wb-fnote ul { - margin-bottom: .375em -} - -.wb-fnote table { - margin: 0 .375em .375em 4.25em -} - -.wb-fnote .fn-rtn { - margin: 0; - overflow: hidden; - padding-right: 0; - padding-top: .375em; - position: absolute; - top: 0; - width: 3.5em -} - -.wb-fnote .fn-rtn a { - display: inline-block; - margin-top: 0; - padding-bottom: 0 -} - -[dir=rtl] sup .fn-lnk { - margin-left: 0; - margin-right: 5px -} - -[dir=rtl] .wb-fnote p { - margin: 0 3.875em 0 0 -} - -[dir=rtl] .wb-fnote .fn-rtn { - margin-right: 0; - padding-right: 0 -} - -.wb-frm label strong.error,.wb-frm legend .error,.wb-frmvld label strong.error,.wb-frmvld legend .error { - display: inline-block; - width: 100% -} - -.wb-frm label strong.error .label,.wb-frm legend .error .label,.wb-frmvld label strong.error .label,.wb-frmvld legend .error .label { - font-size: 100%; - white-space: normal -} - -.wb-server-error { - display: block!important; - font-size: 100%!important; - text-align: left!important; - white-space: normal!important -} - -.css-implicite-input { - font-weight: 400; - margin-top: 5px -} - -.mfp-bg { - top: 0; - left: 0; - width: 100%; - height: 100%; - z-index: 1042; - overflow: hidden; - position: fixed; - background: #0b0b0b; - opacity: .8 -} - -.mfp-wrap { - top: 0; - left: 0; - width: 100%; - height: 100%; - z-index: 1043; - position: fixed; - outline: 0!important; - -webkit-backface-visibility: hidden -} - -.mfp-container { - text-align: center; - position: absolute; - width: 100%; - height: 100%; - left: 0; - top: 0; - padding: 0 8px; - -webkit-box-sizing: border-box; - box-sizing: border-box -} - -.mfp-container:before { - content: ""; - display: inline-block; - height: 100%; - vertical-align: middle -} - -.mfp-align-top .mfp-container:before { - display: none -} - -.mfp-content { - position: relative; - display: inline-block; - vertical-align: middle; - margin: 0 auto; - text-align: left; - z-index: 1045 -} - -.mfp-ajax-holder .mfp-content,.mfp-inline-holder .mfp-content { - width: 100%; - cursor: auto -} - -.mfp-ajax-cur { - cursor: progress -} - -.mfp-zoom-out-cur,.mfp-zoom-out-cur .mfp-image-holder .mfp-close { - cursor: -webkit-zoom-out; - cursor: zoom-out -} - -.mfp-zoom { - cursor: pointer; - cursor: -webkit-zoom-in; - cursor: zoom-in -} - -.mfp-auto-cursor .mfp-content { - cursor: auto -} - -.mfp-arrow,.mfp-close,.mfp-counter,.mfp-preloader { - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none -} - -.mfp-loading.mfp-figure { - display: none -} - -.mfp-hide { - display: none!important -} - -.mfp-preloader { - color: #ccc; - position: absolute; - top: 50%; - width: auto; - text-align: center; - margin-top: -.8em; - left: 8px; - right: 8px; - z-index: 1044 -} - -.mfp-preloader a { - color: #ccc -} - -.mfp-preloader a:hover { - color: #fff -} - -.mfp-s-ready .mfp-preloader { - display: none -} - -.mfp-s-error .mfp-content { - display: none -} - -button.mfp-arrow,button.mfp-close { - overflow: visible; - cursor: pointer; - background: 0 0; - border: 0; - -webkit-appearance: none; - display: block; - outline: 0; - padding: 0; - z-index: 1046; - -webkit-box-shadow: none; - box-shadow: none; - -ms-touch-action: manipulation; - touch-action: manipulation -} - -button::-moz-focus-inner { - padding: 0; - border: 0 -} - -.mfp-close { - width: 44px; - height: 44px; - line-height: 44px; - position: absolute; - right: 0; - top: 0; - text-decoration: none; - text-align: center; - opacity: .65; - padding: 0 0 18px 10px; - color: #fff; - font-style: normal; - font-size: 28px; - font-family: Arial,Baskerville,monospace -} - -.mfp-close:focus,.mfp-close:hover { - opacity: 1 -} - -.mfp-close:active { - top: 1px -} - -.mfp-close-btn-in .mfp-close { - color: #333 -} - -.mfp-iframe-holder .mfp-close,.mfp-image-holder .mfp-close { - color: #fff; - right: -6px; - text-align: right; - padding-right: 6px; - width: 100% -} - -.mfp-counter { - position: absolute; - top: 0; - right: 0; - color: #ccc; - font-size: 12px; - line-height: 18px; - white-space: nowrap -} - -.mfp-arrow { - position: absolute; - opacity: .65; - margin: 0; - top: 50%; - margin-top: -55px; - padding: 0; - width: 90px; - height: 110px; - -webkit-tap-highlight-color: transparent -} - -.mfp-arrow:active { - margin-top: -54px -} - -.mfp-arrow:focus,.mfp-arrow:hover { - opacity: 1 -} - -.mfp-arrow:after,.mfp-arrow:before { - content: ""; - display: block; - width: 0; - height: 0; - position: absolute; - left: 0; - top: 0; - margin-top: 35px; - margin-left: 35px; - border: medium inset transparent -} - -.mfp-arrow:after { - border-top-width: 13px; - border-bottom-width: 13px; - top: 8px -} - -.mfp-arrow:before { - border-top-width: 21px; - border-bottom-width: 21px; - opacity: .7 -} - -.mfp-arrow-left { - left: 0 -} - -.mfp-arrow-left:after { - border-right: 17px solid #fff; - margin-left: 31px -} - -.mfp-arrow-left:before { - margin-left: 25px; - border-right: 27px solid #3f3f3f -} - -.mfp-arrow-right { - right: 0 -} - -.mfp-arrow-right:after { - border-left: 17px solid #fff; - margin-left: 39px -} - -.mfp-arrow-right:before { - border-left: 27px solid #3f3f3f -} - -.mfp-iframe-holder { - padding-top: 40px; - padding-bottom: 40px -} - -.mfp-iframe-holder .mfp-content { - line-height: 0; - width: 100%; - max-width: 900px -} - -.mfp-iframe-holder .mfp-close { - top: -40px -} - -.mfp-iframe-scaler { - width: 100%; - height: 0; - overflow: hidden; - padding-top: 56.25% -} - -.mfp-iframe-scaler iframe { - position: absolute; - display: block; - top: 0; - left: 0; - width: 100%; - height: 100%; - -webkit-box-shadow: 0 0 8px rgba(0,0,0,.6); - box-shadow: 0 0 8px rgba(0,0,0,.6); - background: #000 -} - -img.mfp-img { - width: auto; - max-width: 100%; - height: auto; - display: block; - line-height: 0; - -webkit-box-sizing: border-box; - box-sizing: border-box; - padding: 40px 0 40px; - margin: 0 auto -} - -.mfp-figure { - line-height: 0 -} - -.mfp-figure:after { - content: ""; - position: absolute; - left: 0; - top: 40px; - bottom: 40px; - display: block; - right: 0; - width: auto; - height: auto; - z-index: -1; - -webkit-box-shadow: 0 0 8px rgba(0,0,0,.6); - box-shadow: 0 0 8px rgba(0,0,0,.6); - background: #444 -} - -.mfp-figure small { - color: #bdbdbd; - display: block; - font-size: 12px; - line-height: 14px -} - -.mfp-figure figure { - margin: 0 -} - -.mfp-bottom-bar { - margin-top: -36px; - position: absolute; - top: 100%; - left: 0; - width: 100%; - cursor: auto -} - -.mfp-title { - text-align: left; - line-height: 18px; - color: #f3f3f3; - word-wrap: break-word; - padding-right: 36px -} - -.mfp-image-holder .mfp-content { - max-width: 100% -} - -.mfp-gallery .mfp-image-holder .mfp-figure { - cursor: pointer -} - -@media screen and (max-width: 800px) and (orientation:landscape),screen and (max-height:300px) { - .mfp-img-mobile .mfp-image-holder { - padding-left:0; - padding-right: 0 - } - - .mfp-img-mobile img.mfp-img { - padding: 0 - } - - .mfp-img-mobile .mfp-figure:after { - top: 0; - bottom: 0 - } - - .mfp-img-mobile .mfp-figure small { - display: inline; - margin-left: 5px - } - - .mfp-img-mobile .mfp-bottom-bar { - background: rgba(0,0,0,.6); - bottom: 0; - margin: 0; - top: auto; - padding: 3px 5px; - position: fixed; - -webkit-box-sizing: border-box; - box-sizing: border-box - } - - .mfp-img-mobile .mfp-bottom-bar:empty { - padding: 0 - } - - .mfp-img-mobile .mfp-counter { - right: 5px; - top: 3px - } - - .mfp-img-mobile .mfp-close { - top: 0; - right: 0; - width: 35px; - height: 35px; - line-height: 35px; - background: rgba(0,0,0,.6); - position: fixed; - text-align: center; - padding: 0 - } -} - -@media all and (max-width: 900px) { - .mfp-arrow { - -webkit-transform:scale(.75); - transform: scale(.75) - } - - .mfp-arrow-left { - -webkit-transform-origin: 0; - transform-origin: 0 - } - - .mfp-arrow-right { - -webkit-transform-origin: 100%; - transform-origin: 100% - } - - .mfp-container { - padding-left: 6px; - padding-right: 6px - } -} - -.mfp-arrow:focus,.mfp-close:focus { - outline: 1px dotted #fff; - outline-offset: -2px -} - -body.wb-modal summary,body.wb-modal>#wb-tphp,body.wb-modal>footer,body.wb-modal>header,body.wb-modal>main { - visibility: hidden!important -} - -.lbx-hide-gal li { - display: none; - list-style-type: none -} - -.lbx-hide-gal li:first-child { - display: block -} - -body.wb-modal .modal-dialog summary { - visibility: visible!important -} - -.modal-dialog { - left: auto; - padding: 0; - position: relative -} - -.modal-content { - background: 0 0 -} - -.modal-body { - background: #fff -} - -.modal-footer { - background: #fff; - margin-top: 0 -} - -.mfp-gallery .modal-body { - padding: 20px 30px -} - -.mfp-close { - cursor: pointer!important; - font-weight: 700 -} - -.mfp-arrow { - opacity: 1 -} - -.mfp-arrow-left .mfp-b,.mfp-arrow-left:before { - border-right: 27px solid #000 -} - -.mfp-arrow-right .mfp-b,.mfp-arrow-right:before { - border-left: 27px solid #000 -} - -.mfp-bottom-bar .mfp-title { - padding-right: 5px; - width: 75% -} - -.mfp-bottom-bar .mfp-counter { - font-size: 1em; - text-align: right; - width: 25% -} - -.wb-modal dialog { - background-color: transparent; - border: none -} - -.expicon { - font-size: .7em; - margin: 0 -.35em 0 .7em -} - -.wb-menu .sm { - display: none; - max-height: 0; - overflow: hidden; - position: relative -} - -.wb-menu .sm.open { - display: inline; - max-height: 1000px; - min-width: 12.5em; - position: absolute; - text-transform: none; - top: auto; - z-index: 500 -} - -.wb-menu .sm.open li a { - text-align: left -} - -.wb-menu .sm details>* { - margin-left: auto; - margin-right: auto -} - -.wb-menu .menu { - margin-left: 0; - position: relative -} - -.wb-menu .menu>li { - float: left; - margin: 0; - padding: 0 -} - -.wb-menu .menu>li a { - display: block; - padding: 1em; - text-align: center -} - -.wb-menu .menu>li a[aria-haspopup]:focus,.wb-menu .menu>li a[aria-haspopup]:hover { - cursor: default -} - -.wb-menu .sm-open .expicon { - z-index: -1 -} - -.wb-menu details,.wb-menu details[open] { - border: 0; - margin-bottom: 0 -} - -.wb-menu details summary,.wb-menu details[open] summary { - border: 0; - color: inherit -} - -.wb-menu details summary:focus,.wb-menu details summary:hover,.wb-menu details[open] summary:focus,.wb-menu details[open] summary:hover { - text-decoration: none -} - -#mb-pnl nav a.wb-navcurr,#mb-pnl nav summary.wb-navcurr { - outline: 1px solid -} - -#mb-pnl nav a.wb-navcurr:focus,#mb-pnl nav summary.wb-navcurr:focus { - outline-style: dotted -} - -#mb-pnl .srch-pnl,#mb-pnl nav { - padding: 10px 20px 8px -} - -#mb-pnl .srch-pnl form { - white-space: nowrap -} - -#mb-pnl .lng-ofr { - padding: 7px 15px 0; - text-align: right -} - -#mb-pnl .lng-ofr ul { - margin-bottom: 0 -} - -#mb-pnl .lng-ofr li { - line-height: normal; - padding-left: 10px; - padding-right: 0 -} - -#mb-pnl .lng-ofr li a { - padding: 5px -} - -#mb-pnl nav ul li.no-sect { - padding-left: 1.27em -} - -#mb-pnl nav ul li.no-sect .list-group { - margin-bottom: 0 -} - -#mb-pnl nav ul li.no-sect a { - margin: 0 0 0 -6px -} - -#mb-pnl nav .mb-menu>li { - padding: 10px 0 2px -} - -#mb-pnl nav a { - display: inline-block; - margin: 6px 0 6px -6px; - padding: 0 6px; - width: 100% -} - -#mb-pnl nav summary { - padding-left: 3px -} - -#mb-pnl nav summary.wb-navcurr:focus { - outline-offset: -2px -} - -#mb-pnl details[open] { - padding-bottom: 0 -} - -#mb-pnl details ul { - padding-left: 1.2em -} - -#mb-pnl details details { - margin: 6px 0 6px -1.28em -} - -.wb-disable #wb-glb-mn { - display: none!important -} - -.wb-disable #wb-sm .menu { - background: #0e4164 -} - -[dir=rtl] .wb-menu .menu { - padding-right: 0 -} - -[dir=rtl] .wb-menu .menu>li { - float: right -} - -[dir=rtl] .wb-menu .sm.open li a { - text-align: right -} - -[dir=rtl] .expicon { - margin: 0 .7em 0 -.35em -} - -[dir=rtl] #mb-pnl .lng-ofr { - text-align: left -} - -[dir=rtl] #mb-pnl .lng-ofr li { - padding-left: 0; - padding-right: 10px -} - -[dir=rtl] #mb-pnl nav ul li.no-sect { - padding-left: 0; - padding-right: 1.27em -} - -[dir=rtl] #mb-pnl nav a { - margin-left: 0; - margin-right: -6px -} - -[dir=rtl] #mb-pnl nav summary { - margin-left: 0; - margin-right: -3px; - padding-left: 0; - padding-right: 3px -} - -[dir=rtl] #mb-pnl details ul { - padding-left: 0; - padding-right: .7em -} - -.wb-mltmd.audio .lastpnl,.wb-mltmd.youtube.cc_on .wb-mm-cc { - display: none -} - -.wb-mm-ctrls .btn:focus,.wb-mm-ctrls input[type=range]:focus,.wb-mm-ctrls progress:focus { - outline: 1px solid #4aafff -} - -.wb-mm-ctrls .fd-slider-bar,.wb-mm-ctrls .fd-slider-range { - background: #aaa; - border: 0 -} - -.xxsmallview .wb-mm-ctrls .frstpnl,.xxsmallview .wb-mm-ctrls .lastpnl { - padding-top: 2em -} - -.wb-mltmd iframe,.wb-mltmd object,.wb-mltmd video { - display: block; - width: 100% -} - -.wb-mm-cc { - max-height: 0; - padding: 0 -} - -.wb-mm-cc div,.wb-mm-cc:before { - display: table-cell; - height: 2.875em; - vertical-align: middle -} - -.wb-mltmd { - display: block; - position: relative -} - -.wb-mltmd.video:not(.playing):not(.waiting):not(.youtube) .display { - cursor: pointer; - position: relative -} - -.wb-mltmd.video:not(.playing):not(.waiting):not(.youtube) .display:before { - text-align: center -} - -.wb-mltmd.video:not(.playing):not(.waiting):not(.youtube) .display:after { - color: #fff; - content: "\e072"; - font-family: "Glyphicons Halflings"; - font-size: 65px; - text-align: center -} - -.wb-mltmd.video.waiting .display { - position: relative -} - -.wb-mltmd.video.waiting .display:after,.wb-mltmd.video.waiting .display:before { - display: block -} - -.wb-mltmd.audio object { - position: absolute -} - -.wb-mltmd video { - height: auto; - width: 100% -} - -.wb-mltmd.cc_on.played:not(.youtube) .wb-mm-cc { - display: table; - height: calc(2.875em + 1em); - padding: .5em -} - -.wb-mltmd.cc_on:not(.errmsg) .cc:after { - border-bottom: 3px solid #4aafff; - content: " "; - display: block; - margin-left: -2px; - width: 1.2em -} - -.wb-mltmd.skn-lt { - border-bottom: 1px solid #ddd; - color: #000 -} - -.wb-mltmd.skn-lt .wb-mm-ctrls { - background: #fff; - color: #000 -} - -.wb-mltmd.skn-lt .wb-mm-ctrls .btn { - background: #fff; - border: 0; - color: #000 -} - -.wb-mltmd.skn-lt .wb-mm-ctrls .btn[disabled]:active:hover { - color: #000 -} - -.wb-mltmd .wb-share { - text-align: right -} - -.wb-mltmd details[open],.wb-mltmd summary { - border-top-left-radius: 0; - border-top-right-radius: 0 -} - -.wb-mm-cc { - background-color: #000; - color: #fff; - text-align: center; - -webkit-transition: all .26s ease; - transition: all .26s ease; - width: 100% -} - -.wb-mm-cc:before { - content: " " -} - -.wb-mm-ctrls .frstpnl,.wb-mm-ctrls .lastpnl,.wb-mm-ctrls .tline { - display: table-cell; - vertical-align: middle -} - -.wb-mm-ctrls { - background: #3e3e3e; - color: #fff; - display: table; - padding-top: 2em; - position: relative; - width: 100% -} - -.wb-mm-ctrls .btn { - background: 0 0; - border: 0; - color: #fff; - font-size: 130%; - border-top-left-radius: 0!important; - border-top-right-radius: 0!important -} - -.wb-mm-ctrls .btn[disabled]:active:hover { - color: #fff -} - -.wb-mm-ctrls .btn[disabled]:hover { - background-color: transparent -} - -.wb-mm-ctrls .fs { - display: none -} - -.wb-mltmd[data-fullscreen-btn] .wb-mm-ctrls .fs { - display: block -} - -.wb-mm-ctrls .frstpnl { - text-align: center; - width: 13em -} - -.wb-mm-ctrls .lastpnl { - text-align: center; - width: 3em -} - -.wb-mltmd[data-fullscreen-btn] .wb-mm-ctrls .lastpnl { - width: 6em -} - -.wb-mm-ctrls .tline .wb-mm-tmln-crrnt:after { - content: " / "; - padding: 0 .5em -} - -.wb-mm-ctrls .wb-mm-txtonly { - padding: 0 1em -} - -.wb-mm-ctrls .wb-mm-txtonly p { - display: inline -} - -.wb-mm-ctrls .wb-mm-prgrss,.wb-mm-ctrls .wb-mm-txtonly { - display: table-cell; - vertical-align: middle -} - -.wb-mm-ctrls progress { - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; - background: #fff; - background-clip: padding-box; - border: 7px solid #3e3e3e; - border-radius: 14px; - color: #176ca7; - display: block; - height: 30px; - left: 0; - padding: 2px; - position: absolute; - top: 0; - width: 100% -} - -.wb-mm-ctrls progress.wb-progress-inited { - overflow: hidden; - padding: 0 -} - -.wb-mm-ctrls progress::-webkit-progress-bar { - background: #fff -} - -.wb-mm-ctrls progress::-webkit-progress-value { - background: #176ca7; - border-radius: 7px -} - -.wb-mm-ctrls progress::-moz-progress-bar { - background: #176ca7; - border-radius: 7px -} - -.wb-mm-ctrls .progress { - height: 22px -} - -.wb-mm-ctrls input[type=range] { - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; - background: 0 0; - display: inline-block; - height: 2.5em; - padding: 0; - width: 7em -} - -.wb-mm-ctrls input[type=range]:focus { - outline-offset: 0 -} - -.wb-mm-ctrls input[type=range]::-webkit-slider-runnable-track { - background: #aaa; - height: 4px -} - -.wb-mm-ctrls input[type=range]::-webkit-slider-thumb { - -webkit-appearance: none; - appearance: none; - background: #fff; - border: 1px solid #707070; - -webkit-box-sizing: content-box; - box-sizing: content-box; - height: 1.3em; - margin-top: -9px; - width: 10px -} - -.wb-mm-ctrls input[type=range]::-moz-range-track { - background: #aaa; - border: 0 -} - -.wb-mm-ctrls input[type=range]::-moz-range-thumb { - background: #fff; - border: 1px solid #707070; - border-radius: 0; - height: 1.3em; - width: 10px -} - -.wb-mm-ctrls input[type=range]::-ms-track { - border: 0; - color: transparent; - height: 4px -} - -.wb-mm-ctrls input[type=range]::-ms-fill-upper { - background: #aaa -} - -.wb-mm-ctrls input[type=range]::-ms-fill-lower { - background: #aaa -} - -.wb-mm-ctrls input[type=range]::-ms-thumb { - background: #fff; - border: 1px solid #707070; - height: 1.3em; - width: 10px -} - -.wb-mm-ctrls .fd-slider { - display: inline-block; - height: 100%; - margin-top: 10px; - width: 7em -} - -.wb-mm-ctrls .fd-slider-handle { - background: #fff; - border: 1px solid #707070; - -webkit-box-sizing: content-box; - box-sizing: content-box; - width: 10px -} - -.xxsmallview .wb-mm-ctrls .wb-mm-txtonly { - left: 0; - margin-top: -2em; - position: absolute -} - -.wb-mltmd { - margin-bottom: 10px; - margin-top: 10px -} - -.wb-mltmd.cc_on .wb-mm-cc { - height: calc(3.3em + 1em) -} - -.wb-mltmd.video:not(.playing,.waiting) .display::after { - line-height: 1.5em -} - -.wb-mm-cc div,.wb-mm-cc:before { - height: 3.3em -} - -.wb-mm-ctrls .wb-mm-txtonly p { - white-space: nowrap -} - -.wb-frmvld section[id^=errors-] h2 { - font-size: 1.75em -} - -.wb-overlay { - background-clip: border-box; - background-color: #fff; - border: 0; - border-radius: 0; - display: none; - -webkit-transform: translateZ(0); - transform: translateZ(0); - z-index: 1050 -} - -.wb-overlay.wb-inview { - display: block -} - -.wb-overlay.open { - display: inline-block; - position: fixed -} - -.wb-panel-l,.wb-panel-r { - height: 100%; - max-width: 90%; - top: 0 -} - -.wb-bar-b,.wb-bar-t { - border-bottom: 0; - left: 0; - max-height: 90%; - min-width: 100% -} - -.wb-popup-mid { - max-height: 90%; - max-width: 90% -} - -.wb-panel-l { - left: 0 -} - -.wb-panel-r { - right: 0 -} - -.wb-bar-t { - top: 0 -} - -.wb-bar-b { - bottom: 0 -} - -.wb-popup-mid { - border-radius: 6px; - bottom: 0; - left: 0; - margin: auto; - right: 0; - top: 0; - width: 90% -} - -.wb-popup-full { - height: 100%; - left: 0; - top: 0; - width: 100% -} - -.mfp-bg { - opacity: .97 -} - -.wb-overlay-dlg { - overflow: hidden -} - -.wb-overlay-dlg .overlay-bg { - -webkit-box-shadow: 0 0 1000px 1000px #000; - box-shadow: 0 0 1000px 1000px #000 -} - -.overlay-def { - overflow-y: auto -} - -.overlay-def header { - background-color: #2e5274; - color: #fff; - display: block; - padding: 0 44px 0 1em -} - -.overlay-def .modal-title { - font-size: 1.15em; - padding: 10px 0 -} - -.overlay-def.wb-bar-b,.overlay-def.wb-bar-t { - background-color: #000 -} - -.overlay-def.wb-bar-b header,.overlay-def.wb-bar-t header { - background-color: #000 -} - -.overlay-def .mfp-close { - color: #fff -} - -.hidden-hd .modal-body { - padding-top: 50px -} - -.hidden-hd .overlay-close:not(.btn) { - background-color: #000; - border-radius: 999px; - height: 1em; - line-height: 1em; - margin-right: 20px; - margin-top: 10px; - width: 1em -} - -[dir=rtl] .mfp-close { - left: 0; - right: auto -} - -[dir=rtl] .wb-panel-l { - left: auto; - right: 0 -} - -[dir=rtl] .wb-panel-r { - left: 0; - right: auto -} - -[dir=rtl] .overlay-def header { - padding: 0 1em 0 44px -} - -.overlay-def header { - background: #26374a -} - -.pln { - color: #000 -} - -pre.prettyprint { - background-color: #f5f5f5; - border: 1px solid #ddd; - color: #707070; - font-size: 95%; - padding: 8px -} - -pre.prettyprint.linenums { - -webkit-box-shadow: 40px 0 0 #fbfbfc inset,41px 0 0 #eee inset; - box-shadow: 40px 0 0 #fbfbfc inset,41px 0 0 #eee inset -} - -pre.prettyprint code { - -moz-tab-size: 20px; - -o-tab-size: 20px; - tab-size: 20px -} - -pre.prettyprint code ins { - font-weight: 700; - text-decoration: none -} - -ol.linenums { - margin: 0!important -} - -ol.linenums li { - padding-left: 10px; - text-shadow: 0 1px 0 #fff -} - -[dir=rtl] pre.prettyprint { - direction: ltr -} - -#wb-rsz { - clip-path: inset(50%); - margin: 0; - overflow: hidden; - position: absolute; - top: -1000px -} - -.shr-opn span { - padding-right: .2em -} - -.shr-pg .shr-lnk { - font-size: 115%; - line-height: 32px; - margin-bottom: 8px; - min-height: 32px; - text-align: left; - text-decoration: none; - width: 100% -} - -.shr-pg .shr-lnk:before { - content: " "; - display: inline-block; - height: 32px; - margin-right: .6em; - vertical-align: middle; - width: 32px -} - -.shr-pg .blogger:before { - background-image: url(../../wet-boew/assets/sprites_share.png); - background-position: 0 0; - width: 32px; - height: 32px -} - -.shr-pg .bluesky:before { - background-image: url(../../wet-boew/assets/sprites_share.png); - background-position: -32px 0; - width: 32px; - height: 32px -} - -.shr-pg .diigo:before { - background-image: url(../../wet-boew/assets/sprites_share.png); - background-position: 0 -32px; - width: 32px; - height: 32px -} - -.shr-pg .facebook:before { - background-image: url(../../wet-boew/assets/sprites_share.png); - background-position: -32px -32px; - width: 32px; - height: 32px -} - -.shr-pg .feed:before { - background-image: url(../../wet-boew/assets/sprites_share.png); - background-position: -64px 0; - width: 32px; - height: 32px -} - -.shr-pg .gmail:before { - background-image: url(../../wet-boew/assets/sprites_share.png); - background-position: -64px -32px; - width: 32px; - height: 32px -} - -.shr-pg .linkedin:before { - background-image: url(../../wet-boew/assets/sprites_share.png); - background-position: 0 -64px; - width: 32px; - height: 32px -} - -.shr-pg .myspace:before { - background-image: url(../../wet-boew/assets/sprites_share.png); - background-position: -32px -64px; - width: 32px; - height: 32px -} - -.shr-pg .pinterest:before { - background-image: url(../../wet-boew/assets/sprites_share.png); - background-position: -64px -64px; - width: 32px; - height: 32px -} - -.shr-pg .reddit:before { - background-image: url(../../wet-boew/assets/sprites_share.png); - background-position: -96px 0; - width: 32px; - height: 32px -} - -.shr-pg .tinyurl:before { - background-image: url(../../wet-boew/assets/sprites_share.png); - background-position: -96px -32px; - width: 32px; - height: 32px -} - -.shr-pg .tumblr:before { - background-image: url(../../wet-boew/assets/sprites_share.png); - background-position: -96px -64px; - width: 32px; - height: 32px -} - -.shr-pg .twitter:before { - background-image: url(../../wet-boew/assets/sprites_share.png); - background-position: 0 -96px; - width: 32px; - height: 32px -} - -.shr-pg .whatsapp:before { - background-image: url(../../wet-boew/assets/sprites_share.png); - background-position: -32px -96px; - width: 32px; - height: 32px -} - -.shr-pg .x:before { - background-image: url(../../wet-boew/assets/sprites_share.png); - background-position: -64px -96px; - width: 32px; - height: 32px -} - -.shr-pg .yahoomail:before { - background-image: url(../../wet-boew/assets/sprites_share.png); - background-position: -96px -96px; - width: 32px; - height: 32px -} - -.shr-pg .shr-dscl { - padding-bottom: 0 -} - -.shr-pg .email:before { - content: "✉"; - display: inline-block; - font-family: "Glyphicons Halflings"; - font-size: 32px; - margin-right: .3em -} - -.shr-pg .shr-pg { - text-align: left -} - -.shr-pg ul { - list-style-type: none; - margin: 10px; - padding: 0 -} - -[dir=rtl] .shr-opn span { - padding-left: .2em; - padding-right: 0 -} - -[dir=rtl] .shr-pg { - text-align: right -} - -[dir=rtl] .shr-pg .shr-lnk { - text-align: right -} - -[dir=rtl] .shr-pg .shr-lnk:before { - margin-left: .4em; - margin-right: auto -} - -[dir=rtl] .email:before { - margin-left: .6em; - margin-right: auto -} - -.wb-steps { - counter-reset: fieldset_counter -} - -.wb-steps .wb-tggle-fildst>legend:before { - content: counter(fieldset_counter) ". "; - counter-increment: fieldset_counter -} - -.wb-steps .wb-tggle-fildst>legend.wb-steps-active { - color: #1c578a -} - -.wb-steps .wb-tggle-fildst>legend.wb-steps-error { - color: #942826 -} - -.wb-steps .steps-wrapper { - border-bottom: 1px solid silver -} - -.wb-steps .subfields { - border: 0 -} - -.wb-steps.quiz .steps-wrapper { - border-bottom: none -} - -.wb-steps.quiz .steps-wrapper .buttons .btn { - display: inline-block; - margin: 10px 1%; - width: 48% -} - -.wb-steps.quiz fieldset legend+* { - clear: left -} - -.wb-steps.quiz .wb-tggle-fildst>legend:before { - content: ""; - counter-increment: none -} - -.wb-steps.quiz .wb-tggle-fildst ul { - list-style: none; - padding-left: 20px -} - -.wb-steps.quiz label { - display: block -} - -.wb-steps.quiz progress.progressBar { - width: 100% -} - -.wb-steps.quiz .progressText { - text-align: center -} - -.wb-steps.quiz p { - font-size: 20px -} - -.cnt-wdth-lmtd main .panel.stepsquiz:has(.wb-steps.quiz) { - max-width: 65ch -} - -.dataTables_wrapper .dataTables_scroll,table.dataTable { - clear: both -} - -table.dataTable thead td:active,table.dataTable thead th:active { - outline: 0 -} - -.dataTables_wrapper .dataTables_filter,.dataTables_wrapper .dataTables_length { - font-weight: 400 -} - -table.dataTable tfoot th,table.dataTable thead th { - font-weight: 700 -} - -.dataTables_wrapper.no-footer .dataTables_scrollBody,table.dataTable tfoot td,table.dataTable tfoot th,table.dataTable thead td,table.dataTable thead th,table.dataTable.no-footer { - border-bottom: 1px solid #111 -} - -table.dataTable td.right,table.dataTable th.right { - text-align: right -} - -table.dataTable td.center,table.dataTable td.dataTables_empty,table.dataTable th.center { - text-align: center -} - -table.dataTable.display tbody td,table.dataTable.display tbody th,table.dataTable.rowborder tbody td,table.dataTable.rowborder tbody th { - border-top: 1px solid #ddd -} - -table.dataTable.cell-border tbody tr:first-child td,table.dataTable.cell-border tbody tr:first-child th,table.dataTable.display tbody tr:first-child td,table.dataTable.display tbody tr:first-child th,table.dataTable.rowborder tbody tr:first-child td,table.dataTable.rowborder tbody tr:first-child th { - border-top: 0 -} - -table.dataTable.cell-border tbody td,table.dataTable.cell-border tbody th { - border-right: 1px solid #ddd; - border-top: 1px solid #ddd -} - -table.dataTable.cell-border tbody tr td:first-child,table.dataTable.cell-border tbody tr th:first-child { - border-left: 1px solid #ddd -} - -.dataTables_wrapper .dataTables_filter,.dataTables_wrapper .dataTables_info,.dataTables_wrapper .dataTables_length,.dataTables_wrapper .dataTables_processing { - color: #333 -} - -table.dataTable.display tbody tr.even:hover.selected>.sorting_1,table.dataTable.display tbody tr.odd:hover.selected>.sorting_1,table.dataTable.display tbody tr:hover.selected>.sorting_1,table.dataTable.order-column.hover tbody tr.even:hover.selected>.sorting_1,table.dataTable.order-column.hover tbody tr.odd:hover.selected>.sorting_1,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_1 { - background-color: #a1aec7 -} - -table.dataTable.display tbody tr.even:hover.selected>.sorting_2,table.dataTable.display tbody tr.odd:hover.selected>.sorting_2,table.dataTable.display tbody tr:hover.selected>.sorting_2,table.dataTable.order-column.hover tbody tr.even:hover.selected>.sorting_2,table.dataTable.order-column.hover tbody tr.odd:hover.selected>.sorting_2,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_2 { - background-color: #a2afc8 -} - -table.dataTable.display tbody tr.even:hover.selected>.sorting_3,table.dataTable.display tbody tr.odd:hover.selected>.sorting_3,table.dataTable.display tbody tr:hover.selected>.sorting_3,table.dataTable.order-column.hover tbody tr.even:hover.selected>.sorting_3,table.dataTable.order-column.hover tbody tr.odd:hover.selected>.sorting_3,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_3 { - background-color: #a4b2cb -} - -table.dataTable.display tbody tr.odd.selected>.sorting_1,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_1 { - background-color: #a6b3cd -} - -table.dataTable.display tbody tr.odd.selected>.sorting_2,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_2 { - background-color: #a7b5ce -} - -table.dataTable.display tbody tr.odd.selected>.sorting_3,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_3 { - background-color: #a9b6d0 -} - -table.dataTable.display tbody tr.even:hover.selected,table.dataTable.display tbody tr.odd:hover.selected,table.dataTable.display tbody tr:hover.selected,table.dataTable.hover tbody tr.even:hover.selected,table.dataTable.hover tbody tr.odd:hover.selected,table.dataTable.hover tbody tr:hover.selected { - background-color: #a9b7d1 -} - -table.dataTable.display tbody tr.odd.selected,table.dataTable.stripe tbody tr.odd.selected { - background-color: #abb9d3 -} - -table.dataTable.display tbody tr.even.selected>.sorting_1,table.dataTable.display tbody tr.selected>.sorting_1,table.dataTable.display tbody tr.selected>.sorting_2,table.dataTable.display tbody tr.selected>.sorting_3,table.dataTable.order-column tbody tr.selected>.sorting_1,table.dataTable.order-column tbody tr.selected>.sorting_2,table.dataTable.order-column tbody tr.selected>.sorting_3,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_1 { - background-color: #acbad4 -} - -table.dataTable.display tbody tr.even.selected>.sorting_2,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_2 { - background-color: #adbbd6 -} - -table.dataTable.display tbody tr.even.selected>.sorting_3,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_3 { - background-color: #afbdd8 -} - -table.dataTable thead .sorting_asc,table.dataTable thead .sorting_desc { - background-color: #e7e7e7 -} - -table.dataTable.display tbody tr.even:hover>.sorting_1,table.dataTable.display tbody tr.odd:hover>.sorting_1,table.dataTable.display tbody tr:hover>.sorting_1,table.dataTable.order-column.hover tbody tr.even:hover>.sorting_1,table.dataTable.order-column.hover tbody tr.odd:hover>.sorting_1,table.dataTable.order-column.hover tbody tr:hover>.sorting_1 { - background-color: #eaeaea -} - -table.dataTable.display tbody tr.even:hover>.sorting_2,table.dataTable.display tbody tr.odd:hover>.sorting_2,table.dataTable.display tbody tr:hover>.sorting_2,table.dataTable.order-column.hover tbody tr.even:hover>.sorting_2,table.dataTable.order-column.hover tbody tr.odd:hover>.sorting_2,table.dataTable.order-column.hover tbody tr:hover>.sorting_2 { - background-color: #ebebeb -} - -table.dataTable.display tbody tr.even:hover>.sorting_3,table.dataTable.display tbody tr.odd:hover>.sorting_3,table.dataTable.display tbody tr:hover>.sorting_3,table.dataTable.order-column.hover tbody tr.even:hover>.sorting_3,table.dataTable.order-column.hover tbody tr.odd:hover>.sorting_3,table.dataTable.order-column.hover tbody tr:hover>.sorting_3 { - background-color: #eee -} - -table.dataTable.display tbody tr.odd>.sorting_1,table.dataTable.order-column.stripe tbody tr.odd>.sorting_1 { - background-color: #f1f1f1 -} - -table.dataTable.display tbody tr.odd>.sorting_2,table.dataTable.order-column.stripe tbody tr.odd>.sorting_2 { - background-color: #f3f3f3 -} - -table.dataTable.display tbody tr.even:hover,table.dataTable.display tbody tr.odd:hover,table.dataTable.display tbody tr.odd>.sorting_3,table.dataTable.display tbody tr:hover,table.dataTable.hover tbody tr.even:hover,table.dataTable.hover tbody tr.odd:hover,table.dataTable.hover tbody tr:hover,table.dataTable.order-column.stripe tbody tr.odd>.sorting_3 { - background-color: #f5f5f5 -} - -table.dataTable.display tbody tr.even>.sorting_1,table.dataTable.display tbody tr.odd,table.dataTable.display tbody tr>.sorting_1,table.dataTable.display tbody tr>.sorting_2,table.dataTable.display tbody tr>.sorting_3,table.dataTable.order-column tbody tr>.sorting_1,table.dataTable.order-column tbody tr>.sorting_2,table.dataTable.order-column tbody tr>.sorting_3,table.dataTable.order-column.stripe tbody tr.even>.sorting_1,table.dataTable.stripe tbody tr.odd { - background-color: #f9f9f9 -} - -table.dataTable.display tbody tr.even>.sorting_2,table.dataTable.order-column.stripe tbody tr.even>.sorting_2 { - background-color: #fbfbfb -} - -table.dataTable.display tbody tr.even>.sorting_3,table.dataTable.order-column.stripe tbody tr.even>.sorting_3 { - background-color: #fdfdfd -} - -table.dataTable,table.dataTable td,table.dataTable th { - -webkit-box-sizing: content-box; - box-sizing: content-box -} - -table.dataTable thead .sorting .sorting-icons:after,table.dataTable thead .sorting .sorting-icons:before,table.dataTable thead .sorting_asc .sorting-icons:after,table.dataTable thead .sorting_desc .sorting-icons:before { - background: #fff; - border: 1px solid #aaa; - color: #757575 -} - -table.dataTable thead .sorting_asc .sorting-icons:before,table.dataTable thead .sorting_desc .sorting-icons:after { - background: #ccc; - border: 1px solid #111; - color: #000 -} - -table.dataTable thead .sorting,table.dataTable thead .sorting_asc,table.dataTable thead .sorting_desc { - cursor: pointer -} - -table.dataTable thead .sorting .sorting-icons,table.dataTable thead .sorting_asc .sorting-icons,table.dataTable thead .sorting_asc_disabled .sorting-icons,table.dataTable thead .sorting_desc .sorting-icons,table.dataTable thead .sorting_desc_disabled .sorting-icons { - display: inline-block -} - -table.dataTable { - border-collapse: separate; - border-spacing: 0; - margin: 0 auto; - width: 100%!important -} - -table.dataTable thead button { - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; - background: 0 0; - border: 0; - font-family: inherit; - padding: 0; - text-align: left -} - -table.dataTable thead .sorting-cnt { - white-space: nowrap -} - -table.dataTable thead .sorting-cnt:before { - content: " " -} - -table.dataTable thead .sorting-icons { - margin-top: 2px -} - -table.dataTable thead .sorting-icons:before { - content: "\e093"; - padding: 0 .1em 0 0 -} - -table.dataTable thead .sorting-icons:after { - content: "\e094"; - padding: 0 .04em 0 .06em -} - -table.dataTable tbody tr { - background-color: #fff -} - -table.dataTable tbody tr.selected { - background-color: #b0bed9 -} - -.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody td>div.dataTables_sizing,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody th>div.dataTables_sizing { - height: 0; - margin: 0!important; - overflow: hidden; - padding: 0!important -} - -.dataTables_wrapper .dataTables_paginate .paginate_button.current:first-child,.dataTables_wrapper .dataTables_paginate .paginate_button.previous { - border-top-left-radius: 4px; - border-bottom-left-radius: 4px; - margin-left: 0 -} - -.dataTables_wrapper .dataTables_paginate .paginate_button.current:last-child,.dataTables_wrapper .dataTables_paginate .paginate_button.next { - border-top-right-radius: 4px; - border-bottom-right-radius: 4px -} - -.dataTables_wrapper { - clear: both; - position: relative; - zoom:1} - -.dataTables_wrapper .dataTables_filter { - float: left; - margin-right: 15px -} - -.dataTables_wrapper .dataTables_filter input { - margin-left: .5em -} - -.dataTables_wrapper.filterEmphasis.provisional .dataTables_filter { - background-color: #d9edf7; - float: none; - margin-bottom: 7px; - padding: 10px -} - -.dataTables_wrapper.filterEmphasis.provisional .dataTables_info { - padding-left: 7px -} - -.dataTables_wrapper.filterEmphasis.provisional .dataTables_info:after { - content: "" -} - -.dataTables_wrapper .dataTables_length { - display: inline-block; - margin-top: 5px -} - -.dataTables_wrapper .dataTables_info { - display: inline-block -} - -.dataTables_wrapper .dataTables_paginate { - padding-top: 1.25em; - text-align: center -} - -.dataTables_wrapper .dataTables_paginate .paginate_button { - background-color: #eaebed; - border: 1px solid rgb(220.2692307692,221.9230769231,225.2307692308); - color: #335075; - cursor: pointer; - display: inline-block; - line-height: 1.4375; - margin-bottom: .5em; - margin-left: -1px; - padding: 10px 16px; - position: relative; - text-decoration: none -} - -.dataTables_wrapper .dataTables_paginate .paginate_button.current { - background-color: #2572b4; - border-color: #2572b4; - color: #fff; - cursor: default; - z-index: 2 -} - -.dataTables_wrapper .dataTables_paginate .paginate_button:active,.dataTables_wrapper .dataTables_paginate .paginate_button:focus,.dataTables_wrapper .dataTables_paginate .paginate_button:hover { - background-color: rgb(212.0307692308,214.0769230769,218.1692307692); - border-color: rgb(187.3153846154,190.5384615385,196.9846153846); - color: #335075 -} - -.dataTables_wrapper .dataTables_processing { - background: -webkit-gradient(linear,left top,right top,from(rgba(255,255,255,0)),color-stop(25%,rgba(255,255,255,.9)),color-stop(75%,rgba(255,255,255,.9)),to(rgba(255,255,255,0))); - background: linear-gradient(to right,rgba(255,255,255,0) 0,rgba(255,255,255,.9) 25%,rgba(255,255,255,.9) 75%,rgba(255,255,255,0) 100%); - background-color: #fff; - font-size: 1.2em; - height: 40px; - left: 50%; - margin-left: -50%; - margin-top: -25px; - padding-top: 20px; - position: absolute; - text-align: center; - top: 50%; - width: 100% -} - -.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody { - -webkit-overflow-scrolling: touch -} - -.dataTables_wrapper.no-footer div.dataTables_scrollBody table,.dataTables_wrapper.no-footer div.dataTables_scrollHead table { - border-bottom: 0 -} - -.dataTables_wrapper:after { - clear: both; - content: ""; - display: block; - height: 0; - visibility: hidden -} - -[dir=rtl] table.dataTable thead .sorting,[dir=rtl] table.dataTable thead .sorting_asc,[dir=rtl] table.dataTable thead .sorting_asc_disabled,[dir=rtl] table.dataTable thead .sorting_desc,[dir=rtl] table.dataTable thead .sorting_desc_disabled { - text-align: right -} - -[dir=rtl] table.dataTable thead .sorting:after,[dir=rtl] table.dataTable thead .sorting_asc:after,[dir=rtl] table.dataTable thead .sorting_asc_disabled:after,[dir=rtl] table.dataTable thead .sorting_desc:after,[dir=rtl] table.dataTable thead .sorting_desc_disabled:after { - margin-left: 0; - margin-right: 5px -} - -[dir=rtl] .dataTables_wrapper .dataTables_paginate .paginate_button.current:first-child,[dir=rtl] .dataTables_wrapper .dataTables_paginate .paginate_button.previous { - border-top-left-radius: 0; - border-bottom-left-radius: 0; - border-top-right-radius: 4px; - border-bottom-right-radius: 4px -} - -[dir=rtl] .dataTables_wrapper .dataTables_paginate .paginate_button.current:last-child,[dir=rtl] .dataTables_wrapper .dataTables_paginate .paginate_button.next { - border-top-left-radius: 4px; - border-bottom-left-radius: 4px; - border-top-right-radius: 0; - border-bottom-right-radius: 0 -} - -[dir=rtl] .dataTables_wrapper .dataTables_info,[dir=rtl] .dataTables_wrapper .dataTables_length { - float: right -} - -[dir=rtl] .dataTables_wrapper .dataTables_filter { - float: left; - text-align: left -} - -[dir=rtl] .dataTables_wrapper .dataTables_filter input { - margin-left: auto; - margin-right: .5em -} - -.dataTables_wrapper .top { - font-size: 17px -} - -.dataTables_wrapper .top [type=search] { - max-width: 205px -} - -.wb-tabs [role=tablist].allow-wrap li,.wb-tabs.carousel-s1 [role=tablist]>li,.wb-tabs.carousel-s2 [role=tablist]>li { - margin: 0 10px 0 0 -} - -.wb-tabs,.wb-tabs.carousel-s1 figure,.wb-tabs.carousel-s2 figure { - position: relative -} - -.wb-tabs.carousel-s1 [role=tablist]>li,.wb-tabs.carousel-s2 [role=tablist]>li { - z-index: 100 -} - -.wb-tabs.carousel-s1 figure,.wb-tabs.carousel-s2 figure { - background: #243850; - background: rgba(36,56,80,.9) -} - -.wb-tabs.carousel-s1 figure img,.wb-tabs.carousel-s2 figure img { - height: auto; - width: 100% -} - -.wb-tabs.carousel-s1 figcaption,.wb-tabs.carousel-s2 figcaption { - bottom: 0; - color: #fff; - left: 0; - padding: .5em 1em; - position: relative; - right: 0; - z-index: 101 -} - -.wb-tabs.carousel-s1 [role=tabpanel] a figure::after,.wb-tabs.carousel-s1 [role=tabpanel] a figure::before,.wb-tabs.carousel-s2 [role=tabpanel] a figure::after,.wb-tabs.carousel-s2 [role=tabpanel] a figure::before { - content: ""; - outline: inherit; - position: absolute -} - -.wb-tabs.carousel-s1 [role=tabpanel] a,.wb-tabs.carousel-s2 [role=tabpanel] a { - color: #000; - outline-offset: 0 -} - -.wb-tabs.carousel-s1 [role=tabpanel] a figure,.wb-tabs.carousel-s2 [role=tabpanel] a figure { - outline: inherit -} - -.wb-tabs.carousel-s1 [role=tabpanel] a figure::before,.wb-tabs.carousel-s2 [role=tabpanel] a figure::before { - height: calc(100% - 4px); - margin: 2px; - outline-color: #fff; - width: calc(100% - 4px) -} - -.wb-tabs.carousel-s1 [role=tabpanel] a figure::after,.wb-tabs.carousel-s2 [role=tabpanel] a figure::after { - height: calc(100% - 2px); - margin: 1px; - top: 0; - width: calc(100% - 2px) -} - -.wb-tabs.carousel-s1 [role=tabpanel] a figcaption,.wb-tabs.carousel-s2 [role=tabpanel] a figcaption { - color: #fff; - text-decoration: underline -} - -.wb-tabs.carousel-s1 [role=tabpanel] figure a,.wb-tabs.carousel-s2 [role=tabpanel] figure a { - color: #fff -} - -.wb-tabs.carousel-s1 .display:focus-within,.wb-tabs.carousel-s2 .display:focus-within { - outline: 1px dotted #fff; - outline-offset: -2px -} - -.wb-tabs.carousel-s1 video:focus,.wb-tabs.carousel-s2 video:focus { - outline-offset: -1px -} - -.wb-tabs.carousel-s2 [role=tablist]>li.nxt,.wb-tabs.carousel-s2 [role=tablist]>li.prv { - background: 0 0; - margin: 0; - padding: 0 -} - -.wb-tabs.carousel-s2 [role=tablist]>li.nxt a,.wb-tabs.carousel-s2 [role=tablist]>li.prv a { - border: 0; - padding: 10px 5px; - width: 100% -} - -.wb-tabs.carousel-s2 [role=tablist]>li.nxt a .glyphicon,.wb-tabs.carousel-s2 [role=tablist]>li.plypause a,.wb-tabs.carousel-s2 [role=tablist]>li.prv a .glyphicon { - background: #fff; - border-radius: 999px; - -webkit-box-shadow: 0 0 4px #243850; - box-shadow: 0 0 4px #243850 -} - -.wb-tabs.carousel-s2 [role=tablist]>li.nxt a,.wb-tabs.carousel-s2 [role=tablist]>li.plypause a,.wb-tabs.carousel-s2 [role=tablist]>li.prv a { - color: #243850 -} - -.wb-tabs.carousel-s2 [role=tablist]>li.nxt a .glyphicon,.wb-tabs.carousel-s2 [role=tablist]>li.prv a .glyphicon { - font-size: 1.75em; - height: 1.75em; - line-height: 1.75em; - margin: auto 0; - text-align: center; - width: 1.75em -} - -.wb-tabs.carousel-s2 [role=tablist]>li.nxt a:focus,.wb-tabs.carousel-s2 [role=tablist]>li.nxt a:hover,.wb-tabs.carousel-s2 [role=tablist]>li.prv a:focus,.wb-tabs.carousel-s2 [role=tablist]>li.prv a:hover { - background: 0 0 -} - -.wb-tabs.carousel-s2 [role=tablist]>li.nxt a:focus .glyphicon,.wb-tabs.carousel-s2 [role=tablist]>li.nxt a:hover .glyphicon,.wb-tabs.carousel-s2 [role=tablist]>li.plypause a:focus,.wb-tabs.carousel-s2 [role=tablist]>li.plypause a:hover,.wb-tabs.carousel-s2 [role=tablist]>li.prv a:focus .glyphicon,.wb-tabs.carousel-s2 [role=tablist]>li.prv a:hover .glyphicon { - -webkit-box-shadow: none; - box-shadow: none -} - -.wb-tabs [role=tablist]>li,.wb-tabs [role=tablist]>li a,.wb-tabs.carousel-s1 [role=tablist]>li.control,.wb-tabs.carousel-s2 [role=tablist]>li.control { - display: inline-block -} - -.wb-tabs.carousel-s1 figcaption p,.wb-tabs.carousel-s2 figcaption p { - margin-bottom: 0 -} - -.wb-tabs>.tabpanels>details,.wb-tabs>details { - padding: 6px 12px -} - -.wb-tabs>.tabpanels>details>summary,.wb-tabs>details>summary { - margin: -6px -12px -} - -.csstransitions .wb-tabs [role=tabpanel].out { - position: absolute; - top: 0; - width: 100%; - z-index: 0 -} - -.wb-tabs details[open] { - border-top-left-radius: 0 -} - -.wb-tabs>.tabpanels { - overflow: hidden; - position: relative -} - -.wb-tabs [role=tablist] { - border-spacing: 10px 0; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - list-style: none; - margin-bottom: -1px; - overflow-x: auto; - overflow-y: hidden; - padding: 0; - position: relative -} - -.wb-tabs [role=tablist]>li { - background: #ebf2fc; - color: #000; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - position: relative; - text-align: center; - border-color: #ccc; - border-style: solid; - border-width: 1px -} - -.wb-tabs [role=tablist]>li a { - color: #000; - padding: 10px; - text-decoration: none -} - -.wb-tabs [role=tablist]>li a:focus,.wb-tabs [role=tablist]>li a:hover { - background: #ccc; - background: rgba(204,204,204,.9) -} - -.wb-tabs [role=tablist]>li.active { - border-bottom: 0; - z-index: 2 -} - -.wb-tabs [role=tablist]>li.active a { - background: #fff; - border-color: #666; - border-style: solid; - border-width: 4px 0 0 0; - cursor: default; - padding-top: 6px -} - -.wb-tabs [role=tablist]>li.tab-count { - line-height: normal -} - -.wb-tabs [role=tablist]>li.tab-count>div { - position: relative; - top: 0 -} - -.wb-tabs [role=tablist]>li.tab-count .curr-count { - font-size: 1.5em -} - -.wb-tabs [role=tablist]>li+li { - margin-left: 10px -} - -.wb-tabs [role=tablist].generated li { - border-bottom: 0; - top: 1px -} - -.wb-tabs [role=tablist].allow-wrap { - border-spacing: 0; - display: block -} - -.wb-tabs [role=tablist].allow-wrap li { - display: inline-block; - left: auto -} - -.wb-tabs [role=tabpanel] { - overflow-x: auto; - position: relative; - z-index: 1 -} - -.wb-tabs.carousel-s1 { - border-top: 0 -} - -.wb-tabs.carousel-s1 [role=tablist] { - bottom: 1em; - left: 1em; - position: static -} - -.wb-tabs.carousel-s1 [role=tablist]>li.tab-count { - background: 0 0; - border: 0; - font-size: .9em; - padding: 0 .1em -} - -.wb-tabs.carousel-s2 { - background: #eee -} - -.wb-tabs.carousel-s2 [role=tablist] { - bottom: 0; - position: absolute; - width: 100% -} - -.wb-tabs.carousel-s2 [role=tablist]>li { - background: 0 0; - border: 0 -} - -.wb-tabs.carousel-s2 [role=tablist]>li.prv a { - padding-left: 1em -} - -.wb-tabs.carousel-s2 [role=tablist]>li.tab-count { - margin: 10px -} - -.wb-tabs.carousel-s2 [role=tablist]>li.plypause { - background: 0 0; - border: 0; - -webkit-box-flex: 1; - -ms-flex-positive: 1; - flex-grow: 1; - margin-right: 0; - padding: 2px 0; - text-align: right -} - -.wb-tabs.carousel-s2 [role=tablist]>li.plypause a { - font-size: 1.5em; - margin-right: .65em; - margin-top: .4em; - padding: 8px 10px 4px -} - -.wb-tabs.carousel-s2 [role=tablist] a:focus { - outline-offset: 0 -} - -.wb-disable.csstransitions .wb-tabs [role=tabpanel].out { - position: static; - width: auto -} - -.wb-disable .wb-tabs.carousel-s2 { - background: 0 0 -} - -.wb-disable .wb-tabs>details[open]>summary { - display: list-item!important -} - -.wb-disable .wb-tabs>.tabpanels>details[open]>summary { - display: list-item!important -} - -.wb-disable .wb-tabs .out { - visibility: visible -} - -.wb-disable .wb-tabs [role=tablist] { - display: none -} - -.wb-disable .wb-tabs [role=tabpanel] { - -webkit-animation: none; - animation: none; - display: block; - margin-bottom: .5em; - opacity: 1; - -webkit-transform: none; - transform: none -} - -.carousel-s1,.carousel-s2 { - margin-bottom: 15px -} - -.carousel-s1 .wb-mltmd,.carousel-s2 .wb-mltmd { - margin-top: 0 -} - -.wb-tgfltr-out { - display: none!important -} - -.wb-tagfilter-noresult { - display: none -} - -.wb-tagfilter-items:not(:has([data-wb-tags]:not(.wb-tgfltr-out,.wb-fltr-out)))+.wb-tagfilter-noresult { - display: block -} - -.wb-tagfilter-items:has(+ .wb-tagfilter-noresult):not(:has([data-wb-tags]:not(.wb-tgfltr-out,.wb-fltr-out))) { - display: none -} - -html:not(.wb-disable) .wb-tagfilter-items:not(:has([data-wb-tags]))+.wb-tagfilter-noresult { - display: none!important -} - -.wb-twitter .wb-twitter-notice-end[tabindex],.wb-twitter .wb-twitter-skip a { - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - font-weight: 700; - -webkit-box-pack: center; - -ms-flex-pack: center; - justify-content: center; - left: 0; - min-height: 77px; - outline-offset: -6px; - padding: 3px 12px; - right: 0 -} - -.wb-twitter .wb-twitter-notice-end[tabindex]:focus,.wb-twitter .wb-twitter-skip a:focus { - height: auto; - margin: 0; - position: absolute -} - -.wb-twitter .wb-twitter-notice-end[tabindex] span,.wb-twitter .wb-twitter-skip a span { - overflow-wrap: break-word; - width: 100% -} - -.wb-twitter { - position: relative -} - -.wb-twitter iframe { - max-width: 100%; - min-width: 224px -} - -.wb-twitter .twitter-timeline-rendered { - border-radius: 12px; - overflow-x: auto -} - -.wb-twitter .wb-twitter-notice-start[tabindex]:focus+.wb-twitter-skip-end+.twitter-timeline-rendered { - outline-style: auto -} - -.wb-twitter .wb-twitter-skip { - margin-bottom: 0; - text-align: center -} - -.wb-twitter .wb-twitter-skip.wb-twitter-skip-end a:focus { - border-top-left-radius: 12px; - border-top-right-radius: 12px; - top: 0 -} - -.wb-twitter .wb-twitter-skip.wb-twitter-skip-start a:focus { - border-bottom-right-radius: 12px; - border-bottom-left-radius: 12px; - bottom: 0 -} - -.wb-twitter .wb-twitter-skip a { - background-color: #000; - color: #fff -} - -.wb-twitter .wb-twitter-notice-end[tabindex] { - border-bottom-right-radius: 12px; - border-bottom-left-radius: 12px; - background-color: #fff; - border: 1px solid #cfd9de; - bottom: 0; - color: #000; - text-align: center -} - -.ol-overlay-container { - will-change: left,right,top,bottom; - z-index: 1000 -} - -.ol-popup { - background-color: #fff; - border: 1px solid #ccc; - border-radius: 3px; - bottom: 12px; - -webkit-box-shadow: 0 1px 4px rgba(0,0,0,.2); - box-shadow: 0 1px 4px rgba(0,0,0,.2); - display: block; - -webkit-filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2)); - filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .2)); - font-size: .75em; - left: -50px; - min-width: 250px; - padding: 15px; - position: absolute -} - -.ol-popup:after,.ol-popup:before { - border: solid transparent; - content: " "; - height: 0; - pointer-events: none; - position: absolute; - top: 100%; - width: 0 -} - -.ol-popup:after { - border-top-color: #fff; - border-width: 10px; - left: 48px; - margin-left: -10px -} - -.ol-popup:before { - border-top-color: #ccc; - border-width: 11px; - left: 48px; - margin-left: -11px -} - -.ol-popup-closer { - color: #333; - font-family: Arial,Baskerville,monospace; - font-size: 24px; - font-weight: 700; - height: 28px; - line-height: 28px; - position: absolute; - right: 0; - text-align: center; - text-decoration: none; - top: 0; - width: 28px -} - -.ol-popup-closer:active,.ol-popup-closer:hover,.ol-popup-closer:link,.ol-popup-closer:visited { - color: #333; - text-decoration: none -} - -.popup-content h5 { - border-bottom: solid 1px #999; - color: #999; - font-size: 1em; - margin: -5px 0 5px; - padding-bottom: 3px -} - -.popup-content table td,.popup-content table th { - padding: 2px -} - -.wb-geomap.legend-label-only .geomap-lgnd-layer:has(> div > ul > li:only-child) { - display: -webkit-box; - display: -ms-flexbox; - display: flex -} - -.wb-geomap.legend-label-only .geomap-lgnd-layer:has(> div > ul > li:only-child) label { - margin-right: 5px -} - -.wb-geomap.legend-label-only .geomap-lgnd-layer:has(> div > ul > li:only-child) .geomap-legend-symbol-text { - display: none -} - -.wb-geomap-map { - outline: 1px solid #ccc; - overflow: hidden; - position: relative -} - -.wb-geomap-map.active { - -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6); - box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6); - outline-color: #66afe9 -} - -.geomap-legend-detail { - padding-top: 10px -} - -.geomap-legend-element { - overflow: hidden; - width: 100% -} - -.geomap-legend-symbol { - float: left; - margin-right: 5px -} - -.geomap-legend-symbol-text { - display: inline-block; - line-height: 30px; - vertical-align: middle -} - -.geomap-clear-format { - clear: both -} - -.geomap-legend-label { - display: inline -} - -.geomap-lgnd-layer { - margin-bottom: 10px; - margin-top: 0!important -} - -.geomap-lgnd>:last-child { - margin-bottom: 0 -} - -.geomap-geoloc { - background: 0 0; - left: .25em; - top: .25em -} - -.geomap-geoloc input[type=text] { - border-color: #fff; - border-radius: 2px; - -webkit-box-shadow: 1px 2px 4px #999; - box-shadow: 1px 2px 4px #999; - width: 100% -} - -.geomap-aoi legend { - border: 0; - font-size: 1em; - margin-bottom: 1em -} - -.geomap-aoi button.geomap-geoloc-aoi-btn { - position: absolute; - right: 15px; - top: auto -} - -.geoloc-progress { - -webkit-animation-duration: .5s; - animation-duration: .5s; - -webkit-animation-iteration-count: infinite; - animation-iteration-count: infinite; - -webkit-animation-name: spin; - animation-name: spin; - -webkit-animation-timing-function: linear; - animation-timing-function: linear; - color: #333; - content: "\e031"; - height: 1em; - line-height: 1.03; - width: 1em; - z-index: 2; - font-family: "Glyphicons Halflings"; - font-size: 1em -} - -.ol-geolocate { - bottom: 8em; - right: 1em -} - -.ol-touch .ol-geolocate { - bottom: 1.5em; - right: .5em -} - -.ol-mouse-position { - background: #fff; - background: rgba(255,255,255,.7); - border-radius: 2px; - bottom: 3em; - font-size: .75em; - left: .6666em; - min-width: 100px; - padding: 2px 6px; - position: absolute; - will-change: contents,width -} - -.ol-mouse-position:before { - content: "\e062"; - font-family: "Glyphicons Halflings"; - margin-right: 3px -} - -.ol-mouse-position-inner { - padding: 10px -} - -.ol-mouse-position:empty { - display: none -} - -.ol-touch .ol-mouse-position { - display: none -} - -.ol-scale-line { - background: #fff; - background: rgba(255,255,255,.7); - border-radius: 2px; - bottom: .5em; - left: .5em; - padding: 2px; - position: absolute -} - -.ol-touch .ol-scale-line { - display: none -} - -.ol-scale-line-inner { - border: 1px solid #000; - border-top: none; - color: #000; - font-size: .75em; - margin: 1px; - text-align: center; - will-change: contents,width -} - -.ol-unsupported { - display: none -} - -.ol-viewport .ol-unselectable { - -webkit-tap-highlight-color: transparent; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none -} - -.ol-control { - background-color: rgba(255,255,255,.4); - border-radius: 4px; - padding: 2px; - position: absolute -} - -.ol-control:hover { - background-color: rgba(255,255,255,.4) -} - -.ol-zoom { - bottom: 1.5em; - right: 1em -} - -.ol-touch .ol-zoom { - display: none -} - -.ol-rotate { - bottom: 1.5em; - right: 3.25em; - -webkit-transition: opacity .25s linear,visibility 0s linear; - transition: opacity .25s linear,visibility 0s linear -} - -.ol-rotate.ol-hidden { - opacity: 0; - -webkit-transition: opacity .25s linear,visibility 0s linear .25s; - transition: opacity .25s linear,visibility 0s linear .25s; - visibility: hidden -} - -.ol-zoom-extent { - bottom: 6em; - right: 1em -} - -.ol-touch .ol-zoom-extent { - display: none -} - -.ol-zoom-extent span.glyphicon { - top: 3px -} - -.ol-full-screen { - right: .5em; - top: .5em -} - -@media print { - .ol-control { - display: none - } -} - -.ol-control button { - background-color: #fff; - border: none; - border-radius: 2px; - -webkit-box-shadow: 1px 2px 4px #999; - box-shadow: 1px 2px 4px #999; - color: #333; - display: block; - font-size: 1.14em; - font-weight: 700; - height: 1.5em; - line-height: .4em; - margin: 0; - padding: 0; - text-align: center; - text-decoration: none; - width: 1.5em -} - -.ol-control button::-moz-focus-inner { - border: none; - padding: 0 -} - -.ol-zoom-extent button { - line-height: 1.4em -} - -ol-geolocate button { - line-height: 1em -} - -.ol-compass { - display: block; - font-size: 1.2em; - font-weight: 400; - will-change: transform -} - -.ol-touch .ol-control button { - font-size: 1.5em -} - -.ol-control button:focus,.ol-control button:hover { - text-decoration: none -} - -.ol-zoom .ol-zoom-in { - border-bottom: solid 1px #999; - border-radius: 2px 2px 0 0 -} - -.ol-zoom .ol-zoom-out { - border-radius: 0 0 2px 2px -} - -.ol-attribution { - background: rgba(255,255,255,.7); - border-radius: 2px 0 0; - bottom: 0; - line-height: .75em; - max-width: calc(80% - 1.3em); - right: 0; - text-align: right -} - -.ol-attribution ul { - color: #333; - font-size: .75em; - margin: 0; - padding: .15em .25em; - text-shadow: 0 0 2px #fff -} - -.ol-attribution li { - display: inline; - line-height: inherit; - list-style: none -} - -.ol-attribution li :after { - content: " " -} - -.ol-attribution li :last-child:after { - content: "" -} - -.ol-attribution img { - max-height: 2em; - max-width: inherit -} - -.ol-attribution a { - color: #333; - text-decoration: none -} - -.ol-attribution a:active,.ol-attribution a:visited { - color: #333 -} - -.ol-attribution button,.ol-attribution ul { - display: inline-block -} - -.ol-attribution.ol-collapsed ul { - display: none -} - -.ol-attribution.ol-logo-only ul { - display: block -} - -.ol-attribution.ol-uncollapsible { - border-radius: 4px 0 0; - bottom: 0; - height: 1.3em; - line-height: .75em; - right: 0 -} - -.ol-attribution.ol-logo-only { - background: 0 0; - bottom: .4em; - height: 1.1em; - line-height: 1em -} - -.ol-attribution.ol-uncollapsible img { - margin-top: -.2em; - max-height: 1.6em -} - -.ol-attribution.ol-logo-only button,.ol-attribution.ol-uncollapsible button { - display: none -} - -.ol-box { - border: 2px solid #2572b4; - border-radius: 2px; - -webkit-box-sizing: border-box; - box-sizing: border-box -} - -.ol-dragbox { - border: 2px solid #f03; - border-radius: 2px; - -webkit-box-sizing: border-box; - box-sizing: border-box -} - -.ol-overviewmap { - bottom: .5em; - left: .5em -} - -.ol-overviewmap.ol-uncollapsible { - border-radius: 0 4px 0 0; - bottom: 0; - left: 0 -} - -.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button { - display: inline-block -} - -.ol-overviewmap .ol-overviewmap-map { - border: 1px solid #7b98bc; - height: 150px; - margin: 2px; - width: 150px -} - -.ol-overviewmap:not(.ol-collapsed) button { - bottom: 1px; - left: 2px; - position: absolute -} - -.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button { - display: none -} - -.ol-overviewmap:not(.ol-collapsed) { - background: rgba(255,255,255,.8) -} - -.ol-overviewmap-box { - border: 2px dotted rgba(0,60,136,.7) -} - -.geomap-help-btn { - background-color: transparent; - right: .5em; - top: .5em -} - -.geomap-help-btn:focus,.geomap-help-btn:hover { - background-color: transparent -} - -.geomap-help-btn button { - background-color: #333; - border-radius: 50%; - color: #fff -} - -.ol-touch .geomap-help-btn { - display: none -} - -.geomap-help-dialog { - background-color: #fff; - height: auto; - margin: 10px; - right: 0; - top: 0; - width: auto -} - -.geomap-help-dialog header { - position: static -} - -.geomap-help-dialog a.btn { - color: #333; - font-family: Arial,Baskerville,monospace; - font-size: 28px; - font-weight: 700; - height: 44px; - line-height: 44px; - padding: 0; - position: absolute; - right: 0; - text-align: center; - text-decoration: none; - top: 0; - width: 44px -} - -.geomap-help-dialog:hover { - background-color: #fff -} - -.tooltip-txt::after { - border-color: silver transparent transparent; - border-style: solid; - border-width: 5px; - content: " "; - left: 50%; - margin-left: -5px; - position: absolute; - top: 100% -} - -.tooltip-txt { - background: silver; - border: solid 1px silver; - border-radius: 5px; - bottom: 100%; - -webkit-box-shadow: 0 1px 4px rgba(0,0,0,.2); - box-shadow: 0 1px 4px rgba(0,0,0,.2); - color: #333; - cursor: default; - -webkit-filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2)); - filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .2)); - font-size: .8em; - left: 50%; - margin-left: -60px; - padding: 5px 0; - position: absolute; - text-align: center; - width: 120px -} - -.wb-geomap-geoloc-al-cnt,.wb-geomap-geoloc-al-cnt .wb-geomap-geoloc-al { - max-height: 15em -} - -.wb-geomap-geoloc-al-cnt { - border: 1px solid transparent; - left: 0; - margin-top: 0; - position: absolute; - z-index: 50 -} - -.wb-geomap-geoloc-al-cnt .wb-geomap-geoloc-al { - background: #fff; - border: solid 1px #ccc; - border-top: 0; - font-size: .9em; - list-style-type: none; - -webkit-overflow-scrolling: touch; - overflow-y: scroll; - padding: 0 -} - -.wb-geomap-geoloc-al-cnt .wb-geomap-geoloc-al li { - border-bottom: solid 1px #ccc -} - -.wb-geomap-geoloc-al-cnt .wb-geomap-geoloc-al li:last-of-type { - border-bottom: 0 -} - -.wb-geomap-geoloc-al-cnt .wb-geomap-geoloc-al a { - color: #333; - display: block; - padding: 5px; - text-decoration: none -} - -.wb-geomap-geoloc-al-cnt .wb-geomap-geoloc-al a:focus,.wb-geomap-geoloc-al-cnt .wb-geomap-geoloc-al a:hover { - background: #666; - color: #fff -} - -.wb-geomap-geoloc-al-cnt .wb-geomap-geoloc-al a span.glyphicon { - color: #ccc; - margin-right: 5px -} - -.glyphicon-spin { - -webkit-animation: spin 1s infinite linear; - animation: spin 1s infinite linear -} - -@keyframes spin { - 0% { - -webkit-transform: rotate(0); - transform: rotate(0) - } - - 100% { - -webkit-transform: rotate(359deg); - transform: rotate(359deg) - } -} - -.skeleton-lgnd-1 { - background-color: #f5f5f5; - height: 25px; - margin-top: 10px; - width: 100% -} - -.skeleton-lgnd-2 { - background-color: #f5f5f5; - height: 25px; - margin: 20px 0; - width: 100% -} - -.skeleton-lgnd-3 { - background-color: #fff; - display: block; - height: 25px; - margin-left: 25px; - width: 15px -} - -.table-hover .wb-group-summary tr:hover td,.table-hover .wb-group-summary tr:hover th,.wb-zebra-col-hover .wb-group-summary col.table-hover { - background-color: #fafaff -} - -.wb-cell-layout { - background-color: transparent -} - -.wb-cell-desc,.wb-cell-key { - font-style: italic -} - -.wb-zebra>colgroup+colgroup { - border-left: 2px solid #ddd -} - -.wb-group-summary { - background-color: #f0f2f4 -} - -.wb-zebra-col-hover col.table-hover { - background-color: #f0f0f0 -} - -.feeds-cont.waiting:after,.feeds-cont.waiting:before { - bottom: 0; - content: " "; - height: 50px; - left: 0; - margin: auto; - position: absolute; - right: 0; - top: 0; - width: 50px -} - -.feeds-cont.waiting { - min-height: 100px; - min-width: 100px -} - -.feeds-cont.waiting:after { - -webkit-animation-duration: 1s; - animation-duration: 1s; - -webkit-animation-iteration-count: infinite; - animation-iteration-count: infinite; - -webkit-animation-name: spin; - animation-name: spin; - -webkit-animation-timing-function: linear; - animation-timing-function: linear; - background: url("../../wet-boew/assets/loading.png") center center no-repeat; - background-size: 30px 30px; - z-index: 2 -} - -.feeds-cont.waiting:before { - background: rgba(0,0,0,0); - z-index: 1 -} - -.feeds-cont .feeds-date:before { - content: "[" -} - -.feeds-cont .feeds-date:after { - content: "]" -} - -.feeds-cont button[data-youtube] { - border: none; - padding: 0 -} - -.wb-paginate-pager .paginate-next,.wb-paginate-pager li.active:nth-last-child(2) button { - border-bottom-right-radius: 4px; - border-top-right-radius: 4px -} - -.wb-paginate-pager .paginate-prev,.wb-paginate-pager li.active:nth-child(2) button { - border-bottom-left-radius: 4px; - border-top-left-radius: 4px -} - -.wb-paginate-pager .paginate-next::after,.wb-paginate-pager .paginate-prev::before { - font-family: "Glyphicons Halflings"; - font-weight: 400; - line-height: 1em; - position: relative; - top: .1em -} - -.wb-paginate-pager { - text-align: center -} - -.wb-paginate-pager .paginate-prev::before { - content: "\e091"; - margin-right: .5em -} - -.wb-paginate-pager .paginate-next::after { - content: "\e092"; - margin-left: .5em -} - -.wb-paginate-pager .paginate-prev { - margin-left: 0 -} - -.wb-paginate-pager .pagination>li>button { - background-color: #eaebed; - border: 1px solid rgb(220.2692307692,221.9230769231,225.2307692308); - color: #335075; - margin-bottom: .5em; - margin-left: -1px; - padding: 10px 16px; - position: relative -} - -.wb-paginate-pager .pagination>li>button:focus,.wb-paginate-pager .pagination>li>button:hover { - background-color: #d4d6da; - border-color: #bbbfc5; - z-index: 2 -} - -.wb-paginate-pager .pagination>li>button:focus { - outline: 5px auto -webkit-focus-ring-color; - outline-offset: -2px -} - -.wb-paginate-pager .pagination>.active>button,.wb-paginate-pager .pagination>.active>button:focus,.wb-paginate-pager .pagination>.active>button:hover { - background-color: #2572b4; - border-color: #2572b4; - color: #fff; - cursor: default; - z-index: 3 -} - -html:not(.wb-disable) .wb-pgfltr-out { - display: none!important -} - -.feeds-cont li a { - font-weight: 700 -} - -.wb-geomap.large-checkboxes .geomap-lgnd-layer.gc-chckbxrdio input[type=checkbox]+label { - padding-left: 4px -} - -.wb-geomap.large-checkboxes .geomap-lgnd-layer.gc-chckbxrdio input[type=checkbox]+label::before { - left: 2px -} - -.wb-geomap.large-checkboxes .geomap-lgnd-layer.gc-chckbxrdio input[type=checkbox]+label::after { - left: 10px -} - -.wb-geomap.large-checkboxes .wb-geomap-layers table td .gc-chckbxrdio { - margin-bottom: 0; - margin-top: 0 -} - -.wb-geomap.large-checkboxes .wb-geomap-layers table td .gc-chckbxrdio label { - margin-left: 28px; - padding-left: 0 -} - -.wb-geomap.large-checkboxes .wb-geomap-layers table td .gc-chckbxrdio label::before { - left: 2px -} - -.wb-geomap.large-checkboxes .wb-geomap-layers table td .gc-chckbxrdio label::after { - left: 10px -} - -.bg-gctheme { - background-color: #355688 -} - -.panel-title { - font-size: 1.8125rem -} - -.alert-danger>:first-child::before,.alert-info>:first-child::before,.alert-success>:first-child::before,.alert-warning>:first-child::before { - color: inherit; - content: none -} - -.alert { - background-clip: content-box; - background-color: inherit; - border-left: 6px solid #000; - margin-bottom: 23px; - margin-left: 10px; - padding: 0 0 0 15px -} - -.alert details { - margin-left: .5em; - padding-top: 15px -} - -.alert>ol,.alert>p,.alert>ul { - margin-bottom: 0 -} - -.alert>* { - margin-left: 15px -} - -.alert>:first-child:not(details) { - margin-top: auto; - padding-top: 15px -} - -.alert>:last-child { - padding-bottom: 25px -} - -.alert::before { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - font-family: "Glyphicons Halflings"; - font-size: 26px; - line-height: 2.3em; - margin-left: -1.27em; - padding: 2px; - position: absolute -} - -.alert>:first-child { - margin-left: 15px -} - -.alert-info { - border-color: #269abc; - -o-border-image: linear-gradient(to bottom,#269abc 16px,#269abc 16px,transparent 16px,transparent 48px,#269abc 48px,#269abc 48px) 1 100%; - border-image: linear-gradient(to bottom,#269abc 16px,#269abc 16px,transparent 16px,transparent 48px,#269abc 48px,#269abc 48px) 1 100% -} - -.alert-info::before { - color: #269abc; - content: "\e086" -} - -.alert-success { - border-color: #278400; - -o-border-image: linear-gradient(to bottom,#278400 16px,#278400 16px,transparent 16px,transparent 48px,#278400 48px,#278400 48px) 1 100%; - border-image: linear-gradient(to bottom,#278400 16px,#278400 16px,transparent 16px,transparent 48px,#278400 48px,#278400 48px) 1 100% -} - -.alert-success::before { - color: #278400; - content: "\e084" -} - -.alert-warning { - border-color: #ee7100; - -o-border-image: linear-gradient(to bottom,#ee7100 16px,#ee7100 16px,transparent 16px,transparent 48px,#ee7100 48px,#ee7100 48px) 1 100%; - border-image: linear-gradient(to bottom,#ee7100 16px,#ee7100 16px,transparent 16px,transparent 48px,#ee7100 48px,#ee7100 48px) 1 100% -} - -.alert-warning::before { - color: #ee7100; - content: "\e107" -} - -.alert-danger { - border-color: #d3080c; - -o-border-image: linear-gradient(to bottom,#d3080c 16px,#d3080c 16px,transparent 16px,transparent 48px,#d3080c 48px,#d3080c 48px) 1 100%; - border-image: linear-gradient(to bottom,#d3080c 16px,#d3080c 16px,transparent 16px,transparent 48px,#d3080c 48px,#d3080c 48px) 1 100% -} - -.alert-danger::before { - color: #d3080c; - content: "\e101" -} - -.whtwedo p { - font-weight: 700; - margin-bottom: 30px; - margin-top: 15px -} - -.whtwedo ul>li { - margin-bottom: 10px -} - -.lnkbx>ul>li { - margin-bottom: 10px -} - -.lnkbx dl a { - overflow-wrap: break-word; - word-break: break-all; - word-wrap: break-word -} - -.lnkbx dl dt { - margin-top: 10px -} - -.lnkbx dl dd { - margin-bottom: 0 -} - -.gc-crprt ul:first-child { - list-style: outside none none; - margin: 0; - padding: 0 -} - -.gc-crprt ul:first-child>li { - margin-bottom: 10px -} - -.gc-crprt h3 { - margin-top: 0 -} - -.gc-crprt .col-md-8 .col-md-4 { - margin-bottom: 15px -} - -.gc-instttn .gc-rms-lngth img,.gc-orgnztn .gc-rms-lngth img { - margin-bottom: 30px -} - -.gc-theme .profile { - margin-bottom: 25px -} - -.gc-cntct-lst dl dd,.gc-cntct-lst dl dt,.lnkbx dl dd,.lnkbx dl dt { - border: 0 -} - -.gc-advnc-srvc .col-md-8 h2:first-child { - margin-top: 0 -} - -.gc-fld-srvy-container { - height: 0; - overflow: hidden; - -webkit-overflow-scrolling: touch; - overflow-y: scroll; - padding-bottom: 70%; - position: relative -} - -.gc-fld-srvy-mbd { - border: 0; - height: 100%; - left: 0; - position: absolute; - top: 0; - width: 100%; - zoom:1} - -main .subtitle { - color: #555; - font-size: 1em; - font-weight: 300; - margin-bottom: 1em -} - -main .departments .learnmore { - padding: 3em 0 -} - -main .priorities { - padding-top: 2em -} - -main .priorities .thumbnail { - margin-bottom: 1.5em; - padding: 1em -} - -main .gc-rms-lngth img { - background-color: #fff; - border: solid 1px #e1e4e7; - padding: 18px -} - -.departments a h2,.departments a h3,.departments a h4,.priorities a h2,.priorities a h3,.priorities a h4 { - font-size: 20px -} - -.gc-dwnld .gc-dwnld-txt { - text-decoration: underline -} - -.gc-dwnld .gc-dwnld-txt:hover { - text-decoration: none -} - -.gc-dwnld .gc-dwnld-txt span { - display: block -} - -.gc-dwnld .gc-dwnld-img { - margin-bottom: 0 -} - -.gc-dwnld p { - margin-bottom: 0 -} - -a.gc-dwnld { - display: -webkit-inline-box; - display: -ms-inline-flexbox; - display: inline-flex; - gap: 30px -} - -a.gc-dwnld>img { - -ms-flex-item-align: start; - align-self: start; - border: 5px solid #eaebed; - max-width: 25% -} - -a.gc-dwnld>span { - display: block -} - -a.gc-dwnld.vertical { - -webkit-box-orient: vertical; - -webkit-box-direction: normal; - -ms-flex-direction: column; - flex-direction: column; - gap: 15px -} - -a.gc-dwnld.vertical>img { - -ms-flex-item-align: center; - align-self: center; - max-width: 100% -} - -a.gc-dwnld:hover { - text-decoration: none -} - -a.gc-dwnld:hover>img { - -webkit-box-shadow: 1px 5px 7px rgba(0,0,0,.15); - box-shadow: 1px 5px 7px rgba(0,0,0,.15) -} - -.gc-nws a h2,.gc-nws a h3,.gc-nws a h4 { - font-size: 20px; - margin-top: 15px -} - -.gc-drmt h2,.gc-srvinfo h2 { - font-size: 1.8125rem -} - -.gc-drmt h3,.gc-drmt h4,.gc-drmt h5,.gc-drmt h6,.gc-srvinfo h3,.gc-srvinfo h4,.gc-srvinfo h5,.gc-srvinfo h6 { - font-size: 20px; - margin-bottom: 5px; - margin-top: 23px -} - -.gc-drmt p,.gc-srvinfo p { - font-size: 18px; - line-height: 1.5 -} - -.gc-drmt .input-group,.gc-srvinfo .input-group { - max-width: 65ch -} - -.redacted { - display: inline-block; - line-break: anywhere; - overflow-wrap: break-word; - word-break: break-all; - word-wrap: break-word -} - -.dshbrd .cntrls li { - padding-right: 0 -} - -.dshbrd .cntrls a { - background: #eee; - border: 1px solid #ddd; - color: #000; - padding: 7px 5px -} - -.dshbrd>details { - display: inline; - left: 0; - position: relative; - top: 0 -} - -.dshbrd>details>summary { - font-size: 0; - max-height: 0 -} - -#triangle-up { - border-bottom: 10px solid #fff; - border-left: 5px solid transparent; - border-right: 5px solid transparent; - height: 0; - width: 0 -} - -.gc-byline { - font-weight: 700; - margin-bottom: 30px -} - -.followus .email,.followus .facebook,.followus .flickr,.followus .foursquare,.followus .googleplus,.followus .instagram,.followus .linkedin,.followus .periscope,.followus .pinterest,.followus .reddit,.followus .rss,.followus .twitter,.followus .x-social,.followus .youtube { - background-position: center center; - background-repeat: no-repeat; - display: inline; - min-height: 27px; - min-width: 27px; - position: relative; - vertical-align: text-bottom -} - -.followus .foursquare,.icon.foursquare { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAYAAACN1PRVAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIFdpbmRvd3MiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NjJBQzE4OUE2MjdDMTFFM0FGNUNFRUJBQTFBNTFFNzciIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NjJBQzE4OUI2MjdDMTFFM0FGNUNFRUJBQTFBNTFFNzciPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo2MkFDMTg5ODYyN0MxMUUzQUY1Q0VFQkFBMUE1MUU3NyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo2MkFDMTg5OTYyN0MxMUUzQUY1Q0VFQkFBMUE1MUU3NyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PqP7yl8AAAX0SURBVHjafFZLbFRVGP7OfcydmXamZWjpMFPaTlMphQCRYEWiYhFD0BgTKRhXLtxgRMVEV+rCBYkLIyZ04YIgamTDYwUsCKlGIGgIPnkUkyJFyqulMLYzvXMf5/ifc+9MS6ftuTn3nJlz7v/97/9nzUdHRgHE8MgQ4SLUlI/6S5TPaHJeWT26o9P+s+4GbM0lMOFyzDImDXrV0IxWHUkQERBmtKip8YABTmcs3NOB7/noSll4Jh2D7c0KJIcmwfhcEjEWAGlMTjHts/ArFlw1ad2UiaExaqAwNxg3qoDK9JiipegqMExnIFCtfHzaN1gaXm5NwPYF5hvGTFspddHDhUlvXRFmzCfAEgxSHWMamE7QnqdmUXBszNYiW2tAkHpZFdtVYKKyCJiI6w+xPPUTsjVXlCS3J5Zj6OF6skc9vH//gj3wK6K55bDaVyJGzLzYkkCExLdFQIeJakCTzo3pduIigpbERbzU+gUWRocUkBxdC09hbPEJnOzfgEsHT0Fz8yj81o/oc9vQ88JmYiwCX2BKKjYFKGdMZxixfWWSwHqktpR1i4A+x6L4IH1swuMRNX1uoiE6iJ6u/UgmJ4hSBLzk4L/+w1hbGkJj3KA7oVRlgqHN4wbD1byD98+NhGB0TydWVqR+QBMBOX68St+uZ2Bxh441m1xwn1FsAS2pJNZnkiiVvEeBQqeKEdDZO5PYeeYuTtNakcxgDpaQCqUkc5mYEYH2leQYPCD81JrV6Oxohz0xTs7iVKyv7EOXj1wbJ4nu4fqEi7ipBQ6ihYR05s7gb5bI1AL3j0Uj6N3yPBzXUxC+PQmdUoNlRVHyOfZdeYCvB/KwOSOb6fCJrlbmWNpsdDJHxNw5gTwiMnLDgOu4WLOiE6uWddB/PoJgIYl8D/fz49h9YQTfXM1TlmGwDCWF0qtWzn1c6Pj7QQ+5dwKG5lSHP1xYrA4dkS1k00m8unkjrEhEpTRGRGtiMVwevIY3P/gYx37+A5ZpqnCoPIwFamQEJiW6W+jE2eEdeDbbB9N0yCMDYh63KfqSeNzageiT3bjR62NV19IKUMyycPL0OXy6dx8Gb9zEktx6aKS6IO2FYKRO1nz0XkEDj0uDypxhaBqWxH9HbrIPjXU3ydXr8FhDN1bUvoIFfCUx4KLklqATMQkiAb89ehx7DhzEg7ExJNuWYdHru8Bj9XDozCUwOclmxUAyxirKkuO23Y2R8d0Y+64PxesD2LCOYdcbCaS7dHIICk7NIslNFIpF7Nn/PQ4cOQa3ZKO+bSmatr4FVt8Ih+wqpUKoQrnXk699+JEmvVXFBlO21OEhklyAeGsXSjev4eKF8+j/5QIBOehsb0VdIoGh4Vv45MuvcOjEKbrPUdvcgWzv2zDSrfBcl+JQg095VHohV2mcuaEaKR0yWQBluRAqTkw6tqJRiPvDuHO4D/nBy8ScjqfXrkbPuidw/MezOP/nJYofHdHFrchs2wm9qQUl2yZX0kh15L2cBStN8tmiAmPTwKSnTgeMkJfx0WHcPrQXE/8MELc6DIPSE7m8LnzEMm3Ibn8HZroNDqnSpbTlkjRUTxWQ3MsyRLmzqE2rlSSuNKSQXKjEKlXgULBqqQzSvTtRQ8Y3ZD1TocMRzeaQISBDAZVI+fJ7cjeSyKdLnLFKSyFLk1ZOalwByniTnLCAQ6UCRrnPBhZm0LTtXcQ7VivGoi3LkN7+HrR0js5LwV0/UJlXZlZ1EBI0hKGGp0Aw8SBtkSqlk8i4U44iKBTKTkPTpAJJkvr5URjJFFisBtxzKeNDSeErO4kQkEBor6QTqgQUjUo9kFmkUpGY4j7oMYRqpDgx5ztEQo+ANTQTQQ5BeVEo1dG5H6pf/Q7UJyUq05EvoyotiQBQhElTAYVqVlEjs4bwKgwJBGdcubhsJ0QwFeAU0IweZKp74GHlkz2FxoKPJKhqdpRHscptERJVXWQZJGQOM6qcEVaYqgOuesKQkJSm8lS3sxJEZngFJNg8fSNjBboxS7PHgoY3tKE2T42TAPOABDWMOuL/BRgAhjXnmC+gjRsAAAAASUVORK5CYII=") -} - -.followus .youtube,.icon.youtube { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAbCAYAAAAQ2f3dAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAA5dJREFUeNrMl81vFWUUxn9n5p373RZjMVK1IRrKwmJciPG6YMOalS6UuPAv8M9xaWLcCInCmrZAbGuAGK0m0LgRi6XVFunt7e297dze93Exc+lHotxpL4aTnEwyycx55nnPeeY8tvDmGAaYWcXgbaCK8RowCJTSzAO5PenSDIEgTSMJAT7NDrCTZhuIge00W0ATqAN/ALclfpS0ofTlAC+CPhVcBEbwFIAoLdwF0C181FAKuJttoIXxF/A18AWw4oCC4BPEZ8Aozz5sD+PdGEK8DAwrYfdzJxgDPtT/A+pp8QrwAXDdSZxNbzwvcQJ4z0kaB4YyN4oEXhAYFgQg9QvYMWDceTECFDMD80I7OyBhYYiFIVhf5qMIjDgvHUsloFeqwItwcBArl+nU1ug8fkyQz4Nz/QAXAYNOopLKQQ/zZNDpoDgmGh5m6OOLKIqoXb5E/MvPsFHHCiUsF+0Kw+GmtuwklbL2ljodFIbkx05TrFaJXn+D+nc3ad64QfvePNbYJCgWIZ9PymTvv4LziapnUkcBvr2Dj2PMjEq1Sm58nMY779KYmqT1/Sw7v93HajXI5bBCAYIgC4U5J+0Tup5aTNpfwoD8wAC58+cpvnWGevV9NicmaM/9hF9dRe028h7rvf9Cp4w0S9rNAwwYUDr+ErkLFyidO0djdpbmlStsz86gZhMyTK7zyqpfu/lvJ+OAytAQOnWKrZER5CLU8SgIe65zaGD/9Vz84AH1a9eoTU7Smp9HjQZyUcJpj/WOeJT7EW//fp/16zepT03RnJuj8+gRGFihmDR/hlpOopOdMaEwhDCZm3hxkfr0NOuTUzRu3yFeeggSYamM5XJJL2b7/o7zydKWTS4s+fp46SG1iSnWrl6lPjPD9sICmBGUy1gUPWH2EBE7Sc1MdJlBFBGvrbF66TLtlRVa9+axICAYGEj1CuT9UX5LW05iI90kw57/GC4iXv2b7cUlhBKGggBlaO6nHMqm81It3cWLWUdTqS7JggRPf1afNlB3EsuCreyrT8Lck92sb+sYLYNlJ3FXsA68kJ30/qHZE+vAXeelO8ASxsnnYrEWfwpuOcGvgm9MjAKvij4atSztnsQy8K3BvCPpr68kAuAjJWagtMfYhgcMbT9g+H2+UmxB4ivN+BLYtOkTo4loiorgDOgs4iRwHKikQ5FPV153wIV3QXevB5243+PED7rxXSduLAK3DH4ws3UD/hkAxN++zimLNSwAAAAASUVORK5CYII=") -} - -.followus .twitter,.followus .x-social,.icon.twitter,.icon.x-social { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAAAZlBMVEUAAACpqalRUVFra2sWFhbS0tIODg6enp4ICAgEBATX19dFRUV5eXni4uIdHR01NTUkJCSEhIQ9PT2MjIzBwcHExMSgoKDOzs65ubleXl4sLCyTk5P19fWYmJguLi6zs7Pa2trIyMjWijNVAAAA+ElEQVQoz7VSSYKEIAwEQQiIbKLY7v7/k0P3jMuo1+YUklCpKoLQd04xNpw3mdju4tV3W2zDgHmUZu/NOd37fE7Ax/kv4euRHqBCRYNepfqgdnVrzxP1jCn00qeQ8txf6EQibD1rRPtYXKgmVI+yRTFXZjcdFLcalORSwV2kWSvQeKjYkwNEZqhYKniqMR4sUg/jPlzLESgO9qFE+VASNMX+jircQvia7JE3VCBJfVdzxsZ1urxKbiasTBLUrc1/HSbit/fgkpmpQZxKU4v1r+mhpcJFc/qGUNtdiAMbMDvY57v34ErM80FtqKY6dgXp6r08in1pN38AoggMXei8ngUAAAAASUVORK5CYII=") -} - -.followus .flickr,.icon.flickr { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAYAAACN1PRVAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIFdpbmRvd3MiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NTNGMkVFMUY2MjdBMTFFMzhCMjNGNDNCRDQ2QTY3RTIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NTNGMkVFMjA2MjdBMTFFMzhCMjNGNDNCRDQ2QTY3RTIiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo1M0YyRUUxRDYyN0ExMUUzOEIyM0Y0M0JENDZBNjdFMiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo1M0YyRUUxRTYyN0ExMUUzOEIyM0Y0M0JENDZBNjdFMiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pjapqp8AAAPMSURBVHjavFZNaFxVFP7ufX+TZpxMOklbS2tIaHWhQSZUGvAHu+hCUwXBta1SKLqrWKQrwYUirtxEkC4FtQtFDP7sBIk4uGmbbMwkYlAxmQZm5s3f+7v3eu57M5NpnKEuMjlwYOa98+53zvedc95jS0tLJtkbuVzutVQqNY19NKVUUKvVCuVy+T3G2M+m4zjv5vP56wSGYZgQYmF9ff1J8hfYxsaGmJmZ4e1M9h2MKoKUEoVC4Sczm83GQPrCMEwXwDlHOp2e5Tg4M8zeDIZsytQgHR8qEp3fF4w0hcnbP+iypHtikKQU0g5O/mvtRf/E/wNmGSzG+KcqUGtJ2BbD0YyBEYchCPYcokFIfJTqYK4fJ6eOpYFRBwhC7JWoRzPAsYBtV+D971x88WsTJQK0bYZzpxxcv5DB04+kEkCdnGOA1UMYH/wC/ukK2J81AuOQTx2HuDoP+eJpsDCKmemSsL29rcbHx4kEgXJT4aXFHSyveIRM5fE2Nb5CJsPx2ZUcnn8sBU9TGghYr3wL48vbmg/yTmNTRYaF8MYCxKXHgVYAy7awurrqcj1f2k2u8OEPLpbvENAhepDojGXQnmJwaxJv3qygVIvALQP8xm0CWqGbju5q7AbbpFkE8+0foYp3Ic1kqON507noAqpNia9vtShJ1r8RqNLf/gpR2AxhtXwYXxV7APaaBVYqw/j+DyirqxR4jMgUtlyJmtfDxgAr7giwVkj8N+4TrCimrtsz7uYuWBRJZFMKKQv3CNrneRxLk7rUNDI3cp9gDjExQp2gIIVIaIzBpMLEKMOzDxNaNODZUOHBSQPzD3EEaQfR+Sm90wcA0uHpNKJnTkB5YXe0ujyEBHjt/CimTxDHLbV7jky6UY/TOwujOEl7O2xGCC7PQjyhAf12kGp7FP/33zoDMTsBFojdWjvd6AUS0zmGb17P4OV5B5mRZHvYhP3olInPr2Rw8ayNJsXJIII87KB+8wL8V+egsk571RJ10zk0P34O3rUzUKRt5/x4zjY3N9XY2Jh+ycUXUtSNejXd+jvC7zsShwk0f9LEkQcYGoHCPSuUBltvDePOXRjrFahDJqL8UajjtEUIiDoj2RymiWKx6Jp72fZIG93Mc0Tn2akk3o8U6n4fbfwkQU1XNHckZpP5RGMjGLwbO0PX03QxqBf+z5XuEYC3+2y/jT9w6w/j9dJdxAcGdlCVkTMehmH8BTQs63xdRVFU4ltbW8saUH8B6Rv77frcSqWCarW6aNbr9Utra2ufTE5OnrNte9/pazQabqlUWqTqPvpXgAEAXskOrNb+EfQAAAAASUVORK5CYII=") -} - -.followus .facebook,.icon.facebook { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABcAAAAXCAMAAADX9CSSAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo2NTU5MTU0RTVBMkUxMUUzQTgzODlDQkVCQTlCRjdERCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo2NTU5MTU0RjVBMkUxMUUzQTgzODlDQkVCQTlCRjdERCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjY1NTkxNTRDNUEyRTExRTNBODM4OUNCRUJBOUJGN0REIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjY1NTkxNTRENUEyRTExRTNBODM4OUNCRUJBOUJGN0REIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+tKO1uwAAAaRQTFRF9vf68/X5UGmoVm6rGzuNMlCZeIy8OlacSmSkPFidPlqfdoq7PVmePFieR2KjOVWcPFedU2ypJ0aTPlmeQlyg3uPvHj6OSGKkQFygPVie/f7+IUCQ9Pb6GjqMM1CZK0mVdYi6LEqVPFeePlqeHDyNOVacPlmf0tnqRl+iOladRV+hGzeLP1mfX3awVW2q2N7sHT6OOFWbLkyX4+fx9/j7NVGaMk+ZRV6irbjWMU+YME2XZ320PVqe6+713eLuI0ORg5XB6e30GjyNdYm6IUCP9/f7KEeTIkKReIu7NlKaKEeU5eny3+Tv5unyNlSaYHavSWOk0dfoSmKkPVmdTmenRmGiQl6hW3Ou5OjyJEOS3uLuNVKbYnix8vT5CSyEa4G1OFWcIkGRKkiUSmSl6u30h5jDn63QMU+ZRF6iKUeTO1ad7vH3K0qVr7rYMU6YJkSTYniw8vX58fT4LUqWLkyYbYK32d7sIUGReo689fb6TGal8PL3NlOb+Pr8/Pz909rpSGOkU2up+Pn8xs3iNFGZXXStXHStAySAP1qfT2in////O1ed8qxkgAAAARpJREFUeNqU0sVuxEAMBuApbTa8zFhmZtoyMzMzMzNOPC/ddKUko2ov/S+WP1mWD0b9JrPyN2bTIOIJHdGOMadWHkk0N37MujK7GUwkpBjKZnQdk8kRh7xnUWjHUc9Wc9P91Y4/m3ZhtyYH1DyNBTHl3pCt9pdhI9dFO+fPbwU4PBn+Gu8lhrOOUmsA3ooOtkNENFyo6vv2nsGtpy1mkzlqPkssmDgFZL2QV0i64eXLc89OH/gGSpyj69eFmjNrN6BlH3dwuod53d/D54K+5+Gu57OlEx43L9un58uM/Zah+qWpRUAvq9EjlqXuIfagkgSouI7JUxvKcWqy6ilp8eb/7k7obhRJ6BFUof3Da/VCACobpPg/zPwIMACYFdTbOAfyBwAAAABJRU5ErkJggg==") -} - -.followus .pinterest,.icon.pinterest { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAYAAACN1PRVAAAACXBIWXMAAC4jAAAuIwF4pT92AAA50WlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS41LWMwMjEgNzkuMTU0OTExLCAyMDEzLzEwLzI5LTExOjQ3OjE2ICAgICAgICAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgICAgICAgICAgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIgogICAgICAgICAgICB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIKICAgICAgICAgICAgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOmV4aWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vZXhpZi8xLjAvIj4KICAgICAgICAgPHhtcDpDcmVhdG9yVG9vbD5BZG9iZSBQaG90b3Nob3AgQ0MgKFdpbmRvd3MpPC94bXA6Q3JlYXRvclRvb2w+CiAgICAgICAgIDx4bXA6Q3JlYXRlRGF0ZT4yMDEzLTA4LTA5VDE1OjE4OjQ4LTA0OjAwPC94bXA6Q3JlYXRlRGF0ZT4KICAgICAgICAgPHhtcDpNb2RpZnlEYXRlPjIwMTQtMTAtMjhUMTI6Mjk6MTItMDQ6MDA8L3htcDpNb2RpZnlEYXRlPgogICAgICAgICA8eG1wOk1ldGFkYXRhRGF0ZT4yMDE0LTEwLTI4VDEyOjI5OjEyLTA0OjAwPC94bXA6TWV0YWRhdGFEYXRlPgogICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3BuZzwvZGM6Zm9ybWF0PgogICAgICAgICA8cGhvdG9zaG9wOkNvbG9yTW9kZT4zPC9waG90b3Nob3A6Q29sb3JNb2RlPgogICAgICAgICA8eG1wTU06SW5zdGFuY2VJRD54bXAuaWlkOjdlMGJlZTI3LWEzZTAtNTM0YS1iMmQ2LTMyYTk3NjM5MzkzODwveG1wTU06SW5zdGFuY2VJRD4KICAgICAgICAgPHhtcE1NOkRvY3VtZW50SUQ+eG1wLmRpZDpkZjYyMDZlMi0zZTA3LTUyNDQtYjI4OS0xYjM3MjQyNzcwMmM8L3htcE1NOkRvY3VtZW50SUQ+CiAgICAgICAgIDx4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ+eG1wLmRpZDpkZjYyMDZlMi0zZTA3LTUyNDQtYjI4OS0xYjM3MjQyNzcwMmM8L3htcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD4KICAgICAgICAgPHhtcE1NOkhpc3Rvcnk+CiAgICAgICAgICAgIDxyZGY6U2VxPgogICAgICAgICAgICAgICA8cmRmOmxpIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmFjdGlvbj5jcmVhdGVkPC9zdEV2dDphY3Rpb24+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDppbnN0YW5jZUlEPnhtcC5paWQ6ZGY2MjA2ZTItM2UwNy01MjQ0LWIyODktMWIzNzI0Mjc3MDJjPC9zdEV2dDppbnN0YW5jZUlEPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6d2hlbj4yMDEzLTA4LTA5VDE1OjE4OjQ4LTA0OjAwPC9zdEV2dDp3aGVuPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6c29mdHdhcmVBZ2VudD5BZG9iZSBQaG90b3Nob3AgQ0MgKFdpbmRvd3MpPC9zdEV2dDpzb2Z0d2FyZUFnZW50PgogICAgICAgICAgICAgICA8L3JkZjpsaT4KICAgICAgICAgICAgICAgPHJkZjpsaSByZGY6cGFyc2VUeXBlPSJSZXNvdXJjZSI+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDphY3Rpb24+c2F2ZWQ8L3N0RXZ0OmFjdGlvbj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0Omluc3RhbmNlSUQ+eG1wLmlpZDo3ZTBiZWUyNy1hM2UwLTUzNGEtYjJkNi0zMmE5NzYzOTM5Mzg8L3N0RXZ0Omluc3RhbmNlSUQ+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDp3aGVuPjIwMTQtMTAtMjhUMTI6Mjk6MTItMDQ6MDA8L3N0RXZ0OndoZW4+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDpzb2Z0d2FyZUFnZW50PkFkb2JlIFBob3Rvc2hvcCBDQyAoV2luZG93cyk8L3N0RXZ0OnNvZnR3YXJlQWdlbnQ+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDpjaGFuZ2VkPi88L3N0RXZ0OmNoYW5nZWQ+CiAgICAgICAgICAgICAgIDwvcmRmOmxpPgogICAgICAgICAgICA8L3JkZjpTZXE+CiAgICAgICAgIDwveG1wTU06SGlzdG9yeT4KICAgICAgICAgPHRpZmY6T3JpZW50YXRpb24+MTwvdGlmZjpPcmllbnRhdGlvbj4KICAgICAgICAgPHRpZmY6WFJlc29sdXRpb24+MzAwMDAwMC8xMDAwMDwvdGlmZjpYUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6WVJlc29sdXRpb24+MzAwMDAwMC8xMDAwMDwvdGlmZjpZUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6UmVzb2x1dGlvblVuaXQ+MjwvdGlmZjpSZXNvbHV0aW9uVW5pdD4KICAgICAgICAgPGV4aWY6Q29sb3JTcGFjZT42NTUzNTwvZXhpZjpDb2xvclNwYWNlPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+Mjc8L2V4aWY6UGl4ZWxYRGltZW5zaW9uPgogICAgICAgICA8ZXhpZjpQaXhlbFlEaW1lbnNpb24+Mjc8L2V4aWY6UGl4ZWxZRGltZW5zaW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAKPD94cGFja2V0IGVuZD0idyI/PlHalvsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAuFJREFUeNqc1k2IllUUB/DfPFqaWdbCoKZIN6kIVqYljQsrbZHpGBnMShSpTQQVBIIoRQsXhYK1DEGQaNGXpkFkWllZGX04ZKZtMnNIzcKIcejDNueF4+2+7zt4Ns+595x7/889H/97e76YOs0o5Ar0YRZuwAQM4xgG8THOdttkbBf7HDyKBzCpg99ZvIkXcaCdU9NmfhxeioUruwDBlViBz7EFl40WbDq+x2oXJ6twBDO7hXEavsGlHTb7CWdCvwbXVnyux9e4Bd/WwMbj0zZAu7ENewIsy0wsxWMF8Fjsj7k/yzC+hquKjc6gH4uwtQIk/nwDpkaeyyp+vczZfNxXOB7HDOyI8Z2x2UH8jB/CNhD2ETyM54t97sUC6Ik++yj6qCXncWM6ySY83iGPr+KhNN6PeWn8GeY10aR9xeK1CWhjAjqPkxWw5ViXxo8U9jswpcH9hWE4heJmPBH6V5GXXjxTAVyTimsQ3xX2JQ1mF5Pv4a/Qn4zv31iIH0N/ukJPE6J1ciiz3NpEbsrqasnc+O5LvQVj2hBCZo4/Cltvg8uLyX+K0oWhwud2TKyAnSoo7IIfaXCumJyS9KFEYfkk/RWgXyPMtX1gpKk06qKkPxs5mo3JXcA+wb+pf28r7ENNcGGWyanU38JvoZ9Op5xeAduc9IWVMA422FlZuCn4blyA70y5rHHn28GfLVlX8dnV4GhQUCnbcSL0HWn+IJ5L45exOI0Hgv6yHMKhFl0tbnPClszAYVySevC6yM3x5LcAeyvrl2F7q8J2xS1bk5MBBHfF9T8pTt0Cuhrr2wB9GVG64D5bGqXeUzjvKy7X/gB5B7/HRdnXpu9gSe3y/CXC8EHhnMd3x3ciHhzFE+GelPf/Uc6HEarhoiDy4tHISPTrnm4PnvdxUxByPv2yRF+d5N0I9+7S0NPlkToQD5ehyE8n2YsX8MbFPlJfSdX2VFy0vcHu5+J5MBh5PdLtyP8NANPznqhL35DdAAAAAElFTkSuQmCC") -} - -.followus .linkedin,.icon.linkedin { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAYAAACN1PRVAAAACXBIWXMAAAsTAAALEwEAmpwYAAA7amlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS41LWMwMjEgNzkuMTU1NzcyLCAyMDE0LzAxLzEzLTE5OjQ0OjAwICAgICAgICAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgICAgICAgICB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIKICAgICAgICAgICAgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIKICAgICAgICAgICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICAgICAgICAgICB4bWxuczpwaG90b3Nob3A9Imh0dHA6Ly9ucy5hZG9iZS5jb20vcGhvdG9zaG9wLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOnRpZmY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vdGlmZi8xLjAvIgogICAgICAgICAgICB4bWxuczpleGlmPSJodHRwOi8vbnMuYWRvYmUuY29tL2V4aWYvMS4wLyI+CiAgICAgICAgIDx4bXA6Q3JlYXRvclRvb2w+QWRvYmUgUGhvdG9zaG9wIENDIDIwMTQgKFdpbmRvd3MpPC94bXA6Q3JlYXRvclRvb2w+CiAgICAgICAgIDx4bXA6Q3JlYXRlRGF0ZT4yMDEyLTExLTAxVDEzOjA4OjE0LTA0OjAwPC94bXA6Q3JlYXRlRGF0ZT4KICAgICAgICAgPHhtcDpNb2RpZnlEYXRlPjIwMTUtMDItMjRUMTM6MjY6MjMtMDU6MDA8L3htcDpNb2RpZnlEYXRlPgogICAgICAgICA8eG1wOk1ldGFkYXRhRGF0ZT4yMDE1LTAyLTI0VDEzOjI2OjIzLTA1OjAwPC94bXA6TWV0YWRhdGFEYXRlPgogICAgICAgICA8eG1wTU06SW5zdGFuY2VJRD54bXAuaWlkOjVjYTc1ZjdmLTU0NWMtOGY0YS05NDRiLTdmNjUwYmRjZjdkMDwveG1wTU06SW5zdGFuY2VJRD4KICAgICAgICAgPHhtcE1NOkRvY3VtZW50SUQ+YWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOjkxYjg0YjE0LWJjNTItMTFlNC04ZmMyLWMzMmMzN2VlOTM3ODwveG1wTU06RG9jdW1lbnRJRD4KICAgICAgICAgPHhtcE1NOkRlcml2ZWRGcm9tIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgPHN0UmVmOmluc3RhbmNlSUQ+eG1wLmlpZDpDMTAyMEM1NTFDN0IxMUUyQjkxNEY3RUNEMkY1ODRBRDwvc3RSZWY6aW5zdGFuY2VJRD4KICAgICAgICAgICAgPHN0UmVmOmRvY3VtZW50SUQ+eG1wLmRpZDpDMTAyMEM1NjFDN0IxMUUyQjkxNEY3RUNEMkY1ODRBRDwvc3RSZWY6ZG9jdW1lbnRJRD4KICAgICAgICAgPC94bXBNTTpEZXJpdmVkRnJvbT4KICAgICAgICAgPHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD54bXAuZGlkOkMxMDIwQzU4MUM3QjExRTJCOTE0RjdFQ0QyRjU4NEFEPC94bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ+CiAgICAgICAgIDx4bXBNTTpIaXN0b3J5PgogICAgICAgICAgICA8cmRmOlNlcT4KICAgICAgICAgICAgICAgPHJkZjpsaSByZGY6cGFyc2VUeXBlPSJSZXNvdXJjZSI+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDphY3Rpb24+c2F2ZWQ8L3N0RXZ0OmFjdGlvbj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0Omluc3RhbmNlSUQ+eG1wLmlpZDpiYWU1MTMwNy0xYzQwLTQ5NGEtOGYyMS01MzlkMWRkNWU3NDE8L3N0RXZ0Omluc3RhbmNlSUQ+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDp3aGVuPjIwMTUtMDItMjRUMTM6MjM6NTgtMDU6MDA8L3N0RXZ0OndoZW4+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDpzb2Z0d2FyZUFnZW50PkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE0IChXaW5kb3dzKTwvc3RFdnQ6c29mdHdhcmVBZ2VudD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmNoYW5nZWQ+Lzwvc3RFdnQ6Y2hhbmdlZD4KICAgICAgICAgICAgICAgPC9yZGY6bGk+CiAgICAgICAgICAgICAgIDxyZGY6bGkgcmRmOnBhcnNlVHlwZT0iUmVzb3VyY2UiPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6YWN0aW9uPnNhdmVkPC9zdEV2dDphY3Rpb24+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDppbnN0YW5jZUlEPnhtcC5paWQ6NWNhNzVmN2YtNTQ1Yy04ZjRhLTk0NGItN2Y2NTBiZGNmN2QwPC9zdEV2dDppbnN0YW5jZUlEPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6d2hlbj4yMDE1LTAyLTI0VDEzOjI2OjIzLTA1OjAwPC9zdEV2dDp3aGVuPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6c29mdHdhcmVBZ2VudD5BZG9iZSBQaG90b3Nob3AgQ0MgMjAxNCAoV2luZG93cyk8L3N0RXZ0OnNvZnR3YXJlQWdlbnQ+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDpjaGFuZ2VkPi88L3N0RXZ0OmNoYW5nZWQ+CiAgICAgICAgICAgICAgIDwvcmRmOmxpPgogICAgICAgICAgICA8L3JkZjpTZXE+CiAgICAgICAgIDwveG1wTU06SGlzdG9yeT4KICAgICAgICAgPGRjOmZvcm1hdD5pbWFnZS9wbmc8L2RjOmZvcm1hdD4KICAgICAgICAgPHBob3Rvc2hvcDpDb2xvck1vZGU+MzwvcGhvdG9zaG9wOkNvbG9yTW9kZT4KICAgICAgICAgPHRpZmY6T3JpZW50YXRpb24+MTwvdGlmZjpPcmllbnRhdGlvbj4KICAgICAgICAgPHRpZmY6WFJlc29sdXRpb24+NzIwMDAwLzEwMDAwPC90aWZmOlhSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpZUmVzb2x1dGlvbj43MjAwMDAvMTAwMDA8L3RpZmY6WVJlc29sdXRpb24+CiAgICAgICAgIDx0aWZmOlJlc29sdXRpb25Vbml0PjI8L3RpZmY6UmVzb2x1dGlvblVuaXQ+CiAgICAgICAgIDxleGlmOkNvbG9yU3BhY2U+NjU1MzU8L2V4aWY6Q29sb3JTcGFjZT4KICAgICAgICAgPGV4aWY6UGl4ZWxYRGltZW5zaW9uPjI3PC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjI3PC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz51EJCFAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAL9SURBVHjavJZLaNRQFIa/O0nm4UwfVouttiC1PkEUrRtdKBatiC4FEQQFwY3dWhBBBF3pTtyoaxE3ilIEERREQcRHfZf6wkdL7XNenUkmyXVxayaZqULttD+EzNxzc0/Of/7zE0FX9zHgNGAweygApwRd3ZI5Qggwi/8EOC6MZGEoA6at1ioDUwcsIEJIQK4AjmTX5qXEDY2b7wZxknmoiYI7YwIsvciqC47k8sENHNnUDEDPQIqOi48ZTJsQMypCo8LYBB0blniJANY1VnNyzxpImRXrmYLjUh8Pl21YlAiDlBVOVhvj9rMfvBlMe0uulJy/1wfxykxFsWcxg2QyT9uFR5xqX04ionHl6XdevR+EBXFwZLBCIZRSLRuyBUBCWIeoDpqAKcgQdHWngCrE5AFDWUjlVTSqQ0MVGBrkbXX9QVSHjAmJCOuaazE0wefRCUYH0uolyhWcLlZmuaALrnVuoSER8ZaP3nhN7/Of7Gxv5cS2Vq+o/VdfEKuNcf1QGxubagAYzlrc7Rvm+K23/OxPQd28QELd1yBAsG9tY2COF8bD9CbzLFsQZ2tLnbd+tmMle9Yson6eEdh7YP1itrcuZNWZeySzVmBkQj5CAfg2nguOve2CoZExixRK4HBbUyCRHw2JMJ07VkDa/Isap4E/hY/nCpy+84Fz9z9hlzjM3hX1UBUB252Cxul6j+Oy7dITeh58Ain5lbM4t3u1F19cHVEUWs7Mk30YytLzcRha6iBl8vDLWCCuCpUzpxFgZMJSP7QQaIKC65Ykk2Wz9t/JspYDBcdroBBiGnY1TWhCqIErEc2sJJuZEc9pMll0AT8MTYDtEjWC7zU/ZhSNWUq1j6DzUCJIvTTty/4UTTVRbzljOhAzGM4W+DqW80k/o5Q4qciM6QTiP5L5Mu6Kru9VWKJXv8oCMVGuin89O+n6Qd5sNzgfRkhVYLsB6yEkVExOStGV6jvGL09D858c1oFISZPKO+tKdXi4JCZ9dzFFPIiIDnTO1Rfx7wEA4YQP61bPS5MAAAAASUVORK5CYII=") -} - -.followus .instagram,.icon.instagram { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAJnElEQVRYw4WXbYxdR3nHf88zc17u3b3r9a6zydqO49hgzNoiJuEl1CFNEDhV1IQqEJQPjdSG8qI6kkHiS5MGiqClpbSAKlHaKpUQoR8AUUgrFWLUkDZOwFaICTVxTBySze7a3rXX6929b+ecmacfzl3XQg4daXTu3Hvn/P/zf56Z5z/CazcFuOu+p0eSpLkHZJuajTmLeRIt82aaRPBmuBDx0aKLse8CPR9s0VfxparoHP309/ctD94XLwcil/ty67Y7dO/Nf7YP1QMI7xKz1JnhYySxiI9GYoaPhosRH8FFwwfDRXCDp48UrrL/1Cp8+Wu/+MvHDi8cjP8fAb33/Y9v8Onwwwi/qxZRapDEIkk0klgT8LEeu2gDFawmYjW4RlADQQBF4N+LqvPBjx668+ylalxKQD98+8HNLmseFGyHmqGXrDqJoQYfEPEDJdyaEgZqhrMaUhBEBEEHMAoiJ4qq+54/fOr3ZtZIXCTwR3v/pdkamjykwp4aPOAtkMRApsYVm5uMrE/JUiVx4AQUQ22QLNGgMkI/0D/Xo/3qKgRBREEUQTEEQ44udM/s3f/MfR0Av7b69en4g66q9igRZ4HEAiMjjnf+wU6m3nM12ZBHRF4zY83s4u9mRrlaMv39lznx8DGqlaImgsNE9kzmYw8CDwFRAPb/1j+OrW9sfsUThz2BJFaMTWZ84G9voTXRJIbI2RMLtE+vUHULqCIYYIYYIINIe8U3EpqTLcbeMIE4pXOqzeH9P6R/pg/iAMVEVmc7p6750LP7Fz2gY9noXZkUw7XkFYkE7vzUbzNy5RAvP/kST3/+CcLZLqkIDnAWUbNaVAOJF9eCRSNYIJlosuehdzN50zbe/Jm9PPOhxwZhdxg6fFU2ehfwzwqQEm9LY0keC3Iref3bJpjYMc65Xy5w6IH/IDnXpSXGEJGmVTSoaFhJbhU5JbkUNFxBQwuGh5VdH72RK3dcwc8+9j1WTp5ldPcVbHjrBnys8FR4q0ix29YOG82IU7mVNKyiEQu2vn0SgBe/c5RmFcgHYJmVZFaSxpLECvI0kiWRJBYk1iel4Jp7drPtw2/nui/cQUON2W89i5kx/o6NeKtqEhZIzKYA9YDmFiYaGKmVOCtZt7mFmdE5fprcShIZ7G8M54WNH7ieK++8jsbm9QB0pxeZ/+5POfPNI6wc/RWhcyMXjk6ThB79508B0NzSwllJnTwATADqt4+83udWNnNizS4WZMMJIoIur5JaRUJ9JqTDKW/80j20dm+qM32pDUBj6zhbP76P8Vt38uKBb/DMLX+BRCETj3Q6iAh+OMVZhciAgklz19A276dGd2hulU8tkFiFtxKfuHpv9nqkVuDNUItsf+C9tHZvYvXELC995tt0j80iQGP3ZrZ98m5ae7ZwzZ/czqsPfhtEgYj2CwBcpjWBKJgKhvi3jOxUHXG5plZqRklmBakV9VwgiT1S+iTWp7VjjLFb30hxdpkXP/IPyPNzDKtjSB16bI6TH/kq5flV1t/2JhrXjuGswlmFhqo+clVwWqIEnAWcBR31TdVUjNwKzSjItU/uu6gYZkbu2+TpClm6wvq9WwFYfPQQWfsCiVR4AgkRTyQ932bx0Z8A0HrH63AElIBahZmBGCrlgEQ1IGL4VEsaSYeGliTaw9NHJSIiZHkHzduIGdkVOSKCnZoly7qIeYgeqxSLghmE6QVEhGR8CEfEALE4qAmgFhGpMBFc9OpF8Inv08xXaLgKL30cBaJ1scqyLpp3EDNs5ezFhAt5B8xDcJj3WKmEUsm3jAMQzl5ALQyq3VrhM5SA4IgSECFGq1BxXZp5J+b5KnmjTZa3EaknpY0+aaNH1uxRHTuCmdG6/VaSCU+SteueruKzNulVnnXvvREzo/f0L3DEAWCsQ2AgFhACSkS0IlChq2GZNG/HLO+QZV2yvAsWMDOSRknS6OEbffTMcbpHDqGj6xj780+R7tqCZl0065BddzUTf/cJdN0wq48dhlfmUGLd3Zofqsfyfz2er5ajPzz/akyzqSr1IfVSIhQQisHeNbTfR6Q+P7pf/zxu7HNkr9vF6F99AVtZrit/q4WI0P358yx/+WGSDGIhxABkWudOv0QxzCJIQEyrHy//En9scbFKsl4vSULTSYlYCb3axvl1ObLSRwdl1seCzpfup3/z+8hvuoNkcgtglDPTtA/+gP6/HSSNjphlCIb1E1wrrwVY6Q4S0ohmGKF3vHOq8kCUpDvvUxtzUm+ReG4auIHk2u3Y/HMXCWCCCyXxiUfo/PARAhmxUrRvuJCSuZSYpbVcFnExkk1tBKCcXkAwGIQgWpwHogKxkO4Jl/ZxWYnLS8LJJzEzspvehzZA0wLNyotPn5XkeaDpuzR9jyyvcFmBSwtc2q//l/TRZqR19811XTn0PCq1J8KMbuifuEhgqWw/7rIK16hwjQivPkk4/QJu4w7Se/8a2bAByQzJB71haB7QNODSEk0qNC2RpEB8gfo+brLF+s8dIL12I71jL1P85IWBArUK58vVx9dchB7Yu2nrQ7+z5eeNnKaqIRqpWhvJ7/573MhVWAzYmeOwfBorelBVEAyLBqEOjZkDScA3kPFJ3NbtiHMUc/PM3/832ExBtJQoCT2j88WZH+36p9OHptdMXvrsA9d/8Q2TjT92qSBeQKFMRtE330e6/d1oNnxZ//da49hepf34j1j92vfQcxD6TULZoMJxsnfhK/v+5ysfB4q1WfqunaObv7F/9w/Gx/KdkijiFFSJBmV02NAmSEdBMzAHEayy2h8WEesHrFMSl3uEhSXi9ALaS7F+Tug1Cb0hyl7OYhmO33/yu7c9tfLyDBDXjgn71dleW1N35IZdE/vyVnOd5DmSZ2iW4RspiXZJwhK+XMAXp/HdU/jOHH51Frc8i7swiz8/h1s6g1tdwYX69WYeM0cIjqWimv7q3JHf/9fFYy9QBw93qbV+6oWlM3NLxRPXT101NTQ6vEXzHMkySDMkySBNEZ8iPkGcB+8Q78E5UAeqay4PM8UqIUalqJSZdve/PvvSUx98ZP65owNwu+zVDFDnZOLhP73lznfecPW9ExuG35Z451WltuAWIUQoA1YGKEusX2HdEmtXxNWKsBypliP9RatOL4TDh2YvfP3ATw8/GszmB9Y4/sbL6YBICozd8tarN95z+9SbNk20rhluJqNeJFUxrzGqVaEmUlRYv4xVp6zKdlWsnC+WZk53XvnWz2ae+++Zc3PAIlBc7oYs/Oa2pqm/5Hnx6n6ZtgZQDT5Xv77iX2//CwOk7MFopqLgAAAAAElFTkSuQmCC") -} - -.followus .googleplus,.icon.googleplus { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAuCAYAAABXuSs3AAAAAXNSR0IArs4c6QAAA9lJREFUaAXtmX9IU1EUx882tznnr0ynGREpFvRfkWZ/FCRSRGQWmEgU/VF/FNEPqD8LwiAoIUihfyMoSyywoP6oDCEtqUj6IWRIhKVu/pq2qU+39zrnuvt82x6Mt+3pgl04vHPPu+/cz/t6d3bvBPhPm0GFWy2mMmzJQ5JyRiUk+aaAka+8p3xmqX0CJvMHjL1AioLC9KayvCrPZm00GYyFiviyu35JHHTNzp3e/uLtU4TxEZAxQEXqmhMRmvhISEeqpYkY0dhKUIJbEk1pguYtwGbBfjg4H5TAV1Vw5XpPVHZiDFKcQFkgUYkDXDIjX+MJzhuOlwQP10TfSFJxffUNz55UPFwTfSMxfekY7HbIPlgH9i1bwZyP+zKssvPOIfB+6AZ36z2Qpqd1o48aPG1zGeSePAdmR0EQnHVtEZBl7KgAZ1MDCD0fg+7HqxMVuG1TKRRcvgYGw8IX2dyIC2a+9zIm24aNYMlzgOT3g2/wd7w4w/JoBjek2SHv1HkGLfp8MNZ8ByYfPwCDKLLkktEI6bv3wUx3J4jjo2ETxiugGTz7QK28PCYeNcNU6/2gTQ69gPd5W0S+4rZ2NqZ/f0XEsWoDNJdDe2k5yyPiB8/dclct55LENCtuLljNwISfP/AQRcfAxcZVXIwseJ7ODnBev8I6oWN4X6vymhWXJH7YlneYoZzhfROdwePbNCvuc/4B07oSsBaV4AkQj4Dz8zLRcGOD7JuysiDv6AnW942PyfG+qp3MX//kNbvyvilQoeSBERzNinvedbGURpsNcuqOBaX3vnwG3ExmOmUtNKH3C3fx4GtgxgOhfR6PdNWs+GRbC2RU7AJL/irIrj4EEpbEiYf4IcW6zVvm3mpYUXOYdYWBX+Dp6uC35Gu0SvMEmsGlmRlw3boBhfUNYMS1m1N7BDIr98Bsfx+AKOESKpbLpYilceT2zaCX4hNrXRr8OX7VDE4PCl97YPDSBXCcuciUT1mZC+loyuZzT4ALoYVvn5XhuPlRgdPsBD9w9jhkVtWAvWwbWAvXBDZZw+D99B4m8ctJ+jsVN9DQRFGDs0S4bKZwfZPxIglYLvkeJnSyePZjA1eQyFVdY1lTpNDkai6HmrLrODgJrqO4qqmTiqvKomMwqbiO4qqmTiquKouOQaXioiD6XTrOFVPqANvCTwmYiYPTVsPXPjR6VfD7R2KaQYeHienV8Fg9MaKxbRHfYtALpKPlo+WgpaLxe+guayPQWbRxNCeaB03kmyy6KaC5KYhG5y7+10B3WRvxzKHRHpkYgxTHPgOlf4ASNL1QIilOS4Tg6WTO1vk/yrUG/vk8ZeYAAAAASUVORK5CYII=") -} - -.followus .reddit,.icon.reddit { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAACAUlEQVRIS+2TTUhUURiGnxm1zJ9KQScVmxT/MlJQCFNQNyJBZLrSQPyBNokbwRKNRBdGCG1EWhg06kLd+L8RQRRJJNBKURyVURjFRJhSw4pJRw4HnWQu3rloO7/Vved8533Oed9zdI4sHPzH0l0A1NzVbpG3L3h6wc8fUjvAADod2L4psrQDntRAaBToPWDfDml5oNdDSQx833SBaAc8b4PGInA4IPAGmJbltwDYNs4B8KId3hQ6ha4HS8D21jlYZDDCg6dgeqmW7fG8ukV+AZCaA8Y7EH8fRMhfRsAyA5MDsGs7FeYKiEyE/CqwmsHrMuSUwRV/ZZFfu9DXDPbfcPM2dLwGy9cTva6AljkwxrttwYnGNTOUxqkA3s/L3RxVczlMDkJ9P0TclaMrs/DqEaQ8hLImZ+/aIpTGqgCEyLvP8p6LKoyAzVWoNEFWkRwbboXGYjDcgvYVOXawD8+SZDb/lHLIvdvgc9W52+VpyMyXmYiy/4HRTohKcp5qbwceX3OxVhlQ2w1pudpy+NgDdXluAoLC4e04iHsvHpFYmJgJ0clSYGkK5iegpkv+Cwsr0mHL6iZAtIVEQnUHxN6Dv3aYGYP1RSkQFgMJ6eB5CcyfoKEANiyKJ1Z/aAkZkF0C4XEQFi1F1pfAugBDHyT4lFIHaEtCg0VnFD5afnECVSMPAeyytmHDG1/pAAAAAElFTkSuQmCC") -} - -.followus .rss,.icon.rss { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB0AAAAdCAMAAABhTZc9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NTc3MiwgMjAxNC8wMS8xMy0xOTo0NDowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo0NzZiMjA1Zi00ZGUxLTZiNDctOTMyMC03ZWY5NWQ5OWI3MzEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QTUxRjNCOTIyODA5MTFFNjgyRDVDNTkyQTkzNDdBRjYiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QTUxRjNCOTEyODA5MTFFNjgyRDVDNTkyQTkzNDdBRjYiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTQgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NDc2YjIwNWYtNGRlMS02YjQ3LTkzMjAtN2VmOTVkOTliNzMxIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjQ3NmIyMDVmLTRkZTEtNmI0Ny05MzIwLTdlZjk1ZDk5YjczMSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pmuk6osAAAF9UExURfTr3vT08/eiNPTw6vXWrfTz8vXewfegLvXiyvefLPejN/XjzPbBfPTu5vimO/a/ePilOvinPvXfxPbAevTy8Pa2YfenP/XgxvXXr/XRovTn1PipQ/ayWvXewPa0XfXWrvXYs/XTp/a1YPbFh/XOmvTs4PTt4/XUqfa1YfXSpPegL/XVq/ekOPeqR/XQn/To1/Tw6/egMPeoQ/Tx7PvPlvilOfekOfbGh/a4aPbEhPXiy/auTva5afawU/Tm0/bAe/epRPTx7fa6bPXbuvbIjfXJj/a7b/XgxPTp2/XLlPayWPejNfTz8fXdv/XjzfXKkvXNmfeqRvTv6fepRfzWpfbEg/Xcu/Xbufa2Yvzcs/a8cPXYsva1X/ioQfXSpfbJj/Tt5PTn1fXZtfXUqveoQfTq3Pa0Xva9dPa8cfa3ZPXLk/awVfXUqPXMlvXcvfTv6PemPPTm1PbGiPirR/auUPayWfa3ZfTy7va6bfzWpPelOvXfw/imPPT09PeeKmiQOqoAAAFoSURBVHjafJJlY8IwEIaDU9yHO0M3mLu7u7u7+1buty9Jw4BReL/cNU96GrT1YuLFZfB8IQ9UF4/aalAD4gGsoQVjYkUq9i+m8jyW3jIV/hajobwgyYRVU0nj+T9pLznRyEyKgOMf3Xw+cN27JYx3v5VTIm6pMz0k4Hp7BcVSve5/UHz4Xkob9dm5Oz8p1/5EcaynhJ7Qcny6doCGdYrrHov0ltWjDgNonNRNinQkWwPI/FDvvJg3JivwDhx8kjhBVYGe9iV0AeGCQgewTTpvuSrtSOVVUvwwDakR4jhTZf1KoxRvNMHnLNnZYPk0wEUX1QszNIyxQI3a3NGYCqT0VCmFUWLjjPpt5KsLYFiBre0GdkmJ84ymhfng1BbiRMCBsDlj9FiYFE5xTRw5cFpsEKPjlC5iesGu+cgiGeWiy5LcTgZTr9bdnw3i2SKE1ISa8KFmIBlpFn3P5hqv3YRW9/hqMrf+CjAAaC1Z2TOY0NQAAAAASUVORK5CYII=") -} - -.followus .periscope { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB0AAAAdCAIAAADZ8fBYAAAACXBIWXMAABJ0AAASdAHeZh94AAAAB3RJTUUH4gQVEAg4+eKAogAABDhJREFUSMedVk1oXGUUPfe+N/Mmk0x+GpM0TdOaBlOpSgXdtAoVhUrBuhGKK0EXrrpyIYi4KxQXrYhUcSFaEWtFpVJxI/5iKoVWa9pqUmObnza/k2Q6M3Ey8953j4sXqyGZJPZbPXjvO+9w7zn3XHnkgx+xjiMgIAAAcvFhtaNrfyECkhACBAgRcE1gf3WOhBgJkeaUf0c6cMap+XI+dLfe/n9ckiJC7utue7y7rasxXeurEYXQ9U3lT10ZuzCZBwkAsgK6rFxfEiKbM6mXdt21o6V+xf9+2j927PzVGHk5tL8cUQQU6axPHXnsvpZ0MjSKQAkzp76vQATA7Km7N2UC/3DvFRHhOuuQ8OTl3T0t6WTFzBNRILw5d+2NV8uT43X37mx78kC6o7Pi3N6u1j9mip8MjAvA1fUgACFPbGvd3pwpG31VJWmWbGxq2b3H9V/Kff7xwAvP5y6c8zwvcvbMzq0bUj4B0KrjkgQ8cH/PJiNUZe78WVcpi+dBJGhrD2pr000b/Pn88NFDldlZE80kvL1drQBUtCquqkBkW2N6S0ONCRhGY28dzX72IcsLlezU9Mn3ATByydoMJ25kv/pCFQQe3NQkoC3lu7S+BICuxloPqAALo8Nudnr2o+Pzvd9F80U3OyPJADQSvu+Xfr9ogE+016VSKiWLBS0r9o2AZIIERQhExYKSGgTl6yNQ0VSKZgSEEFUulGhwitpkIuV7pYoT+bd7uqxtiMwAGJBs2SjJJM00CMTzF10AiAqd85uaY3KRmTNbbT7E94bmigDEMdm+seae+6NiAepBhGTsQQBmrH/oUQoUmCguFEIHkqyGSwLonymOF8u+wojW5w5qa3t0c26xrb4Ps0p2OrN3f/3De6KIAvRN5CiqssR1S+sgIrQypXc064tEkQWbOzsPvZ56YJdzLirko0Le+X7D08+2H3yRBk9Qcfx6aAqAcVW/xSPqVP+Nfd0bEwl1oQVb79x86LXSlYFwfBTqBdt6Uh0dNERmdb5+M5z9M1f6rxKq+5g29lf45eDEgR0dBQEcBazp2Z7u2R73wCJH8TyVBeOJi0MQWY67bK5LXCeeuDwyNl8OPDGShEXmKpGrhBY6ika0GpXTA2ODN8swB9V15IUIyFzFjp0dTMo/+hOB58NLQNWRaU+H8qV3fxmqNt1XziECMHdmPHfyt+t1voakAQQJGuEBkdmRMwMlAqSorjvfRAmB2ds/X/vpxlxDQp0xNouRaV/fPHf10sw8zFWLoqq5GbMg5HDvwK/T+YaEhkaY1Sf0+MWR04OToEFkxRBaK49VQRZC98q3l78fyTYmtCbhvXNh+L2+UZgjAalOq+r+EEuHBA3q0WzPlubcQtiXLdI5iEh1sqvmcXxHBOLFE+eH63OxukVlUSG3tz8s8TegIAmuhbjefecWtBGssi3cLl8A60aMz9/uIDYzpseL+gAAAABJRU5ErkJggg==") -} - -.followus .email { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAWCAYAAABOm/V6AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gQVECMqfCsMgwAAAshJREFUSMfF1s9P02AYwPFvyxwbHRuMrYOVVgS2BRNBDfHqxXDxz/Bq4sH/QA+e/B8MR+9e/QcUMk0IMBRho4R1g7LRbmPA6mFuqLAxfj9Jk6bv276fPHnep6+QnJ3xAq+Bl0CEm41PwBsX8AJ4y+3Ec2DYBbwCCClj7O1k6Q3KRO5OXNuqlVKRjVQSr6+PXSMDMCUCIwCylkCJTWHt5smuLV4LYL9ssZFK4g9GUMYnm8/Fvyd5fX1Exx7UIetXC6mWbTLLc/gHBpG1+D9jIuDUb51jyPgklpknu750NYBKifTSVwKhKOHhGCCcQJwIry+AEptizzQw0suXByx+oS+sEFLGEQThxByx1cseyc9w/BHFnSy5zAqO41wYEAgrDERHTwW0RQB4enpRE48pbG+S13/iOLVz1UADEIqOIoitlxLP+li314eWmKaQ09nWV3FqZ0P2Sxbp5TkC4SghZawtoCMEgNsroU1Ms5vTyW+uts1IpVQkk5rHHxxsWQMXQgC4PXVIIaeT11dPrZGKXUBPJekNRpC1eEeAcyGqlRJGOoUUCFHI6+QyKWpHh81xu7CNvvKd7h4fFbuImc10XD+uzgA2RjqFRwoQUkbZL9ts/vjG4UGVbq+PWu0Qy8zROxBBVuNU7CJGJgVAf0S9fCb+B9SLVUK7/wTXHTd2cYdq2SasxpDVeHN7y2qcPdNo/B8unoljgL8JaERXlwtZS9Cuz8hqrN5jgH5ZPX8mGjXgkfwMREcv1C09kp+wGsPaaZ8R8biRH1fywX4ZI71cBwzd67jKW2ZES7BnGpgtICJQBZpN6KBaIbu+hEfyExwaObPRdBLdPT5kLYFlGqfuGhGYB9haW+Do8ICtXwt1wKCGIAg4Tu1KLrenh7AaxzKzZNcWsXZzDUNJSM7OPPtz1nPf0hHvowv4DDwF3gEPAekGFnaADPABeP8bNrJaPIc3C6EAAAAASUVORK5CYII=") -} - -.gc-followus ul .facebook::before,.gc-followus ul .instagram::before,.gc-followus ul .linkedin::before,.gc-followus ul .twitter::before,.gc-followus ul .x-social::before,.gc-followus ul .youtube::before { - background-repeat: no-repeat; - background-size: cover; - content: ""; - height: 38px; - margin-right: 10px; - min-width: 38px -} - -.gc-followus h2 { - font-size: 1.6875rem; - margin-top: 0 -} - -.gc-followus ul { - display: block; - font-size: 87%; - font-weight: 700; - list-style: none; - -webkit-margin-before: 1em; - margin-block-start:1em;-webkit-padding-start: calc(1em + 6px); - padding-inline-start:calc(1em + 6px)} - -.gc-followus ul li { - margin-bottom: 21px -} - -.gc-followus ul li:first-child { - margin-top: 34px -} - -.gc-followus ul li:last-child { - margin-bottom: 15px -} - -.gc-followus ul li.more-ways { - display: block -} - -.gc-followus ul li.more-ways a { - text-decoration: underline -} - -.gc-followus ul li a { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - line-height: 1.54; - max-width: -webkit-max-content; - max-width: -moz-max-content; - max-width: max-content; - text-decoration: none -} - -.gc-followus ul li a::before { - margin-right: 10px; - margin-top: -6px -} - -.gc-followus ul li a:active,.gc-followus ul li a:focus,.gc-followus ul li a:hover { - text-decoration: underline -} - -.gc-followus ul.list-inline { - -webkit-padding-start: 0; - padding-inline-start:0} - -.gc-followus ul.list-inline li:not(.more-ways) { - display: inline-block; - padding-right: 0 -} - -.gc-followus ul.list-inline li:not(.more-ways):first-child { - margin-top: 0 -} - -.gc-followus ul.list-inline li:not(.more-ways) a { - border-radius: 100%; - height: 38px; - overflow: hidden; - width: 38px -} - -.gc-followus ul.list-inline li:not(.more-ways) a::before { - margin-top: 0 -} - -.gc-followus ul.list-inline li:not(.more-ways) a:active,.gc-followus ul.list-inline li:not(.more-ways) a:focus,.gc-followus ul.list-inline li:not(.more-ways) a:hover { - outline: solid 2px #0535d2; - outline-offset: 1px -} - -.gc-followus ul .facebook::before { - background-image: url("../assets/gc-follow-us/facebook.svg") -} - -.gc-followus ul .twitter::before { - background-image: url("../assets/gc-follow-us/x.svg") -} - -.gc-followus ul .x-social::before { - background-image: url("../assets/gc-follow-us/x.svg") -} - -.gc-followus ul .youtube::before { - background-image: url("../assets/gc-follow-us/youtube.svg") -} - -.gc-followus ul .instagram::before { - background-image: url("../assets/gc-follow-us/instagram.svg") -} - -.gc-followus ul .linkedin::before { - background-image: url("../assets/gc-follow-us/linkedin.svg") -} - -.shr-pg a { - background-image: none -} - -.followus { - background-color: #eaebed; - display: inline-block; - margin-bottom: 15px; - padding: 10px 5px -} - -.followus h2 { - display: inline; - font-size: 16px; - margin-left: 5px -} - -.followus ul { - display: inline; - margin-left: 5px; - padding-left: 0 -} - -.followus ul li { - display: inline-block; - margin: 5px 0; - padding: 0 -} - -.followus ul li a { - border: solid 2px #eaebed; - padding: 10px 17px -} - -.followus ul li a:active,.followus ul li a:focus,.followus ul li a:hover { - border: solid 2px #0535d2 -} - -.followus .youtube { - min-width: 38px -} - -.followus .googleplus { - background-repeat: no-repeat; - background-size: 35px 35px -} - -.icon { - background-position: left center; - background-repeat: no-repeat; - display: inline-block; - min-height: 32px; - min-width: 32px; - padding-left: 35px -} - -.icon.youtube { - padding-left: 45px -} - -.icon.googleplus { - height: 45px; - padding-left: 48px -} - -.gc-minister { - margin-bottom: 15px -} - -.gc-minister h3 { - font-size: 20px; - margin-bottom: 15px; - margin-top: 15px -} - -.gc-minister p,.gc-minister ul { - font-size: 17px -} - -.gc-minister img { - border: 1px #ddd solid; - margin-bottom: 15px; - max-width: 100% -} - -.gc-most-requested { - background-color: #f5f5f5; - margin-bottom: 20px; - padding: 24px 0 12px -} - -.gc-most-requested h2 { - font-size: 22px; - margin-top: 0 -} - -.gc-most-requested ul li { - font-family: Lato,sans-serif; - font-size: 18px; - font-weight: 700; - line-height: 1.8em -} - -.container .gc-most-requested { - background: 0 0 -} - -.provisional.gc-most-requested h2 { - white-space: nowrap -} - -.provisional.gc-most-requested ul { - display: block!important -} - -.fd-wdgt.panel { - padding-left: 0; - padding-right: 0 -} - -.fd-wdgt .panel-heading { - border-bottom: 1px solid #ddd -} - -.fd-wdgt .panel-body { - max-height: 25em; - overflow-y: scroll; - padding: 0 -} - -.fd-wdgt .media { - border-top: 1px solid #ddd; - margin-top: 0; - padding: 15px 15px 0 5px; - position: relative -} - -.fd-wdgt .media:first-child { - border-top: 0 -} - -.fd-wdgt .media p { - font-size: .9em -} - -.fd-wdgt .panel-title { - padding-right: 30px -} - -.fd-wdgt .panel-title .icon { - position: absolute; - right: 5px; - top: 5px -} - -.fd-wdgt .feeds-date:before { - content: "" -} - -.fd-wdgt .feeds-date:after { - content: "" -} - -.fd-wdgt .feeds-date { - display: inline-block; - float: none!important; - padding-top: 10px -} - -.fd-wdgt .media-body img { - display: block; - margin-left: auto; - margin-right: auto; - padding: 15px 10px 5px -} - -.lt-ie9 .fd-wdgt .panel-title { - padding-right: 30px -} - -.lt-ie9 .fd-wdgt .panel-title .icon { - padding-left: 0 -} - -.pagntn-prv-nxt { - margin-bottom: 15px -} - -.pagntn-prv-nxt .glyphicon-chevron-left,.pagntn-prv-nxt .glyphicon-chevron-right { - font-size: 2em -} - -.pagntn-prv-nxt .glyphicon-chevron-left { - float: left; - margin: -4px 0 0 -32px -} - -.pagntn-prv-nxt .glyphicon-chevron-right { - float: right; - margin: -4px -32px 0 0 -} - -.pagntn-prv-nxt li { - font-size: 16px; - font-weight: 300; - list-style: none outside none -} - -.pagntn-prv-nxt li a { - display: block; - padding: 15px 40px; - text-decoration: none -} - -.pagntn-prv-nxt li a:hover { - background-color: #eaebed -} - -.pagntn-prv-nxt li a .pgntn-lbl { - display: block; - font-size: 27px; - font-weight: 400 -} - -.toc li { - display: inline; - font-size: .85em -} - -.toc li .list-group-item:focus,.toc li .list-group-item:hover { - background-color: #f5f5f5; - text-decoration: none -} - -.toc li .list-group-item.active,.toc li .list-group-item.active:focus,.toc li .list-group-item.active:hover { - background-color: #26374a; - color: #fff; - cursor: auto; - text-decoration: none; - z-index: 2 -} - -.bg-gctheme.well.header-rwd,a.bg-gctheme.header-rwd.gc-dwnld { - background-color: #26374a -} - -.well.header-rwd,a.header-rwd.gc-dwnld { - width: 100% -} - -.table-columnfloat th:first-child { - float: left -} - -.table-columnfloat td:first-of-type { - clear: left; - float: left -} - -.table-columnfloat thead th:nth-child(2) { - clip: rect(1px,1px,1px,1px); - height: 1px; - margin: 0; - overflow: hidden; - position: absolute; - width: 1px -} - -.table-columnfloat td:first-of-type,.table-columnfloat th:first-child { - border: none -} - -.table-columnfloat td,.table-columnfloat th:not(:first-of-type),.table-columnfloat tr { - border-bottom: 1px solid #ddd -} - -.wb-fieldflow-form .input-group .form-control:last-child { - border-radius: 4px 0 0 4px -} - -fieldset.gc-chckbxrdio { - border-top: 0; - padding-top: 0 -} - -.gc-chckbxrdio label { - cursor: pointer; - display: block; - font-size: 20px -} - -.gc-chckbxrdio legend { - float: none; - font-size: 22px; - font-weight: 700; - margin-bottom: 15px; - margin-top: 0 -} - -.gc-chckbxrdio input[type=checkbox],.gc-chckbxrdio input[type=radio] { - margin-left: 10px; - opacity: 0; - z-index: 2 -} - -.gc-chckbxrdio input[type=checkbox][disabled]+label,.gc-chckbxrdio input[type=radio][disabled]+label { - cursor: not-allowed; - opacity: .5 -} - -.gc-chckbxrdio input[type=checkbox]+label,.gc-chckbxrdio input[type=radio]+label { - display: inline-block; - line-height: 2; - margin-left: 36px; - width: auto -} - -.gc-chckbxrdio input[type=checkbox]+label::before,.gc-chckbxrdio input[type=radio]+label::before { - border: 4px solid #fff; - -webkit-box-shadow: 0 0 0 2px #000; - box-shadow: 0 0 0 2px #000; - content: ""; - display: inline-block; - height: 36px; - left: 0; - position: absolute; - top: 2px; - width: 36px -} - -.gc-chckbxrdio input[type=checkbox]+label:hover::before,.gc-chckbxrdio input[type=radio]+label:hover::before { - background-image: -webkit-gradient(linear,left top,left bottom,from(#e5e5e5),color-stop(50%,#fff)); - background-image: linear-gradient(to bottom,#e5e5e5,#fff 50%) -} - -.gc-chckbxrdio input[type=checkbox]:hover,.gc-chckbxrdio input[type=radio]:hover { - cursor: pointer -} - -.gc-chckbxrdio input[type=checkbox]:hover+label::before,.gc-chckbxrdio input[type=radio]:hover+label::before { - background-image: -webkit-gradient(linear,left top,left bottom,from(#e5e5e5),color-stop(50%,#fff)); - background-image: linear-gradient(to bottom,#e5e5e5,#fff 50%) -} - -.gc-chckbxrdio input[type=checkbox]:focus+label::before,.gc-chckbxrdio input[type=radio]:focus+label::before { - -webkit-box-shadow: 0 0 0 2px #000,0 0 8px 4px #3b99fc; - box-shadow: 0 0 0 2px #000,0 0 8px 4px #3b99fc -} - -.gc-chckbxrdio input[type=radio]+label::before { - border-radius: 50% -} - -.gc-chckbxrdio input[type=radio]:checked+label::before { - background: #444 -} - -.gc-chckbxrdio.checkbox input[type=checkbox]+label,.gc-chckbxrdio.checkbox input[type=checkbox]+label+ul { - font-size: 17px; - min-height: 23px -} - -.gc-chckbxrdio.checkbox input[type=checkbox]+label::before { - height: 24px; - left: 6px; - top: 4px; - width: 24px -} - -.gc-chckbxrdio.checkbox input[type=checkbox]:checked+label::after { - border-width: 0 3px 3px 0; - height: 16px; - left: 14px; - top: 6px; - width: 9px -} - -.gc-chckbxrdio input[type=checkbox]:checked+label::after { - border-color: #333; - border-style: solid; - border-width: 0 5px 5px 0; - content: ""; - display: inline-block; - height: 26px; - left: 12px; - position: absolute; - top: 4px; - -webkit-transform: rotate(45deg); - transform: rotate(45deg); - width: 13px -} - -.gc-chckbxrdio.form-inline .label-inline { - padding-right: 20px -} - -.gc-chckbxrdio.form-inline .label-inline label { - padding-left: 10px -} - -@media (prefers-contrast:more) { - .gc-chckbxrdio input[type=checkbox]:focus+label::before { - border: 5px double #000 - } - - .gc-chckbxrdio input[type=radio]:focus+label::before { - border: 5px double #000 - } - - .gc-chckbxrdio input[type=radio]:checked+label::before { - outline: 10px solid #444; - outline-offset: -20px - } -} - -.gc-features { - margin-bottom: 15px -} - -.gc-features h3,.gc-features h4,.gc-features h5,.gc-features h6 { - font-size: 1.5rem; - margin-bottom: 5px; - margin-top: 23px -} - -.gc-features p { - font-size: 17px; - line-height: 1.5em -} - -.gc-features img { - width: 100% -} - -.gc-features .well,.gc-features a.gc-dwnld { - border-radius: 0; - position: relative -} - -aside.site-related h2 { - font-size: 28px; - margin-top: 0 -} - -aside.features { - background-color: #eaebed; - background-image: -webkit-gradient(linear,left top,left bottom,from(#eaebed),to(#eaebed)); - background-image: linear-gradient(to bottom,#eaebed 0,#eaebed 100%); - padding-bottom: 1.5em -} - -aside.features h2 { - border: 0 -} - -aside.features figcaption { - font-weight: 700; - margin-top: 3px -} - -aside.features .thumbnail { - background-color: transparent; - border: 0; - border-radius: 0; - margin-bottom: 1.5em; - padding: 10px 10px 0 -} - -aside.features .thumbnail img { - border: solid 1px #eee; - max-width: 100% -} - -.gc-nttvs { - border-top: 1px solid #ccc -} - -.gc-nttvs a,.gc-prtts a { - text-decoration: none -} - -.gc-nttvs a figcaption,.gc-nttvs a h2,.gc-nttvs a h3,.gc-nttvs a h4,.gc-prtts a figcaption,.gc-prtts a h2,.gc-prtts a h3,.gc-prtts a h4 { - font-size: 20px; - font-weight: 700; - margin-top: 23px; - text-decoration: underline -} - -.gc-nttvs a p:last-child,.gc-prtts a p:last-child { - color: #000 -} - -.gc-stp-stp { - border-bottom: solid 1px #ccc; - margin-bottom: 30px; - margin-top: 15px -} - -.gc-stp-stp ol:not(.col-md-12),.gc-stp-stp ul:not(.col-md-12) { - margin-left: 0; - margin-right: 0; - padding-left: 0 -} - -ul[class*=cnjnctn-type-] { - list-style-type: ""; - padding-left: 0 -} - -[class*=cnjnctn-type-] { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: vertical; - -webkit-box-direction: normal; - -ms-flex-direction: column; - flex-direction: column; - -ms-flex-wrap: nowrap; - flex-wrap: nowrap; - margin-bottom: 15px; - margin-right: 0; - margin-top: 15px; - min-height: 3em; - position: relative -} - -[class*=cnjnctn-type-]>[class*=cnjnctn-col]:not(:first-child):after { - border-left: 3px solid #6f6f6f; - content: " "; - height: 100%; - left: 0; - position: absolute; - top: 0 -} - -[class*=cnjnctn-type-]>[class*=cnjnctn-col] { - width: 100% -} - -[class*=cnjnctn-type-]:not(.brdr-0)>[class*=cnjnctn-col] { - padding-left: 15px; - padding-right: 15px -} - -[class*=cnjnctn-type-]>[class*=cnjnctn-col]>:first-child:not([class*=mrgn-tp-]) { - margin-top: 15px -} - -[class*=cnjnctn-type-]>[class*=cnjnctn-col]>:last-child:not([class*=mrgn-bttm-]) { - margin-bottom: 0 -} - -[class*=cnjnctn-type-]>[class*=cnjnctn-col]:not(:last-child) { - margin-bottom: 1.8em; - margin-right: 1.5em -} - -[class*=cnjnctn-type-]>[class*=cnjnctn-col]:not(:first-child) { - margin-top: 1.8em -} - -[class*=cnjnctn-type-]>[class*=cnjnctn-col]:not(:first-child):before { - border-color: #6f6f6f; - border-style: solid; - -webkit-box-sizing: content-box; - box-sizing: content-box; - font-size: .8em; - font-weight: 600; - height: 1.8em; - left: auto; - line-height: 1.7em; - margin-top: -3.8em; - padding: .3em; - position: absolute; - text-align: center; - width: 1.8em -} - -.cnjnctn-type-or>[class*=cnjnctn-col]:not(:first-child):before { - border-radius: 50%; - border-width: 3px -} - -.cnjnctn-type-and>[class*=cnjnctn-col]:not(:first-child):before { - border-width: 3px 0 -} - -html:lang(en) .cnjnctn-type-and>[class*=cnjnctn-col]:not(:first-child):before { - content: "and" -} - -html:lang(fr) .cnjnctn-type-and>[class*=cnjnctn-col]:not(:first-child):before { - content: "et" -} - -html:lang(en) .cnjnctn-type-or>[class*=cnjnctn-col]:not(:first-child):before { - content: "or" -} - -html:lang(fr) .cnjnctn-type-or>[class*=cnjnctn-col]:not(:first-child):before { - content: "ou" -} - -[class*=cnjnctn-type-]>.cnjnctn-col-90 { - -ms-flex-preferred-size: 90%; - flex-basis: 90% -} - -[class*=cnjnctn-type-]>.cnjnctn-col-80 { - -ms-flex-preferred-size: 80%; - flex-basis: 80% -} - -[class*=cnjnctn-type-]>.cnjnctn-col-75 { - -ms-flex-preferred-size: 75%; - flex-basis: 75% -} - -[class*=cnjnctn-type-]>.cnjnctn-col-70 { - -ms-flex-preferred-size: 70%; - flex-basis: 70% -} - -[class*=cnjnctn-type-]>.cnjnctn-col-60 { - -ms-flex-preferred-size: 60%; - flex-basis: 60% -} - -[class*=cnjnctn-type-]>.cnjnctn-col-50 { - -ms-flex-preferred-size: 50%; - flex-basis: 50% -} - -[class*=cnjnctn-type-]>.cnjnctn-col-40 { - -ms-flex-preferred-size: 40%; - flex-basis: 40% -} - -[class*=cnjnctn-type-]>.cnjnctn-col-30 { - -ms-flex-preferred-size: 30%; - flex-basis: 30% -} - -[class*=cnjnctn-type-]>.cnjnctn-col-25 { - -ms-flex-preferred-size: 25%; - flex-basis: 25% -} - -[class*=cnjnctn-type-]>.cnjnctn-col-20 { - -ms-flex-preferred-size: 20%; - flex-basis: 20% -} - -[class*=cnjnctn-type-].cnjnctn-xs { - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -ms-flex-direction: row; - flex-direction: row -} - -[class*=cnjnctn-type-].cnjnctn-xs:not(.brdr-0)>[class*=cnjnctn-col] { - min-height: 3em; - padding-left: 0; - padding-right: 0 -} - -[class*=cnjnctn-type-].cnjnctn-xs>[class*=cnjnctn-col]:not(:first-child):after { - -o-border-image: linear-gradient(to bottom,#6f6f6f 0.3em,#6f6f6f 0.3em,transparent 0.3em,transparent 2.35em,#6f6f6f 2.35em,#6f6f6f 2.35em) 1 100%; - border-image: -webkit-gradient(linear,left top,left bottom,color-stop(0.3em,#6f6f6f),color-stop(0.3em,#6f6f6f),color-stop(0.3em,transparent),color-stop(2.35em,transparent),color-stop(2.35em,#6f6f6f),color-stop(2.35em,#6f6f6f)) 1 100%; - border-image: linear-gradient(to bottom,#6f6f6f 0.3em,#6f6f6f 0.3em,transparent 0.3em,transparent 2.35em,#6f6f6f 2.35em,#6f6f6f 2.35em) 1 100%; - border-left: 3px solid #6f6f6f; - margin-left: -1.6em -} - -@media (prefers-contrast:more) { - [class*=cnjnctn-type-].cnjnctn-xs>[class*=cnjnctn-col]:not(:first-child):after { - -o-border-image: linear-gradient(to bottom,#fff 0.3em,#fff 0.3em,transparent 0.3em,transparent 2.35em,#fff 2.35em,#fff 2.35em) 1 100%; - border-image: -webkit-gradient(linear,left top,left bottom,color-stop(0.3em,#fff),color-stop(0.3em,#fff),color-stop(0.3em,transparent),color-stop(2.35em,transparent),color-stop(2.35em,#fff),color-stop(2.35em,#fff)) 1 100%; - border-image: linear-gradient(to bottom,#fff 0.3em,#fff 0.3em,transparent 0.3em,transparent 2.35em,#fff 2.35em,#fff 2.35em) 1 100%; - border-left: none - } -} - -[class*=cnjnctn-type-].cnjnctn-xs>[class*=cnjnctn-col]:not(:first-child) { - margin-left: 1.4em; - margin-top: 0; - position: relative -} - -.cnjnctn-type-or.cnjnctn-xs>[class*=cnjnctn-col]:not(:first-child):before { - margin-left: -3.3em -} - -.cnjnctn-type-and.cnjnctn-xs>[class*=cnjnctn-col]:not(:first-child):before { - border-width: 3px 0; - margin-left: -3.15em -} - -[class*=cnjnctn-type-].cnjnctn-xs>[class*=cnjnctn-col]:not(:first-child):before { - margin-top: .3em -} - -[class*=cnjnctn-type-].cnjnctn-xs>[class*=cnjnctn-col]:not(:last-child) { - margin-bottom: 0 -} - -[class*=cnjnctn-type-].brdr-0>[class*=cnjnctn-col]:after { - border-left: none -} - -ol.lst-stps { - counter-reset: item; - padding-left: 0 -} - -ol.lst-stps,ol.lst-stps-sub { - list-style-type: none -} - -ol.lst-stps>li { - content: counter(item); - counter-increment: item -} - -ol.lst-stps>li:before { - content: counter(item) -} - -ol.lst-stps.ld-zr>li:before { - content: counter(item,decimal-leading-zero); - font-size: 1.4em; - padding-left: .5em -} - -ol.lst-stps>li ol.lst-stps-sub { - clear: both; - counter-reset: subitem; - padding-left: 0 -} - -ol.lst-stps>li ol.lst-stps-sub>li:before { - content: counter(item) "" counter(subitem,lower-alpha) ""; - counter-increment: subitem; - margin-left: -3em; - margin-top: -6px -} - -ol.lst-stps-sub:not(.stps-strpd)>li,ol.lst-stps:not(.stps-strpd)>li { - margin-top: 20px; - min-height: 3em; - padding-left: 3.2em; - padding-right: 15px -} - -ol.lst-stps-sub:not(.stps-strpd)>li { - min-height: 2em; - padding-left: 2.6em -} - -ol.lst-stps>li ol.lst-stps-sub>li:before,ol.lst-stps>li:before { - border-style: solid; - border-width: 3px; - -webkit-box-sizing: content-box; - box-sizing: content-box; - float: left; - font-family: Lato,sans-serif; - font-weight: 600; - line-height: 2; - margin-left: -3.2em; - margin-right: 10px; - margin-top: -8px; - position: relative; - text-align: center; - width: 2em -} - -ol.lst-stps:not(.ld-zr)>li ol.lst-stps-sub>li:before,ol.lst-stps:not(.ld-zr)>li:before { - border-radius: 50% -} - -ol.lst-stps:not(.ld-zr) ol.lst-stps-sub>li:before { - font-size: .8em -} - -ol.lst-stps.ld-zr>li ol.lst-stps-sub>li:before,ol.lst-stps.ld-zr>li:before { - border-width: 0 3px 0 0; - line-height: 1.4; - margin-top: 0; - padding-bottom: .8em -} - -ol.lst-stps-sub.stps-strpd>li :first-child:is(h2,h3,h4,h5,h6,p),ol.lst-stps.stps-strpd>li :first-child:is(h2,h3,h4,h5,h6,p) { - margin-top: auto -} - -ol.lst-stps-sub.stps-strpd>li,ol.lst-stps.stps-strpd>li { - min-height: 4em; - padding-left: 3.6em; - padding-right: 15px -} - -ol.lst-stps>li ol.lst-stps-sub.stps-strpd>li { - padding-left: 3em -} - -ol.lst-stps.stps-strpd>li:nth-child(2n) ol.lst-stps-sub.stps-strpd>li:nth-child(odd),ol.lst-stps.stps-strpd>li:nth-child(odd),ol.lst-stps.stps-strpd>li:nth-child(odd) ol.lst-stps-sub.stps-strpd>li:nth-child(2n) { - background-color: #f5f5f5 -} - -ol.lst-stps.stps-strpd>li:nth-child(odd) ol.lst-stps-sub.stps-strpd>li:nth-child(odd) { - background-color: #fff!important -} - -ol.lst-stps.stps-strpd>li,ol.lst-stps.stps-strpd>li ol.lst-stps-sub.stps-strpd>li { - padding-bottom: 20px; - padding-top: 20px -} - -ol.lst-stps.stps-strpd:not(.ld-zr)>li ol.lst-stps-sub.stps-strpd>li:before,ol.lst-stps.stps-strpd:not(.ld-zr)>li:before { - background-color: #fff -} - -ol.lst-stps[start="2"] { - counter-set: item 1 -} - -ol.lst-stps[start="3"] { - counter-set: item 2 -} - -ol.lst-stps[start="4"] { - counter-set: item 3 -} - -ol.lst-stps[start="5"] { - counter-set: item 4 -} - -ol.lst-stps[start="6"] { - counter-set: item 5 -} - -ol.lst-stps[start="7"] { - counter-set: item 6 -} - -ol.lst-stps[start="8"] { - counter-set: item 7 -} - -ol.lst-stps[start="9"] { - counter-set: item 8 -} - -.cnt-wdth-lmtd .lst-stps .lst-stps-sub>li:has(div,section,table),.cnt-wdth-lmtd .lst-stps>li:has(div,section,table) { - max-width: none -} - -.gc-rprt-prblm-thnk { - padding-bottom: 25px -} - -.gc-rprt-prblm-frm.gc-rprt-prblm-tggl.show { - display: none!important -} - -.gc-rprt-prblm-frm .form-group { - display: none!important -} - -.gc-rprt-prblm-frm label[for=problem6] { - display: none!important -} - -@-webkit-keyframes slideInFromRight { - 0% { - -webkit-transform: scale(0,1); - transform: scale(0,1) - } - - 95% { - -webkit-transform: scale(0,1); - transform: scale(0,1) - } - - 100% { - -webkit-transform: scale(1,1); - transform: scale(1,1) - } -} - -@keyframes slideInFromRight { - 0% { - -webkit-transform: scale(0,1); - transform: scale(0,1) - } - - 95% { - -webkit-transform: scale(0,1); - transform: scale(0,1) - } - - 100% { - -webkit-transform: scale(1,1); - transform: scale(1,1) - } -} - -@-webkit-keyframes pulseIn { - 0% { - -webkit-transform: scale(1,1); - transform: scale(1,1) - } - - 15% { - -webkit-transform: scale(1.15,1.15); - transform: scale(1.15,1.15) - } - - 30% { - -webkit-transform: scale(1,1); - transform: scale(1,1) - } - - 65% { - -webkit-transform: scale(1.3,1.3); - transform: scale(1.3,1.3) - } - - 100% { - -webkit-transform: scale(1,1); - transform: scale(1,1) - } -} - -@keyframes pulseIn { - 0% { - -webkit-transform: scale(1,1); - transform: scale(1,1) - } - - 15% { - -webkit-transform: scale(1.15,1.15); - transform: scale(1.15,1.15) - } - - 30% { - -webkit-transform: scale(1,1); - transform: scale(1,1) - } - - 65% { - -webkit-transform: scale(1.3,1.3); - transform: scale(1.3,1.3) - } - - 100% { - -webkit-transform: scale(1,1); - transform: scale(1,1) - } -} - -@-webkit-keyframes grow { - to { - -webkit-transform: translateX(-50%) scale(0); - transform: translateX(-50%) scale(0) - } -} - -@keyframes grow { - to { - -webkit-transform: translateX(-50%) scale(0); - transform: translateX(-50%) scale(0) - } -} - -.trans-left { - -webkit-animation-delay: 0s; - animation-delay: 0s; - -webkit-animation-duration: 5s; - animation-duration: 5s; - -webkit-animation-iteration-count: 1; - animation-iteration-count: 1; - -webkit-animation-name: slideInFromRight; - animation-name: slideInFromRight; - -webkit-animation-timing-function: ease-out; - animation-timing-function: ease-out; - -webkit-transform-origin: 100% 50%; - transform-origin: 100% 50%; - will-change: scroll-position -} - -.trans-pulse { - -webkit-animation: .5s linear 3.5s 1 pulseIn,.5s linear 15s 1 pulseIn,.5s linear 30s 1 pulseIn; - animation: .5s linear 3.5s 1 pulseIn,.5s linear 15s 1 pulseIn,.5s linear 30s 1 pulseIn; - will-change: transform -} - -.loader-typing { - bottom: 30%; - height: 6px; - left: 30px; - position: absolute; - -webkit-transform: translateX(-50%) translateY(-50%); - transform: translateX(-50%) translateY(-50%); - width: 26px -} - -.loader-dot { - -webkit-animation: grow .5s ease-in-out infinite alternate; - animation: grow .5s ease-in-out infinite alternate; - background-color: #444; - border-radius: 50%; - height: 6px; - position: absolute; - width: 6px; - will-change: transform -} - -.loader-dot.dot1 { - left: 0; - -webkit-transform-origin: 100% 50%; - transform-origin: 100% 50% -} - -.loader-dot.dot2 { - -webkit-animation-delay: .1s; - animation-delay: .1s; - left: 50%; - margin-left: -3px; - -webkit-transform: scale(.99); - transform: scale(.99) -} - -.loader-dot.dot3 { - -webkit-animation-delay: .2s; - animation-delay: .2s; - right: 0 -} - -.wb-chtwzrd-bubble-wrap { - bottom: 30px; - height: 60px; - position: fixed; - right: 30px; - width: 60px; - z-index: 1049 -} - -.wb-chtwzrd-bubble-wrap p { - background: #335075; - border-bottom-left-radius: 25px; - border-top-left-radius: 25px; - -webkit-box-shadow: 0 1px 3px rgba(0,0,0,.45); - box-shadow: 0 1px 3px rgba(0,0,0,.45); - color: #fff; - font-size: 14px; - line-height: 20px; - min-height: 50px; - padding: 5px 37.5px 5px 27.5px; - position: relative; - right: 195px; - top: 5px; - width: 225px -} - -.wb-chtwzrd-bubble-wrap p .notif-close { - background: #333; - border-radius: 50%; - color: #fff; - font-size: 19px; - height: 1.25em; - line-height: 21px; - position: absolute; - right: 92.5%; - text-align: center; - text-decoration: none; - top: 0; - width: 1.25em -} - -.wb-chtwzrd-bubble-wrap .notif { - cursor: pointer -} - -.wb-chtwzrd-bubble-wrap .bubble { - background: #fff url("../assets/wb-chtwzrd/default-avatar.png") center no-repeat; - border-radius: 50%; - bottom: 0; - -webkit-box-shadow: 0 2px 4px rgba(0,0,0,.45); - box-shadow: 0 2px 4px rgba(0,0,0,.45); - height: 100%; - overflow: hidden; - position: absolute; - right: 0; - text-indent: -9999px; - white-space: nowrap; - width: 100%; - z-index: 1048 -} - -.wb-chtwzrd-bubble-wrap .bubble:focus { - border: 1px solid rgba(0,0,0,.5); - -webkit-box-shadow: 0 2px 3px rgba(0,0,0,.7); - box-shadow: 0 2px 3px rgba(0,0,0,.7) -} - -.wb-chtwzrd-btn-extrnl+.wb-chtwzrd-bubble-wrap { - display: none!important -} - -.wb-disable .wb-chtwzrd.hidden { - display: block!important -} - -.wb-chtwzrd-container { - background-color: #fff; - bottom: 20px; - display: none; - font-size: .9em; - min-height: 200px; - overflow: hidden; - position: fixed; - right: 20px; - width: 25%; - z-index: 1050 -} - -.wb-chtwzrd-container .header { - max-height: 70px; - min-height: 39px; - padding-right: 84px -} - -.wb-chtwzrd-container .header .title { - -webkit-box-orient: vertical; - display: -webkit-box; - font-size: 19px; - -webkit-line-clamp: 2; - line-height: 1.35; - overflow: hidden; - padding: 6px 0; - text-overflow: ellipsis -} - -.wb-chtwzrd-container .minimize,.wb-chtwzrd-container .reset { - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; - background: 0 0; - border: 0; - color: #fff; - font-size: 1em; - font-weight: 700; - height: 40px; - line-height: 41px; - margin: 0; - opacity: .65; - overflow: visible; - padding: 0; - position: absolute; - right: 0; - text-decoration: none; - top: 0; - width: 40px -} - -.wb-chtwzrd-container .reset { - right: 42px -} - -.wb-chtwzrd-container .minimize:focus,.wb-chtwzrd-container .reset:focus { - opacity: 1; - outline: 1px dotted #fff; - outline-offset: -2px -} - -.wb-chtwzrd-container .conversation { - margin-bottom: 15px; - max-height: 45vh; - min-height: 200px; - overflow-x: hidden; - overflow-y: auto -} - -.wb-chtwzrd-container .history { - padding-top: 15px -} - -.wb-chtwzrd-container .history::before { - background: -webkit-gradient(linear,left top,left bottom,color-stop(20%,#fff),to(rgba(255,255,255,0))); - background: linear-gradient(to bottom,#fff 20%,rgba(255,255,255,0) 100%); - content: ""; - height: 40px; - left: 0; - pointer-events: none; - position: absolute; - top: 0; - width: 100%; - z-index: 1054 -} - -.wb-chtwzrd-container .controls { - height: 75px -} - -.wb-chtwzrd-container .inputs-zone fieldset:first-child { - border-top: 1px solid #e5e5e5 -} - -.wb-chtwzrd-container .inputs-zone ul:last-child { - margin-bottom: 0 -} - -.wb-chtwzrd-container .choices input[type=radio]:checked+span { - color: #333 -} - -.wb-chtwzrd-container h4,.wb-chtwzrd-container h4 .question a,.wb-chtwzrd-container legend { - font-size: 1em; - line-height: 1.4375 -} - -.wb-chtwzrd-container .message,.wb-chtwzrd-container .question,.wb-chtwzrd-container label { - border-radius: 15px; - color: #5a5a5a; - font-weight: 400; - padding: 8px 12px; - width: auto -} - -.wb-chtwzrd-container .question { - background-color: #efefef; - min-width: 60px; - position: relative -} - -.wb-chtwzrd-container .message:focus { - -webkit-box-shadow: 0 0 4px #666; - box-shadow: 0 0 4px #666 -} - -.wb-chtwzrd-container .message,.wb-chtwzrd-container label { - background-color: #ddd -} - -.wb-chtwzrd-container .message { - margin-right: 15px -} - -.wb-chtwzrd-container label { - border: 1px solid #c1c1c1; - font-weight: 700; - padding: 6px 10px -} - -.wb-chtwzrd-container .avatar,.wb-chtwzrd-container .question { - display: table-cell; - vertical-align: middle -} - -.wb-chtwzrd-container .avatar { - background-color: #fff; - background-image: url("../assets/default-avatar.png"); - background-position: center; - background-repeat: no-repeat; - background-size: 25px; - height: 30px; - width: 30px -} - -.wb-chtwzrd-container .basic-link { - min-height: inherit -} - -.wb-chtwzrd-mrgn { - margin-top: 80px -} - -.wb-chtwzrd-container legend:focus { - outline: 1px dotted #666 -} - -.wb-chtwzrd-contained { - bottom: 0; - -webkit-box-shadow: none; - box-shadow: none; - margin: 30px auto; - position: static; - right: 0; - width: 100% -} - -.wb-chtwzrd-contained .conversation { - max-height: 70vh -} - -.wb-chtwzrd-contained .minimize { - display: none -} - -.wb-chtwzrd-contained .reset { - right: 0 -} - -@media screen and (max-width: 1199px) { - .wb-chtwzrd-container { - width:35% - } -} - -@media screen and (max-width: 992px) { - .wb-chtwzrd-container { - width:45% - } -} - -@media screen and (max-width: 768px) { - .wb-chtwzrd-bubble-wrap { - right:10px - } - - .wb-chtwzrd-container { - bottom: 0; - height: 100%; - margin: 0; - padding: 0; - right: 0; - width: 100% - } - - .wb-chtwzrd-container .body { - -webkit-box-direction: normal; - -webkit-box-orient: vertical; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; - -ms-flex-wrap: nowrap; - flex-wrap: nowrap; - height: 100%; - padding-bottom: 75px; - width: 100% - } - - .wb-chtwzrd-container .conversation { - -webkit-box-flex: 1; - flex-grow: 1; - -ms-flex-positive: 1; - max-height: none; - min-height: 2em - } - - .wb-chtwzrd-container .controls { - -ms-flex-negative: 0; - flex-shrink: 0; - height: 75px - } - - .wb-chtwzrd-noscroll { - overflow: hidden!important - } - - .wb-chtwzrd-bubble-wrap p .notif-close { - font-size: 2em; - height: 35px; - line-height: 1.1em; - right: 90%; - width: 35px - } - - .wb-chtwzrd-contained .body { - padding-bottom: 10px - } -} - -.gc-subway:not(.gc-subway-index) { - border: 4px solid #26374a; - border-radius: 6px; - margin: 2em 0 0 .5em; - padding-bottom: 1em; - position: relative -} - -.gc-subway:not(.gc-subway-index) ul { - clear: both; - list-style: none; - margin-bottom: 0; - margin-left: -.685em; - padding-left: .5em -} - -.gc-subway:not(.gc-subway-index) ul li { - border-left: 4px solid #26374a; - line-height: 1.25em; - padding-bottom: 1.25em; - padding-left: 1em; - position: relative -} - -.gc-subway:not(.gc-subway-index) ul li:last-child { - border-left-color: transparent; - padding-bottom: 0 -} - -.gc-subway:not(.gc-subway-index) ul li a { - display: inline-block -} - -.gc-subway:not(.gc-subway-index) ul li a::before { - background-color: #26374a; - border: 3px solid #26374a; - border-radius: 50%; - -webkit-box-shadow: 0 0 0 10px #fff inset; - box-shadow: 0 0 0 10px #fff inset; - content: ""; - height: 1.2em; - left: -.7em; - position: absolute; - top: 0; - -webkit-transition: -webkit-box-shadow .25s ease; - transition: -webkit-box-shadow .25s ease; - transition: box-shadow .25s ease; - transition: box-shadow .25s ease,-webkit-box-shadow .25s ease; - width: 1.2em -} - -.gc-subway:not(.gc-subway-index) ul li a.active { - color: #333; - cursor: default; - text-decoration: none -} - -.gc-subway:not(.gc-subway-index) ul li a.active::before { - -webkit-box-shadow: 0 0 0 10px #26374a inset; - box-shadow: 0 0 0 10px #26374a inset -} - -.gc-subway:not(.gc-subway-index) ul li a.active:focus,.gc-subway:not(.gc-subway-index) ul li a.active:hover { - color: #333; - text-decoration: none -} - -.gc-subway:not(.gc-subway-index) ul li a:not(.active):focus::before,.gc-subway:not(.gc-subway-index) ul li a:not(.active):hover::before { - -webkit-box-shadow: 0 0 0 4px #fff inset; - box-shadow: 0 0 0 4px #fff inset -} - -.gc-subway:not(.gc-subway-index) ul li ul { - margin: 1em 0 0 -} - -.gc-subway:not(.gc-subway-index) ul li ul li:last-child { - padding-bottom: 0 -} - -.gc-subway:not(.gc-subway-index) ul li ul.noline li { - border-left-color: transparent -} - -.gc-subway:not(.gc-subway-index) ul li ul.noline li::before { - display: none -} - -.gc-subway:not(.gc-subway-index) ul li ul.noline li a.active::after { - background-color: #26374a; - content: ""; - display: block; - height: 4px; - left: -1.75em; - position: absolute; - top: .5em; - width: 1.125em -} - -.gc-subway.gc-subway-index h2 { - position: static -} - -.gc-subway.gc-subway-index dl { - margin-left: .5em -} - -.gc-subway.gc-subway-index dl dd,.gc-subway.gc-subway-index dl dt { - border-left: 4px solid #26374a; - font-weight: 400; - margin: 0; - padding-left: 1em; - position: relative -} - -.gc-subway.gc-subway-index dl dd:last-of-type,.gc-subway.gc-subway-index dl dt:last-of-type { - border-left-color: transparent; - padding-bottom: 0 -} - -.gc-subway.gc-subway-index dl dt a::before { - background-color: #26374a; - border: 3px solid #26374a; - border-radius: 50%; - -webkit-box-shadow: 0 0 0 10px #fff inset; - box-shadow: 0 0 0 10px #fff inset; - content: ""; - height: 1.2em; - left: -.7em; - position: absolute; - top: 0; - -webkit-transition: -webkit-box-shadow .25s ease; - transition: -webkit-box-shadow .25s ease; - transition: box-shadow .25s ease; - transition: box-shadow .25s ease,-webkit-box-shadow .25s ease; - width: 1.2em -} - -.gc-subway.gc-subway-index dl dd { - padding-bottom: 1.25em; - padding-top: .25em -} - -.gc-subway-section hgroup p { - display: none -} - -.gc-subway-pagination { - margin-bottom: 3em; - margin-top: 3em -} - -.provisional.gc-table td ul { - -webkit-padding-start: 20px; - padding-inline-start:20px} - -.gc-featured-link { - background-color: #355688; - color: #fff; - font-family: Lato,sans-serif; - opacity: .9; - padding-bottom: 15px; - padding-top: 15px; - position: relative -} - -.gc-featured-link p { - margin-bottom: 0 -} - -.gc-featured-link a { - color: #fff; - font-weight: 700 -} - -html:not(.wb-disable) .gc-featured-link[data-bg-color] { - background-color: transparent; - color: #333 -} - -html:not(.wb-disable) .gc-featured-link[data-bg-color] a { - color: #333 -} - -.bold-content,.well.well-bold,a.well-bold.gc-dwnld { - font-weight: 700 -} - -.bold-content strong,.well.well-bold strong,a.well-bold.gc-dwnld strong { - font-weight: 400 -} - -.page-type-nav .profile .thumbnail,.secondary .profile .thumbnail { - margin-top: 1.25em -} - -.page-type-search .alert { - margin-top: 30px -} - -.page-type-search .current { - font-weight: 700 -} - -.page-type-search #wb-land h2 { - font-size: 1.5rem -} - -.page-type-search #wb-land h3 { - font-size: 1.375rem -} - -.page-type-search #wb-land .location,.page-type-search #wb-land p { - font-size: 1.125rem -} - -.page-type-search #wb-land .location { - color: #1b6c1c; - padding-left: 0 -} - -.page-type-search #wb-land .location li { - display: inline-block; - word-break: break-word -} - -.page-type-search #wb-land .location li+li:before { - content: "> " -} - -.page-type-search #wb-land .location cite { - font-style: normal; - word-break: break-word -} - -.page-type-search #wb-land .location cite a { - color: #1b6c1c -} - -.page-type-search .results>section { - border-bottom: solid 1px #000; - margin-bottom: 1.5em; - padding-bottom: 1.5em -} - -.page-type-search .results>section .context-labels { - font-size: 1rem; - list-style: none; - padding-left: 0 -} - -.page-type-search .results>section .context-labels li { - background-color: #5e738b; - color: #fff; - display: inline-block; - font-weight: 700; - margin-bottom: 1px; - padding: 0 5px -} - -.home h1 { - font-weight: 500; - margin-top: 10px -} - -.home h2 { - font-size: 29px; - margin-top: 1rem -} - -.home #wb-bnr+hr { - border-top: 1px solid #ddd; - color: #284162; - margin-left: 0 -} - -.home #wb-bnr+.gcweb-menu { - border-top: 1px solid #ddd; - color: #284162; - margin-left: 0 -} - -.home #wb-bnr+.gcweb-menu .container { - padding: 0 -} - -.home #wb-so .btn { - margin-top: 3px -} - -.home .header-rwd { - margin: 1em 0 -} - -.home .home-most-requested li { - font-family: Lato,"Noto Sans","Noto Sans Canadian Aboriginal",sans-serif; - font-size: 17.5px; - font-weight: 700; - line-height: 26px; - margin-top: 0 -} - -.home .gc-features { - margin-bottom: -1em -} - -.home .gc-srvinfo p { - font-size: 18px -} - -.home .home-your-gov { - background-image: url("https://www.canada.ca/content/dam/canada/carousel/bkg-home-yourgov.jpg"),url("../assets/bkg-home-yourgov.jpg"); - background-position: right center; - background-repeat: no-repeat; - background-size: 38% -} - -.home .home-your-gov ul { - margin-bottom: 1rem -} - -.home .home-your-gov li { - font-size: 18px; - line-height: 2.3 -} - -.home .gc-srvinfo .container>p:last-child { - margin-bottom: 35px; - margin-top: 20px -} - -.home .gc-srvinfo .container>p:last-child .btn-all-services { - border: 2px solid #26374a; - color: #26374a; - font-size: 1.1em; - font-weight: 700; - padding: .65em 1.1em -} - -.home .gc-srvinfo .container>p:last-child .btn-all-services:hover { - text-decoration: underline -} - -.blog article .col-md-3,.blog article .col-md-9 { - display: inline-block; - float: none; - margin-right: -4px; - vertical-align: middle -} - -.zbra section.brdr-tp:nth-child(odd) { - background: #eee -} - -.zbra section.brdr-tp .row { - margin-left: -5px; - margin-right: -5px -} - -#mobile-centre_wrapper .product-department,#mobile-centre_wrapper .product-links,#mobile-centre_wrapper .product-longdescription,#mobile-centre_wrapper .product-name,#mobile-centre_wrapper .product-platforms,#mobile-centre_wrapper .product-shortdescription,.backgroundsize.csstransitions .product-department,.backgroundsize.csstransitions .product-language,.backgroundsize.csstransitions .product-link-container,.backgroundsize.csstransitions .product-name,.backgroundsize.csstransitions .product-platforms { - border: 0; - display: block -} - -#mobile-centre_wrapper .product-data-expanded,#mobile-centre_wrapper .product-data-hidden,#mobile-centre_wrapper .record-close,#mobile-centre_wrapper table :target .product-data-compressed,.backgroundsize.csstransitions #mobile-centre tbody tr .product-department,.backgroundsize.csstransitions #mobile-centre tbody tr .product-longdescription,.backgroundsize.csstransitions #mobile-centre tbody tr td.product-link-container { - display: none; - visibility: hidden -} - -#mobile-centre_wrapper .product-data-compressed,#mobile-centre_wrapper table :target .product-data-expanded,#mobile-centre_wrapper table :target .record-close,.backgroundsize.csstransitions #mobile-centre tbody tr:target .product-department,.backgroundsize.csstransitions #mobile-centre tbody tr:target .product-longdescription,.backgroundsize.csstransitions #mobile-centre tbody tr:target td.product-link-container { - display: block; - visibility: visible -} - -.backgroundsize.csstransitions #social-media-centre tbody { - padding-top: 2em -} - -.backgroundsize.csstransitions #social-media-centre tbody tr { - background-clip: content-box; - background-color: #eee; - background-image: url("data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw=="),url("data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw=="),url("data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw=="),url("data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw=="); - background-origin: content-box; - background-position: top left,top left,bottom left,top right; - background-repeat: repeat-x,repeat-y,repeat-x,repeat-y; - border: 0; - display: inline-block; - margin-bottom: 20px; - padding: 5px; - text-align: center; - vertical-align: middle; - width: 100% -} - -@media (min-width: 768px) { - .backgroundsize.csstransitions #social-media-centre tbody tr { - width:50% - } -} - -@media (min-width: 1200px) { - .backgroundsize.csstransitions #social-media-centre tbody tr { - width:33.333% - } -} - -.backgroundsize.csstransitions #social-media-centre tbody tr .product-department { - height: 3em; - white-space: normal -} - -.backgroundsize.csstransitions .product-listing { - border: 0; - width: 100% -} - -.backgroundsize.csstransitions .product-record { - display: inline-block; - margin-bottom: 20px; - width: 100% -} - -.backgroundsize.csstransitions .product-record:target { - height: auto!important -} - -.backgroundsize.csstransitions .product-department,.backgroundsize.csstransitions .product-language,.backgroundsize.csstransitions .product-link-container { - margin-top: 1em -} - -.backgroundsize.csstransitions .product-department,.backgroundsize.csstransitions .product-language { - font-weight: 700; - margin-top: 1em -} - -.backgroundsize.csstransitions .product-link { - display: block; - padding: 6px 12px!important; - text-decoration: none; - text-transform: none!important; - white-space: normal -} - -.backgroundsize.csstransitions .product-link:focus,.backgroundsize.csstransitions .product-link:hover { - text-decoration: none -} - -#social-media-centre_wrapper .datatables_wrapper { - margin-bottom: 3em -} - -#social-media-centre_wrapper .product-listing { - border: 1px solid #ddd -} - -#social-media-centre_wrapper .product-listing td { - padding: 8px -} - -#mobile-centre_wrapper .product-department,#mobile-centre_wrapper .product-links,#mobile-centre_wrapper .product-longdescription,#mobile-centre_wrapper .product-name,#mobile-centre_wrapper .product-platforms,#mobile-centre_wrapper .product-shortdescription,.backgroundsize.csstransitions .product-department,.backgroundsize.csstransitions .product-language,.backgroundsize.csstransitions .product-link-container,.backgroundsize.csstransitions .product-name,.backgroundsize.csstransitions .product-platforms { - border: 0; - display: block -} - -#mobile-centre_wrapper .product-data-expanded,#mobile-centre_wrapper .product-data-hidden,#mobile-centre_wrapper .record-close,#mobile-centre_wrapper table :target .product-data-compressed,.backgroundsize.csstransitions #mobile-centre tbody tr .product-department,.backgroundsize.csstransitions #mobile-centre tbody tr .product-longdescription,.backgroundsize.csstransitions #mobile-centre tbody tr td.product-link-container { - display: none; - visibility: hidden -} - -#mobile-centre_wrapper .product-data-compressed,#mobile-centre_wrapper table :target .product-data-expanded,#mobile-centre_wrapper table :target .record-close,.backgroundsize.csstransitions #mobile-centre tbody tr:target .product-department,.backgroundsize.csstransitions #mobile-centre tbody tr:target .product-longdescription,.backgroundsize.csstransitions #mobile-centre tbody tr:target td.product-link-container { - display: block; - visibility: visible -} - -.backgroundsize.csstransitions #mobile-centre tbody { - padding-top: 2em -} - -.backgroundsize.csstransitions #mobile-centre tbody tr { - background-clip: content-box; - background-color: #eee; - background-image: url("data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw=="),url("data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw=="),url("data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw=="),url("data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw=="); - background-origin: content-box; - background-position: top left,top left,bottom left,top right; - background-repeat: repeat-x,repeat-y,repeat-x,repeat-y; - border: 0; - display: inline-block; - margin-bottom: 20px; - min-height: 20em; - padding: 5px; - vertical-align: middle; - width: 100% -} - -@media (min-width: 768px) { - .backgroundsize.csstransitions #mobile-centre tbody tr { - width:50% - } -} - -@media (min-width: 1200px) { - .backgroundsize.csstransitions #mobile-centre tbody tr { - width:33.333% - } -} - -.backgroundsize.csstransitions #mobile-centre tbody tr .product-platforms span { - margin-right: 5px -} - -.backgroundsize.csstransitions #mobile-centre tbody tr:target { - height: auto!important; - width: 100% -} - -.backgroundsize.csstransitions #mobile-centre tbody tr:target .product-longdescription { - float: none -} - -.backgroundsize.csstransitions #mobile-centre tbody tr:target .product-link-container { - border: 0; - float: none -} - -.backgroundsize.csstransitions #mobile-centre tbody tr:hover { - background-color: rgb(232.25,232.25,232.25); - border-color: rgb(214.25,214.25,214.25) -} - -.backgroundsize.no-csstransitions #mobile-centre tr,.no-backgroundsize.no-csstransitions #mobile-centre tr { - border-bottom: 1px solid #999!important; - border-top: 1px solid #999!important -} - -.backgroundsize.no-csstransitions #mobile-centre .product-department,.backgroundsize.no-csstransitions #mobile-centre .product-links,.backgroundsize.no-csstransitions #mobile-centre .product-longdescription,.backgroundsize.no-csstransitions #mobile-centre .product-name,.backgroundsize.no-csstransitions #mobile-centre .product-platforms,.backgroundsize.no-csstransitions #mobile-centre .product-shortdescription,.no-backgroundsize.no-csstransitions #mobile-centre .product-department,.no-backgroundsize.no-csstransitions #mobile-centre .product-links,.no-backgroundsize.no-csstransitions #mobile-centre .product-longdescription,.no-backgroundsize.no-csstransitions #mobile-centre .product-name,.no-backgroundsize.no-csstransitions #mobile-centre .product-platforms,.no-backgroundsize.no-csstransitions #mobile-centre .product-shortdescription { - float: left!important; - margin-left: 10px; - margin-right: 10px -} - -.backgroundsize.no-csstransitions #mobile-centre .product-department,.backgroundsize.no-csstransitions #mobile-centre .product-longdescription,.backgroundsize.no-csstransitions #mobile-centre .product-name,.backgroundsize.no-csstransitions #mobile-centre .product-platforms,.backgroundsize.no-csstransitions #mobile-centre .product-shortdescription,.no-backgroundsize.no-csstransitions #mobile-centre .product-department,.no-backgroundsize.no-csstransitions #mobile-centre .product-longdescription,.no-backgroundsize.no-csstransitions #mobile-centre .product-name,.no-backgroundsize.no-csstransitions #mobile-centre .product-platforms,.no-backgroundsize.no-csstransitions #mobile-centre .product-shortdescription { - width: 96%!important -} - -.backgroundsize.no-csstransitions #mobile-centre .product-name,.backgroundsize.no-csstransitions #mobile-centre .product-platforms,.no-backgroundsize.no-csstransitions #mobile-centre .product-name,.no-backgroundsize.no-csstransitions #mobile-centre .product-platforms { - margin-top: 10px -} - -.backgroundsize.no-csstransitions #mobile-centre .product-name,.no-backgroundsize.no-csstransitions #mobile-centre .product-name { - padding-bottom: 0 -} - -.backgroundsize.no-csstransitions #mobile-centre .product-platforms,.no-backgroundsize.no-csstransitions #mobile-centre .product-platforms { - padding-top: 0 -} - -.backgroundsize.no-csstransitions #mobile-centre .product-department,.backgroundsize.no-csstransitions #mobile-centre .product-links,.backgroundsize.no-csstransitions #mobile-centre .product-longdescription,.backgroundsize.no-csstransitions #mobile-centre .product-platforms,.backgroundsize.no-csstransitions #mobile-centre .product-shortdescription,.no-backgroundsize.no-csstransitions #mobile-centre .product-department,.no-backgroundsize.no-csstransitions #mobile-centre .product-links,.no-backgroundsize.no-csstransitions #mobile-centre .product-longdescription,.no-backgroundsize.no-csstransitions #mobile-centre .product-platforms,.no-backgroundsize.no-csstransitions #mobile-centre .product-shortdescription { - clear: left; - margin-top: 0 -} - -.backgroundsize.no-csstransitions #mobile-centre .product-shortdescription,.backgroundsize.no-csstransitions #mobile-centre .record-close,.no-backgroundsize.no-csstransitions #mobile-centre .product-shortdescription,.no-backgroundsize.no-csstransitions #mobile-centre .record-close { - display: none!important -} - -.backgroundsize.no-csstransitions #mobile-centre .product-link-container,.no-backgroundsize.no-csstransitions #mobile-centre .product-link-container { - border: none!important -} - -.backgroundsize.no-csstransitions #mobile-centre .product-link-list li,.no-backgroundsize.no-csstransitions #mobile-centre .product-link-list li { - display: inline; - float: left -} - -#mobile-centre_wrapper .product-record { - display: inline-block; - margin-bottom: 20px; - width: 100% -} - -#mobile-centre_wrapper .product-record:target { - height: auto!important -} - -#mobile-centre_wrapper .product-record:hover { - background-color: rgb(232.25,232.25,232.25); - border-color: rgb(214.25,214.25,214.25); - cursor: pointer -} - -#mobile-centre_wrapper .product-icon { - border: 0; - float: left; - height: 48px; - margin-bottom: 10px; - margin-right: 10px; - padding-bottom: 3px; - padding-right: 3px; - width: 48px -} - -#mobile-centre_wrapper .product-longdescription,#mobile-centre_wrapper .product-shortdescription { - margin-top: 1em -} - -#mobile-centre_wrapper .product-department { - font-weight: 700; - margin-top: 1em -} - -#mobile-centre_wrapper .product-link-list { - list-style-type: none; - margin-top: 1em; - padding-left: 0 -} - -#mobile-centre_wrapper .product-link-container { - margin-bottom: 1em -} - -#mobile-centre_wrapper .product-link { - display: block; - padding: 6px 12px!important; - text-align: left; - text-decoration: none; - text-transform: none!important; - white-space: normal -} - -#mobile-centre_wrapper .product-link:focus,#mobile-centre_wrapper .product-link:hover { - text-decoration: none -} - -#mobile-centre_wrapper .record-expand { - color: inherit; - text-decoration: none -} - -#mobile-centre_wrapper .record-expand:focus,#mobile-centre_wrapper .record-expand:hover { - color: inherit; - text-decoration: underline -} - -#mobile-centre_wrapper .record-close { - float: right -} - -#mobile-centre_wrapper .product-listing { - border: 1px solid #ddd -} - -#mobile-centre_wrapper .product-listing td { - padding: 8px -} - -@media (min-width: 768px) { - #mobile-centre_wrapper .product-record { - margin-left:10px; - margin-right: 10px; - max-width: 47% - } - - #mobile-centre_wrapper .product-record:target { - max-width: 100% - } - - #mobile-centre_wrapper .product-department,#mobile-centre_wrapper .product-links { - margin-right: 10px; - width: 30% - } - - #mobile-centre_wrapper .product-longdescription { - float: right; - margin-left: 10px; - width: 67% - } -} - -@media (min-width: 1200px) { - #mobile-centre_wrapper .product-record { - max-width:31.5% - } -} - -.infostripe .btn-cnt { - bottom: 5px; - padding-right: 30px; - position: absolute; - text-align: center; - width: 100% -} - -.infostripe .col-md-6 { - min-height: 830px!important; - vertical-align: top -} - -#anti_infographic_4.modal-dialog { - width: 50% -} - -.page-type-nav .infostripe .h1,.secondary .infostripe .h1 { - font-size: 1.5em -} - -.page-type-nav .infostripe.dbl .h1,.secondary .infostripe.dbl .h1 { - min-height: 3.1em -} - -.page-type-nav .infostripe.trpl .h1,.secondary .infostripe.trpl .h1 { - min-height: 4em -} - -[lang=fr] .infostripe .col-md-6 { - min-height: 870px!important -} - -.gc-prtts.dbl .h5 { - min-height: 2.2em -} - -.cmpgn-sctns a { - text-decoration: none -} - -.cmpgn-sctns a:active strong,.cmpgn-sctns a:focus strong,.cmpgn-sctns a:hover strong { - text-decoration: underline -} - -.cmpgn-sctns strong { - display: block -} - -table.nws-tbl td { - display: block -} - -table.nws-tbl .nws-tbl-desc,table.nws-tbl .nws-tbl-ttl { - margin-top: 15px -} - -table.nws-tbl .nws-tbl-date,table.nws-tbl .nws-tbl-dept,table.nws-tbl .nws-tbl-type { - color: #555; - letter-spacing: .01em -} - -table.nws-tbl tbody tr { - background-color: #fff -} - -table.nws-tbl>tbody>tr>td,table.nws-tbl>tbody>tr>th,table.nws-tbl>tfoot>tr>td,table.nws-tbl>tfoot>tr>th,table.nws-tbl>thead>tr>td,table.nws-tbl>thead>tr>th { - border-top: 0; - padding-bottom: 0; - padding-top: 0 -} - -.nws-tbl .tp-rail { - display: inline-block -} - -.nws-tbl details summary,.nws-tbl details[open] { - border: 0 -} - -.nws-tbl .one-dot { - background: #000; - border-radius: 50%; - display: inline-block; - height: .5em; - vertical-align: middle; - width: .5em -} - -.nws-tbl .tp-rail.commit { - font-size: 1.15em; - font-weight: 600; - max-width: 67%; - min-width: 67% -} - -.largeview .nws-tbl .tp-rail.commit,.xlargeview .nws-tbl .tp-rail.commit { - max-width: 71%; - min-width: 71% -} - -table.dataTable.nws-tbl .label.label-success { - padding: .6em .6em .3em -} - -.info-banner { - background-color: #d9edf7; - color: #333; - font-size: 20px; - line-height: 1.65em; - padding: 15px 0 -} - -.info-banner h2 { - float: left; - font-size: 1em; - line-height: 1.65em; - margin: 0 .25em 0 0 -} - -.info-banner h2:after { - content: ":"; - margin-left: .125em -} - -.info-banner .info-banner-actions { - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: justify; - -ms-flex-pack: justify; - justify-content: space-between -} - -.application-bar { - background-color: #38414d; - color: #fff; - margin-top: 15px -} - -.application-bar h2 { - border: none; - font-size: 1.6875rem; - margin: 10px 0 8px -} - -.application-bar h2 a { - color: #fff; - text-decoration: none -} - -.application-bar h2 a:hover { - text-decoration: underline -} - -.page-type-ilp h2 { - font-size: 1.8125rem; - margin-top: 15px -} - -.page-type-ilp .gc-most-requested h2 { - font-size: 22px; - margin-top: 0 -} - -.page-type-ilp .gc-followus ul li { - margin-bottom: 21px -} - -.page-type-ilp .gc-followus ul li:last-child { - margin-bottom: 15px -} - -.page-type-theme #wb-bnr+hr { - border-top: 1px solid #ddd -} - -.page-type-theme #wb-bc li:first-child a { - border-left: solid #26374a 5px; - padding-left: 8px -} - -.page-type-theme #wb-bc .breadcrumb { - margin-bottom: 15px -} - -.page-type-theme #theme-nav li a { - color: #295376; - display: block; - font-size: 16px; - line-height: 1.65em; - padding: 10px 14px; - text-decoration: none -} - -.page-type-theme #theme-nav li a:hover { - background-color: #f5f5f5; - color: #284162; - text-decoration: underline -} - -.page-type-theme #theme-nav li a.wb-navcurr,.page-type-theme #theme-nav li a.wb-navcurr:hover { - background-color: #26374a; - color: #fff -} - -.page-type-theme #theme-nav li a.wb-navcurr:focus { - outline: 5px auto #fff; - outline-offset: -5px -} - -.page-type-theme #menu-btn { - border-radius: 0; - display: block; - margin: .25em 0 1em -15px; - text-align: left; - width: calc(100% + 30px) -} - -.page-type-theme #menu-btn .glyphicon-chevron-down { - margin-left: 10px -} - -.page-type-theme #menu-btn.expanded .glyphicon-chevron-down { - -webkit-transform: rotate(180deg) translateY(2px); - transform: rotate(180deg) translateY(2px) -} - -.wb-disable .page-type-theme #menu-btn { - display: none -} - -.page-type-theme h1#wb-cont { - border: none; - font-size: 1.2em; - line-height: 1.1; - margin: 10px 0 11.5px -} - -.page-type-theme .gc-most-requested h2 { - float: none; - font-size: 1em; - width: auto -} - -#gcwu-sig,#wmms { - height: 2em; - max-width: 100% -} - -#wmms { - float: right -} - -#wb-bnr:not(:has(#wb-lng)) { - margin-top: 1.2em -} - -/*! Core - Utilities */ -.clearfix:after,.clearfix:before,.gc-subway-landmark-end:after,.gc-subway-landmark-end:before { - display: table; - content: " " -} - -.clearfix:after,.gc-subway-landmark-end:after { - clear: both -} - -.center-block { - display: block; - margin-right: auto; - margin-left: auto -} - -.pull-right { - float: right!important -} - -.pull-left { - float: left!important -} - -.hide { - display: none!important -} - -.show { - display: block!important -} - -.invisible { - visibility: hidden -} - -.text-hide { - font: 0/0 a; - color: transparent; - text-shadow: none; - background-color: transparent; - border: 0 -} - -.hidden { - display: none!important -} - -.affix { - position: fixed -} - -.opct-100 { - opacity: 1 -} - -.opct-90 { - opacity: .9 -} - -.opct-80 { - opacity: .8 -} - -.opct-70 { - opacity: .7 -} - -.opct-60 { - opacity: .6 -} - -.opct-50 { - opacity: .5 -} - -.opct-40 { - opacity: .4 -} - -.opct-30 { - opacity: .3 -} - -.opct-20 { - opacity: .2 -} - -.opct-10 { - opacity: .1 -} - -.fnt-nrml { - font-weight: 400 -} - -[class*=clmn-] { - list-style: outside; - padding-left: 1.3em -} - -[class*=clmn-]>li { - margin-left: 1.3em -} - -.pstn-bttm-lg,.pstn-bttm-md,.pstn-bttm-sm,.pstn-bttm-xs,.pstn-lft-lg,.pstn-lft-md,.pstn-lft-sm,.pstn-lft-xs,.pstn-rght-lg,.pstn-rght-md,.pstn-rght-sm,.pstn-rght-xs,.pstn-tp-lg,.pstn-tp-md,.pstn-tp-sm,.pstn-tp-xs { - margin: 0 -} - -.pstn-lft-xs { - position: absolute; - left: 0; - right: auto -} - -.pstn-rght-xs { - position: absolute; - right: 0; - left: auto -} - -.pstn-tp-xs { - position: absolute; - top: 0; - bottom: auto -} - -.pstn-bttm-xs { - position: absolute; - bottom: 0; - top: auto -} - -.mrgn-lft-0 { - margin-left: 0 -} - -.mrgn-lft-sm { - margin-left: 5px -} - -.mrgn-lft-md { - margin-left: 15px -} - -.mrgn-lft-lg { - margin-left: 30px -} - -.mrgn-lft-xl { - margin-left: 50px -} - -.mrgn-bttm-0 { - margin-bottom: 0 -} - -.mrgn-bttm-sm { - margin-bottom: 5px -} - -.mrgn-bttm-md { - margin-bottom: 15px -} - -.mrgn-bttm-lg { - margin-bottom: 30px -} - -.mrgn-bttm-xl { - margin-bottom: 50px -} - -.mrgn-tp-0 { - margin-top: 0 -} - -.mrgn-tp-sm { - margin-top: 5px -} - -.mrgn-tp-md { - margin-top: 15px -} - -.mrgn-tp-lg { - margin-top: 30px -} - -.mrgn-tp-xl { - margin-top: 50px -} - -.mrgn-rght-0 { - margin-right: 0 -} - -.mrgn-rght-sm { - margin-right: 5px -} - -.mrgn-rght-md { - margin-right: 15px -} - -.mrgn-rght-lg { - margin-right: 30px -} - -.mrgn-rght-xl { - margin-right: 50px -} - -.brdr-bttm,.brdr-lft,.brdr-rght,.brdr-tp { - border: solid 0 #ccc -} - -.brdr-lft { - border-left-width: 1px -} - -.brdr-rght { - border-right-width: 1px -} - -.brdr-tp { - border-top-width: 1px -} - -.brdr-bttm { - border-bottom-width: 1px -} - -.brdr-0 { - border: 0!important -} - -.brdr-rds-0 { - border-radius: 0!important -} - -.tbl-gridify tfoot,.tbl-gridify thead { - display: none -} - -.tbl-gridify tbody,.tbl-gridify td { - display: block -} - -[class*=colcount-] { - list-style-position: outside; - padding-left: 1.3em -} - -[class*=colcount-]>li { - margin-left: 1.3em -} - -[class*=colcount-].list-unstyled { - list-style: none outside none; - padding-left: 0 -} - -[class*=colcount-].list-unstyled li { - margin-left: 0 -} - -.colcount-no-break>dd,.colcount-no-break>dt,.colcount-no-break>li,dl.colcount-no-break>div { - -webkit-column-break-inside: avoid; - -moz-column-break-inside: avoid; - break-inside: avoid-column -} - -.colcount-xxs-2 { - -webkit-column-count: 2; - -moz-column-count: 2; - column-count: 2 -} - -.colcount-xxs-3 { - -webkit-column-count: 3; - -moz-column-count: 3; - column-count: 3 -} - -.colcount-xxs-4 { - -webkit-column-count: 4; - -moz-column-count: 4; - column-count: 4 -} - -.full-width { - width: 100% -} - -.p-0 { - padding: 0!important -} - -.pl-2,.px-2 { - padding-left: 5px!important -} - -.pr-2,.px-2 { - padding-right: 5px!important -} - -.pt-4,.py-4 { - padding-top: 30px!important -} - -.pb-4,.py-4 { - padding-bottom: 30px!important -} - -.mt-auto { - margin-top: auto!important -} - -.stretched-link:after { - background-color: rgba(0,0,0,0); - bottom: 0; - content: ""; - left: 0; - pointer-events: auto; - position: absolute; - right: 0; - top: 0; - z-index: 1 -} - -.h-100 { - height: 100%!important -} - -.position-relative { - position: relative!important -} - -.d-flex { - display: -webkit-box!important; - display: -ms-flexbox!important; - display: flex!important -} - -.flex-column { - -webkit-box-orient: vertical!important; - -webkit-box-direction: normal!important; - -ms-flex-direction: column!important; - flex-direction: column!important -} - -.align-items-center { - -webkit-box-align: center!important; - -ms-flex-align: center!important; - align-items: center!important -} - -.align-self-center { - -ms-flex-item-align: center!important; - align-self: center!important -} - -.align-self-end { - -ms-flex-item-align: end!important; - align-self: flex-end!important -} - -.align-top { - vertical-align: top!important -} - -.align-middle { - vertical-align: middle!important -} - -.align-bottom { - vertical-align: bottom!important -} - -.text-white,a.text-white:visited { - color: #fff -} - -a.text-white:focus,a.text-white:hover { - color: #b3ffff -} - -.btn.text-white:focus,.btn.text-white:hover { - color: #b3ffff -} - -@-ms-viewport { - width: device-width -} - -.visible-xs { - display: none!important -} - -.visible-sm { - display: none!important -} - -.visible-md { - display: none!important -} - -.visible-lg { - display: none!important -} - -.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block { - display: none!important -} - -@media (max-width: 767px) { - .visible-xs { - display:block!important - } - - table.visible-xs { - display: table!important - } - - tr.visible-xs { - display: table-row!important - } - - td.visible-xs,th.visible-xs { - display: table-cell!important - } -} - -@media (max-width: 767px) { - .visible-xs-block { - display:block!important - } -} - -@media (max-width: 767px) { - .visible-xs-inline { - display:inline!important - } -} - -@media (max-width: 767px) { - .visible-xs-inline-block { - display:inline-block!important - } -} - -@media (min-width: 768px) and (max-width:991px) { - .visible-sm { - display:block!important - } - - table.visible-sm { - display: table!important - } - - tr.visible-sm { - display: table-row!important - } - - td.visible-sm,th.visible-sm { - display: table-cell!important - } -} - -@media (min-width: 768px) and (max-width:991px) { - .visible-sm-block { - display:block!important - } -} - -@media (min-width: 768px) and (max-width:991px) { - .visible-sm-inline { - display:inline!important - } -} - -@media (min-width: 768px) and (max-width:991px) { - .visible-sm-inline-block { - display:inline-block!important - } -} - -@media (min-width: 992px) and (max-width:1199px) { - .visible-md { - display:block!important - } - - table.visible-md { - display: table!important - } - - tr.visible-md { - display: table-row!important - } - - td.visible-md,th.visible-md { - display: table-cell!important - } -} - -@media (min-width: 992px) and (max-width:1199px) { - .visible-md-block { - display:block!important - } -} - -@media (min-width: 992px) and (max-width:1199px) { - .visible-md-inline { - display:inline!important - } -} - -@media (min-width: 992px) and (max-width:1199px) { - .visible-md-inline-block { - display:inline-block!important - } -} - -@media (min-width: 1200px) { - .visible-lg { - display:block!important - } - - table.visible-lg { - display: table!important - } - - tr.visible-lg { - display: table-row!important - } - - td.visible-lg,th.visible-lg { - display: table-cell!important - } -} - -@media (min-width: 1200px) { - .visible-lg-block { - display:block!important - } -} - -@media (min-width: 1200px) { - .visible-lg-inline { - display:inline!important - } -} - -@media (min-width: 1200px) { - .visible-lg-inline-block { - display:inline-block!important - } -} - -@media (max-width: 767px) { - .hidden-xs { - display:none!important - } -} - -@media (min-width: 768px) and (max-width:991px) { - .hidden-sm { - display:none!important - } -} - -@media (min-width: 992px) and (max-width:1199px) { - .hidden-md { - display:none!important - } -} - -@media (min-width: 1200px) { - .hidden-lg { - display:none!important - } -} - -.visible-print { - display: none!important -} - -@media print { - .visible-print { - display: block!important - } - - table.visible-print { - display: table!important - } - - tr.visible-print { - display: table-row!important - } - - td.visible-print,th.visible-print { - display: table-cell!important - } -} - -.visible-print-block { - display: none!important -} - -@media print { - .visible-print-block { - display: block!important - } -} - -.visible-print-inline { - display: none!important -} - -@media print { - .visible-print-inline { - display: inline!important - } -} - -.visible-print-inline-block { - display: none!important -} - -@media print { - .visible-print-inline-block { - display: inline-block!important - } -} - -@media print { - .hidden-print { - display: none!important - } -} - -.nojs-show,.wb-disable .nojs-hide,.wbdisable-show { - display: none!important -} - -.wb-disable .nojs-show,.wb-disable .wbdisable-show { - display: block!important -} - -.bg-cover { - background-size: cover -} - -.bg-center { - background-position: center -} - -.bg-norepeat { - background-repeat: no-repeat -} - -.bg-darker { - background-color: #000 -} - -.bg-dark { - background-color: #343a40 -} - -button.bg-dark:focus,button.bg-dark:hover { - background-color: #1d2124 -} - -.panel:not(:has(.panel,.well)):has(.stretched-link):hover,.panel:not(:has(.panel,.well)):has(.stretched-link:focus),.well:not(:has(.panel,.well)):has(.stretched-link):hover,.well:not(:has(.panel,.well)):has(.stretched-link:focus),a.gc-dwnld:not(:has(.panel,.well)):has(.stretched-link):hover,a.gc-dwnld:not(:has(.panel,.well)):has(.stretched-link:focus) { - -webkit-box-shadow: 1px 5px 7px rgba(0,0,0,.15); - box-shadow: 1px 5px 7px rgba(0,0,0,.15) -} - -.max-content { - max-width: -webkit-max-content; - max-width: -moz-max-content; - max-width: max-content -} - -.fnt-hdng { - font-family: Lato,"Noto Sans","Noto Sans Canadian Aboriginal",sans-serif -} - -.lead { - font-size: 1.2em -} - -.bg-light { - background-color: #f5f5f5 -} - -.m-0 { - margin: 0!important -} - -.mt-0,.my-0 { - margin-top: 0!important -} - -.mr-0,.mx-0 { - margin-right: 0!important -} - -.mb-0,.my-0 { - margin-bottom: 0!important -} - -.ml-0,.mx-0 { - margin-left: 0!important -} - -.m-1 { - margin: 5px!important -} - -.mt-1,.my-1 { - margin-top: 5px!important -} - -.mr-1,.mx-1 { - margin-right: 5px!important -} - -.mb-1,.my-1 { - margin-bottom: 5px!important -} - -.ml-1,.mx-1 { - margin-left: 5px!important -} - -.m-2 { - margin: 10px!important -} - -.mt-2,.my-2 { - margin-top: 10px!important -} - -.mr-2,.mx-2 { - margin-right: 10px!important -} - -.mb-2,.my-2 { - margin-bottom: 10px!important -} - -.ml-2,.mx-2 { - margin-left: 10px!important -} - -.m-3 { - margin: 20px!important -} - -.mt-3,.my-3 { - margin-top: 20px!important -} - -.mr-3,.mx-3 { - margin-right: 20px!important -} - -.mb-3,.my-3 { - margin-bottom: 20px!important -} - -.ml-3,.mx-3 { - margin-left: 20px!important -} - -.m-4 { - margin: 30px!important -} - -.mt-4,.my-4 { - margin-top: 30px!important -} - -.mr-4,.mx-4 { - margin-right: 30px!important -} - -.mb-4,.my-4 { - margin-bottom: 30px!important -} - -.ml-4,.mx-4 { - margin-left: 30px!important -} - -.m-5 { - margin: 60px!important -} - -.mt-5,.my-5 { - margin-top: 60px!important -} - -.mr-5,.mx-5 { - margin-right: 60px!important -} - -.mb-5,.my-5 { - margin-bottom: 60px!important -} - -.ml-5,.mx-5 { - margin-left: 60px!important -} - -.p-0 { - padding: 0!important -} - -.pt-0,.py-0 { - padding-top: 0!important -} - -.pr-0,.px-0 { - padding-right: 0!important -} - -.pb-0,.py-0 { - padding-bottom: 0!important -} - -.pl-0,.px-0 { - padding-left: 0!important -} - -.p-1 { - padding: 5px!important -} - -.pt-1,.py-1 { - padding-top: 5px!important -} - -.pr-1,.px-1 { - padding-right: 5px!important -} - -.pb-1,.py-1 { - padding-bottom: 5px!important -} - -.pl-1,.px-1 { - padding-left: 5px!important -} - -.p-2 { - padding: 10px!important -} - -.pt-2,.py-2 { - padding-top: 10px!important -} - -.pr-2,.px-2 { - padding-right: 10px!important -} - -.pb-2,.py-2 { - padding-bottom: 10px!important -} - -.pl-2,.px-2 { - padding-left: 10px!important -} - -.p-3 { - padding: 20px!important -} - -.pt-3,.py-3 { - padding-top: 20px!important -} - -.pr-3,.px-3 { - padding-right: 20px!important -} - -.pb-3,.py-3 { - padding-bottom: 20px!important -} - -.pl-3,.px-3 { - padding-left: 20px!important -} - -.p-4 { - padding: 30px!important -} - -.pt-4,.py-4 { - padding-top: 30px!important -} - -.pr-4,.px-4 { - padding-right: 30px!important -} - -.pb-4,.py-4 { - padding-bottom: 30px!important -} - -.pl-4,.px-4 { - padding-left: 30px!important -} - -.p-5 { - padding: 60px!important -} - -.pt-5,.py-5 { - padding-top: 60px!important -} - -.pr-5,.px-5 { - padding-right: 60px!important -} - -.pb-5,.py-5 { - padding-bottom: 60px!important -} - -.pl-5,.px-5 { - padding-left: 60px!important -} - -.m-auto { - margin: auto!important -} - -.mt-auto,.my-auto { - margin-top: auto!important -} - -.mr-auto,.mx-auto { - margin-right: auto!important -} - -.mb-auto,.my-auto { - margin-bottom: auto!important -} - -.ml-auto,.mx-auto { - margin-left: auto!important -} - -.margin-bottom-none { - margin-bottom: 0 -} - -.margin-bottom-small { - margin-bottom: .25em -} - -.margin-top-large { - margin-top: 1.5em -} - -.margin-top-medium { - margin-top: .75em -} - -@media screen { - .mathml body>div>math,.no-mathml body>div>math { - display: none!important - } - - #wb-dtmd { - margin: 2em 0 0 - } - - #wb-dtmd dd,#wb-dtmd dt { - display: inline; - font-weight: 400; - margin-right: 0 - } - - .nowrap { - white-space: nowrap - } - - .col-lg-auto,.col-md-auto,.col-sm-auto,.col-xs-auto { - min-height: 1px; - padding-left: 15px; - padding-right: 15px - } - - .col-xs-auto { - width: auto - } - - .wb-sl { - background: #26374a; - color: #fff; - font-weight: 700 - } - - .wb-sl:focus { - color: #fff; - text-decoration: none - } - - .wb-sl:hover { - background-color: #444; - color: #fff - } - - .overlay-def .modal-header { - background: #2e5274 - } - - .atn,.dec,.typ,.var { - color: #606 - } - - .clo,.opn,.pun { - color: #660 - } - - .atv,.str { - color: #2f6d2f - } - - .kwd { - color: #024b6e - } - - .com { - color: #800 - } - - .lit { - color: #066 - } - - .tag { - color: #125b7e - } - - .fun { - color: red - } - - .wb-tabs.carousel-s2.wb-init { - padding-bottom: 4.375em - } - - .wb-tabs.carousel-s2.exclude-controls { - padding-bottom: 0 - } - - .prm-flpr { - background-color: #eee; - margin-top: 1px - } - - .prm-flpr .wb-tabs.carousel-s2 [role=tablist] li.plypause { - font-size: 1.3em - } - - .prm-flpr .wb-tabs.carousel-s2 [role=tablist] li.plypause a { - margin-top: .15em - } - - .prm-flpr .wb-tabs.carousel-s2 figure figcaption { - font-size: 1.3em - } - - .prm-flpr .wb-tabs.carousel-s2 figure figcaption a { - text-decoration: none - } - - .prm-flpr .wb-tabs.carousel-s2 figure figcaption a:hover { - text-decoration: underline - } - - .wb-tabs.carousel-s2 [role=tablist] li.plypause a,.wb-tabs.carousel-s2 [role=tablist] li.tab-count .curr-count { - font-size: 1.2em - } - - .wb-tabs.carousel-s2 [role=tablist] li.nxt a .glyphicon,.wb-tabs.carousel-s2 [role=tablist] li.prv a .glyphicon { - font-size: 1.65em - } - - .gc-nttvs a:active h3,.gc-nttvs a:active img,.gc-nttvs a:focus h3,.gc-nttvs a:focus img { - outline: thin dotted - } - - .gc-nttvs h3 { - float: left; - text-decoration: underline - } - - .gc-nttvs img { - float: left; - margin-right: 100% - } - - .gc-nttvs p { - clear: both - } - - [dir=rtl] .gc-nttvs h3 { - float: right - } - - [dir=rtl] .gc-nttvs img { - float: right; - margin-left: 100%; - margin-right: 0 - } -} - -@media screen and (max-width: 767px) { - header .brand img { - margin-top:15px - } - - header .brand img,header .brand object { - max-height: 30px - } - - .list-responsive>li { - clear: right; - width: 100% - } - - main { - font-size: 1.125rem; - line-height: 1.55 - } - - .gcweb-menu>[role=menu] { - margin-left: -15px; - margin-right: -15px - } - - #wb-bnr+.gcweb-menu button[aria-haspopup=true] { - margin-left: 15px!important - } - - #wb-bnr+.gcweb-menu>[role=menu] { - margin-left: 0; - margin-right: 0 - } - - #wb-glb-mn { - margin-top: 20px - } - - #wb-glb-mn ul.chvrn li a { - font-size: 1.7em - } - - .pagedetails .pull-right { - float: none!important - } - - .wb-eqht-grd>[class*=col-] { - width: 100% - } - - [class*=col-] .well.header-rwd[class*=pstn-],[class*=col-] a.header-rwd[class*=pstn-].gc-dwnld { - left: 15px; - right: 15px; - width: inherit - } - - .pager { - margin-bottom: 50px - } - - .toc li { - display: block; - margin-bottom: 0 - } - - .toc li .list-group-item { - border-bottom: 0; - border-radius: 0; - padding: 4px 10px - } - - .toc li:last-child .list-group-item { - border-bottom: 1px solid #ddd - } - - ol.lst-stps-sub:not(.stps-strpd)>li,ol.lst-stps:not(.stps-strpd)>li { - padding-left: 2.6em - } - - ol.lst-stps.ld-zr:not(.stps-strpd)>li,ol.lst-stps.ld-zr>li ol.lst-stps-sub:not(.stps-strpd)>li { - padding-left: 2.8em - } - - ol.lst-stps>li:before { - font-size: .8em - } - - ol.lst-stps.ld-zr>li:before { - font-size: 1.2em - } - - ol.lst-stps-sub.stps-strpd>li,ol.lst-stps.stps-strpd>li { - padding-left: 3em - } - - .cmpgn-sctns { - margin-top: 0 - } - - .cmpgn-sctns li { - margin-top: 20px - } - - .cmpgn-sctns .h4 { - margin-top: 0; - padding-top: 15px - } - - .cmpgn-sctns .sctn-desc { - margin-bottom: 10px - } - - .application-bar h2 { - font-size: 18px; - margin: 12px 0 9px - } - - .home .header-rwd { - margin: 0; - opacity: 1 - } -} - -@media screen and (max-width: 991px) { - header .brand img { - margin-top:10px - } - - .h1,h1 { - font-size: 2.3125rem; - line-height: 1.19; - margin-top: 1.265rem - } - - .h2,h2 { - font-size: 2.1875rem; - line-height: 1.25 - } - - .h3,h3 { - font-size: 1.625rem; - line-height: 1.23 - } - - .h4,h4 { - font-size: 1.375rem; - line-height: 1.33 - } - - .h5,h5 { - font-size: 1.25rem; - line-height: 1.27 - } - - .h6,h6 { - font-size: 1.125rem; - line-height: 1.4 - } - - #wb-bnr+.gcweb-menu button[aria-haspopup=true] { - margin-left: calc(50% - 360px) - } - - .gcweb-menu .container { - padding: 0; - width: 100% - } - - .gcweb-menu [role=menu] { - position: static; - width: auto - } - - .gcweb-menu button[aria-haspopup=true][aria-expanded=true]+[role=menu] { - border-right: #eee solid 1px - } - - .gcweb-menu [role=menuitem] { - width: auto - } - - .gcweb-menu [role=menu] [role=menu] li:first-child [role=menuitem] { - font-size: 18px; - font-weight: 400; - text-decoration: underline; - width: auto - } - - .gcweb-menu [role=menu] [role=menu] { - border-top: none; - -webkit-box-shadow: none; - box-shadow: none; - margin-bottom: 0; - min-height: auto; - padding: 0; - width: auto - } - - .gcweb-menu [role=menu] [role=menu] li { - width: auto - } - - .gcweb-menu button:hover { - text-decoration: underline - } - - .gcweb-menu button+[role=menu] [role=menuitem][aria-expanded=false]:focus,.gcweb-menu button+[role=menu] [role=menuitem][aria-expanded=false]:hover { - background: 0 0; - color: #fff - } - - .gcweb-menu button+[role=menu] [role=menu] [role=menuitem][aria-expanded=false]:focus,.gcweb-menu button+[role=menu] [role=menu] [role=menuitem][aria-expanded=false]:hover { - color: #000 - } - - .gcweb-menu [role=menu] [role=menu] li:first-child { - margin-bottom: 0 - } - - .gcweb-menu [role=menu] [role=menu] li [role=menuitem] { - padding-bottom: 14px; - padding-left: 0; - padding-right: 30px; - padding-top: 14px - } - - .gcweb-menu [aria-expanded=true]:not(button)+[role=menu] li { - margin-left: 65px - } - - .gcweb-menu [aria-expanded=true]:not(button)+[role=menu] li:first-child [role=menuitem],.gcweb-menu [aria-expanded=true]:not(button)+[role=menu] li:last-child [role=menuitem] { - padding-left: 65px - } - - .gcweb-menu [aria-expanded=true]:not(button)+[role=menu] li:first-child,.gcweb-menu [aria-expanded=true]:not(button)+[role=menu] li:last-child { - margin-left: 0 - } - - .gcweb-menu [aria-haspopup]:not(button)::before,.gcweb-menu [role=treegrid]>[role=row]>[role=rowheader]::before { - content: "► " - } - - .gcweb-menu [aria-haspopup][aria-expanded=true]:not(button)::before,.gcweb-menu [role=treegrid]>[role=row][aria-expanded=true]>[role=rowheader]::before { - content: "▼ " - } - - .gcweb-menu [role=menu] [role=menu] [role=menuitem],.gcweb-menu [role=menu] [role=menu] li:first-child [role=menuitem] { - border-bottom: 1px solid #ccc; - color: #000 - } - - .gcweb-menu [role=menu] [role=menu] [role=menu] li:first-child [role=menuitem],.gcweb-menu [role=menu] [role=menu] [role=menuitem],.gcweb-menu [role=menu] [role=menu] li:last-child [role=menuitem] { - color: #284162; - text-decoration: none - } - - .gcweb-menu [role=menu] [role=menu] [role=menuitem]:focus,.gcweb-menu [role=menu] [role=menu] [role=menuitem]:hover,.gcweb-menu [role=menu] [role=menu] li:first-child [role=menuitem]:focus,.gcweb-menu [role=menu] [role=menu] li:first-child [role=menuitem]:hover,.gcweb-menu [role=menu] [role=menu] li:last-child [role=menuitem]:focus,.gcweb-menu [role=menu] [role=menu] li:last-child [role=menuitem]:hover { - color: #000; - text-decoration: underline - } - - .gcweb-menu [role=menu] [role=menu] li:first-child [role=menuitem],.gcweb-menu [role=menu] [role=menu] li:last-child [role=menuitem] { - background-color: #e1e1e1 - } - - .gcweb-menu [role=menu] [role=menu] li:last-child { - left: auto; - position: static; - top: auto - } - - .gcweb-menu [role=menu] [role=menu] li:last-child [role=menu] { - list-style: none - } - - .gcweb-menu [aria-expanded=true]+[role=menu] [role=menu] [role=menu] { - background-color: #e1e1e1 - } - - .gcweb-menu [aria-expanded=true]:not(button)+[role=menu] [role=menu] li { - margin-left: 100px - } - - .gcweb-menu [aria-expanded=true]:not(button)+[role=menu] li:last-child [role=menu] [role=menuitem] { - padding-left: 0 - } - - .gcweb-menu [role=menu] [role=menu] [role=menu] li { - width: auto - } - - #wb-bnr+hr+.container .col-md-8 .gcweb-menu>[role=menu] { - margin-bottom: 50px - } - - #wb-bnr+hr+.container .col-xs-5,#wb-bnr+hr+.container .col-xs-6 { - margin-top: -50px - } - - #wb-info .gc-sub-footer nav ul li { - display: block - } - - #wb-info .gc-sub-footer nav ul li:not(:last-child) { - margin-bottom: 1.5em - } - - #wb-info .gc-sub-footer nav ul li::before { - display: none - } - - .dshbrd details { - display: block - } - - .dshbrd details summary { - background: #26374a; - color: #fff; - font-size: 1em; - margin-top: 5px; - max-height: 999px; - padding: 1em - } - - .dshbrd details .cntnt { - border: 1px solid #26374a; - padding: 15px - } - - .gc-features p { - font-size: 17px - } - - .gc-subway:not(.gc-subway-index) h1 { - background-color: #fff; - border-bottom: none; - color: #555; - float: left; - font-size: 1.3em; - margin-left: -.5em; - margin-right: .5em; - margin-top: -.75em; - padding: 0 20px 10px 0 - } - - .gc-subway:not(.gc-subway-index) ul { - padding-top: .25em - } - - .dataTables_wrapper .dataTables_info { - padding-bottom: 5px - } - - .dataTables_wrapper .dataTables_filter { - float: left; - text-align: left; - width: 100% - } - - [dir=rtl] .dataTables_wrapper .dataTables_filter { - float: right; - text-align: right - } - - .provisional.gc-table.table-bordered { - border: 0 - } - - .provisional.gc-table.table-bordered>tbody>tr>td,.provisional.gc-table.table-bordered>tbody>tr>th,.provisional.gc-table.table-bordered>tfoot>tr>td,.provisional.gc-table.table-bordered>tfoot>tr>th,.provisional.gc-table.table-bordered>thead>tr>td,.provisional.gc-table.table-bordered>thead>tr>th { - border-bottom: 0; - border-left: 0; - border-right: 0 - } - - .provisional.gc-table.dataTable.no-footer { - border-bottom: 0 - } - - .provisional.gc-table .text-left { - clear: both; - display: block - } - - .provisional.gc-table>tbody>tr>td:first-child,.provisional.gc-table>tfoot>tr>td:first-child { - border-top: none - } - - .provisional.gc-table tr { - border: 1px solid #ddd; - display: block; - margin-bottom: .625em; - padding: .35em - } - - .provisional.gc-table>:last-child>tr:last-of-type { - margin-bottom: 0 - } - - .provisional.gc-table caption { - font-size: 1.1em - } - - .provisional.gc-table thead { - border: none; - clip: rect(0 0 0 0); - height: 1px; - margin: -1px; - overflow: hidden; - padding: 0; - position: absolute; - width: 1px - } - - .provisional.gc-table tbody+tbody>tr:first-of-type { - margin-top: .625em - } - - .provisional.gc-table td { - display: flow-root; - font-size: 1em; - text-align: right - } - - .provisional.gc-table td::before { - content: attr(data-label); - float: left; - font-weight: 700; - text-align: left - } - - .provisional.gc-table td:last-child { - border-bottom: 0 - } - - .gc-chckbxrdio.form-inline .label-inline { - margin-bottom: 20px; - padding-right: 20px - } - - .wb-tabs.carousel-s1,.wb-tabs.carousel-s2 { - border: 0 - } - - .wb-tabs>.tabpanels>details,.wb-tabs>details { - border: 0; - border-bottom: #ccc solid 1px; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0 - } - - .wb-tabs>.tabpanels>details:last-of-type,.wb-tabs>details:last-of-type { - border-bottom: 0 - } - - .wb-tabs>.tabpanels>details[style],.wb-tabs>details[style] { - min-height: 0!important - } - - .wb-tabs>.tabpanels>details>summary,.wb-tabs>details>summary { - border: 0 - } - - .wb-tabs>.tabpanels>details[open]>summary,.wb-tabs>details[open]>summary { - border: 0; - margin-bottom: 0 - } - - .wb-tabs { - border-color: #ccc; - border-radius: 4px; - border-style: solid; - border-width: 1px; - margin-bottom: 15px; - padding-left: 0; - padding-right: 0 - } - - .wb-tabs.tabs-acc>ul { - display: none - } - - .home h2 { - font-size: 26px - } - - .home .home-most-requested li { - font-size: 19px - } - - .home .home-your-gov { - background-image: none - } - - .page-type-ilp .gc-followus { - margin-bottom: 40px; - margin-top: 40px - } - - .page-type-ilp .wb-feeds { - margin-bottom: 40px - } - - .page-type-theme #theme-nav ul { - display: none - } - - .wb-disable .page-type-theme #theme-nav ul { - display: block - } - - .page-type-theme #theme-nav ul li { - border-bottom: #f5f5f5 solid 1px; - position: relative - } - - .page-type-theme #theme-nav ul li a::after { - content: "›"; - font-size: 1.5em; - margin-left: 10px; - position: absolute; - right: 14px; - top: 50%; - -webkit-transform: translateY(-50%); - transform: translateY(-50%) - } - - .page-type-theme #theme-nav ul li.active a::after { - display: none - } - - .page-type-theme #menu-btn.expanded+ul { - display: block - } -} - -@media screen and (max-width: 1199px) { - #wb-sm .menu { - border-right:1px solid #999 - } - - #wb-sm .menu>li:last-child { - border-right: 0 - } -} - -@media screen and (min-width: 480px) { - #mb-pnl { - min-width:300px - } - - .dataTables_wrapper .dataTables_info:after { - content: "|"; - font-size: 1.2em; - line-height: 1em; - padding: 0 .25em - } - - .colcount-xs-2 { - -webkit-column-count: 2; - -moz-column-count: 2; - column-count: 2 - } - - .colcount-xs-3 { - -webkit-column-count: 3; - -moz-column-count: 3; - column-count: 3 - } - - .colcount-xs-4 { - -webkit-column-count: 4; - -moz-column-count: 4; - column-count: 4 - } -} - -@media screen and (min-width: 768px) { - .col-sm-auto { - width:auto - } - - .form-inline .label-inline { - display: inline-block; - padding-right: 10px - } - - .form-inline .label-inline:last-child { - padding-right: 0 - } - - ul.list-col-sm-1>li { - -ms-flex-preferred-size: 100%; - flex-basis: 100% - } - - ul.list-col-sm-2>li { - -ms-flex-preferred-size: 50%; - flex-basis: 50% - } - - ul.list-col-sm-3>li { - -ms-flex-preferred-size: 33.33%; - flex-basis: 33.33% - } - - ul.list-col-sm-4>li { - -ms-flex-preferred-size: 25%; - flex-basis: 25% - } - - .wb-filter .input-group { - max-width: 80% - } - - .well.header-rwd,a.header-rwd.gc-dwnld { - width: 75% - } - - .form-inline .gc-chckbxrdio.checkbox input[type=checkbox] { - position: absolute - } - - .form-inline.gc-chckbxrdio .checkbox input[type=checkbox],.form-inline.gc-chckbxrdio .radio input[type=radio] { - position: absolute - } - - .gc-stp-stp ol:not(.lst-spcd) li,.gc-stp-stp ul:not(.lst-spcd) li { - margin-bottom: 10px - } - - table.nws-tbl td { - display: inline; - margin-top: 10px - } - - table.nws-tbl .nws-tbl-dept,table.nws-tbl .nws-tbl-type { - border-left: solid 1px #666 - } - - table.nws-tbl .nws-tbl-desc,table.nws-tbl .nws-tbl-ttl { - display: block - } - - .cmpgn-img { - min-height: 117px - } - - .cmpgn-sctns { - margin-top: -10% - } - - .cmpgn-sctns img { - width: 40% - } - - .colcount-sm-2 { - -webkit-column-count: 2; - -moz-column-count: 2; - column-count: 2 - } - - .colcount-sm-3 { - -webkit-column-count: 3; - -moz-column-count: 3; - column-count: 3 - } - - .colcount-sm-4 { - -webkit-column-count: 4; - -moz-column-count: 4; - column-count: 4 - } - - .pstn-lft-sm { - position: absolute; - left: 0; - right: auto - } - - .pstn-rght-sm { - position: absolute; - right: 0; - left: auto - } - - .pstn-tp-sm { - position: absolute; - top: 0; - bottom: auto - } - - .pstn-bttm-sm { - position: absolute; - bottom: 0; - top: auto - } - - .text-sm-left { - text-align: left - } - - .text-sm-right { - text-align: right - } - - .d-sm-flex { - display: -webkit-box; - display: -ms-flexbox; - display: flex - } - - .flex-sm-wrap { - -ms-flex-wrap: wrap; - flex-wrap: wrap - } - - .align-items-sm-center { - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center - } - - .mb-sm-5 { - margin-bottom: 50px - } - - .p-sm-3 { - padding: 15px - } - - .px-sm-3 { - padding-left: 15px; - padding-right: 15px - } - - .pr-sm-3 { - padding-right: 15px!important - } - - .m-sm-0 { - margin: 0!important - } - - .mt-sm-0,.my-sm-0 { - margin-top: 0!important - } - - .mr-sm-0,.mx-sm-0 { - margin-right: 0!important - } - - .mb-sm-0,.my-sm-0 { - margin-bottom: 0!important - } - - .ml-sm-0,.mx-sm-0 { - margin-left: 0!important - } - - .m-sm-1 { - margin: 5px!important - } - - .mt-sm-1,.my-sm-1 { - margin-top: 5px!important - } - - .mr-sm-1,.mx-sm-1 { - margin-right: 5px!important - } - - .mb-sm-1,.my-sm-1 { - margin-bottom: 5px!important - } - - .ml-sm-1,.mx-sm-1 { - margin-left: 5px!important - } - - .m-sm-2 { - margin: 10px!important - } - - .mt-sm-2,.my-sm-2 { - margin-top: 10px!important - } - - .mr-sm-2,.mx-sm-2 { - margin-right: 10px!important - } - - .mb-sm-2,.my-sm-2 { - margin-bottom: 10px!important - } - - .ml-sm-2,.mx-sm-2 { - margin-left: 10px!important - } - - .m-sm-3 { - margin: 20px!important - } - - .mt-sm-3,.my-sm-3 { - margin-top: 20px!important - } - - .mr-sm-3,.mx-sm-3 { - margin-right: 20px!important - } - - .mb-sm-3,.my-sm-3 { - margin-bottom: 20px!important - } - - .ml-sm-3,.mx-sm-3 { - margin-left: 20px!important - } - - .m-sm-4 { - margin: 30px!important - } - - .mt-sm-4,.my-sm-4 { - margin-top: 30px!important - } - - .mr-sm-4,.mx-sm-4 { - margin-right: 30px!important - } - - .mb-sm-4,.my-sm-4 { - margin-bottom: 30px!important - } - - .ml-sm-4,.mx-sm-4 { - margin-left: 30px!important - } - - .m-sm-5 { - margin: 60px!important - } - - .mt-sm-5,.my-sm-5 { - margin-top: 60px!important - } - - .mr-sm-5,.mx-sm-5 { - margin-right: 60px!important - } - - .mb-sm-5,.my-sm-5 { - margin-bottom: 60px!important - } - - .ml-sm-5,.mx-sm-5 { - margin-left: 60px!important - } - - .p-sm-0 { - padding: 0!important - } - - .pt-sm-0,.py-sm-0 { - padding-top: 0!important - } - - .pr-sm-0,.px-sm-0 { - padding-right: 0!important - } - - .pb-sm-0,.py-sm-0 { - padding-bottom: 0!important - } - - .pl-sm-0,.px-sm-0 { - padding-left: 0!important - } - - .p-sm-1 { - padding: 5px!important - } - - .pt-sm-1,.py-sm-1 { - padding-top: 5px!important - } - - .pr-sm-1,.px-sm-1 { - padding-right: 5px!important - } - - .pb-sm-1,.py-sm-1 { - padding-bottom: 5px!important - } - - .pl-sm-1,.px-sm-1 { - padding-left: 5px!important - } - - .p-sm-2 { - padding: 10px!important - } - - .pt-sm-2,.py-sm-2 { - padding-top: 10px!important - } - - .pr-sm-2,.px-sm-2 { - padding-right: 10px!important - } - - .pb-sm-2,.py-sm-2 { - padding-bottom: 10px!important - } - - .pl-sm-2,.px-sm-2 { - padding-left: 10px!important - } - - .p-sm-3 { - padding: 20px!important - } - - .pt-sm-3,.py-sm-3 { - padding-top: 20px!important - } - - .pr-sm-3,.px-sm-3 { - padding-right: 20px!important - } - - .pb-sm-3,.py-sm-3 { - padding-bottom: 20px!important - } - - .pl-sm-3,.px-sm-3 { - padding-left: 20px!important - } - - .p-sm-4 { - padding: 30px!important - } - - .pt-sm-4,.py-sm-4 { - padding-top: 30px!important - } - - .pr-sm-4,.px-sm-4 { - padding-right: 30px!important - } - - .pb-sm-4,.py-sm-4 { - padding-bottom: 30px!important - } - - .pl-sm-4,.px-sm-4 { - padding-left: 30px!important - } - - .p-sm-5 { - padding: 60px!important - } - - .pt-sm-5,.py-sm-5 { - padding-top: 60px!important - } - - .pr-sm-5,.px-sm-5 { - padding-right: 60px!important - } - - .pb-sm-5,.py-sm-5 { - padding-bottom: 60px!important - } - - .pl-sm-5,.px-sm-5 { - padding-left: 60px!important - } - - .m-sm-auto { - margin: auto!important - } - - .mt-sm-auto,.my-sm-auto { - margin-top: auto!important - } - - .mr-sm-auto,.mx-sm-auto { - margin-right: auto!important - } - - .mb-sm-auto,.my-sm-auto { - margin-bottom: auto!important - } - - .ml-sm-auto,.mx-sm-auto { - margin-left: auto!important - } - - [class*=cnjnctn-type-].cnjnctn-sm { - border-left: 0 solid transparent; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -ms-flex-direction: row; - flex-direction: row - } - - [class*=cnjnctn-type-].cnjnctn-sm>[class*=cnjnctn-col]:not(:first-child) { - margin-left: 1.4em; - margin-top: 0; - position: relative - } - - [class*=cnjnctn-type-].cnjnctn-sm>[class*=cnjnctn-col]:not(:first-child):after { - -o-border-image: linear-gradient(to bottom,#6f6f6f 0.3em,#6f6f6f 0.3em,transparent 0.3em,transparent 2.35em,#6f6f6f 2.35em,#6f6f6f 2.35em) 1 100%; - border-image: -webkit-gradient(linear,left top,left bottom,color-stop(0.3em,#6f6f6f),color-stop(0.3em,#6f6f6f),color-stop(0.3em,transparent),color-stop(2.35em,transparent),color-stop(2.35em,#6f6f6f),color-stop(2.35em,#6f6f6f)) 1 100%; - border-image: linear-gradient(to bottom,#6f6f6f 0.3em,#6f6f6f 0.3em,transparent 0.3em,transparent 2.35em,#6f6f6f 2.35em,#6f6f6f 2.35em) 1 100%; - border-left: 3px solid #6f6f6f; - margin-left: -1.6em - } - - .cnjnctn-type-or.cnjnctn-sm>[class*=cnjnctn-col]:not(:first-child):before { - margin-left: -3.3em - } - - .cnjnctn-type-and.cnjnctn-sm>[class*=cnjnctn-col]:not(:first-child):before { - border-width: 3px 0; - margin-left: -3.15em - } - - [class*=cnjnctn-type-].cnjnctn-sm>[class*=cnjnctn-col]:not(:first-child):before { - margin-top: .3em - } - - [class*=cnjnctn-type-].cnjnctn-sm>[class*=cnjnctn-col]:not(:last-child) { - margin-bottom: 0 - } -} - -@media screen and (min-width: 768px) and (prefers-contrast:more) { - [class*=cnjnctn-type-].cnjnctn-sm>[class*=cnjnctn-col]:not(:first-child):after { - -o-border-image:linear-gradient(to bottom,#fff 0.3em,#fff 0.3em,transparent 0.3em,transparent 2.35em,#fff 2.35em,#fff 2.35em) 1 100%; - border-image: -webkit-gradient(linear,left top,left bottom,color-stop(0.3em,#fff),color-stop(0.3em,#fff),color-stop(0.3em,transparent),color-stop(2.35em,transparent),color-stop(2.35em,#fff),color-stop(2.35em,#fff)) 1 100%; - border-image: linear-gradient(to bottom,#fff 0.3em,#fff 0.3em,transparent 0.3em,transparent 2.35em,#fff 2.35em,#fff 2.35em) 1 100%; - border-left: none - } -} - -@media screen and (min-width: 768px) { - [class*=cnjnctn-type-].cnjnctn-sm:not(.brdr-0)>[class*=cnjnctn-col] { - min-height:3em; - padding-left: 0; - padding-right: 0 - } -} - -@media screen and (min-width: 992px) { - [dir=rtl] main.col-md-push-3 { - left:auto - } - - [dir=rtl] #wb-sec.col-md-pull-9 { - right: auto - } - - .col-md-auto { - width: auto - } - - ul.list-col-md-1>li { - -ms-flex-preferred-size: 100%; - flex-basis: 100% - } - - ul.list-col-md-2>li { - -ms-flex-preferred-size: 50%; - flex-basis: 50% - } - - ul.list-col-md-3>li { - -ms-flex-preferred-size: 33.33%; - flex-basis: 33.33% - } - - ul.list-col-md-4>li { - -ms-flex-preferred-size: 25%; - flex-basis: 25% - } - - .gcweb-menu { - margin-left: -15px - } - - .gcweb-menu [role=menu] [role=menu] [role=menuitem][aria-haspopup=true],.gcweb-menu [role=menu] [role=menu] [role=menuitem][aria-haspopup=true]:hover { - color: #000; - font-size: 20px; - font-weight: 700; - text-decoration: none - } - - #wb-bnr+.gcweb-menu { - margin-left: 0 - } - - .wb-disable .gcweb-menu [role=menu]>li { - float: left; - padding-right: 5px; - width: 30% - } - - .wb-disable .gcweb-menu [role=menu]>li:nth-child(3n+3) { - clear: right - } - - .wb-disable .gcweb-menu [role=menu]>li:nth-child(3n+4) { - clear: left - } - - .wb-disable .gcweb-menu [role=menu]>li:nth-child(2n+2) { - clear: none - } - - .wb-disable .gcweb-menu [role=menu]>li:nth-child(2n+3) { - clear: none - } - - .pagedetails div:has(#gc-pft)+.wb-share-inited { - margin-top: 16px - } - - .gc-contributors { - display: -webkit-box; - display: -ms-flexbox; - display: flex - } - - .gc-contributors h2,.gc-contributors h3 { - line-height: 1.8em; - word-break: initial - } - - .gc-contributors ul { - -webkit-padding-start: 5px; - padding-inline-start:5px} - - .gc-contributors ul li { - display: inline-block; - margin-right: .25rem - } - - .gc-contributors ul li::after { - content: "|"; - margin-left: .25rem - } - - .gc-contributors ul li:last-child::after { - content: none - } - - #details-flickr,#details-youtube { - padding-left: 0; - padding-right: 0 - } - - .wb-tabs>.tabpanels>details,.wb-tabs>details { - border-color: #ccc; - border-style: solid; - border-width: 1px; - display: none - } - - .wb-tabs>.tabpanels>details[open],.wb-tabs>details[open] { - display: block - } - - .wb-tabs>.tabpanels>details[open]>summary,.wb-tabs>details[open]>summary { - display: none!important - } - - .wb-tabs.carousel-s2.show-thumbs [role=tablist] li.active a { - border-color: #666; - border-style: solid; - border-width: 10px; - margin-bottom: 1px; - padding: 0 - } - - .wb-tabs.carousel-s2.show-thumbs [role=tablist] li.active a:focus::before { - content: ""; - height: calc(100% - 6px); - left: 0; - margin: 2px; - outline: inherit; - outline-color: #fff; - position: absolute; - top: 0; - width: calc(100% - 4px) - } - - .wb-tabs.carousel-s2.show-thumbs [role=tablist] li[role=presentation] { - display: inline-block - } - - .wb-tabs.carousel-s2.show-thumbs [role=tablist] li[role=presentation] img { - opacity: .5; - width: 140px - } - - .wb-tabs.carousel-s2.show-thumbs [role=tablist] li[class=active] img { - opacity: 1 - } - - .wb-tabs.carousel-s2.show-thumbs [role=tablist] li.nxt,.wb-tabs.carousel-s2.show-thumbs [role=tablist] li.prv,.wb-tabs.carousel-s2.show-thumbs [role=tablist] li.tab-count { - display: none - } - - .gc-subway:not(.gc-subway-index).no-blink { - display: block - } - - .gc-subway:not(.gc-subway-index) { - border-color: transparent; - display: none - } - - .no-js .gc-subway:not(.gc-subway-index),.wb-disable .gc-subway:not(.gc-subway-index) { - display: block - } - - .gc-subway:not(.gc-subway-index) hgroup { - margin-left: -14px - } - - .gc-subway:not(.gc-subway-index) hgroup h1 { - clip: rect(1px,1px,1px,1px); - height: 1px; - margin: 0; - overflow: hidden; - position: absolute; - width: 1px - } - - .gc-subway:not(.gc-subway-index) ul li:last-child:has(ul) { - border-left: 4px solid #26374a; - padding-bottom: 1.25em - } - - .gc-subway:not(.gc-subway-index) ul li:last-child:has(ul)::after { - background-color: #26374a; - bottom: 0; - content: ""; - height: 4px; - left: -.45em; - position: absolute; - width: .75em - } - - .gc-subway-wrapper { - float: right; - width: calc(33.33% - .5em - 5px) - } - - .gc-subway-section { - display: flow-root; - padding-right: 30px; - width: 66.66% - } - - .gc-subway-section hgroup:first-of-type h1 { - margin-top: 0 - } - - .gc-subway-section hgroup:first-of-type p { - display: block; - font-size: 1.25em; - margin-bottom: 0 - } - - .gc-most-requested h2 { - float: left; - width: 16.666667% - } - - .gc-most-requested ul { - -webkit-column-count: 2; - -moz-column-count: 2; - column-count: 2; - -webkit-column-gap: 0; - -moz-column-gap: 0; - column-gap: 0; - margin-bottom: 0; - padding-left: 1.55em - } - - .gc-most-requested ul li { - display: inline-block; - line-height: 1.25em; - margin-bottom: 10px; - padding-left: 1.15em; - padding-right: 1em; - position: relative - } - - .gc-most-requested ul li::before { - content: "•"; - font-size: .8em; - left: 0; - position: absolute; - top: 0 - } - - .gc-most-requested ul li::after { - content: ""; - display: block; - width: 335px - } - - .gc-most-requested ul:has(> li:nth-child(2):last-child) { - display: -webkit-box; - display: -ms-flexbox; - display: flex - } - - .gc-most-requested ul:has(> li:nth-child(2):last-child)>li { - width: 50% - } - - .container .gc-most-requested h2 { - float: none - } - - .container .gc-most-requested ul { - -webkit-column-count: 1; - -moz-column-count: 1; - column-count: 1 - } - - .container .gc-most-requested ul li { - display: block - } - - .page-type-theme { - overflow-x: hidden - } - - .page-type-theme #gridContainer { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - margin: 0 auto; - padding: 0 15px; - width: 970px - } - - .page-type-theme #gridContainer>:first-child { - -webkit-box-flex: 0; - -ms-flex: 0 0 300px; - flex: 0 0 300px - } - - .page-type-theme #gridContainer>:first-child .container { - padding: 0; - width: auto - } - - .page-type-theme #gridContainer>:last-child { - border-left: 5px solid #26374a; - -webkit-box-flex: 1; - -ms-flex: 1 0 0%; - flex: 1 0 0% - } - - .page-type-theme #gridContainer>:last-child .container { - padding-left: 35px; - width: auto - } - - .page-type-theme #theme-nav .wb-sl { - display: block; - font-size: .8em; - margin: 0 5px 5px; - text-align: center - } - - .page-type-theme #menu-btn { - display: none - } - - .page-type-theme .gc-most-requested { - position: relative - } - - .page-type-theme .gc-most-requested::after { - background-color: #f5f5f5; - bottom: 0; - content: ""; - left: calc(100% - 1px); - position: absolute; - top: 0; - width: 9999px - } - - .page-type-theme .gc-most-requested ul li::after { - width: 240px - } - - .colcount-md-2 { - -webkit-column-count: 2; - -moz-column-count: 2; - column-count: 2 - } - - .colcount-md-3 { - -webkit-column-count: 3; - -moz-column-count: 3; - column-count: 3 - } - - .colcount-md-4 { - -webkit-column-count: 4; - -moz-column-count: 4; - column-count: 4 - } - - .pstn-lft-md { - position: absolute; - left: 0; - right: auto - } - - .pstn-rght-md { - position: absolute; - right: 0; - left: auto - } - - .pstn-tp-md { - position: absolute; - top: 0; - bottom: auto - } - - .pstn-bttm-md { - position: absolute; - bottom: 0; - top: auto - } - - .m-md-0 { - margin: 0!important - } - - .mt-md-0,.my-md-0 { - margin-top: 0!important - } - - .mr-md-0,.mx-md-0 { - margin-right: 0!important - } - - .mb-md-0,.my-md-0 { - margin-bottom: 0!important - } - - .ml-md-0,.mx-md-0 { - margin-left: 0!important - } - - .m-md-1 { - margin: 5px!important - } - - .mt-md-1,.my-md-1 { - margin-top: 5px!important - } - - .mr-md-1,.mx-md-1 { - margin-right: 5px!important - } - - .mb-md-1,.my-md-1 { - margin-bottom: 5px!important - } - - .ml-md-1,.mx-md-1 { - margin-left: 5px!important - } - - .m-md-2 { - margin: 10px!important - } - - .mt-md-2,.my-md-2 { - margin-top: 10px!important - } - - .mr-md-2,.mx-md-2 { - margin-right: 10px!important - } - - .mb-md-2,.my-md-2 { - margin-bottom: 10px!important - } - - .ml-md-2,.mx-md-2 { - margin-left: 10px!important - } - - .m-md-3 { - margin: 20px!important - } - - .mt-md-3,.my-md-3 { - margin-top: 20px!important - } - - .mr-md-3,.mx-md-3 { - margin-right: 20px!important - } - - .mb-md-3,.my-md-3 { - margin-bottom: 20px!important - } - - .ml-md-3,.mx-md-3 { - margin-left: 20px!important - } - - .m-md-4 { - margin: 30px!important - } - - .mt-md-4,.my-md-4 { - margin-top: 30px!important - } - - .mr-md-4,.mx-md-4 { - margin-right: 30px!important - } - - .mb-md-4,.my-md-4 { - margin-bottom: 30px!important - } - - .ml-md-4,.mx-md-4 { - margin-left: 30px!important - } - - .m-md-5 { - margin: 60px!important - } - - .mt-md-5,.my-md-5 { - margin-top: 60px!important - } - - .mr-md-5,.mx-md-5 { - margin-right: 60px!important - } - - .mb-md-5,.my-md-5 { - margin-bottom: 60px!important - } - - .ml-md-5,.mx-md-5 { - margin-left: 60px!important - } - - .p-md-0 { - padding: 0!important - } - - .pt-md-0,.py-md-0 { - padding-top: 0!important - } - - .pr-md-0,.px-md-0 { - padding-right: 0!important - } - - .pb-md-0,.py-md-0 { - padding-bottom: 0!important - } - - .pl-md-0,.px-md-0 { - padding-left: 0!important - } - - .p-md-1 { - padding: 5px!important - } - - .pt-md-1,.py-md-1 { - padding-top: 5px!important - } - - .pr-md-1,.px-md-1 { - padding-right: 5px!important - } - - .pb-md-1,.py-md-1 { - padding-bottom: 5px!important - } - - .pl-md-1,.px-md-1 { - padding-left: 5px!important - } - - .p-md-2 { - padding: 10px!important - } - - .pt-md-2,.py-md-2 { - padding-top: 10px!important - } - - .pr-md-2,.px-md-2 { - padding-right: 10px!important - } - - .pb-md-2,.py-md-2 { - padding-bottom: 10px!important - } - - .pl-md-2,.px-md-2 { - padding-left: 10px!important - } - - .p-md-3 { - padding: 20px!important - } - - .pt-md-3,.py-md-3 { - padding-top: 20px!important - } - - .pr-md-3,.px-md-3 { - padding-right: 20px!important - } - - .pb-md-3,.py-md-3 { - padding-bottom: 20px!important - } - - .pl-md-3,.px-md-3 { - padding-left: 20px!important - } - - .p-md-4 { - padding: 30px!important - } - - .pt-md-4,.py-md-4 { - padding-top: 30px!important - } - - .pr-md-4,.px-md-4 { - padding-right: 30px!important - } - - .pb-md-4,.py-md-4 { - padding-bottom: 30px!important - } - - .pl-md-4,.px-md-4 { - padding-left: 30px!important - } - - .p-md-5 { - padding: 60px!important - } - - .pt-md-5,.py-md-5 { - padding-top: 60px!important - } - - .pr-md-5,.px-md-5 { - padding-right: 60px!important - } - - .pb-md-5,.py-md-5 { - padding-bottom: 60px!important - } - - .pl-md-5,.px-md-5 { - padding-left: 60px!important - } - - .m-md-auto { - margin: auto!important - } - - .mt-md-auto,.my-md-auto { - margin-top: auto!important - } - - .mr-md-auto,.mx-md-auto { - margin-right: auto!important - } - - .mb-md-auto,.my-md-auto { - margin-bottom: auto!important - } - - .ml-md-auto,.mx-md-auto { - margin-left: auto!important - } - - [class*=cnjnctn-type-].cnjnctn-md { - border-left: 0 solid transparent; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -ms-flex-direction: row; - flex-direction: row - } - - [class*=cnjnctn-type-].cnjnctn-md>[class*=cnjnctn-col]:not(:first-child) { - margin-left: 1.4em; - margin-top: 0; - position: relative - } - - [class*=cnjnctn-type-].cnjnctn-md>[class*=cnjnctn-col]:not(:first-child):after { - -o-border-image: linear-gradient(to bottom,#6f6f6f 0.3em,#6f6f6f 0.3em,transparent 0.3em,transparent 2.35em,#6f6f6f 2.35em,#6f6f6f 2.35em) 1 100%; - border-image: -webkit-gradient(linear,left top,left bottom,color-stop(0.3em,#6f6f6f),color-stop(0.3em,#6f6f6f),color-stop(0.3em,transparent),color-stop(2.35em,transparent),color-stop(2.35em,#6f6f6f),color-stop(2.35em,#6f6f6f)) 1 100%; - border-image: linear-gradient(to bottom,#6f6f6f 0.3em,#6f6f6f 0.3em,transparent 0.3em,transparent 2.35em,#6f6f6f 2.35em,#6f6f6f 2.35em) 1 100%; - border-left: 3px solid #6f6f6f; - margin-left: -1.6em - } - - .cnjnctn-type-or.cnjnctn-md>[class*=cnjnctn-col]:not(:first-child):before { - margin-left: -3.3em - } - - .cnjnctn-type-and.cnjnctn-md>[class*=cnjnctn-col]:not(:first-child):before { - border-width: 3px 0; - margin-left: -3.15em - } - - [class*=cnjnctn-type-].cnjnctn-md>[class*=cnjnctn-col]:not(:first-child):before { - margin-top: .3em - } - - [class*=cnjnctn-type-].cnjnctn-md>[class*=cnjnctn-col]:not(:last-child) { - margin-bottom: 0 - } -} - -@media screen and (min-width: 992px) and (prefers-contrast:more) { - [class*=cnjnctn-type-].cnjnctn-md>[class*=cnjnctn-col]:not(:first-child):after { - -o-border-image:linear-gradient(to bottom,#fff 0.3em,#fff 0.3em,transparent 0.3em,transparent 2.35em,#fff 2.35em,#fff 2.35em) 1 100%; - border-image: -webkit-gradient(linear,left top,left bottom,color-stop(0.3em,#fff),color-stop(0.3em,#fff),color-stop(0.3em,transparent),color-stop(2.35em,transparent),color-stop(2.35em,#fff),color-stop(2.35em,#fff)) 1 100%; - border-image: linear-gradient(to bottom,#fff 0.3em,#fff 0.3em,transparent 0.3em,transparent 2.35em,#fff 2.35em,#fff 2.35em) 1 100%; - border-left: none - } -} - -@media screen and (min-width: 992px) { - [class*=cnjnctn-type-].cnjnctn-md:not(.brdr-0)>[class*=cnjnctn-col] { - min-height:3em; - padding-left: 0; - padding-right: 0 - } -} - -@media screen and (min-width: 1200px) { - .clr-lft-lg { - clear:left - } - - .clr-rght-lg { - clear: right - } - - .col-lg-auto { - width: auto - } - - ul.list-col-lg-1>li { - -ms-flex-preferred-size: 100%; - flex-basis: 100% - } - - ul.list-col-lg-2>li { - -ms-flex-preferred-size: 50%; - flex-basis: 50% - } - - ul.list-col-lg-3>li { - -ms-flex-preferred-size: 33.33%; - flex-basis: 33.33% - } - - ul.list-col-lg-4>li { - -ms-flex-preferred-size: 25%; - flex-basis: 25% - } - - .list-responsive>li { - width: 25% - } - - .list-responsive>li:nth-child(4n+4) { - clear: right - } - - .wb-filter .input-group { - max-width: 60% - } - - .well.header-rwd,a.header-rwd.gc-dwnld { - width: 50% - } - - .sect-lnks { - margin-right: 15px; - width: 31.7% - } - - main.col-md-9 .sect-lnks { - width: 31.2% - } - - .lt-ie9 .sect-lnks { - width: 30% - } - - .lt-ie9 main.col-md-9 .sect-lnks { - width: 30% - } - - .page-type-theme #gridContainer { - width: 1170px - } - - .page-type-theme .gc-most-requested ul li::after { - width: 335px - } - - .colcount-lg-2 { - -webkit-column-count: 2; - -moz-column-count: 2; - column-count: 2 - } - - .colcount-lg-3 { - -webkit-column-count: 3; - -moz-column-count: 3; - column-count: 3 - } - - .colcount-lg-4 { - -webkit-column-count: 4; - -moz-column-count: 4; - column-count: 4 - } - - .pstn-lft-lg { - position: absolute; - left: 0; - right: auto - } - - .pstn-rght-lg { - position: absolute; - right: 0; - left: auto - } - - .pstn-tp-lg { - position: absolute; - top: 0; - bottom: auto - } - - .pstn-bttm-lg { - position: absolute; - bottom: 0; - top: auto - } - - .m-lg-0 { - margin: 0!important - } - - .mt-lg-0,.my-lg-0 { - margin-top: 0!important - } - - .mr-lg-0,.mx-lg-0 { - margin-right: 0!important - } - - .mb-lg-0,.my-lg-0 { - margin-bottom: 0!important - } - - .ml-lg-0,.mx-lg-0 { - margin-left: 0!important - } - - .m-lg-1 { - margin: 5px!important - } - - .mt-lg-1,.my-lg-1 { - margin-top: 5px!important - } - - .mr-lg-1,.mx-lg-1 { - margin-right: 5px!important - } - - .mb-lg-1,.my-lg-1 { - margin-bottom: 5px!important - } - - .ml-lg-1,.mx-lg-1 { - margin-left: 5px!important - } - - .m-lg-2 { - margin: 10px!important - } - - .mt-lg-2,.my-lg-2 { - margin-top: 10px!important - } - - .mr-lg-2,.mx-lg-2 { - margin-right: 10px!important - } - - .mb-lg-2,.my-lg-2 { - margin-bottom: 10px!important - } - - .ml-lg-2,.mx-lg-2 { - margin-left: 10px!important - } - - .m-lg-3 { - margin: 20px!important - } - - .mt-lg-3,.my-lg-3 { - margin-top: 20px!important - } - - .mr-lg-3,.mx-lg-3 { - margin-right: 20px!important - } - - .mb-lg-3,.my-lg-3 { - margin-bottom: 20px!important - } - - .ml-lg-3,.mx-lg-3 { - margin-left: 20px!important - } - - .m-lg-4 { - margin: 30px!important - } - - .mt-lg-4,.my-lg-4 { - margin-top: 30px!important - } - - .mr-lg-4,.mx-lg-4 { - margin-right: 30px!important - } - - .mb-lg-4,.my-lg-4 { - margin-bottom: 30px!important - } - - .ml-lg-4,.mx-lg-4 { - margin-left: 30px!important - } - - .m-lg-5 { - margin: 60px!important - } - - .mt-lg-5,.my-lg-5 { - margin-top: 60px!important - } - - .mr-lg-5,.mx-lg-5 { - margin-right: 60px!important - } - - .mb-lg-5,.my-lg-5 { - margin-bottom: 60px!important - } - - .ml-lg-5,.mx-lg-5 { - margin-left: 60px!important - } - - .p-lg-0 { - padding: 0!important - } - - .pt-lg-0,.py-lg-0 { - padding-top: 0!important - } - - .pr-lg-0,.px-lg-0 { - padding-right: 0!important - } - - .pb-lg-0,.py-lg-0 { - padding-bottom: 0!important - } - - .pl-lg-0,.px-lg-0 { - padding-left: 0!important - } - - .p-lg-1 { - padding: 5px!important - } - - .pt-lg-1,.py-lg-1 { - padding-top: 5px!important - } - - .pr-lg-1,.px-lg-1 { - padding-right: 5px!important - } - - .pb-lg-1,.py-lg-1 { - padding-bottom: 5px!important - } - - .pl-lg-1,.px-lg-1 { - padding-left: 5px!important - } - - .p-lg-2 { - padding: 10px!important - } - - .pt-lg-2,.py-lg-2 { - padding-top: 10px!important - } - - .pr-lg-2,.px-lg-2 { - padding-right: 10px!important - } - - .pb-lg-2,.py-lg-2 { - padding-bottom: 10px!important - } - - .pl-lg-2,.px-lg-2 { - padding-left: 10px!important - } - - .p-lg-3 { - padding: 20px!important - } - - .pt-lg-3,.py-lg-3 { - padding-top: 20px!important - } - - .pr-lg-3,.px-lg-3 { - padding-right: 20px!important - } - - .pb-lg-3,.py-lg-3 { - padding-bottom: 20px!important - } - - .pl-lg-3,.px-lg-3 { - padding-left: 20px!important - } - - .p-lg-4 { - padding: 30px!important - } - - .pt-lg-4,.py-lg-4 { - padding-top: 30px!important - } - - .pr-lg-4,.px-lg-4 { - padding-right: 30px!important - } - - .pb-lg-4,.py-lg-4 { - padding-bottom: 30px!important - } - - .pl-lg-4,.px-lg-4 { - padding-left: 30px!important - } - - .p-lg-5 { - padding: 60px!important - } - - .pt-lg-5,.py-lg-5 { - padding-top: 60px!important - } - - .pr-lg-5,.px-lg-5 { - padding-right: 60px!important - } - - .pb-lg-5,.py-lg-5 { - padding-bottom: 60px!important - } - - .pl-lg-5,.px-lg-5 { - padding-left: 60px!important - } - - .m-lg-auto { - margin: auto!important - } - - .mt-lg-auto,.my-lg-auto { - margin-top: auto!important - } - - .mr-lg-auto,.mx-lg-auto { - margin-right: auto!important - } - - .mb-lg-auto,.my-lg-auto { - margin-bottom: auto!important - } - - .ml-lg-auto,.mx-lg-auto { - margin-left: auto!important - } - - [class*=cnjnctn-type-].cnjnctn-lg { - border-left: 0 solid transparent; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -ms-flex-direction: row; - flex-direction: row - } - - [class*=cnjnctn-type-].cnjnctn-lg>[class*=cnjnctn-col]:not(:first-child) { - margin-left: 1.4em; - margin-top: 0; - position: relative - } - - [class*=cnjnctn-type-].cnjnctn-lg>[class*=cnjnctn-col]:not(:first-child):after { - -o-border-image: linear-gradient(to bottom,#6f6f6f 0.3em,#6f6f6f 0.3em,transparent 0.3em,transparent 2.35em,#6f6f6f 2.35em,#6f6f6f 2.35em) 1 100%; - border-image: -webkit-gradient(linear,left top,left bottom,color-stop(0.3em,#6f6f6f),color-stop(0.3em,#6f6f6f),color-stop(0.3em,transparent),color-stop(2.35em,transparent),color-stop(2.35em,#6f6f6f),color-stop(2.35em,#6f6f6f)) 1 100%; - border-image: linear-gradient(to bottom,#6f6f6f 0.3em,#6f6f6f 0.3em,transparent 0.3em,transparent 2.35em,#6f6f6f 2.35em,#6f6f6f 2.35em) 1 100%; - border-left: 3px solid #6f6f6f; - margin-left: -1.6em - } - - .cnjnctn-type-or.cnjnctn-lg>[class*=cnjnctn-col]:not(:first-child):before { - margin-left: -3.3em - } - - .cnjnctn-type-and.cnjnctn-lg>[class*=cnjnctn-col]:not(:first-child):before { - border-width: 3px 0; - margin-left: -3.15em - } - - [class*=cnjnctn-type-].cnjnctn-lg>[class*=cnjnctn-col]:not(:first-child):before { - margin-top: .3em - } - - [class*=cnjnctn-type-].cnjnctn-lg>[class*=cnjnctn-col]:not(:last-child) { - margin-bottom: 0 - } -} - -@media screen and (min-width: 1200px) and (prefers-contrast:more) { - [class*=cnjnctn-type-].cnjnctn-lg>[class*=cnjnctn-col]:not(:first-child):after { - -o-border-image:linear-gradient(to bottom,#fff 0.3em,#fff 0.3em,transparent 0.3em,transparent 2.35em,#fff 2.35em,#fff 2.35em) 1 100%; - border-image: -webkit-gradient(linear,left top,left bottom,color-stop(0.3em,#fff),color-stop(0.3em,#fff),color-stop(0.3em,transparent),color-stop(2.35em,transparent),color-stop(2.35em,#fff),color-stop(2.35em,#fff)) 1 100%; - border-image: linear-gradient(to bottom,#fff 0.3em,#fff 0.3em,transparent 0.3em,transparent 2.35em,#fff 2.35em,#fff 2.35em) 1 100%; - border-left: none - } -} - -@media screen and (min-width: 1200px) { - [class*=cnjnctn-type-].cnjnctn-lg:not(.brdr-0)>[class*=cnjnctn-col] { - min-height:3em; - padding-left: 0; - padding-right: 0 - } -} - -@media screen and (max-width: 479px) { - header .brand.col-xs-5 { - float:none!important; - width: auto!important - } - - header .brand img,header .brand object { - padding-right: 0 - } - - #wb-info .gc-sub-footer img,#wb-info .gc-sub-footer object { - height: 25px; - margin-top: 15px; - max-width: 100%; - padding-right: 10px - } - - #wb-glb-mn { - float: none!important; - width: auto!important - } - - #wb-glb-mn ul { - width: 100% - } - - #wb-glb-mn ul.chvrn { - margin-left: auto - } - - #wb-glb-mn ul.chvrn:before { - border: 0 - } - - #wb-srch input { - max-width: inherit - } - - .gc-fld-srvy-container { - padding-bottom: 100% - } - - #mb-pnl { - min-width: 65% - } - - .dataTables_wrapper .dataTables_length { - width: 100% - } - - .wb-tabs.carousel-s2 [role=tablist] li.nxt,.wb-tabs.carousel-s2 [role=tablist] li.prv { - margin-right: 0 - } - - .wb-tabs.carousel-s2 [role=tablist] li.prv { - margin-left: 0 - } - - .wb-tabs.carousel-s2 [role=tablist] li.prv a { - padding: 10px 0 10px .4em - } - - .wb-tabs.carousel-s2 [role=tablist] li.nxt a { - padding: 10px 0 - } - - .wb-tabs.carousel-s2 [role=tablist] li.tab-count { - font-size: .9em; - margin-right: 5px - } - - .wb-tabs.carousel-s2 [role=tablist] li.plypause { - margin-right: 2% - } - - .wb-tabs.carousel-s2 [role=tablist] li.plypause a { - font-size: 1.3em; - margin-right: 0; - padding: 12px 10px 7px - } - - .prm-flpr .wb-tabs.carousel-s2 [role=tablist] li.plypause { - margin-top: 7px - } - - .prm-flpr .wb-tabs.carousel-s2 [role=tablist] li.plypause a { - font-size: 1em; - padding-bottom: 7.5px; - padding-top: 7.5px; - vertical-align: middle - } - - .prm-flpr .wb-tabs.carousel-s2 [role=tablist] li.tab-count { - height: 0; - margin-right: 0; - visibility: hidden; - width: 0 - } - - .prm-flpr .wb-tabs.carousel-s2 [role=tablist] li.tab-count .curr-count { - font-size: 1em - } -} - -@media screen and (min-width: 480px) and (max-width:767px) { - #wb-srch input { - max-width:50% - } -} - -@media screen and (min-width: 768px) and (max-width:991px) { - .clr-lft-sm { - clear:left - } - - .clr-rght-sm { - clear: right - } - - #wb-srch { - margin-bottom: 15px - } - - .pagedetails div:has(#gc-pft)+.wb-share-inited { - margin-top: 29px - } - - .cmpgn-sctns { - word-wrap: break-word - } -} - -@media screen and (min-width: 992px) and (max-width:1199px) { - .clr-lft-md { - clear:left - } - - .clr-rght-md { - clear: right - } - - .gcweb-menu [role=menu] [role=menu] { - width: 610px - } - - .gcweb-menu [role=menu] [role=menu] li { - width: 100% - } - - .gcweb-menu [role=menu] [role=menu] li:last-child { - left: auto; - margin-top: 1em; - position: relative; - top: auto - } - - .gcweb-menu [role=menu] [role=menu] [role=menu] li:last-child { - margin-top: 0 - } - - .gcweb-menu [role=menu] [role=menu] [role=menu] { - margin-bottom: 0; - padding-bottom: 0; - position: relative - } - - .sect-lnks { - margin-right: 15px; - width: 48.1% - } - - main.col-md-9 .sect-lnks { - width: 47.5% - } - - .lt-ie9 .sect-lnks { - width: 47% - } - - .lt-ie9 main.col-md-9 .sect-lnks { - width: 46% - } - - .home .home-your-gov { - background-image: url("https://www.canada.ca/content/dam/canada/carousel/bkg-home-yourgov-md.jpg"),url("../assets/bkg-home-yourgov-md.jpg") - } -} - -@media screen and (min-width: 1600px) { - .colcount-xl-2 { - -webkit-column-count:2; - -moz-column-count: 2; - column-count: 2 - } - - .colcount-xl-3 { - -webkit-column-count: 3; - -moz-column-count: 3; - column-count: 3 - } - - .colcount-xl-4 { - -webkit-column-count: 4; - -moz-column-count: 4; - column-count: 4 - } -} - -@media print { - .pg-brk-aft { - -webkit-column-break-after: always; - -moz-column-break-after: always; - break-after: always - } - - a[href]:after { - content: none - } - - #wb-tphp { - display: none - } - - header .brand { - margin-bottom: 0 - } - - #wb-bc .breadcrumb { - margin-bottom: 0 - } - - #wb-bc a[href]:after { - content: "" - } - - #wb-info { - display: none!important - } - - .tofpg { - display: none!important - } - - #wb-sm,.gcweb-menu { - display: none!important - } - - #wb-glb-mn { - display: none!important - } - - #wb-lng { - display: none!important - } - - #wb-srch { - display: none!important - } - - #wb-sec { - display: none!important - } - - .pagedetails details { - display: none!important - } - - .pagedetails .btn { - display: none!important - } - - #gc-pft { - display: none!important - } - - .fn-lnk,.wb-fnote .fn-rtn a { - background-color: transparent; - border: 0; - padding: 0 - } - - .wb-fnote { - border-left: 0; - border-right: 0; - margin-bottom: 1em; - margin-left: 0; - margin-right: 0 - } - - .wb-fnote dd { - border: 0; - display: inline-block; - width: 100% - } - - .wb-fnote .fn-rtn { - overflow: visible - } - - .olControlMousePosition,.olControlPanZoomBar,.wb-geomap-detail { - visibility: hidden - } - - .mfp-container,.mfp-wrap { - position: static - } - - .mfp-arrow,.mfp-close { - display: none!important - } - - .wb-mltmd.cc_on .wb-mm-cc,.wb-mm-ctrls,.wb-mm-ovrly { - display: none - } - - .wb-modal main>*,.wb-overlay-dlg main>* { - display: none - } - - .wb-modal main .mfp-content,.wb-modal main .wb-overlay.open,.wb-overlay-dlg main .mfp-content,.wb-overlay-dlg main .wb-overlay.open { - display: block - } - - .wb-overlay.open { - position: static - } - - .wb-overlay.open.no-print { - display: none - } - - .mfp-content:before,.wb-overlay.open:before { - content: attr(data-pgtitle); - display: block; - font-size: 2.5625rem - } - - .kwd,.tag,.typ { - font-weight: 700 - } - - .kwd,.tag { - color: #006 - } - - .atv,.str { - color: #060 - } - - .clo,.opn,.pun { - color: #440 - } - - .atn,.typ { - color: #404 - } - - .com { - color: #600; - font-style: italic - } - - .lit { - color: #044 - } - - .wb-tabs [role=tablist],.wb-tabs.print-active>.tabpanels>details.out .tgl-panel,.wb-tabs.print-active>.tabpanels>details>summary[aria-expanded=false]+.tgl-panel,.wb-tabs.print-active>.tabpanels>div.out { - display: none!important - } - - .wb-tabs.carousel-s1 [role=tabpanel],.wb-tabs.carousel-s2 [role=tabpanel] { - margin-bottom: .5em - } - - .wb-tabs.carousel-s1 figure,.wb-tabs.carousel-s2 figure { - -webkit-column-break-inside: avoid; - -moz-column-break-inside: avoid; - break-inside: avoid - } - - .wb-tabs.carousel-s1 figcaption,.wb-tabs.carousel-s2 figcaption { - border: 1px solid #000 - } - - .wb-tabs [role=tabpanel] { - display: block!important; - opacity: 1!important; - overflow: visible!important; - position: static!important; - -webkit-transform: none; - transform: none; - visibility: visible!important - } - - .wb-tabs [role=tabpanel] figcaption { - position: static - } - - .wb-tabs [role=tabpanel] summary { - display: list-item!important - } - - .wb-tabs [role=tabpanel].noheight { - max-height: none - } - - .wb-tabs>.tabpanels { - overflow: visible!important - } - - .gc-nttvs { - display: none - } - - .features { - display: none!important - } - - .followus { - display: none!important - } - - ol.lst-stps>li { - -webkit-column-break-inside: avoid; - -moz-column-break-inside: avoid; - break-inside: avoid; - padding-top: 1em - } - - .jumbotron.pagebrand figcaption { - position: static - } - - .cmpgn-sctns { - margin-top: 20px - } - - .application-bar h2 { - font-size: 34px - } -} - -.test-textSpacing * { - letter-spacing: .12em!important; - line-height: 1.5em!important; - word-spacing: 0.16em!important -} - -.test-textSpacing p { - margin-bottom: 2em!important -} - -:root { - --supports-has: false -} - -@supports selector(:has(*)) { - :root { - --supports-has: true - } -} diff --git a/netlify/test/budget.html b/netlify/test/budget.html deleted file mode 100644 index 4cdca9f..0000000 --- a/netlify/test/budget.html +++ /dev/null @@ -1,217 +0,0 @@ - - - - - - -Sample advanced search for Budget (custom) - Canada.ca - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - - - -
    -
    - - -
    - - - - - - -
    - -

    Sample advanced search for Budget (custom)

    - -
    -

    Try this out! Click on the following link to search for "Taxes" with the search results ordered by dates descending, instead of relevance.

    -

    Sort results by date

    -

    Note: Current implementation of the sorting feature requires server-side code or additional custom JS to make dynamic with the search query.

    -
    - - - - - -
    - - - - -
    -

    Page details

    -
    Date modified:
    -
    -
    -
    - -
    - - - - - - - - - - - diff --git a/netlify/test/demoted/v1_1_0_srb-en.html b/netlify/test/demoted/v1_1_0_srb-en.html deleted file mode 100644 index 63d385e..0000000 --- a/netlify/test/demoted/v1_1_0_srb-en.html +++ /dev/null @@ -1,203 +0,0 @@ - - - - - - -Basic search page for Governement of Canada using Headless - Canada.ca - - - - - - - - - - - - - - - - - - - -
    -
    -
    - -
    -

    Language selection

    - -
    - - - - - -
    -
    - - -
    - - - - - - -
    - -

    Basic search page for Governement of Canada using Headless

    - - - - -
    -

    Perform an advanced search

    - - -

    Expected output for the result section

    -
    - Output for Results section - [To be completed, see Connector.js for reference until then] -
    - -
    -

    Page details

    -
    Date modified:
    -
    -
    -
    - -
    - - - - - - - - - diff --git a/netlify/test/demoted/v1_1_0_srb-fr.html b/netlify/test/demoted/v1_1_0_srb-fr.html deleted file mode 100644 index 2d7abd3..0000000 --- a/netlify/test/demoted/v1_1_0_srb-fr.html +++ /dev/null @@ -1,203 +0,0 @@ - - - - - - -Résultats de la recherche (base) pour le gouvernement du Canada avec Headless - Canada.ca - - - - - - - - - - - - - - - - - - - -
    -
    -
    - -
    -

    Sélection de la langue

    - -
    - - - - - -
    -
    - - -
    - - - - - - -
    - -

    Résultats de la recherche (base) pour le gouvernement du Canada avec Headless

    - - - - -
    -

    Effectuer une recherche avancée

    - - -

    Section Résultats attendu pour la section de résultats

    -
    - Section Résultats générée - [À compléter, voir Connector.js comme référence pour l'instant] -
    - -
    -

    Détails de la page

    -
    Date de modification :
    -
    -
    -
    - -
    - - - - - - - - - diff --git a/netlify/test/demoted/v1_1_0_src-en.html b/netlify/test/demoted/v1_1_0_src-en.html deleted file mode 100644 index a2381ac..0000000 --- a/netlify/test/demoted/v1_1_0_src-en.html +++ /dev/null @@ -1,211 +0,0 @@ - - - - - - -Contextual search page (ESDC) for Governement of Canada using Headless - Canada.ca - - - - - - - - - - - - - - - - - - - -
    -
    -
    - -
    -

    Language selection

    - -
    - - - - - -
    -
    - - -
    - - - - - - -
    - -

    Contextual search page (ESDC) for Governement of Canada using Headless

    - -
    -
    -
    - -
    - -
    -
    - - -
    -

    Search all Government of Canada websites

    -

    Don't include personal information (telephone, email, SIN, financial, medical, or work details).

    -
    - - -
    - - -

    Expected output for the result section

    -
    - Output for Results section - [To be completed, see Connector.js for reference until then] -
    - -
    -

    Page details

    -
    Date modified:
    -
    -
    -
    - -
    - - - - - - - - - diff --git a/netlify/test/demoted/v1_1_0_src-fr.html b/netlify/test/demoted/v1_1_0_src-fr.html deleted file mode 100644 index 2cae278..0000000 --- a/netlify/test/demoted/v1_1_0_src-fr.html +++ /dev/null @@ -1,211 +0,0 @@ - - - - - - -Résultats de la recherche (contextuels à EDSC) pour le gouvernement du Canada avec Headless - Canada.ca - - - - - - - - - - - - - - - - - - - -
    -
    -
    - -
    -

    Sélection de la langue

    - -
    - - - - - -
    -
    - - -
    - - - - - - -
    - -

    Résultats de la recherche (contextuels à EDSC) pour le gouvernement du Canada avec Headless

    - -
    -
    -
    - -
    - -
    -
    - - -
    -

    Effectuer une recherche sur tous les sites Web du gouvernement du Canada

    -

    N'incluez pas de renseignements personnels (téléphone, courriel, NAS, renseignements financiers, médicaux ou professionnels).

    -
    - - -
    - - -

    Section Résultats attendu pour la section de résultats

    -
    - Section Résultats générée - [À compléter, voir Connector.js comme référence pour l'instant] -
    - -
    -

    Détails de la page

    -
    Date de modification :
    -
    -
    -
    - -
    - - - - - - - - - diff --git a/netlify/test/election.html b/netlify/test/election.html deleted file mode 100644 index bba2932..0000000 --- a/netlify/test/election.html +++ /dev/null @@ -1,207 +0,0 @@ - - - - - - -Sample advanced search for Elections (custom) - Canada.ca - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - - - -
    -
    - - -
    - - - - - - -
    - -

    Sample advanced search for Elections (custom)

    - - - - -
    - -
    -

    Page details

    -
    Date modified:
    -
    -
    -
    - -
    - - - - - - - - - - - diff --git a/netlify/test/gazette.html b/netlify/test/gazette.html deleted file mode 100644 index 24782a7..0000000 --- a/netlify/test/gazette.html +++ /dev/null @@ -1,203 +0,0 @@ - - - - - - -Sample advanced search for Gazette (custom) - Canada.ca - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - - - -
    -
    - - -
    - - - - - - -
    - -

    Sample advanced search for Gazette (custom)

    - - - - -
    - -
    -

    Page details

    -
    Date modified:
    -
    -
    -
    - -
    - - - - - - - - - - - diff --git a/netlify/test/newsadv-en.html b/netlify/test/newsadv-en.html deleted file mode 100644 index 8a09a22..0000000 --- a/netlify/test/newsadv-en.html +++ /dev/null @@ -1,394 +0,0 @@ - - - - - - -News Advanced Search user interface - Canada.ca - - - - - - - - - - - - - - - - - - - -
    -
    -
    - -
    -

    Language selection

    - -
    - - - - - -
    -
    - - -
    - - - - - - -
    - -

    News Advanced Search user interface

    - - -
    - - -
    - - -
    - - - - -

    Expected output for the result section

    -
    - Output for Results section - [To be completed, see Connector.js for reference until then] -
    - -
    -

    Page details

    -
    Date modified:
    -
    -
    -
    - -
    - - - - - - - - - - - diff --git a/netlify/test/newsadv-fr.html b/netlify/test/newsadv-fr.html deleted file mode 100644 index 4cbc18e..0000000 --- a/netlify/test/newsadv-fr.html +++ /dev/null @@ -1,426 +0,0 @@ - - - - - - -Interface utilisateur de la recherche avancée d'actualités - Canada.ca - - - - - - - - - - - - - - - - - - - -
    -
    -
    - -
    -

    Sélection de la langue

    - -
    - - - - - -
    -
    - - -
    - - - - - - -
    - -

    Interface utilisateur de la recherche avancée d'actualités

    - - - - - -
    - - - - -

    Section Résultats attendu pour la section de résultats

    -
    - Section Résultats générée - [À compléter, voir Connector.js comme référence pour l'instant] -
    - -
    -

    Détails de la page

    -
    Date de modification :
    -
    -
    -
    - -
    - - - - - - - - - - - diff --git a/netlify/test/no-qs-en.html b/netlify/test/no-qs-en.html deleted file mode 100644 index 31a253f..0000000 --- a/netlify/test/no-qs-en.html +++ /dev/null @@ -1,213 +0,0 @@ - - - - - - -Search page without Query Suggestions (QS) - Canada.ca - - - - - - - - - - - - - - - - - - - -
    -
    -
    - -
    -

    Language selection

    - -
    - - - - - -
    -
    - - -
    - - - - - - -
    - -

    Search page without Query Suggestions (QS)

    - - - - -
    -

    Perform an advanced search

    - - -

    Expected output for the result section

    -
    - Output for Results section - [To be completed, see Connector.js for reference until then] -
    - -
    -

    Page details

    -
    Date modified:
    -
    -
    -
    - -
    - - - - - - - - - - - diff --git a/netlify/test/no-qs-fr.html b/netlify/test/no-qs-fr.html deleted file mode 100644 index 5e35edb..0000000 --- a/netlify/test/no-qs-fr.html +++ /dev/null @@ -1,213 +0,0 @@ - - - - - - -Résultats de la recherche sans Suggestions de termes - Canada.ca - - - - - - - - - - - - - - - - - - - -
    -
    -
    - -
    -

    Sélection de la langue

    - -
    - - - - - -
    -
    - - -
    - - - - - - -
    - -

    Résultats de la recherche sans Suggestions de termes

    - - - - -
    -

    Effectuer une recherche avancée

    - - -

    Section Résultats attendu pour la section de résultats

    -
    - Section Résultats générée - [À compléter, voir Connector.js comme référence pour l'instant] -
    - -
    -

    Détails de la page

    -
    Date de modification :
    -
    -
    -
    - -
    - - - - - - - - - - - diff --git a/netlify/test/no-token.html b/netlify/test/no-token.html deleted file mode 100644 index 6e1c95f..0000000 --- a/netlify/test/no-token.html +++ /dev/null @@ -1,213 +0,0 @@ - - - - - - -Basic search page for Governement of Canada using Headless - Canada.ca - - - - - - - - - - - - - - - - - - - -
    -
    -
    - -
    -

    Language selection

    - -
    - - - - - -
    -
    - - -
    - - - - - - -
    - -

    Basic search page for Governement of Canada using Headless

    - - - - -
    -

    Perform an advanced search

    - - -

    Expected output for the result section

    -
    - Output for Results section - [To be completed, see Connector.js for reference until then] -
    - -
    -

    Page details

    -
    Date modified:
    -
    -
    -
    - -
    - - - - - - - - - - - diff --git a/netlify/test/qs-en-topright-custom.html b/netlify/test/qs-en-topright-custom.html deleted file mode 100644 index 153b283..0000000 --- a/netlify/test/qs-en-topright-custom.html +++ /dev/null @@ -1,222 +0,0 @@ - - - - - - -QS in top right search box - Canada.ca - - - - - - - - - - - - - - - - - - - -
    -
    -
    - -
    -

    Language selection

    - -
    - - - - - - -
    -

    Search

    -
    -
    - - - -
    -
    - -
    -
    -
    - - -
    -
    - - -
    - - - - - - -
    - -

    QS in top right search box

    - -
    -
    - Lorem ipsum dolor sit amet consectetur adipisicing elit. Nihil cumque quos quia eaque impedit obcaecati quo molestiae quod ratione nostrum. Autem omnis hic possimus veritatis temporibus earum, quas enim ipsa! -
    - - -

    Expected output for the result section

    -
    - Output for Results section - [To be completed, see Connector.js for reference until then] -
    - -
    -

    Page details

    -
    Date modified:
    -
    -
    -
    - -
    - - - - - - - - - - - diff --git a/netlify/test/qs-en-topright.html b/netlify/test/qs-en-topright.html deleted file mode 100644 index 424ea50..0000000 --- a/netlify/test/qs-en-topright.html +++ /dev/null @@ -1,220 +0,0 @@ - - - - - - -QS in top right search box - Canada.ca - - - - - - - - - - - - - - - - - - - -
    -
    -
    - -
    -

    Language selection

    - -
    - - - - - - -
    -

    Search

    -
    -
    - - - -
    -
    - -
    -
    -
    - - -
    -
    - - -
    - - - - - - -
    - -

    QS in top right search box

    - -
    -
    - Lorem ipsum dolor sit amet consectetur adipisicing elit. Nihil cumque quos quia eaque impedit obcaecati quo molestiae quod ratione nostrum. Autem omnis hic possimus veritatis temporibus earum, quas enim ipsa! -
    - - -

    Expected output for the result section

    -
    - Output for Results section - [To be completed, see Connector.js for reference until then] -
    - -
    -

    Page details

    -
    Date modified:
    -
    -
    -
    - -
    - - - - - - - - - - - diff --git a/netlify/test/qs-en.html b/netlify/test/qs-en.html deleted file mode 100644 index 3c71425..0000000 --- a/netlify/test/qs-en.html +++ /dev/null @@ -1,214 +0,0 @@ - - - - - - -Search page with 10 Query Suggestions after at least 2 character entered - Canada.ca - - - - - - - - - - - - - - - - - - - -
    -
    -
    - -
    -

    Language selection

    - -
    - - - - - -
    -
    - - -
    - - - - - - -
    - -

    Search page with 10 Query Suggestions after at least 2 character entered

    - - - - -
    -

    Perform an advanced search

    - - -

    Expected output for the result section

    -
    - Output for Results section - [To be completed, see Connector.js for reference until then] -
    - -
    -

    Page details

    -
    Date modified:
    -
    -
    -
    - -
    - - - - - - - - - - - diff --git a/netlify/test/qs-fr-topright-custom.html b/netlify/test/qs-fr-topright-custom.html deleted file mode 100644 index 8ad1303..0000000 --- a/netlify/test/qs-fr-topright-custom.html +++ /dev/null @@ -1,221 +0,0 @@ - - - - - - -QS dans la boite de recherche en haut à droite - Canada.ca - - - - - - - - - - - - - - - - - - - -
    -
    -
    - -
    -

    Sélection de la langue

    - -
    - - - - - - -
    -

    Recherche

    -
    -
    - - - -
    -
    - -
    -
    -
    - - -
    -
    - - -
    - - - - - - -
    - -

    QS dans la boite de recherche en haut à droite

    - -
    -
    - Lorem ipsum dolor sit amet consectetur adipisicing elit. Nihil cumque quos quia eaque impedit obcaecati quo molestiae quod ratione nostrum. Autem omnis hic possimus veritatis temporibus earum, quas enim ipsa! -
    - - -

    Résultats attendus pour la section des résultats

    -
    - Sortie des résultats de recherche -
    - -
    -

    Détails de la page

    -
    Date de modification :
    -
    -
    -
    - -
    - - - - - - - - - - - diff --git a/netlify/test/qs-fr-topright.html b/netlify/test/qs-fr-topright.html deleted file mode 100644 index d610e49..0000000 --- a/netlify/test/qs-fr-topright.html +++ /dev/null @@ -1,219 +0,0 @@ - - - - - - -QS dans la boite de recherche en haut à droite - Canada.ca - - - - - - - - - - - - - - - - - - - -
    -
    -
    - -
    -

    Sélection de la langue

    - -
    - - - - - - -
    -

    Recherche

    -
    -
    - - - -
    -
    - -
    -
    -
    - - -
    -
    - - -
    - - - - - - -
    - -

    QS dans la boite de recherche en haut à droite

    - -
    -
    - Lorem ipsum dolor sit amet consectetur adipisicing elit. Nihil cumque quos quia eaque impedit obcaecati quo molestiae quod ratione nostrum. Autem omnis hic possimus veritatis temporibus earum, quas enim ipsa! -
    - - -

    Résultats attendus pour la section des résultats

    -
    - Sortie des résultats de recherche -
    - -
    -

    Détails de la page

    -
    Date de modification :
    -
    -
    -
    - -
    - - - - - - - - - - - diff --git a/netlify/test/qs-fr.html b/netlify/test/qs-fr.html deleted file mode 100644 index dd6666a..0000000 --- a/netlify/test/qs-fr.html +++ /dev/null @@ -1,214 +0,0 @@ - - - - - - -Recherche avec 10 Suggestions de termes avec minimum de 2 caractères entrés - Canada.ca - - - - - - - - - - - - - - - - - - - -
    -
    -
    - -
    -

    Sélection de la langue

    - -
    - - - - - -
    -
    - - -
    - - - - - - -
    - -

    Recherche avec 10 Suggestions de termes avec minimum de 2 caractères entrés

    - - - - -
    -

    Effectuer une recherche avancée

    - - -

    Section Résultats attendu pour la section de résultats

    -
    - Section Résultats générée - [À compléter, voir Connector.js comme référence pour l'instant] -
    - -
    -

    Détails de la page

    -
    Date de modification :
    -
    -
    -
    - -
    - - - - - - - - - - - diff --git a/netlify/test/sra-en.html b/netlify/test/sra-en.html deleted file mode 100644 index 942463d..0000000 --- a/netlify/test/sra-en.html +++ /dev/null @@ -1,253 +0,0 @@ - - - - - - -Advanced search page for Governement of Canada using Headless - Canada.ca - - - - - - - - - - - - - - - - - - - -
    -
    -
    - -
    -

    Language selection

    - -
    - - - - - -
    -
    - - -
    - - - - - - -
    - -

    Advanced search page for Governement of Canada using Headless

    - - -
    - - -
    - - -
    - - -

    Expected output for the result section

    -
    - Output for Results section - [To be completed, see Connector.js for reference until then] -
    - -
    -

    Page details

    -
    Date modified:
    -
    -
    -
    - -
    - - - - - - - - - - - diff --git a/netlify/test/sra-fr.html b/netlify/test/sra-fr.html deleted file mode 100644 index 03d9a66..0000000 --- a/netlify/test/sra-fr.html +++ /dev/null @@ -1,253 +0,0 @@ - - - - - - -Résultats de la recherche (avancée) pour le gouvernement du Canada avec Headless - Canada.ca - - - - - - - - - - - - - - - - - - - -
    -
    -
    - -
    -

    Sélection de la langue

    - -
    - - - - - -
    -
    - - -
    - - - - - - -
    - -

    Résultats de la recherche (avancée) pour le gouvernement du Canada avec Headless

    - - - - - -
    - - -

    Section Résultats attendu pour la section de résultats

    -
    - Section Résultats générée - [À compléter, voir Connector.js comme référence pour l'instant] -
    - -
    -

    Détails de la page

    -
    Date de modification :
    -
    -
    -
    - -
    - - - - - - - - - - - diff --git a/netlify/test/srb-en.html b/netlify/test/srb-en.html deleted file mode 100644 index db27b24..0000000 --- a/netlify/test/srb-en.html +++ /dev/null @@ -1,212 +0,0 @@ - - - - - - -Basic search page for Governement of Canada using Headless - Canada.ca - - - - - - - - - - - - - - - - - - - -
    -
    -
    - -
    -

    Language selection

    - -
    - - - - - -
    -
    - - -
    - - - - - - -
    - -

    Basic search page for Governement of Canada using Headless

    - - - - -
    -

    Perform an advanced search

    - - -

    Expected output for the result section

    -
    - Output for Results section - [To be completed, see Connector.js for reference until then] -
    - -
    -

    Page details

    -
    Date modified:
    -
    -
    -
    - -
    - - - - - - - - - - - diff --git a/netlify/test/srb-fr.html b/netlify/test/srb-fr.html deleted file mode 100644 index 12bd0ac..0000000 --- a/netlify/test/srb-fr.html +++ /dev/null @@ -1,212 +0,0 @@ - - - - - - -Résultats de la recherche (base) pour le gouvernement du Canada avec Headless - Canada.ca - - - - - - - - - - - - - - - - - - - -
    -
    -
    - -
    -

    Sélection de la langue

    - -
    - - - - - -
    -
    - - -
    - - - - - - -
    - -

    Résultats de la recherche (base) pour le gouvernement du Canada avec Headless

    - - - - -
    -

    Effectuer une recherche avancée

    - - -

    Section Résultats attendu pour la section de résultats

    -
    - Section Résultats générée - [À compléter, voir Connector.js comme référence pour l'instant] -
    - -
    -

    Détails de la page

    -
    Date de modification :
    -
    -
    -
    - -
    - - - - - - - - - - - diff --git a/netlify/test/src-en.html b/netlify/test/src-en.html deleted file mode 100644 index b51505e..0000000 --- a/netlify/test/src-en.html +++ /dev/null @@ -1,221 +0,0 @@ - - - - - - -Contextual search page (ESDC) for Governement of Canada using Headless - Canada.ca - - - - - - - - - - - - - - - - - - - -
    -
    -
    - -
    -

    Language selection

    - -
    - - - - - -
    -
    - - -
    - - - - - - -
    - -

    Contextual search page (ESDC) for Governement of Canada using Headless

    - -
    -
    -
    - -
    - -
    -
    - - -
    -

    Search all Government of Canada websites

    -

    Don't include personal information (telephone, email, SIN, financial, medical, or work details).

    -
    - - -
    - - -

    Expected output for the result section

    -
    - Output for Results section - [To be completed, see Connector.js for reference until then] -
    - -
    -

    Page details

    -
    Date modified:
    -
    -
    -
    - -
    - - - - - - - - - - - diff --git a/netlify/test/src-fr.html b/netlify/test/src-fr.html deleted file mode 100644 index ce666a4..0000000 --- a/netlify/test/src-fr.html +++ /dev/null @@ -1,221 +0,0 @@ - - - - - - -Résultats de la recherche (contextuels à EDSC) pour le gouvernement du Canada avec Headless - Canada.ca - - - - - - - - - - - - - - - - - - - -
    -
    -
    - -
    -

    Sélection de la langue

    - -
    - - - - - -
    -
    - - -
    - - - - - - -
    - -

    Résultats de la recherche (contextuels à EDSC) pour le gouvernement du Canada avec Headless

    - -
    -
    -
    - -
    - -
    -
    - - -
    -

    Effectuer une recherche sur tous les sites Web du gouvernement du Canada

    -

    N'incluez pas de renseignements personnels (téléphone, courriel, NAS, renseignements financiers, médicaux ou professionnels).

    -
    - - -
    - - -

    Section Résultats attendu pour la section de résultats

    -
    - Section Résultats générée - [À compléter, voir Connector.js comme référence pour l'instant] -
    - -
    -

    Détails de la page

    -
    Date de modification :
    -
    -
    -
    - -
    - - - - - - - - - - - diff --git a/netlify/test/srf-en.html b/netlify/test/srf-en.html index 12d9c01..0934ea3 100644 --- a/netlify/test/srf-en.html +++ b/netlify/test/srf-en.html @@ -133,18 +133,12 @@

    You are here:

    "originLevel3": "/en/sr/srf-en.html", "facets": [ { - "field": "hostname", - "title": "Website", + "field": "author", + "title": "Authors", + "enableSearch": true, "sortCriteria": "score", "numberOfValues": 12, - "facetId": "hostname", - "facetType": "regular" - }, - { - "field": "filetype", - "title": "Filetype", - "numberOfValues": 12, - "facetId": "filetype", + "facetId": "author", "facetType": "regular" }, { diff --git a/netlify/test/template.html b/netlify/test/template.html deleted file mode 100644 index a47224b..0000000 --- a/netlify/test/template.html +++ /dev/null @@ -1,247 +0,0 @@ - - - - - - -Search page with custom templates for summary and results - Canada.ca - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - - - -
    -
    - - -
    - - - - - - -
    - -

    Search page with custom templates for summary and results

    - - - - -
    -

    Perform an advanced search

    - - - - - - - - - - - - - -

    Expected output for the result section

    -
    - Output for Results section - [To be completed, see Connector.js for reference until then] -
    - -
    -

    Page details

    -
    Date modified:
    -
    -
    -
    - -
    - - - - - - - - - - - From c818b593dcf07702575353650eeaf238365b73bd Mon Sep 17 00:00:00 2001 From: Cody Foss Date: Thu, 19 Mar 2026 18:41:25 -0600 Subject: [PATCH 08/22] Update index.html --- index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/index.html b/index.html index 84aa957..186be8c 100644 --- a/index.html +++ b/index.html @@ -20,6 +20,7 @@

    Regular pages

  • Contextual search page
  • Search without Query Suggestions (QS)
  • Search with custom QS configuration
  • +
  • Search page with facets
  • Page de recherche (base)
  • Page de recherche (avancée)
  • Page de recherche (contextuelle)
  • From 0d6dd883ed88ede9ddca495fba8d38e9781c55d2 Mon Sep 17 00:00:00 2001 From: Cody Foss Date: Thu, 19 Mar 2026 18:43:45 -0600 Subject: [PATCH 09/22] Update srf-en.html --- netlify/test/srf-en.html | 6 ------ 1 file changed, 6 deletions(-) diff --git a/netlify/test/srf-en.html b/netlify/test/srf-en.html index 0934ea3..3d917a8 100644 --- a/netlify/test/srf-en.html +++ b/netlify/test/srf-en.html @@ -159,12 +159,6 @@

    You are here:

    }'>
    - - From 0256acccac315a9e6b76f96d8e7bf6c86040195f Mon Sep 17 00:00:00 2001 From: Cody Foss Date: Fri, 20 Mar 2026 14:14:31 -0600 Subject: [PATCH 10/22] Fixed date ranges --- netlify/src/connector.js | 97 +++++++++++++++++++++++++--------------- src/connector.js | 97 +++++++++++++++++++++++++--------------- 2 files changed, 124 insertions(+), 70 deletions(-) diff --git a/netlify/src/connector.js b/netlify/src/connector.js index de5e390..148f2b3 100644 --- a/netlify/src/connector.js +++ b/netlify/src/connector.js @@ -389,9 +389,7 @@ function initTpl() { } // Normalize facet configs from the HTML attribute - facetNormalizedConfigs = Array.isArray( params.facets ) - ? params.facets.map( normalizeFacetConfig ).filter( Boolean ) - : []; + facetNormalizedConfigs = Array.isArray( params.facets ) ? params.facets.map( normalizeFacetConfig ).filter( Boolean ) : []; // Auto-create two-column facet layout when valid facets are configured if ( facetNormalizedConfigs.length > 0 && !facetPanelElement ) { @@ -569,17 +567,11 @@ function normalizeFacetConfig( raw ) { const titleRaw = typeof raw.title === 'string' ? raw.title.trim() : ''; const label = labelRaw || titleRaw || field; - const facetId = ( typeof raw.facetId === 'string' && raw.facetId.trim() ) - ? raw.facetId.trim() - : field; + const facetId = ( typeof raw.facetId === 'string' && raw.facetId.trim() ) ? raw.facetId.trim() : field; - const numberOfValues = ( Number.isInteger( raw.numberOfValues ) && raw.numberOfValues > 0 ) - ? raw.numberOfValues - : 8; + const numberOfValues = ( Number.isInteger( raw.numberOfValues ) && raw.numberOfValues > 0 ) ? raw.numberOfValues : 8; - const sortCriteria = ( raw.sortCriteria === 'alphanumeric' || raw.sortCriteria === 'occurrences' ) - ? raw.sortCriteria - : 'occurrences'; + const sortCriteria = ( raw.sortCriteria === 'alphanumeric' || raw.sortCriteria === 'occurrences' ) ? raw.sortCriteria : 'occurrences'; const facetType = raw.facetType === 'dateRange' ? 'dateRange' : 'regular'; const enableSearch = raw.enableSearch === true; @@ -606,15 +598,56 @@ function coveoDateToInputDate( coveoDate ) { } // Predefined relative date periods for the date facet (start is relative, end is fixed at page load) -const DATE_FACET_PERIODS = ( () => { - const end = formatCoveoDate( new Date() ); +function getDateFacetFields () { + const end = formatCoveoDate(new Date()); return [ - { en: 'Past day', fr: 'Dernière journée', range: buildDateRange( { start: { period: 'past', unit: 'day', amount: 1 }, end, endInclusive: true } ) }, - { en: 'Past week', fr: 'Dernière semaine', range: buildDateRange( { start: { period: 'past', unit: 'week', amount: 1 }, end, endInclusive: true } ) }, - { en: 'Past month', fr: 'Dernier mois', range: buildDateRange( { start: { period: 'past', unit: 'month', amount: 1 }, end, endInclusive: true } ) }, - { en: 'Past year', fr: 'Dernière année', range: buildDateRange( { start: { period: 'past', unit: 'year', amount: 1 }, end, endInclusive: true } ) }, + { + en: "Past day", + fr: "Dernière journée", + range: buildDateRange({ + start: { period: "past", unit: "day", amount: 1 }, + end, + endInclusive: true, + }), + }, + { + en: "Past week", + fr: "Dernière semaine", + range: buildDateRange({ + start: { period: "past", unit: "week", amount: 1 }, + end, + endInclusive: true, + }), + }, + { + en: "Past month", + fr: "Dernier mois", + range: buildDateRange({ + start: { period: "past", unit: "month", amount: 1 }, + end, + endInclusive: true, + }), + }, + { + en: "Past year", + fr: "Dernière année", + range: buildDateRange({ + start: { period: "past", unit: "year", amount: 1 }, + end, + endInclusive: true, + }), + }, + { + en: "Older", + fr: "Plus ancien", + range: buildDateRange({ + start: "1970/01/01@00:00:00", + end: { period: "past", unit: "year", amount: 1 }, + endInclusive: false, + }), + }, ]; -} )(); +} // rebuild a clean query string out of a JSON object function buildCleanQueryString( paramsObject ) { @@ -812,7 +845,7 @@ function initEngine() { options: { field: config.field, facetId: config.facetId, - currentValues: DATE_FACET_PERIODS.map( ( p ) => p.range ), + currentValues: getDateFacetFields().map( ( p ) => p.range ), generateAutomaticRanges: false, } } ); @@ -1182,7 +1215,7 @@ function initEngine() { didYouMeanElement.textContent = ""; pagerElement.textContent = ""; pagerManuallyCleared = true; - updateFacetLayoutVisibility(true) + updateFacetLayoutVisibility(true); // Show no results message in Query Summary if no query entered querySummaryElement.innerHTML = noResultTemplateHTML; @@ -1698,8 +1731,7 @@ function updateFacetState( index, newState ) { const countEl = document.createElement( 'span' ); countEl.className = 'gc-facet-count'; - countEl.innerHTML = ' (' + result.count.toLocaleString( lang ) - + ' ' + ( lang === 'fr' ? 'résultats' : 'results' ) + ')'; + countEl.innerHTML = ' (' + result.count.toLocaleString( lang ) + ' ' + ( lang === 'fr' ? 'résultats' : 'results' ) + ')'; liEl.appendChild( valueLink ); liEl.appendChild( countEl ); @@ -1735,8 +1767,7 @@ function updateFacetState( index, newState ) { const countEl = document.createElement( 'span' ); countEl.className = 'gc-facet-count'; - countEl.innerHTML = ' (' + countFormatted - + ' ' + ( lang === 'fr' ? 'résultats' : 'results' ) + ')'; + countEl.innerHTML = ' (' + countFormatted + ' ' + ( lang === 'fr' ? 'résultats' : 'results' ) + ')'; liEl.appendChild( valueLink ); liEl.appendChild( countEl ); @@ -1752,16 +1783,14 @@ function updateFacetState( index, newState ) { showMoreBtn.className = 'btn btn-link small gc-facet-show-more pl-0'; showMoreBtn.hidden = isSearching || !newState.canShowMoreValues; showMoreBtn.onclick = () => { facetControllers[ index ].showMoreValues(); }; - showMoreBtn.innerHTML = ( lang === 'fr' ? 'Afficher davantage' : 'Show more' ) - + ' '; + showMoreBtn.innerHTML = ( lang === 'fr' ? 'Afficher davantage' : 'Show more' ) + ' '; const showLessBtn = document.createElement( 'button' ); showLessBtn.type = 'button'; showLessBtn.className = 'btn btn-link small gc-facet-show-less pl-0'; showLessBtn.hidden = isSearching || !newState.canShowLessValues; showLessBtn.onclick = () => { facetControllers[ index ].showLessValues(); }; - showLessBtn.innerHTML = ( lang === 'fr' ? 'Afficher moins' : 'Show less' ) - + ' '; + showLessBtn.innerHTML = ( lang === 'fr' ? 'Afficher moins' : 'Show less' ) + ' '; facetEl.appendChild( showMoreBtn ); facetEl.appendChild( showLessBtn ); @@ -1796,8 +1825,7 @@ function updateFacetLayoutVisibility(forceHidden = false) { function updateClearAllVisibility() { const clearAllContainer = document.getElementById( 'gc-facet-clear-all-container' ); if ( clearAllContainer ) { - clearAllContainer.hidden = !facetStates.some( ( s ) => s?.hasActiveValues ) - && !dateFilterStates.some( ( s ) => s?.range ); + clearAllContainer.hidden = !facetStates.some( ( s ) => s?.hasActiveValues ) && !dateFilterStates.some( ( s ) => s?.range ); } } @@ -1911,8 +1939,8 @@ function updateDateFacetState( index, dateFacetState, dateFilterState ) { const listEl = document.createElement( 'ul' ); listEl.className = 'list-unstyled gc-facet-values mrgn-tp-sm'; - dateFacetState.values.forEach( ( value, valueIndex ) => { - const period = DATE_FACET_PERIODS[ valueIndex ]; + [ ...dateFacetState.values ].reverse().forEach( ( value, valueIndex ) => { + const period = getDateFacetFields()[ valueIndex ]; if ( !period ) { return; } @@ -1949,8 +1977,7 @@ function updateDateFacetState( index, dateFacetState, dateFilterState ) { const countEl = document.createElement( 'span' ); countEl.className = 'gc-facet-count'; - countEl.innerHTML = ' (' + countFormatted - + ' ' + ( isFr ? 'résultats' : 'results' ) + ')'; + countEl.innerHTML = ' (' + countFormatted + ' ' + ( isFr ? 'résultats' : 'results' ) + ')'; liEl.appendChild( valueLink ); liEl.appendChild( countEl ); diff --git a/src/connector.js b/src/connector.js index de5e390..148f2b3 100644 --- a/src/connector.js +++ b/src/connector.js @@ -389,9 +389,7 @@ function initTpl() { } // Normalize facet configs from the HTML attribute - facetNormalizedConfigs = Array.isArray( params.facets ) - ? params.facets.map( normalizeFacetConfig ).filter( Boolean ) - : []; + facetNormalizedConfigs = Array.isArray( params.facets ) ? params.facets.map( normalizeFacetConfig ).filter( Boolean ) : []; // Auto-create two-column facet layout when valid facets are configured if ( facetNormalizedConfigs.length > 0 && !facetPanelElement ) { @@ -569,17 +567,11 @@ function normalizeFacetConfig( raw ) { const titleRaw = typeof raw.title === 'string' ? raw.title.trim() : ''; const label = labelRaw || titleRaw || field; - const facetId = ( typeof raw.facetId === 'string' && raw.facetId.trim() ) - ? raw.facetId.trim() - : field; + const facetId = ( typeof raw.facetId === 'string' && raw.facetId.trim() ) ? raw.facetId.trim() : field; - const numberOfValues = ( Number.isInteger( raw.numberOfValues ) && raw.numberOfValues > 0 ) - ? raw.numberOfValues - : 8; + const numberOfValues = ( Number.isInteger( raw.numberOfValues ) && raw.numberOfValues > 0 ) ? raw.numberOfValues : 8; - const sortCriteria = ( raw.sortCriteria === 'alphanumeric' || raw.sortCriteria === 'occurrences' ) - ? raw.sortCriteria - : 'occurrences'; + const sortCriteria = ( raw.sortCriteria === 'alphanumeric' || raw.sortCriteria === 'occurrences' ) ? raw.sortCriteria : 'occurrences'; const facetType = raw.facetType === 'dateRange' ? 'dateRange' : 'regular'; const enableSearch = raw.enableSearch === true; @@ -606,15 +598,56 @@ function coveoDateToInputDate( coveoDate ) { } // Predefined relative date periods for the date facet (start is relative, end is fixed at page load) -const DATE_FACET_PERIODS = ( () => { - const end = formatCoveoDate( new Date() ); +function getDateFacetFields () { + const end = formatCoveoDate(new Date()); return [ - { en: 'Past day', fr: 'Dernière journée', range: buildDateRange( { start: { period: 'past', unit: 'day', amount: 1 }, end, endInclusive: true } ) }, - { en: 'Past week', fr: 'Dernière semaine', range: buildDateRange( { start: { period: 'past', unit: 'week', amount: 1 }, end, endInclusive: true } ) }, - { en: 'Past month', fr: 'Dernier mois', range: buildDateRange( { start: { period: 'past', unit: 'month', amount: 1 }, end, endInclusive: true } ) }, - { en: 'Past year', fr: 'Dernière année', range: buildDateRange( { start: { period: 'past', unit: 'year', amount: 1 }, end, endInclusive: true } ) }, + { + en: "Past day", + fr: "Dernière journée", + range: buildDateRange({ + start: { period: "past", unit: "day", amount: 1 }, + end, + endInclusive: true, + }), + }, + { + en: "Past week", + fr: "Dernière semaine", + range: buildDateRange({ + start: { period: "past", unit: "week", amount: 1 }, + end, + endInclusive: true, + }), + }, + { + en: "Past month", + fr: "Dernier mois", + range: buildDateRange({ + start: { period: "past", unit: "month", amount: 1 }, + end, + endInclusive: true, + }), + }, + { + en: "Past year", + fr: "Dernière année", + range: buildDateRange({ + start: { period: "past", unit: "year", amount: 1 }, + end, + endInclusive: true, + }), + }, + { + en: "Older", + fr: "Plus ancien", + range: buildDateRange({ + start: "1970/01/01@00:00:00", + end: { period: "past", unit: "year", amount: 1 }, + endInclusive: false, + }), + }, ]; -} )(); +} // rebuild a clean query string out of a JSON object function buildCleanQueryString( paramsObject ) { @@ -812,7 +845,7 @@ function initEngine() { options: { field: config.field, facetId: config.facetId, - currentValues: DATE_FACET_PERIODS.map( ( p ) => p.range ), + currentValues: getDateFacetFields().map( ( p ) => p.range ), generateAutomaticRanges: false, } } ); @@ -1182,7 +1215,7 @@ function initEngine() { didYouMeanElement.textContent = ""; pagerElement.textContent = ""; pagerManuallyCleared = true; - updateFacetLayoutVisibility(true) + updateFacetLayoutVisibility(true); // Show no results message in Query Summary if no query entered querySummaryElement.innerHTML = noResultTemplateHTML; @@ -1698,8 +1731,7 @@ function updateFacetState( index, newState ) { const countEl = document.createElement( 'span' ); countEl.className = 'gc-facet-count'; - countEl.innerHTML = ' (' + result.count.toLocaleString( lang ) - + ' ' + ( lang === 'fr' ? 'résultats' : 'results' ) + ')'; + countEl.innerHTML = ' (' + result.count.toLocaleString( lang ) + ' ' + ( lang === 'fr' ? 'résultats' : 'results' ) + ')'; liEl.appendChild( valueLink ); liEl.appendChild( countEl ); @@ -1735,8 +1767,7 @@ function updateFacetState( index, newState ) { const countEl = document.createElement( 'span' ); countEl.className = 'gc-facet-count'; - countEl.innerHTML = ' (' + countFormatted - + ' ' + ( lang === 'fr' ? 'résultats' : 'results' ) + ')'; + countEl.innerHTML = ' (' + countFormatted + ' ' + ( lang === 'fr' ? 'résultats' : 'results' ) + ')'; liEl.appendChild( valueLink ); liEl.appendChild( countEl ); @@ -1752,16 +1783,14 @@ function updateFacetState( index, newState ) { showMoreBtn.className = 'btn btn-link small gc-facet-show-more pl-0'; showMoreBtn.hidden = isSearching || !newState.canShowMoreValues; showMoreBtn.onclick = () => { facetControllers[ index ].showMoreValues(); }; - showMoreBtn.innerHTML = ( lang === 'fr' ? 'Afficher davantage' : 'Show more' ) - + ' '; + showMoreBtn.innerHTML = ( lang === 'fr' ? 'Afficher davantage' : 'Show more' ) + ' '; const showLessBtn = document.createElement( 'button' ); showLessBtn.type = 'button'; showLessBtn.className = 'btn btn-link small gc-facet-show-less pl-0'; showLessBtn.hidden = isSearching || !newState.canShowLessValues; showLessBtn.onclick = () => { facetControllers[ index ].showLessValues(); }; - showLessBtn.innerHTML = ( lang === 'fr' ? 'Afficher moins' : 'Show less' ) - + ' '; + showLessBtn.innerHTML = ( lang === 'fr' ? 'Afficher moins' : 'Show less' ) + ' '; facetEl.appendChild( showMoreBtn ); facetEl.appendChild( showLessBtn ); @@ -1796,8 +1825,7 @@ function updateFacetLayoutVisibility(forceHidden = false) { function updateClearAllVisibility() { const clearAllContainer = document.getElementById( 'gc-facet-clear-all-container' ); if ( clearAllContainer ) { - clearAllContainer.hidden = !facetStates.some( ( s ) => s?.hasActiveValues ) - && !dateFilterStates.some( ( s ) => s?.range ); + clearAllContainer.hidden = !facetStates.some( ( s ) => s?.hasActiveValues ) && !dateFilterStates.some( ( s ) => s?.range ); } } @@ -1911,8 +1939,8 @@ function updateDateFacetState( index, dateFacetState, dateFilterState ) { const listEl = document.createElement( 'ul' ); listEl.className = 'list-unstyled gc-facet-values mrgn-tp-sm'; - dateFacetState.values.forEach( ( value, valueIndex ) => { - const period = DATE_FACET_PERIODS[ valueIndex ]; + [ ...dateFacetState.values ].reverse().forEach( ( value, valueIndex ) => { + const period = getDateFacetFields()[ valueIndex ]; if ( !period ) { return; } @@ -1949,8 +1977,7 @@ function updateDateFacetState( index, dateFacetState, dateFilterState ) { const countEl = document.createElement( 'span' ); countEl.className = 'gc-facet-count'; - countEl.innerHTML = ' (' + countFormatted - + ' ' + ( isFr ? 'résultats' : 'results' ) + ')'; + countEl.innerHTML = ' (' + countFormatted + ' ' + ( isFr ? 'résultats' : 'results' ) + ')'; liEl.appendChild( valueLink ); liEl.appendChild( countEl ); From f08d43be2afceb815424c4bfbca37d87c6707dc2 Mon Sep 17 00:00:00 2001 From: Cody Foss Date: Mon, 4 May 2026 11:02:55 -0600 Subject: [PATCH 11/22] Latest changes --- src/connector.js | 317 +++++++++++++++++++++++------------------------ test/srf-en.html | 43 +++++-- 2 files changed, 185 insertions(+), 175 deletions(-) diff --git a/src/connector.js b/src/connector.js index d8bfcf1..00b97cf 100644 --- a/src/connector.js +++ b/src/connector.js @@ -71,16 +71,25 @@ let unsubscribeResultListController; let unsubscribeQuerySummaryController; let unsubscribeDidYouMeanController; let unsubscribePagerController; -let unsubscribeFacetControllers = []; -let unsubscribeDateFilterControllers = []; // Facet configs and controllers -let facetNormalizedConfigs = []; -let facetControllers = []; -let facetStates = []; +const baseFacetConfig = { + facetId: "", // Required + facetSearch: true, + field: "", // Required + filterFacetCount: true, + numberOfValues: 8, + sortCriteria: "score", + title: "" +} let dateFilterControllers = []; let dateFilterStates = []; +let facetControllers = []; +let facetNormalizedConfigs = []; let facetSearchTimers = []; +let facetStates = []; +let unsubscribeDateFilterControllers = []; +let unsubscribeFacetControllers = []; // UI states let updateSearchBoxFromState = false; @@ -389,7 +398,14 @@ function initTpl() { } // Normalize facet configs from the HTML attribute - facetNormalizedConfigs = Array.isArray( params.facets ) ? params.facets.map( normalizeFacetConfig ).filter( Boolean ) : []; + const facetConfigMap = new Map(); + if ( Array.isArray( params.facets ) ) { + params.facets.forEach( ( raw ) => { + const config = normalizeFacetConfig( raw ); + if ( config ) facetConfigMap.set( config.facetId, config ); + } ); + } + facetNormalizedConfigs = [ ...facetConfigMap.values() ]; // Auto-create two-column facet layout when valid facets are configured if ( facetNormalizedConfigs.length > 0 && !facetPanelElement ) { @@ -571,19 +587,17 @@ function normalizeFacetConfig( raw ) { const numberOfValues = ( Number.isInteger( raw.numberOfValues ) && raw.numberOfValues > 0 ) ? raw.numberOfValues : 8; - const sortCriteria = ( raw.sortCriteria === 'alphanumeric' || raw.sortCriteria === 'occurrences' ) ? raw.sortCriteria : 'occurrences'; + const sortCriteria = raw.sortCriteria !== '' ? raw.sortCriteria : 'occurrences'; const facetType = raw.facetType === 'dateRange' ? 'dateRange' : 'regular'; - const enableSearch = raw.enableSearch === true; + const facetSearch = raw.facetSearch !== false; + const filterFacetCount = raw.filterFacetCount !== false; + const withDatePicker = raw.withDatePicker !== false; + const withDateRanges = raw.withDateRanges !== false; - return { field, label, facetId, numberOfValues, sortCriteria, facetType, enableSearch }; + return { field, label, facetId, numberOfValues, sortCriteria, facetType, facetSearch, filterFacetCount, withDatePicker, withDateRanges }; } -// Format a Date as a Coveo date string: YYYY/MM/DD@HH:mm:ss -function formatCoveoDate( date ) { - const pad = ( n ) => String( n ).padStart( 2, '0' ); - return `${date.getFullYear()}/${pad( date.getMonth() + 1 )}/${pad( date.getDate() )}@${pad( date.getHours() )}:${pad( date.getMinutes() )}:${pad( date.getSeconds() )}`; -} // Convert YYYY-MM-DD (date input value) to Coveo date string function inputDateToCoveoDate( dateStr, endOfDay ) { @@ -597,9 +611,25 @@ function coveoDateToInputDate( coveoDate ) { return String( coveoDate ).slice( 0, 10 ).replace( /\//g, '-' ); } +// Resolve a Coveo range endpoint (string or relative object) to a YYYY-MM-DD input date string +function resolveRangeEndpointToInputDate( endpoint ) { + if ( typeof endpoint === 'string' ) { + return coveoDateToInputDate( endpoint ); + } + if ( endpoint && endpoint.period === 'past' ) { + const d = new Date(); + if ( endpoint.unit === 'day' ) { d.setDate( d.getDate() - endpoint.amount ); } + else if ( endpoint.unit === 'week' ) { d.setDate( d.getDate() - endpoint.amount * 7 ); } + else if ( endpoint.unit === 'month' ) { d.setMonth( d.getMonth() - endpoint.amount ); } + else if ( endpoint.unit === 'year' ) { d.setFullYear( d.getFullYear() - endpoint.amount ); } + return d.toISOString().slice( 0, 10 ); + } + return ''; +} + // Predefined relative date periods for the date facet (start is relative, end is fixed at page load) function getDateFacetFields () { - const end = formatCoveoDate(new Date()); + const end = getCoveoDateFormat(new Date()); return [ { en: "Past day", @@ -710,6 +740,12 @@ function getLongDateFormat( date, lang ){ return currentTZDate.toLocaleDateString( langCA, { year: 'numeric', month: 'short', day: 'numeric' } ); } +// Format a Date as a Coveo date string: YYYY/MM/DD@HH:mm:ss +function getCoveoDateFormat( date ) { + const pad = ( n ) => String( n ).padStart( 2, '0' ); + return `${date.getFullYear()}/${pad( date.getMonth() + 1 )}/${pad( date.getDate() )}@${pad( date.getHours() )}:${pad( date.getMinutes() )}:${pad( date.getSeconds() )}`; +} + // checking for default date , Jan 1st, 1970 function isEmptyDate( date ) { return date instanceof Date && @@ -1655,6 +1691,49 @@ function updatePagerState( newState ) { } // Rebuild a single facet's DOM inside the facet panel +function renderFacetSummary( label, hasActive, onClear ) { + const summaryEl = document.createElement( 'summary' ); + summaryEl.textContent = label; + if ( hasActive ) { + summaryEl.insertAdjacentHTML( 'beforeend', `` ); + summaryEl.querySelector( 'button' ).onclick = ( e ) => { e.stopPropagation(); onClear(); }; + } + return summaryEl; +} + +// Builds a single facet value
  • . +function renderFacetItem( label, count, isSelected, onSelect ) { + const liEl = document.createElement( 'li' ); + + if ( isSelected ) { + const hintEl = document.createElement( 'span' ); + hintEl.className = 'wb-inv'; + hintEl.textContent = lang === 'fr' ? 'Enlever le filtre actif:' : 'Remove active filter:'; + liEl.appendChild( hintEl ); + } + + const linkEl = document.createElement( 'a' ); + linkEl.href = '#'; + linkEl.onclick = ( e ) => { e.preventDefault(); onSelect(); }; + + if ( isSelected ) { + const iconEl = document.createElement( 'span' ); + iconEl.className = 'glyphicon glyphicon-ok mrgn-rght-sm'; + iconEl.setAttribute( 'aria-hidden', 'true' ); + linkEl.appendChild( iconEl ); + } + + const countEl = document.createElement( 'span' ); + countEl.className = 'gc-facet-count'; + countEl.innerHTML = ' (' + count.toLocaleString( lang ) + ' ' + ( lang === 'fr' ? 'résultats' : 'results' ) + ')'; + + linkEl.appendChild( document.createTextNode( label ) ); + liEl.appendChild( linkEl ); + liEl.appendChild( countEl ); + + return liEl; +} + function updateFacetState( index, newState ) { facetStates[ index ] = newState; @@ -1683,18 +1762,7 @@ function updateFacetState( index, newState ) { facetEl.textContent = ''; facetEl.open = wasOpen; - // acts as the facet label / collapse toggle - const summaryEl = document.createElement( 'summary' ); - summaryEl.textContent = config.label; - if ( newState.hasActiveValues ) { - const clearBtn = document.createElement( 'button' ); - clearBtn.type = 'button'; - clearBtn.className = 'btn btn-link btn-sm pull-right'; - clearBtn.textContent = lang === 'fr' ? 'Effacer le filtre' : 'Clear filter'; - clearBtn.onclick = ( e ) => { e.stopPropagation(); facetControllers[ index ].deselectAll(); }; - summaryEl.appendChild( clearBtn ); - } - facetEl.appendChild( summaryEl ); + facetEl.appendChild( renderFacetSummary( config.label, newState.hasActiveValues, () => facetControllers[ index ].deselectAll() ) ); // Facet search input (only if the controller exposes facetSearch) // facetSearch methods live on the sub-controller; state is nested in newState.facetSearch @@ -1702,7 +1770,7 @@ function updateFacetState( index, newState ) { const facetSearchState = newState.facetSearch; const isSearching = ( facetSearchState?.query?.length ?? 0 ) > 0; - if ( config.enableSearch && facetSearchState ) { + if ( config.facetSearch && facetSearchState ) { const searchInput = document.createElement( 'input' ); searchInput.type = 'search'; searchInput.id = searchInputId; @@ -1732,77 +1800,23 @@ function updateFacetState( index, newState ) { if ( isSearching ) { facetSearchState.values.forEach( ( result ) => { - const liEl = document.createElement( 'li' ); - const valueLink = document.createElement( 'a' ); - valueLink.href = '#'; - valueLink.onclick = ( e ) => { e.preventDefault(); facetSearch.select( result ); }; - valueLink.appendChild( document.createTextNode( stripHtml( result.displayValue ) ) ); - - const countEl = document.createElement( 'span' ); - countEl.className = 'gc-facet-count'; - countEl.innerHTML = ' (' + result.count.toLocaleString( lang ) + ' ' + ( lang === 'fr' ? 'résultats' : 'results' ) + ')'; - - liEl.appendChild( valueLink ); - liEl.appendChild( countEl ); - listEl.appendChild( liEl ); + listEl.appendChild( renderFacetItem( stripHtml( result.displayValue ), result.count, false, () => facetSearch.select( result ) ) ); } ); } else { newState.values.forEach( ( value ) => { - const liEl = document.createElement( 'li' ); - const isSelected = value.state === 'selected'; - const countFormatted = value.numberOfResults.toLocaleString( params.lang ); - const valueLabel = stripHtml( value.value ); - - if ( isSelected ) { - const removeHintEl = document.createElement( 'span' ); - removeHintEl.className = 'wb-inv'; - removeHintEl.textContent = lang === 'fr' ? 'Enlever le filtre actif:' : 'Remove active filter:'; - liEl.appendChild( removeHintEl ); - } - - const valueLink = document.createElement( 'a' ); - valueLink.href = '#'; - valueLink.onclick = ( e ) => { e.preventDefault(); facetControllers[ index ].toggleSelect( value ); }; - - if ( isSelected ) { - const iconEl = document.createElement( 'span' ); - iconEl.className = 'glyphicon glyphicon-ok mrgn-rght-sm'; - iconEl.setAttribute( 'aria-hidden', 'true' ); - valueLink.appendChild( iconEl ); - valueLink.appendChild( document.createTextNode( '\u00a0' ) ); - } - - valueLink.appendChild( document.createTextNode( valueLabel ) ); - - const countEl = document.createElement( 'span' ); - countEl.className = 'gc-facet-count'; - countEl.innerHTML = ' (' + countFormatted + ' ' + ( lang === 'fr' ? 'résultats' : 'results' ) + ')'; - - liEl.appendChild( valueLink ); - liEl.appendChild( countEl ); - listEl.appendChild( liEl ); + listEl.appendChild( renderFacetItem( stripHtml( value.value ), value.numberOfResults, value.state === 'selected', () => facetControllers[ index ].toggleSelect( value ) ) ); } ); } facetEl.appendChild( listEl ); // Show more / show less — hidden while searching (search has its own pagination) - const showMoreBtn = document.createElement( 'button' ); - showMoreBtn.type = 'button'; - showMoreBtn.className = 'btn btn-link small gc-facet-show-more pl-0'; - showMoreBtn.hidden = isSearching || !newState.canShowMoreValues; - showMoreBtn.onclick = () => { facetControllers[ index ].showMoreValues(); }; - showMoreBtn.innerHTML = ( lang === 'fr' ? 'Afficher davantage' : 'Show more' ) + ' '; - - const showLessBtn = document.createElement( 'button' ); - showLessBtn.type = 'button'; - showLessBtn.className = 'btn btn-link small gc-facet-show-less pl-0'; - showLessBtn.hidden = isSearching || !newState.canShowLessValues; - showLessBtn.onclick = () => { facetControllers[ index ].showLessValues(); }; - showLessBtn.innerHTML = ( lang === 'fr' ? 'Afficher moins' : 'Show less' ) + ' '; - - facetEl.appendChild( showMoreBtn ); - facetEl.appendChild( showLessBtn ); + const isFr = lang === 'fr'; + facetEl.insertAdjacentHTML( 'beforeend', + ` + ` ); + facetEl.querySelector( '.gc-facet-show-more' ).onclick = () => { facetControllers[ index ].showMoreValues(); }; + facetEl.querySelector( '.gc-facet-show-less' ).onclick = () => { facetControllers[ index ].showLessValues(); }; updateFacetLayoutVisibility(); updateClearAllVisibility(); @@ -1853,40 +1867,30 @@ function updateDateFacetState( index, dateFacetState, dateFilterState ) { return; } - facetEl.hidden = dateFacetState.values.length === 0; + facetEl.hidden = dateFacetState.values.length === 0 || ( !config.withDatePicker && !config.withDateRanges ); if ( facetEl.hidden ) { updateFacetLayoutVisibility(); return; } const isFr = lang === 'fr'; + const todayStr = new Date().toISOString().slice( 0, 10 ); const wasOpen = facetEl.open; facetEl.textContent = ''; facetEl.open = wasOpen; - const summaryEl = document.createElement( 'summary' ); - summaryEl.textContent = config.label; - if ( dateFacetState.hasActiveValues || dateFilterState.range ) { - const clearBtn = document.createElement( 'button' ); - clearBtn.type = 'button'; - clearBtn.className = 'btn btn-link btn-sm pull-right'; - clearBtn.textContent = isFr ? 'Effacer le filtre' : 'Clear filter'; - clearBtn.onclick = ( e ) => { - e.stopPropagation(); - facetControllers[ index ].deselectAll(); - dateFilterControllers[ index ].clear(); - }; - summaryEl.appendChild( clearBtn ); - } - facetEl.appendChild( summaryEl ); + facetEl.appendChild( renderFacetSummary( config.label, dateFacetState.hasActiveValues || dateFilterState.range, () => { + facetControllers[ index ].deselectAll(); + dateFilterControllers[ index ].clear(); + } ) ); // --- Custom date pickers (above the list) --- + if ( config.withDatePicker ) { const startId = 'gc-facet-date-start-' + index; const endId = 'gc-facet-date-end-' + index; const datePickerContainer = document.createElement( 'div' ); datePickerContainer.className = 'gc-date-pickers'; - const todayStr = new Date().toISOString().slice( 0, 10 ); datePickerContainer.insertAdjacentHTML( 'beforeend', `
    @@ -1907,20 +1911,26 @@ function updateDateFacetState( index, dateFacetState, dateFilterState ) { startInput.onchange = () => { if ( startInput.value ) { endInput.min = startInput.value; } }; endInput.onchange = () => { if ( endInput.value ) { startInput.max = endInput.value; } }; - // Pre-populate inputs if a custom filter is already active + // Pre-populate inputs if a custom filter is already active, skipping sentinel values if ( dateFilterState.range ) { - startInput.value = coveoDateToInputDate( dateFilterState.range.start ); - endInput.value = coveoDateToInputDate( dateFilterState.range.end ); - endInput.min = startInput.value; - startInput.max = endInput.value; + const rangeStart = coveoDateToInputDate( dateFilterState.range.start ); + const rangeEnd = coveoDateToInputDate( dateFilterState.range.end ); + if ( rangeStart !== '1970-01-01' ) { + startInput.value = rangeStart; + } + if ( rangeEnd !== todayStr ) { + endInput.value = rangeEnd; + } + if ( startInput.value ) { endInput.min = startInput.value; } + if ( endInput.value ) { startInput.max = endInput.value; } } datePickerContainer.querySelector( '.gc-date-apply' ).onclick = () => { let startVal = startInput.value; let endVal = endInput.value; - if ( startVal && endVal ) { + if ( startVal || endVal ) { // Swap if end is before start - if ( endVal < startVal ) { + if ( startVal && endVal && endVal < startVal ) { [ startVal, endVal ] = [ endVal, startVal ]; startInput.value = startVal; endInput.value = endVal; @@ -1928,8 +1938,8 @@ function updateDateFacetState( index, dateFacetState, dateFilterState ) { // Clear predefined range selection before applying custom filter facetControllers[ index ].deselectAll(); dateFilterControllers[ index ].setRange( { - start: inputDateToCoveoDate( startVal, false ), - end: inputDateToCoveoDate( endVal, true ), + start: inputDateToCoveoDate( startVal || '1970-01-01', false ), + end: inputDateToCoveoDate( endVal || todayStr, true ), } ); } }; @@ -1943,57 +1953,36 @@ function updateDateFacetState( index, dateFacetState, dateFilterState ) { }; facetEl.appendChild( datePickerContainer ); + } // end withDatePicker // --- Predefined date range list --- - const listEl = document.createElement( 'ul' ); - listEl.className = 'list-unstyled gc-facet-values mrgn-tp-sm'; - - [ ...dateFacetState.values ].reverse().forEach( ( value, valueIndex ) => { - const period = getDateFacetFields()[ valueIndex ]; - if ( !period ) { - return; - } - - const liEl = document.createElement( 'li' ); - const isSelected = value.state === 'selected'; - const countFormatted = value.numberOfResults.toLocaleString( lang ); - const periodLabel = isFr ? period.fr : period.en; - - if ( isSelected ) { - const removeHintEl = document.createElement( 'span' ); - removeHintEl.className = 'wb-inv'; - removeHintEl.textContent = isFr ? 'Enlever le filtre actif:' : 'Remove active filter:'; - liEl.appendChild( removeHintEl ); - } - - const valueLink = document.createElement( 'a' ); - valueLink.href = '#'; - valueLink.onclick = ( e ) => { - e.preventDefault(); - // Clear custom date filter before selecting a predefined range - dateFilterControllers[ index ].clear(); - facetControllers[ index ].toggleSelect( value ); - }; - - if ( isSelected ) { - const iconEl = document.createElement( 'span' ); - iconEl.className = 'glyphicon glyphicon-ok mrgn-rght-sm'; - iconEl.setAttribute( 'aria-hidden', 'true' ); - valueLink.appendChild( iconEl ); - } - - valueLink.appendChild( document.createTextNode( periodLabel ) ); - - const countEl = document.createElement( 'span' ); - countEl.className = 'gc-facet-count'; - countEl.innerHTML = ' (' + countFormatted + ' ' + ( isFr ? 'résultats' : 'results' ) + ')'; - - liEl.appendChild( valueLink ); - liEl.appendChild( countEl ); - listEl.appendChild( liEl ); - } ); + if ( config.withDateRanges ) { + const listEl = document.createElement( 'ul' ); + listEl.className = 'list-unstyled gc-facet-values mrgn-tp-sm'; + + [ ...dateFacetState.values ].reverse().forEach( ( value, valueIndex ) => { + const period = getDateFacetFields()[ valueIndex ]; + if ( !period ) { return; } + const periodLabel = isFr ? period.fr : period.en; + const isSelected = value.state === 'selected'; + if ( config.withDatePicker && isSelected ) { + const rangeStart = resolveRangeEndpointToInputDate( period.range.start ); + const rangeEnd = resolveRangeEndpointToInputDate( period.range.end ); + const startEl = document.getElementById( 'gc-facet-date-start-' + index ); + const endEl = document.getElementById( 'gc-facet-date-end-' + index ); + if ( startEl ) { startEl.value = rangeStart !== '1970-01-01' ? rangeStart : ''; } + if ( endEl ) { endEl.value = rangeEnd !== todayStr ? rangeEnd : ''; } + } + listEl.appendChild( renderFacetItem( periodLabel, value.numberOfResults, isSelected, () => { + // Clear custom date filter and any other selected range before selecting + dateFilterControllers[ index ].clear(); + facetControllers[ index ].deselectAll(); + facetControllers[ index ].toggleSelect( value ); + } ) ); + } ); - facetEl.appendChild( listEl ); + facetEl.appendChild( listEl ); + } updateFacetLayoutVisibility(); updateClearAllVisibility(); } diff --git a/test/srf-en.html b/test/srf-en.html index 1e598b4..0b77360 100644 --- a/test/srf-en.html +++ b/test/srf-en.html @@ -39,27 +39,48 @@ "originLevel3": "/en/sr/srf-en.html", "facets": [ { + "facetId": "department", + "facetSearch": true, "field": "author", - "title": "Authors", - "enableSearch": true, + "filterFacetCount": true, + "numberOfValues": 8, "sortCriteria": "score", - "numberOfValues": 12, - "facetId": "author", - "facetType": "regular" + "title": "Department" }, { - "field": "source", - "title": "Source", + "facetId": "site", + "facetSearch": false, + "field": "hostname", + "filterFacetCount": false, + "numberOfValues": 8, "sortCriteria": "score", + "title": "Site" + }, + { + "facetId": "audience", + "facetSearch": false, + "field": "audience", + "filterFacetCount": true, + "numberOfValues": 8, + "sortCriteria": "alphanumericDescending", + "title": "Audience" + }, + { + "facetId": "type", + "facetSearch": true, + "facetType": "regular", + "field": "filetype", "numberOfValues": 12, - "facetId": "source", - "facetType": "regular" + "sortCriteria": "alphanumeric", + "title": "File Type" }, { + "facetId": "date", + "facetType": "dateRange", "field": "date", "title": "Date", - "facetId": "date", - "facetType": "dateRange" + "withDatePicker": true, + "withDateRanges": true } ] }'>
    From e7ed089a63eca69833fb7d852d55de641be2d498 Mon Sep 17 00:00:00 2001 From: Cody Foss Date: Mon, 4 May 2026 11:05:25 -0600 Subject: [PATCH 12/22] Updated demo page --- netlify/src/connector.css | 4 +- netlify/src/connector.js | 330 ++++++++++++++++++------------------- netlify/src/suggestions.js | 9 +- netlify/test/srf-en.html | 255 +++++++--------------------- 4 files changed, 231 insertions(+), 367 deletions(-) diff --git a/netlify/src/connector.css b/netlify/src/connector.css index 680a94c..03f59a0 100644 --- a/netlify/src/connector.css +++ b/netlify/src/connector.css @@ -44,9 +44,9 @@ width: calc(100% - 30px); } -@media screen and (max-width: 991px) { +@media screen and (max-width: 767px) { #wb-bnr .query-suggestions { - position: relative; + position: static; width: 100%; } } diff --git a/netlify/src/connector.js b/netlify/src/connector.js index 148f2b3..00b97cf 100644 --- a/netlify/src/connector.js +++ b/netlify/src/connector.js @@ -71,16 +71,25 @@ let unsubscribeResultListController; let unsubscribeQuerySummaryController; let unsubscribeDidYouMeanController; let unsubscribePagerController; -let unsubscribeFacetControllers = []; -let unsubscribeDateFilterControllers = []; // Facet configs and controllers -let facetNormalizedConfigs = []; -let facetControllers = []; -let facetStates = []; +const baseFacetConfig = { + facetId: "", // Required + facetSearch: true, + field: "", // Required + filterFacetCount: true, + numberOfValues: 8, + sortCriteria: "score", + title: "" +} let dateFilterControllers = []; let dateFilterStates = []; +let facetControllers = []; +let facetNormalizedConfigs = []; let facetSearchTimers = []; +let facetStates = []; +let unsubscribeDateFilterControllers = []; +let unsubscribeFacetControllers = []; // UI states let updateSearchBoxFromState = false; @@ -389,7 +398,14 @@ function initTpl() { } // Normalize facet configs from the HTML attribute - facetNormalizedConfigs = Array.isArray( params.facets ) ? params.facets.map( normalizeFacetConfig ).filter( Boolean ) : []; + const facetConfigMap = new Map(); + if ( Array.isArray( params.facets ) ) { + params.facets.forEach( ( raw ) => { + const config = normalizeFacetConfig( raw ); + if ( config ) facetConfigMap.set( config.facetId, config ); + } ); + } + facetNormalizedConfigs = [ ...facetConfigMap.values() ]; // Auto-create two-column facet layout when valid facets are configured if ( facetNormalizedConfigs.length > 0 && !facetPanelElement ) { @@ -571,19 +587,17 @@ function normalizeFacetConfig( raw ) { const numberOfValues = ( Number.isInteger( raw.numberOfValues ) && raw.numberOfValues > 0 ) ? raw.numberOfValues : 8; - const sortCriteria = ( raw.sortCriteria === 'alphanumeric' || raw.sortCriteria === 'occurrences' ) ? raw.sortCriteria : 'occurrences'; + const sortCriteria = raw.sortCriteria !== '' ? raw.sortCriteria : 'occurrences'; const facetType = raw.facetType === 'dateRange' ? 'dateRange' : 'regular'; - const enableSearch = raw.enableSearch === true; + const facetSearch = raw.facetSearch !== false; + const filterFacetCount = raw.filterFacetCount !== false; + const withDatePicker = raw.withDatePicker !== false; + const withDateRanges = raw.withDateRanges !== false; - return { field, label, facetId, numberOfValues, sortCriteria, facetType, enableSearch }; + return { field, label, facetId, numberOfValues, sortCriteria, facetType, facetSearch, filterFacetCount, withDatePicker, withDateRanges }; } -// Format a Date as a Coveo date string: YYYY/MM/DD@HH:mm:ss -function formatCoveoDate( date ) { - const pad = ( n ) => String( n ).padStart( 2, '0' ); - return `${date.getFullYear()}/${pad( date.getMonth() + 1 )}/${pad( date.getDate() )}@${pad( date.getHours() )}:${pad( date.getMinutes() )}:${pad( date.getSeconds() )}`; -} // Convert YYYY-MM-DD (date input value) to Coveo date string function inputDateToCoveoDate( dateStr, endOfDay ) { @@ -597,9 +611,25 @@ function coveoDateToInputDate( coveoDate ) { return String( coveoDate ).slice( 0, 10 ).replace( /\//g, '-' ); } +// Resolve a Coveo range endpoint (string or relative object) to a YYYY-MM-DD input date string +function resolveRangeEndpointToInputDate( endpoint ) { + if ( typeof endpoint === 'string' ) { + return coveoDateToInputDate( endpoint ); + } + if ( endpoint && endpoint.period === 'past' ) { + const d = new Date(); + if ( endpoint.unit === 'day' ) { d.setDate( d.getDate() - endpoint.amount ); } + else if ( endpoint.unit === 'week' ) { d.setDate( d.getDate() - endpoint.amount * 7 ); } + else if ( endpoint.unit === 'month' ) { d.setMonth( d.getMonth() - endpoint.amount ); } + else if ( endpoint.unit === 'year' ) { d.setFullYear( d.getFullYear() - endpoint.amount ); } + return d.toISOString().slice( 0, 10 ); + } + return ''; +} + // Predefined relative date periods for the date facet (start is relative, end is fixed at page load) function getDateFacetFields () { - const end = formatCoveoDate(new Date()); + const end = getCoveoDateFormat(new Date()); return [ { en: "Past day", @@ -710,6 +740,12 @@ function getLongDateFormat( date, lang ){ return currentTZDate.toLocaleDateString( langCA, { year: 'numeric', month: 'short', day: 'numeric' } ); } +// Format a Date as a Coveo date string: YYYY/MM/DD@HH:mm:ss +function getCoveoDateFormat( date ) { + const pad = ( n ) => String( n ).padStart( 2, '0' ); + return `${date.getFullYear()}/${pad( date.getMonth() + 1 )}/${pad( date.getDate() )}@${pad( date.getHours() )}:${pad( date.getMinutes() )}:${pad( date.getSeconds() )}`; +} + // checking for default date , Jan 1st, 1970 function isEmptyDate( date ) { return date instanceof Date && @@ -1449,8 +1485,17 @@ function updateResultListState( newState ) { if ( result.raw.hostname && result.raw.displaynavlabel ) { const splittedNavLabel = ( Array.isArray( result.raw.displaynavlabel ) ? result.raw.displaynavlabel[0] : result.raw.displaynavlabel).split( '>' ); - breadcrumb = '
    1. ' + stripHtml( result.raw.hostname ) + - ' 
    2. ' + stripHtml( splittedNavLabel[splittedNavLabel.length-1] ) + '
    '; + const hostname = stripHtml( result.raw.hostname ); + const lastBreadcrumb = stripHtml( splittedNavLabel[splittedNavLabel.length-1] ); + + // If the hostname is already part of the breadcrumb, just show the hostname + breadcrumb = '
      '; + if ( lastBreadcrumb.indexOf(hostname) > -1 ){ + breadcrumb += '
    1. ' + hostname + '
    2. '; + } else { + breadcrumb += '
    3. ' + hostname + ' 
    4. ' + lastBreadcrumb + '
    5. '; + } + breadcrumb += '
    '; } else { breadcrumb = '

    ' + printableUri + '

    '; } @@ -1646,6 +1691,49 @@ function updatePagerState( newState ) { } // Rebuild a single facet's DOM inside the facet panel +function renderFacetSummary( label, hasActive, onClear ) { + const summaryEl = document.createElement( 'summary' ); + summaryEl.textContent = label; + if ( hasActive ) { + summaryEl.insertAdjacentHTML( 'beforeend', `` ); + summaryEl.querySelector( 'button' ).onclick = ( e ) => { e.stopPropagation(); onClear(); }; + } + return summaryEl; +} + +// Builds a single facet value
  • . +function renderFacetItem( label, count, isSelected, onSelect ) { + const liEl = document.createElement( 'li' ); + + if ( isSelected ) { + const hintEl = document.createElement( 'span' ); + hintEl.className = 'wb-inv'; + hintEl.textContent = lang === 'fr' ? 'Enlever le filtre actif:' : 'Remove active filter:'; + liEl.appendChild( hintEl ); + } + + const linkEl = document.createElement( 'a' ); + linkEl.href = '#'; + linkEl.onclick = ( e ) => { e.preventDefault(); onSelect(); }; + + if ( isSelected ) { + const iconEl = document.createElement( 'span' ); + iconEl.className = 'glyphicon glyphicon-ok mrgn-rght-sm'; + iconEl.setAttribute( 'aria-hidden', 'true' ); + linkEl.appendChild( iconEl ); + } + + const countEl = document.createElement( 'span' ); + countEl.className = 'gc-facet-count'; + countEl.innerHTML = ' (' + count.toLocaleString( lang ) + ' ' + ( lang === 'fr' ? 'résultats' : 'results' ) + ')'; + + linkEl.appendChild( document.createTextNode( label ) ); + liEl.appendChild( linkEl ); + liEl.appendChild( countEl ); + + return liEl; +} + function updateFacetState( index, newState ) { facetStates[ index ] = newState; @@ -1674,18 +1762,7 @@ function updateFacetState( index, newState ) { facetEl.textContent = ''; facetEl.open = wasOpen; - // acts as the facet label / collapse toggle - const summaryEl = document.createElement( 'summary' ); - summaryEl.textContent = config.label; - if ( newState.hasActiveValues ) { - const clearBtn = document.createElement( 'button' ); - clearBtn.type = 'button'; - clearBtn.className = 'btn btn-link btn-sm pull-right'; - clearBtn.textContent = lang === 'fr' ? 'Effacer le filtre' : 'Clear filter'; - clearBtn.onclick = ( e ) => { e.stopPropagation(); facetControllers[ index ].deselectAll(); }; - summaryEl.appendChild( clearBtn ); - } - facetEl.appendChild( summaryEl ); + facetEl.appendChild( renderFacetSummary( config.label, newState.hasActiveValues, () => facetControllers[ index ].deselectAll() ) ); // Facet search input (only if the controller exposes facetSearch) // facetSearch methods live on the sub-controller; state is nested in newState.facetSearch @@ -1693,7 +1770,7 @@ function updateFacetState( index, newState ) { const facetSearchState = newState.facetSearch; const isSearching = ( facetSearchState?.query?.length ?? 0 ) > 0; - if ( config.enableSearch && facetSearchState ) { + if ( config.facetSearch && facetSearchState ) { const searchInput = document.createElement( 'input' ); searchInput.type = 'search'; searchInput.id = searchInputId; @@ -1723,77 +1800,23 @@ function updateFacetState( index, newState ) { if ( isSearching ) { facetSearchState.values.forEach( ( result ) => { - const liEl = document.createElement( 'li' ); - const valueLink = document.createElement( 'a' ); - valueLink.href = '#'; - valueLink.onclick = ( e ) => { e.preventDefault(); facetSearch.select( result ); }; - valueLink.appendChild( document.createTextNode( stripHtml( result.displayValue ) ) ); - - const countEl = document.createElement( 'span' ); - countEl.className = 'gc-facet-count'; - countEl.innerHTML = ' (' + result.count.toLocaleString( lang ) + ' ' + ( lang === 'fr' ? 'résultats' : 'results' ) + ')'; - - liEl.appendChild( valueLink ); - liEl.appendChild( countEl ); - listEl.appendChild( liEl ); + listEl.appendChild( renderFacetItem( stripHtml( result.displayValue ), result.count, false, () => facetSearch.select( result ) ) ); } ); } else { newState.values.forEach( ( value ) => { - const liEl = document.createElement( 'li' ); - const isSelected = value.state === 'selected'; - const countFormatted = value.numberOfResults.toLocaleString( params.lang ); - const valueLabel = stripHtml( value.value ); - - if ( isSelected ) { - const removeHintEl = document.createElement( 'span' ); - removeHintEl.className = 'wb-inv'; - removeHintEl.textContent = lang === 'fr' ? 'Enlever le filtre actif:' : 'Remove active filter:'; - liEl.appendChild( removeHintEl ); - } - - const valueLink = document.createElement( 'a' ); - valueLink.href = '#'; - valueLink.onclick = ( e ) => { e.preventDefault(); facetControllers[ index ].toggleSelect( value ); }; - - if ( isSelected ) { - const iconEl = document.createElement( 'span' ); - iconEl.className = 'glyphicon glyphicon-ok mrgn-rght-sm'; - iconEl.setAttribute( 'aria-hidden', 'true' ); - valueLink.appendChild( iconEl ); - valueLink.appendChild( document.createTextNode( '\u00a0' ) ); - } - - valueLink.appendChild( document.createTextNode( valueLabel ) ); - - const countEl = document.createElement( 'span' ); - countEl.className = 'gc-facet-count'; - countEl.innerHTML = ' (' + countFormatted + ' ' + ( lang === 'fr' ? 'résultats' : 'results' ) + ')'; - - liEl.appendChild( valueLink ); - liEl.appendChild( countEl ); - listEl.appendChild( liEl ); + listEl.appendChild( renderFacetItem( stripHtml( value.value ), value.numberOfResults, value.state === 'selected', () => facetControllers[ index ].toggleSelect( value ) ) ); } ); } facetEl.appendChild( listEl ); // Show more / show less — hidden while searching (search has its own pagination) - const showMoreBtn = document.createElement( 'button' ); - showMoreBtn.type = 'button'; - showMoreBtn.className = 'btn btn-link small gc-facet-show-more pl-0'; - showMoreBtn.hidden = isSearching || !newState.canShowMoreValues; - showMoreBtn.onclick = () => { facetControllers[ index ].showMoreValues(); }; - showMoreBtn.innerHTML = ( lang === 'fr' ? 'Afficher davantage' : 'Show more' ) + ' '; - - const showLessBtn = document.createElement( 'button' ); - showLessBtn.type = 'button'; - showLessBtn.className = 'btn btn-link small gc-facet-show-less pl-0'; - showLessBtn.hidden = isSearching || !newState.canShowLessValues; - showLessBtn.onclick = () => { facetControllers[ index ].showLessValues(); }; - showLessBtn.innerHTML = ( lang === 'fr' ? 'Afficher moins' : 'Show less' ) + ' '; - - facetEl.appendChild( showMoreBtn ); - facetEl.appendChild( showLessBtn ); + const isFr = lang === 'fr'; + facetEl.insertAdjacentHTML( 'beforeend', + ` + ` ); + facetEl.querySelector( '.gc-facet-show-more' ).onclick = () => { facetControllers[ index ].showMoreValues(); }; + facetEl.querySelector( '.gc-facet-show-less' ).onclick = () => { facetControllers[ index ].showLessValues(); }; updateFacetLayoutVisibility(); updateClearAllVisibility(); @@ -1844,40 +1867,30 @@ function updateDateFacetState( index, dateFacetState, dateFilterState ) { return; } - facetEl.hidden = dateFacetState.values.length === 0; + facetEl.hidden = dateFacetState.values.length === 0 || ( !config.withDatePicker && !config.withDateRanges ); if ( facetEl.hidden ) { updateFacetLayoutVisibility(); return; } const isFr = lang === 'fr'; + const todayStr = new Date().toISOString().slice( 0, 10 ); const wasOpen = facetEl.open; facetEl.textContent = ''; facetEl.open = wasOpen; - const summaryEl = document.createElement( 'summary' ); - summaryEl.textContent = config.label; - if ( dateFacetState.hasActiveValues || dateFilterState.range ) { - const clearBtn = document.createElement( 'button' ); - clearBtn.type = 'button'; - clearBtn.className = 'btn btn-link btn-sm pull-right'; - clearBtn.textContent = isFr ? 'Effacer le filtre' : 'Clear filter'; - clearBtn.onclick = ( e ) => { - e.stopPropagation(); - facetControllers[ index ].deselectAll(); - dateFilterControllers[ index ].clear(); - }; - summaryEl.appendChild( clearBtn ); - } - facetEl.appendChild( summaryEl ); + facetEl.appendChild( renderFacetSummary( config.label, dateFacetState.hasActiveValues || dateFilterState.range, () => { + facetControllers[ index ].deselectAll(); + dateFilterControllers[ index ].clear(); + } ) ); // --- Custom date pickers (above the list) --- + if ( config.withDatePicker ) { const startId = 'gc-facet-date-start-' + index; const endId = 'gc-facet-date-end-' + index; const datePickerContainer = document.createElement( 'div' ); datePickerContainer.className = 'gc-date-pickers'; - const todayStr = new Date().toISOString().slice( 0, 10 ); datePickerContainer.insertAdjacentHTML( 'beforeend', `
    @@ -1898,20 +1911,26 @@ function updateDateFacetState( index, dateFacetState, dateFilterState ) { startInput.onchange = () => { if ( startInput.value ) { endInput.min = startInput.value; } }; endInput.onchange = () => { if ( endInput.value ) { startInput.max = endInput.value; } }; - // Pre-populate inputs if a custom filter is already active + // Pre-populate inputs if a custom filter is already active, skipping sentinel values if ( dateFilterState.range ) { - startInput.value = coveoDateToInputDate( dateFilterState.range.start ); - endInput.value = coveoDateToInputDate( dateFilterState.range.end ); - endInput.min = startInput.value; - startInput.max = endInput.value; + const rangeStart = coveoDateToInputDate( dateFilterState.range.start ); + const rangeEnd = coveoDateToInputDate( dateFilterState.range.end ); + if ( rangeStart !== '1970-01-01' ) { + startInput.value = rangeStart; + } + if ( rangeEnd !== todayStr ) { + endInput.value = rangeEnd; + } + if ( startInput.value ) { endInput.min = startInput.value; } + if ( endInput.value ) { startInput.max = endInput.value; } } datePickerContainer.querySelector( '.gc-date-apply' ).onclick = () => { let startVal = startInput.value; let endVal = endInput.value; - if ( startVal && endVal ) { + if ( startVal || endVal ) { // Swap if end is before start - if ( endVal < startVal ) { + if ( startVal && endVal && endVal < startVal ) { [ startVal, endVal ] = [ endVal, startVal ]; startInput.value = startVal; endInput.value = endVal; @@ -1919,8 +1938,8 @@ function updateDateFacetState( index, dateFacetState, dateFilterState ) { // Clear predefined range selection before applying custom filter facetControllers[ index ].deselectAll(); dateFilterControllers[ index ].setRange( { - start: inputDateToCoveoDate( startVal, false ), - end: inputDateToCoveoDate( endVal, true ), + start: inputDateToCoveoDate( startVal || '1970-01-01', false ), + end: inputDateToCoveoDate( endVal || todayStr, true ), } ); } }; @@ -1934,57 +1953,36 @@ function updateDateFacetState( index, dateFacetState, dateFilterState ) { }; facetEl.appendChild( datePickerContainer ); + } // end withDatePicker // --- Predefined date range list --- - const listEl = document.createElement( 'ul' ); - listEl.className = 'list-unstyled gc-facet-values mrgn-tp-sm'; - - [ ...dateFacetState.values ].reverse().forEach( ( value, valueIndex ) => { - const period = getDateFacetFields()[ valueIndex ]; - if ( !period ) { - return; - } - - const liEl = document.createElement( 'li' ); - const isSelected = value.state === 'selected'; - const countFormatted = value.numberOfResults.toLocaleString( lang ); - const periodLabel = isFr ? period.fr : period.en; - - if ( isSelected ) { - const removeHintEl = document.createElement( 'span' ); - removeHintEl.className = 'wb-inv'; - removeHintEl.textContent = isFr ? 'Enlever le filtre actif:' : 'Remove active filter:'; - liEl.appendChild( removeHintEl ); - } - - const valueLink = document.createElement( 'a' ); - valueLink.href = '#'; - valueLink.onclick = ( e ) => { - e.preventDefault(); - // Clear custom date filter before selecting a predefined range - dateFilterControllers[ index ].clear(); - facetControllers[ index ].toggleSelect( value ); - }; - - if ( isSelected ) { - const iconEl = document.createElement( 'span' ); - iconEl.className = 'glyphicon glyphicon-ok mrgn-rght-sm'; - iconEl.setAttribute( 'aria-hidden', 'true' ); - valueLink.appendChild( iconEl ); - } - - valueLink.appendChild( document.createTextNode( periodLabel ) ); - - const countEl = document.createElement( 'span' ); - countEl.className = 'gc-facet-count'; - countEl.innerHTML = ' (' + countFormatted + ' ' + ( isFr ? 'résultats' : 'results' ) + ')'; - - liEl.appendChild( valueLink ); - liEl.appendChild( countEl ); - listEl.appendChild( liEl ); - } ); + if ( config.withDateRanges ) { + const listEl = document.createElement( 'ul' ); + listEl.className = 'list-unstyled gc-facet-values mrgn-tp-sm'; + + [ ...dateFacetState.values ].reverse().forEach( ( value, valueIndex ) => { + const period = getDateFacetFields()[ valueIndex ]; + if ( !period ) { return; } + const periodLabel = isFr ? period.fr : period.en; + const isSelected = value.state === 'selected'; + if ( config.withDatePicker && isSelected ) { + const rangeStart = resolveRangeEndpointToInputDate( period.range.start ); + const rangeEnd = resolveRangeEndpointToInputDate( period.range.end ); + const startEl = document.getElementById( 'gc-facet-date-start-' + index ); + const endEl = document.getElementById( 'gc-facet-date-end-' + index ); + if ( startEl ) { startEl.value = rangeStart !== '1970-01-01' ? rangeStart : ''; } + if ( endEl ) { endEl.value = rangeEnd !== todayStr ? rangeEnd : ''; } + } + listEl.appendChild( renderFacetItem( periodLabel, value.numberOfResults, isSelected, () => { + // Clear custom date filter and any other selected range before selecting + dateFilterControllers[ index ].clear(); + facetControllers[ index ].deselectAll(); + facetControllers[ index ].toggleSelect( value ); + } ) ); + } ); - facetEl.appendChild( listEl ); + facetEl.appendChild( listEl ); + } updateFacetLayoutVisibility(); updateClearAllVisibility(); } diff --git a/netlify/src/suggestions.js b/netlify/src/suggestions.js index 580a619..06fe351 100644 --- a/netlify/src/suggestions.js +++ b/netlify/src/suggestions.js @@ -115,6 +115,9 @@ function initTpl() { // default searchbox attributes searchBoxElement.setAttribute( 'type', 'search' ); // default, when query suggestions are disabled + // remove legacy list attribute if exists + searchBoxElement.removeAttribute( 'list' ); + // if query suggestions are enabled and not advanced search, auto-create suggestions element and update searchbox attributes if ( params.numberOfSuggestions > 0 && !suggestionsElement ) { searchBoxElement.setAttribute( 'type', 'text' ); @@ -235,7 +238,7 @@ function initEngine() { if ( formElement ) { formElement.onsubmit = ( e ) => { e.preventDefault(); - redirectToSearchPage( 'headerSearchBoxSubmit' ); + redirectToSearchPage( 'searchFromLink' ); }; } } @@ -340,7 +343,7 @@ function selectSuggestion() { if ( selectedVal ) { searchBoxElement.value = selectedVal; - redirectToSearchPage( 'headerSearchBoxSuggestion' ); + redirectToSearchPage( 'omniboxFromLink' ); } } } @@ -418,7 +421,7 @@ function updateSearchBoxState( newState ) { }; node.onclick = ( e ) => { searchBoxElement.value = stripHtml( e.currentTarget.innerText ); - redirectToSearchPage( 'headerSearchBoxSuggestion' ); + redirectToSearchPage( 'omniboxFromLink' ); }; node.innerHTML = DOMPurify.sanitize( suggestion.highlightedValue ); suggestionsElement.appendChild( node ); diff --git a/netlify/test/srf-en.html b/netlify/test/srf-en.html index 3d917a8..0b77360 100644 --- a/netlify/test/srf-en.html +++ b/netlify/test/srf-en.html @@ -1,118 +1,24 @@ - - - - - +--- +title: Search facets/filters results +description: Demo page for the search with facets +lang: en +altLangPage: srf-fr.html +nositesearch: true +pageclass: page-type-search +pageType: search +share: false +deptfeature: false +dateModified: 2026-03-19 +breadcrumbs: +- title: "GC Search UI" + link: "../index.html" +css: "../src/connector.css" +script: +- src: "assets/token.js" +- src: "../src/connector.js" + type: module +--- -Search facets/filters results - Canada.ca - - - - - - - - - - - - - - - - - - - -
    -
    -
    - -
    -

    Language selection

    - -
    - - - - - -
    -
    - - -
    - - - - - - -
    - -

    Search facets/filters results

    - - - - - - - - - - - From baab7fa7da691c84cd444435ee2466c720b1d534 Mon Sep 17 00:00:00 2001 From: Cody Foss Date: Tue, 5 May 2026 14:36:34 -0600 Subject: [PATCH 13/22] Latest --- netlify/src/connector.js | 138 ++++++++++++++++++--------------------- src/connector.js | 138 ++++++++++++++++++--------------------- 2 files changed, 128 insertions(+), 148 deletions(-) diff --git a/netlify/src/connector.js b/netlify/src/connector.js index 00b97cf..be08974 100644 --- a/netlify/src/connector.js +++ b/netlify/src/connector.js @@ -72,16 +72,6 @@ let unsubscribeQuerySummaryController; let unsubscribeDidYouMeanController; let unsubscribePagerController; -// Facet configs and controllers -const baseFacetConfig = { - facetId: "", // Required - facetSearch: true, - field: "", // Required - filterFacetCount: true, - numberOfValues: 8, - sortCriteria: "score", - title: "" -} let dateFilterControllers = []; let dateFilterStates = []; let facetControllers = []; @@ -1886,73 +1876,73 @@ function updateDateFacetState( index, dateFacetState, dateFilterState ) { // --- Custom date pickers (above the list) --- if ( config.withDatePicker ) { - const startId = 'gc-facet-date-start-' + index; - const endId = 'gc-facet-date-end-' + index; - - const datePickerContainer = document.createElement( 'div' ); - datePickerContainer.className = 'gc-date-pickers'; - - datePickerContainer.insertAdjacentHTML( 'beforeend', - `
    - - -
    -
    - - -
    - - ` - ); - - const startInput = datePickerContainer.querySelector( '#' + startId ); - const endInput = datePickerContainer.querySelector( '#' + endId ); - - startInput.onchange = () => { if ( startInput.value ) { endInput.min = startInput.value; } }; - endInput.onchange = () => { if ( endInput.value ) { startInput.max = endInput.value; } }; - - // Pre-populate inputs if a custom filter is already active, skipping sentinel values - if ( dateFilterState.range ) { - const rangeStart = coveoDateToInputDate( dateFilterState.range.start ); - const rangeEnd = coveoDateToInputDate( dateFilterState.range.end ); - if ( rangeStart !== '1970-01-01' ) { - startInput.value = rangeStart; - } - if ( rangeEnd !== todayStr ) { - endInput.value = rangeEnd; - } - if ( startInput.value ) { endInput.min = startInput.value; } - if ( endInput.value ) { startInput.max = endInput.value; } - } - - datePickerContainer.querySelector( '.gc-date-apply' ).onclick = () => { - let startVal = startInput.value; - let endVal = endInput.value; - if ( startVal || endVal ) { - // Swap if end is before start - if ( startVal && endVal && endVal < startVal ) { - [ startVal, endVal ] = [ endVal, startVal ]; - startInput.value = startVal; - endInput.value = endVal; + const startId = 'gc-facet-date-start-' + index; + const endId = 'gc-facet-date-end-' + index; + + const datePickerContainer = document.createElement( 'div' ); + datePickerContainer.className = 'gc-date-pickers'; + + datePickerContainer.insertAdjacentHTML( 'beforeend', + `
    + + +
    +
    + + +
    + + ` + ); + + const startInput = datePickerContainer.querySelector( '#' + startId ); + const endInput = datePickerContainer.querySelector( '#' + endId ); + + startInput.onchange = () => { if ( startInput.value ) { endInput.min = startInput.value; } }; + endInput.onchange = () => { if ( endInput.value ) { startInput.max = endInput.value; } }; + + // Pre-populate inputs if a custom filter is already active, skipping sentinel values + if ( dateFilterState.range ) { + const rangeStart = coveoDateToInputDate( dateFilterState.range.start ); + const rangeEnd = coveoDateToInputDate( dateFilterState.range.end ); + if ( rangeStart !== '1970-01-01' ) { + startInput.value = rangeStart; } - // Clear predefined range selection before applying custom filter - facetControllers[ index ].deselectAll(); - dateFilterControllers[ index ].setRange( { - start: inputDateToCoveoDate( startVal || '1970-01-01', false ), - end: inputDateToCoveoDate( endVal || todayStr, true ), - } ); - } - }; + if ( rangeEnd !== todayStr ) { + endInput.value = rangeEnd; + } + if ( startInput.value ) { endInput.min = startInput.value; } + if ( endInput.value ) { startInput.max = endInput.value; } + } + + datePickerContainer.querySelector( '.gc-date-apply' ).onclick = () => { + let startVal = startInput.value; + let endVal = endInput.value; + if ( startVal || endVal ) { + // Swap if end is before start + if ( startVal && endVal && endVal < startVal ) { + [ startVal, endVal ] = [ endVal, startVal ]; + startInput.value = startVal; + endInput.value = endVal; + } + // Clear predefined range selection before applying custom filter + facetControllers[ index ].deselectAll(); + dateFilterControllers[ index ].setRange( { + start: inputDateToCoveoDate( startVal || '1970-01-01', false ), + end: inputDateToCoveoDate( endVal || todayStr, true ), + } ); + } + }; - datePickerContainer.querySelector( '.gc-date-clear' ).onclick = () => { - startInput.value = ''; - endInput.value = ''; - startInput.max = todayStr; - endInput.min = ''; - dateFilterControllers[ index ].clear(); - }; + datePickerContainer.querySelector( '.gc-date-clear' ).onclick = () => { + startInput.value = ''; + endInput.value = ''; + startInput.max = todayStr; + endInput.min = ''; + dateFilterControllers[ index ].clear(); + }; - facetEl.appendChild( datePickerContainer ); + facetEl.appendChild( datePickerContainer ); } // end withDatePicker // --- Predefined date range list --- diff --git a/src/connector.js b/src/connector.js index 00b97cf..be08974 100644 --- a/src/connector.js +++ b/src/connector.js @@ -72,16 +72,6 @@ let unsubscribeQuerySummaryController; let unsubscribeDidYouMeanController; let unsubscribePagerController; -// Facet configs and controllers -const baseFacetConfig = { - facetId: "", // Required - facetSearch: true, - field: "", // Required - filterFacetCount: true, - numberOfValues: 8, - sortCriteria: "score", - title: "" -} let dateFilterControllers = []; let dateFilterStates = []; let facetControllers = []; @@ -1886,73 +1876,73 @@ function updateDateFacetState( index, dateFacetState, dateFilterState ) { // --- Custom date pickers (above the list) --- if ( config.withDatePicker ) { - const startId = 'gc-facet-date-start-' + index; - const endId = 'gc-facet-date-end-' + index; - - const datePickerContainer = document.createElement( 'div' ); - datePickerContainer.className = 'gc-date-pickers'; - - datePickerContainer.insertAdjacentHTML( 'beforeend', - `
    - - -
    -
    - - -
    - - ` - ); - - const startInput = datePickerContainer.querySelector( '#' + startId ); - const endInput = datePickerContainer.querySelector( '#' + endId ); - - startInput.onchange = () => { if ( startInput.value ) { endInput.min = startInput.value; } }; - endInput.onchange = () => { if ( endInput.value ) { startInput.max = endInput.value; } }; - - // Pre-populate inputs if a custom filter is already active, skipping sentinel values - if ( dateFilterState.range ) { - const rangeStart = coveoDateToInputDate( dateFilterState.range.start ); - const rangeEnd = coveoDateToInputDate( dateFilterState.range.end ); - if ( rangeStart !== '1970-01-01' ) { - startInput.value = rangeStart; - } - if ( rangeEnd !== todayStr ) { - endInput.value = rangeEnd; - } - if ( startInput.value ) { endInput.min = startInput.value; } - if ( endInput.value ) { startInput.max = endInput.value; } - } - - datePickerContainer.querySelector( '.gc-date-apply' ).onclick = () => { - let startVal = startInput.value; - let endVal = endInput.value; - if ( startVal || endVal ) { - // Swap if end is before start - if ( startVal && endVal && endVal < startVal ) { - [ startVal, endVal ] = [ endVal, startVal ]; - startInput.value = startVal; - endInput.value = endVal; + const startId = 'gc-facet-date-start-' + index; + const endId = 'gc-facet-date-end-' + index; + + const datePickerContainer = document.createElement( 'div' ); + datePickerContainer.className = 'gc-date-pickers'; + + datePickerContainer.insertAdjacentHTML( 'beforeend', + `
    + + +
    +
    + + +
    + + ` + ); + + const startInput = datePickerContainer.querySelector( '#' + startId ); + const endInput = datePickerContainer.querySelector( '#' + endId ); + + startInput.onchange = () => { if ( startInput.value ) { endInput.min = startInput.value; } }; + endInput.onchange = () => { if ( endInput.value ) { startInput.max = endInput.value; } }; + + // Pre-populate inputs if a custom filter is already active, skipping sentinel values + if ( dateFilterState.range ) { + const rangeStart = coveoDateToInputDate( dateFilterState.range.start ); + const rangeEnd = coveoDateToInputDate( dateFilterState.range.end ); + if ( rangeStart !== '1970-01-01' ) { + startInput.value = rangeStart; } - // Clear predefined range selection before applying custom filter - facetControllers[ index ].deselectAll(); - dateFilterControllers[ index ].setRange( { - start: inputDateToCoveoDate( startVal || '1970-01-01', false ), - end: inputDateToCoveoDate( endVal || todayStr, true ), - } ); - } - }; + if ( rangeEnd !== todayStr ) { + endInput.value = rangeEnd; + } + if ( startInput.value ) { endInput.min = startInput.value; } + if ( endInput.value ) { startInput.max = endInput.value; } + } + + datePickerContainer.querySelector( '.gc-date-apply' ).onclick = () => { + let startVal = startInput.value; + let endVal = endInput.value; + if ( startVal || endVal ) { + // Swap if end is before start + if ( startVal && endVal && endVal < startVal ) { + [ startVal, endVal ] = [ endVal, startVal ]; + startInput.value = startVal; + endInput.value = endVal; + } + // Clear predefined range selection before applying custom filter + facetControllers[ index ].deselectAll(); + dateFilterControllers[ index ].setRange( { + start: inputDateToCoveoDate( startVal || '1970-01-01', false ), + end: inputDateToCoveoDate( endVal || todayStr, true ), + } ); + } + }; - datePickerContainer.querySelector( '.gc-date-clear' ).onclick = () => { - startInput.value = ''; - endInput.value = ''; - startInput.max = todayStr; - endInput.min = ''; - dateFilterControllers[ index ].clear(); - }; + datePickerContainer.querySelector( '.gc-date-clear' ).onclick = () => { + startInput.value = ''; + endInput.value = ''; + startInput.max = todayStr; + endInput.min = ''; + dateFilterControllers[ index ].clear(); + }; - facetEl.appendChild( datePickerContainer ); + facetEl.appendChild( datePickerContainer ); } // end withDatePicker // --- Predefined date range list --- From 6ef1602710ff49189d51de898133c725dde879aa Mon Sep 17 00:00:00 2001 From: Cody Foss Date: Tue, 5 May 2026 14:40:25 -0600 Subject: [PATCH 14/22] Update srf-en.html --- netlify/test/srf-en.html | 206 +++++++++++++++++++++++++++++++++++---- 1 file changed, 185 insertions(+), 21 deletions(-) diff --git a/netlify/test/srf-en.html b/netlify/test/srf-en.html index 0b77360..6d26afe 100644 --- a/netlify/test/srf-en.html +++ b/netlify/test/srf-en.html @@ -1,24 +1,118 @@ ---- -title: Search facets/filters results -description: Demo page for the search with facets -lang: en -altLangPage: srf-fr.html -nositesearch: true -pageclass: page-type-search -pageType: search -share: false -deptfeature: false -dateModified: 2026-03-19 -breadcrumbs: -- title: "GC Search UI" - link: "../index.html" -css: "../src/connector.css" -script: -- src: "assets/token.js" -- src: "../src/connector.js" - type: module ---- + + + + + +Search facets/filters results - Canada.ca + + + + + + + + + + + + + + + + + + + +
    +
    +
    + +
    +

    Language selection

    + +
    + + + + + +
    +
    + + +
    + + + + + + +
    + +

    Search facets/filters results

    @@ -35,7 +129,7 @@
    Date: Thu, 7 May 2026 13:44:37 -0600 Subject: [PATCH 16/22] Use checkboxes instead of icons, accessibility improvements --- src/connector.js | 58 ++++++++++++++++++++++++++++++------------------ 1 file changed, 37 insertions(+), 21 deletions(-) diff --git a/src/connector.js b/src/connector.js index be08974..fa4e810 100644 --- a/src/connector.js +++ b/src/connector.js @@ -412,6 +412,7 @@ function initTpl() {

    ${isFr ? 'Filtres' : 'Filters'}

    +

    @@ -1681,8 +1682,17 @@ function updatePagerState( newState ) { } // Rebuild a single facet's DOM inside the facet panel +function announceFacetChange( message ) { + const liveEl = document.getElementById( 'gc-facet-live' ); + if ( !liveEl ) { return; } + liveEl.textContent = ''; + // Brief timeout ensures screen readers detect the content change + setTimeout( () => { liveEl.textContent = message; }, 50 ); +} + function renderFacetSummary( label, hasActive, onClear ) { const summaryEl = document.createElement( 'summary' ); + summaryEl.id = 'gc-facet-label-' + label.toLowerCase().replace( /\s+/g, '-' ); summaryEl.textContent = label; if ( hasActive ) { summaryEl.insertAdjacentHTML( 'beforeend', `` ); @@ -1694,32 +1704,23 @@ function renderFacetSummary( label, hasActive, onClear ) { // Builds a single facet value
  • . function renderFacetItem( label, count, isSelected, onSelect ) { const liEl = document.createElement( 'li' ); + liEl.className = 'checkbox'; - if ( isSelected ) { - const hintEl = document.createElement( 'span' ); - hintEl.className = 'wb-inv'; - hintEl.textContent = lang === 'fr' ? 'Enlever le filtre actif:' : 'Remove active filter:'; - liEl.appendChild( hintEl ); - } + const labelEl = document.createElement( 'label' ); - const linkEl = document.createElement( 'a' ); - linkEl.href = '#'; - linkEl.onclick = ( e ) => { e.preventDefault(); onSelect(); }; - - if ( isSelected ) { - const iconEl = document.createElement( 'span' ); - iconEl.className = 'glyphicon glyphicon-ok mrgn-rght-sm'; - iconEl.setAttribute( 'aria-hidden', 'true' ); - linkEl.appendChild( iconEl ); - } + const checkboxEl = document.createElement( 'input' ); + checkboxEl.type = 'checkbox'; + checkboxEl.checked = isSelected; + checkboxEl.onchange = () => { onSelect(); }; const countEl = document.createElement( 'span' ); countEl.className = 'gc-facet-count'; countEl.innerHTML = ' (' + count.toLocaleString( lang ) + ' ' + ( lang === 'fr' ? 'résultats' : 'results' ) + ')'; - linkEl.appendChild( document.createTextNode( label ) ); - liEl.appendChild( linkEl ); - liEl.appendChild( countEl ); + labelEl.appendChild( checkboxEl ); + labelEl.appendChild( document.createTextNode( label ) ); + labelEl.appendChild( countEl ); + liEl.appendChild( labelEl ); return liEl; } @@ -1785,8 +1786,12 @@ function updateFacetState( index, newState ) { } // Values list — show facet search results when a query is active, otherwise regular values + const listId = 'gc-facet-values-' + index; const listEl = document.createElement( 'ul' ); + listEl.id = listId; listEl.className = 'list-unstyled gc-facet-values'; + listEl.setAttribute( 'role', 'group' ); + listEl.setAttribute( 'aria-labelledby', 'gc-facet-label-' + config.label.toLowerCase().replace( /\s+/g, '-' ) ); if ( isSearching ) { facetSearchState.values.forEach( ( result ) => { @@ -1803,11 +1808,16 @@ function updateFacetState( index, newState ) { // Show more / show less — hidden while searching (search has its own pagination) const isFr = lang === 'fr'; facetEl.insertAdjacentHTML( 'beforeend', - ` - ` ); + ` + ` ); facetEl.querySelector( '.gc-facet-show-more' ).onclick = () => { facetControllers[ index ].showMoreValues(); }; facetEl.querySelector( '.gc-facet-show-less' ).onclick = () => { facetControllers[ index ].showLessValues(); }; + if ( newState.hasActiveValues ) { + const activeLabels = newState.values.filter( ( v ) => v.state === 'selected' ).map( ( v ) => v.value ).join( ', ' ); + announceFacetChange( isFr ? `Filtre actif\u00a0: ${activeLabels}` : `Filter active: ${activeLabels}` ); + } + updateFacetLayoutVisibility(); updateClearAllVisibility(); } @@ -1973,6 +1983,12 @@ function updateDateFacetState( index, dateFacetState, dateFilterState ) { facetEl.appendChild( listEl ); } + + if ( dateFacetState.hasActiveValues || dateFilterState.range ) { + const isFrAnnounce = lang === 'fr'; + announceFacetChange( isFrAnnounce ? `Filtre de date actif\u00a0: ${config.label}` : `Date filter active: ${config.label}` ); + } + updateFacetLayoutVisibility(); updateClearAllVisibility(); } From 6df7cf41011f72142ccdad4892c81697f8f2dbd3 Mon Sep 17 00:00:00 2001 From: Cody Foss Date: Thu, 7 May 2026 14:13:14 -0600 Subject: [PATCH 17/22] Persist facet visibility state --- src/connector.js | 110 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 110 insertions(+) diff --git a/src/connector.js b/src/connector.js index fa4e810..7b49296 100644 --- a/src/connector.js +++ b/src/connector.js @@ -434,6 +434,9 @@ function initTpl() { facetControllers.forEach( ( c ) => c?.deselectAll() ); dateFilterControllers.forEach( ( c ) => c?.clear() ); }; + + // Apply mobile defaults (sidebar hidden, facets collapsed) and restore any persisted state + applyFacetUIDefaults(); } // auto-create results @@ -522,6 +525,111 @@ function hasLocalStorage() { } } +// Detect if sessionStorage is available +function hasSessionStorage() { + try { + sessionStorage.setItem( '__test', '1' ); + sessionStorage.removeItem( '__test' ); + return true; + } catch ( error ) { + return false; + } +} + +// Returns true if the viewport is mobile (below Bootstrap's col-md breakpoint) +function isMobileView() { + return window.innerWidth < 992; +} + +// Session storage key for facet UI state +const FACET_UI_STATE_KEY = 'gc-facet-ui-state'; + +// Load persisted facet UI state from sessionStorage +function loadFacetUIState() { + if ( !hasSessionStorage() ) { return null; } + try { + const raw = sessionStorage.getItem( FACET_UI_STATE_KEY ); + return raw ? JSON.parse( raw ) : null; + } catch ( error ) { + return null; + } +} + +// Apply default facet UI state based on viewport, then overlay any persisted sessionStorage state. +// Desktop defaults: sidebar visible, facets open. +// Mobile defaults: sidebar hidden, facets collapsed. +function applyFacetUIDefaults() { + const mobile = isMobileView(); + const toggleBtn = document.getElementById( 'gc-facet-toggle' ); + const resultsCol = document.getElementById( 'gc-results-col' ); + const saved = loadFacetUIState(); + + // Determine sidebar visibility: prefer saved value, else use viewport default + const sidebarVisible = saved?.sidebarVisible !== undefined ? saved.sidebarVisible : !mobile; + if ( toggleBtn ) { + toggleBtn.setAttribute( 'aria-expanded', String( sidebarVisible ) ); + } + if ( facetSidebarElement ) { + facetSidebarElement.hidden = !sidebarVisible; + } + if ( resultsCol ) { + resultsCol.classList.toggle( 'col-md-8', sidebarVisible ); + resultsCol.classList.toggle( 'col-md-12', !sidebarVisible ); + } + + // Determine facet open state: default is open on desktop, closed on mobile + const defaultFacetsOpen = !mobile; + document.querySelectorAll( '.gc-facet' ).forEach( ( el ) => { + const savedOpen = saved?.facetsOpen?.[ el.id ]; + el.open = savedOpen !== undefined ? savedOpen : defaultFacetsOpen; + + // Persist state whenever the user manually toggles a facet + el.addEventListener( 'toggle', saveFacetUIState ); + } ); +} + +// Save facet UI state to sessionStorage, only persisting values that differ from the defaults +// Desktop defaults: sidebar visible, all facets open +// Mobile defaults: sidebar hidden, all facets closed +function saveFacetUIState() { + if ( !hasSessionStorage() ) { return; } + + const mobile = isMobileView(); + const defaultSidebarVisible = !mobile; + const defaultFacetsOpen = !mobile; + + const toggleBtn = document.getElementById( 'gc-facet-toggle' ); + const currentSidebarVisible = toggleBtn?.getAttribute( 'aria-expanded' ) === 'true'; + + const state = {}; + + // Only save sidebar visibility if it differs from the default + if ( currentSidebarVisible !== defaultSidebarVisible ) { + state.sidebarVisible = currentSidebarVisible; + } + + // Only save facet open/closed states that differ from the default + const facetEls = document.querySelectorAll( '.gc-facet' ); + const facetOpenOverrides = {}; + let hasFacetOverrides = false; + facetEls.forEach( ( el ) => { + if ( el.open !== defaultFacetsOpen ) { + facetOpenOverrides[ el.id ] = el.open; + hasFacetOverrides = true; + } + } ); + if ( hasFacetOverrides ) { + state.facetsOpen = facetOpenOverrides; + } + + // If everything matches defaults, clear any saved state + if ( Object.keys( state ).length === 0 ) { + sessionStorage.removeItem( FACET_UI_STATE_KEY ); + } else { + sessionStorage.setItem( FACET_UI_STATE_KEY, JSON.stringify( state ) ); + } +} + // Limit actions history array to items newer than 7 days function limitCoveoAnalyticsHistory( actionsHistory ) { const now = new Date(); @@ -1343,6 +1451,8 @@ function toggleFacetSidebar() { resultsCol?.classList.remove( 'col-md-12' ); resultsCol?.classList.add( 'col-md-8' ); } + + saveFacetUIState(); } // Update the visual selection of the active suggestion From 2808bf759a9cf0c9afb611843f8c805ffe5de534 Mon Sep 17 00:00:00 2001 From: Cody Foss Date: Thu, 7 May 2026 15:54:35 -0600 Subject: [PATCH 18/22] Date facet fixes --- src/connector.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/connector.js b/src/connector.js index 7b49296..3f19af1 100644 --- a/src/connector.js +++ b/src/connector.js @@ -715,6 +715,9 @@ function resolveRangeEndpointToInputDate( endpoint ) { if ( typeof endpoint === 'string' ) { return coveoDateToInputDate( endpoint ); } + if ( endpoint && endpoint.period === 'now' ) { + return ''; + } if ( endpoint && endpoint.period === 'past' ) { const d = new Date(); if ( endpoint.unit === 'day' ) { d.setDate( d.getDate() - endpoint.amount ); } @@ -726,9 +729,9 @@ function resolveRangeEndpointToInputDate( endpoint ) { return ''; } -// Predefined relative date periods for the date facet (start is relative, end is fixed at page load) +// Predefined relative date periods for the date facet (start is relative, end is now) function getDateFacetFields () { - const end = getCoveoDateFormat(new Date()); + const end = { period: 'now' }; return [ { en: "Past day", @@ -770,7 +773,7 @@ function getDateFacetFields () { en: "Older", fr: "Plus ancien", range: buildDateRange({ - start: "1970/01/01@00:00:00", + start: { period: "past", unit: "year", amount: 100 }, end: { period: "past", unit: "year", amount: 1 }, endInclusive: false, }), @@ -839,12 +842,6 @@ function getLongDateFormat( date, lang ){ return currentTZDate.toLocaleDateString( langCA, { year: 'numeric', month: 'short', day: 'numeric' } ); } -// Format a Date as a Coveo date string: YYYY/MM/DD@HH:mm:ss -function getCoveoDateFormat( date ) { - const pad = ( n ) => String( n ).padStart( 2, '0' ); - return `${date.getFullYear()}/${pad( date.getMonth() + 1 )}/${pad( date.getDate() )}@${pad( date.getHours() )}:${pad( date.getMinutes() )}:${pad( date.getSeconds() )}`; -} - // checking for default date , Jan 1st, 1970 function isEmptyDate( date ) { return date instanceof Date && @@ -2048,8 +2045,8 @@ function updateDateFacetState( index, dateFacetState, dateFilterState ) { // Clear predefined range selection before applying custom filter facetControllers[ index ].deselectAll(); dateFilterControllers[ index ].setRange( { - start: inputDateToCoveoDate( startVal || '1970-01-01', false ), - end: inputDateToCoveoDate( endVal || todayStr, true ), + start: startVal ? inputDateToCoveoDate( startVal, false ) : 'past-100-year', + end: endVal ? inputDateToCoveoDate( endVal, true ) : 'now', } ); } }; @@ -2087,7 +2084,10 @@ function updateDateFacetState( index, dateFacetState, dateFilterState ) { // Clear custom date filter and any other selected range before selecting dateFilterControllers[ index ].clear(); facetControllers[ index ].deselectAll(); - facetControllers[ index ].toggleSelect( value ); + // Only re-select if it wasn't already selected (deselect = just clear) + if ( !isSelected ) { + facetControllers[ index ].toggleSelect( value ); + } } ) ); } ); From 5aeb7131f0277ed37a605606021461e584a5faa0 Mon Sep 17 00:00:00 2001 From: Cody Foss Date: Thu, 7 May 2026 18:13:33 -0600 Subject: [PATCH 19/22] Breadcrumbs component + extracted translations --- src/connector.js | 157 +++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 139 insertions(+), 18 deletions(-) diff --git a/src/connector.js b/src/connector.js index 3f19af1..9badfe7 100644 --- a/src/connector.js +++ b/src/connector.js @@ -14,6 +14,7 @@ import { buildDateFacet, buildDateFilter, buildDateRange, + buildBreadcrumbManager, loadAdvancedSearchQueryActions, loadSortCriteriaActions, HighlightUtils, @@ -71,6 +72,8 @@ let unsubscribeResultListController; let unsubscribeQuerySummaryController; let unsubscribeDidYouMeanController; let unsubscribePagerController; +let breadcrumbManagerController; +let unsubscribeBreadcrumbManagerController; let dateFilterControllers = []; let dateFilterStates = []; @@ -92,7 +95,31 @@ let lastCharKeyUp; let activeSuggestion = 0; let pagerManuallyCleared = false; -// Firefox patch +const localizedStrings = { + en: new Map(), + fr: new Map() +}; +localizedStrings.en.set( "facets.showMore", "Show more" ); +localizedStrings.en.set( "breadbox.filters", "Filters:" ); +localizedStrings.fr.set( "breadbox.filters", "Filtres\u00a0:" ); +localizedStrings.en.set( "breadbox.clear", "Clear" ); +localizedStrings.fr.set( "breadbox.clear", "Effacer" ); +localizedStrings.en.set( "date-ranges.past-1-day|now", "Past day" ); +localizedStrings.fr.set( "date-ranges.past-1-day|now", "Derni\u00e8re journ\u00e9e" ); +localizedStrings.en.set( "date-ranges.past-1-week|now", "Past week" ); +localizedStrings.fr.set( "date-ranges.past-1-week|now", "Derni\u00e8re semaine" ); +localizedStrings.en.set( "date-ranges.past-1-month|now", "Past month" ); +localizedStrings.fr.set( "date-ranges.past-1-month|now", "Dernier mois" ); +localizedStrings.en.set( "date-ranges.past-1-year|now", "Past year" ); +localizedStrings.fr.set( "date-ranges.past-1-year|now", "Derni\u00e8re ann\u00e9e" ); +localizedStrings.en.set( "date-ranges.past-100-year|past-1-year", "Older" ); +localizedStrings.fr.set( "date-ranges.past-100-year|past-1-year", "Plus ancien" ); +localizedStrings.en.set( "date-ranges.before", "Before {{date}}" ); +localizedStrings.fr.set( "date-ranges.before", "Avant le {{date}}" ); +localizedStrings.en.set( "date-ranges.after", "After {{date}}" ); +localizedStrings.fr.set( "date-ranges.after", "Apr\u00e8s le {{date}}" ); + + // Firefox patch let isFirefox = navigator.userAgent.indexOf( "Firefox" ) !== -1; let waitForkeyUp = false; @@ -106,6 +133,7 @@ let querySummaryElement = document.querySelector( '#query-summary' ); let pagerElement = document.querySelector( '#pager' ); let suggestionsElement = document.querySelector( '#suggestions' ); let didYouMeanElement = document.querySelector( '#did-you-mean' ); +let breadcrumbElement = document.querySelector( '#breadcrumb-manager' ); let facetSidebarElement = document.querySelector( '#gc-facet-sidebar' ); let facetPanelElement = document.querySelector( '#gc-facet-panel' ); @@ -453,6 +481,15 @@ function initTpl() { resultsSection.append( querySummaryElement ); } + // auto-create breadcrumb element (after query-summary, before did-you-mean) + if ( !breadcrumbElement ) { + breadcrumbElement = document.createElement( "div" ); + breadcrumbElement.id = "breadcrumb-manager"; + breadcrumbElement.hidden = true; + + resultsSection.append( breadcrumbElement ); + } + // auto-create did you mean element if ( !didYouMeanElement ) { didYouMeanElement = document.createElement( "div" ); @@ -731,47 +768,41 @@ function resolveRangeEndpointToInputDate( endpoint ) { // Predefined relative date periods for the date facet (start is relative, end is now) function getDateFacetFields () { - const end = { period: 'now' }; return [ { - en: "Past day", - fr: "Dernière journée", + labelKey: "date-ranges.past-1-day|now", range: buildDateRange({ start: { period: "past", unit: "day", amount: 1 }, - end, + end: { period: 'now' }, endInclusive: true, }), }, { - en: "Past week", - fr: "Dernière semaine", + labelKey: "date-ranges.past-1-week|now", range: buildDateRange({ start: { period: "past", unit: "week", amount: 1 }, - end, + end: { period: 'now' }, endInclusive: true, }), }, { - en: "Past month", - fr: "Dernier mois", + labelKey: "date-ranges.past-1-month|now", range: buildDateRange({ start: { period: "past", unit: "month", amount: 1 }, - end, + end: { period: 'now' }, endInclusive: true, }), }, { - en: "Past year", - fr: "Dernière année", + labelKey: "date-ranges.past-1-year|now", range: buildDateRange({ start: { period: "past", unit: "year", amount: 1 }, - end, + end: { period: 'now' }, endInclusive: true, }), }, { - en: "Older", - fr: "Plus ancien", + labelKey: "date-ranges.past-100-year|past-1-year", range: buildDateRange({ start: { period: "past", unit: "year", amount: 100 }, end: { period: "past", unit: "year", amount: 1 }, @@ -969,6 +1000,7 @@ function initEngine() { didYouMeanController = buildDidYouMean( headlessEngine, { options: { automaticallyCorrectQuery: params.automaticallyCorrectQuery } } ); pagerController = buildPager( headlessEngine, { options: { numberOfPages: params.numberOfPages } } ); statusController = buildSearchStatus( headlessEngine ); + breadcrumbManagerController = buildBreadcrumbManager( headlessEngine ); // Build a facet controller for each normalized facet config facetNormalizedConfigs.forEach( ( config, index ) => { @@ -981,6 +1013,7 @@ function initEngine() { generateAutomaticRanges: false, } } ); + console.log('dateFacetController', getDateFacetFields()); const dateFilterController = buildDateFilter( headlessEngine, { options: { field: config.field, @@ -1247,6 +1280,7 @@ function initEngine() { unsubscribeQuerySummaryController = querySummaryController.subscribe( () => updateQuerySummaryState( querySummaryController.state ) ); unsubscribeDidYouMeanController = didYouMeanController.subscribe( () => updateDidYouMeanState( didYouMeanController.state ) ); unsubscribePagerController = pagerController.subscribe( () => updatePagerState( pagerController.state ) ); + unsubscribeBreadcrumbManagerController = breadcrumbManagerController.subscribe( () => updateBreadcrumbState( breadcrumbManagerController.state ) ); // Clear event tracking, for legacy browsers const onUnload = () => { @@ -1257,6 +1291,7 @@ function initEngine() { unsubscribeQuerySummaryController?.(); unsubscribeDidYouMeanController?.(); unsubscribePagerController?.(); + unsubscribeBreadcrumbManagerController?.(); unsubscribeFacetControllers.forEach( ( unsub ) => unsub?.() ); unsubscribeDateFilterControllers.forEach( ( unsub ) => unsub?.() ); }; @@ -1686,6 +1721,93 @@ function updateQuerySummaryState( newState ) { } } +function formatBreadcrumbLabel( breadcrumb ) { + const { start, end, value } = breadcrumb.value ?? {}; + const formatCoveoDate = ( coveoDate ) => coveoDate ? coveoDate.split( '@' )[ 0 ].replace( /\//g, '-' ) : ""; + + if ( start !== undefined && end !== undefined ) { + const rangeLabel = localizedStrings[ params.lang ].get( `date-ranges.${ start }|${ end }` ); + if ( rangeLabel ) { + return rangeLabel; + } else if ( start === 'past-100-year' ) { + return localizedStrings[ params.lang ].get( "date-ranges.before" ).replace( '{{date}}', formatCoveoDate( end ) ); + } else if ( end === 'now' ) { + return localizedStrings[ params.lang ].get( "date-ranges.after" ).replace( '{{date}}', formatCoveoDate( start ) ); + } else { + return `${ formatCoveoDate( start ) } - ${ formatCoveoDate( end ) }`; + } + } + return value ?? ""; +} + +function renderBreadcrumbItem( facetLabel, breadcrumb ) { + const displayValue = formatBreadcrumbLabel( breadcrumb ); + + const btnEl = document.createElement( "button" ); + btnEl.type = "button"; + btnEl.classList = "btn btn-default"; + btnEl.setAttribute( "aria-label", `${ facetLabel }: ${ displayValue }` ); + + const chipEl = document.createElement( "span" ); + chipEl.setAttribute( "aria-hidden", "true" ); + chipEl.textContent = `${ facetLabel }: ${ displayValue } `; + + const iconEl = document.createElement( "span" ); + iconEl.className = "glyphicon glyphicon-remove"; + iconEl.setAttribute( "aria-hidden", "true" ); + + chipEl.appendChild( iconEl ); + btnEl.appendChild( chipEl ); + btnEl.onclick = () => { breadcrumb.deselect(); }; + + const liEl = document.createElement( "li" ); + liEl.appendChild( btnEl ); + return liEl; +} + +// Update breadcrumb (active filter) display +function updateBreadcrumbState( newState ) { + if ( !breadcrumbElement ) return; + + const facetBreadcrumbs = newState.facetBreadcrumbs || []; + const dateFacetBreadcrumbs = newState.dateFacetBreadcrumbs || []; + const allBreadcrumbs = [ ...facetBreadcrumbs, ...dateFacetBreadcrumbs ]; + + if ( allBreadcrumbs.length === 0 ) { + breadcrumbElement.hidden = true; + breadcrumbElement.textContent = ""; + return; + } + + breadcrumbElement.hidden = false; + breadcrumbElement.textContent = ""; + + const wrapperEl = document.createElement( "ul" ); + wrapperEl.classList = "list-inline"; + + const labelEl = document.createElement( "li" ); + labelEl.classList = "bold-content"; + labelEl.textContent = localizedStrings[ params.lang ].get( "breadbox.filters" ); + wrapperEl.appendChild( labelEl ); + + allBreadcrumbs.forEach( ( facet ) => { + const configMatch = facetNormalizedConfigs.find( ( c ) => c.facetId === facet.facetId || c.field === facet.field ); + const facetLabel = configMatch?.label || facet.facetDisplayName || facet.field; + facet.values.forEach( ( breadcrumb ) => { + wrapperEl.appendChild( renderBreadcrumbItem( facetLabel, breadcrumb ) ); + } ); + } ); + + const clearAllEl = document.createElement( "button" ); + clearAllEl.type = "button"; + clearAllEl.classList = ( "btn btn-link" ); + clearAllEl.textContent = localizedStrings[ params.lang ].get( "breadbox.clear" ); + clearAllEl.onclick = () => { breadcrumbManagerController.deselectAll(); }; + wrapperEl.appendChild( clearAllEl ); + + breadcrumbElement.appendChild( wrapperEl ); +} + // update "Did you mean" recommendation function updateDidYouMeanState( newState ) { didYouMeanState = newState; @@ -2070,7 +2192,7 @@ function updateDateFacetState( index, dateFacetState, dateFilterState ) { [ ...dateFacetState.values ].reverse().forEach( ( value, valueIndex ) => { const period = getDateFacetFields()[ valueIndex ]; if ( !period ) { return; } - const periodLabel = isFr ? period.fr : period.en; + const periodLabel = localizedStrings[ lang ].get( period.labelKey ); const isSelected = value.state === 'selected'; if ( config.withDatePicker && isSelected ) { const rangeStart = resolveRangeEndpointToInputDate( period.range.start ); @@ -2081,7 +2203,6 @@ function updateDateFacetState( index, dateFacetState, dateFilterState ) { if ( endEl ) { endEl.value = rangeEnd !== todayStr ? rangeEnd : ''; } } listEl.appendChild( renderFacetItem( periodLabel, value.numberOfResults, isSelected, () => { - // Clear custom date filter and any other selected range before selecting dateFilterControllers[ index ].clear(); facetControllers[ index ].deselectAll(); // Only re-select if it wasn't already selected (deselect = just clear) From b6aac053bdd6491f238650643ef40b7504bb8543 Mon Sep 17 00:00:00 2001 From: Cody Foss Date: Thu, 7 May 2026 21:00:12 -0600 Subject: [PATCH 20/22] Big reorg --- src/connector.js | 750 ++++++++++++++++++++++++++++------------------- 1 file changed, 445 insertions(+), 305 deletions(-) diff --git a/src/connector.js b/src/connector.js index 9badfe7..960520b 100644 --- a/src/connector.js +++ b/src/connector.js @@ -119,7 +119,7 @@ localizedStrings.fr.set( "date-ranges.before", "Avant le {{date}}" ); localizedStrings.en.set( "date-ranges.after", "After {{date}}" ); localizedStrings.fr.set( "date-ranges.after", "Apr\u00e8s le {{date}}" ); - // Firefox patch +// Firefox patch let isFirefox = navigator.userAgent.indexOf( "Firefox" ) !== -1; let waitForkeyUp = false; @@ -149,6 +149,18 @@ let pageTemplateHTML = document.getElementById( 'sr-pager-page' )?.innerHTML; let nextPageTemplateHTML = document.getElementById( 'sr-pager-next' )?.innerHTML; let pagerContainerTemplateHTML = document.getElementById( 'sr-pager-container' )?.innerHTML; let qsA11yHintHTML = document.getElementById( 'sr-qs-hint' )?.innerHTML; +let facetSummaryTemplateHTML = document.getElementById( 'sr-facet-summary' )?.innerHTML; +let facetClearFilterTemplateHTML = document.getElementById( 'sr-facet-clear-filter' )?.innerHTML; +let facetItemTemplateHTML = document.getElementById( 'sr-facet-item' )?.innerHTML; +let facetSearchInputTemplateHTML = document.getElementById( 'sr-facet-search-input' )?.innerHTML; +let facetShowMoreTemplateHTML = document.getElementById( 'sr-facet-show-more' )?.innerHTML; +let facetShowLessTemplateHTML = document.getElementById( 'sr-facet-show-less' )?.innerHTML; +let facetDatePickerTemplateHTML = document.getElementById( 'sr-facet-date-picker' )?.innerHTML; +let facetToggleTemplateHTML = document.getElementById( 'sr-facet-toggle' )?.innerHTML; +let facetPanelItemTemplateHTML = document.getElementById( 'sr-facet-panel-item' )?.innerHTML; +let facetLayoutTemplateHTML = document.getElementById( 'sr-facet-layout' )?.innerHTML; +let breadcrumbItemTemplateHTML = document.getElementById( 'sr-breadcrumb-item' )?.innerHTML; +let breadcrumbListTemplateHTML = document.getElementById( 'sr-breadcrumb-list' )?.innerHTML; // Init parameters and UI function initSearchUI() { @@ -412,65 +424,164 @@ function initTpl() { else { qsA11yHintHTML = ``; - } + } } - // Normalize facet configs from the HTML attribute - const facetConfigMap = new Map(); - if ( Array.isArray( params.facets ) ) { - params.facets.forEach( ( raw ) => { - const config = normalizeFacetConfig( raw ); - if ( config ) facetConfigMap.set( config.facetId, config ); - } ); + if ( !facetSummaryTemplateHTML ) { + facetSummaryTemplateHTML = + `%[label]%[clearBtn]`; + } + + if ( !facetClearFilterTemplateHTML ) { + if ( lang === 'fr' ) { + facetClearFilterTemplateHTML = + ``; + } else { + facetClearFilterTemplateHTML = + ``; + } + } + + if ( !facetItemTemplateHTML ) { + if ( lang === 'fr' ) { + facetItemTemplateHTML = + `
  • `; + } else { + facetItemTemplateHTML = + `
  • `; + } + } + + if ( !facetSearchInputTemplateHTML ) { + if ( lang === 'fr' ) { + facetSearchInputTemplateHTML = + ``; + } else { + facetSearchInputTemplateHTML = + ``; + } + } + + if ( !facetShowMoreTemplateHTML ) { + if ( lang === 'fr' ) { + facetShowMoreTemplateHTML = + ``; + } else { + facetShowMoreTemplateHTML = + ``; + } } - facetNormalizedConfigs = [ ...facetConfigMap.values() ]; - - // Auto-create two-column facet layout when valid facets are configured - if ( facetNormalizedConfigs.length > 0 && !facetPanelElement ) { - const isFr = lang === 'fr'; - const facetPlaceholders = facetNormalizedConfigs.map( ( config, index ) => - `
    ` - ).join( '' ); - - baseElement.insertAdjacentHTML( 'beforeend', - ` -
    -
    -
    -

    ${isFr ? 'Filtres' : 'Filters'}

    -

    - - ${facetPlaceholders} -
    -
    -
    -
    -
    -
    ` - ); - - // Store references and attach event handlers after insertion - facetSidebarElement = document.getElementById( 'gc-facet-sidebar' ); - facetPanelElement = document.getElementById( 'gc-facet-panel' ); - resultsSection = document.getElementById( resultSectionID ); - document.getElementById( 'gc-facet-toggle' ).onclick = toggleFacetSidebar; - document.querySelector( '#gc-facet-clear-all-container .btn-link' ).onclick = () => { - facetControllers.forEach( ( c ) => c?.deselectAll() ); - dateFilterControllers.forEach( ( c ) => c?.clear() ); - }; - // Apply mobile defaults (sidebar hidden, facets collapsed) and restore any persisted state - applyFacetUIDefaults(); + if ( !facetShowLessTemplateHTML ) { + if ( lang === 'fr' ) { + facetShowLessTemplateHTML = + ``; + } else { + facetShowLessTemplateHTML = + ``; + } + } + + if ( !facetDatePickerTemplateHTML ) { + if ( lang === 'fr' ) { + facetDatePickerTemplateHTML = + `
    +
    + + +
    +
    + + +
    + + +
    `; + } else { + facetDatePickerTemplateHTML = + `
    +
    + + +
    +
    + + +
    + + +
    `; + } + } + + if ( !facetToggleTemplateHTML ) { + if ( lang === 'fr' ) { + facetToggleTemplateHTML = + ``; + } else { + facetToggleTemplateHTML = + ``; + } + } + + if ( !facetPanelItemTemplateHTML ) { + facetPanelItemTemplateHTML = + `
    `; + } + + if ( !facetLayoutTemplateHTML ) { + if ( lang === 'fr' ) { + facetLayoutTemplateHTML = + `
    +
    +
    +

    Filtres

    +

    + + %[facetItems] +
    +
    +
    +
    `; + } else { + facetLayoutTemplateHTML = + `
    +
    +
    +

    Filters

    +

    + + %[facetItems] +
    +
    +
    +
    `; + } } - // auto-create results + if ( !breadcrumbItemTemplateHTML ) { + breadcrumbItemTemplateHTML = + `
  • `; + } + + if ( !breadcrumbListTemplateHTML ) { + breadcrumbListTemplateHTML = + `
    • %[filtersLabel]
    • %[items]
    `; + } + + // auto-create results section (facet layout provides it when configured; otherwise create standalone) if ( !resultsSection ) { resultsSection = document.createElement( "section" ); resultsSection.id = resultSectionID; + baseElement.append( resultsSection ); } // auto-create query summary element @@ -482,7 +593,7 @@ function initTpl() { } // auto-create breadcrumb element (after query-summary, before did-you-mean) - if ( !breadcrumbElement ) { + if ( !breadcrumbElement && params.facets?.length ) { breadcrumbElement = document.createElement( "div" ); breadcrumbElement.id = "breadcrumb-manager"; breadcrumbElement.hidden = true; @@ -509,11 +620,9 @@ function initTpl() { // auto-create pager if ( !pagerElement ) { - let newPagerElement = document.createElement( "div" ); - newPagerElement.innerHTML = pagerContainerTemplateHTML; - - resultsSection.append( newPagerElement ); - pagerElement = newPagerElement; + pagerElement = document.createElement( "div" ); + pagerElement.innerHTML = pagerContainerTemplateHTML; + resultsSection.append( pagerElement ); } // initialize the search box @@ -551,6 +660,41 @@ function initTpl() { } ); } } + + // initialize facets + if ( params.facets?.length ) { + const facetConfigMap = new Map(); + params.facets.forEach( ( raw ) => { + const config = normalizeFacetConfig( raw ); + if ( config ) facetConfigMap.set( config.facetId, config ); + } ); + facetNormalizedConfigs = [ ...facetConfigMap.values() ]; + + if ( facetNormalizedConfigs.length > 0 && !facetPanelElement ) { + const facetItems = facetNormalizedConfigs.map( ( config, index ) => { + const item = facetPanelItemTemplateHTML.replace( '%[facetId]', config.facetId ); + return index > 0 ? item.replace( 'class="gc-facet"', 'class="gc-facet mrgn-tp-md"' ) : item; + } ).join( '' ); + + baseElement.insertAdjacentHTML( 'beforeend', + facetToggleTemplateHTML + + facetLayoutTemplateHTML.replace( '%[facetItems]', facetItems ) + ); + + // Store references and attach event handlers after insertion + facetSidebarElement = document.getElementById( 'gc-facet-sidebar' ); + facetPanelElement = document.getElementById( 'gc-facet-panel' ); + document.getElementById( 'gc-results-col' ).append( resultsSection ); + document.getElementById( 'gc-facet-toggle' ).onclick = toggleFacetSidebar; + document.querySelector( '#gc-facet-clear-all-container .btn-link' ).onclick = () => { + facetControllers.forEach( ( c ) => c?.deselectAll() ); + dateFilterControllers.forEach( ( c ) => c?.clear() ); + }; + + // Apply mobile defaults (sidebar hidden, facets collapsed) and restore any persisted state + applyFacetUIDefaults(); + } + } } // Detect if localStorage is available @@ -703,38 +847,44 @@ function sanitizeQuery(q) { } // Normalize a single raw facet config entry from the HTML attribute. -// Accepts { field, label|title, facetId, numberOfValues, sortCriteria }. // Returns a clean config object, or null if the entry is invalid. -function normalizeFacetConfig( raw ) { - if ( !raw || typeof raw !== 'object' || Array.isArray( raw ) ) { +function normalizeFacetConfig(raw) { + if (!raw || typeof raw !== 'object' || Array.isArray(raw)) { return null; } - const field = typeof raw.field === 'string' ? raw.field.trim() : ''; - if ( !field ) { + const field = raw.field?.trim(); + if (!field) { return null; } - const labelRaw = typeof raw.label === 'string' ? raw.label.trim() : ''; - const titleRaw = typeof raw.title === 'string' ? raw.title.trim() : ''; - const label = labelRaw || titleRaw || field; - - const facetId = ( typeof raw.facetId === 'string' && raw.facetId.trim() ) ? raw.facetId.trim() : field; - - const numberOfValues = ( Number.isInteger( raw.numberOfValues ) && raw.numberOfValues > 0 ) ? raw.numberOfValues : 8; + const facetType = raw.facetType === 'dateRange' ? 'dateRange' : 'regular'; - const sortCriteria = raw.sortCriteria !== '' ? raw.sortCriteria : 'occurrences'; + const defaults = + facetType === 'dateRange' ? { + withDatePicker: true, + withDateRanges: true, + } : { + numberOfValues: 8, + sortCriteria: 'occurrences', + facetSearch: true, + }; - const facetType = raw.facetType === 'dateRange' ? 'dateRange' : 'regular'; - const facetSearch = raw.facetSearch !== false; - const filterFacetCount = raw.filterFacetCount !== false; - const withDatePicker = raw.withDatePicker !== false; - const withDateRanges = raw.withDateRanges !== false; + const normalizedFields = { + field, + facetType, + label: raw.label?.trim() || raw.title?.trim() || field, + facetId: raw.facetId?.trim() || field, + filterFacetCount: raw.filterFacetCount ?? true, + }; - return { field, label, facetId, numberOfValues, sortCriteria, facetType, facetSearch, filterFacetCount, withDatePicker, withDateRanges }; + return { + ...defaults, + ...raw, + ...normalizedFields, + }; } - // Convert YYYY-MM-DD (date input value) to Coveo date string function inputDateToCoveoDate( dateStr, endOfDay ) { if ( !dateStr ) { return ''; } @@ -1000,52 +1150,56 @@ function initEngine() { didYouMeanController = buildDidYouMean( headlessEngine, { options: { automaticallyCorrectQuery: params.automaticallyCorrectQuery } } ); pagerController = buildPager( headlessEngine, { options: { numberOfPages: params.numberOfPages } } ); statusController = buildSearchStatus( headlessEngine ); - breadcrumbManagerController = buildBreadcrumbManager( headlessEngine ); - - // Build a facet controller for each normalized facet config - facetNormalizedConfigs.forEach( ( config, index ) => { - if ( config.facetType === 'dateRange' ) { - const dateFacetController = buildDateFacet( headlessEngine, { - options: { - field: config.field, - facetId: config.facetId, - currentValues: getDateFacetFields().map( ( p ) => p.range ), - generateAutomaticRanges: false, - } - } ); - console.log('dateFacetController', getDateFacetFields()); - const dateFilterController = buildDateFilter( headlessEngine, { - options: { - field: config.field, - facetId: config.facetId + '__filter', - } - } ); - facetControllers[ index ] = dateFacetController; - dateFilterControllers[ index ] = dateFilterController; - facetStates[ index ] = dateFacetController.state; - dateFilterStates[ index ] = dateFilterController.state; - unsubscribeFacetControllers[ index ] = dateFacetController.subscribe( - () => updateDateFacetState( index, dateFacetController.state, dateFilterController.state ) - ); - unsubscribeDateFilterControllers[ index ] = dateFilterController.subscribe( - () => updateDateFacetState( index, dateFacetController.state, dateFilterController.state ) - ); - } else { - const controller = buildFacet( headlessEngine, { - options: { - field: config.field, - facetId: config.facetId, - numberOfValues: config.numberOfValues, - sortCriteria: config.sortCriteria, - } - } ); - facetControllers[ index ] = controller; - facetStates[ index ] = controller.state; - unsubscribeFacetControllers[ index ] = controller.subscribe( - () => updateFacetState( index, controller.state ) - ); - } - } ); + + if( params.facets?.length ) { + + // Build a facet controller for each normalized facet config + facetNormalizedConfigs.forEach( ( config, index ) => { + if ( config.facetType === 'dateRange' ) { + const dateFacetController = buildDateFacet( headlessEngine, { + options: { + field: config.field, + facetId: config.facetId, + currentValues: getDateFacetFields().map( ( p ) => p.range ), + generateAutomaticRanges: false, + } + } ); + const dateFilterController = buildDateFilter( headlessEngine, { + options: { + field: config.field, + facetId: config.facetId + '__filter', + } + } ); + facetControllers[ index ] = dateFacetController; + dateFilterControllers[ index ] = dateFilterController; + facetStates[ index ] = dateFacetController.state; + dateFilterStates[ index ] = dateFilterController.state; + unsubscribeFacetControllers[ index ] = dateFacetController.subscribe( + () => updateDateFacetState( index, dateFacetController.state, dateFilterController.state ) + ); + unsubscribeDateFilterControllers[ index ] = dateFilterController.subscribe( + () => updateDateFacetState( index, dateFacetController.state, dateFilterController.state ) + ); + } else { + const controller = buildFacet( headlessEngine, { + options: { + field: config.field, + facetId: config.facetId, + numberOfValues: config.numberOfValues, + sortCriteria: config.sortCriteria, + } + } ); + facetControllers[ index ] = controller; + facetStates[ index ] = controller.state; + unsubscribeFacetControllers[ index ] = controller.subscribe( + () => updateFacetState( index, controller.state ) + ); + } + } ); + + breadcrumbManagerController = buildBreadcrumbManager( headlessEngine ); + + } // Refine search based on URL parameters for filters, mostly used in Advanced Search to trigger only one search per page load if ( urlParams.allq || urlParams.exctq || urlParams.anyq || urlParams.noneq || urlParams.fqupdate || urlParams.dmn || urlParams.fqocct || urlParams.elctn_cat || urlParams.filetype || urlParams.site || urlParams.year || urlParams.declaredtype || urlParams.startdate || urlParams.enddate || urlParams.dprtmnt ) { @@ -1280,7 +1434,9 @@ function initEngine() { unsubscribeQuerySummaryController = querySummaryController.subscribe( () => updateQuerySummaryState( querySummaryController.state ) ); unsubscribeDidYouMeanController = didYouMeanController.subscribe( () => updateDidYouMeanState( didYouMeanController.state ) ); unsubscribePagerController = pagerController.subscribe( () => updatePagerState( pagerController.state ) ); - unsubscribeBreadcrumbManagerController = breadcrumbManagerController.subscribe( () => updateBreadcrumbState( breadcrumbManagerController.state ) ); + if( params.facets?.length ) { + unsubscribeBreadcrumbManagerController = breadcrumbManagerController.subscribe( () => updateBreadcrumbState( breadcrumbManagerController.state ) ); + } // Clear event tracking, for legacy browsers const onUnload = () => { @@ -1291,9 +1447,11 @@ function initEngine() { unsubscribeQuerySummaryController?.(); unsubscribeDidYouMeanController?.(); unsubscribePagerController?.(); - unsubscribeBreadcrumbManagerController?.(); - unsubscribeFacetControllers.forEach( ( unsub ) => unsub?.() ); - unsubscribeDateFilterControllers.forEach( ( unsub ) => unsub?.() ); + if( params.facets?.length ) { + unsubscribeFacetControllers.forEach( ( unsub ) => unsub?.() ); + unsubscribeDateFilterControllers.forEach( ( unsub ) => unsub?.() ); + unsubscribeBreadcrumbManagerController?.(); + } }; // Listen to URL change (hash) @@ -1740,29 +1898,12 @@ function formatBreadcrumbLabel( breadcrumb ) { return value ?? ""; } -function renderBreadcrumbItem( facetLabel, breadcrumb ) { +function renderBreadcrumbItemHTML( facetLabel, breadcrumb ) { const displayValue = formatBreadcrumbLabel( breadcrumb ); - - const btnEl = document.createElement( "button" ); - btnEl.type = "button"; - btnEl.classList = "btn btn-default"; - btnEl.setAttribute( "aria-label", `${ facetLabel }: ${ displayValue }` ); - - const chipEl = document.createElement( "span" ); - chipEl.setAttribute( "aria-hidden", "true" ); - chipEl.textContent = `${ facetLabel }: ${ displayValue } `; - - const iconEl = document.createElement( "span" ); - iconEl.className = "glyphicon glyphicon-remove"; - iconEl.setAttribute( "aria-hidden", "true" ); - - chipEl.appendChild( iconEl ); - btnEl.appendChild( chipEl ); - btnEl.onclick = () => { breadcrumb.deselect(); }; - - const liEl = document.createElement( "li" ); - liEl.appendChild( btnEl ); - return liEl; + const label = `${ facetLabel }: ${ displayValue }`; + return breadcrumbItemTemplateHTML + .replace( '%[ariaLabel]', label ) + .replace( '%[label]', label ); } // Update breadcrumb (active filter) display @@ -1779,33 +1920,25 @@ function updateBreadcrumbState( newState ) { return; } - breadcrumbElement.hidden = false; - breadcrumbElement.textContent = ""; - - const wrapperEl = document.createElement( "ul" ); - wrapperEl.classList = "list-inline"; - - const labelEl = document.createElement( "li" ); - labelEl.classList = "bold-content"; - labelEl.textContent = localizedStrings[ params.lang ].get( "breadbox.filters" ); - wrapperEl.appendChild( labelEl ); - - allBreadcrumbs.forEach( ( facet ) => { + const itemsHTML = allBreadcrumbs.map( ( facet ) => { const configMatch = facetNormalizedConfigs.find( ( c ) => c.facetId === facet.facetId || c.field === facet.field ); const facetLabel = configMatch?.label || facet.facetDisplayName || facet.field; - facet.values.forEach( ( breadcrumb ) => { - wrapperEl.appendChild( renderBreadcrumbItem( facetLabel, breadcrumb ) ); - } ); - } ); + return facet.values.map( ( breadcrumb ) => renderBreadcrumbItemHTML( facetLabel, breadcrumb ) ).join( '' ); + } ).join( '' ); - const clearAllEl = document.createElement( "button" ); - clearAllEl.type = "button"; - clearAllEl.classList = ( "btn btn-link" ); - clearAllEl.textContent = localizedStrings[ params.lang ].get( "breadbox.clear" ); - clearAllEl.onclick = () => { breadcrumbManagerController.deselectAll(); }; - wrapperEl.appendChild( clearAllEl ); + breadcrumbElement.hidden = false; + breadcrumbElement.innerHTML = breadcrumbListTemplateHTML + .replace( '%[filtersLabel]', localizedStrings[ params.lang ].get( 'breadbox.filters' ) ) + .replace( '%[items]', itemsHTML ) + .replace( '%[clearLabel]', localizedStrings[ params.lang ].get( 'breadbox.clear' ) ); + + // Attach deselect handlers to each breadcrumb button by index + const allValues = allBreadcrumbs.flatMap( ( facet ) => facet.values ); + breadcrumbElement.querySelectorAll( '.btn-default' ).forEach( ( btn, i ) => { + btn.onclick = () => { allValues[ i ].deselect(); }; + } ); - breadcrumbElement.appendChild( wrapperEl ); + breadcrumbElement.querySelector( '.btn-link' ).onclick = () => { breadcrumbManagerController.deselectAll(); }; } // update "Did you mean" recommendation @@ -1919,39 +2052,19 @@ function announceFacetChange( message ) { setTimeout( () => { liveEl.textContent = message; }, 50 ); } -function renderFacetSummary( label, hasActive, onClear ) { - const summaryEl = document.createElement( 'summary' ); - summaryEl.id = 'gc-facet-label-' + label.toLowerCase().replace( /\s+/g, '-' ); - summaryEl.textContent = label; - if ( hasActive ) { - summaryEl.insertAdjacentHTML( 'beforeend', `` ); - summaryEl.querySelector( 'button' ).onclick = ( e ) => { e.stopPropagation(); onClear(); }; - } - return summaryEl; +function renderFacetSummaryHTML( label, hasActive ) { + return facetSummaryTemplateHTML + .replace( '%[labelId]', label.toLowerCase().replace( /\s+/g, '-' ) ) + .replace( '%[label]', label ) + .replace( '%[clearBtn]', hasActive ? facetClearFilterTemplateHTML : '' ); } -// Builds a single facet value
  • . -function renderFacetItem( label, count, isSelected, onSelect ) { - const liEl = document.createElement( 'li' ); - liEl.className = 'checkbox'; - - const labelEl = document.createElement( 'label' ); - - const checkboxEl = document.createElement( 'input' ); - checkboxEl.type = 'checkbox'; - checkboxEl.checked = isSelected; - checkboxEl.onchange = () => { onSelect(); }; - - const countEl = document.createElement( 'span' ); - countEl.className = 'gc-facet-count'; - countEl.innerHTML = ' (' + count.toLocaleString( lang ) + ' ' + ( lang === 'fr' ? 'résultats' : 'results' ) + ')'; - - labelEl.appendChild( checkboxEl ); - labelEl.appendChild( document.createTextNode( label ) ); - labelEl.appendChild( countEl ); - liEl.appendChild( labelEl ); - - return liEl; +// Returns HTML string for a single facet value
  • . +function renderFacetItemHTML( label, count, isSelected ) { + return facetItemTemplateHTML + .replace( '%[checked]', isSelected ? 'checked' : '' ) + .replace( '%[label]', label ) + .replace( '%[count]', count.toLocaleString( lang ) ); } function updateFacetState( index, newState ) { @@ -1977,12 +2090,7 @@ function updateFacetState( index, newState ) { // Preserve search focus and open/closed state across re-renders const searchInputId = 'gc-facet-search-' + index; const wasSearchFocused = document.activeElement?.id === searchInputId; - const preservedSearchValue = document.getElementById( searchInputId )?.value ?? ''; const wasOpen = facetEl.open; - facetEl.textContent = ''; - facetEl.open = wasOpen; - - facetEl.appendChild( renderFacetSummary( config.label, newState.hasActiveValues, () => facetControllers[ index ].deselectAll() ) ); // Facet search input (only if the controller exposes facetSearch) // facetSearch methods live on the sub-controller; state is nested in newState.facetSearch @@ -1990,14 +2098,57 @@ function updateFacetState( index, newState ) { const facetSearchState = newState.facetSearch; const isSearching = ( facetSearchState?.query?.length ?? 0 ) > 0; + const listId = 'gc-facet-values-' + index; + const labelId = 'gc-facet-label-' + config.label.toLowerCase().replace( /\s+/g, '-' ); + const isFr = lang === 'fr'; + + // Values list — show facet search results when a query is active, otherwise regular values + const itemsHTML = isSearching ? + facetSearchState.values.map( ( r ) => renderFacetItemHTML( stripHtml( r.displayValue ), r.count, false ) ).join( '' ) : + newState.values.map( ( v ) => renderFacetItemHTML( stripHtml( v.value ), v.numberOfResults, v.state === 'selected' ) ).join( '' ); + + // When the user is actively typing in the search box, only patch the values list + // in-place rather than tearing down and rebuilding the whole facet — otherwise the + // search results update destroys the focused input and moves focus / resets its value. + if ( wasSearchFocused && config.facetSearch && facetSearchState ) { + const listEl = facetEl.querySelector( '#' + listId ); + if ( listEl ) { + listEl.innerHTML = itemsHTML; + listEl.querySelectorAll( 'input[type="checkbox"]' ).forEach( ( checkbox, i ) => { + checkbox.onchange = () => { facetSearch.select( facetSearchState.values[ i ] ); }; + } ); + return; + } + } + + const searchHTML = config.facetSearch && facetSearchState ? + facetSearchInputTemplateHTML + .replace( '%[id]', searchInputId ) + .replace( '%[facetLabel]', config.label ) + .replace( '%[value]', '' ) : + ''; + + facetEl.innerHTML = + renderFacetSummaryHTML( config.label, newState.hasActiveValues ) + + searchHTML + + `
      ${ itemsHTML }
    ` + + facetShowMoreTemplateHTML.replace( '%[listId]', listId ) + + facetShowLessTemplateHTML.replace( '%[listId]', listId ); + + const showMoreBtn = facetEl.querySelector( '.gc-facet-show-more' ); + const showLessBtn = facetEl.querySelector( '.gc-facet-show-less' ); + if ( isSearching || !newState.canShowMoreValues ) { showMoreBtn.hidden = true; } + if ( isSearching || !newState.canShowLessValues ) { showLessBtn.hidden = true; } + + facetEl.open = wasOpen; + + // Attach event handlers + if ( newState.hasActiveValues ) { + facetEl.querySelector( '.gc-facet-clear' ).onclick = ( e ) => { e.stopPropagation(); facetControllers[ index ].deselectAll(); }; + } + if ( config.facetSearch && facetSearchState ) { - const searchInput = document.createElement( 'input' ); - searchInput.type = 'search'; - searchInput.id = searchInputId; - searchInput.className = 'form-control input-sm mrgn-tp-md mrgn-bttm-md gc-facet-search'; - searchInput.placeholder = lang === 'fr' ? 'Filtrer...' : 'Filter...'; - searchInput.setAttribute( 'aria-label', ( lang === 'fr' ? 'Filtrer ' : 'Filter ' ) + config.label ); - searchInput.value = preservedSearchValue; + const searchInput = facetEl.querySelector( '#' + searchInputId ); searchInput.oninput = () => { clearTimeout( facetSearchTimers[ index ] ); const query = searchInput.value; @@ -2010,37 +2161,19 @@ function updateFacetState( index, newState ) { facetSearch.updateText( '' ); } }; - facetEl.appendChild( searchInput ); if ( wasSearchFocused ) { searchInput.focus(); } } - // Values list — show facet search results when a query is active, otherwise regular values - const listId = 'gc-facet-values-' + index; - const listEl = document.createElement( 'ul' ); - listEl.id = listId; - listEl.className = 'list-unstyled gc-facet-values'; - listEl.setAttribute( 'role', 'group' ); - listEl.setAttribute( 'aria-labelledby', 'gc-facet-label-' + config.label.toLowerCase().replace( /\s+/g, '-' ) ); - - if ( isSearching ) { - facetSearchState.values.forEach( ( result ) => { - listEl.appendChild( renderFacetItem( stripHtml( result.displayValue ), result.count, false, () => facetSearch.select( result ) ) ); - } ); - } else { - newState.values.forEach( ( value ) => { - listEl.appendChild( renderFacetItem( stripHtml( value.value ), value.numberOfResults, value.state === 'selected', () => facetControllers[ index ].toggleSelect( value ) ) ); - } ); - } - - facetEl.appendChild( listEl ); + facetEl.querySelectorAll( '.gc-facet-values input[type="checkbox"]' ).forEach( ( checkbox, i ) => { + if ( isSearching ) { + checkbox.onchange = () => { facetSearch.select( facetSearchState.values[ i ] ); }; + } else { + checkbox.onchange = () => { facetControllers[ index ].toggleSelect( newState.values[ i ] ); }; + } + } ); - // Show more / show less — hidden while searching (search has its own pagination) - const isFr = lang === 'fr'; - facetEl.insertAdjacentHTML( 'beforeend', - ` - ` ); - facetEl.querySelector( '.gc-facet-show-more' ).onclick = () => { facetControllers[ index ].showMoreValues(); }; - facetEl.querySelector( '.gc-facet-show-less' ).onclick = () => { facetControllers[ index ].showLessValues(); }; + showMoreBtn.onclick = () => { facetControllers[ index ].showMoreValues(); }; + showLessBtn.onclick = () => { facetControllers[ index ].showLessValues(); }; if ( newState.hasActiveValues ) { const activeLabels = newState.values.filter( ( v ) => v.state === 'selected' ).map( ( v ) => v.value ).join( ', ' ); @@ -2074,13 +2207,6 @@ function updateFacetLayoutVisibility(forceHidden = false) { } } -function updateClearAllVisibility() { - const clearAllContainer = document.getElementById( 'gc-facet-clear-all-container' ); - if ( clearAllContainer ) { - clearAllContainer.hidden = !facetStates.some( ( s ) => s?.hasActiveValues ) && !dateFilterStates.some( ( s ) => s?.range ); - } -} - // Rebuild the DOM for a date range facet (predefined periods + custom date pickers) function updateDateFacetState( index, dateFacetState, dateFilterState ) { facetStates[ index ] = dateFacetState; @@ -2105,37 +2231,55 @@ function updateDateFacetState( index, dateFacetState, dateFilterState ) { const isFr = lang === 'fr'; const todayStr = new Date().toISOString().slice( 0, 10 ); const wasOpen = facetEl.open; - facetEl.textContent = ''; - facetEl.open = wasOpen; - facetEl.appendChild( renderFacetSummary( config.label, dateFacetState.hasActiveValues || dateFilterState.range, () => { - facetControllers[ index ].deselectAll(); - dateFilterControllers[ index ].clear(); - } ) ); + const startId = 'gc-facet-date-start-' + index; + const endId = 'gc-facet-date-end-' + index; + const hasActive = dateFacetState.hasActiveValues || dateFilterState.range; // --- Custom date pickers (above the list) --- + let datePickerHTML = ''; if ( config.withDatePicker ) { - const startId = 'gc-facet-date-start-' + index; - const endId = 'gc-facet-date-end-' + index; - - const datePickerContainer = document.createElement( 'div' ); - datePickerContainer.className = 'gc-date-pickers'; - - datePickerContainer.insertAdjacentHTML( 'beforeend', - `
    - - -
    -
    - - -
    - - ` - ); - - const startInput = datePickerContainer.querySelector( '#' + startId ); - const endInput = datePickerContainer.querySelector( '#' + endId ); + datePickerHTML = facetDatePickerTemplateHTML + .replaceAll( '%[startId]', startId ) + .replaceAll( '%[endId]', endId ) + .replaceAll( '%[today]', todayStr ); + } + + // --- Predefined date range list --- + let dateRangesHTML = ''; + const reversedValues = [ ...dateFacetState.values ].reverse(); + if ( config.withDateRanges ) { + const itemsHTML = reversedValues.map( ( value, i ) => { + const period = getDateFacetFields()[ i ]; + if ( !period ) { return ''; } + return renderFacetItemHTML( localizedStrings[ lang ].get( period.labelKey ), value.numberOfResults, value.state === 'selected' ); + } ).join( '' ); + dateRangesHTML = `
      ${ itemsHTML }
    `; + } + + facetEl.innerHTML = + renderFacetSummaryHTML( config.label, hasActive ) + + datePickerHTML + + dateRangesHTML; + + facetEl.open = wasOpen; + + if ( config.withDatePicker && !dateFilterState.range ) { + facetEl.querySelector( '.gc-date-clear' ).hidden = true; + } + + // Attach event handlers + if ( hasActive ) { + facetEl.querySelector( '.gc-facet-clear' ).onclick = ( e ) => { + e.stopPropagation(); + facetControllers[ index ].deselectAll(); + dateFilterControllers[ index ].clear(); + }; + } + + if ( config.withDatePicker ) { + const startInput = facetEl.querySelector( '#' + startId ); + const endInput = facetEl.querySelector( '#' + endId ); startInput.onchange = () => { if ( startInput.value ) { endInput.min = startInput.value; } }; endInput.onchange = () => { if ( endInput.value ) { startInput.max = endInput.value; } }; @@ -2144,17 +2288,13 @@ function updateDateFacetState( index, dateFacetState, dateFilterState ) { if ( dateFilterState.range ) { const rangeStart = coveoDateToInputDate( dateFilterState.range.start ); const rangeEnd = coveoDateToInputDate( dateFilterState.range.end ); - if ( rangeStart !== '1970-01-01' ) { - startInput.value = rangeStart; - } - if ( rangeEnd !== todayStr ) { - endInput.value = rangeEnd; - } + if ( rangeStart !== '1970-01-01' ) { startInput.value = rangeStart; } + if ( rangeEnd !== todayStr ) { endInput.value = rangeEnd; } if ( startInput.value ) { endInput.min = startInput.value; } if ( endInput.value ) { startInput.max = endInput.value; } } - datePickerContainer.querySelector( '.gc-date-apply' ).onclick = () => { + facetEl.querySelector( '.gc-date-apply' ).onclick = () => { let startVal = startInput.value; let endVal = endInput.value; if ( startVal || endVal ) { @@ -2173,57 +2313,57 @@ function updateDateFacetState( index, dateFacetState, dateFilterState ) { } }; - datePickerContainer.querySelector( '.gc-date-clear' ).onclick = () => { + facetEl.querySelector( '.gc-date-clear' ).onclick = () => { startInput.value = ''; endInput.value = ''; startInput.max = todayStr; endInput.min = ''; dateFilterControllers[ index ].clear(); }; + } - facetEl.appendChild( datePickerContainer ); - } // end withDatePicker - - // --- Predefined date range list --- if ( config.withDateRanges ) { - const listEl = document.createElement( 'ul' ); - listEl.className = 'list-unstyled gc-facet-values mrgn-tp-sm'; - - [ ...dateFacetState.values ].reverse().forEach( ( value, valueIndex ) => { - const period = getDateFacetFields()[ valueIndex ]; - if ( !period ) { return; } - const periodLabel = localizedStrings[ lang ].get( period.labelKey ); + facetEl.querySelectorAll( '.gc-facet-values input[type="checkbox"]' ).forEach( ( checkbox, i ) => { + const value = reversedValues[ i ]; + const period = getDateFacetFields()[ i ]; const isSelected = value.state === 'selected'; - if ( config.withDatePicker && isSelected ) { + + // Sync date picker inputs when a predefined range is selected + if ( config.withDatePicker && isSelected && period ) { const rangeStart = resolveRangeEndpointToInputDate( period.range.start ); const rangeEnd = resolveRangeEndpointToInputDate( period.range.end ); - const startEl = document.getElementById( 'gc-facet-date-start-' + index ); - const endEl = document.getElementById( 'gc-facet-date-end-' + index ); + const startEl = facetEl.querySelector( '#' + startId ); + const endEl = facetEl.querySelector( '#' + endId ); if ( startEl ) { startEl.value = rangeStart !== '1970-01-01' ? rangeStart : ''; } if ( endEl ) { endEl.value = rangeEnd !== todayStr ? rangeEnd : ''; } } - listEl.appendChild( renderFacetItem( periodLabel, value.numberOfResults, isSelected, () => { + + checkbox.onchange = () => { dateFilterControllers[ index ].clear(); facetControllers[ index ].deselectAll(); // Only re-select if it wasn't already selected (deselect = just clear) if ( !isSelected ) { facetControllers[ index ].toggleSelect( value ); } - } ) ); + }; } ); - - facetEl.appendChild( listEl ); } - if ( dateFacetState.hasActiveValues || dateFilterState.range ) { - const isFrAnnounce = lang === 'fr'; - announceFacetChange( isFrAnnounce ? `Filtre de date actif\u00a0: ${config.label}` : `Date filter active: ${config.label}` ); + if ( hasActive ) { + announceFacetChange( isFr ? `Filtre de date actif\u00a0: ${ config.label }` : `Date filter active: ${ config.label }` ); } updateFacetLayoutVisibility(); updateClearAllVisibility(); } +function updateClearAllVisibility() { + const clearAllContainer = document.getElementById( 'gc-facet-clear-all-container' ); + if ( clearAllContainer ) { + clearAllContainer.hidden = !facetStates.some( ( s ) => s?.hasActiveValues ) && !dateFilterStates.some( ( s ) => s?.range ); + } +} + // Update the URL parameter for pagination in advanced search mode function updatePagerUrlParam( currentPage ) { const resultsPerPage = buildResultsPerPage(headlessEngine); From c705d667f919e073939e3193222a854d582c84a8 Mon Sep 17 00:00:00 2001 From: Cody Foss Date: Thu, 7 May 2026 21:03:16 -0600 Subject: [PATCH 21/22] Updated demo page --- netlify/src/connector.js | 937 +++++++++++++++++++++++++++------------ 1 file changed, 662 insertions(+), 275 deletions(-) diff --git a/netlify/src/connector.js b/netlify/src/connector.js index be08974..960520b 100644 --- a/netlify/src/connector.js +++ b/netlify/src/connector.js @@ -14,6 +14,7 @@ import { buildDateFacet, buildDateFilter, buildDateRange, + buildBreadcrumbManager, loadAdvancedSearchQueryActions, loadSortCriteriaActions, HighlightUtils, @@ -71,6 +72,8 @@ let unsubscribeResultListController; let unsubscribeQuerySummaryController; let unsubscribeDidYouMeanController; let unsubscribePagerController; +let breadcrumbManagerController; +let unsubscribeBreadcrumbManagerController; let dateFilterControllers = []; let dateFilterStates = []; @@ -92,6 +95,30 @@ let lastCharKeyUp; let activeSuggestion = 0; let pagerManuallyCleared = false; +const localizedStrings = { + en: new Map(), + fr: new Map() +}; +localizedStrings.en.set( "facets.showMore", "Show more" ); +localizedStrings.en.set( "breadbox.filters", "Filters:" ); +localizedStrings.fr.set( "breadbox.filters", "Filtres\u00a0:" ); +localizedStrings.en.set( "breadbox.clear", "Clear" ); +localizedStrings.fr.set( "breadbox.clear", "Effacer" ); +localizedStrings.en.set( "date-ranges.past-1-day|now", "Past day" ); +localizedStrings.fr.set( "date-ranges.past-1-day|now", "Derni\u00e8re journ\u00e9e" ); +localizedStrings.en.set( "date-ranges.past-1-week|now", "Past week" ); +localizedStrings.fr.set( "date-ranges.past-1-week|now", "Derni\u00e8re semaine" ); +localizedStrings.en.set( "date-ranges.past-1-month|now", "Past month" ); +localizedStrings.fr.set( "date-ranges.past-1-month|now", "Dernier mois" ); +localizedStrings.en.set( "date-ranges.past-1-year|now", "Past year" ); +localizedStrings.fr.set( "date-ranges.past-1-year|now", "Derni\u00e8re ann\u00e9e" ); +localizedStrings.en.set( "date-ranges.past-100-year|past-1-year", "Older" ); +localizedStrings.fr.set( "date-ranges.past-100-year|past-1-year", "Plus ancien" ); +localizedStrings.en.set( "date-ranges.before", "Before {{date}}" ); +localizedStrings.fr.set( "date-ranges.before", "Avant le {{date}}" ); +localizedStrings.en.set( "date-ranges.after", "After {{date}}" ); +localizedStrings.fr.set( "date-ranges.after", "Apr\u00e8s le {{date}}" ); + // Firefox patch let isFirefox = navigator.userAgent.indexOf( "Firefox" ) !== -1; let waitForkeyUp = false; @@ -106,6 +133,7 @@ let querySummaryElement = document.querySelector( '#query-summary' ); let pagerElement = document.querySelector( '#pager' ); let suggestionsElement = document.querySelector( '#suggestions' ); let didYouMeanElement = document.querySelector( '#did-you-mean' ); +let breadcrumbElement = document.querySelector( '#breadcrumb-manager' ); let facetSidebarElement = document.querySelector( '#gc-facet-sidebar' ); let facetPanelElement = document.querySelector( '#gc-facet-panel' ); @@ -121,6 +149,18 @@ let pageTemplateHTML = document.getElementById( 'sr-pager-page' )?.innerHTML; let nextPageTemplateHTML = document.getElementById( 'sr-pager-next' )?.innerHTML; let pagerContainerTemplateHTML = document.getElementById( 'sr-pager-container' )?.innerHTML; let qsA11yHintHTML = document.getElementById( 'sr-qs-hint' )?.innerHTML; +let facetSummaryTemplateHTML = document.getElementById( 'sr-facet-summary' )?.innerHTML; +let facetClearFilterTemplateHTML = document.getElementById( 'sr-facet-clear-filter' )?.innerHTML; +let facetItemTemplateHTML = document.getElementById( 'sr-facet-item' )?.innerHTML; +let facetSearchInputTemplateHTML = document.getElementById( 'sr-facet-search-input' )?.innerHTML; +let facetShowMoreTemplateHTML = document.getElementById( 'sr-facet-show-more' )?.innerHTML; +let facetShowLessTemplateHTML = document.getElementById( 'sr-facet-show-less' )?.innerHTML; +let facetDatePickerTemplateHTML = document.getElementById( 'sr-facet-date-picker' )?.innerHTML; +let facetToggleTemplateHTML = document.getElementById( 'sr-facet-toggle' )?.innerHTML; +let facetPanelItemTemplateHTML = document.getElementById( 'sr-facet-panel-item' )?.innerHTML; +let facetLayoutTemplateHTML = document.getElementById( 'sr-facet-layout' )?.innerHTML; +let breadcrumbItemTemplateHTML = document.getElementById( 'sr-breadcrumb-item' )?.innerHTML; +let breadcrumbListTemplateHTML = document.getElementById( 'sr-breadcrumb-list' )?.innerHTML; // Init parameters and UI function initSearchUI() { @@ -384,61 +424,164 @@ function initTpl() { else { qsA11yHintHTML = ``; - } + } } - // Normalize facet configs from the HTML attribute - const facetConfigMap = new Map(); - if ( Array.isArray( params.facets ) ) { - params.facets.forEach( ( raw ) => { - const config = normalizeFacetConfig( raw ); - if ( config ) facetConfigMap.set( config.facetId, config ); - } ); + if ( !facetSummaryTemplateHTML ) { + facetSummaryTemplateHTML = + `%[label]%[clearBtn]`; } - facetNormalizedConfigs = [ ...facetConfigMap.values() ]; - - // Auto-create two-column facet layout when valid facets are configured - if ( facetNormalizedConfigs.length > 0 && !facetPanelElement ) { - const isFr = lang === 'fr'; - const facetPlaceholders = facetNormalizedConfigs.map( ( config, index ) => - `
    ` - ).join( '' ); - - baseElement.insertAdjacentHTML( 'beforeend', - ` -
    -
    -
    -

    ${isFr ? 'Filtres' : 'Filters'}

    - - ${facetPlaceholders} -
    -
    -
    -
    -
    -
    ` - ); - - // Store references and attach event handlers after insertion - facetSidebarElement = document.getElementById( 'gc-facet-sidebar' ); - facetPanelElement = document.getElementById( 'gc-facet-panel' ); - resultsSection = document.getElementById( resultSectionID ); - document.getElementById( 'gc-facet-toggle' ).onclick = toggleFacetSidebar; - document.querySelector( '#gc-facet-clear-all-container .btn-link' ).onclick = () => { - facetControllers.forEach( ( c ) => c?.deselectAll() ); - dateFilterControllers.forEach( ( c ) => c?.clear() ); - }; + + if ( !facetClearFilterTemplateHTML ) { + if ( lang === 'fr' ) { + facetClearFilterTemplateHTML = + ``; + } else { + facetClearFilterTemplateHTML = + ``; + } + } + + if ( !facetItemTemplateHTML ) { + if ( lang === 'fr' ) { + facetItemTemplateHTML = + `
  • `; + } else { + facetItemTemplateHTML = + `
  • `; + } + } + + if ( !facetSearchInputTemplateHTML ) { + if ( lang === 'fr' ) { + facetSearchInputTemplateHTML = + ``; + } else { + facetSearchInputTemplateHTML = + ``; + } + } + + if ( !facetShowMoreTemplateHTML ) { + if ( lang === 'fr' ) { + facetShowMoreTemplateHTML = + ``; + } else { + facetShowMoreTemplateHTML = + ``; + } + } + + if ( !facetShowLessTemplateHTML ) { + if ( lang === 'fr' ) { + facetShowLessTemplateHTML = + ``; + } else { + facetShowLessTemplateHTML = + ``; + } + } + + if ( !facetDatePickerTemplateHTML ) { + if ( lang === 'fr' ) { + facetDatePickerTemplateHTML = + `
    +
    + + +
    +
    + + +
    + + +
    `; + } else { + facetDatePickerTemplateHTML = + `
    +
    + + +
    +
    + + +
    + + +
    `; + } + } + + if ( !facetToggleTemplateHTML ) { + if ( lang === 'fr' ) { + facetToggleTemplateHTML = + ``; + } else { + facetToggleTemplateHTML = + ``; + } + } + + if ( !facetPanelItemTemplateHTML ) { + facetPanelItemTemplateHTML = + `
    `; + } + + if ( !facetLayoutTemplateHTML ) { + if ( lang === 'fr' ) { + facetLayoutTemplateHTML = + `
    +
    +
    +

    Filtres

    +

    + + %[facetItems] +
    +
    +
    +
    `; + } else { + facetLayoutTemplateHTML = + `
    +
    +
    +

    Filters

    +

    + + %[facetItems] +
    +
    +
    +
    `; + } } - // auto-create results + if ( !breadcrumbItemTemplateHTML ) { + breadcrumbItemTemplateHTML = + `
  • `; + } + + if ( !breadcrumbListTemplateHTML ) { + breadcrumbListTemplateHTML = + `
    • %[filtersLabel]
    • %[items]
    `; + } + + // auto-create results section (facet layout provides it when configured; otherwise create standalone) if ( !resultsSection ) { resultsSection = document.createElement( "section" ); resultsSection.id = resultSectionID; + baseElement.append( resultsSection ); } // auto-create query summary element @@ -449,6 +592,15 @@ function initTpl() { resultsSection.append( querySummaryElement ); } + // auto-create breadcrumb element (after query-summary, before did-you-mean) + if ( !breadcrumbElement && params.facets?.length ) { + breadcrumbElement = document.createElement( "div" ); + breadcrumbElement.id = "breadcrumb-manager"; + breadcrumbElement.hidden = true; + + resultsSection.append( breadcrumbElement ); + } + // auto-create did you mean element if ( !didYouMeanElement ) { didYouMeanElement = document.createElement( "div" ); @@ -468,11 +620,9 @@ function initTpl() { // auto-create pager if ( !pagerElement ) { - let newPagerElement = document.createElement( "div" ); - newPagerElement.innerHTML = pagerContainerTemplateHTML; - - resultsSection.append( newPagerElement ); - pagerElement = newPagerElement; + pagerElement = document.createElement( "div" ); + pagerElement.innerHTML = pagerContainerTemplateHTML; + resultsSection.append( pagerElement ); } // initialize the search box @@ -510,6 +660,41 @@ function initTpl() { } ); } } + + // initialize facets + if ( params.facets?.length ) { + const facetConfigMap = new Map(); + params.facets.forEach( ( raw ) => { + const config = normalizeFacetConfig( raw ); + if ( config ) facetConfigMap.set( config.facetId, config ); + } ); + facetNormalizedConfigs = [ ...facetConfigMap.values() ]; + + if ( facetNormalizedConfigs.length > 0 && !facetPanelElement ) { + const facetItems = facetNormalizedConfigs.map( ( config, index ) => { + const item = facetPanelItemTemplateHTML.replace( '%[facetId]', config.facetId ); + return index > 0 ? item.replace( 'class="gc-facet"', 'class="gc-facet mrgn-tp-md"' ) : item; + } ).join( '' ); + + baseElement.insertAdjacentHTML( 'beforeend', + facetToggleTemplateHTML + + facetLayoutTemplateHTML.replace( '%[facetItems]', facetItems ) + ); + + // Store references and attach event handlers after insertion + facetSidebarElement = document.getElementById( 'gc-facet-sidebar' ); + facetPanelElement = document.getElementById( 'gc-facet-panel' ); + document.getElementById( 'gc-results-col' ).append( resultsSection ); + document.getElementById( 'gc-facet-toggle' ).onclick = toggleFacetSidebar; + document.querySelector( '#gc-facet-clear-all-container .btn-link' ).onclick = () => { + facetControllers.forEach( ( c ) => c?.deselectAll() ); + dateFilterControllers.forEach( ( c ) => c?.clear() ); + }; + + // Apply mobile defaults (sidebar hidden, facets collapsed) and restore any persisted state + applyFacetUIDefaults(); + } + } } // Detect if localStorage is available @@ -521,6 +706,111 @@ function hasLocalStorage() { } } +// Detect if sessionStorage is available +function hasSessionStorage() { + try { + sessionStorage.setItem( '__test', '1' ); + sessionStorage.removeItem( '__test' ); + return true; + } catch ( error ) { + return false; + } +} + +// Returns true if the viewport is mobile (below Bootstrap's col-md breakpoint) +function isMobileView() { + return window.innerWidth < 992; +} + +// Session storage key for facet UI state +const FACET_UI_STATE_KEY = 'gc-facet-ui-state'; + +// Load persisted facet UI state from sessionStorage +function loadFacetUIState() { + if ( !hasSessionStorage() ) { return null; } + try { + const raw = sessionStorage.getItem( FACET_UI_STATE_KEY ); + return raw ? JSON.parse( raw ) : null; + } catch ( error ) { + return null; + } +} + +// Apply default facet UI state based on viewport, then overlay any persisted sessionStorage state. +// Desktop defaults: sidebar visible, facets open. +// Mobile defaults: sidebar hidden, facets collapsed. +function applyFacetUIDefaults() { + const mobile = isMobileView(); + const toggleBtn = document.getElementById( 'gc-facet-toggle' ); + const resultsCol = document.getElementById( 'gc-results-col' ); + const saved = loadFacetUIState(); + + // Determine sidebar visibility: prefer saved value, else use viewport default + const sidebarVisible = saved?.sidebarVisible !== undefined ? saved.sidebarVisible : !mobile; + if ( toggleBtn ) { + toggleBtn.setAttribute( 'aria-expanded', String( sidebarVisible ) ); + } + if ( facetSidebarElement ) { + facetSidebarElement.hidden = !sidebarVisible; + } + if ( resultsCol ) { + resultsCol.classList.toggle( 'col-md-8', sidebarVisible ); + resultsCol.classList.toggle( 'col-md-12', !sidebarVisible ); + } + + // Determine facet open state: default is open on desktop, closed on mobile + const defaultFacetsOpen = !mobile; + document.querySelectorAll( '.gc-facet' ).forEach( ( el ) => { + const savedOpen = saved?.facetsOpen?.[ el.id ]; + el.open = savedOpen !== undefined ? savedOpen : defaultFacetsOpen; + + // Persist state whenever the user manually toggles a facet + el.addEventListener( 'toggle', saveFacetUIState ); + } ); +} + +// Save facet UI state to sessionStorage, only persisting values that differ from the defaults +// Desktop defaults: sidebar visible, all facets open +// Mobile defaults: sidebar hidden, all facets closed +function saveFacetUIState() { + if ( !hasSessionStorage() ) { return; } + + const mobile = isMobileView(); + const defaultSidebarVisible = !mobile; + const defaultFacetsOpen = !mobile; + + const toggleBtn = document.getElementById( 'gc-facet-toggle' ); + const currentSidebarVisible = toggleBtn?.getAttribute( 'aria-expanded' ) === 'true'; + + const state = {}; + + // Only save sidebar visibility if it differs from the default + if ( currentSidebarVisible !== defaultSidebarVisible ) { + state.sidebarVisible = currentSidebarVisible; + } + + // Only save facet open/closed states that differ from the default + const facetEls = document.querySelectorAll( '.gc-facet' ); + const facetOpenOverrides = {}; + let hasFacetOverrides = false; + facetEls.forEach( ( el ) => { + if ( el.open !== defaultFacetsOpen ) { + facetOpenOverrides[ el.id ] = el.open; + hasFacetOverrides = true; + } + } ); + if ( hasFacetOverrides ) { + state.facetsOpen = facetOpenOverrides; + } + + // If everything matches defaults, clear any saved state + if ( Object.keys( state ).length === 0 ) { + sessionStorage.removeItem( FACET_UI_STATE_KEY ); + } else { + sessionStorage.setItem( FACET_UI_STATE_KEY, JSON.stringify( state ) ); + } +} + // Limit actions history array to items newer than 7 days function limitCoveoAnalyticsHistory( actionsHistory ) { const now = new Date(); @@ -557,38 +847,44 @@ function sanitizeQuery(q) { } // Normalize a single raw facet config entry from the HTML attribute. -// Accepts { field, label|title, facetId, numberOfValues, sortCriteria }. // Returns a clean config object, or null if the entry is invalid. -function normalizeFacetConfig( raw ) { - if ( !raw || typeof raw !== 'object' || Array.isArray( raw ) ) { +function normalizeFacetConfig(raw) { + if (!raw || typeof raw !== 'object' || Array.isArray(raw)) { return null; } - const field = typeof raw.field === 'string' ? raw.field.trim() : ''; - if ( !field ) { + const field = raw.field?.trim(); + if (!field) { return null; } - const labelRaw = typeof raw.label === 'string' ? raw.label.trim() : ''; - const titleRaw = typeof raw.title === 'string' ? raw.title.trim() : ''; - const label = labelRaw || titleRaw || field; - - const facetId = ( typeof raw.facetId === 'string' && raw.facetId.trim() ) ? raw.facetId.trim() : field; - - const numberOfValues = ( Number.isInteger( raw.numberOfValues ) && raw.numberOfValues > 0 ) ? raw.numberOfValues : 8; + const facetType = raw.facetType === 'dateRange' ? 'dateRange' : 'regular'; - const sortCriteria = raw.sortCriteria !== '' ? raw.sortCriteria : 'occurrences'; + const defaults = + facetType === 'dateRange' ? { + withDatePicker: true, + withDateRanges: true, + } : { + numberOfValues: 8, + sortCriteria: 'occurrences', + facetSearch: true, + }; - const facetType = raw.facetType === 'dateRange' ? 'dateRange' : 'regular'; - const facetSearch = raw.facetSearch !== false; - const filterFacetCount = raw.filterFacetCount !== false; - const withDatePicker = raw.withDatePicker !== false; - const withDateRanges = raw.withDateRanges !== false; + const normalizedFields = { + field, + facetType, + label: raw.label?.trim() || raw.title?.trim() || field, + facetId: raw.facetId?.trim() || field, + filterFacetCount: raw.filterFacetCount ?? true, + }; - return { field, label, facetId, numberOfValues, sortCriteria, facetType, facetSearch, filterFacetCount, withDatePicker, withDateRanges }; + return { + ...defaults, + ...raw, + ...normalizedFields, + }; } - // Convert YYYY-MM-DD (date input value) to Coveo date string function inputDateToCoveoDate( dateStr, endOfDay ) { if ( !dateStr ) { return ''; } @@ -606,6 +902,9 @@ function resolveRangeEndpointToInputDate( endpoint ) { if ( typeof endpoint === 'string' ) { return coveoDateToInputDate( endpoint ); } + if ( endpoint && endpoint.period === 'now' ) { + return ''; + } if ( endpoint && endpoint.period === 'past' ) { const d = new Date(); if ( endpoint.unit === 'day' ) { d.setDate( d.getDate() - endpoint.amount ); } @@ -617,51 +916,45 @@ function resolveRangeEndpointToInputDate( endpoint ) { return ''; } -// Predefined relative date periods for the date facet (start is relative, end is fixed at page load) +// Predefined relative date periods for the date facet (start is relative, end is now) function getDateFacetFields () { - const end = getCoveoDateFormat(new Date()); return [ { - en: "Past day", - fr: "Dernière journée", + labelKey: "date-ranges.past-1-day|now", range: buildDateRange({ start: { period: "past", unit: "day", amount: 1 }, - end, + end: { period: 'now' }, endInclusive: true, }), }, { - en: "Past week", - fr: "Dernière semaine", + labelKey: "date-ranges.past-1-week|now", range: buildDateRange({ start: { period: "past", unit: "week", amount: 1 }, - end, + end: { period: 'now' }, endInclusive: true, }), }, { - en: "Past month", - fr: "Dernier mois", + labelKey: "date-ranges.past-1-month|now", range: buildDateRange({ start: { period: "past", unit: "month", amount: 1 }, - end, + end: { period: 'now' }, endInclusive: true, }), }, { - en: "Past year", - fr: "Dernière année", + labelKey: "date-ranges.past-1-year|now", range: buildDateRange({ start: { period: "past", unit: "year", amount: 1 }, - end, + end: { period: 'now' }, endInclusive: true, }), }, { - en: "Older", - fr: "Plus ancien", + labelKey: "date-ranges.past-100-year|past-1-year", range: buildDateRange({ - start: "1970/01/01@00:00:00", + start: { period: "past", unit: "year", amount: 100 }, end: { period: "past", unit: "year", amount: 1 }, endInclusive: false, }), @@ -730,12 +1023,6 @@ function getLongDateFormat( date, lang ){ return currentTZDate.toLocaleDateString( langCA, { year: 'numeric', month: 'short', day: 'numeric' } ); } -// Format a Date as a Coveo date string: YYYY/MM/DD@HH:mm:ss -function getCoveoDateFormat( date ) { - const pad = ( n ) => String( n ).padStart( 2, '0' ); - return `${date.getFullYear()}/${pad( date.getMonth() + 1 )}/${pad( date.getDate() )}@${pad( date.getHours() )}:${pad( date.getMinutes() )}:${pad( date.getSeconds() )}`; -} - // checking for default date , Jan 1st, 1970 function isEmptyDate( date ) { return date instanceof Date && @@ -864,49 +1151,55 @@ function initEngine() { pagerController = buildPager( headlessEngine, { options: { numberOfPages: params.numberOfPages } } ); statusController = buildSearchStatus( headlessEngine ); - // Build a facet controller for each normalized facet config - facetNormalizedConfigs.forEach( ( config, index ) => { - if ( config.facetType === 'dateRange' ) { - const dateFacetController = buildDateFacet( headlessEngine, { - options: { - field: config.field, - facetId: config.facetId, - currentValues: getDateFacetFields().map( ( p ) => p.range ), - generateAutomaticRanges: false, - } - } ); - const dateFilterController = buildDateFilter( headlessEngine, { - options: { - field: config.field, - facetId: config.facetId + '__filter', - } - } ); - facetControllers[ index ] = dateFacetController; - dateFilterControllers[ index ] = dateFilterController; - facetStates[ index ] = dateFacetController.state; - dateFilterStates[ index ] = dateFilterController.state; - unsubscribeFacetControllers[ index ] = dateFacetController.subscribe( - () => updateDateFacetState( index, dateFacetController.state, dateFilterController.state ) - ); - unsubscribeDateFilterControllers[ index ] = dateFilterController.subscribe( - () => updateDateFacetState( index, dateFacetController.state, dateFilterController.state ) - ); - } else { - const controller = buildFacet( headlessEngine, { - options: { - field: config.field, - facetId: config.facetId, - numberOfValues: config.numberOfValues, - sortCriteria: config.sortCriteria, - } - } ); - facetControllers[ index ] = controller; - facetStates[ index ] = controller.state; - unsubscribeFacetControllers[ index ] = controller.subscribe( - () => updateFacetState( index, controller.state ) - ); - } - } ); + if( params.facets?.length ) { + + // Build a facet controller for each normalized facet config + facetNormalizedConfigs.forEach( ( config, index ) => { + if ( config.facetType === 'dateRange' ) { + const dateFacetController = buildDateFacet( headlessEngine, { + options: { + field: config.field, + facetId: config.facetId, + currentValues: getDateFacetFields().map( ( p ) => p.range ), + generateAutomaticRanges: false, + } + } ); + const dateFilterController = buildDateFilter( headlessEngine, { + options: { + field: config.field, + facetId: config.facetId + '__filter', + } + } ); + facetControllers[ index ] = dateFacetController; + dateFilterControllers[ index ] = dateFilterController; + facetStates[ index ] = dateFacetController.state; + dateFilterStates[ index ] = dateFilterController.state; + unsubscribeFacetControllers[ index ] = dateFacetController.subscribe( + () => updateDateFacetState( index, dateFacetController.state, dateFilterController.state ) + ); + unsubscribeDateFilterControllers[ index ] = dateFilterController.subscribe( + () => updateDateFacetState( index, dateFacetController.state, dateFilterController.state ) + ); + } else { + const controller = buildFacet( headlessEngine, { + options: { + field: config.field, + facetId: config.facetId, + numberOfValues: config.numberOfValues, + sortCriteria: config.sortCriteria, + } + } ); + facetControllers[ index ] = controller; + facetStates[ index ] = controller.state; + unsubscribeFacetControllers[ index ] = controller.subscribe( + () => updateFacetState( index, controller.state ) + ); + } + } ); + + breadcrumbManagerController = buildBreadcrumbManager( headlessEngine ); + + } // Refine search based on URL parameters for filters, mostly used in Advanced Search to trigger only one search per page load if ( urlParams.allq || urlParams.exctq || urlParams.anyq || urlParams.noneq || urlParams.fqupdate || urlParams.dmn || urlParams.fqocct || urlParams.elctn_cat || urlParams.filetype || urlParams.site || urlParams.year || urlParams.declaredtype || urlParams.startdate || urlParams.enddate || urlParams.dprtmnt ) { @@ -1141,6 +1434,9 @@ function initEngine() { unsubscribeQuerySummaryController = querySummaryController.subscribe( () => updateQuerySummaryState( querySummaryController.state ) ); unsubscribeDidYouMeanController = didYouMeanController.subscribe( () => updateDidYouMeanState( didYouMeanController.state ) ); unsubscribePagerController = pagerController.subscribe( () => updatePagerState( pagerController.state ) ); + if( params.facets?.length ) { + unsubscribeBreadcrumbManagerController = breadcrumbManagerController.subscribe( () => updateBreadcrumbState( breadcrumbManagerController.state ) ); + } // Clear event tracking, for legacy browsers const onUnload = () => { @@ -1151,8 +1447,11 @@ function initEngine() { unsubscribeQuerySummaryController?.(); unsubscribeDidYouMeanController?.(); unsubscribePagerController?.(); - unsubscribeFacetControllers.forEach( ( unsub ) => unsub?.() ); - unsubscribeDateFilterControllers.forEach( ( unsub ) => unsub?.() ); + if( params.facets?.length ) { + unsubscribeFacetControllers.forEach( ( unsub ) => unsub?.() ); + unsubscribeDateFilterControllers.forEach( ( unsub ) => unsub?.() ); + unsubscribeBreadcrumbManagerController?.(); + } }; // Listen to URL change (hash) @@ -1342,6 +1641,8 @@ function toggleFacetSidebar() { resultsCol?.classList.remove( 'col-md-12' ); resultsCol?.classList.add( 'col-md-8' ); } + + saveFacetUIState(); } // Update the visual selection of the active suggestion @@ -1578,6 +1879,68 @@ function updateQuerySummaryState( newState ) { } } +function formatBreadcrumbLabel( breadcrumb ) { + const { start, end, value } = breadcrumb.value ?? {}; + const formatCoveoDate = ( coveoDate ) => coveoDate ? coveoDate.split( '@' )[ 0 ].replace( /\//g, '-' ) : ""; + + if ( start !== undefined && end !== undefined ) { + const rangeLabel = localizedStrings[ params.lang ].get( `date-ranges.${ start }|${ end }` ); + if ( rangeLabel ) { + return rangeLabel; + } else if ( start === 'past-100-year' ) { + return localizedStrings[ params.lang ].get( "date-ranges.before" ).replace( '{{date}}', formatCoveoDate( end ) ); + } else if ( end === 'now' ) { + return localizedStrings[ params.lang ].get( "date-ranges.after" ).replace( '{{date}}', formatCoveoDate( start ) ); + } else { + return `${ formatCoveoDate( start ) } - ${ formatCoveoDate( end ) }`; + } + } + return value ?? ""; +} + +function renderBreadcrumbItemHTML( facetLabel, breadcrumb ) { + const displayValue = formatBreadcrumbLabel( breadcrumb ); + const label = `${ facetLabel }: ${ displayValue }`; + return breadcrumbItemTemplateHTML + .replace( '%[ariaLabel]', label ) + .replace( '%[label]', label ); +} + +// Update breadcrumb (active filter) display +function updateBreadcrumbState( newState ) { + if ( !breadcrumbElement ) return; + + const facetBreadcrumbs = newState.facetBreadcrumbs || []; + const dateFacetBreadcrumbs = newState.dateFacetBreadcrumbs || []; + const allBreadcrumbs = [ ...facetBreadcrumbs, ...dateFacetBreadcrumbs ]; + + if ( allBreadcrumbs.length === 0 ) { + breadcrumbElement.hidden = true; + breadcrumbElement.textContent = ""; + return; + } + + const itemsHTML = allBreadcrumbs.map( ( facet ) => { + const configMatch = facetNormalizedConfigs.find( ( c ) => c.facetId === facet.facetId || c.field === facet.field ); + const facetLabel = configMatch?.label || facet.facetDisplayName || facet.field; + return facet.values.map( ( breadcrumb ) => renderBreadcrumbItemHTML( facetLabel, breadcrumb ) ).join( '' ); + } ).join( '' ); + + breadcrumbElement.hidden = false; + breadcrumbElement.innerHTML = breadcrumbListTemplateHTML + .replace( '%[filtersLabel]', localizedStrings[ params.lang ].get( 'breadbox.filters' ) ) + .replace( '%[items]', itemsHTML ) + .replace( '%[clearLabel]', localizedStrings[ params.lang ].get( 'breadbox.clear' ) ); + + // Attach deselect handlers to each breadcrumb button by index + const allValues = allBreadcrumbs.flatMap( ( facet ) => facet.values ); + breadcrumbElement.querySelectorAll( '.btn-default' ).forEach( ( btn, i ) => { + btn.onclick = () => { allValues[ i ].deselect(); }; + } ); + + breadcrumbElement.querySelector( '.btn-link' ).onclick = () => { breadcrumbManagerController.deselectAll(); }; +} + // update "Did you mean" recommendation function updateDidYouMeanState( newState ) { didYouMeanState = newState; @@ -1681,47 +2044,27 @@ function updatePagerState( newState ) { } // Rebuild a single facet's DOM inside the facet panel -function renderFacetSummary( label, hasActive, onClear ) { - const summaryEl = document.createElement( 'summary' ); - summaryEl.textContent = label; - if ( hasActive ) { - summaryEl.insertAdjacentHTML( 'beforeend', `` ); - summaryEl.querySelector( 'button' ).onclick = ( e ) => { e.stopPropagation(); onClear(); }; - } - return summaryEl; +function announceFacetChange( message ) { + const liveEl = document.getElementById( 'gc-facet-live' ); + if ( !liveEl ) { return; } + liveEl.textContent = ''; + // Brief timeout ensures screen readers detect the content change + setTimeout( () => { liveEl.textContent = message; }, 50 ); } -// Builds a single facet value
  • . -function renderFacetItem( label, count, isSelected, onSelect ) { - const liEl = document.createElement( 'li' ); - - if ( isSelected ) { - const hintEl = document.createElement( 'span' ); - hintEl.className = 'wb-inv'; - hintEl.textContent = lang === 'fr' ? 'Enlever le filtre actif:' : 'Remove active filter:'; - liEl.appendChild( hintEl ); - } - - const linkEl = document.createElement( 'a' ); - linkEl.href = '#'; - linkEl.onclick = ( e ) => { e.preventDefault(); onSelect(); }; - - if ( isSelected ) { - const iconEl = document.createElement( 'span' ); - iconEl.className = 'glyphicon glyphicon-ok mrgn-rght-sm'; - iconEl.setAttribute( 'aria-hidden', 'true' ); - linkEl.appendChild( iconEl ); - } - - const countEl = document.createElement( 'span' ); - countEl.className = 'gc-facet-count'; - countEl.innerHTML = ' (' + count.toLocaleString( lang ) + ' ' + ( lang === 'fr' ? 'résultats' : 'results' ) + ')'; - - linkEl.appendChild( document.createTextNode( label ) ); - liEl.appendChild( linkEl ); - liEl.appendChild( countEl ); +function renderFacetSummaryHTML( label, hasActive ) { + return facetSummaryTemplateHTML + .replace( '%[labelId]', label.toLowerCase().replace( /\s+/g, '-' ) ) + .replace( '%[label]', label ) + .replace( '%[clearBtn]', hasActive ? facetClearFilterTemplateHTML : '' ); +} - return liEl; +// Returns HTML string for a single facet value
  • . +function renderFacetItemHTML( label, count, isSelected ) { + return facetItemTemplateHTML + .replace( '%[checked]', isSelected ? 'checked' : '' ) + .replace( '%[label]', label ) + .replace( '%[count]', count.toLocaleString( lang ) ); } function updateFacetState( index, newState ) { @@ -1747,12 +2090,7 @@ function updateFacetState( index, newState ) { // Preserve search focus and open/closed state across re-renders const searchInputId = 'gc-facet-search-' + index; const wasSearchFocused = document.activeElement?.id === searchInputId; - const preservedSearchValue = document.getElementById( searchInputId )?.value ?? ''; const wasOpen = facetEl.open; - facetEl.textContent = ''; - facetEl.open = wasOpen; - - facetEl.appendChild( renderFacetSummary( config.label, newState.hasActiveValues, () => facetControllers[ index ].deselectAll() ) ); // Facet search input (only if the controller exposes facetSearch) // facetSearch methods live on the sub-controller; state is nested in newState.facetSearch @@ -1760,14 +2098,57 @@ function updateFacetState( index, newState ) { const facetSearchState = newState.facetSearch; const isSearching = ( facetSearchState?.query?.length ?? 0 ) > 0; + const listId = 'gc-facet-values-' + index; + const labelId = 'gc-facet-label-' + config.label.toLowerCase().replace( /\s+/g, '-' ); + const isFr = lang === 'fr'; + + // Values list — show facet search results when a query is active, otherwise regular values + const itemsHTML = isSearching ? + facetSearchState.values.map( ( r ) => renderFacetItemHTML( stripHtml( r.displayValue ), r.count, false ) ).join( '' ) : + newState.values.map( ( v ) => renderFacetItemHTML( stripHtml( v.value ), v.numberOfResults, v.state === 'selected' ) ).join( '' ); + + // When the user is actively typing in the search box, only patch the values list + // in-place rather than tearing down and rebuilding the whole facet — otherwise the + // search results update destroys the focused input and moves focus / resets its value. + if ( wasSearchFocused && config.facetSearch && facetSearchState ) { + const listEl = facetEl.querySelector( '#' + listId ); + if ( listEl ) { + listEl.innerHTML = itemsHTML; + listEl.querySelectorAll( 'input[type="checkbox"]' ).forEach( ( checkbox, i ) => { + checkbox.onchange = () => { facetSearch.select( facetSearchState.values[ i ] ); }; + } ); + return; + } + } + + const searchHTML = config.facetSearch && facetSearchState ? + facetSearchInputTemplateHTML + .replace( '%[id]', searchInputId ) + .replace( '%[facetLabel]', config.label ) + .replace( '%[value]', '' ) : + ''; + + facetEl.innerHTML = + renderFacetSummaryHTML( config.label, newState.hasActiveValues ) + + searchHTML + + `
      ${ itemsHTML }
    ` + + facetShowMoreTemplateHTML.replace( '%[listId]', listId ) + + facetShowLessTemplateHTML.replace( '%[listId]', listId ); + + const showMoreBtn = facetEl.querySelector( '.gc-facet-show-more' ); + const showLessBtn = facetEl.querySelector( '.gc-facet-show-less' ); + if ( isSearching || !newState.canShowMoreValues ) { showMoreBtn.hidden = true; } + if ( isSearching || !newState.canShowLessValues ) { showLessBtn.hidden = true; } + + facetEl.open = wasOpen; + + // Attach event handlers + if ( newState.hasActiveValues ) { + facetEl.querySelector( '.gc-facet-clear' ).onclick = ( e ) => { e.stopPropagation(); facetControllers[ index ].deselectAll(); }; + } + if ( config.facetSearch && facetSearchState ) { - const searchInput = document.createElement( 'input' ); - searchInput.type = 'search'; - searchInput.id = searchInputId; - searchInput.className = 'form-control input-sm mrgn-tp-md mrgn-bttm-md gc-facet-search'; - searchInput.placeholder = lang === 'fr' ? 'Filtrer...' : 'Filter...'; - searchInput.setAttribute( 'aria-label', ( lang === 'fr' ? 'Filtrer ' : 'Filter ' ) + config.label ); - searchInput.value = preservedSearchValue; + const searchInput = facetEl.querySelector( '#' + searchInputId ); searchInput.oninput = () => { clearTimeout( facetSearchTimers[ index ] ); const query = searchInput.value; @@ -1780,33 +2161,24 @@ function updateFacetState( index, newState ) { facetSearch.updateText( '' ); } }; - facetEl.appendChild( searchInput ); if ( wasSearchFocused ) { searchInput.focus(); } } - // Values list — show facet search results when a query is active, otherwise regular values - const listEl = document.createElement( 'ul' ); - listEl.className = 'list-unstyled gc-facet-values'; - - if ( isSearching ) { - facetSearchState.values.forEach( ( result ) => { - listEl.appendChild( renderFacetItem( stripHtml( result.displayValue ), result.count, false, () => facetSearch.select( result ) ) ); - } ); - } else { - newState.values.forEach( ( value ) => { - listEl.appendChild( renderFacetItem( stripHtml( value.value ), value.numberOfResults, value.state === 'selected', () => facetControllers[ index ].toggleSelect( value ) ) ); - } ); - } + facetEl.querySelectorAll( '.gc-facet-values input[type="checkbox"]' ).forEach( ( checkbox, i ) => { + if ( isSearching ) { + checkbox.onchange = () => { facetSearch.select( facetSearchState.values[ i ] ); }; + } else { + checkbox.onchange = () => { facetControllers[ index ].toggleSelect( newState.values[ i ] ); }; + } + } ); - facetEl.appendChild( listEl ); + showMoreBtn.onclick = () => { facetControllers[ index ].showMoreValues(); }; + showLessBtn.onclick = () => { facetControllers[ index ].showLessValues(); }; - // Show more / show less — hidden while searching (search has its own pagination) - const isFr = lang === 'fr'; - facetEl.insertAdjacentHTML( 'beforeend', - ` - ` ); - facetEl.querySelector( '.gc-facet-show-more' ).onclick = () => { facetControllers[ index ].showMoreValues(); }; - facetEl.querySelector( '.gc-facet-show-less' ).onclick = () => { facetControllers[ index ].showLessValues(); }; + if ( newState.hasActiveValues ) { + const activeLabels = newState.values.filter( ( v ) => v.state === 'selected' ).map( ( v ) => v.value ).join( ', ' ); + announceFacetChange( isFr ? `Filtre actif\u00a0: ${activeLabels}` : `Filter active: ${activeLabels}` ); + } updateFacetLayoutVisibility(); updateClearAllVisibility(); @@ -1835,13 +2207,6 @@ function updateFacetLayoutVisibility(forceHidden = false) { } } -function updateClearAllVisibility() { - const clearAllContainer = document.getElementById( 'gc-facet-clear-all-container' ); - if ( clearAllContainer ) { - clearAllContainer.hidden = !facetStates.some( ( s ) => s?.hasActiveValues ) && !dateFilterStates.some( ( s ) => s?.range ); - } -} - // Rebuild the DOM for a date range facet (predefined periods + custom date pickers) function updateDateFacetState( index, dateFacetState, dateFilterState ) { facetStates[ index ] = dateFacetState; @@ -1866,37 +2231,55 @@ function updateDateFacetState( index, dateFacetState, dateFilterState ) { const isFr = lang === 'fr'; const todayStr = new Date().toISOString().slice( 0, 10 ); const wasOpen = facetEl.open; - facetEl.textContent = ''; - facetEl.open = wasOpen; - facetEl.appendChild( renderFacetSummary( config.label, dateFacetState.hasActiveValues || dateFilterState.range, () => { - facetControllers[ index ].deselectAll(); - dateFilterControllers[ index ].clear(); - } ) ); + const startId = 'gc-facet-date-start-' + index; + const endId = 'gc-facet-date-end-' + index; + const hasActive = dateFacetState.hasActiveValues || dateFilterState.range; // --- Custom date pickers (above the list) --- + let datePickerHTML = ''; + if ( config.withDatePicker ) { + datePickerHTML = facetDatePickerTemplateHTML + .replaceAll( '%[startId]', startId ) + .replaceAll( '%[endId]', endId ) + .replaceAll( '%[today]', todayStr ); + } + + // --- Predefined date range list --- + let dateRangesHTML = ''; + const reversedValues = [ ...dateFacetState.values ].reverse(); + if ( config.withDateRanges ) { + const itemsHTML = reversedValues.map( ( value, i ) => { + const period = getDateFacetFields()[ i ]; + if ( !period ) { return ''; } + return renderFacetItemHTML( localizedStrings[ lang ].get( period.labelKey ), value.numberOfResults, value.state === 'selected' ); + } ).join( '' ); + dateRangesHTML = `
      ${ itemsHTML }
    `; + } + + facetEl.innerHTML = + renderFacetSummaryHTML( config.label, hasActive ) + + datePickerHTML + + dateRangesHTML; + + facetEl.open = wasOpen; + + if ( config.withDatePicker && !dateFilterState.range ) { + facetEl.querySelector( '.gc-date-clear' ).hidden = true; + } + + // Attach event handlers + if ( hasActive ) { + facetEl.querySelector( '.gc-facet-clear' ).onclick = ( e ) => { + e.stopPropagation(); + facetControllers[ index ].deselectAll(); + dateFilterControllers[ index ].clear(); + }; + } + if ( config.withDatePicker ) { - const startId = 'gc-facet-date-start-' + index; - const endId = 'gc-facet-date-end-' + index; - - const datePickerContainer = document.createElement( 'div' ); - datePickerContainer.className = 'gc-date-pickers'; - - datePickerContainer.insertAdjacentHTML( 'beforeend', - `
    - - -
    -
    - - -
    - - ` - ); - - const startInput = datePickerContainer.querySelector( '#' + startId ); - const endInput = datePickerContainer.querySelector( '#' + endId ); + const startInput = facetEl.querySelector( '#' + startId ); + const endInput = facetEl.querySelector( '#' + endId ); startInput.onchange = () => { if ( startInput.value ) { endInput.min = startInput.value; } }; endInput.onchange = () => { if ( endInput.value ) { startInput.max = endInput.value; } }; @@ -1905,17 +2288,13 @@ function updateDateFacetState( index, dateFacetState, dateFilterState ) { if ( dateFilterState.range ) { const rangeStart = coveoDateToInputDate( dateFilterState.range.start ); const rangeEnd = coveoDateToInputDate( dateFilterState.range.end ); - if ( rangeStart !== '1970-01-01' ) { - startInput.value = rangeStart; - } - if ( rangeEnd !== todayStr ) { - endInput.value = rangeEnd; - } + if ( rangeStart !== '1970-01-01' ) { startInput.value = rangeStart; } + if ( rangeEnd !== todayStr ) { endInput.value = rangeEnd; } if ( startInput.value ) { endInput.min = startInput.value; } if ( endInput.value ) { startInput.max = endInput.value; } } - datePickerContainer.querySelector( '.gc-date-apply' ).onclick = () => { + facetEl.querySelector( '.gc-date-apply' ).onclick = () => { let startVal = startInput.value; let endVal = endInput.value; if ( startVal || endVal ) { @@ -1928,55 +2307,63 @@ function updateDateFacetState( index, dateFacetState, dateFilterState ) { // Clear predefined range selection before applying custom filter facetControllers[ index ].deselectAll(); dateFilterControllers[ index ].setRange( { - start: inputDateToCoveoDate( startVal || '1970-01-01', false ), - end: inputDateToCoveoDate( endVal || todayStr, true ), + start: startVal ? inputDateToCoveoDate( startVal, false ) : 'past-100-year', + end: endVal ? inputDateToCoveoDate( endVal, true ) : 'now', } ); } }; - datePickerContainer.querySelector( '.gc-date-clear' ).onclick = () => { + facetEl.querySelector( '.gc-date-clear' ).onclick = () => { startInput.value = ''; endInput.value = ''; startInput.max = todayStr; endInput.min = ''; dateFilterControllers[ index ].clear(); }; + } - facetEl.appendChild( datePickerContainer ); - } // end withDatePicker - - // --- Predefined date range list --- if ( config.withDateRanges ) { - const listEl = document.createElement( 'ul' ); - listEl.className = 'list-unstyled gc-facet-values mrgn-tp-sm'; - - [ ...dateFacetState.values ].reverse().forEach( ( value, valueIndex ) => { - const period = getDateFacetFields()[ valueIndex ]; - if ( !period ) { return; } - const periodLabel = isFr ? period.fr : period.en; + facetEl.querySelectorAll( '.gc-facet-values input[type="checkbox"]' ).forEach( ( checkbox, i ) => { + const value = reversedValues[ i ]; + const period = getDateFacetFields()[ i ]; const isSelected = value.state === 'selected'; - if ( config.withDatePicker && isSelected ) { + + // Sync date picker inputs when a predefined range is selected + if ( config.withDatePicker && isSelected && period ) { const rangeStart = resolveRangeEndpointToInputDate( period.range.start ); const rangeEnd = resolveRangeEndpointToInputDate( period.range.end ); - const startEl = document.getElementById( 'gc-facet-date-start-' + index ); - const endEl = document.getElementById( 'gc-facet-date-end-' + index ); + const startEl = facetEl.querySelector( '#' + startId ); + const endEl = facetEl.querySelector( '#' + endId ); if ( startEl ) { startEl.value = rangeStart !== '1970-01-01' ? rangeStart : ''; } if ( endEl ) { endEl.value = rangeEnd !== todayStr ? rangeEnd : ''; } } - listEl.appendChild( renderFacetItem( periodLabel, value.numberOfResults, isSelected, () => { - // Clear custom date filter and any other selected range before selecting + + checkbox.onchange = () => { dateFilterControllers[ index ].clear(); facetControllers[ index ].deselectAll(); - facetControllers[ index ].toggleSelect( value ); - } ) ); + // Only re-select if it wasn't already selected (deselect = just clear) + if ( !isSelected ) { + facetControllers[ index ].toggleSelect( value ); + } + }; } ); + } - facetEl.appendChild( listEl ); + if ( hasActive ) { + announceFacetChange( isFr ? `Filtre de date actif\u00a0: ${ config.label }` : `Date filter active: ${ config.label }` ); } + updateFacetLayoutVisibility(); updateClearAllVisibility(); } +function updateClearAllVisibility() { + const clearAllContainer = document.getElementById( 'gc-facet-clear-all-container' ); + if ( clearAllContainer ) { + clearAllContainer.hidden = !facetStates.some( ( s ) => s?.hasActiveValues ) && !dateFilterStates.some( ( s ) => s?.range ); + } +} + // Update the URL parameter for pagination in advanced search mode function updatePagerUrlParam( currentPage ) { const resultsPerPage = buildResultsPerPage(headlessEngine); From a44945c7bb246c896e7aa77f9b5f62d298833229 Mon Sep 17 00:00:00 2001 From: Cody Foss Date: Thu, 7 May 2026 21:08:50 -0600 Subject: [PATCH 22/22] Clean-up --- netlify/assets/favicon.ico | Bin 5430 -> 0 bytes netlify/index.html | 196 --- netlify/src/connector.css | 85 -- netlify/src/connector.js | 2383 ---------------------------------- netlify/src/headless.esm.js | 59 - netlify/src/suggestions.js | 442 ------- netlify/test/assets/token.js | 32 - netlify/test/index.html | 200 --- netlify/test/srf-en.html | 269 ---- 9 files changed, 3666 deletions(-) delete mode 100644 netlify/assets/favicon.ico delete mode 100644 netlify/index.html delete mode 100644 netlify/src/connector.css delete mode 100644 netlify/src/connector.js delete mode 100644 netlify/src/headless.esm.js delete mode 100644 netlify/src/suggestions.js delete mode 100644 netlify/test/assets/token.js delete mode 100644 netlify/test/index.html delete mode 100644 netlify/test/srf-en.html diff --git a/netlify/assets/favicon.ico b/netlify/assets/favicon.ico deleted file mode 100644 index 7848a38a5cf1f67f04b3211d028acbf9cd960592..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5430 zcmcJT2~gB`vd0@i@It@?L`6aHLXbm2MDA;bYZ%Vqa5x8;`(TE9IOUL2hEu^a?k2{> zBZ&s_;1WdTPZL>Q(LLRbHi%7ngqh|Bogn>mIM_Emd7J^Dln$nQwRh z`q%vfFo8wj=m_-c2_bo{)IqO08G4jyZ?(6vnPgDg!C{15}AMjc(W!}){Bon&eB zJ~zG%YD5~yi8u1gNPlTg<3H5jD$a(tS)1gbl{&p7Ri57HN&a7z!D%ziif#tEKu_9R zK%CqJTb(YF|1XXgB_0Mf#i_1H1qJ-WAWrQxCI7E35jO46W|i>_>J;lE3IV*$`b*N` zZ8lP#ye!tg?Yhm%kN;<*?R#H&?>K%t$b0Z~d{CD@DZD$gkY5|Q)8)g*JDfj!EaEkW z=khvpb9pUIaY4hUA_LyJ?dy5rE4Q6DzR%~kUm2-LSw2{r0dKR@Rk85ePF2SJ`2O8m z4wML_c>q@s;8U_uG%*>)#fwML+UgUuUHj3ut5=V{T)XDl%S{_T`PO0M7~0xR;JWow zxPIep+`Rb?x;Rf^ZDA?@Y+VwZ(x;H6zG2Mg6lhZ_p;fMd7Kw~}SPxAy1wGTi(TaRf zrImS^m|XsT(V{E3WXV-rw)9h6w)|6EzG4h5SKdIIRo8Ki?MUi-c>Pw#q2s)t@(5gb;OK&MIpEm9>Iw8hY;&7o&%Xpw25S*!p>`XOkP zs-dey4ebi)CeD7tEfbTgXl`y~FJCc=D=n{~jm>pjy=Dy8uDy6S!INu_#SkqTpOggpDL3*1dD(KOQq4yVjWqKq19y#r!3ZFgO zk3Ivqjuz&mc^PRY-Igr-8m?YVY+ECH{e~O3Y11uqbTqQJG3*^vxXX14-FMBPyZbDr zM4z4R)<`|tmFmCC*Jam3b-pIq!S4M(0F06DE3D5M-7MRBjAgGO-RsufK!)w$@Fsf- zw{M?9SJ!FW?KX{`p10A<`!4SGe1M7E51u!O%L98flE2d5O8)Osi6N8QC0oDd{0~g7 zSy)`frAx{0q}|eza?bi1t|HxQNVhG^CZ7{~GwI&4WgNGR*u2PzJJhz!;hmyXOx2`QAl;|5*$OxQBiReuLb|>F=rw^o{+c`ILXz z(5BGX$M|=hT4X|djB?F_*h`lfW4?lP+c3I`y?QO}uV3hPeyw}kB>9|lyBmGZ=w{fy z`|jd?Vjm!OQ1E>W4V%N@(9e()bsu&4okPU8@^-J{1mjBKX9jH9jn3~8TYb#Hsc zW^{Y(HtP1?GsCideea{szK0kXIESI3bI9n9jCz1v&O?lid5H16M;M>*6l<+?k29V8b_Nox2T@q#0|u@TX&mkXy30-*X6F{g^k>Fa-Kzoz55N_zCOlW+q>^E zW+$Dx*;`R&B@+DVLI~wLmqYuWd>#|`1Y_cVi@bzq$V>V+EEHaQK2VzFsLhZ`tSR13 z4j2FI@Ac00#K>c3+;?914_muQTx)+9`Juh@LuEOuJJl+?K;I9(+Pdu?%l2S(Q?3zv zKa=MN?%_WF$H{BI(NWXi)=D};dbDcj*JimMO#SFT`H2s(L#2vs)3$(K z(zmEZS+}K5)>+!4DM}ft$O7HLGSH;gKw6Xmy0vl`(dRDDO=!E-E)#M`D)`VY&!;}D zR_5+DgS$QMviqB4k^aL-gJ|Pj&S^%MJ>8RaYZuk4HWv{uAUxKSQD5(-(tUp8bF} z4vtl%lm4`S$X5yKA)VVz{6g|s4j9zwP%A2fI#DT9=2eIKkk14BCl)ezzkV7TJpIFg zz=y2Q!-*Xc@d$abvp*DMTzZ6B|+7$}K_0j<#n>2*jKZPF^u-(O!`=FlY3(0MJRm=tiMIWr54ZVu-&Oo+d? z&|gu=ZC6)AGky0VW&5T!S<#+;c`)?J!^pyaH0Ie6c>=4yUz5P*pEk1`dg=WT<@%s5 z?q@bs8UvlmY|6nZXb_iBZ!Cjh$_u%0@M>7(=NQF(hMK&AtHV`k(5}`&lcEV46kX6E z%YuIC9_W+q`-S;}K^jPWJ-o>`s1yGtzeAA&dXb*Z#bf2PuPajN+z@eivG-plB+S1w zXmU6sWic>Z8b`UB5B2gM;tPrILu|_XpP3)=L;lbFYEcc0RHnj-%0$*qR`JXg*~jk6 zbI#ml-k+#UfRmN+^xFhbCpY{{_{XRwjFcz9a5)Zv@9urjxfhAm`l0ifh(%C2#jjPdwa4|I{Q_gr2BM1twpQl?$LX{=L1-9BxkYATtj!JtET| zGBePRYu$`957UbsV9&*Qs*R6Pn{PP659!HVw)D!v^5w>PVlCU(PEa4ua3^VQF|OU~ zbC2z1La29)jF`u`xcP-j@j!+`py!z{xsH}rH)-~~L9_NP+~e`li>=iEGyNFTdo%qA zH{$w>;1FZK%jG_yUh{KoQZ;aRL2ak)*IoVh?Jk#pziRCr%!)nIr^swA*|zO2+s`n+ z+1GC#OY#g_neg;bWYjavOq>3FreN+5mE!)R>CT2!_3U~Kz)1G-Gp6wb+$ zu5Q%t5|`Qf{2DNF6HMxd!?Mj(TgRH}*U8&jIA{Em;S_=%67r{HVG0?5b zhKQicPj-9GvojKNjt7T6!HlHQCr8vmsv}9zOSQT|)&fUVB4`rJ*!6v71x#NB4aFLl zkbtrO4hfw6CNPN3pzwL*#ohZxkUaHGhg#w?prbQK8Aa>ch*boK#Bw-Pm`A-p4AtFO zXc6amYqOj9b>hnC2s+22x%1c{Z;q}K5AfS$B9A^Loq1!*aJ+}auG^N5pfAv(6 W7&CJOcwqi}HPsma diff --git a/netlify/index.html b/netlify/index.html deleted file mode 100644 index 3dcc9a4..0000000 --- a/netlify/index.html +++ /dev/null @@ -1,196 +0,0 @@ - - - - - - -Search user interface (UI) with Headless - Canada.ca - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - - - - -
    -

    Search

    - -
    - - - -
    -
    - -
    - -
    - - -
    -
    - - -
    - - - - - - -
    - -

    Search user interface (UI) with Headless

    -

    This is a demo site for the GC Search UI.

    - -

    Working examples

    - - - -

    Regular pages

    - - -
    -

    Please refer to the README documentation to get more information on the GC Search UI.

    - -
    -

    Page details

    -
    Date modified:
    -
    -
    -
    - -
    - - - - - - - diff --git a/netlify/src/connector.css b/netlify/src/connector.css deleted file mode 100644 index 03f59a0..0000000 --- a/netlify/src/connector.css +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Search UI: Styles for Query suggestion List "combobox", TO BE eventually replaced by GCWeb reference implementation codebase - */ - .query-suggestions { - background-color: white; - border-left: 1px solid #ccc; - border-right: 1px solid #ccc; - cursor: pointer; - left: 0; - list-style-type: none; - padding: 0; - position: absolute; - top: 100%; - width: 100%; - z-index: 60; - - &:has(li) { - border-bottom: 1px solid #ccc; - } - - & .suggestion-item { - padding: 5px 10px; - - &:hover, &.selected-suggestion { - background-color: #ddd; - } - - &::before { - content: "\e003"; - font-family: "Glyphicons Halflings"; - font-size: 0.8em; - line-height: 1; - margin-right: 12px; - position: relative; - top: 1px; - } - } -} - -/* Top-right query suggestions */ -#wb-bnr .query-suggestions { - left: auto; - top: auto; - width: calc(100% - 30px); -} - -@media screen and (max-width: 767px) { - #wb-bnr .query-suggestions { - position: static; - width: 100%; - } -} - -/* - * Facet sidebar layout - */ -.gc-facet-toggle .glyphicon-chevron-left { - display: inline-block; - transition: transform 0.2s ease; -} - -/* Rotate chevron to point right when the panel is collapsed */ -.gc-facet-toggle[aria-expanded="false"] .glyphicon-chevron-left { - transform: rotate(180deg); -} - -.gc-facet-values li { - overflow-wrap: break-word; - position: relative; -} - -/* Stretch the link click area to the full row without affecting its visual appearance */ -.gc-facet-values a::after { - content: ""; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; -} - -.gc-date-pickers .form-control, -.gc-facet-search { - width: 100%; -} diff --git a/netlify/src/connector.js b/netlify/src/connector.js deleted file mode 100644 index 960520b..0000000 --- a/netlify/src/connector.js +++ /dev/null @@ -1,2383 +0,0 @@ -import { - buildSearchEngine, - buildSearchBox, - buildResultList, - buildQuerySummary, - buildPager, - buildResultsPerPage, - buildSearchStatus, - buildUrlManager, - buildDidYouMean, - buildContext, - buildInteractiveResult, - buildFacet, - buildDateFacet, - buildDateFilter, - buildDateRange, - buildBreadcrumbManager, - loadAdvancedSearchQueryActions, - loadSortCriteriaActions, - HighlightUtils, - getOrganizationEndpoints -} from './headless.esm.js'; - -// Search UI base -const baseElement = document.querySelector( '[data-gc-search]' ); - -// Window location variables -const winLoc = window.location; -const winPath = winLoc.pathname; -const winOrigin = winLoc.origin; -const originPath = winOrigin + winPath; - -// Parameters -const defaults = { - "searchHub": "canada-gouv-public-websites", - "organizationId": "", - "accessToken":"", - "searchBoxQuery": "#sch-inp-ac", - "lang": "en", - "numberOfSuggestions": 5, - "minimumCharsForSuggestions": 3, - "enableHistoryPush": true, - "isContextSearch": false, - "isAdvancedSearch": false, - "originLevel3": originPath, - "pipeline": "", - "automaticallyCorrectQuery": false, - "numberOfPages": 9, - "facets": [] -}; -let lang = document.querySelector( "html" )?.lang; -let paramsOverride = baseElement ? JSON.parse( baseElement.dataset.gcSearch ) : {}; -let paramsDetect = {}; -let params = {}; -let urlParams; -let hashParams; -let originLevel3RelativeUrl = ""; - -// Headless controllers -let headlessEngine; -let contextController; -let searchBoxController; -let resultListController; -let querySummaryController; -let didYouMeanController; -let pagerController; -let statusController; -let urlManager; -let unsubscribeManager; -let unsubscribeSearchBoxController; -let unsubscribeResultListController; -let unsubscribeQuerySummaryController; -let unsubscribeDidYouMeanController; -let unsubscribePagerController; -let breadcrumbManagerController; -let unsubscribeBreadcrumbManagerController; - -let dateFilterControllers = []; -let dateFilterStates = []; -let facetControllers = []; -let facetNormalizedConfigs = []; -let facetSearchTimers = []; -let facetStates = []; -let unsubscribeDateFilterControllers = []; -let unsubscribeFacetControllers = []; - -// UI states -let updateSearchBoxFromState = false; -let searchBoxState; -let resultListState; -let querySummaryState; -let didYouMeanState; -let pagerState; -let lastCharKeyUp; -let activeSuggestion = 0; -let pagerManuallyCleared = false; - -const localizedStrings = { - en: new Map(), - fr: new Map() -}; -localizedStrings.en.set( "facets.showMore", "Show more" ); -localizedStrings.en.set( "breadbox.filters", "Filters:" ); -localizedStrings.fr.set( "breadbox.filters", "Filtres\u00a0:" ); -localizedStrings.en.set( "breadbox.clear", "Clear" ); -localizedStrings.fr.set( "breadbox.clear", "Effacer" ); -localizedStrings.en.set( "date-ranges.past-1-day|now", "Past day" ); -localizedStrings.fr.set( "date-ranges.past-1-day|now", "Derni\u00e8re journ\u00e9e" ); -localizedStrings.en.set( "date-ranges.past-1-week|now", "Past week" ); -localizedStrings.fr.set( "date-ranges.past-1-week|now", "Derni\u00e8re semaine" ); -localizedStrings.en.set( "date-ranges.past-1-month|now", "Past month" ); -localizedStrings.fr.set( "date-ranges.past-1-month|now", "Dernier mois" ); -localizedStrings.en.set( "date-ranges.past-1-year|now", "Past year" ); -localizedStrings.fr.set( "date-ranges.past-1-year|now", "Derni\u00e8re ann\u00e9e" ); -localizedStrings.en.set( "date-ranges.past-100-year|past-1-year", "Older" ); -localizedStrings.fr.set( "date-ranges.past-100-year|past-1-year", "Plus ancien" ); -localizedStrings.en.set( "date-ranges.before", "Before {{date}}" ); -localizedStrings.fr.set( "date-ranges.before", "Avant le {{date}}" ); -localizedStrings.en.set( "date-ranges.after", "After {{date}}" ); -localizedStrings.fr.set( "date-ranges.after", "Apr\u00e8s le {{date}}" ); - -// Firefox patch -let isFirefox = navigator.userAgent.indexOf( "Firefox" ) !== -1; -let waitForkeyUp = false; - -// UI Elements placeholders -const resultSectionID = "wb-land"; -let searchBoxElement; -let formElement = document.querySelector( `.page-type-search main [role=search], #gc-searchbox, form[action="#${resultSectionID}"]` ); -let resultsSection = document.querySelector( `#${resultSectionID}` ); -let resultListElement = document.querySelector( '#result-list' ); -let querySummaryElement = document.querySelector( '#query-summary' ); -let pagerElement = document.querySelector( '#pager' ); -let suggestionsElement = document.querySelector( '#suggestions' ); -let didYouMeanElement = document.querySelector( '#did-you-mean' ); -let breadcrumbElement = document.querySelector( '#breadcrumb-manager' ); -let facetSidebarElement = document.querySelector( '#gc-facet-sidebar' ); -let facetPanelElement = document.querySelector( '#gc-facet-panel' ); - -// UI templates -let resultTemplateHTML = document.getElementById( 'sr-single' )?.innerHTML; -let noResultTemplateHTML = document.getElementById( 'sr-nores' )?.innerHTML; -let resultErrorTemplateHTML = document.getElementById( 'sr-error' )?.innerHTML; -let querySummaryTemplateHTML = document.getElementById( 'sr-query-summary' )?.innerHTML; -let didYouMeanTemplateHTML = document.getElementById( 'sr-did-you-mean' )?.innerHTML; -let noQuerySummaryTemplateHTML = document.getElementById( 'sr-noquery-summary' )?.innerHTML; -let previousPageTemplateHTML = document.getElementById( 'sr-pager-previous' )?.innerHTML; -let pageTemplateHTML = document.getElementById( 'sr-pager-page' )?.innerHTML; -let nextPageTemplateHTML = document.getElementById( 'sr-pager-next' )?.innerHTML; -let pagerContainerTemplateHTML = document.getElementById( 'sr-pager-container' )?.innerHTML; -let qsA11yHintHTML = document.getElementById( 'sr-qs-hint' )?.innerHTML; -let facetSummaryTemplateHTML = document.getElementById( 'sr-facet-summary' )?.innerHTML; -let facetClearFilterTemplateHTML = document.getElementById( 'sr-facet-clear-filter' )?.innerHTML; -let facetItemTemplateHTML = document.getElementById( 'sr-facet-item' )?.innerHTML; -let facetSearchInputTemplateHTML = document.getElementById( 'sr-facet-search-input' )?.innerHTML; -let facetShowMoreTemplateHTML = document.getElementById( 'sr-facet-show-more' )?.innerHTML; -let facetShowLessTemplateHTML = document.getElementById( 'sr-facet-show-less' )?.innerHTML; -let facetDatePickerTemplateHTML = document.getElementById( 'sr-facet-date-picker' )?.innerHTML; -let facetToggleTemplateHTML = document.getElementById( 'sr-facet-toggle' )?.innerHTML; -let facetPanelItemTemplateHTML = document.getElementById( 'sr-facet-panel-item' )?.innerHTML; -let facetLayoutTemplateHTML = document.getElementById( 'sr-facet-layout' )?.innerHTML; -let breadcrumbItemTemplateHTML = document.getElementById( 'sr-breadcrumb-item' )?.innerHTML; -let breadcrumbListTemplateHTML = document.getElementById( 'sr-breadcrumb-list' )?.innerHTML; - -// Init parameters and UI -function initSearchUI() { - if( !baseElement || !DOMPurify ) { - return; - } - - if ( !lang && winPath.includes( "/fr/" ) ) { - paramsDetect.lang = "fr"; - } - if ( lang.startsWith( "fr" ) ) { - paramsDetect.lang = "fr"; - } - - paramsDetect.isContextSearch = !winPath.endsWith( '/sr/srb.html' ) && !winPath.endsWith( '/sr/sra.html' ); - paramsDetect.isAdvancedSearch = !!document.getElementById( 'advseacon1' ) || winPath.endsWith( '/advanced-search.html' ) || winPath.endsWith( '/recherche-avancee.html' ); - paramsDetect.enableHistoryPush = !paramsDetect.isAdvancedSearch; - - // Final parameters object - params = Object.assign( defaults, paramsDetect, paramsOverride ); - - // Update the URL params and the hash params on navigation - window.onpopstate = () => { - var match, - pl = /\+/g, // Regex for replacing addition symbol with a space - search = /([^&=]+)=?([^&]*)/g, - decode = function ( s ) { return decodeURIComponent( s.replace( pl, " " ) ); }, - query = winLoc.search.substring( 1 ); - - urlParams = {}; - hashParams = {}; - - // Ignore linting errors in regard to affectation instead of condition in the loops - // jshint -W084 - while ( match = search.exec( query ) ) { // eslint-disable-line no-cond-assign - urlParams[ decode(match[ 1 ] ) ] = stripHtml( decode( match[ 2 ] ) ); - } - query = winLoc.hash.substring( 1 ); - - while ( match = search.exec( query ) ) { // eslint-disable-line no-cond-assign - hashParams[ decode( match[ 1 ] ) ] = stripHtml( decode( match[ 2 ] ) ); - } - // jshint +W084 - }; - - window.onpopstate(); - - // Initialize templates - initTpl(); - - // override origineLevel3 through query parameters - if ( urlParams.originLevel3 ) { - params.originLevel3 = urlParams.originLevel3; - } - // override sort through query parameters - if (urlParams.sort) { - params.sort = urlParams.sort; - } - // set the custom action cause for the initial search - if ( urlParams.actionCause ) { - params.actionCause = urlParams.actionCause; - - // changing the URL without reloading the page to remove actionCause - if ( window.history.replaceState ) { - var newUrl = new URL( winLoc.href ); - newUrl.searchParams.delete( 'actionCause' ); - window.history.replaceState( { path : newUrl.href }, '', newUrl.href ); - } - } - - // Auto detect relative path from originLevel3 - if( !params.originLevel3.startsWith( "/" ) && /http|www/.test( params.originLevel3 ) ) { - try { - const absoluteURL = new URL( params.originLevel3 ); - originLevel3RelativeUrl = absoluteURL.pathname; - } - catch( exception ) { - console.warn( "Exception while auto detecting relative path: " + exception.message ); - } - } - else { - originLevel3RelativeUrl = params.originLevel3; - } - - if ( !params.endpoints ) { - params.endpoints = getOrganizationEndpoints( params.organizationId, 'prod' ); - } - - // Show error on load if no access token is provided - if ( !params.accessToken ) { - showQueryErrorMessage(); - return; - } - - // Initialize the Headless engine - initEngine(); -} - -// Initialize default templates -function initTpl() { - - // Auto-create parts of search pages templates if not already defined - // Default templates - if ( !resultTemplateHTML ) { - if ( lang === "fr" ) { - resultTemplateHTML = - `

    %[result.title]

    -
    • %[result.raw.author]
    - %[result.breadcrumb] -

    - %[highlightedExcerpt]

    `; - } - else { - resultTemplateHTML = - `

    %[result.title]

    -
    • %[result.raw.author]
    - %[result.breadcrumb] -

    - %[highlightedExcerpt]

    `; - } - } - - if ( !noResultTemplateHTML ) { - if ( lang === "fr" ) { - noResultTemplateHTML = - `
    -

    Aucun résultat

    -

    Aucun résultat ne correspond à vos critères de recherche.

    -

    Suggestions :

    -
      -
    • Assurez-vous que tous vos termes de recherches sont bien orthographiés
    • -
    • Utilisez de différents termes de recherche
    • -
    • Utilisez des termes de recherche plus généraux
    • -
    • Consultez les  trucs de recherche
    • -
    • Essayez la recherche avancée
    • -
    -
    `; - } - else { - noResultTemplateHTML = - `
    -

    No results

    -

    No pages were found that match your search terms.

    -

    Suggestions:

    -
      -
    • Make sure all search terms are spelled correctly
    • -
    • Try different search terms
    • -
    • Try more general search terms
    • -
    • Consult the search tips
    • -
    • Try the advanced search
    • -
    -
    `; - } - } - - if ( !resultErrorTemplateHTML ) { - if ( lang === "fr" ) { - resultErrorTemplateHTML = - `
    -

    Nous éprouvons actuellement des problèmes avec la fonction de recherche sur le site Web Canada.ca

    -

    L'équipe chargée de rétablir les services touchés travaille de façon à résoudre le problème aussi rapidement que possible. Nous vous prions de nous excuser pour tout inconvénient.

    -
    `; - } - else { - resultErrorTemplateHTML = - `
    -

    The Canada.ca Search is currently experiencing issues

    -

    A resolution for the restoration is presently being worked. We apologize for any inconvenience.

    -
    `; - } - } - - if ( !querySummaryTemplateHTML ) { - if ( lang === "fr" ) { - querySummaryTemplateHTML = - `

    %[numberOfResults] résultats de recherche pour "%[query]"

    `; - } - else { - querySummaryTemplateHTML = - `

    %[numberOfResults] search results for "%[query]"

    `; - } - } - - if ( !didYouMeanTemplateHTML ) { - if ( lang === "fr" ) { - didYouMeanTemplateHTML = - `

    Rechercher plutôt ?

    `; - } - else { - didYouMeanTemplateHTML = - `

    Did you mean ?

    `; - } - } - - if ( !noQuerySummaryTemplateHTML ) { - if ( lang === "fr" ) { - noQuerySummaryTemplateHTML = - `

    %[numberOfResults] résultats de recherche

    `; - } - else { - noQuerySummaryTemplateHTML = - `

    %[numberOfResults] search results

    `; - } - } - - if ( !previousPageTemplateHTML ) { - if ( lang === "fr" ) { - previousPageTemplateHTML = - ``; - } else { - facetClearFilterTemplateHTML = - ``; - } - } - - if ( !facetItemTemplateHTML ) { - if ( lang === 'fr' ) { - facetItemTemplateHTML = - `
  • `; - } else { - facetItemTemplateHTML = - `
  • `; - } - } - - if ( !facetSearchInputTemplateHTML ) { - if ( lang === 'fr' ) { - facetSearchInputTemplateHTML = - ``; - } else { - facetSearchInputTemplateHTML = - ``; - } - } - - if ( !facetShowMoreTemplateHTML ) { - if ( lang === 'fr' ) { - facetShowMoreTemplateHTML = - ``; - } else { - facetShowMoreTemplateHTML = - ``; - } - } - - if ( !facetShowLessTemplateHTML ) { - if ( lang === 'fr' ) { - facetShowLessTemplateHTML = - ``; - } else { - facetShowLessTemplateHTML = - ``; - } - } - - if ( !facetDatePickerTemplateHTML ) { - if ( lang === 'fr' ) { - facetDatePickerTemplateHTML = - `
    -
    - - -
    -
    - - -
    - - -
    `; - } else { - facetDatePickerTemplateHTML = - `
    -
    - - -
    -
    - - -
    - - -
    `; - } - } - - if ( !facetToggleTemplateHTML ) { - if ( lang === 'fr' ) { - facetToggleTemplateHTML = - ``; - } else { - facetToggleTemplateHTML = - ``; - } - } - - if ( !facetPanelItemTemplateHTML ) { - facetPanelItemTemplateHTML = - `
    `; - } - - if ( !facetLayoutTemplateHTML ) { - if ( lang === 'fr' ) { - facetLayoutTemplateHTML = - `
    -
    -
    -

    Filtres

    -

    - - %[facetItems] -
    -
    -
    -
    `; - } else { - facetLayoutTemplateHTML = - `
    -
    -
    -

    Filters

    -

    - - %[facetItems] -
    -
    -
    -
    `; - } - } - - if ( !breadcrumbItemTemplateHTML ) { - breadcrumbItemTemplateHTML = - `
  • `; - } - - if ( !breadcrumbListTemplateHTML ) { - breadcrumbListTemplateHTML = - `
    • %[filtersLabel]
    • %[items]
    `; - } - - // auto-create results section (facet layout provides it when configured; otherwise create standalone) - if ( !resultsSection ) { - resultsSection = document.createElement( "section" ); - resultsSection.id = resultSectionID; - baseElement.append( resultsSection ); - } - - // auto-create query summary element - if ( !querySummaryElement ) { - querySummaryElement = document.createElement( "div" ); - querySummaryElement.id = "query-summary"; - - resultsSection.append( querySummaryElement ); - } - - // auto-create breadcrumb element (after query-summary, before did-you-mean) - if ( !breadcrumbElement && params.facets?.length ) { - breadcrumbElement = document.createElement( "div" ); - breadcrumbElement.id = "breadcrumb-manager"; - breadcrumbElement.hidden = true; - - resultsSection.append( breadcrumbElement ); - } - - // auto-create did you mean element - if ( !didYouMeanElement ) { - didYouMeanElement = document.createElement( "div" ); - didYouMeanElement.id = "did-you-mean"; - - resultsSection.append( didYouMeanElement ); - } - - // auto-create results section if not present - if ( !resultListElement ) { - resultListElement = document.createElement( "div" ); - resultListElement.id = "result-list"; - resultListElement.classList.add( "results" ); - - resultsSection.append( resultListElement ); - } - - // auto-create pager - if ( !pagerElement ) { - pagerElement = document.createElement( "div" ); - pagerElement.innerHTML = pagerContainerTemplateHTML; - resultsSection.append( pagerElement ); - } - - // initialize the search box - searchBoxElement = document.querySelector( params.searchBoxQuery ); - - if ( searchBoxElement ) { - - // default searchbox attributes - searchBoxElement.setAttribute( 'type', 'search' ); // default, when query suggestions are disabled - - // if query suggestions are enabled and not advanced search, auto-create suggestions element and update searchbox attributes - if ( params.numberOfSuggestions > 0 && !params.isAdvancedSearch && !suggestionsElement ) { - searchBoxElement.setAttribute( 'type', 'text' ); - searchBoxElement.role = "combobox"; - searchBoxElement.setAttribute( 'aria-expanded', 'false' ); - searchBoxElement.setAttribute( 'aria-autocomplete', 'list' ); - - suggestionsElement = document.createElement( "ul" ); - suggestionsElement.id = "suggestions"; - suggestionsElement.role = "listbox"; - suggestionsElement.classList.add( "query-suggestions" ); - - searchBoxElement.after( suggestionsElement ); - searchBoxElement.setAttribute( 'aria-controls', 'suggestions' ); - - // Add accessibility instructions after query suggestions - suggestionsElement.insertAdjacentHTML( 'afterEnd', qsA11yHintHTML ); - suggestionsElement.setAttribute( "aria-describedby", "sr-qs-hint" ); - - // Document-wide listener to close query suggestion box if click elsewhere - document.addEventListener( "click", function( evnt ) { - if ( suggestionsElement && ( evnt.target.className !== "suggestion-item" && evnt.target.id !== searchBoxElement?.id ) ) { - closeSuggestionsBox(); - } - } ); - } - } - - // initialize facets - if ( params.facets?.length ) { - const facetConfigMap = new Map(); - params.facets.forEach( ( raw ) => { - const config = normalizeFacetConfig( raw ); - if ( config ) facetConfigMap.set( config.facetId, config ); - } ); - facetNormalizedConfigs = [ ...facetConfigMap.values() ]; - - if ( facetNormalizedConfigs.length > 0 && !facetPanelElement ) { - const facetItems = facetNormalizedConfigs.map( ( config, index ) => { - const item = facetPanelItemTemplateHTML.replace( '%[facetId]', config.facetId ); - return index > 0 ? item.replace( 'class="gc-facet"', 'class="gc-facet mrgn-tp-md"' ) : item; - } ).join( '' ); - - baseElement.insertAdjacentHTML( 'beforeend', - facetToggleTemplateHTML + - facetLayoutTemplateHTML.replace( '%[facetItems]', facetItems ) - ); - - // Store references and attach event handlers after insertion - facetSidebarElement = document.getElementById( 'gc-facet-sidebar' ); - facetPanelElement = document.getElementById( 'gc-facet-panel' ); - document.getElementById( 'gc-results-col' ).append( resultsSection ); - document.getElementById( 'gc-facet-toggle' ).onclick = toggleFacetSidebar; - document.querySelector( '#gc-facet-clear-all-container .btn-link' ).onclick = () => { - facetControllers.forEach( ( c ) => c?.deselectAll() ); - dateFilterControllers.forEach( ( c ) => c?.clear() ); - }; - - // Apply mobile defaults (sidebar hidden, facets collapsed) and restore any persisted state - applyFacetUIDefaults(); - } - } -} - -// Detect if localStorage is available -function hasLocalStorage() { - try { - return typeof localStorage !== 'undefined'; - } catch ( error ) { - return false; - } -} - -// Detect if sessionStorage is available -function hasSessionStorage() { - try { - sessionStorage.setItem( '__test', '1' ); - sessionStorage.removeItem( '__test' ); - return true; - } catch ( error ) { - return false; - } -} - -// Returns true if the viewport is mobile (below Bootstrap's col-md breakpoint) -function isMobileView() { - return window.innerWidth < 992; -} - -// Session storage key for facet UI state -const FACET_UI_STATE_KEY = 'gc-facet-ui-state'; - -// Load persisted facet UI state from sessionStorage -function loadFacetUIState() { - if ( !hasSessionStorage() ) { return null; } - try { - const raw = sessionStorage.getItem( FACET_UI_STATE_KEY ); - return raw ? JSON.parse( raw ) : null; - } catch ( error ) { - return null; - } -} - -// Apply default facet UI state based on viewport, then overlay any persisted sessionStorage state. -// Desktop defaults: sidebar visible, facets open. -// Mobile defaults: sidebar hidden, facets collapsed. -function applyFacetUIDefaults() { - const mobile = isMobileView(); - const toggleBtn = document.getElementById( 'gc-facet-toggle' ); - const resultsCol = document.getElementById( 'gc-results-col' ); - const saved = loadFacetUIState(); - - // Determine sidebar visibility: prefer saved value, else use viewport default - const sidebarVisible = saved?.sidebarVisible !== undefined ? saved.sidebarVisible : !mobile; - if ( toggleBtn ) { - toggleBtn.setAttribute( 'aria-expanded', String( sidebarVisible ) ); - } - if ( facetSidebarElement ) { - facetSidebarElement.hidden = !sidebarVisible; - } - if ( resultsCol ) { - resultsCol.classList.toggle( 'col-md-8', sidebarVisible ); - resultsCol.classList.toggle( 'col-md-12', !sidebarVisible ); - } - - // Determine facet open state: default is open on desktop, closed on mobile - const defaultFacetsOpen = !mobile; - document.querySelectorAll( '.gc-facet' ).forEach( ( el ) => { - const savedOpen = saved?.facetsOpen?.[ el.id ]; - el.open = savedOpen !== undefined ? savedOpen : defaultFacetsOpen; - - // Persist state whenever the user manually toggles a facet - el.addEventListener( 'toggle', saveFacetUIState ); - } ); -} - -// Save facet UI state to sessionStorage, only persisting values that differ from the defaults -// Desktop defaults: sidebar visible, all facets open -// Mobile defaults: sidebar hidden, all facets closed -function saveFacetUIState() { - if ( !hasSessionStorage() ) { return; } - - const mobile = isMobileView(); - const defaultSidebarVisible = !mobile; - const defaultFacetsOpen = !mobile; - - const toggleBtn = document.getElementById( 'gc-facet-toggle' ); - const currentSidebarVisible = toggleBtn?.getAttribute( 'aria-expanded' ) === 'true'; - - const state = {}; - - // Only save sidebar visibility if it differs from the default - if ( currentSidebarVisible !== defaultSidebarVisible ) { - state.sidebarVisible = currentSidebarVisible; - } - - // Only save facet open/closed states that differ from the default - const facetEls = document.querySelectorAll( '.gc-facet' ); - const facetOpenOverrides = {}; - let hasFacetOverrides = false; - facetEls.forEach( ( el ) => { - if ( el.open !== defaultFacetsOpen ) { - facetOpenOverrides[ el.id ] = el.open; - hasFacetOverrides = true; - } - } ); - if ( hasFacetOverrides ) { - state.facetsOpen = facetOpenOverrides; - } - - // If everything matches defaults, clear any saved state - if ( Object.keys( state ).length === 0 ) { - sessionStorage.removeItem( FACET_UI_STATE_KEY ); - } else { - sessionStorage.setItem( FACET_UI_STATE_KEY, JSON.stringify( state ) ); - } -} - -// Limit actions history array to items newer than 7 days -function limitCoveoAnalyticsHistory( actionsHistory ) { - const now = new Date(); - const sevenDaysAgo = now.getTime() - 7 * 24 * 60 * 60 * 1000; - - return actionsHistory.filter( ( action ) => { - const parsedTime = new Date( action.time.replace( /^"|"$/g, "" ) ); - return parsedTime.getTime() >= sevenDaysAgo; - } ); -} - -// Saves the actions history array to either localStorage or a cookie, depending on what's available -function saveCoveoAnalyticsHistory( actionsHistory ) { - const key = '__coveo.analytics.history'; - const serialized = JSON.stringify( actionsHistory ); - - // Coveo will use localStorage if available, ignoring cookies - if ( hasLocalStorage() ) { - localStorage.setItem( key, serialized ); - } else { - // No localStorage, try cookies - try { - const expiry = 7 * 24 * 60 * 60; // 7-day expiry - document.cookie = `${key}=${serialized}; path=/; max-age=${expiry}`; - } catch ( error ) { - // Do nothing if cookies are disabled - } - } -} - -// Sanitize query to remove HTML tags -function sanitizeQuery(q) { - return q.replace(/<[^>]*>?/gm, ''); -} - -// Normalize a single raw facet config entry from the HTML attribute. -// Returns a clean config object, or null if the entry is invalid. -function normalizeFacetConfig(raw) { - if (!raw || typeof raw !== 'object' || Array.isArray(raw)) { - return null; - } - - const field = raw.field?.trim(); - if (!field) { - return null; - } - - const facetType = raw.facetType === 'dateRange' ? 'dateRange' : 'regular'; - - const defaults = - facetType === 'dateRange' ? { - withDatePicker: true, - withDateRanges: true, - } : { - numberOfValues: 8, - sortCriteria: 'occurrences', - facetSearch: true, - }; - - const normalizedFields = { - field, - facetType, - label: raw.label?.trim() || raw.title?.trim() || field, - facetId: raw.facetId?.trim() || field, - filterFacetCount: raw.filterFacetCount ?? true, - }; - - return { - ...defaults, - ...raw, - ...normalizedFields, - }; -} - -// Convert YYYY-MM-DD (date input value) to Coveo date string -function inputDateToCoveoDate( dateStr, endOfDay ) { - if ( !dateStr ) { return ''; } - return dateStr.replace( /-/g, '/' ) + ( endOfDay ? '@23:59:59' : '@00:00:00' ); -} - -// Convert a Coveo date string to YYYY-MM-DD for a date input -function coveoDateToInputDate( coveoDate ) { - if ( !coveoDate ) { return ''; } - return String( coveoDate ).slice( 0, 10 ).replace( /\//g, '-' ); -} - -// Resolve a Coveo range endpoint (string or relative object) to a YYYY-MM-DD input date string -function resolveRangeEndpointToInputDate( endpoint ) { - if ( typeof endpoint === 'string' ) { - return coveoDateToInputDate( endpoint ); - } - if ( endpoint && endpoint.period === 'now' ) { - return ''; - } - if ( endpoint && endpoint.period === 'past' ) { - const d = new Date(); - if ( endpoint.unit === 'day' ) { d.setDate( d.getDate() - endpoint.amount ); } - else if ( endpoint.unit === 'week' ) { d.setDate( d.getDate() - endpoint.amount * 7 ); } - else if ( endpoint.unit === 'month' ) { d.setMonth( d.getMonth() - endpoint.amount ); } - else if ( endpoint.unit === 'year' ) { d.setFullYear( d.getFullYear() - endpoint.amount ); } - return d.toISOString().slice( 0, 10 ); - } - return ''; -} - -// Predefined relative date periods for the date facet (start is relative, end is now) -function getDateFacetFields () { - return [ - { - labelKey: "date-ranges.past-1-day|now", - range: buildDateRange({ - start: { period: "past", unit: "day", amount: 1 }, - end: { period: 'now' }, - endInclusive: true, - }), - }, - { - labelKey: "date-ranges.past-1-week|now", - range: buildDateRange({ - start: { period: "past", unit: "week", amount: 1 }, - end: { period: 'now' }, - endInclusive: true, - }), - }, - { - labelKey: "date-ranges.past-1-month|now", - range: buildDateRange({ - start: { period: "past", unit: "month", amount: 1 }, - end: { period: 'now' }, - endInclusive: true, - }), - }, - { - labelKey: "date-ranges.past-1-year|now", - range: buildDateRange({ - start: { period: "past", unit: "year", amount: 1 }, - end: { period: 'now' }, - endInclusive: true, - }), - }, - { - labelKey: "date-ranges.past-100-year|past-1-year", - range: buildDateRange({ - start: { period: "past", unit: "year", amount: 100 }, - end: { period: "past", unit: "year", amount: 1 }, - endInclusive: false, - }), - }, - ]; -} - -// rebuild a clean query string out of a JSON object -function buildCleanQueryString( paramsObject ) { - let urlParam = ""; - for ( var prop in paramsObject ) { - if ( paramsObject[ prop ] ) { - if ( urlParam !== "" ) { - urlParam += "&"; - } - - urlParam += prop + "=" + stripHtml( paramsObject[ prop ].replaceAll( '+', ' ' ) ); - } - } - return urlParam; -} - -// Filters out dangerous URIs that can create XSS attacks such as `javascript:`. -function filterProtocol( uri ) { - - const isAbsolute = /^(https?|mailto|tel):/i.test( uri ); - const isRelative = /^(\/|\.\/|\.\.\/)/.test( uri ); - - return isAbsolute || isRelative ? uri : ''; -} - -// Strip HTML tags of a given string -function stripHtml(html) { - let tmp = document.createElement( "DIV" ); - tmp.innerHTML = html; - return tmp.textContent || tmp.innerText || ""; -} - -// Focus to H2 heading in results section -function focusToView() { - let focusElement = resultsSection.querySelector( "h2" ); - - if( focusElement ) { - focusElement.tabIndex = -1; - focusElement.focus(); - } -} - -// Get date converted from GMT (Coveo) to current timezone -function getDateInCurrentTimeZone( date ) { - const offset = date.getTimezoneOffset(); - return new Date( date.getTime() + ( offset * 60 * 1000 ) ); -} - -// get a short date format like YYYY-MM-DD -function getShortDateFormat( date ){ - let currentTZDate = getDateInCurrentTimeZone( date ); - return currentTZDate.toISOString().split( 'T' )[ 0 ]; -} - -// get a long date format like May 21, 2024 -function getLongDateFormat( date, lang ){ - let currentTZDate = getDateInCurrentTimeZone( date ); - let langCA = lang + "-CA"; - - return currentTZDate.toLocaleDateString( langCA, { year: 'numeric', month: 'short', day: 'numeric' } ); -} - -// checking for default date , Jan 1st, 1970 -function isEmptyDate( date ) { - return date instanceof Date && - date.getFullYear() === 1970 && - date.getMonth() === 0 && // January is 0 - date.getDate() === 1; -} - -// Convert date parameter to GMT format YYYY/MM/DD -function getGMTDate( date ) { - const paramDate = new Date( date ); - const GMTDateTime = new Date( paramDate.getTime() - paramDate.getTimezoneOffset()*60*1000 ); - - const year = GMTDateTime.getFullYear(); - const month = GMTDateTime.getMonth() + 1; // Add 1 for 1-indexed month - const day = GMTDateTime.getDate(); - - const formattedMonth = month < 10 ? '0' + month : month; - const formattedDay = day < 10 ? '0' + day : day; - - return `${year}/${formattedMonth}/${formattedDay}`; -} - -// Initiate proprietary Headless engine -function initEngine() { - headlessEngine = buildSearchEngine( { - configuration: { - organizationEndpoints: params.endpoints, - organizationId: params.organizationId, - accessToken: params.accessToken, - search: { - locale: params.lang, - searchHub: params.searchHub, - pipeline: params.pipeline - }, - preprocessRequest: ( request, clientOrigin ) => { - try { - if( clientOrigin === 'analyticsFetch' || clientOrigin === 'analyticsBeacon' ) { - let requestContent = JSON.parse( request.body ); - - // filter user sensitive content - requestContent.originLevel3 = params.originLevel3; - - // override actionCause if present - if ( params.actionCause ) { - requestContent.actionCause = params.actionCause; - params.actionCause = ""; // reset the parameter to avoid polluting future searches with the same action cause - } - - // documentAuthor cannot be longer than 128 chars based on search platform - if ( requestContent.documentAuthor ) { - requestContent.documentAuthor = requestContent.documentAuthor.substring( 0, 128 ); - } - - request.body = JSON.stringify( requestContent ); - - // Event used to expose a data layer when search events occur; useful for analytics - const searchEvent = new CustomEvent( "searchEvent", { detail: requestContent } ); - document.dispatchEvent( searchEvent ); - } - if ( clientOrigin === 'searchApiFetch' ) { - let requestContent = JSON.parse( request.body ); - - // filter user sensitive content - requestContent.enableQuerySyntax = params.isAdvancedSearch; - requestContent.mlParameters = { - "filters": { - "c_context_searchpageurl": params.originLevel3, - "c_context_searchpagerelativeurl": originLevel3RelativeUrl - } - }; - - if ( requestContent.analytics ) { - requestContent.analytics.originLevel3 = params.originLevel3; - } - - // override actionCause if present - if ( params.actionCause ) { - requestContent.analytics.actionCause = params.actionCause; - } - - let q = requestContent.q; - requestContent.q = sanitizeQuery( q ); - - // Filters out actions history items older than 7 days - const actionsHistory = limitCoveoAnalyticsHistory( requestContent.actionsHistory ); - if ( actionsHistory.length !== requestContent.actionsHistory.length ) { - requestContent.actionsHistory = actionsHistory; - saveCoveoAnalyticsHistory( actionsHistory ); - } - - request.body = JSON.stringify( requestContent ); - } - } catch { - console.warn( "No Headless Engine Loaded." ); - } - - return request; - } - } - } ); - - contextController = buildContext( headlessEngine ); - contextController.set( { "searchPageUrl" : params.originLevel3, "searchPageRelativeUrl" : originLevel3RelativeUrl } ); - - // build controllers - searchBoxController = buildSearchBox( headlessEngine, { - options: { - numberOfSuggestions: params.numberOfSuggestions, - highlightOptions: { - notMatchDelimiters: { - open: '', - close: '', - }, - }, - } - } ); - - resultListController = buildResultList( headlessEngine, { - options: { - fieldsToInclude: [ "author", "date", "language", "urihash", "objecttype", "collection", "source", "permanentid", "displaynavlabel", "hostname", "disp_declared_type", "description" ] - } - } ); - querySummaryController = buildQuerySummary( headlessEngine ); - didYouMeanController = buildDidYouMean( headlessEngine, { options: { automaticallyCorrectQuery: params.automaticallyCorrectQuery } } ); - pagerController = buildPager( headlessEngine, { options: { numberOfPages: params.numberOfPages } } ); - statusController = buildSearchStatus( headlessEngine ); - - if( params.facets?.length ) { - - // Build a facet controller for each normalized facet config - facetNormalizedConfigs.forEach( ( config, index ) => { - if ( config.facetType === 'dateRange' ) { - const dateFacetController = buildDateFacet( headlessEngine, { - options: { - field: config.field, - facetId: config.facetId, - currentValues: getDateFacetFields().map( ( p ) => p.range ), - generateAutomaticRanges: false, - } - } ); - const dateFilterController = buildDateFilter( headlessEngine, { - options: { - field: config.field, - facetId: config.facetId + '__filter', - } - } ); - facetControllers[ index ] = dateFacetController; - dateFilterControllers[ index ] = dateFilterController; - facetStates[ index ] = dateFacetController.state; - dateFilterStates[ index ] = dateFilterController.state; - unsubscribeFacetControllers[ index ] = dateFacetController.subscribe( - () => updateDateFacetState( index, dateFacetController.state, dateFilterController.state ) - ); - unsubscribeDateFilterControllers[ index ] = dateFilterController.subscribe( - () => updateDateFacetState( index, dateFacetController.state, dateFilterController.state ) - ); - } else { - const controller = buildFacet( headlessEngine, { - options: { - field: config.field, - facetId: config.facetId, - numberOfValues: config.numberOfValues, - sortCriteria: config.sortCriteria, - } - } ); - facetControllers[ index ] = controller; - facetStates[ index ] = controller.state; - unsubscribeFacetControllers[ index ] = controller.subscribe( - () => updateFacetState( index, controller.state ) - ); - } - } ); - - breadcrumbManagerController = buildBreadcrumbManager( headlessEngine ); - - } - - // Refine search based on URL parameters for filters, mostly used in Advanced Search to trigger only one search per page load - if ( urlParams.allq || urlParams.exctq || urlParams.anyq || urlParams.noneq || urlParams.fqupdate || urlParams.dmn || urlParams.fqocct || urlParams.elctn_cat || urlParams.filetype || urlParams.site || urlParams.year || urlParams.declaredtype || urlParams.startdate || urlParams.enddate || urlParams.dprtmnt ) { - let q = []; - let qString = ""; - let aqString = ""; - let fqupdate, elctn_cat, filetype, site, year, startDate, endDate; - - if ( urlParams.allq ) { - qString = urlParams.allq.replaceAll( '+', ' ' ); - } - if ( urlParams.exctq ) { - q.push( '"' + urlParams.exctq.replaceAll( '+', ' ' ) + '"' ); - } - if ( urlParams.anyq ) { - q.push( urlParams.anyq.replaceAll( '+', ' ' ).replaceAll( ' ', ' OR ' ) ); - } - if ( urlParams.noneq ) { - q.push( "NOT (" + urlParams.noneq.replaceAll( '+', ' ' ).replaceAll( ' ', ') NOT(' ) + ")" ); - } - - qString += q.length ? ' (' + q.join( ')(' ) + ')' : ''; - - if ( urlParams.fqocct ) { - if ( urlParams.fqocct === "title_t" ) { - aqString = "@title=" + qString; - qString = ""; - } - else if ( urlParams.fqocct === "url_t" ) { - aqString = "@uri=" + qString; - qString = ""; - } - } - - if ( urlParams.fqupdate ) { - fqupdate = urlParams.fqupdate.toLowerCase(); - - if ( fqupdate === "datemodified_dt:[now-1day to now]" ) { - aqString += ' @date>today-1d'; - } - else if( fqupdate === "datemodified_dt:[now-7days to now]" ) { - aqString += ' @date>today-7d'; - } - else if( fqupdate === "datemodified_dt:[now-1month to now]" ) { - aqString += ' @date>today-30d'; - } - else if( fqupdate === "datemodified_dt:[now-1year to now]" ) { - aqString += ' @date>today-365d'; - } - } - if ( urlParams.dmn ) { - aqString += ' @uri="' + urlParams.dmn + '"'; - } - - - // Specifically for Elections Canada, allows to search within scope - if ( urlParams.elctn_cat ) { - elctn_cat = urlParams.elctn_cat.toLowerCase(); - - if( elctn_cat === "his" ) { - aqString += ' @uri="dir=his"'; - } - else if( elctn_cat === "comp" ) { - aqString += ' @uri="compendium"'; - } - else if( elctn_cat === "ogi" ) { - aqString += ' @uri="dir=gui"'; - } - else if( elctn_cat === "officer_manuals" ) { - aqString += ' @uri="dir=pub"'; - } - else if( elctn_cat === "research" ) { - aqString += ' @uri="dir=rec"'; - } - else if( elctn_cat === "press_release" ) { - aqString += ' @uri="dir=pre"'; - } - else if( elctn_cat === "legislation" ) { - aqString += ' @uri="dir=loi"'; - } - else if( elctn_cat === "charg" ) { - aqString += ' @uri="section=charg"'; - } - else if( elctn_cat === "ca" ) { - aqString += ' @uri="dir=ca"'; - } - else if( elctn_cat === "un" ) { - aqString += ' @uri="dir=un"'; - } - else if( elctn_cat === "pre" ) { - aqString += ' @uri="dir=pre-com"'; - } - else if( elctn_cat === "spe" ) { - aqString += ' @uri="dir=spe-com"'; - } - else if( elctn_cat === "rep" ) { - aqString += ' @uri="section=rep"'; - } - } - - if ( urlParams.filetype ) { - filetype = urlParams.filetype.toLowerCase(); - - if ( filetype === "application/pdf" ) { - aqString += ' @filetype==(pdf)'; - } - else if ( filetype === "text/html" ) { - aqString += ' @filetype==(html)'; - } - else if ( filetype === "ps" ) { - aqString += ' @filetype==(ps)'; - } - else if ( filetype === "application/msword" ) { - aqString += ' @filetype==(doc,docx)'; - } - else if ( filetype === "application/vnd.ms-excel" ) { - aqString += ' @filetype==(xls,xlsx)'; - } - else if ( filetype === "application/vnd.ms-powerpoint" ) { - aqString += ' @filetype==(ppt,pptx)'; - } - else if ( filetype === "application/rtf" ) { - aqString += ' @filetype==(rtf)'; - } - } - - if ( urlParams.year ) { - year = Number.parseInt( urlParams.year ); - - if ( Number.isInteger( year ) && ( year >= 2000 ) && ( year <= ( new Date().getFullYear() + 1 ) ) ) { - aqString += ' @uri=".ca/' + urlParams.year + '"'; - } - else { - aqString += ' NOT @uri'; - } - } - - if ( urlParams.site ) { - site = urlParams.site.toLowerCase().replace( '*', '' ); - aqString += ' @canadagazettesite==' + site; - } - - if ( urlParams.startdate ) { - startDate = getGMTDate( urlParams.startdate ); - aqString += ' @date >= "' + startDate + '"'; - } - - if ( urlParams.enddate ) { - endDate = getGMTDate( urlParams.enddate ); - aqString += ' @date <= "' + endDate + '"'; - } - - if ( urlParams.dprtmnt ) { - aqString += ' @author = "' + urlParams.dprtmnt + '"'; - - } - - if ( urlParams.declaredtype ) { - aqString += ' @declared_type="' + urlParams.declaredtype.replaceAll( /'/g, ''' ) + '"'; - - } - - if ( aqString ) { - const action = loadAdvancedSearchQueryActions( headlessEngine ).updateAdvancedSearchQueries( { - aq: aqString, - } ); - headlessEngine.dispatch( action ); - } - - searchBoxController.updateText( qString ); - searchBoxController.submit(); - } - - if ( hashParams.q && searchBoxElement ) { - searchBoxElement.value = stripHtml( hashParams.q ); - } - else if ( urlParams.q && searchBoxElement ) { - searchBoxElement.value = stripHtml( urlParams.q ); - } - - // Get the query portion of the URL - const fragment = () => { - if ( !statusController.state.firstSearchExecuted && !hashParams.q ) { - return buildCleanQueryString( urlParams ); - } - - return buildCleanQueryString( hashParams ); - }; - - urlManager = buildUrlManager( headlessEngine, { - initialState: { - fragment: fragment(), - }, - } ); - if ( params.sort ) { - const sortAction = loadSortCriteriaActions( headlessEngine ).registerSortCriterion( { - by: "date", - order: params.sort , - } ); - headlessEngine.dispatch( sortAction ); - } - - // Unsubscribe to controllers - unsubscribeManager = urlManager.subscribe( () => { - if ( !params.enableHistoryPush || winOrigin.startsWith( 'file://' ) ) { - return; - } - - let hash = `#${urlManager.state.fragment}`; - - if ( !statusController.state.firstSearchExecuted ) { - window.history.replaceState( null, document.title, originPath + hash ); - } else { - window.history.pushState( null, document.title, originPath + hash ); - } - } ); - - // Sync controllers when URL changes - const onHashChange = () => { - updateSearchBoxFromState = true; - urlManager.synchronize( fragment() ); - }; - - // Execute a search if parameters in the URL on page load - if ( !statusController.state.firstSearchExecuted && fragment() && fragment() !== 'q=' ) { - headlessEngine.executeFirstSearch(); - } - - // Subscribe to Headless controllers - unsubscribeSearchBoxController = searchBoxController.subscribe( () => updateSearchBoxState( searchBoxController.state ) ); - unsubscribeResultListController = resultListController.subscribe( () => updateResultListState( resultListController.state ) ); - unsubscribeQuerySummaryController = querySummaryController.subscribe( () => updateQuerySummaryState( querySummaryController.state ) ); - unsubscribeDidYouMeanController = didYouMeanController.subscribe( () => updateDidYouMeanState( didYouMeanController.state ) ); - unsubscribePagerController = pagerController.subscribe( () => updatePagerState( pagerController.state ) ); - if( params.facets?.length ) { - unsubscribeBreadcrumbManagerController = breadcrumbManagerController.subscribe( () => updateBreadcrumbState( breadcrumbManagerController.state ) ); - } - - // Clear event tracking, for legacy browsers - const onUnload = () => { - window.removeEventListener( 'hashchange', onHashChange ); - unsubscribeManager?.(); - unsubscribeSearchBoxController?.(); - unsubscribeResultListController?.(); - unsubscribeQuerySummaryController?.(); - unsubscribeDidYouMeanController?.(); - unsubscribePagerController?.(); - if( params.facets?.length ) { - unsubscribeFacetControllers.forEach( ( unsub ) => unsub?.() ); - unsubscribeDateFilterControllers.forEach( ( unsub ) => unsub?.() ); - unsubscribeBreadcrumbManagerController?.(); - } - }; - - // Listen to URL change (hash) - window.addEventListener( 'hashchange', onHashChange ); - - // Listen to page unload envent - window.addEventListener( 'unload', onUnload ); - - // Listen to "Enter" key up event for search suggestions - if ( searchBoxElement ) { - searchBoxElement.onkeydown = ( e ) => { - // Enter - if ( e.keyCode === 13 && ( activeSuggestion !== 0 && suggestionsElement && !suggestionsElement.hidden ) ) { - selectSuggestion(); - closeSuggestionsBox(); - e.preventDefault(); - } - // Escape or Tab - else if ( e.keyCode === 27 || e.keyCode === 9 ) { - closeSuggestionsBox(); - - if ( e.keyCode === 27 ) { - e.preventDefault(); - } - } - // Arrow key up - else if ( e.keyCode === 38 ) { - if ( !( isFirefox && waitForkeyUp ) ) { - waitForkeyUp = true; - searchBoxArrowKey( "up" ); - e.preventDefault(); - } - } - // Arrow key down - else if ( e.keyCode === 40 ) { - if ( !( isFirefox && waitForkeyUp ) ) { - waitForkeyUp = true; - searchBoxArrowKey( "down" ); - } - } - }; - searchBoxElement.onkeyup = ( e ) => { - waitForkeyUp = false; - lastCharKeyUp = e.keyCode; - // Keys that don't changes the input value - if ( ( e.key.length !== 1 && e.keyCode !== 46 && e.keyCode !== 8 ) || // Non-printable char except Delete or Backspace - ( e.ctrlKey && e.key !== "x" && e.key !== "X" && e.key !== "v" && e.key !== "V" ) ) { // Ctrl-key is pressed but not X or V is use - return; - } - - // Any other key - if ( searchBoxController.state.value !== e.target.value ) { - searchBoxController.updateText( stripHtml( e.target.value ) ); - } - if ( e.target.value.length < params.minimumCharsForSuggestions ){ - closeSuggestionsBox(); - } - }; - searchBoxElement.onfocus = () => { - lastCharKeyUp = null; - if ( searchBoxElement.value.length >= params.minimumCharsForSuggestions ) { - searchBoxController.showSuggestions(); - } - }; - } - - // Listen to submit event from the search form (advanced searches will instead reload the page with URl parameters to search on load) - if ( formElement ) { - formElement.onsubmit = ( e ) => { - if ( params.isAdvancedSearch ) { - return; // advanced search forces a post back - } - - e.preventDefault(); - - if ( searchBoxElement && searchBoxElement.value ) { - // Make sure we have the latest value in the search box state - if( searchBoxController.state.value !== searchBoxElement.value ) { - searchBoxController.updateText( stripHtml( searchBoxElement.value ) ); - } - searchBoxController.submit(); - } - else { - resultListElement.textContent = ""; - querySummaryElement.textContent = ""; - didYouMeanElement.textContent = ""; - pagerElement.textContent = ""; - pagerManuallyCleared = true; - updateFacetLayoutVisibility(true); - - // Show no results message in Query Summary if no query entered - querySummaryElement.innerHTML = noResultTemplateHTML; - focusToView(); - } - }; - } -} - -// Show error message in Query Summary -function showQueryErrorMessage() { - if( !document.getElementById( resultSectionID ) ) { - baseElement.prepend( resultsSection ); - } - if ( !querySummaryElement ) { - return; - } - - querySummaryElement.textContent = ""; - querySummaryElement.innerHTML = resultErrorTemplateHTML; - focusToView(); - pagerManuallyCleared = false; -} - -function searchBoxArrowKey( direction ) { - if ( suggestionsElement.hidden ) { - return; - } - - if ( direction === "up" ) { - if ( !activeSuggestion || activeSuggestion <= 1 ) { - activeSuggestion = searchBoxState.suggestions.length; - } - else { - activeSuggestion -= 1; - } - } else { - if ( !activeSuggestion || activeSuggestion >= searchBoxState.suggestions.length ) { - activeSuggestion = 1; - } - else { - activeSuggestion += 1; - } - } - - updateSuggestionSelection(); -} - -// Select the active suggestion -function selectSuggestion() { - let suggestionElement = document.getElementById( 'suggestion-' + activeSuggestion ); - - if ( suggestionElement ) { - const selectedVal = stripHtml( suggestionElement.innerText ); - - if ( searchBoxController.state.value !== selectedVal ) { - searchBoxController.selectSuggestion( selectedVal ); - searchBoxElement.value = selectedVal; - } - } -} - -// open the suggestions box -function openSuggestionsBox() { - suggestionsElement.hidden = false; - searchBoxElement.setAttribute( 'aria-expanded', 'true' ); -} - -// close the suggestions box -function closeSuggestionsBox() { - if( !suggestionsElement ) { - return; - } - suggestionsElement.hidden = true; - activeSuggestion = 0; - searchBoxElement.setAttribute( 'aria-expanded', 'false' ); - searchBoxElement.removeAttribute( 'aria-activedescendant' ); -} - -// Toggle the facet sidebar between expanded and collapsed -function toggleFacetSidebar() { - if ( !facetSidebarElement || !facetPanelElement ) { - return; - } - - const toggleBtn = document.getElementById( 'gc-facet-toggle' ); - const resultsCol = document.getElementById( 'gc-results-col' ); - const isExpanded = toggleBtn?.getAttribute( 'aria-expanded' ) === 'true'; - - if ( isExpanded ) { - facetSidebarElement.hidden = true; - toggleBtn?.setAttribute( 'aria-expanded', 'false' ); - resultsCol?.classList.remove( 'col-md-8' ); - resultsCol?.classList.add( 'col-md-12' ); - } else { - facetSidebarElement.hidden = false; - toggleBtn?.setAttribute( 'aria-expanded', 'true' ); - resultsCol?.classList.remove( 'col-md-12' ); - resultsCol?.classList.add( 'col-md-8' ); - } - - saveFacetUIState(); -} - -// Update the visual selection of the active suggestion -function updateSuggestionSelection() { - // clear current suggestion - let activeSelection = suggestionsElement.getElementsByClassName( 'selected-suggestion' ); - let selectedSuggestionId = 'suggestion-' + activeSuggestion; - let suggestionElement = document.getElementById( selectedSuggestionId ); - Array.prototype.forEach.call(activeSelection, function( suggestion ) { - suggestion.classList.remove( 'selected-suggestion' ); - suggestion.setAttribute( 'aria-selected', "false" ); - }); - - suggestionElement.classList.add( 'selected-suggestion' ); - suggestionElement.setAttribute( 'aria-selected', "true" ); - searchBoxElement.setAttribute( 'aria-activedescendant', selectedSuggestionId ); -} - -// Update the search box state after search actions - used for QS -function updateSearchBoxState( newState ) { - const previousState = searchBoxState; - searchBoxState = newState; - - // Show query suggestions if a search action was not executed (if enabled) - if ( updateSearchBoxFromState && searchBoxElement && searchBoxElement.value !== newState.value ) { - searchBoxElement.value = stripHtml( newState.value ); - updateSearchBoxFromState = false; - return; - } - - if ( !suggestionsElement ) { - return; - } - - if ( lastCharKeyUp === 13 ) { - closeSuggestionsBox(); - return; - } - - // Build suggestions list - activeSuggestion = 0; - if ( !searchBoxState.isLoadingSuggestions && previousState?.isLoadingSuggestions ) { - suggestionsElement.textContent = ''; - searchBoxState.suggestions.forEach( ( suggestion, index ) => { - const currentIndex = index + 1; - const suggestionId = "suggestion-" + currentIndex; - const node = document.createElement( "li" ); - node.setAttribute( "class", "suggestion-item" ); - node.setAttribute( "aria-selected", "false" ); - node.setAttribute( "aria-setsize", searchBoxState.suggestions.length ); - node.setAttribute( "aria-posinset", currentIndex ); - node.role = "option"; - node.id = suggestionId; - node.onmouseenter = () => { - activeSuggestion = index + 1; - updateSuggestionSelection(); - }; - node.onclick = ( e ) => { - searchBoxController.selectSuggestion( e.currentTarget.innerText ); - searchBoxElement.value = stripHtml( e.currentTarget.innerText ); - }; - node.innerHTML = DOMPurify.sanitize( suggestion.highlightedValue ); - suggestionsElement.appendChild( node ); - }); - - if ( !searchBoxState.isLoading && searchBoxState.suggestions.length > 0 && searchBoxState.value.length >= params.minimumCharsForSuggestions ) { - openSuggestionsBox(); - } - else{ - closeSuggestionsBox(); - } - } -} - -// Update results list -function updateResultListState( newState ) { - resultListState = newState; - - if ( resultListState.isLoading ) { - if ( suggestionsElement ) { - closeSuggestionsBox(); - } - return; - } - - // Clear results list - resultListElement.textContent = ""; - - // Rebuild results list - if( !resultListState.hasError && resultListState.hasResults ) { - - if( !document.getElementById( resultSectionID ) ) { - baseElement.prepend( resultsSection ); - } - - resultListState.results.forEach( ( result, index ) => { - const sectionNode = document.createElement( "section" ); - const highlightedExcerpt = HighlightUtils.highlightString( { - content: result.excerpt, - highlights: result.excerptHighlights, - openingDelimiter: '', - closingDelimiter: '', - } ); - - const resultDate = new Date( result.raw.date ); - let author = ""; - - if( result.raw.author ) { - if( Array.isArray( result.raw.author ) ) { - author = stripHtml( result.raw.author.join( ';' ) ); - } - else { - author = stripHtml( result.raw.author ); - } - - author = author.replaceAll( ';' , '
  • ' ); - } - - let breadcrumb = ""; - let disp_declared_type = ""; - let description = ""; - let printableUri = encodeURI( result.printableUri ); - let clickUri = encodeURI( result.clickUri ); - let title = stripHtml( result.title ); - - printableUri = printableUri.replaceAll( '&' , '&' ); - printableUri = printableUri.replaceAll( '%252F' , '/' ); // handle slash - printableUri = printableUri.replaceAll( "%252C" , "," ); // handle comma - clickUri = clickUri.replaceAll( "%252C" , "%2C" ); // handle comma - clickUri = clickUri.replaceAll( "%252F" , "%2F" ); // handle slash - - if ( result.raw.hostname && result.raw.displaynavlabel ) { - const splittedNavLabel = ( Array.isArray( result.raw.displaynavlabel ) ? result.raw.displaynavlabel[0] : result.raw.displaynavlabel).split( '>' ); - const hostname = stripHtml( result.raw.hostname ); - const lastBreadcrumb = stripHtml( splittedNavLabel[splittedNavLabel.length-1] ); - - // If the hostname is already part of the breadcrumb, just show the hostname - breadcrumb = '
      '; - if ( lastBreadcrumb.indexOf(hostname) > -1 ){ - breadcrumb += '
    1. ' + hostname + '
    2. '; - } else { - breadcrumb += '
    3. ' + hostname + ' 
    4. ' + lastBreadcrumb + '
    5. '; - } - breadcrumb += '
    '; - } else { - breadcrumb = '

    ' + printableUri + '

    '; - } - - if ( result.raw.disp_declared_type ) { - disp_declared_type = stripHtml( result.raw.disp_declared_type ); - } - if ( result.raw.description ) { - description = stripHtml( result.raw.description ); - } - - // Searh result template mappings - sectionNode.innerHTML = resultTemplateHTML - .replace( '%[index]', index + 1 ) - .replace( 'https://www.canada.ca', filterProtocol( clickUri ) ) // invalid href are stripped - .replace( '%[result.clickUri]', filterProtocol( clickUri ) ) - .replace( '%[result.title]', title ) - .replace( '%[result.raw.author]', author ) - .replace( '%[result.breadcrumb]', breadcrumb ) - .replace( '%[result.printableUri]', printableUri ) - .replace( '%[result.raw.disp_declared_type]', disp_declared_type ) - .replace( '%[result.raw.description]', description ) - .replaceAll( '%[short-date-en]', isEmptyDate(resultDate) ? '' : getShortDateFormat( resultDate ) ) - .replaceAll( '%[short-date-fr]', isEmptyDate(resultDate) ? '' : getShortDateFormat( resultDate ) ) - .replace( '%[long-date-en]', isEmptyDate(resultDate) ? '' : getLongDateFormat( resultDate, 'en' ) ) - .replace( '%[long-date-fr]', isEmptyDate(resultDate) ? '' : getLongDateFormat( resultDate, 'fr' ) ) - .replace( '%[highlightedExcerpt]', highlightedExcerpt ); - - const interactiveResult = buildInteractiveResult( - headlessEngine, { - options: { result }, - } - ); - - let resultLink = sectionNode.querySelector( ".result-link" ); - - resultLink.onclick = () => { interactiveResult.select(); }; - resultLink.oncontextmenu = () => { interactiveResult.select(); }; - resultLink.onmousedown = () => { interactiveResult.select(); }; - resultLink.onmouseup = () => { interactiveResult.select(); }; - resultLink.ontouchstart = () => { interactiveResult.beginDelayedSelect(); }; - resultLink.ontouchend = () => { interactiveResult.cancelPendingSelect(); }; - - resultListElement.appendChild( sectionNode ); - } ); - } -} - -// Update heading that has number of results displayed (Query Summary) -function updateQuerySummaryState( newState ) { - querySummaryState = newState; - - if ( resultListState.firstSearchExecuted && !querySummaryState.isLoading && !querySummaryState.hasError ) { - - if ( !querySummaryElement ) { - return; - } - if( !document.getElementById( resultSectionID ) ) { - baseElement.prepend( resultsSection ); - } - querySummaryElement.textContent = ""; - if ( querySummaryState.total > 0 ) { - // Manually ask pager to redraw since even is not sent when manually cleared - if ( pagerManuallyCleared ) { - updatePagerState( pagerState ); - } - - let numberOfResults = querySummaryState.total.toLocaleString( params.lang ); - - // Generate the text content - const querySummaryHTML = ( ( querySummaryState.query !== "" && !params.isAdvancedSearch ) ? querySummaryTemplateHTML : noQuerySummaryTemplateHTML ) - .replace( '%[numberOfResults]', numberOfResults ) - .replace( '%[query]', '' ) - .replace( '%[queryDurationInSeconds]', querySummaryState.durationInSeconds.toLocaleString( params.lang ) ); - - querySummaryElement.innerHTML = querySummaryHTML; - - const queryElement = querySummaryElement.querySelector( '.sr-query' ); - if ( queryElement ){ - queryElement.textContent = querySummaryState.query; - } - } else { - querySummaryElement.innerHTML = noResultTemplateHTML; - } - focusToView(); - pagerManuallyCleared = false; - } - else if ( querySummaryState.hasError ) { - showQueryErrorMessage(); - } -} - -function formatBreadcrumbLabel( breadcrumb ) { - const { start, end, value } = breadcrumb.value ?? {}; - const formatCoveoDate = ( coveoDate ) => coveoDate ? coveoDate.split( '@' )[ 0 ].replace( /\//g, '-' ) : ""; - - if ( start !== undefined && end !== undefined ) { - const rangeLabel = localizedStrings[ params.lang ].get( `date-ranges.${ start }|${ end }` ); - if ( rangeLabel ) { - return rangeLabel; - } else if ( start === 'past-100-year' ) { - return localizedStrings[ params.lang ].get( "date-ranges.before" ).replace( '{{date}}', formatCoveoDate( end ) ); - } else if ( end === 'now' ) { - return localizedStrings[ params.lang ].get( "date-ranges.after" ).replace( '{{date}}', formatCoveoDate( start ) ); - } else { - return `${ formatCoveoDate( start ) } - ${ formatCoveoDate( end ) }`; - } - } - return value ?? ""; -} - -function renderBreadcrumbItemHTML( facetLabel, breadcrumb ) { - const displayValue = formatBreadcrumbLabel( breadcrumb ); - const label = `${ facetLabel }: ${ displayValue }`; - return breadcrumbItemTemplateHTML - .replace( '%[ariaLabel]', label ) - .replace( '%[label]', label ); -} - -// Update breadcrumb (active filter) display -function updateBreadcrumbState( newState ) { - if ( !breadcrumbElement ) return; - - const facetBreadcrumbs = newState.facetBreadcrumbs || []; - const dateFacetBreadcrumbs = newState.dateFacetBreadcrumbs || []; - const allBreadcrumbs = [ ...facetBreadcrumbs, ...dateFacetBreadcrumbs ]; - - if ( allBreadcrumbs.length === 0 ) { - breadcrumbElement.hidden = true; - breadcrumbElement.textContent = ""; - return; - } - - const itemsHTML = allBreadcrumbs.map( ( facet ) => { - const configMatch = facetNormalizedConfigs.find( ( c ) => c.facetId === facet.facetId || c.field === facet.field ); - const facetLabel = configMatch?.label || facet.facetDisplayName || facet.field; - return facet.values.map( ( breadcrumb ) => renderBreadcrumbItemHTML( facetLabel, breadcrumb ) ).join( '' ); - } ).join( '' ); - - breadcrumbElement.hidden = false; - breadcrumbElement.innerHTML = breadcrumbListTemplateHTML - .replace( '%[filtersLabel]', localizedStrings[ params.lang ].get( 'breadbox.filters' ) ) - .replace( '%[items]', itemsHTML ) - .replace( '%[clearLabel]', localizedStrings[ params.lang ].get( 'breadbox.clear' ) ); - - // Attach deselect handlers to each breadcrumb button by index - const allValues = allBreadcrumbs.flatMap( ( facet ) => facet.values ); - breadcrumbElement.querySelectorAll( '.btn-default' ).forEach( ( btn, i ) => { - btn.onclick = () => { allValues[ i ].deselect(); }; - } ); - - breadcrumbElement.querySelector( '.btn-link' ).onclick = () => { breadcrumbManagerController.deselectAll(); }; -} - -// update "Did you mean" recommendation -function updateDidYouMeanState( newState ) { - didYouMeanState = newState; - - if ( !didYouMeanElement ) - return; - - if ( resultListState.firstSearchExecuted ) { - didYouMeanElement.textContent = ""; - if ( didYouMeanState.hasQueryCorrection ) { - didYouMeanElement.innerHTML = didYouMeanTemplateHTML.replace( - '%[correctedQuery]', - stripHtml( didYouMeanState.queryCorrection.correctedQuery ) ); - const buttonNode = didYouMeanElement.querySelector( 'button' ); - buttonNode.onclick = ( e ) => { - updateSearchBoxFromState = true; - didYouMeanController.applyCorrection(); - e.preventDefault(); - }; - } - } -} - -// Update Pagination section -function updatePagerState( newState ) { - pagerState = newState; - if ( pagerState.maxPage === 0 ) { - pagerElement.textContent = ""; - return; - } - else if ( pagerElement.textContent === "" ) { - pagerElement.innerHTML = pagerContainerTemplateHTML; - } - - let prevLiNode = document.createElement( "li" ), - nextLiNode = document.createElement( "li" ), - pagerComponentElement = pagerElement.querySelector( "#pager" ); - - pagerComponentElement.textContent = ""; - prevLiNode.innerHTML = previousPageTemplateHTML; - nextLiNode.innerHTML = nextPageTemplateHTML; - - if ( !pagerState.hasPreviousPage ) { - prevLiNode.classList.add( "disabled" ); - } - - if ( !pagerState.hasNextPage ) { - nextLiNode.classList.add( "disabled" ); - } - - prevLiNode.querySelector( "button" ).onclick = () => { - pagerController.previousPage(); - - if ( params.isAdvancedSearch ) { - updatePagerUrlParam( pagerState.currentPage ); - } - }; - - nextLiNode.querySelector( "button" ).onclick = () => { - pagerController.nextPage(); - - if ( params.isAdvancedSearch ) { - updatePagerUrlParam( pagerState.currentPage ); - } - }; - - pagerComponentElement.appendChild( prevLiNode ); - - pagerState.currentPages.forEach( ( page ) => { - const liNode = document.createElement( "li" ); - const pageNo = page; - - liNode.innerHTML = pageTemplateHTML.replaceAll( '%[page]', stripHtml( pageNo ) ); - - if ( pagerState.currentPage - 1 > page || page > pagerState.currentPage + 1 ) { - liNode.classList.add( 'hidden-xs', 'hidden-sm' ); - if ( pagerState.currentPage - 2 > page || page > pagerState.currentPage + 2 ) { - liNode.classList.add( 'hidden-md' ); - } - } - - const buttonNode = liNode.querySelector( 'button' ); - - if ( page === pagerState.currentPage ) { - liNode.classList.add( "active" ); - buttonNode.setAttribute( "aria-current", "page" ); - } - - buttonNode.onclick = () => { - pagerController.selectPage( pageNo ); - - if ( params.isAdvancedSearch ) { - updatePagerUrlParam( pagerState.currentPage ); - } - }; - - pagerComponentElement.appendChild( liNode ); - } ); - - pagerComponentElement.appendChild( nextLiNode ); -} - -// Rebuild a single facet's DOM inside the facet panel -function announceFacetChange( message ) { - const liveEl = document.getElementById( 'gc-facet-live' ); - if ( !liveEl ) { return; } - liveEl.textContent = ''; - // Brief timeout ensures screen readers detect the content change - setTimeout( () => { liveEl.textContent = message; }, 50 ); -} - -function renderFacetSummaryHTML( label, hasActive ) { - return facetSummaryTemplateHTML - .replace( '%[labelId]', label.toLowerCase().replace( /\s+/g, '-' ) ) - .replace( '%[label]', label ) - .replace( '%[clearBtn]', hasActive ? facetClearFilterTemplateHTML : '' ); -} - -// Returns HTML string for a single facet value
  • . -function renderFacetItemHTML( label, count, isSelected ) { - return facetItemTemplateHTML - .replace( '%[checked]', isSelected ? 'checked' : '' ) - .replace( '%[label]', label ) - .replace( '%[count]', count.toLocaleString( lang ) ); -} - -function updateFacetState( index, newState ) { - facetStates[ index ] = newState; - - if ( !facetPanelElement || newState.isLoading ) { - return; - } - - const config = facetNormalizedConfigs[ index ]; - const facetEl = document.getElementById( 'gc-facet-' + config.facetId ); - - if ( !facetEl ) { - return; - } - - facetEl.hidden = newState.values.length === 0; - if ( facetEl.hidden ) { - updateFacetLayoutVisibility(); - return; - } - - // Preserve search focus and open/closed state across re-renders - const searchInputId = 'gc-facet-search-' + index; - const wasSearchFocused = document.activeElement?.id === searchInputId; - const wasOpen = facetEl.open; - - // Facet search input (only if the controller exposes facetSearch) - // facetSearch methods live on the sub-controller; state is nested in newState.facetSearch - const facetSearch = facetControllers[ index ].facetSearch; - const facetSearchState = newState.facetSearch; - const isSearching = ( facetSearchState?.query?.length ?? 0 ) > 0; - - const listId = 'gc-facet-values-' + index; - const labelId = 'gc-facet-label-' + config.label.toLowerCase().replace( /\s+/g, '-' ); - const isFr = lang === 'fr'; - - // Values list — show facet search results when a query is active, otherwise regular values - const itemsHTML = isSearching ? - facetSearchState.values.map( ( r ) => renderFacetItemHTML( stripHtml( r.displayValue ), r.count, false ) ).join( '' ) : - newState.values.map( ( v ) => renderFacetItemHTML( stripHtml( v.value ), v.numberOfResults, v.state === 'selected' ) ).join( '' ); - - // When the user is actively typing in the search box, only patch the values list - // in-place rather than tearing down and rebuilding the whole facet — otherwise the - // search results update destroys the focused input and moves focus / resets its value. - if ( wasSearchFocused && config.facetSearch && facetSearchState ) { - const listEl = facetEl.querySelector( '#' + listId ); - if ( listEl ) { - listEl.innerHTML = itemsHTML; - listEl.querySelectorAll( 'input[type="checkbox"]' ).forEach( ( checkbox, i ) => { - checkbox.onchange = () => { facetSearch.select( facetSearchState.values[ i ] ); }; - } ); - return; - } - } - - const searchHTML = config.facetSearch && facetSearchState ? - facetSearchInputTemplateHTML - .replace( '%[id]', searchInputId ) - .replace( '%[facetLabel]', config.label ) - .replace( '%[value]', '' ) : - ''; - - facetEl.innerHTML = - renderFacetSummaryHTML( config.label, newState.hasActiveValues ) + - searchHTML + - `
      ${ itemsHTML }
    ` + - facetShowMoreTemplateHTML.replace( '%[listId]', listId ) + - facetShowLessTemplateHTML.replace( '%[listId]', listId ); - - const showMoreBtn = facetEl.querySelector( '.gc-facet-show-more' ); - const showLessBtn = facetEl.querySelector( '.gc-facet-show-less' ); - if ( isSearching || !newState.canShowMoreValues ) { showMoreBtn.hidden = true; } - if ( isSearching || !newState.canShowLessValues ) { showLessBtn.hidden = true; } - - facetEl.open = wasOpen; - - // Attach event handlers - if ( newState.hasActiveValues ) { - facetEl.querySelector( '.gc-facet-clear' ).onclick = ( e ) => { e.stopPropagation(); facetControllers[ index ].deselectAll(); }; - } - - if ( config.facetSearch && facetSearchState ) { - const searchInput = facetEl.querySelector( '#' + searchInputId ); - searchInput.oninput = () => { - clearTimeout( facetSearchTimers[ index ] ); - const query = searchInput.value; - if ( query.length >= 2 ) { - facetSearchTimers[ index ] = setTimeout( () => { - facetSearch.updateText( query ); - facetSearch.search(); - }, 300 ); - } else { - facetSearch.updateText( '' ); - } - }; - if ( wasSearchFocused ) { searchInput.focus(); } - } - - facetEl.querySelectorAll( '.gc-facet-values input[type="checkbox"]' ).forEach( ( checkbox, i ) => { - if ( isSearching ) { - checkbox.onchange = () => { facetSearch.select( facetSearchState.values[ i ] ); }; - } else { - checkbox.onchange = () => { facetControllers[ index ].toggleSelect( newState.values[ i ] ); }; - } - } ); - - showMoreBtn.onclick = () => { facetControllers[ index ].showMoreValues(); }; - showLessBtn.onclick = () => { facetControllers[ index ].showLessValues(); }; - - if ( newState.hasActiveValues ) { - const activeLabels = newState.values.filter( ( v ) => v.state === 'selected' ).map( ( v ) => v.value ).join( ', ' ); - announceFacetChange( isFr ? `Filtre actif\u00a0: ${activeLabels}` : `Filter active: ${activeLabels}` ); - } - - updateFacetLayoutVisibility(); - updateClearAllVisibility(); -} - -function updateFacetLayoutVisibility(forceHidden = false) { - const toggleBtn = document.getElementById( 'gc-facet-toggle' ); - const resultsCol = document.getElementById( 'gc-results-col' ); - if ( !toggleBtn || !facetSidebarElement || !resultsCol ) { return; } - - const hasFacetContent = facetStates.some( ( s ) => s?.values?.length > 0 ); - - if ( !hasFacetContent || forceHidden ) { - toggleBtn.hidden = true; - facetSidebarElement.hidden = true; - resultsCol.classList.remove( 'col-md-8' ); - resultsCol.classList.add( 'col-md-12' ); - } else { - toggleBtn.hidden = false; - const isExpanded = toggleBtn.getAttribute( 'aria-expanded' ) === 'true'; - facetSidebarElement.hidden = !isExpanded; - if ( isExpanded ) { - resultsCol.classList.remove( 'col-md-12' ); - resultsCol.classList.add( 'col-md-8' ); - } - } -} - -// Rebuild the DOM for a date range facet (predefined periods + custom date pickers) -function updateDateFacetState( index, dateFacetState, dateFilterState ) { - facetStates[ index ] = dateFacetState; - dateFilterStates[ index ] = dateFilterState; - - if ( !facetPanelElement || dateFacetState.isLoading ) { - return; - } - - const config = facetNormalizedConfigs[ index ]; - const facetEl = document.getElementById( 'gc-facet-' + config.facetId ); - if ( !facetEl ) { - return; - } - - facetEl.hidden = dateFacetState.values.length === 0 || ( !config.withDatePicker && !config.withDateRanges ); - if ( facetEl.hidden ) { - updateFacetLayoutVisibility(); - return; - } - - const isFr = lang === 'fr'; - const todayStr = new Date().toISOString().slice( 0, 10 ); - const wasOpen = facetEl.open; - - const startId = 'gc-facet-date-start-' + index; - const endId = 'gc-facet-date-end-' + index; - const hasActive = dateFacetState.hasActiveValues || dateFilterState.range; - - // --- Custom date pickers (above the list) --- - let datePickerHTML = ''; - if ( config.withDatePicker ) { - datePickerHTML = facetDatePickerTemplateHTML - .replaceAll( '%[startId]', startId ) - .replaceAll( '%[endId]', endId ) - .replaceAll( '%[today]', todayStr ); - } - - // --- Predefined date range list --- - let dateRangesHTML = ''; - const reversedValues = [ ...dateFacetState.values ].reverse(); - if ( config.withDateRanges ) { - const itemsHTML = reversedValues.map( ( value, i ) => { - const period = getDateFacetFields()[ i ]; - if ( !period ) { return ''; } - return renderFacetItemHTML( localizedStrings[ lang ].get( period.labelKey ), value.numberOfResults, value.state === 'selected' ); - } ).join( '' ); - dateRangesHTML = `
      ${ itemsHTML }
    `; - } - - facetEl.innerHTML = - renderFacetSummaryHTML( config.label, hasActive ) + - datePickerHTML + - dateRangesHTML; - - facetEl.open = wasOpen; - - if ( config.withDatePicker && !dateFilterState.range ) { - facetEl.querySelector( '.gc-date-clear' ).hidden = true; - } - - // Attach event handlers - if ( hasActive ) { - facetEl.querySelector( '.gc-facet-clear' ).onclick = ( e ) => { - e.stopPropagation(); - facetControllers[ index ].deselectAll(); - dateFilterControllers[ index ].clear(); - }; - } - - if ( config.withDatePicker ) { - const startInput = facetEl.querySelector( '#' + startId ); - const endInput = facetEl.querySelector( '#' + endId ); - - startInput.onchange = () => { if ( startInput.value ) { endInput.min = startInput.value; } }; - endInput.onchange = () => { if ( endInput.value ) { startInput.max = endInput.value; } }; - - // Pre-populate inputs if a custom filter is already active, skipping sentinel values - if ( dateFilterState.range ) { - const rangeStart = coveoDateToInputDate( dateFilterState.range.start ); - const rangeEnd = coveoDateToInputDate( dateFilterState.range.end ); - if ( rangeStart !== '1970-01-01' ) { startInput.value = rangeStart; } - if ( rangeEnd !== todayStr ) { endInput.value = rangeEnd; } - if ( startInput.value ) { endInput.min = startInput.value; } - if ( endInput.value ) { startInput.max = endInput.value; } - } - - facetEl.querySelector( '.gc-date-apply' ).onclick = () => { - let startVal = startInput.value; - let endVal = endInput.value; - if ( startVal || endVal ) { - // Swap if end is before start - if ( startVal && endVal && endVal < startVal ) { - [ startVal, endVal ] = [ endVal, startVal ]; - startInput.value = startVal; - endInput.value = endVal; - } - // Clear predefined range selection before applying custom filter - facetControllers[ index ].deselectAll(); - dateFilterControllers[ index ].setRange( { - start: startVal ? inputDateToCoveoDate( startVal, false ) : 'past-100-year', - end: endVal ? inputDateToCoveoDate( endVal, true ) : 'now', - } ); - } - }; - - facetEl.querySelector( '.gc-date-clear' ).onclick = () => { - startInput.value = ''; - endInput.value = ''; - startInput.max = todayStr; - endInput.min = ''; - dateFilterControllers[ index ].clear(); - }; - } - - if ( config.withDateRanges ) { - facetEl.querySelectorAll( '.gc-facet-values input[type="checkbox"]' ).forEach( ( checkbox, i ) => { - const value = reversedValues[ i ]; - const period = getDateFacetFields()[ i ]; - const isSelected = value.state === 'selected'; - - // Sync date picker inputs when a predefined range is selected - if ( config.withDatePicker && isSelected && period ) { - const rangeStart = resolveRangeEndpointToInputDate( period.range.start ); - const rangeEnd = resolveRangeEndpointToInputDate( period.range.end ); - const startEl = facetEl.querySelector( '#' + startId ); - const endEl = facetEl.querySelector( '#' + endId ); - if ( startEl ) { startEl.value = rangeStart !== '1970-01-01' ? rangeStart : ''; } - if ( endEl ) { endEl.value = rangeEnd !== todayStr ? rangeEnd : ''; } - } - - checkbox.onchange = () => { - dateFilterControllers[ index ].clear(); - facetControllers[ index ].deselectAll(); - // Only re-select if it wasn't already selected (deselect = just clear) - if ( !isSelected ) { - facetControllers[ index ].toggleSelect( value ); - } - }; - } ); - } - - if ( hasActive ) { - announceFacetChange( isFr ? `Filtre de date actif\u00a0: ${ config.label }` : `Date filter active: ${ config.label }` ); - } - - updateFacetLayoutVisibility(); - updateClearAllVisibility(); -} - -function updateClearAllVisibility() { - const clearAllContainer = document.getElementById( 'gc-facet-clear-all-container' ); - if ( clearAllContainer ) { - clearAllContainer.hidden = !facetStates.some( ( s ) => s?.hasActiveValues ) && !dateFilterStates.some( ( s ) => s?.range ); - } -} - -// Update the URL parameter for pagination in advanced search mode -function updatePagerUrlParam( currentPage ) { - const resultsPerPage = buildResultsPerPage(headlessEngine); - const { numberOfResults } = resultsPerPage.state; - const urlParams = new URLSearchParams( winLoc.search ); - const paramName = 'firstResult'; - const pageNum = ( currentPage - 1 ) * numberOfResults; - - // Set the value of the parameter. If it doesn't exist, it will be added. - urlParams.set( paramName, pageNum ); - - const newSearch = urlParams.toString(); - window.history.replaceState( {}, '', `${winPath}?${newSearch}${winLoc.hash}` ); -} - -// Run Search UI -initSearchUI(); diff --git a/netlify/src/headless.esm.js b/netlify/src/headless.esm.js deleted file mode 100644 index d45cfb0..0000000 --- a/netlify/src/headless.esm.js +++ /dev/null @@ -1,59 +0,0 @@ -/** - * @license - * - * Copyright 2024 Coveo Solutions Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -var UA=Object.create;var sc=Object.defineProperty;var _A=Object.getOwnPropertyDescriptor;var $A=Object.getOwnPropertyNames;var HA=Object.getPrototypeOf,GA=Object.prototype.hasOwnProperty;var Ym=e=>sc(e,"__esModule",{value:!0});var zA=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(t,r)=>(typeof require!="undefined"?require:t)[r]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var pe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Km=(e,t)=>{Ym(e);for(var r in t)sc(e,r,{get:t[r],enumerable:!0})},R=(e,t,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of $A(t))!GA.call(e,a)&&a!=="default"&&sc(e,a,{get:()=>t[a],enumerable:!(r=_A(t,a))||r.enumerable});return e},Ie=e=>R(Ym(sc(e!=null?UA(HA(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var lp=pe((pV,Qr)=>{function up(e){return Qr.exports=up=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qr.exports.__esModule=!0,Qr.exports.default=Qr.exports,up(e)}Qr.exports=up,Qr.exports.__esModule=!0,Qr.exports.default=Qr.exports});var pg=pe((fV,Wi)=>{var dg=lp().default;function ab(e,t){if(dg(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(dg(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}Wi.exports=ab,Wi.exports.__esModule=!0,Wi.exports.default=Wi.exports});var fg=pe((mV,Yi)=>{var nb=lp().default,ob=pg();function ib(e){var t=ob(e,"string");return nb(t)=="symbol"?t:String(t)}Yi.exports=ib,Yi.exports.__esModule=!0,Yi.exports.default=Yi.exports});var mg=pe((gV,Ki)=>{var sb=fg();function cb(e,t,r){return t=sb(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Ki.exports=cb,Ki.exports.__esModule=!0,Ki.exports.default=Ki.exports});var hg=pe((hV,Ji)=>{var ub=mg();function gg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function lb(e){for(var t=1;t{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});var db=hg();function pb(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var Sg=pb(db);function je(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var yg=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),dp=function(){return Math.random().toString(36).substring(7).split("").join(".")},Xi={INIT:"@@redux/INIT"+dp(),REPLACE:"@@redux/REPLACE"+dp(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+dp()}};function fb(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function pp(e,t,r){var a;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(je(0));if(typeof t=="function"&&typeof r=="undefined"&&(r=t,t=void 0),typeof r!="undefined"){if(typeof r!="function")throw new Error(je(1));return r(pp)(e,t)}if(typeof e!="function")throw new Error(je(2));var n=e,o=t,i=[],s=i,c=!1;function u(){s===i&&(s=i.slice())}function l(){if(c)throw new Error(je(3));return o}function d(g){if(typeof g!="function")throw new Error(je(4));if(c)throw new Error(je(5));var S=!0;return u(),s.push(g),function(){if(!!S){if(c)throw new Error(je(6));S=!1,u();var x=s.indexOf(g);s.splice(x,1),i=null}}}function p(g){if(!fb(g))throw new Error(je(7));if(typeof g.type=="undefined")throw new Error(je(8));if(c)throw new Error(je(9));try{c=!0,o=n(o,g)}finally{c=!1}for(var S=i=s,y=0;y{"use strict";function hF(e){try{return JSON.stringify(e)}catch{return'"[Circular]"'}}ph.exports=SF;function SF(e,t,r){var a=r&&r.stringify||hF,n=1;if(typeof e=="object"&&e!==null){var o=t.length+n;if(o===1)return e;var i=new Array(o);i[0]=a(e);for(var s=1;s-1?d:0,e.charCodeAt(f+1)){case 100:case 102:if(l>=c||t[l]==null)break;d=c||t[l]==null)break;d=c||t[l]===void 0)break;d",d=f+2,f++;break}u+=a(t[l]),d=f+2,f++;break;case 115:if(l>=c)break;d{"use strict";var mh=fh();vc.exports=Ur;var cs=qF().console||{},yF={mapHttpRequest:xc,mapHttpResponse:xc,wrapRequestSerializer:Op,wrapResponseSerializer:Op,wrapErrorSerializer:Op,req:xc,res:xc,err:hh,errWithCause:hh};function yc(e,t){return e==="silent"?1/0:t.levels.values[e]}var Ip=Symbol("pino.logFuncs"),Ep=Symbol("pino.hierarchy"),CF={error:"log",fatal:"error",warn:"error",info:"log",debug:"log",trace:"log"};function gh(e,t){let r={logger:t,parent:e[Ep]};t[Ep]=r}function xF(e,t,r){let a={};t.forEach(n=>{a[n]=r[n]?r[n]:cs[n]||cs[CF[n]||"log"]||us}),e[Ip]=a}function vF(e,t){return Array.isArray(e)?e.filter(function(a){return a!=="!stdSerializers.err"}):e===!0?Object.keys(t):!1}function Ur(e){e=e||{},e.browser=e.browser||{};let t=e.browser.transmit;if(t&&typeof t.send!="function")throw Error("pino: transmit option must have a send function");let r=e.browser.write||cs;e.browser.write&&(e.browser.asObject=!0);let a=e.serializers||{},n=vF(e.browser.serialize,a),o=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf("!stdSerializers.err")>-1&&(o=!1);let i=Object.keys(e.customLevels||{}),s=["error","fatal","warn","info","debug","trace"].concat(i);typeof r=="function"&&s.forEach(function(g){r[g]=r}),(e.enabled===!1||e.browser.disabled)&&(e.level="silent");let c=e.level||"info",u=Object.create(r);u.log||(u.log=us),xF(u,s,r),gh({},u),Object.defineProperty(u,"levelVal",{get:d}),Object.defineProperty(u,"level",{get:p,set:f});let l={transmit:t,serialize:n,asObject:e.browser.asObject,formatters:e.browser.formatters,levels:s,timestamp:EF(e)};u.levels=AF(e),u.level=c,u.setMaxListeners=u.getMaxListeners=u.emit=u.addListener=u.on=u.prependListener=u.once=u.prependOnceListener=u.removeListener=u.removeAllListeners=u.listeners=u.listenerCount=u.eventNames=u.write=u.flush=us,u.serializers=a,u._serialize=n,u._stdErrSerialize=o,u.child=m,t&&(u._logEvent=kp());function d(){return yc(this.level,this)}function p(){return this._level}function f(g){if(g!=="silent"&&!this.levels.values[g])throw Error("unknown level "+g);this._level=g,Wa(this,l,u,"error"),Wa(this,l,u,"fatal"),Wa(this,l,u,"warn"),Wa(this,l,u,"info"),Wa(this,l,u,"debug"),Wa(this,l,u,"trace"),i.forEach(S=>{Wa(this,l,u,S)})}function m(g,S){if(!g)throw new Error("missing bindings for child Pino");S=S||{},n&&g.serializers&&(S.serializers=g.serializers);let y=S.serializers;if(n&&y){var x=Object.assign({},a,y),b=e.browser.serialize===!0?Object.keys(x):n;delete g.serializers,Cc([g],b,x,this._stdErrSerialize)}function P(H){this._childLevel=(H._childLevel|0)+1,this.bindings=g,x&&(this.serializers=x,this._serialize=b),t&&(this._logEvent=kp([].concat(H._logEvent.bindings,g)))}P.prototype=this;let N=new P(this);return gh(this,N),N.level=this.level,N}return u}function AF(e){let t=e.customLevels||{},r=Object.assign({},Ur.levels.values,t),a=Object.assign({},Ur.levels.labels,bF(t));return{values:r,labels:a}}function bF(e){let t={};return Object.keys(e).forEach(function(r){t[e[r]]=r}),t}Ur.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}};Ur.stdSerializers=yF;Ur.stdTimeFunctions=Object.assign({},{nullTime:Sh,epochTime:yh,unixTime:kF,isoTime:OF});function FF(e){let t=[];e.bindings&&t.push(e.bindings);let r=e[Ep];for(;r.parent;)r=r.parent,r.logger.bindings&&t.push(r.logger.bindings);return t.reverse()}function Wa(e,t,r,a){if(e[a]=yc(e.level,r)>yc(a,r)?us:r[Ip][a],!t.transmit&&e[a]===us)return;e[a]=PF(e,t,r,a);let n=FF(e);n.length!==0&&(e[a]=RF(n,e[a]))}function RF(e,t){return function(){return t.apply(this,[...e,...arguments])}}function PF(e,t,r,a){return function(n){return function(){let i=t.timestamp(),s=new Array(arguments.length),c=Object.getPrototypeOf&&Object.getPrototypeOf(this)===cs?cs:this;for(var u=0;ue.levels.values[t],log:i=p=>p}=n;e._serialize&&Cc(r,e._serialize,e.serializers,e._stdErrSerialize);let s=r.slice(),c=s[0],u={};a&&(u.time=a),u.level=o(t,e.levels.values[t]);let l=(e._childLevel|0)+1;if(l<1&&(l=1),c!==null&&typeof c=="object"){for(;l--&&typeof s[0]=="object";)Object.assign(u,s.shift());c=s.length?mh(s.shift(),s):void 0}else typeof c=="string"&&(c=mh(s.shift(),s));return c!==void 0&&(u.msg=c),i(u)}function Cc(e,t,r,a){for(let n in e)if(a&&e[n]instanceof Error)e[n]=Ur.stdSerializers.err(e[n]);else if(typeof e[n]=="object"&&!Array.isArray(e[n]))for(let o in e[n])t&&t.indexOf(o)>-1&&o in r&&(e[n][o]=r[o](e[n][o]))}function IF(e,t,r){let a=t.send,n=t.ts,o=t.methodLevel,i=t.methodValue,s=t.val,c=e._logEvent.bindings;Cc(r,e._serialize||Object.keys(e.serializers),e.serializers,e._stdErrSerialize===void 0?!0:e._stdErrSerialize),e._logEvent.ts=n,e._logEvent.messages=r.filter(function(u){return c.indexOf(u)===-1}),e._logEvent.level.label=o,e._logEvent.level.value=i,a(o,e._logEvent,s),e._logEvent=kp(c)}function kp(e){return{ts:0,messages:[],bindings:e||[],level:{label:"",value:0}}}function hh(e){let t={type:e.constructor.name,msg:e.message,stack:e.stack};for(let r in e)t[r]===void 0&&(t[r]=e[r]);return t}function EF(e){return typeof e.timestamp=="function"?e.timestamp:e.timestamp===!1?Sh:yh}function xc(){return{}}function Op(e){return e}function us(){}function Sh(){return!1}function yh(){return Date.now()}function kF(){return Math.round(Date.now()/1e3)}function OF(){return new Date(Date.now()).toISOString()}function qF(){function e(t){return typeof t!="undefined"&&t}try{return typeof globalThis!="undefined"||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch{return e(self)||e(window)||e(this)||{}}}vc.exports.default=Ur;vc.exports.pino=Ur});var Ah=pe((VV,vh)=>{var TF="[object Object]";function DF(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function VF(e,t){return function(r){return e(t(r))}}var MF=Function.prototype,Ch=Object.prototype,xh=MF.toString,LF=Ch.hasOwnProperty,NF=xh.call(Object),QF=Ch.toString,BF=VF(Object.getPrototypeOf,Object);function jF(e){return!!e&&typeof e=="object"}function UF(e){if(!jF(e)||QF.call(e)!=TF||DF(e))return!1;var t=BF(e);if(t===null)return!0;var r=LF.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&xh.call(r)==NF}vh.exports=UF});var bh=pe(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});Tp.default=WF;var _F=Zi(),$F=Ah(),HF=GF($F);function GF(e){return e&&e.__esModule?e:{default:e}}function zF(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:[];return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};function a(){var o=[],i=[],s={getState:function(){return qp(r)?r(o):r},getActions:function(){return o},dispatch:function(u){if(!(0,HF.default)(u))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(typeof u.type=="undefined")throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant? Action: '+JSON.stringify(u));o.push(u);for(var l=0;l{(function(e,t){typeof Dp=="object"&&typeof Vp!="undefined"?Vp.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis!="undefined"?globalThis:e||self).dayjs=t()})(Dp,function(){"use strict";var e=1e3,t=6e4,r=36e5,a="millisecond",n="second",o="minute",i="hour",s="day",c="week",u="month",l="quarter",d="year",p="date",f="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(j){var L=["th","st","nd","rd"],Q=j%100;return"["+j+(L[(Q-20)%10]||L[Q]||L[0])+"]"}},y=function(j,L,Q){var z=String(j);return!z||z.length>=L?j:""+Array(L+1-z.length).join(Q)+j},x={s:y,z:function(j){var L=-j.utcOffset(),Q=Math.abs(L),z=Math.floor(Q/60),B=Q%60;return(L<=0?"+":"-")+y(z,2,"0")+":"+y(B,2,"0")},m:function j(L,Q){if(L.date()1)return j(ne[0])}else{var le=L.name;P[le]=L,B=le}return!z&&B&&(b=B),B||!z&&b},U=function(j,L){if(H(j))return j.clone();var Q=typeof L=="object"?L:{};return Q.date=j,Q.args=arguments,new fe(Q)},_=x;_.l=Z,_.i=H,_.w=function(j,L){return U(j,{locale:L.$L,utc:L.$u,x:L.$x,$offset:L.$offset})};var fe=function(){function j(Q){this.$L=Z(Q.locale,null,!0),this.parse(Q),this.$x=this.$x||Q.x||{},this[N]=!0}var L=j.prototype;return L.parse=function(Q){this.$d=function(z){var B=z.date,re=z.utc;if(B===null)return new Date(NaN);if(_.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var ne=B.match(m);if(ne){var le=ne[2]-1||0,be=(ne[7]||"0").substring(0,3);return re?new Date(Date.UTC(ne[1],le,ne[3]||1,ne[4]||0,ne[5]||0,ne[6]||0,be)):new Date(ne[1],le,ne[3]||1,ne[4]||0,ne[5]||0,ne[6]||0,be)}}return new Date(B)}(Q),this.init()},L.init=function(){var Q=this.$d;this.$y=Q.getFullYear(),this.$M=Q.getMonth(),this.$D=Q.getDate(),this.$W=Q.getDay(),this.$H=Q.getHours(),this.$m=Q.getMinutes(),this.$s=Q.getSeconds(),this.$ms=Q.getMilliseconds()},L.$utils=function(){return _},L.isValid=function(){return this.$d.toString()!==f},L.isSame=function(Q,z){var B=U(Q);return this.startOf(z)<=B&&B<=this.endOf(z)},L.isAfter=function(Q,z){return U(Q){(function(e,t){typeof Mp=="object"&&typeof Lp!="undefined"?Lp.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis!="undefined"?globalThis:e||self).dayjs_plugin_timezone=t()})(Mp,function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(r,a,n){var o,i=function(l,d,p){p===void 0&&(p={});var f=new Date(l),m=function(g,S){S===void 0&&(S={});var y=S.timeZoneName||"short",x=g+"|"+y,b=t[x];return b||(b=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:g,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:y}),t[x]=b),b}(d,p);return m.formatToParts(f)},s=function(l,d){for(var p=i(l,d),f=[],m=0;m=0&&(f[x]=parseInt(y,10))}var b=f[3],P=b===24?0:b,N=f[0]+"-"+f[1]+"-"+f[2]+" "+P+":"+f[4]+":"+f[5]+":000",H=+l;return(n.utc(N).valueOf()-(H-=H%1e3))/6e4},c=a.prototype;c.tz=function(l,d){l===void 0&&(l=o);var p=this.utcOffset(),f=this.toDate(),m=f.toLocaleString("en-US",{timeZone:l}),g=Math.round((f-new Date(m))/1e3/60),S=n(m,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(f.getTimezoneOffset()/15)-g,!0);if(d){var y=S.utcOffset();S=S.add(p-y,"minute")}return S.$x.$timezone=l,S},c.offsetName=function(l){var d=this.$x.$timezone||n.tz.guess(),p=i(this.valueOf(),d,{timeZoneName:l}).find(function(f){return f.type.toLowerCase()==="timezonename"});return p&&p.value};var u=c.startOf;c.startOf=function(l,d){if(!this.$x||!this.$x.$timezone)return u.call(this,l,d);var p=n(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return u.call(p,l,d).tz(this.$x.$timezone,!0)},n.tz=function(l,d,p){var f=p&&d,m=p||d||o,g=s(+n(),m);if(typeof l!="string")return n(l).tz(m);var S=function(P,N,H){var Z=P-60*N*1e3,U=s(Z,H);if(N===U)return[Z,N];var _=s(Z-=60*(U-N)*1e3,H);return U===_?[Z,U]:[P-60*Math.min(U,_)*1e3,Math.max(U,_)]}(n.utc(l,f).valueOf(),g,m),y=S[0],x=S[1],b=n(y).utcOffset(x);return b.$x.$timezone=m,b},n.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},n.tz.setDefault=function(l){o=l}}})});var Oh=pe((Np,Qp)=>{(function(e,t){typeof Np=="object"&&typeof Qp!="undefined"?Qp.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis!="undefined"?globalThis:e||self).dayjs_plugin_utc=t()})(Np,function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(a,n,o){var i=n.prototype;o.utc=function(f){var m={date:f,utc:!0,args:arguments};return new n(m)},i.utc=function(f){var m=o(this.toDate(),{locale:this.$L,utc:!0});return f?m.add(this.utcOffset(),e):m},i.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var s=i.parse;i.parse=function(f){f.utc&&(this.$u=!0),this.$utils().u(f.$offset)||(this.$offset=f.$offset),s.call(this,f)};var c=i.init;i.init=function(){if(this.$u){var f=this.$d;this.$y=f.getUTCFullYear(),this.$M=f.getUTCMonth(),this.$D=f.getUTCDate(),this.$W=f.getUTCDay(),this.$H=f.getUTCHours(),this.$m=f.getUTCMinutes(),this.$s=f.getUTCSeconds(),this.$ms=f.getUTCMilliseconds()}else c.call(this)};var u=i.utcOffset;i.utcOffset=function(f,m){var g=this.$utils().u;if(g(f))return this.$u?0:g(this.$offset)?u.call(this):this.$offset;if(typeof f=="string"&&(f=function(b){b===void 0&&(b="");var P=b.match(t);if(!P)return null;var N=(""+P[0]).match(r)||["-",0,0],H=N[0],Z=60*+N[1]+ +N[2];return Z===0?0:H==="+"?Z:-Z}(f),f===null))return this;var S=Math.abs(f)<=16?60*f:f,y=this;if(m)return y.$offset=S,y.$u=f===0,y;if(f!==0){var x=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(y=this.local().add(S+x,e)).$offset=S,y.$x.$localOffset=x}else y=this.utc();return y};var l=i.format;i.format=function(f){var m=f||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,m)},i.valueOf=function(){var f=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*f},i.isUTC=function(){return!!this.$u},i.toISOString=function(){return this.toDate().toISOString()},i.toString=function(){return this.toDate().toUTCString()};var d=i.toDate;i.toDate=function(f){return f==="s"&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var p=i.diff;i.diff=function(f,m,g){if(f&&this.$u===f.$u)return p.call(this,f,m,g);var S=this.local(),y=o(f).local();return p.call(S,y,m,g)}}})});var Th=pe((WV,qh)=>{qh.exports=fetch});var Dh=pe(ds=>{"use strict";var Ic=ds&&ds.__assign||function(){return Ic=Object.assign||function(e){for(var t,r=1,a=arguments.length;r{"use strict";Object.defineProperty(Bp,"__esModule",{value:!0});function aR(e){var t=Math.random()*e;return Math.round(t)}Bp.fullJitter=aR});var Mh=pe(jp=>{"use strict";Object.defineProperty(jp,"__esModule",{value:!0});function nR(e){return e}jp.noJitter=nR});var Lh=pe(Up=>{"use strict";Object.defineProperty(Up,"__esModule",{value:!0});var oR=Vh(),iR=Mh();function sR(e){switch(e.jitter){case"full":return oR.fullJitter;case"none":default:return iR.noJitter}}Up.JitterFactory=sR});var $p=pe(_p=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0});var cR=Lh(),uR=function(){function e(t){this.options=t,this.attempt=0}return e.prototype.apply=function(){var t=this;return new Promise(function(r){return setTimeout(r,t.jitteredDelay)})},e.prototype.setAttemptNumber=function(t){this.attempt=t},Object.defineProperty(e.prototype,"jitteredDelay",{get:function(){var t=cR.JitterFactory(this.options);return t(this.delay)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"delay",{get:function(){var t=this.options.startingDelay,r=this.options.timeMultiple,a=this.numOfDelayedAttempts,n=t*Math.pow(r,a);return Math.min(n,this.options.maxDelay)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numOfDelayedAttempts",{get:function(){return this.attempt},enumerable:!0,configurable:!0}),e}();_p.Delay=uR});var Nh=pe(_r=>{"use strict";var lR=_r&&_r.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,n){a.__proto__=n}||function(a,n){for(var o in n)n.hasOwnProperty(o)&&(a[o]=n[o])},e(t,r)};return function(t,r){e(t,r);function a(){this.constructor=t}t.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}}(),dR=_r&&_r.__awaiter||function(e,t,r,a){function n(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function s(l){try{u(a.next(l))}catch(d){i(d)}}function c(l){try{u(a.throw(l))}catch(d){i(d)}}function u(l){l.done?o(l.value):n(l.value).then(s,c)}u((a=a.apply(e,t||[])).next())})},pR=_r&&_r.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},a,n,o,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(u){return function(l){return c([u,l])}}function c(u){if(a)throw new TypeError("Generator is already executing.");for(;r;)try{if(a=1,n&&(o=u[0]&2?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,n=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]{"use strict";var gR=ps&&ps.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,n){a.__proto__=n}||function(a,n){for(var o in n)n.hasOwnProperty(o)&&(a[o]=n[o])},e(t,r)};return function(t,r){e(t,r);function a(){this.constructor=t}t.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}}();Object.defineProperty(ps,"__esModule",{value:!0});var hR=$p(),SR=function(e){gR(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(hR.Delay);ps.AlwaysDelay=SR});var Bh=pe(Hp=>{"use strict";Object.defineProperty(Hp,"__esModule",{value:!0});var yR=Nh(),CR=Qh();function xR(e,t){var r=vR(e);return r.setAttemptNumber(t),r}Hp.DelayFactory=xR;function vR(e){return e.delayFirstAttempt?new CR.AlwaysDelay(e):new yR.SkipFirstDelay(e)}});var jh=pe(Ka=>{"use strict";var Gp=Ka&&Ka.__awaiter||function(e,t,r,a){function n(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function s(l){try{u(a.next(l))}catch(d){i(d)}}function c(l){try{u(a.throw(l))}catch(d){i(d)}}function u(l){l.done?o(l.value):n(l.value).then(s,c)}u((a=a.apply(e,t||[])).next())})},zp=Ka&&Ka.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},a,n,o,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(u){return function(l){return c([u,l])}}function c(u){if(a)throw new TypeError("Generator is already executing.");for(;r;)try{if(a=1,n&&(o=u[0]&2?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,n=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]=this.options.numOfAttempts},enumerable:!0,configurable:!0}),e.prototype.applyDelay=function(){return Gp(this,void 0,void 0,function(){var t;return zp(this,function(r){switch(r.label){case 0:return t=bR.DelayFactory(this.options,this.attemptNumber),[4,t.apply()];case 1:return r.sent(),[2]}})})},e}()});var _h=pe((oM,Uh)=>{"use strict";function PR(e){if(arguments.length===0)throw new TypeError("1 argument required, but only 0 present.");if(e=`${e}`,e=e.replace(/[ \t\n\f\r]/g,""),e.length%4==0&&(e=e.replace(/==?$/,"")),e.length%4==1||/[^+/0-9A-Za-z]/.test(e))return null;let t="",r=0,a=0;for(let n=0;n>16),t+=String.fromCharCode((r&65280)>>8),t+=String.fromCharCode(r&255),r=a=0);return a===12?(r>>=4,t+=String.fromCharCode(r)):a===18&&(r>>=2,t+=String.fromCharCode((r&65280)>>8),t+=String.fromCharCode(r&255)),t}var wR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function IR(e){let t=wR.indexOf(e);return t<0?void 0:t}Uh.exports=PR});var Hh=pe((iM,$h)=>{"use strict";function ER(e){if(arguments.length===0)throw new TypeError("1 argument required, but only 0 present.");let t;for(e=`${e}`,t=0;t255)return null;let r="";for(t=0;t>2,a[1]=(e.charCodeAt(t)&3)<<4,e.length>t+1&&(a[1]|=e.charCodeAt(t+1)>>4,a[2]=(e.charCodeAt(t+1)&15)<<2),e.length>t+2&&(a[2]|=e.charCodeAt(t+2)>>6,a[3]=e.charCodeAt(t+2)&63);for(let n=0;n=0&&e<64)return kR[e]}$h.exports=ER});var Wp=pe((sM,Gh)=>{"use strict";var qR=_h(),TR=Hh();Gh.exports={atob:qR,btoa:TR}});var sS=pe((IL,iS)=>{"use strict";var Xp=typeof self!="undefined"?self:typeof window!="undefined"?window:void 0;if(!Xp)throw new Error("Unable to find global scope. Are you sure this is running in the browser?");if(!Xp.AbortController)throw new Error('Could not find "AbortController" in the global scope. You need to polyfill it first');iS.exports.AbortController=Xp.AbortController});var Zy=pe((Mf,Lf)=>{(function(e,t){typeof Mf=="object"&&typeof Lf!="undefined"?Lf.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis!="undefined"?globalThis:e||self).dayjs_plugin_quarterOfYear=t()})(Mf,function(){"use strict";var e="month",t="quarter";return function(r,a){var n=a.prototype;n.quarter=function(s){return this.$utils().u(s)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(s-1))};var o=n.add;n.add=function(s,c){return s=Number(s),this.$utils().p(c)===t?this.add(3*s,e):o.bind(this)(s,c)};var i=n.startOf;n.startOf=function(s,c){var u=this.$utils(),l=!!u.u(c)||c;if(u.p(s)===t){var d=this.quarter()-1;return l?this.month(3*d).startOf(e).startOf("day"):this.month(3*d+2).endOf(e).endOf("day")}return i.bind(this)(s,c)}}})});var eC=pe((Nf,Qf)=>{(function(e,t){typeof Nf=="object"&&typeof Qf!="undefined"?Qf.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis!="undefined"?globalThis:e||self).dayjs_plugin_customParseFormat=t()})(Nf,function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,a=/\d\d?/,n=/\d*[^-_:/,()\s\d]+/,o={},i=function(f){return(f=+f)+(f>68?1900:2e3)},s=function(f){return function(m){this[f]=+m}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(f){(this.zone||(this.zone={})).offset=function(m){if(!m||m==="Z")return 0;var g=m.match(/([+-]|\d\d)/g),S=60*g[1]+(+g[2]||0);return S===0?0:g[0]==="+"?-S:S}(f)}],u=function(f){var m=o[f];return m&&(m.indexOf?m:m.s.concat(m.f))},l=function(f,m){var g,S=o.meridiem;if(S){for(var y=1;y<=24;y+=1)if(f.indexOf(S(y,0,m))>-1){g=y>12;break}}else g=f===(m?"pm":"PM");return g},d={A:[n,function(f){this.afternoon=l(f,!1)}],a:[n,function(f){this.afternoon=l(f,!0)}],S:[/\d/,function(f){this.milliseconds=100*+f}],SS:[r,function(f){this.milliseconds=10*+f}],SSS:[/\d{3}/,function(f){this.milliseconds=+f}],s:[a,s("seconds")],ss:[a,s("seconds")],m:[a,s("minutes")],mm:[a,s("minutes")],H:[a,s("hours")],h:[a,s("hours")],HH:[a,s("hours")],hh:[a,s("hours")],D:[a,s("day")],DD:[r,s("day")],Do:[n,function(f){var m=o.ordinal,g=f.match(/\d+/);if(this.day=g[0],m)for(var S=1;S<=31;S+=1)m(S).replace(/\[|\]/g,"")===f&&(this.day=S)}],M:[a,s("month")],MM:[r,s("month")],MMM:[n,function(f){var m=u("months"),g=(u("monthsShort")||m.map(function(S){return S.slice(0,3)})).indexOf(f)+1;if(g<1)throw new Error;this.month=g%12||g}],MMMM:[n,function(f){var m=u("months").indexOf(f)+1;if(m<1)throw new Error;this.month=m%12||m}],Y:[/[+-]?\d+/,s("year")],YY:[r,function(f){this.year=i(f)}],YYYY:[/\d{4}/,s("year")],Z:c,ZZ:c};function p(f){var m,g;m=f,g=o&&o.formats;for(var S=(f=m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(Z,U,_){var fe=_&&_.toUpperCase();return U||g[_]||e[_]||g[fe].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(Se,j,L){return j||L.slice(1)})})).match(t),y=S.length,x=0;x-1)return new Date((z==="X"?1e3:1)*Q);var re=p(z)(Q),ne=re.year,le=re.month,be=re.day,we=re.hours,Ve=re.minutes,rt=re.seconds,ra=re.milliseconds,$t=re.zone,Lr=new Date,qt=be||(ne||le?1:Lr.getDate()),Me=ne||Lr.getFullYear(),pt=0;ne&&!le||(pt=le>0?le-1:Lr.getMonth());var Nr=we||0,aa=Ve||0,Wd=rt||0,Yd=ra||0;return $t?new Date(Date.UTC(Me,pt,qt,Nr,aa,Wd,Yd+60*$t.offset*1e3)):B?new Date(Date.UTC(Me,pt,qt,Nr,aa,Wd,Yd)):new Date(Me,pt,qt,Nr,aa,Wd,Yd)}catch{return new Date("")}}(b,H,P),this.init(),fe&&fe!==!0&&(this.$L=this.locale(fe).$L),_&&b!=this.format(H)&&(this.$d=new Date("")),o={}}else if(H instanceof Array)for(var Se=H.length,j=1;j<=Se;j+=1){N[1]=H[j-1];var L=g.apply(this,N);if(L.isValid()){this.$d=L.$d,this.$L=L.$L,this.init();break}j===Se&&(this.$d=new Date(""))}else y.call(this,x)}}})});var FC=pe((DG,bC)=>{var nE=/(^|; )Coveo-Pendragon=([^;]*)/;bC.exports=()=>nE.exec(document.cookie)?.pop()||null});var Ui=()=>global.crypto,Jm=()=>{typeof window=="undefined"&&(Ui()||(global.crypto=zA("crypto")),!Ui().getRandomValues&&Ui().webcrypto&&(global.crypto.getRandomValues=Ui().webcrypto.getRandomValues.bind(Ui().webcrypto)))};var h={};Km(h,{EnhancerArray:()=>Tg,MiddlewareArray:()=>qg,SHOULD_AUTOBATCH:()=>wp,TaskAbortError:()=>is,addListener:()=>sh,autoBatchEnhancer:()=>gF,clearAllListeners:()=>ch,configureStore:()=>Cp,createAction:()=>C,createActionCreatorInvariantMiddleware:()=>Tb,createAsyncThunk:()=>W,createDraftSafeSelector:()=>jr,createEntityAdapter:()=>Kb,createImmutableStateInvariantMiddleware:()=>Nb,createListenerMiddleware:()=>dF,createNextState:()=>ia,createReducer:()=>T,createSelector:()=>sa,createSerializableStateInvariantMiddleware:()=>Qb,createSlice:()=>$b,current:()=>$i,findNonSerializableValue:()=>fc,freeze:()=>_i,getDefaultMiddleware:()=>mc,getType:()=>Ob,isAction:()=>gp,isActionCreator:()=>Eg,isAllOf:()=>Ap,isAnyOf:()=>ns,isAsyncThunkAction:()=>Kg,isDraft:()=>He,isFluxStandardAction:()=>kg,isFulfilled:()=>Yg,isImmutableDefault:()=>Mg,isPending:()=>zg,isPlain:()=>Sp,isPlainObject:()=>pc,isRejected:()=>hc,isRejectedWithValue:()=>Wg,miniSerializeError:()=>$g,nanoid:()=>xp,original:()=>Xm,prepareAutoBatched:()=>pF,removeListener:()=>uh,unwrapResult:()=>Hg});function ft(e){for(var t=arguments.length,r=Array(t>1?t-1:0),a=1;a3?t.i-4:t.i:Array.isArray(e)?1:Kd(e)?2:Jd(e)?3:0}function Nn(e,t){return Ln(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function WA(e,t){return Ln(e)===2?e.get(t):e[t]}function Zm(e,t,r){var a=Ln(e);a===2?e.set(t,r):a===3?e.add(r):e[t]=r}function eg(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Kd(e){return XA&&e instanceof Map}function Jd(e){return ZA&&e instanceof Set}function na(e){return e.o||e.t}function Xd(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=lg(e);delete t[Ce];for(var r=Qn(t),a=0;a1&&(e.set=e.add=e.clear=e.delete=YA),Object.freeze(e),t&&Ga(e,function(r,a){return _i(a,!0)},!0)),e}function YA(){ft(2)}function Zd(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ht(e){var t=cp[e];return t||ft(18,e),t}function KA(e,t){cp[e]||(cp[e]=t)}function ep(){return Hi}function tp(e,t){t&&(Ht("Patches"),e.u=[],e.s=[],e.v=t)}function cc(e){rp(e),e.p.forEach(JA),e.p=null}function rp(e){e===Hi&&(Hi=e.l)}function tg(e){return Hi={p:[],l:Hi,h:e,m:!0,_:0}}function JA(e){var t=e[Ce];t.i===0||t.i===1?t.j():t.g=!0}function ap(e,t){t._=t.p.length;var r=t.p[0],a=e!==void 0&&e!==r;return t.h.O||Ht("ES5").S(t,e,a),a?(r[Ce].P&&(cc(t),ft(4)),Tt(e)&&(e=uc(t,e),t.l||lc(t,e)),t.u&&Ht("Patches").M(r[Ce].t,e,t.u,t.s)):e=uc(t,r,[]),cc(t),t.u&&t.v(t.u,t.s),e!==cg?e:void 0}function uc(e,t,r){if(Zd(t))return t;var a=t[Ce];if(!a)return Ga(t,function(s,c){return rg(e,a,t,s,c,r)},!0),t;if(a.A!==e)return t;if(!a.P)return lc(e,a.t,!0),a.t;if(!a.I){a.I=!0,a.A._--;var n=a.i===4||a.i===5?a.o=Xd(a.k):a.o,o=n,i=!1;a.i===3&&(o=new Set(n),n.clear(),i=!0),Ga(o,function(s,c){return rg(e,a,n,s,c,r,i)}),lc(e,n,!1),r&&e.u&&Ht("Patches").N(a,r,e.u,e.s)}return a.o}function rg(e,t,r,a,n,o,i){if(He(n)){var s=uc(e,n,o&&t&&t.i!==3&&!Nn(t.R,a)?o.concat(a):void 0);if(Zm(r,a,s),!He(s))return;e.m=!1}else i&&r.add(n);if(Tt(n)&&!Zd(n)){if(!e.h.D&&e._<1)return;uc(e,n),t&&t.A.l||lc(e,n)}}function lc(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&_i(t,r)}function np(e,t){var r=e[Ce];return(r?na(r):e)[t]}function ag(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var a=Object.getOwnPropertyDescriptor(r,t);if(a)return a;r=Object.getPrototypeOf(r)}}function oa(e){e.P||(e.P=!0,e.l&&oa(e.l))}function op(e){e.o||(e.o=Xd(e.t))}function ip(e,t,r){var a=Kd(t)?Ht("MapSet").F(t,r):Jd(t)?Ht("MapSet").T(t,r):e.O?function(n,o){var i=Array.isArray(n),s={i:i?1:0,A:o?o.A:ep(),P:!1,I:!1,R:{},l:o,t:n,k:null,o:null,j:null,C:!1},c=s,u=Gi;i&&(c=[s],u=zi);var l=Proxy.revocable(c,u),d=l.revoke,p=l.proxy;return s.k=p,s.j=d,p}(t,r):Ht("ES5").J(t,r);return(r?r.A:ep()).p.push(a),a}function $i(e){return He(e)||ft(22,e),function t(r){if(!Tt(r))return r;var a,n=r[Ce],o=Ln(r);if(n){if(!n.P&&(n.i<4||!Ht("ES5").K(n)))return n.t;n.I=!0,a=ng(r,o),n.I=!1}else a=ng(r,o);return Ga(a,function(i,s){n&&WA(n.t,i)===s||Zm(a,i,t(s))}),o===3?new Set(a):a}(e)}function ng(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Xd(e)}function og(){function e(i,s){var c=o[i];return c?c.enumerable=s:o[i]=c={configurable:!0,enumerable:s,get:function(){var u=this[Ce];return Gi.get(u,i)},set:function(u){var l=this[Ce];Gi.set(l,i,u)}},c}function t(i){for(var s=i.length-1;s>=0;s--){var c=i[s][Ce];if(!c.P)switch(c.i){case 5:a(c)&&oa(c);break;case 4:r(c)&&oa(c)}}}function r(i){for(var s=i.t,c=i.k,u=Qn(c),l=u.length-1;l>=0;l--){var d=u[l];if(d!==Ce){var p=s[d];if(p===void 0&&!Nn(s,d))return!0;var f=c[d],m=f&&f[Ce];if(m?m.t!==p:!eg(f,p))return!0}}var g=!!s[Ce];return u.length!==Qn(s).length+(g?0:1)}function a(i){var s=i.k;if(s.length!==i.t.length)return!0;var c=Object.getOwnPropertyDescriptor(s,s.length-1);if(c&&!c.get)return!0;for(var u=0;u1?y-1:0),b=1;b1?l-1:0),p=1;p=0;n--){var o=a[n];if(o.path.length===0&&o.op==="replace"){r=o.value;break}}n>-1&&(a=a.slice(n+1));var i=Ht("Patches").$;return He(r)?i(r,a):this.produce(r,function(s){return i(s,a)})},e}(),mt=new tb,rb=mt.produce,oV=mt.produceWithPatches.bind(mt),iV=mt.setAutoFreeze.bind(mt),sV=mt.setUseProxies.bind(mt),cV=mt.applyPatches.bind(mt),uV=mt.createDraft.bind(mt),lV=mt.finishDraft.bind(mt),ia=rb;R(h,Ie(Zi()));var dc="NOT_FOUND";function Cb(e){var t;return{get:function(a){return t&&e(t.key,a)?t.value:dc},put:function(a,n){t={key:a,value:n}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function xb(e,t){var r=[];function a(s){var c=r.findIndex(function(l){return t(s,l.key)});if(c>-1){var u=r[c];return c>0&&(r.splice(c,1),r.unshift(u)),u.value}return dc}function n(s,c){a(s)===dc&&(r.unshift({key:s,value:c}),r.length>e&&r.pop())}function o(){return r}function i(){r=[]}return{get:a,put:n,getEntries:o,clear:i}}var vg=function(t,r){return t===r};function vb(e){return function(r,a){if(r===null||a===null||r.length!==a.length)return!1;for(var n=r.length,o=0;o1?t-1:0),a=1;a0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]-1}function Ob(e){return""+e}function qb(e){var t=e?(""+e).split("/"):[],r=t[t.length-1]||"actionCreator";return'Detected an action creator with type "'+(e||"unknown")+`" being dispatched. -Make sure you're calling the action creator before dispatching, i.e. \`dispatch(`+r+"())` instead of `dispatch("+r+")`. This is necessary even if the action has no payload."}function Tb(e){return e===void 0&&(e={}),function(){return function(a){return function(n){return a(n)}}};var t=e.isActionCreator,r=t===void 0?Eg:t;return function(){return function(a){return function(n){return r(n)&&console.warn(qb(n.type)),a(n)}}}}function Og(e,t){var r=0;return{measureTime:function(a){var n=Date.now();try{return a()}finally{var o=Date.now();r+=o-n}},warnIfExceeded:function(){r>e&&console.warn(t+" took "+r+"ms, which is more than the warning threshold of "+e+`ms. -If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions. -It is disabled in production builds, so you don't need to worry about that.`)}}}var qg=function(e){Rg(t,e);function t(){for(var r=[],a=0;a0){var i=r.indexOf(this);~i?r.splice(i+1):r.push(this),~i?a.splice(i,1/0,n):a.push(n),~r.indexOf(o)&&(o=t.call(this,n,o))}else r.push(o);return e==null?o:e.call(this,n,o)}}function Mg(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function Lb(e,t,r){var a=Lg(e,t,r);return{detectMutations:function(){return Ng(e,t,a,r)}}}function Lg(e,t,r,a,n){t===void 0&&(t=[]),a===void 0&&(a=""),n===void 0&&(n=new Set);var o={value:r};if(!e(r)&&!n.has(r)){n.add(r),o.children={};for(var i in r){var s=a?a+"."+i:i;t.length&&t.indexOf(s)!==-1||(o.children[i]=Lg(e,t,r[i],s))}}return o}function Ng(e,t,r,a,n,o){t===void 0&&(t=[]),n===void 0&&(n=!1),o===void 0&&(o="");var i=r?r.value:void 0,s=i===a;if(n&&!s&&!Number.isNaN(a))return{wasMutated:!0,path:o};if(e(i)||e(a))return{wasMutated:!1};var c={};for(var u in r.children)c[u]=!0;for(var u in a)c[u]=!0;var l=t.length>0,d=function(f){var m=o?o+"."+f:f;if(l){var g=t.some(function(y){return y instanceof RegExp?y.test(m):m===y});if(g)return"continue"}var S=Ng(e,t,r.children[f],a[f],s,m);if(S.wasMutated)return{value:S}};for(var u in c){var p=d(u);if(typeof p=="object")return p.value}return{wasMutated:!1}}function Nb(e){return e===void 0&&(e={}),function(){return function(c){return function(u){return c(u)}}};var t=e.isImmutable,r=t===void 0?Mg:t,a=e.ignoredPaths,n=e.warnAfter,o=n===void 0?32:n,i=e.ignore;a=a||i;var s=Lb.bind(null,r,a);return function(c){var u=c.getState,l=u(),d=s(l),p;return function(f){return function(m){var g=Og(o,"ImmutableStateInvariantMiddleware");g.measureTime(function(){l=u(),p=d.detectMutations(),d=s(l),Vg(!p.wasMutated,"A state mutation was detected between dispatches, in the path '"+(p.path||"")+"'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")});var S=f(m);return g.measureTime(function(){l=u(),p=d.detectMutations(),d=s(l),p.wasMutated&&Vg(!p.wasMutated,"A state mutation was detected inside a dispatch, in the path: "+(p.path||"")+". Take a look at the reducer(s) handling the action "+Vb(m)+". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")}),g.warnIfExceeded(),S}}}}function Sp(e){var t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||pc(e)}function fc(e,t,r,a,n,o){t===void 0&&(t=""),r===void 0&&(r=Sp),n===void 0&&(n=[]);var i;if(!r(e))return{keyPath:t||"",value:e};if(typeof e!="object"||e===null||(o==null?void 0:o.has(e)))return!1;for(var s=a!=null?a(e):Object.entries(e),c=n.length>0,u=function(S,y){var x=t?t+"."+S:S;if(c){var b=n.some(function(P){return P instanceof RegExp?P.test(x):x===P});if(b)return"continue"}if(!r(y))return{value:{keyPath:x,value:y}};if(typeof y=="object"&&(i=fc(y,x,r,a,n,o),i))return{value:i}},l=0,d=s;l0;if(x){var b=m.filter(function(P){return u(S,P,g)}).length>0;b&&(g.ids=Object.keys(g.entities))}}function p(m,g){return f([m],g)}function f(m,g){var S=jg(m,e,g),y=S[0],x=S[1];d(x,g),r(y,g)}return{removeAll:Wb(c),addOne:Re(t),addMany:Re(r),setOne:Re(a),setMany:Re(n),setAll:Re(o),updateOne:Re(l),updateMany:Re(d),upsertOne:Re(p),upsertMany:Re(f),removeOne:Re(i),removeMany:Re(s)}}function Yb(e,t){var r=Ug(e),a=r.removeOne,n=r.removeMany,o=r.removeAll;function i(x,b){return s([x],b)}function s(x,b){x=za(x);var P=x.filter(function(N){return!(as(N,e)in b.entities)});P.length!==0&&S(P,b)}function c(x,b){return u([x],b)}function u(x,b){x=za(x),x.length!==0&&S(x,b)}function l(x,b){x=za(x),b.entities={},b.ids=[],s(x,b)}function d(x,b){return p([x],b)}function p(x,b){for(var P=!1,N=0,H=x;N-1;return r&&a}function os(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function zg(){for(var e=[],t=0;t0)for(var b=f.getState(),P=Array.from(r.values()),N=0,H=P;Nt=>r=>{var o,i;let a=(o=r.payload)==null?void 0:o.analyticsAction;a!==void 0&&((i=r.payload)==null||delete i.analyticsAction);let n=t(r);return r.type==="search/executeSearch/fullfilled"&&a===void 0&&console.error("No analytics action associated with search:",r),r.type==="recommendation/get/fullfilled"&&a===void 0&&console.error("No analytics action associated with recommendation:",r),r.type==="productRecommendations/get/fullfilled"&&a===void 0&&console.error("No analytics action associated with product recommendation:",r),a!==void 0&&e.dispatch(a),n};function YF(e){return e.instantlyCallable}var bc=()=>e=>t=>e(YF(t)?t():t);var Fc=e=>()=>t=>r=>{var n;if(!r.error)return t(r);let a=r.error;if(((n=r.payload)==null?void 0:n.ignored)||e.error(a.stack||a.message||a.name||"Error",`Action dispatch error ${r.type}`,r),r.error.name!=="SchemaValidationError")return t(r)},Rc=e=>t=>r=>a=>(e.debug({action:a,nextState:t.getState()},`Action dispatched: ${a.type}`),r(a));function KF(e,t){let r=` - The following properties are invalid: - - ${e.join(` - `)} - - ${t} - `;return new Ya(r)}var Ya=class extends Error{constructor(e){super(e);this.name="SchemaValidationError"}},Y=class{constructor(e){this.definition=e}validate(e={},t=""){let r={...this.default,...e},a=[];for(let n in this.definition){let o=this.definition[n].validate(r[n]);o&&a.push(`${n}: ${o}`)}if(a.length)throw KF(a,t);return r}get default(){let e={};for(let t in this.definition){let r=this.definition[t].default;r!==void 0&&(e[t]=r)}return e}},me=class{constructor(e={}){this.baseConfig=e}validate(e){return this.baseConfig.required&&te(e)?"value is required.":null}get default(){return this.baseConfig.default instanceof Function?this.baseConfig.default():this.baseConfig.default}get required(){return this.baseConfig.required===!0}};function Ee(e){return e===void 0}function JF(e){return e===null}function te(e){return Ee(e)||JF(e)}var D=class{constructor(e={}){this.config=e,this.value=new me(e)}validate(e){let t=this.value.validate(e);return t||(XF(e)?ethis.config.max?`maximum value of ${this.config.max} not respected.`:null:"value is not a number.")}get default(){return this.value.default}get required(){return this.value.required}};function XF(e){return Ee(e)||Fh(e)}function Fh(e){return typeof e=="number"&&!isNaN(e)}var K=class{constructor(e={}){this.value=new me(e)}validate(e){let t=this.value.validate(e);return t||(ZF(e)?null:"value is not a boolean.")}get default(){return this.value.default}get required(){return this.value.required}};function ZF(e){return Ee(e)||Rh(e)}function Rh(e){return typeof e=="boolean"}var eR=/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i,w=class{constructor(e={}){this.config={emptyAllowed:!0,url:!1,...e},this.value=new me(this.config)}validate(e){let{emptyAllowed:t,url:r,regex:a,constrainTo:n}=this.config,o=this.value.validate(e);return o||(Ee(e)?null:Un(e)?!t&&!e.length?"value is an empty string.":r&&!eR.test(e)?"value is not a valid URL.":a&&!a.test(e)?`value did not match provided regex ${a}`:n&&!n.includes(e)?`value should be one of: ${n.join(", ")}.`:null:"value is not a string.")}get default(){return this.value.default}get required(){return this.value.required}};function Un(e){return Object.prototype.toString.call(e)==="[object String]"}var q=class{constructor(e={}){this.config={options:{required:!1},values:{},...e}}validate(e){if(Ee(e))return this.config.options.required?"value is required and is currently undefined":null;if(!Ph(e))return"value is not an object";for(let[r,a]of Object.entries(this.config.values))if(a.required&&te(e[r]))return`value does not contain ${r}`;let t="";for(let[r,a]of Object.entries(this.config.values)){let n=e[r],o=a.validate(n);o!==null&&(t+=" "+o)}return t===""?null:t}get default(){}get required(){return!!this.config.options.required}};function Ph(e){return e!==void 0&&typeof e=="object"}var X=class{constructor(e={}){this.config=e,this.value=new me(this.config)}validate(e){if(!te(e)&&!Array.isArray(e))return"value is not an array";let t=this.value.validate(e);if(t!==null)return t;if(te(e))return null;if(this.config.max!==void 0&&e.length>this.config.max)return`value contains more than ${this.config.max}`;if(this.config.min!==void 0&&e.length{this.config.each.required&&te(a)&&(r=`value is null or undefined: ${e.join(",")}`);let n=this.validatePrimitiveValue(a,this.config.each);n!==null&&(r+=" "+n)}),r===""?null:r}return null}validatePrimitiveValue(e,t){return Rh(e)||Un(e)||Fh(e)||Ph(e)?t.validate(e):"value is not a primitive value"}get default(){}get required(){return this.value.required}};function _n(e){return Array.isArray(e)}var Dt=class{constructor(e){this.config=e,this.value=new me(e)}validate(e){let t=this.value.validate(e);return t!==null?t:Ee(e)||Object.values(this.config.enum).find(a=>a===e)?null:"value is not in enum."}get default(){return this.value.default}get required(){return this.value.required}};var O=new w({required:!0,emptyAllowed:!1}),de=new w({required:!1,emptyAllowed:!1}),ge=new w({required:!0,emptyAllowed:!0}),wh=new w({required:!1,emptyAllowed:!0}),Pc=new X({each:O,required:!0}),Ih=new w({required:!1,emptyAllowed:!1,regex:/^\d+\.\d+\.\d+$/}),Vt=({message:e,name:t,stack:r})=>({message:e,name:t,stack:r}),nt=(e,t)=>{if("required"in t)return{payload:new Y({value:t}).validate({value:e}).value};let n=new q({options:{required:!0},values:t}).validate(e);if(n)throw new Ya(n);return{payload:e}},A=(e,t)=>{try{return nt(e,t)}catch(r){return{payload:e,error:Vt(r)}}},ke=(e,t,r,a)=>{let n=`Check the initialState of ${a}`;return Eh(e,t,r,n,"Controller initialization error")},he=(e,t,r,a)=>{let n=`Check the options of ${a}`;return Eh(e,t,r,n,"Controller initialization error")},Eh=(e,t,r,a,n)=>{try{return t.validate(r,a)}catch(o){throw e.logger.error(o,n),o}};var Dc=Ie(wc()),aS=Ie(kh()),nS=Ie(Oh());var Zh=Ie(Th()),eS=Ie(jh());var k=new Error("Failed to load reducers."),fs=class extends Error{constructor(){super();this.name="ExpiredToken",this.message="The token being used to perform the request is expired."}},$n=class extends Error{constructor(t,r){super();this.name="Disconnected",this.message=`Client could not connect to the following URL: ${t}`,this.statusCode=r!=null?r:0}};var zh=Ie(Wp()),la=(e,t=5)=>e+Math.random().toString(36).substring(2,2+t);function Ec(e){return Array.isArray(e)}function kc(e){return e.trim()===""}function Wh(e,t){return[...e.reduce((r,a)=>{let n=t(a);return r.has(n)||r.set(n,a),r},new Map).values()]}function DR(e){return(typeof btoa!="undefined"?btoa:zh.btoa)(encodeURI(e))}function Oc(e,t){let{[e]:r,...a}=t;return a}function Hn(e){return DR(JSON.stringify(e))}var VR=new Set(["1",1,"yes",!0]);function qc(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;let e=navigator,t=window;return[e.globalPrivacyControl,e.doNotTrack,e.msDoNotTrack,t.doNotTrack].some(r=>VR.has(r))}function Yh(e){let t={};for(let[r,a]of e)t[r]=a;return t}function Kh(e,t,r){return clearTimeout(t),setTimeout(e,r)}function ms(e){if(typeof e!="object"||!e)return e;try{return JSON.parse(JSON.stringify(e))}catch(t){return e}}function Jh(e){let t=[];for(let r in e){let a=encodeURIComponent(r),n=encodeURIComponent(e[r]);t.push(`${a}=${n}`)}return t.join("&")}function Xh(e){return typeof e!="object"||!e?!1:Object.values(e).every(MR)}function MR(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function tS(e){return e===429}var ot=class{static async call(t){let r=LR(t),{logger:a}=t,n=await ot.preprocessRequest(r,t);a.info(n,"Platform request");let{url:o,...i}=n,s=async()=>{let c=await(0,Zh.default)(o,i);if(tS(c.status))throw c;return c};try{let c=await(0,eS.backOff)(s,{retry:u=>{let l=u&&tS(u.status);return l&&a.info("Platform retrying request"),l}});if(c.status===419)throw a.info("Platform renewing token"),new fs;if(c.status===404)throw new $n(o,c.status);return a.info({response:c,requestInfo:n},"Platform response"),c}catch(c){return c.message==="Failed to fetch"?new $n(o):c}}static async preprocessRequest(t,r){let{origin:a,preprocessRequest:n,logger:o,requestMetadata:i}=r,{signal:s,...c}=t,u=ms(c);try{let l=await n(t,a,i);return{...t,...l}}catch(l){o.error(l,"Platform request preprocessing failed. Returning default request options.")}return u}};function rS(e,t){let r=!t||!t.environment||t.environment==="prod"?"":t.environment,a=!t||!t.region||t.region==="us"?"":`-${t.region}`;return`https://${e}${r}${a}.cloud.coveo.com`}function gs(e,t="prod"){let r=t==="prod"?"":t,a=`https://${e}.org${r}.coveo.com`,n=`https://${e}.analytics.org${r}.coveo.com`,o=`${a}/rest/search/v2`,i=`https://${e}.admin.org${r}.coveo.com`;return{platform:a,analytics:n,search:o,admin:i}}function Tc(e){return(e==null?void 0:e.multiRegionSubDomain)?`https://${e.multiRegionSubDomain}.org.coveo.com`:rS("platform",e)}function Yp(e){return rS("analytics",e)}function LR(e){let{url:t,method:r,requestParams:a,contentType:n,accessToken:o,signal:i}=e,s=e.method==="POST"||e.method==="PUT",c=NR(a,n);return{url:t,method:r,headers:{"Content-Type":n,Authorization:`Bearer ${o}`,...e.headers},...s&&{body:c},signal:i}}function NR(e,t){return t==="application/x-www-form-urlencoded"?Xh(e)?Jh(e):"":JSON.stringify(e)}Dc.default.extend(nS.default);Dc.default.extend(aS.default);var Kp="/rest/search/v2",Jp="/rest/ua",it=()=>({organizationId:"",accessToken:"",platformUrl:Tc(),search:{apiBaseUrl:`${Tc()}${Kp}`,locale:"en-US",timezone:Dc.default.tz.guess(),authenticationProviders:[]},analytics:{enabled:!0,apiBaseUrl:`${Yp()}${Jp}`,nextApiBaseUrl:"",originContext:"Search",originLevel2:"default",originLevel3:"default",anonymous:!1,deviceId:"",userDisplayName:"",documentLocation:"",trackingId:"",analyticsMode:"legacy",source:{}}});var Ct=()=>!1;function Ja(){return{uniqueId:"",content:"",isLoading:!1,position:-1,resultsWithPreview:[]}}var Ge=()=>"default";var Mt=(r=>(r.Relevance="relevance",r.Fields="fields",r))(Mt||{}),Vc=(r=>(r.Ascending="asc",r.Descending="desc",r))(Vc||{});var jM=new q({options:{required:!1},values:{by:new Dt({enum:Mt,required:!0}),fields:new X({each:new q({values:{name:new w,direction:new Dt({enum:Vc})}})})}});var WM=new q({options:{required:!1},values:{by:new Dt({enum:Mt,required:!0}),fields:new X({each:new q({values:{field:new w({required:!0}),direction:new Dt({enum:Vc}),displayName:new w}})})}});function da(){return[]}function Xa(){return{}}function pa(){return{}}var Mc=()=>({});var JR=Ie(ls());var Za=e=>e;function Gn(){return{answerSnippet:"",documentId:{contentIdKey:"",contentIdValue:""},question:"",relatedQuestions:[],score:0}}function Te(){return{response:{results:[],searchUid:"",totalCountFiltered:0,facets:[],generateAutomaticFacets:{facets:[]},queryCorrections:[],triggers:[],questionAnswer:Gn(),pipeline:"",splitTestRun:"",termsToHighlight:{},phrasesToHighlight:{},extendedResults:{}},duration:0,queryExecuted:"",error:null,automaticallyCorrected:!1,isLoading:!1,results:[],searchResponseId:"",requestId:"",questionAnswer:Gn(),extendedResults:{}}}function Gt(e){let{url:t,accessToken:r,organizationId:a,authentication:n,...o}=e;return o}var $r=e=>{let{response:t}=e;return t.body?QR(e):BR(t)},QR=e=>UR(e)?_R(e):jR(e)?e.body:{message:"unknown",statusCode:0,type:"unknown"},BR=e=>{let t=JSON.parse(JSON.stringify(e,Object.getOwnPropertyNames(e)));return{...t,message:`Client side error: ${t.message||""}`,statusCode:400,type:"ClientError"}};function jR(e){return e.body.statusCode!==void 0}function UR(e){return e.body.exception!==void 0}var _R=e=>({message:e.body.exception.code,statusCode:e.response.status,type:e.body.exception.code});function Lc(){if(typeof window=="undefined"){let{AbortController:e}=sS();return new e}return typeof AbortController=="undefined"?null:new AbortController}var en=class{constructor(){this.currentAbortController=null}async enqueue(t,r){var o;let a=this.currentAbortController,n=this.currentAbortController=Lc();a&&(r.warnOnAbort&&r.logger.warn("Cancelling current pending search query"),a.abort());try{return await t((o=n==null?void 0:n.signal)!=null?o:null)}finally{this.currentAbortController===n&&(this.currentAbortController=null)}}};var tn=class{constructor(t){this._params={};this._basePath=t}addParam(t,r){this._params={...this.params,[t]:r}}get basePath(){return this._basePath}get params(){return this._params}get hasParams(){return Object.entries(this._params).length}get href(){return this.hasParams?`${this.basePath}?${Object.entries(this.params).map(([t,r])=>`${t}=${encodeURIComponent(r)}`).join("&")}`:this.basePath}},cS=e=>/^https:\/\/platform(dev|stg|hipaa)?(-)?(eu|au)?\.cloud\.coveo\.com/.test(e),uS=(e,t)=>{let r=Zp(e);return r&&r.organizationId===t?r:null},Zp=e=>{let t=e.match(/^https:\/\/(?\w+)\.org(?dev|stg|hipaa)?\.coveo\.com/);return(t==null?void 0:t.groups)?t.groups:null};function lS(e){return((e.headers.get("content-type")||"").split(";").find(a=>a.indexOf("charset=")!==-1)||"").split("=")[1]||"UTF-8"}var zt=(e,t,r,a)=>{let n=new tn(`${e.url}${a}`);return n.addParam("organizationId",e.organizationId),e.authentication&&n.addParam("authentication",e.authentication),{accessToken:e.accessToken,method:t,contentType:r,url:n.href,origin:"searchApiFetch"}};var dS=(e,t)=>{let r=new tn(`${e.url}${t}`);return r.addParam("access_token",e.accessToken),r.addParam("organizationId",e.organizationId),r.addParam("uniqueId",e.uniqueId),e.q!==void 0&&r.addParam("q",e.q),e.enableNavigation!==void 0&&r.addParam("enableNavigation",`${e.enableNavigation}`),e.requestedOutputSize!==void 0&&r.addParam("requestedOutputSize",`${e.requestedOutputSize}`),e.visitorId!==void 0&&r.addParam("visitorId",`${e.visitorId}`),r.href},pS=async(e,t)=>{let r=await ot.call({...zt(e,"POST","application/x-www-form-urlencoded","/html"),requestParams:Gt(e),requestMetadata:{method:"html"},...t});if(r instanceof Error)throw r;let a=lS(r),n=await r.arrayBuffer(),i=new TextDecoder(a).decode(n);return $R(i)?{success:i}:{error:$r({response:r,body:i})}};function $R(e){return typeof e=="string"}function HR(e){return{statusCode:e.statusCode,type:e.name,message:e.message}}function GR(e){return{statusCode:e.code,type:e.name,message:e.message,ignored:!0}}function hs(e,t){if(t&&e.name==="AbortError")return{error:GR(e)};if(e instanceof $n)return{error:HR(e)};throw e}var Ss=class{constructor(t){this.options=t;this.apiCallsQueues={unknown:new en,mainSearch:new en,facetValues:new en,foldingCollection:new en,instantResults:new en}}async plan(t){let r=await ot.call({...zt(t,"POST","application/json","/plan"),requestParams:Gt(t),requestMetadata:{method:"plan"},...this.options});if(r instanceof Error)return hs(r);let a=await r.json();return WR(a)?{success:a}:{error:$r({response:r,body:a})}}async querySuggest(t){let r=await ot.call({...zt(t,"POST","application/json","/querySuggest"),requestMetadata:{method:"querySuggest"},requestParams:Gt(t),...this.options});if(r instanceof Error)return hs(r);let a=await r.json(),n={response:r,body:a};return zR(a)?{success:(await this.options.postprocessQuerySuggestResponseMiddleware(n)).body}:{error:$r(n)}}async search(t,r){var s;let a=(s=r==null?void 0:r.origin)!=null?s:"unknown",n=await this.apiCallsQueues[a].enqueue(c=>ot.call({...zt(t,"POST","application/json",""),requestParams:Gt(t),requestMetadata:{method:"search",origin:r==null?void 0:r.origin},...this.options,signal:c!=null?c:void 0}),{logger:this.options.logger,warnOnAbort:!(r==null?void 0:r.disableAbortWarning)});if(n instanceof Error)return hs(n,r==null?void 0:r.disableAbortWarning);let o=await n.json(),i={response:n,body:o};return Qc(o)?(i.body=fS(o),{success:(await this.options.postprocessSearchResponseMiddleware(i)).body}):{error:$r(i)}}async facetSearch(t){let r=await ot.call({...zt(t,"POST","application/json","/facet"),requestParams:Gt(t),requestMetadata:{method:"facetSearch"},...this.options});if(r instanceof Error)throw r;let a=await r.json(),n={response:r,body:a};return(await this.options.postprocessFacetSearchResponseMiddleware(n)).body}async recommendations(t){let r=await ot.call({...zt(t,"POST","application/json",""),requestParams:Gt(t),requestMetadata:{method:"recommendations"},...this.options});if(r instanceof Error)throw r;let a=await r.json();return Qc(a)?{success:a}:{error:$r({response:r,body:a})}}async html(t){return pS(t,{...this.options})}async productRecommendations(t){let r=await ot.call({...zt(t,"POST","application/json",""),requestParams:Gt(t),requestMetadata:{method:"productRecommendations"},...this.options});if(r instanceof Error)throw r;let a=await r.json();return Qc(a)?{success:a}:{error:$r({response:r,body:a})}}async fieldDescriptions(t){let r=await ot.call({...zt(t,"GET","application/json","/fields"),requestParams:{},requestMetadata:{method:"fieldDescriptions"},...this.options});if(r instanceof Error)throw r;let a=await r.json();return YR(a)?{success:a}:{error:$r({response:r,body:a})}}},Nc=e=>e.success!==void 0,ye=e=>e.error!==void 0;function Qc(e){return e.results!==void 0}function fS(e){let t=Gn();return te(e.questionAnswer)?(e.questionAnswer=t,e):(e.questionAnswer={...t,...e.questionAnswer},e)}function zR(e){return e.completions!==void 0}function WR(e){return e.preprocessingOutput!==void 0}function YR(e){return e.fields!==void 0}function Wt(){return{contextValues:{}}}var Bc=()=>({correctedQuery:"",wordCorrections:[],originalQuery:""}),gS=()=>({correctedQuery:"",corrections:[],originalQuery:""});function ys(){return{enableDidYouMean:!1,wasCorrectedTo:"",wasAutomaticallyCorrected:!1,queryCorrection:Bc(),originalQuery:"",automaticallyCorrectQuery:!0,queryCorrectionMode:"legacy"}}function zn(){return{enabled:!0}}function fa(){return{freezeFacetOrder:!1,facets:{}}}function Yt(){return{}}function hS(e){return{request:e,hasBreadcrumbs:!0}}function Kt(){return{}}function SS(e){return{request:e}}function Jt(){return{}}function yS(e){return{request:e}}function Xt(){return{}}var ef=["author","language","urihash","objecttype","collection","source","permanentid"],CS=[...ef,"date","filetype","parents"],XR=[...CS,"ec_price","ec_name","ec_description","ec_brand","ec_category","ec_item_group_id","ec_shortdesc","ec_thumbnails","ec_images","ec_promo_price","ec_in_stock","ec_rating"],Wn=()=>({fieldsToInclude:ef,fetchAllFields:!1,fieldsDescription:[]});var rn=()=>({enabled:!1,fields:{collection:"foldingcollection",parent:"foldingparent",child:"foldingchild"},filterFieldRange:2,collections:{}});function Yn(){return{id:"",isVisible:!0,isLoading:!1,isStreaming:!1,citations:[],liked:!1,disliked:!1,responseFormat:{answerStyle:"default"},feedbackModalOpen:!1,feedbackSubmitted:!1,fieldsToIncludeInCitations:[]}}function Ue(){return{firstResult:0,defaultNumberOfResults:10,numberOfResults:10,totalCountFiltered:0}}var xe=()=>({q:"",enableQuerySyntax:!1});var Kn=()=>({liked:!1,disliked:!1,expanded:!1,feedbackModalOpen:!1,relatedQuestions:[]});var ma=(r=>(r.Ascending="ascending",r.Descending="descending",r))(ma||{}),Zt=(o=>(o.Relevancy="relevancy",o.QRE="qre",o.Date="date",o.Field="field",o.NoSort="nosort",o))(Zt||{}),Hr=e=>{if(_n(e))return e.map(t=>Hr(t)).join(",");switch(e.by){case"relevancy":case"qre":case"nosort":return e.by;case"date":return`date ${e.order}`;case"field":return`@${e.field} ${e.order}`;default:return""}},Cs=()=>({by:"relevancy"}),tf=e=>({by:"date",order:e}),rf=(e,t)=>({by:"field",order:t,field:e}),af=()=>({by:"qre"}),nf=()=>({by:"nosort"}),xS=new q({values:{by:new Dt({enum:Zt,required:!0}),order:new Dt({enum:ma}),field:new w}});function tt(){return Hr(Cs())}function an(){return{}}function nn(){return{}}function xs(){return{}}var vs=()=>({url:"",clientId:"",additionalFields:[],advancedParameters:{debug:!1},products:[],facets:{results:[]},error:null,isLoading:!1,responseId:""});function ga(){return{contextValues:{}}}var st=()=>({cq:"",cqWasSet:!1,aq:"",aqWasSet:!1,lq:"",lqWasSet:!1,dq:"",dqWasSet:!1,defaultFilters:{cq:"",aq:"",lq:"",dq:""}});var Lt=()=>"";var vS=Ie(ls());var jc=e=>e,Uc=e=>e,_c=e=>e;function AS(e){return new Ss({logger:(0,vS.default)({level:"silent"}),preprocessRequest:Za,postprocessSearchResponseMiddleware:jc,postprocessFacetSearchResponseMiddleware:Uc,postprocessQuerySuggestResponseMiddleware:_c,...e})}var ZR=10,$c=e=>({past:[],present:e,future:[]}),eP=e=>{let{past:t,present:r,future:a}=e;if(!r||t.length===0)return e;let n=t[t.length-1];return{past:t.slice(0,t.length-1),present:n,future:[r,...a]}},tP=e=>{let{past:t,present:r,future:a}=e;if(!r||a.length===0)return e;let n=a[0],o=a.slice(1);return{past:[...t,r],present:n,future:o}},rP=e=>{let{action:t,state:r,reducer:a}=e,{past:n,present:o}=r,i=a(o,t);return o?o===i?r:{past:[...n,o].slice(-ZR),present:i,future:[]}:$c(i)},bS=e=>{let{actionTypes:t,reducer:r}=e,a=$c();return(n=a,o)=>{switch(o.type){case t.undo:return eP(n);case t.redo:return tP(n);case t.snapshot:return rP({state:n,reducer:r,action:o});default:return n}}};function Hc(){return{length:void 0}}var FS=1,RS=20,Gc=5,PS=1,zc=8;function ha(){return{desiredCount:Gc,numberOfValues:zc,set:{}}}function Wc(){return Nt({})}function Nt(e){var t,r,a;return{context:e.context||Wt(),dictionaryFieldContext:e.dictionaryFieldContext||ga(),facetSet:e.facetSet||Kt(),numericFacetSet:e.numericFacetSet||Xt(),dateFacetSet:e.dateFacetSet||Jt(),categoryFacetSet:e.categoryFacetSet||Yt(),automaticFacetSet:(t=e.automaticFacetSet)!=null?t:ha(),pagination:e.pagination||Ue(),query:e.query||xe(),tabSet:e.tabSet||nn(),advancedSearchQueries:e.advancedSearchQueries||st(),staticFilterSet:e.staticFilterSet||an(),querySet:e.querySet||pa(),sortCriteria:e.sortCriteria||tt(),pipeline:e.pipeline||Lt(),searchHub:e.searchHub||Ge(),facetOptions:e.facetOptions||fa(),facetOrder:(r=e.facetOrder)!=null?r:da(),debug:(a=e.debug)!=null?a:Ct()}}function Yc(){return{}}function Kc(e){return e?e.expiresAt&&Date.now()>=e.expiresAt:!1}function Jc(){return{queries:[],maxLength:10}}function Xc(){return{results:[],maxLength:10}}function Zc(){return{}}var eu=()=>({redirectTo:"",query:"",executions:[],notifications:[],queryModification:{originalQuery:"",newQuery:"",queryToIgnore:""}});function tu(e={}){return{configuration:it(),advancedSearchQueries:st(),staticFilterSet:an(),facetSet:Kt(),dateFacetSet:Jt(),numericFacetSet:Xt(),categoryFacetSet:Yt(),facetSearchSet:Xa(),categoryFacetSearchSet:xs(),facetOptions:fa(),pagination:Ue(),query:xe(),querySet:pa(),instantResults:Yc(),tabSet:nn(),querySuggest:{},search:Te(),sortCriteria:tt(),context:Wt(),dictionaryFieldContext:ga(),didYouMean:ys(),fields:Wn(),history:$c(Wc()),pipeline:Lt(),facetOrder:da(),searchHub:Ge(),debug:Ct(),resultPreview:Ja(),version:"unit-testing-version",folding:rn(),triggers:eu(),questionAnswering:Kn(),standaloneSearchBoxSet:Zc(),recentResults:Xc(),recentQueries:Jc(),excerptLength:Hc(),automaticFacetSet:ha(),generatedAnswer:Yn(),...e}}function ES(e={}){let t=aP(e,tu);return{...t,executeFirstSearch:jest.fn(),executeFirstSearchAfterStandaloneSearchBoxRedirect:jest.fn(),apiClient:t.apiClient}}function aP(e={},t,r=nP){let a=(0,wS.default)({level:"silent"}),n=kS(e,t),{store:o,apiClient:i}=r(a,n),s=o(n),c=()=>{},{state:u,...l}=e;return{store:s,apiClient:i,state:kS(e,t),subscribe:jest.fn(()=>c),get dispatch(){return s.dispatch},get actions(){return s.getActions()},findAsyncAction(d){let p=this.actions.find(f=>f.type===d.type);return oP(p)?p:void 0},get relay(){return null},logger:a,addReducers:jest.fn(),enableAnalytics:jest.fn(),disableAnalytics:jest.fn(),...l}}function kS(e,t){let r=e.state||t();return r.configuration.analytics.enabled=!1,r}var nP=e=>{let t={apiClient:AS({logger:e}),validatePayload:nt,logger:e};return{store:(0,IS.default)([bc,Fc(e),Ac,es.withExtraArgument(t),...mc(),Rc(e)]),apiClient:t.apiClient}};function oP(e){return e?"meta"in e:!1}function As(e={}){return{urihash:"",parents:"",sfid:"",sfparentid:"",sfinsertedbyid:"",documenttype:"",sfcreatedbyid:"",permanentid:"",date:0,objecttype:"",sourcetype:"",sftitle:"",size:0,sffeeditemid:"",clickableuri:"",sfcreatedby:"",source:"",collection:"",connectortype:"",filetype:"",sfcreatedbyname:"",sflikecount:0,language:[],...e}}function OS(e={}){return{title:"",uri:"",printableUri:"",clickUri:"",uniqueId:"",excerpt:"",firstSentences:"",summary:null,flags:"",hasHtmlVersion:!1,score:0,percentScore:0,rankingInfo:null,isTopResult:!1,isRecommendation:!1,titleHighlights:[],firstSentencesHighlights:[],excerptHighlights:[],printableUriHighlights:[],summaryHighlights:[],absentTerms:[],raw:As(),isUserActionView:!1,...e}}var Cj={title:"example documentTitle",uri:"example documentUri",printableUri:"printable-uri",clickUri:"example documentUrl",uniqueId:"unique-id",excerpt:"excerpt",firstSentences:"first-sentences",flags:"flags",rankingModifier:"example rankingModifier",raw:As({urihash:"example documentUriHash",source:"example sourceName",collection:"example collectionName",permanentid:"example contentIDValue"})};var qS={};Km(qS,{escape:()=>Jn,getHighlightedSuggestion:()=>of,highlightString:()=>iP});function iP(e){if(kc(e.openingDelimiter)||kc(e.closingDelimiter))throw Error("delimiters should be a non-empty string");if(te(e.content)||kc(e.content))return e.content;if(e.highlights.length===0)return Jn(e.content);let t=e.content.length,r="",a=0;for(let n=0;nt)break;r+=Jn(e.content.slice(a,i)),r+=e.openingDelimiter,r+=Jn(e.content.slice(i,s)),r+=e.closingDelimiter,a=s}return a!==t&&(r+=Jn(e.content.slice(a))),r}function of(e,t){return e=Jn(e),e.replace(/\[(.*?)\]|\{(.*?)\}|\((.*?)\)/g,(r,a,n,o)=>a?sf(a,t.notMatchDelimiters):n?sf(n,t.exactMatchDelimiters):o?sf(o,t.correctionDelimiters):r)}function sf(e,t){return t?t.open+e+t.close:e}function Jn(e){let t={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},r="(?:"+Object.keys(t).join("|")+")",a=RegExp(r),n=RegExp(r,"g");return a.test(e)?e.replace(n,o=>t[o]):e}async function TS(e,t){let r=e.getReader(),a;for(;!(a=await r.read()).done;)t(a.value)}function DS(e){let t,r,a,n=!1;return function(i){t===void 0?(t=i,r=0,a=-1):t=sP(t,i);let s=t.length,c=0;for(;r0){let c=n.decode(i.subarray(0,s)),u=s+(i[s+1]===32?2:1),l=n.decode(i.subarray(u));switch(c){case"data":a.data=a.data?a.data+` -`+l:l;break;case"event":a.event=l;break;case"id":e(a.id=l);break;case"retry":let d=parseInt(l,10);isNaN(d)||t(a.retry=d);break}}}}function sP(e,t){let r=new Uint8Array(e.length+t.length);return r.set(e),r.set(t,e.length),r}function MS(){return{data:"",event:"",id:"",retry:void 0}}var cP=function(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(e);n{let f=Object.assign({},a);f.accept||(f.accept=ru);let m;function g(){m?.abort(),document.hidden||N()}c||document.addEventListener("visibilitychange",g);let S=uP,y=0;function x(){document.removeEventListener("visibilitychange",g),window.clearTimeout(y),m?.abort()}r==null||r.addEventListener("abort",()=>{x(),d()});let b=u??window.fetch,P=n??lP;async function N(){var H;m=typeof AbortController=="undefined"?null:new AbortController;try{let Z=await b(e,Object.assign(Object.assign({},l),{headers:f,signal:m?.signal}));await P(Z),await TS(Z.body,DS(VS(U=>{U?f[LS]=U:delete f[LS]},U=>{S=U},o))),i==null||i(),x(),d()}catch(Z){if(!m?.signal.aborted)try{let U=(H=s==null?void 0:s(Z))!==null&&H!==void 0?H:S;window.clearTimeout(y),y=window.setTimeout(N,U)}catch(U){x(),p(U)}}}N()})}function lP(e){let t=e.headers.get("content-type");if(!(t==null?void 0:t.startsWith(ru)))throw new Error(`Expected content-type to be ${ru}, Actual: ${t}`)}var dP=(e,t,r)=>new tn(`${e}/rest/organizations/${t}/machinelearning/streaming/${r}`).href,NS=3,pP=5e3,fP="text/event-stream",uf=1,QS=class extends Error{},au=class extends Error{constructor(t){super(t.message);this.payload=t}},BS=class{constructor(){this.timeouts=new Set}add(t){this.timeouts.add(t)}remove(t){clearTimeout(t),this.timeouts.delete(t)}isActive(t){return this.timeouts.has(t)}},lf=class{constructor(t){this.logger=t.logger}streamGeneratedAnswer(t,r){let{url:a,organizationId:n,streamId:o,accessToken:i}=t,{write:s,abort:c,close:u,resetAnswer:l}=r,d=new BS;if(!o){this.logger.error("No stream ID found");return}let p=0,f,m=()=>{f&&!d.isActive(f)&&(S==null||S.abort(),l(),y())},g=()=>{d.remove(f),f=Kh(m,f,pP),d.add(f)},S=Lc(),y=()=>cf(dP(a,n,o),{method:"GET",headers:{Authorization:`Bearer ${i}`,accept:"*/*"},signal:S==null?void 0:S.signal,async onopen(x){if(x.ok&&x.headers.get("content-type")===fP)return;throw x.status>=400&&x.status<500&&x.status!==429?new au({message:"Error opening stream",code:x.status}):new QS},onmessage:x=>{let b=JSON.parse(x.data);if(b.finishReason==="ERROR"){d.remove(f),S==null||S.abort(),c({message:b.errorMessage,code:b.statusCode});return}s(b),p=0,b.finishReason==="COMPLETED"?(d.remove(f),u()):g()},onerror:x=>{if(d.remove(f),x instanceof au)throw S==null||S.abort(),c(x),x;if(++p>NS){this.logger.info("Maximum retry exceeded.");let b={message:"Failed to complete stream.",code:uf};throw S==null||S.abort(),c(b),new au(b)}this.logger.info(`Retrying...(${p}/${NS})`),l()}});return y(),S}};function er(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(e);ngP.indexOf(e)!==-1?Object.assign({language:Xn()?document.documentElement.lang:"unknown",userAgent:df()?navigator.userAgent:"unknown"},t):t,Zn=class{static set(t,r,a){var n,o,i,s;a&&(o=new Date,o.setTime(o.getTime()+a)),s=window.location.hostname,s.indexOf(".")===-1?_S(t,r,o):(i=s.split("."),n=i[i.length-2]+"."+i[i.length-1],_S(t,r,o,n))}static get(t){for(var r=t+"=",a=document.cookie.split(";"),n=0;n(n.internalTime||0)-(a.internalTime||0))[0]:null}cropQueryElement(t){return t.name&&t.value&&t.name.toLowerCase()==="query"&&(t.value=t.value.slice(0,zS)),t}isValidEntry(t){let r=this.getMostRecentElement();return r&&r.value==t.value?(t.internalTime||0)-(r.internalTime||0)>GS:!0}stripInternalTime(t){return Array.isArray(t)?t.map(r=>{let{name:a,time:n,value:o}=r;return{name:a,time:n,value:o}}):[]}stripEmptyQuery(t){let{name:r,time:a,value:n}=t;return r&&typeof n=="string"&&r.toLowerCase()==="query"&&n.trim()===""?{name:r,time:a}:t}stripEmptyQueries(t){return t.map(r=>this.stripEmptyQuery(r))}},WS=Object.freeze({__proto__:null,HistoryStore:Fs,MAX_NUMBER_OF_HISTORY_ELEMENTS:HS,MAX_VALUE_SIZE:zS,MIN_THRESHOLD_FOR_DUPLICATE_VALUE:GS,STORE_KEY:bs,default:Fs}),yP=(e,t)=>F(void 0,void 0,void 0,function*(){return e===se.view?(yield CP(t.contentIdValue),Object.assign({location:window.location.toString(),referrer:document.referrer,title:document.title},t)):t}),CP=e=>F(void 0,void 0,void 0,function*(){let t=new Fs,r={name:"PageView",value:e,time:new Date().toISOString()};yield t.addElementAsync(r)}),nu,xP=new Uint8Array(16);function vP(){if(!nu&&(nu=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!nu))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return nu(xP)}var AP=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function ou(e){return typeof e=="string"&&AP.test(e)}var _e=[];for(let e=0;e<256;++e)_e.push((e+256).toString(16).slice(1));function YS(e,t=0){return(_e[e[t+0]]+_e[e[t+1]]+_e[e[t+2]]+_e[e[t+3]]+"-"+_e[e[t+4]]+_e[e[t+5]]+"-"+_e[e[t+6]]+_e[e[t+7]]+"-"+_e[e[t+8]]+_e[e[t+9]]+"-"+_e[e[t+10]]+_e[e[t+11]]+_e[e[t+12]]+_e[e[t+13]]+_e[e[t+14]]+_e[e[t+15]]).toLowerCase()}function bP(e){if(!ou(e))throw TypeError("Invalid UUID");let t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=t&255,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=t&255,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=t&255,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=t&255,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=t&255,r}function FP(e){e=unescape(encodeURIComponent(e));let t=[];for(let r=0;r>>32-t}function kP(e){let t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){let i=unescape(encodeURIComponent(e));e=[];for(let s=0;s>>0;p=d,d=l,l=ff(u,30)>>>0,u=c,c=g}r[0]=r[0]+c>>>0,r[1]=r[1]+u>>>0,r[2]=r[2]+l>>>0,r[3]=r[3]+d>>>0,r[4]=r[4]+p>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}var OP=wP("v5",80,kP),JS=OP,XS="2.29.3",ZS=e=>`${e.protocol}//${e.hostname}${e.pathname.indexOf("/")===0?e.pathname:`/${e.pathname}`}${e.search}`,Rs={pageview:"pageview",event:"event"},mf=class{constructor({client:t,uuidGenerator:r=on}){this.client=t,this.uuidGenerator=r}},ey=class extends mf{constructor({client:t,uuidGenerator:r=on}){super({client:t,uuidGenerator:r});this.actionData={},this.pageViewId=r(),this.nextPageViewId=this.pageViewId,this.currentLocation=ZS(window.location),this.lastReferrer=Xn()?document.referrer:"",this.addHooks()}getApi(t){switch(t){case"setAction":return this.setAction;default:return null}}setAction(t,r){this.action=t,this.actionData=r}clearData(){this.clearPluginData(),this.action=void 0,this.actionData={}}getLocationInformation(t,r){return Object.assign({hitType:t},this.getNextValues(t,r))}updateLocationInformation(t,r){this.updateLocationForNextPageView(t,r)}getDefaultContextInformation(t){let r={title:Xn()?document.title:"",encoding:Xn()?document.characterSet:"UTF-8"},a={screenResolution:`${screen.width}x${screen.height}`,screenColor:`${screen.colorDepth}-bit`},n={language:navigator.language,userAgent:navigator.userAgent},o={time:Date.now(),eventId:this.uuidGenerator()};return Object.assign(Object.assign(Object.assign(Object.assign({},o),a),n),r)}updateLocationForNextPageView(t,r){let{pageViewId:a,referrer:n,location:o}=this.getNextValues(t,r);this.lastReferrer=n,this.pageViewId=a,this.currentLocation=o,t===Rs.pageview&&(this.nextPageViewId=this.uuidGenerator(),this.hasSentFirstPageView=!0)}getNextValues(t,r){return{pageViewId:t===Rs.pageview?this.nextPageViewId:this.pageViewId,referrer:t===Rs.pageview&&this.hasSentFirstPageView?this.currentLocation:this.lastReferrer,location:t===Rs.pageview?this.getCurrentLocationFromPayload(r):this.currentLocation}}getCurrentLocationFromPayload(t){if(t.page){let r=n=>n.replace(/^\/?(.*)$/,"/$1");return`${(n=>n.split("/").slice(0,3).join("/"))(this.currentLocation)}${r(t.page)}`}else return ZS(window.location)}},tr=class{constructor(t,r){if(!ou(t))throw Error("Not a valid uuid");this.clientId=t,this.creationDate=Math.floor(r/1e3)}toString(){return this.clientId.replace(/-/g,"")+"."+this.creationDate.toString()}get expired(){let t=Math.floor(Date.now()/1e3)-this.creationDate;return t<0||t>tr.expirationTime}validate(t,r){return!this.expired&&this.matchReferrer(t,r)}matchReferrer(t,r){try{let a=new URL(t);return r.some(n=>new RegExp(n.replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*")+"$").test(a.host))}catch{return!1}}static fromString(t){let r=t.split(".");if(r.length!==2)return null;let[a,n]=r;if(a.length!==32||isNaN(parseInt(n)))return null;let o=a.substring(0,8)+"-"+a.substring(8,12)+"-"+a.substring(12,16)+"-"+a.substring(16,20)+"-"+a.substring(20,32);return ou(o)?new tr(o,Number.parseInt(n)*1e3):null}};tr.cvo_cid="cvo_cid";tr.expirationTime=120;var ty=class extends mf{constructor({client:t,uuidGenerator:r=on}){super({client:t,uuidGenerator:r})}getApi(t){switch(t){case"decorate":return this.decorate;case"acceptFrom":return this.acceptFrom;default:return null}}decorate(t){return F(this,void 0,void 0,function*(){if(!this.client.getCurrentVisitorId)throw new Error("Could not retrieve current clientId");try{let r=new URL(t),a=yield this.client.getCurrentVisitorId();return r.searchParams.set(tr.cvo_cid,new tr(a,Date.now()).toString()),r.toString()}catch{throw new Error("Invalid URL provided")}})}acceptFrom(t){this.client.setAcceptedLinkReferrers(t)}};ty.Id="link";var xt=Object.keys;function iu(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}var gf={id:"svc_ticket_id",subject:"svc_ticket_subject",description:"svc_ticket_description",category:"svc_ticket_category",productId:"svc_ticket_product_id",custom:"svc_ticket_custom"},qP=xt(gf).map(e=>gf[e]),TP=[...qP].join("|"),DP=new RegExp(`^(${TP}$)`),VP={svcAction:"svc_action",svcActionData:"svc_action_data"},MP=e=>xt(e).filter(t=>e[t]!==void 0).reduce((t,r)=>{let a=gf[r]||r;return Object.assign(Object.assign({},t),{[a]:e[r]})},{}),LP=e=>DP.test(e),NP=[LP],ry={id:"id",name:"nm",brand:"br",category:"ca",variant:"va",price:"pr",quantity:"qt",coupon:"cc",position:"ps",group:"group"},ay={id:"id",name:"nm",brand:"br",category:"ca",variant:"va",position:"ps",price:"pr",group:"group"},ze={action:"pa",list:"pal",listSource:"pls"},su={id:"ti",revenue:"tr",tax:"tt",shipping:"ts",coupon:"tcc",affiliation:"ta",step:"cos",option:"col"},QP=["loyaltyCardId","loyaltyTier","thirdPartyPersona","companyName","favoriteStore","storeName","userIndustry","userRole","userDepartment","businessUnit"],hf={id:"quoteId",affiliation:"quoteAffiliation"},Sf={id:"reviewId",rating:"reviewRating",comment:"reviewComment"},BP={add:ze,bookmark_add:ze,bookmark_remove:ze,click:ze,checkout:ze,checkout_option:ze,detail:ze,impression:ze,remove:ze,refund:Object.assign(Object.assign({},ze),su),purchase:Object.assign(Object.assign({},ze),su),quickview:ze,quote:Object.assign(Object.assign({},ze),hf),review:Object.assign(Object.assign({},ze),Sf)},jP=xt(ry).map(e=>ry[e]),UP=xt(ay).map(e=>ay[e]),_P=xt(ze).map(e=>ze[e]),$P=xt(su).map(e=>su[e]),HP=xt(Sf).map(e=>Sf[e]),GP=xt(hf).map(e=>hf[e]),zP=[...jP,"custom"].join("|"),WP=[...UP,"custom"].join("|"),ny="(pr[0-9]+)",oy="(il[0-9]+pi[0-9]+)",YP=new RegExp(`^${ny}(${zP})$`),KP=new RegExp(`^(${oy}(${WP}))|(il[0-9]+nm)$`),JP=new RegExp(`^(${_P.join("|")})$`),XP=new RegExp(`^(${$P.join("|")})$`),ZP=new RegExp(`^${ny}custom$`),ew=new RegExp(`^${oy}custom$`),tw=new RegExp(`^(${[...QP,...HP,...GP].join("|")})$`),rw=e=>YP.test(e),aw=e=>KP.test(e),nw=e=>JP.test(e),ow=e=>XP.test(e),iw=e=>tw.test(e),sw=[aw,rw,nw,ow,iw],cw=[ZP,ew],uw={anonymizeIp:"aip"},lw={eventCategory:"ec",eventAction:"ea",eventLabel:"el",eventValue:"ev",page:"dp",visitorId:"cid",clientId:"cid",userId:"uid",currencyCode:"cu"},dw={hitType:"t",pageViewId:"pid",encoding:"de",location:"dl",referrer:"dr",screenColor:"sd",screenResolution:"sr",title:"dt",userAgent:"ua",language:"ul",eventId:"z",time:"tm"},pw=["contentId","contentIdKey","contentType","searchHub","tab","searchUid","permanentId","contentLocale","trackingId"],fw=Object.assign(Object.assign(Object.assign(Object.assign({},uw),lw),dw),pw.reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:t}),{})),yf=Object.assign(Object.assign({},fw),VP),mw=e=>{let t=!!e.action&&BP[e.action]||{};return xt(e).reduce((r,a)=>{let n=t[a]||yf[a]||a;return Object.assign(Object.assign({},r),{[n]:e[a]})},{})},gw=xt(yf).map(e=>yf[e]),hw=e=>gw.indexOf(e)!==-1,Sw=e=>e==="custom",yw=e=>[...sw,...NP,hw,Sw].some(t=>t(e)),Cw=e=>xt(e).reduce((t,r)=>{let a=xw(r);return a?Object.assign(Object.assign({},t),vw(a,e[r])):Object.assign(Object.assign({},t),{[r]:e[r]})},{}),xw=e=>{let t;return[...cw].every(r=>{var a;return t=(a=r.exec(e))===null||a===void 0?void 0:a[1],!Boolean(t)}),t},vw=(e,t)=>xt(t).reduce((r,a)=>Object.assign(Object.assign({},r),{[`${e}${a}`]:t[a]}),{}),iy=class{constructor(t){this.opts=t}sendEvent(t,r){return F(this,void 0,void 0,function*(){if(!this.isAvailable())throw new Error('navigator.sendBeacon is not supported in this browser. Consider adding a polyfill like "sendbeacon-polyfill".');let{baseUrl:a,preprocessRequest:n}=this.opts,o=yield this.getQueryParamsForEventType(t),{url:i,payload:s}=yield this.preProcessRequestAsPotentialJSONString(`${a}/analytics/${t}?${o}`,r,n),c=this.encodeForEventType(t,s),u=new Blob([c],{type:"application/x-www-form-urlencoded"});navigator.sendBeacon(i,u)})}isAvailable(){return"sendBeacon"in navigator}deleteHttpCookieVisitorId(){return Promise.resolve()}preProcessRequestAsPotentialJSONString(t,r,a){return F(this,void 0,void 0,function*(){let n=t,o=r;if(a){let i=yield a({url:t,body:JSON.stringify(r)},"analyticsBeacon"),{url:s,body:c}=i;n=s||t;try{o=JSON.parse(c)}catch(u){console.error("Unable to process the request body as a JSON string",u)}}return{payload:o,url:n}})}encodeForEventType(t,r){return this.isEventTypeLegacy(t)?this.encodeEventToJson(t,r):this.encodeEventToJson(t,r,this.opts.token)}getQueryParamsForEventType(t){return F(this,void 0,void 0,function*(){let{token:r,visitorIdProvider:a}=this.opts,n=yield a.getCurrentVisitorId();return[r&&this.isEventTypeLegacy(t)?`access_token=${r}`:"",n?`visitorId=${n}`:"","discardVisitInfo=true"].filter(o=>!!o).join("&")})}isEventTypeLegacy(t){return[se.click,se.custom,se.search,se.view].indexOf(t)!==-1}encodeEventToJson(t,r,a){let n=`${t}Event=${encodeURIComponent(JSON.stringify(r))}`;return a&&(n=`access_token=${encodeURIComponent(a)}&${n}`),n}},sy=class{sendEvent(t,r){return F(this,void 0,void 0,function*(){return Promise.resolve()})}deleteHttpCookieVisitorId(){return F(this,void 0,void 0,function*(){return Promise.resolve()})}},cy=window.fetch,Cf=class{constructor(t){this.opts=t}sendEvent(t,r){return F(this,void 0,void 0,function*(){let{baseUrl:a,visitorIdProvider:n,preprocessRequest:o}=this.opts,i=this.shouldAppendVisitorId(t)?yield this.getVisitorIdParam():"",s={url:`${a}/analytics/${t}${i}`,credentials:"include",mode:"cors",headers:this.getHeaders(),method:"POST",body:JSON.stringify(r)},c=Object.assign(Object.assign({},s),o?yield o(s,"analyticsFetch"):{}),{url:u}=c,l=er(c,["url"]),d=yield cy(u,l);if(d.ok){let p=yield d.json();return p.visitorId&&n.setCurrentVisitorId(p.visitorId),p}else{try{d.json()}catch{}throw console.error(`An error has occured when sending the "${t}" event.`,d,r),new Error(`An error has occurred when sending the "${t}" event. Check the console logs for more details.`)}})}deleteHttpCookieVisitorId(){return F(this,void 0,void 0,function*(){let{baseUrl:t}=this.opts,r=`${t}/analytics/visit`;yield cy(r,{headers:this.getHeaders(),method:"DELETE"})})}shouldAppendVisitorId(t){return[se.click,se.custom,se.search,se.view].indexOf(t)!==-1}getVisitorIdParam(){return F(this,void 0,void 0,function*(){let{visitorIdProvider:t}=this.opts,r=yield t.getCurrentVisitorId();return r?`?visitor=${r}`:""})}getHeaders(){let{token:t}=this.opts;return Object.assign(Object.assign({},t?{Authorization:`Bearer ${t}`}:{}),{"Content-Type":"application/json"})}},uy=class{constructor(t,r){pf()&&US()?this.storage=new $S:pf()?this.storage=localStorage:(console.warn("BrowserRuntime detected no valid storage available.",this),this.storage=new eo),this.client=new Cf(t),this.beaconClient=new iy(t),window.addEventListener("beforeunload",()=>{let a=r();for(let{eventType:n,payload:o}of a)this.beaconClient.sendEvent(n,o)})}getClientDependingOnEventType(t){return t==="click"&&this.beaconClient.isAvailable()?this.beaconClient:this.client}},ly=class{constructor(t,r){this.storage=r||new eo,this.client=new Cf(t)}getClientDependingOnEventType(t){return this.client}},dy=class{constructor(){this.storage=new eo,this.client=new sy}getClientDependingOnEventType(t){return this.client}},Aw="xx",bw=e=>(e==null?void 0:e.startsWith(Aw))||!1,Fw=` - We've detected you're using React Native but have not provided the corresponding runtime, - for an optimal experience please use the "coveo.analytics/react-native" subpackage. - Follow the Readme on how to set it up: https://github.com/coveo/coveo.analytics.js#using-react-native - `;function Rw(){return typeof navigator!="undefined"&&navigator.product=="ReactNative"}var Pw=["1",1,"yes",!0];function Ps(){return df()&&[navigator.globalPrivacyControl,navigator.doNotTrack,navigator.msDoNotTrack,window.doNotTrack].some(e=>Pw.indexOf(e)!==-1)}var py="v15",fy={default:"https://analytics.cloud.coveo.com/rest/ua",production:"https://analytics.cloud.coveo.com/rest/ua",hipaa:"https://analyticshipaa.cloud.coveo.com/rest/ua"};function ww(e=fy.default,t=py,r=!1){if(e=e.replace(/\/$/,""),r)return`${e}/${t}`;let a=e.endsWith("/rest")||e.endsWith("/rest/ua");return`${e}${a?"":"/rest"}/${t}`}var Iw="38824e1f-37f5-42d3-8372-a4b8fa9df946",Qt=class{get defaultOptions(){return{endpoint:fy.default,isCustomEndpoint:!1,token:"",version:py,beforeSendHooks:[],afterSendHooks:[]}}get version(){return XS}constructor(t){if(this.acceptedLinkReferrers=[],!t)throw new Error("You have to pass options to this constructor");this.options=Object.assign(Object.assign({},this.defaultOptions),t),this.visitorId="",this.bufferedRequests=[],this.beforeSendHooks=[yP,hP].concat(this.options.beforeSendHooks),this.afterSendHooks=this.options.afterSendHooks,this.eventTypeMapping={};let r={baseUrl:this.baseUrl,token:this.options.token,visitorIdProvider:this,preprocessRequest:this.options.preprocessRequest};this.runtime=this.options.runtimeEnvironment||this.initRuntime(r),Ps()&&(this.runtime.storage=new eo),this.addEventTypeMapping(se.view,{newEventType:se.view,addClientIdParameter:!0}),this.addEventTypeMapping(se.click,{newEventType:se.click,addClientIdParameter:!0}),this.addEventTypeMapping(se.custom,{newEventType:se.custom,addClientIdParameter:!0}),this.addEventTypeMapping(se.search,{newEventType:se.search,addClientIdParameter:!0})}initRuntime(t){return jS()&&Xn()?new uy(t,()=>{let r=[...this.bufferedRequests];return this.bufferedRequests=[],r}):(Rw()&&console.warn(Fw),new ly(t))}get storage(){return this.runtime.storage}determineVisitorId(){return F(this,void 0,void 0,function*(){try{return jS()&&this.extractClientIdFromLink(window.location.href)||(yield this.storage.getItem("visitorId"))||on()}catch(t){return console.log("Could not get visitor ID from the current runtime environment storage. Using a random ID instead.",t),on()}})}getCurrentVisitorId(){return F(this,void 0,void 0,function*(){if(!this.visitorId){let t=yield this.determineVisitorId();yield this.setCurrentVisitorId(t)}return this.visitorId})}setCurrentVisitorId(t){return F(this,void 0,void 0,function*(){this.visitorId=t,yield this.storage.setItem("visitorId",t)})}setClientId(t,r){return F(this,void 0,void 0,function*(){if(ou(t))this.setCurrentVisitorId(t.toLowerCase());else{if(!r)throw Error("Cannot generate uuid client id without a specific namespace string.");this.setCurrentVisitorId(JS(t,JS(r,Iw)))}})}getParameters(t,...r){return F(this,void 0,void 0,function*(){return yield this.resolveParameters(t,...r)})}getPayload(t,...r){return F(this,void 0,void 0,function*(){let a=yield this.resolveParameters(t,...r);return yield this.resolvePayloadForParameters(t,a)})}get currentVisitorId(){return typeof(this.visitorId||this.storage.getItem("visitorId"))!="string"&&this.setCurrentVisitorId(on()),this.visitorId}set currentVisitorId(t){this.visitorId=t,this.storage.setItem("visitorId",t)}extractClientIdFromLink(t){if(Ps())return null;try{let r=new URL(t).searchParams.get(tr.cvo_cid);if(r==null)return null;let a=tr.fromString(r);return!a||!Xn()||!a.validate(document.referrer,this.acceptedLinkReferrers)?null:a.clientId}catch{}return null}resolveParameters(t,...r){return F(this,void 0,void 0,function*(){let{variableLengthArgumentsNames:a=[],addVisitorIdParameter:n=!1,usesMeasurementProtocol:o=!1,addClientIdParameter:i=!1}=this.eventTypeMapping[t]||{};return yield[f=>a.length>0?this.parseVariableArgumentsPayload(a,f):f[0],f=>F(this,void 0,void 0,function*(){return Object.assign(Object.assign({},f),{visitorId:n?yield this.getCurrentVisitorId():""})}),f=>F(this,void 0,void 0,function*(){return i?Object.assign(Object.assign({},f),{clientId:yield this.getCurrentVisitorId()}):f}),f=>o?this.ensureAnonymousUserWhenUsingApiKey(f):f,f=>this.beforeSendHooks.reduce((m,g)=>F(this,void 0,void 0,function*(){let S=yield m;return yield g(t,S)}),f)].reduce((f,m)=>F(this,void 0,void 0,function*(){let g=yield f;return yield m(g)}),Promise.resolve(r))})}resolvePayloadForParameters(t,r){return F(this,void 0,void 0,function*(){let{usesMeasurementProtocol:a=!1}=this.eventTypeMapping[t]||{};return yield[d=>this.setTrackingIdIfTrackingIdNotPresent(d),d=>this.removeEmptyPayloadValues(d,t),d=>this.validateParams(d,t),d=>a?mw(d):d,d=>a?this.removeUnknownParameters(d):d,d=>a?this.processCustomParameters(d):this.mapCustomParametersToCustomData(d)].reduce((d,p)=>F(this,void 0,void 0,function*(){let f=yield d;return yield p(f)}),Promise.resolve(r))})}makeEvent(t,...r){return F(this,void 0,void 0,function*(){let{newEventType:a=t}=this.eventTypeMapping[t]||{},n=yield this.resolveParameters(t,...r),o=yield this.resolvePayloadForParameters(t,n);return{eventType:a,payload:o,log:i=>F(this,void 0,void 0,function*(){return this.bufferedRequests.push({eventType:a,payload:Object.assign(Object.assign({},o),i)}),yield Promise.all(this.afterSendHooks.map(s=>s(t,Object.assign(Object.assign({},n),i)))),yield this.deferExecution(),yield this.sendFromBuffer()})}})}sendEvent(t,...r){return F(this,void 0,void 0,function*(){return(yield this.makeEvent(t,...r)).log({})})}deferExecution(){return new Promise(t=>setTimeout(t,0))}sendFromBuffer(){return F(this,void 0,void 0,function*(){let t=this.bufferedRequests.shift();if(t){let{eventType:r,payload:a}=t;return this.runtime.getClientDependingOnEventType(r).sendEvent(r,a)}})}clear(){this.storage.removeItem("visitorId"),new Fs().clear()}deleteHttpOnlyVisitorId(){this.runtime.client.deleteHttpCookieVisitorId()}makeSearchEvent(t){return F(this,void 0,void 0,function*(){return this.makeEvent(se.search,t)})}sendSearchEvent(t){var{searchQueryUid:r}=t,a=er(t,["searchQueryUid"]);return F(this,void 0,void 0,function*(){return(yield this.makeSearchEvent(a)).log({searchQueryUid:r})})}makeClickEvent(t){return F(this,void 0,void 0,function*(){return this.makeEvent(se.click,t)})}sendClickEvent(t){var{searchQueryUid:r}=t,a=er(t,["searchQueryUid"]);return F(this,void 0,void 0,function*(){return(yield this.makeClickEvent(a)).log({searchQueryUid:r})})}makeCustomEvent(t){return F(this,void 0,void 0,function*(){return this.makeEvent(se.custom,t)})}sendCustomEvent(t){var{lastSearchQueryUid:r}=t,a=er(t,["lastSearchQueryUid"]);return F(this,void 0,void 0,function*(){return(yield this.makeCustomEvent(a)).log({lastSearchQueryUid:r})})}makeViewEvent(t){return F(this,void 0,void 0,function*(){return this.makeEvent(se.view,t)})}sendViewEvent(t){return F(this,void 0,void 0,function*(){return(yield this.makeViewEvent(t)).log({})})}getVisit(){return F(this,void 0,void 0,function*(){let r=yield(yield fetch(`${this.baseUrl}/analytics/visit`)).json();return this.visitorId=r.visitorId,r})}getHealth(){return F(this,void 0,void 0,function*(){return yield(yield fetch(`${this.baseUrl}/analytics/monitoring/health`)).json()})}registerBeforeSendEventHook(t){this.beforeSendHooks.push(t)}registerAfterSendEventHook(t){this.afterSendHooks.push(t)}addEventTypeMapping(t,r){this.eventTypeMapping[t]=r}setAcceptedLinkReferrers(t){if(Array.isArray(t)&&t.every(r=>typeof r=="string"))this.acceptedLinkReferrers=t;else throw Error("Parameter should be an array of domain strings")}parseVariableArgumentsPayload(t,r){let a={};for(let n=0,o=r.length;ntypeof n!="undefined"&&n!==null&&n!=="";return Object.keys(t).filter(n=>this.isKeyAllowedEmpty(r,n)||a(t[n])).reduce((n,o)=>Object.assign(Object.assign({},n),{[o]:t[o]}),{})}removeUnknownParameters(t){return Object.keys(t).filter(a=>{if(yw(a))return!0;console.log(a,"is not processed by coveoua")}).reduce((a,n)=>Object.assign(Object.assign({},a),{[n]:t[n]}),{})}processCustomParameters(t){let{custom:r}=t,a=er(t,["custom"]),n={};r&&iu(r)&&(n=this.lowercaseKeys(r));let o=Cw(a);return Object.assign(Object.assign({},n),o)}mapCustomParametersToCustomData(t){let{custom:r}=t,a=er(t,["custom"]);if(r&&iu(r)){let n=this.lowercaseKeys(r);return Object.assign(Object.assign({},a),{customData:Object.assign(Object.assign({},n),t.customData)})}else return t}lowercaseKeys(t){let r=Object.keys(t),a={};return r.forEach(n=>{a[n.toLowerCase()]=t[n]}),a}validateParams(t,r){let{anonymizeIp:a}=t,n=er(t,["anonymizeIp"]);return a!==void 0&&["0","false","undefined","null","{}","[]",""].indexOf(`${a}`.toLowerCase())==-1&&(n.anonymizeIp=1),(r==se.view||r==se.click||r==se.search||r==se.custom)&&(n.originLevel3=this.limit(n.originLevel3,128)),r==se.view&&(n.location=this.limit(n.location,128)),(r=="pageview"||r=="event")&&(n.referrer=this.limit(n.referrer,2048),n.location=this.limit(n.location,2048),n.page=this.limit(n.page,2048)),n}ensureAnonymousUserWhenUsingApiKey(t){let{userId:r}=t,a=er(t,["userId"]);return bw(this.options.token)&&!r?(a.userId="anonymous",a):t}setTrackingIdIfTrackingIdNotPresent(t){let{trackingId:r}=t,a=er(t,["trackingId"]);return r?t:(a.hasOwnProperty("custom")&&iu(a.custom)&&(a.custom.hasOwnProperty("context_website")||a.custom.hasOwnProperty("siteName"))&&(a.trackingId=a.custom.context_website||a.custom.siteName),a.hasOwnProperty("customData")&&iu(a.customData)&&(a.customData.hasOwnProperty("context_website")||a.customData.hasOwnProperty("siteName"))&&(a.trackingId=a.customData.context_website||a.customData.siteName),a)}limit(t,r){return typeof t!="string"?t:t.substring(0,r)}get baseUrl(){return ww(this.options.endpoint,this.options.version,this.options.isCustomEndpoint)}},$e;(function(e){e.contextChanged="contextChanged",e.expandToFullUI="expandToFullUI",e.openUserActions="openUserActions",e.showPrecedingSessions="showPrecedingSessions",e.showFollowingSessions="showFollowingSessions",e.clickViewedDocument="clickViewedDocument",e.clickPageView="clickPageView",e.createArticle="createArticle"})($e||($e={}));var v;(function(e){e.interfaceLoad="interfaceLoad",e.interfaceChange="interfaceChange",e.didyoumeanAutomatic="didyoumeanAutomatic",e.didyoumeanClick="didyoumeanClick",e.resultsSort="resultsSort",e.searchboxSubmit="searchboxSubmit",e.searchboxClear="searchboxClear",e.searchboxAsYouType="searchboxAsYouType",e.breadcrumbFacet="breadcrumbFacet",e.breadcrumbResetAll="breadcrumbResetAll",e.documentQuickview="documentQuickview",e.documentOpen="documentOpen",e.omniboxAnalytics="omniboxAnalytics",e.omniboxFromLink="omniboxFromLink",e.searchFromLink="searchFromLink",e.triggerNotify="notify",e.triggerExecute="execute",e.triggerQuery="query",e.undoTriggerQuery="undoQuery",e.triggerRedirect="redirect",e.pagerResize="pagerResize",e.pagerNumber="pagerNumber",e.pagerNext="pagerNext",e.pagerPrevious="pagerPrevious",e.pagerScrolling="pagerScrolling",e.staticFilterClearAll="staticFilterClearAll",e.staticFilterSelect="staticFilterSelect",e.staticFilterDeselect="staticFilterDeselect",e.facetClearAll="facetClearAll",e.facetSearch="facetSearch",e.facetSelect="facetSelect",e.facetSelectAll="facetSelectAll",e.facetDeselect="facetDeselect",e.facetExclude="facetExclude",e.facetUnexclude="facetUnexclude",e.facetUpdateSort="facetUpdateSort",e.facetShowMore="showMoreFacetResults",e.facetShowLess="showLessFacetResults",e.queryError="query",e.queryErrorBack="errorBack",e.queryErrorClear="errorClearQuery",e.queryErrorRetry="errorRetry",e.recommendation="recommendation",e.recommendationInterfaceLoad="recommendationInterfaceLoad",e.recommendationOpen="recommendationOpen",e.likeSmartSnippet="likeSmartSnippet",e.dislikeSmartSnippet="dislikeSmartSnippet",e.expandSmartSnippet="expandSmartSnippet",e.collapseSmartSnippet="collapseSmartSnippet",e.openSmartSnippetFeedbackModal="openSmartSnippetFeedbackModal",e.closeSmartSnippetFeedbackModal="closeSmartSnippetFeedbackModal",e.sendSmartSnippetReason="sendSmartSnippetReason",e.expandSmartSnippetSuggestion="expandSmartSnippetSuggestion",e.collapseSmartSnippetSuggestion="collapseSmartSnippetSuggestion",e.showMoreSmartSnippetSuggestion="showMoreSmartSnippetSuggestion",e.showLessSmartSnippetSuggestion="showLessSmartSnippetSuggestion",e.openSmartSnippetSource="openSmartSnippetSource",e.openSmartSnippetSuggestionSource="openSmartSnippetSuggestionSource",e.openSmartSnippetInlineLink="openSmartSnippetInlineLink",e.openSmartSnippetSuggestionInlineLink="openSmartSnippetSuggestionInlineLink",e.recentQueryClick="recentQueriesClick",e.clearRecentQueries="clearRecentQueries",e.recentResultClick="recentResultClick",e.clearRecentResults="clearRecentResults",e.noResultsBack="noResultsBack",e.showMoreFoldedResults="showMoreFoldedResults",e.showLessFoldedResults="showLessFoldedResults",e.copyToClipboard="copyToClipboard",e.caseSendEmail="Case.SendEmail",e.feedItemTextPost="FeedItem.TextPost",e.caseAttach="caseAttach",e.caseDetach="caseDetach",e.retryGeneratedAnswer="retryGeneratedAnswer",e.likeGeneratedAnswer="likeGeneratedAnswer",e.dislikeGeneratedAnswer="dislikeGeneratedAnswer",e.openGeneratedAnswerSource="openGeneratedAnswerSource",e.generatedAnswerStreamEnd="generatedAnswerStreamEnd",e.generatedAnswerSourceHover="generatedAnswerSourceHover",e.generatedAnswerCopyToClipboard="generatedAnswerCopyToClipboard",e.generatedAnswerHideAnswers="generatedAnswerHideAnswers",e.generatedAnswerShowAnswers="generatedAnswerShowAnswers",e.generatedAnswerFeedbackSubmit="generatedAnswerFeedbackSubmit",e.rephraseGeneratedAnswer="rephraseGeneratedAnswer"})(v||(v={}));var xf={[v.triggerNotify]:"queryPipelineTriggers",[v.triggerExecute]:"queryPipelineTriggers",[v.triggerQuery]:"queryPipelineTriggers",[v.triggerRedirect]:"queryPipelineTriggers",[v.queryError]:"errors",[v.queryErrorBack]:"errors",[v.queryErrorClear]:"errors",[v.queryErrorRetry]:"errors",[v.pagerNext]:"getMoreResults",[v.pagerPrevious]:"getMoreResults",[v.pagerNumber]:"getMoreResults",[v.pagerResize]:"getMoreResults",[v.pagerScrolling]:"getMoreResults",[v.facetSearch]:"facet",[v.facetShowLess]:"facet",[v.facetShowMore]:"facet",[v.recommendation]:"recommendation",[v.likeSmartSnippet]:"smartSnippet",[v.dislikeSmartSnippet]:"smartSnippet",[v.expandSmartSnippet]:"smartSnippet",[v.collapseSmartSnippet]:"smartSnippet",[v.openSmartSnippetFeedbackModal]:"smartSnippet",[v.closeSmartSnippetFeedbackModal]:"smartSnippet",[v.sendSmartSnippetReason]:"smartSnippet",[v.expandSmartSnippetSuggestion]:"smartSnippetSuggestions",[v.collapseSmartSnippetSuggestion]:"smartSnippetSuggestions",[v.showMoreSmartSnippetSuggestion]:"smartSnippetSuggestions",[v.showLessSmartSnippetSuggestion]:"smartSnippetSuggestions",[v.clearRecentQueries]:"recentQueries",[v.recentResultClick]:"recentlyClickedDocuments",[v.clearRecentResults]:"recentlyClickedDocuments",[v.showLessFoldedResults]:"folding",[v.caseDetach]:"case",[v.likeGeneratedAnswer]:"generatedAnswer",[v.dislikeGeneratedAnswer]:"generatedAnswer",[v.openGeneratedAnswerSource]:"generatedAnswer",[v.generatedAnswerStreamEnd]:"generatedAnswer",[v.generatedAnswerSourceHover]:"generatedAnswer",[v.generatedAnswerCopyToClipboard]:"generatedAnswer",[v.generatedAnswerHideAnswers]:"generatedAnswer",[v.generatedAnswerShowAnswers]:"generatedAnswer",[v.generatedAnswerFeedbackSubmit]:"generatedAnswer",[$e.expandToFullUI]:"interface",[$e.openUserActions]:"User Actions",[$e.showPrecedingSessions]:"User Actions",[$e.showFollowingSessions]:"User Actions",[$e.clickViewedDocument]:"User Actions",[$e.clickPageView]:"User Actions",[$e.createArticle]:"createArticle"},sn=class{constructor(){this.runtime=new dy,this.currentVisitorId=""}getPayload(){return Promise.resolve()}getParameters(){return Promise.resolve()}makeEvent(t){return Promise.resolve({eventType:t,payload:null,log:()=>Promise.resolve()})}sendEvent(){return Promise.resolve()}makeSearchEvent(){return this.makeEvent(se.search)}sendSearchEvent(){return Promise.resolve()}makeClickEvent(){return this.makeEvent(se.click)}sendClickEvent(){return Promise.resolve()}makeCustomEvent(){return this.makeEvent(se.custom)}sendCustomEvent(){return Promise.resolve()}makeViewEvent(){return this.makeEvent(se.view)}sendViewEvent(){return Promise.resolve()}getVisit(){return Promise.resolve({id:"",visitorId:""})}getHealth(){return Promise.resolve({status:""})}registerBeforeSendEventHook(){}registerAfterSendEventHook(){}addEventTypeMapping(){}get version(){return XS}};function Ew(e){let t="";return e.filter(r=>{let a=r!==t;return t=r,a})}function kw(e){return e.map(t=>t.replace(/;/g,""))}function my(e){let t=256,r=e.join(";");return r.length<=t?r:my(e.slice(1))}var gy=e=>{let t=kw(e),r=Ew(t);return my(r)};function hy(e){let t=typeof e.partialQueries=="string"?e.partialQueries:gy(e.partialQueries),r=typeof e.suggestions=="string"?e.suggestions:gy(e.suggestions);return Object.assign(Object.assign({},e),{partialQueries:t,suggestions:r})}var cn=class{constructor(t,r){this.opts=t,this.provider=r;let a=t.enableAnalytics===!1||Ps();this.coveoAnalyticsClient=a?new sn:new Qt(t)}disable(){this.coveoAnalyticsClient=new sn}enable(){this.coveoAnalyticsClient=new Qt(this.opts)}makeInterfaceLoad(){return this.makeSearchEvent(v.interfaceLoad)}logInterfaceLoad(){return F(this,void 0,void 0,function*(){return(yield this.makeInterfaceLoad()).log({searchUID:this.provider.getSearchUID()})})}makeRecommendationInterfaceLoad(){return this.makeSearchEvent(v.recommendationInterfaceLoad)}logRecommendationInterfaceLoad(){return F(this,void 0,void 0,function*(){return(yield this.makeRecommendationInterfaceLoad()).log({searchUID:this.provider.getSearchUID()})})}makeRecommendation(){return this.makeCustomEvent(v.recommendation)}logRecommendation(){return F(this,void 0,void 0,function*(){return(yield this.makeRecommendation()).log({searchUID:this.provider.getSearchUID()})})}makeRecommendationOpen(t,r){return this.makeClickEvent(v.recommendationOpen,t,r)}logRecommendationOpen(t,r){return F(this,void 0,void 0,function*(){return(yield this.makeRecommendationOpen(t,r)).log({searchUID:this.provider.getSearchUID()})})}makeStaticFilterClearAll(t){return this.makeSearchEvent(v.staticFilterClearAll,t)}logStaticFilterClearAll(t){return F(this,void 0,void 0,function*(){return(yield this.makeStaticFilterClearAll(t)).log({searchUID:this.provider.getSearchUID()})})}makeStaticFilterSelect(t){return this.makeSearchEvent(v.staticFilterSelect,t)}logStaticFilterSelect(t){return F(this,void 0,void 0,function*(){return(yield this.makeStaticFilterSelect(t)).log({searchUID:this.provider.getSearchUID()})})}makeStaticFilterDeselect(t){return this.makeSearchEvent(v.staticFilterDeselect,t)}logStaticFilterDeselect(t){return F(this,void 0,void 0,function*(){return(yield this.makeStaticFilterDeselect(t)).log({searchUID:this.provider.getSearchUID()})})}makeFetchMoreResults(){return this.makeCustomEvent(v.pagerScrolling,{type:"getMoreResults"})}logFetchMoreResults(){return F(this,void 0,void 0,function*(){return(yield this.makeFetchMoreResults()).log({searchUID:this.provider.getSearchUID()})})}makeInterfaceChange(t){return this.makeSearchEvent(v.interfaceChange,t)}logInterfaceChange(t){return F(this,void 0,void 0,function*(){return(yield this.makeInterfaceChange(t)).log({searchUID:this.provider.getSearchUID()})})}makeDidYouMeanAutomatic(){return this.makeSearchEvent(v.didyoumeanAutomatic)}logDidYouMeanAutomatic(){return F(this,void 0,void 0,function*(){return(yield this.makeDidYouMeanAutomatic()).log({searchUID:this.provider.getSearchUID()})})}makeDidYouMeanClick(){return this.makeSearchEvent(v.didyoumeanClick)}logDidYouMeanClick(){return F(this,void 0,void 0,function*(){return(yield this.makeDidYouMeanClick()).log({searchUID:this.provider.getSearchUID()})})}makeResultsSort(t){return this.makeSearchEvent(v.resultsSort,t)}logResultsSort(t){return F(this,void 0,void 0,function*(){return(yield this.makeResultsSort(t)).log({searchUID:this.provider.getSearchUID()})})}makeSearchboxSubmit(){return this.makeSearchEvent(v.searchboxSubmit)}logSearchboxSubmit(){return F(this,void 0,void 0,function*(){return(yield this.makeSearchboxSubmit()).log({searchUID:this.provider.getSearchUID()})})}makeSearchboxClear(){return this.makeSearchEvent(v.searchboxClear)}logSearchboxClear(){return F(this,void 0,void 0,function*(){return(yield this.makeSearchboxClear()).log({searchUID:this.provider.getSearchUID()})})}makeSearchboxAsYouType(){return this.makeSearchEvent(v.searchboxAsYouType)}logSearchboxAsYouType(){return F(this,void 0,void 0,function*(){return(yield this.makeSearchboxAsYouType()).log({searchUID:this.provider.getSearchUID()})})}makeBreadcrumbFacet(t){return this.makeSearchEvent(v.breadcrumbFacet,t)}logBreadcrumbFacet(t){return F(this,void 0,void 0,function*(){return(yield this.makeBreadcrumbFacet(t)).log({searchUID:this.provider.getSearchUID()})})}makeBreadcrumbResetAll(){return this.makeSearchEvent(v.breadcrumbResetAll)}logBreadcrumbResetAll(){return F(this,void 0,void 0,function*(){return(yield this.makeBreadcrumbResetAll()).log({searchUID:this.provider.getSearchUID()})})}makeDocumentQuickview(t,r){return this.makeClickEvent(v.documentQuickview,t,r)}logDocumentQuickview(t,r){return F(this,void 0,void 0,function*(){return(yield this.makeDocumentQuickview(t,r)).log({searchUID:this.provider.getSearchUID()})})}makeDocumentOpen(t,r){return this.makeClickEvent(v.documentOpen,t,r)}logDocumentOpen(t,r){return F(this,void 0,void 0,function*(){return(yield this.makeDocumentOpen(t,r)).log({searchUID:this.provider.getSearchUID()})})}makeOmniboxAnalytics(t){return this.makeSearchEvent(v.omniboxAnalytics,hy(t))}logOmniboxAnalytics(t){return F(this,void 0,void 0,function*(){return(yield this.makeOmniboxAnalytics(t)).log({searchUID:this.provider.getSearchUID()})})}makeOmniboxFromLink(t){return this.makeSearchEvent(v.omniboxFromLink,hy(t))}logOmniboxFromLink(t){return F(this,void 0,void 0,function*(){return(yield this.makeOmniboxFromLink(t)).log({searchUID:this.provider.getSearchUID()})})}makeSearchFromLink(){return this.makeSearchEvent(v.searchFromLink)}logSearchFromLink(){return F(this,void 0,void 0,function*(){return(yield this.makeSearchFromLink()).log({searchUID:this.provider.getSearchUID()})})}makeTriggerNotify(t){return this.makeCustomEvent(v.triggerNotify,t)}logTriggerNotify(t){return F(this,void 0,void 0,function*(){return(yield this.makeTriggerNotify(t)).log({searchUID:this.provider.getSearchUID()})})}makeTriggerExecute(t){return this.makeCustomEvent(v.triggerExecute,t)}logTriggerExecute(t){return F(this,void 0,void 0,function*(){return(yield this.makeTriggerExecute(t)).log({searchUID:this.provider.getSearchUID()})})}makeTriggerQuery(){return this.makeCustomEvent(v.triggerQuery,{query:this.provider.getSearchEventRequestPayload().queryText},"queryPipelineTriggers")}logTriggerQuery(){return F(this,void 0,void 0,function*(){return(yield this.makeTriggerQuery()).log({searchUID:this.provider.getSearchUID()})})}makeUndoTriggerQuery(t){return this.makeSearchEvent(v.undoTriggerQuery,t)}logUndoTriggerQuery(t){return F(this,void 0,void 0,function*(){return(yield this.makeUndoTriggerQuery(t)).log({searchUID:this.provider.getSearchUID()})})}makeTriggerRedirect(t){return this.makeCustomEvent(v.triggerRedirect,Object.assign(Object.assign({},t),{query:this.provider.getSearchEventRequestPayload().queryText}))}logTriggerRedirect(t){return F(this,void 0,void 0,function*(){return(yield this.makeTriggerRedirect(t)).log({searchUID:this.provider.getSearchUID()})})}makePagerResize(t){return this.makeCustomEvent(v.pagerResize,t)}logPagerResize(t){return F(this,void 0,void 0,function*(){return(yield this.makePagerResize(t)).log({searchUID:this.provider.getSearchUID()})})}makePagerNumber(t){return this.makeCustomEvent(v.pagerNumber,t)}logPagerNumber(t){return F(this,void 0,void 0,function*(){return(yield this.makePagerNumber(t)).log({searchUID:this.provider.getSearchUID()})})}makePagerNext(t){return this.makeCustomEvent(v.pagerNext,t)}logPagerNext(t){return F(this,void 0,void 0,function*(){return(yield this.makePagerNext(t)).log({searchUID:this.provider.getSearchUID()})})}makePagerPrevious(t){return this.makeCustomEvent(v.pagerPrevious,t)}logPagerPrevious(t){return F(this,void 0,void 0,function*(){return(yield this.makePagerPrevious(t)).log({searchUID:this.provider.getSearchUID()})})}makePagerScrolling(){return this.makeCustomEvent(v.pagerScrolling)}logPagerScrolling(){return F(this,void 0,void 0,function*(){return(yield this.makePagerScrolling()).log({searchUID:this.provider.getSearchUID()})})}makeFacetClearAll(t){return this.makeSearchEvent(v.facetClearAll,t)}logFacetClearAll(t){return F(this,void 0,void 0,function*(){return(yield this.makeFacetClearAll(t)).log({searchUID:this.provider.getSearchUID()})})}makeFacetSearch(t){return this.makeSearchEvent(v.facetSearch,t)}logFacetSearch(t){return F(this,void 0,void 0,function*(){return(yield this.makeFacetSearch(t)).log({searchUID:this.provider.getSearchUID()})})}makeFacetSelect(t){return this.makeSearchEvent(v.facetSelect,t)}logFacetSelect(t){return F(this,void 0,void 0,function*(){return(yield this.makeFacetSelect(t)).log({searchUID:this.provider.getSearchUID()})})}makeFacetDeselect(t){return this.makeSearchEvent(v.facetDeselect,t)}logFacetDeselect(t){return F(this,void 0,void 0,function*(){return(yield this.makeFacetDeselect(t)).log({searchUID:this.provider.getSearchUID()})})}makeFacetExclude(t){return this.makeSearchEvent(v.facetExclude,t)}logFacetExclude(t){return F(this,void 0,void 0,function*(){return(yield this.makeFacetExclude(t)).log({searchUID:this.provider.getSearchUID()})})}makeFacetUnexclude(t){return this.makeSearchEvent(v.facetUnexclude,t)}logFacetUnexclude(t){return F(this,void 0,void 0,function*(){return(yield this.makeFacetUnexclude(t)).log({searchUID:this.provider.getSearchUID()})})}makeFacetSelectAll(t){return this.makeSearchEvent(v.facetSelectAll,t)}logFacetSelectAll(t){return F(this,void 0,void 0,function*(){return(yield this.makeFacetSelectAll(t)).log({searchUID:this.provider.getSearchUID()})})}makeFacetUpdateSort(t){return this.makeSearchEvent(v.facetUpdateSort,t)}logFacetUpdateSort(t){return F(this,void 0,void 0,function*(){return(yield this.makeFacetUpdateSort(t)).log({searchUID:this.provider.getSearchUID()})})}makeFacetShowMore(t){return this.makeCustomEvent(v.facetShowMore,t)}logFacetShowMore(t){return F(this,void 0,void 0,function*(){return(yield this.makeFacetShowMore(t)).log({searchUID:this.provider.getSearchUID()})})}makeFacetShowLess(t){return this.makeCustomEvent(v.facetShowLess,t)}logFacetShowLess(t){return F(this,void 0,void 0,function*(){return(yield this.makeFacetShowLess(t)).log({searchUID:this.provider.getSearchUID()})})}makeQueryError(t){return this.makeCustomEvent(v.queryError,t)}logQueryError(t){return F(this,void 0,void 0,function*(){return(yield this.makeQueryError(t)).log({searchUID:this.provider.getSearchUID()})})}makeQueryErrorBack(){return F(this,void 0,void 0,function*(){let t=yield this.makeCustomEvent(v.queryErrorBack);return{description:t.description,log:()=>F(this,void 0,void 0,function*(){return yield t.log({searchUID:this.provider.getSearchUID()}),this.logSearchEvent(v.queryErrorBack)})}})}logQueryErrorBack(){return F(this,void 0,void 0,function*(){return(yield this.makeQueryErrorBack()).log({searchUID:this.provider.getSearchUID()})})}makeQueryErrorRetry(){return F(this,void 0,void 0,function*(){let t=yield this.makeCustomEvent(v.queryErrorRetry);return{description:t.description,log:()=>F(this,void 0,void 0,function*(){return yield t.log({searchUID:this.provider.getSearchUID()}),this.logSearchEvent(v.queryErrorRetry)})}})}logQueryErrorRetry(){return F(this,void 0,void 0,function*(){return(yield this.makeQueryErrorRetry()).log({searchUID:this.provider.getSearchUID()})})}makeQueryErrorClear(){return F(this,void 0,void 0,function*(){let t=yield this.makeCustomEvent(v.queryErrorClear);return{description:t.description,log:()=>F(this,void 0,void 0,function*(){return yield t.log({searchUID:this.provider.getSearchUID()}),this.logSearchEvent(v.queryErrorClear)})}})}logQueryErrorClear(){return F(this,void 0,void 0,function*(){return(yield this.makeQueryErrorClear()).log({searchUID:this.provider.getSearchUID()})})}makeLikeSmartSnippet(){return this.makeCustomEvent(v.likeSmartSnippet)}logLikeSmartSnippet(){return F(this,void 0,void 0,function*(){return(yield this.makeLikeSmartSnippet()).log({searchUID:this.provider.getSearchUID()})})}makeDislikeSmartSnippet(){return this.makeCustomEvent(v.dislikeSmartSnippet)}logDislikeSmartSnippet(){return F(this,void 0,void 0,function*(){return(yield this.makeDislikeSmartSnippet()).log({searchUID:this.provider.getSearchUID()})})}makeExpandSmartSnippet(){return this.makeCustomEvent(v.expandSmartSnippet)}logExpandSmartSnippet(){return F(this,void 0,void 0,function*(){return(yield this.makeExpandSmartSnippet()).log({searchUID:this.provider.getSearchUID()})})}makeCollapseSmartSnippet(){return this.makeCustomEvent(v.collapseSmartSnippet)}logCollapseSmartSnippet(){return F(this,void 0,void 0,function*(){return(yield this.makeCollapseSmartSnippet()).log({searchUID:this.provider.getSearchUID()})})}makeOpenSmartSnippetFeedbackModal(){return this.makeCustomEvent(v.openSmartSnippetFeedbackModal)}logOpenSmartSnippetFeedbackModal(){return F(this,void 0,void 0,function*(){return(yield this.makeOpenSmartSnippetFeedbackModal()).log({searchUID:this.provider.getSearchUID()})})}makeCloseSmartSnippetFeedbackModal(){return this.makeCustomEvent(v.closeSmartSnippetFeedbackModal)}logCloseSmartSnippetFeedbackModal(){return F(this,void 0,void 0,function*(){return(yield this.makeCloseSmartSnippetFeedbackModal()).log({searchUID:this.provider.getSearchUID()})})}makeSmartSnippetFeedbackReason(t,r){return this.makeCustomEvent(v.sendSmartSnippetReason,{reason:t,details:r})}logSmartSnippetFeedbackReason(t,r){return F(this,void 0,void 0,function*(){return(yield this.makeSmartSnippetFeedbackReason(t,r)).log({searchUID:this.provider.getSearchUID()})})}makeExpandSmartSnippetSuggestion(t){return this.makeCustomEvent(v.expandSmartSnippetSuggestion,"documentId"in t?t:{documentId:t})}logExpandSmartSnippetSuggestion(t){return F(this,void 0,void 0,function*(){return(yield this.makeExpandSmartSnippetSuggestion(t)).log({searchUID:this.provider.getSearchUID()})})}makeCollapseSmartSnippetSuggestion(t){return this.makeCustomEvent(v.collapseSmartSnippetSuggestion,"documentId"in t?t:{documentId:t})}logCollapseSmartSnippetSuggestion(t){return F(this,void 0,void 0,function*(){return(yield this.makeCollapseSmartSnippetSuggestion(t)).log({searchUID:this.provider.getSearchUID()})})}makeShowMoreSmartSnippetSuggestion(t){return this.makeCustomEvent(v.showMoreSmartSnippetSuggestion,t)}logShowMoreSmartSnippetSuggestion(t){return F(this,void 0,void 0,function*(){return(yield this.makeShowMoreSmartSnippetSuggestion(t)).log({searchUID:this.provider.getSearchUID()})})}makeShowLessSmartSnippetSuggestion(t){return this.makeCustomEvent(v.showLessSmartSnippetSuggestion,t)}logShowLessSmartSnippetSuggestion(t){return F(this,void 0,void 0,function*(){return(yield this.makeShowLessSmartSnippetSuggestion(t)).log({searchUID:this.provider.getSearchUID()})})}makeOpenSmartSnippetSource(t,r){return this.makeClickEvent(v.openSmartSnippetSource,t,r)}logOpenSmartSnippetSource(t,r){return F(this,void 0,void 0,function*(){return(yield this.makeOpenSmartSnippetSource(t,r)).log({searchUID:this.provider.getSearchUID()})})}makeOpenSmartSnippetSuggestionSource(t,r){return this.makeClickEvent(v.openSmartSnippetSuggestionSource,t,{contentIDKey:r.documentId.contentIdKey,contentIDValue:r.documentId.contentIdValue},r)}makeCopyToClipboard(t,r){return this.makeClickEvent(v.copyToClipboard,t,r)}logCopyToClipboard(t,r){return F(this,void 0,void 0,function*(){return(yield this.makeCopyToClipboard(t,r)).log({searchUID:this.provider.getSearchUID()})})}logOpenSmartSnippetSuggestionSource(t,r){return F(this,void 0,void 0,function*(){return(yield this.makeOpenSmartSnippetSuggestionSource(t,r)).log({searchUID:this.provider.getSearchUID()})})}makeOpenSmartSnippetInlineLink(t,r){return this.makeClickEvent(v.openSmartSnippetInlineLink,t,{contentIDKey:r.contentIDKey,contentIDValue:r.contentIDValue},r)}logOpenSmartSnippetInlineLink(t,r){return F(this,void 0,void 0,function*(){return(yield this.makeOpenSmartSnippetInlineLink(t,r)).log({searchUID:this.provider.getSearchUID()})})}makeOpenSmartSnippetSuggestionInlineLink(t,r){return this.makeClickEvent(v.openSmartSnippetSuggestionInlineLink,t,{contentIDKey:r.documentId.contentIdKey,contentIDValue:r.documentId.contentIdValue},r)}logOpenSmartSnippetSuggestionInlineLink(t,r){return F(this,void 0,void 0,function*(){return(yield this.makeOpenSmartSnippetSuggestionInlineLink(t,r)).log({searchUID:this.provider.getSearchUID()})})}makeRecentQueryClick(){return this.makeSearchEvent(v.recentQueryClick)}logRecentQueryClick(){return F(this,void 0,void 0,function*(){return(yield this.makeRecentQueryClick()).log({searchUID:this.provider.getSearchUID()})})}makeClearRecentQueries(){return this.makeCustomEvent(v.clearRecentQueries)}logClearRecentQueries(){return F(this,void 0,void 0,function*(){return(yield this.makeClearRecentQueries()).log({searchUID:this.provider.getSearchUID()})})}makeRecentResultClick(t,r){return this.makeCustomEvent(v.recentResultClick,{info:t,identifier:r})}logRecentResultClick(t,r){return F(this,void 0,void 0,function*(){return(yield this.makeRecentResultClick(t,r)).log({searchUID:this.provider.getSearchUID()})})}makeClearRecentResults(){return this.makeCustomEvent(v.clearRecentResults)}logClearRecentResults(){return F(this,void 0,void 0,function*(){return(yield this.makeClearRecentResults()).log({searchUID:this.provider.getSearchUID()})})}makeNoResultsBack(){return this.makeSearchEvent(v.noResultsBack)}logNoResultsBack(){return F(this,void 0,void 0,function*(){return(yield this.makeNoResultsBack()).log({searchUID:this.provider.getSearchUID()})})}makeShowMoreFoldedResults(t,r){return this.makeClickEvent(v.showMoreFoldedResults,t,r)}logShowMoreFoldedResults(t,r){return F(this,void 0,void 0,function*(){return(yield this.makeShowMoreFoldedResults(t,r)).log({searchUID:this.provider.getSearchUID()})})}makeShowLessFoldedResults(){return this.makeCustomEvent(v.showLessFoldedResults)}logShowLessFoldedResults(){return F(this,void 0,void 0,function*(){return(yield this.makeShowLessFoldedResults()).log({searchUID:this.provider.getSearchUID()})})}makeEventDescription(t,r){var a;return{actionCause:r,customData:(a=t.payload)===null||a===void 0?void 0:a.customData}}makeCustomEvent(t,r,a=xf[t]){return F(this,void 0,void 0,function*(){this.coveoAnalyticsClient.getParameters;let n=Object.assign(Object.assign({},this.provider.getBaseMetadata()),r),o=Object.assign(Object.assign({},yield this.getBaseEventRequest(n)),{eventType:a,eventValue:t}),i=yield this.coveoAnalyticsClient.makeCustomEvent(o);return{description:this.makeEventDescription(i,t),log:({searchUID:s})=>i.log({lastSearchQueryUid:s})}})}logCustomEvent(t,r,a=xf[t]){return F(this,void 0,void 0,function*(){return(yield this.makeCustomEvent(t,r,a)).log({searchUID:this.provider.getSearchUID()})})}makeCustomEventWithType(t,r,a){return F(this,void 0,void 0,function*(){let n=Object.assign(Object.assign({},this.provider.getBaseMetadata()),a),o=Object.assign(Object.assign({},yield this.getBaseEventRequest(n)),{eventType:r,eventValue:t}),i=yield this.coveoAnalyticsClient.makeCustomEvent(o);return{description:this.makeEventDescription(i,t),log:({searchUID:s})=>i.log({lastSearchQueryUid:s})}})}logCustomEventWithType(t,r,a){return F(this,void 0,void 0,function*(){return(yield this.makeCustomEventWithType(t,r,a)).log({searchUID:this.provider.getSearchUID()})})}logSearchEvent(t,r){return F(this,void 0,void 0,function*(){return(yield this.makeSearchEvent(t,r)).log({searchUID:this.provider.getSearchUID()})})}makeSearchEvent(t,r){return F(this,void 0,void 0,function*(){let a=yield this.getBaseSearchEventRequest(t,r),n=yield this.coveoAnalyticsClient.makeSearchEvent(a);return{description:this.makeEventDescription(n,t),log:({searchUID:o})=>n.log({searchQueryUid:o})}})}makeClickEvent(t,r,a,n){return F(this,void 0,void 0,function*(){let o=Object.assign(Object.assign(Object.assign({},r),yield this.getBaseEventRequest(Object.assign(Object.assign({},a),n))),{queryPipeline:this.provider.getPipeline(),actionCause:t}),i=yield this.coveoAnalyticsClient.makeClickEvent(o);return{description:this.makeEventDescription(i,t),log:({searchUID:s})=>i.log({searchQueryUid:s})}})}logClickEvent(t,r,a,n){return F(this,void 0,void 0,function*(){return(yield this.makeClickEvent(t,r,a,n)).log({searchUID:this.provider.getSearchUID()})})}getBaseSearchEventRequest(t,r){var a,n;return F(this,void 0,void 0,function*(){return Object.assign(Object.assign(Object.assign({},yield this.getBaseEventRequest(Object.assign(Object.assign({},r),(n=(a=this.provider).getGeneratedAnswerMetadata)===null||n===void 0?void 0:n.call(a)))),this.provider.getSearchEventRequestPayload()),{queryPipeline:this.provider.getPipeline(),actionCause:t})})}getBaseEventRequest(t){return F(this,void 0,void 0,function*(){let r=Object.assign(Object.assign({},this.provider.getBaseMetadata()),t);return Object.assign(Object.assign(Object.assign({},this.getOrigins()),this.getSplitTestRun()),{customData:r,language:this.provider.getLanguage(),facetState:this.provider.getFacetState?this.provider.getFacetState():[],anonymous:this.provider.getIsAnonymous(),clientId:yield this.getClientId()})})}getOrigins(){var t,r;return{originContext:(r=(t=this.provider).getOriginContext)===null||r===void 0?void 0:r.call(t),originLevel1:this.provider.getOriginLevel1(),originLevel2:this.provider.getOriginLevel2(),originLevel3:this.provider.getOriginLevel3()}}getClientId(){return this.coveoAnalyticsClient instanceof Qt?this.coveoAnalyticsClient.getCurrentVisitorId():void 0}getSplitTestRun(){let t=this.provider.getSplitTestRunName?this.provider.getSplitTestRunName():"",r=this.provider.getSplitTestRunVersion?this.provider.getSplitTestRunVersion():"";return Object.assign(Object.assign({},t&&{splitTestRunName:t}),r&&{splitTestRunVersion:r})}makeLikeGeneratedAnswer(t){return this.makeCustomEvent(v.likeGeneratedAnswer,t)}logLikeGeneratedAnswer(t){return F(this,void 0,void 0,function*(){return(yield this.makeLikeGeneratedAnswer(t)).log({searchUID:this.provider.getSearchUID()})})}makeDislikeGeneratedAnswer(t){return this.makeCustomEvent(v.dislikeGeneratedAnswer,t)}logDislikeGeneratedAnswer(t){return F(this,void 0,void 0,function*(){return(yield this.makeDislikeGeneratedAnswer(t)).log({searchUID:this.provider.getSearchUID()})})}makeOpenGeneratedAnswerSource(t){return this.makeCustomEvent(v.openGeneratedAnswerSource,t)}logOpenGeneratedAnswerSource(t){return F(this,void 0,void 0,function*(){return(yield this.makeOpenGeneratedAnswerSource(t)).log({searchUID:this.provider.getSearchUID()})})}makeGeneratedAnswerSourceHover(t){return this.makeCustomEvent(v.generatedAnswerSourceHover,t)}logGeneratedAnswerSourceHover(t){return F(this,void 0,void 0,function*(){return(yield this.makeGeneratedAnswerSourceHover(t)).log({searchUID:this.provider.getSearchUID()})})}makeGeneratedAnswerCopyToClipboard(t){return this.makeCustomEvent(v.generatedAnswerCopyToClipboard,t)}logGeneratedAnswerCopyToClipboard(t){return F(this,void 0,void 0,function*(){return(yield this.makeGeneratedAnswerCopyToClipboard(t)).log({searchUID:this.provider.getSearchUID()})})}makeGeneratedAnswerHideAnswers(t){return this.makeCustomEvent(v.generatedAnswerHideAnswers,t)}logGeneratedAnswerHideAnswers(t){return F(this,void 0,void 0,function*(){return(yield this.makeGeneratedAnswerHideAnswers(t)).log({searchUID:this.provider.getSearchUID()})})}makeGeneratedAnswerShowAnswers(t){return this.makeCustomEvent(v.generatedAnswerShowAnswers,t)}logGeneratedAnswerShowAnswers(t){return F(this,void 0,void 0,function*(){return(yield this.makeGeneratedAnswerShowAnswers(t)).log({searchUID:this.provider.getSearchUID()})})}makeGeneratedAnswerFeedbackSubmit(t){return this.makeCustomEvent(v.generatedAnswerFeedbackSubmit,t)}logGeneratedAnswerFeedbackSubmit(t){return F(this,void 0,void 0,function*(){return(yield this.makeGeneratedAnswerFeedbackSubmit(t)).log({searchUID:this.provider.getSearchUID()})})}makeRephraseGeneratedAnswer(t){return this.makeSearchEvent(v.rephraseGeneratedAnswer,t)}logRephraseGeneratedAnswer(t){return F(this,void 0,void 0,function*(){return(yield this.makeRephraseGeneratedAnswer(t)).log({searchUID:this.provider.getSearchUID()})})}makeRetryGeneratedAnswer(){return this.makeSearchEvent(v.retryGeneratedAnswer)}logRetryGeneratedAnswer(){return F(this,void 0,void 0,function*(){return(yield this.makeRetryGeneratedAnswer()).log({searchUID:this.provider.getSearchUID()})})}makeGeneratedAnswerStreamEnd(t){return this.makeCustomEvent(v.generatedAnswerStreamEnd,t)}logGeneratedAnswerStreamEnd(t){return F(this,void 0,void 0,function*(){return(yield this.makeGeneratedAnswerStreamEnd(t)).log({searchUID:this.provider.getSearchUID()})})}},cu=Object.assign({},Rs),Sy=Object.keys(cu).map(e=>cu[e]),ws=class extends ey{constructor({client:t,uuidGenerator:r=on}){super({client:t,uuidGenerator:r});this.ticket={}}getApi(t){let r=super.getApi(t);if(r!==null)return r;switch(t){case"setTicket":return this.setTicket;default:return null}}addHooks(){this.addHooksForEvent(),this.addHooksForPageView(),this.addHooksForSVCEvents()}setTicket(t){this.ticket=t}clearPluginData(){this.ticket={}}addHooksForSVCEvents(){this.client.registerBeforeSendEventHook((t,...[r])=>Sy.indexOf(t)!==-1?this.addSVCDataToPayload(t,r):r),this.client.registerAfterSendEventHook((t,...[r])=>(Sy.indexOf(t)!==-1&&this.updateLocationInformation(t,r),r))}addHooksForPageView(){this.client.addEventTypeMapping(cu.pageview,{newEventType:se.collect,variableLengthArgumentsNames:["page"],addVisitorIdParameter:!0,usesMeasurementProtocol:!0})}addHooksForEvent(){this.client.addEventTypeMapping(cu.event,{newEventType:se.collect,variableLengthArgumentsNames:["eventCategory","eventAction","eventLabel","eventValue"],addVisitorIdParameter:!0,usesMeasurementProtocol:!0})}addSVCDataToPayload(t,r){var a;let n=Object.assign(Object.assign(Object.assign(Object.assign({},this.getLocationInformation(t,r)),this.getDefaultContextInformation(t)),this.action?{svcAction:this.action}:{}),Object.keys((a=this.actionData)!==null&&a!==void 0?a:{}).length>0?{svcActionData:this.actionData}:{}),o=this.getTicketPayload();return this.clearData(),Object.assign(Object.assign(Object.assign({},o),n),r)}getTicketPayload(){return MP(this.ticket)}};ws.Id="svc";var uu;(function(e){e.click="click",e.flowStart="flowStart"})(uu||(uu={}));var Bt;(function(e){e.enterInterface="ticket_create_start",e.fieldUpdate="ticket_field_update",e.fieldSuggestionClick="ticket_classification_click",e.suggestionClick="suggestion_click",e.suggestionRate="suggestion_rate",e.nextCaseStep="ticket_next_stage",e.caseCancelled="ticket_cancel",e.caseSolved="ticket_cancel",e.caseCreated="ticket_create"})(Bt||(Bt={}));var lu;(function(e){e.quit="Quit",e.solved="Solved"})(lu||(lu={}));var vf=class{constructor(t,r){var a;this.options=t,this.provider=r;let n=((a=t.enableAnalytics)!==null&&a!==void 0?a:!0)&&!Ps();this.coveoAnalyticsClient=n?new Qt(t):new sn,this.svc=new ws({client:this.coveoAnalyticsClient})}disable(){this.coveoAnalyticsClient=new sn,this.svc=new ws({client:this.coveoAnalyticsClient})}enable(){this.coveoAnalyticsClient=new Qt(this.options),this.svc=new ws({client:this.coveoAnalyticsClient})}logEnterInterface(t){return this.svc.setAction(Bt.enterInterface),this.svc.setTicket(t.ticket),this.sendFlowStartEvent()}logUpdateCaseField(t){return this.svc.setAction(Bt.fieldUpdate,{fieldName:t.fieldName}),this.svc.setTicket(t.ticket),this.sendClickEvent()}logSelectFieldSuggestion(t){return this.svc.setAction(Bt.fieldSuggestionClick,t.suggestion),this.svc.setTicket(t.ticket),this.sendClickEvent()}logSelectDocumentSuggestion(t){return this.svc.setAction(Bt.suggestionClick,t.suggestion),this.svc.setTicket(t.ticket),this.sendClickEvent()}logRateDocumentSuggestion(t){return this.svc.setAction(Bt.suggestionRate,Object.assign({rate:t.rating},t.suggestion)),this.svc.setTicket(t.ticket),this.sendClickEvent()}logMoveToNextCaseStep(t){return this.svc.setAction(Bt.nextCaseStep,{stage:t==null?void 0:t.stage}),this.svc.setTicket(t.ticket),this.sendClickEvent()}logCaseCancelled(t){return this.svc.setAction(Bt.caseCancelled,{reason:lu.quit}),this.svc.setTicket(t.ticket),this.sendClickEvent()}logCaseSolved(t){return this.svc.setAction(Bt.caseSolved,{reason:lu.solved}),this.svc.setTicket(t.ticket),this.sendClickEvent()}logCaseCreated(t){return this.svc.setAction(Bt.caseCreated),this.svc.setTicket(t.ticket),this.sendClickEvent()}sendFlowStartEvent(){return this.coveoAnalyticsClient.sendEvent("event","svc",uu.flowStart,this.provider?{searchHub:this.provider.getOriginLevel1()}:null)}sendClickEvent(){return this.coveoAnalyticsClient.sendEvent("event","svc",uu.click,this.provider?{searchHub:this.provider.getOriginLevel1()}:null)}},Ow=e=>{let t={};return e.caseContext&&Object.keys(e.caseContext).forEach(r=>{var a;let n=(a=e.caseContext)===null||a===void 0?void 0:a[r];if(n){let o=`context_${r}`;t[o]=n}}),t},G=(e,t=!0)=>{let{caseContext:r,caseId:a,caseNumber:n}=e,o=er(e,["caseContext","caseId","caseNumber"]),i=Ow(e);return Object.assign(Object.assign(Object.assign({CaseId:a,CaseNumber:n},o),!!i.context_Case_Subject&&{CaseSubject:i.context_Case_Subject}),t&&i)},Af=class{constructor(t,r){this.opts=t,this.provider=r;let a=t.enableAnalytics===!1||Ps();this.coveoAnalyticsClient=a?new sn:new Qt(t)}disable(){this.coveoAnalyticsClient=new sn}enable(){this.coveoAnalyticsClient=new Qt(this.opts)}logInterfaceLoad(t){if(t){let r=G(t);return this.logSearchEvent(v.interfaceLoad,r)}return this.logSearchEvent(v.interfaceLoad)}logInterfaceChange(t){let r=G(t);return this.logSearchEvent(v.interfaceChange,r)}logStaticFilterDeselect(t){let r=G(t);return this.logSearchEvent(v.staticFilterDeselect,r)}logFetchMoreResults(t){if(t){let r=G(t);return this.logCustomEvent(v.pagerScrolling,Object.assign(Object.assign({},r),{type:"getMoreResults"}))}return this.logCustomEvent(v.pagerScrolling,{type:"getMoreResults"})}logBreadcrumbFacet(t){let r=G(t);return this.logSearchEvent(v.breadcrumbFacet,r)}logBreadcrumbResetAll(t){if(t){let r=G(t);return this.logSearchEvent(v.breadcrumbResetAll,r)}return this.logSearchEvent(v.breadcrumbResetAll)}logFacetSelect(t){let r=G(t);return this.logSearchEvent(v.facetSelect,r)}logFacetExclude(t){let r=G(t);return this.logSearchEvent(v.facetExclude,r)}logFacetDeselect(t){let r=G(t);return this.logSearchEvent(v.facetDeselect,r)}logFacetUpdateSort(t){let r=G(t);return this.logSearchEvent(v.facetUpdateSort,r)}logFacetClearAll(t){let r=G(t);return this.logSearchEvent(v.facetClearAll,r)}logFacetShowMore(t){let r=G(t,!1);return this.logCustomEvent(v.facetShowMore,r)}logFacetShowLess(t){let r=G(t,!1);return this.logCustomEvent(v.facetShowLess,r)}logQueryError(t){let r=G(t,!1);return this.logCustomEvent(v.queryError,r)}logPagerNumber(t){let r=G(t,!1);return this.logCustomEvent(v.pagerNumber,r)}logPagerNext(t){let r=G(t,!1);return this.logCustomEvent(v.pagerNext,r)}logPagerPrevious(t){let r=G(t,!1);return this.logCustomEvent(v.pagerPrevious,r)}logDidYouMeanAutomatic(t){if(t){let r=G(t);return this.logSearchEvent(v.didyoumeanAutomatic,r)}return this.logSearchEvent(v.didyoumeanAutomatic)}logDidYouMeanClick(t){if(t){let r=G(t);return this.logSearchEvent(v.didyoumeanClick,r)}return this.logSearchEvent(v.didyoumeanClick)}logResultsSort(t){let r=G(t);return this.logSearchEvent(v.resultsSort,r)}logSearchboxSubmit(t){if(t){let r=G(t);return this.logSearchEvent(v.searchboxSubmit,r)}return this.logSearchEvent(v.searchboxSubmit)}logContextChanged(t){let r=G(t);return this.logSearchEvent($e.contextChanged,r)}logExpandToFullUI(t){let r=G(t);return this.logCustomEvent($e.expandToFullUI,r)}logOpenUserActions(t){let r=G(t,!1);return this.logCustomEvent($e.openUserActions,r)}logShowPrecedingSessions(t){let r=G(t,!1);return this.logCustomEvent($e.showPrecedingSessions,r)}logShowFollowingSessions(t){let r=G(t,!1);return this.logCustomEvent($e.showFollowingSessions,r)}logViewedDocumentClick(t,r){return this.logCustomEvent($e.clickViewedDocument,Object.assign(Object.assign({},G(r,!1)),{document:t}))}logPageViewClick(t,r){return this.logCustomEvent($e.clickPageView,Object.assign(Object.assign({},G(r,!1)),{pageView:t}))}logCreateArticle(t,r){return this.logCustomEvent($e.createArticle,r?Object.assign(Object.assign({},G(r,!1)),t):t)}logDocumentOpen(t,r,a){return this.logClickEvent(v.documentOpen,t,r,a?G(a,!1):void 0)}logCopyToClipboard(t,r,a){return this.logClickEvent(v.copyToClipboard,t,r,a?G(a,!1):void 0)}logCaseSendEmail(t,r,a){return this.logClickEvent(v.caseSendEmail,t,r,a?G(a,!1):void 0)}logFeedItemTextPost(t,r,a){return this.logClickEvent(v.feedItemTextPost,t,r,a?G(a,!1):void 0)}logDocumentQuickview(t,r,a){let n={documentTitle:t.documentTitle,documentURL:t.documentUrl};return this.logClickEvent(v.documentQuickview,t,r,a?Object.assign(Object.assign({},G(a,!1)),n):n)}logCaseAttach(t,r,a){let n={documentTitle:t.documentTitle,documentURL:t.documentUrl,resultUriHash:t.documentUriHash};return this.logClickEvent(v.caseAttach,t,r,a?Object.assign(Object.assign({},G(a,!1)),n):n)}logCaseDetach(t,r){return this.logCustomEvent(v.caseDetach,r?Object.assign(Object.assign({},G(r,!1)),{resultUriHash:t}):{resultUriHash:t})}logLikeSmartSnippet(t){return this.logCustomEvent(v.likeSmartSnippet,t?G(t,!1):void 0)}logDislikeSmartSnippet(t){return this.logCustomEvent(v.dislikeSmartSnippet,t?G(t,!1):void 0)}logExpandSmartSnippet(t){return this.logCustomEvent(v.expandSmartSnippet,t?G(t,!1):void 0)}logCollapseSmartSnippet(t){return this.logCustomEvent(v.collapseSmartSnippet,t?G(t,!1):void 0)}logOpenSmartSnippetFeedbackModal(t){return this.logCustomEvent(v.openSmartSnippetFeedbackModal,t?G(t,!1):void 0)}logCloseSmartSnippetFeedbackModal(t){return this.logCustomEvent(v.closeSmartSnippetFeedbackModal,t?G(t,!1):void 0)}logSmartSnippetFeedbackReason(t,r,a){return this.logCustomEvent(v.sendSmartSnippetReason,a?Object.assign(Object.assign({},G(a,!1)),{reason:t,details:r}):{reason:t,details:r})}logExpandSmartSnippetSuggestion(t,r){let a="documentId"in t?t:{documentId:t};return this.logCustomEvent(v.expandSmartSnippetSuggestion,r?Object.assign(Object.assign({},G(r,!1)),a):a)}logCollapseSmartSnippetSuggestion(t,r){let a="documentId"in t?t:{documentId:t};return this.logCustomEvent(v.collapseSmartSnippetSuggestion,r?Object.assign(Object.assign({},G(r,!1)),a):a)}logOpenSmartSnippetSource(t,r,a){return this.logClickEvent(v.openSmartSnippetSource,t,r,a?G(a,!1):void 0)}logOpenSmartSnippetSuggestionSource(t,r,a){return this.logClickEvent(v.openSmartSnippetSuggestionSource,t,{contentIDKey:r.documentId.contentIdKey,contentIDValue:r.documentId.contentIdValue},a?Object.assign(Object.assign({},G(a,!1)),r):r)}logOpenSmartSnippetInlineLink(t,r,a){return this.logClickEvent(v.openSmartSnippetInlineLink,t,{contentIDKey:r.contentIDKey,contentIDValue:r.contentIDValue},a?Object.assign(Object.assign({},G(a,!1)),r):r)}logOpenSmartSnippetSuggestionInlineLink(t,r,a){return this.logClickEvent(v.openSmartSnippetSuggestionInlineLink,t,{contentIDKey:r.documentId.contentIdKey,contentIDValue:r.documentId.contentIdValue},a?Object.assign(Object.assign({},G(a,!1)),r):r)}logLikeGeneratedAnswer(t,r){return this.logCustomEvent(v.likeGeneratedAnswer,r?Object.assign(Object.assign({},G(r,!1)),t):t)}logDislikeGeneratedAnswer(t,r){return this.logCustomEvent(v.dislikeGeneratedAnswer,r?Object.assign(Object.assign({},G(r,!1)),t):t)}logOpenGeneratedAnswerSource(t,r){return this.logCustomEvent(v.openGeneratedAnswerSource,r?Object.assign(Object.assign({},G(r,!1)),t):t)}logGeneratedAnswerSourceHover(t,r){return this.logCustomEvent(v.generatedAnswerSourceHover,r?Object.assign(Object.assign({},G(r,!1)),t):t)}logGeneratedAnswerCopyToClipboard(t,r){return this.logCustomEvent(v.generatedAnswerCopyToClipboard,r?Object.assign(Object.assign({},G(r,!1)),t):t)}logGeneratedAnswerHideAnswers(t,r){return this.logCustomEvent(v.generatedAnswerHideAnswers,r?Object.assign(Object.assign({},G(r,!1)),t):t)}logGeneratedAnswerShowAnswers(t,r){return this.logCustomEvent(v.generatedAnswerShowAnswers,r?Object.assign(Object.assign({},G(r,!1)),t):t)}logGeneratedAnswerFeedbackSubmit(t,r){return this.logCustomEvent(v.generatedAnswerFeedbackSubmit,r?Object.assign(Object.assign({},G(r,!1)),t):t)}logRephraseGeneratedAnswer(t,r){return this.logSearchEvent(v.rephraseGeneratedAnswer,r?Object.assign(Object.assign({},G(r,!1)),t):t)}logRetryGeneratedAnswer(t){return this.logSearchEvent(v.retryGeneratedAnswer,t?Object.assign({},G(t,!1)):{})}logGeneratedAnswerStreamEnd(t,r){return this.logCustomEvent(v.generatedAnswerStreamEnd,r?Object.assign(Object.assign({},G(r,!1)),t):t)}logCustomEvent(t,r){return F(this,void 0,void 0,function*(){let a=Object.assign(Object.assign({},this.provider.getBaseMetadata()),r),n=Object.assign(Object.assign({},yield this.getBaseCustomEventRequest(a)),{eventType:xf[t],eventValue:t});return this.coveoAnalyticsClient.sendCustomEvent(n)})}logSearchEvent(t,r){return F(this,void 0,void 0,function*(){return this.coveoAnalyticsClient.sendSearchEvent(yield this.getBaseSearchEventRequest(t,r))})}logClickEvent(t,r,a,n){return F(this,void 0,void 0,function*(){let o=Object.assign(Object.assign(Object.assign({},r),yield this.getBaseEventRequest(Object.assign(Object.assign({},a),n))),{searchQueryUid:this.provider.getSearchUID(),queryPipeline:this.provider.getPipeline(),actionCause:t});return this.coveoAnalyticsClient.sendClickEvent(o)})}logShowMoreFoldedResults(t,r,a){return F(this,void 0,void 0,function*(){return this.logClickEvent(v.showMoreFoldedResults,t,r,a?G(a,!1):void 0)})}logShowLessFoldedResults(t){return F(this,void 0,void 0,function*(){return this.logCustomEvent(v.showLessFoldedResults,t?G(t,!1):void 0)})}getBaseCustomEventRequest(t){return F(this,void 0,void 0,function*(){return Object.assign(Object.assign({},yield this.getBaseEventRequest(t)),{lastSearchQueryUid:this.provider.getSearchUID()})})}getBaseSearchEventRequest(t,r){var a,n;return F(this,void 0,void 0,function*(){return Object.assign(Object.assign(Object.assign({},yield this.getBaseEventRequest(Object.assign(Object.assign({},r),(n=(a=this.provider).getGeneratedAnswerMetadata)===null||n===void 0?void 0:n.call(a)))),this.provider.getSearchEventRequestPayload()),{searchQueryUid:this.provider.getSearchUID(),queryPipeline:this.provider.getPipeline(),actionCause:t})})}getBaseEventRequest(t){return F(this,void 0,void 0,function*(){let r=Object.assign(Object.assign({},this.provider.getBaseMetadata()),t);return Object.assign(Object.assign({},this.getOrigins()),{customData:r,language:this.provider.getLanguage(),facetState:this.provider.getFacetState?this.provider.getFacetState():[],anonymous:this.provider.getIsAnonymous(),clientId:yield this.getClientId()})})}getOrigins(){var t,r;return{originContext:(r=(t=this.provider).getOriginContext)===null||r===void 0?void 0:r.call(t),originLevel1:this.provider.getOriginLevel1(),originLevel2:this.provider.getOriginLevel2(),originLevel3:this.provider.getOriginLevel3()}}getClientId(){return this.coveoAnalyticsClient instanceof Qt?this.coveoAnalyticsClient.getCurrentVisitorId():void 0}};var rr=(e,t)=>{let r=a=>a.facetId===t;if("productListing"in e&&e.productListing&&"facets"in e.productListing&&"results"in e.productListing.facets)return e.productListing.facets.results.find(r);if("search"in e&&e.search)return e.search.response.facets.find(r)},bf=(e,t)=>{var r;return(r=e.facetSet[t])==null?void 0:r.request};function qw(e,t){return!!t&&t.facetId in e.facetSet}var Is=(e,t)=>{let r=rr(e,t);if(qw(e,r))return r},Tw=(e,t)=>{let r=Is(e,t);return r?r.values.filter(a=>a.state==="selected"):[]},yy=(e,t)=>{let r=Is(e,t);return r?r.values.filter(a=>a.state!=="idle"):[]},ar=e=>"productListing"in e?e.productListing.isLoading:e.search.isLoading;function Cy(e){if(!e)return{parents:[],values:[]};let t=[],r=e;for(;r.length&&r[0].children.length;)t=[...t,...r],r=r[0].children;let a=r.find(n=>n.state==="selected");return a&&(t=[...t,a],r=[]),{parents:t,values:r}}function gt(e){let{activeValue:t,ancestryMap:r}=Dw(e);return t?Vw(t,r):[]}function Dw(e){let t=[...e],r=new Map;for(;t.length>0;){let a=t.shift();if(a.state==="selected")return{activeValue:a,ancestryMap:r};if(r)for(let n of a.children)r.set(n,a);t.unshift(...a.children)}return{}}function Vw(e,t){let r=[];if(!e)return[];let a=e;do r.unshift(a),a=t.get(a);while(a);return r}function Mw(e,t){return!!t&&t.facetId in e.categoryFacetSet}var Ff=(e,t)=>{let r=rr(e,t);if(Mw(e,r))return r},Rf=(e,t)=>{var r;return(r=e.categoryFacetSet[t])==null?void 0:r.request},xy=(e,t)=>{var a;let r=Ff(e,t);return gt((a=r==null?void 0:r.values)!=null?a:[])},Pf=(e,t)=>{var a;let r=Rf(e,t);return gt((a=r==null?void 0:r.currentValues)!=null?a:[])};var to=(e,t)=>{let r=Fy(t,e),a=r?r.field:"",n=wf(a,e);return{facetId:e,facetField:a,facetTitle:n}};function ro(e,t){let{facetId:r,facetValue:a}=e,n=to(r,t),o=Ry(t,r);return{...n,facetValue:o==="hierarchical"?by(t,r):a}}function ct(e){var t,r,a,n,o;return{facetSet:(t=e.facetSet)!=null?t:Kt(),categoryFacetSet:(r=e.categoryFacetSet)!=null?r:Yt(),dateFacetSet:(a=e.dateFacetSet)!=null?a:Jt(),numericFacetSet:(n=e.numericFacetSet)!=null?n:Xt(),automaticFacetSet:(o=e.automaticFacetSet)!=null?o:ha()}}var du=e=>{let t=[];return Qw(e).forEach((r,a)=>{let n=Ry(e,r.facetId),o=$w(r,a+1);if(Nw(r)){if(!!!Pf(e,r.facetId).length)return;t.push({...o,...Uw(e,r.facetId),facetType:n,state:"selected"});return}r.currentValues.forEach((i,s)=>{if(i.state==="idle")return;let c=vy(i,s+1,n),u=Lw(r)?Ay(i):jw(i);t.push({...o,...c,...u})})}),Bw(e).forEach((r,a)=>{let n=_w(r,a+1);r.values.forEach((o,i)=>{if(o.state==="idle")return;let s=vy(o,i+1,"specific"),c=Ay(o);t.push({...n,...s,...c})})}),t},Lw=e=>e.type==="specific",Nw=e=>e.type==="hierarchical",Qw=e=>[...Object.values(e.facetSet),...Object.values(e.categoryFacetSet),...Object.values(e.dateFacetSet),...Object.values(e.numericFacetSet)].map(t=>t.request),Bw=e=>[...Object.values(e.automaticFacetSet.set)].map(t=>t.response),vy=(e,t,r)=>({state:e.state,valuePosition:t,facetType:r}),jw=e=>({displayValue:`${e.start}..${e.end}`,value:`${e.start}..${e.end}`,start:e.start,end:e.end,endInclusive:e.endInclusive}),Ay=e=>({displayValue:e.value,value:e.value}),by=(e,t)=>Pf(e,t).map(a=>a.value).join(";"),Uw=(e,t)=>{let r=1,a=by(e,t);return{value:a,valuePosition:r,displayValue:a}},_w=(e,t)=>({title:wf(e.field,e.field),field:e.field,id:e.field,facetPosition:t}),$w=(e,t)=>({title:wf(e.field,e.facetId),field:e.field,id:e.facetId,facetPosition:t}),wf=(e,t)=>`${e}_${t}`,Fy=(e,t)=>{var r,a,n,o,i;return((r=e.facetSet[t])==null?void 0:r.request)||((a=e.categoryFacetSet[t])==null?void 0:a.request)||((n=e.dateFacetSet[t])==null?void 0:n.request)||((o=e.numericFacetSet[t])==null?void 0:o.request)||((i=e.automaticFacetSet.set[t])==null?void 0:i.response)},Ry=(e,t)=>{let r=Fy(e,t);return r?r.type:"specific"};var un="2.52.0",Py=["@coveo/atomic","@coveo/quantic"];var Hw=e=>{let t=e.configuration.search.locale.split("-")[0];return!t||t.length!==2?"en":t},Gr=class{constructor(t){this.getState=t;this.state=t()}getLanguage(){return Hw(this.state)}getBaseMetadata(){let{context:t,configuration:r}=this.state,a=(t==null?void 0:t.contextValues)||{},n={};for(let[o,i]of Object.entries(a)){let s=`context_${o}`;n[s]=i}return r.analytics.analyticsMode==="legacy"&&(n.coveoHeadlessVersion=un),n}getOriginContext(){return this.state.configuration.analytics.originContext}getOriginLevel1(){return this.state.searchHub||Ge()}getOriginLevel2(){return this.state.configuration.analytics.originLevel2}getOriginLevel3(){return this.state.configuration.analytics.originLevel3}getIsAnonymous(){return this.state.configuration.analytics.anonymous}};var We=e=>new Qt(e).getCurrentVisitorId(),vt=new WS.HistoryStore,nr=(e,t)=>typeof t=="function"?(...r)=>{let a=ms(r[0]);try{return t.apply(t,r)}catch(n){return e.error(n,"Error in analytics preprocessRequest. Returning original request."),a}}:void 0,or=(e,t)=>(...r)=>{let a=ms(r[1]);try{return t.apply(t,r)}catch(n){return e.error(n,"Error in analytics hook. Returning original request."),a}};var pu=class extends Gr{constructor(){super(...arguments);this.getFacetRequest=t=>{var r,a,n,o,i,s,c,u,l,d;return((a=(r=this.state.facetSet)==null?void 0:r[t])==null?void 0:a.request)||((o=(n=this.state.categoryFacetSet)==null?void 0:n[t])==null?void 0:o.request)||((s=(i=this.state.dateFacetSet)==null?void 0:i[t])==null?void 0:s.request)||((u=(c=this.state.numericFacetSet)==null?void 0:c[t])==null?void 0:u.request)||((d=(l=this.state.automaticFacetSet)==null?void 0:l.set[t])==null?void 0:d.response)}}getFacetState(){return du(ct(this.getState()))}getPipeline(){var t;return this.state.pipeline||((t=this.state.search)==null?void 0:t.response.pipeline)||pu.fallbackPipelineName}getSearchEventRequestPayload(){return{queryText:this.queryText,responseTime:this.responseTime,results:this.resultURIs,numberOfResults:this.numberOfResults}}getSearchUID(){var r,a;let t=this.getState();return((r=t.search)==null?void 0:r.searchResponseId)||((a=t.search)==null?void 0:a.response.searchUid)||Te().response.searchUid}getSplitTestRunName(){var t;return(t=this.state.search)==null?void 0:t.response.splitTestRun}getSplitTestRunVersion(){var a;let t=!!this.getSplitTestRunName(),r=((a=this.state.search)==null?void 0:a.response.pipeline)||this.state.pipeline||pu.fallbackPipelineName;return t?r:void 0}getBaseMetadata(){var n,o,i;let t=this.getState(),r=super.getBaseMetadata(),a=(i=(o=(n=t.search)==null?void 0:n.response)==null?void 0:o.extendedResults)==null?void 0:i.generativeQuestionAnsweringId;return a&&(r.generativeQuestionAnsweringId=a),r}getFacetMetadata(t,r){var o;let a=this.getFacetRequest(t),n=(o=a==null?void 0:a.field)!=null?o:"";return{...this.getBaseMetadata(),facetId:t,facetField:n,facetValue:r,facetTitle:`${n}_${t}`}}getFacetClearAllMetadata(t){var n;let r=this.getFacetRequest(t),a=(n=r==null?void 0:r.field)!=null?n:"";return{...this.getBaseMetadata(),facetId:t,facetField:a,facetTitle:`${a}_${t}`}}getFacetUpdateSortMetadata(t,r){var o;let a=this.getFacetRequest(t),n=(o=a==null?void 0:a.field)!=null?o:"";return{...this.getBaseMetadata(),facetId:t,facetField:n,criteria:r,facetTitle:`${n}_${t}`}}getRangeBreadcrumbFacetMetadata(t,r){var o;let a=this.getFacetRequest(t),n=(o=a==null?void 0:a.field)!=null?o:"";return{...this.getBaseMetadata(),facetId:t,facetField:n,facetRangeEnd:r.end,facetRangeEndInclusive:r.endInclusive,facetRangeStart:r.start,facetTitle:`${n}_${t}`}}getResultSortMetadata(){var t;return{...this.getBaseMetadata(),resultsSortBy:(t=this.state.sortCriteria)!=null?t:tt()}}getStaticFilterToggleMetadata(t,r){return{...this.getBaseMetadata(),staticFilterId:t,staticFilterValue:r}}getStaticFilterClearAllMetadata(t){return{...this.getBaseMetadata(),staticFilterId:t}}getUndoTriggerQueryMetadata(t){return{...this.getBaseMetadata(),undoneQuery:t}}getCategoryBreadcrumbFacetMetadata(t,r){var o;let a=this.getFacetRequest(t),n=(o=a==null?void 0:a.field)!=null?o:"";return{...this.getBaseMetadata(),categoryFacetId:t,categoryFacetField:n,categoryFacetPath:r,categoryFacetTitle:`${n}_${t}`}}getOmniboxAnalyticsMetadata(t,r){let a=this.state.querySuggest&&this.state.querySuggest[t],n=a.completions.map(c=>c.expression),o=a.partialQueries.length-1,i=a.partialQueries[o]||"",s=a.responseId;return{...this.getBaseMetadata(),suggestionRanking:n.indexOf(r),partialQuery:i,partialQueries:a.partialQueries.length>0?a.partialQueries:"",suggestions:n.length>0?n:"",querySuggestResponseId:s}}getInterfaceChangeMetadata(){return{...this.getBaseMetadata(),interfaceChangeTo:this.state.configuration.analytics.originLevel2}}getOmniboxFromLinkMetadata(t){return{...this.getBaseMetadata(),...t}}getGeneratedAnswerMetadata(){var a;let t=this.getState(),r={};return((a=t.generatedAnswer)==null?void 0:a.isVisible)!==void 0&&(r.showGeneratedAnswer=t.generatedAnswer.isVisible),r}get resultURIs(){var t;return(t=this.results)==null?void 0:t.map(r=>({documentUri:r.uri,documentUriHash:r.raw.urihash}))}get results(){var t;return(t=this.state.search)==null?void 0:t.response.results}get queryText(){var t;return((t=this.state.query)==null?void 0:t.q)||xe().q}get responseTime(){var t;return((t=this.state.search)==null?void 0:t.duration)||Te().duration}get numberOfResults(){var t;return((t=this.state.search)==null?void 0:t.response.totalCountFiltered)||Te().response.totalCountFiltered}},ae=pu;ae.fallbackPipelineName="default";var wy=({logger:e,getState:t,analyticsClientMiddleware:r=(o,i)=>i,preprocessRequest:a,provider:n=new ae(t)})=>{let o=t(),i=o.configuration.accessToken,s=o.configuration.analytics.apiBaseUrl,c=o.configuration.analytics.runtimeEnvironment,u=o.configuration.analytics.enabled,l=new cn({token:i,endpoint:s,runtimeEnvironment:c,preprocessRequest:nr(e,a),beforeSendHooks:[or(e,r),(d,p)=>(e.info({...p,type:d,endpoint:s,token:i},"Analytics request"),p)]},n);return u||l.disable(),l},If=()=>{let t=vt.getHistory().reverse().find(r=>r.name==="PageView"&&r.value);return t?t.value:""};function Gw({config:e,environment:t,event:r,listenerManager:a}){let{url:n,token:o,mode:i}=e;i!=="disabled"&&(a.call(r),t.send(n,o,r))}var zw=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Ww(e){return typeof e=="string"&&zw.test(e)}function Yw(e){let t="visitorId";return{getClientId:()=>{let r=e.get(),a=r.storage,n=a.getItem(t),o=n&&Ww(n)?n:r.generateUUID();return a.setItem(t,o),o},clear:()=>{e.get().storage.removeItem(t)}}}var Iy="0.7.4";function Kw(e){let{trackingId:t}=e;return{trackingId:t,user:null}}function Jw(e){return(e.source||[]).concat([`relay@${Iy}`])}function Ey(e,t,r,a){let{getReferrer:n,getLocation:o,getUserAgent:i}=r,s=Kw(t),c=a.getClientId();return Object.freeze({type:e,config:s,ts:Date.now(),source:Jw(t),clientId:c,userAgent:i(),referrer:n(),location:o()})}function Xw(e,t,r,a,n){return{...t,meta:Ey(e,r,a,n)}}var Zw="*";function eI(){let e=[];function t({type:c,callback:u}){return e.findIndex(l=>l.type===c&&l.callback===u)}function r(c,u){return c.type==="*"||u===c.type}function a(c){return t(c)<0&&e.push(c),()=>s(c.type,c.callback)}function n(c){e.forEach(u=>{if(r(u,c.meta.type))try{u.callback(c)}catch(l){console.error(l)}})}function o(c){if(c===Zw)e.length=0;else for(let u=e.length-1;u>=0;u--)e[u].type===c&&e.splice(u,1)}function i(c){let u=t(c);u>=0&&e.splice(u,1)}function s(c,u){u?i({type:c,callback:u}):o(c)}return{add:a,call:n,remove:s}}function ky({url:e,token:t,trackingId:r,...a}){return Object.freeze({url:e,token:t,trackingId:r,...!!a.mode&&{mode:a.mode},...!!a.source&&{source:a.source}})}function tI(e){let t=ky(e);return{get:()=>t,update:r=>{t=ky({...t,...r})}}}function rI(){let e=typeof window!="undefined";return{sendMessage(t){e&&window.postMessage(t,"*")}}}var Ef=aI();function aI(){let e="coveo_",t=r=>{let a=r.split(".").slice(-2);return a.length==2?a.join("."):""};return{getItem(r){let a=`${e}${r}=`,n=document.cookie.split(";");for(let o of n){let i=o.replace(/^\s+/,"");if(i.lastIndexOf(a,0)===0)return i.substring(a.length,i.length)}return null},setItem(r,a,n){let o=t(window.location.hostname),i=`;expires=${new Date(new Date().getTime()+n).toUTCString()}`,s=o?`;domain=${o}`:"";document.cookie=`${e}${r}=${a}${i}${s};path=/;SameSite=Lax`},removeItem(r){this.setItem(r,"",-1)}}}function nI(){return{getItem(e){return Ef.getItem(e)||localStorage.getItem(e)},removeItem(e){Ef.removeItem(e),localStorage.removeItem(e)},setItem(e,t){let r=31556952e3;localStorage.setItem(e,t),Ef.setItem(e,t,r)}}}function oI(){let e=document.referrer;return e===""?null:e}function iI(){return{runtime:"browser",send:(e,t,r)=>{let a=navigator.sendBeacon(`${e}?access_token=${t}`,new Blob([JSON.stringify([r])],{type:"application/json"}));if(rI().sendMessage({kind:"EVENT_PROTOCOL",event:r,url:e,token:t}),!a)throw new Error("Failed to send the event(s) because the payload size exceeded the maximum allowed size (32 KB). Please contact support if the problem persists.")},getReferrer:()=>oI(),getLocation:()=>window.location.href,getUserAgent:()=>navigator.userAgent,generateUUID:()=>crypto.randomUUID(),storage:nI()}}function sI(){return{getItem(){return null},removeItem(){},setItem(){}}}function cI(){return{runtime:"null",send:()=>{},getReferrer:()=>null,getLocation:()=>null,getUserAgent:()=>null,generateUUID:()=>"",storage:sI()}}function uI(e){return e.get().mode!=="disabled"&&lI()?iI():cI()}function lI(){try{return typeof window=="object"}catch{return!1}}function dI(e){return{get:()=>Object.freeze(uI(e))}}function Oy(e){let t=tI(e),r=eI(),a=dI(t),n=Yw(a);return{emit:(o,i)=>{let s=t.get(),c=a.get(),u=Xw(o,i,s,c,n);return Gw({config:s,environment:c,event:u,listenerManager:r})},getMeta:o=>Ey(o,t.get(),a.get(),n),on:(o,i)=>r.add({type:o,callback:i}),off:(o,i)=>r.remove(o,i),updateConfig:o=>t.update(o),version:Iy,clearStorage:()=>{n.clear()}}}var fu=sa(e=>e.source,e=>[`@coveo/headless@${un}`].concat(Object.entries(e).map(([t,r])=>`${t}@${r}`)));var mu=sa(e=>e.configuration.accessToken,e=>e.configuration.analytics,e=>fu(e.configuration.analytics),(e,{trackingId:t,nextApiBaseUrl:r},a)=>Oy({url:r,token:e,trackingId:t,source:a}));var gu=class{constructor(t){this.state=t()}getSearchUID(){return null}getOriginLevel1(){return this.state.searchHub||Ge()}},qy=({logger:e,getState:t,analyticsClientMiddleware:r=(o,i)=>i,preprocessRequest:a,provider:n=new gu(t)})=>{let o=t(),i=o.configuration.accessToken,s=o.configuration.analytics.apiBaseUrl,c=o.configuration.analytics.runtimeEnvironment,u=o.configuration.analytics.enabled,l=new vf({enableAnalytics:u,token:i,endpoint:s,runtimeEnvironment:c,preprocessRequest:nr(e,a),beforeSendHooks:[or(e,r),(d,p)=>(e.info({...p,type:d,endpoint:s,token:i},"Analytics request"),p)]},n);return u||l.disable(),l};var ao=class extends Gr{constructor(){super(...arguments);this.initialState=vs()}getPipeline(){return""}getSearchEventRequestPayload(){return{queryText:"",responseTime:0,results:this.mapResultsToAnalyticsDocument(),numberOfResults:this.numberOfResults}}getSearchUID(){var r;return((r=this.getState().productListing)==null?void 0:r.responseId)||this.initialState.responseId}mapResultsToAnalyticsDocument(){var t;return(t=this.state.productListing)==null?void 0:t.products.map(r=>({documentUri:r.documentUri,documentUriHash:r.documentUriHash,permanentid:r.permanentid}))}get numberOfResults(){return this.state.productListing.products.length}},Ty=({logger:e,getState:t,analyticsClientMiddleware:r=(o,i)=>i,preprocessRequest:a,provider:n=new ao(t)})=>{let o=t(),i=o.configuration.accessToken,s=o.configuration.analytics.apiBaseUrl,c=o.configuration.analytics.runtimeEnvironment,u=o.configuration.analytics.enabled,l=new cn({token:i,endpoint:s,runtimeEnvironment:c,preprocessRequest:nr(e,a),beforeSendHooks:[or(e,r),(d,p)=>(e.info({...p,type:d,endpoint:s,token:i},"Analytics request"),p)]},n);return u||l.disable(),l};var hu=class extends Gr{getSearchUID(){var r,a;let t=this.getState();return((r=t.search)==null?void 0:r.searchResponseId)||((a=t.search)==null?void 0:a.response.searchUid)||Te().response.searchUid}getPipeline(){var t;return this.state.pipeline||((t=this.state.search)==null?void 0:t.response.pipeline)||"default"}getSearchEventRequestPayload(){return{queryText:this.queryText,responseTime:this.responseTime,results:this.mapResultsToAnalyticsDocument(),numberOfResults:this.numberOfResults}}getFacetState(){return du(ct(this.state))}getBaseMetadata(){var n,o,i;let t=this.getState(),r=super.getBaseMetadata(),a=(i=(o=(n=t.search)==null?void 0:n.response)==null?void 0:o.extendedResults)==null?void 0:i.generativeQuestionAnsweringId;return a&&(r.generativeQuestionAnsweringId=a),r}getGeneratedAnswerMetadata(){var r;let t=this.getState();return{...((r=t.generatedAnswer)==null?void 0:r.isVisible)!==void 0&&{showGeneratedAnswer:t.generatedAnswer.isVisible}}}get queryText(){var t;return((t=this.state.query)==null?void 0:t.q)||xe().q}get responseTime(){var t;return((t=this.state.search)==null?void 0:t.duration)||Te().duration}mapResultsToAnalyticsDocument(){var t;return(t=this.state.search)==null?void 0:t.response.results.map(r=>({documentUri:r.uri,documentUriHash:r.raw.urihash}))}get numberOfResults(){var t;return((t=this.state.search)==null?void 0:t.response.results.length)||Te().response.results.length}},Dy=({logger:e,getState:t,analyticsClientMiddleware:r=(o,i)=>i,preprocessRequest:a,provider:n=new hu(t)})=>{let o=t(),i=o.configuration.accessToken,s=o.configuration.analytics.apiBaseUrl,c=o.configuration.analytics.runtimeEnvironment,u=o.configuration.analytics.enabled,l=new Af({enableAnalytics:u,token:i,endpoint:s,runtimeEnvironment:c,preprocessRequest:nr(e,a),beforeSendHooks:[or(e,r),(d,p)=>(e.info({...p,type:d,endpoint:s,token:i},"Analytics request"),p)]},n);return u||l.disable(),l};var no=class extends Gr{constructor(){super(...arguments);this.initialState=vs()}getPipeline(){return""}getSearchEventRequestPayload(){return{queryText:"",responseTime:0,results:this.mapResultsToAnalyticsDocument(),numberOfResults:this.numberOfResults}}getSearchUID(){var r;return((r=this.getState().productListing)==null?void 0:r.responseId)||this.initialState.responseId}mapResultsToAnalyticsDocument(){var t;return(t=this.state.productListing)==null?void 0:t.products.map(r=>({documentUri:r.documentUri,documentUriHash:r.documentUriHash,permanentid:r.permanentid}))}get numberOfResults(){return this.state.productListing.products.length}},Vy=({logger:e,getState:t,analyticsClientMiddleware:r=(o,i)=>i,preprocessRequest:a,provider:n=new no(t)})=>{let o=t(),i=o.configuration.accessToken,s=o.configuration.analytics.apiBaseUrl,c=o.configuration.analytics.runtimeEnvironment,u=o.configuration.analytics.enabled,l=new cn({token:i,endpoint:s,runtimeEnvironment:c,preprocessRequest:nr(e,a),beforeSendHooks:[or(e,r),(d,p)=>(e.info({...p,type:d,endpoint:s,token:i},"Analytics request"),p)]},n);return u||l.disable(),l};function Su(e){let t=My(e),r=[e,...t].filter(n=>n.parentResult).map(n=>n.parentResult);return Wh([e,...t,...r],n=>n.uniqueId)}function My(e){return e.childResults?e.childResults.flatMap(t=>[t,...My(t)]):[]}function Ly(e,t){return{...new ae(t).getBaseMetadata(),actionCause:e,type:e}}function pI(e){return Object.assign(e,{instantlyCallable:!0})}function fI(e,t){let r=o=>pI(W(e,o)),a=r(async(o,{getState:i,extra:s})=>{let{analyticsClientMiddleware:c,preprocessRequest:u,logger:l}=s;return await(await t({getState:i,analyticsClientMiddleware:c,preprocessRequest:u,logger:l})).log({state:i(),extra:s})});return Object.assign(a,{prepare:async({getState:o,analyticsClientMiddleware:i,preprocessRequest:s,logger:c})=>{let{description:u,log:l}=await t({getState:o,analyticsClientMiddleware:i,preprocessRequest:s,logger:c});return{description:u,action:r(async(d,{getState:p,extra:f})=>await l({state:p(),extra:f}))}}}),a}var Es=(e,t,r)=>{function a(...n){let o=n.length===1?{...n[0],__legacy__getBuilder:t(n[0].__legacy__getBuilder),analyticsConfigurator:e,providerClass:r}:{prefix:n[0],__legacy__getBuilder:t(n[1]),__legacy__provider:n[2],analyticsConfigurator:e,providerClass:r};return hI(o)}return a},mI=e=>e.configuration.analytics.analyticsMode==="legacy",gI=e=>e.configuration.analytics.analyticsMode==="next",hI=({prefix:e,__legacy__getBuilder:t,__legacy__provider:r,analyticsPayloadBuilder:a,analyticsType:n,analyticsConfigurator:o,providerClass:i})=>(r!=null||(r=s=>new i(s)),fI(e,async({getState:s,analyticsClientMiddleware:c,preprocessRequest:u,logger:l})=>{let d=[],p={log:async({state:y})=>{for(let x of d)await x(y)}},f=s(),m=o({getState:s,logger:l,analyticsClientMiddleware:c,preprocessRequest:u,provider:r(s)}),g=await t(m,s());p.description=g==null?void 0:g.description,d.push(async y=>{mI(y)&&await SI(g,r,y,l,m.coveoAnalyticsClient)});let{emit:S}=mu(f);return d.push(async y=>{if(gI(y)&&n&&a){let x=a(y);await FI(S,n,x)}}),p}));async function SI(e,t,r,a,n){t(()=>r);let o=await(e==null?void 0:e.log({searchUID:t(()=>r).getSearchUID()}));a.info({client:n,response:o},"Analytics response")}var Ny=e=>(t,r)=>Promise.resolve({description:{actionCause:"caseAssist"},log:async a=>{e(t,r)}}),E=Es(wy,e=>e,ae),h1=Es(qy,Ny,gu),S1=Es(Dy,Ny,hu),Qy=Es(Ty,e=>e,ao),By=Es(Vy,e=>e,no);var Oe=(e,t)=>{var o;let r=i=>{var s,c;return i+((c=(s=t.pagination)==null?void 0:s.firstResult)!=null?c:0)},a=-1,n=(o=t.search)==null?void 0:o.results;return a=Uy(e,n),a<0&&(a=bI(e,n)),a<0&&(a=0),yI(e,r(a),t)};function yI(e,t,r){let a=e.raw.collection;return{collectionName:typeof a=="string"?a:"default",documentAuthor:vI(e),documentPosition:t+1,documentTitle:e.title,documentUri:e.uri,documentUriHash:e.raw.urihash,documentUrl:e.clickUri,rankingModifier:e.rankingModifier||"",sourceName:AI(e),queryPipeline:r.pipeline||Lt()}}var Le=e=>(e.raw.permanentid||console.warn("Missing field permanentid on result. This might cause many issues with your Coveo deployment. See https://docs.coveo.com/en/1913 and https://docs.coveo.com/en/1640 for more information.",e),{contentIDKey:"permanentid",contentIDValue:e.raw.permanentid||""}),jy={urihash:new w,sourcetype:new w,permanentid:new w},oo={uniqueId:O,raw:new q({values:jy}),title:O,uri:O,clickUri:O,rankingModifier:new w({required:!1,emptyAllowed:!0})};function CI(e){return Object.assign({},...Object.keys(jy).map(t=>({[t]:e[t]})))}function xI(e){return Object.assign({},...Object.keys(oo).map(t=>({[t]:e[t]})),{raw:CI(e.raw)})}function vI(e){let t=e.raw.author;return te(t)?"unknown":Array.isArray(t)?t.join(";"):`${t}`}function AI(e){let t=e.raw.source;return te(t)?"unknown":t}var ut=e=>new Y(oo).validate(xI(e));function bI(e,t){for(let[r,a]of t.entries()){let n=Su(a);if(Uy(e,n)!==-1)return r}return-1}function Uy(e,t=[]){return t.findIndex(({uniqueId:r})=>r===e.uniqueId)}async function FI(e,t,r){await e(t,r)}var oe=(V=>(V.interfaceLoad="interfaceLoad",V.interfaceChange="interfaceChange",V.didyoumeanAutomatic="didyoumeanAutomatic",V.didyoumeanClick="didyoumeanClick",V.resultsSort="resultsSort",V.searchboxSubmit="searchboxSubmit",V.searchboxClear="searchboxClear",V.searchboxAsYouType="searchboxAsYouType",V.breadcrumbFacet="breadcrumbFacet",V.breadcrumbResetAll="breadcrumbResetAll",V.documentQuickview="documentQuickview",V.documentOpen="documentOpen",V.omniboxAnalytics="omniboxAnalytics",V.omniboxFromLink="omniboxFromLink",V.searchFromLink="searchFromLink",V.triggerNotify="notify",V.triggerExecute="execute",V.triggerQuery="query",V.undoTriggerQuery="undoQuery",V.triggerRedirect="redirect",V.pagerResize="pagerResize",V.pagerNumber="pagerNumber",V.pagerNext="pagerNext",V.pagerPrevious="pagerPrevious",V.pagerScrolling="pagerScrolling",V.staticFilterClearAll="staticFilterClearAll",V.staticFilterSelect="staticFilterSelect",V.staticFilterDeselect="staticFilterDeselect",V.facetClearAll="facetClearAll",V.facetSearch="facetSearch",V.facetSelect="facetSelect",V.facetSelectAll="facetSelectAll",V.facetDeselect="facetDeselect",V.facetExclude="facetExclude",V.facetUnexclude="facetUnexclude",V.facetUpdateSort="facetUpdateSort",V.facetShowMore="showMoreFacetResults",V.facetShowLess="showLessFacetResults",V.queryError="query",V.queryErrorBack="errorBack",V.queryErrorClear="errorClearQuery",V.queryErrorRetry="errorRetry",V.recommendation="recommendation",V.recommendationInterfaceLoad="recommendationInterfaceLoad",V.recommendationOpen="recommendationOpen",V.likeSmartSnippet="likeSmartSnippet",V.dislikeSmartSnippet="dislikeSmartSnippet",V.expandSmartSnippet="expandSmartSnippet",V.collapseSmartSnippet="collapseSmartSnippet",V.openSmartSnippetFeedbackModal="openSmartSnippetFeedbackModal",V.closeSmartSnippetFeedbackModal="closeSmartSnippetFeedbackModal",V.sendSmartSnippetReason="sendSmartSnippetReason",V.expandSmartSnippetSuggestion="expandSmartSnippetSuggestion",V.collapseSmartSnippetSuggestion="collapseSmartSnippetSuggestion",V.showMoreSmartSnippetSuggestion="showMoreSmartSnippetSuggestion",V.showLessSmartSnippetSuggestion="showLessSmartSnippetSuggestion",V.openSmartSnippetSource="openSmartSnippetSource",V.openSmartSnippetSuggestionSource="openSmartSnippetSuggestionSource",V.openSmartSnippetInlineLink="openSmartSnippetInlineLink",V.openSmartSnippetSuggestionInlineLink="openSmartSnippetSuggestionInlineLink",V.recentQueryClick="recentQueriesClick",V.clearRecentQueries="clearRecentQueries",V.recentResultClick="recentResultClick",V.clearRecentResults="clearRecentResults",V.noResultsBack="noResultsBack",V.showMoreFoldedResults="showMoreFoldedResults",V.showLessFoldedResults="showLessFoldedResults",V.copyToClipboard="copyToClipboard",V.caseSendEmail="Case.SendEmail",V.feedItemTextPost="FeedItem.TextPost",V.caseAttach="caseAttach",V.caseDetach="caseDetach",V.retryGeneratedAnswer="retryGeneratedAnswer",V.likeGeneratedAnswer="likeGeneratedAnswer",V.dislikeGeneratedAnswer="dislikeGeneratedAnswer",V.openGeneratedAnswerSource="openGeneratedAnswerSource",V.generatedAnswerStreamEnd="generatedAnswerStreamEnd",V.historyForward="historyForward",V.historyBackward="historyBackward",V))(oe||{});var kf=e=>A(e,{evt:O,type:de}),_y=e=>E("analytics/generic/search",t=>{kf(e);let{evt:r,meta:a}=e;return t.makeSearchEvent(r,a)}),$y=e=>E("analytics/generic/click",(t,r)=>(ut(e.result),kf(e),t.makeClickEvent(e.evt,Oe(e.result,r),Le(e.result),e.meta))),Hy=e=>E("analytics/generic/custom",t=>(kf(e),t.makeCustomEventWithType(e.evt,e.type,e.meta))),yu=()=>E("analytics/interface/load",e=>e.makeInterfaceLoad()),ya=()=>E("analytics/interface/change",(e,t)=>e.makeInterfaceChange({interfaceChangeTo:t.configuration.analytics.originLevel2})),Cu=()=>E("analytics/interface/searchFromLink",e=>e.makeSearchFromLink()),xu=e=>E("analytics/interface/omniboxFromLink",t=>t.makeOmniboxFromLink(e)),Gy=()=>({actionCause:oe.interfaceLoad,getEventExtraPayload:e=>new ae(()=>e).getBaseMetadata()}),io=()=>({actionCause:oe.interfaceChange,getEventExtraPayload:e=>new ae(()=>e).getInterfaceChangeMetadata()}),zy=()=>({actionCause:oe.searchFromLink,getEventExtraPayload:e=>new ae(()=>e).getBaseMetadata()}),Wy=e=>({actionCause:oe.omniboxFromLink,getEventExtraPayload:t=>new ae(()=>t).getOmniboxFromLinkMetadata(e)});var Of=()=>de,Yy=()=>O,ir=C("configuration/updateBasicConfiguration",e=>A(e,{accessToken:de,organizationId:de,platformUrl:de})),At=C("configuration/updateSearchConfiguration",e=>A(e,{apiBaseUrl:de,pipeline:new w({required:!1,emptyAllowed:!0}),searchHub:de,timezone:de,locale:de,authenticationProviders:new X({required:!1,each:O})})),RI={enabled:new K({default:!0}),originContext:Of(),originLevel2:Of(),originLevel3:Of(),apiBaseUrl:de,nextApiBaseUrl:de,runtimeEnvironment:new me,anonymous:new K({default:!1}),deviceId:de,userDisplayName:de,documentLocation:de,trackingId:de,analyticsMode:new w({constrainTo:["legacy","next"],required:!1,default:"legacy"}),source:new q({options:{required:!1},values:Py.reduce((e,t)=>(e[t]=Ih,e),{})})},Ca=C("configuration/updateAnalyticsConfiguration",e=>(qc()&&(e.enabled=!1),A(e,RI))),so=C("configuration/analytics/disable"),co=C("configuration/analytics/enable"),vu=C("configuration/analytics/originlevel2",e=>A(e,{originLevel2:Yy()})),Au=C("configuration/analytics/originlevel3",e=>A(e,{originLevel3:Yy()}));var bu={q:new w,enableQuerySyntax:new K,aq:new w,cq:new w,firstResult:new D({min:0}),numberOfResults:new D({min:0}),sortCriteria:new w,f:new q,fExcluded:new q,cf:new q,nf:new q,df:new q,debug:new K,sf:new q,tab:new w,af:new q};var ue=C("searchParameters/restore",e=>A(e,bu));var xa=C("debug/enable"),uo=C("debug/disable");var lo=T(Ct(),e=>{e.addCase(xa,()=>!0).addCase(uo,()=>!1).addCase(ue,(t,r)=>{var a;return(a=r.payload.debug)!=null?a:t})});var qf=C("history/undo"),Tf=C("history/redo"),ht=C("history/snapshot"),ks=W("history/back",async(e,{dispatch:t})=>{t(qf()),await t(ce())}),Fu=W("history/forward",async(e,{dispatch:t})=>{t(Tf()),await t(ce())}),ce=W("history/change",async(e,{getState:t})=>t().history.present);var po=C("pipeline/set",e=>A(e,new w({required:!0,emptyAllowed:!0})));var fo=T(Lt(),e=>{e.addCase(po,(t,r)=>r.payload).addCase(ce.fulfilled,(t,r)=>{var a,n;return(n=(a=r.payload)==null?void 0:a.pipeline)!=null?n:t}).addCase(At,(t,r)=>r.payload.pipeline||t)});var mo=C("searchHub/set",e=>A(e,new w({required:!0,emptyAllowed:!0})));var go=T(Ge(),e=>{e.addCase(mo,(t,r)=>r.payload).addCase(ce.fulfilled,(t,r)=>{var a,n;return(n=(a=r.payload)==null?void 0:a.searchHub)!=null?n:t}).addCase(At,(t,r)=>r.payload.searchHub||t)});var Fe=C("breadcrumb/deselectAll"),va=C("breadcrumb/deselectAllNonBreadcrumbs");var bt=C("facet/updateFacetAutoSelection",e=>A(e,{allow:new K({required:!0})}));var Ru=class extends ae{constructor(t){super(t);this.getState=t}get activeInstantResultQuery(){let t=this.getState().instantResults;for(let r in t)for(let a in t[r].cache)if(t[r].cache[a].isActive)return t[r].q;return null}get activeInstantResultCache(){let t=this.getState().instantResults;for(let r in t)for(let a in t[r].cache)if(t[r].cache[a].isActive)return t[r].cache[a];return null}get results(){var t;return(t=this.activeInstantResultCache)==null?void 0:t.results}get queryText(){var t;return(t=this.activeInstantResultQuery)!=null?t:xe().q}get responseTime(){var t,r;return(r=(t=this.activeInstantResultCache)==null?void 0:t.duration)!=null?r:Te().duration}get numberOfResults(){var t,r;return(r=(t=this.activeInstantResultCache)==null?void 0:t.totalCountFiltered)!=null?r:Te().response.totalCountFiltered}getSearchUID(){var r;return((r=this.activeInstantResultCache)==null?void 0:r.searchUid)||super.getSearchUID()}};var Ky=e=>E({prefix:"analytics/instantResult/open",__legacy__getBuilder:(t,r)=>(ut(e),t.makeDocumentOpen(Oe(e,r),Le(e))),__legacy__provider:t=>new Ru(t),analyticsType:"itemClick",analyticsPayloadBuilder:t=>{var n,o;let r=Oe(e,t),a=Le(e);return{searchUid:(o=(n=t.search)==null?void 0:n.response.searchUid)!=null?o:"",position:r.documentPosition,actionCause:"open",itemMetadata:{uniqueFieldName:a.contentIDKey,uniqueFieldValue:a.contentIDValue,title:r.documentTitle,author:r.documentAuthor,url:r.documentUrl}}}}),Jy=()=>E("analytics/instantResult/searchboxAsYouType",e=>e.makeSearchboxAsYouType(),e=>new Ru(e)),Xy=()=>({actionCause:oe.searchboxAsYouType,getEventExtraPayload:e=>new ae(()=>e).getBaseMetadata()});var Df={id:O},PI={...Df,q:ge},ho=C("instantResults/register",e=>A(e,Df)),sr=C("instantResults/updateQuery",e=>A(e,PI)),So=C("instantResults/clearExpired",e=>A(e,Df));var Pu=new D({required:!0,min:0}),yo=C("pagination/registerNumberOfResults",e=>A(e,Pu)),Co=C("pagination/updateNumberOfResults",e=>A(e,Pu)),xo=C("pagination/registerPage",e=>A(e,Pu)),Ft=C("pagination/updatePage",e=>A(e,Pu)),vo=C("pagination/nextPage"),Ao=C("pagination/previousPage");var Ye=C("query/updateQuery",e=>A(e,{q:new w,enableQuerySyntax:new K}));var bo=async(e,t)=>{let r=e.analyticsMode==="next";return{analytics:{clientId:await We(e),clientTimestamp:new Date().toISOString(),documentReferrer:e.originLevel3,originContext:e.originContext,...t&&{actionCause:t.actionCause,customData:t.customData},...e.userDisplayName&&{userDisplayName:e.userDisplayName},...e.documentLocation&&{documentLocation:e.documentLocation},...e.deviceId&&{deviceId:e.deviceId},...If()&&{pageId:If()},...r&&e.trackingId&&{trackingId:e.trackingId},capture:r,...r&&{source:fu(e)}}}};var Aa=async(e,t)=>{var r,a,n,o;return{accessToken:e.configuration.accessToken,organizationId:e.configuration.organizationId,url:e.configuration.search.apiBaseUrl,locale:e.configuration.search.locale,debug:e.debug,tab:e.configuration.analytics.originLevel2,referrer:e.configuration.analytics.originLevel3,timezone:e.configuration.search.timezone,...e.configuration.analytics.enabled&&{visitorId:await We(e.configuration.analytics),actionsHistory:vt.getHistory()},...((r=e.advancedSearchQueries)==null?void 0:r.aq)&&{aq:e.advancedSearchQueries.aq},...((a=e.advancedSearchQueries)==null?void 0:a.cq)&&{cq:e.advancedSearchQueries.cq},...((n=e.advancedSearchQueries)==null?void 0:n.lq)&&{lq:e.advancedSearchQueries.lq},...((o=e.advancedSearchQueries)==null?void 0:o.dq)&&{dq:e.advancedSearchQueries.dq},...e.context&&{context:e.context.contextValues},...e.fields&&!e.fields.fetchAllFields&&{fieldsToInclude:e.fields.fieldsToInclude},...e.dictionaryFieldContext&&{dictionaryFieldContext:e.dictionaryFieldContext.contextValues},...e.pipeline&&{pipeline:e.pipeline},...e.query&&{q:e.query.q,enableQuerySyntax:e.query.enableQuerySyntax},...e.searchHub&&{searchHub:e.searchHub},...e.sortCriteria&&{sortCriteria:e.sortCriteria},...e.configuration.analytics.enabled&&await bo(e.configuration.analytics,t),...e.excerptLength&&!te(e.excerptLength.length)&&{excerptLength:e.excerptLength.length},...e.configuration.search.authenticationProviders.length&&{authentication:e.configuration.search.authenticationProviders.join(",")}}};var Vf=()=>E("search/logFetchMoreResults",e=>e.makeFetchMoreResults()),lt=e=>E("search/queryError",(t,r)=>{var a,n,o,i;return t.makeQueryError({query:((a=r.query)==null?void 0:a.q)||xe().q,aq:((n=r.advancedSearchQueries)==null?void 0:n.aq)||st().aq,cq:((o=r.advancedSearchQueries)==null?void 0:o.cq)||st().cq,dq:((i=r.advancedSearchQueries)==null?void 0:i.dq)||st().dq,errorType:e.type,errorMessage:e.message})});var Ts=Ie(wc()),aC=Ie(Zy());var wu=Ie(wc()),tC=Ie(eC());wu.default.extend(tC.default);var Os="YYYY/MM/DD@HH:mm:ss",wI="1401-01-01";function ln(e,t){let r=(0,wu.default)(e,t);return!r.isValid()&&!t?(0,wu.default)(e,Os):r}function qs(e){return e.format(Os)}function rC(e){return qs(ln(e))===e}function Iu(e,t){let r=ln(e,t);if(!r.isValid()){let a=". Please provide a date format string in the configuration options. See https://day.js.org/docs/en/parse/string-format for more information.",n=` with the format "${t}""`;throw new Error(`Could not parse the provided date "${e}"${t?n:a}`)}Bf(r)}function Bf(e){if(e.isBefore(wI))throw new Error(`Date is before year 1401, which is unsupported by the API: ${e}`)}Ts.default.extend(aC.default);var nC=["past","now","next"],oC=["minute","hour","day","week","month","quarter","year"],II=e=>{let t=e==="now";return{amount:new D({required:!t,min:1}),unit:new w({required:!t,constrainTo:oC}),period:new w({required:!0,constrainTo:nC})}};function dn(e){if(typeof e=="string"&&!cr(e))throw new Error(`The value "${e}" is not respecting the relative date format "period-amount-unit"`);let t=typeof e=="string"?jf(e):e;new Y(II(t.period)).validate(t);let r=sC(t),a=JSON.stringify(t);if(!r.isValid())throw new Error(`Date is invalid: ${a}`);Bf(r)}function iC(e){let{period:t,amount:r,unit:a}=e;switch(t){case"past":case"next":return`${t}-${r}-${a}`;case"now":return t}}function sC(e){let{period:t,amount:r,unit:a}=e;switch(t){case"past":return(0,Ts.default)().subtract(r,a);case"next":return(0,Ts.default)().add(r,a);case"now":return(0,Ts.default)()}}function Ds(e){return qs(sC(jf(e)))}function cC(e){return e.toLocaleLowerCase().split("-")}function cr(e){let[t,r,a]=cC(e);if(t==="now")return!0;if(!nC.includes(t)||!oC.includes(a))return!1;let n=parseInt(r);return!(isNaN(n)||n<=0)}function uC(e){return!!e&&typeof e=="object"&&"period"in e}function jf(e){let[t,r,a]=cC(e);return t==="now"?{period:"now"}:{period:t,amount:r?parseInt(r):void 0,unit:a||void 0}}function EI(e){return dn(e),jf(e)}function lC(e){return e.type==="dateRange"}function dC(e){return`start${e}`}function pC(e){return`end${e}`}var kI=()=>({dateFacetValueMap:{}});function OI(e,t,r){let a=e.start,n=e.end;return cr(a)&&(a=Ds(a),r.dateFacetValueMap[t][dC(a)]=e.start),cr(n)&&(n=Ds(n),r.dateFacetValueMap[t][pC(n)]=e.end),{...e,start:a,end:n}}function qI(e,t){if(lC(e)){let{facetId:r,currentValues:a}=e;return t.dateFacetValueMap[r]={},{...e,currentValues:a.map(n=>OI(n,r,t))}}return e}function Fo(e){var a;let t=kI();return{request:{...e,facets:(a=e.facets)==null?void 0:a.map(n=>qI(n,t))},mappings:t}}function TI(e,t,r){return{...e,start:r.dateFacetValueMap[t][dC(e.start)]||e.start,end:r.dateFacetValueMap[t][pC(e.end)]||e.end}}function DI(e,t){return e.facetId in t.dateFacetValueMap}function VI(e,t){return DI(e,t)?{...e,values:e.values.map(r=>TI(r,e.facetId,t))}:e}function Eu(e,t){var r;return"success"in e?{success:{...e.success,facets:(r=e.success.facets)==null?void 0:r.map(n=>VI(n,t))}}:e}function Ro(e,t){let r={};e.forEach(o=>r[o.facetId]=o);let a=[];t.forEach(o=>{o in r&&(a.push(r[o]),delete r[o])});let n=Object.values(r);return[...a,...n]}function zr(e){return Object.values(e).map(t=>t.request)}var pn=1,Vs=5e3;var qe=async(e,t)=>{var s;let r=UI(e),a=MI(e),n=LI(e),o=await Aa(e,t),i=()=>e.pagination?e.pagination.firstResult+e.pagination.numberOfResults>Vs?Vs-e.pagination.firstResult:e.pagination.numberOfResults:void 0;return Fo({...o,...e.didYouMean&&{queryCorrection:{enabled:e.didYouMean.enableDidYouMean&&e.didYouMean.queryCorrectionMode==="next",options:{automaticallyCorrect:e.didYouMean.automaticallyCorrectQuery?"whenNoResults":"never"}},enableDidYouMean:e.didYouMean.enableDidYouMean&&e.didYouMean.queryCorrectionMode==="legacy"},...r&&{cq:r},...a.length&&{facets:a},...e.pagination&&{numberOfResults:i(),firstResult:e.pagination.firstResult},...e.facetOptions&&{facetOptions:{freezeFacetOrder:e.facetOptions.freezeFacetOrder}},...((s=e.folding)==null?void 0:s.enabled)&&{filterField:e.folding.fields.collection,childField:e.folding.fields.parent,parentField:e.folding.fields.child,filterFieldRange:e.folding.filterFieldRange},...e.automaticFacetSet&&{generateAutomaticFacets:{desiredCount:e.automaticFacetSet.desiredCount,numberOfValues:e.automaticFacetSet.numberOfValues,currentFacets:n}},...e.generatedAnswer&&{pipelineRuleParameters:{mlGenerativeQuestionAnswering:{responseFormat:e.generatedAnswer.responseFormat,citationsFieldToInclude:e.generatedAnswer.fieldsToIncludeInCitations}}}})};function MI(e){var t;return Ro(QI(e),(t=e.facetOrder)!=null?t:[])}function LI(e){var r;let t=(r=e.automaticFacetSet)==null?void 0:r.set;return t?Object.values(t).map(a=>a.response).map(NI).filter(a=>a.currentValues.length>0):void 0}function NI(e){let{field:t,label:r,values:a}=e,n=a.filter(o=>o.state==="selected");return{field:t,label:r,currentValues:n}}function QI(e){return BI(e).filter(({facetId:t})=>{var r,a,n;return(n=(a=(r=e.facetOptions)==null?void 0:r.facets[t])==null?void 0:a.enabled)!=null?n:!0})}function BI(e){var t,r,a,n;return[...jI((t=e.facetSet)!=null?t:{}),...fC((r=e.numericFacetSet)!=null?r:{}),...fC((a=e.dateFacetSet)!=null?a:{}),...zr((n=e.categoryFacetSet)!=null?n:{})]}function jI(e){return zr(e).map(t=>t.sortCriteria==="alphanumericDescending"?{...t,sortCriteria:{type:"alphanumeric",order:"descending"}}:t)}function fC(e){return zr(e).map(t=>{let a=t.currentValues.some(({state:n})=>n!=="idle");return t.generateAutomaticRanges&&!a?{...t,currentValues:[]}:t})}function UI(e){var o;let t=((o=e.advancedSearchQueries)==null?void 0:o.cq.trim())||"",r=Object.values(e.tabSet||{}).find(i=>i.isActive),a=(r==null?void 0:r.expression.trim())||"",n=_I(e);return[t,a,...n].filter(i=>!!i).join(" AND ")}function _I(e){return Object.values(e.staticFilterSet||{}).map(r=>{let a=r.values.filter(o=>o.state==="selected"&&!!o.expression.trim()),n=a.map(o=>o.expression).join(" OR ");return a.length>1?`(${n})`:n})}var Po=C("didYouMean/enable"),ku=C("didYouMean/disable"),wo=C("didYouMean/automaticCorrections/disable"),Ou=C("didYouMean/automaticCorrections/enable"),Rt=C("didYouMean/correction",e=>A(e,O)),Io=C("didYouMean/automaticCorrections/mode",e=>A(e,new w({constrainTo:["next","legacy"],emptyAllowed:!1,required:!0})));var qu=()=>E("analytics/didyoumean/click",e=>e.makeDidYouMeanClick()),Uf=()=>E("analytics/didyoumean/automatic",e=>e.makeDidYouMeanAutomatic()),mC=()=>({actionCause:oe.didyoumeanClick,getEventExtraPayload:e=>new ae(()=>e).getBaseMetadata()}),gC=()=>({actionCause:oe.didyoumeanAutomatic,getEventExtraPayload:e=>new ae(()=>e).getBaseMetadata()});var $I=new q({values:{undoneQuery:ge},options:{required:!0}}),Tu=()=>E("analytics/trigger/query",(e,t)=>{var r;return((r=t.triggers)==null?void 0:r.queryModification.newQuery)?e.makeTriggerQuery():null}),Du=e=>E("analytics/trigger/query/undo",t=>(A(e,$I),t.makeUndoTriggerQuery(e))),Vu=()=>E("analytics/trigger/notify",(e,t)=>{var r;return((r=t.triggers)==null?void 0:r.notifications.length)?e.makeTriggerNotify({notifications:t.triggers.notifications}):null}),Mu=()=>E("analytics/trigger/redirect",(e,t)=>{var r;return((r=t.triggers)==null?void 0:r.redirectTo)?e.makeTriggerRedirect({redirectedTo:t.triggers.redirectTo}):null}),Lu=()=>E("analytics/trigger/execute",(e,t)=>{var r;return((r=t.triggers)==null?void 0:r.executions.length)?e.makeTriggerExecute({executions:t.triggers.executions}):null}),hC=e=>({actionCause:oe.undoTriggerQuery,getEventExtraPayload:t=>new ae(()=>t).getUndoTriggerQueryMetadata(e)});var ba=C("trigger/query/ignore",e=>A(e,new w({emptyAllowed:!0,required:!0}))),Eo=C("trigger/query/modification",e=>A(e,new q({values:{originalQuery:de,modification:de}})));var fn=class{constructor(t,r=a=>{this.dispatch(Ye({q:a}))}){this.config=t;this.onUpdateQueryForCorrection=r}async fetchFromAPI({mappings:t,request:r},a){var c;let n=new Date().getTime(),o=Eu(await this.extra.apiClient.search(r,a),t),i=new Date().getTime()-n,s=((c=this.getState().query)==null?void 0:c.q)||"";return{response:o,duration:i,queryExecuted:s,requestExecuted:r}}async process(t){var r,a,n;return(n=(a=(r=this.processQueryErrorOrContinue(t))!=null?r:await this.processQueryCorrectionsOrContinue(t))!=null?a:await this.processQueryTriggersOrContinue(t))!=null?n:this.processSuccessResponse(t)}processQueryErrorOrContinue(t){return ye(t.response)?(this.dispatch(lt(t.response.error)),this.rejectWithValue(t.response.error)):null}async processQueryCorrectionsOrContinue(t){let r=this.getState(),a=this.getSuccessResponse(t);if(!a||!r.didYouMean)return null;let{enableDidYouMean:n,automaticallyCorrectQuery:o}=r.didYouMean,{results:i,queryCorrections:s,queryCorrection:c}=a;if(!n||!o)return null;let u=i.length===0&&s&&s.length!==0,l=!te(c)&&!te(c.correctedQuery);if(!u&&!l)return null;let p=u?await this.processLegacyDidYouMeanAutoCorrection(t):this.processModernDidYouMeanAutoCorrection(t);return this.dispatch(ht(Nt(this.getState()))),p}async processLegacyDidYouMeanAutoCorrection(t){let r=this.getCurrentQuery(),a=this.getSuccessResponse(t);if(!a.queryCorrections)return null;let{correctedQuery:n}=a.queryCorrections[0],o=await this.automaticallyRetryQueryWithCorrection(n);return ye(o.response)?(this.dispatch(lt(o.response.error)),this.rejectWithValue(o.response.error)):(this.logOriginalAnalyticsQueryBeforeAutoCorrection(t),this.dispatch(ht(Nt(this.getState()))),{...o,response:{...o.response.success,queryCorrections:a.queryCorrections},automaticallyCorrected:!0,originalQuery:r,analyticsAction:Uf()})}processModernDidYouMeanAutoCorrection(t){let r=this.getSuccessResponse(t),{correctedQuery:a,originalQuery:n}=r.queryCorrection;return this.onUpdateQueryForCorrection(a),{...t,response:{...r},queryExecuted:a,automaticallyCorrected:!0,originalQuery:n,analyticsAction:Uf()}}logOriginalAnalyticsQueryBeforeAutoCorrection(t){let r=this.getState(),a=this.getSuccessResponse(t);this.analyticsAction&&this.analyticsAction()(this.dispatch,()=>this.getStateAfterResponse(t.queryExecuted,t.duration,r,a),this.extra)}async processQueryTriggersOrContinue(t){var s,c;let r=this.getSuccessResponse(t);if(!r)return null;let a=((s=r.triggers.find(u=>u.type==="query"))==null?void 0:s.content)||"";if(!a)return null;if(((c=this.getState().triggers)==null?void 0:c.queryModification.queryToIgnore)===a)return this.dispatch(ba("")),null;this.analyticsAction&&await this.dispatch(this.analyticsAction);let o=this.getCurrentQuery(),i=await this.automaticallyRetryQueryWithTriggerModification(a);return ye(i.response)?(this.dispatch(lt(i.response.error)),this.rejectWithValue(i.response.error)):(this.dispatch(ht(Nt(this.getState()))),{...i,response:{...i.response.success},automaticallyCorrected:!1,originalQuery:o,analyticsAction:Tu()})}getStateAfterResponse(t,r,a,n){var o,i;return{...a,query:{q:t,enableQuerySyntax:(i=(o=a.query)==null?void 0:o.enableQuerySyntax)!=null?i:xe().enableQuerySyntax},search:{...Te(),duration:r,response:n,results:n.results}}}processSuccessResponse(t){return this.dispatch(ht(Nt(this.getState()))),{...t,response:this.getSuccessResponse(t),automaticallyCorrected:!1,originalQuery:this.getCurrentQuery(),analyticsAction:this.analyticsAction}}getSuccessResponse(t){return Nc(t.response)?t.response.success:null}async automaticallyRetryQueryWithCorrection(t){this.onUpdateQueryForCorrection(t);let r=await this.fetchFromAPI(await qe(this.getState()),{origin:"mainSearch"});return this.dispatch(Rt(t)),r}async automaticallyRetryQueryWithTriggerModification(t){return this.dispatch(Eo({newQuery:t,originalQuery:this.getCurrentQuery()})),this.onUpdateQueryForCorrection(t),await this.fetchFromAPI(await qe(this.getState()),{origin:"mainSearch"})}getCurrentQuery(){var r;let t=this.getState();return((r=t.query)==null?void 0:r.q)!==void 0?t.query.q:""}get extra(){return this.config.extra}getState(){return this.config.getState()}get dispatch(){return this.config.dispatch}get analyticsAction(){return this.config.analyticsAction}get rejectWithValue(){return this.config.rejectWithValue}};var qH=W("search/prepareForSearchWithQuery",(e,t)=>{let{dispatch:r}=t;A(e,{q:new w,enableQuerySyntax:new K,clearFilters:new K}),e.clearFilters&&(r(Fe()),r(va())),r(bt({allow:!0})),r(Ye({q:e.q,enableQuerySyntax:e.enableQuerySyntax})),r(Ft(1))}),ko=W("search/executeSearch",async(e,t)=>{let r=t.getState();return await Qu(r,t,e)}),Oo=W("search/fetchPage",async(e,t)=>{let r=t.getState();return await $f(r,t,e)}),qo=W("search/fetchMoreResults",async(e,t)=>{let r=t.getState();return await Hf(t,r)}),Nu=W("search/fetchFacetValues",async(e,t)=>{let r=t.getState();return await WI(t,e,r)}),SC=W("search/fetchInstantResults",async(e,t)=>_f(e,t)),HI=async(e,t)=>{var a,n,o,i;let r=await qe(e,t);return r.request={...r.request,firstResult:((n=(a=e.pagination)==null?void 0:a.firstResult)!=null?n:0)+((i=(o=e.search)==null?void 0:o.results.length)!=null?i:0)},r},GI=async(e,t,r)=>{let a=await Aa(e);return Fo({...a,...e.didYouMean&&{enableDidYouMean:e.didYouMean.enableDidYouMean},numberOfResults:r,q:t})},zI=async(e,t)=>{let r=await qe(e,t);return r.request.numberOfResults=0,r},yC=e=>{var t;e.configuration.analytics.enabled&&vt.addElement({name:"Query",...((t=e.query)==null?void 0:t.q)&&{value:e.query.q},time:JSON.stringify(new Date)})};async function _f(e,t){A(e,{id:O,q:O,maxResultsPerQuery:new D({required:!0,min:1}),cacheTimeout:new D});let{q:r,maxResultsPerQuery:a}=e,n=t.getState(),o=new fn({...t,analyticsAction:Jy()},u=>{t.dispatch(sr({q:u,id:e.id}))}),i=await GI(n,r,a),s=await o.fetchFromAPI(i,{origin:"instantResults",disableAbortWarning:!0}),c=await o.process(s);return"response"in c?{results:c.response.results,searchUid:c.response.searchUid,analyticsAction:c.analyticsAction,totalCountFiltered:c.response.totalCountFiltered,duration:c.duration}:c}async function $f(e,t,r){yC(e);let{analyticsClientMiddleware:a,preprocessRequest:n,logger:o}=t.extra,{description:i}=await r.prepare({getState:()=>t.getState(),analyticsClientMiddleware:a,preprocessRequest:n,logger:o}),s=new fn({...t,analyticsAction:r}),c=await qe(e,i),u=await s.fetchFromAPI(c,{origin:"mainSearch"});return await s.process(u)}async function Hf(e,t){let{analyticsClientMiddleware:r,preprocessRequest:a,logger:n}=e.extra,{description:o}=await Vf().prepare({getState:()=>e.getState(),analyticsClientMiddleware:r,preprocessRequest:a,logger:n}),i=new fn({...e,analyticsAction:Vf()}),s=await HI(t,o),c=await i.fetchFromAPI(s,{origin:"mainSearch"});return await i.process(c)}async function WI(e,t,r){let{analyticsClientMiddleware:a,preprocessRequest:n,logger:o}=e.extra,{description:i}=await t.prepare({getState:()=>e.getState(),analyticsClientMiddleware:a,preprocessRequest:n,logger:o}),s=new fn({...e,analyticsAction:t}),c=await zI(r,i),u=await s.fetchFromAPI(c,{origin:"facetValues"});return await s.process(u)}async function Qu(e,t,r){yC(e);let{analyticsClientMiddleware:a,preprocessRequest:n,logger:o}=t.extra,{description:i}=await r.prepare({getState:()=>t.getState(),analyticsClientMiddleware:a,preprocessRequest:n,logger:o}),s=await qe(e,i),c=new fn({...t,analyticsAction:r}),u=await c.fetchFromAPI(s,{origin:"mainSearch"});return await c.process(u)}var mn=class{constructor(t,r=a=>{this.dispatch(Ye({q:a}))}){this.config=t;this.onUpdateQueryForCorrection=r}async fetchFromAPI({mappings:t,request:r},a){var c;let n=new Date().getTime(),o=Eu(await this.extra.apiClient.search(r,a),t),i=new Date().getTime()-n,s=((c=this.getState().query)==null?void 0:c.q)||"";return{response:o,duration:i,queryExecuted:s,requestExecuted:r}}async process(t){var r,a,n;return(n=(a=(r=this.processQueryErrorOrContinue(t))!=null?r:await this.processQueryCorrectionsOrContinue(t))!=null?a:await this.processQueryTriggersOrContinue(t))!=null?n:this.processSuccessResponse(t)}processQueryErrorOrContinue(t){return ye(t.response)?(this.dispatch(lt(t.response.error)),this.rejectWithValue(t.response.error)):null}async processQueryCorrectionsOrContinue(t){let r=this.getState(),a=this.getSuccessResponse(t);if(!a||!r.didYouMean)return null;let{enableDidYouMean:n,automaticallyCorrectQuery:o}=r.didYouMean,{results:i,queryCorrections:s,queryCorrection:c}=a;if(!n||!o)return null;let u=i.length===0&&s&&s.length!==0,l=!te(c)&&!te(c.correctedQuery);if(!u&&!l)return null;let p=u?await this.processLegacyDidYouMeanAutoCorrection(t):this.processModernDidYouMeanAutoCorrection(t);return this.dispatch(ht(Nt(this.getState()))),p}async processLegacyDidYouMeanAutoCorrection(t){let r=this.getCurrentQuery(),a=this.getSuccessResponse(t);if(!a.queryCorrections)return null;let{correctedQuery:n}=a.queryCorrections[0],o=await this.automaticallyRetryQueryWithCorrection(n);return ye(o.response)?(this.dispatch(lt(o.response.error)),this.rejectWithValue(o.response.error)):(this.dispatch(ht(Nt(this.getState()))),{...o,response:{...o.response.success,queryCorrections:a.queryCorrections},automaticallyCorrected:!0,originalQuery:r})}processModernDidYouMeanAutoCorrection(t){let r=this.getSuccessResponse(t),{correctedQuery:a,originalQuery:n}=r.queryCorrection;return this.onUpdateQueryForCorrection(a),{...t,response:{...r},queryExecuted:a,automaticallyCorrected:!0,originalQuery:n}}async processQueryTriggersOrContinue(t){var s,c;let r=this.getSuccessResponse(t);if(!r)return null;let a=((s=r.triggers.find(u=>u.type==="query"))==null?void 0:s.content)||"";if(!a)return null;if(((c=this.getState().triggers)==null?void 0:c.queryModification.queryToIgnore)===a)return this.dispatch(ba("")),null;let o=this.getCurrentQuery(),i=await this.automaticallyRetryQueryWithTriggerModification(a);return ye(i.response)?(this.dispatch(lt(i.response.error)),this.rejectWithValue(i.response.error)):(this.dispatch(ht(Nt(this.getState()))),{...i,response:{...i.response.success},automaticallyCorrected:!1,originalQuery:o})}processSuccessResponse(t){return this.dispatch(ht(Nt(this.getState()))),{...t,response:this.getSuccessResponse(t),automaticallyCorrected:!1,originalQuery:this.getCurrentQuery()}}getSuccessResponse(t){return Nc(t.response)?t.response.success:null}async automaticallyRetryQueryWithCorrection(t){this.onUpdateQueryForCorrection(t);let r=this.getState(),{actionCause:a,getEventExtraPayload:n}=gC(),o=await this.fetchFromAPI(await qe(r,{actionCause:a,customData:n(r)}),{origin:"mainSearch"});return this.dispatch(Rt(t)),o}async automaticallyRetryQueryWithTriggerModification(t){return this.dispatch(Eo({newQuery:t,originalQuery:this.getCurrentQuery()})),this.onUpdateQueryForCorrection(t),await this.fetchFromAPI(await qe(this.getState()),{origin:"mainSearch"})}getCurrentQuery(){var r;let t=this.getState();return((r=t.query)==null?void 0:r.q)!==void 0?t.query.q:""}get extra(){return this.config.extra}getState(){return this.config.getState()}get dispatch(){return this.config.dispatch}get rejectWithValue(){return this.config.rejectWithValue}};var Bu=W("search/prepareForSearchWithQuery",(e,t)=>{let{dispatch:r}=t;A(e,{q:new w,enableQuerySyntax:new K,clearFilters:new K}),e.clearFilters&&(r(Fe()),r(va())),r(bt({allow:!0})),r(Ye({q:e.q,enableQuerySyntax:e.enableQuerySyntax})),r(Ft(1))}),I=W("search/executeSearch",async(e,t)=>{let r=t.getState();if(r.configuration.analytics.analyticsMode==="legacy"||!e.next)return Qu(r,t,e.legacy);CC(r);let a=Gf(e.next,r),n=await qe(r,a),o=new mn({...t,analyticsAction:a}),i=await o.fetchFromAPI(n,{origin:"mainSearch"});return await o.process(i)}),ur=W("search/fetchPage",async(e,t)=>{let r=t.getState();if(CC(r),r.configuration.analytics.analyticsMode==="legacy"||!e.next)return $f(r,t,e.legacy);let a=new mn({...t,analyticsAction:e.next}),n=await qe(r,e.next),o=await a.fetchFromAPI(n,{origin:"mainSearch"});return await a.process(o)}),Fa=W("search/fetchMoreResults",async(e,t)=>{let r=t.getState();if(r.configuration.analytics.analyticsMode==="legacy")return Hf(t,r);let a=Ly(oe.pagerScrolling,t.getState),n=new mn({...t,analyticsAction:a}),o=await YI(r,a),i=await n.fetchFromAPI(o,{origin:"mainSearch"});return await n.process(i)}),lr=W("search/fetchFacetValues",async(e,t)=>{let r=t.getState();if(r.configuration.analytics.analyticsMode==="legacy"||!e.next)return Qu(r,t,e.legacy);let a=Gf(e.next,r),n=new mn({...t,analyticsAction:a}),o=await JI(r,a),i=await n.fetchFromAPI(o,{origin:"facetValues"});return await n.process(i)}),To=W("search/fetchInstantResults",async(e,t)=>{let r=t.getState();if(r.configuration.analytics.analyticsMode==="legacy")return _f(e,t);A(e,{id:O,q:O,maxResultsPerQuery:new D({required:!0,min:1}),cacheTimeout:new D});let{q:a,maxResultsPerQuery:n}=e,o=Gf(Xy(),r),i=await KI(r,a,n,o),s=new mn({...t,analyticsAction:o},l=>{t.dispatch(sr({q:l,id:e.id}))}),c=await s.fetchFromAPI(i,{origin:"instantResults",disableAbortWarning:!0}),u=await s.process(c);return"response"in u?{results:u.response.results,searchUid:u.response.searchUid,totalCountFiltered:u.response.totalCountFiltered,duration:u.duration}:u}),YI=async(e,t)=>{var a,n,o,i;let r=await qe(e,t);return r.request={...r.request,firstResult:((n=(a=e.pagination)==null?void 0:a.firstResult)!=null?n:0)+((i=(o=e.search)==null?void 0:o.results.length)!=null?i:0)},r},KI=async(e,t,r,a)=>{let n=await Aa(e,a);return Fo({...n,...e.didYouMean&&{enableDidYouMean:e.didYouMean.enableDidYouMean},numberOfResults:r,q:t})},JI=async(e,t)=>{let r=await qe(e,t);return r.request.numberOfResults=0,r},CC=e=>{var t;e.configuration.analytics.enabled&&vt.addElement({name:"Query",...((t=e.query)==null?void 0:t.q)&&{value:e.query.q},time:JSON.stringify(new Date)})},Gf=(e,t)=>({customData:e.getEventExtraPayload(t),actionCause:e.actionCause,type:e.actionCause});var Ra=(e,t)=>{let r=e;return te(r[t])?te(e.raw[t])?null:e.raw[t]:r[t]},XI=e=>t=>e.every(r=>!te(Ra(t,r))),ZI=e=>t=>e.every(r=>te(Ra(t,r))),eE=(e,t)=>r=>{let a=xC(e,r);return t.some(n=>a.some(o=>`${o}`.toLowerCase()===n.toLowerCase()))},tE=(e,t)=>r=>{let a=xC(e,r);return t.every(n=>a.every(o=>`${o}`.toLowerCase()!==n.toLowerCase()))},xC=(e,t)=>{let r=Ra(t,e);return Ec(r)?r:[r]},rE={getResultProperty:Ra,fieldsMustBeDefined:XI,fieldsMustNotBeDefined:ZI,fieldMustMatch:eE,fieldMustNotMatch:tE};function Ms(e){return e.search.response.searchUid!==""}function vC(e,t,r){return e.search.results.find(a=>Ra(a,t)===r)}function zf(e,t){var a;let r=(a=t.payload)!=null?a:null;r&&(e.response=Te().response,e.results=[],e.questionAnswer=Gn()),e.error=r,e.isLoading=!1}function Wf(e,t){e.error=null,e.response=t.payload.response,e.queryExecuted=t.payload.queryExecuted,e.duration=t.payload.duration,e.isLoading=!1}function aE(e,t){Wf(e,t),e.results=t.payload.response.results,e.searchResponseId=t.payload.response.searchUid,e.questionAnswer=t.payload.response.questionAnswer,e.extendedResults=t.payload.response.extendedResults}function Yf(e,t){e.isLoading=!0,e.requestId=t.meta.requestId}var J=T(Te(),e=>{e.addCase(ko.rejected,(t,r)=>zf(t,r)),e.addCase(qo.rejected,(t,r)=>zf(t,r)),e.addCase(Oo.rejected,(t,r)=>zf(t,r)),e.addCase(ko.fulfilled,(t,r)=>{aE(t,r)}),e.addCase(qo.fulfilled,(t,r)=>{Wf(t,r),t.results=[...t.results,...r.payload.response.results]}),e.addCase(Oo.fulfilled,(t,r)=>{Wf(t,r),t.results=r.payload.response.results}),e.addCase(Nu.fulfilled,(t,r)=>{t.response.facets=r.payload.response.facets,t.response.searchUid=r.payload.response.searchUid}),e.addCase(ko.pending,Yf),e.addCase(qo.pending,Yf),e.addCase(Oo.pending,Yf)});var AC=T(un,e=>e);var RC=Ie(FC());var Do=C("tab/register",e=>{let t=new q({values:{id:O,expression:ge}});return A(e,t)}),jt=C("tab/updateActiveTab",e=>A(e,O));function oE(e,t){if(cS(e))return e.replace(/^(https:\/\/)platform/,"$1analytics")+Jp;let a=uS(e,t);return a?gs(t,a.environment).analytics:e}var ju=T(it(),e=>e.addCase(ir,(t,r)=>{r.payload.accessToken&&(t.accessToken=r.payload.accessToken),r.payload.organizationId&&(t.organizationId=r.payload.organizationId),r.payload.platformUrl&&(t.platformUrl=r.payload.platformUrl,t.search.apiBaseUrl=`${r.payload.platformUrl}${Kp}`,t.analytics.apiBaseUrl=oE(r.payload.platformUrl,t.organizationId))}).addCase(At,(t,r)=>{r.payload.apiBaseUrl&&(t.search.apiBaseUrl=r.payload.apiBaseUrl),r.payload.locale&&(t.search.locale=r.payload.locale),r.payload.timezone&&(t.search.timezone=r.payload.timezone),r.payload.authenticationProviders&&(t.search.authenticationProviders=r.payload.authenticationProviders)}).addCase(Ca,(t,r)=>{te(r.payload.enabled)||(t.analytics.enabled=r.payload.enabled),te(r.payload.originContext)||(t.analytics.originContext=r.payload.originContext),te(r.payload.originLevel2)||(t.analytics.originLevel2=r.payload.originLevel2),te(r.payload.originLevel3)||(t.analytics.originLevel3=r.payload.originLevel3),te(r.payload.apiBaseUrl)||(t.analytics.apiBaseUrl=r.payload.apiBaseUrl),te(r.payload.nextApiBaseUrl)||(t.analytics.nextApiBaseUrl=r.payload.nextApiBaseUrl),te(r.payload.trackingId)||(t.analytics.trackingId=r.payload.trackingId),te(r.payload.analyticsMode)||(t.analytics.analyticsMode=r.payload.analyticsMode),te(r.payload.source)||(t.analytics.source=r.payload.source);let a=(0,RC.default)();a&&(t.analytics.analyticsMode="next",t.analytics.trackingId=a),te(r.payload.runtimeEnvironment)||(t.analytics.runtimeEnvironment=r.payload.runtimeEnvironment),te(r.payload.anonymous)||(t.analytics.anonymous=r.payload.anonymous),te(r.payload.deviceId)||(t.analytics.deviceId=r.payload.deviceId),te(r.payload.userDisplayName)||(t.analytics.userDisplayName=r.payload.userDisplayName),te(r.payload.documentLocation)||(t.analytics.documentLocation=r.payload.documentLocation)}).addCase(so,t=>{t.analytics.enabled=!1}).addCase(co,t=>{t.analytics.enabled=!0}).addCase(vu,(t,r)=>{t.analytics.originLevel2=r.payload.originLevel2}).addCase(Au,(t,r)=>{t.analytics.originLevel3=r.payload.originLevel3}).addCase(jt,(t,r)=>{t.analytics.originLevel2=r.payload}).addCase(ue,(t,r)=>{t.analytics.originLevel2=r.payload.tab||t.analytics.originLevel2}));var $=ju;function PC(e,t){let r={...e},a,n=o=>(i,s)=>{let c=o(i,s);return a?a(c,s):c};return{get combinedReducer(){let o=Yh(Object.entries(t).filter(([i])=>!(i in r)).map(([i,s])=>[i,()=>s]));return n((0,h.combineReducers)({...o,...r}))},containsAll(o){return Object.keys(o).every(s=>s in r)},add(o){Object.keys(o).filter(i=>!(i in r)).forEach(i=>r[i]=o[i])},addCrossReducer(o){a=o}}}function Uu(e,t,r){var a,n,o;t===void 0&&(t=50),r===void 0&&(r={});var i=(a=r.isImmediate)!=null&&a,s=(n=r.callback)!=null&&n,c=r.maxWait,u=Date.now(),l=[];function d(){if(c!==void 0){var f=Date.now()-u;if(f+t>=c)return c-f}return t}var p=function(){var f=[].slice.call(arguments),m=this;return new Promise(function(g,S){var y=i&&o===void 0;if(o!==void 0&&clearTimeout(o),o=setTimeout(function(){if(o=void 0,u=Date.now(),!i){var b=e.apply(m,f);s&&s(b),l.forEach(function(P){return(0,P.resolve)(b)}),l=[]}},d()),y){var x=e.apply(m,f);return s&&s(x),g(x)}l.push({resolve:g,reject:S})})};return p.cancel=function(f){o!==void 0&&clearTimeout(o),l.forEach(function(m){return(0,m.reject)(f)}),l=[]},p}function wC(e,t){let r=0,a=Uu(()=>r=0,500);return n=>o=>async i=>{if(!(typeof i=="function"))return o(i);let c=await o(i);if(!iE(c))return c;if(typeof t!="function")return e.warn("Unable to renew the expired token because a renew function was not provided. Please specify the #renewAccessToken option when initializing the engine."),c;if(r>=5)return e.warn("Attempted to renew the token but was not successful. Please check the #renewAccessToken function."),c;r++,a();let u=await sE(t);n.dispatch(ir({accessToken:u})),n.dispatch(i)}}function iE(e){var t;return((t=e==null?void 0:e.error)==null?void 0:t.name)===new fs().name}async function sE(e){try{return await e()}catch(t){return""}}function IC({reducer:e,preloadedState:t,middlewares:r=[],thunkExtraArguments:a,name:n}){return Cp({reducer:e,preloadedState:t,devTools:{stateSanitizer:o=>o.history?{...o,history:"<>"}:o,name:n,shouldHotReload:!1},middleware:o=>[...r,...o({thunk:{extraArgument:a}}),Rc(a.logger)]})}var cE={configuration:$,version:AC};function uE(e,t){var i,s;let r=((i=e.configuration.organizationEndpoints)==null?void 0:i.analytics)||void 0,{analyticsClientMiddleware:a,...n}=(s=e.configuration.analytics)!=null?s:{},o={...n,nextApiBaseUrl:`${r}/rest/organizations/${e.configuration.organizationId}/events/v1`,apiBaseUrl:r};return qc()?(t.info("Analytics disabled since doNotTrack is active."),{...o,enabled:!1}):o}function EC(e,t){var c;let r=lE(e,t),{accessToken:a,organizationId:n}=e.configuration,{organizationEndpoints:o}=e.configuration,i=(o==null?void 0:o.platform)||e.configuration.platformUrl;mE(e)&&r.logger.warn(`The \`platformUrl\` (${e.configuration.platformUrl}) option will be deprecated in the next major version. Consider using the \`organizationEndpoints\` option instead. See [Organization endpoints](https://docs.coveo.com/en/mcc80216).`),fE(e)?r.logger.warn("The `organizationEndpoints` options was not explicitly set in the Headless engine configuration. Coveo recommends setting this option, as it has resiliency benefits and simplifies the overall configuration for multi-region deployments. See [Organization endpoints](https://docs.coveo.com/en/mcc80216)."):gE(e)&&r.logger.warn(`There is a mismatch between the \`organizationId\` option (${e.configuration.organizationId}) and the organization configured in the \`organizationEndpoints\` option (${(c=e.configuration.organizationEndpoints)==null?void 0:c.platform}). This could lead to issues that are complex to troubleshoot. Please make sure both values match.`),r.dispatch(ir({accessToken:a,organizationId:n,platformUrl:i}));let s=uE(e,r.logger);return s&&r.dispatch(Ca(s)),r}function lE(e,t){var i;let{reducers:r}=e,a=PC({...cE,...r},(i=e.preloadedState)!=null?i:{});e.crossReducer&&a.addCrossReducer(e.crossReducer);let n=t.logger,o=dE(e,t,a);return{addReducers(s){a.containsAll(s)||(a.add(s),o.replaceReducer(a.combinedReducer))},dispatch:o.dispatch,subscribe:o.subscribe,enableAnalytics(){o.dispatch(co())},disableAnalytics(){o.dispatch(so())},get state(){return o.getState()},get relay(){return mu(this.state)},logger:n,store:o}}function dE(e,t,r){let{preloadedState:a,configuration:n}=e,o=n.name||"coveo-headless",i=pE(e,t.logger);return IC({preloadedState:a,reducer:r.combinedReducer,middlewares:i,thunkExtraArguments:t,name:o})}function pE(e,t){let{renewAccessToken:r}=e.configuration,a=wC(t,r);return[bc,a,Fc(t),Ac].concat(e.middlewares||[])}function fE(e){return Ee(e.configuration.organizationEndpoints)}function mE(e){var t;return!te(e.configuration.platformUrl)||te((t=e.configuration.organizationEndpoints)==null?void 0:t.platform)}function gE(e){let{platform:t}=e.configuration.organizationEndpoints;if(Ee(t))return!1;let r=Zp(t);return r&&r.organizationId!==e.configuration.organizationId}var kC=Ie(ls());function OC(e){return(0,kC.default)({name:"@coveo/headless",level:(e==null?void 0:e.level)||"warn",formatters:{log:e==null?void 0:e.logFormatter}})}function qC(e,t){let r=hE(e),a=nt,n=SE(e);return{analyticsClientMiddleware:r,validatePayload:a,preprocessRequest:n,logger:t}}function hE(e){let{analytics:t}=e,r=(a,n)=>n;return(t==null?void 0:t.analyticsClientMiddleware)||r}function SE(e){return e.preprocessRequest||Za}var TC=Ie(Wp());var Kf=(e,t,r,a,n,o)=>{let i=e[t];te(i)||te(n)||n!==i&&n!==a&&(o.warn(`Mismatch on access token (JWT Token) ${t} and engine configuration.`),o.warn(`To remove this warning, make sure that access token value [${i}] matches engine configuration value [${r}]`))},Jf=(e,t)=>!(te(e)||t===e),Ls=e=>{try{let t=typeof atob!="undefined"?atob:TC.atob,a=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),n=t(a);if(!n)return!1;let o=decodeURIComponent(n.split("").map(i=>"%"+("00"+i.charCodeAt(0).toString(16)).slice(-2)).join(""));return JSON.parse(o)}catch(t){return!1}},DC=(e,t)=>(Jf(e.searchHub,t.searchHub)&&(t.searchHub=e.searchHub),t),VC=(e,t,r,a)=>(Kf(e,"searchHub",t.searchHub,Ge(),r,a),DC(e,t)),MC=(e,t)=>(Jf(e.pipeline,t.pipeline)&&(t.pipeline=e.pipeline),t),LC=(e,t,r,a)=>(Kf(e,"pipeline",t.pipeline,Lt(),r,a),MC(e,t)),NC=(e,t)=>(Jf(e.userDisplayName,t.configuration.analytics.userDisplayName)&&(t.configuration.analytics.userDisplayName=e.userDisplayName),t),yE=(e,t,r,a)=>(Kf(e,"userDisplayName",t.configuration.analytics.userDisplayName,it().analytics.userDisplayName,r,a),NC(e,t)),QC=e=>T({},t=>{t.addCase(mo,(r,a)=>{let n=Ls(r.configuration.accessToken);return n?VC(n,r,a.payload,e):r}).addCase(po,(r,a)=>{let n=Ls(r.configuration.accessToken);return n?LC(n,r,a.payload,e):r}).addCase(ir,(r,a)=>{if(r.configuration.accessToken!==a.payload.accessToken)return r;let{accessToken:n}=a.payload;if(!n)return r;let o=Ls(n);return o?[MC,DC,NC].reduce((i,s)=>s(o,i),r):r}).addCase(At,(r,a)=>{var s;let n=Ls(r.configuration.accessToken);if(!n)return r;let o=VC(n,r,a.payload.searchHub,e);return LC(n,o,(s=a.payload)==null?void 0:s.pipeline,e)}).addCase(Ca,(r,a)=>{let n=Ls(r.configuration.accessToken);return n?yE(n,r,a.payload.userDisplayName,e):r})});var BC={organizationId:O,accessToken:O,platformUrl:new w({required:!1,emptyAllowed:!1}),name:new w({required:!1,emptyAllowed:!1}),analytics:new q({options:{required:!1},values:{enabled:new K({required:!1}),originContext:new w({required:!1}),originLevel2:new w({required:!1}),originLevel3:new w({required:!1}),analyticsMode:new w({constrainTo:["legacy","next"],required:!1})}})};function jC(){return{organizationId:"searchuisamples",accessToken:"xx564559b1-0045-48e1-953c-3addd1ee4457",organizationEndpoints:gs("searchuisamples")}}var UC=new Y({...BC,search:new q({options:{required:!1},values:{pipeline:new w({required:!1,emptyAllowed:!0}),searchHub:de,locale:de,timezone:de,authenticationProviders:new X({required:!1,each:O})}})});function _C(){return{...jC(),search:{searchHub:"default"}}}var CE={debug:lo,pipeline:fo,searchHub:go,search:J};function xE(e){var n;let t=e.configuration.search,r=((n=e.configuration.organizationEndpoints)==null?void 0:n.search)||void 0;return{...t,apiBaseUrl:r}}function vE(e){let t=OC(e.loggerOptions);AE(e.configuration,t);let r=bE(e.configuration,t),a=FE(t),n={...qC(e.configuration,t),apiClient:r,streamingClient:a},o={...e,reducers:CE,crossReducer:QC(t)},i=EC(o,n),s=xE(e);return s&&i.dispatch(At(s)),{...i,get state(){return i.state},executeFirstSearch(c=yu()){if(Ms(i.state))return;let u=I({legacy:c,next:Gy()});i.dispatch(u)},executeFirstSearchAfterStandaloneSearchBoxRedirect(c){let{cause:u,metadata:l}=c;if(Ms(i.state))return;let d=l&&u==="omniboxFromLink",p=I({legacy:d?xu(l):Cu(),next:d?Wy(l):zy()});i.dispatch(p)}}}function AE(e,t){try{UC.validate(e)}catch(r){throw t.error(r,"Search engine configuration error"),r}}function bE(e,t){let{search:r}=e;return new Ss({logger:t,preprocessRequest:e.preprocessRequest||Za,postprocessSearchResponseMiddleware:(r==null?void 0:r.preprocessSearchResponseMiddleware)||jc,postprocessFacetSearchResponseMiddleware:(r==null?void 0:r.preprocessFacetSearchResponseMiddleware)||Uc,postprocessQuerySuggestResponseMiddleware:(r==null?void 0:r.preprocessQuerySuggestResponseMiddleware)||_c})}function FE(e){return new lf({logger:e})}function M(e){let t,r=new Map,a=()=>r.size===0,n=o=>{try{let i=JSON.stringify(o),s=t!==i;return t=i,s}catch(i){return console.warn('Could not detect if state has changed, check the controller "get state method"',i),!0}};return{subscribe(o){o();let i=Symbol(),s;return a()&&(t=JSON.stringify(this.state),s=e.subscribe(()=>{n(this.state)&&r.forEach(c=>c())})),r.set(i,o),()=>{r.delete(i),a()&&s&&s()}},get state(){return{}}}}var $C=e=>{let t=/Document weights:\n((?:.)*?)\n+/g,r=/Terms weights:\n((?:.|\n)*)\n+/g,a=/Total weight: ([0-9]+)/g;if(!e)return null;let n=t.exec(e),o=r.exec(e),i=a.exec(e),s=PE(e),c=HC(n?n[1]:null),u=RE(o),l=i?Number(i[1]):null;return{documentWeights:c,termsWeight:u,totalWeight:l,qreWeights:s}},HC=e=>{let t=/(\w+(?:\s\w+)*): ([-0-9]+)/g,r=/^(\w+(?:\s\w+)*): ([-0-9]+)$/;if(!e)return null;let a=e.match(t);if(!a)return null;let n={};for(let o of a){let i=o.match(r);if(i){let s=i[1],c=i[2];n[s]=Number(c)}}return n},GC=(e,t)=>{let r=[],a;for(;(a=t.exec(e))!==null;)r.push(a);return r},RE=e=>{let t=/((?:[^:]+: [0-9]+, [0-9]+; )+)\n((?:\w+: [0-9]+; )+)/g,r=/([^:]+): ([0-9]+), ([0-9]+); /g;if(!e||!e[1])return null;let a=GC(e[1],t);if(!a)return null;let n={};for(let o of a){let i=GC(o[1],r),s={};for(let u of i)s[u[1]]={Correlation:Number(u[2]),"TF-IDF":Number(u[3])};let c=HC(o[2]);n[Object.keys(s).join(", ")]={terms:s,Weights:c}}return n},PE=e=>{let t=/(Expression:\s".*")\sScore:\s(?!0)([-0-9]+)\n+/g,r=t.exec(e),a=[];for(;r;)a.push({expression:r[1],score:parseInt(r[2],10)}),r=t.exec(e);return a};function zC(e){return e.search.response.results.map(r=>{let a=$C(r.rankingInfo);return{result:r,ranking:a}})}var Pa=C("fields/registerFieldsToInclude",e=>A(e,Pc)),Vo=C("fields/fetchall/enable"),gn=C("fields/fetchall/disable"),Mo=W("fields/fetchDescription",async(e,{extra:t,getState:r,rejectWithValue:a})=>{let n=r(),{accessToken:o,organizationId:i}=n.configuration,{apiBaseUrl:s}=n.configuration.search,c=await t.apiClient.fieldDescriptions({accessToken:o,organizationId:i,url:s});return ye(c)?a(c.error):c.success.fields});var Xf={collectionField:new w({emptyAllowed:!1,required:!1}),parentField:new w({emptyAllowed:!1,required:!1}),childField:new w({emptyAllowed:!1,required:!1}),numberOfFoldedResults:new D({min:0,required:!1})},wa=C("folding/register",e=>A(e,Xf)),Ia=W("folding/loadCollection",async(e,{getState:t,rejectWithValue:r,extra:{apiClient:a}})=>{let n=t(),o=await Aa(n),i=await a.search({...o,q:wE(n),enableQuerySyntax:!0,cq:`@${n.folding.fields.collection}="${e}"`,filterField:n.folding.fields.collection,childField:n.folding.fields.parent,parentField:n.folding.fields.child,filterFieldRange:100},{origin:"foldingCollection"});return ye(i)?r(i.error):{collectionId:e,results:i.success.results,rootResult:n.folding.collections[e].result}});function wE(e){return e.query.q===""?"":e.query.enableQuerySyntax?`${e.query.q} OR @uri`:`( <@- ${e.query.q} -@> ) OR @uri`}var Ea=T(Wn(),e=>e.addCase(Pa,(t,r)=>{t.fieldsToInclude=[...new Set(t.fieldsToInclude.concat(r.payload))]}).addCase(Vo,t=>{t.fetchAllFields=!0}).addCase(gn,t=>{t.fetchAllFields=!1}).addCase(Mo.fulfilled,(t,{payload:r})=>{t.fieldsDescription=r}).addCase(wa,(t,{payload:r})=>{var n,o,i;let a=rn().fields;t.fieldsToInclude.push((n=r.collectionField)!=null?n:a.collection,(o=r.parentField)!=null?o:a.parent,(i=r.childField)!=null?i:a.child)}));var IE=new Y({enabled:new K({default:!1})});function EE(e,t={}){if(!kE(e))throw k;let r=M(e),{dispatch:a}=e,n=()=>e.state;ke(e,IE,t.initialState,"buildRelevanceInspector").enabled&&a(xa());let i=s=>{e.logger.warn(`Flag [ ${s} ] is now activated. This should *not* be used in any production environment as it negatively impact performance.`)};return{...r,get state(){let s=n(),c=s.debug;if(!s.debug)return{isEnabled:c};let{executionReport:u,basicExpression:l,advancedExpression:d,constantExpression:p,userIdentities:f,rankingExpressions:m}=s.search.response,{fieldsDescription:g,fetchAllFields:S}=s.fields;return{isEnabled:c,rankingInformation:zC(s),executionReport:u,expressions:{basicExpression:l,advancedExpression:d,constantExpression:p},userIdentities:f,rankingExpressions:m,fieldsDescription:g,fetchAllFields:S}},enable(){a(xa()),i("debug")},disable(){a(uo()),a(gn())},enableFetchAllFields(){a(Vo()),i("fetchAllFields")},disableFetchAllFields(){a(gn())},fetchFieldsDescription(){!this.state.isEnabled&&a(xa()),a(Mo()),i("fieldsDescription"),e.logger.warn(`For production environment, please specify the necessary fields either when instantiating a ResultList controller, or by dispatching a registerFieldsToInclude action. - - https://docs.coveo.com/en/headless/latest/reference/search/controllers/result-list/#resultlistoptions - https://docs.coveo.com/en/headless/latest/reference/search/actions/field/#registerfieldstoinclude`)}}}function kE(e){return e.addReducers({debug:lo,search:J,configuration:$,fields:Ea}),!0}var OE=new X({each:O,required:!0}),WC=(e,t)=>(A(e,O),Un(t)?A(t,O):A(t,OE),{payload:{contextKey:e,contextValue:t}}),hn=C("context/set",e=>{for(let[t,r]of Object.entries(e))WC(t,r);return{payload:e}}),Sn=C("context/add",e=>WC(e.contextKey,e.contextValue)),yn=C("context/remove",e=>A(e,O));var _u=T(Wt(),e=>{e.addCase(hn,(t,r)=>{t.contextValues=r.payload}).addCase(Sn,(t,r)=>{t.contextValues[r.payload.contextKey]=r.payload.contextValue}).addCase(yn,(t,r)=>{delete t.contextValues[r.payload]}).addCase(ce.fulfilled,(t,r)=>{!r.payload||(t.contextValues=r.payload.context.contextValues)})});var qE=["caseId","caseNumber"],TE={caseId:"caseContext",caseNumber:"caseContext"},$u=class extends Error{constructor(t){super(`The key "${t}" is reserved for internal use. Use ${TE[t]} to set this value.}`)}};function Zf(e){return qE.includes(e)}var DE=new Y({values:new q({options:{required:!1}})});function YC(e,t={}){if(!LE(e))throw k;let r=M(e),{dispatch:a}=e,n=()=>e.state,o=ke(e,DE,t.initialState,"buildContext");return o.values&&a(hn(o.values)),{...r,get state(){return{values:n().context.contextValues}},set(i){a(hn(i))},...n().configuration.analytics.analyticsMode==="legacy"?VE(a):ME(a)}}var VE=e=>({add(t,r){e(Sn({contextKey:t,contextValue:r}))},remove(t){e(yn(t))}}),ME=e=>({add(t,r){if(Zf(t))throw new $u(t);e(Sn({contextKey:t,contextValue:r}))},remove(t){if(Zf(t))throw new $u(t);e(yn(t))}});function LE(e){return e.addReducers({context:_u}),!0}function NE(e,t){return YC(e,t)}var Lo=C("dictionaryFieldContext/set",e=>{let t=new q({options:{required:!0}}),r=A(e,t).error;if(r)return{payload:e,error:r};let a=Object.values(e),n=new X({each:ge}),o=A(a,n).error;return o?{payload:e,error:o}:{payload:e}}),No=C("dictionaryFieldContext/add",e=>{let t=new q({options:{required:!0},values:{field:ge,key:ge}});return A(e,t)}),Qo=C("dictionaryFieldContext/remove",e=>A(e,ge));var Hu=T(ga(),e=>{e.addCase(Lo,(t,r)=>{t.contextValues=r.payload}).addCase(No,(t,r)=>{let{field:a,key:n}=r.payload;t.contextValues[a]=n}).addCase(Qo,(t,r)=>{delete t.contextValues[r.payload]}).addCase(ce.fulfilled,(t,r)=>{!r.payload||(t.contextValues=r.payload.dictionaryFieldContext.contextValues)})});function QE(e){if(!BE(e))throw k;let t=M(e),{dispatch:r}=e,a=()=>e.state;return{...t,get state(){return{values:a().dictionaryFieldContext.contextValues}},set(n){r(Lo(n))},add(n,o){r(No({field:n,key:o}))},remove(n){r(Qo(n))}}}function BE(e){return e.addReducers({dictionaryFieldContext:Hu}),!0}var Gu=T(ys(),e=>{e.addCase(Po,t=>{t.enableDidYouMean=!0}).addCase(ku,t=>{t.enableDidYouMean=!1}).addCase(Ou,t=>{t.automaticallyCorrectQuery=!0}).addCase(wo,t=>{t.automaticallyCorrectQuery=!1}).addCase(I.pending,t=>{t.queryCorrection=Bc(),t.wasAutomaticallyCorrected=!1,t.wasCorrectedTo=""}).addCase(I.fulfilled,(t,r)=>{var o;let{queryCorrection:a,queryCorrections:n}=r.payload.response;if(t.queryCorrectionMode==="legacy"){let i=n&&n[0]?n[0]:Bc();t.queryCorrection=i}if(t.queryCorrectionMode==="next"){let i={...gS(),...a,correctedQuery:(a==null?void 0:a.correctedQuery)||((o=a==null?void 0:a.corrections[0])==null?void 0:o.correctedQuery)||""};t.queryCorrection=i,t.wasCorrectedTo=i.correctedQuery}t.wasAutomaticallyCorrected=r.payload.automaticallyCorrected,t.originalQuery=r.payload.originalQuery}).addCase(Rt,(t,r)=>{t.wasCorrectedTo=r.payload}).addCase(Io,(t,r)=>{t.queryCorrectionMode=r.payload})});function KC(e,t={}){var o,i;if(!jE(e))throw k;let r=M(e),{dispatch:a}=e;a(Po()),((o=t.options)==null?void 0:o.automaticallyCorrectQuery)===!1&&a(wo()),a(Io(((i=t.options)==null?void 0:i.queryCorrectionMode)||"legacy"));let n=()=>e.state;return{...r,get state(){let s=n();return{originalQuery:s.didYouMean.originalQuery,wasCorrectedTo:s.didYouMean.wasCorrectedTo,wasAutomaticallyCorrected:s.didYouMean.wasAutomaticallyCorrected,queryCorrection:s.didYouMean.queryCorrection,hasQueryCorrection:s.didYouMean.queryCorrection.correctedQuery!==""||s.didYouMean.wasCorrectedTo!==""}},applyCorrection(){a(Rt(this.state.queryCorrection.correctedQuery))}}}function jE(e){return e.addReducers({configuration:$,didYouMean:Gu}),!0}function UE(e,t={}){let r=KC(e,t),{dispatch:a}=e;return{...r,get state(){return r.state},applyCorrection(){r.applyCorrection(),a(I({legacy:qu(),next:mC()}))}}}var ee=O;var ie=C("facetOptions/update",(e={freezeFacetOrder:!0})=>A(e,{freezeFacetOrder:new K({required:!1})})),Ke=C("facetOptions/facet/enable",e=>A(e,ee)),ve=C("facetOptions/facet/disable",e=>A(e,ee));var Ns={facetId:ee,captions:new q({options:{required:!1}}),numberOfValues:new D({required:!1,min:1}),query:new w({required:!1,emptyAllowed:!0})};var _E={path:new X({required:!0,each:O}),displayValue:ge,rawValue:ge,count:new D({required:!0,min:0})},Bo=C("categoryFacet/selectSearchResult",e=>A(e,{facetId:ee,value:new q({values:_E})})),jo=C("categoryFacetSearch/register",e=>A(e,Ns));function Uo(e,t){var o;let{facetId:r,criterion:a}=t,n=(o=e[r])==null?void 0:o.request;!n||(n.sortCriteria=a)}function Qs(e){!e||(e.currentValues=e.currentValues.map(t=>({...t,state:"idle"})),e.preventAutoSelect=!0)}function zu(e,t){!e||(e.numberOfValues=t)}function Wu(e,t){let r=e[t];!r||(r.request.numberOfValues=r.initialNumberOfValues,r.request.currentValues=[],r.request.preventAutoSelect=!0)}function em(e,t,r){e.currentValues=$E(t,r),e.numberOfValues=t.length?1:r,e.preventAutoSelect=!0}function $E(e,t){if(!e.length)return[];let r=JC(e[0],t),a=r;for(let n of e.splice(1)){let o=JC(n,t);a.children.push(o),a=o}return a.state="selected",a.retrieveChildren=!0,[r]}function JC(e,t){return{value:e,retrieveCount:t,children:[],state:"idle",retrieveChildren:!1}}var HE={state:new me({required:!0}),numberOfResults:new D({required:!0,min:0}),value:new w({required:!0,emptyAllowed:!0}),path:new X({required:!0,each:O}),moreValuesAvailable:new K({required:!1})};function tm(e){e.children.forEach(t=>{tm(t)}),nt({state:e.state,numberOfResults:e.numberOfResults,value:e.value,path:e.path,moreValuesAvailable:e.moreValuesAvailable},HE)}var _o={facetId:ee,field:O,delimitingCharacter:new w({required:!1,emptyAllowed:!0}),filterFacetCount:new K({required:!1}),injectionDepth:new D({required:!1,min:0}),numberOfValues:new D({required:!1,min:1}),sortCriteria:new me({required:!1}),basePath:new X({required:!1,each:O}),filterByBasePath:new K({required:!1})},dr=C("categoryFacet/register",e=>A(e,_o)),ka=C("categoryFacet/toggleSelectValue",e=>{try{return nt(e.facetId,O),tm(e.selection),{payload:e,error:null}}catch(t){return{payload:e,error:Vt(t)}}}),pr=C("categoryFacet/deselectAll",e=>A(e,_o.facetId)),Cn=C("categoryFacet/updateNumberOfValues",e=>A(e,{facetId:_o.facetId,numberOfValues:_o.numberOfValues})),$o=C("categoryFacet/updateSortCriterion",e=>A(e,{facetId:_o.facetId,criterion:new me})),Yu=C("categoryFacet/updateBasePath",e=>A(e,{facetId:_o.facetId,basePath:new X({each:O})}));var fr=T(Yt(),e=>{e.addCase(dr,(t,r)=>{let a=r.payload,{facetId:n}=a;if(n in t)return;let o=zE(a),i=o.numberOfValues;t[n]={request:o,initialNumberOfValues:i}}).addCase(ce.fulfilled,(t,r)=>{var a,n;return(n=(a=r.payload)==null?void 0:a.categoryFacetSet)!=null?n:t}).addCase(ue,(t,r)=>{let a=r.payload.cf||{};Object.keys(t).forEach(n=>{let o=t[n].request,i=a[n]||[];(i.length||o.currentValues.length)&&em(o,i,t[n].initialNumberOfValues)})}).addCase($o,(t,r)=>{var i;let{facetId:a,criterion:n}=r.payload,o=(i=t[a])==null?void 0:i.request;!o||(o.sortCriteria=n)}).addCase(Yu,(t,r)=>{var i;let{facetId:a,basePath:n}=r.payload,o=(i=t[a])==null?void 0:i.request;!o||(o.basePath=[...n])}).addCase(ka,(t,r)=>{var d;let{facetId:a,selection:n,retrieveCount:o}=r.payload,i=(d=t[a])==null?void 0:d.request;if(!i)return;let{path:s}=n,c=s.slice(0,s.length-1),u=GE(i,c,o);if(u.length){let p=u[0];p.retrieveChildren=!0,p.state="selected",p.children=[];return}let l=XC(n.value,o);l.state="selected",u.push(l),i.numberOfValues=1}).addCase(pr,(t,r)=>{let a=r.payload;Wu(t,a)}).addCase(Fe,t=>{Object.keys(t).forEach(r=>Wu(t,r))}).addCase(bt,(t,r)=>Object.keys(t).forEach(a=>{t[a].request.preventAutoSelect=!r.payload.allow})).addCase(Cn,(t,r)=>{var i;let{facetId:a,numberOfValues:n}=r.payload,o=(i=t[a])==null?void 0:i.request;if(!!o){if(!o.currentValues.length)return zu(o,n);WE(t,r.payload)}}).addCase(Bo,(t,r)=>{let{facetId:a,value:n}=r.payload,o=t[a];if(!o)return;let i=[...n.path,n.rawValue];em(o.request,i,o.initialNumberOfValues)}).addCase(lr.fulfilled,(t,r)=>{ZC(t,r.payload.response.facets)}).addCase(I.fulfilled,(t,r)=>{ZC(t,r.payload.response.facets)}).addCase(ve,(t,r)=>{Wu(t,r.payload)})}),Bs={delimitingCharacter:";",filterFacetCount:!0,injectionDepth:1e3,numberOfValues:5,sortCriteria:"occurrences",basePath:[],filterByBasePath:!0,resultsMustMatch:"atLeastOneValue"};function GE(e,t,r){let a=e.currentValues;for(let n of t){let o=a[0];(!o||n!==o.value)&&(o=XC(n,r),a.length=0,a.push(o)),o.retrieveChildren=!1,o.state="idle",a=o.children}return a}function zE(e){return{...Bs,currentValues:[],preventAutoSelect:!1,type:"hierarchical",...e}}function XC(e,t){return{value:e,state:"idle",children:[],retrieveChildren:!0,retrieveCount:t}}function ZC(e,t){t.forEach(r=>{var i;if(!YE(e,r))return;let a=r.facetId,n=(i=e[a])==null?void 0:i.request;if(!n)return;let o=KE(n,r);n.currentValues=o?[]:n.currentValues,n.preventAutoSelect=!1})}function WE(e,t){var o;let{facetId:r,numberOfValues:a}=t,n=(o=e[r])==null?void 0:o.request.currentValues[0];if(!!n){for(;n.children.length&&(n==null?void 0:n.state)!=="selected";)n=n.children[0];n.retrieveCount=a}}function YE(e,t){return t.facetId in e}function KE(e,t){let r=gt(e.currentValues),a=gt(t.values);return r.length!==a.length}function Ku(e,t,r){let{facetId:a}=t;if(e[a])return;let n=!1,o={...mr,...t},i=r();e[a]={options:o,isLoading:n,response:i,initialNumberOfValues:o.numberOfValues,requestId:""}}function Ju(e,t){let{facetId:r,...a}=t,n=e[r];!n||(n.options={...n.options,...a})}function js(e,t,r){let a=e[t];!a||(a.requestId=r,a.isLoading=!0)}function Us(e,t){let r=e[t];!r||(r.isLoading=!1)}function Xu(e,t,r){let{facetId:a,response:n}=t,o=e[a];!o||o.requestId===r&&(o.isLoading=!1,o.response=n)}function ex(e,t,r){let{facetId:a,response:n}=t,o=e[a];!o||o.requestId===r&&(o.isLoading=!1,"success"in n&&(o.response=n.success))}function _s(e,t,r){let{facetId:a}=t,n=e[a];!n||(n.requestId="",n.isLoading=!1,n.response=r(),n.options.numberOfValues=n.initialNumberOfValues,n.options.query=mr.query)}function xn(e,t){Object.keys(e).forEach(r=>_s(e,{facetId:r},t))}var mr={captions:{},numberOfValues:10,query:""};var tx=async(e,t,r)=>{let a=t.categoryFacetSearchSet[e].options,n=t.categoryFacetSet[e].request,{captions:o,query:i,numberOfValues:s}=a,{field:c,delimitingCharacter:u,basePath:l,filterFacetCount:d}=n,p=JE(n),f=p.length?[p]:[],m=`*${i}*`;return{url:t.configuration.search.apiBaseUrl,accessToken:t.configuration.accessToken,organizationId:t.configuration.organizationId,...t.configuration.search.authenticationProviders.length&&{authentication:t.configuration.search.authenticationProviders.join(",")},basePath:l,captions:o,numberOfValues:s,query:m,field:c,delimitingCharacter:u,ignorePaths:f,filterFacetCount:d,type:"hierarchical",...r?{}:{searchContext:(await qe(t)).request}}},JE=e=>{let t=[],r=e.currentValues[0];for(;r;)t.push(r.value),r=r.children[0];return t};var rx=async(e,t,r)=>{let{captions:a,query:n,numberOfValues:o}=t.facetSearchSet[e].options,{field:i,currentValues:s,filterFacetCount:c}=t.facetSet[e].request,u=s.filter(d=>d.state!=="idle").map(d=>d.value),l=`*${n}*`;return{url:t.configuration.search.apiBaseUrl,accessToken:t.configuration.accessToken,organizationId:t.configuration.organizationId,...t.configuration.search.authenticationProviders&&{authentication:t.configuration.search.authenticationProviders.join(",")},captions:a,numberOfValues:o,query:l,field:i,ignoreValues:u,filterFacetCount:c,type:"specific",...r?{}:{searchContext:(await qe(t)).request}}};var ax=e=>async(t,{getState:r,extra:{apiClient:a,validatePayload:n}})=>{let o=r(),i;n(t,O),XE(o,t)?i=await rx(t,o,e):i=await tx(t,o,e);let s=await a.facetSearch(i);return{facetId:t,response:s}},Je=W("facetSearch/executeSearch",ax(!1)),Oa=W("facetSearch/executeSearch",ax(!0)),Ho=C("facetSearch/clearResults",e=>A(e,{facetId:ee})),XE=(e,t)=>e.facetSearchSet!==void 0&&e.facetSet!==void 0&&e.facetSet[t]!==void 0;var nx={facetId:ee,value:new q({values:{displayValue:ge,rawValue:ge,count:new D({required:!0,min:0})}})},Zu=C("facetSearch/register",e=>A(e,Ns)),qa=C("facetSearch/update",e=>A(e,Ns)),vn=C("facetSearch/toggleSelectValue",e=>A(e,nx)),An=C("facetSearch/toggleExcludeValue",e=>A(e,nx));var Go=T(xs(),e=>{e.addCase(jo,(t,r)=>{let a=r.payload;Ku(t,a,rm)}).addCase(qa,(t,r)=>{Ju(t,r.payload)}).addCase(Je.pending,(t,r)=>{let a=r.meta.arg;js(t,a,r.meta.requestId)}).addCase(Je.rejected,(t,r)=>{let a=r.meta.arg;Us(t,a)}).addCase(Je.fulfilled,(t,r)=>{Xu(t,r.payload,r.meta.requestId)}).addCase(Ho,(t,{payload:{facetId:r}})=>{_s(t,{facetId:r},rm)}).addCase(I.fulfilled,t=>{xn(t,rm)})});function rm(){return{moreValuesAvailable:!1,values:[]}}var zo=e=>E("analytics/facet/showMore",(t,r)=>{A(e,ee);let a=to(e,ct(r));return t.makeFacetShowMore(a)}),Wo=e=>E("analytics/facet/showLess",(t,r)=>{A(e,ee);let a=to(e,ct(r));return t.makeFacetShowLess(a)}),gr=e=>E("analytics/facet/sortChange",(t,r)=>{A(e,{facetId:ee,criterion:new me({required:!0})});let{facetId:a,criterion:n}=e,o=ct(r),s={...to(a,o),criteria:n};return t.makeFacetUpdateSort(s)}),Ne=e=>E("analytics/facet/reset",(t,r)=>{A(e,ee);let a=ct(r),n=to(e,a);return t.makeFacetClearAll(n)}),Pe=e=>E("analytics/facet/select",(t,r)=>{A(e,{facetId:ee,facetValue:O});let a=ct(r),n=ro(e,a);return t.makeFacetSelect(n)}),St=e=>E("analytics/facet/exclude",(t,r)=>{A(e,{facetId:ee,facetValue:O});let a=ct(r),n=ro(e,a);return t.makeFacetExclude(n)}),Ut=e=>E("analytics/facet/deselect",(t,r)=>{A(e,{facetId:ee,facetValue:O});let a=ct(r),n=ro(e,a);return t.makeFacetDeselect(n)}),Wr=e=>E("analytics/facet/unexclude",(t,r)=>{A(e,{facetId:ee,facetValue:O});let a=ct(r),n=ro(e,a);return t.makeFacetUnexclude(n)}),Yo=e=>E("analytics/facet/breadcrumb",(t,r)=>{A(e,{facetId:ee,facetValue:O});let a=ro(e,ct(r));return t.makeBreadcrumbFacet(a)}),Ta=(e,t)=>({actionCause:oe.facetUpdateSort,getEventExtraPayload:r=>new ae(()=>r).getFacetUpdateSortMetadata(e,t)}),Xe=e=>({actionCause:oe.facetClearAll,getEventExtraPayload:t=>new ae(()=>t).getFacetClearAllMetadata(e)}),De=(e,t)=>({actionCause:oe.facetSelect,getEventExtraPayload:r=>new ae(()=>r).getFacetMetadata(e,t)}),hr=(e,t)=>({actionCause:oe.facetExclude,getEventExtraPayload:r=>new ae(()=>r).getFacetMetadata(e,t)}),Yr=(e,t)=>({actionCause:oe.facetDeselect,getEventExtraPayload:r=>new ae(()=>r).getFacetMetadata(e,t)}),am=(e,t)=>({actionCause:oe.facetUnexclude,getEventExtraPayload:r=>new ae(()=>r).getFacetMetadata(e,t)}),el=(e,t)=>({actionCause:oe.breadcrumbFacet,getEventExtraPayload:r=>new ae(()=>r).getFacetMetadata(e,t)});var Sr=(e,t)=>{var r,a;return(a=(r=e.facetOptions.facets[t])==null?void 0:r.enabled)!=null?a:!0};var yr=new w({regex:/^[a-zA-Z0-9-_]+$/}),Cr=new w({required:!0}),ox=new X({each:new w}),ix=new w,sx=new K,xr=new K,vr=new D({min:0}),_t=new D({min:1}),tl=new K({required:!0}),ZE=new q,ek=new w,tk={captions:ZE,numberOfValues:_t,query:ek},Ko=new q({values:tk}),rl=new q({options:{required:!1},values:{type:new w({constrainTo:["simple"],emptyAllowed:!1,required:!0}),values:new X({required:!0,max:25,each:new w({emptyAllowed:!1,required:!0})})}}),cx=new K,al=new X({min:1,max:25,required:!1,each:new w({emptyAllowed:!1,required:!0})});var bn={value:O,numberOfResults:new D({min:0}),state:O};var rk={facetId:ee,field:new w({required:!0,emptyAllowed:!0}),filterFacetCount:new K({required:!1}),injectionDepth:new D({required:!1,min:0}),numberOfValues:new D({required:!1,min:1}),sortCriteria:new me({required:!1}),resultsMustMatch:new me({required:!1}),allowedValues:rl,customSort:al},Ar=C("facet/register",e=>A(e,rk)),br=C("facet/toggleSelectValue",e=>A(e,{facetId:ee,selection:new q({values:bn})})),Fr=C("facet/toggleExcludeValue",e=>A(e,{facetId:ee,selection:new q({values:bn})})),Ae=C("facet/deselectAll",e=>A(e,ee)),Jo=C("facet/updateSortCriterion",e=>A(e,{facetId:ee,criterion:new me({required:!0})})),Fn=C("facet/updateNumberOfValues",e=>A(e,{facetId:ee,numberOfValues:new D({required:!0,min:1})})),Rn=C("facet/updateIsFieldExpanded",e=>A(e,{facetId:ee,isFieldExpanded:new K({required:!0})})),Kr=C("facet/updateFreezeCurrentValues",e=>A(e,{facetId:ee,freezeCurrentValues:new K({required:!0})}));function Pn(e){var o,i;let t=ux(e.start,e),r=ux(e.end,e),a=(o=e.endInclusive)!=null?o:!1,n=(i=e.state)!=null?i:"idle";return{start:t,end:r,endInclusive:a,state:n}}function ux(e,t){let{dateFormat:r}=t;return uC(e)?(dn(e),iC(e)):typeof e=="string"&&cr(e)?(dn(e),e):(Iu(e,r),qs(ln(e,r)))}var Xo=C("rangeFacet/updateSortCriterion",e=>A(e,{facetId:ee,criterion:new me({required:!0})}));var wn={state:O,start:new D({required:!0}),end:new D({required:!0}),endInclusive:new K({required:!0}),numberOfResults:new D({required:!0,min:0})},In={start:O,end:O,endInclusive:new K({required:!0}),state:O,numberOfResults:new D({required:!0,min:0})},En=e=>({facetId:ee,selection:typeof e.start=="string"?new q({values:In}):new q({values:wn})});var ak={start:O,end:O,endInclusive:new K({required:!0}),state:O},nk={facetId:ee,field:O,currentValues:new X({required:!1,each:new q({values:ak})}),generateAutomaticRanges:new K({required:!0}),filterFacetCount:new K({required:!1}),injectionDepth:new D({required:!1,min:0}),numberOfValues:new D({required:!1,min:1}),sortCriteria:new me({required:!1}),rangeAlgorithm:new me({required:!1})};function lx(e){return cr(e)?Ds(e):e}function nl(e){!e.currentValues||e.currentValues.forEach(t=>{let{start:r,end:a}=Pn(t);if(ln(lx(r)).isAfter(ln(lx(a))))throw new Error(`The start value is greater than the end value for the date range ${t.start} to ${t.end}`)})}var Rr=C("dateFacet/register",e=>{try{return nt(e,nk),nl(e),{payload:e,error:null}}catch(t){return{payload:e,error:Vt(t)}}}),Pr=C("dateFacet/toggleSelectValue",e=>A(e,{facetId:ee,selection:new q({values:In})})),wr=C("dateFacet/toggleExcludeValue",e=>A(e,{facetId:ee,selection:new q({values:In})})),Jr=C("dateFacet/updateFacetValues",e=>{try{return nt(e,{facetId:ee,values:new X({each:new q({values:In})})}),nl({currentValues:e.values}),{payload:e,error:null}}catch(t){return{payload:e,error:Vt(t)}}}),ol=Xo,il=Ae;var ok={state:O,start:new D({required:!0}),end:new D({required:!0}),endInclusive:new K({required:!0})},ik={facetId:ee,field:O,currentValues:new X({required:!1,each:new q({values:ok})}),generateAutomaticRanges:new K({required:!0}),filterFacetCount:new K({required:!1}),injectionDepth:new D({required:!1,min:0}),numberOfValues:new D({required:!1,min:1}),sortCriteria:new me({required:!1}),rangeAlgorithm:new me({required:!1})};function sl(e){!e.currentValues||e.currentValues.forEach(({start:t,end:r})=>{if(t>r)throw new Error(`The start value is greater than the end value for the numeric range ${t} to ${r}`)})}var Ir=C("numericFacet/register",e=>{try{return A(e,ik),sl(e),{payload:e,error:null}}catch(t){return{payload:e,error:Vt(t)}}}),Er=C("numericFacet/toggleSelectValue",e=>A(e,{facetId:ee,selection:new q({values:wn})})),kr=C("numericFacet/toggleExcludeValue",e=>A(e,{facetId:ee,selection:new q({values:wn})})),Xr=C("numericFacet/updateFacetValues",e=>{try{return nt(e,{facetId:ee,values:new X({each:new q({values:wn})})}),sl({currentValues:e.values}),{payload:e,error:null}}catch(t){return{payload:e,error:Vt(t)}}}),cl=Xo,ul=Ae;var Qe=T(fa(),e=>{e.addCase(ie,(t,r)=>({...t,...r.payload})).addCase(I.fulfilled,t=>{t.freezeFacetOrder=!1}).addCase(I.rejected,t=>{t.freezeFacetOrder=!1}).addCase(ce.fulfilled,(t,r)=>{var a,n;return(n=(a=r.payload)==null?void 0:a.facetOptions)!=null?n:t}).addCase(dr,(t,r)=>{t.facets[r.payload.facetId]=zn()}).addCase(Ar,(t,r)=>{t.facets[r.payload.facetId]=zn()}).addCase(Rr,(t,r)=>{t.facets[r.payload.facetId]=zn()}).addCase(Ir,(t,r)=>{t.facets[r.payload.facetId]=zn()}).addCase(Ke,(t,r)=>{t.facets[r.payload].enabled=!0}).addCase(ve,(t,r)=>{t.facets[r.payload].enabled=!1}).addCase(ue,(t,r)=>{var a,n,o,i,s;[...Object.keys((a=r.payload.f)!=null?a:{}),...Object.keys((n=r.payload.fExcluded)!=null?n:{}),...Object.keys((o=r.payload.cf)!=null?o:{}),...Object.keys((i=r.payload.nf)!=null?i:{}),...Object.keys((s=r.payload.df)!=null?s:{})].forEach(c=>{c in t||(t.facets[c]=zn()),t.facets[c].enabled=!0})})});function dx(e,t){let{field:r,state:a}=e;if(!sk(e))return r;let n=`${r}_`,o=ck(n,a);return lk(r,t),`${n}${o}`}function sk(e){let{field:t,state:r}=e;return px(r).some(n=>n&&t in n)}function ck(e,t){let a=px(t).map(n=>Object.keys(n||{})).reduce((n,o)=>n.concat(o),[]);return uk(a,e)+1}function px(e){let{facetSet:t,numericFacetSet:r,dateFacetSet:a,categoryFacetSet:n}=e;return[t,r,a,n]}function uk(e,t){let r=0,n=e.map(o=>{let i=o.split(t)[1],s=parseInt(i,10);return Number.isNaN(s)?r:s}).sort().pop();return n!=null?n:r}function lk(e,t){let r=`A facet with field "${e}" already exists. - To avoid unexpected behaviour, configure the #id option on the facet controller.`;t.warn(r)}function Ze(e,t){let{state:r,logger:a}=e,{field:n,facetId:o}=t;return o||dx({field:n,state:r},a)}var fx=["alphanumeric","occurrences"];var mx=new Y({field:Cr,basePath:ox,delimitingCharacter:ix,facetId:yr,facetSearch:Ko,filterByBasePath:sx,filterFacetCount:xr,injectionDepth:vr,numberOfValues:_t,sortCriteria:new w({constrainTo:fx})});function gx(e,t){if(!dk(e))throw k;let r=M(e),{dispatch:a}=e,n=Ze(e,t.options),o={...Bs,...Oc("facetSearch",t.options),field:t.options.field,facetId:n},i={facetSearch:{...mr,...t.options.facetSearch},...o};he(e,mx,i,"buildCategoryFacet");let s=()=>Rf(e.state,n),c=()=>Ff(e.state,n),u=()=>ar(e.state),l=()=>Sr(e.state,n);return a(dr(o)),{...r,toggleSelect(d){let p=i.numberOfValues;a(ka({facetId:n,selection:d,retrieveCount:p})),a(ie())},deselectAll(){a(pr(n)),a(ie())},sortBy(d){a($o({facetId:n,criterion:d})),a(ie())},isSortedBy(d){return s().sortCriteria===d},showMoreValues(){var g;let{numberOfValues:d}=i,{activeValue:p,valuesAsTrees:f}=this.state,m=((g=p==null?void 0:p.children.length)!=null?g:f.length)+d;a(Cn({facetId:n,numberOfValues:m})),a(ie())},showLessValues(){let{numberOfValues:d}=i;a(Cn({facetId:n,numberOfValues:d})),a(ie())},enable(){a(Ke(n))},disable(){a(ve(n))},get state(){var U,_,fe,Se;let d=s(),p=c(),f=u(),m=l(),g=(U=p==null?void 0:p.values)!=null?U:[],S=(_=g.some(j=>j.children.length>0))!=null?_:!1,{parents:y,values:x}=Cy(p==null?void 0:p.values),b=gt(g),P=b.length?b[b.length-1]:void 0,N=!!P,H=(Se=(fe=P==null?void 0:P.moreValuesAvailable)!=null?fe:p==null?void 0:p.moreValuesAvailable)!=null?Se:!1,Z=P?P.children.length>i.numberOfValues:g.length>i.numberOfValues;return{facetId:n,parents:y,selectedValueAncestry:b,values:x,isHierarchical:S,valuesAsTrees:g,activeValue:P,isLoading:f,hasActiveValues:N,canShowMoreValues:H,canShowLessValues:Z,sortCriteria:d.sortCriteria,enabled:m}}}}function dk(e){return e.addReducers({categoryFacetSet:fr,categoryFacetSearchSet:Go,facetOptions:Qe,configuration:$,search:J}),!0}function Zo(e,t){let r=e.dispatch,{options:a,getFacetSearch:n,executeFacetSearchActionCreator:o,executeFieldSuggestActionCreator:i}=t,{facetId:s}=a;return{updateText(c){r(qa({facetId:s,query:c,numberOfValues:n().initialNumberOfValues}))},showMoreResults(){let{initialNumberOfValues:c,options:u}=n();r(qa({facetId:s,numberOfValues:u.numberOfValues+c})),r(t.isForFieldSuggestions?i(s):o(s))},search(){r(t.isForFieldSuggestions?i(s):o(s))},clear(){r(Ho({facetId:s}))},updateCaptions(c){r(qa({facetId:s,captions:c}))},get state(){let{response:c,isLoading:u,options:l}=n(),{query:d}=l,p=c.values;return{...c,values:p,isLoading:u,query:d}}}}function hx(e,t){let{dispatch:r}=e,a={...mr,...t.options},{facetId:n}=a,o=()=>e.state.categoryFacetSearchSet[n];r(jo(a));let i=Zo(e,{options:a,getFacetSearch:o,isForFieldSuggestions:t.isForFieldSuggestions,executeFacetSearchActionCreator:Je,executeFieldSuggestActionCreator:Oa});return{...i,select(s){r(Bo({facetId:n,value:s}))},get state(){return i.state}}}function ll(e,t){let{dispatch:r}=e,a={...mr,...t.options},{facetId:n}=a,o=()=>e.state.categoryFacetSearchSet[n],i=hx(e,{options:{...a},isForFieldSuggestions:t.isForFieldSuggestions});r(jo(a));let s=Zo(e,{options:a,getFacetSearch:o,isForFieldSuggestions:t.isForFieldSuggestions,executeFacetSearchActionCreator:Je,executeFieldSuggestActionCreator:Oa});return{...s,...i,select:c=>{i.select(c),r(ie()),r(I({legacy:Pe({facetId:n,facetValue:c.rawValue}),next:De(n,c.rawValue)}))},get state(){return{...s.state,...i.state}}}}function pk(e,t){if(!fk(e))throw k;let r=gx(e,t),{dispatch:a}=e,n=()=>r.state.facetId,o=ll(e,{options:{facetId:n(),...t.options.facetSearch},isForFieldSuggestions:!1}),{state:i,...s}=o;return{...r,facetSearch:s,toggleSelect(c){r.toggleSelect(c),a(I({legacy:mk(n(),c),next:gk(n(),c)}))},deselectAll(){r.deselectAll(),a(I({legacy:Ne(n()),next:Xe(n())}))},sortBy(c){r.sortBy(c),a(I({legacy:gr({facetId:n(),criterion:c}),next:Ta(n(),c)}))},showMoreValues(){r.showMoreValues(),a(lr({legacy:zo(n())}))},showLessValues(){r.showLessValues(),a(lr({legacy:Wo(n())}))},get state(){return{...r.state,facetSearch:o.state}}}}function fk(e){return e.addReducers({categoryFacetSet:fr,categoryFacetSearchSet:Go,configuration:$,search:J}),!0}function mk(e,t){let r={facetId:e,facetValue:t.value};return t.state==="selected"?Ut(r):Pe(r)}function gk(e,t){return t.state==="selected"?Yr(e,t.value):De(e,t.value)}var nm={url:O,referrer:wh},om={userId:de,email:de,userIp:de,userAgent:de},im={trackingId:O,language:O,country:O,currency:O,user:new q({values:{...om}}),view:new q({options:{required:!0},values:{...nm}})},u6=new Y(im);var g6=C("commerce/setContext",e=>A(e,im)),h6=C("commerce/setUser",e=>te(e.userId)&&te(e.email)?{payload:e,error:Vt(new Ya("Either userId or email is required"))}:A(e,om)),Sx=C("commerce/setView",e=>A(e,nm));var ei=async e=>{let t=hk(e),{view:r,user:a,...n}=e.commerceContext;return{accessToken:e.configuration.accessToken,url:e.configuration.platformUrl,organizationId:e.configuration.organizationId,...n,clientId:await We(e.configuration.analytics),context:{user:a,view:r,cart:e.cart.cartItems.map(o=>e.cart.cart[o])},facets:t,...e.commercePagination&&{page:e.commercePagination.page},...e.commerceSort&&{sort:Sk(e.commerceSort.appliedSort)}}};function hk(e){return!e.facetOrder||!e.commerceFacetSet?[]:e.facetOrder.map(t=>e.commerceFacetSet[t].request).filter(t=>t.values.length>0)}function Sk(e){if(!!e)return e.by===Mt.Relevance?{sortCriteria:Mt.Relevance}:{sortCriteria:Mt.Fields,fields:e.fields.map(({name:t,direction:r})=>({field:t,direction:r}))}}var yx=async(e,t,r)=>{var S;let n=`*${t.facetSearchSet[e].options.query}*`,o=(S=t.query)==null?void 0:S.q,{url:i,accessToken:s,organizationId:c,trackingId:u,language:l,country:d,currency:p,clientId:f,context:m,...g}=await ei(t);return{url:i,accessToken:s,organizationId:c,facetId:e,facetQuery:n,trackingId:u,language:l,country:d,currency:p,clientId:f,context:m,...!r&&{...g,query:o}}};var Cx=e=>async(t,{getState:r,extra:{apiClient:a,validatePayload:n}})=>{let o=r();n(t,O);let i=await yx(t,o,e),s=await a.facetSearch(i);return{facetId:t,response:s}},dl=W("commerce/facetSearch/executeSearch",Cx(!1)),I6=W("commerce/facetSearch/executeSearch",Cx(!0));var pl=()=>Qy("analytics/commerce/productListing/load",e=>e.makeInterfaceLoad(),e=>new ao(e));var fl=W("commerce/productListing/fetch",async(e,{getState:t,dispatch:r,rejectWithValue:a,extra:n})=>{let o=t(),{apiClient:i}=n,s=await i.getProductListing(await ei(o));return ye(s)?(r(lt(s.error)),a(s.error)):{response:s.success,analyticsAction:pl()}});var ml=W("commerce/search/executeSearch",async(e,{getState:t,dispatch:r,rejectWithValue:a,extra:n})=>{var c;let o=t(),{apiClient:i}=n,s=await i.search({...await ei(o),query:(c=o.commerceQuery)==null?void 0:c.query});return ye(s)?(r(lt(s.error)),a(s.error)):{response:s.success,analyticsAction:pl()}});var ti=T(Xa(),e=>{e.addCase(Zu,(t,r)=>{let a=r.payload;Ku(t,a,ri)}).addCase(qa,(t,r)=>{Ju(t,r.payload)}).addCase(dl.pending,(t,r)=>{let a=r.meta.arg;js(t,a,r.meta.requestId)}).addCase(Je.pending,(t,r)=>{let a=r.meta.arg;js(t,a,r.meta.requestId)}).addCase(dl.rejected,(t,r)=>{let a=r.meta.arg;Us(t,a)}).addCase(Je.rejected,(t,r)=>{let a=r.meta.arg;Us(t,a)}).addCase(dl.fulfilled,(t,r)=>{ex(t,r.payload,r.meta.requestId)}).addCase(Je.fulfilled,(t,r)=>{Xu(t,r.payload,r.meta.requestId)}).addCase(Ho,(t,{payload:r})=>{_s(t,r,ri)}).addCase(I.fulfilled,t=>{xn(t,ri)}).addCase(fl.fulfilled,t=>xn(t,ri)).addCase(ml.fulfilled,t=>xn(t,ri)).addCase(Sx,t=>xn(t,ri))});function ri(){return{moreValuesAvailable:!1,values:[]}}var xx=()=>By("analytics/productListing/load",e=>e.makeInterfaceLoad(),e=>new no(e));var F5=C("productlisting/setUrl",e=>A(e,{url:new w({required:!0,url:!0})})),R5=C("productlisting/setAdditionalFields",e=>A(e,{additionalFields:new X({required:!0,each:new w({required:!0,emptyAllowed:!1})})})),Da=W("productlisting/fetch",async(e,{getState:t,dispatch:r,rejectWithValue:a,extra:n})=>{let o=t(),{apiClient:i}=n,s=await i.getProducts(await yk(o));return ye(s)?(r(lt(s.error)),a(s.error)):{response:s.success,analyticsAction:xx()}}),yk=async e=>{var a,n,o;let t=xk(e),r=await We(e.configuration.analytics);return{accessToken:e.configuration.accessToken,organizationId:e.configuration.organizationId,platformUrl:e.configuration.platformUrl,url:(a=e.productListing)==null?void 0:a.url,...e.configuration.analytics.enabled&&r?{clientId:r}:{},...((n=e.productListing.additionalFields)==null?void 0:n.length)?{additionalFields:e.productListing.additionalFields}:{},...e.productListing.advancedParameters&&Ck(e.productListing.advancedParameters)?{advancedParameters:e.productListing.advancedParameters||{}}:{},...t.length&&{facets:{requests:t}},...e.pagination&&{pagination:{numberOfValues:e.pagination.numberOfResults,page:Math.ceil(e.pagination.firstResult/(e.pagination.numberOfResults||1))+1}},...(((o=e.sort)==null?void 0:o.by)||Mt.Relevance)!==Mt.Relevance&&{sort:e.sort},...e.context&&{userContext:e.context.contextValues}}};function Ck(e){return e.debug}function xk(e){var t;return Ro(vk(e),(t=e.facetOrder)!=null?t:[])}function vk(e){var t,r,a,n;return[...zr((t=e.facetSet)!=null?t:{}),...zr((r=e.numericFacetSet)!=null?r:{}),...zr((a=e.dateFacetSet)!=null?a:{}),...zr((n=e.categoryFacetSet)!=null?n:{})]}var Or=T(Kt(),e=>{e.addCase(Ar,(t,r)=>{let{facetId:a}=r.payload;a in t||(t[a]=hS(Ak(r.payload)))}).addCase(ce.fulfilled,(t,r)=>{if(!!r.payload&&Object.keys(r.payload.facetSet).length!==0)return r.payload.facetSet}).addCase(ue,(t,r)=>{let a=r.payload.f||{},n=r.payload.fExcluded||{};Object.keys(t).forEach(i=>{let{request:s}=t[i],c=a[i]||[],u=n[i]||[],l=c.length+u.length,d=s.currentValues.filter(p=>!c.includes(p.value)&&!u.includes(p.value));s.currentValues=[...c.map(vx),...u.map(Ax),...d.map(Fk)],s.preventAutoSelect=l>0,s.numberOfValues=Math.max(l,s.numberOfValues)})}).addCase(br,(t,r)=>{var c;let{facetId:a,selection:n}=r.payload,o=(c=t[a])==null?void 0:c.request;if(!o)return;o.preventAutoSelect=!0;let i=o.currentValues.find(u=>u.value===n.value);if(!i){gl(o,n);return}let s=i.state==="selected";i.state=s?"idle":"selected",o.freezeCurrentValues=!0}).addCase(Fr,(t,r)=>{var c;let{facetId:a,selection:n}=r.payload,o=(c=t[a])==null?void 0:c.request;if(!o)return;o.preventAutoSelect=!0;let i=o.currentValues.find(u=>u.value===n.value);if(!i){gl(o,n);return}let s=i.state==="excluded";i.state=s?"idle":"excluded",o.freezeCurrentValues=!0}).addCase(Kr,(t,r)=>{var i;let{facetId:a,freezeCurrentValues:n}=r.payload,o=(i=t[a])==null?void 0:i.request;!o||(o.freezeCurrentValues=n)}).addCase(Ae,(t,r)=>{var a;Qs((a=t[r.payload])==null?void 0:a.request)}).addCase(Fe,t=>{Object.values(t).filter(r=>r.hasBreadcrumbs).forEach(({request:r})=>Qs(r))}).addCase(va,t=>{Object.values(t).filter(r=>!r.hasBreadcrumbs).forEach(({request:r})=>Qs(r))}).addCase(bt,(t,r)=>Object.values(t).forEach(a=>{a.request.preventAutoSelect=!r.payload.allow})).addCase(Jo,(t,r)=>{Uo(t,r.payload)}).addCase(Fn,(t,r)=>{var o;let{facetId:a,numberOfValues:n}=r.payload;zu((o=t[a])==null?void 0:o.request,n)}).addCase(Rn,(t,r)=>{var i;let{facetId:a,isFieldExpanded:n}=r.payload,o=(i=t[a])==null?void 0:i.request;!o||(o.isFieldExpanded=n)}).addCase(I.fulfilled,(t,r)=>{r.payload.response.facets.forEach(n=>{var o;return sm((o=t[n.facetId])==null?void 0:o.request,n)})}).addCase(Da.fulfilled,(t,r)=>{var n,o;(((o=(n=r.payload.response)==null?void 0:n.facets)==null?void 0:o.results)||[]).forEach(i=>{var s;return sm((s=t[i.facetId])==null?void 0:s.request,i)})}).addCase(lr.fulfilled,(t,r)=>{r.payload.response.facets.forEach(n=>{var o;return sm((o=t[n.facetId])==null?void 0:o.request,n)})}).addCase(vn,(t,r)=>{var l;let{facetId:a,value:n}=r.payload,o=(l=t[a])==null?void 0:l.request;if(!o)return;let{rawValue:i}=n,{currentValues:s}=o,c=s.find(d=>d.value===i);if(c){c.state="selected";return}let u=vx(i);gl(o,u),o.freezeCurrentValues=!0,o.preventAutoSelect=!0}).addCase(An,(t,r)=>{var l;let{facetId:a,value:n}=r.payload,o=(l=t[a])==null?void 0:l.request;if(!o)return;let{rawValue:i}=n,{currentValues:s}=o,c=s.find(d=>d.value===i);if(c){c.state="excluded";return}let u=Ax(i);gl(o,u),o.freezeCurrentValues=!0,o.preventAutoSelect=!0}).addCase(ve,(t,r)=>{if(!(r.payload in t))return;let{request:a}=t[r.payload];Qs(a)})});function gl(e,t){let{currentValues:r}=e,a=r.findIndex(s=>s.state==="idle"),n=a===-1?r.length:a,o=r.slice(0,n),i=r.slice(n+1);e.currentValues=[...o,t,...i],e.numberOfValues=e.currentValues.length}function sm(e,t){!e||(e.currentValues=t.values.map(bk),e.freezeCurrentValues=!1,e.preventAutoSelect=!1)}var $s={filterFacetCount:!0,injectionDepth:1e3,numberOfValues:8,sortCriteria:"automatic",resultsMustMatch:"atLeastOneValue"};function Ak(e){return{...$s,type:"specific",currentValues:[],freezeCurrentValues:!1,isFieldExpanded:!1,preventAutoSelect:!1,...e}}function bk(e){let{value:t,state:r}=e;return{value:t,state:r}}function vx(e){return{value:e,state:"selected"}}function Ax(e){return{value:e,state:"excluded"}}function Fk(e){return{...e,state:"idle"}}var hl=e=>e.state==="selected",Sl=e=>e.state==="excluded",yl=(e,t)=>{let r={facetId:e,facetValue:t.value};return hl(t)?Ut(r):Pe(r)},Cl=(e,t)=>hl(t)?Yr(e,t.value):De(e,t.value),bx=(e,t)=>{let r={facetId:e,facetValue:t.value};return Sl(t)?Wr(r):St(r)},Fx=(e,t)=>Sl(t)?am(e,t.value):hr(e,t.value);function xl(e,t){let{dispatch:r}=e,{options:a,select:n,exclude:o,isForFieldSuggestions:i,executeFacetSearchActionCreator:s,executeFieldSuggestActionCreator:c}=t,{facetId:u}=a,l=()=>e.state.facetSearchSet[u];r(Zu(a));let d=Zo(e,{options:a,getFacetSearch:l,isForFieldSuggestions:i,executeFacetSearchActionCreator:s,executeFieldSuggestActionCreator:c});return{...d,select(p){r(vn({facetId:u,value:p})),n(p)},exclude(p){r(An({facetId:u,value:p})),o(p)},singleSelect(p){r(Ae(u)),r(vn({facetId:u,value:p})),n(p)},singleExclude(p){r(Ae(u)),r(An({facetId:u,value:p})),o(p)},get state(){let{values:p}=d.state;return{...d.state,values:p.map(({count:f,displayValue:m,rawValue:g})=>({count:f,displayValue:m,rawValue:g}))}}}}var Rx={facetId:ee,selection:new q({values:bn})},Px=W("facet/executeToggleSelect",({facetId:e,selection:t},r)=>{let{dispatch:a,extra:{validatePayload:n}}=r;n({facetId:e,selection:t},Rx),a(br({facetId:e,selection:t})),a(ie())}),wx=W("facet/executeToggleExclude",({facetId:e,selection:t},r)=>{let{dispatch:a,extra:{validatePayload:n}}=r;n({facetId:e,selection:t},Rx),a(Fr({facetId:e,selection:t})),a(ie())});var ai=["allValues","atLeastOneValue"];var vl=["score","alphanumeric","alphanumericDescending","occurrences","automatic"];var Ix=new Y({facetId:yr,field:Cr,filterFacetCount:xr,injectionDepth:vr,numberOfValues:_t,sortCriteria:new w({constrainTo:vl}),resultsMustMatch:new w({constrainTo:ai}),facetSearch:Ko});function Ex(e,t,r=Ix){if(!Rk(e))throw k;let{dispatch:a}=e,n=M(e),o=Ze(e,t.options),i={...$s,...Oc("facetSearch",t.options),field:t.options.field,facetId:o},s={facetSearch:{...mr,...t.options.facetSearch},...i};he(e,r,s,"buildFacet");let c=()=>bf(e.state,o),u=()=>Is(e.state,o),l=()=>ar(e.state),d=()=>Sr(e.state,o),p=()=>{let{currentValues:m}=c();return m.filter(g=>g.state!=="idle").length},f=()=>{let{currentValues:m}=c(),g=s.numberOfValues,S=!!m.find(y=>y.state==="idle");return ga(Px({facetId:s.facetId,selection:m})),toggleExclude:m=>a(wx({facetId:s.facetId,selection:m})),toggleSingleSelect:function(m){m.state==="idle"&&a(Ae(o)),this.toggleSelect(m)},toggleSingleExclude:function(m){m.state==="idle"&&a(Ae(o)),this.toggleExclude(m)},isValueSelected:hl,isValueExcluded:Sl,deselectAll(){a(Ae(o)),a(ie())},sortBy(m){a(Jo({facetId:o,criterion:m})),a(ie())},isSortedBy(m){return this.state.sortCriterion===m},showMoreValues(){let m=c().numberOfValues,g=s.numberOfValues,S=g-m%g,y=m+S;a(Fn({facetId:o,numberOfValues:y})),a(Rn({facetId:o,isFieldExpanded:!0})),a(ie())},showLessValues(){let m=s.numberOfValues,g=Math.max(m,p());a(Fn({facetId:o,numberOfValues:g})),a(Rn({facetId:o,isFieldExpanded:!1})),a(ie())},enable(){a(Ke(o))},disable(){a(ve(o))},get state(){let m=c(),g=u(),S=l(),y=d(),x;typeof m.sortCriteria=="object"?x=m.sortCriteria.order==="descending"?"alphanumericDescending":"alphanumeric":x=m.sortCriteria;let b=g?g.values:[],P=b.some(Z=>Z.state!=="idle"),N=g?g.moreValuesAvailable:!1,H=m.resultsMustMatch;return{label:g==null?void 0:g.label,facetId:o,values:b,sortCriterion:x,resultsMustMatch:H,isLoading:S,hasActiveValues:P,canShowMoreValues:N,canShowLessValues:f(),enabled:y}}}}function Rk(e){return e.addReducers({facetSet:Or,facetOptions:Qe,configuration:$,facetSearchSet:ti}),!0}var kx=new Y({facetId:yr,field:Cr,filterFacetCount:xr,injectionDepth:vr,numberOfValues:_t,sortCriteria:new w({constrainTo:vl}),resultsMustMatch:new w({constrainTo:ai}),facetSearch:Ko,allowedValues:rl,hasBreadcrumbs:cx,customSort:al});function Pk(e,t){if(!wk(e))throw k;let{dispatch:r}=e,a=Ex(e,{...t,options:{...t.options,...t.options.allowedValues&&{allowedValues:{type:"simple",values:t.options.allowedValues}}}},kx),n=()=>a.state.facetId,i=(()=>{let{facetSearch:u}=t.options;return xl(e,{options:{facetId:n(),...u},select:l=>{r(ie()),r(I({legacy:Pe({facetId:n(),facetValue:l.rawValue}),next:De(n(),l.rawValue)}))},exclude:l=>{r(ie()),r(I({legacy:St({facetId:n(),facetValue:l.rawValue}),next:hr(n(),l.rawValue)}))},isForFieldSuggestions:!1,executeFacetSearchActionCreator:Je,executeFieldSuggestActionCreator:Oa})})(),{state:s,...c}=i;return{...a,facetSearch:c,toggleSelect(u){a.toggleSelect(u),r(I({legacy:yl(n(),u),next:Cl(n(),u)}))},toggleExclude(u){a.toggleExclude(u),r(I({legacy:bx(n(),u),next:Fx(n(),u)}))},deselectAll(){a.deselectAll(),r(I({legacy:Ne(n()),next:Xe(n())}))},sortBy(u){a.sortBy(u),r(I({legacy:gr({facetId:n(),criterion:u}),next:Ta(n(),u)}))},isSortedBy(u){return this.state.sortCriterion===u},showMoreValues(){a.showMoreValues(),r(lr({legacy:zo(n())}))},showLessValues(){a.showLessValues(),r(lr({legacy:Wo(n())}))},get state(){return{...a.state,facetSearch:i.state}}}}function wk(e){return e.addReducers({facetSet:Or,configuration:$,facetSearchSet:ti,search:J}),!0}var Al=e=>e.state==="selected",cm=e=>e.state==="excluded",bl=(e,t)=>{let r=`${t.start}..${t.end}`,a={facetId:e,facetValue:r};return Al(t)?Ut(a):Pe(a)},Fl=(e,t)=>{let r=`${t.start}..${t.end}`;return Al(t)?Yr(e,r):De(e,r)},Ox=(e,t)=>{let r=`${t.start}..${t.end}`,a={facetId:e,facetValue:r};return cm(t)?Wr(a):St(a)};var Rl=C("rangeFacet/executeToggleSelect",e=>A(e,En(e.selection))),Pl=C("rangeFacet/executeToggleExclude",e=>A(e,En(e.selection)));var qx={facetId:ee,selection:new q({values:In})},Tx=W("dateFacet/executeToggleSelect",(e,{dispatch:t,extra:{validatePayload:r}})=>{r(e,qx),t(Pr(e)),t(Rl(e)),t(ie())}),Dx=W("dateFacet/executeToggleExclude",(e,{dispatch:t,extra:{validatePayload:r}})=>{r(e,qx),t(wr(e)),t(Pl(e)),t(ie())});var wl={filterFacetCount:!0,injectionDepth:1e3,numberOfValues:8,sortCriteria:"ascending",rangeAlgorithm:"even",resultsMustMatch:"atLeastOneValue"};function Il(e,t){let{request:r}=t,{facetId:a}=r;if(a in e)return;let n=Vx(r);r.numberOfValues=n,e[a]=t}function El(e,t,r){var n;let a=(n=e[t])==null?void 0:n.request;!a||(a.currentValues=r,a.numberOfValues=Vx(a))}function kl(e,t,r){var i;let a=(i=e[t])==null?void 0:i.request;if(!a)return;let n=Tl(a.currentValues,r);if(!n)return;let o=n.state==="selected";n.state=o?"idle":"selected",a.preventAutoSelect=!0}function Ol(e,t,r){var i;let a=(i=e[t])==null?void 0:i.request;if(!a)return;let n=Tl(a.currentValues,r);if(!n)return;let o=n.state==="excluded";n.state=o?"idle":"excluded",a.preventAutoSelect=!0}function Va(e,t){var a;let r=(a=e[t])==null?void 0:a.request;!r||r.currentValues.forEach(n=>n.state="idle")}function ql(e,t){Object.entries(e).forEach(([r,{request:a}])=>{let n=t[r]||[];a.currentValues.forEach(s=>{let c=!!Tl(n,s);return s.state=c?"selected":"idle",s});let o=n.filter(s=>!Tl(a.currentValues,s)),i=a.currentValues;i.push(...o),a.numberOfValues=Math.max(a.numberOfValues,i.length)})}function ni(e,t,r){t.forEach(a=>{var s;let n=a.facetId,o=(s=e[n])==null?void 0:s.request;if(!o)return;let i=r(a.values);o.currentValues=i,o.preventAutoSelect=!1})}function Tl(e,t){let{start:r,end:a}=t;return e.find(n=>n.start===r&&n.end===a)}function Vx(e){let{generateAutomaticRanges:t,currentValues:r,numberOfValues:a}=e;return t?Math.max(a,r.length):r.length}var qr=T(Jt(),e=>{e.addCase(Rr,(t,r)=>{let{payload:a}=r,n=Ik(a);Il(t,SS(n))}).addCase(ce.fulfilled,(t,r)=>{var a,n;return(n=(a=r.payload)==null?void 0:a.dateFacetSet)!=null?n:t}).addCase(ue,(t,r)=>{let a=r.payload.df||{};ql(t,a)}).addCase(Pr,(t,r)=>{let{facetId:a,selection:n}=r.payload;kl(t,a,n)}).addCase(wr,(t,r)=>{let{facetId:a,selection:n}=r.payload;Ol(t,a,n)}).addCase(Jr,(t,r)=>{let{facetId:a,values:n}=r.payload;El(t,a,n)}).addCase(il,(t,r)=>{Va(t,r.payload)}).addCase(Fe,t=>{Object.keys(t).forEach(r=>{Va(t,r)})}).addCase(ol,(t,r)=>{Uo(t,r.payload)}).addCase(I.fulfilled,(t,r)=>{let a=r.payload.response.facets;ni(t,a,Mx)}).addCase(Da.fulfilled,(t,r)=>{var n,o;let a=((o=(n=r.payload.response)==null?void 0:n.facets)==null?void 0:o.results)||[];ni(t,a,Mx)}).addCase(ve,(t,r)=>{Va(t,r.payload)})});function Ik(e){return{...wl,currentValues:[],preventAutoSelect:!1,type:"dateRange",...e}}function Mx(e){return e.map(t=>{let{numberOfResults:r,...a}=t;return a})}function Dl(e,t){let{facetId:r,getRequest:a}=t,n=M(e),o=e.dispatch,i=()=>Sr(e.state,r);return{...n,isValueSelected:Al,isValueExcluded:cm,deselectAll(){o(Ae(r)),o(ie())},sortBy(s){o(Xo({facetId:r,criterion:s})),o(ie())},isSortedBy(s){return this.state.sortCriterion===s},enable(){o(Ke(r))},disable(){o(ve(r))},get state(){let s=a(),c=rr(e.state,r),u=s.sortCriteria,l=s.resultsMustMatch,d=c?c.values:[],p=ar(e.state),f=i(),m=d.some(g=>g.state!=="idle");return{facetId:r,values:d,sortCriterion:u,resultsMustMatch:l,hasActiveValues:m,isLoading:p,enabled:f}}}}function Vl(e,t){if(!e.generateAutomaticRanges&&e.currentValues===void 0){let r=`currentValues should be specified for ${t} when generateAutomaticRanges is false.`;throw new Error(r)}}var Ml=["idle","selected","excluded"];var Ll=["ascending","descending"],Nl=["even","equiprobable"];var Ek={start:new w,end:new w,endInclusive:new K,state:new w({constrainTo:Ml})},kk=new Y({facetId:yr,field:Cr,generateAutomaticRanges:tl,filterFacetCount:xr,injectionDepth:vr,numberOfValues:_t,currentValues:new X({each:new q({values:Ek})}),sortCriteria:new w({constrainTo:Ll}),rangeAlgorithm:new w({constrainTo:Nl})});function Ql(e,t){he(e,kk,t,"buildDateFacet"),nl(t)}function Lx(e,t){if(!Ok(e))throw k;Vl(t.options,"buildDateFacet");let r=e.dispatch,a=Ze(e,t.options),n={currentValues:[],...t.options,facetId:a};Ql(e,n),r(Rr(n));let o=Dl(e,{facetId:a,getRequest:()=>e.state.dateFacetSet[a].request});return{...o,toggleSelect:i=>r(Tx({facetId:a,selection:i})),toggleSingleSelect:function(i){i.state==="idle"&&r(Ae(a)),this.toggleSelect(i)},toggleExclude:i=>r(Dx({facetId:a,selection:i})),toggleSingleExclude:function(i){i.state==="idle"&&r(Ae(a)),this.toggleExclude(i)},get state(){return o.state}}}function Ok(e){return e.addReducers({configuration:$,search:J,dateFacetSet:qr,facetOptions:Qe}),!0}function qk(e,t){let r=Lx(e,t),a=e.dispatch,n=()=>r.state.facetId;return{...r,deselectAll(){r.deselectAll(),a(I({legacy:Ne(n()),next:Xe(n())}))},sortBy(o){r.sortBy(o),a(I({legacy:gr({facetId:n(),criterion:o}),next:Ta(n(),o)}))},toggleSelect:o=>{r.toggleSelect(o),a(I({legacy:bl(n(),o),next:Fl(n(),o)}))},toggleExclude:o=>{r.toggleExclude(o),a(I({legacy:Ox(n(),o)}))},get state(){return r.state}}}var Pt=T(Xt(),e=>{e.addCase(Ir,(t,r)=>{let{payload:a}=r,n=Tk(a);Il(t,yS(n))}).addCase(ce.fulfilled,(t,r)=>{var a,n;return(n=(a=r.payload)==null?void 0:a.numericFacetSet)!=null?n:t}).addCase(ue,(t,r)=>{let a=r.payload.nf||{};ql(t,a)}).addCase(Er,(t,r)=>{let{facetId:a,selection:n}=r.payload;kl(t,a,n)}).addCase(kr,(t,r)=>{let{facetId:a,selection:n}=r.payload;Ol(t,a,n)}).addCase(Xr,(t,r)=>{let{facetId:a,values:n}=r.payload;El(t,a,n)}).addCase(ul,(t,r)=>{Va(t,r.payload)}).addCase(Fe,t=>{Object.keys(t).forEach(r=>{Va(t,r)})}).addCase(cl,(t,r)=>{Uo(t,r.payload)}).addCase(I.fulfilled,(t,r)=>{let a=r.payload.response.facets;ni(t,a,Nx)}).addCase(Da.fulfilled,(t,r)=>{var n,o;let a=((o=(n=r.payload.response)==null?void 0:n.facets)==null?void 0:o.results)||[];ni(t,a,Nx)}).addCase(ve,(t,r)=>{Va(t,r.payload)})});function Tk(e){return{...wl,currentValues:[],preventAutoSelect:!1,type:"numericalRange",...e}}function Nx(e){return e.map(t=>{let{numberOfResults:r,...a}=t;return a})}var Qx={facetId:ee,selection:new q({values:wn})},Bx=W("numericFacet/executeToggleSelect",(e,{dispatch:t,extra:{validatePayload:r}})=>{r(e,Qx),t(Er(e)),t(Rl(e)),t(ie())}),K9=W("numericFacet/executeToggleExclude",(e,{dispatch:t,extra:{validatePayload:r}})=>{r(e,Qx),t(kr(e)),t(Pl(e)),t(ie())});var Dk={start:new D,end:new D,endInclusive:new K,state:new w({constrainTo:Ml})},Vk=new Y({facetId:yr,field:Cr,generateAutomaticRanges:tl,filterFacetCount:xr,injectionDepth:vr,numberOfValues:_t,currentValues:new X({each:new q({values:Dk})}),sortCriteria:new w({constrainTo:Ll}),resultsMustMatch:new w({constrainTo:ai}),rangeAlgorithm:new w({constrainTo:Nl})});function Bl(e,t){he(e,Vk,t,"buildNumericFacet"),sl(t)}function Hs(e){return{endInclusive:!1,state:"idle",...e}}function jx(e,t){if(!Mk(e))throw k;Vl(t.options,"buildNumericFacet");let r=e.dispatch,a=Ze(e,t.options),n={currentValues:[],...t.options,facetId:a};Bl(e,n),r(Ir(n));let o=Dl(e,{facetId:a,getRequest:()=>e.state.numericFacetSet[a].request});return{...o,toggleSelect:i=>r(Bx({facetId:a,selection:i})),toggleSingleSelect(i){i.state==="idle"&&r(Ae(a)),this.toggleSelect(i)},get state(){return o.state}}}function Mk(e){return e.addReducers({numericFacetSet:Pt,facetOptions:Qe,configuration:$,search:J}),!0}function Lk(e,t){if(!Nk(e))throw k;let r=jx(e,t),a=e.dispatch,n=()=>r.state.facetId;return{...r,deselectAll(){r.deselectAll(),a(I({legacy:Ne(n()),next:Xe(n())}))},sortBy(o){r.sortBy(o),a(I({legacy:gr({facetId:n(),criterion:o}),next:Ta(n(),o)}))},toggleSelect:o=>{r.toggleSelect(o),a(I({legacy:bl(n(),o),next:Fl(n(),o)}))},get state(){return{...r.state}}}}function Nk(e){return e.addReducers({numericFacetSet:Pt,configuration:$,search:J}),!0}function Qk(e,t){return!!t&&t.facetId in e.numericFacetSet}var Ux=(e,t)=>{let r=rr(e,t);if(Qk(e,r))return r},_x=(e,t)=>(Ux(e,t)||{values:[]}).values.filter(a=>a.state!=="idle"),$x=(e,t)=>(Ux(e,t)||{values:[]}).values.filter(a=>a.state==="selected");function Hx(e,t){var c;if(!Bk(e))throw k;let r=M(e),{dispatch:a}=e,n=()=>e.state,o=Ze(e,t.options),i={...t.options,currentValues:((c=t.initialState)==null?void 0:c.range)?[{...t.initialState.range,endInclusive:!0,state:"selected"}]:[],generateAutomaticRanges:!1,facetId:o};Bl(e,i),a(Ir(i));let s=()=>Sr(e.state,o);return{...r,clear:()=>{a(Xr({facetId:o,values:[]})),a(ie())},setRange:u=>{let l={...u,state:"selected",numberOfResults:0,endInclusive:!0},d=Xr({facetId:o,values:[l]});return d.error?!1:(a(d),a(ie()),!0)},enable(){a(Ke(o))},disable(){a(ve(o))},get state(){let u=ar(n()),l=s(),d=$x(n(),o),p=d.length?d[0]:void 0;return{facetId:o,isLoading:u,range:p,enabled:l}}}}function Bk(e){return e.addReducers({numericFacetSet:Pt,facetOptions:Qe,configuration:$,search:J}),!0}function jk(e,t){if(!Uk(e))throw k;let r=Hx(e,t),{dispatch:a}=e,n=()=>r.state.facetId;return{...r,clear:()=>{r.clear(),a(I({legacy:Ne(n()),next:Xe(n())}))},setRange:o=>{let i=r.setRange(o);return i&&a(I({legacy:Pe({facetId:n(),facetValue:`${o.start}..${o.end}`}),next:De(n(),`${o.start}..${o.end}`)})),i},get state(){return{...r.state}}}}function Uk(e){return e.addReducers({numericFacetSet:Pt,configuration:$,search:J}),!0}function _k(e,t){return!!t&&t.facetId in e.dateFacetSet}var Gx=(e,t)=>{let r=rr(e,t);if(_k(e,r))return r},zx=(e,t)=>(Gx(e,t)||{values:[]}).values.filter(a=>a.state==="selected"),Wx=(e,t)=>(Gx(e,t)||{values:[]}).values.filter(a=>a.state!=="idle");function Yx(e,t){var c;if(!$k(e))throw k;let r=M(e),{dispatch:a}=e,n=()=>e.state,o=Ze(e,t.options),i={...t.options,currentValues:((c=t.initialState)==null?void 0:c.range)?[{...t.initialState.range,endInclusive:!0,state:"selected"}]:[],generateAutomaticRanges:!1,facetId:o};Ql(e,i),a(Rr(i));let s=()=>Sr(e.state,o);return{...r,clear:()=>{a(Jr({facetId:o,values:[]})),a(ie())},setRange:u=>{let l={...u,state:"selected",numberOfResults:0,endInclusive:!0},d=Jr({facetId:o,values:[l]});return d.error?!1:(a(d),a(ie()),!0)},enable(){a(Ke(o))},disable(){a(ve(o))},get state(){let u=ar(n()),l=s(),d=zx(n(),o),p=d.length?d[0]:void 0;return{facetId:o,isLoading:u,range:p,enabled:l}}}}function $k(e){return e.addReducers({dateFacetSet:qr,facetOptions:Qe,configuration:$,search:J}),!0}function Hk(e,t){if(!Gk(e))throw k;let r=Yx(e,t),{dispatch:a}=e,n=()=>r.state.facetId;return{...r,clear:()=>{r.clear(),a(I({legacy:Ne(n()),next:Xe(n())}))},setRange:o=>{let i=r.setRange(o);return i&&a(I({legacy:Pe({facetId:n(),facetValue:`${o.start}..${o.end}`}),next:De(n(),`${o.start}..${o.end}`)})),i},get state(){return{...r.state}}}}function Gk(e){return e.addReducers({dateFacetSet:qr,configuration:$,search:J}),!0}var jl=T(da(),e=>{e.addCase(I.fulfilled,um).addCase(fl.fulfilled,um).addCase(ml.fulfilled,um).addCase(ce.fulfilled,(t,r)=>{var a,n;return(n=(a=r.payload)==null?void 0:a.facetOrder)!=null?n:t})});function um(e,t){return t.payload.response.facets.map(r=>r.facetId)}var Ul=()=>E("history/analytics/forward",e=>e.makeSearchEvent("historyForward")),_l=()=>E("history/analytics/backward",e=>e.makeSearchEvent("historyBackward")),$l=()=>E("history/analytics/noresultsback",e=>e.makeNoResultsBack()),Kx=()=>({actionCause:oe.historyForward,getEventExtraPayload:e=>new ae(()=>e).getBaseMetadata()}),Jx=()=>({actionCause:oe.historyBackward,getEventExtraPayload:e=>new ae(()=>e).getBaseMetadata()}),Xx=()=>({actionCause:oe.noResultsBack,getEventExtraPayload:e=>new ae(()=>e).getBaseMetadata()});var zk=Object.getOwnPropertyNames,Wk=Object.getOwnPropertySymbols,Yk=Object.prototype.hasOwnProperty;function Zx(e,t){return function(a,n,o){return e(a,n,o)&&t(a,n,o)}}function Hl(e){return function(r,a,n){if(!r||!a||typeof r!="object"||typeof a!="object")return e(r,a,n);var o=n.cache,i=o.get(r),s=o.get(a);if(i&&s)return i===a&&s===r;o.set(r,a),o.set(a,r);var c=e(r,a,n);return o.delete(r),o.delete(a),c}}function ev(e){return zk(e).concat(Wk(e))}var tv=Object.hasOwn||function(e,t){return Yk.call(e,t)};function oi(e,t){return e||t?e===t:e===t||e!==e&&t!==t}var rv="_owner",av=Object.getOwnPropertyDescriptor,nv=Object.keys;function Kk(e,t,r){var a=e.length;if(t.length!==a)return!1;for(;a-- >0;)if(!r.equals(e[a],t[a],a,a,e,t,r))return!1;return!0}function Jk(e,t){return oi(e.getTime(),t.getTime())}function ov(e,t,r){if(e.size!==t.size)return!1;for(var a={},n=e.entries(),o=0,i,s;(i=n.next())&&!i.done;){for(var c=t.entries(),u=!1,l=0;(s=c.next())&&!s.done;){var d=i.value,p=d[0],f=d[1],m=s.value,g=m[0],S=m[1];!u&&!a[l]&&(u=r.equals(p,g,o,l,e,t,r)&&r.equals(f,S,p,g,e,t,r))&&(a[l]=!0),l++}if(!u)return!1;o++}return!0}function Xk(e,t,r){var a=nv(e),n=a.length;if(nv(t).length!==n)return!1;for(var o;n-- >0;)if(o=a[n],o===rv&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!tv(t,o)||!r.equals(e[o],t[o],o,o,e,t,r))return!1;return!0}function Gs(e,t,r){var a=ev(e),n=a.length;if(ev(t).length!==n)return!1;for(var o,i,s;n-- >0;)if(o=a[n],o===rv&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!tv(t,o)||!r.equals(e[o],t[o],o,o,e,t,r)||(i=av(e,o),s=av(t,o),(i||s)&&(!i||!s||i.configurable!==s.configurable||i.enumerable!==s.enumerable||i.writable!==s.writable)))return!1;return!0}function Zk(e,t){return oi(e.valueOf(),t.valueOf())}function eO(e,t){return e.source===t.source&&e.flags===t.flags}function iv(e,t,r){if(e.size!==t.size)return!1;for(var a={},n=e.values(),o,i;(o=n.next())&&!o.done;){for(var s=t.values(),c=!1,u=0;(i=s.next())&&!i.done;)!c&&!a[u]&&(c=r.equals(o.value,i.value,o.value,i.value,e,t,r))&&(a[u]=!0),u++;if(!c)return!1}return!0}function tO(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}var rO="[object Arguments]",aO="[object Boolean]",nO="[object Date]",oO="[object Map]",iO="[object Number]",sO="[object Object]",cO="[object RegExp]",uO="[object Set]",lO="[object String]",dO=Array.isArray,sv=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,cv=Object.assign,pO=Object.prototype.toString.call.bind(Object.prototype.toString);function fO(e){var t=e.areArraysEqual,r=e.areDatesEqual,a=e.areMapsEqual,n=e.areObjectsEqual,o=e.arePrimitiveWrappersEqual,i=e.areRegExpsEqual,s=e.areSetsEqual,c=e.areTypedArraysEqual;return function(l,d,p){if(l===d)return!0;if(l==null||d==null||typeof l!="object"||typeof d!="object")return l!==l&&d!==d;var f=l.constructor;if(f!==d.constructor)return!1;if(f===Object)return n(l,d,p);if(dO(l))return t(l,d,p);if(sv!=null&&sv(l))return c(l,d,p);if(f===Date)return r(l,d,p);if(f===RegExp)return i(l,d,p);if(f===Map)return a(l,d,p);if(f===Set)return s(l,d,p);var m=pO(l);return m===nO?r(l,d,p):m===cO?i(l,d,p):m===oO?a(l,d,p):m===uO?s(l,d,p):m===sO?typeof l.then!="function"&&typeof d.then!="function"&&n(l,d,p):m===rO?n(l,d,p):m===aO||m===iO||m===lO?o(l,d,p):!1}}function mO(e){var t=e.circular,r=e.createCustomConfig,a=e.strict,n={areArraysEqual:a?Gs:Kk,areDatesEqual:Jk,areMapsEqual:a?Zx(ov,Gs):ov,areObjectsEqual:a?Gs:Xk,arePrimitiveWrappersEqual:Zk,areRegExpsEqual:eO,areSetsEqual:a?Zx(iv,Gs):iv,areTypedArraysEqual:a?Gs:tO};if(r&&(n=cv({},n,r(n))),t){var o=Hl(n.areArraysEqual),i=Hl(n.areMapsEqual),s=Hl(n.areObjectsEqual),c=Hl(n.areSetsEqual);n=cv({},n,{areArraysEqual:o,areMapsEqual:i,areObjectsEqual:s,areSetsEqual:c})}return n}function gO(e){return function(t,r,a,n,o,i,s){return e(t,r,s)}}function hO(e){var t=e.circular,r=e.comparator,a=e.createState,n=e.equals,o=e.strict;if(a)return function(c,u){var l=a(),d=l.cache,p=d===void 0?t?new WeakMap:void 0:d,f=l.meta;return r(c,u,{cache:p,equals:n,meta:f,strict:o})};if(t)return function(c,u){return r(c,u,{cache:new WeakMap,equals:n,meta:void 0,strict:o})};var i={cache:void 0,equals:n,meta:void 0,strict:o};return function(c,u){return r(c,u,i)}}var dZ=Tr(),pZ=Tr({strict:!0}),fZ=Tr({circular:!0}),mZ=Tr({circular:!0,strict:!0}),gZ=Tr({createInternalComparator:function(){return oi}}),hZ=Tr({strict:!0,createInternalComparator:function(){return oi}}),SZ=Tr({circular:!0,createInternalComparator:function(){return oi}}),yZ=Tr({circular:!0,createInternalComparator:function(){return oi},strict:!0});function Tr(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,a=e.createInternalComparator,n=e.createState,o=e.strict,i=o===void 0?!1:o,s=mO(e),c=fO(s),u=a?a(c):gO(c);return hO({circular:r,comparator:c,createState:n,equals:u,strict:i})}function kn(e,t,r=(a,n)=>a===n){return e.length===t.length&&e.findIndex((a,n)=>!r(t[n],a))===-1}function SO(e,t){return e.length!==t.length?!1:e.every(r=>t.findIndex(a=>zs(r,a))!==-1)}var zs=Tr({createCustomConfig:e=>({...e,areArraysEqual:SO})});var yO=T(Wc(),e=>{e.addCase(ht,(t,r)=>CO(t,r.payload)?void 0:r.payload)}),CO=(e,t)=>xO(e.context,t.context)&&vO(e.dictionaryFieldContext,t.dictionaryFieldContext)&&IO(e.advancedSearchQueries,t.advancedSearchQueries)&&AO(e.tabSet,t.tabSet)&&bO(e.staticFilterSet,t.staticFilterSet)&&lm(e.facetSet,t.facetSet)&&lm(e.dateFacetSet,t.dateFacetSet)&&lm(e.numericFacetSet,t.numericFacetSet)&&RO(e.automaticFacetSet,t.automaticFacetSet)&&FO(e.categoryFacetSet,t.categoryFacetSet)&&PO(e.pagination,t.pagination)&&wO(e.query,t.query)&&EO(e,t)&&kO(e.pipeline,t.pipeline)&&OO(e.searchHub,t.searchHub)&&qO(e.facetOrder,t.facetOrder)&&TO(e.debug,t.debug),xO=(e,t)=>JSON.stringify(e.contextValues)===JSON.stringify(t.contextValues),vO=(e,t)=>JSON.stringify(e.contextValues)===JSON.stringify(t.contextValues),AO=(e,t)=>{let r=uv(e),a=uv(t);return(r==null?void 0:r.id)===(a==null?void 0:a.id)},uv=e=>Object.values(e).find(t=>t.isActive),bO=(e,t)=>{for(let[r,a]of Object.entries(t)){if(!e[r])return!1;let n=lv(e[r]),o=lv(a);if(JSON.stringify(n)!==JSON.stringify(o))return!1}return!0},lv=e=>e.values.filter(t=>t.state!=="idle"),lm=(e,t)=>{for(let[r,a]of Object.entries(t)){if(!e[r])return!1;let n=e[r].request.currentValues.filter(i=>i.state!=="idle"),o=a.request.currentValues.filter(i=>i.state!=="idle");if(JSON.stringify(n)!==JSON.stringify(o))return!1}return!0},FO=(e,t)=>{var r;for(let[a,n]of Object.entries(t)){if(!e[a])return!1;let o=gt((r=e[a])==null?void 0:r.request.currentValues).map(({value:s})=>s),i=gt(n==null?void 0:n.request.currentValues).map(({value:s})=>s);if(JSON.stringify(o)!==JSON.stringify(i))return!1}return!0},RO=(e,t)=>{for(let[r,a]of Object.entries(t.set)){if(!e.set[r])return!1;let n=e.set[r].response.values.filter(i=>i.state!=="idle"),o=a.response.values.filter(i=>i.state!=="idle");if(JSON.stringify(n)!==JSON.stringify(o))return!1}return!0},PO=(e,t)=>e.firstResult===t.firstResult&&e.numberOfResults===t.numberOfResults,wO=(e,t)=>JSON.stringify(e)===JSON.stringify(t),IO=(e,t)=>JSON.stringify(e)===JSON.stringify(t),EO=(e,t)=>e.sortCriteria===t.sortCriteria,kO=(e,t)=>e===t,OO=(e,t)=>e===t,qO=(e,t)=>kn(e,t),TO=(e,t)=>e===t,Gl=bS({actionTypes:{redo:Tf.type,undo:qf.type,snapshot:ht.type},reducer:yO});function DO(e){if(!VO(e))throw k;let t=M(e),{dispatch:r}=e,a=()=>e.state,n=o=>o.past.length>0&&!te(o.present);return{...t,subscribe(o){o();let i=JSON.stringify(a().history.present),s=()=>{let c=JSON.stringify(a().history.present);i!==c&&(i=c,o())};return e.subscribe(()=>s())},get state(){return a().history},async back(){!n(this.state)||(await r(ks()),r(I({legacy:_l(),next:Jx()})))},async forward(){!this.state.future.length||!this.state.present||(await r(Fu()),r(I({legacy:Ul(),next:Kx()})))},async backOnNoResults(){!n(this.state)||(await r(ks()),r(I({legacy:$l(),next:Xx()})))}}}function VO(e){return e.addReducers({history:Gl,configuration:$,facetOrder:jl}),!0}var MO=new D({min:PS,default:zc,required:!1}),LO=new D({min:FS,max:RS,default:Gc,required:!1}),NO={desiredCount:LO,numberOfValues:MO},zl=C("automaticFacet/setOptions",e=>A(e,NO)),Wl=C("automaticFacet/deselectAll",e=>A(e,ee)),QO=O,Ma=C("automaticFacet/toggleSelectValue",e=>A(e,{field:QO,selection:new q({values:bn})}));var Dr=T(Ue(),e=>{e.addCase(yo,(t,r)=>{let a=dm(t),n=r.payload;t.defaultNumberOfResults=t.numberOfResults=n,t.firstResult=Ws(a,n)}).addCase(Co,(t,r)=>{t.numberOfResults=r.payload,t.firstResult=0}).addCase(jt,t=>{t.firstResult=0}).addCase(xo,(t,r)=>{let a=r.payload;t.firstResult=Ws(a,t.numberOfResults)}).addCase(Ft,(t,r)=>{let a=r.payload;t.firstResult=Ws(a,t.numberOfResults)}).addCase(Ao,t=>{let r=dm(t),a=Math.max(r-1,pn);t.firstResult=Ws(a,t.numberOfResults)}).addCase(vo,t=>{let r=dm(t),a=BO(t),n=Math.min(r+1,a);t.firstResult=Ws(n,t.numberOfResults)}).addCase(ce.fulfilled,(t,r)=>{r.payload&&(t.numberOfResults=r.payload.pagination.numberOfResults,t.firstResult=r.payload.pagination.firstResult)}).addCase(ue,(t,r)=>{var a,n;t.firstResult=(a=r.payload.firstResult)!=null?a:t.firstResult,t.numberOfResults=(n=r.payload.numberOfResults)!=null?n:t.defaultNumberOfResults}).addCase(I.fulfilled,(t,r)=>{let{response:a}=r.payload;t.totalCountFiltered=a.totalCountFiltered}).addCase(Da.fulfilled,(t,r)=>{let{response:a}=r.payload;t.totalCountFiltered=a.pagination.totalCount}).addCase(Ae,t=>{et(t)}).addCase(wr,t=>{et(t)}).addCase(Fr,t=>{et(t)}).addCase(kr,t=>{et(t)}).addCase(An,t=>{et(t)}).addCase(br,t=>{et(t)}).addCase(pr,t=>{et(t)}).addCase(ka,t=>{et(t)}).addCase(Bo,t=>{et(t)}).addCase(Pr,t=>{et(t)}).addCase(Er,t=>{et(t)}).addCase(Fe,t=>{et(t)}).addCase(Jr,t=>{et(t)}).addCase(Xr,t=>{et(t)}).addCase(vn,t=>{et(t)}).addCase(Ma,t=>{et(t)})});function et(e){e.firstResult=Ue().firstResult}function dm(e){let{firstResult:t,numberOfResults:r}=e;return pm(t,r)}function BO(e){let{totalCountFiltered:t,numberOfResults:r}=e;return fm(t,r)}function Ws(e,t){return(e-1)*t}function pm(e,t){return Math.round(e/t)+1}function fm(e,t){let r=Math.min(e,Vs);return Math.ceil(r/t)}function jO(e){return e.pagination.firstResult}function dv(e){return e.pagination.numberOfResults}function UO(e){return e.pagination.totalCountFiltered}var La=e=>{let t=jO(e),r=dv(e);return pm(t,r)},Yl=e=>{let t=UO(e),r=dv(e);return fm(t,r)},mm=(e,t)=>{let r=La(e),a=Yl(e),n=_O(r,t);return n=$O(n),n=HO(n,a),GO(n)};function _O(e,t){let r=t%2==0,a=Math.floor(t/2),n=r?a-1:a,o=e-a,i=e+n;return{start:o,end:i}}function $O(e){let t=Math.max(pn-e.start,0),r=e.start+t,a=e.end+t;return{start:r,end:a}}function HO(e,t){let r=Math.max(e.end-t,0),a=Math.max(e.start-r,pn),n=e.end-r;return{start:a,end:n}}function GO(e){let t=[];for(let r=e.start;r<=e.end;++r)t.push(r);return t}var ii=()=>E("analytics/pager/resize",(e,t)=>{var r;return e.makePagerResize({currentResultsPerPage:((r=t.pagination)==null?void 0:r.numberOfResults)||Ue().numberOfResults})}),si=()=>E("analytics/pager/number",(e,t)=>e.makePagerNumber({pagerNumber:La(t)})),Kl=()=>E("analytics/pager/next",(e,t)=>e.makePagerNext({pagerNumber:La(t)})),Jl=()=>E("analytics/pager/previous",(e,t)=>e.makePagerPrevious({pagerNumber:La(t)}));var zO=new Y({numberOfPages:new D({default:5,min:0})}),WO=new Y({page:new D({min:1})});function pv(e,t={}){if(!YO(e))throw k;let r=M(e),{dispatch:a}=e,n=he(e,zO,t.options,"buildPager"),i=ke(e,WO,t.initialState,"buildPager").page;i&&a(xo(i));let s=()=>La(e.state),c=()=>{let{numberOfPages:l}=n;return mm(e.state,l)},u=()=>Yl(e.state);return{...r,get state(){let l=s(),d=u(),p=l>pn&&d>0,f=le.state;return{...t,get state(){return{hasError:r().search.error!==null,error:r().search.error}}}}function JO(e){return e.addReducers({search:J}),!0}function XO(e){return fv(e)}function ci(e){if(!ZO(e))throw k;let t=M(e),r=()=>e.state;return{...t,get state(){let a=r();return{hasError:a.search.error!==null,isLoading:a.search.isLoading,hasResults:!!a.search.results.length,firstSearchExecuted:Ms(a)}}}}function ZO(e){return e.addReducers({search:J}),!0}function mv(e){if(!eq(e))throw k;let t=M(e),r=ci(e),a=()=>e.state,n=()=>{let o=a().search.duration/1e3;return Math.round((o+Number.EPSILON)*100)/100};return{...t,get state(){return{...r.state,durationInMilliseconds:a().search.duration,durationInSeconds:n(),firstResult:a().pagination.firstResult+1,hasDuration:a().search.duration!==0,hasQuery:a().search.queryExecuted!=="",lastResult:a().pagination.firstResult+a().search.results.length,query:a().search.queryExecuted,total:a().pagination.totalCountFiltered}}}}function eq(e){return e.addReducers({search:J,pagination:Dr}),!0}function tq(e){return mv(e)}var rq=new Y({fieldsToInclude:new X({required:!1,each:new w({required:!0,emptyAllowed:!1})})});function Xl(e,t){if(!aq(e))throw k;let r=M(e),a=ci(e),{dispatch:n}=e,o=()=>e.state,i=he(e,rq,t==null?void 0:t.options,"buildCoreResultList");i.fieldsToInclude&&n(Pa(i.fieldsToInclude));let s=()=>e.state.search.results.length{if(e.state.search.isLoading)return;if(!s()){e.logger.info("No more results are available for the result list to fetch.");return}if(Date.now()-c=l){c=Date.now(),!p&&e.logger.error(`The result list method "fetchMoreResults" execution prevented because it has been triggered consecutively ${l} times, with little delay. Please verify the conditions under which the function is called.`),p=!0;return}}else u=0;p=!1,(t==null?void 0:t.fetchMoreResultsActionCreator)&&(await n(t==null?void 0:t.fetchMoreResultsActionCreator()),c=Date.now())}}}function aq(e){return e.addReducers({search:J,configuration:$,fields:Ea}),!0}function nq(e,t){return Xl(e,{...t,fetchMoreResultsActionCreator:Fa})}var oq={results:new X({required:!0,each:new q({values:oo})}),maxLength:new D({required:!0,min:1,default:10})},ui=C("recentResults/registerRecentResults",e=>A(e,oq)),wt=C("recentResults/pushRecentResult",e=>(ut(e),{payload:e})),li=C("recentResults/clearRecentResults");var Zl=e=>E({prefix:"analytics/result/open",__legacy__getBuilder:(t,r)=>(ut(e),t.makeDocumentOpen(Oe(e,r),Le(e))),analyticsType:"itemClick",analyticsPayloadBuilder:t=>{var n,o;let r=Oe(e,t),a=Le(e);return{searchUid:(o=(n=t.search)==null?void 0:n.response.searchUid)!=null?o:"",position:r.documentPosition,itemMetadata:{uniqueFieldName:a.contentIDKey,uniqueFieldValue:a.contentIDValue,title:r.documentTitle,author:r.documentAuthor,url:r.documentUrl}}}});function dt(e,t,r){if(!iq(e))throw k;let a=1e3,n={selectionDelay:a,debounceWait:a,...t.options},o;return{select:Uu(r,n.debounceWait,{isImmediate:!0}),beginDelayedSelect(){o=setTimeout(r,n.selectionDelay)},cancelPendingSelect(){o&&clearTimeout(o)}}}function iq(e){return e.addReducers({configuration:$}),!0}function sq(e,t){let r=!1,a=()=>{r||(r=!0,e.dispatch(Zl(t.options.result)))};return dt(e,t,()=>{a(),e.dispatch(wt(t.options.result))})}function cq(e,t){let r=!1,a=()=>{r||(r=!0,e.dispatch(Ky(t.options.result)))};return dt(e,t,()=>{a(),e.dispatch(wt(t.options.result))})}var uq=new Y({numberOfResults:new D({min:0})});function gv(e,t={}){if(!lq(e))throw k;let r=M(e),{dispatch:a}=e,n=()=>e.state,i=ke(e,uq,t.initialState,"buildResultsPerPage").numberOfResults;return i!==void 0&&a(yo(i)),{...r,get state(){return{numberOfResults:n().pagination.numberOfResults}},set(s){a(Co(s))},isSetTo(s){return s===this.state.numberOfResults}}}function lq(e){return e.addReducers({pagination:Dr,configuration:$}),!0}function dq(e,t={}){if(!pq(e))throw k;let r=gv(e,t),{dispatch:a}=e;return{...r,get state(){return{...r.state}},set(n){r.set(n),a(ur({legacy:ii()}))}}}function pq(e){return e.addReducers({pagination:Dr,configuration:$}),!0}var On={id:O},di=C("querySuggest/register",e=>A(e,{...On,count:new D({min:0})})),hv=C("querySuggest/unregister",e=>A(e,On)),Vr=C("querySuggest/selectSuggestion",e=>A(e,{...On,expression:ge})),Na=C("querySuggest/clear",e=>A(e,On)),Qa=W("querySuggest/fetch",async(e,{getState:t,rejectWithValue:r,extra:{apiClient:a,validatePayload:n}})=>{n(e,On);let o=e.id,i=await fq(o,t()),s=await a.querySuggest(i);return ye(s)?r(s.error):{id:o,q:i.q,...s.success}}),fq=async(e,t)=>({accessToken:t.configuration.accessToken,organizationId:t.configuration.organizationId,url:t.configuration.search.apiBaseUrl,count:t.querySuggest[e].count,q:t.querySet[e],locale:t.configuration.search.locale,timezone:t.configuration.search.timezone,actionsHistory:t.configuration.analytics.enabled?vt.getHistory():[],...t.context&&{context:t.context.contextValues},...t.pipeline&&{pipeline:t.pipeline},...t.searchHub&&{searchHub:t.searchHub},...t.configuration.analytics.enabled&&{visitorId:await We(t.configuration.analytics),...t.configuration.analytics.enabled&&await bo(t.configuration.analytics)},...t.configuration.search.authenticationProviders.length&&{authentication:t.configuration.search.authenticationProviders.join(",")}});var Ba=()=>E("analytics/searchbox/submit",e=>e.makeSearchboxSubmit()),ed=()=>({actionCause:oe.searchboxSubmit,getEventExtraPayload:e=>new ae(()=>e).getBaseMetadata()});var Sv={id:O,query:ge},pi=C("querySet/register",e=>A(e,Sv)),qn=C("querySet/update",e=>A(e,Sv));var fi=T(pa(),e=>{e.addCase(pi,(t,r)=>{let{id:a,query:n}=r.payload;a in t||(t[a]=n)}).addCase(qn,(t,r)=>{let{id:a,query:n}=r.payload;gm(t,a,n)}).addCase(Vr,(t,r)=>{let{id:a,expression:n}=r.payload;gm(t,a,n)}).addCase(I.fulfilled,(t,r)=>{let{queryExecuted:a}=r.payload;yv(t,a)}).addCase(ue,(t,r)=>{te(r.payload.q)||yv(t,r.payload.q)}).addCase(ce.fulfilled,(t,r)=>{if(!!r.payload)for(let[a,n]of Object.entries(r.payload.querySet))gm(t,a,n)})});function yv(e,t){Object.keys(e).forEach(r=>e[r]=t)}var gm=(e,t,r)=>{t in e&&(e[t]=r)};var td=e=>E("analytics/querySuggest",(t,r)=>{let a=hm(r,e);return t.makeOmniboxAnalytics(a)}),Cv=(e,t)=>({actionCause:oe.omniboxAnalytics,getEventExtraPayload:r=>new ae(()=>r).getOmniboxAnalyticsMetadata(e,t)});function hm(e,t){let{id:r,suggestion:a}=t,n=e.querySuggest&&e.querySuggest[r];if(!n)throw new Error(`Unable to determine the query suggest analytics metadata to send because no query suggest with id "${r}" was found. Please check the sent #id.`);let o=n.completions.map(u=>u.expression),i=n.partialQueries.length-1,s=n.partialQueries[i]||"",c=n.responseId;return{suggestionRanking:o.indexOf(a),partialQuery:s,partialQueries:n.partialQueries,suggestions:o,querySuggestResponseId:c}}var rd=W("commerce/querySuggest/fetch",async(e,{getState:t,rejectWithValue:r,extra:{apiClient:a,validatePayload:n}})=>{n(e,On);let o=t(),i=await mq(e.id,o),s=await a.querySuggest(i);return ye(s)?r(s.error):{id:e.id,query:i.query,...s.success}}),mq=async(e,t)=>{let{view:r,user:a,...n}=t.commerceContext;return{accessToken:t.configuration.accessToken,url:t.configuration.platformUrl,organizationId:t.configuration.organizationId,query:t.querySet[e],...n,clientId:await We(t.configuration.analytics),context:{user:a,view:r,cart:t.cart.cartItems.map(o=>t.cart.cart[o])}}};var mi=T(Mc(),e=>e.addCase(di,(t,r)=>{let a=r.payload.id;a in t||(t[a]=gq(r.payload))}).addCase(hv,(t,r)=>{delete t[r.payload.id]}).addCase(Qa.pending,xv).addCase(Qa.fulfilled,(t,r)=>{let a=t[r.meta.arg.id];if(!a||r.meta.requestId!==a.currentRequestId)return;let{q:n}=r.payload;n&&a.partialQueries.push(n.replace(/;/,encodeURIComponent(";"))),a.responseId=r.payload.responseId,a.completions=r.payload.completions,a.isLoading=!1,a.error=null}).addCase(Qa.rejected,vv).addCase(rd.pending,xv).addCase(rd.fulfilled,(t,r)=>{let a=t[r.meta.arg.id];if(!a||r.meta.requestId!==a.currentRequestId)return;let{query:n}=r.payload;n&&a.partialQueries.push(n.replace(/;/,encodeURIComponent(";"))),a.responseId=r.payload.responseId,a.completions=r.payload.completions.map(o=>({expression:o.expression,highlighted:o.highlighted,score:0,executableConfidence:0})),a.isLoading=!1,a.error=null}).addCase(rd.rejected,vv).addCase(Na,(t,r)=>{let a=t[r.payload.id];!a||(a.responseId="",a.completions=[],a.partialQueries=[])}));function gq(e){return{id:"",completions:[],responseId:"",count:5,currentRequestId:"",error:null,partialQueries:[],isLoading:!1,...e}}function xv(e,t){let r=e[t.meta.arg.id];!r||(r.currentRequestId=t.meta.requestId,r.isLoading=!0)}function vv(e,t){let r=e[t.meta.arg.id];!r||(r.error=t.payload||null,r.isLoading=!1)}var It=T(xe(),e=>e.addCase(Ye,(t,r)=>({...t,...r.payload})).addCase(Rt,(t,r)=>{t.q=r.payload}).addCase(Vr,(t,r)=>{t.q=r.payload.expression}).addCase(ce.fulfilled,(t,r)=>{var a,n;return(n=(a=r.payload)==null?void 0:a.query)!=null?n:t}).addCase(ue,(t,r)=>{var a,n;t.q=(a=r.payload.q)!=null?a:t.q,t.enableQuerySyntax=(n=r.payload.enableQuerySyntax)!=null?n:t.enableQuerySyntax}));var ad={enableQuerySyntax:!1,numberOfSuggestions:5,clearFilters:!0},Sm={open:new w,close:new w},ym={id:O,numberOfSuggestions:new D({min:0}),enableQuerySyntax:new K,highlightOptions:new q({values:{notMatchDelimiters:new q({values:Sm}),exactMatchDelimiters:new q({values:Sm}),correctionDelimiters:new q({values:Sm})}}),clearFilters:new K},Av=new Y(ym);function bv(e,t){var u,l;if(!Sq(e))throw k;let r=M(e),{dispatch:a}=e,n=()=>e.state,o=((u=t.options)==null?void 0:u.id)||la("search_box"),i={id:o,highlightOptions:{...(l=t.options)==null?void 0:l.highlightOptions},...ad,...t.options};he(e,Av,i,"buildSearchBox"),a(pi({id:o,query:e.state.query.q})),i.numberOfSuggestions&&a(di({id:o,count:i.numberOfSuggestions}));let s=()=>e.state.querySet[i.id],c=async d=>{let{enableQuerySyntax:p,clearFilters:f}=i;a(Bu({q:s(),enableQuerySyntax:p,clearFilters:f})),t.isNextAnalyticsReady?a(t.executeSearchActionCreator(d)):a(t.executeSearchActionCreator(d.legacy))};return{...r,updateText(d){a(qn({id:o,query:d})),this.showSuggestions()},clear(){a(qn({id:o,query:""})),a(Na({id:o}))},showSuggestions(){i.numberOfSuggestions&&a(t.fetchQuerySuggestionsActionCreator({id:o}))},selectSuggestion(d){a(Vr({id:o,expression:d})),c({legacy:td({id:o,suggestion:d}),next:Cv(o,d)}).then(()=>{a(Na({id:o}))})},submit(d=Ba(),p){c({legacy:d,next:p}),a(Na({id:o}))},get state(){let d=n(),p=d.querySuggest[i.id],f=hq(p,i.highlightOptions),m=p?p.isLoading:!1;return{value:s(),suggestions:f,isLoading:d.search.isLoading,isLoadingSuggestions:m}}}}function hq(e,t){return e?e.completions.map(r=>({highlightedValue:of(r.highlighted,t),rawValue:r.expression})):[]}function Sq(e){return e.addReducers({query:It,querySuggest:mi,configuration:$,querySet:fi,search:J}),!0}function Cm(e,t={}){let r=bv(e,{...t,executeSearchActionCreator:I,fetchQuerySuggestionsActionCreator:Qa,isNextAnalyticsReady:!0});return{...r,submit(){r.submit(Ba(),ed())},get state(){return r.state}}}var nd=T(Yc(),e=>{e.addCase(ho,(t,r)=>{let{id:a}=r.payload;t[a]||(t[a]={q:"",cache:{}})}),e.addCase(sr,(t,r)=>{let{q:a,id:n}=r.payload;!a||(t[n].q=a)}),e.addCase(So,(t,r)=>{let{id:a}=r.payload;Object.entries(t[a].cache).forEach(([n,o])=>{Kc(o)&&delete t[a].cache[n]})}),e.addCase(To.pending,(t,r)=>{for(let n in t)for(let o in t[n].cache)t[n].cache[o].isActive=!1;if(!od(t,r.meta)){yq(t,r.meta);return}let a=od(t,r.meta);a.isLoading=!0,a.isActive=!0,a.error=null}),e.addCase(To.fulfilled,(t,r)=>{let{results:a,searchUid:n,totalCountFiltered:o,duration:i}=r.payload,{cacheTimeout:s}=r.meta.arg,c=od(t,r.meta);c.isActive=!0,c.searchUid=n,c.isLoading=!1,c.error=null,c.results=a,c.expiresAt=s?s+Date.now():0,c.totalCountFiltered=o,c.duration=i}),e.addCase(To.rejected,(t,r)=>{let a=od(t,r.meta);a.error=r.error||null,a.isLoading=!1,a.isActive=!1})}),yq=(e,t)=>{let{q:r,id:a}=t.arg;e[a].cache[r]={isLoading:!0,error:null,results:[],expiresAt:0,isActive:!0,searchUid:"",totalCountFiltered:0,duration:0}},od=(e,t)=>{let{q:r,id:a}=t.arg;return e[a].cache[r]||null};var Cq={searchBoxId:de,maxResultsPerQuery:new D({required:!0,min:1}),cacheTimeout:new D},Fv=new Y(Cq);function xq(e,t){if(!vq(e))throw k;let r=M(e),{dispatch:a}=e,n=()=>e.state,o={searchBoxId:t.options.searchBoxId||la("instant-results-"),cacheTimeout:t.options.cacheTimeout||6e4,maxResultsPerQuery:t.options.maxResultsPerQuery};he(e,Fv,o,"buildInstantResults");let i=o.searchBoxId;a(ho({id:i}));let s=()=>n().instantResults[i],c=d=>s().cache[d],u=()=>s().q,l=()=>{let d=c(u());return d?d.isLoading?[]:d.results:[]};return{...r,updateQuery(d){if(!d)return;let p=c(d);(!p||!p.isLoading&&(p.error||Kc(p)))&&a(To({id:i,q:d,maxResultsPerQuery:o.maxResultsPerQuery,cacheTimeout:o.cacheTimeout})),a(sr({id:i,q:d}))},clearExpired(){a(So({id:i}))},get state(){let d=u(),p=c(d);return{q:d,isLoading:(p==null?void 0:p.isLoading)||!1,error:(p==null?void 0:p.error)||null,results:l()}}}}function vq(e){return e.addReducers({instantResults:nd}),!0}var gi=()=>E("analytics/sort/results",(e,t)=>e.makeResultsSort({resultsSortBy:t.sortCriteria||tt()})),id=()=>({actionCause:oe.resultsSort,getEventExtraPayload:e=>new ae(()=>e).getResultSortMetadata()});var Rv={by:new Dt({enum:Zt,required:!0})},hi=C("sortCriteria/register",e=>Pv(e)),Si=C("sortCriteria/update",e=>Pv(e)),Pv=e=>_n(e)?(e.forEach(t=>A(t,Rv)),{payload:e}):A(e,Rv);var sd=T(tt(),e=>{e.addCase(hi,(t,r)=>Hr(r.payload)).addCase(Si,(t,r)=>Hr(r.payload)).addCase(ce.fulfilled,(t,r)=>{var a,n;return(n=(a=r.payload)==null?void 0:a.sortCriteria)!=null?n:t}).addCase(ue,(t,r)=>{var a;return(a=r.payload.sortCriteria)!=null?a:t})});function Aq(e,t){if(!t)return;let r=new Y({criterion:new X({each:xS})}),a=bq(t),n={...t,criterion:a};ke(e,r,n,"buildSort")}function bq(e){return e.criterion?_n(e.criterion)?e.criterion:[e.criterion]:[]}function wv(e,t){var i;if(!Fq(e))throw k;let r=M(e),{dispatch:a}=e,n=()=>e.state;Aq(e,t.initialState);let o=(i=t.initialState)==null?void 0:i.criterion;return o&&a(hi(o)),{...r,sortBy(s){a(Si(s)),a(Ft(1))},isSortedBy(s){return this.state.sortCriteria===Hr(s)},get state(){return{sortCriteria:n().sortCriteria}}}}function Fq(e){return e.addReducers({configuration:$,sortCriteria:sd}),!0}function Rq(e,t={}){let{dispatch:r}=e,a=wv(e,t),n=()=>r(I({legacy:gi(),next:id()}));return{...a,get state(){return a.state},sortBy(o){a.sortBy(o),n()}}}var Tn=O,cd=new q({options:{required:!0},values:{caption:ge,expression:ge,state:new w({constrainTo:["idle","selected","excluded"]})}}),ud=new X({required:!0,each:cd});var yi=C("staticFilter/register",e=>A(e,{id:Tn,values:ud})),Zr=C("staticFilter/toggleSelect",e=>A(e,{id:Tn,value:cd})),ea=C("staticFilter/toggleExclude",e=>A(e,{id:Tn,value:cd})),ja=C("staticFilter/deselectAllFilterValues",e=>A(e,Tn)),ld=e=>E("analytics/staticFilter/select",t=>t.makeStaticFilterSelect(e)),Ci=e=>E("analytics/staticFilter/deselect",t=>t.makeStaticFilterDeselect(e)),dd=e=>E("analytics/staticFilter/clearAll",t=>t.makeStaticFilterClearAll(e)),Iv=(e,t)=>({actionCause:oe.staticFilterSelect,getEventExtraPayload:r=>new ae(()=>r).getStaticFilterToggleMetadata(e,t)}),pd=(e,t)=>({actionCause:oe.staticFilterDeselect,getEventExtraPayload:r=>new ae(()=>r).getStaticFilterToggleMetadata(e,t)}),Ev=e=>({actionCause:oe.staticFilterClearAll,getEventExtraPayload:t=>new ae(()=>t).getStaticFilterClearAllMetadata(e)});var fd=T(an(),e=>e.addCase(yi,(t,r)=>{let a=r.payload,{id:n}=a;n in t||(t[n]=a)}).addCase(Zr,(t,r)=>{let{id:a,value:n}=r.payload,o=t[a];if(!o)return;let i=o.values.find(c=>c.caption===n.caption);if(!i)return;let s=i.state==="selected";i.state=s?"idle":"selected"}).addCase(ea,(t,r)=>{let{id:a,value:n}=r.payload,o=t[a];if(!o)return;let i=o.values.find(c=>c.caption===n.caption);if(!i)return;let s=i.state==="excluded";i.state=s?"idle":"excluded"}).addCase(ja,(t,r)=>{let a=r.payload,n=t[a];!n||n.values.forEach(o=>o.state="idle")}).addCase(Fe,t=>{Object.values(t).forEach(r=>{r.values.forEach(a=>a.state="idle")})}).addCase(ue,(t,r)=>{let a=r.payload.sf||{};Object.entries(t).forEach(([n,o])=>{let i=a[n]||[];o.values.forEach(s=>{s.state=i.includes(s.caption)?"selected":"idle"})})}));function kv(e){return{state:"idle",...e}}var Pq=new Y({id:Tn,values:ud});function wq(e,t){if(!Iq(e))throw k;he(e,Pq,t.options,"buildStaticFilter");let r=M(e),{dispatch:a}=e,n=()=>e.state,{id:o}=t.options;return a(yi(t.options)),{...r,toggleSelect(i){a(Zr({id:o,value:i})),a(I({legacy:md(o,i),next:gd(o,i)}))},toggleSingleSelect(i){i.state==="idle"&&a(ja(o)),a(Zr({id:o,value:i})),a(I({legacy:md(o,i),next:gd(o,i)}))},toggleExclude(i){a(ea({id:o,value:i})),a(I({legacy:md(o,i),next:gd(o,i)}))},toggleSingleExclude(i){i.state==="idle"&&a(ja(o)),a(ea({id:o,value:i})),a(I({legacy:md(o,i),next:gd(o,i)}))},deselectAll(){a(ja(o)),a(I({legacy:dd({staticFilterId:o}),next:Ev(o)}))},isValueSelected(i){return i.state==="selected"},isValueExcluded(i){return i.state==="excluded"},get state(){var c;let i=((c=n().staticFilterSet[o])==null?void 0:c.values)||[],s=i.some(u=>u.state!=="idle");return{id:o,values:i,hasActiveValues:s}}}}function Iq(e){return e.addReducers({staticFilterSet:fd}),!0}function md(e,t){let{caption:r,expression:a,state:n}=t;return(n==="idle"?ld:Ci)({staticFilterId:e,staticFilterValue:{caption:r,expression:a}})}function gd(e,t){return t.state==="selected"?Iv(e,t):pd(e,t)}var hd=T(nn(),e=>{e.addCase(Do,(t,r)=>{let a=r.payload,{id:n}=a;n in t||(t[n]={...a,isActive:!1})}).addCase(jt,(t,r)=>{let a=r.payload;Ov(t,a)}).addCase(ue,(t,r)=>{let a=r.payload.tab||"";Ov(t,a)}).addCase(ce.fulfilled,(t,r)=>{var a,n;return(n=(a=r.payload)==null?void 0:a.tabSet)!=null?n:t})});function Ov(e,t){t in e&&Object.keys(e).forEach(a=>{e[a].isActive=a===t})}var Eq=new Y({expression:ge,id:O}),kq=new Y({isActive:new K});function qv(e,t){if(qq(t.options.id),!Oq(e))throw k;let r=M(e),{dispatch:a}=e;he(e,Eq,t.options,"buildTab");let n=ke(e,kq,t.initialState,"buildTab"),{id:o,expression:i}=t.options;return a(Do({id:o,expression:i})),n.isActive&&a(jt(o)),{...r,select(){a(jt(o))},get state(){var c;return{isActive:(c=e.state.tabSet[o])==null?void 0:c.isActive}}}}function Oq(e){return e.addReducers({configuration:$,tabSet:hd}),!0}function qq(e){let t=it().analytics.originLevel2;if(e===t)throw new Error(`The #id option on the Tab controller cannot use the reserved value "${t}". Please specify a different value.`)}function Tq(e,t){let{dispatch:r}=e,a=qv(e,t),n=()=>r(I({legacy:ya(),next:io()}));return{...a,get state(){return a.state},select(){a.select(),n()}}}function Tv(e){if(!Dq(e))throw k;let t=M(e),r=()=>e.state;return{...t,sort(a){return Ro(a,this.state.facetIds)},get state(){return{facetIds:r().search.response.facets.map(o=>o.facetId)}}}}function Dq(e){return e.addReducers({search:J,facetOptions:Qe}),!0}function Vq(e){return Tv(e)}var Mq={categoryFacetId:ee,categoryFacetPath:new X({required:!0,each:O})},Lq=(e,{categoryFacetId:t,categoryFacetPath:r})=>{let a=e.categoryFacetSet[t],n=a==null?void 0:a.request.field,o=`${n}_${t}`;return{categoryFacetId:t,categoryFacetPath:r,categoryFacetField:n,categoryFacetTitle:o}},Sd=e=>E("analytics/categoryFacet/breadcrumb",(t,r)=>(A(e,Mq),t.makeBreadcrumbFacet(Lq(r,e)))),Dv=(e,t)=>({actionCause:oe.breadcrumbFacet,getEventExtraPayload:r=>new ae(()=>r).getCategoryBreadcrumbFacetMetadata(e,t)});var yd=()=>E("analytics/facet/deselectAllBreadcrumbs",e=>e.makeBreadcrumbResetAll()),Vv=()=>({actionCause:oe.breadcrumbResetAll,getEventExtraPayload:e=>new ae(()=>e).getBaseMetadata()});var Cd=(e,{facetId:t,selection:r})=>{let n=(e.dateFacetSet[t]||e.numericFacetSet[t]).request.field,o=`${n}_${t}`;return{facetId:t,facetField:n,facetTitle:o,facetRangeEndInclusive:r.endInclusive,facetRangeEnd:`${r.end}`,facetRangeStart:`${r.start}`}},xd=(e,t)=>({actionCause:oe.breadcrumbFacet,getEventExtraPayload:r=>new ae(()=>r).getRangeBreadcrumbFacetMetadata(e,t)});var Ys=e=>E("analytics/dateFacet/breadcrumb",(t,r)=>{A(e,En(e.selection));let a=Cd(r,e);return t.makeBreadcrumbFacet(a)}),xm=(e,t)=>xd(e,t);var Ks=e=>E("analytics/numericFacet/breadcrumb",(t,r)=>{A(e,En(e.selection));let a=Cd(r,e);return t.makeBreadcrumbFacet(a)}),vm=(e,t)=>xd(e,t);var vd=e=>Object.keys(e.facetSet).map(t=>{let r=e.facetValuesSelector(e.engine.state,t).map(a=>({value:a,deselect:()=>{a.state==="selected"?e.executeToggleSelect({facetId:t,selection:a}):a.state==="excluded"&&e.executeToggleExclude({facetId:t,selection:a})}}));return{facetId:t,field:e.facetSet[t].request.field,values:r}}).filter(t=>t.values.length);function Mv(e){let t=M(e),{dispatch:r}=e;return{...t,get state(){return{facetBreadcrumbs:[],categoryFacetBreadcrumbs:[],numericFacetBreadcrumbs:[],dateFacetBreadcrumbs:[],staticFilterBreadcrumbs:[],hasBreadcrumbs:!1}},deselectAll:()=>{r(Fe())},deselectBreadcrumb(a){a.deselect()}}}function Nq(e){if(!Qq(e))throw k;let t=Mv(e),{dispatch:r}=e,a=()=>e.state,n=()=>{let S={engine:e,facetSet:a().facetSet,executeToggleSelect:({facetId:y,selection:x})=>{r(br({facetId:y,selection:x})),r(Kr({facetId:y,freezeCurrentValues:!1})),r(I({legacy:Yo({facetId:y,facetValue:x.value}),next:el(y,x.value)}))},executeToggleExclude:({facetId:y,selection:x})=>{r(Fr({facetId:y,selection:x})),r(Kr({facetId:y,freezeCurrentValues:!1})),r(I({legacy:Yo({facetId:y,facetValue:x.value}),next:el(y,x.value)}))},facetValuesSelector:yy};return vd(S)},o=()=>{let S={engine:e,facetSet:a().numericFacetSet,executeToggleSelect:y=>{r(Er(y)),r(I({legacy:Ks(y),next:vm(y.facetId,y.selection)}))},executeToggleExclude:y=>{r(kr(y)),r(I({legacy:Ks(y),next:vm(y.facetId,y.selection)}))},facetValuesSelector:_x};return vd(S)},i=()=>{let S={engine:e,facetSet:a().dateFacetSet,executeToggleSelect:y=>{r(Pr(y)),r(I({legacy:Ys(y),next:xm(y.facetId,y.selection)}))},executeToggleExclude:y=>{r(wr(y)),r(I({legacy:Ys(y),next:xm(y.facetId,y.selection)}))},facetValuesSelector:Wx};return vd(S)},s=()=>Object.keys(a().categoryFacetSet).map(c).filter(S=>S.path.length),c=S=>{let y=xy(a(),S);return{facetId:S,field:a().categoryFacetSet[S].request.field,path:y,deselect:()=>{r(pr(S)),r(I({legacy:Sd({categoryFacetPath:y.map(x=>x.value),categoryFacetId:S}),next:Dv(S,y.map(x=>x.value))}))}}},u=()=>{var y;let S=(y=a().staticFilterSet)!=null?y:{};return Object.values(S).map(l)},l=S=>{let{id:y,values:x}=S,b=x.filter(P=>P.state!=="idle").map(P=>d(y,P));return{id:y,values:b}},d=(S,y)=>({value:y,deselect:()=>{let{caption:x,expression:b}=y;y.state==="selected"?r(Zr({id:S,value:y})):y.state==="excluded"&&r(ea({id:S,value:y})),r(I({legacy:Ci({staticFilterId:S,staticFilterValue:{caption:x,expression:b}}),next:pd(S,{caption:x,expression:b})}))}}),p=()=>{var y,x;let S=(x=(y=a().automaticFacetSet)==null?void 0:y.set)!=null?x:{};return Object.values(S).map(b=>f(b.response))},f=S=>{let{field:y,label:x}=S,b=S.values.filter(P=>P.state==="selected").map(P=>m(y,P));return{facetId:y,field:y,label:x,values:b}},m=(S,y)=>({value:y,deselect:()=>{r(Ma({field:S,selection:y})),r(I({legacy:Yo({facetId:S,facetValue:y.value}),next:el(S,y.value)}))}});function g(){return!![...n(),...o(),...i(),...s(),...u(),...p()].length}return{...t,get state(){return{facetBreadcrumbs:n(),categoryFacetBreadcrumbs:s(),numericFacetBreadcrumbs:o(),dateFacetBreadcrumbs:i(),staticFilterBreadcrumbs:u(),automaticFacetBreadcrumbs:p(),hasBreadcrumbs:g()}},deselectAll:()=>{t.deselectAll(),r(I({legacy:yd(),next:Vv()}))}}}function Qq(e){return e.addReducers({configuration:$,search:J,facetSet:Or,numericFacetSet:Pt,dateFacetSet:qr,categoryFacetSet:fr}),!0}function Lv(e){return e.type==="redirect"}var Am=class{constructor(t){this.response=t}get basicExpression(){return this.response.parsedInput.basicExpression}get largeExpression(){return this.response.parsedInput.largeExpression}get redirectionUrl(){let t=this.response.preprocessingOutput.triggers.filter(Lv);return t.length?t[0].content:null}};var xi=C("standaloneSearchBox/register",e=>A(e,{id:O,redirectionUrl:O})),vi=C("standaloneSearchBox/reset",e=>A(e,{id:O})),Ai=C("standaloneSearchBox/updateAnalyticsToSearchFromLink",e=>A(e,{id:O})),bi=C("standaloneSearchBox/updateAnalyticsToOmniboxFromLink"),Ua=W("standaloneSearchBox/fetchRedirect",async(e,{dispatch:t,getState:r,rejectWithValue:a,extra:{apiClient:n,validatePayload:o}})=>{o(e,{id:new w({emptyAllowed:!1})});let i=await jq(r()),s=await n.plan(i);if(ye(s))return a(s.error);let{redirectionUrl:c}=new Am(s.success);return c&&t(Bq(c)),c||""}),Bq=e=>E("analytics/standaloneSearchBox/redirect",t=>t.makeTriggerRedirect({redirectedTo:e})),jq=async e=>({accessToken:e.configuration.accessToken,organizationId:e.configuration.organizationId,url:e.configuration.search.apiBaseUrl,locale:e.configuration.search.locale,timezone:e.configuration.search.timezone,q:e.query.q,...e.context&&{context:e.context.contextValues},...e.pipeline&&{pipeline:e.pipeline},...e.searchHub&&{searchHub:e.searchHub},...e.configuration.analytics.enabled&&{visitorId:await We(e.configuration.analytics)},...e.configuration.analytics.enabled&&await bo(e.configuration.analytics),...e.configuration.search.authenticationProviders.length&&{authentication:e.configuration.search.authenticationProviders.join(",")}});var Ad=T(Zc(),e=>e.addCase(xi,(t,r)=>{let{id:a,redirectionUrl:n}=r.payload;a in t||(t[a]=Nv(n))}).addCase(vi,(t,r)=>{let{id:a}=r.payload,n=t[a];if(n){t[a]=Nv(n.defaultRedirectionUrl);return}}).addCase(Ua.pending,(t,r)=>{let a=t[r.meta.arg.id];!a||(a.isLoading=!0)}).addCase(Ua.fulfilled,(t,r)=>{let a=r.payload,n=t[r.meta.arg.id];!n||(n.redirectTo=a||n.defaultRedirectionUrl,n.isLoading=!1)}).addCase(Ua.rejected,(t,r)=>{let a=t[r.meta.arg.id];!a||(a.isLoading=!1)}).addCase(Ai,(t,r)=>{let a=t[r.payload.id];!a||(a.analytics.cause="searchFromLink")}).addCase(bi,(t,r)=>{let a=t[r.payload.id];!a||(a.analytics.cause="omniboxFromLink",a.analytics.metadata=r.payload.metadata)}));function Nv(e){return{defaultRedirectionUrl:e,redirectTo:"",isLoading:!1,analytics:{cause:"",metadata:null}}}var Qv=new Y({...ym,redirectionUrl:new w({required:!0,emptyAllowed:!1})});function Uq(e,t){if(!_q(e))throw k;let{dispatch:r}=e,a=()=>e.state,n=t.options.id||la("standalone_search_box"),o={id:n,highlightOptions:{...t.options.highlightOptions},...ad,...t.options};he(e,Qv,o,"buildStandaloneSearchBox");let i=Cm(e,{options:o});return r(xi({id:n,redirectionUrl:o.redirectionUrl})),{...i,updateText(s){i.updateText(s),r(Ai({id:n}))},selectSuggestion(s){let c=hm(a(),{id:n,suggestion:s});r(Vr({id:n,expression:s})),r(bi({id:n,metadata:c})),this.submit()},afterRedirection(){r(vi({id:n}))},submit(){r(Ye({q:this.state.value,enableQuerySyntax:o.enableQuerySyntax})),r(Ua({id:n}))},get state(){let c=a().standaloneSearchBoxSet[n];return{...i.state,isLoading:c.isLoading,redirectTo:c.redirectTo,analytics:c.analytics}}}}function _q(e){return e.addReducers({standaloneSearchBoxSet:Ad,configuration:$,query:It,querySuggest:mi}),!0}function Bv(e,t){return e.q!==t.q?Ba():e.sortCriteria!==t.sortCriteria?gi():e.firstResult!==t.firstResult?si():e.numberOfResults!==t.numberOfResults?ii():Et(e.f,t.f)?Js(e.f,t.f):Et(e.fExcluded,t.fExcluded)?Js(e.fExcluded,t.fExcluded,!0):Et(e.cf,t.cf)?Js(e.cf,t.cf):Et(e.af,t.af)?Js(e.af,t.af):Et(e.nf,t.nf)?jv(e.nf,t.nf):Et(e.df,t.df)?jv(e.df,t.df):ya()}function Js(e={},t={},r=!1){let a=Object.keys(e),n=Object.keys(t),o=a.filter(p=>!n.includes(p));if(o.length){let p=o[0];switch(!0){case e[p].length>1:return Ne(p);case r:return Wr({facetId:p,facetValue:e[p][0]});default:return Ut({facetId:p,facetValue:e[p][0]})}}let i=n.filter(p=>!a.includes(p));if(i.length){let p=i[0];return r?St({facetId:p,facetValue:t[p][0]}):Pe({facetId:p,facetValue:t[p][0]})}let s=n.find(p=>t[p].filter(f=>e[p].includes(f)));if(!s)return ya();let c=e[s],u=t[s],l=u.filter(p=>!c.includes(p));if(l.length)return r?St({facetId:s,facetValue:l[0]}):Pe({facetId:s,facetValue:l[0]});let d=c.filter(p=>!u.includes(p));return d.length?r?Wr({facetId:s,facetValue:d[0]}):Ut({facetId:s,facetValue:d[0]}):ya()}function jv(e={},t={}){return Js(Ri(e),Ri(t))}function Uv(e,t){return e.q!==t.q?ed():e.sortCriteria!==t.sortCriteria?id():Et(e.f,t.f)?Fi(e.f,t.f):Et(e.fExcluded,t.fExcluded)?Fi(e.fExcluded,t.fExcluded,!0):Et(e.cf,t.cf)?Fi(e.cf,t.cf):Et(e.af,t.af)?Fi(e.af,t.af):Et(e.nf,t.nf)?Fi(Ri(e.nf),Ri(t.nf)):Et(e.df,t.df)?Fi(Ri(e.df),Ri(t.df)):io()}function Et(e={},t={}){return JSON.stringify(e)!==JSON.stringify(t)}function Fi(e={},t={},r=!1){let a=Object.keys(e),n=Object.keys(t),o=a.filter(p=>!n.includes(p));if(o.length){let p=o[0];return e[p].length>1?Xe(p):Yr(p,e[p][0])}let i=n.filter(p=>!a.includes(p));if(i.length){let p=i[0];return r?hr(p,t[p][0]):De(p,t[p][0])}let s=n.find(p=>t[p].filter(f=>e[p].includes(f)));if(!s)return io();let c=e[s],u=t[s],l=u.filter(p=>!c.includes(p));if(l.length)return r?hr(s,l[0]):De(s,l[0]);let d=c.filter(p=>!u.includes(p));return d.length?Yr(s,d[0]):io()}function Ri(e={}){let t={};return Object.keys(e).forEach(r=>t[r]=e[r].map(a=>`${a.start}..${a.end}`)),t}function _v(e){var t,r,a,n,o,i;return{q:xe().q,enableQuerySyntax:xe().enableQuerySyntax,aq:(r=(t=e.advancedSearchQueries)==null?void 0:t.defaultFilters.aq)!=null?r:st().defaultFilters.aq,cq:(n=(a=e.advancedSearchQueries)==null?void 0:a.defaultFilters.cq)!=null?n:st().defaultFilters.cq,firstResult:Ue().firstResult,numberOfResults:(i=(o=e.pagination)==null?void 0:o.defaultNumberOfResults)!=null?i:Ue().defaultNumberOfResults,sortCriteria:tt(),f:{},fExcluded:{},cf:{},nf:{},df:{},debug:Ct(),sf:{},tab:"",af:{}}}var $q=new Y({parameters:new q({options:{required:!0},values:bu})});function $v(e,t){let{dispatch:r}=e,a=M(e);return ke(e,$q,t.initialState,"buildSearchParameterManager"),r(ue(t.initialState.parameters)),{...a,synchronize(n){let o=bd(e,n);r(ue(o))},get state(){return{parameters:bm(e)}}}}function bd(e,t){return{..._v(e.state),...t}}function Hv(e,t){return zq(e,t)}function bm(e){let t=e.state;return{...Hq(t),...Gq(t),...Wq(t),...Gv(t,zv,"f"),...Gv(t,Yq,"fExcluded"),...Kq(t),...Jq(t),...Xq(t),...Zq(t)}}function Hq(e){if(e.query===void 0)return{};let t=e.query.q;return t!==xe().q?{q:t}:{}}function Gq(e){var r;let t=Object.values((r=e.tabSet)!=null?r:{}).find(a=>a.isActive);return t?{tab:t.id}:{}}function zq(e,t){let r=e.state.tabSet,a=t.tab;if(!r||!Object.entries(r).length||!a)return!0;let n=a in r;return n||e.logger.warn(`The tab search parameter "${a}" is invalid. Ignoring change.`),n}function Wq(e){if(e.sortCriteria===void 0)return{};let t=e.sortCriteria;return t!==tt()?{sortCriteria:t}:{}}function Gv(e,t,r){if(e.facetSet===void 0)return{};let a=Object.entries(e.facetSet).filter(([n])=>{var o,i,s;return(s=(i=(o=e.facetOptions)==null?void 0:o.facets[n])==null?void 0:i.enabled)!=null?s:!0}).map(([n,{request:o}])=>{let i=t(o.currentValues);return i.length?{[n]:i}:{}}).reduce((n,o)=>({...n,...o}),{});return Object.keys(a).length?{[r]:a}:{}}function zv(e){return e.filter(t=>t.state==="selected").map(t=>t.value)}function Yq(e){return e.filter(t=>t.state==="excluded").map(t=>t.value)}function Kq(e){if(e.categoryFacetSet===void 0)return{};let t=Object.entries(e.categoryFacetSet).filter(([r])=>{var a,n,o;return(o=(n=(a=e.facetOptions)==null?void 0:a.facets[r])==null?void 0:n.enabled)!=null?o:!0}).map(([r,a])=>{let o=gt(a.request.currentValues).map(i=>i.value);return o.length?{[r]:o}:{}}).reduce((r,a)=>({...r,...a}),{});return Object.keys(t).length?{cf:t}:{}}function Jq(e){if(e.numericFacetSet===void 0)return{};let t=Object.entries(e.numericFacetSet).filter(([r])=>{var a,n,o;return(o=(n=(a=e.facetOptions)==null?void 0:a.facets[r])==null?void 0:n.enabled)!=null?o:!0}).map(([r,{request:a}])=>{let n=Wv(a.currentValues);return n.length?{[r]:n}:{}}).reduce((r,a)=>({...r,...a}),{});return Object.keys(t).length?{nf:t}:{}}function Xq(e){if(e.dateFacetSet===void 0)return{};let t=Object.entries(e.dateFacetSet).filter(([r])=>{var a,n,o;return(o=(n=(a=e.facetOptions)==null?void 0:a.facets[r])==null?void 0:n.enabled)!=null?o:!0}).map(([r,{request:a}])=>{let n=Wv(a.currentValues);return n.length?{[r]:n}:{}}).reduce((r,a)=>({...r,...a}),{});return Object.keys(t).length?{df:t}:{}}function Wv(e){return e.filter(t=>t.state==="selected")}function Zq(e){var a;let t=(a=e.automaticFacetSet)==null?void 0:a.set;if(t===void 0)return{};let r=Object.entries(t).map(([n,{response:o}])=>{let i=zv(o.values);return i.length?{[n]:i}:{}}).reduce((n,o)=>({...n,...o}),{});return Object.keys(r).length?{af:r}:{}}function Fm(e,t){let{dispatch:r}=e,a=$v(e,t);return{...a,synchronize(n){let o=Yv(e),i=bd(e,o),s=bd(e,n);zs(i,s)||!Hv(e,s)||(a.synchronize(n),r(I({legacy:Bv(i,s),next:Uv(i,s)})))},get state(){return{parameters:Yv(e)}}}}function Yv(e){let t=e.state;return{...bm(e),...eT(t),...tT(t),...rT(t),...aT(t),...nT(t),...sT(t),...oT(t)}}function eT(e){if(e.query===void 0)return{};let t=e.query.enableQuerySyntax;return t!==void 0&&t!==xe().enableQuerySyntax?{enableQuerySyntax:t}:{}}function tT(e){if(e.advancedSearchQueries===void 0)return{};let{aq:t,defaultFilters:r}=e.advancedSearchQueries;return t!==r.aq?{aq:t}:{}}function rT(e){if(e.advancedSearchQueries===void 0)return{};let{cq:t,defaultFilters:r}=e.advancedSearchQueries;return t!==r.cq?{cq:t}:{}}function aT(e){if(e.pagination===void 0)return{};let t=e.pagination.firstResult;return t!==Ue().firstResult?{firstResult:t}:{}}function nT(e){if(e.pagination===void 0)return{};let{numberOfResults:t,defaultNumberOfResults:r}=e.pagination;return t!==r?{numberOfResults:t}:{}}function oT(e){if(e.staticFilterSet===void 0)return{};let t=Object.entries(e.staticFilterSet).map(([r,a])=>{let n=iT(a.values);return n.length?{[r]:n}:{}}).reduce((r,a)=>({...r,...a}),{});return Object.keys(t).length?{sf:t}:{}}function iT(e){return e.filter(t=>t.state==="selected").map(t=>t.caption)}function sT(e){if(e.debug===void 0)return{};let t=e.debug;return t!==Ct()?{debug:t}:{}}var Kv="..",Rm="...",cT=/^(f|fExcluded|cf|nf|df|sf|af)-(.+)$/,uT={f:!0,fExcluded:!0,cf:!0,sf:!0,af:!0,nf:!0,df:!0},Fd="&",Xs="=";function Rd(){return{serialize:pT(fT),deserialize:CT}}function Zs(e){return e in uT}function lT(e){return e in{q:!0,aq:!0,cq:!0,enableQuerySyntax:!0,firstResult:!0,numberOfResults:!0,sortCriteria:!0,debug:!0,tab:!0}}function dT(e){let r=e in{nf:!0,df:!0};return Zs(e)&&r}function Jv(e){return lT(e)||Zs(e)}var pT=e=>t=>Object.entries(t).map(e).filter(r=>r).join(Fd);function fT(e){let[t,r]=e;return Jv(t)?Zs(t)&&!dT(t)?gT(r)?ST(t,r):"":t==="nf"||t==="df"?hT(r)?yT(t,r):"":mT(t,r):""}function mT(e,t){return`${e}${Xs}${encodeURIComponent(t)}`}function gT(e){return Pm(e)?Xv(e,r=>typeof r=="string"):!1}function hT(e){return Pm(e)?Xv(e,r=>Pm(r)&&"start"in r&&"end"in r):!1}function Pm(e){return!!(e&&typeof e=="object")}function Xv(e,t){return Object.entries(e).filter(a=>{let n=a[1];return!Array.isArray(n)||!n.every(t)}).length===0}function ST(e,t){return Object.entries(t).map(([r,a])=>`${e}-${r}${Xs}${a.map(n=>encodeURIComponent(n)).join(",")}`).join(Fd)}function yT(e,t){return Object.entries(t).map(([r,a])=>{let n=a.map(({start:o,end:i,endInclusive:s})=>`${o}${s?Rm:Kv}${i}`).join(",");return`${e}-${r}${Xs}${n}`}).join(Fd)}function CT(e){return e.split(Fd).map(a=>xT(a)).map(vT).filter(RT).map(a=>PT(a)).reduce((a,n)=>{let[o,i]=n;if(Zs(o)){let s={...a[o],...i};return{...a,[o]:s}}return{...a,[o]:i}},{})}function xT(e){let[t,...r]=e.split(Xs),a=r.join(Xs);return[t,a]}function vT(e){let[t,r]=e,a=cT.exec(t);if(!a)return e;let n=a[1],o=a[2],i=r.split(","),s=AT(n,i),c={[o]:s};return[n,JSON.stringify(c)]}function AT(e,t){return e==="nf"?bT(t):e==="df"?FT(t):t}function bT(e){return e.map(t=>{let{startAsString:r,endAsString:a,isEndInclusive:n}=eA(t);return{start:parseFloat(r),end:parseFloat(a),endInclusive:n}}).filter(({start:t,end:r})=>Number.isFinite(t)&&Number.isFinite(r)).map(({start:t,end:r,endInclusive:a})=>Hs({start:t,end:r,state:"selected",endInclusive:a}))}function Zv(e){try{return rC(e)?(Iu(e,Os),!0):cr(e)?(dn(e),!0):!1}catch(t){return!1}}function FT(e){return e.map(t=>{let{isEndInclusive:r,startAsString:a,endAsString:n}=eA(t);return{start:a,end:n,endInclusive:r}}).filter(({start:t,end:r})=>Zv(t)&&Zv(r)).map(({start:t,end:r,endInclusive:a})=>Pn({start:t,end:r,state:"selected",endInclusive:a}))}function RT(e){let t=Jv(e[0]),r=e.length===2;return t&&r}function PT(e,t=!0){let[r,a]=e;return r==="enableQuerySyntax"?[r,a==="true"]:r==="debug"?[r,a==="true"]:r==="firstResult"?[r,parseInt(a)]:r==="numberOfResults"?[r,parseInt(a)]:Zs(r)?[r,wT(a)]:[r,t?decodeURIComponent(a):a]}function wT(e){let t=JSON.parse(e),r={};return Object.entries(t).forEach(a=>{let[n,o]=a;r[n]=o.map(i=>Un(i)?decodeURIComponent(i):i)}),r}function eA(e){let t=e.indexOf(Rm)!==-1,[r,a]=e.split(t?Rm:Kv);return{isEndInclusive:t,startAsString:r,endAsString:a}}var IT=new Y({fragment:new w});function ET(e,t){let r;function a(){r=e.state.search.requestId}function n(){return r!==e.state.search.requestId}if(!OT(e))throw k;ke(e,IT,t.initialState,"buildUrlManager");let o=M(e),i=t.initialState.fragment;a();let s=Fm(e,{initialState:{parameters:Pd(i)}});return{...o,subscribe(c){let u=()=>{let l=this.state.fragment;!kT(i,l)&&n()&&(i=l,c()),a()};return u(),e.subscribe(u)},get state(){return{fragment:Rd().serialize(s.state.parameters)}},synchronize(c){i=c;let u=Pd(c);s.synchronize(u)}}}function kT(e,t){if(e===t)return!0;let r=Pd(e),a=Pd(t);return zs(r,a)}function Pd(e){return Rd().deserialize(e)}function OT(e){return e.addReducers({configuration:$}),!0}function qT(e){return ci(e)}async function wd(e,t){var s;let{search:r,accessToken:a,organizationId:n,analytics:o}=e.configuration,i=((s=e.query)==null?void 0:s.q)||"";return{url:r.apiBaseUrl,accessToken:a,organizationId:n,enableNavigation:!1,...o.enabled&&{visitorId:await We(e.configuration.analytics)},q:i,...t,requestedOutputSize:t.requestedOutputSize||0,...r.authenticationProviders.length&&{authentication:r.authenticationProviders.join(",")}}}var Dn=W("resultPreview/fetchResultContent",async(e,{extra:t,getState:r,rejectWithValue:a})=>{let n=r(),o=await wd(n,e),i=await t.apiClient.html(o);return ye(i)?a(i.error):{content:i.success,uniqueId:e.uniqueId}}),Pi=C("resultPreview/next"),wi=C("resultPreview/previous"),Ii=C("resultPreview/prepare",e=>A(e,{results:new X({required:!0})})),tA=2048,Ei=W("resultPreview/updateContentURL",async(e,{getState:t,extra:r})=>{let a=t(),n=dS(await e.buildResultPreviewRequest(a,{uniqueId:e.uniqueId,requestedOutputSize:e.requestedOutputSize}),e.path);return(n==null?void 0:n.length)>tA&&r.logger.error(`The content URL was truncated as it exceeds the maximum allowed length of ${tA} characters.`),{contentURL:n}});var rA=e=>E({prefix:"analytics/resultPreview/open",__legacy__getBuilder:(t,r)=>{ut(e);let a=Oe(e,r),n=Le(e);return t.makeDocumentQuickview(a,n)},analyticsType:"itemClick",analyticsPayloadBuilder:t=>{var n,o;let r=Oe(e,t),a=Le(e);return{searchUid:(o=(n=t.search)==null?void 0:n.response.searchUid)!=null?o:"",position:r.documentPosition,actionCause:"open",itemMetadata:{uniqueFieldName:a.contentIDKey,uniqueFieldValue:a.contentIDValue,title:r.documentTitle,author:r.documentAuthor,url:r.documentUrl}}}});var wm=e=>{let{content:t,isLoading:r,uniqueId:a,contentURL:n}=Ja();e.content=t,e.isLoading=r,e.uniqueId=a,e.contentURL=n},Im=e=>e.filter(t=>t.hasHtmlVersion).map(t=>t.uniqueId),Id=T(Ja(),e=>{e.addCase(Dn.pending,t=>{t.isLoading=!0}).addCase(Dn.fulfilled,(t,r)=>{let{content:a,uniqueId:n}=r.payload;t.position=t.resultsWithPreview.indexOf(n),t.content=a,t.uniqueId=n,t.isLoading=!1}).addCase(I.fulfilled,(t,r)=>{wm(t),t.resultsWithPreview=Im(r.payload.response.results)}).addCase(Fa.fulfilled,(t,r)=>{wm(t),t.resultsWithPreview=t.resultsWithPreview.concat(Im(r.payload.response.results))}).addCase(ur.fulfilled,wm).addCase(Ii,(t,r)=>{t.resultsWithPreview=Im(r.payload.results)}).addCase(Pi,t=>{if(t.isLoading)return;let r=t.position+1;r>t.resultsWithPreview.length-1&&(r=0),t.position=r}).addCase(wi,t=>{if(t.isLoading)return;let r=t.position-1;r<0&&(r=t.resultsWithPreview.length-1),t.position=r}).addCase(Ei.fulfilled,(t,r)=>{t.contentURL=r.payload.contentURL})});function aA(e,t,r,a,n){if(!TT(e))throw k;let{dispatch:o}=e,i=()=>e.state,s=M(e),{result:c,maximumPreviewSize:u}=t.options,l=()=>{let{resultsWithPreview:p,position:f}=i().resultPreview;return p[f]},d=p=>{o(Ei({uniqueId:p,requestedOutputSize:u,buildResultPreviewRequest:r,path:a})),t.options.onlyContentURL||o(Dn({uniqueId:p,requestedOutputSize:u})),n&&n()};return{...s,fetchResultContent(){d(c.uniqueId)},next(){o(Pi()),d(l())},previous(){o(wi()),d(l())},get state(){let p=i(),f=c.hasHtmlVersion,m=p.resultPreview,g=c.uniqueId===m.uniqueId?m.content:"",S=m.isLoading,y=m.contentURL,x=l();return{content:g,resultHasPreview:f,isLoading:S,contentURL:y,currentResultUniqueId:x}}}}function TT(e){return e.addReducers({configuration:$,resultPreview:Id}),!0}function DT(e,t){if(!VT(e))throw k;let{dispatch:r}=e,a=()=>e.state,n=()=>a().search.results,s=aA(e,t,wd,"/html",()=>{e.dispatch(rA(t.options.result))});return r(Ii({results:n()})),{...s,get state(){return{...s.state,currentResult:n().findIndex(c=>c.uniqueId===s.state.currentResultUniqueId)+1,totalResults:n().length}}}}function VT(e){return e.addReducers({search:J}),!0}var MT=e=>E("analytics/folding/showMore",(t,r)=>(ut(e),t.makeShowMoreFoldedResults(Oe(e,r),Le(e)))),LT=()=>E("analytics/folding/showLess",e=>e.makeShowLessFoldedResults()),nA={logShowMoreFoldedResults:MT,logShowLessFoldedResults:LT};function NT(e,t){return e.raw[t.collection]}function Em(e,t){return e.raw[t.parent]}function ec(e,t){let r=e.raw[t.child];return Ec(r)?r[0]:r}function QT(e,t){return(e||t)!==void 0&&e===t}function oA(e,t,r,a=[]){let n=ec(e,r);return n?a.indexOf(n)!==-1?[]:t.filter(o=>{let i=ec(o,r)===ec(e,r);return Em(o,r)===n&&!i}).map(o=>({result:o,children:oA(o,t,r,[...a,n])})):[]}function BT(e,t){return e.find(r=>{let a=Em(r,t)===void 0,n=QT(Em(r,t),ec(r,t));return a||n})}function iA(e){return e.parentResult?iA(e.parentResult):e}function jT(e,t,r){var o;let a=Su(e),n=(o=r!=null?r:BT(a,t))!=null?o:iA(e);return{result:n,children:oA(n,a,t),moreResultsAvailable:!0,isLoadingMoreResults:!1}}function Ed(e,t,r){let a={};return e.forEach(n=>{let o=NT(n,t);!o||!ec(n,t)&&!n.parentResult||(a[o]=jT(n,t,r))}),a}function sA(e,t){if(!e.collections[t])throw new Error(`Missing collection ${t} from ${Object.keys(e.collections)}: Folding most probably in an invalid state...`);return e.collections[t]}var kd=T(rn(),e=>e.addCase(I.fulfilled,(t,{payload:r})=>{t.collections=t.enabled?Ed(r.response.results,t.fields):{}}).addCase(ur.fulfilled,(t,{payload:r})=>{t.collections=t.enabled?Ed(r.response.results,t.fields):{}}).addCase(Fa.fulfilled,(t,{payload:r})=>{t.collections=t.enabled?{...t.collections,...Ed(r.response.results,t.fields)}:{}}).addCase(wa,(t,{payload:r})=>{var a,n,o,i;return t.enabled?t:{enabled:!0,collections:{},fields:{collection:(a=r.collectionField)!=null?a:t.fields.collection,parent:(n=r.parentField)!=null?n:t.fields.parent,child:(o=r.childField)!=null?o:t.fields.child},filterFieldRange:(i=r.numberOfFoldedResults)!=null?i:t.filterFieldRange}}).addCase(Ia.pending,(t,{meta:r})=>{let a=r.arg;sA(t,a).isLoadingMoreResults=!0}).addCase(Ia.rejected,(t,{meta:r})=>{let a=r.arg;sA(t,a).isLoadingMoreResults=!1}).addCase(Ia.fulfilled,(t,{payload:{collectionId:r,results:a,rootResult:n}})=>{let o=Ed(a,t.fields,n);if(!o||!o[r])throw new Error(`Unable to create collection ${r} from received results: ${JSON.stringify(a)}. Folding most probably in an invalid state... `);t.collections[r]=o[r],t.collections[r].moreResultsAvailable=!1}));var UT=new Y(Xf);function cA(e,t,r){var s;if(!_T(e))throw k;let a=Xl(e,t),{dispatch:n}=e,o=()=>e.state,i=((s=t.options)==null?void 0:s.folding)?he(e,UT,t.options.folding,"buildFoldedResultList"):{};return n(wa({...i})),{...a,loadCollection:c=>{n(t.loadCollectionActionCreator(c.result.raw[e.state.folding.fields.collection])),n(r.logShowMoreFoldedResults(c.result))},logShowMoreFoldedResults:c=>{n(r.logShowMoreFoldedResults(c))},logShowLessFoldedResults:()=>{n(r.logShowLessFoldedResults())},findResultById(c){return km(this.state.results,u=>u.result.uniqueId===c.result.uniqueId)},findResultByCollection(c){return km(this.state.results,u=>u.result.raw.foldingcollection===c.result.raw.foldingcollection)},get state(){let c=o();return{...a.state,results:a.state.results.map(u=>{let l=u.raw[c.folding.fields.collection];return!l||!c.folding.collections[l]?{result:u,moreResultsAvailable:!1,isLoadingMoreResults:!1,children:[]}:c.folding.collections[l]})}}}}function _T(e){return e.addReducers({search:J,configuration:ju,folding:kd,query:It}),!0}function km(e,t){for(let r=0;re.addCase(I.pending,t=>{t.query="",t.queryModification={originalQuery:"",newQuery:"",queryToIgnore:t.queryModification.queryToIgnore}}).addCase(I.fulfilled,(t,r)=>{var s;let a=[],n=[],o=[],i=[];r.payload.response.triggers.forEach(c=>{switch(c.type){case"redirect":a.push(c.content);break;case"query":n.push(c.content);break;case"execute":o.push({functionName:c.content.name,params:c.content.params});break;case"notify":i.push(c.content);break}}),t.redirectTo=(s=a[0])!=null?s:"",t.query=t.queryModification.newQuery,t.executions=o,t.notifications=i}).addCase(Eo,(t,r)=>{t.queryModification={...r.payload,queryToIgnore:""}}).addCase(ba,(t,r)=>{t.queryModification.queryToIgnore=r.payload}));function HT(e){if(!GT(e))throw k;let t=M(e),{dispatch:r}=e,a=()=>e.state,n=a().triggers.redirectTo;return{...t,subscribe(o){let i=()=>{let s=n!==this.state.redirectTo;n=this.state.redirectTo,s&&this.state.redirectTo&&(o(),r(Mu()))};return i(),e.subscribe(i)},get state(){return{redirectTo:a().triggers.redirectTo}}}}function GT(e){return e.addReducers({triggers:_a}),!0}function zT(e){if(!WT(e))throw k;let t=M(e),{dispatch:r}=e,a=()=>e.state,n=()=>a().triggers.queryModification.newQuery,o=()=>a().triggers.queryModification.originalQuery;return{...t,get state(){return{newQuery:n(),originalQuery:o(),wasQueryModified:n()!==""}},undo(){r(ba(n())),r(Ye({q:o()})),r(I({legacy:Du({undoneQuery:n()}),next:hC(n())}))}}}function WT(e){return e.addReducers({triggers:_a,query:It}),!0}function YT(e){if(!KT(e))throw k;let t=M(e),{dispatch:r}=e,a=()=>e.state,n=a().triggers.executions;return{...t,subscribe(o){let i=()=>{let s=!kn(this.state.executions,n,(c,u)=>c.functionName===u.functionName&&kn(c.params,u.params));n=this.state.executions,s&&this.state.executions.length&&(o(),r(Lu()))};return i(),e.subscribe(i)},get state(){return{executions:a().triggers.executions}}}}function KT(e){return e.addReducers({triggers:_a}),!0}function JT(e){if(!XT(e))throw k;let t=M(e),{dispatch:r}=e,a=()=>e.state,n=a().triggers.notifications;return{...t,subscribe(o){let i=()=>{let s=!kn(n,this.state.notifications);n=this.state.notifications,s&&(o(),r(Vu()))};return i(),e.subscribe(i)},get state(){return{notifications:a().triggers.notifications}}}}function XT(e){return e.addReducers({triggers:_a}),!0}var Od=()=>new q({values:{questionAnswerId:O},options:{required:!0}}),Om=()=>new q({values:{linkText:ge,linkURL:ge},options:{required:!0}});function ki(e){return A(e,Od())}function ta(e,t){var a,n;let r=t!=null?t:(n=(a=e.search)==null?void 0:a.questionAnswer)==null?void 0:n.documentId;return r&&e.search&&vC(e,r.contentIdKey,r.contentIdValue)}function Vn(e,t){var n,o,i,s,c;let r=(o=(n=e.questionAnswering)==null?void 0:n.relatedQuestions.findIndex(u=>u.questionAnswerId===t))!=null?o:-1;if(r===-1)return null;let a=(c=(s=(i=e.search)==null?void 0:i.questionAnswer)==null?void 0:s.relatedQuestions)==null?void 0:c[r];return a!=null?a:null}var qm=()=>E("analytics/smartSnippet/expand",e=>e.makeExpandSmartSnippet()),Tm=()=>E("analytics/smartSnippet/collapse",e=>e.makeCollapseSmartSnippet()),Dm=()=>E("analytics/smartSnippet/like",e=>e.makeLikeSmartSnippet()),Vm=()=>E("analytics/smartSnippet/dislike",e=>e.makeDislikeSmartSnippet());function Mm(){return E("analytics/smartSnippet/source/open",(e,t)=>{let r=ta(t);return e.makeOpenSmartSnippetSource(Oe(r,t),Le(r))})}var tc=e=>E("analytics/smartSnippet/source/open",(t,r)=>{A(e,Om());let a=ta(r);return t.makeOpenSmartSnippetInlineLink(Oe(a,r),{...Le(a),...e})}),Lm=()=>E("analytics/smartSnippet/feedbackModal/open",e=>e.makeOpenSmartSnippetFeedbackModal()),Nm=()=>E("analytics/smartSnippet/feedbackModal/close",e=>e.makeCloseSmartSnippetFeedbackModal()),Qm=e=>E("analytics/smartSnippet/sendFeedback",t=>t.makeSmartSnippetFeedbackReason(e)),Bm=e=>E("analytics/smartSnippet/sendFeedback",t=>t.makeSmartSnippetFeedbackReason("other",e)),jm=e=>E("analytics/smartSnippetSuggestion/expand",(t,r)=>{ki(e);let a=Vn(r,e.questionAnswerId);return a?t.makeExpandSmartSnippetSuggestion({question:a.question,answerSnippet:a.answerSnippet,documentId:a.documentId}):null}),Um=e=>E("analytics/smartSnippetSuggestion/expand",(t,r)=>{ki(e);let a=Vn(r,e.questionAnswerId);return a?t.makeCollapseSmartSnippetSuggestion({question:a.question,answerSnippet:a.answerSnippet,documentId:a.documentId}):null}),rc=e=>E("analytics/smartSnippet/source/open",(t,r)=>{A(e,Od());let a=Vn(r,e.questionAnswerId);if(!a)return null;let n=ta(r,a.documentId);return n?t.makeOpenSmartSnippetSuggestionSource(Oe(n,r),{question:a.question,answerSnippet:a.answerSnippet,documentId:a.documentId}):null}),qd=(e,t)=>E("analytics/smartSnippet/source/open",(r,a)=>{A(e,Od()),A(t,Om());let n=Vn(a,e.questionAnswerId);if(!n)return null;let o=ta(a,n.documentId);return o?r.makeOpenSmartSnippetSuggestionInlineLink(Oe(o,a),{question:n.question,answerSnippet:n.answerSnippet,documentId:n.documentId,linkText:t.linkText,linkURL:t.linkURL}):null}),Td={logExpandSmartSnippet:qm,logCollapseSmartSnippet:Tm,logLikeSmartSnippet:Dm,logDislikeSmartSnippet:Vm,logOpenSmartSnippetSource:Mm,logOpenSmartSnippetInlineLink:tc,logOpenSmartSnippetFeedbackModal:Lm,logCloseSmartSnippetFeedbackModal:Nm,logSmartSnippetFeedback:Qm,logSmartSnippetDetailedFeedback:Bm,logExpandSmartSnippetSuggestion:jm,logCollapseSmartSnippetSuggestion:Um,logOpenSmartSnippetSuggestionSource:rc};var Oi=C("smartSnippet/expand"),qi=C("smartSnippet/collapse"),Ti=C("smartSnippet/like"),Di=C("smartSnippet/dislike"),Vi=C("smartSnippet/feedbackModal/open"),$a=C("smartSnippet/feedbackModal/close"),Mi=C("smartSnippet/related/expand",e=>ki(e)),Li=C("smartSnippet/related/collapse",e=>ki(e));var uA=(e,t)=>e.findIndex(r=>r.questionAnswerId===t.questionAnswerId);function lA({question:e,answerSnippet:t,documentId:{contentIdKey:r,contentIdValue:a}}){return Hn({question:e,answerSnippet:t,contentIdKey:r,contentIdValue:a})}function ZT(e,t){let r=lA(e);return t&&r===t.questionAnswerId?t:{contentIdKey:e.documentId.contentIdKey,contentIdValue:e.documentId.contentIdValue,expanded:!1,questionAnswerId:r}}var Mr=T(Kn(),e=>e.addCase(Oi,t=>{t.expanded=!0}).addCase(qi,t=>{t.expanded=!1}).addCase(Ti,t=>{t.liked=!0,t.disliked=!1,t.feedbackModalOpen=!1}).addCase(Di,t=>{t.liked=!1,t.disliked=!0}).addCase(Vi,t=>{t.feedbackModalOpen=!0}).addCase($a,t=>{t.feedbackModalOpen=!1}).addCase(I.fulfilled,(t,r)=>{let a=r.payload.response.questionAnswer.relatedQuestions.map((o,i)=>ZT(o,t.relatedQuestions[i])),n=lA(r.payload.response.questionAnswer);return t.questionAnswerId===n?{...t,relatedQuestions:a}:{...Kn(),relatedQuestions:a,questionAnswerId:n}}).addCase(Mi,(t,r)=>{let a=uA(t.relatedQuestions,r.payload);a!==-1&&(t.relatedQuestions[a].expanded=!0)}).addCase(Li,(t,r)=>{let a=uA(t.relatedQuestions,r.payload);a!==-1&&(t.relatedQuestions[a].expanded=!1)}));function dA(e,t,r){var c;if(!eD(e))throw k;let a=M(e),n=()=>e.state,o=()=>ta(n()),i=null,s=dt(e,{options:{selectionDelay:(c=r==null?void 0:r.options)==null?void 0:c.selectionDelay}},()=>{let u=o();if(!u){i=null;return}let{searchResponseId:l}=n().search;i!==l&&(i=l,e.dispatch(t.logOpenSmartSnippetSource()),e.dispatch(wt(u)))});return{...a,get state(){let u=n();return{question:u.search.questionAnswer.question,answer:u.search.questionAnswer.answerSnippet,documentId:u.search.questionAnswer.documentId,expanded:u.questionAnswering.expanded,answerFound:u.search.questionAnswer.answerSnippet!=="",liked:u.questionAnswering.liked,disliked:u.questionAnswering.disliked,feedbackModalOpen:u.questionAnswering.feedbackModalOpen,source:o()}},expand(){e.dispatch(t.logExpandSmartSnippet()),e.dispatch(Oi())},collapse(){e.dispatch(t.logCollapseSmartSnippet()),e.dispatch(qi())},like(){e.dispatch(t.logLikeSmartSnippet()),e.dispatch(Ti())},dislike(){e.dispatch(t.logDislikeSmartSnippet()),e.dispatch(Di())},openFeedbackModal(){e.dispatch(t.logOpenSmartSnippetFeedbackModal()),e.dispatch(Vi())},closeFeedbackModal(){e.dispatch(t.logCloseSmartSnippetFeedbackModal()),e.dispatch($a())},sendFeedback(u){e.dispatch(t.logSmartSnippetFeedback(u)),e.dispatch($a())},sendDetailedFeedback(u){e.dispatch(t.logSmartSnippetDetailedFeedback(u)),e.dispatch($a())},selectSource(){s.select()},beginDelayedSelectSource(){s.beginDelayedSelect()},cancelPendingSelectSource(){s.cancelPendingSelect()}}}function eD(e){return e.addReducers({search:J,questionAnswering:Mr}),!0}function Dd(e,t){if(!tD(e))throw k;let r=()=>e.state,a=new Set,n=l=>a.has(l)?!0:(a.add(l),!1),o=null,i=l=>{o!==l&&(o=l,c={},a.clear())},s=(l,d,p)=>{var f;return dt(e,{options:{selectionDelay:(f=t==null?void 0:t.options)==null?void 0:f.selectionDelay}},()=>{n(d)||e.dispatch(p?qd({questionAnswerId:p},l):tc(l))})},c={},u=(l,d)=>{let{searchResponseId:p}=r().search;i(p);let f=Hn({...l,questionAnswerId:d});return f in c||(c[f]=s(l,f,d)),c[f]};return{selectInlineLink(l,d){var p;(p=u(l,d))==null||p.select()},beginDelayedSelectInlineLink(l,d){var p;(p=u(l,d))==null||p.beginDelayedSelect()},cancelPendingSelectInlineLink(l,d){var p;(p=u(l,d))==null||p.cancelPendingSelect()}}}function tD(e){return e.addReducers({search:J,questionAnswering:Mr}),!0}function rD(e,t){var n;let r=dA(e,Td,t),a=Dd(e,{options:{selectionDelay:(n=t==null?void 0:t.options)==null?void 0:n.selectionDelay}});return{...r,get state(){return r.state},selectInlineLink(o){a.selectInlineLink(o)},beginDelayedSelectInlineLink(o){a.beginDelayedSelectInlineLink(o)},cancelPendingSelectInlineLink(o){a.cancelPendingSelectInlineLink(o)}}}function pA(e,t){if(!aD(e))throw k;let r=M(e),a=()=>e.state,n=o=>{let{contentIdKey:i,contentIdValue:s}=o;return e.state.search.results.find(c=>Ra(c,i)===s)};return{...r,get state(){let o=a();return{questions:o.search.questionAnswer.relatedQuestions.map((i,s)=>({question:i.question,answer:i.answerSnippet,documentId:i.documentId,questionAnswerId:o.questionAnswering.relatedQuestions[s].questionAnswerId,expanded:o.questionAnswering.relatedQuestions[s].expanded,source:n(i.documentId)}))}},expand(o){let i={questionAnswerId:o};e.dispatch(t.logExpandSmartSnippetSuggestion(i)),e.dispatch(Mi(i))},collapse(o){let i={questionAnswerId:o};e.dispatch(t.logCollapseSmartSnippetSuggestion(i)),e.dispatch(Li(i))}}}function aD(e){return e.addReducers({search:J,questionAnswering:Mr}),!0}function fA(e,t){if(!nD(e))throw k;let r=()=>e.state,a=d=>{let p=r(),f=Vn(p,d);return f?ta(p,f.documentId):null},n=new Set,o=d=>n.has(d)?!0:(n.add(d),!1),i=null,s=d=>{i!==d&&(i=d,u={},n.clear())},c=(d,p)=>{var f;return dt(e,{options:{selectionDelay:(f=t==null?void 0:t.options)==null?void 0:f.selectionDelay}},()=>{o(p)||(e.dispatch(rc({questionAnswerId:p})),e.dispatch(wt(d)))})},u={},l=d=>{let{searchResponseId:p}=r().search;s(p);let f=a(d);return f?(d in u||(u[d]=c(f,d)),u[d]):null};return{selectSource(d){var p;(p=l(d))==null||p.select()},beginDelayedSelectSource(d){var p;(p=l(d))==null||p.beginDelayedSelect()},cancelPendingSelectSource(d){var p;(p=l(d))==null||p.cancelPendingSelect()}}}function nD(e){return e.addReducers({search:J,questionAnswering:Mr}),!0}function oD(e,t){var o,i;let r=pA(e,Td),a=Dd(e,{options:{selectionDelay:(o=t==null?void 0:t.options)==null?void 0:o.selectionDelay}}),n=fA(e,{options:{selectionDelay:(i=t==null?void 0:t.options)==null?void 0:i.selectionDelay}});return{...r,get state(){return r.state},selectSource(s){n.selectSource(s)},beginDelayedSelectSource(s){n.beginDelayedSelectSource(s)},cancelPendingSelectSource(s){n.cancelPendingSelectSource(s)},selectInlineLink(s,c){a.selectInlineLink(c,s)},beginDelayedSelectInlineLink(s,c){a.beginDelayedSelectInlineLink(c,s)},cancelPendingSelectInlineLink(s,c){a.cancelPendingSelectInlineLink(c,s)}}}var iD={queries:new X({required:!0,each:new w({emptyAllowed:!1})}),maxLength:new D({required:!0,min:1,default:10})},Ni=C("recentQueries/registerRecentQueries",e=>A(e,iD)),Qi=C("recentQueries/clearRecentQueries");var mA=()=>E("analytics/recentQueries/clear",e=>e.makeClearRecentQueries()),gA=()=>E("analytics/recentQueries/click",e=>e.makeRecentQueryClick()),hA=()=>({actionCause:oe.recentQueryClick,getEventExtraPayload:e=>new ae(()=>e).getBaseMetadata()});var Vd=T(Jc(),e=>{e.addCase(Ni,(t,r)=>{t.queries=r.payload.queries.slice(0,r.payload.maxLength),t.maxLength=r.payload.maxLength}).addCase(Qi,t=>{t.queries=[]}).addCase(I.fulfilled,(t,r)=>{let a=r.payload.queryExecuted.trim(),n=r.payload.response.results;if(!a.length||!n.length)return;t.queries=t.queries.filter(i=>i!==a);let o=t.queries.slice(0,t.maxLength-1);t.queries=[a,...o]})});var sD={queries:[]},cD={maxLength:10,clearFilters:!0},uD=new Y({queries:new X({required:!0})}),lD=new Y({maxLength:new D({required:!0,min:1}),clearFilters:new K});function dD(e,t){he(e,lD,t==null?void 0:t.options,"buildRecentQueriesList"),ke(e,uD,t==null?void 0:t.initialState,"buildRecentQueriesList")}function pD(e,t){if(!fD(e))throw k;let r=M(e),{dispatch:a}=e,n=()=>e.state,o={...cD,...t==null?void 0:t.options},i={...sD,...t==null?void 0:t.initialState};dD(e,{options:o,initialState:i});let s={queries:i.queries,maxLength:o.maxLength};return a(Ni(s)),{...r,get state(){let c=n();return{...c.recentQueries,analyticsEnabled:c.configuration.analytics.enabled}},clear(){a(mA()),a(Qi())},executeRecentQuery(c){let u=new D({required:!0,min:0,max:this.state.queries.length}).validate(c);if(u)throw new Error(u);a(Bu({q:this.state.queries[c],clearFilters:o.clearFilters})),a(I({legacy:gA(),next:hA()}))}}}function fD(e){return e.addReducers({search:J,recentQueries:Vd}),!0}var SA=e=>E("analytics/recentResults/click",(t,r)=>(ut(e),t.makeRecentResultClick(Oe(e,r),Le(e)))),yA=()=>E("analytics/recentResults/clear",e=>e.makeClearRecentResults());var Md=T(Xc(),e=>{e.addCase(ui,(t,r)=>{t.results=r.payload.results.slice(0,r.payload.maxLength),t.maxLength=r.payload.maxLength}).addCase(li,t=>{t.results=[]}).addCase(wt,(t,r)=>{let a=r.payload;t.results=t.results.filter(o=>o.uniqueId!==a.uniqueId);let n=t.results.slice(0,t.maxLength-1);t.results=[a,...n]})});var mD={initialState:{results:[]},options:{maxLength:10}},gD=new Y({results:new X({required:!0})}),hD=new Y({maxLength:new D({required:!0,min:1})});function SD(e,t){he(e,hD,t==null?void 0:t.options,"buildRecentResultsList"),ke(e,gD,t==null?void 0:t.initialState,"buildRecentResultsList")}function yD(e,t){if(!CD(e))throw k;let r=M(e),{dispatch:a}=e,n=()=>e.state,o={...mD,...t};SD(e,o);let i={results:o.initialState.results,maxLength:o.options.maxLength};return a(ui(i)),{...r,get state(){return n().recentResults},clear(){a(yA()),a(li())}}}function CD(e){return e.addReducers({recentResults:Md}),!0}function xD(e,t){return dt(e,t,()=>e.dispatch(SA(t.options.result)))}function vD(e,t){if(!AD(e))throw k;let r=p=>{var f,m;return(m=(f=e.state.facetOptions.facets[p])==null?void 0:f.enabled)!=null?m:!1},a=p=>{var f,m,g,S,y,x,b,P,N,H,Z,U,_,fe,Se,j;return(j=(Se=(Z=(b=(g=(m=(f=e.state.facetSet)==null?void 0:f[p])==null?void 0:m.request)==null?void 0:g.currentValues)!=null?b:(x=(y=(S=e.state.categoryFacetSet)==null?void 0:S[p])==null?void 0:y.request)==null?void 0:x.currentValues)!=null?Z:(H=(N=(P=e.state.numericFacetSet)==null?void 0:P[p])==null?void 0:N.request)==null?void 0:H.currentValues)!=null?Se:(fe=(_=(U=e.state.dateFacetSet)==null?void 0:U[p])==null?void 0:_.request)==null?void 0:fe.currentValues)!=null?j:null},n=p=>p in e.state.facetOptions.facets,o=()=>Hn({isFacetRegistered:n(t.facetId),parentFacets:t.conditions.map(({parentFacetId:p})=>n(p)?{enabled:r(p),values:a(p)}:null)}),i=()=>{let p=o();return p===l?!1:(l=p,!0)},s=()=>t.conditions.some(p=>{if(!r(p.parentFacetId))return!1;let f=a(p.parentFacetId);return f===null?!1:p.condition(f)}),c=()=>{e.state.facetSet&&Object.entries(e.state.facetSet).forEach(([p,f])=>f.request.freezeCurrentValues&&e.dispatch(Kr({facetId:p,freezeCurrentValues:!1})))},u=()=>{if(!n(t.facetId))return;let p=r(t.facetId),f=s();p!==f&&(e.dispatch(f?Ke(t.facetId):ve(t.facetId)),c())};if(!t.conditions.length)return{stopWatching(){}};let l=o(),d=e.subscribe(()=>{i()&&u()});return u(),{stopWatching(){d()}}}function AD(e){return e.addReducers({facetOptions:Qe}),!0}function bD(e,t){if(!FD(e))throw k;let{facetSearch:r,allowedValues:a,...n}=t.options.facet,o=Ze(e,n);e.dispatch(Ar({...$s,...n,facetId:o,...a&&{allowedValues:{type:"simple",values:a}}}));let i=xl(e,{options:{...r,facetId:o},select:c=>{e.dispatch(ie()),e.dispatch(I({legacy:Pe({facetId:o,facetValue:c.rawValue}),next:De(o,c.rawValue)}))},exclude:c=>{e.dispatch(ie()),e.dispatch(I({legacy:St({facetId:o,facetValue:c.rawValue}),next:hr(o,c.rawValue)}))},isForFieldSuggestions:!0,executeFacetSearchActionCreator:Je,executeFieldSuggestActionCreator:Oa});return{...M(e),...i,updateText:function(c){i.updateText(c),i.search()},get state(){return i.state}}}function FD(e){return e.addReducers({facetSet:Or,configuration:$,facetSearchSet:ti,search:J}),!0}function RD(e,t){if(!PD(e))throw k;let{facetSearch:r,...a}=t.options.facet,n=Ze(e,a);e.dispatch(dr({...Bs,...a,facetId:n}));let o=ll(e,{options:{...r,facetId:n},isForFieldSuggestions:!0});return{...M(e),...o,updateText:function(s){o.updateText(s),o.search()},get state(){return o.state}}}function PD(e){return e.addReducers({categoryFacetSet:fr,configuration:$,categoryFacetSearchSet:Go,search:J}),!0}var CA=T(ha(),e=>{e.addCase(I.fulfilled,(t,r)=>{var n;t.set={};let a=(n=r.payload.response.generateAutomaticFacets)==null?void 0:n.facets;a==null||a.forEach(o=>{t.set[o.field]={response:o}})}).addCase(zl,(t,r)=>{r.payload.desiredCount&&(t.desiredCount=r.payload.desiredCount),r.payload.numberOfValues&&(t.numberOfValues=r.payload.numberOfValues)}).addCase(Ma,(t,r)=>{var c;let{field:a,selection:n}=r.payload,o=(c=t.set[a])==null?void 0:c.response;if(!o)return;let i=o.values.find(u=>u.value===n.value);if(!i)return;let s=i.state==="selected";i.state=s?"idle":"selected"}).addCase(Wl,(t,r)=>{var o;let a=r.payload,n=(o=t.set[a])==null?void 0:o.response;if(!!n)for(let i of n.values)i.state="idle"}).addCase(ue,(t,r)=>{var o,i,s;let a=(o=r.payload.af)!=null?o:{},n=Object.keys(t.set);for(let c in a)if(!t.set[c]){let u=wD(c),l=a[c].map(d=>ID(d));u.values.push(...l),t.set[c]={response:u}}for(let c of n)if(!(c in a)){let u=(i=t.set[c])==null?void 0:i.response;for(let l of u.values)l.state="idle"}for(let c in a){let u=(s=t.set[c])==null?void 0:s.response;if(u){let l=u.values;for(let d of l)a[c].includes(d.value)?d.state==="idle"&&(d.state="selected"):d.state="idle"}}}).addCase(ce.fulfilled,(t,r)=>{if(!!r.payload&&Object.keys(r.payload.automaticFacetSet.set).length!==0)return r.payload.automaticFacetSet}).addCase(Fe,t=>{Object.values(t.set).forEach(({response:r})=>{r.values.forEach(a=>a.state="idle")})})});function wD(e){return{field:e,values:[],moreValuesAvailable:!1,label:"",indexScore:0}}function ID(e){return{value:e,state:"selected",numberOfResults:0}}function xA(e,t){let{dispatch:r}=e,a=M(e),{field:n}=t;return{...a,toggleSelect(o){r(Ma({field:n,selection:o})),r(I({legacy:yl(n,o),next:Cl(n,o)}))},deselectAll(){r(Wl(n)),r(I({legacy:Ne(n),next:Xe(n)}))},get state(){var s,c;let o=(c=(s=e.state.automaticFacetSet)==null?void 0:s.set[n])==null?void 0:c.response;return o?{field:o.field,label:o.label,values:o.values}:{field:"",values:[],label:""}}}}function vA(e){return{desiredCount:e.desiredCount,numberOfValues:e.numberOfValues}}function ED(e,t){if(!kD(e))throw k;let{dispatch:r}=e,a=vA(t.options);return r(zl(a)),{...M(e),get state(){var i,s;return{automaticFacets:(s=(i=e.state.search.response.generateAutomaticFacets)==null?void 0:i.facets.map(c=>xA(e,{field:c.field})))!=null?s:[]}}}}function kD(e){return e.addReducers({automaticFacetSet:CA,configuration:$,search:J}),!0}function _m(e,t){var r,a;return(a=(r=e.generatedAnswer)==null?void 0:r.citations)==null?void 0:a.find(n=>n.id===t)}function kt(e){var t,r,a;return(a=(r=(t=e.search)==null?void 0:t.response)==null?void 0:r.extendedResults)==null?void 0:a.generativeQuestionAnsweringId}var OD=()=>E("analytics/generatedAnswer/retry",e=>e.makeRetryGeneratedAnswer()),qD=e=>E("analytics/generatedAnswer/rephrase",(t,r)=>{let a=kt(r);return a?t.makeRephraseGeneratedAnswer({generativeQuestionAnsweringId:a,rephraseFormat:e.answerStyle}):null}),TD=e=>E("analytics/generatedAnswer/openAnswerSource",(t,r)=>{let a=kt(r),n=_m(r,e);return!a||!n?null:t.makeOpenGeneratedAnswerSource({generativeQuestionAnsweringId:a,permanentId:n.permanentid,citationId:n.id})}),DD=(e,t)=>E("analytics/generatedAnswer/hoverCitation",(r,a)=>{let n=kt(a),o=_m(a,e);return!n||!o?null:r.makeGeneratedAnswerSourceHover({generativeQuestionAnsweringId:n,permanentId:o.permanentid,citationId:o.id,citationHoverTimeMs:t})}),VD=()=>E("analytics/generatedAnswer/like",(e,t)=>{let r=kt(t);return r?e.makeLikeGeneratedAnswer({generativeQuestionAnsweringId:r}):null}),MD=()=>E("analytics/generatedAnswer/dislike",(e,t)=>{let r=kt(t);return r?e.makeDislikeGeneratedAnswer({generativeQuestionAnsweringId:r}):null}),LD=e=>E("analytics/generatedAnswer/sendFeedback",(t,r)=>{let a=kt(r);return a?t.makeGeneratedAnswerFeedbackSubmit({generativeQuestionAnsweringId:a,reason:e}):null}),ND=e=>E("analytics/generatedAnswer/sendFeedback",(t,r)=>{let a=kt(r);return a?t.makeGeneratedAnswerFeedbackSubmit({generativeQuestionAnsweringId:a,reason:"other",details:e}):null}),$m=e=>E("analytics/generatedAnswer/streamEnd",(t,r)=>{let a=kt(r);return a?t.makeGeneratedAnswerStreamEnd({generativeQuestionAnsweringId:a,answerGenerated:e}):null}),QD=()=>E("analytics/generatedAnswer/show",(e,t)=>{let r=kt(t);return r?e.makeGeneratedAnswerShowAnswers({generativeQuestionAnsweringId:r}):null}),BD=()=>E("analytics/generatedAnswer/hide",(e,t)=>{let r=kt(t);return r?e.makeGeneratedAnswerHideAnswers({generativeQuestionAnsweringId:r}):null}),jD=()=>E("analytics/generatedAnswer/copy",(e,t)=>{let r=kt(t);return r?e.makeGeneratedAnswerCopyToClipboard({generativeQuestionAnsweringId:r}):null}),Bi={logCopyGeneratedAnswer:jD,logGeneratedAnswerHideAnswers:BD,logGeneratedAnswerShowAnswers:QD,logGeneratedAnswerStreamEnd:$m,logGeneratedAnswerDetailedFeedback:ND,logGeneratedAnswerFeedback:LD,logDislikeGeneratedAnswer:MD,logLikeGeneratedAnswer:VD,logHoverCitation:DD,logOpenGeneratedAnswerSource:TD,logRetryGeneratedAnswer:OD,logRephraseGeneratedAnswer:qD};var AA=async e=>{var t;return{accessToken:e.configuration.accessToken,organizationId:e.configuration.organizationId,url:e.configuration.platformUrl,streamId:(t=e.search.extendedResults)==null?void 0:t.generativeQuestionAnsweringId}};var bA=["default","bullet","step","concise"];var ac=new w({required:!0}),FA=new w,Hm=new K({required:!0}),UD={id:ac,title:ac,uri:ac,permanentid:ac,clickUri:FA},ji=C("generatedAnswer/setIsVisible",e=>A(e,Hm)),Gm=C("generatedAnswer/updateMessage",e=>A(e,{textDelta:ac})),zm=C("generatedAnswer/updateCitations",e=>A(e,{citations:new X({required:!0,each:new q({values:UD})})})),Wm=C("generatedAnswer/updateError",e=>A(e,{message:FA,code:new D({min:0})})),Mn=C("generatedAnswer/resetAnswer"),Ld=C("generatedAnswer/like"),Nd=C("generatedAnswer/dislike"),Qd=C("generatedAnswer/feedbackModal/open"),Bd=C("generatedAnswer/setId",e=>A(e,{id:new w({required:!0})})),jd=C("generatedAnswer/feedbackModal/close"),nc=C("generatedAnswer/sendFeedback"),oc=C("generatedAnswer/setIsLoading",e=>A(e,Hm)),Ud=C("generatedAnswer/setIsStreaming",e=>A(e,Hm)),ic=C("generatedAnswer/updateResponseFormat",e=>A(e,{answerStyle:new w({required:!0,constrainTo:bA})})),_d=C("generatedAnswer/registerFieldsToIncludeInCitations",e=>A(e,Pc)),RA=W("generatedAnswer/streamAnswer",async(e,t)=>{var l;let r=t.getState(),{dispatch:a,extra:n}=t,{setAbortControllerRef:o}=e,i=await AA(r),s=(d,p)=>{switch(d){case"genqa.messageType":a(Gm(JSON.parse(p)));break;case"genqa.citationsType":a(zm(JSON.parse(p)));break;case"genqa.endOfStreamType":a(Ud(!1)),a($m(JSON.parse(p).answerGenerated));break;default:r.debug&&n.logger.warn(`Unknown payloadType: "${d}"`)}};a(oc(!0));let c=d=>d.streamId===t.getState().search.extendedResults.generativeQuestionAnsweringId,u=(l=n.streamingClient)==null?void 0:l.streamGeneratedAnswer(i,{write:d=>{c(i)&&(a(oc(!1)),d.payload&&d.payloadType&&s(d.payloadType,d.payload))},abort:d=>{c(i)&&a(Wm(d))},close:()=>{c(i)&&a(Ud(!1))},resetAnswer:()=>{c(i)&&a(Mn())}});u?o(u):a(oc(!1))});var $d=T(Yn(),e=>e.addCase(ji,(t,{payload:r})=>{t.isVisible=r}).addCase(Bd,(t,{payload:r})=>{t.id=r.id}).addCase(Gm,(t,{payload:r})=>{t.isLoading=!1,t.isStreaming=!0,t.answer||(t.answer=""),t.answer+=r.textDelta,delete t.error}).addCase(zm,(t,{payload:r})=>{t.isLoading=!1,t.isStreaming=!0,t.citations=t.citations.concat(r.citations),delete t.error}).addCase(Wm,(t,{payload:r})=>{t.isLoading=!1,t.isStreaming=!1,t.error={...r,isRetryable:r.code===uf},t.citations=[],delete t.answer}).addCase(Ld,t=>{t.liked=!0,t.disliked=!1}).addCase(Nd,t=>{t.liked=!1,t.disliked=!0}).addCase(Qd,t=>{t.feedbackModalOpen=!0}).addCase(jd,t=>{t.feedbackModalOpen=!1}).addCase(nc,t=>{t.feedbackSubmitted=!0}).addCase(Mn,t=>({...Yn(),responseFormat:t.responseFormat,fieldsToIncludeInCitations:t.fieldsToIncludeInCitations,isVisible:t.isVisible,id:t.id})).addCase(oc,(t,{payload:r})=>{t.isLoading=r}).addCase(Ud,(t,{payload:r})=>{t.isStreaming=r}).addCase(ic,(t,{payload:r})=>{t.responseFormat=r}).addCase(_d,(t,r)=>{t.fieldsToIncludeInCitations=[...new Set(t.fieldsToIncludeInCitations.concat(r.payload))]}));var yt={engines:{},setAbortControllerRef:(e,t)=>{yt.engines[t].abortController=e},getIsStreamInProgress:e=>{var t;return!yt.engines[e].abortController||((t=yt.engines[e].abortController)==null?void 0:t.signal.aborted)?(yt.engines[e].abortController=void 0,!1):!0},subscribeToSearchRequests:e=>{let t=()=>{var s;let r=e.state,a=r.search.requestId,n=r.search.extendedResults.generativeQuestionAnsweringId,o=r.generatedAnswer.id;yt.engines[o].lastRequestId!==a&&(yt.engines[o].lastRequestId=a,(s=yt.engines[o].abortController)==null||s.abort(),e.dispatch(Mn())),!yt.getIsStreamInProgress(o)&&n&&n!==yt.engines[o].lastStreamId&&(yt.engines[o].lastStreamId=n,e.dispatch(RA({setAbortControllerRef:c=>yt.setAbortControllerRef(c,o)})))};return e.subscribe(t)}};function PA(e,t,r={}){var u,l;if(!_D(e))throw k;let{dispatch:a}=e,n=M(e),o=()=>e.state;if(!e.state.generatedAnswer.id){let d=la("genQA-",12);a(Bd({id:d})),yt.engines[d]={abortController:void 0,lastRequestId:"",lastStreamId:""}}let i=(u=r.initialState)==null?void 0:u.isVisible;i!==void 0&&a(ji(i));let s=(l=r.initialState)==null?void 0:l.responseFormat;s&&a(ic(s));let c=r.fieldsToIncludeInCitations;return c&&a(_d(c)),yt.subscribeToSearchRequests(e),{...n,get state(){return o().generatedAnswer},like(){this.state.liked||(a(Ld()),a(t.logLikeGeneratedAnswer()))},dislike(){this.state.disliked||(a(Nd()),a(t.logDislikeGeneratedAnswer()))},openFeedbackModal(){a(Qd())},closeFeedbackModal(){a(jd())},sendFeedback(d){a(t.logGeneratedAnswerFeedback(d)),a(nc())},sendDetailedFeedback(d){a(t.logGeneratedAnswerDetailedFeedback(d)),a(nc())},logCitationClick(d){a(t.logOpenGeneratedAnswerSource(d))},logCitationHover(d,p){a(t.logHoverCitation(d,p))},rephrase(d){a(ic(d))},show(){this.state.isVisible||(a(ji(!0)),a(t.logGeneratedAnswerShowAnswers()))},hide(){this.state.isVisible&&(a(ji(!1)),a(t.logGeneratedAnswerHideAnswers()))},logCopyToClipboard(){a(t.logCopyGeneratedAnswer())},retry(){}}}function _D(e){return e.addReducers({generatedAnswer:$d}),!0}function $D(e,t={}){let{dispatch:r}=e,a=PA(e,Bi,t);return{...a,get state(){return a.state},retry(){r(I({legacy:Bi.logRetryGeneratedAnswer()}))},rephrase(n){a.rephrase(n),r(I({legacy:Bi.logRephraseGeneratedAnswer(n)}))}}}function wA(e,t,r){let a=!1,n=()=>{a||(a=!0,e.dispatch(t.logOpenGeneratedAnswerSource(r.options.citation.id)))};return dt(e,r,()=>{n()})}function HD(e,t){return wA(e,Bi,t)}var Ha=()=>new w({required:!1,emptyAllowed:!0}),Hd=C("advancedSearchQueries/update",e=>A(e,{aq:Ha(),cq:Ha(),lq:Ha(),dq:Ha()})),Gd=C("advancedSearchQueries/register",e=>A(e,{aq:Ha(),cq:Ha(),lq:Ha(),dq:Ha()}));var IA=T(st(),e=>{e.addCase(Hd,(t,r)=>{let{aq:a,cq:n,lq:o,dq:i}=r.payload;Ee(a)||(t.aq=a,t.aqWasSet=!0),Ee(n)||(t.cq=n,t.cqWasSet=!0),Ee(o)||(t.lq=o,t.lqWasSet=!0),Ee(i)||(t.dq=i,t.dqWasSet=!0)}).addCase(Gd,(t,r)=>{let{aq:a,cq:n,lq:o,dq:i}=r.payload;Ee(a)||(t.defaultFilters.aq=a,t.aqWasSet||(t.aq=a)),Ee(n)||(t.defaultFilters.cq=n,t.cqWasSet||(t.cq=n)),Ee(o)||(t.defaultFilters.lq=o,t.lqWasSet||(t.lq=o)),Ee(i)||(t.defaultFilters.dq=i,t.dqWasSet||(t.dq=i))}).addCase(ce.fulfilled,(t,r)=>{var a,n;return(n=(a=r.payload)==null?void 0:a.advancedSearchQueries)!=null?n:t}).addCase(ue,(t,r)=>{let{aq:a,cq:n}=r.payload;Ee(a)||(t.aq=a,t.aqWasSet=!0),Ee(n)||(t.cq=n,t.cqWasSet=!0)})});function uhe(e){return e.addReducers({advancedSearchQueries:IA}),{updateAdvancedSearchQueries:Hd,registerAdvancedSearchQueries:Gd}}function xhe(e){return e.addReducers({categoryFacetSet:fr}),{deselectAllCategoryFacetValues:pr,registerCategoryFacet:dr,toggleSelectCategoryFacetValue:ka,updateCategoryFacetNumberOfValues:Cn,updateCategoryFacetSortCriterion:$o,updateFacetAutoSelection:bt,updateCategoryFacetBasePath:Yu}}function qhe(e){return e.addReducers({facetSet:Or}),{deselectAllFacetValues:Ae,registerFacet:Ar,toggleSelectFacetValue:br,toggleExcludeFacetValue:Fr,updateFacetIsFieldExpanded:Rn,updateFacetNumberOfValues:Fn,updateFacetSortCriterion:Jo,updateFreezeCurrentValues:Kr,updateFacetAutoSelection:bt}}function jhe(e){return e.addReducers({configuration:$}),{disableAnalytics:so,enableAnalytics:co,setOriginLevel2:vu,setOriginLevel3:Au,updateAnalyticsConfiguration:Ca,updateBasicConfiguration:ir}}function Whe(e){return e.addReducers({configuration:$,pipeline:fo,searchHub:go}),{updateSearchConfiguration:At}}function Zhe(e){return e.addReducers({context:_u}),{addContext:Sn,removeContext:yn,setContext:hn}}function nSe(e){return e.addReducers({dictionaryFieldContext:Hu}),{addContext:No,removeContext:Qo,setContext:Lo}}function cSe(e){return e.addReducers({debug:lo}),{disableDebug:uo,enableDebug:xa}}function hSe(e){return e.addReducers({dateFacetSet:qr}),{deselectAllDateFacetValues:il,registerDateFacet:Rr,toggleSelectDateFacetValue:Pr,toggleExcludeDateFacetValue:wr,updateDateFacetSortCriterion:ol,updateDateFacetValues:Jr}}function bSe(e){return e.addReducers({facetOptions:Qe}),{updateFacetOptions:ie,enableFacet:Ke,disableFacet:ve}}function ISe(e){return e.addReducers({didYouMean:Gu,query:It}),{applyDidYouMeanCorrection:Rt,disableDidYouMean:ku,enableDidYouMean:Po,enableAutomaticQueryCorrection:Ou,disableAutomaticQueryCorrection:wo,setCorrectionMode:Io}}function qSe(e){return e.addReducers({fields:Ea}),{registerFieldsToInclude:Pa,enableFetchAllFields:Vo,disableFetchAllFields:gn,fetchFieldsDescription:Mo}}function LSe(e){return e.addReducers({history:Gl,facetOrder:jl}),{back:ks,forward:Fu}}function HSe(e){return e.addReducers({numericFacetSet:Pt}),{deselectAllNumericFacetValues:ul,registerNumericFacet:Ir,toggleSelectNumericFacetValue:Er,toggleExcludeNumericFacetValue:kr,updateNumericFacetSortCriterion:cl,updateNumericFacetValues:Xr}}function XSe(e){return e.addReducers({folding:kd}),{registerFolding:wa,loadCollection:Ia}}function rye(e){return e.addReducers({pagination:Dr}),{nextPage:vo,previousPage:Ao,registerNumberOfResults:yo,registerPage:xo,updateNumberOfResults:Co,updatePage:Ft}}function iye(e){return e.addReducers({pipeline:fo}),{setPipeline:po}}function dye(e){return e.addReducers({query:It}),{updateQuery:Ye}}function Sye(e){return e.addReducers({querySet:fi}),{registerQuerySetQuery:pi,updateQuerySetQuery:qn}}function Pye(e){return e.addReducers({instantResults:nd}),{registerInstantResults:ho,updateInstantResultsQuery:sr,clearExpiredResults:So}}function Lye(e){return e.addReducers({querySuggest:mi,querySet:fi}),{clearQuerySuggest:Na,fetchQuerySuggestions:Qa,registerQuerySuggest:di,selectQuerySuggestion:Vr}}function Uye(e){return e.addReducers({search:J}),{executeSearch:ko,fetchMoreResults:qo,fetchFacetValues:Nu,fetchPage:Oo,fetchInstantResults:SC}}function Gye(e){return e.addReducers({searchHub:go}),{setSearchHub:mo}}function Kye(e){return e.addReducers({sortCriteria:sd}),{registerSortCriterion:hi,updateSortCriterion:Si}}function iCe(e){return e.addReducers({standaloneSearchBoxSet:Ad}),{registerStandaloneSearchBox:xi,fetchRedirectUrl:Ua,updateAnalyticsToSearchFromLink:Ai,updateAnalyticsToOmniboxFromLink:bi,resetStandaloneSearchBox:vi}}function pCe(e){return e.addReducers({staticFilterSet:fd}),{registerStaticFilter:yi,toggleSelectStaticFilterValue:Zr,toggleExcludeStaticFilterValue:ea,deselectAllStaticFilterValues:ja}}function SCe(e){return e.addReducers({tabSet:hd}),{registerTab:Do,updateActiveTab:jt}}function vCe(e){return e.addReducers({questionAnswering:Mr}),{collapseSmartSnippet:qi,expandSmartSnippet:Oi,dislikeSmartSnippet:Di,likeSmartSnippet:Ti,openFeedbackModal:Vi,closeFeedbackModal:$a,expandSmartSnippetRelatedQuestion:Mi,collapseSmartSnippetRelatedQuestion:Li}}function FCe(e){return e.addReducers({}),{deselectAllBreadcrumbs:Fe,deselectAllNonBreadcrumbs:va}}function ECe(e){return e.addReducers({recentQueries:Vd}),{registerRecentQueries:Ni,clearRecentQueries:Qi}}function DCe(e){return e.addReducers({recentResults:Md}),{registerRecentResults:ui,clearRecentResults:li,pushRecentResult:wt}}var zd=C("excerptLength/set",e=>A(e,new D({min:0,required:!0})));var EA=T(Hc(),e=>{e.addCase(zd,(t,r)=>{t.length=r.payload})});function GCe(e){return e.addReducers({excerptLength:EA}),{setExcerptLength:zd}}function txe(e){return e.addReducers({resultPreview:Id}),{fetchResultContent:Dn,updateContentURL:Ei,nextPreview:Pi,previousPreview:wi,preparePreviewPagination:Ii}}function oxe(e){return e.addReducers({generatedAnswer:$d}),{resetAnswer:Mn}}var GD=new Y({content:new me({required:!0}),conditions:new me({required:!0}),priority:new D({required:!1,default:0,min:0}),fields:new X({required:!1,each:O})});function zD(e){if(!WD(e))throw k;let t=[],r=a=>{a.forEach(n=>{if(GD.validate(n),!n.conditions.every(i=>i instanceof Function))throw new Ya("Each result template conditions should be a function that takes a result as an argument and returns a boolean")})};return{registerTemplates(...a){let n=[];r(a),a.forEach(o=>{let i={...o,priority:o.priority||0,fields:o.fields||[]};t.push(i),n.push(...i.fields)}),t.sort((o,i)=>i.priority-o.priority),n.length&&e.dispatch(Pa(n))},selectTemplate(a){let n=t.find(o=>o.conditions.every(i=>i(a)));return n?n.content:null}}}function WD(e){return e.addReducers({fields:Ea}),!0}function $xe(e){return e.addReducers({}),{logClearBreadcrumbs:yd,logInterfaceLoad:yu,logSearchFromLink:Cu,logOmniboxFromLink:xu,logInterfaceChange:ya,logDidYouMeanClick:qu,logCategoryFacetBreadcrumb:Sd,logFacetBreadcrumb:Yo,logFacetClearAll:Ne,logFacetUnexclude:Wr,logFacetExclude:St,logFacetDeselect:Ut,logFacetSelect:Pe,logFacetShowLess:Wo,logFacetShowMore:zo,logFacetUpdateSort:gr,logDateFacetBreadcrumb:Ys,logNumericFacetBreadcrumb:Ks,logNavigateBackward:_l,logNavigateForward:Ul,logPageNext:Kl,logPageNumber:si,logPagePrevious:Jl,logPagerResize:ii,logSearchboxSubmit:Ba,logQuerySuggestionClick:td,logResultsSort:gi,logDislikeSmartSnippet:Vm,logLikeSmartSnippet:Dm,logOpenSmartSnippetFeedbackModal:Lm,logCloseSmartSnippetFeedbackModal:Nm,logSmartSnippetFeedback:Qm,logSmartSnippetDetailedFeedback:Bm,logExpandSmartSnippet:qm,logCollapseSmartSnippet:Tm,logExpandSmartSnippetSuggestion:jm,logCollapseSmartSnippetSuggestion:Um,logNoResultsBack:$l,logStaticFilterSelect:ld,logStaticFilterDeselect:Ci,logStaticFilterClearAll:dd,logTriggerQuery:Tu,logUndoTriggerQuery:Du,logNotifyTrigger:Vu,logTriggerRedirect:Mu,logTriggerExecute:Lu}}function Wxe(e){return e.addReducers({}),{logDocumentOpen:Zl,logOpenSmartSnippetSource:Mm,logOpenSmartSnippetSuggestionSource:rc,logOpenSmartSnippetInlineLink:tc,logOpenSmartSnippetSuggestionInlineLink:qd}}function eve(e){return e.addReducers({}),{logSearchEvent:_y,logClickEvent:$y,logCustomEvent:Hy}}var kA=W("analytics/addPageViewEntry",async(e,{getState:t})=>{t().configuration.analytics.enabled&&vt.addElement({name:"PageView",value:e,time:JSON.stringify(new Date)})});function ive(e){return e.addReducers({}),{addPageViewEntryInActionsHistory:kA}}function YD(e){let{by:t,order:r}=e;switch(t){case Zt.Relevancy:return Cs();case Zt.QRE:return af();case Zt.NoSort:return nf();case Zt.Date:if(!r)throw new Error('An order (i.e., ascending or descending) should be specified for a sort criterion sorted by "date"');return tf(r);default:if(!r)throw new Error(`An order (i.e., ascending or descending) should be specified for a sort criterion sorted by a field, such as "${t}"`);return rf(t,r)}}function KD(e){return e===void 0||e===ma.Ascending||e===ma.Descending}function JD(e){let t=e.split(","),r=new Error(`Wrong criterion expression format for "${e}"`);if(!t.length)throw r;return t.map(a=>{let n=a.trim().split(" "),o=n[0].toLowerCase(),i=n[1]&&n[1].toLowerCase();if(n.length>2||o==="")throw r;if(!KD(i))throw new Error(`Wrong criterion sort order "${i}" in expression "${e}". Order should either be "${ma.Ascending}" or "${ma.Descending}"`);return YD({by:o,order:i})})}function Be(e){return e.negate?"NOT ":""}function Ot(e){return{contains:"=",differentThan:"<>",fuzzyMatch:"~=",greaterThan:">",greaterThanOrEqual:">=",isExactly:"==",lowerThan:"<",lowerThanOrEqual:"<=",phoneticMatch:"%=",regexMatch:"/=",wildcardMatch:"*="}[e]}function OA(e){return{toQuerySyntax(){let{field:t,value:r}=e,a=Ot(e.operator);return`${Be(e)}@${t}${a}${r}`}}}function qA(e){return{toQuerySyntax(){let t=Be(e),{field:r,from:a,to:n}=e,o=Ot("isExactly");return`${t}@${r}${o}${a}..${n}`}}}function TA(e){return{toQuerySyntax(){let t=Be(e),{expression:r}=e;return`${t}"${r}"`}}}function DA(e){return{toQuerySyntax(){let t=Be(e),{field:r}=e;return`${t}@${r}`}}}function VA(e){return{toQuerySyntax(){let{expression:t,negate:r}=e;return r?`NOT (${t})`:t}}}function MA(e){return{toQuerySyntax(){let t=Be(e),{startTerm:r,otherTerms:a}=e,n=XD(a),o=`${r} ${n}`;return e.negate?`${t}(${o})`:o}}}function XD(e){return e.map(t=>{let{endTerm:r,maxKeywordsBetween:a}=t;return`near:${a} ${r}`}).join(" ")}function LA(e){return{toQuerySyntax(){let{field:t,value:r}=e,a=Be(e),n=Ot(e.operator);return`${a}@${t}${n}${r}`}}}function NA(e){return{toQuerySyntax(){let t=Be(e),{field:r,from:a,to:n}=e,o=Ot("isExactly");return`${t}@${r}${o}${a}..${n}`}}}function QA(e){return{toQuerySyntax(){let{name:t,parameters:r}=e,a=ZD(r);return`$${t}(${a})`}}}function ZD(e){return Object.entries(e).map(t=>{let[r,a]=t,n=typeof a=="string"?a:a.toQuerySyntax();return`${r}: ${n}`}).join(", ")}function BA(e){return{toQuerySyntax(){let t=Be(e),{field:r,operator:a,value:n}=e,o=Ot(a),i=a==="fuzzyMatch"?` $quoteVar(value: ${n})`:`("${n}")`;return`${t}@${r}${o}${i}`}}}function jA(e){return{toQuerySyntax(){let{field:t}=e,r=Be(e),a=Ot(e.operator),n=e.values.map(i=>`"${i}"`),o=n.length===1?n[0]:`(${n.join(",")})`;return`${r}@${t}${a}${o}`}}}function vAe(){let e=[],t="and";return{addExpression(r){return e.push(r),this},addKeyword(r){return e.push(VA(r)),this},addNear(r){return e.push(MA(r)),this},addExactMatch(r){return e.push(TA(r)),this},addFieldExists(r){return e.push(DA(r)),this},addStringField(r){return e.push(jA(r)),this},addStringFacetField(r){return e.push(BA(r)),this},addNumericField(r){return e.push(LA(r)),this},addNumericRangeField(r){return e.push(NA(r)),this},addDateField(r){return e.push(OA(r)),this},addDateRangeField(r){return e.push(qA(r)),this},addQueryExtension(r){return e.push(QA(r)),this},joinUsing(r){return t=r,this},toQuerySyntax(){let r=eV(t),a=e.map(n=>n.toQuerySyntax()).join(`) ${r} (`);return e.length<=1?a:`(${a})`}}}function eV(e){return e==="and"?"AND":"OR"}var IAe={buildMockRaw:As,buildMockSearchAppEngine:ES,buildMockResult:OS,createMockState:tu};Jm();export{Os as API_DATE_FORMAT,CS as DefaultFieldsToInclude,XR as EcommerceDefaultFieldsToInclude,qS as HighlightUtils,ef as MinimumFieldsToInclude,rE as ResultTemplatesHelpers,Zt as SortBy,ma as SortOrder,IAe as TestUtils,un as VERSION,Yp as analyticsUrl,rr as baseFacetResponseSelector,ED as buildAutomaticFacetGenerator,Nq as buildBreadcrumbManager,pk as buildCategoryFacet,RD as buildCategoryFieldSuggestions,NE as buildContext,M as buildController,Hr as buildCriterionExpression,qk as buildDateFacet,Hk as buildDateFilter,Pn as buildDateRange,tf as buildDateSortCriterion,QE as buildDictionaryFieldContext,UE as buildDidYouMean,YT as buildExecuteTrigger,Pk as buildFacet,vD as buildFacetConditionsManager,Vq as buildFacetManager,rf as buildFieldSortCriterion,bD as buildFieldSuggestions,$T as buildFoldedResultList,$D as buildGeneratedAnswer,DO as buildHistoryManager,xq as buildInstantResults,HD as buildInteractiveCitation,cq as buildInteractiveInstantResult,xD as buildInteractiveRecentResult,sq as buildInteractiveResult,nf as buildNoSortCriterion,JT as buildNotifyTrigger,Lk as buildNumericFacet,jk as buildNumericFilter,Hs as buildNumericRange,KO as buildPager,XO as buildQueryError,vAe as buildQueryExpression,af as buildQueryRankingExpressionSortCriterion,tq as buildQuerySummary,zT as buildQueryTrigger,DT as buildQuickview,pD as buildRecentQueriesList,yD as buildRecentResultsList,HT as buildRedirectionTrigger,EE as buildRelevanceInspector,Cs as buildRelevanceSortCriterion,nq as buildResultList,zD as buildResultTemplatesManager,dq as buildResultsPerPage,Cm as buildSearchBox,vE as buildSearchEngine,Fm as buildSearchParameterManager,Rd as buildSearchParameterSerializer,qT as buildSearchStatus,rD as buildSmartSnippet,oD as buildSmartSnippetQuestionsList,Rq as buildSort,Uq as buildStandaloneSearchBox,wq as buildStaticFilter,kv as buildStaticFilterValue,Tq as buildTab,ET as buildUrlManager,C as createAction,W as createAsyncThunk,T as createReducer,La as currentPageSelector,mm as currentPagesSelector,EI as deserializeRelativeDate,bf as facetRequestSelector,Tw as facetResponseSelectedValuesSelector,Is as facetResponseSelector,gs as getOrganizationEndpoints,_C as getSampleSearchEngineConfiguration,uhe as loadAdvancedSearchQueryActions,FCe as loadBreadcrumbActions,xhe as loadCategoryFacetSetActions,Wxe as loadClickAnalyticsActions,jhe as loadConfigurationActions,Zhe as loadContextActions,hSe as loadDateFacetSetActions,cSe as loadDebugActions,nSe as loadDictionaryFieldContextActions,ISe as loadDidYouMeanActions,GCe as loadExcerptLengthActions,bSe as loadFacetOptionsActions,qhe as loadFacetSetActions,qSe as loadFieldActions,XSe as loadFoldingActions,oxe as loadGeneratedAnswerActions,eve as loadGenericAnalyticsActions,LSe as loadHistoryActions,ive as loadIPXActionsHistoryActions,Pye as loadInstantResultsActions,HSe as loadNumericFacetSetActions,rye as loadPaginationActions,iye as loadPipelineActions,dye as loadQueryActions,Sye as loadQuerySetActions,Lye as loadQuerySuggestActions,vCe as loadQuestionAnsweringActions,ECe as loadRecentQueriesActions,DCe as loadRecentResultsActions,txe as loadResultPreviewActions,Uye as loadSearchActions,$xe as loadSearchAnalyticsActions,Whe as loadSearchConfigurationActions,Gye as loadSearchHubActions,Kye as loadSortCriteriaActions,iCe as loadStandaloneSearchBoxSetActions,pCe as loadStaticFilterSetActions,SCe as loadTabSetActions,Yl as maxPageSelector,JD as parseCriterionExpression,Tc as platformUrl,dn as validateRelativeDate}; -/** - * @license - * - * Copyright 2024 Coveo Solutions Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ diff --git a/netlify/src/suggestions.js b/netlify/src/suggestions.js deleted file mode 100644 index 06fe351..0000000 --- a/netlify/src/suggestions.js +++ /dev/null @@ -1,442 +0,0 @@ -( function( document, window ) { -"use strict"; - -// Search UI base -const baseElement = document.querySelector( '[data-gc-search]' ); - -// Window location variables -const winLoc = window.location; -const winPath = winLoc.pathname; -const winOrigin = winLoc.origin; -const originPath = winOrigin + winPath; - -// Parameters -const defaults = { - "searchHub": "canada-gouv-public-websites", - "organizationId": "", - "accessToken":"", - "searchBoxQuery": "#wb-srch-q", - "lang": "en", - "numberOfSuggestions": 5, - "minimumCharsForSuggestions": 3, - "originLevel3": originPath, - "pipeline": "", - "endpoint": "https://apps.canada.ca/search" -}; -let lang = document.querySelector( "html" )?.lang; -let paramsOverride = baseElement ? JSON.parse( baseElement.dataset.gcSearch ) : {}; -let paramsDetect = {}; -let params = {}; -let urlParams; -let originLevel3RelativeUrl = ""; - -// UI states -let updateSearchBoxFromState = false; -let searchBoxState; -let lastCharKeyUp; -let activeSuggestion = 0; - -// Firefox patch -let isFirefox = navigator.userAgent.indexOf( "Firefox" ) !== -1; -let waitForkeyUp = false; - -// UI Elements placeholders -let searchBoxElement; -let formElement = document.querySelector( 'form[name="cse-search-box"]' ); -let suggestionsElement = document.querySelector( '#suggestions' ); -let qsA11yHintHTML = document.getElementById( 'sr-qs-hint' )?.innerHTML; - -if ( !qsA11yHintHTML ) { - if ( lang === "fr" ) { - qsA11yHintHTML = - ``; - } - else { - qsA11yHintHTML = - ``; - } -} - -// Init parameters and UI -function initSearchUI() { - if( !baseElement || !DOMPurify ) { - return; - } - - if ( !lang && winPath.includes( "/fr/" ) ) { - paramsDetect.lang = "fr"; - } - if ( lang.startsWith( "fr" ) ) { - paramsDetect.lang = "fr"; - } - - paramsDetect.originLevel3 = formElement.action; - - // Final parameters object - params = Object.assign( defaults, paramsDetect, paramsOverride ); - - // Initialize templates - initTpl(); - - // override origineLevel3 through query parameters - if ( urlParams?.originLevel3 ) { - params.originLevel3 = urlParams.originLevel3; - } - - // Auto detect relative path from originLevel3 - if( !params.originLevel3.startsWith( "/" ) && /http|www/.test( params.originLevel3 ) ) { - try { - const absoluteURL = new URL( params.originLevel3 ); - originLevel3RelativeUrl = absoluteURL.pathname; - } - catch( exception ) { - console.warn( "Exception while auto detecting relative path: " + exception.message ); - } - } - else { - originLevel3RelativeUrl = params.originLevel3; - } - - // Do nothing if no access token is provided - if ( !params.accessToken ) { - return; - } - - // Initialize the engine - initEngine(); -} - -// Initialize default templates -function initTpl() { - // auto-create suggestions element - searchBoxElement = document.querySelector( params.searchBoxQuery ); - if ( searchBoxElement ) { - - // default searchbox attributes - searchBoxElement.setAttribute( 'type', 'search' ); // default, when query suggestions are disabled - - // remove legacy list attribute if exists - searchBoxElement.removeAttribute( 'list' ); - - // if query suggestions are enabled and not advanced search, auto-create suggestions element and update searchbox attributes - if ( params.numberOfSuggestions > 0 && !suggestionsElement ) { - searchBoxElement.setAttribute( 'type', 'text' ); - searchBoxElement.role = "combobox"; - searchBoxElement.setAttribute( 'autocomplete', 'off' ); - searchBoxElement.setAttribute( 'aria-expanded', 'false' ); - searchBoxElement.setAttribute( 'aria-autocomplete', 'list' ); - - suggestionsElement = document.createElement( "ul" ); - suggestionsElement.id = "suggestions"; - suggestionsElement.role = "listbox"; - suggestionsElement.classList.add( "query-suggestions" ); - - searchBoxElement.after( suggestionsElement ); - searchBoxElement.setAttribute( 'aria-controls', 'suggestions' ); - - // Add accessibility instructions after query suggestions - suggestionsElement.insertAdjacentHTML( 'afterEnd', qsA11yHintHTML ); - suggestionsElement.setAttribute( "aria-describedby", "sr-qs-hint" ); - - // Document-wide listener to close query suggestion box if click elsewhere - document.addEventListener( "click", function( evnt ) { - if ( suggestionsElement && ( evnt.target.className !== "suggestion-item" && evnt.target.id !== searchBoxElement?.id ) ) { - closeSuggestionsBox(); - } - } ); - } - } -} - -function sanitizeQuery(q) { - return q.replace(/<[^>]*>?/gm, ''); -} - -// rebuild a clean query string out of a JSON object -function buildCleanQueryString( paramsObject ) { - let urlParam = ""; - for ( var prop in paramsObject ) { - if ( paramsObject[ prop ] ) { - if ( urlParam !== "" ) { - urlParam += "&"; - } - - urlParam += prop + "=" + stripHtml( paramsObject[ prop ].replaceAll( '+', ' ' ) ); - } - } - return urlParam; -} - -// Strip HTML tags of a given string -function stripHtml(html) { - let tmp = document.createElement( "DIV" ); - tmp.innerHTML = html; - return tmp.textContent || tmp.innerText || ""; -} - -// Initiate engine -function initEngine() { - // Listen to "Enter" key up event for search suggestions - if ( searchBoxElement ) { - searchBoxElement.onkeydown = ( e ) => { - // Enter - if ( e.keyCode === 13 && ( activeSuggestion !== 0 && suggestionsElement && !suggestionsElement.hidden ) ) { - selectSuggestion(); - closeSuggestionsBox(); - e.preventDefault(); - } - // Escape or Tab - else if ( e.keyCode === 27 || e.keyCode === 9 ) { - closeSuggestionsBox(); - - if ( e.keyCode === 27 ) { - e.preventDefault(); - } - } - // Arrow key up - else if ( e.keyCode === 38 ) { - if ( !( isFirefox && waitForkeyUp ) ) { - waitForkeyUp = true; - searchBoxArrowKey( "up" ); - e.preventDefault(); - } - } - // Arrow key down - else if ( e.keyCode === 40 ) { - if ( !( isFirefox && waitForkeyUp ) ) { - waitForkeyUp = true; - searchBoxArrowKey( "down" ); - } - } - }; - searchBoxElement.onkeyup = ( e ) => { - waitForkeyUp = false; - lastCharKeyUp = e.keyCode; - // Keys that don't changes the input value - if ( ( e.key.length !== 1 && e.keyCode !== 46 && e.keyCode !== 8 ) || // Non-printable char except Delete or Backspace - ( e.ctrlKey && e.key !== "x" && e.key !== "X" && e.key !== "v" && e.key !== "V" ) ) { // Ctrl-key is pressed but not X or V is use - return; - } - - // Any other key - if ( e.target.value ) { - updateSearchBoxText( sanitizeQuery( e.target.value ) ); - } - if ( e.target.value.length < params.minimumCharsForSuggestions ){ - closeSuggestionsBox(); - } - }; - searchBoxElement.onfocus = () => { - lastCharKeyUp = null; - if ( searchBoxElement.value.length >= params.minimumCharsForSuggestions ) { - updateSearchBoxText( sanitizeQuery( searchBoxElement.value ) ); - } - }; - } - - // Listen to submit event from the search form (advanced searches will instead reload the page with URl parameters to search on load) - if ( formElement ) { - formElement.onsubmit = ( e ) => { - e.preventDefault(); - redirectToSearchPage( 'searchFromLink' ); - }; - } -} - -function redirectToSearchPage( actionCause ) { - if ( formElement && searchBoxElement ) { - window.location.href = formElement.action + "?" + buildCleanQueryString( { q: searchBoxElement.value, actionCause : actionCause } ); - } -} - -function formatHighlightedSuggestion( highlighted ) { - return highlighted.replaceAll( '[', '' ) - .replaceAll( ']', '' ) - .replaceAll( '(', '' ) - .replaceAll( ')', '' ) - .replaceAll( '{', '' ) - .replaceAll( '}', '' ); -} - -function updateSearchBoxText( text ) { - if ( text.length < params.minimumCharsForSuggestions ) { - return; - } - - const body = { - count: params.numberOfSuggestions, - q: text, - locale: params.lang, - timezone: Intl.DateTimeFormat().resolvedOptions().timeZone, - context:{ - searchPageUrl: params.originLevel3, - searchPageRelativeUrl: originLevel3RelativeUrl - }, - searchHub: params.searchHub - }; - - const options = { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - 'Authorization': 'Bearer ' + params.accessToken - }, - body: JSON.stringify( body ) - }; - - fetch(params.endpoint + "/querySuggest?organizationId=" + params.organizationId, options) - .then((response) => { - if (!response.ok) { - // Handle HTTP errors, e.g., 404 Not Found - console.error("HTTP error while getting query suggestions: ", response.status, response.statusText); - } - // Parse the response body as JSON and return a new Promise - return response.json(); - }) - .then((data) => { - updateSearchBoxState( { - isLoadingSuggestions: false, - isLoading: false, - value: text, - suggestions: data.completions.map( suggestion => ( { - highlightedValue: formatHighlightedSuggestion( suggestion.highlighted ), - highlighted: suggestion.highlighted - } ) ) - } ); - }) - .catch((error) => { - // Handle network errors or errors thrown in the .then() block - console.error("Error updating search box suggestions: ", error); - }); -} - -function searchBoxArrowKey( direction ) { - if ( suggestionsElement.hidden ) { - return; - } - - if ( direction === "up" ) { - if ( !activeSuggestion || activeSuggestion <= 1 ) { - activeSuggestion = searchBoxState.suggestions.length; - } - else { - activeSuggestion -= 1; - } - } else { - if ( !activeSuggestion || activeSuggestion >= searchBoxState.suggestions.length ) { - activeSuggestion = 1; - } - else { - activeSuggestion += 1; - } - } - - updateSuggestionSelection(); -} - -// Select the active suggestion -function selectSuggestion() { - let suggestionElement = document.getElementById( 'suggestion-' + activeSuggestion ); - - if ( suggestionElement ) { - const selectedVal = stripHtml( suggestionElement.innerText ); - - if ( selectedVal ) { - searchBoxElement.value = selectedVal; - redirectToSearchPage( 'omniboxFromLink' ); - } - } -} - -// open the suggestions box -function openSuggestionsBox() { - suggestionsElement.hidden = false; - searchBoxElement.setAttribute( 'aria-expanded', 'true' ); -} - -// close the suggestions box -function closeSuggestionsBox() { - if( !suggestionsElement ) { - return; - } - suggestionsElement.hidden = true; - activeSuggestion = 0; - searchBoxElement.setAttribute( 'aria-expanded', 'false' ); - searchBoxElement.removeAttribute( 'aria-activedescendant' ); -} - -// Update the visual selection of the active suggestion -function updateSuggestionSelection() { - // clear current suggestion - let activeSelection = suggestionsElement.getElementsByClassName( 'selected-suggestion' ); - let selectedSuggestionId = 'suggestion-' + activeSuggestion; - let suggestionElement = document.getElementById( selectedSuggestionId ); - Array.prototype.forEach.call(activeSelection, function( suggestion ) { - suggestion.classList.remove( 'selected-suggestion' ); - suggestion.setAttribute( 'aria-selected', "false" ); - }); - - suggestionElement.classList.add( 'selected-suggestion' ); - suggestionElement.setAttribute( 'aria-selected', "true" ); - searchBoxElement.setAttribute( 'aria-activedescendant', selectedSuggestionId ); -} - -// Update the search box state after search actions - used for QS -function updateSearchBoxState( newState ) { - searchBoxState = newState; - - // Show query suggestions if a search action was not executed (if enabled) - if ( updateSearchBoxFromState && searchBoxElement && searchBoxElement.value !== newState.value ) { - searchBoxElement.value = stripHtml( newState.value ); - updateSearchBoxFromState = false; - return; - } - - if ( !suggestionsElement ) { - return; - } - - if ( lastCharKeyUp === 13 ) { - closeSuggestionsBox(); - return; - } - - // Build suggestions list - activeSuggestion = 0; - if ( !searchBoxState.isLoadingSuggestions ) { - suggestionsElement.textContent = ''; - searchBoxState.suggestions.forEach( ( suggestion, index ) => { - const currentIndex = index + 1; - const suggestionId = "suggestion-" + currentIndex; - const node = document.createElement( "li" ); - node.setAttribute( "class", "suggestion-item" ); - node.setAttribute( "aria-selected", "false" ); - node.setAttribute( "aria-setsize", searchBoxState.suggestions.length ); - node.setAttribute( "aria-posinset", currentIndex ); - node.role = "option"; - node.id = suggestionId; - node.onmouseenter = () => { - activeSuggestion = index + 1; - updateSuggestionSelection(); - }; - node.onclick = ( e ) => { - searchBoxElement.value = stripHtml( e.currentTarget.innerText ); - redirectToSearchPage( 'omniboxFromLink' ); - }; - node.innerHTML = DOMPurify.sanitize( suggestion.highlightedValue ); - suggestionsElement.appendChild( node ); - }); - - if ( !searchBoxState.isLoading && searchBoxState.suggestions.length > 0 && searchBoxState.value.length >= params.minimumCharsForSuggestions ) { - openSuggestionsBox(); - } - else{ - closeSuggestionsBox(); - } - } -} - -// Run Search UI -initSearchUI(); - -} )( document, window ); diff --git a/netlify/test/assets/token.js b/netlify/test/assets/token.js deleted file mode 100644 index 4ebeca2..0000000 --- a/netlify/test/assets/token.js +++ /dev/null @@ -1,32 +0,0 @@ -// This file is to facilitate testing of the search pages through GitHub pages - -const formToken = document.getElementById( "sr-token" ); -const searchElm = document.querySelector( "[data-gc-search]" ); -const sessionName = "searchToken"; -const tokenSaved = sessionStorage.getItem( sessionName ); - -if( searchElm && tokenSaved ) { - let configData = JSON.parse( searchElm.dataset.gcSearch ); - - configData.accessToken = tokenSaved; - searchElm.dataset.gcSearch = JSON.stringify( configData ); -} - -if( formToken ) { - formToken.onsubmit = function( e ) { - e.preventDefault(); - - let formData = new FormData( formToken ); - let statusElm = document.getElementById( "sr-token-ok" ); - let tmpElm = document.createElement( "DIV" ); - - tmpElm.innerHTML = formData.get( "token" ); - formData = tmpElm.textContent; - sessionStorage.setItem( sessionName, formData ); - - statusElm.hidden = false; - const hideFeedback = setTimeout( function() { statusElm.hidden = true; }, 5000 ); - - return false; - }; -} diff --git a/netlify/test/index.html b/netlify/test/index.html deleted file mode 100644 index bef28a0..0000000 --- a/netlify/test/index.html +++ /dev/null @@ -1,200 +0,0 @@ - - - - - - -Add token to test search pages - Canada.ca - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - - - - -
    -

    Search

    -
    -
    - - - -
    -
    - -
    -
    -
    - - -
    -
    - - -
    - - - - - - -
    - -

    Add token to test search pages

    -
    -

    Use the form below to facilitate testing search pages by saving a token for the duration of your session. Please refer to the Readme file to get a valid access token or API key.

    -
    - -
    -
    - - -
    - - - -
    - -
    -

    Page details

    -
    Date modified:
    -
    -
    -
    - -
    - - - - - - - diff --git a/netlify/test/srf-en.html b/netlify/test/srf-en.html deleted file mode 100644 index ca0787f..0000000 --- a/netlify/test/srf-en.html +++ /dev/null @@ -1,269 +0,0 @@ - - - - - - -Search facets/filters results - Canada.ca - - - - - - - - - - - - - - - - - - - -
    -
    -
    - -
    -

    Language selection

    - -
    - - - - - -
    -
    - - -
    - - - - - - -
    - -

    Search facets/filters results

    - - - - -
    - - - - -

    Expected output for the result section

    -
    - Output for Results section - [To be completed, see Connector.js for reference until then] -
    - -
    -

    Page details

    -
    Date modified:
    -
    -
    -
    - -
    - - - - - - - - - - -