UNPKG

coveo-search-ui

Version:

Coveo JavaScript Search Framework

1 lines • 787 kB
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Coveo__temporary=t():e.Coveo__temporary=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n=window.webpackJsonpCoveo__temporary;window.webpackJsonpCoveo__temporary=function(t,r,o){for(var a,s,u=0,l=[];u<t.length;u++)s=t[u],i[s]&&l.push(i[s][0]),i[s]=0;for(a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);for(n&&n(t,r,o);l.length;)l.shift()()};var r={},i={89:0};return t.e=function(e){function n(){s.onerror=s.onload=null,clearTimeout(u);var t=i[e];0!==t&&(t&&t[1](new Error("Loading chunk "+e+" failed.")),i[e]=void 0)}var r=i[e];if(0===r)return new Promise(function(e){e()});if(r)return r[2];var o=new Promise(function(t,n){r=i[e]=[t,n]});r[2]=o;var a=document.getElementsByTagName("head")[0],s=document.createElement("script");s.type="text/javascript",s.charset="utf-8",s.async=!0,s.timeout=12e4,t.nc&&s.setAttribute("nonce",t.nc),s.src=t.p+""+({0:"RelevanceInspector",1:"CategoryFacet",2:"DynamicFacet",3:"FacetsMobileMode",4:"DynamicHierarchicalFacet",5:"HierarchicalFacet",6:"TimespanFacet",7:"FacetRange",8:"DynamicFacetRange",9:"Searchbox",10:"Omnibox",11:"Querybox",12:"QuerySuggestPreview",13:"FacetSlider",14:"AdvancedSearch",15:"ResultsPerPage",16:"Pager",17:"OmniboxResultList",18:"SmartSnippet",19:"ResultList",20:"Quickview",21:"SmartSnippetSuggestions",22:"Recommendation",23:"Backdrop",24:"SortDropdown",25:"ResultsPreferences",26:"ResultsFiltersPreferences",27:"YouTubeThumbnail",28:"Thumbnail",29:"Tab",30:"PrintableUri",31:"FieldTable",32:"ImageFieldValue",33:"DistanceResources",34:"Badge",35:"SearchAlerts",36:"SimpleFilter",37:"PreferencesPanel",38:"Matrix",39:"FoldingForThread",40:"FieldValue",41:"Sort",42:"ResultLink",43:"ResultLayoutSelector",44:"ResultFolding",45:"ResultAttachments",46:"QuerySummary",47:"FieldSuggestions",48:"FacetValueSuggestions",49:"CardOverlay",50:"Folding",51:"ChatterPostedBy",52:"ChatterPostAttachment",53:"ChatterLikedBy",54:"AnalyticsSuggestions",55:"FollowItem",56:"RadioButton",57:"MultiSelect",58:"FormGroup",59:"Triggers",60:"Text",61:"StarRating",62:"ShareQuery",63:"Settings",64:"ResultTagging",65:"ResultRating",66:"ResultActionsMenu",67:"QueryDuration",68:"PromotedResultsBadge",69:"MissingTerms",70:"HiddenQuery",71:"ExportToExcel",72:"Excerpt",73:"ErrorReport",74:"DidYouMean",75:"CardActionBar",76:"Breadcrumb",77:"AuthenticationProvider",78:"TemplateLoader",79:"SearchButton",80:"PipelineContext",81:"Logo",82:"Icon",83:"NumericSpinner",84:"Dropdown",85:"CommerceQuery",86:"ChatterTopic",87:"Aggregate"}[e]||e)+".min__cf4c4f4dd6c8a707e936.js";var u=setTimeout(n,12e4);return s.onerror=s.onload=n,a.appendChild(s),o},t.m=e,t.c=r,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="js/",t.oe=function(e){throw console.error(e),e},t(t.s=714)}([function(e,t,n){"use strict";function r(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),i=0;i<n;i++)r[i]=arguments[i+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var o=Array(t+1);for(i=0;i<t;i++)o[i]=arguments[i];return o[t]=r,e.apply(this,o)}}function i(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function o(e){return null===e}function a(e){return void 0===e}function s(e){return!0===e||!1===e||"[object Boolean]"===ot.t.call(e)}function u(e){return!(!e||1!==e.nodeType)}function l(e){var t="[object "+e+"]";return function(e){return ot.t.call(e)===t}}function c(e){return null!=e&&mt(e.getInt8)&&pt(e.buffer)}function d(e,t){return null!=e&&ot.i.call(e,t)}function p(e){return!dt(e)&&Object(ot.f)(e)&&!isNaN(parseFloat(e))}function f(e){return st(e)&&Object(ot.g)(e)}function h(e){return function(){return e}}function m(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=ot.b}}function y(e){return function(t){return null==t?void 0:t[e]}}function g(e){return ot.l?Object(ot.l)(e)&&!St(e):At(e)&&xt.test(ot.t.call(e))}function v(e){for(var t={},n=e.length,r=0;r<n;++r)t[e[r]]=!0;return{contains:function(e){return t[e]},push:function(n){return t[n]=!0,e.push(n)}}}function b(e,t){t=v(t);var n=ot.n.length,r=e.constructor,i=mt(r)&&r.prototype||ot.c,o="constructor";for(d(e,o)&&!t.contains(o)&&t.push(o);n--;)(o=ot.n[n])in e&&e[o]!==i[o]&&!t.contains(o)&&t.push(o)}function S(e){if(!i(e))return[];if(ot.m)return Object(ot.m)(e);var t=[];for(var n in e)d(e,n)&&t.push(n);return ot.h&&b(e,t),t}function w(e){if(null==e)return!0;var t=Tt(e);return"number"==typeof t&&(wt(e)||at(e)||Et(e))?0===t:0===Tt(S(e))}function _(e,t){var n=S(t),r=n.length;if(null==e)return!r;for(var i=Object(e),o=0;o<r;o++){var a=n[o];if(t[a]!==i[a]||!(a in i))return!1}return!0}function E(e){return e instanceof E?e:this instanceof E?void(this._wrapped=e):new E(e)}function C(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,Ct(e))}function A(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!==e)return t!==t;var i=typeof e;return("function"===i||"object"===i||"object"==typeof t)&&x(e,t,n,r)}function x(e,t,n,r){e instanceof E&&(e=e._wrapped),t instanceof E&&(t=t._wrapped);var i=ot.t.call(e);if(i!==ot.t.call(t))return!1;if(gt&&"[object Object]"==i&&St(e)){if(!St(t))return!1;i=It}switch(i){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return ot.d.valueOf.call(e)===ot.d.valueOf.call(t);case"[object ArrayBuffer]":case It:return x(C(e),C(t),n,r)}var o="[object Array]"===i;if(!o&&Ot(e)){if(Ct(e)!==Ct(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;o=!0}if(!o){if("object"!=typeof e||"object"!=typeof t)return!1;var a=e.constructor,s=t.constructor;if(a!==s&&!(mt(a)&&a instanceof a&&mt(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}n=n||[],r=r||[];for(var u=n.length;u--;)if(n[u]===e)return r[u]===t;if(n.push(e),r.push(t),o){if((u=e.length)!==t.length)return!1;for(;u--;)if(!A(e[u],t[u],n,r))return!1}else{var l,c=S(e);if(u=c.length,S(t).length!==u)return!1;for(;u--;)if(l=c[u],!d(t,l)||!A(e[l],t[l],n,r))return!1}return n.pop(),r.pop(),!0}function O(e,t){return A(e,t)}function T(e){if(!i(e))return[];var t=[];for(var n in e)t.push(n);return ot.h&&b(e,t),t}function I(e){var t=Tt(e);return function(n){if(null==n)return!1;var r=T(n);if(Tt(r))return!1;for(var i=0;i<t;i++)if(!mt(n[e[i]]))return!1;return e!==Dt||!mt(n[Mt])}}function M(e){for(var t=S(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=e[t[i]];return r}function L(e){for(var t=S(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=[t[i],e[t[i]]];return r}function P(e){for(var t={},n=S(e),r=0,i=n.length;r<i;r++)t[e[n[r]]]=n[r];return t}function k(e){var t=[];for(var n in e)mt(e[n])&&t.push(n);return t.sort()}function D(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var i=1;i<r;i++)for(var o=arguments[i],a=e(o),s=a.length,u=0;u<s;u++){var l=a[u];t&&void 0!==n[l]||(n[l]=o[l])}return n}}function R(){return function(){}}function N(e){if(!i(e))return{};if(ot.j)return Object(ot.j)(e);var t=R();t.prototype=e;var n=new t;return t.prototype=null,n}function z(e,t){var n=N(e);return t&&Bt(n,t),n}function F(e){return i(e)?wt(e)?e.slice():jt({},e):e}function U(e,t){return t(e),e}function j(e){return wt(e)?e:[e]}function B(e){return E.toPath(e)}function H(e,t){for(var n=t.length,r=0;r<n;r++){if(null==e)return;e=e[t[r]]}return n?e:void 0}function Q(e,t,n){var r=H(e,B(t));return a(r)?n:r}function q(e,t){t=B(t);for(var n=t.length,r=0;r<n;r++){var i=t[r];if(!d(e,i))return!1;e=e[i]}return!!n}function $(e){return e}function Y(e){return e=Bt({},e),function(t){return _(t,e)}}function W(e){return e=B(e),function(t){return H(t,e)}}function V(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,o){return e.call(t,n,r,i,o)}}return function(){return e.apply(t,arguments)}}function G(e,t,n){return null==e?$:mt(e)?V(e,t,n):i(e)&&!wt(e)?Y(e):W(e)}function K(e,t){return G(e,t,1/0)}function J(e,t,n){return E.iteratee!==K?E.iteratee(e,t):G(e,t,n)}function Z(e,t,n){t=J(t,n);for(var r=S(e),i=r.length,o={},a=0;a<i;a++){var s=r[a];o[s]=t(e[s],s,e)}return o}function X(){}function ee(e){return null==e?X:function(t){return Q(e,t)}}function te(e,t,n){var r=Array(Math.max(0,e));t=V(t,n,1);for(var i=0;i<e;i++)r[i]=t(i);return r}function ne(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}function re(e){var t=function(t){return e[t]},n="(?:"+S(e).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(i,t):e}}function ie(e){return"\\"+Kt[e]}function oe(e,t,n){!t&&n&&(t=n),t=Ht({},t,E.templateSettings);var r=RegExp([(t.escape||Gt).source,(t.interpolate||Gt).source,(t.evaluate||Gt).source].join("|")+"|$","g"),i=0,o="__p+='";e.replace(r,function(t,n,r,a,s){return o+=e.slice(i,s).replace(Jt,ie),i=s+t.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?o+="'+\n((__t=("+r+"))==null?'':__t)+\n'":a&&(o+="';\n"+a+"\n__p+='"),t}),o+="';\n";var a=t.variable;if(a){if(!Zt.test(a))throw new Error("variable is not a bare identifier: "+a)}else o="with(obj||{}){\n"+o+"}\n",a="obj";o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";var s;try{s=new Function(a,"_",o)}catch(e){throw e.source=o,e}var u=function(e){return s.call(this,e,E)};return u.source="function("+a+"){\n"+o+"}",u}function ae(e,t,n){t=B(t);var r=t.length;if(!r)return mt(n)?n.call(e):n;for(var i=0;i<r;i++){var o=null==e?void 0:e[t[i]];void 0===o&&(o=n,i=r),e=mt(o)?o.call(e):o}return e}function se(e){var t=++Xt+"";return e?e+t:t}function ue(e){var t=E(e);return t._chain=!0,t}function le(e,t,n,r,o){if(!(r instanceof t))return e.apply(n,o);var a=N(e.prototype),s=e.apply(a,o);return i(s)?s:a}function ce(e,t,n,r){if(r=r||[],t||0===t){if(t<=0)return r.concat(e)}else t=1/0;for(var i=r.length,o=0,a=Tt(e);o<a;o++){var s=e[o];if(rn(s)&&(wt(s)||Et(s)))if(t>1)ce(s,t-1,n,r),i=r.length;else for(var u=0,l=s.length;u<l;)r[i++]=s[u++];else n||(r[i++]=s)}return r}function de(e,t){var n=function(r){var i=n.cache,o=""+(t?t.apply(this,arguments):r);return d(i,o)||(i[o]=e.apply(this,arguments)),i[o]};return n.cache={},n}function pe(e,t,n){var r,i,o,a,s=0;n||(n={});var u=function(){s=!1===n.leading?0:Qt(),r=null,a=e.apply(i,o),r||(i=o=null)},l=function(){var l=Qt();s||!1!==n.leading||(s=l);var c=t-(l-s);return i=this,o=arguments,c<=0||c>t?(r&&(clearTimeout(r),r=null),s=l,a=e.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(u,c)),a};return l.cancel=function(){clearTimeout(r),s=0,r=i=o=null},l}function fe(e,t,n){var i,o,a,s,u,l=function(){var r=Qt()-o;t>r?i=setTimeout(l,t-r):(i=null,n||(s=e.apply(u,a)),i||(a=u=null))},c=r(function(r){return u=this,a=r,o=Qt(),i||(i=setTimeout(l,t),n&&(s=e.apply(u,a))),s});return c.cancel=function(){clearTimeout(i),i=a=u=null},c}function he(e,t){return tn(t,e)}function me(e){return function(){return!e.apply(this,arguments)}}function ye(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}function ge(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function ve(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}function be(e,t,n){t=J(t,n);for(var r,i=S(e),o=0,a=i.length;o<a;o++)if(r=i[o],t(e[r],r,e))return r}function Se(e){return function(t,n,r){n=J(n,r);for(var i=Tt(t),o=e>0?0:i-1;o>=0&&o<i;o+=e)if(n(t[o],o,t))return o;return-1}}function we(e,t,n,r){n=J(n,r,1);for(var i=n(t),o=0,a=Tt(e);o<a;){var s=Math.floor((o+a)/2);n(e[s])<i?o=s+1:a=s}return o}function _e(e,t,n){return function(r,i,o){var a=0,s=Tt(r);if("number"==typeof o)e>0?a=o>=0?o:Math.max(o+s,a):s=o>=0?Math.min(o+1,s):o+s+1;else if(n&&o&&s)return o=n(r,i),r[o]===i?o:-1;if(i!==i)return o=t(ot.q.call(r,a,s),f),o>=0?o+a:-1;for(o=e>0?a:s-1;o>=0&&o<s;o+=e)if(r[o]===i)return o;return-1}}function Ee(e,t,n){var r=rn(e)?ln:be,i=r(e,t,n);if(void 0!==i&&-1!==i)return e[i]}function Ce(e,t){return Ee(e,Y(t))}function Ae(e,t,n){t=V(t,n);var r,i;if(rn(e))for(r=0,i=e.length;r<i;r++)t(e[r],r,e);else{var o=S(e);for(r=0,i=o.length;r<i;r++)t(e[o[r]],o[r],e)}return e}function xe(e,t,n){t=J(t,n);for(var r=!rn(e)&&S(e),i=(r||e).length,o=Array(i),a=0;a<i;a++){var s=r?r[a]:a;o[a]=t(e[s],s,e)}return o}function Oe(e){var t=function(t,n,r,i){var o=!rn(t)&&S(t),a=(o||t).length,s=e>0?0:a-1;for(i||(r=t[o?o[s]:s],s+=e);s>=0&&s<a;s+=e){var u=o?o[s]:s;r=n(r,t[u],u,t)}return r};return function(e,n,r,i){var o=arguments.length>=3;return t(e,V(n,i,4),r,o)}}function Te(e,t,n){var r=[];return t=J(t,n),Ae(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r}function Ie(e,t,n){return Te(e,me(J(t)),n)}function Me(e,t,n){t=J(t,n);for(var r=!rn(e)&&S(e),i=(r||e).length,o=0;o<i;o++){var a=r?r[o]:o;if(!t(e[a],a,e))return!1}return!0}function Le(e,t,n){t=J(t,n);for(var r=!rn(e)&&S(e),i=(r||e).length,o=0;o<i;o++){var a=r?r[o]:o;if(t(e[a],a,e))return!0}return!1}function Pe(e,t,n,r){return rn(e)||(e=M(e)),("number"!=typeof n||r)&&(n=0),dn(e,t,n)>=0}function ke(e,t){return xe(e,W(t))}function De(e,t){return Te(e,Y(t))}function Re(e,t,n){var r,i,o=-1/0,a=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e){e=rn(e)?e:M(e);for(var s=0,u=e.length;s<u;s++)null!=(r=e[s])&&r>o&&(o=r)}else t=J(t,n),Ae(e,function(e,n,r){((i=t(e,n,r))>a||i===-1/0&&o===-1/0)&&(o=e,a=i)});return o}function Ne(e,t,n){var r,i,o=1/0,a=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e){e=rn(e)?e:M(e);for(var s=0,u=e.length;s<u;s++)null!=(r=e[s])&&r<o&&(o=r)}else t=J(t,n),Ae(e,function(e,n,r){((i=t(e,n,r))<a||i===1/0&&o===1/0)&&(o=e,a=i)});return o}function ze(e,t,n){if(null==t||n)return rn(e)||(e=M(e)),e[ne(e.length-1)];var r=rn(e)?F(e):M(e),i=Tt(r);t=Math.max(Math.min(t,i),0);for(var o=i-1,a=0;a<t;a++){var s=ne(a,o),u=r[a];r[a]=r[s],r[s]=u}return r.slice(0,t)}function Fe(e){return ze(e,1/0)}function Ue(e,t,n){var r=0;return t=J(t,n),ke(xe(e,function(e,n,i){return{value:e,index:r++,criteria:t(e,n,i)}}).sort(function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index}),"value")}function je(e,t){return function(n,r,i){var o=t?[[],[]]:{};return r=J(r,i),Ae(n,function(t,i){var a=r(t,i,n);e(o,t,a)}),o}}function Be(e){return e?wt(e)?ot.q.call(e):at(e)?e.match(Sn):rn(e)?xe(e,$):M(e):[]}function He(e){return null==e?0:rn(e)?e.length:S(e).length}function Qe(e,t,n){return t in n}function qe(e,t,n){return ot.q.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function $e(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:qe(e,e.length-t)}function Ye(e,t,n){return ot.q.call(e,null==t||n?1:t)}function We(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:Ye(e,Math.max(0,e.length-t))}function Ve(e){return Te(e,Boolean)}function Ge(e,t){return ce(e,t,!1)}function Ke(e,t,n,r){s(t)||(r=n,n=t,t=!1),null!=n&&(n=J(n,r));for(var i=[],o=[],a=0,u=Tt(e);a<u;a++){var l=e[a],c=n?n(l,a,e):l;t&&!n?(a&&o===c||i.push(l),o=c):n?Pe(o,c)||(o.push(c),i.push(l)):Pe(i,l)||i.push(l)}return i}function Je(e){for(var t=[],n=arguments.length,r=0,i=Tt(e);r<i;r++){var o=e[r];if(!Pe(t,o)){var a;for(a=1;a<n&&Pe(arguments[a],o);a++);a===n&&t.push(o)}}return t}function Ze(e){for(var t=e&&Re(e,Tt).length||0,n=Array(t),r=0;r<t;r++)n[r]=ke(e,r);return n}function Xe(e,t){for(var n={},r=0,i=Tt(e);r<i;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n}function et(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var r=Math.max(Math.ceil((t-e)/n),0),i=Array(r),o=0;o<r;o++,e+=n)i[o]=e;return i}function tt(e,t){if(null==t||t<1)return[];for(var n=[],r=0,i=e.length;r<i;)n.push(ot.q.call(e,r,r+=t));return n}function nt(e,t){return e._chain?E(t).chain():t}function rt(e){return Ae(k(e),function(t){var n=E[t]=e[t];E.prototype[t]=function(){var e=[this._wrapped];return ot.o.apply(e,arguments),nt(this,n.apply(E,e))}}),E}Object.defineProperty(t,"__esModule",{value:!0});var it={};n.d(it,"VERSION",function(){return ot.e}),n.d(it,"restArguments",function(){return r}),n.d(it,"isObject",function(){return i}),n.d(it,"isNull",function(){return o}),n.d(it,"isUndefined",function(){return a}),n.d(it,"isBoolean",function(){return s}),n.d(it,"isElement",function(){return u}),n.d(it,"isString",function(){return at}),n.d(it,"isNumber",function(){return st}),n.d(it,"isDate",function(){return ut}),n.d(it,"isRegExp",function(){return lt}),n.d(it,"isError",function(){return ct}),n.d(it,"isSymbol",function(){return dt}),n.d(it,"isArrayBuffer",function(){return pt}),n.d(it,"isDataView",function(){return St}),n.d(it,"isArray",function(){return wt}),n.d(it,"isFunction",function(){return mt}),n.d(it,"isArguments",function(){return Et}),n.d(it,"isFinite",function(){return p}),n.d(it,"isNaN",function(){return f}),n.d(it,"isTypedArray",function(){return Ot}),n.d(it,"isEmpty",function(){return w}),n.d(it,"isMatch",function(){return _}),n.d(it,"isEqual",function(){return O}),n.d(it,"isMap",function(){return Nt}),n.d(it,"isWeakMap",function(){return zt}),n.d(it,"isSet",function(){return Ft}),n.d(it,"isWeakSet",function(){return Ut}),n.d(it,"keys",function(){return S}),n.d(it,"allKeys",function(){return T}),n.d(it,"values",function(){return M}),n.d(it,"pairs",function(){return L}),n.d(it,"invert",function(){return P}),n.d(it,"functions",function(){return k}),n.d(it,"methods",function(){return k}),n.d(it,"extend",function(){return jt}),n.d(it,"extendOwn",function(){return Bt}),n.d(it,"assign",function(){return Bt}),n.d(it,"defaults",function(){return Ht}),n.d(it,"create",function(){return z}),n.d(it,"clone",function(){return F}),n.d(it,"tap",function(){return U}),n.d(it,"get",function(){return Q}),n.d(it,"has",function(){return q}),n.d(it,"mapObject",function(){return Z}),n.d(it,"identity",function(){return $}),n.d(it,"constant",function(){return h}),n.d(it,"noop",function(){return X}),n.d(it,"toPath",function(){return j}),n.d(it,"property",function(){return W}),n.d(it,"propertyOf",function(){return ee}),n.d(it,"matcher",function(){return Y}),n.d(it,"matches",function(){return Y}),n.d(it,"times",function(){return te}),n.d(it,"random",function(){return ne}),n.d(it,"now",function(){return Qt}),n.d(it,"escape",function(){return $t}),n.d(it,"unescape",function(){return Wt}),n.d(it,"templateSettings",function(){return Vt}),n.d(it,"template",function(){return oe}),n.d(it,"result",function(){return ae}),n.d(it,"uniqueId",function(){return se}),n.d(it,"chain",function(){return ue}),n.d(it,"iteratee",function(){return K}),n.d(it,"partial",function(){return tn}),n.d(it,"bind",function(){return nn}),n.d(it,"bindAll",function(){return on}),n.d(it,"memoize",function(){return de}),n.d(it,"delay",function(){return an}),n.d(it,"defer",function(){return sn}),n.d(it,"throttle",function(){return pe}),n.d(it,"debounce",function(){return fe}),n.d(it,"wrap",function(){return he}),n.d(it,"negate",function(){return me}),n.d(it,"compose",function(){return ye}),n.d(it,"after",function(){return ge}),n.d(it,"before",function(){return ve}),n.d(it,"once",function(){return un}),n.d(it,"findKey",function(){return be}),n.d(it,"findIndex",function(){return ln}),n.d(it,"findLastIndex",function(){return cn}),n.d(it,"sortedIndex",function(){return we}),n.d(it,"indexOf",function(){return dn}),n.d(it,"lastIndexOf",function(){return pn}),n.d(it,"find",function(){return Ee}),n.d(it,"detect",function(){return Ee}),n.d(it,"findWhere",function(){return Ce}),n.d(it,"each",function(){return Ae}),n.d(it,"forEach",function(){return Ae}),n.d(it,"map",function(){return xe}),n.d(it,"collect",function(){return xe}),n.d(it,"reduce",function(){return fn}),n.d(it,"foldl",function(){return fn}),n.d(it,"inject",function(){return fn}),n.d(it,"reduceRight",function(){return hn}),n.d(it,"foldr",function(){return hn}),n.d(it,"filter",function(){return Te}),n.d(it,"select",function(){return Te}),n.d(it,"reject",function(){return Ie}),n.d(it,"every",function(){return Me}),n.d(it,"all",function(){return Me}),n.d(it,"some",function(){return Le}),n.d(it,"any",function(){return Le}),n.d(it,"contains",function(){return Pe}),n.d(it,"includes",function(){return Pe}),n.d(it,"include",function(){return Pe}),n.d(it,"invoke",function(){return mn}),n.d(it,"pluck",function(){return ke}),n.d(it,"where",function(){return De}),n.d(it,"max",function(){return Re}),n.d(it,"min",function(){return Ne}),n.d(it,"shuffle",function(){return Fe}),n.d(it,"sample",function(){return ze}),n.d(it,"sortBy",function(){return Ue}),n.d(it,"groupBy",function(){return yn}),n.d(it,"indexBy",function(){return gn}),n.d(it,"countBy",function(){return vn}),n.d(it,"partition",function(){return bn}),n.d(it,"toArray",function(){return Be}),n.d(it,"size",function(){return He}),n.d(it,"pick",function(){return wn}),n.d(it,"omit",function(){return _n}),n.d(it,"first",function(){return $e}),n.d(it,"head",function(){return $e}),n.d(it,"take",function(){return $e}),n.d(it,"initial",function(){return qe}),n.d(it,"last",function(){return We}),n.d(it,"rest",function(){return Ye}),n.d(it,"tail",function(){return Ye}),n.d(it,"drop",function(){return Ye}),n.d(it,"compact",function(){return Ve}),n.d(it,"flatten",function(){return Ge}),n.d(it,"without",function(){return Cn}),n.d(it,"uniq",function(){return Ke}),n.d(it,"unique",function(){return Ke}),n.d(it,"union",function(){return An}),n.d(it,"intersection",function(){return Je}),n.d(it,"difference",function(){return En}),n.d(it,"unzip",function(){return Ze}),n.d(it,"transpose",function(){return Ze}),n.d(it,"zip",function(){return xn}),n.d(it,"object",function(){return Xe}),n.d(it,"range",function(){return et}),n.d(it,"chunk",function(){return tt}),n.d(it,"mixin",function(){return rt}),n.d(it,"default",function(){return On});var ot=n(14),at=l("String"),st=l("Number"),ut=l("Date"),lt=l("RegExp"),ct=l("Error"),dt=l("Symbol"),pt=l("ArrayBuffer"),ft=l("Function"),ht=ot.p.document&&ot.p.document.childNodes;"function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof ht&&(ft=function(e){return"function"==typeof e||!1});var mt=ft,yt=l("Object"),gt=ot.s&&yt(new DataView(new ArrayBuffer(8))),vt="undefined"!=typeof Map&&yt(new Map),bt=l("DataView"),St=gt?c:bt,wt=ot.k||l("Array"),_t=l("Arguments");!function(){_t(arguments)||(_t=function(e){return d(e,"callee")})}();var Et=_t,Ct=y("byteLength"),At=m(Ct),xt=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/,Ot=ot.r?g:h(!1),Tt=y("length");E.VERSION=ot.e,E.prototype.value=function(){return this._wrapped},E.prototype.valueOf=E.prototype.toJSON=E.prototype.value,E.prototype.toString=function(){return String(this._wrapped)};var It="[object DataView]",Mt="forEach",Lt=["clear","delete"],Pt=["get","has","set"],kt=Lt.concat(Mt,Pt),Dt=Lt.concat(Pt),Rt=["add"].concat(Lt,Mt,"has"),Nt=vt?I(kt):l("Map"),zt=vt?I(Dt):l("WeakMap"),Ft=vt?I(Rt):l("Set"),Ut=l("WeakSet"),jt=D(T),Bt=D(S),Ht=D(T,!0);E.toPath=j,E.iteratee=K;var Qt=Date.now||function(){return(new Date).getTime()},qt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},$t=re(qt),Yt=P(qt),Wt=re(Yt),Vt=E.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Gt=/(.)^/,Kt={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Jt=/\\|'|\r|\n|\u2028|\u2029/g,Zt=/^\s*(\w|\$)+\s*$/,Xt=0,en=r(function(e,t){var n=en.placeholder,r=function(){for(var i=0,o=t.length,a=Array(o),s=0;s<o;s++)a[s]=t[s]===n?arguments[i++]:t[s];for(;i<arguments.length;)a.push(arguments[i++]);return le(e,r,this,this,a)};return r});en.placeholder=E;var tn=en,nn=r(function(e,t,n){if(!mt(e))throw new TypeError("Bind must be called on a function");var i=r(function(r){return le(e,i,t,this,n.concat(r))});return i}),rn=m(Tt),on=r(function(e,t){t=ce(t,!1,!1);var n=t.length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=nn(e[r],e)}return e}),an=r(function(e,t,n){return setTimeout(function(){return e.apply(null,n)},t)}),sn=tn(an,E,1),un=tn(ve,2),ln=Se(1),cn=Se(-1),dn=_e(1,ln,we),pn=_e(-1,cn),fn=Oe(1),hn=Oe(-1),mn=r(function(e,t,n){var r,i;return mt(t)?i=t:(t=B(t),r=t.slice(0,-1),t=t[t.length-1]),xe(e,function(e){var o=i;if(!o){if(r&&r.length&&(e=H(e,r)),null==e)return;o=e[t]}return null==o?o:o.apply(e,n)})}),yn=je(function(e,t,n){d(e,n)?e[n].push(t):e[n]=[t]}),gn=je(function(e,t,n){e[n]=t}),vn=je(function(e,t,n){d(e,n)?e[n]++:e[n]=1}),bn=je(function(e,t,n){e[n?0:1].push(t)},!0),Sn=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g,wn=r(function(e,t){var n={},r=t[0];if(null==e)return n;mt(r)?(t.length>1&&(r=V(r,t[1])),t=T(e)):(r=Qe,t=ce(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i<o;i++){var a=t[i],s=e[a];r(s,a,e)&&(n[a]=s)}return n}),_n=r(function(e,t){var n,r=t[0];return mt(r)?(r=me(r),t.length>1&&(n=t[1])):(t=xe(ce(t,!1,!1),String),r=function(e,n){return!Pe(t,n)}),wn(e,r,n)}),En=r(function(e,t){return t=ce(t,!0,!0),Te(e,function(e){return!Pe(t,e)})}),Cn=r(function(e,t){return En(e,t)}),An=r(function(e){return Ke(ce(e,!0,!0))}),xn=r(Ze);Ae(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=ot.a[e];E.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),nt(this,n)}}),Ae(["concat","join","slice"],function(e){var t=ot.a[e];E.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),nt(this,e)}});var On=E,Tn=rt(it);Tn._=Tn;var In=Tn;n.d(t,"default",function(){return In}),n.d(t,"VERSION",function(){return ot.e}),n.d(t,"restArguments",function(){return r}),n.d(t,"isObject",function(){return i}),n.d(t,"isNull",function(){return o}),n.d(t,"isUndefined",function(){return a}),n.d(t,"isBoolean",function(){return s}),n.d(t,"isElement",function(){return u}),n.d(t,"isString",function(){return at}),n.d(t,"isNumber",function(){return st}),n.d(t,"isDate",function(){return ut}),n.d(t,"isRegExp",function(){return lt}),n.d(t,"isError",function(){return ct}),n.d(t,"isSymbol",function(){return dt}),n.d(t,"isArrayBuffer",function(){return pt}),n.d(t,"isDataView",function(){return St}),n.d(t,"isArray",function(){return wt}),n.d(t,"isFunction",function(){return mt}),n.d(t,"isArguments",function(){return Et}),n.d(t,"isFinite",function(){return p}),n.d(t,"isNaN",function(){return f}),n.d(t,"isTypedArray",function(){return Ot}),n.d(t,"isEmpty",function(){return w}),n.d(t,"isMatch",function(){return _}),n.d(t,"isEqual",function(){return O}),n.d(t,"isMap",function(){return Nt}),n.d(t,"isWeakMap",function(){return zt}),n.d(t,"isSet",function(){return Ft}),n.d(t,"isWeakSet",function(){return Ut}),n.d(t,"keys",function(){return S}),n.d(t,"allKeys",function(){return T}),n.d(t,"values",function(){return M}),n.d(t,"pairs",function(){return L}),n.d(t,"invert",function(){return P}),n.d(t,"functions",function(){return k}),n.d(t,"methods",function(){return k}),n.d(t,"extend",function(){return jt}),n.d(t,"extendOwn",function(){return Bt}),n.d(t,"assign",function(){return Bt}),n.d(t,"defaults",function(){return Ht}),n.d(t,"create",function(){return z}),n.d(t,"clone",function(){return F}),n.d(t,"tap",function(){return U}),n.d(t,"get",function(){return Q}),n.d(t,"has",function(){return q}),n.d(t,"mapObject",function(){return Z}),n.d(t,"identity",function(){return $}),n.d(t,"constant",function(){return h}),n.d(t,"noop",function(){return X}),n.d(t,"toPath",function(){return j}),n.d(t,"property",function(){return W}),n.d(t,"propertyOf",function(){return ee}),n.d(t,"matcher",function(){return Y}),n.d(t,"matches",function(){return Y}),n.d(t,"times",function(){return te}),n.d(t,"random",function(){return ne}),n.d(t,"now",function(){return Qt}),n.d(t,"escape",function(){return $t}),n.d(t,"unescape",function(){return Wt}),n.d(t,"templateSettings",function(){return Vt}),n.d(t,"template",function(){return oe}),n.d(t,"result",function(){return ae}),n.d(t,"uniqueId",function(){return se}),n.d(t,"chain",function(){return ue}),n.d(t,"iteratee",function(){return K}),n.d(t,"partial",function(){return tn}),n.d(t,"bind",function(){return nn}),n.d(t,"bindAll",function(){return on}),n.d(t,"memoize",function(){return de}),n.d(t,"delay",function(){return an}),n.d(t,"defer",function(){return sn}),n.d(t,"throttle",function(){return pe}),n.d(t,"debounce",function(){return fe}),n.d(t,"wrap",function(){return he}),n.d(t,"negate",function(){return me}),n.d(t,"compose",function(){return ye}),n.d(t,"after",function(){return ge}),n.d(t,"before",function(){return ve}),n.d(t,"once",function(){return un}),n.d(t,"findKey",function(){return be}),n.d(t,"findIndex",function(){return ln}),n.d(t,"findLastIndex",function(){return cn}),n.d(t,"sortedIndex",function(){return we}),n.d(t,"indexOf",function(){return dn}),n.d(t,"lastIndexOf",function(){return pn}),n.d(t,"find",function(){return Ee}),n.d(t,"detect",function(){return Ee}),n.d(t,"findWhere",function(){return Ce}),n.d(t,"each",function(){return Ae}),n.d(t,"forEach",function(){return Ae}),n.d(t,"map",function(){return xe}),n.d(t,"collect",function(){return xe}),n.d(t,"reduce",function(){return fn}),n.d(t,"foldl",function(){return fn}),n.d(t,"inject",function(){return fn}),n.d(t,"reduceRight",function(){return hn}),n.d(t,"foldr",function(){return hn}),n.d(t,"filter",function(){return Te}),n.d(t,"select",function(){return Te}),n.d(t,"reject",function(){return Ie}),n.d(t,"every",function(){return Me}),n.d(t,"all",function(){return Me}),n.d(t,"some",function(){return Le}),n.d(t,"any",function(){return Le}),n.d(t,"contains",function(){return Pe}),n.d(t,"includes",function(){return Pe}),n.d(t,"include",function(){return Pe}),n.d(t,"invoke",function(){return mn}),n.d(t,"pluck",function(){return ke}),n.d(t,"where",function(){return De}),n.d(t,"max",function(){return Re}),n.d(t,"min",function(){return Ne}),n.d(t,"shuffle",function(){return Fe}),n.d(t,"sample",function(){return ze}),n.d(t,"sortBy",function(){return Ue}),n.d(t,"groupBy",function(){return yn}),n.d(t,"indexBy",function(){return gn}),n.d(t,"countBy",function(){return vn}),n.d(t,"partition",function(){return bn}),n.d(t,"toArray",function(){return Be}),n.d(t,"size",function(){return He}),n.d(t,"pick",function(){return wn}),n.d(t,"omit",function(){return _n}),n.d(t,"first",function(){return $e}),n.d(t,"head",function(){return $e}),n.d(t,"take",function(){return $e}),n.d(t,"initial",function(){return qe}),n.d(t,"last",function(){return We}),n.d(t,"rest",function(){return Ye}),n.d(t,"tail",function(){return Ye}),n.d(t,"drop",function(){return Ye}),n.d(t,"compact",function(){return Ve}),n.d(t,"flatten",function(){return Ge}),n.d(t,"without",function(){return Cn}),n.d(t,"uniq",function(){return Ke}),n.d(t,"unique",function(){return Ke}),n.d(t,"union",function(){return An}),n.d(t,"intersection",function(){return Je}),n.d(t,"difference",function(){return En}),n.d(t,"unzip",function(){return Ze}),n.d(t,"transpose",function(){return Ze}),n.d(t,"zip",function(){return xn}),n.d(t,"object",function(){return Xe}),n.d(t,"range",function(){return et}),n.d(t,"chunk",function(){return tt}),n.d(t,"mixin",function(){return rt})},function(e,t,n){"use strict";function r(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length&&e[0]instanceof c?e[0]:new c(1!==e.length||i.isString(e[0])?c.createElement.apply(c,e):e[0])}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(5),a=n(9),s=n(77),u=n(4),l=n(24),c=function(){function e(e){o.Assert.exists(e),this.el=e}return e.createElement=function(t,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var a=document.createElement(t);for(var s in n)if("className"===s)a.className=n.className;else{var l=-1!==s.indexOf("-")?s:u.Utils.toDashCase(s);a.setAttribute(l,n[s])}return i.each(r,function(t){t instanceof HTMLElement?a.appendChild(t):i.isString(t)?a.innerHTML+=t:t instanceof e&&a.appendChild(t.el)}),a},e.prototype.append=function(e){this.el.appendChild(e)},e.prototype.css=function(e){return this.el.style[e]?this.el.style[e]:window.getComputedStyle(this.el).getPropertyValue(e)},e.prototype.text=function(e){if(u.Utils.isUndefined(e))return this.el.innerText||this.el.textContent;void 0!=this.el.innerText?this.el.innerText=e:void 0!=this.el.textContent&&(this.el.textContent=e)},e.nodeListToArray=function(e){for(var t=e.length,n=new Array(t);t--;)n[t]=e.item(t);return n},e.prototype.focus=function(e){if("IE"===l.DeviceUtils.getDeviceName()){var t=window.pageXOffset,n=window.pageYOffset;this.el.focus(),e&&window.scrollTo(t,n)}else this.el.focus({preventScroll:e})},e.prototype.empty=function(){for(;this.el.firstChild;)this.removeChild(this.el.firstChild)},e.prototype.removeChild=function(e){var t=e.parentNode;try{this.el.removeChild(e)}catch(n){if("NotFoundError"!==n.name)throw n;if(t===e.parentNode)throw n}},e.prototype.remove=function(){this.el.parentNode&&this.el.parentNode.removeChild(this.el)},e.prototype.show=function(){this.el.style.display="block",r(this.el).setAttribute("aria-hidden","false")},e.prototype.hide=function(){this.el.style.display="none",r(this.el).setAttribute("aria-hidden","true")},e.prototype.unhide=function(){this.el.style.display="",r(this.el).setAttribute("aria-hidden","false")},e.prototype.toggle=function(e){void 0===e?"block"==this.el.style.display?this.hide():this.show():e?this.show():this.hide()},e.prototype.isVisible=function(){return"none"!==this.css("display")&&("hidden"!==this.css("visibility")&&(!this.hasClass("coveo-tab-disabled")&&(!this.hasClass("coveo-hidden")&&!this.hasClass("coveo-hidden-dependant-facet"))))},e.prototype.getAttribute=function(e){return this.el.getAttribute(e)},e.prototype.setAttribute=function(e,t){this.el.setAttribute(e,t)},e.prototype.find=function(e){return this.el.querySelector(e)},e.prototype.is=function(e){return this.el.tagName.toLowerCase()==e.toLowerCase()||(!("."!=e[0]||!this.hasClass(e.substr(1)))||"#"==e[0]&&this.el.getAttribute("id")==e.substr(1))},e.prototype.closest=function(e){return this.traverseAncestorForClass(this.el,e)},e.prototype.parent=function(e){if(void 0!=this.el.parentElement)return this.traverseAncestorForClass(this.el.parentElement,e)},e.prototype.parents=function(t){for(var n=[],r=this.parent(t);r;)n.push(r),r=new e(r).parent(t);return n},e.prototype.children=function(){return e.nodeListToArray(this.el.children)},e.prototype.siblings=function(e){for(var t=[],n=this.el.parentNode.firstChild;n;n=n.nextSibling)n!=this.el&&(!this.matches(n,e)&&e||t.push(n));return t},e.prototype.matches=function(e,t){for(var n=document.querySelectorAll(t),r=0;r<n.length;r++)if(n[r]===e)return!0;return!1},e.prototype.findAll=function(t){return e.nodeListToArray(this.el.querySelectorAll(t))},e.prototype.findClass=function(t){if("getElementsByClassName"in this.el)return e.nodeListToArray(this.el.getElementsByClassName(t))},e.prototype.findId=function(e){return document.getElementById(e)},e.prototype.addClass=function(e){var t=this;i.isArray(e)?i.each(e,function(e){t.addClass(e)}):this.hasClass(e)||(this.el.className?this.el.className+=" "+e:this.el.className=e)},e.prototype.removeClass=function(e){this.el.className=this.el.className.replace(new RegExp("(^|\\s)"+e+"(\\s|$)","g"),"$1").trim()},e.prototype.toggleClass=function(e,t){u.Utils.isNullOrUndefined(t)?this.hasClass(e)?this.removeClass(e):this.addClass(e):t?this.addClass(e):this.removeClass(e)},e.prototype.setHtml=function(e){this.el.innerHTML=e},e.prototype.getClass=function(){var t=this.getAttribute("class");return t&&t.match?t.match(e.CLASS_NAME_REGEX)||[]:[]},e.prototype.hasClass=function(e){return i.contains(this.getClass(),e)},e.prototype.detach=function(){this.el.parentElement&&this.el.parentElement.removeChild(this.el)},e.prototype.insertAfter=function(e){e.parentNode&&e.parentNode.insertBefore(this.el,e.nextSibling)},e.prototype.insertBefore=function(e){e.parentNode&&e.parentNode.insertBefore(this.el,e)},e.prototype.prepend=function(t){this.el.firstChild?new e(t).insertBefore(this.el.firstChild):this.el.appendChild(t)},e.prototype.on=function(t,n){var r=this;if(i.isArray(t))i.each(t,function(e){r.on(e,n)});else{var o=this.processEventTypeToBeJQueryCompatible(t),a=s.JQueryUtils.getJQuery();if(this.shouldUseJQueryEvent())a(this.el).on(o,n);else if(this.el.addEventListener){var u=function(e){n(e,e.detail)};e.handlers.set(n,u),o&&-1!=o.indexOf("touch")?this.el.addEventListener(o,u,{passive:!0}):this.el.addEventListener(o,u,!1)}else this.el.on&&this.el.on("on"+o,n)}},e.prototype.one=function(e,t){var n=this;if(i.isArray(e))i.each(e,function(e){n.one(e,t)});else{var r=this.processEventTypeToBeJQueryCompatible(e),o=function(e,i){return n.off(r,o),t(e,i)};this.on(r,o)}},e.prototype.off=function(t,n){var r=this;if(i.isArray(t))i.each(t,function(e){r.off(e,n)});else{var o=this.processEventTypeToBeJQueryCompatible(t),a=s.JQueryUtils.getJQuery();if(this.shouldUseJQueryEvent())a(this.el).off(o,n);else if(this.el.removeEventListener){var u=e.handlers.get(n);u&&this.el.removeEventListener(o,u,!1)}else this.el.off&&this.el.off("on"+o,n)}},e.prototype.trigger=function(e,t){var n=this.processEventTypeToBeJQueryCompatible(e);if(this.shouldUseJQueryEvent())s.JQueryUtils.getJQuery()(this.el).trigger(n,t);else if(void 0!==window.CustomEvent){var r=new CustomEvent(n,{detail:t,bubbles:!0});this.el.dispatchEvent(r)}else try{this.el.dispatchEvent(this.buildIE11CustomEvent(n,t))}catch(e){this.oldBrowserError()}},e.prototype.isEmpty=function(){return e.ONLY_WHITE_SPACE_REGEX.test(this.el.innerHTML)},e.prototype.isValid=function(){return null!=this.el&&void 0!=this.el.getAttribute},e.prototype.isDescendant=function(e){for(var t=this.el.parentNode;null!=t;){if(t==e)return!0;t=t.parentNode}return!1},e.prototype.replaceWith=function(t){this.el.parentNode&&new e(t).insertAfter(this.el),this.detach()},e.prototype.position=function(){var e=this.offsetParent(),t=this.offset(),n={top:0,left:0};r(e).is("html")||(n=r(e).offset());var i=parseInt(r(e).css("borderTopWidth")),o=parseInt(r(e).css("borderLeftWidth"));i=isNaN(i)?0:i,o=isNaN(o)?0:o,n={top:n.top+i,left:n.left+o};var a=parseInt(this.css("marginTop")),s=parseInt(this.css("marginLeft"));return a=isNaN(a)?0:a,s=isNaN(s)?0:s,{top:t.top-n.top-a,left:t.left-n.left-s}},e.prototype.offsetParent=function(){for(var e=this.el.offsetParent;e instanceof HTMLElement&&"static"===r(e).css("position");)e=e.offsetParent;return e instanceof HTMLElement?e:document.documentElement},e.prototype.offset=function(){if(!this.el.getClientRects().length)return{top:0,left:0};var e=this.el.getBoundingClientRect();if(e.width||e.height){var t=this.el.ownerDocument,n=t.documentElement;return{top:e.top+window.pageYOffset-n.clientTop,left:e.left+window.pageXOffset-n.clientLeft}}return e},e.prototype.width=function(){return this.el.offsetWidth},e.prototype.height=function(){return this.el.offsetHeight},e.prototype.clone=function(e){return void 0===e&&(e=!1),r(this.el.cloneNode(e))},e.prototype.canHandleEvent=function(e){var t="on"+e,n=t in this.el;return!n&&this.el.setAttribute&&(this.el.setAttribute(t,"return;"),n="function"==typeof this.el[t],this.el.removeAttribute(t)),n},e.prototype.buildIE11CustomEvent=function(e,t){var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,!0,!0,t),n},e.prototype.shouldUseJQueryEvent=function(){return s.JQueryUtils.getJQuery()&&!e.useNativeJavaScriptEvents},e.prototype.processEventTypeToBeJQueryCompatible=function(e){return e?e.replace(/[^a-zA-Z0-9\:\_]/g,""):e},e.prototype.traverseAncestorForClass=function(e,t){void 0===e&&(e=this.el),0==t.indexOf(".")&&(t=t.substr(1));for(var n=!1;!n&&(r(e).hasClass(t)&&(n=!0),"body"!=e.tagName.toLowerCase())&&null!=e.parentElement;)n||(e=e.parentElement);if(n)return e},e.prototype.oldBrowserError=function(){new a.Logger(this).error("CANNOT TRIGGER EVENT FOR OLDER BROWSER")},e.CLASS_NAME_REGEX=/-?[_a-zA-Z]+[_a-zA-Z0-9-]*/g,e.ONLY_WHITE_SPACE_REGEX=/^\s*$/,e.useNativeJavaScriptEvents=!1,e.handlers=new WeakMap,e}();t.Dom=c;var d=function(){function e(e){this.win=e}return e.prototype.height=function(){return this.win.innerHeight},e.prototype.width=function(){return this.win.innerWidth},e.prototype.scrollY=function(){return this.supportPageOffset()?this.win.pageYOffset:this.isCSS1Compat()?this.win.document.documentElement.scrollTop:this.win.document.body.scrollTop},e.prototype.scrollX=function(){return this.supportPageOffset()?window.pageXOffset:this.isCSS1Compat()?document.documentElement.scrollLeft:document.body.scrollLeft},e.prototype.isCSS1Compat=function(){return"CSS1Compat"===(this.win.document.compatMode||"")},e.prototype.supportPageOffset=function(){return void 0!==this.win.pageXOffset},e}();t.Win=d;var p=function(){function e(e){this.doc=e}return e.prototype.height=function(){var e=this.doc.body;return Math.max(e.scrollHeight,e.offsetHeight)},e.prototype.width=function(){var e=this.doc.body;return Math.max(e.scrollWidth,e.offsetWidth)},e}();t.Doc=p,t.$$=r},function(e,t,n){"use strict";var r=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(a,s)}u((r=r.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){function n(e){return function(t){return r([e,t])}}function r(n){if(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(i=1,o&&(a=o[2&n[0]?"return":n[0]?"throw":"next"])&&!(a=a.call(o,n[1])).done)return a;switch(o=0,a&&(n=[0,a.value]),n[0]){case 0:case 1:a=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,o=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(a=u.trys,!(a=a.length>0&&a[a.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!a||n[1]>a[0]&&n[1]<a[3])){u.label=n[1];break}if(6===n[0]&&u.label<a[1]){u.label=a[1],a=n;break}if(a&&u.label<a[2]){u.label=a[2],u.ops.push(n);break}a[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],o=0}finally{i=a=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var i,o,a,s,u={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return s={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s};Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),s=n(44),u=n(17),l=n(5),c=n(9),d=n(28),p=n(79),f=n(13),h=n(1),m=n(42),y=n(77),g=n(4),v=n(10),b=n(7),S=n(19),w=n(455),_=n(30),E=function(){function e(){}return e.registerDefaultOptions=function(e,t){var n=e.CoveoDefaultOptions||{},r=g.Utils.extendDeep(n,t);e.CoveoDefaultOptions=r},e.resolveDefaultOptions=function(t,n){var r,i=t.CoveoDefaultOptions;return r=g.Utils.exists(i)?g.Utils.extendDeep(i,n):n,t.parentElement?e.resolveDefaultOptions(t.parentElement,r):r},e.registerAutoCreateComponent=function(t){l.Assert.exists(t),l.Assert.exists(t.ID),l.Assert.doesNotExists(e.namedMethods[t.ID]),a.contains(e.registeredComponents,t.ID)||(e.registeredComponents.push(t.ID),t.aliases&&(e.componentAliases[t.ID]=t.aliases)),null==A.eagerlyLoadedComponents[t.ID]&&(A.eagerlyLoadedComponents[t.ID]=t),null==C.lazyLoadedComponents[t.ID]&&(C.lazyLoadedComponents[t.ID]=function(){return new Promise(function(e,n){e(t)})})},e.registerComponentFields=function(t,n){e.fieldsNeededForQuery=g.Utils.concatWithoutDuplicate(e.fieldsNeededForQuery,n);var r=function(t){null==e.fieldsNeededForQueryByComponent[t]?e.fieldsNeededForQueryByComponent[t]=n:e.fieldsNeededForQueryByComponent[t]=g.Utils.concatWithoutDuplicate(e.fieldsNeededForQueryByComponent[t],n)};r(t),r(b.Component.computeCssClassNameForType(t))},e.getRegisteredFieldsForQuery=function(){return e.fieldsNeededForQuery},e.getRegisteredFieldsComponentForQuery=function(t){var n=e.fieldsNeededForQueryByComponent[t]||[],r=e.fieldsNeededForQueryByComponent[b.Component.computeCssClassNameForType(t)]||[];return g.Utils.concatWithoutDuplicate(n,r)},e.isComponentClassIdRegistered=function(t){return a.contains(e.registeredComponents,t)||a.contains(e.registeredComponents,b.Component.computeCssClassNameForType(t))},e.getListOfRegisteredComponents=function(){return e.registeredComponents},e.getListOfLoadedComponents=function(){return a.keys(A.eagerlyLoadedComponents)},e.getRegisteredComponent=function(e){return A.eagerlyLoadedComponents[e]},e.initializeFramework=function(t,n,r){var a=this;if(l.Assert.exists(t),b.Component.get(t,s.QueryController,!0))return this.logger.error("This DOM element has already been initialized as a search interface, skipping initialization",t),Promise.resolve({elem:t});n=e.resolveDefaultOptions(t,n);var c=function(e,t){return i(a,void 0,void 0,function(){var n,r=this;return o(this,function(i){try{return n=t.map(function(t){return t.catch(function(t){return r.logger.warn('An error occurred when trying to defer the "'+e+'" event. The defer will be ignored.',"Error: "+t)})}),[2,Promise.all(n)]}catch(e){this.logger.error('An unexpected error occurred when trying to defer the "'+event+'" event. All defers will be ignored.',"Error: "+e)}return[2]})})},d=function(e){var n={defer:[]};return h.$$(t).trigger(e,n),n.defer.length>0?c(e,n.defer):Promise.resolve()};e.performInitFunctionsOption(n,u.InitializationEvents.beforeInitialization),h.$$(t).trigger(u.InitializationEvents.beforeInitialization);var p=function(){return i(a,void 0,void 0,function(){var r,i,a;return o(this,function(o){switch(o.label){case 0:return[4,e.initExternalComponents(t,n)];case 1:return r=o.sent(),e.performInitFunctionsOption(n,u.InitializationEvents.afterComponentsInitialization),[4,d(u.InitializationEvents.afterComponentsInitialization)];case 2:return o.sent(),h.$$(t).trigger(u.InitializationEvents.restoreHistoryState),e.performInitFunctionsOption(n,u.InitializationEvents.afterInitialization),[4,d(u.InitializationEvents.afterInitialization)];case 3:return o.sent(),i=b.Component.get(t,S.SearchInterface),e.shouldExecuteFirstQueryAutomatically(i)&&(e.logFirstQueryCause(i),a=!0,Coveo.Recommendation&&(a=!(i instanceof Coveo.Recommendation)),b.Component.get(t,s.QueryController).executeQuery({logInActionsHistory:a,isFirstQuery:!0})),[2,r]}})})},f=r(t,n);return f.isLazyInit?f.initResult.then(p).then(function(){return{elem:t}}):p().then(function(){return{elem:t}})},e.initSearchInterface=function(t,n){void 0===n&&(n={}),n=e.resolveDefaultOptions(t,n);var r=new S.SearchInterface(t,n.SearchInterface,n.Analytics);r.options.originalOptionsObject=n;var i={options:n,bindings:r.getBindings()};return e.automaticallyCreateComponentsInside(t,i,["Recommendation"])},e.initStandaloneSearchInterface=function(t,n){void 0===n&&(n={}),n=e.resolveDefaultOptions(t,n),n.Querybox||(n.Querybox={}),n.Omnibox||(n.Omnibox={}),n.Searchbox||(n.Searchbox={}),n.Querybox.triggerQueryOnClear&&n.Omnibox.triggerQueryOnClear&&n.Searchbox.triggerOnQueryClear||(n.Querybox.triggerQueryOnClear=!1,n.Omnibox.triggerQueryOnClear=!1,n.Searchbox.triggerQueryOnClear=!1);var r=new S.StandaloneSearchInterface(t,n.StandaloneSearchInterface,n.Analytics);r.options.originalOptionsObject=n;var i={options:n,bindings:r.getBindings()};return e.automaticallyCreateComponentsInside(t,i)},e.initRecommendationInterface=function(t,n){void 0===n&&(n={}),n=e.resolveDefaultOptions(t,n);var r=a.extend({},n.SearchInterface,n.Recommendation);r.mainSearchInterface&&(r.firstLoadingAnimation=h.$$("span").el);var i=new window.Coveo.Recommendation(t,r,n.Analytics);i.options.originalOptionsObject=n;var o={options:n,bindings:i.getBindings()};return e.automaticallyCreateComponentsInside(t,o)},e.automaticallyCreateComponentsInsideResult=function(t,n,i){void 0===i&&(i={});var o=r({initOptions:i},n.searchInterface.options.originalOptionsObject),a=r({},n.searchInterface.getBindings(),{resultElement:t}),s={options:o,bindings:a,result:n};return e.automaticallyCreateComponentsInside(t,s)},e.automaticallyCreateComponentsInside=function(e,t,n){var r=this;void 0===n&&(n=[]),l.Assert.exists(e);var i,o=w.InitializationHelper.findDOMElementsToIgnore(e,n),s=w.InitializationHelper.findDOMElementsToInitialize(e,o),u=a.chain(s).map(function(e){var n=r.componentsFactory(e.htmlElements,e.componentClassId,t);return i=n.isLazyInit,n.factory}).map(function(e){var t=e();return t?Promise.all(t).then(function(){return!0}):Promise.resolve(!0)}).value();return{initResult:Promise.all(u).then(function(){return!0}).catch(function(e){return r.logger.error(e),r.logger.warn("Skipping initialization of previous component in error ... "),!0}),isLazyInit:i}},e.registerNamedMethod=function(t,n){l.Assert.isNonEmptyString(t),l.Assert.doesNotExists(A.eagerlyLoadedComponents[t]),l.Assert.doesNotExists(e.namedMethods[t]),l.Assert.exists(n),e.namedMethods[t]=n},e.isNamedMethodRegistered=function(t){return g.Utils.exists(e.namedMethods[t])},e.monkeyPatchComponentMethod=function(e,t,n){l.Assert.isNonEmptyString(e),l.Assert.exists(n);var r;if(e.indexOf(".")>0){var i=e.split(".");l.Assert.check(2==i.length,"Invalid method name, correct syntax is CoveoComponent.methodName."),r=i[0],e=i[1]}var o=b.Component.get(t,r);l.Assert.exists(o),l.Assert.exists(o[e]);var a="__"+e;g.Utils.exists(o[a])||(o[a]=o[e]),o[e]=n},e.initBoxInte