!function(n,t){function wt(n){var t=n.length,r=i.type(n);return i.isWindow(n)?!1:1===n.nodeType&&t?!0:"array"===r||"function"!==r&&(0===t||"number"==typeof t&&t>0&&t-1 in n)}function ff(n){var t=ri[n]={};return i.each(n.match(s)||[],function(n,i){t[i]=!0}),t}function wi(n,r,u,f){if(i.acceptData(n)){var s,h,c=i.expando,a="string"==typeof r,l=n.nodeType,o=l?i.cache:n,e=l?n[c]:n[c]&&c;if(e&&o[e]&&(f||o[e].data)||!a||u!==t)return e||(l?n[c]=e=k.pop()||i.guid++:e=c),o[e]||(o[e]={},l||(o[e].toJSON=i.noop)),("object"==typeof r||"function"==typeof r)&&(f?o[e]=i.extend(o[e],r):o[e].data=i.extend(o[e].data,r)),s=o[e],f||(s.data||(s.data={}),s=s.data),u!==t&&(s[i.camelCase(r)]=u),a?(h=s[r],null==h&&(h=s[i.camelCase(r)])):h=s,h}}function bi(n,t,r){if(i.acceptData(n)){var o,h,e,s=n.nodeType,u=s?i.cache:n,f=s?n[i.expando]:i.expando;if(u[f]){if(t&&(e=r?u[f]:u[f].data)){for(i.isArray(t)?t=t.concat(i.map(t,i.camelCase)):(t in e)?t=[t]:(t=i.camelCase(t),t=(t in e)?[t]:t.split(" ")),o=0,h=t.length;h>o;o++)delete e[t[o]];if(!(r?bt:i.isEmptyObject)(e))return}(r||(delete u[f].data,bt(u[f])))&&(s?i.cleanData([n],!0):i.support.deleteExpando||u!=u.window?delete u[f]:u[f]=null)}}}function ki(n,r,u){if(u===t&&1===n.nodeType){var f="data-"+r.replace(iu,"-$1").toLowerCase();if(u=n.getAttribute(f),"string"==typeof u){try{u="true"===u?!0:"false"===u?!1:"null"===u?null:+u+""===u?+u:tu.test(u)?i.parseJSON(u):u}catch(e){}i.data(n,r,u)}else u=t}return u}function bt(n){for(var t in n)if(("data"!==t||!i.isEmptyObject(n[t]))&&"toJSON"!==t)return!1;return!0}function et(){return!0}function b(){return!1}function di(n,t){do n=n[t];while(n&&1!==n.nodeType);return n}function gi(n,t,r){if(t=t||0,i.isFunction(t))return i.grep(n,function(n,i){var u=!!t.call(n,i,n);return u===r});if(t.nodeType)return i.grep(n,function(n){return n===t===r});if("string"==typeof t){var u=i.grep(n,function(n){return 1===n.nodeType});if(ye.test(t))return i.filter(t,u,!r);t=i.filter(t,u)}return i.grep(n,function(n){return i.inArray(n,t)>=0===r})}function nr(n){var i=su.split("|"),t=n.createDocumentFragment();if(t.createElement)for(;i.length;)t.createElement(i.pop());return t}function ef(n,t){return n.getElementsByTagName(t)[0]||n.appendChild(n.ownerDocument.createElement(t))}function tr(n){var t=n.getAttributeNode("type");return n.type=(t&&t.specified)+"/"+n.type,n}function ir(n){var t=ge.exec(n.type);return t?n.type=t[1]:n.removeAttribute("type"),n}function kt(n,t){for(var u,r=0;null!=(u=n[r]);r++)i._data(u,"globalEval",!t||i._data(t[r],"globalEval"))}function rr(n,t){if(1===t.nodeType&&i.hasData(n)){var u,f,o,s=i._data(n),r=i._data(t,s),e=s.events;if(e){delete r.handle;r.events={};for(u in e)for(f=0,o=e[u].length;o>f;f++)i.event.add(t,u,e[u][f])}r.data&&(r.data=i.extend({},r.data))}}function of(n,t){var r,f,u;if(1===t.nodeType){if(r=t.nodeName.toLowerCase(),!i.support.noCloneEvent&&t[i.expando]){u=i._data(t);for(f in u.events)i.removeEvent(t,f,u.handle);t.removeAttribute(i.expando)}"script"===r&&t.text!==n.text?(tr(t).text=n.text,ir(t)):"object"===r?(t.parentNode&&(t.outerHTML=n.outerHTML),i.support.html5Clone&&n.innerHTML&&!i.trim(t.innerHTML)&&(t.innerHTML=n.innerHTML)):"input"===r&&hi.test(n.type)?(t.defaultChecked=t.checked=n.checked,t.value!==n.value&&(t.value=n.value)):"option"===r?t.defaultSelected=t.selected=n.defaultSelected:("input"===r||"textarea"===r)&&(t.defaultValue=n.defaultValue)}}function u(n,r){var s,e,h=0,f=typeof n.getElementsByTagName!==o?n.getElementsByTagName(r||"*"):typeof n.querySelectorAll!==o?n.querySelectorAll(r||"*"):t;if(!f)for(f=[],s=n.childNodes||n;null!=(e=s[h]);h++)!r||i.nodeName(e,r)?f.push(e):i.merge(f,u(e,r));return r===t||r&&i.nodeName(n,r)?i.merge([n],f):f}function sf(n){hi.test(n.type)&&(n.defaultChecked=n.checked)}function ur(n,t){if(t in n)return t;for(var r=t.charAt(0).toUpperCase()+t.slice(1),u=t,i=bu.length;i--;)if(t=bu[i]+r,t in n)return t;return u}function it(n,t){return n=t||n,"none"===i.css(n,"display")||!i.contains(n.ownerDocument,n)}function fr(n,t){for(var f,r,o,e=[],u=0,s=n.length;s>u;u++)r=n[u],r.style&&(e[u]=i._data(r,"olddisplay"),f=r.style.display,t?(e[u]||"none"!==f||(r.style.display=""),""===r.style.display&&it(r)&&(e[u]=i._data(r,"olddisplay",hr(r.nodeName)))):e[u]||(o=it(r),(f&&"none"!==f||!o)&&i._data(r,"olddisplay",o?f:i.css(r,"display"))));for(u=0;s>u;u++)r=n[u],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?e[u]||"":"none"));return n}function er(n,t,i){var r=fo.exec(t);return r?Math.max(0,r[1]-(i||0))+(r[2]||"px"):t}function or(n,t,r,u,f){for(var e=r===(u?"border":"content")?4:"width"===t?1:0,o=0;4>e;e+=2)"margin"===r&&(o+=i.css(n,r+p[e],!0,f)),u?("content"===r&&(o-=i.css(n,"padding"+p[e],!0,f)),"margin"!==r&&(o-=i.css(n,"border"+p[e]+"Width",!0,f))):(o+=i.css(n,"padding"+p[e],!0,f),"padding"!==r&&(o+=i.css(n,"border"+p[e]+"Width",!0,f)));return o}function sr(n,t,r){var e=!0,u="width"===t?n.offsetWidth:n.offsetHeight,f=v(n),o=i.support.boxSizing&&"border-box"===i.css(n,"boxSizing",!1,f);if(0>=u||null==u){if(u=y(n,t,f),(0>u||null==u)&&(u=n.style[t]),lt.test(u))return u;e=o&&(i.support.boxSizingReliable||u===n.style[t]);u=parseFloat(u)||0}return u+or(n,t,r||(o?"border":"content"),e,f)+"px"}function hr(n){var u=r,t=pu[n];return t||(t=cr(n,u),"none"!==t&&t||(ut=(ut||i("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(u.documentElement),u=(ut[0].contentWindow||ut[0].contentDocument).document,u.write("<!doctype html><html><body>"),u.close(),t=cr(n,u),ut.detach()),pu[n]=t),t}function cr(n,t){var r=i(t.createElement(n)).appendTo(t.body),u=i.css(r[0],"display");return r.remove(),u}function dt(n,t,r,u){var f;if(i.isArray(t))i.each(t,function(t,i){r||ho.test(n)?u(n,i):dt(n+"["+("object"==typeof i?t:"")+"]",i,r,u)});else if(r||"object"!==i.type(t))u(n,t);else for(f in t)dt(n+"["+f+"]",t[f],r,u)}function lr(n){return function(t,r){"string"!=typeof t&&(r=t,t="*");var u,f=0,e=t.toLowerCase().match(s)||[];if(i.isFunction(r))for(;u=e[f++];)"+"===u[0]?(u=u.slice(1)||"*",(n[u]=n[u]||[]).unshift(r)):(n[u]=n[u]||[]).push(r)}}function ar(n,t,r,u){function f(s){var h;return e[s]=!0,i.each(n[s]||[],function(n,i){var s=i(t,r,u);return"string"!=typeof s||o||e[s]?o?!(h=s):void 0:(t.dataTypes.unshift(s),f(s),!1)}),h}var e={},o=n===yi;return f(t.dataTypes[0])||!e["*"]&&f("*")}function gt(n,r){var f,u,e=i.ajaxSettings.flatOptions||{};for(u in r)r[u]!==t&&((e[u]?n:f||(f={}))[u]=r[u]);return f&&i.extend(!0,n,f),n}function hf(n,i,r){var s,o,e,u,h=n.contents,f=n.dataTypes,c=n.responseFields;for(u in c)u in r&&(i[c[u]]=r[u]);for(;"*"===f[0];)f.shift(),o===t&&(o=n.mimeType||i.getResponseHeader("Content-Type"));if(o)for(u in h)if(h[u]&&h[u].test(o)){f.unshift(u);break}if(f[0]in r)e=f[0];else{for(u in r){if(!f[0]||n.converters[u+" "+f[0]]){e=u;break}s||(s=u)}e=e||s}if(e)return(e!==f[0]&&f.unshift(e),r[e])}function cf(n,t){var o,r,i,e,u={},h=0,s=n.dataTypes.slice(),f=s[0];if(n.dataFilter&&(t=n.dataFilter(t,n.dataType)),s[1])for(i in n.converters)u[i.toLowerCase()]=n.converters[i];for(;r=s[++h];)if("*"!==r){if("*"!==f&&f!==r){if(i=u[f+" "+r]||u["* "+r],!i)for(o in u)if(e=o.split(" "),e[1]===r&&(i=u[f+" "+e[0]]||u["* "+e[0]])){i===!0?i=u[o]:u[o]!==!0&&(r=e[0],s.splice(h--,0,r));break}if(i!==!0)if(i&&n.throws)t=i(t);else try{t=i(t)}catch(c){return{state:"parsererror",error:i?c:"No conversion from "+f+" to "+r}}}f=r}return{state:"success",data:t}}function vr(){try{return new n.XMLHttpRequest}catch(t){}}function lf(){try{return new n.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function yr(){return setTimeout(function(){tt=t}),tt=i.now()}function af(n,t){i.each(t,function(t,i){for(var u=(ft[t]||[]).concat(ft["*"]),r=0,f=u.length;f>r;r++)if(u[r].call(n,t,i))return})}function pr(n,t,r){var h,e,o=0,l=pt.length,f=i.Deferred().always(function(){delete c.elem}),c=function(){if(e)return!1;for(var s=tt||yr(),t=Math.max(0,u.startTime+u.duration-s),h=t/u.duration||0,i=1-h,r=0,o=u.tweens.length;o>r;r++)u.tweens[r].run(i);return f.notifyWith(n,[u,i,t]),1>i&&o?t:(f.resolveWith(n,[u]),!1)},u=f.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{}},r),originalProperties:t,originalOptions:r,startTime:tt||yr(),duration:r.duration,tweens:[],createTween:function(t,r){var f=i.Tween(n,u.opts,t,r,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(f),f},stop:function(t){var i=0,r=t?u.tweens.length:0;if(e)return this;for(e=!0;r>i;i++)u.tweens[i].run(1);return t?f.resolveWith(n,[u,t]):f.rejectWith(n,[u,t]),this}}),s=u.props;for(vf(s,u.opts.specialEasing);l>o;o++)if(h=pt[o].call(u,n,s,u.opts))return h;return af(u,s),i.isFunction(u.opts.start)&&u.opts.start.call(n,u),i.fx.timer(i.extend(c,{elem:n,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function vf(n,t){var u,f,r,e,o;for(r in n)if(f=i.camelCase(r),e=t[f],u=n[r],i.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),o=i.cssHooks[f],o&&"expand"in o){u=o.expand(u);delete n[f];for(r in u)r in n||(n[r]=u[r],t[r]=e)}else t[f]=e}function yf(n,t,r){var u,o,w,a,s,v,l,f,b,h=this,e=n.style,y={},p=[],c=n.nodeType&&it(n);r.queue||(f=i._queueHooks(n,"fx"),null==f.unqueued&&(f.unqueued=0,b=f.empty.fire,f.empty.fire=function(){f.unqueued||b()}),f.unqueued++,h.always(function(){h.always(function(){f.unqueued--;i.queue(n,"fx").length||f.empty.fire()})}));1===n.nodeType&&("height"in t||"width"in t)&&(r.overflow=[e.overflow,e.overflowX,e.overflowY],"inline"===i.css(n,"display")&&"none"===i.css(n,"float")&&(i.support.inlineBlockNeedsLayout&&"inline"!==hr(n.nodeName)?e.zoom=1:e.display="inline-block"));r.overflow&&(e.overflow="hidden",i.support.shrinkWrapBlocks||h.always(function(){e.overflow=r.overflow[0];e.overflowX=r.overflow[1];e.overflowY=r.overflow[2]}));for(o in t)if(a=t[o],wo.exec(a)){if(delete t[o],v=v||"toggle"===a,a===(c?"hide":"show"))continue;p.push(o)}if(w=p.length)for(s=i._data(n,"fxshow")||i._data(n,"fxshow",{}),("hidden"in s)&&(c=s.hidden),v&&(s.hidden=!c),c?i(n).show():h.done(function(){i(n).hide()}),h.done(function(){var t;i._removeData(n,"fxshow");for(t in y)i.style(n,t,y[t])}),o=0;w>o;o++)u=p[o],l=h.createTween(u,c?s[u]:0),y[u]=s[u]||i.style(n,u),u in s||(s[u]=l.start,c&&(l.end=l.start,l.start="width"===u||"height"===u?1:0))}function f(n,t,i,r,u){return new f.prototype.init(n,t,i,r,u)}function ot(n,t){var r,i={height:n},u=0;for(t=t?1:0;4>u;u+=2-t)r=p[u],i["margin"+r]=i["padding"+r]=n;return t&&(i.opacity=i.width=n),i}function wr(n){return i.isWindow(n)?n:9===n.nodeType?n.defaultView||n.parentWindow:!1}var st,br,o=typeof t,r=n.document,pf=n.location,wf=n.jQuery,bf=n.$,ht={},k=[],ni="1.9.1",kr=k.concat,ti=k.push,l=k.slice,dr=k.indexOf,kf=ht.toString,rt=ht.hasOwnProperty,ii=ni.trim,i=function(n,t){return new i.fn.init(n,t,br)},ct=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,s=/\S+/g,df=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,gf=/^(?:(<[\w\W]+>)[^>]*|#([\w-]*))$/,gr=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ne=/^[\],:{}\s]*$/,te=/(?:^|:|,)(?:\s*\[)+/g,ie=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,re=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,ue=/^-ms-/,fe=/-([\da-z])/gi,ee=function(n,t){return t.toUpperCase()},h=function(n){(r.addEventListener||"load"===n.type||"complete"===r.readyState)&&(nu(),i.ready())},nu=function(){r.addEventListener?(r.removeEventListener("DOMContentLoaded",h,!1),n.removeEventListener("load",h,!1)):(r.detachEvent("onreadystatechange",h),n.detachEvent("onload",h))},ri,tu,iu,pi,at,g,nt,uf,vt;i.fn=i.prototype={jquery:ni,constructor:i,init:function(n,u,f){var e,o;if(!n)return this;if("string"==typeof n){if(e="<"===n.charAt(0)&&">"===n.charAt(n.length-1)&&n.length>=3?[null,n,null]:gf.exec(n),!e||!e[1]&&u)return!u||u.jquery?(u||f).find(n):this.constructor(u).find(n);if(e[1]){if(u=u instanceof i?u[0]:u,i.merge(this,i.parseHTML(e[1],u&&u.nodeType?u.ownerDocument||u:r,!0)),gr.test(e[1])&&i.isPlainObject(u))for(e in u)i.isFunction(this[e])?this[e](u[e]):this.attr(e,u[e]);return this}if(o=r.getElementById(e[2]),o&&o.parentNode){if(o.id!==e[2])return f.find(n);this.length=1;this[0]=o}return this.context=r,this.selector=n,this}return n.nodeType?(this.context=this[0]=n,this.length=1,this):i.isFunction(n)?f.ready(n):(n.selector!==t&&(this.selector=n.selector,this.context=n.context),i.makeArray(n,this))},selector:"",length:0,size:function(){return this.length},toArray:function(){return l.call(this)},get:function(n){return null==n?this.toArray():0>n?this[this.length+n]:this[n]},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t.context=this.context,t},each:function(n,t){return i.each(this,n,t)},ready:function(n){return i.ready.promise().done(n),this},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(0>n?i:0);return this.pushStack(t>=0&&i>t?[this[t]]:[])},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:ti,sort:[].sort,splice:[].splice};i.fn.init.prototype=i.fn;i.extend=i.fn.extend=function(){var u,o,r,e,s,h,n=arguments[0]||{},f=1,l=arguments.length,c=!1;for("boolean"==typeof n&&(c=n,n=arguments[1]||{},f=2),"object"==typeof n||i.isFunction(n)||(n={}),l===f&&(n=this,--f);l>f;f++)if(null!=(s=arguments[f]))for(e in s)u=n[e],r=s[e],n!==r&&(c&&r&&(i.isPlainObject(r)||(o=i.isArray(r)))?(o?(o=!1,h=u&&i.isArray(u)?u:[]):h=u&&i.isPlainObject(u)?u:{},n[e]=i.extend(c,h,r)):r!==t&&(n[e]=r));return n};i.extend({noConflict:function(t){return n.$===i&&(n.$=bf),t&&n.jQuery===i&&(n.jQuery=wf),i},isReady:!1,readyWait:1,holdReady:function(n){n?i.readyWait++:i.ready(!0)},ready:function(n){if(n===!0?!--i.readyWait:!i.isReady){if(!r.body)return setTimeout(i.ready);i.isReady=!0;n!==!0&&--i.readyWait>0||(st.resolveWith(r,[i]),i.fn.trigger&&i(r).trigger("ready").off("ready"))}},isFunction:function(n){return"function"===i.type(n)},isArray:Array.isArray||function(n){return"array"===i.type(n)},isWindow:function(n){return null!=n&&n==n.window},isNumeric:function(n){return!isNaN(parseFloat(n))&&isFinite(n)},type:function(n){return null==n?String(n):"object"==typeof n||"function"==typeof n?ht[kf.call(n)]||"object":typeof n},isPlainObject:function(n){if(!n||"object"!==i.type(n)||n.nodeType||i.isWindow(n))return!1;try{if(n.constructor&&!rt.call(n,"constructor")&&!rt.call(n.constructor.prototype,"isPrototypeOf"))return!1}catch(u){return!1}for(var r in n);return r===t||rt.call(n,r)},isEmptyObject:function(n){for(var t in n)return!1;return!0},error:function(n){throw new Error(n);},parseHTML:function(n,t,u){if(!n||"string"!=typeof n)return null;"boolean"==typeof t&&(u=t,t=!1);t=t||r;var f=gr.exec(n),e=!u&&[];return f?[t.createElement(f[1])]:(f=i.buildFragment([n],t,e),e&&i(e).remove(),i.merge([],f.childNodes))},parseJSON:function(t){return n.JSON&&n.JSON.parse?n.JSON.parse(t):null===t?t:"string"==typeof t&&(t=i.trim(t),t&&ne.test(t.replace(ie,"@").replace(re,"]").replace(te,"")))?new Function("return "+t)():(i.error("Invalid JSON: "+t),void 0)},parseXML:function(r){var u,f;if(!r||"string"!=typeof r)return null;try{n.DOMParser?(f=new DOMParser,u=f.parseFromString(r,"text/xml")):(u=new ActiveXObject("Microsoft.XMLDOM"),u.async="false",u.loadXML(r))}catch(e){u=t}return u&&u.documentElement&&!u.getElementsByTagName("parsererror").length||i.error("Invalid XML: "+r),u},noop:function(){},globalEval:function(t){t&&i.trim(t)&&(n.execScript||function(t){n.eval.call(n,t)})(t)},camelCase:function(n){return n.replace(ue,"ms-").replace(fe,ee)},nodeName:function(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()},each:function(n,t,i){var u,r=0,f=n.length,e=wt(n);if(i){if(e)for(;f>r&&(u=t.apply(n[r],i),u!==!1);r++);else for(r in n)if(u=t.apply(n[r],i),u===!1)break}else if(e)for(;f>r&&(u=t.call(n[r],r,n[r]),u!==!1);r++);else for(r in n)if(u=t.call(n[r],r,n[r]),u===!1)break;return n},trim:ii&&!ii.call("﻿ ")?function(n){return null==n?"":ii.call(n)}:function(n){return null==n?"":(n+"").replace(df,"")},makeArray:function(n,t){var r=t||[];return null!=n&&(wt(Object(n))?i.merge(r,"string"==typeof n?[n]:n):ti.call(r,n)),r},inArray:function(n,t,i){var r;if(t){if(dr)return dr.call(t,n,i);for(r=t.length,i=i?0>i?Math.max(0,r+i):i:0;r>i;i++)if(i in t&&t[i]===n)return i}return-1},merge:function(n,i){var f=i.length,u=n.length,r=0;if("number"==typeof f)for(;f>r;r++)n[u++]=i[r];else for(;i[r]!==t;)n[u++]=i[r++];return n.length=u,n},grep:function(n,t,i){var u,f=[],r=0,e=n.length;for(i=!!i;e>r;r++)u=!!t(n[r],r),i!==u&&f.push(n[r]);return f},map:function(n,t,i){var u,r=0,e=n.length,o=wt(n),f=[];if(o)for(;e>r;r++)u=t(n[r],r,i),null!=u&&(f[f.length]=u);else for(r in n)u=t(n[r],r,i),null!=u&&(f[f.length]=u);return kr.apply([],f)},guid:1,proxy:function(n,r){var f,u,e;return"string"==typeof r&&(e=n[r],r=n,n=e),i.isFunction(n)?(f=l.call(arguments,2),u=function(){return n.apply(r||this,f.concat(l.call(arguments)))},u.guid=n.guid=n.guid||i.guid++,u):t},access:function(n,r,u,f,e,o,s){var h=0,l=n.length,c=null==u;if("object"===i.type(u)){e=!0;for(h in u)i.access(n,r,h,u[h],!0,o,s)}else if(f!==t&&(e=!0,i.isFunction(f)||(s=!0),c&&(s?(r.call(n,f),r=null):(c=r,r=function(n,t,r){return c.call(i(n),r)})),r))for(;l>h;h++)r(n[h],u,s?f:f.call(n[h],h,r(n[h],u)));return e?n:c?r.call(n):l?r(n[0],u):o},now:function(){return(new Date).getTime()}});i.ready.promise=function(t){if(!st)if(st=i.Deferred(),"complete"===r.readyState)setTimeout(i.ready);else if(r.addEventListener)r.addEventListener("DOMContentLoaded",h,!1),n.addEventListener("load",h,!1);else{r.attachEvent("onreadystatechange",h);n.attachEvent("onload",h);var u=!1;try{u=null==n.frameElement&&r.documentElement}catch(e){}u&&u.doScroll&&!function f(){if(!i.isReady){try{u.doScroll("left")}catch(n){return setTimeout(f,50)}nu();i.ready()}}()}return st.promise(t)};i.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(n,t){ht["[object "+t+"]"]=t.toLowerCase()});br=i(r);ri={};i.Callbacks=function(n){n="string"==typeof n?ri[n]||ff(n):i.extend({},n);var o,f,c,s,e,l,r=[],u=!n.once&&[],a=function(t){for(f=n.memory&&t,c=!0,e=l||0,l=0,s=r.length,o=!0;r&&s>e;e++)if(r[e].apply(t[0],t[1])===!1&&n.stopOnFalse){f=!1;break}o=!1;r&&(u?u.length&&a(u.shift()):f?r=[]:h.disable())},h={add:function(){if(r){var t=r.length;!function u(t){i.each(t,function(t,f){var e=i.type(f);"function"===e?n.unique&&h.has(f)||r.push(f):f&&f.length&&"string"!==e&&u(f)})}(arguments);o?s=r.length:f&&(l=t,a(f))}return this},remove:function(){return r&&i.each(arguments,function(n,t){for(var u;(u=i.inArray(t,r,u))>-1;)r.splice(u,1),o&&(s>=u&&s--,e>=u&&e--)}),this},has:function(n){return n?i.inArray(n,r)>-1:!(!r||!r.length)},empty:function(){return r=[],this},disable:function(){return r=u=f=t,this},disabled:function(){return!r},lock:function(){return u=t,f||h.disable(),this},locked:function(){return!u},fireWith:function(n,t){return t=t||[],t=[n,t.slice?t.slice():t],!r||c&&!u||(o?u.push(t):a(t)),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!c}};return h};i.extend({Deferred:function(n){var u=[["resolve","done",i.Callbacks("once memory"),"resolved"],["reject","fail",i.Callbacks("once memory"),"rejected"],["notify","progress",i.Callbacks("memory")]],f="pending",r={state:function(){return f},always:function(){return t.done(arguments).fail(arguments),this},then:function(){var n=arguments;return i.Deferred(function(f){i.each(u,function(u,e){var s=e[0],o=i.isFunction(n[u])&&n[u];t[e[1]](function(){var n=o&&o.apply(this,arguments);n&&i.isFunction(n.promise)?n.promise().done(f.resolve).fail(f.reject).progress(f.notify):f[s+"With"](this===r?f.promise():this,o?[n]:arguments)})});n=null}).promise()},promise:function(n){return null!=n?i.extend(n,r):r}},t={};return r.pipe=r.then,i.each(u,function(n,i){var e=i[2],o=i[3];r[i[1]]=e.add;o&&e.add(function(){f=o},u[1^n][2].disable,u[2][2].lock);t[i[0]]=function(){return t[i[0]+"With"](this===t?r:this,arguments),this};t[i[0]+"With"]=e.fireWith}),r.promise(t),n&&n.call(t,t),t},when:function(n){var o,h,s,t=0,u=l.call(arguments),r=u.length,e=1!==r||n&&i.isFunction(n.promise)?r:0,f=1===e?n:i.Deferred(),c=function(n,t,i){return function(r){t[n]=this;i[n]=arguments.length>1?l.call(arguments):r;i===o?f.notifyWith(t,i):--e||f.resolveWith(t,i)}};if(r>1)for(o=new Array(r),h=new Array(r),s=new Array(r);r>t;t++)u[t]&&i.isFunction(u[t].promise)?u[t].promise().done(c(t,s,u)).fail(f.reject).progress(c(t,h,o)):--e;return e||f.resolveWith(s,u),f.promise()}});i.support=function(){var u,s,e,f,h,c,l,a,y,v,t=r.createElement("div");if(t.setAttribute("className","t"),t.innerHTML="  <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>",s=t.getElementsByTagName("*"),e=t.getElementsByTagName("a")[0],!s||!e||!s.length)return{};h=r.createElement("select");l=h.appendChild(r.createElement("option"));f=t.getElementsByTagName("input")[0];e.style.cssText="top:1px;float:left;opacity:.5";u={getSetAttribute:"t"!==t.className,leadingWhitespace:3===t.firstChild.nodeType,tbody:!t.getElementsByTagName("tbody").length,htmlSerialize:!!t.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:"/a"===e.getAttribute("href"),opacity:/^0.5/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:!!f.value,optSelected:l.selected,enctype:!!r.createElement("form").enctype,html5Clone:"<:nav><\/:nav>"!==r.createElement("nav").cloneNode(!0).outerHTML,boxModel:"CSS1Compat"===r.compatMode,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1};f.checked=!0;u.noCloneChecked=f.cloneNode(!0).checked;h.disabled=!0;u.optDisabled=!l.disabled;try{delete t.test}catch(p){u.deleteExpando=!1}f=r.createElement("input");f.setAttribute("value","");u.input=""===f.getAttribute("value");f.value="t";f.setAttribute("type","radio");u.radioValue="t"===f.value;f.setAttribute("checked","t");f.setAttribute("name","t");c=r.createDocumentFragment();c.appendChild(f);u.appendChecked=f.checked;u.checkClone=c.cloneNode(!0).cloneNode(!0).lastChild.checked;t.attachEvent&&(t.attachEvent("onclick",function(){u.noCloneEvent=!1}),t.cloneNode(!0).click());for(v in{submit:!0,change:!0,focusin:!0})t.setAttribute(a="on"+v,"t"),u[v+"Bubbles"]=a in n||t.attributes[a].expando===!1;return t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",u.clearCloneStyle="content-box"===t.style.backgroundClip,i(function(){var e,f,i,h="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",s=r.getElementsByTagName("body")[0];s&&(e=r.createElement("div"),e.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",s.appendChild(e).appendChild(t),t.innerHTML="<table><tr><td><\/td><td>t<\/td><\/tr><\/table>",i=t.getElementsByTagName("td"),i[0].style.cssText="padding:0;margin:0;border:0;display:none",y=0===i[0].offsetHeight,i[0].style.display="",i[1].style.display="none",u.reliableHiddenOffsets=y&&0===i[0].offsetHeight,t.innerHTML="",t.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",u.boxSizing=4===t.offsetWidth,u.doesNotIncludeMarginInBodyOffset=1!==s.offsetTop,n.getComputedStyle&&(u.pixelPosition="1%"!==(n.getComputedStyle(t,null)||{}).top,u.boxSizingReliable="4px"===(n.getComputedStyle(t,null)||{width:"4px"}).width,f=t.appendChild(r.createElement("div")),f.style.cssText=t.style.cssText=h,f.style.marginRight=f.style.width="0",t.style.width="1px",u.reliableMarginRight=!parseFloat((n.getComputedStyle(f,null)||{}).marginRight)),typeof t.style.zoom!==o&&(t.innerHTML="",t.style.cssText=h+"width:1px;padding:1px;display:inline;zoom:1",u.inlineBlockNeedsLayout=3===t.offsetWidth,t.style.display="block",t.innerHTML="<div><\/div>",t.firstChild.style.width="5px",u.shrinkWrapBlocks=3!==t.offsetWidth,u.inlineBlockNeedsLayout&&(s.style.zoom=1)),s.removeChild(e),e=t=i=f=null)}),s=h=c=l=e=f=null,u}();tu=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/;iu=/([A-Z])/g;i.extend({cache:{},expando:"jQuery"+(ni+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(n){return n=n.nodeType?i.cache[n[i.expando]]:n[i.expando],!!n&&!bt(n)},data:function(n,t,i){return wi(n,t,i)},removeData:function(n,t){return bi(n,t)},_data:function(n,t,i){return wi(n,t,i,!0)},_removeData:function(n,t){return bi(n,t,!0)},acceptData:function(n){if(n.nodeType&&1!==n.nodeType&&9!==n.nodeType)return!1;var t=n.nodeName&&i.noData[n.nodeName.toLowerCase()];return!t||t!==!0&&n.getAttribute("classid")===t}});i.fn.extend({data:function(n,r){var e,f,u=this[0],o=0,s=null;if(n===t){if(this.length&&(s=i.data(u),1===u.nodeType&&!i._data(u,"parsedAttrs"))){for(e=u.attributes;o<e.length;o++)f=e[o].name,f.indexOf("data-")||(f=i.camelCase(f.slice(5)),ki(u,f,s[f]));i._data(u,"parsedAttrs",!0)}return s}return"object"==typeof n?this.each(function(){i.data(this,n)}):i.access(this,function(r){return r===t?u?ki(u,n,i.data(u,n)):null:(this.each(function(){i.data(this,n,r)}),void 0)},null,r,arguments.length>1,null,!0)},removeData:function(n){return this.each(function(){i.removeData(this,n)})}});i.extend({queue:function(n,t,r){var u;if(n)return(t=(t||"fx")+"queue",u=i._data(n,t),r&&(!u||i.isArray(r)?u=i._data(n,t,i.makeArray(r)):u.push(r)),u||[])},dequeue:function(n,t){t=t||"fx";var f=i.queue(n,t),e=f.length,r=f.shift(),u=i._queueHooks(n,t),o=function(){i.dequeue(n,t)};"inprogress"===r&&(r=f.shift(),e--);u.cur=r;r&&("fx"===t&&f.unshift("inprogress"),delete u.stop,r.call(n,o,u));!e&&u&&u.empty.fire()},_queueHooks:function(n,t){var r=t+"queueHooks";return i._data(n,r)||i._data(n,r,{empty:i.Callbacks("once memory").add(function(){i._removeData(n,t+"queue");i._removeData(n,r)})})}});i.fn.extend({queue:function(n,r){var u=2;return"string"!=typeof n&&(r=n,n="fx",u--),arguments.length<u?i.queue(this[0],n):r===t?this:this.each(function(){var t=i.queue(this,n,r);i._queueHooks(this,n);"fx"===n&&"inprogress"!==t[0]&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},delay:function(n,t){return n=i.fx?i.fx.speeds[n]||n:n,t=t||"fx",this.queue(t,function(t,i){var r=setTimeout(t,n);i.stop=function(){clearTimeout(r)}})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,r){var u,e=1,o=i.Deferred(),f=this,s=this.length,h=function(){--e||o.resolveWith(f,[f])};for("string"!=typeof n&&(r=n,n=t),n=n||"fx";s--;)u=i._data(f[s],n+"queueHooks"),u&&u.empty&&(e++,u.empty.add(h));return h(),o.promise(r)}});var d,ru,ui=/[\t\r\n]/g,oe=/\r/g,se=/^(?:input|select|textarea|button|object)$/i,he=/^(?:a|area)$/i,uu=/^(?:checked|selected|autofocus|autoplay|async|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped)$/i,fi=/^(?:checked|selected)$/i,a=i.support.getSetAttribute,ei=i.support.input;i.fn.extend({attr:function(n,t){return i.access(this,i.attr,n,t,arguments.length>1)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})},prop:function(n,t){return i.access(this,i.prop,n,t,arguments.length>1)},removeProp:function(n){return n=i.propFix[n]||n,this.each(function(){try{this[n]=t;delete this[n]}catch(i){}})},addClass:function(n){var e,t,r,u,o,f=0,h=this.length,c="string"==typeof n&&n;if(i.isFunction(n))return this.each(function(t){i(this).addClass(n.call(this,t,this.className))});if(c)for(e=(n||"").match(s)||[];h>f;f++)if(t=this[f],r=1===t.nodeType&&(t.className?(" "+t.className+" ").replace(ui," "):" ")){for(o=0;u=e[o++];)r.indexOf(" "+u+" ")<0&&(r+=u+" ");t.className=i.trim(r)}return this},removeClass:function(n){var e,t,r,u,o,f=0,h=this.length,c=0===arguments.length||"string"==typeof n&&n;if(i.isFunction(n))return this.each(function(t){i(this).removeClass(n.call(this,t,this.className))});if(c)for(e=(n||"").match(s)||[];h>f;f++)if(t=this[f],r=1===t.nodeType&&(t.className?(" "+t.className+" ").replace(ui," "):"")){for(o=0;u=e[o++];)for(;r.indexOf(" "+u+" ")>=0;)r=r.replace(" "+u+" "," ");t.className=n?i.trim(r):""}return this},toggleClass:function(n,t){var r=typeof n,u="boolean"==typeof t;return i.isFunction(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,this.className,t),t)}):this.each(function(){if("string"===r)for(var f,c=0,h=i(this),e=t,l=n.match(s)||[];f=l[c++];)e=u?e:!h.hasClass(f),h[e?"addClass":"removeClass"](f);else(r===o||"boolean"===r)&&(this.className&&i._data(this,"__className__",this.className),this.className=this.className||n===!1?"":i._data(this,"__className__")||"")})},hasClass:function(n){for(var i=" "+n+" ",t=0,r=this.length;r>t;t++)if(1===this[t].nodeType&&(" "+this[t].className+" ").replace(ui," ").indexOf(i)>=0)return!0;return!1},val:function(n){var u,r,e,f=this[0];return arguments.length?(e=i.isFunction(n),this.each(function(u){var f,o=i(this);1===this.nodeType&&(f=e?n.call(this,u,o.val()):n,null==f?f="":"number"==typeof f?f+="":i.isArray(f)&&(f=i.map(f,function(n){return null==n?"":n+""})),r=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],r&&"set"in r&&r.set(this,f,"value")!==t||(this.value=f))})):f?(r=i.valHooks[f.type]||i.valHooks[f.nodeName.toLowerCase()],r&&"get"in r&&(u=r.get(f,"value"))!==t?u:(u=f.value,"string"==typeof u?u.replace(oe,""):null==u?"":u)):void 0}});i.extend({valHooks:{option:{get:function(n){var t=n.attributes.value;return!t||t.specified?n.value:n.text}},select:{get:function(n){for(var e,t,o=n.options,r=n.selectedIndex,u="select-one"===n.type||0>r,s=u?null:[],h=u?r+1:o.length,f=0>r?h:u?r:0;h>f;f++)if(t=o[f],!(!t.selected&&f!==r||(i.support.optDisabled?t.disabled:null!==t.getAttribute("disabled"))||t.parentNode.disabled&&i.nodeName(t.parentNode,"optgroup"))){if(e=i(t).val(),u)return e;s.push(e)}return s},set:function(n,t){var r=i.makeArray(t);return i(n).find("option").each(function(){this.selected=i.inArray(i(this).val(),r)>=0}),r.length||(n.selectedIndex=-1),r}}},attr:function(n,r,u){var f,s,e,h=n.nodeType;if(n&&3!==h&&8!==h&&2!==h)return typeof n.getAttribute===o?i.prop(n,r,u):(s=1!==h||!i.isXMLDoc(n),s&&(r=r.toLowerCase(),f=i.attrHooks[r]||(uu.test(r)?ru:d)),u===t?f&&s&&"get"in f&&null!==(e=f.get(n,r))?e:(typeof n.getAttribute!==o&&(e=n.getAttribute(r)),null==e?t:e):null!==u?f&&s&&"set"in f&&(e=f.set(n,u,r))!==t?e:(n.setAttribute(r,u+""),u):(i.removeAttr(n,r),void 0))},removeAttr:function(n,t){var r,u,e=0,f=t&&t.match(s);if(f&&1===n.nodeType)for(;r=f[e++];)u=i.propFix[r]||r,uu.test(r)?!a&&fi.test(r)?n[i.camelCase("default-"+r)]=n[u]=!1:n[u]=!1:i.attr(n,r,""),n.removeAttribute(a?r:u)},attrHooks:{type:{set:function(n,t){if(!i.support.radioValue&&"radio"===t&&i.nodeName(n,"input")){var r=n.value;return n.setAttribute("type",t),r&&(n.value=r),t}}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(n,r,u){var e,f,s,o=n.nodeType;if(n&&3!==o&&8!==o&&2!==o)return s=1!==o||!i.isXMLDoc(n),s&&(r=i.propFix[r]||r,f=i.propHooks[r]),u!==t?f&&"set"in f&&(e=f.set(n,u,r))!==t?e:n[r]=u:f&&"get"in f&&null!==(e=f.get(n,r))?e:n[r]},propHooks:{tabIndex:{get:function(n){var i=n.getAttributeNode("tabindex");return i&&i.specified?parseInt(i.value,10):se.test(n.nodeName)||he.test(n.nodeName)&&n.href?0:t}}}});ru={get:function(n,r){var u=i.prop(n,r),f="boolean"==typeof u&&n.getAttribute(r),e="boolean"==typeof u?ei&&a?null!=f:fi.test(r)?n[i.camelCase("default-"+r)]:!!f:n.getAttributeNode(r);return e&&e.value!==!1?r.toLowerCase():t},set:function(n,t,r){return t===!1?i.removeAttr(n,r):ei&&a||!fi.test(r)?n.setAttribute(!a&&i.propFix[r]||r,r):n[i.camelCase("default-"+r)]=n[r]=!0,r}};ei&&a||(i.attrHooks.value={get:function(n,r){var u=n.getAttributeNode(r);return i.nodeName(n,"input")?n.defaultValue:u&&u.specified?u.value:t},set:function(n,t,r){return i.nodeName(n,"input")?(n.defaultValue=t,void 0):d&&d.set(n,t,r)}});a||(d=i.valHooks.button={get:function(n,i){var r=n.getAttributeNode(i);return r&&("id"===i||"name"===i||"coords"===i?""!==r.value:r.specified)?r.value:t},set:function(n,i,r){var u=n.getAttributeNode(r);return u||n.setAttributeNode(u=n.ownerDocument.createAttribute(r)),u.value=i+="","value"===r||i===n.getAttribute(r)?i:t}},i.attrHooks.contenteditable={get:d.get,set:function(n,t,i){d.set(n,""===t?!1:t,i)}},i.each(["width","height"],function(n,t){i.attrHooks[t]=i.extend(i.attrHooks[t],{set:function(n,i){if(""===i)return(n.setAttribute(t,"auto"),i)}})}));i.support.hrefNormalized||(i.each(["href","src","width","height"],function(n,r){i.attrHooks[r]=i.extend(i.attrHooks[r],{get:function(n){var i=n.getAttribute(r,2);return null==i?t:i}})}),i.each(["href","src"],function(n,t){i.propHooks[t]={get:function(n){return n.getAttribute(t,4)}}}));i.support.style||(i.attrHooks.style={get:function(n){return n.style.cssText||t},set:function(n,t){return n.style.cssText=t+""}});i.support.optSelected||(i.propHooks.selected=i.extend(i.propHooks.selected,{get:function(n){var t=n.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}));i.support.enctype||(i.propFix.enctype="encoding");i.support.checkOn||i.each(["radio","checkbox"],function(){i.valHooks[this]={get:function(n){return null===n.getAttribute("value")?"on":n.value}}});i.each(["radio","checkbox"],function(){i.valHooks[this]=i.extend(i.valHooks[this],{set:function(n,t){if(i.isArray(t))return n.checked=i.inArray(i(n).val(),t)>=0}})});var oi=/^(?:input|select|textarea)$/i,ce=/^key/,le=/^(?:mouse|contextmenu)|click/,fu=/^(?:focusinfocus|focusoutblur)$/,eu=/^([^.]*)(?:\.(.+)|)$/;i.event={global:{},add:function(n,r,u,f,e){var b,p,k,w,c,l,a,v,h,d,g,y=i._data(n);if(y){for(u.handler&&(w=u,u=w.handler,e=w.selector),u.guid||(u.guid=i.guid++),(p=y.events)||(p=y.events={}),(l=y.handle)||(l=y.handle=function(n){return typeof i===o||n&&i.event.triggered===n.type?t:i.event.dispatch.apply(l.elem,arguments)},l.elem=n),r=(r||"").match(s)||[""],k=r.length;k--;)b=eu.exec(r[k])||[],h=g=b[1],d=(b[2]||"").split(".").sort(),c=i.event.special[h]||{},h=(e?c.delegateType:c.bindType)||h,c=i.event.special[h]||{},a=i.extend({type:h,origType:g,data:f,handler:u,guid:u.guid,selector:e,needsContext:e&&i.expr.match.needsContext.test(e),namespace:d.join(".")},w),(v=p[h])||(v=p[h]=[],v.delegateCount=0,c.setup&&c.setup.call(n,f,d,l)!==!1||(n.addEventListener?n.addEventListener(h,l,!1):n.attachEvent&&n.attachEvent("on"+h,l))),c.add&&(c.add.call(n,a),a.handler.guid||(a.handler.guid=u.guid)),e?v.splice(v.delegateCount++,0,a):v.push(a),i.event.global[h]=!0;n=null}},remove:function(n,t,r,u,f){var y,o,h,b,p,a,c,l,e,w,k,v=i.hasData(n)&&i._data(n);if(v&&(a=v.events)){for(t=(t||"").match(s)||[""],p=t.length;p--;)if(h=eu.exec(t[p])||[],e=k=h[1],w=(h[2]||"").split(".").sort(),e){for(c=i.event.special[e]||{},e=(u?c.delegateType:c.bindType)||e,l=a[e]||[],h=h[2]&&new RegExp("(^|\\.)"+w.join("\\.(?:.*\\.|)")+"(\\.|$)"),b=y=l.length;y--;)o=l[y],!f&&k!==o.origType||r&&r.guid!==o.guid||h&&!h.test(o.namespace)||u&&u!==o.selector&&("**"!==u||!o.selector)||(l.splice(y,1),o.selector&&l.delegateCount--,c.remove&&c.remove.call(n,o));b&&!l.length&&(c.teardown&&c.teardown.call(n,w,v.handle)!==!1||i.removeEvent(n,e,v.handle),delete a[e])}else for(e in a)i.event.remove(n,e+t[p],r,u,!0);i.isEmptyObject(a)&&(delete v.handle,i._removeData(n,"events"))}},trigger:function(u,f,e,o){var a,v,h,p,l,c,w,b=[e||r],s=rt.call(u,"type")?u.type:u,y=rt.call(u,"namespace")?u.namespace.split("."):[];if(h=c=e=e||r,3!==e.nodeType&&8!==e.nodeType&&!fu.test(s+i.event.triggered)&&(s.indexOf(".")>=0&&(y=s.split("."),s=y.shift(),y.sort()),v=s.indexOf(":")<0&&"on"+s,u=u[i.expando]?u:new i.Event(s,"object"==typeof u&&u),u.isTrigger=!0,u.namespace=y.join("."),u.namespace_re=u.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,u.result=t,u.target||(u.target=e),f=null==f?[u]:i.makeArray(f,[u]),l=i.event.special[s]||{},o||!l.trigger||l.trigger.apply(e,f)!==!1)){if(!o&&!l.noBubble&&!i.isWindow(e)){for(p=l.delegateType||s,fu.test(p+s)||(h=h.parentNode);h;h=h.parentNode)b.push(h),c=h;c===(e.ownerDocument||r)&&b.push(c.defaultView||c.parentWindow||n)}for(w=0;(h=b[w++])&&!u.isPropagationStopped();)u.type=w>1?p:l.bindType||s,a=(i._data(h,"events")||{})[u.type]&&i._data(h,"handle"),a&&a.apply(h,f),a=v&&h[v],a&&i.acceptData(h)&&a.apply&&a.apply(h,f)===!1&&u.preventDefault();if(u.type=s,!(o||u.isDefaultPrevented()||l._default&&l._default.apply(e.ownerDocument,f)!==!1||"click"===s&&i.nodeName(e,"a")||!i.acceptData(e)||!v||!e[s]||i.isWindow(e))){c=e[v];c&&(e[v]=null);i.event.triggered=s;try{e[s]()}catch(k){}i.event.triggered=t;c&&(e[v]=c)}return u.result}},dispatch:function(n){n=i.event.fix(n);var o,e,r,u,s,h=[],c=l.call(arguments),a=(i._data(this,"events")||{})[n.type]||[],f=i.event.special[n.type]||{};if(c[0]=n,n.delegateTarget=this,!f.preDispatch||f.preDispatch.call(this,n)!==!1){for(h=i.event.handlers.call(this,n,a),o=0;(u=h[o++])&&!n.isPropagationStopped();)for(n.currentTarget=u.elem,s=0;(r=u.handlers[s++])&&!n.isImmediatePropagationStopped();)(!n.namespace_re||n.namespace_re.test(r.namespace))&&(n.handleObj=r,n.data=r.data,e=((i.event.special[r.origType]||{}).handle||r.handler).apply(u.elem,c),e!==t&&(n.result=e)===!1&&(n.preventDefault(),n.stopPropagation()));return f.postDispatch&&f.postDispatch.call(this,n),n.result}},handlers:function(n,r){var e,o,f,s,c=[],h=r.delegateCount,u=n.target;if(h&&u.nodeType&&(!n.button||"click"!==n.type))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(u.disabled!==!0||"click"!==n.type)){for(f=[],s=0;h>s;s++)o=r[s],e=o.selector+" ",f[e]===t&&(f[e]=o.needsContext?i(e,this).index(u)>=0:i.find(e,this,null,[u]).length),f[e]&&f.push(o);f.length&&c.push({elem:u,handlers:f})}return h<r.length&&c.push({elem:this,handlers:r.slice(h)}),c},fix:function(n){if(n[i.expando])return n;var e,o,s,u=n.type,f=n,t=this.fixHooks[u];for(t||(this.fixHooks[u]=t=le.test(u)?this.mouseHooks:ce.test(u)?this.keyHooks:{}),s=t.props?this.props.concat(t.props):this.props,n=new i.Event(f),e=s.length;e--;)o=s[e],n[o]=f[o];return n.target||(n.target=f.srcElement||r),3===n.target.nodeType&&(n.target=n.target.parentNode),n.metaKey=!!n.metaKey,t.filter?t.filter(n,f):n},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(n,t){return null==n.which&&(n.which=null!=t.charCode?t.charCode:t.keyCode),n}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(n,i){var u,o,f,e=i.button,s=i.fromElement;return null==n.pageX&&null!=i.clientX&&(o=n.target.ownerDocument||r,f=o.documentElement,u=o.body,n.pageX=i.clientX+(f&&f.scrollLeft||u&&u.scrollLeft||0)-(f&&f.clientLeft||u&&u.clientLeft||0),n.pageY=i.clientY+(f&&f.scrollTop||u&&u.scrollTop||0)-(f&&f.clientTop||u&&u.clientTop||0)),!n.relatedTarget&&s&&(n.relatedTarget=s===n.target?i.toElement:s),n.which||e===t||(n.which=1&e?1:2&e?3:4&e?2:0),n}},special:{load:{noBubble:!0},click:{trigger:function(){if(i.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return(this.click(),!1)}},focus:{trigger:function(){if(this!==r.activeElement&&this.focus)try{return this.focus(),!1}catch(n){}},delegateType:"focusin"},blur:{trigger:function(){if(this===r.activeElement&&this.blur)return(this.blur(),!1)},delegateType:"focusout"},beforeunload:{postDispatch:function(n){n.result!==t&&(n.originalEvent.returnValue=n.result)}}},simulate:function(n,t,r,u){var f=i.extend(new i.Event,r,{type:n,isSimulated:!0,originalEvent:{}});u?i.event.trigger(f,null,t):i.event.dispatch.call(t,f);f.isDefaultPrevented()&&r.preventDefault()}};i.removeEvent=r.removeEventListener?function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i,!1)}:function(n,t,i){var r="on"+t;n.detachEvent&&(typeof n[r]===o&&(n[r]=null),n.detachEvent(r,i))};i.Event=function(n,t){return this instanceof i.Event?(n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||n.returnValue===!1||n.getPreventDefault&&n.getPreventDefault()?et:b):this.type=n,t&&i.extend(this,t),this.timeStamp=n&&n.timeStamp||i.now(),this[i.expando]=!0,void 0):new i.Event(n,t)};i.Event.prototype={isDefaultPrevented:b,isPropagationStopped:b,isImmediatePropagationStopped:b,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=et;n&&(n.preventDefault?n.preventDefault():n.returnValue=!1)},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=et;n&&(n.stopPropagation&&n.stopPropagation(),n.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=et;this.stopPropagation()}};i.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,f=this,r=n.relatedTarget,e=n.handleObj;return(!r||r!==f&&!i.contains(f,r))&&(n.type=e.origType,u=e.handler.apply(this,arguments),n.type=t),u}}});i.support.submitBubbles||(i.event.special.submit={setup:function(){return i.nodeName(this,"form")?!1:(i.event.add(this,"click._submit keypress._submit",function(n){var u=n.target,r=i.nodeName(u,"input")||i.nodeName(u,"button")?u.form:t;r&&!i._data(r,"submitBubbles")&&(i.event.add(r,"submit._submit",function(n){n._submit_bubble=!0}),i._data(r,"submitBubbles",!0))}),void 0)},postDispatch:function(n){n._submit_bubble&&(delete n._submit_bubble,this.parentNode&&!n.isTrigger&&i.event.simulate("submit",this.parentNode,n,!0))},teardown:function(){return i.nodeName(this,"form")?!1:(i.event.remove(this,"._submit"),void 0)}});i.support.changeBubbles||(i.event.special.change={setup:function(){return oi.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(i.event.add(this,"propertychange._change",function(n){"checked"===n.originalEvent.propertyName&&(this._just_changed=!0)}),i.event.add(this,"click._change",function(n){this._just_changed&&!n.isTrigger&&(this._just_changed=!1);i.event.simulate("change",this,n,!0)})),!1):(i.event.add(this,"beforeactivate._change",function(n){var t=n.target;oi.test(t.nodeName)&&!i._data(t,"changeBubbles")&&(i.event.add(t,"change._change",function(n){!this.parentNode||n.isSimulated||n.isTrigger||i.event.simulate("change",this.parentNode,n,!0)}),i._data(t,"changeBubbles",!0))}),void 0)},handle:function(n){var t=n.target;if(this!==t||n.isSimulated||n.isTrigger||"radio"!==t.type&&"checkbox"!==t.type)return n.handleObj.handler.apply(this,arguments)},teardown:function(){return i.event.remove(this,"._change"),!oi.test(this.nodeName)}});i.support.focusinBubbles||i.each({focus:"focusin",blur:"focusout"},function(n,t){var u=0,f=function(n){i.event.simulate(t,n.target,i.event.fix(n),!0)};i.event.special[t]={setup:function(){0==u++&&r.addEventListener(n,f,!0)},teardown:function(){0==--u&&r.removeEventListener(n,f,!0)}}});i.fn.extend({on:function(n,r,u,f,e){var s,o;if("object"==typeof n){"string"!=typeof r&&(u=u||r,r=t);for(s in n)this.on(s,r,u,n[s],e);return this}if(null==u&&null==f?(f=r,u=r=t):null==f&&("string"==typeof r?(f=u,u=t):(f=u,u=r,r=t)),f===!1)f=b;else if(!f)return this;return 1===e&&(o=f,f=function(n){return i().off(n),o.apply(this,arguments)},f.guid=o.guid||(o.guid=i.guid++)),this.each(function(){i.event.add(this,n,f,u,r)})},one:function(n,t,i,r){return this.on(n,t,i,r,1)},off:function(n,r,u){var f,e;if(n&&n.preventDefault&&n.handleObj)return f=n.handleObj,i(n.delegateTarget).off(f.namespace?f.origType+"."+f.namespace:f.origType,f.selector,f.handler),this;if("object"==typeof n){for(e in n)this.off(e,r,n[e]);return this}return(r===!1||"function"==typeof r)&&(u=r,r=t),u===!1&&(u=b),this.each(function(){i.event.remove(this,n,u,r)})},bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return 1===arguments.length?this.off(n,"**"):this.off(t,n||"**",i)},trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){var r=this[0];if(r)return i.event.trigger(n,t,r,!0)}}),function(n,t){function bt(n){return er.test(n+"")}function kt(){var n,t=[];return n=function(i,u){return t.push(i+=" ")>r.cacheLength&&delete n[t.shift()],n[i]=u}}function c(n){return n[f]=!0,n}function p(n){var t=s.createElement("div");try{return n(t)}catch(i){return!1}finally{t=null}}function u(n,t,i,r){var y,u,e,c,p,v,w,h,k,b;if((t?t.ownerDocument||t:d)!==s&&it(t),t=t||s,i=i||[],!n||"string"!=typeof n)return i;if(1!==(c=t.nodeType)&&9!==c)return[];if(!l&&!r){if(y=or.exec(n))if(e=y[1]){if(9===c){if(u=t.getElementById(e),!u||!u.parentNode)return i;if(u.id===e)return i.push(u),i}else if(t.ownerDocument&&(u=t.ownerDocument.getElementById(e))&&et(t,u)&&u.id===e)return i.push(u),i}else{if(y[2])return ut.apply(i,ft.call(t.getElementsByTagName(n),0)),i;if((e=y[3])&&o.getByClassName&&t.getElementsByClassName)return ut.apply(i,ft.call(t.getElementsByClassName(e),0)),i}if(o.qsa&&!a.test(n)){if(w=!0,h=f,k=t,b=9===c&&n,1===c&&"object"!==t.nodeName.toLowerCase()){for(v=ot(n),(w=t.getAttribute("id"))?h=w.replace(cr,"\\$&"):t.setAttribute("id",h),h="[id='"+h+"'] ",p=v.length;p--;)v[p]=h+st(v[p]);k=ei.test(n)&&t.parentNode||t;b=v.join(",")}if(b)try{return ut.apply(i,ft.call(k.querySelectorAll(b),0)),i}catch(g){}finally{w||t.removeAttribute("id")}}}return gi(n.replace(pt,"$1"),t,i,r)}function oi(n,t){var i=t&&n,r=i&&(~t.sourceIndex||vi)-(~n.sourceIndex||vi);if(r)return r;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return n?1:-1}function wi(n){return function(t){var i=t.nodeName.toLowerCase();return"input"===i&&t.type===n}}function bi(n){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===n}}function k(n){return c(function(t){return t=+t,c(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function ot(n,t){var e,f,s,o,i,h,c,l=li[n+" "];if(l)return t?0:l.slice(0);for(i=n,h=[],c=r.preFilter;i;){(!e||(f=ir.exec(i)))&&(f&&(i=i.slice(f[0].length)||i),h.push(s=[]));e=!1;(f=rr.exec(i))&&(e=f.shift(),s.push({value:e,type:f[0].replace(pt," ")}),i=i.slice(e.length));for(o in r.filter)(f=wt[o].exec(i))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),i=i.slice(e.length));if(!e)break}return t?i.length:i?u.error(n):li(n,h).slice(0)}function st(n){for(var t=0,r=n.length,i="";r>t;t++)i+=n[t].value;return i}function dt(n,t,i){var r=t.dir,u=i&&"parentNode"===r,e=nr++;return t.first?function(t,i,f){for(;t=t[r];)if(1===t.nodeType||u)return n(t,i,f)}:function(t,i,o){var h,s,c,l=v+" "+e;if(o){for(;t=t[r];)if((1===t.nodeType||u)&&n(t,i,o))return!0}else for(;t=t[r];)if(1===t.nodeType||u)if(c=t[f]||(t[f]={}),(s=c[r])&&s[0]===l){if((h=s[1])===!0||h===ct)return h===!0}else if(s=c[r]=[l],s[1]=n(t,i,o)||ct,s[1]===!0)return!0}}function gt(n){return n.length>1?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function ht(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=null!=t;s>f;f++)(e=n[f])&&(!i||i(e,r,u))&&(o.push(e),h&&t.push(f));return o}function ni(n,t,i,r,u,e){return r&&!r[f]&&(r=ni(r)),u&&!u[f]&&(u=ni(u,e)),c(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,b=f||di(t||"*",o.nodeType?[o]:o,[]),v=!n||!f&&t?b:ht(b,p,n,o,s),h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=ht(h,y),r(l,[],o,s),c=l.length;c--;)(a=l[c])&&(h[y[c]]=!(v[y[c]]=a));if(f){if(u||n){if(u){for(l=[],c=h.length;c--;)(a=h[c])&&l.push(v[c]=a);u(null,h=[],l,s)}for(c=h.length;c--;)(a=h[c])&&(l=u?ui.call(f,a):p[c])>-1&&(f[l]=!(e[l]=a))}}else h=ht(h===e?h.splice(w,h.length):h),u?u(null,e,h,s):ut.apply(e,h)})}function ti(n){for(var s,u,i,o=n.length,h=r.relative[n[0].type],c=h||r.relative[" "],t=h?1:0,l=dt(function(n){return n===s},c,!0),a=dt(function(n){return ui.call(s,n)>-1},c,!0),e=[function(n,t,i){return!h&&(i||t!==at)||((s=t).nodeType?l(n,t,i):a(n,t,i))}];o>t;t++)if(u=r.relative[n[t].type])e=[dt(gt(e),u)];else{if(u=r.filter[n[t].type].apply(null,n[t].matches),u[f]){for(i=++t;o>i&&!r.relative[n[i].type];i++);return ni(t>1&&gt(e),t>1&&st(n.slice(0,t-1)).replace(pt,"$1"),u,i>t&&ti(n.slice(t,i)),o>i&&ti(n=n.slice(i)),o>i&&st(n))}e.push(u)}return gt(e)}function ki(n,t){var f=0,i=t.length>0,e=n.length>0,o=function(o,h,c,l,a){var p,d,b,w=[],k=0,y="0",g=o&&[],nt=null!=a,tt=at,rt=o||e&&r.find.TAG("*",a&&h.parentNode||h),it=v+=null==tt?1:Math.random()||.1;for(nt&&(at=h!==s&&h,ct=f);null!=(p=rt[y]);y++){if(e&&p){for(d=0;b=n[d++];)if(b(p,h,c)){l.push(p);break}nt&&(v=it,ct=++f)}i&&((p=!b&&p)&&k--,o&&g.push(p))}if(k+=y,i&&y!==k){for(d=0;b=t[d++];)b(g,w,h,c);if(o){if(k>0)for(;y--;)g[y]||w[y]||(w[y]=tr.call(l));w=ht(w)}ut.apply(l,w);nt&&!o&&w.length>0&&k+t.length>1&&u.uniqueSort(l)}return nt&&(v=it,at=tt),g};return i?c(o):o}function di(n,t,i){for(var r=0,f=t.length;f>r;r++)u(n,t[r],i);return i}function gi(n,t,i,u){var o,f,e,h,c,s=ot(n);if(!u&&1===s.length){if(f=s[0]=s[0].slice(0),f.length>2&&"ID"===(e=f[0]).type&&9===t.nodeType&&!l&&r.relative[f[1].type]){if(t=r.find.ID(e.matches[0].replace(w,b),t)[0],!t)return i;n=n.slice(f.shift().value.length)}for(o=wt.needsContext.test(n)?0:f.length;o--&&(e=f[o],!r.relative[h=e.type]);)if((c=r.find[h])&&(u=c(e.matches[0].replace(w,b),ei.test(f[0].type)&&t.parentNode||t))){if(f.splice(o,1),n=u.length&&st(f),!n)return ut.apply(i,ft.call(u,0)),i;break}}return ii(n,s)(u,t,l,i,ei.test(n)),i}function si(){}var nt,ct,r,lt,hi,ii,tt,at,it,s,h,l,a,rt,vt,et,ri,f="sizzle"+-new Date,d=n.document,o={},v=0,nr=0,ci=kt(),li=kt(),ai=kt(),y=typeof t,vi=-2147483648,yt=[],tr=yt.pop,ut=yt.push,ft=yt.slice,ui=yt.indexOf||function(n){for(var t=0,i=this.length;i>t;t++)if(this[t]===n)return t;return-1},e="[\\x20\\t\\r\\n\\f]",g="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",yi=g.replace("w","w#"),pi="\\["+e+"*("+g+")"+e+"*(?:([*^$|!~]?=)"+e+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+yi+")|)|)"+e+"*\\]",fi=":("+g+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+pi.replace(3,8)+")*)|.*)\\)|)",pt=new RegExp("^"+e+"+|((?:^|[^\\\\])(?:\\\\.)*)"+e+"+$","g"),ir=new RegExp("^"+e+"*,"+e+"*"),rr=new RegExp("^"+e+"*([\\x20\\t\\r\\n\\f>+~])"+e+"*"),ur=new RegExp(fi),fr=new RegExp("^"+yi+"$"),wt={ID:new RegExp("^#("+g+")"),CLASS:new RegExp("^\\.("+g+")"),NAME:new RegExp("^\\[name=['\"]?("+g+")['\"]?\\]"),TAG:new RegExp("^("+g.replace("w","w*")+")"),ATTR:new RegExp("^"+pi),PSEUDO:new RegExp("^"+fi),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+e+"*(even|odd|(([+-]|)(\\d*)n|)"+e+"*(?:([+-]|)"+e+"*(\\d+)|))"+e+"*\\)|)","i"),needsContext:new RegExp("^"+e+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+e+"*((?:-\\d)?\\d*)"+e+"*\\)|)(?=[^-]|$)","i")},ei=/[\x20\t\r\n\f]*[+~]/,er=/^[^{]+\{\s*\[native code/,or=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,sr=/^(?:input|select|textarea|button)$/i,hr=/^h\d$/i,cr=/'|\\/g,lr=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,w=/\\([\da-fA-F]{1,6}[\x20\t\r\n\f]?|.)/g,b=function(n,t){var i="0x"+t-65536;return i!==i?t:0>i?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)};try{ft.call(d.documentElement.childNodes,0)[0].nodeType}catch(ar){ft=function(n){for(var t,i=[];t=this[n++];)i.push(t);return i}}hi=u.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return t?"HTML"!==t.nodeName:!1};it=u.setDocument=function(n){var i=n?n.ownerDocument||n:d;return i!==s&&9===i.nodeType&&i.documentElement?(s=i,h=i.documentElement,l=hi(i),o.tagNameNoComments=p(function(n){return n.appendChild(i.createComment("")),!n.getElementsByTagName("*").length}),o.attributes=p(function(n){n.innerHTML="<select><\/select>";var t=typeof n.lastChild.getAttribute("multiple");return"boolean"!==t&&"string"!==t}),o.getByClassName=p(function(n){return n.innerHTML="<div class='hidden e'><\/div><div class='hidden'><\/div>",n.getElementsByClassName&&n.getElementsByClassName("e").length?(n.lastChild.className="e",2===n.getElementsByClassName("e").length):!1}),o.getByName=p(function(n){n.id=f+0;n.innerHTML="<a name='"+f+"'><\/a><div name='"+f+"'><\/div>";h.insertBefore(n,h.firstChild);var t=i.getElementsByName&&i.getElementsByName(f).length===2+i.getElementsByName(f+0).length;return o.getIdNotName=!i.getElementById(f),h.removeChild(n),t}),r.attrHandle=p(function(n){return n.innerHTML="<a href='#'><\/a>",n.firstChild&&typeof n.firstChild.getAttribute!==y&&"#"===n.firstChild.getAttribute("href")})?{}:{href:function(n){return n.getAttribute("href",2)},type:function(n){return n.getAttribute("type")}},o.getIdNotName?(r.find.ID=function(n,t){if(typeof t.getElementById!==y&&!l){var i=t.getElementById(n);return i&&i.parentNode?[i]:[]}},r.filter.ID=function(n){var t=n.replace(w,b);return function(n){return n.getAttribute("id")===t}}):(r.find.ID=function(n,i){if(typeof i.getElementById!==y&&!l){var r=i.getElementById(n);return r?r.id===n||typeof r.getAttributeNode!==y&&r.getAttributeNode("id").value===n?[r]:t:[]}},r.filter.ID=function(n){var t=n.replace(w,b);return function(n){var i=typeof n.getAttributeNode!==y&&n.getAttributeNode("id");return i&&i.value===t}}),r.find.TAG=o.tagNameNoComments?function(n,t){if(typeof t.getElementsByTagName!==y)return t.getElementsByTagName(n)}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if("*"===n){for(;i=u[f++];)1===i.nodeType&&r.push(i);return r}return u},r.find.NAME=o.getByName&&function(n,t){if(typeof t.getElementsByName!==y)return t.getElementsByName(name)},r.find.CLASS=o.getByClassName&&function(n,t){if(typeof t.getElementsByClassName!==y&&!l)return t.getElementsByClassName(n)},rt=[],a=[":focus"],(o.qsa=bt(i.querySelectorAll))&&(p(function(n){n.innerHTML="<select><option selected=''><\/option><\/select>";n.querySelectorAll("[selected]").length||a.push("\\["+e+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)");n.querySelectorAll(":checked").length||a.push(":checked")}),p(function(n){n.innerHTML="<input type='hidden' i=''/>";n.querySelectorAll("[i^='']").length&&a.push("[*^$]="+e+"*(?:\"\"|'')");n.querySelectorAll(":enabled").length||a.push(":enabled",":disabled");n.querySelectorAll("*,:x");a.push(",.*:")})),(o.matchesSelector=bt(vt=h.matchesSelector||h.mozMatchesSelector||h.webkitMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&p(function(n){o.disconnectedMatch=vt.call(n,"div");vt.call(n,"[s!='']:x");rt.push("!=",fi)}),a=new RegExp(a.join("|")),rt=new RegExp(rt.join("|")),et=bt(h.contains)||h.compareDocumentPosition?function(n,t){var r=9===n.nodeType?n.documentElement:n,i=t&&t.parentNode;return n===i||!(!i||1!==i.nodeType||!(r.contains?r.contains(i):n.compareDocumentPosition&&16&n.compareDocumentPosition(i)))}:function(n,t){if(t)for(;t=t.parentNode;)if(t===n)return!0;return!1},ri=h.compareDocumentPosition?function(n,t){var r;return n===t?(tt=!0,0):(r=t.compareDocumentPosition&&n.compareDocumentPosition&&n.compareDocumentPosition(t))?1&r||n.parentNode&&11===n.parentNode.nodeType?n===i||et(d,n)?-1:t===i||et(d,t)?1:0:4&r?-1:1:n.compareDocumentPosition?-1:1}:function(n,t){var r,u=0,o=n.parentNode,s=t.parentNode,f=[n],e=[t];if(n===t)return tt=!0,0;if(!o||!s)return n===i?-1:t===i?1:o?-1:s?1:0;if(o===s)return oi(n,t);for(r=n;r=r.parentNode;)f.unshift(r);for(r=t;r=r.parentNode;)e.unshift(r);for(;f[u]===e[u];)u++;return u?oi(f[u],e[u]):f[u]===d?-1:e[u]===d?1:0},tt=!1,[0,0].sort(ri),o.detectDuplicates=tt,s):s};u.matches=function(n,t){return u(n,null,null,t)};u.matchesSelector=function(n,t){if((n.ownerDocument||n)!==s&&it(n),t=t.replace(lr,"='$1']"),!(!o.matchesSelector||l||rt&&rt.test(t)||a.test(t)))try{var i=vt.call(n,t);if(i||o.disconnectedMatch||n.document&&11!==n.document.nodeType)return i}catch(r){}return u(t,s,null,[n]).length>0};u.contains=function(n,t){return(n.ownerDocument||n)!==s&&it(n),et(n,t)};u.attr=function(n,t){var i;return(n.ownerDocument||n)!==s&&it(n),l||(t=t.toLowerCase()),(i=r.attrHandle[t])?i(n):l||o.attributes?n.getAttribute(t):((i=n.getAttributeNode(t))||n.getAttribute(t))&&n[t]===!0?t:i&&i.specified?i.value:null};u.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);};u.uniqueSort=function(n){var r,u=[],t=1,i=0;if(tt=!o.detectDuplicates,n.sort(ri),tt){for(;r=n[t];t++)r===n[t-1]&&(i=u.push(t));for(;i--;)n.splice(u[i],1)}return n};lt=u.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(1===t||9===t||11===t){if("string"==typeof n.textContent)return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=lt(n)}else if(3===t||4===t)return n.nodeValue}else for(;r=n[u];u++)i+=lt(r);return i};r=u.selectors={cacheLength:50,createPseudo:c,match:wt,find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(w,b),n[3]=(n[4]||n[5]||"").replace(w,b),"~="===n[2]&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),"nth"===n[1].slice(0,3)?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*("even"===n[3]||"odd"===n[3])),n[5]=+(n[7]+n[8]||"odd"===n[3])):n[3]&&u.error(n[0]),n},PSEUDO:function(n){var i,t=!n[5]&&n[2];return wt.CHILD.test(n[0])?null:(n[4]?n[2]=n[4]:t&&ur.test(t)&&(i=ot(t,!0))&&(i=t.indexOf(")",t.length-i)-t.length)&&(n[0]=n[0].slice(0,i),n[2]=t.slice(0,i)),n.slice(0,3))}},filter:{TAG:function(n){return"*"===n?function(){return!0}:(n=n.replace(w,b).toLowerCase(),function(t){return t.nodeName&&t.nodeName.toLowerCase()===n})},CLASS:function(n){var t=ci[n+" "];return t||(t=new RegExp("(^|"+e+")"+n+"("+e+"|$)"))&&ci(n,function(n){return t.test(n.className||typeof n.getAttribute!==y&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var f=u.attr(r,n);return null==f?"!="===t:t?(f+="","="===t?f===i:"!="===t?f!==i:"^="===t?i&&0===f.indexOf(i):"*="===t?i&&f.indexOf(i)>-1:"$="===t?i&&f.slice(-i.length)===i:"~="===t?(" "+f+" ").indexOf(i)>-1:"|="===t?f===i||f.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(n,t,i,r,u){var s="nth"!==n.slice(0,3),o="last"!==n.slice(-4),e="of-type"===t;return 1===r&&0===u?function(n){return!!n.parentNode}:function(t,i,h){var a,k,c,l,y,w,b=s!==o?"nextSibling":"previousSibling",p=t.parentNode,g=e&&t.nodeName.toLowerCase(),d=!h&&!e;if(p){if(s){for(;b;){for(c=t;c=c[b];)if(e?c.nodeName.toLowerCase()===g:1===c.nodeType)return!1;w=b="only"===n&&!w&&"nextSibling"}return!0}if(w=[o?p.firstChild:p.lastChild],o&&d){for(k=p[f]||(p[f]={}),a=k[n]||[],y=a[0]===v&&a[1],l=a[0]===v&&a[2],c=y&&p.childNodes[y];c=++y&&c&&c[b]||(l=y=0)||w.pop();)if(1===c.nodeType&&++l&&c===t){k[n]=[v,y,l];break}}else if(d&&(a=(t[f]||(t[f]={}))[n])&&a[0]===v)l=a[1];else for(;(c=++y&&c&&c[b]||(l=y=0)||w.pop())&&((e?c.nodeName.toLowerCase()!==g:1!==c.nodeType)||!++l||(d&&((c[f]||(c[f]={}))[n]=[v,l]),c!==t)););return l-=u,l===r||l%r==0&&l/r>=0}}},PSEUDO:function(n,t){var e,i=r.pseudos[n]||r.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return i[f]?i(t):i.length>1?(e=[n,n,"",t],r.setFilters.hasOwnProperty(n.toLowerCase())?c(function(n,r){for(var u,f=i(n,t),e=f.length;e--;)u=ui.call(n,f[e]),n[u]=!(r[u]=f[e])}):function(n){return i(n,0,e)}):i}},pseudos:{not:c(function(n){var i=[],r=[],t=ii(n.replace(pt,"$1"));return t[f]?c(function(n,i,r,u){for(var e,o=t(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(i[f]=e))}):function(n,u,f){return i[0]=n,t(i,null,f,r),!r.pop()}}),has:c(function(n){return function(t){return u(n,t).length>0}}),contains:c(function(n){return function(t){return(t.textContent||t.innerText||lt(t)).indexOf(n)>-1}}),lang:c(function(n){return fr.test(n||"")||u.error("unsupported lang: "+n),n=n.replace(w,b).toLowerCase(),function(t){var i;do if(i=l?t.getAttribute("xml:lang")||t.getAttribute("lang"):t.lang)return i=i.toLowerCase(),i===n||0===i.indexOf(n+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===h},focus:function(n){return n===s.activeElement&&(!s.hasFocus||s.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:function(n){return n.disabled===!1},disabled:function(n){return n.disabled===!0},checked:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&!!n.checked||"option"===t&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeName>"@"||3===n.nodeType||4===n.nodeType)return!1;return!0},parent:function(n){return!r.pseudos.empty(n)},header:function(n){return hr.test(n.nodeName)},input:function(n){return sr.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&"button"===n.type||"button"===t},text:function(n){var t;return"input"===n.nodeName.toLowerCase()&&"text"===n.type&&(null==(t=n.getAttribute("type"))||t.toLowerCase()===n.type)},first:k(function(){return[0]}),last:k(function(n,t){return[t-1]}),eq:k(function(n,t,i){return[0>i?i+t:i]}),even:k(function(n,t){for(var i=0;t>i;i+=2)n.push(i);return n}),odd:k(function(n,t){for(var i=1;t>i;i+=2)n.push(i);return n}),lt:k(function(n,t,i){for(var r=0>i?i+t:i;--r>=0;)n.push(r);return n}),gt:k(function(n,t,i){for(var r=0>i?i+t:i;++r<t;)n.push(r);return n})}};for(nt in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[nt]=wi(nt);for(nt in{submit:!0,reset:!0})r.pseudos[nt]=bi(nt);ii=u.compile=function(n,t){var r,u=[],e=[],i=ai[n+" "];if(!i){for(t||(t=ot(n)),r=t.length;r--;)i=ti(t[r]),i[f]?u.push(i):e.push(i);i=ai(n,ki(e,u))}return i};r.pseudos.nth=r.pseudos.eq;r.filters=si.prototype=r.pseudos;r.setFilters=new si;it();u.attr=i.attr;i.find=u;i.expr=u.selectors;i.expr[":"]=i.expr.pseudos;i.unique=u.uniqueSort;i.text=u.getText;i.isXMLDoc=u.isXML;i.contains=u.contains}(n);var ae=/Until$/,ve=/^(?:parents|prev(?:Until|All))/,ye=/^.[^:#\[\.,]*$/,ou=i.expr.match.needsContext,pe={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({find:function(n){var t,r,f,u=this.length;if("string"!=typeof n)return f=this,this.pushStack(i(n).filter(function(){for(t=0;u>t;t++)if(i.contains(f[t],this))return!0}));for(r=[],t=0;u>t;t++)i.find(n,this[t],r);return r=this.pushStack(u>1?i.unique(r):r),r.selector=(this.selector?this.selector+" ":"")+n,r},has:function(n){var t,r=i(n,this),u=r.length;return this.filter(function(){for(t=0;u>t;t++)if(i.contains(this,r[t]))return!0})},not:function(n){return this.pushStack(gi(this,n,!1))},filter:function(n){return this.pushStack(gi(this,n,!0))},is:function(n){return!!n&&("string"==typeof n?ou.test(n)?i(n,this.context).index(this[0])>=0:i.filter(n,this).length>0:this.filter(n).length>0)},closest:function(n,t){for(var r,f=0,o=this.length,u=[],e=ou.test(n)||"string"!=typeof n?i(n,t||this.context):0;o>f;f++)for(r=this[f];r&&r.ownerDocument&&r!==t&&11!==r.nodeType;){if(e?e.index(r)>-1:i.find.matchesSelector(r,n)){u.push(r);break}r=r.parentNode}return this.pushStack(u.length>1?i.unique(u):u)},index:function(n){return n?"string"==typeof n?i.inArray(this[0],i(n)):i.inArray(n.jquery?n[0]:n,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){var r="string"==typeof n?i(n,t):i.makeArray(n&&n.nodeType?[n]:n),u=i.merge(this.get(),r);return this.pushStack(i.unique(u))},addBack:function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))}});i.fn.andSelf=i.fn.addBack;i.each({parent:function(n){var t=n.parentNode;return t&&11!==t.nodeType?t:null},parents:function(n){return i.dir(n,"parentNode")},parentsUntil:function(n,t,r){return i.dir(n,"parentNode",r)},next:function(n){return di(n,"nextSibling")},prev:function(n){return di(n,"previousSibling")},nextAll:function(n){return i.dir(n,"nextSibling")},prevAll:function(n){return i.dir(n,"previousSibling")},nextUntil:function(n,t,r){return i.dir(n,"nextSibling",r)},prevUntil:function(n,t,r){return i.dir(n,"previousSibling",r)},siblings:function(n){return i.sibling((n.parentNode||{}).firstChild,n)},children:function(n){return i.sibling(n.firstChild)},contents:function(n){return i.nodeName(n,"iframe")?n.contentDocument||n.contentWindow.document:i.merge([],n.childNodes)}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return ae.test(n)||(u=r),u&&"string"==typeof u&&(f=i.filter(u,f)),f=this.length>1&&!pe[n]?i.unique(f):f,this.length>1&&ve.test(n)&&(f=f.reverse()),this.pushStack(f)}});i.extend({filter:function(n,t,r){return r&&(n=":not("+n+")"),1===t.length?i.find.matchesSelector(t[0],n)?[t[0]]:[]:i.find.matches(n,t)},dir:function(n,r,u){for(var e=[],f=n[r];f&&9!==f.nodeType&&(u===t||1!==f.nodeType||!i(f).is(u));)1===f.nodeType&&e.push(f),f=f[r];return e},sibling:function(n,t){for(var i=[];n;n=n.nextSibling)1===n.nodeType&&n!==t&&i.push(n);return i}});var su="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",we=/ jQuery\d+="(?:null|\d+)"/g,hu=new RegExp("<(?:"+su+")[\\s/>]","i"),si=/^\s+/,cu=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,lu=/<([\w:]+)/,au=/<tbody/i,be=/<|&#?\w+;/,ke=/<(?:script|style|link)/i,hi=/^(?:checkbox|radio)$/i,de=/checked\s*(?:[^=]|=\s*.checked.)/i,vu=/^$|\/(?:java|ecma)script/i,ge=/^true\/(.*)/,no=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,e={option:[1,"<select multiple='multiple'>","<\/select>"],legend:[1,"<fieldset>","<\/fieldset>"],area:[1,"<map>","<\/map>"],param:[1,"<object>","<\/object>"],thead:[1,"<table>","<\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],col:[2,"<table><tbody><\/tbody><colgroup>","<\/colgroup><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:i.support.htmlSerialize?[0,"",""]:[1,"X<div>","<\/div>"]},to=nr(r),ci=to.appendChild(r.createElement("div"));e.optgroup=e.option;e.tbody=e.tfoot=e.colgroup=e.caption=e.thead;e.th=e.td;i.fn.extend({text:function(n){return i.access(this,function(n){return n===t?i.text(this):this.empty().append((this[0]&&this[0].ownerDocument||r).createTextNode(n))},null,n,arguments.length)},wrapAll:function(n){if(i.isFunction(n))return this.each(function(t){i(this).wrapAll(n.call(this,t))});if(this[0]){var t=i(n,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]);t.map(function(){for(var n=this;n.firstChild&&1===n.firstChild.nodeType;)n=n.firstChild;return n}).append(this)}return this},wrapInner:function(n){return i.isFunction(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=i.isFunction(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(){return this.parent().each(function(){i.nodeName(this,"body")||i(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(n){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&this.appendChild(n)})},prepend:function(){return this.domManip(arguments,!0,function(n){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&this.insertBefore(n,this.firstChild)})},before:function(){return this.domManip(arguments,!1,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return this.domManip(arguments,!1,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},remove:function(n,t){for(var r,f=0;null!=(r=this[f]);f++)(!n||i.filter(n,[r]).length>0)&&(t||1!==r.nodeType||i.cleanData(u(r)),r.parentNode&&(t&&i.contains(r.ownerDocument,r)&&kt(u(r,"script")),r.parentNode.removeChild(r)));return this},empty:function(){for(var n,t=0;null!=(n=this[t]);t++){for(1===n.nodeType&&i.cleanData(u(n,!1));n.firstChild;)n.removeChild(n.firstChild);n.options&&i.nodeName(n,"select")&&(n.options.length=0)}return this},clone:function(n,t){return n=null==n?!1:n,t=null==t?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return i.access(this,function(n){var r=this[0]||{},f=0,o=this.length;if(n===t)return 1===r.nodeType?r.innerHTML.replace(we,""):t;if(!("string"!=typeof n||ke.test(n)||!i.support.htmlSerialize&&hu.test(n)||!i.support.leadingWhitespace&&si.test(n)||e[(lu.exec(n)||["",""])[1].toLowerCase()])){n=n.replace(cu,"<$1><\/$2>");try{for(;o>f;f++)r=this[f]||{},1===r.nodeType&&(i.cleanData(u(r,!1)),r.innerHTML=n);r=0}catch(s){}}r&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(n){var t=i.isFunction(n);return t||"string"==typeof n||(n=i(n).not(this).detach()),this.domManip([n],!0,function(n){var r=this.nextSibling,t=this.parentNode;t&&(i(this).remove(),t.insertBefore(n,r))})},detach:function(n){return this.remove(n,!0)},domManip:function(n,r,f){n=kr.apply([],n);var c,e,l,s,y,h,o=0,a=this.length,w=this,b=a-1,v=n[0],p=i.isFunction(v);if(p||!(1>=a||"string"!=typeof v||i.support.checkClone)&&de.test(v))return this.each(function(i){var u=w.eq(i);p&&(n[0]=v.call(this,i,r?u.html():t));u.domManip(n,r,f)});if(a&&(h=i.buildFragment(n,this[0].ownerDocument,!1,this),c=h.firstChild,1===h.childNodes.length&&(h=c),c)){for(r=r&&i.nodeName(c,"tr"),s=i.map(u(h,"script"),tr),l=s.length;a>o;o++)e=h,o!==b&&(e=i.clone(e,!0,!0),l&&i.merge(s,u(e,"script"))),f.call(r&&i.nodeName(this[o],"table")?ef(this[o],"tbody"):this[o],e,o);if(l)for(y=s[s.length-1].ownerDocument,i.map(s,ir),o=0;l>o;o++)e=s[o],vu.test(e.type||"")&&!i._data(e,"globalEval")&&i.contains(y,e)&&(e.src?i.ajax({url:e.src,type:"GET",dataType:"script",async:!1,global:!1,throws:!0}):i.globalEval((e.text||e.textContent||e.innerHTML||"").replace(no,"")));h=c=null}return this}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,r=0,f=[],e=i(n),o=e.length-1;o>=r;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),ti.apply(f,u.get());return this.pushStack(f)}});i.extend({clone:function(n,t,r){var f,h,o,e,s,c=i.contains(n.ownerDocument,n);if(i.support.html5Clone||i.isXMLDoc(n)||!hu.test("<"+n.nodeName+">")?o=n.cloneNode(!0):(ci.innerHTML=n.outerHTML,ci.removeChild(o=ci.firstChild)),!(i.support.noCloneEvent&&i.support.noCloneChecked||1!==n.nodeType&&11!==n.nodeType||i.isXMLDoc(n)))for(f=u(o),s=u(n),e=0;null!=(h=s[e]);++e)f[e]&&of(h,f[e]);if(t)if(r)for(s=s||u(n),f=f||u(o),e=0;null!=(h=s[e]);e++)rr(h,f[e]);else rr(n,o);return f=u(o,"script"),f.length>0&&kt(f,!c&&u(n,"script")),f=s=h=null,o},buildFragment:function(n,t,r,f){for(var h,o,w,s,y,p,l,b=n.length,a=nr(t),c=[],v=0;b>v;v++)if(o=n[v],o||0===o)if("object"===i.type(o))i.merge(c,o.nodeType?[o]:o);else if(be.test(o)){for(s=s||a.appendChild(t.createElement("div")),y=(lu.exec(o)||["",""])[1].toLowerCase(),l=e[y]||e._default,s.innerHTML=l[1]+o.replace(cu,"<$1><\/$2>")+l[2],h=l[0];h--;)s=s.lastChild;if(!i.support.leadingWhitespace&&si.test(o)&&c.push(t.createTextNode(si.exec(o)[0])),!i.support.tbody)for(o="table"!==y||au.test(o)?"<table>"!==l[1]||au.test(o)?0:s:s.firstChild,h=o&&o.childNodes.length;h--;)i.nodeName(p=o.childNodes[h],"tbody")&&!p.childNodes.length&&o.removeChild(p);for(i.merge(c,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=a.lastChild}else c.push(t.createTextNode(o));for(s&&a.removeChild(s),i.support.appendChecked||i.grep(u(c,"input"),sf),v=0;o=c[v++];)if((!f||-1===i.inArray(o,f))&&(w=i.contains(o.ownerDocument,o),s=u(a.appendChild(o),"script"),w&&kt(s),r))for(h=0;o=s[h++];)vu.test(o.type||"")&&r.push(o);return s=null,a},cleanData:function(n,t){for(var r,f,u,e,c=0,s=i.expando,h=i.cache,l=i.support.deleteExpando,a=i.event.special;null!=(r=n[c]);c++)if((t||i.acceptData(r))&&(u=r[s],e=u&&h[u])){if(e.events)for(f in e.events)a[f]?i.event.remove(r,f):i.removeEvent(r,f,e.handle);h[u]&&(delete h[u],l?delete r[s]:typeof r.removeAttribute!==o?r.removeAttribute(s):r[s]=null,k.push(u))}}});var ut,v,y,li=/alpha\([^)]*\)/i,io=/opacity\s*=\s*([^)]*)/,ro=/^(top|right|bottom|left)$/,uo=/^(none|table(?!-c[ea]).+)/,yu=/^margin/,fo=new RegExp("^("+ct+")(.*)$","i"),lt=new RegExp("^("+ct+")(?!px)[a-z%]+$","i"),eo=new RegExp("^([+-])=("+ct+")","i"),pu={BODY:"block"},oo={position:"absolute",visibility:"hidden",display:"block"},wu={letterSpacing:0,fontWeight:400},p=["Top","Right","Bottom","Left"],bu=["Webkit","O","Moz","ms"];i.fn.extend({css:function(n,r){return i.access(this,function(n,r,u){var e,o,s={},f=0;if(i.isArray(r)){for(o=v(n),e=r.length;e>f;f++)s[r[f]]=i.css(n,r[f],!1,o);return s}return u!==t?i.style(n,r,u):i.css(n,r)},n,r,arguments.length>1)},show:function(){return fr(this,!0)},hide:function(){return fr(this)},toggle:function(n){var t="boolean"==typeof n;return this.each(function(){(t?n:it(this))?i(this).show():i(this).hide()})}});i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=y(n,"opacity");return""===i?"1":i}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:i.support.cssFloat?"cssFloat":"styleFloat"},style:function(n,r,u,f){if(n&&3!==n.nodeType&&8!==n.nodeType&&n.style){var o,s,e,h=i.camelCase(r),c=n.style;if(r=i.cssProps[h]||(i.cssProps[h]=ur(c,h)),e=i.cssHooks[r]||i.cssHooks[h],u===t)return e&&"get"in e&&(o=e.get(n,!1,f))!==t?o:c[r];if(s=typeof u,"string"===s&&(o=eo.exec(u))&&(u=(o[1]+1)*o[2]+parseFloat(i.css(n,r)),s="number"),!(null==u||"number"===s&&isNaN(u)||("number"!==s||i.cssNumber[h]||(u+="px"),i.support.clearCloneStyle||""!==u||0!==r.indexOf("background")||(c[r]="inherit"),e&&"set"in e&&(u=e.set(n,u,f))===t)))try{c[r]=u}catch(l){}}},css:function(n,r,u,f){var h,e,o,s=i.camelCase(r);return r=i.cssProps[s]||(i.cssProps[s]=ur(n.style,s)),o=i.cssHooks[r]||i.cssHooks[s],o&&"get"in o&&(e=o.get(n,!0,u)),e===t&&(e=y(n,r,f)),"normal"===e&&r in wu&&(e=wu[r]),""===u||u?(h=parseFloat(e),u===!0||i.isNumeric(h)?h||0:e):e},swap:function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];f=i.apply(n,r||[]);for(u in t)n.style[u]=e[u];return f}});n.getComputedStyle?(v=function(t){return n.getComputedStyle(t,null)},y=function(n,r,u){var s,h,c,o=u||v(n),e=o?o.getPropertyValue(r)||o[r]:t,f=n.style;return o&&(""!==e||i.contains(n.ownerDocument,n)||(e=i.style(n,r)),lt.test(e)&&yu.test(r)&&(s=f.width,h=f.minWidth,c=f.maxWidth,f.minWidth=f.maxWidth=f.width=e,e=o.width,f.width=s,f.minWidth=h,f.maxWidth=c)),e}):r.documentElement.currentStyle&&(v=function(n){return n.currentStyle},y=function(n,i,r){var s,e,o,h=r||v(n),u=h?h[i]:t,f=n.style;return null==u&&f&&f[i]&&(u=f[i]),lt.test(u)&&!ro.test(i)&&(s=f.left,e=n.runtimeStyle,o=e&&e.left,o&&(e.left=n.currentStyle.left),f.left="fontSize"===i?"1em":u,u=f.pixelLeft+"px",f.left=s,o&&(e.left=o)),""===u?"auto":u});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return 0===n.offsetWidth&&uo.test(i.css(n,"display"))?i.swap(n,oo,function(){return sr(n,t,u)}):sr(n,t,u)},set:function(n,r,u){var f=u&&v(n);return er(n,r,u?or(n,t,u,i.support.boxSizing&&"border-box"===i.css(n,"boxSizing",!1,f),f):0)}}});i.support.opacity||(i.cssHooks.opacity={get:function(n,t){return io.test((t&&n.currentStyle?n.currentStyle.filter:n.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(n,t){var r=n.style,u=n.currentStyle,e=i.isNumeric(t)?"alpha(opacity="+100*t+")":"",f=u&&u.filter||r.filter||"";r.zoom=1;(t>=1||""===t)&&""===i.trim(f.replace(li,""))&&r.removeAttribute&&(r.removeAttribute("filter"),""===t||u&&!u.filter)||(r.filter=li.test(f)?f.replace(li,e):f+" "+e)}});i(function(){i.support.reliableMarginRight||(i.cssHooks.marginRight={get:function(n,t){if(t)return i.swap(n,{display:"inline-block"},y,[n,"marginRight"])}});!i.support.pixelPosition&&i.fn.position&&i.each(["top","left"],function(n,t){i.cssHooks[t]={get:function(n,r){if(r)return(r=y(n,t),lt.test(r)?i(n).position()[t]+"px":r)}}})});i.expr&&i.expr.filters&&(i.expr.filters.hidden=function(n){return n.offsetWidth<=0&&n.offsetHeight<=0||!i.support.reliableHiddenOffsets&&"none"===(n.style&&n.style.display||i.css(n,"display"))},i.expr.filters.visible=function(n){return!i.expr.filters.hidden(n)});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u="string"==typeof i?i.split(" "):[i];4>r;r++)f[n+p[r]+t]=u[r]||u[r-2]||u[0];return f}};yu.test(n)||(i.cssHooks[n+t].set=er)});var so=/%20/g,ho=/\[\]$/,ku=/\r?\n/g,co=/^(?:submit|button|image|reset|file)$/i,lo=/^(?:input|select|textarea|keygen)/i;i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&lo.test(this.nodeName)&&!co.test(n)&&(this.checked||!hi.test(n))}).map(function(n,t){var r=i(this).val();return null==r?null:i.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(ku,"\r\n")}}):{name:t.name,value:r.replace(ku,"\r\n")}}).get()}});i.param=function(n,r){var u,f=[],e=function(n,t){t=i.isFunction(t)?t():null==t?"":t;f[f.length]=encodeURIComponent(n)+"="+encodeURIComponent(t)};if(r===t&&(r=i.ajaxSettings&&i.ajaxSettings.traditional),i.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){e(this.name,this.value)});else for(u in n)dt(u,n[u],r,e);return f.join("&").replace(so,"+")};i.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(n,t){i.fn[t]=function(n,i){return arguments.length>0?this.on(t,null,n,i):this.trigger(t)}});i.fn.hover=function(n,t){return this.mouseenter(n).mouseleave(t||n)};var w,c,ai=i.now(),vi=/\?/,ao=/#.*$/,du=/([?&])_=[^&]*/,vo=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,yo=/^(?:GET|HEAD)$/,po=/^\/\//,gu=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,nf=i.fn.load,tf={},yi={},rf="*/".concat("*");try{c=pf.href}catch(go){c=r.createElement("a");c.href="";c=c.href}w=gu.exec(c.toLowerCase())||[];i.fn.load=function(n,r,u){if("string"!=typeof n&&nf)return nf.apply(this,arguments);var f,s,h,e=this,o=n.indexOf(" ");return o>=0&&(f=n.slice(o,n.length),n=n.slice(0,o)),i.isFunction(r)?(u=r,r=t):r&&"object"==typeof r&&(h="POST"),e.length>0&&i.ajax({url:n,type:h,dataType:"html",data:r}).done(function(n){s=arguments;e.html(f?i("<div>").append(i.parseHTML(n)).find(f):n)}).complete(u&&function(n,t){e.each(u,s||[n.responseText,t,n])}),this};i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}});i.each(["get","post"],function(n,r){i[r]=function(n,u,f,e){return i.isFunction(u)&&(e=e||f,f=u,u=t),i.ajax({url:n,type:r,dataType:e,data:u,success:f})}});i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:c,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(w[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":rf,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":n.String,"text html":!0,"text json":i.parseJSON,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?gt(gt(n,i.ajaxSettings),t):gt(i.ajaxSettings,n)},ajaxPrefilter:lr(tf),ajaxTransport:lr(yi),ajax:function(n,r){function p(n,r,s,c){var l,b,w,rt,p,a=r;2!==o&&(o=2,g&&clearTimeout(g),y=t,d=c||"",f.readyState=n>0?4:0,s&&(rt=hf(u,f,s)),n>=200&&300>n||304===n?(u.ifModified&&(p=f.getResponseHeader("Last-Modified"),p&&(i.lastModified[e]=p),p=f.getResponseHeader("etag"),p&&(i.etag[e]=p)),204===n?(l=!0,a="nocontent"):304===n?(l=!0,a="notmodified"):(l=cf(u,rt),a=l.state,b=l.data,w=l.error,l=!w)):(w=a,(n||!a)&&(a="error",0>n&&(n=0))),f.status=n,f.statusText=(r||a)+"",l?tt.resolveWith(h,[b,a,f]):tt.rejectWith(h,[f,a,w]),f.statusCode(k),k=t,v&&nt.trigger(l?"ajaxSuccess":"ajaxError",[f,u,l?b:w]),it.fireWith(h,[f,a]),v&&(nt.trigger("ajaxComplete",[f,u]),--i.active||i.event.trigger("ajaxStop")))}"object"==typeof n&&(r=n,n=t);r=r||{};var l,a,e,d,g,v,y,b,u=i.ajaxSetup({},r),h=u.context||u,nt=u.context&&(h.nodeType||h.jquery)?i(h):i.event,tt=i.Deferred(),it=i.Callbacks("once memory"),k=u.statusCode||{},rt={},ut={},o=0,ft="canceled",f={readyState:0,getResponseHeader:function(n){var t;if(2===o){if(!b)for(b={};t=vo.exec(d);)b[t[1].toLowerCase()]=t[2];t=b[n.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===o?d:null},setRequestHeader:function(n,t){var i=n.toLowerCase();return o||(n=ut[i]=ut[i]||n,rt[n]=t),this},overrideMimeType:function(n){return o||(u.mimeType=n),this},statusCode:function(n){var t;if(n)if(2>o)for(t in n)k[t]=[k[t],n[t]];else f.always(n[f.status]);return this},abort:function(n){var t=n||ft;return y&&y.abort(t),p(0,t),this}};if(tt.promise(f).complete=it.add,f.success=f.done,f.error=f.fail,u.url=((n||u.url||c)+"").replace(ao,"").replace(po,w[1]+"//"),u.type=r.method||r.type||u.method||u.type,u.dataTypes=i.trim(u.dataType||"*").toLowerCase().match(s)||[""],null==u.crossDomain&&(l=gu.exec(u.url.toLowerCase()),u.crossDomain=!(!l||l[1]===w[1]&&l[2]===w[2]&&(l[3]||("http:"===l[1]?80:443))==(w[3]||("http:"===w[1]?80:443)))),u.data&&u.processData&&"string"!=typeof u.data&&(u.data=i.param(u.data,u.traditional)),ar(tf,u,r,f),2===o)return f;v=u.global;v&&0==i.active++&&i.event.trigger("ajaxStart");u.type=u.type.toUpperCase();u.hasContent=!yo.test(u.type);e=u.url;u.hasContent||(u.data&&(e=u.url+=(vi.test(e)?"&":"?")+u.data,delete u.data),u.cache===!1&&(u.url=du.test(e)?e.replace(du,"$1_="+ai++):e+(vi.test(e)?"&":"?")+"_="+ai++));u.ifModified&&(i.lastModified[e]&&f.setRequestHeader("If-Modified-Since",i.lastModified[e]),i.etag[e]&&f.setRequestHeader("If-None-Match",i.etag[e]));(u.data&&u.hasContent&&u.contentType!==!1||r.contentType)&&f.setRequestHeader("Content-Type",u.contentType);f.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+("*"!==u.dataTypes[0]?", "+rf+"; q=0.01":""):u.accepts["*"]);for(a in u.headers)f.setRequestHeader(a,u.headers[a]);if(u.beforeSend&&(u.beforeSend.call(h,f,u)===!1||2===o))return f.abort();ft="abort";for(a in{success:1,error:1,complete:1})f[a](u[a]);if(y=ar(yi,u,r,f)){f.readyState=1;v&&nt.trigger("ajaxSend",[f,u]);u.async&&u.timeout>0&&(g=setTimeout(function(){f.abort("timeout")},u.timeout));try{o=1;y.send(rt,p)}catch(et){if(!(2>o))throw et;p(-1,et)}}else p(-1,"No Transport");return f},getScript:function(n,r){return i.get(n,t,r,"script")},getJSON:function(n,t,r){return i.get(n,t,r,"json")}});i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(n){return i.globalEval(n),n}}});i.ajaxPrefilter("script",function(n){n.cache===t&&(n.cache=!1);n.crossDomain&&(n.type="GET",n.global=!1)});i.ajaxTransport("script",function(n){if(n.crossDomain){var u,f=r.head||i("head")[0]||r.documentElement;return{send:function(t,i){u=r.createElement("script");u.async=!0;n.scriptCharset&&(u.charset=n.scriptCharset);u.src=n.url;u.onload=u.onreadystatechange=function(n,t){(t||!u.readyState||/loaded|complete/.test(u.readyState))&&(u.onload=u.onreadystatechange=null,u.parentNode&&u.parentNode.removeChild(u),u=null,t||i(200,"success"))};f.insertBefore(u,f.firstChild)},abort:function(){u&&u.onload(t,!0)}}}});pi=[];at=/(=)\?(?=&|$)|\?\?/;i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=pi.pop()||i.expando+"_"+ai++;return this[n]=!0,n}});i.ajaxPrefilter("json jsonp",function(r,u,f){var e,s,o,h=r.jsonp!==!1&&(at.test(r.url)?"url":"string"==typeof r.data&&!(r.contentType||"").indexOf("application/x-www-form-urlencoded")&&at.test(r.data)&&"data");if(h||"jsonp"===r.dataTypes[0])return(e=r.jsonpCallback=i.isFunction(r.jsonpCallback)?r.jsonpCallback():r.jsonpCallback,h?r[h]=r[h].replace(at,"$1"+e):r.jsonp!==!1&&(r.url+=(vi.test(r.url)?"&":"?")+r.jsonp+"="+e),r.converters["script json"]=function(){return o||i.error(e+" was not called"),o[0]},r.dataTypes[0]="json",s=n[e],n[e]=function(){o=arguments},f.always(function(){n[e]=s;r[e]&&(r.jsonpCallback=u.jsonpCallback,pi.push(e));o&&i.isFunction(s)&&s(o[0]);o=s=t}),"script")});uf=0;vt=n.ActiveXObject&&function(){for(var n in g)g[n](t,!0)};i.ajaxSettings.xhr=n.ActiveXObject?function(){return!this.isLocal&&vr()||lf()}:vr;nt=i.ajaxSettings.xhr();i.support.cors=!!nt&&"withCredentials"in nt;nt=i.support.ajax=!!nt;nt&&i.ajaxTransport(function(r){if(!r.crossDomain||i.support.cors){var u;return{send:function(f,e){var h,s,o=r.xhr();if(r.username?o.open(r.type,r.url,r.async,r.username,r.password):o.open(r.type,r.url,r.async),r.xhrFields)for(s in r.xhrFields)o[s]=r.xhrFields[s];r.mimeType&&o.overrideMimeType&&o.overrideMimeType(r.mimeType);r.crossDomain||f["X-Requested-With"]||(f["X-Requested-With"]="XMLHttpRequest");try{for(s in f)o.setRequestHeader(s,f[s])}catch(c){}o.send(r.hasContent&&r.data||null);u=function(n,f){var s,a,l,c;try{if(u&&(f||4===o.readyState))if(u=t,h&&(o.onreadystatechange=i.noop,vt&&delete g[h]),f)4!==o.readyState&&o.abort();else{c={};s=o.status;a=o.getAllResponseHeaders();"string"==typeof o.responseText&&(c.text=o.responseText);try{l=o.statusText}catch(y){l=""}s||!r.isLocal||r.crossDomain?1223===s&&(s=204):s=c.text?200:404}}catch(v){f||e(-1,v)}c&&e(s,l,c,a)};r.async?4===o.readyState?setTimeout(u):(h=++uf,vt&&(g||(g={},i(n).unload(vt)),g[h]=u),o.onreadystatechange=u):u()},abort:function(){u&&u(t,!0)}}}});var tt,yt,wo=/^(?:toggle|show|hide)$/,bo=new RegExp("^(?:([+-])=|)("+ct+")([a-z%]*)$","i"),ko=/queueHooks$/,pt=[yf],ft={"*":[function(n,t){var o,s,r=this.createTween(n,t),e=bo.exec(t),h=r.cur(),u=+h||0,f=1,c=20;if(e){if(o=+e[2],s=e[3]||(i.cssNumber[n]?"":"px"),"px"!==s&&u){u=i.css(r.elem,n,!0)||o||1;do f=f||".5",u/=f,i.style(r.elem,n,u+s);while(f!==(f=r.cur()/h)&&1!==f&&--c)}r.unit=s;r.start=u;r.end=e[1]?u+(e[1]+1)*o:o}return r}]};i.Animation=i.extend(pr,{tweener:function(n,t){i.isFunction(n)?(t=n,n=["*"]):n=n.split(" ");for(var r,u=0,f=n.length;f>u;u++)r=n[u],ft[r]=ft[r]||[],ft[r].unshift(t)},prefilter:function(n,t){t?pt.unshift(n):pt.push(n)}});i.Tween=f;f.prototype={constructor:f,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||"swing";this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=f.propHooks[this.prop];return n&&n.get?n.get(this):f.propHooks._default.get(this)},run:function(n){var r,t=f.propHooks[this.prop];return this.pos=r=this.options.duration?i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):n,this.now=(this.end-this.start)*r+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),t&&t.set?t.set(this):f.propHooks._default.set(this),this}};f.prototype.init.prototype=f.prototype;f.propHooks={_default:{get:function(n){var t;return null==n.elem[n.prop]||n.elem.style&&null!=n.elem.style[n.prop]?(t=i.css(n.elem,n.prop,""),t&&"auto"!==t?t:0):n.elem[n.prop]},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):n.elem.style&&(null!=n.elem.style[i.cssProps[n.prop]]||i.cssHooks[n.prop])?i.style(n.elem,n.prop,n.now+n.unit):n.elem[n.prop]=n.now}}};f.propHooks.scrollTop=f.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return null==n||"boolean"==typeof n?r.apply(this,arguments):this.animate(ot(t,!0),n,i,u)}});i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(it).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,r,u){var o=i.isEmptyObject(n),e=i.speed(t,r,u),f=function(){var t=pr(this,i.extend({},n),e);f.finish=function(){t.stop(!0)};(o||i._data(this,"finish"))&&t.stop(!0)};return f.finish=f,o||e.queue===!1?this.each(f):this.queue(e.queue,f)},stop:function(n,r,u){var f=function(n){var t=n.stop;delete n.stop;t(u)};return"string"!=typeof n&&(u=r,r=n,n=t),r&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){var o=!0,t=null!=n&&n+"queueHooks",e=i.timers,r=i._data(this);if(t)r[t]&&r[t].stop&&f(r[t]);else for(t in r)r[t]&&r[t].stop&&ko.test(t)&&f(r[t]);for(t=e.length;t--;)e[t].elem!==this||null!=n&&e[t].queue!==n||(e[t].anim.stop(u),o=!1,e.splice(t,1));(o||!u)&&i.dequeue(this,n)})},finish:function(n){return n!==!1&&(n=n||"fx"),this.each(function(){var t,f=i._data(this),r=f[n+"queue"],e=f[n+"queueHooks"],u=i.timers,o=r?r.length:0;for(f.finish=!0,i.queue(this,n,[]),e&&e.cur&&e.cur.finish&&e.cur.finish.call(this),t=u.length;t--;)u[t].elem===this&&u[t].queue===n&&(u[t].anim.stop(!0),u.splice(t,1));for(t=0;o>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete f.finish})}});i.each({slideDown:ot("show"),slideUp:ot("hide"),slideToggle:ot("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.speed=function(n,t,r){var u=n&&"object"==typeof n?i.extend({},n):{complete:r||!r&&t||i.isFunction(n)&&n,duration:n,easing:r&&t||t&&!i.isFunction(t)&&t};return u.duration=i.fx.off?0:"number"==typeof u.duration?u.duration:u.duration in i.fx.speeds?i.fx.speeds[u.duration]:i.fx.speeds._default,(null==u.queue||u.queue===!0)&&(u.queue="fx"),u.old=u.complete,u.complete=function(){i.isFunction(u.old)&&u.old.call(this);u.queue&&i.dequeue(this,u.queue)},u};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2}};i.timers=[];i.fx=f.prototype.init;i.fx.tick=function(){var u,n=i.timers,r=0;for(tt=i.now();r<n.length;r++)u=n[r],u()||n[r]!==u||n.splice(r--,1);n.length||i.fx.stop();tt=t};i.fx.timer=function(n){n()&&i.timers.push(n)&&i.fx.start()};i.fx.interval=13;i.fx.start=function(){yt||(yt=setInterval(i.fx.tick,i.fx.interval))};i.fx.stop=function(){clearInterval(yt);yt=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fx.step={};i.expr&&i.expr.filters&&(i.expr.filters.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length});i.fn.offset=function(n){if(arguments.length)return n===t?this:this.each(function(t){i.offset.setOffset(this,n,t)});var r,e,f={top:0,left:0},u=this[0],s=u&&u.ownerDocument;if(s)return r=s.documentElement,i.contains(r,u)?(typeof u.getBoundingClientRect!==o&&(f=u.getBoundingClientRect()),e=wr(s),{top:f.top+(e.pageYOffset||r.scrollTop)-(r.clientTop||0),left:f.left+(e.pageXOffset||r.scrollLeft)-(r.clientLeft||0)}):f};i.offset={setOffset:function(n,t,r){var f=i.css(n,"position");"static"===f&&(n.style.position="relative");var e,o,s=i(n),h=s.offset(),l=i.css(n,"top"),a=i.css(n,"left"),v=("absolute"===f||"fixed"===f)&&i.inArray("auto",[l,a])>-1,u={},c={};v?(c=s.position(),e=c.top,o=c.left):(e=parseFloat(l)||0,o=parseFloat(a)||0);i.isFunction(t)&&(t=t.call(n,r,h));null!=t.top&&(u.top=t.top-h.top+e);null!=t.left&&(u.left=t.left-h.left+o);"using"in t?t.using.call(n,u):s.css(u)}};i.fn.extend({position:function(){if(this[0]){var n,r,t={top:0,left:0},u=this[0];return"fixed"===i.css(u,"position")?r=u.getBoundingClientRect():(n=this.offsetParent(),r=this.offset(),i.nodeName(n[0],"html")||(t=n.offset()),t.top+=i.css(n[0],"borderTopWidth",!0),t.left+=i.css(n[0],"borderLeftWidth",!0)),{top:r.top-t.top-i.css(u,"marginTop",!0),left:r.left-t.left-i.css(u,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent||r.documentElement;n&&!i.nodeName(n,"html")&&"static"===i.css(n,"position");)n=n.offsetParent;return n||r.documentElement})}});i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,r){var u=/Y/.test(r);i.fn[n]=function(f){return i.access(this,function(n,f,e){var o=wr(n);return e===t?o?r in o?o[r]:o.document.documentElement[f]:n[f]:(o?o.scrollTo(u?i(o).scrollLeft():e,u?e:i(o).scrollTop()):n[f]=e,void 0)},n,f,arguments.length,null)}});i.each({Height:"height",Width:"width"},function(n,r){i.each({padding:"inner"+n,content:r,"":"outer"+n},function(u,f){i.fn[f]=function(f,e){var o=arguments.length&&(u||"boolean"!=typeof f),s=u||(f===!0||e===!0?"margin":"border");return i.access(this,function(r,u,f){var e;return i.isWindow(r)?r.document.documentElement["client"+n]:9===r.nodeType?(e=r.documentElement,Math.max(r.body["scroll"+n],e["scroll"+n],r.body["offset"+n],e["offset"+n],e["client"+n])):f===t?i.css(r,u,s):i.style(r,u,f,s)},r,o?f:t,o,null)}})});n.jQuery=n.$=i;"function"==typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return i})}(window);!function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Coveo__temporary=t():n.Coveo__temporary=t()}(this,function(){return function(n){function t(r){if(i[r])return i[r].exports;var u=i[r]={exports:{},id:r,loaded:!1};return n[r].call(u.exports,u,u.exports,t),u.loaded=!0,u.exports}var i={};return t.m=n,t.c=i,t.p="/js/",t(0)}([function(n,t,i){n.exports=i(1)},function(n,t,i){"use strict";function r(n){for(var i in n)t.hasOwnProperty(i)||(t[i]=n[i])}var o,u,s,h,c,l,a,v,y,p,w,b,k,d,g,nt,tt,it,rt,ut,ft,et,f,ot,st,ht,ct,lt,at,vt,yt,pt,wt,bt,kt,dt,gt,ni,ti,ii,ri,ui,fi,ei,oi,si,hi,ci,li,ai,vi,yi,pi,wi,bi,ki,di,gi,nr,tr,ir,rr,ur,fr,er,or,sr,hr,cr,lr,ar,vr,yr,pr,wr,br,kr,e,dr,gr,nu,tu,iu,ru,uu,fu,eu,ou,su,hu,cu,lu,au,vu,yu,pu,wu,bu,ku,du,gu,nf,tf,rf,uf,ff,ef,of,sf,hf,cf;r(i(2));r(i(30));r(i(36));r(i(39));r(i(55));r(i(74));r(i(100));r(i(132));r(i(177));o=i(179);t.CoreHelpers=o.CoreHelpers;u=i(106);t.SearchInterface=u.SearchInterface;t.StandaloneSearchInterface=u.StandaloneSearchInterface;s=i(187);t.Aggregate=s.Aggregate;h=i(134);t.Analytics=h.Analytics;c=i(136);t.PendingSearchEvent=c.PendingSearchEvent;l=i(138);t.PendingSearchAsYouTypeSearchEvent=l.PendingSearchAsYouTypeSearchEvent;a=i(112);t.analyticsActionCauseList=a.analyticsActionCauseList;v=i(119);t.NoopAnalyticsClient=v.NoopAnalyticsClient;y=i(135);t.LiveAnalyticsClient=y.LiveAnalyticsClient;p=i(175);t.RecommendationAnalyticsClient=p.RecommendationAnalyticsClient;w=i(139);t.MultiAnalyticsClient=w.MultiAnalyticsClient;b=i(188);t.Querybox=b.Querybox;k=i(190);t.SearchButton=k.SearchButton;d=i(191);t.Searchbox=d.Searchbox;g=i(197);t.Breadcrumb=g.Breadcrumb;nt=i(159);t.Facet=nt.Facet;tt=i(169);t.FacetHeader=tt.FacetHeader;it=i(172);t.FacetSearchValuesList=it.FacetSearchValuesList;rt=i(166);t.FacetSettings=rt.FacetSettings;ut=i(167);t.FacetSort=ut.FacetSort;ft=i(93);t.FacetUtils=ft.FacetUtils;et=i(162);t.FacetValueElement=et.FacetValueElement;f=i(160);t.FacetValue=f.FacetValue;t.FacetValues=f.FacetValues;ot=i(164);t.ValueElementRenderer=ot.ValueElementRenderer;st=i(161);t.FacetSearch=st.FacetSearch;ht=i(92);t.FacetSearchParameters=ht.FacetSearchParameters;ct=i(148);t.Slider=ct.Slider;lt=i(147);t.FacetSlider=lt.FacetSlider;at=i(198);t.FacetRange=at.FacetRange;vt=i(199);t.Pager=vt.Pager;yt=i(200);t.ResultsPerPage=yt.ResultsPerPage;pt=i(184);t.ResultList=pt.ResultList;wt=i(102);t.ResultLayout=wt.ResultLayout;bt=i(185);t.DefaultRecommendationTemplate=bt.DefaultRecommendationTemplate;kt=i(201);t.Excerpt=kt.Excerpt;dt=i(202);t.ResultLink=dt.ResultLink;gt=i(180);t.Icon=gt.Icon;ni=i(203);t.Thumbnail=ni.Thumbnail;ti=i(206);t.PrintableUri=ti.PrintableUri;ii=i(181);t.Quickview=ii.Quickview;ri=i(207);t.DidYouMean=ri.DidYouMean;ui=i(208);t.ErrorReport=ui.ErrorReport;fi=i(209);t.ExportToExcel=fi.ExportToExcel;ei=i(210);t.Folding=ei.Folding;oi=i(212);t.HiddenQuery=oi.HiddenQuery;si=i(213);t.HierarchicalFacet=si.HierarchicalFacet;hi=i(223);t.Matrix=hi.Matrix;ci=i(183);t.QuickviewDocument=ci.QuickviewDocument;li=i(226);t.YouTubeThumbnail=li.YouTubeThumbnail;ai=i(227);t.ResultAttachments=ai.ResultAttachments;vi=i(229);t.ResultFolding=vi.ResultFolding;yi=i(204);t.FieldTable=yi.FieldTable;pi=i(205);t.FieldValue=pi.FieldValue;wi=i(231);t.Badge=wi.Badge;bi=i(232);t.ResultRating=bi.ResultRating;ki=i(233);t.PreferencesPanel=ki.PreferencesPanel;di=i(234);t.ResultsFiltersPreferences=di.ResultsFiltersPreferences;gi=i(128);t.Tab=gi.Tab;nr=i(192);t.Omnibox=nr.Omnibox;tr=i(236);t.QueryDuration=tr.QueryDuration;ir=i(237);t.QuerySummary=ir.QuerySummary;rr=i(120);t.Debug=rr.Debug;ur=i(239);t.Settings=ur.Settings;fr=i(240);t.ShareQuery=fr.ShareQuery;er=i(241);t.Sort=er.Sort;or=i(211);t.SortCriteria=or.SortCriteria;sr=i(242);t.Triggers=sr.Triggers;hr=i(140);t.Recommendation=hr.Recommendation;cr=i(243);t.RecommendationQuery=cr.RecommendationQuery;lr=i(244);t.TemplateLoader=lr.TemplateLoader;ar=i(109);t.Template=ar.Template;vr=i(245);t.SuggestionForOmnibox=vr.SuggestionForOmnibox;yr=i(246);t.AnalyticsSuggestions=yr.AnalyticsSuggestions;pr=i(247);t.FieldSuggestions=pr.FieldSuggestions;wr=i(248);t.AuthenticationProvider=wr.AuthenticationProvider;br=i(249);t.ResultTagging=br.ResultTagging;kr=i(250);t.ResultsPreferences=kr.ResultsPreferences;e=i(251);t.PipelineContext=e.PipelineContext;t.context=e.context;dr=i(252);t.OmniboxResultList=dr.OmniboxResultList;gr=i(253);t.CurrentTab=gr.CurrentTab;nu=i(189);t.QueryboxQueryParameters=nu.QueryboxQueryParameters;tu=i(254);t.ImageResultList=tu.ImageResultList;iu=i(176);t.$=iu.jQueryInstance;ru=i(255);t._=ru.underscoreInstance;uu=i(256);t.AdvancedSearch=uu.AdvancedSearch;fu=i(269);t.NumericSpinner=fu.NumericSpinner;eu=i(271);t.DatePicker=eu.DatePicker;ou=i(268);t.Dropdown=ou.Dropdown;su=i(260);t.TextInput=su.TextInput;hu=i(266);t.RadioButton=hu.RadioButton;cu=i(388);t.FollowItem=cu.FollowItem;lu=i(390);t.SearchAlerts=lu.SearchAlerts;au=i(391);t.SearchAlertsMessage=au.SearchAlertsMessage;vu=i(392);t.Text=vu.Text;yu=i(393);t.FoldingForThread=yu.FoldingForThread;pu=i(394);t.ChatterLikedBy=pu.ChatterLikedBy;wu=i(396);t.ChatterPostAttachment=wu.ChatterPostAttachment;bu=i(397);t.ChatterPostedBy=bu.ChatterPostedBy;ku=i(398);t.ChatterTopic=ku.ChatterTopic;du=i(395);t.ChatterUtils=du.ChatterUtils;gu=i(399);t.Logo=gu.Logo;nf=i(400);t.Backdrop=nf.Backdrop;tf=i(401);t.CardOverlay=tf.CardOverlay;rf=i(403);t.CardActionBar=rf.CardActionBar;uf=i(66);t.HashUtils=uf.HashUtils;ff=i(16);t.DeviceUtils=ff.DeviceUtils;ef=i(56);t.ColorUtils=ef.ColorUtils;of=i(38);t.Cookie=of.Cookie;sf=i(57);t.CurrencyUtils=sf.CurrencyUtils;hf=i(58);t.DateUtils=hf.DateUtils;cf=i(404);cf.swapVar(this)},function(n,t,i){"use strict";function s(n){for(var i in n)t.hasOwnProperty(i)||(t[i]=n[i])}var h=i(3),r,u,f,e,o;h.shim();r=i(7);r.customEventPolyfill();u=i(8);t.version=u.version;f=i(9);t.SearchEndpoint=f.SearchEndpoint;s(i(23));e=i(27);e.defaultLanguage();o=i(27);t.setLanguageAfterPageLoaded=o.setLanguageAfterPageLoaded},function(n,t,i){"use strict";function u(){r.Promise.prototype.finally=function(n){var t=this.constructor;return this.then(function(i){return t.resolve(n()).then(function(){return i})},function(i){return t.resolve(n()).then(function(){throw i;})})};var n=function(n){n.then(null,function(n){setTimeout(function(){throw n;},0)})};"function"!=typeof r.Promise.prototype.done&&(r.Promise.prototype.done=function(){var t=arguments.length?this.then.apply(this,arguments):this;return n(t),this});"function"!=typeof r.Promise.prototype.fail&&(r.Promise.prototype.fail=function(){var t=arguments.length?this.catch.apply(this,arguments):this;return n(t),this})}var r=i(4);t.shim=u},function(n,t,i){(function(t,r){!function(t,i){n.exports=i()}(this,function(){"use strict";function bt(n){return"function"==typeof n||"object"==typeof n&&null!==n}function rt(n){return"function"==typeof n}function kt(n){tt=n}function dt(n){e=n}function gt(){return function(){return t.nextTick(o)}}function ni(){return function(){at(o)}}function ti(){var n=0,i=new pt(o),t=document.createTextNode("");return i.observe(t,{characterData:!0}),function(){t.data=n=++n%2}}function ii(){var n=new MessageChannel;return n.port1.onmessage=o,function(){return n.port2.postMessage(0)}}function ut(){var n=setTimeout;return function(){return n(o,1)}}function o(){for(var t,i,n=0;n<h;n+=2)t=c[n],i=c[n+1],t(i),c[n]=void 0,c[n+1]=void 0;h=0}function ri(){try{var n=i(6);return at=n.runOnLoop||n.runOnContext,ni()}catch(n){return ut()}}function k(n,t){var f=arguments,u=this,i=new this.constructor(s),r;return void 0===i[w]&&ht(i),r=u._state,r?!function(){var n=f[r-1];e(function(){return st(r,i,n,u._result)})}():g(u,i,n,t),i}function d(n){var i=this,t;return n&&"object"==typeof n&&n.constructor===i?n:(t=new i(s),v(t,n),t)}function s(){}function ui(){return new TypeError("You cannot resolve a promise with itself")}function fi(){return new TypeError("A promises callback cannot return that same promise.")}function ft(n){try{return n.then}catch(n){return b.error=n,b}}function ei(n,t,i,r){try{n.call(t,i,r)}catch(n){return n}}function oi(n,t,i){e(function(n){var r=!1,e=ei(i,t,function(i){r||(r=!0,t!==i?v(n,i):f(n,i))},function(t){r||(r=!0,u(n,t))},"Settle: "+(n._label||" unknown promise"));!r&&e&&(r=!0,u(n,e))},n)}function si(n,t){t._state===p?f(n,t._result):t._state===a?u(n,t._result):g(t,void 0,function(t){return v(n,t)},function(t){return u(n,t)})}function et(n,t,i){t.constructor===n.constructor&&i===k&&t.constructor.resolve===d?si(n,t):i===b?u(n,b.error):void 0===i?f(n,t):rt(i)?oi(n,t,i):f(n,t)}function v(n,t){n===t?u(n,ui()):bt(t)?et(n,t,ft(t)):f(n,t)}function hi(n){n._onerror&&n._onerror(n._result);nt(n)}function f(n,t){n._state===l&&(n._result=t,n._state=p,0!==n._subscribers.length&&e(nt,n))}function u(n,t){n._state===l&&(n._state=a,n._result=t,e(hi,n))}function g(n,t,i,r){var u=n._subscribers,f=u.length;n._onerror=null;u[f]=t;u[f+p]=i;u[f+a]=r;0===f&&n._state&&e(nt,n)}function nt(n){var t=n._subscribers,f=n._state;if(0!==t.length){for(var r=void 0,u=void 0,e=n._result,i=0;i<t.length;i+=3)r=t[i],u=t[i+f],r?st(f,r,u,e):u(e);n._subscribers.length=0}}function ot(){this.error=null}function ci(n,t){try{return n(t)}catch(n){return it.error=n,it}}function st(n,t,i,r){var s=rt(i),e=void 0,h=void 0,o=void 0,c=void 0;if(s){if(e=ci(i,r),e===it?(c=!0,h=e.error,e=null):o=!0,t===e)return void u(t,fi())}else e=r,o=!0;t._state!==l||(s&&o?v(t,e):c?u(t,h):n===p?f(t,e):n===a&&u(t,e))}function li(n,t){try{t(function(t){v(n,t)},function(t){u(n,t)})}catch(t){u(n,t)}}function ai(){return wt++}function ht(n){n[w]=wt++;n._state=void 0;n._result=void 0;n._subscribers=[]}function y(n,t){this._instanceConstructor=n;this.promise=new n(s);this.promise[w]||ht(this.promise);lt(t)?(this._input=t,this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?f(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&f(this.promise,this._result))):u(this.promise,vi())}function vi(){return new Error("Array Methods must be provided an Array")}function yi(n){return new y(this,n).promise}function pi(n){var t=this;return new t(lt(n)?function(i,r){for(var f=n.length,u=0;u<f;u++)t.resolve(n[u]).then(i,r)}:function(n,t){return t(new TypeError("You must pass an array to race."))})}function wi(n){var i=this,t=new i(s);return u(t,n),t}function bi(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");}function ki(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");}function n(t){this[w]=ai();this._result=this._state=void 0;this._subscribers=[];s!==t&&("function"!=typeof t&&bi(),this instanceof n?li(this,t):ki())}function ct(){var t=void 0,i,u;if("undefined"!=typeof r)t=r;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment");}if(i=t.Promise,i){u=null;try{u=Object.prototype.toString.call(i.resolve())}catch(t){}if("[object Promise]"===u&&!i.cast)return}t.Promise=n}var di=Array.isArray?Array.isArray:function(n){return"[object Array]"===Object.prototype.toString.call(n)};var lt=di,h=0,at=void 0,tt=void 0,e=function(n,t){c[h]=n;c[h+1]=t;h+=2;2===h&&(tt?tt(o):tr())},vt="undefined"!=typeof window?window:void 0,yt=vt||{},pt=yt.MutationObserver||yt.WebKitMutationObserver,gi="undefined"==typeof self&&"undefined"!=typeof t&&"[object process]"==={}.toString.call(t),nr="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,c=new Array(1e3),tr=gi?gt():pt?ti():nr?ii():void 0===vt?ri():ut();var w=Math.random().toString(36).substring(16),l=void 0,p=1,a=2,b=new ot,it=new ot,wt=0;return y.prototype._enumerate=function(){for(var t=this.length,i=this._input,n=0;this._state===l&&n<t;n++)this._eachEntry(i[n],n)},y.prototype._eachEntry=function(t,i){var r=this._instanceConstructor,e=r.resolve,u,f;e===d?(u=ft(t),u===k&&t._state!==l?this._settledAt(t._state,i,t._result):"function"!=typeof u?(this._remaining--,this._result[i]=t):r===n?(f=new r(s),et(f,t,u),this._willSettleAt(f,i)):this._willSettleAt(new r(function(n){return n(t)}),i)):this._willSettleAt(e(t),i)},y.prototype._settledAt=function(n,t,i){var r=this.promise;r._state===l&&(this._remaining--,n===a?u(r,i):this._result[t]=i);0===this._remaining&&f(r,this._result)},y.prototype._willSettleAt=function(n,t){var i=this;g(n,void 0,function(n){return i._settledAt(p,t,n)},function(n){return i._settledAt(a,t,n)})},n.all=yi,n.race=pi,n.resolve=d,n.reject=wi,n._setScheduler=kt,n._setAsap=dt,n._asap=e,n.prototype={constructor:n,then:k,"catch":function(n){return this.then(null,n)}},ct(),n.polyfill=ct,n.Promise=n,n})}).call(t,i(5),function(){return this}())},function(n){function h(){throw new Error("setTimeout has not been defined");}function c(){throw new Error("clearTimeout has not been defined");}function l(n){if(i===setTimeout)return setTimeout(n,0);if((i===h||!i)&&setTimeout)return i=setTimeout,setTimeout(n,0);try{return i(n,0)}catch(t){try{return i.call(null,n,0)}catch(t){return i.call(this,n,0)}}}function y(n){if(r===clearTimeout)return clearTimeout(n);if((r===c||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(n);try{return r(n)}catch(t){try{return r.call(null,n)}catch(t){return r.call(this,n)}}}function p(){o&&e&&(o=!1,e.length?u=e.concat(u):s=-1,u.length&&a())}function a(){var t,n;if(!o){for(t=l(p),o=!0,n=u.length;n;){for(e=u,u=[];++s<n;)e&&e[s].run();s=-1;n=u.length}e=null;o=!1;y(t)}}function v(n,t){this.fun=n;this.array=t}function f(){}var i,r,t=n.exports={};!function(){try{i="function"==typeof setTimeout?setTimeout:h}catch(n){i=h}try{r="function"==typeof clearTimeout?clearTimeout:c}catch(n){r=c}}();var e,u=[],o=!1,s=-1;t.nextTick=function(n){var i=new Array(arguments.length-1),t;if(arguments.length>1)for(t=1;t<arguments.length;t++)i[t-1]=arguments[t];u.push(new v(n,i));1!==u.length||o||l(a)};v.prototype.run=function(){this.fun.apply(null,this.array)};t.title="browser";t.browser=!0;t.env={};t.argv=[];t.version="";t.versions={};t.on=f;t.addListener=f;t.once=f;t.off=f;t.removeListener=f;t.removeAllListeners=f;t.emit=f;t.binding=function(){throw new Error("process.binding is not supported");};t.cwd=function(){return"/"};t.chdir=function(){throw new Error("process.chdir is not supported");};t.umask=function(){return 0}},function(){},function(n,t){"use strict";function i(){if("function"!=typeof CustomEvent){var n=function(n,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("CustomEvent");return i.initCustomEvent(n,t.bubbles,t.cancelable,t.detail),i};n.prototype=window.Event.prototype;window.CustomEvent=n}}t.customEventPolyfill=i},function(n,t){"use strict";t.version={lib:"1.2359.7",product:"1.2359.7",supportedApiVersion:2}},function(n,t,i){"use strict";function e(n){return function(t,i,r){var f=r.value,u=t[i].prototype.constructor.length;return r.value=function(){for(var r,e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return r=this.buildBaseUri(n),t[u-1]?t[u-1].url=r:(e={url:r,queryString:[],requestData:{},method:"",responseType:"",errorsAsSuccess:!1},t[u-1]=e),f.apply(this,t)},r}}function a(n){return function(t,i,r){var f=r.value,u=t[i].prototype.constructor.length;return r.value=function(){for(var r,e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return r=this.buildSearchAlertsUri(n),t[u-1]?t[u-1].url=r:(e={url:r,queryString:[],requestData:{},method:"",responseType:"",errorsAsSuccess:!1},t[u-1]=e),f.apply(this,t)},r}}function v(n){return function(t,i,r){var f=r.value,u=t[i].prototype.constructor.length;return r.value=function(){for(var r,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return t[u-1]?t[u-1].requestDataType=n:(r={url:"",queryString:[],requestData:{},requestDataType:n,method:"",responseType:"",errorsAsSuccess:!1},t[u-1]=r),f.apply(this,t)},r}}function o(n){return function(t,i,r){var f=r.value,u=t[i].prototype.constructor.length;return r.value=function(){for(var r,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return t[u-1]?t[u-1].method=n:(r={url:"",queryString:[],requestData:{},method:n,responseType:"",errorsAsSuccess:!1},t[u-1]=r),f.apply(this,t)},r}}function s(n){return function(t,i,r){var f=r.value,u=t[i].prototype.constructor.length;return r.value=function(){for(var r,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return t[u-1]?t[u-1].responseType=n:(r={url:"",queryString:[],requestData:{},method:"",responseType:n,errorsAsSuccess:!1},t[u-1]=r),f.apply(this,t)},r}}function h(n){return void 0===n&&(n="access_token"),function(t,i,r){var f=r.value,u=t[i].prototype.constructor.length;return r.value=function(){for(var r,e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return r=this.buildAccessToken(n),t[u-1]?t[u-1].queryString=t[u-1].queryString.concat(r):(e={url:"",queryString:r,requestData:{},method:"",responseType:"",errorsAsSuccess:!1},t[u-1]=e),f.apply(this,t)},r}}var u=this&&this.__decorate||function(n,t,i,r){var f,e=arguments.length,u=e<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r,o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(f=n[o])&&(u=(e<3?f(u):e>3?f(t,i,u):f(t,i))||u);return e>3&&u&&Object.defineProperty(t,i,u),u},k=i(10),d=i(11),c=i(12),g=i(8),b=i(19),nt=i(20),y=i(21),tt=i(22),l=i(13),p=i(4),it=i(3),f=i(14),w,r;it.shim();w=function(){function n(){this.version="v2";this.queryStringArguments={};this.anonymous=!1;this.isGuestUser=!1}return n}();t.DefaultSearchEndpointOptions=w;r=function(){function n(t){var r=this,i;this.options=t;c.Assert.exists(t);c.Assert.exists(t.restUri);i=new w;i.anonymous=0==window.location.href.indexOf("file://")&&l.Utils.isNonEmptyString(t.accessToken);this.options=f.extend({},i,t);n.isDebugArgumentPresent()&&(this.options.queryStringArguments.debug=1);this.onUnload=function(){r.handleUnload()};window.addEventListener("beforeunload",this.onUnload);this.logger=new d.Logger(this);this.createEndpointCaller()}return n.configureSampleEndpoint=function(t){n.endpoints.default=n.isUseLocalArgumentPresent()?new n(f.extend({restUri:"http://localhost:8100/rest/search",searchAlertsUri:"http://localhost:8088/rest/search/alerts/"},t)):new n(f.extend({restUri:"https://cloudplatform.coveo.com/rest/search",accessToken:"52d806a2-0f64-4390-a3f2-e0f41a4a73ec"},t))},n.configureSampleEndpointV2=function(){n.endpoints.default=new n(f.extend({restUri:"https://platform.cloud.coveo.com/rest/search",accessToken:"xx564559b1-0045-48e1-953c-3addd1ee4457",queryStringArguments:{organizationID:"searchuisamples",viewAllContent:1}}))},n.configureCloudEndpoint=function(t,i,r,u){void 0===r&&(r="https://cloudplatform.coveo.com/rest/search");var f={restUri:r,accessToken:i,queryStringArguments:{organizationId:t}},e=n.mergeConfigOptions(f,u);n.endpoints.default=new n(n.removeUndefinedConfigOption(e))},n.configureCloudV2Endpoint=function(t,i,r,u){return void 0===r&&(r="https://platform.cloud.coveo.com/rest/search"),n.configureCloudEndpoint(t,i,r,u)},n.configureOnPremiseEndpoint=function(t,i,r){var u=n.mergeConfigOptions({restUri:t,accessToken:i},r);n.endpoints.default=new n(n.removeUndefinedConfigOption(u))},n.removeUndefinedConfigOption=function(n){return f.each(f.keys(n),function(t){void 0==n[t]&&delete n[t]}),n},n.mergeConfigOptions=function(t,i){return t=n.removeUndefinedConfigOption(t),i=n.removeUndefinedConfigOption(i),f.extend({},t,i)},n.prototype.reset=function(){this.createEndpointCaller()},n.prototype.setRequestModifier=function(n){this.caller.options.requestModifier=n},n.prototype.getBaseUri=function(){return this.buildBaseUri("")},n.prototype.getBaseAlertsUri=function(){return this.buildSearchAlertsUri("")},n.prototype.getAuthenticationProviderUri=function(n,t,i,r,u){var f=this.buildBaseQueryString(r);return u.queryString=u.queryString.concat(f),u.url+=n+"?",l.Utils.isNonEmptyString(t)?u.url+="redirectUri="+encodeURIComponent(t)+"&":l.Utils.isNonEmptyString(i)&&(u.url+="message="+encodeURIComponent(i)+"&"),u.url+=u.queryString.join("&"),u.url},n.prototype.isJsonp=function(){return this.caller.useJsonp},n.prototype.search=function(n,t,i){var r=this;return c.Assert.exists(n),i.requestData=n,this.logger.info("Performing REST query",n),this.performOneCall(i,t).then(function(t){return r.logger.info("REST query successful",t,n),null==t.apiVersion&&(t.apiVersion=1),t.apiVersion<g.version.supportedApiVersion&&r.logger.error("Please update your REST Search API"),l.Utils.isNullOrEmptyString(t.searchUid)&&(t.searchUid=y.QueryUtils.createGuid()),y.QueryUtils.setIndexAndUidOnQueryResults(n,t,t.searchUid,t.pipeline,t.splitTestRun),y.QueryUtils.setTermsToHighlightOnQueryResults(n,t),t})},n.prototype.getExportToExcelLink=function(n,t,i,r){var u=this.buildBaseQueryString(i);return r.queryString=r.queryString.concat(u),u=this.buildCompleteQueryString(null,n),r.queryString=r.queryString.concat(u),null!=t&&r.queryString.push("numberOfResults="+t),r.queryString.push("format=xlsx"),r.url+"?"+r.queryString.join("&")},n.prototype.getRawDataStream=function(n,t,i,r){var f=this,u;return c.Assert.exists(n),u=this.buildViewAsHtmlQueryString(n,i),r.queryString=r.queryString.concat(u),this.logger.info("Performing REST query for datastream "+t+" on document uniqueID"+n),r.queryString.push("dataStream="+t),this.performOneCall(r).then(function(t){return f.logger.info("REST query successful",t,n),t})},n.prototype.getViewAsDatastreamUri=function(n,t,i,r){i=f.extend({},i);var u=this.buildBaseQueryString(i);return r.queryString=r.queryString.concat(u),u=this.buildViewAsHtmlQueryString(n,i),r.queryString=r.queryString.concat(u),u=this.buildCompleteQueryString(i.query,i.queryObject),r.queryString=r.queryString.concat(u),r.url+"?"+r.queryString.join("&")+"&dataStream="+encodeURIComponent(t)},n.prototype.getDocument=function(n,t,i){var r=this.buildViewAsHtmlQueryString(n,t);return i.queryString=i.queryString.concat(r),this.performOneCall(i)},n.prototype.getDocumentText=function(n,t,i){var r=this.buildViewAsHtmlQueryString(n,t);return i.queryString=i.queryString.concat(r),this.performOneCall(i).then(function(n){return n.content})},n.prototype.getDocumentHtml=function(n,t,i){t=f.extend({},t);var r=this.buildViewAsHtmlQueryString(n,t);return i.queryString=i.queryString.concat(r),i.requestData=t.queryObject||{q:t.query},this.performOneCall(i)},n.prototype.getViewAsHtmlUri=function(n,t,i){var r=this.buildBaseQueryString(t);return i.queryString=i.queryString.concat(r),r=this.buildViewAsHtmlQueryString(n,t),i.queryString=i.queryString.concat(r),i.queryString=f.uniq(i.queryString),i.url+"?"+i.queryString.join("&")},n.prototype.batchFieldValues=function(n,t,i){var r=this;return c.Assert.exists(n),this.performOneCall(i).then(function(t){return r.logger.info("REST list field values successful",t.values,n),t.values})},n.prototype.listFieldValues=function(n,t,i){var r=this;return c.Assert.exists(n),i.requestData=n,this.logger.info("Listing field values",n),this.performOneCall(i).then(function(t){return r.logger.info("REST list field values successful",t.values,n),t.values})},n.prototype.listFields=function(n,t){return this.logger.info("Listing fields"),this.performOneCall(t).then(function(n){return n.fields})},n.prototype.extensions=function(n,t){return this.logger.info("Listing extensions"),this.performOneCall(t)},n.prototype.rateDocument=function(n,t,i){return this.logger.info("Rating a document",n),i.requestData=n,this.performOneCall(i).then(function(){return!0})},n.prototype.tagDocument=function(n,t,i){return this.logger.info("Tagging a document",n),i.requestData=n,this.performOneCall(i).then(function(){return!0})},n.prototype.getRevealQuerySuggest=function(n,t,i){return this.logger.info("Get Reveal Query Suggest",n),i.requestData=n,this.performOneCall(i)},n.prototype.follow=function(n,t,i){return i.requestData=n,this.logger.info("Following a document or a query",n),this.performOneCall(i)},n.prototype.listSubscriptions=function(n,t,i){var r=this;return this.options.isGuestUser?new p.Promise(function(n,t){t()}):(null==this.currentListSubscriptions&&(i.queryString.push("page="+(n||0)),this.currentListSubscriptions=this.performOneCall(i),this.currentListSubscriptions.then(function(n){return r.currentListSubscriptions=null,n}).catch(function(n){if(503!=n.status)throw n;})),this.currentListSubscriptions)},n.prototype.updateSubscription=function(n,t,i){return i.requestData=n,this.logger.info("Updating a subscription",n),i.url+=n.id,this.performOneCall(i)},n.prototype.deleteSubscription=function(n,t,i){return i.url+=n.id,this.performOneCall(i)},n.prototype.logError=function(n,t,i){return i.requestData=n,this.performOneCall(i,t).then(function(){return!0}).catch(function(){return!1})},n.prototype.nuke=function(){window.removeEventListener("beforeunload",this.onUnload)},n.prototype.createEndpointCaller=function(){this.caller=new k.EndpointCaller(this.options)},n.isDebugArgumentPresent=function(){return/[?&]debug=1([&]|$)/.test(window.location.search)},n.isUseLocalArgumentPresent=function(){return/[?&]useLocal=1([&]|$)/.test(window.location.search)},n.prototype.handleUnload=function(){this.isRedirecting=!0},n.prototype.buildBaseUri=function(n){c.Assert.isString(n);var t=this.options.restUri;return t=this.removeTrailingSlash(t),l.Utils.isNonEmptyString(this.options.version)&&(t+="/"+this.options.version),t+n},n.prototype.buildSearchAlertsUri=function(n){c.Assert.isString(n);var t=this.options.searchAlertsUri||this.options.restUri+"/alerts";return null==t?null:(t=this.removeTrailingSlash(t),t+=n)},n.prototype.buildAccessToken=function(n){var t=[];return l.Utils.isNonEmptyString(this.options.accessToken)&&t.push(n+"="+encodeURIComponent(this.options.accessToken)),t},n.prototype.buildBaseQueryString=function(n){var t,i;n=f.extend({},n);t=[];for(i in this.options.queryStringArguments)t.push(i+"="+encodeURIComponent(this.options.queryStringArguments[i]));return n&&f.isArray(n.authentication)&&0!=n.authentication.length&&t.push("authentication="+n.authentication.join(",")),t},n.prototype.buildCompleteQueryString=function(n,t){var i=[];return t?(f.each(["q","aq","cq","dq","searchHub","tab","language","pipeline","lowercaseOperators"],function(n){t[n]&&i.push(n+"="+encodeURIComponent(t[n]))}),f.each(t.context,function(n,t){i.push("context["+t+"]="+encodeURIComponent(n))}),t.fieldsToInclude&&i.push("fieldsToInclude=["+f.map(t.fieldsToInclude,function(n){return'"'+encodeURIComponent(n.replace("@",""))+'"'}).join(",")+"]")):n&&i.push("q="+encodeURIComponent(n)),i},n.prototype.buildViewAsHtmlQueryString=function(n,t){t=f.extend({},t);var i=this.buildBaseQueryString(t);return i.push("uniqueId="+encodeURIComponent(n)),(t.query||t.queryObject)&&i.push("enableNavigation=true"),t.requestedOutputSize&&i.push("requestedOutputSize="+encodeURIComponent(t.requestedOutputSize.toString())),t.contentType&&i.push("contentType="+encodeURIComponent(t.contentType)),i},n.prototype.performOneCall=function(n,t,i){var r=this,u;return void 0===i&&(i=!0),u=this.buildBaseQueryString(t),n.queryString=n.queryString.concat(u),n.queryString=f.uniq(n.queryString),this.caller.call(n).then(function(n){return n.data&&n.data.clientDuration&&(n.data.clientDuration=n.duration),n.data}).catch(function(u){if(i&&r.canRenewAccessToken()&&r.isAccessTokenExpiredStatus(u.statusCode))r.renewAccessToken().then(function(){return r.performOneCall(n,t,i)}).catch(function(){return p.Promise.reject(r.handleErrorResponse(u))});else{if(0!=u.statusCode||!r.isRedirecting)return p.Promise.reject(r.handleErrorResponse(u));f.defer(function(){return""})}})},n.prototype.handleErrorResponse=function(n){return this.isMissingAuthenticationProviderStatus(n.statusCode)?new nt.MissingAuthenticationError(n.data.provider):n.data&&n.data.message&&n.data.type?new tt.QueryError(n):n.data&&n.data.message?new b.AjaxError("Request Error : "+n.data.message,n.statusCode):new b.AjaxError("Request Error",n.statusCode)},n.prototype.canRenewAccessToken=function(){return l.Utils.isNonEmptyString(this.options.accessToken)&&f.isFunction(this.options.renewAccessToken)},n.prototype.renewAccessToken=function(){var n=this;return this.logger.info("Renewing expired access token"),this.options.renewAccessToken().then(function(t){return c.Assert.isNonEmptyString(t),n.options.accessToken=t,n.createEndpointCaller(),t}).catch(function(t){return n.logger.error("Failed to renew access token",t),t})},n.prototype.removeTrailingSlash=function(n){return this.hasTrailingSlash(n)&&(n=n.substr(0,n.length-1)),n},n.prototype.hasTrailingSlash=function(n){return"/"==n.charAt(n.length-1)},n.prototype.isMissingAuthenticationProviderStatus=function(n){return 402==n},n.prototype.isAccessTokenExpiredStatus=function(n){return 419==n},n}();r.endpoints={};u([e("/login/"),h()],r.prototype,"getAuthenticationProviderUri",null);u([e("/"),o("POST"),s("text")],r.prototype,"search",null);u([e("/"),h()],r.prototype,"getExportToExcelLink",null);u([e("/datastream"),h(),o("GET"),s("arraybuffer")],r.prototype,"getRawDataStream",null);u([e("/datastream"),h()],r.prototype,"getViewAsDatastreamUri",null);u([e("/document"),o("GET"),s("text")],r.prototype,"getDocument",null);u([e("/text"),o("GET"),s("text")],r.prototype,"getDocumentText",null);u([e("/html"),o("POST"),s("document")],r.prototype,"getDocumentHtml",null);u([e("/html"),h()],r.prototype,"getViewAsHtmlUri",null);u([e("/values"),o("POST"),s("text")],r.prototype,"batchFieldValues",null);u([e("/values"),o("POST"),s("text")],r.prototype,"listFieldValues",null);u([e("/fields"),o("GET"),s("text")],r.prototype,"listFields",null);u([e("/extensions"),o("GET"),s("text")],r.prototype,"extensions",null);u([e("/rating"),o("POST"),s("text")],r.prototype,"rateDocument",null);u([e("/tag"),o("POST"),s("text")],r.prototype,"tagDocument",null);u([e("/querySuggest"),o("GET"),s("text")],r.prototype,"getRevealQuerySuggest",null);u([a("/subscriptions"),h("accessToken"),o("POST"),v("application/json"),s("text")],r.prototype,"follow",null);u([a("/subscriptions"),h("accessToken"),o("GET"),v("application/json"),s("text")],r.prototype,"listSubscriptions",null);u([a("/subscriptions/"),h("accessToken"),o("PUT"),v("application/json"),s("text")],r.prototype,"updateSubscription",null);u([a("/subscriptions/"),h("accessToken"),o("DELETE"),v("application/json"),s("text")],r.prototype,"deleteSubscription",null);u([e("/log"),o("POST")],r.prototype,"logError",null);t.SearchEndpoint=r},function(n,t,i){"use strict";var r,s=i(11),o=i(12),h=i(15),c=i(16),l=i(13),f=i(4),a=i(18),u=i(14),e;!function(n){n[n.OPENED=XMLHttpRequest.OPENED||1]="OPENED";n[n.HEADERS_RECEIVED=XMLHttpRequest.HEADERS_RECEIVED||2]="HEADERS_RECEIVED";n[n.DONE=XMLHttpRequest.DONE||4]="DONE"}(r||(r={}));e=function(){function n(n){void 0===n&&(n={});this.options=n;this.useJsonp=!1;this.logger=new s.Logger(this)}return n.prototype.call=function(n){var t={url:n.url,queryString:n.errorsAsSuccess?n.queryString.concat(["errorsAsSuccess=1"]):n.queryString,requestData:n.requestData,requestDataType:n.requestDataType||'application/x-www-form-urlencoded; charset="UTF-8"',begun:new Date,method:n.method};t.headers=this.buildRequestHeaders(t);u.isFunction(this.options.requestModifier)&&(t=this.options.requestModifier(t));this.logger.trace("Performing REST request",t);var i=this.parseURL(t.url),r=window.location.hostname===i.hostname||""===i.hostname,f=""!=window.location.port?window.location.port:"https:"==window.location.protocol?"443":"80",e=f==i.port,o=!(r&&e);return this.useJsonp?this.callUsingAjaxJsonP(t):this.isCORSSupported()||!o?this.callUsingXMLHttpRequest(t,n.responseType):this.isXDomainRequestSupported()?this.callUsingXDomainRequest(t):this.callUsingAjaxJsonP(t)},n.prototype.callUsingXMLHttpRequest=function(n,t){var i=this;return void 0===t&&(t="text"),new f.Promise(function(f,e){var o=new XMLHttpRequest,h=!1,s;o.onreadystatechange=function(){var s,l;if(o.readyState!=r.OPENED||h){if(o.readyState==r.HEADERS_RECEIVED)l=o.status,o.responseType=i.isSuccessHttpStatus(l)?t:"text";else if(o.readyState==r.DONE){l=o.status;switch(t){case"json":if(s=o.response,"json"==t&&"IE"==c.DeviceUtils.getDeviceName())try{s=JSON.parse(s)}catch(n){}break;case"text":s=i.tryParseResponseText(o.responseText,o.getResponseHeader("Content-Type"));break;default:s=o.response}void 0==s&&(s=i.tryParseResponseText(o.responseText,o.getResponseHeader("Content-Type")));i.isSuccessHttpStatus(l)?i.handleSuccessfulResponseThatMightBeAnError(n,s,f,e):i.handleError(n,o.status,s,e)}}else h=!0,o.withCredentials=!0,u.each(n.headers,function(n,t){o.setRequestHeader(t,n)}),"GET"==n.method?o.send():0===n.requestDataType.indexOf("application/json")?o.send(JSON.stringify(n.requestData)):o.send(i.convertJsonToFormBody(n.requestData))};s=n.queryString;"GET"==n.method&&(s=s.concat(i.convertJsonToQueryString(n.requestData)));o.open(n.method,i.combineUrlAndQueryString(n.url,s))})},n.prototype.callUsingXDomainRequest=function(n){var t=this;return new f.Promise(function(i,r){var e=n.queryString.concat([]),f;t.options.accessToken&&e.push("access_token="+encodeURIComponent(t.options.accessToken));f=new XDomainRequest;"GET"==n.method&&(e=e.concat(t.convertJsonToQueryString(n.requestData)));f.open(n.method,t.combineUrlAndQueryString(n.url,e));f.onload=function(){var u=t.tryParseResponseText(f.responseText,f.contentType);t.handleSuccessfulResponseThatMightBeAnError(n,u,i,r)};f.onerror=function(){var i=t.tryParseResponseText(f.responseText,f.contentType);t.handleError(n,0,i,r)};f.ontimeout=function(){return t.logger.error("Request timeout",f,n.requestData)};f.onprogress=function(){return t.logger.trace("Request progress",f,n.requestData)};u.defer(function(){"GET"==n.method?f.send():f.send(t.convertJsonToFormBody(n.requestData))})})},n.prototype.callUsingAjaxJsonP=function(t){var i=this,r=a.JQueryUtils.getJQuery();return o.Assert.check(r,"Using jsonp without having included jQuery is not supported."),new f.Promise(function(u,f){var e=t.queryString.concat(i.convertJsonToQueryString(t.requestData));i.options.accessToken&&e.push("access_token="+encodeURIComponent(i.options.accessToken));e.push("callback=?");r.ajax({url:i.combineUrlAndQueryString(t.url,e),dataType:"jsonp",success:function(n){return i.handleSuccessfulResponseThatMightBeAnError(t,n,u,f)},timeout:n.JSONP_ERROR_TIMEOUT,error:function(){return i.handleError(t,0,void 0,f)}})})},n.prototype.parseURL=function(n){var t=document.createElement("a");return t.href=n,t},n.prototype.convertJsonToQueryString=function(n){o.Assert.exists(n);var t=[];return u.each(n,function(n,i){null!=n&&(u.isObject(n)?t.push(i+"="+encodeURIComponent(JSON.stringify(n))):t.push(i+"="+encodeURIComponent(n.toString())))}),t},n.prototype.convertJsonToFormBody=function(n){return this.convertJsonToQueryString(n).join("&")},n.prototype.handleSuccessfulResponseThatMightBeAnError=function(n,t,i,r){this.isErrorResponseBody(t)?this.handleError(n,t.statusCode,t,r):this.handleSuccess(n,t,i)},n.prototype.handleSuccess=function(n,t,i){var r={duration:h.TimeSpan.fromDates(n.begun,new Date).getMilliseconds(),data:t};this.logger.trace("REST request successful",t,n);i(r)},n.prototype.handleError=function(n,t,i,r){var u={statusCode:t,data:i};this.logger.error("REST request failed",t,i,n);r(u)},n.prototype.combineUrlAndQueryString=function(n,t){var i="?";return n.match(/\?$/)&&(i=""),n+(t.length>0?i+t.join("&"):"")},n.prototype.isXDomainRequestSupported=function(){return"XDomainRequest"in window},n.prototype.isCORSSupported=function(){return"withCredentials"in new XMLHttpRequest},n.prototype.isSuccessHttpStatus=function(n){return n>=200&&n<300||304===n},n.prototype.tryParseResponseText=function(n,t){if(null==t||t.indexOf("application/json")==-1)return n;if(l.Utils.isNonEmptyString(n))try{return JSON.parse(n)}catch(n){return}},n.prototype.isErrorResponseBody=function(n){return!(!n||!n.statusCode)&&!this.isSuccessHttpStatus(n.statusCode)},n.prototype.buildRequestHeaders=function(n){var t={};return this.options.accessToken?t.Authorization="Bearer "+this.options.accessToken:this.options.username&&this.options.password&&(t.Authorization="Basic "+btoa(this.options.username+":"+this.options.password)),"GET"==n.method?t:(t["Content-Type"]=0===n.requestDataType.indexOf("application/json")?'application/json; charset="UTF-8"':'application/x-www-form-urlencoded; charset="UTF-8"',t)},n}();e.JSONP_ERROR_TIMEOUT=1e4;t.EndpointCaller=e},function(n,t){"use strict";window.console||(console={log:function(){},debug:function(){},info:function(){},warn:function(){},error:function(){},assert:function(){},clear:function(){},count:function(){},dir:function(){},dirxml:function(){},group:function(){},groupCollapsed:function(){},groupEnd:function(){},msIsIndependentlyComposed:function(){},profile:function(){},profileEnd:function(){},select:function(){},time:function(){},timeEnd:function(){},trace:function(){}});var i=function(){function n(n){this.owner=n}return n.prototype.trace=function(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];n.level<=n.TRACE&&this.log("TRACE",i)},n.prototype.debug=function(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];n.level<=n.DEBUG&&this.log("DEBUG",i)},n.prototype.info=function(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];n.level<=n.INFO&&this.log("INFO",i)},n.prototype.warn=function(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];n.level<=n.WARN&&this.log("WARN",i)},n.prototype.error=function(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];n.level<=n.ERROR&&this.log("ERROR",i)},n.prototype.log=function(t,i){window.console&&console.log&&(console.log([t,this.owner].concat(i)),n.executionTime&&(console.timeEnd("Execution time"),console.time("Execution time")))},n.enable=function(){n.level=n.TRACE},n.disable=function(){n.level=n.NOTHING},n}();i.TRACE=1;i.DEBUG=2;i.INFO=3;i.WARN=4;i.ERROR=5;i.NOTHING=6;i.level=i.INFO;i.executionTime=!1;t.Logger=i},function(n,t,i){"use strict";var o=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},s=i(11),r=i(13),e=i(14),u=function(){function n(){}return n.fail=function(t){n.failureHandler(t)},n.check=function(t,i){t||n.fail(i)},n.isUndefined=function(t){n.check(r.Utils.isUndefined(t),"Value should be undefined.")},n.isNotUndefined=function(t){n.check(!r.Utils.isUndefined(t),"Value should not be undefined.")},n.isNull=function(t){n.check(r.Utils.isNull(t),"Value should be null.")},n.isNotNull=function(t){n.check(!r.Utils.isNull(t),"Value should not be null.")},n.exists=function(t){n.check(!r.Utils.isNullOrUndefined(t),"Value should not be null or undefined")},n.doesNotExists=function(t){n.check(r.Utils.isNullOrUndefined(t),"Value should be null or undefined")},n.isString=function(t){n.check(e.isString(t),"Value should be a string.")},n.stringStartsWith=function(t,i){n.isNonEmptyString(t);n.isNonEmptyString(i);n.check(0==t.indexOf(i),"Value should start with "+i)},n.isNonEmptyString=function(t){n.check(r.Utils.isNonEmptyString(t),"Value should be a non-empty string.")},n.isNumber=function(t){n.check(e.isNumber(t),"Value should be a number.")},n.isLargerThan=function(t,i){n.check(i>t,"Value "+i+" should be larger than "+t)},n.isLargerOrEqualsThan=function(t,i){n.check(i>=t,"Value "+i+" should be larger or equal than "+t)},n.isSmallerThan=function(t,i){n.check(i<t,"Value "+i+" should be smaller than "+t)},n.isSmallerOrEqualsThan=function(t,i){n.check(i<=t,"Value "+i+" should be smaller or equal than "+t)},n}(),f;u.logger=new s.Logger("Assert");u.failureHandler=function(n){throw u.logger.error("Assertion Failed!",n),window.console&&console.trace&&console.trace(),new f(r.Utils.isNonEmptyString(n)?n:"Assertion Failed!");};t.Assert=u;f=function(n){function t(t){var i=n.call(this,t)||this;return i.message=t,i}return o(t,n),t.prototype.toString=function(){return this.message},t}(Error);t.PreconditionFailedException=f},function(n,t,i){"use strict";var r=i(14),u=/^@[a-zA-Z0-9_\.]+$/,f=function(){function n(){}return n.isUndefined=function(n){return"undefined"==typeof n},n.isNull=function(n){return null===n},n.isNullOrUndefined=function(t){return n.isUndefined(t)||n.isNull(t)},n.exists=function(t){return!n.isNullOrUndefined(t)},n.toNotNullString=function(n){return r.isString(n)?n:""},n.anyTypeToString=function(n){return n?n.toString():""},n.isNullOrEmptyString=function(t){return n.isNullOrUndefined(t)||!n.isNonEmptyString(t)},n.isNonEmptyString=function(n){return r.isString(n)&&""!==n},n.isEmptyString=function(t){return!n.isNonEmptyString(t)},n.stringStartsWith=function(n,t){return n.slice(0,t.length)==t},n.isNonEmptyArray=function(n){return r.isArray(n)&&n.length>0},n.isEmptyArray=function(t){return!n.isNonEmptyArray(t)},n.isHtmlElement=function(n){return void 0!=window.HTMLElement?n instanceof HTMLElement:n&&n.nodeType&&1==n.nodeType},n.parseIntIfNotUndefined=function(t){if(n.isNonEmptyString(t))return parseInt(t,10)},n.parseFloatIfNotUndefined=function(t){if(n.isNonEmptyString(t))return parseFloat(t)},n.round=function(n,t){return Math.round(n*Math.pow(10,t))/Math.pow(10,t)},n.parseBooleanIfNotUndefined=function(t){if(n.isNonEmptyString(t))switch(t.toLowerCase()){case"true":case"1":case"yes":return!0;case"false":case"0":case"no":return!1;default:return}},n.trim=function(n){return null==n?null:n.replace(/^\s+|\s+$/g,"")},n.encodeHTMLEntities=function(n){for(var i=[],t=n.length-1;t>=0;t--)/^[a-z0-9]/i.test(n[t])?i.unshift(n[t]):i.unshift(["&#",n.charCodeAt(t),";"].join(""));return i.join("")},n.decodeHTMLEntities=function(n){return n.replace(/&#(\d+);/g,function(n,t){return String.fromCharCode(t)})},n.arrayEqual=function(n,t,i){if(void 0===i&&(i=!0),i)return r.isEqual(n,t);var u=[n,t];return r.all(u,function(n){return n.length==u[0].length&&0==r.difference(n,u[0]).length})},n.objectEqual=function(n,t){return r.isEqual(n,t)},n.isCoveoField=function(n){return u.test(n)},n.escapeRegexCharacter=function(n){return n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},n.getCaseInsensitiveProperty=function(n,t){var i=n[t],u,f;return null==i&&(u=t.toLowerCase(),(i=n[u],null==i)&&(f=r.find(r.keys(n),function(n){return n.toLowerCase()==u}),null!=f&&(i=n[f]))),i},n.getFieldValue=function(t,i){var u,r,f;if(null!=i&&(i=n.trim(i),"@"==i[0]&&(i=i.substr(1)),""!=i)){if(!n.isCoveoField("@"+i))throw"Not a valid field : "+i;for(u=i.split(".").reverse(),r=t.raw;u.length>1;)if(r=n.getCaseInsensitiveProperty(r,u.pop()),n.isUndefined(r))return;return f=n.getCaseInsensitiveProperty(r,u[0]),null==f&&(f=n.getCaseInsensitiveProperty(t,i)),f}},n.throttle=function(n,t,i,r,u){void 0===i&&(i={});var o,f=null,e=0,s=function(){e=i.leading===!1?0:(new Date).getTime();f=null;o=n.apply(r,u)};return function(){var h=(new Date).getTime(),c;return e||i.leading!==!1||(e=h),c=t-(h-e),r=this,u=arguments,c<=0?(clearTimeout(f),f=null,e=h,o=n.apply(r,u)):f||i.trailing===!1||(f=setTimeout(s,c)),o}},n.extendDeep=function(t,i){t||(t={});var f=r.isArray(i),u=f&&[]||{};return f?(t=t||[],u=u.concat(t),r.each(i,function(i,r){"undefined"==typeof t[r]?u[r]=i:"object"==typeof i?u[r]=n.extendDeep(t[r],i):t.indexOf(i)===-1&&u.push(i)})):(t&&"object"==typeof t&&r.each(r.keys(t),function(n){u[n]=t[n]}),r.each(r.keys(i),function(r){u[r]="object"==typeof i[r]&&i[r]&&t[r]?n.extendDeep(t[r],i[r]):i[r]})),u},n.getQueryStringValue=function(n,t){return void 0===t&&(t=window.location.search),t.replace(new RegExp("^(?:.*[&\\?]"+n.replace(/[\.\+\*]/g,"\\$&")+"(?:\\=([^&]*))?)?.*$","i"),"$1")},n.isValidUrl=function(n){return/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/.test(n)},n.debounce=function(n,t){var i,r;return function(){for(var e=this,f=[],u=0;u<arguments.length;u++)f[u]=arguments[u];null==i?(i=setTimeout(function(){i=null},t),r=setTimeout(function(){n.apply(e,f);r=null})):null==r&&(clearTimeout(i),i=setTimeout(function(){n.apply(e,f);i=null},t))}},n.readCookie=function(n){for(var t,r=n+"=",u=document.cookie.split(";"),i=0;i<u.length;i++){for(t=u[i];" "==t.charAt(0);)t=t.substring(1,t.length);if(0==t.indexOf(r))return t.substring(r.length,t.length)}return null},n.toDashCase=function(n){return n.replace(/([a-z][A-Z])/g,function(n){return n[0]+"-"+n[1].toLowerCase()})},n.parseXml=function(n){if("undefined"!=typeof DOMParser)return(new DOMParser).parseFromString(n,"text/xml");if("undefined"!=typeof ActiveXObject&&new ActiveXObject("Microsoft.XMLDOM")){var t=new ActiveXObject("Microsoft.XMLDOM");return t.async="false",t.loadXML(n),t}throw new Error("No XML parser found");},n.copyObject=function(n,t){var i=this;r.each(r.keys(t),function(r){"object"==typeof t[r]&&t[r]&&n[r]?i.copyObject(n[r],t[r]):n[r]=t[r]})},n.copyObjectAttributes=function(n,t,i){var u=this;r.each(r.keys(t),function(f){r.contains(i,f)&&("object"==typeof t[f]&&t[f]&&n[f]?u.copyObject(n[f],t[f]):n[f]=t[f])})},n}();t.Utils=f},function(n,t){var r,i;(function(){function rt(n){function t(t,i,r,u,f,e){for(;f>=0&&f<e;f+=n){var o=u?u[f]:f;r=i(r,t[o],o,t)}return r}return function(i,r,f,o){r=c(r,o,4);var s=!e(i)&&u.keys(i),l=(s||i).length,h=n>0?0:l-1;return arguments.length<3&&(f=i[s?s[h]:h],h+=n),t(i,r,f,s,h,l)}}function ut(n){return function(t,i,r){i=f(i,r);for(var e=s(t),u=n>0?0:e-1;u>=0&&u<e;u+=n)if(i(t[u],u,t))return u;return-1}}function ft(n,t,i){return function(r,f,e){var c=0,h=s(r);if("number"==typeof e)n>0?c=e>=0?e:Math.max(e+h,c):h=e>=0?Math.min(e+1,h):e+h+1;else if(i&&e&&h)return e=i(r,f),r[e]===f?e:-1;if(f!==f)return e=t(o.call(r,c,h),u.isNaN),e>=0?e+c:-1;for(e=n>0?c:h-1;e>=0&&e<h;e+=n)if(r[e]===f)return e;return-1}}function et(n,t){var r=tt.length,f=n.constructor,e=u.isFunction(f)&&f.prototype||w,i="constructor";for(u.has(n,i)&&!u.contains(t,i)&&t.push(i);r--;)i=tt[r],i in n&&n[i]!==e[i]&&!u.contains(t,i)&&t.push(i)}var ot=this,pt=ot._,a=Array.prototype,w=Object.prototype,wt=Function.prototype,bt=a.push,o=a.slice,l=w.toString,kt=w.hasOwnProperty,dt=Array.isArray,st=Object.keys,b=wt.bind,ht=Object.create,k=function(){},u=function(n){return n instanceof u?n:this instanceof u?void(this._wrapped=n):new u(n)},c,f,v,h,g,nt,tt,y,yt,p;"undefined"!=typeof n&&n.exports&&(t=n.exports=u);t._=u;u.VERSION="1.8.3";c=function(n,t,i){if(void 0===t)return n;switch(null==i?3:i){case 1:return function(i){return n.call(t,i)};case 2:return function(i,r){return n.call(t,i,r)};case 3:return function(i,r,u){return n.call(t,i,r,u)};case 4:return function(i,r,u,f){return n.call(t,i,r,u,f)}}return function(){return n.apply(t,arguments)}};f=function(n,t,i){return null==n?u.identity:u.isFunction(n)?c(n,t,i):u.isObject(n)?u.matcher(n):u.property(n)};u.iteratee=function(n,t){return f(n,t,1/0)};var d=function(n,t){return function(i){var e=arguments.length,r,u;if(e<2||null==i)return i;for(r=1;r<e;r++)for(var o=arguments[r],s=n(o),h=s.length,f=0;f<h;f++)u=s[f],t&&void 0!==i[u]||(i[u]=o[u]);return i}},ct=function(n){if(!u.isObject(n))return{};if(ht)return ht(n);k.prototype=n;var t=new k;return k.prototype=null,t},lt=function(n){return function(t){if(null!=t)return t[n]}},gt=Math.pow(2,53)-1,s=lt("length"),e=function(n){var t=s(n);return"number"==typeof t&&t>=0&&t<=gt};u.each=u.forEach=function(n,t,i){var r,f,o;if(t=c(t,i),e(n))for(r=0,f=n.length;r<f;r++)t(n[r],r,n);else for(o=u.keys(n),r=0,f=o.length;r<f;r++)t(n[o[r]],o[r],n);return n};u.map=u.collect=function(n,t,i){var s;t=f(t,i);for(var o=!e(n)&&u.keys(n),h=(o||n).length,c=Array(h),r=0;r<h;r++)s=o?o[r]:r,c[r]=t(n[s],s,n);return c};u.reduce=u.foldl=u.inject=rt(1);u.reduceRight=u.foldr=rt(-1);u.find=u.detect=function(n,t,i){var r;if(r=e(n)?u.findIndex(n,t,i):u.findKey(n,t,i),void 0!==r&&r!==-1)return n[r]};u.filter=u.select=function(n,t,i){var r=[];return t=f(t,i),u.each(n,function(n,i,u){t(n,i,u)&&r.push(n)}),r};u.reject=function(n,t,i){return u.filter(n,u.negate(f(t)),i)};u.every=u.all=function(n,t,i){var s;t=f(t,i);for(var o=!e(n)&&u.keys(n),h=(o||n).length,r=0;r<h;r++)if(s=o?o[r]:r,!t(n[s],s,n))return!1;return!0};u.some=u.any=function(n,t,i){var s;t=f(t,i);for(var o=!e(n)&&u.keys(n),h=(o||n).length,r=0;r<h;r++)if(s=o?o[r]:r,t(n[s],s,n))return!0;return!1};u.contains=u.includes=u.include=function(n,t,i,r){return e(n)||(n=u.values(n)),("number"!=typeof i||r)&&(i=0),u.indexOf(n,t,i)>=0};u.invoke=function(n,t){var i=o.call(arguments,2),r=u.isFunction(t);return u.map(n,function(n){var u=r?t:n[t];return null==u?u:u.apply(n,i)})};u.pluck=function(n,t){return u.map(n,u.property(t))};u.where=function(n,t){return u.filter(n,u.matcher(t))};u.findWhere=function(n,t){return u.find(n,u.matcher(t))};u.max=function(n,t,i){var h,o,r=-(1/0),c=-(1/0),s,l;if(null==t&&null!=n)for(n=e(n)?n:u.values(n),s=0,l=n.length;s<l;s++)h=n[s],h>r&&(r=h);else t=f(t,i),u.each(n,function(n,i,u){o=t(n,i,u);(o>c||o===-(1/0)&&r===-(1/0))&&(r=n,c=o)});return r};u.min=function(n,t,i){var h,o,r=1/0,c=1/0,s,l;if(null==t&&null!=n)for(n=e(n)?n:u.values(n),s=0,l=n.length;s<l;s++)h=n[s],h<r&&(r=h);else t=f(t,i),u.each(n,function(n,i,u){o=t(n,i,u);(o<c||o===1/0&&r===1/0)&&(r=n,c=o)});return r};u.shuffle=function(n){for(var i,f=e(n)?n:u.values(n),o=f.length,r=Array(o),t=0;t<o;t++)i=u.random(0,t),i!==t&&(r[t]=r[i]),r[i]=f[t];return r};u.sample=function(n,t,i){return null==t||i?(e(n)||(n=u.values(n)),n[u.random(n.length-1)]):u.shuffle(n).slice(0,Math.max(0,t))};u.sortBy=function(n,t,i){return t=f(t,i),u.pluck(u.map(n,function(n,i,r){return{value:n,index:i,criteria:t(n,i,r)}}).sort(function(n,t){var i=n.criteria,r=t.criteria;if(i!==r){if(i>r||void 0===i)return 1;if(i<r||void 0===r)return-1}return n.index-t.index}),"value")};v=function(n){return function(t,i,r){var e={};return i=f(i,r),u.each(t,function(r,u){var f=i(r,u,t);n(e,r,f)}),e}};u.groupBy=v(function(n,t,i){u.has(n,i)?n[i].push(t):n[i]=[t]});u.indexBy=v(function(n,t,i){n[i]=t});u.countBy=v(function(n,t,i){u.has(n,i)?n[i]++:n[i]=1});u.toArray=function(n){return n?u.isArray(n)?o.call(n):e(n)?u.map(n,u.identity):u.values(n):[]};u.size=function(n){return null==n?0:e(n)?n.length:u.keys(n).length};u.partition=function(n,t,i){t=f(t,i);var r=[],e=[];return u.each(n,function(n,i,u){(t(n,i,u)?r:e).push(n)}),[r,e]};u.first=u.head=u.take=function(n,t,i){if(null!=n)return null==t||i?n[0]:u.initial(n,n.length-t)};u.initial=function(n,t,i){return o.call(n,0,Math.max(0,n.length-(null==t||i?1:t)))};u.last=function(n,t,i){if(null!=n)return null==t||i?n[n.length-1]:u.rest(n,Math.max(0,n.length-t))};u.rest=u.tail=u.drop=function(n,t,i){return o.call(n,null==t||i?1:t)};u.compact=function(n){return u.filter(n,u.identity)};h=function(n,t,i,r){for(var f,l,a,o=[],v=0,c=r||0,y=s(n);c<y;c++)if(f=n[c],e(f)&&(u.isArray(f)||u.isArguments(f)))for(t||(f=h(f,t,i)),l=0,a=f.length,o.length+=a;l<a;)o[v++]=f[l++];else i||(o[v++]=f);return o};u.flatten=function(n,t){return h(n,t,!1)};u.without=function(n){return u.difference(n,o.call(arguments,1))};u.uniq=u.unique=function(n,t,i,r){var e,c;u.isBoolean(t)||(r=i,i=t,t=!1);null!=i&&(i=f(i,r));for(var o=[],l=[],h=0,a=s(n);h<a;h++)e=n[h],c=i?i(e,h,n):e,t?(h&&l===c||o.push(e),l=c):i?u.contains(l,c)||(l.push(c),o.push(e)):u.contains(o,e)||o.push(e);return o};u.union=function(){return u.uniq(h(arguments,!0,!0))};u.intersection=function(n){for(var i,t,r=[],e=arguments.length,f=0,o=s(n);f<o;f++)if(i=n[f],!u.contains(r,i)){for(t=1;t<e&&u.contains(arguments[t],i);t++);t===e&&r.push(i)}return r};u.difference=function(n){var t=h(arguments,!0,!0,1);return u.filter(n,function(n){return!u.contains(t,n)})};u.zip=function(){return u.unzip(arguments)};u.unzip=function(n){for(var i=n&&u.max(n,s).length||0,r=Array(i),t=0;t<i;t++)r[t]=u.pluck(n,t);return r};u.object=function(n,t){for(var r={},i=0,u=s(n);i<u;i++)t?r[n[i]]=t[i]:r[n[i][0]]=n[i][1];return r};u.findIndex=ut(1);u.findLastIndex=ut(-1);u.sortedIndex=function(n,t,i,r){var e;i=f(i,r,1);for(var h=i(t),u=0,o=s(n);u<o;)e=Math.floor((u+o)/2),i(n[e])<h?u=e+1:o=e;return u};u.indexOf=ft(1,u.findIndex,u.sortedIndex);u.lastIndexOf=ft(-1,u.findLastIndex);u.range=function(n,t,i){null==t&&(t=n||0,n=0);i=i||1;for(var u=Math.max(Math.ceil((t-n)/i),0),f=Array(u),r=0;r<u;r++,n+=i)f[r]=n;return f};g=function(n,t,i,r,f){if(!(r instanceof t))return n.apply(i,f);var e=ct(n.prototype),o=n.apply(e,f);return u.isObject(o)?o:e};u.bind=function(n,t){if(b&&n.bind===b)return b.apply(n,o.call(arguments,1));if(!u.isFunction(n))throw new TypeError("Bind must be called on a function");var r=o.call(arguments,2),i=function(){return g(n,i,t,this,r.concat(o.call(arguments)))};return i};u.partial=function(n){var t=o.call(arguments,1),i=function(){for(var f=0,o=t.length,e=Array(o),r=0;r<o;r++)e[r]=t[r]===u?arguments[f++]:t[r];for(;f<arguments.length;)e.push(arguments[f++]);return g(n,i,this,this,e)};return i};u.bindAll=function(n){var t,i,r=arguments.length;if(r<=1)throw new Error("bindAll must be passed function names");for(t=1;t<r;t++)i=arguments[t],n[i]=u.bind(n[i],n);return n};u.memoize=function(n,t){var i=function(r){var f=i.cache,e=""+(t?t.apply(this,arguments):r);return u.has(f,e)||(f[e]=n.apply(this,arguments)),f[e]};return i.cache={},i};u.delay=function(n,t){var i=o.call(arguments,2);return setTimeout(function(){return n.apply(null,i)},t)};u.defer=u.partial(u.delay,u,1);u.throttle=function(n,t,i){var f,e,s,r=null,o=0,h;return i||(i={}),h=function(){o=i.leading===!1?0:u.now();r=null;s=n.apply(f,e);r||(f=e=null)},function(){var l=u.now(),c;return o||i.leading!==!1||(o=l),c=t-(l-o),f=this,e=arguments,c<=0||c>t?(r&&(clearTimeout(r),r=null),o=l,s=n.apply(f,e),r||(f=e=null)):r||i.trailing===!1||(r=setTimeout(h,c)),s}};u.debounce=function(n,t,i){var r,f,e,s,o,h=function(){var c=u.now()-s;c<t&&c>=0?r=setTimeout(h,t-c):(r=null,i||(o=n.apply(e,f),r||(e=f=null)))};return function(){e=this;f=arguments;s=u.now();var c=i&&!r;return r||(r=setTimeout(h,t)),c&&(o=n.apply(e,f),e=f=null),o}};u.wrap=function(n,t){return u.partial(t,n)};u.negate=function(n){return function(){return!n.apply(this,arguments)}};u.compose=function(){var n=arguments,t=n.length-1;return function(){for(var r=t,i=n[t].apply(this,arguments);r--;)i=n[r].call(this,i);return i}};u.after=function(n,t){return function(){if(--n<1)return t.apply(this,arguments)}};u.before=function(n,t){var i;return function(){return--n>0&&(i=t.apply(this,arguments)),n<=1&&(t=null),i}};u.once=u.partial(u.before,2);nt=!{toString:null}.propertyIsEnumerable("toString");tt=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];u.keys=function(n){var t,i;if(!u.isObject(n))return[];if(st)return st(n);t=[];for(i in n)u.has(n,i)&&t.push(i);return nt&&et(n,t),t};u.allKeys=function(n){var t,i;if(!u.isObject(n))return[];t=[];for(i in n)t.push(i);return nt&&et(n,t),t};u.values=function(n){for(var i=u.keys(n),r=i.length,f=Array(r),t=0;t<r;t++)f[t]=n[i[t]];return f};u.mapObject=function(n,t,i){t=f(t,i);for(var r,o=u.keys(n),h=o.length,s={},e=0;e<h;e++)r=o[e],s[r]=t(n[r],r,n);return s};u.pairs=function(n){for(var i=u.keys(n),r=i.length,f=Array(r),t=0;t<r;t++)f[t]=[i[t],n[i[t]]];return f};u.invert=function(n){for(var r={},i=u.keys(n),t=0,f=i.length;t<f;t++)r[n[i[t]]]=i[t];return r};u.functions=u.methods=function(n){var t=[];for(var i in n)u.isFunction(n[i])&&t.push(i);return t.sort()};u.extend=d(u.allKeys);u.extendOwn=u.assign=d(u.keys);u.findKey=function(n,t,i){t=f(t,i);for(var r,o=u.keys(n),e=0,s=o.length;e<s;e++)if(r=o[e],t(n[r],r,n))return r};u.pick=function(n,t,i){var s,f,l={},r=n,e,v,o,a;if(null==r)return l;for(u.isFunction(t)?(f=u.allKeys(r),s=c(t,i)):(f=h(arguments,!1,!1,1),s=function(n,t,i){return t in i},r=Object(r)),e=0,v=f.length;e<v;e++)o=f[e],a=r[o],s(a,o,r)&&(l[o]=a);return l};u.omit=function(n,t,i){if(u.isFunction(t))t=u.negate(t);else{var r=u.map(h(arguments,!1,!1,1),String);t=function(n,t){return!u.contains(r,t)}}return u.pick(n,t,i)};u.defaults=d(u.allKeys,!0);u.create=function(n,t){var i=ct(n);return t&&u.extendOwn(i,t),i};u.clone=function(n){return u.isObject(n)?u.isArray(n)?n.slice():u.extend({},n):n};u.tap=function(n,t){return t(n),n};u.isMatch=function(n,t){var e=u.keys(t),o=e.length,f,i,r;if(null==n)return!o;for(f=Object(n),i=0;i<o;i++)if(r=e[i],t[r]!==f[r]||!(r in f))return!1;return!0};y=function(n,t,i,r){var s,c,e,o,f,h,a;if(n===t)return 0!==n||1/n==1/t;if(null==n||null==t)return n===t;if(n instanceof u&&(n=n._wrapped),t instanceof u&&(t=t._wrapped),s=l.call(n),s!==l.call(t))return!1;switch(s){case"[object RegExp]":case"[object String]":return""+n==""+t;case"[object Number]":return+n!=+n?+t!=+t:0==+n?1/+n==1/t:+n==+t;case"[object Date]":case"[object Boolean]":return+n==+t}if(c="[object Array]"===s,!c&&("object"!=typeof n||"object"!=typeof t||(e=n.constructor,o=t.constructor,e!==o&&!(u.isFunction(e)&&e instanceof e&&u.isFunction(o)&&o instanceof o)&&"constructor"in n&&"constructor"in t)))return!1;for(i=i||[],r=r||[],f=i.length;f--;)if(i[f]===n)return r[f]===t;if(i.push(n),r.push(t),c){if(f=n.length,f!==t.length)return!1;for(;f--;)if(!y(n[f],t[f],i,r))return!1}else{if(a=u.keys(n),f=a.length,u.keys(t).length!==f)return!1;for(;f--;)if(h=a[f],!u.has(t,h)||!y(n[h],t[h],i,r))return!1}return i.pop(),r.pop(),!0};u.isEqual=function(n,t){return y(n,t)};u.isEmpty=function(n){return null==n||(e(n)&&(u.isArray(n)||u.isString(n)||u.isArguments(n))?0===n.length:0===u.keys(n).length)};u.isElement=function(n){return!(!n||1!==n.nodeType)};u.isArray=dt||function(n){return"[object Array]"===l.call(n)};u.isObject=function(n){var t=typeof n;return"function"===t||"object"===t&&!!n};u.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(n){u["is"+n]=function(t){return l.call(t)==="[object "+n+"]"}});u.isArguments(arguments)||(u.isArguments=function(n){return u.has(n,"callee")});"function"!=typeof/./&&"object"!=typeof Int8Array&&(u.isFunction=function(n){return"function"==typeof n||!1});u.isFinite=function(n){return isFinite(n)&&!isNaN(parseFloat(n))};u.isNaN=function(n){return u.isNumber(n)&&n!==+n};u.isBoolean=function(n){return n===!0||n===!1||"[object Boolean]"===l.call(n)};u.isNull=function(n){return null===n};u.isUndefined=function(n){return void 0===n};u.has=function(n,t){return null!=n&&kt.call(n,t)};u.noConflict=function(){return ot._=pt,this};u.identity=function(n){return n};u.constant=function(n){return function(){return n}};u.noop=function(){};u.property=lt;u.propertyOf=function(n){return null==n?function(){}:function(t){return n[t]}};u.matcher=u.matches=function(n){return n=u.extendOwn({},n),function(t){return u.isMatch(t,n)}};u.times=function(n,t,i){var u=Array(Math.max(0,n)),r;for(t=c(t,i,1),r=0;r<n;r++)u[r]=t(r);return u};u.random=function(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))};u.now=Date.now||function(){return(new Date).getTime()};var at={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},ni=u.invert(at),vt=function(n){var i=function(t){return n[t]},t="(?:"+u.keys(n).join("|")+")",r=RegExp(t),f=RegExp(t,"g");return function(n){return n=null==n?"":""+n,r.test(n)?n.replace(f,i):n}};u.escape=vt(at);u.unescape=vt(ni);u.result=function(n,t,i){var r=null==n?void 0:n[t];return void 0===r&&(r=i),u.isFunction(r)?r.call(n):r};yt=0;u.uniqueId=function(n){var t=++yt+"";return n?n+t:t};u.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var it=/(.)^/,ti={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},ii=/\\|'|\r|\n|\u2028|\u2029/g,ri=function(n){return"\\"+ti[n]};u.template=function(n,t,i){var o,f,s;!t&&i&&(t=i);t=u.defaults({},t,u.templateSettings);var h=RegExp([(t.escape||it).source,(t.interpolate||it).source,(t.evaluate||it).source].join("|")+"|$","g"),e=0,r="__p+='";n.replace(h,function(t,i,u,f,o){return r+=n.slice(e,o).replace(ii,ri),e=o+t.length,i?r+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'":u?r+="'+\n((__t=("+u+"))==null?'':__t)+\n'":f&&(r+="';\n"+f+"\n__p+='"),t});r+="';\n";t.variable||(r="with(obj||{}){\n"+r+"}\n");r="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+r+"return __p;\n";try{o=new Function(t.variable||"obj","_",r)}catch(n){throw n.source=r,n;}return f=function(n){return o.call(this,n,u)},s=t.variable||"obj",f.source="function("+s+"){\n"+r+"}",f};u.chain=function(n){var t=u(n);return t._chain=!0,t};p=function(n,t){return n._chain?u(t).chain():t};u.mixin=function(n){u.each(u.functions(n),function(t){var i=u[t]=n[t];u.prototype[t]=function(){var n=[this._wrapped];return bt.apply(n,arguments),p(this,i.apply(u,n))}})};u.mixin(u);u.each(["pop","push","reverse","shift","sort","splice","unshift"],function(n){var t=a[n];u.prototype[n]=function(){var i=this._wrapped;return t.apply(i,arguments),"shift"!==n&&"splice"!==n||0!==i.length||delete i[0],p(this,i)}});u.each(["concat","join","slice"],function(n){var t=a[n];u.prototype[n]=function(){return p(this,t.apply(this._wrapped,arguments))}});u.prototype.value=function(){return this._wrapped};u.prototype.valueOf=u.prototype.toJSON=u.prototype.value;u.prototype.toString=function(){return""+this._wrapped};r=[];i=function(){return u}.apply(t,r);!(void 0!==i&&(n.exports=i))}).call(this)},function(n,t,i){"use strict";var r=i(12),u=function(){function n(n,t){void 0===t&&(t=!0);this.milliseconds=t?n:1e3*n}return n.prototype.getMilliseconds=function(){return this.milliseconds},n.prototype.getSeconds=function(){return this.getMilliseconds()/1e3},n.prototype.getMinutes=function(){return this.getSeconds()/60},n.prototype.getHours=function(){return this.getMinutes()/60},n.prototype.getDays=function(){return this.getHours()/24},n.prototype.getWeeks=function(){return this.getDays()/7},n.prototype.getHHMMSS=function(){var t,u,f,n=Math.floor(this.getHours()),i=Math.floor(this.getMinutes())%60,r=Math.floor(this.getSeconds())%60;return t=0==n?"":n<10?"0"+n.toString():n.toString(),u=i<10?"0"+i.toString():i.toString(),f=r<10?"0"+r.toString():r.toString(),(""!=t?t+":":"")+u+":"+f},n.fromDates=function(t,i){return r.Assert.exists(t),r.Assert.exists(i),new n(i.valueOf()-t.valueOf())},n}();t.TimeSpan=u},function(n,t,i){"use strict";var r=i(17),u=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),f=function(){function n(){}return n.getDeviceName=function(){var n=navigator.userAgent;return n.match(/Android/i)?"Android":n.match(/BlackBerry/i)?"BlackBerry":n.match(/iPhone/i)?"iPhone":n.match(/iPad/i)?"iPad":n.match(/iPod/i)?"iPod":n.match(/Opera Mini/i)?"Opera Mini":n.match(/IEMobile/i)?"IE Mobile":n.match(/Chrome/i)?"Chrome":n.match(/MSIE/i)||n.match(/Trident/i)?"IE":n.match(/Opera/i)?"Opera":n.match(/Firefox/i)?"Firefox":n.match(/Safari/i)?"Safari":"Others"},n.isAndroid=function(){return"Android"==n.getDeviceName()},n.isIos=function(){var t=n.getDeviceName();return"iPhone"==t||"iPad"==t||"iPod"==t},n.isIE8or9=function(){var n=navigator.userAgent.toLowerCase();return n.indexOf("msie")!=-1&&parseInt(n.split("msie")[1])<10},n.isMobileDevice=function(){return u},n.isSmallScreenWidth=function(){return(new r.ResponsiveComponents).isSmallScreenWidth()},n}();t.DeviceUtils=f},function(n,t,i){"use strict";var r=i(12),u;t.MEDIUM_SCREEN_WIDTH=800;t.SMALL_SCREEN_WIDTH=480;u=function(){function n(n){void 0===n&&(n=window);this.windoh=n}return n.prototype.setSmallScreenWidth=function(n){r.Assert.check(n<this.getMediumScreenWidth(),"Cannot set small screen width ("+n+") larger or equal to the current medium screen width ("+this.getMediumScreenWidth()+")");this.smallScreenWidth=n},n.prototype.setMediumScreenWidth=function(n){r.Assert.check(n>this.getSmallScreenWidth(),"Cannot set medium screen width ("+n+") smaller or equal to the current small screen width ("+this.getSmallScreenWidth()+")");this.mediumScreenWidth=n},n.prototype.getSmallScreenWidth=function(){return null==this.smallScreenWidth?t.SMALL_SCREEN_WIDTH:this.smallScreenWidth},n.prototype.getMediumScreenWidth=function(){return null==this.mediumScreenWidth?t.MEDIUM_SCREEN_WIDTH:this.mediumScreenWidth},n.prototype.isSmallScreenWidth=function(){return null!=this.windoh.clientWidth?this.windoh.clientWidth<=this.getSmallScreenWidth():document.body.clientWidth<=this.getSmallScreenWidth()},n.prototype.isMediumScreenWidth=function(){return!this.isSmallScreenWidth()&&(null!=this.windoh.clientWidth?this.windoh.clientWidth<=this.getMediumScreenWidth():document.body.clientWidth<=this.getMediumScreenWidth())},n.prototype.isLargeScreenWidth=function(){return!this.isSmallScreenWidth()&&!this.isMediumScreenWidth()},n}();t.ResponsiveComponents=u},function(n,t){"use strict";var i=function(){function n(){}return n.getJQuery=function(){return!!(window&&window.Coveo&&window.Coveo.$)&&window.Coveo.$},n.isInstanceOfJQuery=function(n){var t=this.getJQuery();return!!t&&n instanceof t},n.isInstanceOfJqueryEvent=function(n){var t=this.getJQuery();return!!t&&n instanceof t.Event},n}();t.JQueryUtils=i},function(n,t,i){"use strict";var r=i(12),u=function(){function n(n,t){this.message=n;this.status=t;r.Assert.exists(n);r.Assert.exists(t);this.name=this.type="Ajax Error (status: "+t+")"}return n}();t.AjaxError=u},function(n,t){"use strict";var i=function(){function n(n){this.provider=n;this.isMissingAuthentication=!0;this.name=this.type=this.message="Missing Authentication (provider: "+n+")"}return n}();t.MissingAuthenticationError=i},function(n,t,i){"use strict";var r=i(12),f=i(13),u=i(14),e=function(){function n(){}return n.createGuid=function(){return"undefined"!=typeof crypto&&"undefined"!=typeof crypto.getRandomValues?n.generateWithCrypto():n.generateWithRandom()},n.generateWithRandom=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var t=16*Math.random()|0,i="x"==n?t:3&t|8;return i.toString(16)})},n.generateWithCrypto=function(){var n=new Uint16Array(8),t;return crypto.getRandomValues(n),t=function(n){for(var t=n.toString(16);t.length<4;)t="0"+t;return t},t(n[0])+t(n[1])+"-"+t(n[2])+"-"+t(n[3])+"-"+t(n[4])+"-"+t(n[5])+t(n[6])+t(n[7])},n.setStateObjectOnQueryResults=function(t,i){n.setPropertyOnResults(i,"state",t)},n.setStateObjectOnQueryResult=function(t,i){n.setPropertyOnResult(i,"state",t)},n.setSearchInterfaceObjectOnQueryResult=function(t,i){n.setPropertyOnResult(i,"searchInterface",t)},n.setIndexAndUidOnQueryResults=function(t,i,u,f,e){r.Assert.exists(t);r.Assert.exists(i);var o=t.firstResult;n.setPropertyOnResults(i,"queryUid",u);n.setPropertyOnResults(i,"pipeline",f);n.setPropertyOnResults(i,"splitTestRun",e);n.setPropertyOnResults(i,"index",o,function(){return++o})},n.setTermsToHighlightOnQueryResults=function(t,i){n.setPropertyOnResults(i,"termsToHighlight",i.termsToHighlight);n.setPropertyOnResults(i,"phrasesToHighlight",i.phrasesToHighlight)},n.splitFlags=function(n,t){return void 0===t&&(t=";"),r.Assert.exists(n),n.split(t)},n.isAttachment=function(t){return u.contains(n.splitFlags(t.flags),"IsAttachment")},n.containsAttachment=function(t){return u.contains(n.splitFlags(t.flags),"ContainsAttachment")},n.hasHTMLVersion=function(t){return u.contains(n.splitFlags(t.flags),"HasHtmlVersion")},n.hasThumbnail=function(t){return u.contains(n.splitFlags(t.flags),"HasThumbnail")},n.hasExcerpt=function(n){return void 0!=n.excerpt&&""!=n.excerpt},n.getAuthor=function(n){return n.raw.author},n.getUriHash=function(n){return n.raw.urihash},n.getObjectType=function(n){return n.raw.objecttype},n.getCollection=function(n){return n.raw.collection},n.getSource=function(n){return n.raw.source},n.getLanguage=function(n){return n.raw.language},n.getUniqueId=function(n){var t,i,r=n.raw.uniqueid;return r?(i="uniqueid",t=r):(i="urihash",t=n.raw.urihash),{fieldValue:t,fieldUsed:i}},n.quoteAndEscapeIfNeeded=function(t){return r.Assert.isString(t),n.isAtomicString(t)||n.isRangeString(t)||n.isRangeWithoutOuterBoundsString(t)?t:n.quoteAndEscape(t)},n.quoteAndEscape=function(t){return r.Assert.isString(t),'"'+n.escapeString(t)+'"'},n.escapeString=function(n){return r.Assert.isString(n),n.replace(/"/g," ")},n.isAtomicString=function(n){return r.Assert.isString(n),/^\d+(\.\d+)?$|^[\d\w]+$/.test(n)},n.isRangeString=function(n){return r.Assert.isString(n),/^\d+(\.\d+)?\.\.\d+(\.\d+)?$|^\d{4}\/\d{2}\/\d{2}@\d{2}:\d{2}:\d{2}\.\.\d{4}\/\d{2}\/\d{2}@\d{2}:\d{2}:\d{2}$/.test(n)},n.isRangeWithoutOuterBoundsString=function(n){return r.Assert.isString(n),/^\d+(\.\d+)?$|^\d{4}\/\d{2}\/\d{2}@\d{2}:\d{2}:\d{2}$/.test(n)},n.buildFieldExpression=function(t,i,f){return r.Assert.isNonEmptyString(t),r.Assert.stringStartsWith(t,"@"),r.Assert.isNonEmptyString(i),r.Assert.isLargerOrEqualsThan(1,f.length),1==f.length?t+i+n.quoteAndEscapeIfNeeded(f[0]):t+i+"("+u.map(f,function(t){return n.quoteAndEscapeIfNeeded(t)}).join(",")+")"},n.buildFieldNotEqualExpression=function(t,i){r.Assert.isNonEmptyString(t);r.Assert.stringStartsWith(t,"@");r.Assert.isLargerOrEqualsThan(1,i.length);var f;return f=1==i.length?t+"=="+n.quoteAndEscapeIfNeeded(i[0]):t+"==("+u.map(i,function(t){return n.quoteAndEscapeIfNeeded(t)}).join(",")+")","(NOT "+f+")"},n.mergeQueryString=function(n,t){var i=n.indexOf("?");return n+(i!=-1?"&"+t:"?"+t)},n.mergePath=function(n,t){var i=n.split("?");return i[0]+t+"?"+(i[1]||"")},n.setPropertyOnResults=function(t,i,r,f){u.each(t.results,function(t){n.setPropertyOnResult(t,i,r);r=f?f():r})},n.setPropertyOnResult=function(n,t,i){n[t]=i;u.each(n.childResults,function(n){n[t]=i});f.Utils.isNullOrUndefined(n.parentResult)||(n.parentResult[t]=i)},n.getUrlParameter=function(n){return decodeURIComponent((new RegExp("[?|&]"+n+"=([^&;]+?)(&|#|;|$)").exec(location.search)||[,""])[1].replace(/\+/g,"%20"))||null},n.isStratusAgnosticField=function(n,t){var u=/^(@?)(sys)?(.*)/i,i=u.exec(n),r=u.exec(t);return!(!i||!r)&&(i[1]+i[3]).toLowerCase()==(r[1]+r[3]).toLowerCase()},n}();t.QueryUtils=e},function(n,t,i){"use strict";var r=i(12),u=function(){function n(n){this.status=n.statusCode;this.message=n.data.message;this.name=this.type=n.data.type;this.queryExecutionReport=n.data.executionReport;r.Assert.isNumber(this.status);r.Assert.isNonEmptyString(this.message);r.Assert.isNonEmptyString(this.type)}return n}();t.QueryError=u},function(n,t,i){"use strict";t.ModalBox=i(24);t.MagicBox=i(25);t.LocaleString=i(26)},function(n){var t;!function(n){var t;!function(n){function r(n,r){var e,u,c,o,l,a,s,h;return void 0===r&&(r={}),e=r.body||document.body,e.className?e.className.indexOf("coveo-modalBox-opened")==-1&&(e.className+=" coveo-modalBox-opened"):e.className="coveo-modalBox-opened",u=document.createElement("div"),u.className="coveo-modalBox",e.appendChild(u),r.fullscreen===!0&&(u.className+=" coveo-fullscreen"),c=document.createElement("div"),c.className="coveo-overlay",u.appendChild(c),o=document.createElement("div"),(o.className="coveo-wrapper",u.appendChild(o),null!=r.title)&&(l=document.createElement("div"),l.className="coveo-title",o.appendChild(l),l.innerHTML=r.title,r.titleClose===!0&&l.addEventListener("click",function(){return s()})),n.className+=" coveo-body",o.appendChild(n),s=function(n,t){var h,o;return(void 0===n&&(n=0),void 0===t&&(t=!1),h=null==r.validation||r.validation(n),h!==!1||t)?(u.parentElement&&u.parentElement.removeChild(u),o=i.indexOf(s),o>=0&&i.splice(o,1),null==e.querySelector(".coveo-modalBox")&&f(e,"coveo-modalBox-opened"),!0):!1},h=function(n,t){var i=document.createElement("div");i.className="coveo-button";i.textContent=n;i.addEventListener("click",function(){return s(t)});a.appendChild(i)},null!=r.buttons&&(a=document.createElement("div"),a.className="coveo-buttons",o.appendChild(a),r.buttons&t.OK&&h("Ok",t.OK),r.buttons&t.APPLY&&h("Apply",t.APPLY),r.buttons&t.YES&&h("Yes",t.YES),r.buttons&t.NO&&h("No",t.NO),r.buttons&t.CANCEL&&h("Cancel",t.CANCEL)),i.push(s),r.overlayClose===!0&&c.addEventListener("click",function(){return s()}),null!=r.className&&(u.className+=" "+r.className),{modalBox:u,overlay:c,wrapper:o,buttons:a,content:n,close:s}}function u(n){var t,r;for(void 0===n&&(n=!1),t=0;i.length>t;)r=i[t](0,n),r||t++}function f(n,t){n.className=n.className.replace(new RegExp("(^|\\s)"+t+"(\\s|\\b)","g"),"$1")}!function(n){n[n.OK=1]="OK";n[n.APPLY=2]="APPLY";n[n.YES=4]="YES";n[n.NO=8]="NO";n[n.CANCEL=16]="CANCEL"}(n.BUTTON||(n.BUTTON={}));var t=n.BUTTON,i=[];n.open=r;n.close=u}(t=n.ModalBox||(n.ModalBox={}))}(t||(t={}));n.exports=t.ModalBox},function(n){var i=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},t;!function(n){var t;!function(n){var t=function(){function t(n,t,i){var r=this;this.expression=t;this.input=i;_.isString(n)?this.value=n:_.isArray(n)&&(this.subResults=n,_.forEach(this.subResults,function(n){n.parent=r}))}return t.prototype.isSuccess=function(){return null!=this.value||null!=this.subResults&&_.all(this.subResults,function(n){return n.isSuccess()})},t.prototype.path=function(n){var t=null!=this.parent&&this.parent!=n?this.parent.path(n):[];return t.push(this),t},t.prototype.findParent=function(n){for(var t=this,i=_.isString(n)?function(t){return n==t.expression.id}:n;null!=t&&!i(t);)t=t.parent;return t},t.prototype.find=function(n){var r=_.isString(n)?function(t){return n==t.expression.id}:n,t,i;if(r(this))return this;if(this.subResults)for(t=0;t<this.subResults.length;t++)if(i=this.subResults[t].find(r),i)return i;return null},t.prototype.findAll=function(n){var t=[],i=_.isString(n)?function(t){return n==t.expression.id}:n;return i(this)&&t.push(this),this.subResults&&(t=_.reduce(this.subResults,function(n,t){return n.concat(t.findAll(i))},t)),t},t.prototype.resultAt=function(n,t){var f,i,r,u;if(n<0||n>this.getLength())return[];if(null!=t){if(_.isString(t)){if(t==this.expression.id)return[this]}else if(t(this))return[this]}else if(f=null==this.value&&null==this.subResults?this.input:this.value,null!=f)return[this];if(null!=this.subResults){for(i=[],r=0;r<this.subResults.length;r++)if(u=this.subResults[r],i=i.concat(u.resultAt(n,t)),n-=u.getLength(),n<0)break;return i}return[]},t.prototype.getExpect=function(){return null==this.value&&null==this.subResults?[this]:null!=this.subResults?_.reduce(this.subResults,function(n,t){return n.concat(t.getExpect())},[]):[]},t.prototype.getBestExpect=function(){var t=this.getExpect(),n=_.groupBy(t,function(n){return n.input}),i=_.last(_.keys(n).sort(function(n,t){return t.length-n.length})),r=n[i],n=_.groupBy(r,function(n){return n.expression.id});return _.map(n,function(n){return _.chain(n).map(function(n){return{path:n.path().length,result:n}}).sortBy("path").pluck("result").first().value()})},t.prototype.getHumanReadableExpect=function(){var n=this.getBestExpect(),t=n.length>0?_.last(n).input:"";return"Expected "+_.map(n,function(n){return n.getHumanReadable()}).join(" or ")+" but "+(t.length>0?JSON.stringify(t[0]):"end of input")+" found."},t.prototype.before=function(){if(null==this.parent)return"";var n=_.indexOf(this.parent.subResults,this);return this.parent.before()+_.chain(this.parent.subResults).first(n).map(function(n){return n.toString()}).join("").value()},t.prototype.after=function(){if(null==this.parent)return"";var n=_.indexOf(this.parent.subResults,this);return _.chain(this.parent.subResults).last(this.parent.subResults.length-n-1).map(function(n){return n.toString()}).join("").value()+this.parent.after()},t.prototype.getLength=function(){return null!=this.value?this.value.length:null!=this.subResults?_.reduce(this.subResults,function(n,t){return n+t.getLength()},0):this.input.length},t.prototype.toHtmlElement=function(){var n=document.createElement("span"),f=null!=this.expression?this.expression.id:null,t,i,r,u;return null!=f&&(t=document.createAttribute("data-id"),t.value=f,n.setAttributeNode(t)),i=document.createAttribute("data-success"),(i.value=this.isSuccess().toString(),n.setAttributeNode(i),null!=this.value)?(n.appendChild(document.createTextNode(this.value)),r=document.createAttribute("data-value"),r.value=this.value,n.setAttributeNode(r)):null!=this.subResults?_.each(this.subResults,function(t){n.appendChild(t.toHtmlElement())}):(n.appendChild(document.createTextNode(this.input)),u=document.createAttribute("data-input"),u.value=this.input,n.setAttributeNode(u),n.className="magic-box-error"+(this.input.length>0?"":" magic-box-error-empty")),n.result=this,n},t.prototype.clean=function(n){var i,r,u;return null!=n||!this.isSuccess()?(n=n||_.last(this.getBestExpect()).path(this),i=_.first(n),null!=i)?(r=_.indexOf(this.subResults,i),u=r==-1?[]:_.map(_.first(this.subResults,r),function(n){return n.clean()}),u.push(i.clean(_.rest(n))),new t(u,this.expression,this.input)):new t(null,this.expression,this.input):null!=this.value?new t(this.value,this.expression,this.input):null!=this.subResults?new t(_.map(this.subResults,function(n){return n.clean()}),this.expression,this.input):void 0},t.prototype.clone=function(){return null!=this.value?new t(this.value,this.expression,this.input):null!=this.subResults?new t(_.map(this.subResults,function(n){return n.clone()}),this.expression,this.input):new t(null,this.expression,this.input)},t.prototype.toString=function(){return null!=this.value?this.value:null!=this.subResults?_.map(this.subResults,function(n){return n.toString()}).join(""):this.input},t.prototype.getHumanReadable=function(){return this.expression instanceof n.ExpressionConstant?JSON.stringify(this.expression.value):this.expression.id},t}();n.Result=t}(t=n.MagicBox||(n.MagicBox={}))}(t||(t={}));!function(n){var t;!function(n){var t=function(t){function r(i){t.call(this,[i],n.ExpressionEndOfInput,i.input);var r=new n.Result(null,n.ExpressionEndOfInput,i.input.substr(i.getLength()));r.parent=this;this.subResults.push(r)}return i(r,t),r}(n.Result);n.EndOfInputResult=t}(t=n.MagicBox||(n.MagicBox={}))}(t||(t={}));!function(n){var t;!function(n){var t=function(t){function r(n,i,r,u){var f=this;t.call(this,null!=n?[n]:null,i,r);this.result=n;this.expression=i;this.input=r;this.failAttempt=u;_.forEach(this.failAttempt,function(n){n.parent=f})}return i(r,t),r.prototype.getExpect=function(){var t=this,n=[];return null!=this.result&&(n=this.result.getExpect()),n=_.reduce(this.failAttempt,function(n,t){return n.concat(t.getExpect())},n),n.length>0&&_.all(n,function(n){return n.input==t.input})?[this]:n},r.prototype.clean=function(t){if(null!=t||!this.isSuccess()){t=_.rest(t||_.last(this.getBestExpect()).path(this));var i=_.first(t);return null==i?new n.Result(null,this.expression,this.input):new n.Result([i.clean(_.rest(t))],this.expression,this.input)}return new n.Result(_.map(this.result.subResults,function(n){return n.clean()}),this.expression,this.input)},r}(n.Result);n.OptionResult=t}(t=n.MagicBox||(n.MagicBox={}))}(t||(t={}));!function(n){var t;!function(n){var t=function(t){function r(n,i,r,u){t.call(this,n,i,r);this.results=n;this.expression=i;this.input=r;_.last(n)!=u&&(this.failAttempt=u,null!=this.failAttempt&&(this.failAttempt.parent=this))}return i(r,t),r.prototype.getExpect=function(){var n=t.prototype.getExpect.call(this);return null!=this.failAttempt?n.concat(this.failAttempt.getExpect()):n},r.prototype.clean=function(i){var r,u,f;return null!=this.failAttempt&&(null!=i||!this.isSuccess())&&(i=i||_.last(this.getBestExpect()).path(this),r=_.first(i),null!=r&&r==this.failAttempt)?(u=_.last(this.subResults),f=_.map(null!=u&&u.isSuccess()?this.subResults:_.initial(this.subResults),function(n){return n.clean()}),f.push(r.clean(_.rest(i))),new n.Result(f,this.expression,this.input)):t.prototype.clean.call(this,i)},r}(n.Result);n.RefResult=t}(t=n.MagicBox||(n.MagicBox={}))}(t||(t={}));!function(n){var t;!function(n){var t=function(){function t(n,t){this.value=n;this.id=t}return t.prototype.parse=function(t,i){var r=0==t.indexOf(this.value),u=new n.Result(r?this.value:null,this,t);return r&&i&&t.length>this.value.length?new n.EndOfInputResult(u):u},t.prototype.toString=function(){return this.value},t}();n.ExpressionConstant=t}(t=n.MagicBox||(n.MagicBox={}))}(t||(t={}));!function(n){var t;!function(n){n.ExpressionEndOfInput={id:"end of input",parse:null}}(t=n.MagicBox||(n.MagicBox={}))}(t||(t={}));!function(n){var t;!function(n){var t=function(){function n(n,t,i){this.func=n;this.id=t;this.grammar=i}return n.prototype.parse=function(n,t){return this.func(n,t,this)},n.prototype.toString=function(){return this.id},n}();n.ExpressionFunction=t}(t=n.MagicBox||(n.MagicBox={}))}(t||(t={}));!function(n){var t;!function(n){var t=function(){function t(n,t){if(this.parts=n,this.id=t,0==n.length)throw JSON.stringify(t)+" should have at least 1 parts";}return t.prototype.parse=function(t,i){for(var o,r,e=[],f=t,u=0;u<this.parts.length;u++){if(o=this.parts[u],r=o.parse(f,i&&u==this.parts.length-1),e.push(r),!r.isSuccess())break;f=f.substr(r.getLength())}return new n.Result(e,this,t)},t.prototype.toString=function(){return this.id},t}();n.ExpressionList=t}(t=n.MagicBox||(n.MagicBox={}))}(t||(t={}));!function(n){var t;!function(n){var t=function(){function t(n,t){this.parts=n;this.id=t}return t.prototype.parse=function(t,i){for(var f,r=[],u=0;u<this.parts.length;u++){if(f=this.parts[u].parse(t,i),f.isSuccess())return new n.OptionResult(f,this,t,r);r.push(f)}return new n.OptionResult(null,this,t,r)},t.prototype.toString=function(){return this.id},t}();n.ExpressionOptions=t}(t=n.MagicBox||(n.MagicBox={}))}(t||(t={}));!function(n){var t;!function(n){var t=function(){function t(n,t,i,r){this.ref=n;this.occurrence=t;this.id=i;this.grammar=r}return t.prototype.parse=function(n,t){var i=this.grammar.getExpression(this.ref);if(null==i)throw"Expression not found:"+this.ref;return"?"==this.occurrence||null==this.occurrence?this.parseOnce(n,t,i):this.parseMany(n,t,i)},t.prototype.parseOnce=function(t,i,r){var u=r.parse(t,i),f=u.isSuccess();return f||"?"!=this.occurrence?new n.RefResult([u],this,t,f?null:u):i?0==t.length?new n.RefResult([],this,t,u):_.all(u.getBestExpect(),function(t){return t.expression==n.ExpressionEndOfInput})?new n.RefResult([new n.Result(null,n.ExpressionEndOfInput,t)],this,t,u):u:new n.RefResult([],this,t,null)},t.prototype.parseMany=function(t,i,r){var u,s,f=[],o=t,h,e,c;do u=r.parse(o,!1),s=u.isSuccess(),s&&(f.push(u),o=o.substr(u.getLength()));while(s&&u.input!=o);if(h=_.isNumber(this.occurrence)?this.occurrence:"+"==this.occurrence?1:0,f.length<h)f.push(u);else if(i)if(f.length>0)e=_.last(f),u=r.parse(e.input,!0),u.isSuccess()?f[f.length-1]=u:(f.push(new n.Result(null,n.ExpressionEndOfInput,e.input.substr(e.getLength()))),u=r.parse(e.input.substr(e.getLength()),!0));else if(0!=t.length)return c=new n.Result(null,n.ExpressionEndOfInput,t),new n.RefResult([c],this,t,u);return new n.RefResult(f,this,t,u)},t.prototype.toString=function(){return this.id},t}();n.ExpressionRef=t}(t=n.MagicBox||(n.MagicBox={}))}(t||(t={}));!function(n){var t;!function(n){var t=function(){function t(n,t){this.value=n;this.id=t}return t.prototype.parse=function(t,i){var r=t.match(this.value),u;return null!=r&&0!=r.index&&(r=null),u=new n.Result(null!=r?r[0]:null,this,t),u.isSuccess()&&i&&t.length>u.value.length?new n.EndOfInputResult(u):u},t.prototype.toString=function(){return this.id},t}();n.ExpressionRegExp=t}(t=n.MagicBox||(n.MagicBox={}))}(t||(t={}));!function(n){var t;!function(n){var t=function(){function t(t,i){void 0===i&&(i={});this.expressions={};this.start=new n.ExpressionRef(t,null,"start",this);this.addExpressions(i)}return t.prototype.addExpressions=function(n){var t=this;_.each(n,function(n,i){t.addExpression(i,n)})},t.prototype.addExpression=function(n,i){if(n in this.expressions)throw"Grammar already contain the id:"+n;this.expressions[n]=t.buildExpression(i,n,this)},t.prototype.getExpression=function(n){return this.expressions[n]},t.prototype.parse=function(n){return this.start.parse(n,!0)},t.buildExpression=function(t,i,r){var u=typeof t;if("undefined"==u)throw"Invalid Expression: "+t;if(_.isString(t))return this.buildStringExpression(t,i,r);if(_.isArray(t))return new n.ExpressionOptions(_.map(t,function(t,u){return new n.ExpressionRef(t,null,i+"_"+u,r)}),i);if(_.isRegExp(t))return new n.ExpressionRegExp(t,i,r);if(_.isFunction(t))return new n.ExpressionFunction(t,i,r);throw"Invalid Expression: "+t;},t.buildStringExpression=function(i,r,u){var o=t.stringMatch(i,t.spliter),f=_.map(o,function(t,i){if(t[1]){var f=t[1],e=t[3]?Number(t[3]):t[2]||null;return new n.ExpressionRef(f,e,r+"_"+i,u)}return new n.ExpressionConstant(t[4],r+"_"+i)}),e;return 1==f.length?(e=f[0],e.id=r,e):new n.ExpressionList(f,r)},t.stringMatch=function(n,t){for(var i,r=[],u=new RegExp(t.source,"g");null!==(i=u.exec(n));)r.push(i);return r},t.spliter=/\[(\w+)(\*|\+|\?|\{([1-9][0-9]*)\})?\]|(.[^\[]*)/,t}();n.Grammar=t}(t=n.MagicBox||(n.MagicBox={}))}(t||(t={}));!function(n){var t;!function(n){var t=function(){function t(n,t,i){this.element=n;this.onchange=t;this.magicBox=i;this.hasFocus=!1;this.justPressedTab=!1;this.underlay=document.createElement("div");this.underlay.className="magic-box-underlay";n.appendChild(this.underlay);this.highlightContainer=document.createElement("span");this.highlightContainer.className="magic-box-highlight-container";this.underlay.appendChild(this.highlightContainer);this.ghostTextContainer=document.createElement("span");this.ghostTextContainer.className="magic-box-ghost-text";this.underlay.appendChild(this.ghostTextContainer);this.input=document.createElement("input");this.input.spellcheck=!1;this.input.setAttribute("form","coveo-dummy-form");this.input.setAttribute("autocomplete","off");n.appendChild(this.input);this.setupHandler()}return t.prototype.updateInput=function(){this.input.value!=this.result.input&&(this.input.value=this.result.input,this.hasFocus&&this.setCursor(this.getValue().length))},t.prototype.updateHighlight=function(){this.highlightContainer.innerHTML="";this.highlightContainer.appendChild(this.result.toHtmlElement())},t.prototype.updateWordCompletion=function(){this.ghostTextContainer.innerHTML="";null!=this.wordCompletion&&this.ghostTextContainer.appendChild(document.createTextNode(this.wordCompletion.substr(this.result.input.length)))},t.prototype.updateScroll=function(t){var i=this,r;void 0===t&&(t=!0);r=function(){i.underlay.clientWidth<i.underlay.scrollWidth&&(i.underlay.style.visibility="hidden",i.underlay.scrollLeft=i.input.scrollLeft,i.underlay.scrollTop=i.input.scrollTop,i.underlay.style.visibility="visible");i.updateScrollDefer=null;i.hasFocus&&i.updateScroll()};t?null==this.updateScrollDefer&&(this.updateScrollDefer=n.requestAnimationFrame(r)):r()},t.prototype.setResult=function(n,t){this.result=n;this.updateInput();this.updateHighlight();_.isUndefined(t)&&null!=this.wordCompletion&&0==this.wordCompletion.indexOf(this.result.input)?this.updateWordCompletion():this.setWordCompletion(t);this.updateScroll()},t.prototype.setWordCompletion=function(n){null!=n&&0!=n.toLowerCase().indexOf(this.result.input.toLowerCase())&&(n=null);this.wordCompletion=n;this.updateWordCompletion();this.updateScroll()},t.prototype.setCursor=function(n){if(this.input.focus(),this.input.createTextRange){var t=this.input.createTextRange();t.move("character",n);t.select()}else null!=this.input.selectionStart&&(this.input.focus(),this.input.setSelectionRange(n,n))},t.prototype.getCursor=function(){return this.input.selectionStart},t.prototype.setupHandler=function(){var n=this;this.input.onblur=function(){n.hasFocus=!1;setTimeout(function(){n.hasFocus||n.onblur&&n.onblur()},300);n.updateScroll()};this.input.onfocus=function(){n.hasFocus||(n.hasFocus=!0,n.updateScroll(),n.onfocus&&n.onfocus())};this.input.onkeydown=function(t){n.keydown(t)};this.input.onkeyup=function(t){n.keyup(t)};this.input.onclick=function(){n.onchangecursor()};this.input.select=function(){n.onchangecursor()};this.input.oncut=function(){setTimeout(function(){n.onInputChange()})};this.input.onpaste=function(){setTimeout(function(){n.onInputChange()})}},t.prototype.focus=function(){var n=this;this.hasFocus=!0;setTimeout(function(){n.input.focus();n.setCursor(n.getValue().length)})},t.prototype.blur=function(){this.hasFocus&&this.input.blur()},t.prototype.keydown=function(t){var i=this;switch(t.keyCode||t.which){case 9:this.justPressedTab?this.blur():this.magicBox.hasSuggestions()&&t.preventDefault();this.justPressedTab=!0;break;default:t.stopPropagation();this.justPressedTab=!1;null==this.onkeydown||this.onkeydown(t.keyCode||t.which)?n.requestAnimationFrame(function(){i.onInputChange()}):t.preventDefault()}},t.prototype.keyup=function(n){switch(n.keyCode||n.which){case 9:this.tabPress();break;case 37:case 39:this.onchangecursor();break;default:null==this.onkeydown||this.onkeyup(n.keyCode||n.which)?this.onInputChange():n.preventDefault()}},t.prototype.tabPress=function(){null!=this.wordCompletion&&(this.input.value=this.wordCompletion);this.ontabpress&&this.ontabpress();this.magicBox.showSuggestion()},t.prototype.onInputChange=function(){this.result.input!=this.input.value&&this.onchange(this.input.value,!1)},t.prototype.getValue=function(){return this.input.value},t.prototype.getWordCompletion=function(){return this.wordCompletion},t}();n.InputManager=t}(t=n.MagicBox||(n.MagicBox={}))}(t||(t={}));!function(n){var t;!function(n){var t=function(){function t(t,i){var r=this;this.element=t;this.options=_.defaults(i,{selectableClass:"magic-box-suggestion",selectedClass:"magic-box-selected"});void 0==this.options.timeout&&(this.options.timeout=500);this.hasSuggestions=!1;this.element.onmouseover=function(t){var u,i,f;if(n.$$(t.target).hasClass(r.options.selectableClass)){for(u=r.element.getElementsByClassName(r.options.selectedClass),i=0;i<u.length;i++)f=u.item(i),n.$$(f).removeClass(r.options.selectedClass);n.$$(t.target).addClass(r.options.selectedClass)}};this.element.onmouseout=function(t){n.$$(t.target).hasClass(r.options.selectableClass)&&n.$$(t.target).removeClass(r.options.selectedClass)}}return t.prototype.moveDown=function(){var t=this.element.getElementsByClassName(this.options.selectedClass).item(0),u=this.element.getElementsByClassName(this.options.selectableClass),i=-1,r;if(null!=t){for(n.$$(t).removeClass(this.options.selectedClass),r=0;r<u.length;r++)if(t==u.item(r)){i=r;break}i=i==-1?0:i+1}else i=0;return t=u.item(i),null!=t&&n.$$(t).addClass(this.options.selectedClass),this.returnMoved(t)},t.prototype.moveUp=function(){var t=this.element.getElementsByClassName(this.options.selectedClass).item(0),r=this.element.getElementsByClassName(this.options.selectableClass),i=-1,u;if(null!=t){for(n.$$(t).removeClass(this.options.selectedClass),u=0;u<r.length;u++)if(t==r.item(u)){i=u;break}i=i==-1?r.length-1:i-1}else i=r.length-1;return t=r.item(i),null!=t&&n.$$(t).addClass(this.options.selectedClass),this.returnMoved(t)},t.prototype.returnMoved=function(t){if(null!=t){if(t.suggestion)return t.suggestion;if(t["no-text-suggestion"])return null;if(t instanceof HTMLElement)return{text:n.$$(t).text()}}return null},t.prototype.select=function(){var t=this.element.getElementsByClassName(this.options.selectedClass).item(0);return null!=t&&n.$$(t).trigger("keyboardSelect"),t},t.prototype.mergeSuggestions=function(n,t){var u,i=this,r=[],f;n=_.compact(n);f=this.pendingSuggestion=new Promise(function(t,e){_.each(n,function(n){var t=!1;setTimeout(function(){t=!0},i.options.timeout);n.then(function(n){!t&&n&&(r=r.concat(n))})});var o=function(){u&&clearTimeout(u);0==r.length?t([]):f==i.pendingSuggestion||null==i.pendingSuggestion?t(r.sort(function(n,t){return t.index-n.index})):e("new request queued")};0==n.length&&o();void 0==n&&o();u=setTimeout(function(){o()},i.options.timeout);Promise.all(n).then(function(){return o()})});f.then(function(n){return t&&t(n),i.updateSuggestions(n),n}).catch(function(){return null})},t.prototype.updateSuggestions=function(t){var i=this;this.element.innerHTML="";this.element.className="magic-box-suggestions";_.each(t,function(t){var r=t.dom,f,u;r?(n.$$(r).removeClass(i.options.selectedClass),f=n.$$(r).find("."+i.options.selectableClass),n.$$(f).removeClass(i.options.selectedClass)):((r=document.createElement("div"),r.className="magic-box-suggestion",null!=t.html)?r.innerHTML=t.html:null!=t.text?r.appendChild(document.createTextNode(t.text)):null!=t.separator&&(r.className="magic-box-suggestion-seperator",u=document.createElement("div"),u.className="magic-box-suggestion-seperator-label",u.appendChild(document.createTextNode(t.separator)),r.appendChild(u)),n.$$(r).on("click",function(){t.onSelect()}),n.$$(r).on("keyboardSelect",function(){t.onSelect()}),n.$$(r).addClass(i.options.selectableClass));r.suggestion=t;i.element.appendChild(r)});t.length>0?(n.$$(this.element).addClass("magic-box-hasSuggestion"),this.hasSuggestions=!0):(n.$$(this.element).removeClass("magic-box-hasSuggestion"),this.hasSuggestions=!1)},t}();n.SuggestionsManager=t}(t=n.MagicBox||(n.MagicBox={}))}(t||(t={}));!function(n){var t;!function(n){var t;!function(t){function r(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function u(n,t,i,u,e){if(void 0===i&&(i=!1),void 0===u&&(u="magic-box-hightlight"),void 0===e&&(e=""),0==t.length)return n;var o=r(t),s="("+o+")|(.*?(?="+o+")|.+)",h=new RegExp(s,i?"gi":"g");return n.replace(h,function(n,t){return f(null!=t?u:e,n)})}var f=function(n,t){return'<span class="'+n+'">'+_.escape(t)+"<\/span>"},i;t.highlightText=u;i=function(){function t(n){this.el=n}return t.prototype.text=function(n){return n?void(void 0!=this.el.innerText?this.el.innerText=n:void 0!=this.el.textContent&&(this.el.textContent=n)):this.el.innerText||this.el.textContent},t.prototype.nodeListToArray=function(n){for(var t=n.length,i=new Array(t);t--;)i[t]=n.item(t);return i},t.prototype.empty=function(){for(;this.el.firstChild;)this.el.removeChild(this.el.firstChild)},t.prototype.show=function(){this.el.style.display="visible"},t.prototype.hide=function(){this.el.style.display="none"},t.prototype.toggle=function(n){void 0===n?"visible"==this.el.style.display?this.hide():this.show():n?this.show():this.hide()},t.prototype.find=function(n){return this.el.querySelector(n)},t.prototype.is=function(n){return this.el.tagName.toLowerCase()==n.toLowerCase()||!("."!=n[0]||!this.hasClass(n.substr(1)))||"#"==n[0]&&this.el.getAttribute("id")==n.substr(1)},t.prototype.closest=function(t){for(var i=this.el,r=!1;!r&&(n.$$(i).hasClass(t)&&(r=!0),"body"!=i.tagName.toLowerCase())&&null!=i.parentElement;)r||(i=i.parentElement);if(r)return i},t.prototype.findAll=function(n){return this.nodeListToArray(this.el.querySelectorAll(n))},t.prototype.findClass=function(n){return"getElementsByClassName"in this.el?this.nodeListToArray(this.el.getElementsByClassName(n)):this.nodeListToArray(this.el.querySelectorAll("."+n))},t.prototype.findId=function(n){return document.getElementById(n)},t.prototype.addClass=function(n){this.hasClass(n)||(this.el.className?this.el.className+=" "+n:this.el.className=n)},t.prototype.removeClass=function(n){this.el.className=this.el.className.replace(new RegExp("(^|\\s)"+n+"(\\s|\\b)","g"),"$1")},t.prototype.toggleClass=function(n,t){t?this.addClass(n):this.removeClass(n)},t.prototype.getClass=function(){return this.el.className.match(t.CLASS_NAME_REGEX)||[]},t.prototype.hasClass=function(n){return _.contains(this.getClass(),n)},t.prototype.detach=function(){this.el.parentElement&&this.el.parentElement.removeChild(this.el)},t.prototype.on=function(n,i){var f=this,r,u;if(_.isArray(n))_.each(n,function(n){f.on(n,i)});else if(r=this.getJQuery(),r)r(this.el).on(n,i);else this.el.addEventListener?(u=function(n){i(n,n.detail)},t.handlers.push({eventHandle:i,fn:u}),this.el.addEventListener(n,u,!1)):this.el.on&&this.el.on("on"+n,i)},t.prototype.one=function(n,t){var r=this,i;if(_.isArray(n))_.each(n,function(n){r.one(n,t)});else{i=function(u){return r.off(n,i),t(u)};this.on(n,i)}},t.prototype.off=function(n,i){var e=this,r,u,f;_.isArray(n)?_.each(n,function(n){e.off(n,i)}):(r=this.getJQuery(),r?r(this.el).off(n,i):this.el.removeEventListener?(u=0,f=_.find(t.handlers,function(n,t){if(n.eventHandle==i)return u=t,!0}),f&&(this.el.removeEventListener(n,f.fn,!1),t.handlers.splice(u,1))):this.el.off&&this.el.off("on"+n,i))},t.prototype.trigger=function(n,t){var i=this.getJQuery(),r;i?i(this.el).trigger(n,t):void 0!==CustomEvent&&(r=new CustomEvent(n,{detail:t,bubbles:!0}),this.el.dispatchEvent(r))},t.prototype.isEmpty=function(){return t.ONLY_WHITE_SPACE_REGEX.test(this.el.innerHTML)},t.prototype.isDescendant=function(n){for(var t=this.el.parentNode;null!=t;){if(t==n)return!0;t=t.parentNode}return!1},t.prototype.getJQuery=function(){return void 0!=window.jQuery&&window.jQuery},t.CLASS_NAME_REGEX=/-?[_a-zA-Z]+[_a-zA-Z0-9-]*/g,t.ONLY_WHITE_SPACE_REGEX=/^\s*$/,t.handlers=[],t}();t.Dom=i}(t=n.Utils||(n.Utils={}))}(t=n.MagicBox||(n.MagicBox={}))}(t||(t={}));!function(n){var t;!function(n){n.$$=function(t){return window.Coveo&&window.Coveo.$$?window.Coveo.$$(t):new n.Utils.Dom(t)}}(t=n.MagicBox||(n.MagicBox={}))}(t||(t={}));!function(n){var t;!function(n){var t;!function(t){function r(n,t,i,r){_.each(r.expressions,function(t){_.contains(n,t)||n.push(t)});_.each(r.basicExpressions,function(n){_.contains(t,n)||t.push(n)});_.each(r.grammars,function(n,t){if(t in i){if(!_.isArray(i[t])||!_.isArray(n))throw _.each(n,function(n){i[t].push(n)}),"Can not merge "+t+"("+new String(n)+" => "+new String(i[t])+")";_.each(n,function(n){i[t].push(n)})}else i[t]=n})}function i(){for(var n=[],t=0;t<arguments.length;t++)n[+t]=arguments[t];for(var u=[],f=[],e={Start:["Expressions","Empty"],Expressions:"[OptionalSpaces][Expression][ExpressionsList*][OptionalSpaces]",ExpressionsList:"[Spaces][Expression]",Expression:u,BasicExpression:f,OptionalSpaces:/ */,Spaces:/ +/,Empty:/(?!.)/},i=0;i<n.length;i++)r(u,f,e,n[i]),_.each(n[i].include,function(t){_.contains(n,t)||n.push(t)});return u.push("BasicExpression"),{start:"Start",expressions:e}}function u(){for(var u,r=[],t=0;t<arguments.length;t++)r[+t]=arguments[t];return u=i.apply(this,r),new n.Grammar(u.start,u.expressions)}t.Expressions=i;t.ExpressionsGrammar=u}(t=n.Grammars||(n.Grammars={}))}(t=n.MagicBox||(n.MagicBox={}))}(t||(t={}));!function(n){var t;!function(n){var t;!function(t){t.notWordStart=" ()[],$@'\"";t.notInWord=" ()[],:";t.Basic={basicExpressions:["Word","DoubleQuoted"],grammars:{DoubleQuoted:'"[NotDoubleQuote]"',NotDoubleQuote:/[^"]*/,SingleQuoted:"'[NotSingleQuote]'",NotSingleQuote:/[^']*/,Number:/[0-9]+/,Word:function(i,r,u){var o=new RegExp("[^"+t.notWordStart.replace(/(.)/g,"\\$1")+"][^"+t.notInWord.replace(/(.)/g,"\\$1")+"]*"),f=i.match(o),e;return null!=f&&0!=f.index&&(f=null),e=new n.Result(null!=f?f[0]:null,u,i),e.isSuccess()&&r&&i.length>e.value.length?new n.EndOfInputResult(e):e}}}}(t=n.Grammars||(n.Grammars={}))}(t=n.MagicBox||(n.MagicBox={}))}(t||(t={}));!function(n){var t;!function(n){var t;!function(n){n.SubExpression={basicExpressions:["SubExpression"],grammars:{SubExpression:"([Expressions])"}}}(t=n.Grammars||(n.Grammars={}))}(t=n.MagicBox||(n.MagicBox={}))}(t||(t={}));!function(n){var t;!function(n){var t;!function(n){n.Date={grammars:{Date:"[DateYear]/[DateMonth]/[DateDay]",DateYear:/([0-9]{4})/,DateMonth:/(1[0-2]|0?[1-9])/,DateDay:/([1-2][0-9]|3[0-1]|0?[1-9])/,DateRange:"[Date][Spaces?]..[Spaces?][Date]",DateRelative:["DateRelativeNegative","DateRelativeTerm"],DateRelativeTerm:/now|today|yesterday/,DateRelativeNegative:"[DateRelativeTerm][DateRelativeNegativeRef]",DateRelativeNegativeRef:/([\-\+][0-9]+(s|m|h|d|mo|y))/},include:[n.Basic]}}(t=n.Grammars||(n.Grammars={}))}(t=n.MagicBox||(n.MagicBox={}))}(t||(t={}));!function(n){var t;!function(n){var t;!function(n){n.Field={basicExpressions:["FieldSimpleQuery","FieldQuery","Field"],grammars:{FieldQuery:"[Field][OptionalSpaces][FieldQueryOperation]",FieldQueryOperation:["FieldQueryValue","FieldQueryNumeric"],FieldQueryValue:"[FieldOperator][OptionalSpaces][FieldValue]",FieldQueryNumeric:"[FieldOperatorNumeric][OptionalSpaces][FieldValueNumeric]",FieldSimpleQuery:"[FieldName]:[OptionalSpaces][FieldValue]",Field:"@[FieldName]",FieldName:/[a-zA-Z][a-zA-Z0-9\.\_]*/,FieldOperator:/==|=|<>/,FieldOperatorNumeric:/<=|>=|<|>/,FieldValue:["DateRange","NumberRange","DateRelative","Date","Number","FieldValueList","FieldValueString"],FieldValueNumeric:["DateRelative","Date","Number"],FieldValueString:["DoubleQuoted","FieldValueNotQuoted"],FieldValueList:"([FieldValueString][FieldValueStringList*])",FieldValueStringList:"[FieldValueSeparator][FieldValueString]",FieldValueSeparator:/ *, */,FieldValueNotQuoted:/[^ \(\),]+/,NumberRange:"[Number][Spaces?]..[Spaces?][Number]"},include:[n.Date,n.Basic]}}(t=n.Grammars||(n.Grammars={}))}(t=n.MagicBox||(n.MagicBox={}))}(t||(t={}));!function(n){var t;!function(n){var t;!function(n){n.QueryExtension={basicExpressions:["QueryExtension"],grammars:{QueryExtension:"$[QueryExtensionName]([QueryExtensionArguments])",QueryExtensionName:/\w+/,QueryExtensionArguments:"[QueryExtensionArgumentList*][QueryExtensionArgument]",QueryExtensionArgumentList:"[QueryExtensionArgument][Spaces?],[Spaces?]",QueryExtensionArgument:"[QueryExtensionArgumentName]:[Spaces?][QueryExtensionArgumentValue]",QueryExtensionArgumentName:/\w+/,QueryExtensionArgumentValue:["SingleQuoted","Expressions"]},include:[n.Basic]}}(t=n.Grammars||(n.Grammars={}))}(t=n.MagicBox||(n.MagicBox={}))}(t||(t={}));!function(n){var t;!function(n){var t;!function(n){n.NestedQuery={basicExpressions:["NestedQuery"],grammars:{NestedQuery:"[[NestedField][OptionalSpaces][Expressions]]",NestedField:"[[Field]]",FieldValue:["NestedQuery"]},include:[n.Field]}}(t=n.Grammars||(n.Grammars={}))}(t=n.MagicBox||(n.MagicBox={}))}(t||(t={}));!function(n){var t;!function(n){var t;!function(n){n.Complete={include:[n.NestedQuery,n.QueryExtension,n.SubExpression,n.Field,n.Basic]}}(t=n.Grammars||(n.Grammars={}))}(t=n.MagicBox||(n.MagicBox={}))}(t||(t={}));!function(n){var t;!function(n){function i(n,i,r){return new t(n,i,r)}function r(n){return"requestAnimationFrame"in window?window.requestAnimationFrame(n):setTimeout(n)}var t=function(){function t(t,i,r){var u=this,o,f,e;void 0===r&&(r={});this.element=t;this.grammar=i;this.options=r;this.lastSuggestions=[];_.isUndefined(this.options.inline)&&(this.options.inline=!1);n.$$(t).addClass("magic-box");this.options.inline&&n.$$(t).addClass("magic-box-inline");this.result=this.grammar.parse("");this.displayedResult=this.result.clean();this.clearDom=document.createElement("div");this.clearDom.className="magic-box-clear";this.element.appendChild(this.clearDom);o=document.createElement("div");o.className="magic-box-icon";this.clearDom.appendChild(o);f=document.createElement("div");f.className="magic-box-input";t.appendChild(f);this.inputManager=new n.InputManager(f,function(n,t){t?(u.setText(n),u.onselect&&u.onselect(u.getFirstSuggestionText())):(u.setText(n),u.showSuggestion(),u.onchange&&u.onchange())},this);this.inputManager.ontabpress=function(){u.ontabpress&&u.ontabpress()};this.inputManager.setResult(this.displayedResult);e=document.createElement("div");e.className="magic-box-suggestions";this.element.appendChild(e);this.suggestionsManager=new n.SuggestionsManager(e,{selectableClass:this.options.selectableSuggestionClass,selectedClass:this.options.selectedSuggestionClass,timeout:this.options.suggestionTimeout});this.setupHandler()}return t.prototype.getResult=function(){return this.result},t.prototype.getDisplayedResult=function(){return this.displayedResult},t.prototype.setText=function(t){n.$$(this.element).toggleClass("magic-box-notEmpty",t.length>0);this.result=this.grammar.parse(t);this.displayedResult=this.result.clean();this.inputManager.setResult(this.displayedResult)},t.prototype.setCursor=function(n){this.inputManager.setCursor(n)},t.prototype.getCursor=function(){return this.inputManager.getCursor()},t.prototype.resultAtCursor=function(n){return this.displayedResult.resultAt(this.getCursor(),n)},t.prototype.setupHandler=function(){var t=this;this.inputManager.onblur=function(){n.$$(t.element).removeClass("magic-box-hasFocus");t.onblur&&t.onblur();t.options.inline||t.clearSuggestion()};this.inputManager.onfocus=function(){n.$$(t.element).addClass("magic-box-hasFocus");t.showSuggestion();t.onfocus&&t.onfocus()};this.inputManager.onkeydown=function(n){if(38==n||40==n)return!1;if(13==n){var i=t.suggestionsManager.select();return null==i&&t.onsubmit&&t.onsubmit(),!1}return 27==n&&(t.clearSuggestion(),t.blur()),!0};this.inputManager.onchangecursor=function(){t.showSuggestion()};this.inputManager.onkeyup=function(n){if(38==n)t.onmove&&t.onmove(),t.focusOnSuggestion(t.suggestionsManager.moveUp()),t.onchange&&t.onchange();else{if(40!=n)return!0;t.onmove&&t.onmove();t.focusOnSuggestion(t.suggestionsManager.moveDown());t.onchange&&t.onchange()}return!1};this.clearDom.onclick=function(){t.clear()}},t.prototype.showSuggestion=function(){var n=this;this.suggestionsManager.mergeSuggestions(null!=this.getSuggestions?this.getSuggestions():[],function(t){n.updateSuggestion(t)})},t.prototype.updateSuggestion=function(n){var t=this,i;this.lastSuggestions=n;i=this.getFirstSuggestionText();this.inputManager.setWordCompletion(i&&i.text);this.onsuggestions&&this.onsuggestions(n);_.each(n,function(n){null==n.onSelect&&null!=n.text&&(n.onSelect=function(){t.setText(n.text);t.onselect&&t.onselect(n)})})},t.prototype.focus=function(){n.$$(this.element).addClass("magic-box-hasFocus");this.inputManager.focus()},t.prototype.blur=function(){this.inputManager.blur()},t.prototype.clearSuggestion=function(){var n=this;this.suggestionsManager.mergeSuggestions([],function(t){n.updateSuggestion(t)});this.inputManager.setWordCompletion(null)},t.prototype.focusOnSuggestion=function(n){null==n||null==n.text?(n=this.getFirstSuggestionText(),this.inputManager.setResult(this.displayedResult,n&&n.text)):this.inputManager.setResult(this.grammar.parse(n.text).clean(),n.text)},t.prototype.getFirstSuggestionText=function(){return _.find(this.lastSuggestions,function(n){return null!=n.text})},t.prototype.getText=function(){return this.inputManager.getValue()},t.prototype.getWordCompletion=function(){return this.inputManager.getWordCompletion()},t.prototype.clear=function(){this.setText("");this.showSuggestion();this.focus();this.onclear&&this.onclear()},t.prototype.hasSuggestions=function(){return this.suggestionsManager.hasSuggestions},t}();n.Instance=t;n.create=i;n.requestAnimationFrame=r}(t=n.MagicBox||(n.MagicBox={}))}(t||(t={}));n.exports=t.MagicBox},function(n){!function(){"use strict";var h,c,l="undefined",g="string",a=self.navigator,n=String,nt=Object.prototype.hasOwnProperty,i={},t={},u=!1,it=!0,v="locale",e="defaultLocale",y="toLocaleString",f="toLowerCase",tt=Array.prototype.indexOf||function(n){for(var i=this.length,t=0;i>t;t++)if(t in this&&this[t]===n)return t;return-1},p=function(n){var t=new h;return t.open("GET",n,u),t.send(null),200!==t.status?(setTimeout(function(){var t=new Error("Unable to load localization data: "+n);throw t.name="Localization Error",t;},0),{}):JSON.parse(t.responseText)},o=n[y]=function(r){if(arguments.length>0&&"number"!=typeof r)if(typeof r===g)o(p(r));else if(r===u)t={};else{var e,s,h;for(e in r)if(nt.call(r,e)){if(s=r[e],e=e[f](),e in t&&s!==u||(t[e]={}),s===u)continue;if(typeof s===g){if(0!==n[v][f]().indexOf(e)){e in i||(i[e]=[]);i[e].push(s);continue}s=p(s)}for(h in s)nt.call(s,h)&&(t[e][h]=s[h])}}return Function.prototype[y].apply(n,arguments)},rt=function(n){for(var t,u=i[n],r=0,f=u.length;f>r;r++)t={},t[n]=p(u[r]),o(t);delete i[n]},ut=n.prototype[y]=function(){var r,s=c,a=n[s?e:v],h=a[f]().split("-"),l=h.length,o=this.valueOf();c=u;do if(r=h.slice(0,l).join("-"),r in i&&rt(r),r in t&&o in t[r])return t[r][o];while(l-->1);return!s&&n[e]?(c=it,ut.call(o)):o},s,w,b,k,r,d;if(typeof XMLHttpRequest===l&&typeof ActiveXObject!==l?(s=ActiveXObject,h=function(){try{return new s("Msxml2.XMLHTTP.6.0")}catch(n){}try{return new s("Msxml2.XMLHTTP.3.0")}catch(n){}try{return new s("Msxml2.XMLHTTP")}catch(n){}throw new Error("XMLHttpRequest not supported by this browser.");}):h=XMLHttpRequest,n[e]=n[e]||"",n[v]=a&&(a.language||a.userLanguage)||"",typeof document!==l)for(b=document.getElementsByTagName("link"),k=b.length;k--;)r=b[k],d=(r.getAttribute("rel")||"")[f]().split(/\s+/),/^\s*application\/(?:vnd\.oftn\.|x-)?l10n\+json\s*(?:$|;)/i.test(r.type)&&(-1!==tt.call(d,"localizations")?o(r.getAttribute("href")):-1!==tt.call(d,"localization")&&(w={},w[(r.getAttribute("hreflang")||"")[f]()]=r.getAttribute("href"),o(w)))}();n.exports=window.String.toLocaleString},function(n,t,i){"use strict";function e(){var n=String.locales||(String.locales={});n.en=f(n.en,r);String.toLocaleString.call(this,{en:r});String.locale="en";String.defaultLocale="en";u.culture("en")}function o(){var n=String.locales||(String.locales={});n.en=f(n.en,r);String.toLocaleString.call(this,{en:r});String.locale="en";String.defaultLocale="en";u.culture("en")}var u=i(28),f=function(n,t){var r={};for(var i in n)r[i]=n[i];for(i in t)r[i]=t[i];return r},r={Unknown:"Unknown",And:"AND",Authenticating:"Authenticating {0}...",Clear:"Clear {0}",CompleteQuery:"Complete Query",Exclude:"Exclude {0}",EnterTag:"Add Tag",Next:"Next",Last:"Last",Link:"Link",Or:"OR",Previous:"Previous",QueryDidntMatchAnyDocuments:"Your query did not match any documents.",QueryException:"Your query has an error: {0}.",Me:"Me",Remove:"Remove",Search:"Search",SearchFor:"Search for {0}",ShareQuery:"Share Query",Preferences:"Preferences",LinkOpeningSettings:"Link Opening Settings",Reauthenticate:"Reauthenticate {0}",ResultsFilteringExpression:"Results Filtering Expressions",FiltersInYourPreferences:"Filters in your preferences",Create:"Create",SearchIn:"Search in {0}",Seconds:"in {0} second<pl>s<\/pl>",ShowingResultsOf:"Result<pl>s<\/pl> {0}<pl>-{1}<\/pl> of {2}",SwitchTo:"Switch to {0}",Unexclude:"Unexclude {0}",ClearAllFilters:"Clear All Filters",SkipLogin:"Skip login",LoginInProgress:"Login in progress, please wait ...",Login:"Log In",GetStarted:"Get Started",More:"More",NMore:"{0} more...",Less:"Fewer",Settings:"Settings",Score:"Score",ScoreDescription:"The score is computed from the number of occurrences as well as from the position in the result set.",Occurrences:"Occurrences",OccurrencesDescription:"Sort by number of occurrences, with values having the highest number appearing first.",Label:"Label",Of:"of",LabelDescription:"Sort alphabetically on the field values.",Value:"Value",ValueDescription:"Sort on the values of the first computed field",AlphaAscending:"Value Ascending",AlphaDescending:"Value Descending",ChiSquare:"Chi Square",Nosort:"No Sort",RelativeFrequency:"Relative Frequency",RelativeFrequencyDescription:"Sort based on the relative frequency of values. Less common values will appear higher.",DateDistribution:"Date distribution",Custom:"Custom",CustomDescription:"Sort based on a custom order",ComputedField:"Computed Field",Ascending:"Ascending",Descending:"Descending",noResultFor:"No results for {0}",autoCorrectedQueryTo:"Query was automatically corrected to {0}",didYouMean:"Did you mean: {0}",SuggestedResults:"Suggested Results",SuggestedQueries:"Suggested Queries",MostRelevantItems:"Most relevant items:",AllItems:"All items:",ShowLess:"Show less",ShowMore:"Show more",HideFacet:"Hide Facet",ShowFacet:"Show Facet",AndOthers:"and {0} other<pl>s<\/pl>",Others:"{0} other<pl>s<\/pl>",MostRelevantPosts:"Most Relevant Posts:",CompleteThread:"Complete Thread:",ShowCompleteThread:"Show Complete Thread",ShowOnlyTopMatchingPosts:"Show Only Top Matching Posts",MostRelevantReplies:"Most Relevant Replies:",AllConversation:"All Conversation:",ShowAllConversation:"Show All Conversation",ShowAllReplies:"Show All Replies",ShowOnlyMostRelevantReplies:"Show Only Most Relevant Replies",Close:"Close",Open:"Open",OpenInOutlookWhenPossible:"Open in Outlook (when possible)",AlwaysOpenInNewWindow:"Always open results in new window",Quickview:"Quick View",NoQuickview:"The Quick View for this document is unavailable",ErrorReport:"Error Report",OopsError:"Something went wrong.",ProblemPersists:"If the problem persists contact the administrator.",GoBack:"Go Back",Reset:"Reset",Retry:"Retry",MoreInfo:"More Information",Username:"Username",Password:"Password",PostedBy:"Posted by",CannotConnect:"Cannot connect to the server address.",BadUserPass:"Password does not match with username.",PleaseEnterYourCredentials:"Please enter your credentials for {0}.",PleaseEnterYourSearchPage:"Please enter your search page URL",Collapse:"Collapse",Collapsable:"Collapsible",Expand:"Expand",Today:"Today",Yesterday:"Yesterday",Tomorrow:"Tomorrow",Duration:"Duration: {0}",IndexDuration:"Index Duration: {0}",ProxyDuration:"Proxy Duration: {0}",ClientDuration:"Client Duration: {0}",Unavailable:"Unavailable",Reply:"Reply",ReplyAll:"Reply All",Forward:"Forward",From:"From",Caption:"Caption",Expression:"Expression",Tab:"Tab",Tabs:"Tabs",EnterExpressionName:"Enter expression name",EnterExpressionToFilterWith:"Enter expression to filter results with",SelectTab:"Select Tab",SelectAll:"Select All",PageUrl:"Search page URL",ErrorSavingToDevice:"Error while saving the information to your device",ErrorReadingFromDevice:"Error while reading the information from your device",AppIntro:"Speak with a product specialist who can answer your questions about Coveo and help you decide which Coveo solution is right for you. Or, try a live demo !",TryDemo:"Try the demo",ContactUs:"Contact us",NewToCoveo:"New to Coveo?",LetUsHelpGetStarted:"Let us help you get started",LikesThis:"{0} like<sn>s<\/sn> this.",CannotConnectSearchPage:"Cannot connect to your search page",AreYouSureDeleteFilter:"Are you sure you want to delete the filter {0} with the expression {1}",OnlineHelp:"Online Help",Done:"Done",SaveFacetState:"Save this facet state",ClearFacetState:"Clear facet state",DisplayingTheOnlyMessage:"Displaying the only message in this conversation",NoNetworkConnection:"No network connection",UnknownConnection:"Unknown connection",EthernetConnection:"Ethernet connection",WiFi:"WiFi connection",CELL:"Cellular connection",CELL_2G:"Cellular 2G connection",CELL_3G:"Cellular 3G connection",CELL_4G:"Cellular 4G connection",Relevance:"Relevance",Date:"Date",Amount:"Amount",QueryExceptionNoException:"No exception",QueryExceptionInvalidSyntax:"Invalid syntax",QueryExceptionInvalidCustomField:"Invalid custom field",QueryExceptionInvalidDate:"Invalid date",QueryExceptionInvalidExactPhrase:"Invalid exact phrase",QueryExceptionInvalidDateOp:"Invalid date operator",QueryExceptionInvalidNear:"Invalid NEAR operator",QueryExceptionInvalidWeightedNear:"Invalid weighted NEAR",QueryExceptionInvalidTerm:"Invalid term",QueryExceptionTooManyTerms:"Too many terms",QueryExceptionWildcardTooGeneral:"Wildcard too general",QueryExceptionInvalidSortField:"Invalid sort field",QueryExceptionInvalidSmallStringOp:"Invalid small string operator",QueryExceptionRequestedResultsMax:"Requested results maximum",QueryExceptionAggregatedMirrorDead:"Aggregated mirror is offline",QueryExceptionAggregatedMirrorQueryTimeOut:"Aggregated mirror query timeout",QueryExceptionAggregatedMirrorInvalidBuildNumber:"Aggregated mirror invalid build number",QueryExceptionAggregatedMirrorCannotConnect:"Aggregated mirror cannot connect",QueryExceptionNotEnoughLeadingCharsWildcard:"Not enough leading character wildcard",QueryExceptionSecurityInverterNotFound:"Security inverter not found",QueryExceptionSecurityInverterAccessDenied:"Security inverter access denied",QueryExceptionAggregatedMirrorCannotImpersonate:"Aggregated mirror cannot impersonate",QueryExceptionUnexpected:"Unexpected",QueryExceptionAccessDenied:"Access denied",QueryExceptionSuperUserTokenInvalid:"Super user token invalid",QueryExceptionSuperUserTokenExpired:"Super user token is expired",QueryExceptionLicenseQueriesExpired:"Queries license expired",QueryExceptionLicenseSuperUserTokenNotSupported:"License super user token not supported",QueryExceptionInvalidSession:"Invalid session",QueryExceptionInvalidDocument:"Invalid document",QueryExceptionSearchDisabled:"Search disabled",FileType:"File type",ShowAttachment:"Show attachment",OnFeed:"on {0}'s feed.",Author:"Author",NoTitle:"No title",CurrentSelections:"Current selections",AllContent:"All content",CancelLastAction:"Cancel last action",SearchTips:"Search tips",CheckSpelling:"Check the spelling of your keywords.",TryUsingFewerKeywords:"Try using fewer, different or more general keywords.",SelectFewerFilters:"Select fewer filters to broaden your search.",Document:"Document",Time:"Time",StartDate:"Start Date",StartTime:"Start Time",DurationTitle:"Duration",UserQuery:"User query",ShowUserActions:"Show User Actions",NoData:"No data available",EventType:"Event type",GoToFullSearch:"Full search",GoToEdition:"Customize Panel",RemoveContext:"Remove context",BoxAttachToCase:"Attach to case",AttachToCase:"Attach to case",Attach:"Attach",Attached:"Attached",Detach:"Detach",Details:"Details",AdditionalFilters:"Additional filters",SelectNonContextualSearch:"Remove the context from the current record to broaden your search",CopyPasteToSupport:"Copy paste this message to Coveo Support team for more information.",FollowQueryDescription:"Alert me for changes to the search results of this query.",SearchAlerts_Panel:"Manage Alerts",SearchAlerts_PanelDescription:"View and manage your search alerts.",SearchAlerts_PanelNoSearchAlerts:"You have no subscriptions.",SearchAlerts_Fail:"The Search Alerts service is currently unavailable.",SearchAlerts_Type:"Type",SearchAlerts_Content:"Content",SearchAlerts_Actions:"Action",EmptyQuery:"&lt;empty&gt;",SearchAlerts_Type_followQuery:"Query",SearchAlerts_Type_followDocument:"Item",SearchAlerts_unFollowing:"Stop Following",SearchAlerts_follow:"Follow",SearchAlerts_followed:"Followed",SearchAlerts_followQuery:"Follow Query",Subscription_StopFollowingQuery:"Stop Following Query",SearchAlerts_Frequency:"When",SubscriptionsManageSubscriptions:"Manage Alerts",SubscriptionsMessageFollowQuery:"You will receive alerts when the query <b>{0}<\/b> returns new or updated items.",SubscriptionsMessageFollow:"You will receive alerts for changes to the item <b>{0}<\/b>.",Expiration:"Expiration",Monthly:"Monthly",Daily:"Daily",Monday:"Monday",Tuesday:"Tuesday",Wednesday:"Wednesday",Thursday:"Thursday",Friday:"Friday",Saturday:"Saturday",Sunday:"Sunday",StartTypingCaseForSuggestions:"Describe your problem to see possible solutions",ExportToExcel:"Export to Excel",ExportToExcelDescription:"Export search results to Excel",CaseCreationNoResults:"No recommended solutions were found",SortBy:"Sort by",BoxCreateArticle:"Create Article",Facets:"Facets",AdvancedSearch:"Advanced Search",Keywords:"Keywords",AllTheseWords:"All these words",ExactPhrase:"This exact phrase",AnyOfTheseWords:"Any of these words",NoneOfTheseWords:"None of these words",Anytime:"Anytime",InTheLast:"In the last",Days:"days",Months:"months",Between:"Between",Language:"Language",Size:"Size",AtLeast:"at least",AtMost:"at most",Contains:"contains",DoesNotContain:"does not contain",Matches:"matches",Bytes:"bytes",objecttype_people:"People",objecttype_message:"Message",objecttype_feed:"RSS Feed",objecttype_thread:"Thread",objecttype_file:"File",objecttype_board:"Board",objecttype_category:"Category",objecttype_account:"Account",objecttype_annotation:"Note",objecttype_campaign:"Campaign",objecttype_case:"Case",objecttype_contact:"Contact",objecttype_contract:"Contract",objecttype_event:"Event",objecttype_email:"Email",objecttype_goal:"Goal",objecttype_incident:"Case",objecttype_invoice:"Invoice",objecttype_lead:"Lead",objecttype_list:"Marketing List",objecttype_solution:"Solution",objecttype_task:"Task",objecttype_user:"User",objecttype_attachment:"Attachment",objecttype_casecomment:"Case Comment",objecttype_opportunity:"Opportunity",objecttype_opportunityproduct:"Opportunity Product",objecttype_feeditem:"Chatter",objecttype_feedcomment:"Chatter",objecttype_note:"Note",objecttype_product:"Product",objecttype_partner:"Partner",objecttype_queueitem:"Queue Item",objecttype_quote:"Quote",objecttype_salesliterature:"Sales Literature",objecttype_salesorder:"Sales Order",objecttype_service:"Service",objecttype_socialprofile:"Social Profile",objecttype_kbdocumentation:"Documentation",objecttype_kbtechnicalarticle:"Documentation",objecttype_kbsolution:"Solution",objecttype_kbknowledgearticle:"Knowledge Article",objecttype_kbattachment:"Attachment",objecttype_kbarticle:"Article",objecttype_kbarticlecomment:"Article Comment",objecttype_knowledgearticle:"Knowledge Article",filetype_html:"HTML File",filetype_wiki:"Wiki",filetype_webscraperwebpage:"Web Page",filetype_image:"Image",filetype_folder:"Folder",filetype_txt:"Text",filetype_zip:"Zip File",filetype_pdf:"PDF File",filetype_xml:"XML File",filetype_doc:"Document",filetype_xls:"Spreadsheet Document",filetype_ppt:"Presentation Document",filetype_video:"Video",filetype_youtube:"YouTube video",filetype_saleforceitem:"Salesforce",filetype_dynamicscrmitem:"Dynamics CRM",filetype_exchangemessage:"Message",filetype_exchangeappointment:"Appointment",filetype_exchangenote:"Note",filetype_exchangetask:"Task",filetype_exchangeperson:"Exchange User",filetype_activedirperson:"Active Directory User",filetype_exchangeactivity:"Activity",filetype_exchangecalendarmessage:"Calendar Message",filetype_exchangedocument:"Exchange Document",filetype_exchangedsn:"DSN",filetype_exchangefreebusy:"Free/Busy",filetype_exchangegroup:"Group",filetype_exchangerssfeed:"RSS Feed",filetype_exchangejunkmessage:"Junk Email",filetype_exchangeofficecom:"Communications",filetype_lithiummessage:"Message",filetype_lithiumthread:"Thread",filetype_lithiumboard:"Board",filetype_lithiumcategory:"Category",filetype_lithiumcommunity:"Community",filetype_spportal:"Portal",filetype_spsite:"Site",filetype_spuserprofile:"SharePoint User",filetype_sparea:"Area",filetype_spannouncement:"Announcement",filetype_spannouncementlist:"Announcements",filetype_spcontact:"Contact",filetype_spcontactlist:"Contacts",filetype_spcustomlist:"Custom Lists",filetype_spdiscussionboard:"Discussion Board",filetype_spdiscussionboardlist:"Discussion Boards",filetype_spdocumentlibrarylist:"Document Library",filetype_spevent:"Event",filetype_speventlist:"Events",filetype_spformlibrarylist:"Form Library",filetype_spissue:"Issue",filetype_spissuelist:"Issues",filetype_splink:"Link",filetype_splinklist:"Links",filetype_sppicturelibrarylist:"Picture Library",filetype_spsurvey:"Survey",filetype_spsurveylist:"Surveys",filetype_sptask:"Task",filetype_sptasklist:"Tasks",filetype_spagenda:"Agenda",filetype_spagendalist:"Ordres du jour",filetype_spattendee:"Attendee",filetype_spattendeelist:"Attendees",filetype_spcustomgridlist:"Custom Grids",filetype_spdecision:"Decision",filetype_spdecisionlist:"Decisions",filetype_spobjective:"Objective",filetype_spobjectivelist:"Objectives",filetype_sptextbox:"Textbox",filetype_sptextboxlist:"Textbox list",filetype_spthingstobring:"Thing To Bring",filetype_spthingstobringlist:"Things To Bring",filetype_sparealisting:"Area Listing",filetype_spmeetingserie:"Meeting series",filetype_spmeetingserielist:"Meeting Series List",filetype_spsitedirectory:"Site Directory Item",filetype_spsitedirectorylist:"Site Directory",filetype_spdatasource:"Data Source",filetype_spdatasourcelist:"Data Source List",filetype_splisttemplatecataloglist:"List Template Gallery",filetype_spwebpartcataloglist:"WebPart Gallery",filetype_spwebtemplatecataloglist:"Site Template Gallery",filetype_spworkspacepagelist:"Workspace Pages",filetype_spunknownlist:"Custom List",filetype_spadministratortask:"Administrator Task",filetype_spadministratortasklist:"Administrator Tasks",filetype_spareadocumentlibrarylist:"Area Document Library",filetype_spblogcategory:"Blog Category",filetype_spblogcategorylist:"Blog Categories",filetype_spblogcomment:"Blog Comment",filetype_spblogcommentlist:"Blog Comments",filetype_spblogpost:"Blog Post",filetype_spblogpostlist:"Blog Posts",filetype_spdataconnectionlibrarylist:"Data Connection Library",filetype_spdistributiongroup:"Distribution Group",filetype_spdistributiongrouplist:"Distribution Groups",filetype_spipfslist:"InfoPath Forms Servers",filetype_spkeyperformanceindicator:"Key Performance Indicator",filetype_spkeyperformanceindicatorlist:"Key Performance Indicators",filetype_splanguagesandtranslator:"Languages and Translator",filetype_splanguagesandtranslatorlist:"Languages and Translators",filetype_spmasterpagescataloglist:"Master Page Gallery",filetype_spnocodeworkflowlibrarylist:"No-code Workflow Libraries",filetype_spprojecttask:"Project Task",filetype_spprojecttasklist:"Project Tasks",filetype_sppublishingpageslibrarylist:"Page Library",filetype_spreportdocumentlibrarylist:"Report Document Library",filetype_spreportlibrarylist:"Report Library",filetype_spslidelibrarylist:"Slide Library",filetype_sptab:"Tabs",filetype_sptablist:"Tabs List",filetype_sptranslationmanagementlibrarylist:"Translation Management Library",filetype_spuserinformation:"User Information",filetype_spuserinformationlist:"User Information List",filetype_spwikipagelibrarylist:"Wiki Page Library",filetype_spworkflowhistory:"Workflow History",filetype_spworkflowhistorylist:"Workflow History List",filetype_spworkflowprocess:"Custom Workflow Process",filetype_spworkflowprocesslist:"Custom Workflow Processes",filetype_sppublishingimageslibrarylist:"Publishing Image Library",filetype_spcirculation:"Circulation",filetype_spcirculationlist:"Circulations",filetype_spdashboardslibrarylist:"Dashboards Library",filetype_spdataconnectionforperformancepointlibrarylist:"PerformancePoint Data Connection Library",filetype_sphealthreport:"Health Report",filetype_sphealthreportlist:"Health Reports",filetype_sphealthrule:"Health Rule",filetype_sphealthrulelist:"Health Rules",filetype_spimedictionary:"IME Dictionary",filetype_spimedictionarylist:"IME Dictionaries",filetype_spperformancepointcontent:"PerformancePoint Content",filetype_spperformancepointcontentlist:"PerformancePoint Contents",filetype_spphonecallmemo:"Phone Call Memo",filetype_spphonecallmemolist:"Phone Call Memos",filetype_sprecordlibrarylist:"Record Library",filetype_spresource:"Resource",filetype_spresourcelist:"Resources",filetype_spprocessdiagramslibrarylist:"Process Diagram Library",filetype_spsitethemeslibrarylist:"Site Theme Library",filetype_spsolutionslibrarylist:"Solution Library",filetype_spwfpublibrarylist:"WFPUB Library",filetype_spwhereabout:"Whereabout",filetype_spwhereaboutlist:"Whereabouts",filetype_spdocumentlink:"Link to a Document",filetype_spdocumentset:"Document Set",filetype_spmicrofeedpost:"Microfeed Post",filetype_spmicrofeedlist:"Microfeed",filetype_splistfolder:"List Folder",filetype_youtubevideo:"YouTube video",filetype_youtubeplaylistitem:"YouTube playlist item"};t.defaultLanguage=e;t.setLanguageAfterPageLoaded=o},function(n,t,i){(function(t){n.exports=t.Globalize=i(29)}).call(t,function(){return this}())},function(n){var t=function(i,r){var u,tt,it,rt,ut,f,l,p,a,ft,w,o,e,b,s,v,k,d,et,g,h,y,nt,c;return u=function(n){return new u.prototype.init(n)},n.exports=u,u.cultures={},u.prototype={constructor:u,init:function(n){return this.cultures=u.cultures,this.cultureSelector=n,this}},u.prototype.init.prototype=u.prototype,u.cultures.default={name:"en",englishName:"English",nativeName:"English",isRTL:!1,language:"en",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSizes:[3],"+":"+","-":"-",NaN:"NaN",negativeInfinity:"-Infinity",positiveInfinity:"Infinity",percent:{pattern:["-n %","n %"],decimals:2,groupSizes:[3],",":",",".":".",symbol:"%"},currency:{pattern:["($n)","$n"],decimals:2,groupSizes:[3],",":",",".":".",symbol:"$"}},calendars:{standard:{name:"Gregorian_USEnglish","/":"/",":":":",firstDay:0,days:{names:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],namesAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],namesShort:["Su","Mo","Tu","We","Th","Fr","Sa"]},months:{names:["January","February","March","April","May","June","July","August","September","October","November","December",""],namesAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""]},AM:["AM","am","AM"],PM:["PM","pm","PM"],eras:[{name:"A.D.",start:null,offset:0}],twoDigitYearMax:2029,patterns:{d:"M/d/yyyy",D:"dddd, MMMM dd, yyyy",t:"h:mm tt",T:"h:mm:ss tt",f:"dddd, MMMM dd, yyyy h:mm tt",F:"dddd, MMMM dd, yyyy h:mm:ss tt",M:"MMMM dd",Y:"yyyy MMMM",S:"yyyy'-'MM'-'dd'T'HH':'mm':'ss"}}},messages:{}},u.cultures.default.calendar=u.cultures.default.calendars.standard,u.cultures.en=u.cultures.default,u.cultureSelector="en",tt=/^0x[a-f0-9]+$/i,it=/^[+\-]?infinity$/i,rt=/^[+\-]?\d*\.?\d*(e[+\-]?\d+)?$/,ut=/^\s+|\s+$/g,f=function(n,t){if(n.indexOf)return n.indexOf(t);for(var i=0,r=n.length;r>i;i++)if(n[i]===t)return i;return-1},l=function(n,t){return n.substr(n.length-t.length)===t},p=function(){var e,u,i,t,o,s,n=arguments[0]||{},f=1,c=arguments.length,h=!1;for("boolean"==typeof n&&(h=n,n=arguments[1]||{},f=2),"object"==typeof n||ft(n)||(n={});c>f;f++)if(null!=(e=arguments[f]))for(u in e)i=n[u],t=e[u],n!==t&&(h&&t&&(w(t)||(o=a(t)))?(o?(o=!1,s=i&&a(i)?i:[]):s=i&&w(i)?i:{},n[u]=p(h,s,t)):t!==r&&(n[u]=t));return n},a=Array.isArray||function(n){return"[object Array]"===Object.prototype.toString.call(n)},ft=function(n){return"[object Function]"===Object.prototype.toString.call(n)},w=function(n){return"[object Object]"===Object.prototype.toString.call(n)},o=function(n,t){return 0===n.indexOf(t)},e=function(n){return(n+"").replace(ut,"")},b=function(n){return isNaN(n)?NaN:Math[0>n?"ceil":"floor"](n)},s=function(n,t,i){for(var r=n.length;t>r;r+=1)n=i?"0"+n:n+"0";return n},v=function(n,t){for(var u,f=0,i=!1,r=0,e=n.length;e>r;r++){u=n.charAt(r);switch(u){case"'":i?t.push("'"):f++;i=!1;break;case"\\":i&&t.push("\\");i=!i;break;default:t.push(u);i=!1}}return f},k=function(n,t){t=t||"F";var i,u=n.patterns,r=t.length;if(1===r){if(i=u[t],!i)throw"Invalid date format string '"+t+"'.";t=i}else 2===r&&"%"===t.charAt(0)&&(t=t.charAt(1));return t},d=function(n,t,i){function e(n,t){var i,r=n+"";return t>1&&t>r.length?(i=ht[t-2]+r,i.substr(i.length-t,t)):i=r}function st(){return c||ut?c:(c=ct.test(t),ut=!0,c)}function w(n,t){if(l)return l[t];switch(t){case 0:return n.getFullYear();case 1:return n.getMonth();case 2:return n.getDate();default:throw"Invalid part value "+t;}}var r,u=i.calendar,b=u.convert,nt,rt,tt,it,p,f,ot,s;if(!t||!t.length||"i"===t)return i&&i.name.length?b?r=d(n,u.patterns.F,i):(nt=new Date(n.getTime()),rt=h(n,u.eras),nt.setFullYear(y(n,u,rt)),r=nt.toLocaleString()):r=""+n,r;tt=u.eras;it="s"===t;t=k(u,t);r=[];var o,c,ut,l,ht=["0","00","000"],ct=/([^d]|^)(d|dd)([^d]|$)/g,ft=0,et=g();for(!it&&b&&(l=b.fromGregorian(n));;){var lt=et.lastIndex,a=et.exec(t),at=t.slice(lt,a?a.index:t.length);if(ft+=v(at,r),!a)break;if(ft%2)r.push(a[0]);else{p=a[0];f=p.length;switch(p){case"ddd":case"dddd":ot=3===f?u.days.namesAbbr:u.days.names;r.push(ot[n.getDay()]);break;case"d":case"dd":c=!0;r.push(e(w(n,2),f));break;case"MMM":case"MMMM":s=w(n,1);r.push(u.monthsGenitive&&st()?u.monthsGenitive[3===f?"namesAbbr":"names"][s]:u.months[3===f?"namesAbbr":"names"][s]);break;case"M":case"MM":r.push(e(w(n,1)+1,f));break;case"y":case"yy":case"yyyy":s=l?l[0]:y(n,u,h(n,tt),it);4>f&&(s%=100);r.push(e(s,f));break;case"h":case"hh":o=n.getHours()%12;0===o&&(o=12);r.push(e(o,f));break;case"H":case"HH":r.push(e(n.getHours(),f));break;case"m":case"mm":r.push(e(n.getMinutes(),f));break;case"s":case"ss":r.push(e(n.getSeconds(),f));break;case"t":case"tt":s=12>n.getHours()?u.AM?u.AM[0]:" ":u.PM?u.PM[0]:" ";r.push(1===f?s.charAt(0):s);break;case"f":case"ff":case"fff":r.push(e(n.getMilliseconds(),3).substr(0,f));break;case"z":case"zz":o=n.getTimezoneOffset()/60;r.push((0>=o?"+":"-")+e(Math.floor(Math.abs(o)),f));break;case"zzz":o=n.getTimezoneOffset()/60;r.push((0>=o?"+":"-")+e(Math.floor(Math.abs(o)),2)+":"+e(Math.abs(n.getTimezoneOffset()%60),2));break;case"g":case"gg":u.eras&&r.push(u.eras[h(n,tt)].name);break;case"/":r.push(u["/"]);break;default:throw"Invalid date format pattern '"+p+"'.";}}}return r.join("")},function(){var n;n=function(n,t,i){var l=i.groupSizes,c=l[0],a=1,p=Math.pow(10,t),v=Math.round(n*p)/p;isFinite(v)||(v=n);n=v;var r=n+"",u="",e=r.split(/e/i),f=e.length>1?parseInt(e[1],10):0;r=e[0];e=r.split(".");r=e[0];u=e.length>1?e[1]:"";f>0?(u=s(u,f,!1),r+=u.slice(0,f),u=u.substr(f)):0>f&&(f=-f,r=s(r,f+1,!0),u=r.slice(-f,r.length)+u,r=r.slice(0,-f));u=t>0?i["."]+(u.length>t?u.slice(0,t):s(u,t)):"";for(var o=r.length-1,y=i[","],h="";o>=0;){if(0===c||c>o)return r.slice(0,o+1)+(h.length?y+h+u:u);h=r.slice(o-c+1,o+1)+(h.length?y+h:"");o-=c;l.length>a&&(c=l[a],a++)}return r.slice(0,o+1)+y+h+u};et=function(t,i,r){var f,a,v,e,y,l;if(!isFinite(t))return 1/0===t?r.numberFormat.positiveInfinity:t===-1/0?r.numberFormat.negativeInfinity:r.numberFormat.NaN;if(!i||"i"===i)return r.name.length?t.toLocaleString():""+t;i=i||"D";var c,o=r.numberFormat,u=Math.abs(t),h=-1;i.length>1&&(h=parseInt(i.slice(1),10));a=i.charAt(0).toUpperCase();switch(a){case"D":c="n";u=b(u);-1!==h&&(u=s(""+u,h,!0));0>t&&(u="-"+u);break;case"N":f=o;case"C":f=f||o.currency;case"P":f=f||o.percent;c=0>t?f.pattern[0]:f.pattern[1]||"n";-1===h&&(h=f.decimals);u=n(u*("P"===a?100:1),h,f);break;default:throw"Bad number format specifier: "+a;}for(v=/n|\$|-|%/g,e="";;){if(y=v.lastIndex,l=v.exec(c),e+=c.slice(y,l?l.index:c.length),!l)break;switch(l[0]){case"n":e+=u;break;case"$":e+=o.currency.symbol;break;case"-":/[1-9]/.test(u)&&(e+=o["-"]);break;case"%":e+=o.percent.symbol}}return e}}(),g=function(){return/\/|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|zzz|zz|z|gg|g/g},h=function(n,t){if(!t)return 0;for(var r,u=n.getTime(),i=0,f=t.length;f>i;i++)if(r=t[i].start,null===r||u>=r)return i;return 0},y=function(n,t,i,r){var u=n.getFullYear();return!r&&t.eras&&(u-=t.eras[i].offset),u},function(){var r,u,s,c,n,i,t;r=function(n,t){if(100>t){var r=new Date,f=h(r),u=y(r,n,f),i=n.twoDigitYearMax;i="string"==typeof i?(new Date).getFullYear()%100+parseInt(i,10):i;t+=u-u%100;t>i&&(t-=100)}return t};u=function(n,r,u){var e,s=n.days,o=n._upperDays;return o||(n._upperDays=o=[t(s.names),t(s.namesAbbr),t(s.namesShort)]),r=i(r),u?(e=f(o[1],r),-1===e&&(e=f(o[2],r))):e=f(o[0],r),e};s=function(n,r,u){var h=n.months,c=n.monthsGenitive||n.months,e=n._upperMonths,s=n._upperMonthsGen,o;return e||(n._upperMonths=e=[t(h.names),t(h.namesAbbr)],n._upperMonthsGen=s=[t(c.names),t(c.namesAbbr)]),r=i(r),o=f(u?e[1]:e[0],r),0>o&&(o=f(u?s[1]:s[0],r)),o};c=function(n,t){var f=n._parseRegExp,o,y,i,e,p,w,b;if(f){if(o=f[t],o)return o}else n._parseRegExp=f={};for(var u,s=k(n,t).replace(/([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g,"\\\\$1"),r=["^"],c=[],h=0,l=0,a=g();null!==(u=a.exec(s));)if(y=s.slice(h,u.index),h=a.lastIndex,l+=v(y,r),l%2)r.push(u[0]);else{e=u[0];p=e.length;switch(e){case"dddd":case"ddd":case"MMMM":case"MMM":case"gg":case"g":i="(\\D+)";break;case"tt":case"t":i="(\\D*)";break;case"yyyy":case"fff":case"ff":case"f":i="(\\d{"+p+"})";break;case"dd":case"d":case"MM":case"M":case"yy":case"y":case"HH":case"H":case"hh":case"h":case"mm":case"m":case"ss":case"s":i="(\\d\\d?)";break;case"zzz":i="([+-]?\\d\\d?:\\d{2})";break;case"zz":case"z":i="([+-]?\\d\\d?)";break;case"/":i="(\\/)";break;default:throw"Invalid date format pattern '"+e+"'.";}i&&r.push(i);c.push(u[0])}return v(s.slice(h),r),r.push("$"),w=r.join("").replace(/\s+/g,"\\s+"),b={regExp:w,groups:c},f[t]=b};n=function(n,t,i){return t>n||n>i};i=function(n){return n.split(" ").join(" ").toUpperCase()};t=function(n){for(var r=[],t=0,u=n.length;u>t;t++)r[t]=i(n[t]);return r};nt=function(t,i,f){var l,ft,et,d,g,bt,kt,a,nt,at;t=e(t);var h=f.calendar,vt=c(h,i),yt=RegExp(vt.regExp).exec(t);if(null===yt)return null;for(var k,pt=vt.groups,ot=null,w=null,p=null,b=null,tt=null,y=0,st=0,ht=0,ct=0,it=null,lt=!1,rt=0,dt=pt.length;dt>rt;rt++)if(l=yt[rt+1],l){var wt=pt[rt],ut=wt.length,v=parseInt(l,10);switch(wt){case"dd":case"d":if(b=v,n(b,1,31))return null;break;case"MMM":case"MMMM":if(p=s(h,l,3===ut),n(p,0,11))return null;break;case"M":case"MM":if(p=v-1,n(p,0,11))return null;break;case"y":case"yy":case"yyyy":if(w=4>ut?r(h,v):v,n(w,0,9999))return null;break;case"h":case"hh":if(y=v,12===y&&(y=0),n(y,0,11))return null;break;case"H":case"HH":if(y=v,n(y,0,23))return null;break;case"m":case"mm":if(st=v,n(st,0,59))return null;break;case"s":case"ss":if(ht=v,n(ht,0,59))return null;break;case"tt":case"t":if(lt=h.PM&&(l===h.PM[0]||l===h.PM[1]||l===h.PM[2]),!lt&&(!h.AM||l!==h.AM[0]&&l!==h.AM[1]&&l!==h.AM[2]))return null;break;case"f":case"ff":case"fff":if(ct=v*Math.pow(10,3-ut),n(ct,0,999))return null;break;case"ddd":case"dddd":if(tt=u(h,l,3===ut),n(tt,0,6))return null;break;case"zzz":if((ft=l.split(/:/),2!==ft.length)||(k=parseInt(ft[0],10),n(k,-12,13))||(et=parseInt(ft[1],10),n(et,0,59)))return null;it=60*k+(o(l,"-")?-et:et);break;case"z":case"zz":if(k=v,n(k,-12,13))return null;it=60*k;break;case"g":case"gg":if(d=l,!d||!h.eras)return null;for(d=e(d.toLowerCase()),g=0,bt=h.eras.length;bt>g;g++)if(d===h.eras[g].name.toLowerCase()){ot=g;break}if(null===ot)return null}}if(a=new Date,nt=h.convert,kt=nt?nt.fromGregorian(a)[0]:a.getFullYear(),null===w?w=kt:h.eras&&(w+=h.eras[ot||0].offset),null===p&&(p=0),null===b&&(b=1),nt){if(a=nt.toGregorian(w,p,b),null===a)return null}else if((a.setFullYear(w,p,b),a.getDate()!==b)||null!==tt&&a.getDay()!==tt)return null;return(lt&&12>y&&(y+=12),a.setHours(y,st,ht,ct),null!==it)&&(at=a.getMinutes()-(it+a.getTimezoneOffset()),a.setHours(a.getHours()+parseInt(at/60,10),at%60)),a}}(),c=function(n,t,i){var f,r=t["-"],u=t["+"];switch(i){case"n -":r=" "+r;u=" "+u;case"n-":l(n,r)?f=["-",n.substr(0,n.length-r.length)]:l(n,u)&&(f=["+",n.substr(0,n.length-u.length)]);break;case"- n":r+=" ";u+=" ";case"-n":o(n,r)?f=["-",n.substr(r.length)]:o(n,u)&&(f=["+",n.substr(u.length)]);break;case"(n)":o(n,"(")&&l(n,")")&&(f=["-",n.substr(1,n.length-2)])}return f||["",n]},u.prototype.findClosestCulture=function(n){return u.findClosestCulture.call(this,n)},u.prototype.format=function(n,t,i){return u.format.call(this,n,t,i)},u.prototype.localize=function(n,t){return u.localize.call(this,n,t)},u.prototype.parseInt=function(n,t,i){return u.parseInt.call(this,n,t,i)},u.prototype.parseFloat=function(n,t,i){return u.parseFloat.call(this,n,t,i)},u.prototype.culture=function(n){return u.culture.call(this,n)},u.addCultureInfo=function(n,t,i){var r={},u=!1;"string"!=typeof n?(i=n,n=this.culture().name,r=this.cultures[n]):"string"!=typeof t?(i=t,u=null==this.cultures[n],r=this.cultures[n]||this.cultures.default):(u=!0,r=this.cultures[t]);this.cultures[n]=p(!0,{},r,i);u&&(this.cultures[n].calendar=this.cultures[n].calendars.standard)},u.findClosestCulture=function(n){var u,r,h,c,y,l;if(!n)return this.findClosestCulture(this.cultureSelector)||this.cultures.default;if("string"==typeof n&&(n=n.split(",")),a(n)){for(var i,o=this.cultures,v=n,s=v.length,f=[],t=0;s>t;t++)n=e(v[t]),h=n.split(";"),i=e(h[0]),1===h.length?r=1:(n=e(h[1]),0===n.indexOf("q=")?(n=n.substr(2),r=parseFloat(n),r=isNaN(r)?0:r):r=1),f.push({lang:i,pri:r});for(f.sort(function(n,t){return n.pri<t.pri?1:n.pri>t.pri?-1:0}),t=0;s>t;t++)if(i=f[t].lang,u=o[i])return u;for(t=0;s>t;t++)for(i=f[t].lang;;){if(c=i.lastIndexOf("-"),-1===c)break;if(i=i.substr(0,c),u=o[i])return u}for(t=0;s>t;t++){i=f[t].lang;for(y in o)if(l=o[y],l.language===i)return l}}else if("object"==typeof n)return n;return u||null},u.format=function(n,t,i){var r=this.findClosestCulture(i);return n instanceof Date?n=d(n,t,r):"number"==typeof n&&(n=et(n,t,r)),n},u.localize=function(n,t){return this.findClosestCulture(t).messages[n]||this.cultures.default.messages[n]},u.parseDate=function(n,t,i){var u,o,f,r,s,e;if(i=this.findClosestCulture(i),t){if("string"==typeof t&&(t=[t]),t.length)for(r=0,s=t.length;s>r;r++)if(e=t[r],e&&(u=nt(n,e,i)))break}else{f=i.calendar.patterns;for(o in f)if(u=nt(n,f[o],i))break}return u||null},u.parseInt=function(n,t,i){return b(u.parseFloat(n,t,i))},u.parseFloat=function(n,t,i){var y,h,l,s,p,k,w,b,d,a,g;"number"!=typeof t&&(i=t,t=10);var f=this.findClosestCulture(i),v=NaN,r=f.numberFormat;if(n.indexOf(f.numberFormat.currency.symbol)>-1&&(n=n.replace(f.numberFormat.currency.symbol,""),n=n.replace(f.numberFormat.currency["."],f.numberFormat["."])),n.indexOf(f.numberFormat.percent.symbol)>-1&&(n=n.replace(f.numberFormat.percent.symbol,"")),n=n.replace(/ /g,""),it.test(n))v=parseFloat(n);else if(!t&&tt.test(n))v=parseInt(n,16);else{var u=c(n,r,r.pattern[0]),e=u[0],o=u[1];""===e&&"(n)"!==r.pattern[0]&&(u=c(n,r,"(n)"),e=u[0],o=u[1]);""===e&&"-n"!==r.pattern[0]&&(u=c(n,r,"-n"),e=u[0],o=u[1]);e=e||"+";l=o.indexOf("e");0>l&&(l=o.indexOf("E"));0>l?(h=o,y=null):(h=o.substr(0,l),y=o.substr(l+1));k=r["."];w=h.indexOf(k);0>w?(s=h,p=null):(s=h.substr(0,w),p=h.substr(w+k.length));b=r[","];s=s.split(b).join("");d=b.replace(/\u00A0/g," ");b!==d&&(s=s.split(d).join(""));a=e+s;(null!==p&&(a+="."+p),null!==y)&&(g=c(y,r,"-n"),a+="e"+(g[0]||"+")+g[1]);rt.test(a)&&(v=parseFloat(a))}return v},u.culture=function(n){return n!==r&&(this.cultureSelector=n),this.findClosestCulture(n)||this.cultures.default},t}(this)},function(n,t,i){"use strict";var h=i(12),r,u,f,e,o,s;t.Assert=h.Assert;r=i(31);t.Cache=r.Cache;u=i(32);t.Defer=u.Defer;f=i(33);t.L10N=f.L10N;e=i(11);t.Logger=e.Logger;o=i(34);t.Options=o.Options;s=i(35);t.l=s.l},function(n,t){"use strict";var i=function(){function n(n){this.onEmpty=n;this.cache=[]}return n.prototype.get=function(){return 0==this.cache.length?this.onEmpty():this.cache.pop()},n.prototype.push=function(n){this.cache.push(n)},n}();t.Cache=i},function(n,t,i){"use strict";var r=i(14),u=function(){function n(){}return n.defer=function(t){n.functions.push(t);n.arm()},n.flush=function(){for(;n.popOne(););},n.arm=function(){r.defer(function(){n.popOne()&&n.arm()})},n.popOne=function(){if(n.functions.length>0){var t=n.functions[0];return n.functions=r.rest(n.functions),t(),n.functions.length>0}return!1},n}();u.functions=[];t.Defer=u},function(n,t,i){"use strict";var e=i(23),r=i(14),u,f;String.toLocaleString=e.LocaleString;u=/<pl>(((?!<\/pl>).)*)<\/pl>/g;f=/<sn>(((?!<\/sn>).)*)<\/sn>/g;t.L10N={format:function(n){for(var u,e,i=[],f=1;f<arguments.length;f++)i[f-1]=arguments[f];return u=n.toLocaleString(),i.length>0&&(e=r.last(i),(r.isBoolean(e)||r.isNumber(e))&&(i.pop(),u=t.L10N.formatPlSn(u,e)),r.each(i,function(n,t){return u=u.replace("{"+t+"}",n)})),u},formatPlSn:function(n,t){var i=r.isBoolean(t)?t:t>1;return i?n.replace(u,"$1").replace(f,""):n.replace(u,"").replace(f,"$1")}}},function(n,t,i){"use strict";var u=i(13),r=i(14),f=function(){function n(){}return n.prototype.merge=function(n){return r.extend({},this,n)},n.prototype.mergeDeep=function(n){return r.extend({},u.Utils.extendDeep(this,n))},n}();t.Options=f},function(n,t,i){"use strict";function r(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return u.L10N.format.apply(this,arguments)}var u=i(33);t.l=r},function(n,t,i){"use strict";var f=i(37),r,u;t.AnalyticsEndpoint=f.AnalyticsEndpoint;r=i(10);t.EndpointCaller=r.EndpointCaller;u=i(22);t.QueryError=u.QueryError},function(n,t,i){"use strict";var o=i(11),s=i(10),e=i(12),h=i(21),u=i(38),c=i(4),f=i(14),r=function(){function n(n){this.options=n;this.logger=new o.Logger(this);var t={accessToken:this.options.token&&""!=this.options.token?this.options.token:null};this.endpointCaller=new s.EndpointCaller(t);this.organization=n.organization}return n.prototype.getCurrentVisitId=function(){return this.visitId},n.prototype.getCurrentVisitIdPromise=function(){var n=this;return new c.Promise(function(t,i){if(n.getCurrentVisitId())t(n.getCurrentVisitId());else{var r=n.buildAnalyticsUrl("/analytics/visit");n.getFromService(r,{}).then(function(i){n.visitId=i.id;t(n.visitId)}).catch(function(n){i(n)})}})},n.prototype.sendSearchEvents=function(n){if(n.length>0)return this.logger.info("Logging analytics search events",n),this.sendToService(n,"searches","searchEvents")},n.prototype.sendDocumentViewEvent=function(n){return e.Assert.exists(n),this.logger.info("Logging analytics document view",n),this.sendToService(n,"click","clickEvent")},n.prototype.sendCustomEvent=function(n){return e.Assert.exists(n),this.logger.info("Logging analytics custom event",n),this.sendToService(n,"custom","customEvent")},n.prototype.getTopQueries=function(n){var t=this.buildAnalyticsUrl("/stats/topQueries");return this.getFromService(t,n)},n.prototype.sendToService=function(t,i,r){var e=this,o=h.QueryUtils.mergePath(this.options.serviceUrl,"/rest/"+(n.CUSTOM_ANALYTICS_VERSION||n.DEFAULT_ANALYTICS_VERSION)+"/analytics/"+i),f=[];return this.organization&&f.push("org="+this.organization),u.Cookie.get("visitorId")&&f.push("visitor="+encodeURIComponent(u.Cookie.get("visitorId"))),null==n.pendingRequest?(n.pendingRequest=this.endpointCaller.call({errorsAsSuccess:!1,method:"POST",queryString:f,requestData:t,url:o,responseType:"text",requestDataType:"application/json"}).then(function(n){return e.handleAnalyticsEventResponse(n.data)}).finally(function(){n.pendingRequest=null}),n.pendingRequest):n.pendingRequest.finally(function(){return e.sendToService(t,i,r)})},n.prototype.getFromService=function(n,t){var i=this.options.token&&""!=this.options.token?f.extend({access_token:this.options.token},t):t;return this.endpointCaller.call({errorsAsSuccess:!1,method:"GET",queryString:this.options.organization?["org="+encodeURIComponent(this.options.organization)]:[],requestData:i,responseType:"json",url:n}).then(function(n){return n.data})},n.prototype.handleAnalyticsEventResponse=function(t){var i,r;return t.visitId?(i=t.visitId,r=t.visitorId):t.searchEventResponses&&(i=f.first(t.searchEventResponses).visitId,r=f.first(t.searchEventResponses).visitorId),i&&(this.visitId=i),r&&u.Cookie.set("visitorId",r,n.VISITOR_COOKIE_TIME),t},n.prototype.buildAnalyticsUrl=function(t){return this.options.serviceUrl+"/rest/"+(n.CUSTOM_ANALYTICS_VERSION||n.DEFAULT_ANALYTICS_VERSION)+t},n}();r.DEFAULT_ANALYTICS_URI="https://usageanalytics.coveo.com";r.DEFAULT_ANALYTICS_VERSION="v15";r.CUSTOM_ANALYTICS_VERSION=void 0;r.VISITOR_COOKIE_TIME=864e9;t.AnalyticsEndpoint=r},function(n,t){"use strict";var i=function(){function n(){}return n.set=function(t,i,r){var f,s,e,u,o;r?(e=new Date,e.setTime(e.getTime()+r),u="; expires="+e.toGMTString()):u="";o=location.hostname;1===o.split(".").length?document.cookie=this.prefix+t+"="+i+u+"; path=/":(s=o.split("."),s.shift(),f="."+s.join("."),document.cookie=this.prefix+t+"="+i+u+"; path=/; domain="+f,null!=n.get(t)&&n.get(t)==i||(f="."+o,document.cookie=this.prefix+t+"="+i+u+"; path=/; domain="+f))},n.get=function(n){for(var t,r=this.prefix+n+"=",u=document.cookie.split(";"),i=0;i<u.length;i++){for(t=u[i];" "==t.charAt(0);)t=t.substring(1,t.length);if(0==t.indexOf(r))return t.substring(r.length,t.length)}return null},n.erase=function(t){n.set(t,"",-1)},n}();i.prefix="coveo_";t.Cookie=i},function(n,t,i){"use strict";var b=i(40),r,u,f,e,o,s,h,c,l,a,v,y,p,w;t.AdvancedSearchEvents=b.AdvancedSearchEvents;r=i(41);t.AnalyticsEvents=r.AnalyticsEvents;u=i(42);t.BreadcrumbEvents=u.BreadcrumbEvents;f=i(43);t.DebugEvents=f.DebugEvents;e=i(44);t.ImageResultListEvents=e.ImageResultListEvents;o=i(45);t.InitializationEvents=o.InitializationEvents;s=i(46);t.OmniboxEvents=s.OmniboxEvents;h=i(47);t.PreferencesPanelEvents=h.PreferencesPanelEvents;c=i(48);t.QueryEvents=c.QueryEvents;l=i(49);t.ResultListEvents=l.ResultListEvents;a=i(50);t.ResultLayoutEvents=a.ResultLayoutEvents;v=i(51);t.SearchAlertsEvents=v.SearchAlertsEvents;y=i(52);t.SettingsEvents=y.SettingsEvents;p=i(53);t.SliderEvents=p.SliderEvents;w=i(54);t.StandaloneSearchInterfaceEvents=w.StandaloneSearchInterfaceEvents},function(n,t){"use strict";var i=function(){function n(){}return n}();i.buildingAdvancedSearch="buildingAdvancedSearch";i.executeAdvancedSearch="executeAdvancedSearch";t.AdvancedSearchEvents=i},function(n,t){"use strict";var i=function(){function n(){}return n}();i.searchEvent="analyticsSearchEvent";i.documentViewEvent="analyticsDocumentViewEvent";i.customEvent="analyticsCustomEvent";i.changeAnalyticsCustomData="changeAnalyticsCustomData";t.AnalyticsEvents=i},function(n,t){"use strict";var i=function(){function n(){}return n}();i.populateBreadcrumb="populateBreadcrumb";i.clearBreadcrumb="clearBreadcrumb";i.redrawBreadcrumb="redrawBreadcrumb";t.BreadcrumbEvents=i},function(n,t){"use strict";var i=function(){function n(){}return n}();i.showDebugPanel="showDebugPanel";t.DebugEvents=i},function(n,t){"use strict";var i=function(){function n(){}return n}();i.imageResultsLayoutComplete="imageResultsLayoutComplete";t.ImageResultListEvents=i},function(n,t){"use strict";var i=function(){function n(){}return n}();i.beforeInitialization="beforeInitialization";i.afterComponentsInitialization="afterComponentsInitialization";i.restoreHistoryState="restoreHistoryState";i.afterInitialization="afterInitialization";i.nuke="nuke";t.InitializationEvents=i},function(n,t){"use strict";var i=function(){function n(){}return n}();i.populateOmnibox="populateOmnibox";i.openOmnibox="openOmnibox";i.closeOmnibox="closeOmnibox";i.populateOmniboxSuggestions="populateOmniboxSuggestions";i.omniboxPreprocessResultForQuery="omniboxPreprocessResultForQuery";t.OmniboxEvents=i},function(n,t){"use strict";var i=function(){function n(){}return n}();i.savePreferences="savePreferences";i.exitPreferencesWithoutSave="exitPreferencesWithoutSave";t.PreferencesPanelEvents=i},function(n,t){"use strict";var i=function(){function n(){}return n}();i.newQuery="newQuery";i.buildingQuery="buildingQuery";i.doneBuildingQuery="doneBuildingQuery";i.duringQuery="duringQuery";i.duringFetchMoreQuery="duringFetchMoreQuery";i.querySuccess="querySuccess";i.fetchMoreSuccess="fetchMoreSuccess";i.deferredQuerySuccess="deferredQuerySuccess";i.queryError="queryError";i.preprocessResults="preprocessResults";i.preprocessMoreResults="preprocessMoreResults";i.noResults="noResults";i.buildingCallOptions="buildingCallOptions";t.QueryEvents=i},function(n,t){"use strict";var i=function(){function n(){}return n}();i.newResultsDisplayed="newResultsDisplayed";i.newResultDisplayed="newResultDisplayed";i.openQuickview="openQuickview";i.changeLayout="changeLayout";t.ResultListEvents=i},function(n,t){"use strict";var i=function(){function n(){}return n}();i.populateResultLayout="populateResultLayout";t.ResultLayoutEvents=i},function(n,t){"use strict";var i=function(){function n(){}return n}();i.searchAlertsCreated="searchAlertsCreated";i.searchAlertsDeleted="searchAlertsDeleted";i.searchAlertsFail="searchAlertsFail";i.searchAlertsPopulateMessage="searchAlertsPopulateMessage";t.SearchAlertsEvents=i},function(n,t){"use strict";var i=function(){function n(){}return n}();i.settingsPopulateMenu="settingsPopulateMenu";t.SettingsEvents=i},function(n,t){"use strict";var i=function(){function n(){}return n}();i.startSlide="startSlide";i.duringSlide="duringSlide";i.endSlide="endSlide";i.graphValueSelected="graphValueSelected";t.SliderEvents=i},function(n,t){"use strict";var i=function(){function n(){}return n}();i.beforeRedirect="beforeRedirect";t.StandaloneSearchInterfaceEvents=i},function(n,t,i){"use strict";var it=i(56),o,s,h,c,r,l,a,v,y,u,p,f,w,e,b,k,d,g,nt,tt;t.ColorUtils=it.ColorUtils;o=i(38);t.Cookie=o.Cookie;s=i(57);t.CurrencyUtils=s.CurrencyUtils;h=i(58);t.DateUtils=h.DateUtils;c=i(16);t.DeviceUtils=c.DeviceUtils;r=i(59);t.Dom=r.Dom;t.$$=r.$$;l=i(60);t.DomUtils=l.DomUtils;a=i(64);t.EmailActionsUtils=a.EmailActionsUtils;v=i(65);t.EmailUtils=v.EmailUtils;y=i(66);t.HashUtils=y.HashUtils;u=i(67);t.HighlightUtils=u.HighlightUtils;t.StringAndHoles=u.StringAndHoles;p=i(68);t.HTMLUtils=p.HTMLUtils;f=i(69);t.KEYBOARD=f.KEYBOARD;t.KeyboardUtils=f.KeyboardUtils;w=i(70);t.LocalStorageUtils=w.LocalStorageUtils;e=i(71);t.OSUtils=e.OSUtils;t.OS_NAME=e.OS_NAME;b=i(72);t.PopupUtils=b.PopupUtils;k=i(21);t.QueryUtils=k.QueryUtils;d=i(73);t.StreamHighlightUtils=d.StreamHighlightUtils;g=i(62);t.StringUtils=g.StringUtils;nt=i(15);t.TimeSpan=nt.TimeSpan;tt=i(13);t.Utils=tt.Utils},function(n,t){"use strict";var i=function(){function n(){}return n.hsvToRgb=function(n,t,i){var r,u,f,h=Math.floor(6*n),c=6*n-h,e=i*(1-t),o=i*(1-c*t),s=i*(1-(1-c)*t);switch(h%6){case 0:r=i;u=s;f=e;break;case 1:r=o;u=i;f=e;break;case 2:r=e;u=i;f=s;break;case 3:r=e;u=o;f=i;break;case 4:r=s;u=e;f=i;break;case 5:r=i;u=e;f=o}return[Math.round(255*r),Math.round(255*u),Math.round(255*f)]},n.rgbToHsv=function(n,t,i){n/=255;t/=255;i/=255;var r,e,u=Math.max(n,t,i),o=Math.min(n,t,i),s=u,f=u-o;if(e=0==u?0:f/u,u==o)r=0;else{switch(u){case n:r=(t-i)/f+(t<i?6:0);break;case t:r=(i-n)/f+2;break;case i:r=(n-t)/f+4}r/=6}return[r,e,s]},n}();t.ColorUtils=i},function(n,t,i){"use strict";var f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},e=i(12),o=i(34),r=i(13),u=i(28),s=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.decimals=0,t}return f(t,n),t}(o.Options),h=function(){function n(){}return n.currencyToString=function(n,t){var i,f,o;return r.Utils.isNullOrUndefined(n)?"":(n=Number(n),e.Assert.isNumber(n),t=(new s).merge(t),i=u.culture().numberFormat.currency,f=i.symbol,r.Utils.isNonEmptyString(t.symbol)&&(i.symbol=t.symbol),o=u.format(n,"c"+t.decimals.toString()),i.symbol=f,o)},n}();t.CurrencyUtils=h},function(n,t,i){"use strict";var h=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},c=i(34),u=i(13),f=i(35),e=i(15),r=i(28),o=i(14),s=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.now=new Date,t.useTodayYesterdayAndTomorrow=!0,t.useWeekdayIfThisWeek=!0,t.omitYearIfCurrentOne=!0,t.useLongDateFormat=!1,t.includeTimeIfToday=!0,t.includeTimeIfThisWeek=!0,t.alwaysIncludeTime=!1,t.predefinedFormat=void 0,t}return h(t,n),t}(c.Options),l=function(){function n(){}return n.convertFromJsonDateIfNeeded=function(n){return o.isDate(n)?n:null===n||isNaN(Number(n))?o.isString(n)?new Date(n.replace("@"," ")):void 0:new Date(Number(n))},n.dateForQuery=function(t){return t.getFullYear()+"/"+n.padNumber((t.getMonth()+1).toString())+"/"+n.padNumber(t.getDate().toString())},n.padNumber=function(n,t){for(void 0===t&&(t=2);n.length<t;)n="0"+n;return n},n.keepOnlyDatePart=function(n){return new Date(n.getFullYear(),n.getMonth(),n.getDate())},n.offsetDateByDays=function(n,t){var i=new Date(n.valueOf());return i.setDate(i.getDate()+t),i},n.dateToString=function(t,i){var o,h,c,l,a;if(u.Utils.isNullOrUndefined(t))return"";if(i=(new s).merge(i),o=n.keepOnlyDatePart(t),i.predefinedFormat)return r.format(o,i.predefinedFormat);if(h=n.keepOnlyDatePart(i.now),i.useTodayYesterdayAndTomorrow){if(o.valueOf()==h.valueOf())return f.l("Today");if(c=n.offsetDateByDays(h,1),o.valueOf()==c.valueOf())return f.l("Tomorrow");if(l=n.offsetDateByDays(h,-1),o.valueOf()==l.valueOf())return f.l("Yesterday")}return a=Math.abs(e.TimeSpan.fromDates(o,h).getDays())<7,i.useWeekdayIfThisWeek&&a?o.valueOf()>h.valueOf()?f.l("Next")+" "+r.format(o,"dddd"):f.l("Last")+" "+r.format(o,"dddd"):i.omitYearIfCurrentOne&&o.getFullYear()===h.getFullYear()?r.format(o,"M"):i.useLongDateFormat?r.format(o,"D"):r.format(o,"d")},n.timeToString=function(n){return u.Utils.isNullOrUndefined(n)?"":r.format(n,"t")},n.dateTimeToString=function(t,i){if(u.Utils.isNullOrUndefined(t))return"";i=(new s).merge(i);var r=n.keepOnlyDatePart(i.now),o=Math.abs(e.TimeSpan.fromDates(t,r).getDays())<7,f=n.dateToString(t,i),h=n.keepOnlyDatePart(t);return i.alwaysIncludeTime||i.includeTimeIfThisWeek&&o||i.includeTimeIfToday&&h.valueOf()==r.valueOf()?f+", "+n.timeToString(t):f},n.monthToString=function(n){var t=new Date(1980,n);return r.format(t,"MMMM")},n.isValid=function(n){return n instanceof Date&&!isNaN(n.getTime())},n.timeBetween=function(n,t){return u.Utils.isNullOrUndefined(n)||u.Utils.isNullOrUndefined(t)?"":("0"+((t.getTime()-n.getTime())/36e5).toFixed()).slice(-2)+":"+("0"+((t.getTime()-n.getTime())%36e5/6e4).toFixed()).slice(-2)+":"+("0"+((t.getTime()-n.getTime())%6e4/1e3).toFixed()).slice(-2)},n}();t.DateUtils=l;Date.prototype.toISOString||!function(){function n(n){return n<10?"0"+n:n}Date.prototype.toISOString=function(){return this.getUTCFullYear()+"-"+n(this.getUTCMonth()+1)+"-"+n(this.getUTCDate())+"T"+n(this.getUTCHours())+":"+n(this.getUTCMinutes())+":"+n(this.getUTCSeconds())+"."+(this.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"}}()},function(n,t,i){"use strict";function f(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return 1===n.length&&n[0]instanceof u?n[0]:new u(1!==n.length||r.isString(n[0])?u.createElement.apply(u,n):n[0])}var e=i(13),o=i(18),c=i(12),l=i(11),r=i(14),u=function(){function n(n){c.Assert.exists(n);this.el=n}return n.createElement=function(t,i){for(var u,f,h,s=[],o=2;o<arguments.length;o++)s[o-2]=arguments[o];u=document.createElement(t);for(f in i)"className"===f?u.className=i.className:(h=f.indexOf("-")!==-1?f:e.Utils.toDashCase(f),u.setAttribute(h,i[f]));return r.each(s,function(t){t instanceof HTMLElement?u.appendChild(t):r.isString(t)?u.innerHTML+=t:t instanceof n&&u.appendChild(t.el)}),u},n.prototype.append=function(n){this.el.appendChild(n)},n.prototype.css=function(n){return this.el.style[n]?this.el.style[n]:window.getComputedStyle(this.el).getPropertyValue(n)},n.prototype.text=function(n){return e.Utils.isUndefined(n)?this.el.innerText||this.el.textContent:void(void 0!=this.el.innerText?this.el.innerText=n:void 0!=this.el.textContent&&(this.el.textContent=n))},n.prototype.nodeListToArray=function(n){for(var t=n.length,i=new Array(t);t--;)i[t]=n.item(t);return i},n.prototype.empty=function(){for(;this.el.firstChild;)this.el.removeChild(this.el.firstChild)},n.prototype.remove=function(){this.el.parentNode.removeChild(this.el)},n.prototype.show=function(){this.el.style.display="block"},n.prototype.hide=function(){this.el.style.display="none"},n.prototype.toggle=function(n){void 0===n?"block"==this.el.style.display?this.hide():this.show():n?this.show():this.hide()},n.prototype.getAttribute=function(n){return this.el.getAttribute(n)},n.prototype.setAttribute=function(n,t){this.el.setAttribute(n,t)},n.prototype.find=function(n){return this.el.querySelector(n)},n.prototype.is=function(n){return this.el.tagName.toLowerCase()==n.toLowerCase()||!("."!=n[0]||!this.hasClass(n.substr(1)))||"#"==n[0]&&this.el.getAttribute("id")==n.substr(1)},n.prototype.closest=function(n){return this.traverseAncestorForClass(this.el,n)},n.prototype.parent=function(n){if(void 0!=this.el.parentElement)return this.traverseAncestorForClass(this.el.parentElement,n)},n.prototype.parents=function(t){for(var r=[],i=this.parent(t);i;)r.push(i),i=new n(i).parent(t);return r},n.prototype.children=function(){return this.nodeListToArray(this.el.children)},n.prototype.siblings=function(n){for(var i=[],t=this.el.parentNode.firstChild;t;t=t.nextSibling)t!=this.el&&(!this.matches(t,n)&&n||i.push(t));return i},n.prototype.matches=function(n,t){for(var r=document.querySelectorAll(t),i=0;i<r.length;i++)if(r[i]===n)return!0;return!1},n.prototype.findAll=function(n){return this.nodeListToArray(this.el.querySelectorAll(n))},n.prototype.findClass=function(n){return"getElementsByClassName"in this.el?this.nodeListToArray(this.el.getElementsByClassName(n)):this.nodeListToArray(this.el.querySelectorAll("."+n))},n.prototype.findId=function(n){return document.getElementById(n)},n.prototype.addClass=function(n){var t=this;r.isArray(n)?r.each(n,function(n){t.addClass(n)}):this.hasClass(n)||(this.el.className?this.el.className+=" "+n:this.el.className=n)},n.prototype.removeClass=function(n){this.el.className=this.el.className.replace(new RegExp("(^|\\s)"+n+"(\\s|\\b)","g"),"$1").trim()},n.prototype.toggleClass=function(n,t){e.Utils.isNullOrUndefined(t)?this.hasClass(n)?this.removeClass(n):this.addClass(n):t?this.addClass(n):this.removeClass(n)},n.prototype.setHtml=function(n){this.el.innerHTML=n},n.prototype.getClass=function(){return this.el.className.match(n.CLASS_NAME_REGEX)||[]},n.prototype.hasClass=function(n){return r.contains(this.getClass(),n)},n.prototype.detach=function(){this.el.parentElement&&this.el.parentElement.removeChild(this.el)},n.prototype.insertAfter=function(n){n.parentNode&&n.parentNode.insertBefore(this.el,n.nextSibling)},n.prototype.insertBefore=function(n){n.parentNode&&n.parentNode.insertBefore(this.el,n)},n.prototype.prepend=function(t){this.el.firstChild?new n(t).insertBefore(this.el.firstChild):this.el.appendChild(t)},n.prototype.on=function(t,i){var e=this,u,f;if(r.isArray(t))r.each(t,function(n){e.on(n,i)});else if(u=o.JQueryUtils.getJQuery(),u)u(this.el).on(t,i);else this.el.addEventListener?(f=function(n){i(n,n.detail)},n.handlers.push({eventHandle:i,fn:f}),this.el.addEventListener(t,f,!1)):this.el.on&&this.el.on("on"+t,i)},n.prototype.one=function(n,t){var u=this,i;if(r.isArray(n))r.each(n,function(n){u.one(n,t)});else{i=function(r,f){return u.off(n,i),t(r,f)};this.on(n,i)}},n.prototype.off=function(t,i){var s=this,u,f,e;r.isArray(t)?r.each(t,function(n){s.off(n,i)}):(u=o.JQueryUtils.getJQuery(),u?u(this.el).off(t,i):this.el.removeEventListener?(f=0,e=r.find(n.handlers,function(n,t){if(n.eventHandle==i)return f=t,!0}),e&&(this.el.removeEventListener(t,e.fn,!1),n.handlers.splice(f,1))):this.el.off&&this.el.off("on"+t,i))},n.prototype.trigger=function(n,t){var i=o.JQueryUtils.getJQuery(),r;i?i(this.el).trigger(n,t):void 0!==CustomEvent?(r=new CustomEvent(n,{detail:t,bubbles:!0}),this.el.dispatchEvent(r)):new l.Logger(this).error("CANNOT TRIGGER EVENT FOR OLDER BROWSER")},n.prototype.isEmpty=function(){return n.ONLY_WHITE_SPACE_REGEX.test(this.el.innerHTML)},n.prototype.isDescendant=function(n){for(var t=this.el.parentNode;null!=t;){if(t==n)return!0;t=t.parentNode}return!1},n.prototype.replaceWith=function(t){var i=this.el.parentNode;i&&new n(t).insertAfter(this.el);this.detach()},n.prototype.position=function(){var e=this.offsetParent(),n={top:0,left:0},o=this.offset(),t,i,r,u;return f(e).is("html")||(n=f(e).offset()),t=parseInt(f(e).css("borderTopWidth")),i=parseInt(f(e).css("borderLeftWidth")),t=isNaN(t)?0:t,i=isNaN(i)?0:i,n={top:n.top+t,left:n.left+i},r=parseInt(this.css("marginTop")),u=parseInt(this.css("marginLeft")),r=isNaN(r)?0:r,u=isNaN(u)?0:u,{top:o.top-n.top-r,left:o.left-n.left-u}},n.prototype.offsetParent=function(){for(var n=this.el.offsetParent;n instanceof HTMLElement&&"static"===f(n).css("position");)n=n.offsetParent;return n instanceof HTMLElement?n:document.documentElement},n.prototype.offset=function(){var n,i,t;return this.el.getClientRects().length?(n=this.el.getBoundingClientRect(),n.width||n.height)?(i=this.el.ownerDocument,t=i.documentElement,{top:n.top+window.pageYOffset-t.clientTop,left:n.left+window.pageXOffset-t.clientLeft}):n:{top:0,left:0}},n.prototype.width=function(){return this.el.offsetWidth},n.prototype.height=function(){return this.el.offsetHeight},n.prototype.traverseAncestorForClass=function(n,t){void 0===n&&(n=this.el);0==t.indexOf(".")&&(t=t.substr(1));for(var i=!1;!i&&(f(n).hasClass(t)&&(i=!0),"body"!=n.tagName.toLowerCase())&&null!=n.parentElement;)i||(n=n.parentElement);if(i)return n},n}(),s,h;u.CLASS_NAME_REGEX=/-?[_a-zA-Z]+[_a-zA-Z0-9-]*/g;u.ONLY_WHITE_SPACE_REGEX=/^\s*$/;u.handlers=[];t.Dom=u;s=function(){function n(n){this.win=n}return n.prototype.height=function(){return this.win.innerHeight},n.prototype.width=function(){return this.win.innerWidth},n.prototype.scrollY=function(){return this.supportPageOffset()?this.win.pageYOffset:this.isCSS1Compat()?this.win.document.documentElement.scrollTop:this.win.document.body.scrollTop},n.prototype.scrollX=function(){return this.supportPageOffset()?window.pageXOffset:this.isCSS1Compat()?document.documentElement.scrollLeft:document.body.scrollLeft},n.prototype.isCSS1Compat=function(){return"CSS1Compat"===(this.win.document.compatMode||"")},n.prototype.supportPageOffset=function(){return void 0!==this.win.pageXOffset},n}();t.Win=s;h=function(){function n(n){this.doc=n}return n.prototype.height=function(){var n=this.doc.body;return Math.max(n.scrollHeight,n.offsetHeight)},n.prototype.width=function(){var n=this.doc.body;return Math.max(n.scrollWidth,n.offsetWidth)},n}();t.Doc=h;t.$$=f},function(n,t,i){"use strict";var r=i(59),f=i(58),e=i(61),o=i(13),u=i(62),s=function(){function n(){}return n.getPopUpCloseButton=function(n,t){var e=document.createElement("span"),i=document.createElement("span"),u,f;return r.$$(i).addClass("coveo-close-button"),e.appendChild(i),u=document.createElement("span"),r.$$(u).addClass("coveo-icon"),r.$$(u).addClass("coveo-sprites-quickview-close"),i.appendChild(u),r.$$(i).text(n),f=document.createElement("span"),r.$$(f).addClass("coveo-pop-up-reminder"),r.$$(f).text(t),e.appendChild(f),e.outerHTML},n.getBasicLoadingAnimation=function(){var n="coveo-loading-dot",t=document.createElement("div");return t.className="coveo-first-loading-animation",t.innerHTML="<div class='coveo-logo' ><\/div>\n    <div class='coveo-loading-container'>\n      <div class='"+n+"'><\/div>\n      <div class='"+n+"'><\/div>\n      <div class='"+n+"'><\/div>\n      <div class='"+n+"'><\/div>\n    <\/div>",t},n.highlightElement=function(n,t){var f=new RegExp(o.Utils.escapeRegexCharacter(u.StringUtils.latinize(t)),"i"),i=u.StringUtils.latinize(n).search(f),r=i+t.length;return u.StringUtils.htmlEncode(n.slice(0,i))+"<span class='coveo-highlight'>"+u.StringUtils.htmlEncode(n.slice(i,r))+"<\/span>"+u.StringUtils.htmlEncode(n.slice(r))},n.getLoadingSpinner=function(){var n=r.$$("div");return n.addClass("coveo-loading-spinner"),n.el},n.getModalBoxHeader=function(n){var t=r.$$("div");return t.el.innerHTML="<div class='coveo-modalbox-right-header'>\n        <span class='coveo-modalbox-close-button'>\n          <span class='coveo-icon coveo-sprites-common-clear'><\/span>\n        <\/span>\n      <\/div>\n      <div class='coveo-modalbox-left-header'>\n        <span class='coveo-modalbox-pop-up-reminder'> "+(n||"")+"<\/span>\n      <\/div>",t},n.getQuickviewHeader=function(n,t,i){var o="",s,u;return t.showDate&&(o=f.DateUtils.dateTimeToString(new Date(n.raw.date))),s=e.FileTypes.get(n),u=r.$$("div"),u.el.innerHTML="<div class='coveo-quickview-right-header'>\n        <span class='coveo-quickview-time'>"+o+"<\/span>\n        <span class='coveo-quickview-close-button'>\n          <span class='coveo-icon coveo-sprites-common-clear'><\/span>\n        <\/span>\n      <\/div>\n      <div class='coveo-quickview-left-header'>\n        <span class='coveo-quickview-icon coveo-small "+s.icon+"'><\/span>\n        <a class='coveo-quickview-pop-up-reminder'> "+(t.title||"")+"<\/a>\n      <\/div>",new Coveo[Coveo.Salesforce?"SalesforceResultLink":"ResultLink"](u.find(".coveo-quickview-pop-up-reminder"),void 0,i,n),u},n}();t.DomUtils=s},function(n,t,i){"use strict";var r,f=i(13),u=i(35),o=i(12),e=i(14),s=function(){function n(){}return n.get=function(t){var i=t.raw.objecttype,r=t.raw.filetype;return f.Utils.isNonEmptyString(i)&&"file"!=i.toLowerCase()?n.getObjectType(i):f.Utils.isNonEmptyString(r)?n.getFileType(r):{icon:"coveo-icon filetype",caption:u.l("Unknown")}},n.getObjectType=function(n){n=n.toLowerCase();var t=u.l("objecttype_"+n);return{icon:"coveo-icon objecttype "+n,caption:t!="objecttype_"+n?t:n}},n.getFileType=function(n){n=n.toLowerCase();"."==n[0]&&(n=n.substring(1));var t=u.l("filetype_"+n);return{icon:"coveo-icon filetype "+n,caption:t!="filetype_"+n?t:n}},n.getFileTypeCaptions=function(){if(void 0==r){r={};var n=String.locales[String.locale.toLowerCase()];o.Assert.isNotUndefined(n);e.each(e.keys(n),function(n){0==n.indexOf("filetype_")?r[n.substr(9)]=n.toLocaleString():0==n.indexOf("objecttype_")&&(r[n.substr(11)]=n.toLocaleString())})}return r},n}();t.FileTypes=s},function(n,t,i){"use strict";var r=i(12),e=i(59),o=i(63),u=i(14),f=function(){function n(){}return n.javascriptEncode=function(n){return r.Assert.isString(n),n=n.replace(/\\/g,"\\\\"),n=n.replace(/'/g,"\\'"),n=n.replace(/"/g,'\\"')},n.htmlEncode=function(n){r.Assert.isString(n);var t=e.$$("div");return t.text(n),t.el.innerHTML},n.splice=function(n,t,i,r){return n.slice(0,t)+r+n.slice(t+Math.abs(i))},n.removeMiddle=function(t,i,r){if(t.length<i)return t;var u=t.length-i,f=Math.floor(i/2);return n.splice(t,f,u,r)},n.regexEncode=function(n){return r.Assert.isString(n),n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},n.stringToRegex=function(t,i){void 0===i&&(i=!1);r.Assert.isString(t);var f=n.regexEncode(t);return i?u.map(f,function(t){var i=u.find(n.accented,function(n){return null!=t.match(n)});return i?i.source:t}).join(""):f},n.wildcardsToRegex=function(t,i){void 0===i&&(i=!1);r.Assert.isString(t);var u=n.stringToRegex(t,i);return u=u.replace(/\\\*/,".*"),u=u.replace(/\\\?/,".")},n.getHighlights=function(n,t,i){for(var r,f=[];r=t.exec(n);){var e=r[2],o=r[1],s=r.index+o.length;if(f.push({offset:s,length:e.length,dataHighlightGroupTerm:i}),!t.global)break}if(!u.isEmpty(f))return f},n.encodeCarriageReturn=function(n){return r.Assert.isString(n),n.replace(/\n/g,"<br/>")},n.equalsCaseInsensitive=function(n,t){return n.toLowerCase()==t.toLowerCase()},n.match=function(n,t){for(var i,r=[];null!==(i=t.exec(n));)r.push(i);return r},n.hashCode=function(n){for(var r,t=0,u=n.length,i=0;i<u;i++)r=n.charCodeAt(i),t=(t<<5)-t+r,t&=t;return t.toString(16)},n.latinize=function(n){return o(n)},n}();f.accented={A:/[Aa\xaa\xc0-\xc5\xe0-\xe5\u0100-\u0105\u01cd\u01ce\u0200-\u0203\u0226\u0227\u1d2c\u1d43\u1e00\u1e01\u1e9a\u1ea0-\u1ea3\u2090\u2100\u2101\u213b\u249c\u24b6\u24d0\u3371-\u3374\u3380-\u3384\u3388\u3389\u33a9-\u33af\u33c2\u33ca\u33df\u33ff\uff21\uff41]/g,B:/[Bb\u1d2e\u1d47\u1e02-\u1e07\u212c\u249d\u24b7\u24d1\u3374\u3385-\u3387\u33c3\u33c8\u33d4\u33dd\uff22\uff42]/g,C:/[Cc\xc7\xe7\u0106-\u010d\u1d9c\u2100\u2102\u2103\u2105\u2106\u212d\u216d\u217d\u249e\u24b8\u24d2\u3376\u3388\u3389\u339d\u33a0\u33a4\u33c4-\u33c7\uff23\uff43]/g,D:/[Dd\u010e\u010f\u01c4-\u01c6\u01f1-\u01f3\u1d30\u1d48\u1e0a-\u1e13\u2145\u2146\u216e\u217e\u249f\u24b9\u24d3\u32cf\u3372\u3377-\u3379\u3397\u33ad-\u33af\u33c5\u33c8\uff24\uff44]/g,E:/[Ee\xc8-\xcb\xe8-\xeb\u0112-\u011b\u0204-\u0207\u0228\u0229\u1d31\u1d49\u1e18-\u1e1b\u1eb8-\u1ebd\u2091\u2121\u212f\u2130\u2147\u24a0\u24ba\u24d4\u3250\u32cd\u32ce\uff25\uff45]/g,F:/[Ff\u1da0\u1e1e\u1e1f\u2109\u2131\u213b\u24a1\u24bb\u24d5\u338a-\u338c\u3399\ufb00-\ufb04\uff26\uff46]/g,G:/[Gg\u011c-\u0123\u01e6\u01e7\u01f4\u01f5\u1d33\u1d4d\u1e20\u1e21\u210a\u24a2\u24bc\u24d6\u32cc\u32cd\u3387\u338d-\u338f\u3393\u33ac\u33c6\u33c9\u33d2\u33ff\uff27\uff47]/g,H:/[Hh\u0124\u0125\u021e\u021f\u02b0\u1d34\u1e22-\u1e2b\u1e96\u210b-\u210e\u24a3\u24bd\u24d7\u32cc\u3371\u3390-\u3394\u33ca\u33cb\u33d7\uff28\uff48]/g,I:/[Ii\xcc-\xcf\xec-\xef\u0128-\u0130\u0132\u0133\u01cf\u01d0\u0208-\u020b\u1d35\u1d62\u1e2c\u1e2d\u1ec8-\u1ecb\u2071\u2110\u2111\u2139\u2148\u2160-\u2163\u2165-\u2168\u216a\u216b\u2170-\u2173\u2175-\u2178\u217a\u217b\u24a4\u24be\u24d8\u337a\u33cc\u33d5\ufb01\ufb03\uff29\uff49]/g,J:/[Jj\u0132-\u0135\u01c7-\u01cc\u01f0\u02b2\u1d36\u2149\u24a5\u24bf\u24d9\u2c7c\uff2a\uff4a]/g,K:/[Kk\u0136\u0137\u01e8\u01e9\u1d37\u1d4f\u1e30-\u1e35\u212a\u24a6\u24c0\u24da\u3384\u3385\u3389\u338f\u3391\u3398\u339e\u33a2\u33a6\u33aa\u33b8\u33be\u33c0\u33c6\u33cd-\u33cf\uff2b\uff4b]/g,L:/[Ll\u0139-\u0140\u01c7-\u01c9\u02e1\u1d38\u1e36\u1e37\u1e3a-\u1e3d\u2112\u2113\u2121\u216c\u217c\u24a7\u24c1\u24db\u32cf\u3388\u3389\u33d0-\u33d3\u33d5\u33d6\u33ff\ufb02\ufb04\uff2c\uff4c]/g,M:/[Mm\u1d39\u1d50\u1e3e-\u1e43\u2120\u2122\u2133\u216f\u217f\u24a8\u24c2\u24dc\u3377-\u3379\u3383\u3386\u338e\u3392\u3396\u3399-\u33a8\u33ab\u33b3\u33b7\u33b9\u33bd\u33bf\u33c1\u33c2\u33ce\u33d0\u33d4-\u33d6\u33d8\u33d9\u33de\u33df\uff2d\uff4d]/g,N:/[Nn\xd1\xf1\u0143-\u0149\u01ca-\u01cc\u01f8\u01f9\u1d3a\u1e44-\u1e4b\u207f\u2115\u2116\u24a9\u24c3\u24dd\u3381\u338b\u339a\u33b1\u33b5\u33bb\u33cc\u33d1\uff2e\uff4e]/g,O:/[Oo\xba\xd2-\xd6\xf2-\xf6\u014c-\u0151\u01a0\u01a1\u01d1\u01d2\u01ea\u01eb\u020c-\u020f\u022e\u022f\u1d3c\u1d52\u1ecc-\u1ecf\u2092\u2105\u2116\u2134\u24aa\u24c4\u24de\u3375\u33c7\u33d2\u33d6\uff2f\uff4f]/g,P:/[Pp\u1d3e\u1d56\u1e54-\u1e57\u2119\u24ab\u24c5\u24df\u3250\u3371\u3376\u3380\u338a\u33a9-\u33ac\u33b0\u33b4\u33ba\u33cb\u33d7-\u33da\uff30\uff50]/g,Q:/[Qq\u211a\u24ac\u24c6\u24e0\u33c3\uff31\uff51]/g,R:/[Rr\u0154-\u0159\u0210-\u0213\u02b3\u1d3f\u1d63\u1e58-\u1e5b\u1e5e\u1e5f\u20a8\u211b-\u211d\u24ad\u24c7\u24e1\u32cd\u3374\u33ad-\u33af\u33da\u33db\uff32\uff52]/g,S:/[Ss\u015a-\u0161\u017f\u0218\u0219\u02e2\u1e60-\u1e63\u20a8\u2101\u2120\u24ae\u24c8\u24e2\u33a7\u33a8\u33ae-\u33b3\u33db\u33dc\ufb06\uff33\uff53]/g,T:/[Tt\u0162-\u0165\u021a\u021b\u1d40\u1d57\u1e6a-\u1e71\u1e97\u2121\u2122\u24af\u24c9\u24e3\u3250\u32cf\u3394\u33cf\ufb05\ufb06\uff34\uff54]/g,U:/[Uu\xd9-\xdc\xf9-\xfc\u0168-\u0173\u01af\u01b0\u01d3\u01d4\u0214-\u0217\u1d41\u1d58\u1d64\u1e72-\u1e77\u1ee4-\u1ee7\u2106\u24b0\u24ca\u24e4\u3373\u337a\uff35\uff55]/g,V:/[Vv\u1d5b\u1d65\u1e7c-\u1e7f\u2163-\u2167\u2173-\u2177\u24b1\u24cb\u24e5\u2c7d\u32ce\u3375\u33b4-\u33b9\u33dc\u33de\uff36\uff56]/g,W:/[Ww\u0174\u0175\u02b7\u1d42\u1e80-\u1e89\u1e98\u24b2\u24cc\u24e6\u33ba-\u33bf\u33dd\uff37\uff57]/g,X:/[Xx\u02e3\u1e8a-\u1e8d\u2093\u213b\u2168-\u216b\u2178-\u217b\u24b3\u24cd\u24e7\u33d3\uff38\uff58]/g,Y:/[Yy\xdd\xfd\xff\u0176-\u0178\u0232\u0233\u02b8\u1e8e\u1e8f\u1e99\u1ef2-\u1ef9\u24b4\u24ce\u24e8\u33c9\uff39\uff59]/g,Z:/[Zz\u0179-\u017e\u01f1-\u01f3\u1dbb\u1e90-\u1e95\u2124\u2128\u24b5\u24cf\u24e9\u3390-\u3394\uff3a\uff5a]/g};t.StringUtils=f},function(n,t,i){var r,u;!function(f,e){r=e;u="function"==typeof r?r.call(t,i,t,n):r;!(void 0!==u&&(n.exports=u))}(this,function(){function n(t){return"string"==typeof t?t.replace(/[^A-Za-z0-9]/g,function(t){return n.characters[t]||t}):t}return n.characters={"Á":"A","Ă":"A","Ắ":"A","Ặ":"A","Ằ":"A","Ẳ":"A","Ẵ":"A","Ǎ":"A","Â":"A","Ấ":"A","Ậ":"A","Ầ":"A","Ẩ":"A","Ẫ":"A","Ä":"A","Ǟ":"A","Ȧ":"A","Ǡ":"A","Ạ":"A","Ȁ":"A","À":"A","Ả":"A","Ȃ":"A","Ā":"A","Ą":"A","Å":"A","Ǻ":"A","Ḁ":"A","Ⱥ":"A","Ã":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ḃ":"B","Ḅ":"B","Ɓ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ć":"C","Č":"C","Ç":"C","Ḉ":"C","Ĉ":"C","Ċ":"C","Ƈ":"C","Ȼ":"C","Ď":"D","Ḑ":"D","Ḓ":"D","Ḋ":"D","Ḍ":"D","Ɗ":"D","Ḏ":"D","ǲ":"D","ǅ":"D","Đ":"D","Ƌ":"D","Ǳ":"DZ","Ǆ":"DZ","É":"E","Ĕ":"E","Ě":"E","Ȩ":"E","Ḝ":"E","Ê":"E","Ế":"E","Ệ":"E","Ề":"E","Ể":"E","Ễ":"E","Ḙ":"E","Ë":"E","Ė":"E","Ẹ":"E","Ȅ":"E","È":"E","Ẻ":"E","Ȇ":"E","Ē":"E","Ḗ":"E","Ḕ":"E","Ę":"E","Ɇ":"E","Ẽ":"E","Ḛ":"E","Ꝫ":"ET","Ḟ":"F","Ƒ":"F","Ǵ":"G","Ğ":"G","Ǧ":"G","Ģ":"G","Ĝ":"G","Ġ":"G","Ɠ":"G","Ḡ":"G","Ǥ":"G","Ḫ":"H","Ȟ":"H","Ḩ":"H","Ĥ":"H","Ⱨ":"H","Ḧ":"H","Ḣ":"H","Ḥ":"H","Ħ":"H","Í":"I","Ĭ":"I","Ǐ":"I","Î":"I","Ï":"I","Ḯ":"I","İ":"I","Ị":"I","Ȉ":"I","Ì":"I","Ỉ":"I","Ȋ":"I","Ī":"I","Į":"I","Ɨ":"I","Ĩ":"I","Ḭ":"I","Ꝺ":"D","Ꝼ":"F","Ᵹ":"G","Ꞃ":"R","Ꞅ":"S","Ꞇ":"T","Ꝭ":"IS","Ĵ":"J","Ɉ":"J","Ḱ":"K","Ǩ":"K","Ķ":"K","Ⱪ":"K","Ꝃ":"K","Ḳ":"K","Ƙ":"K","Ḵ":"K","Ꝁ":"K","Ꝅ":"K","Ĺ":"L","Ƚ":"L","Ľ":"L","Ļ":"L","Ḽ":"L","Ḷ":"L","Ḹ":"L","Ⱡ":"L","Ꝉ":"L","Ḻ":"L","Ŀ":"L","Ɫ":"L","ǈ":"L","Ł":"L","Ǉ":"LJ","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ń":"N","Ň":"N","Ņ":"N","Ṋ":"N","Ṅ":"N","Ṇ":"N","Ǹ":"N","Ɲ":"N","Ṉ":"N","Ƞ":"N","ǋ":"N","Ñ":"N","Ǌ":"NJ","Ó":"O","Ŏ":"O","Ǒ":"O","Ô":"O","Ố":"O","Ộ":"O","Ồ":"O","Ổ":"O","Ỗ":"O","Ö":"O","Ȫ":"O","Ȯ":"O","Ȱ":"O","Ọ":"O","Ő":"O","Ȍ":"O","Ò":"O","Ỏ":"O","Ơ":"O","Ớ":"O","Ợ":"O","Ờ":"O","Ở":"O","Ỡ":"O","Ȏ":"O","Ꝋ":"O","Ꝍ":"O","Ō":"O","Ṓ":"O","Ṑ":"O","Ɵ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Õ":"O","Ṍ":"O","Ṏ":"O","Ȭ":"O","Ƣ":"OI","Ꝏ":"OO","Ɛ":"E","Ɔ":"O","Ȣ":"OU","Ṕ":"P","Ṗ":"P","Ꝓ":"P","Ƥ":"P","Ꝕ":"P","Ᵽ":"P","Ꝑ":"P","Ꝙ":"Q","Ꝗ":"Q","Ŕ":"R","Ř":"R","Ŗ":"R","Ṙ":"R","Ṛ":"R","Ṝ":"R","Ȑ":"R","Ȓ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꜿ":"C","Ǝ":"E","Ś":"S","Ṥ":"S","Š":"S","Ṧ":"S","Ş":"S","Ŝ":"S","Ș":"S","Ṡ":"S","Ṣ":"S","Ṩ":"S","ß":"ss","Ť":"T","Ţ":"T","Ṱ":"T","Ț":"T","Ⱦ":"T","Ṫ":"T","Ṭ":"T","Ƭ":"T","Ṯ":"T","Ʈ":"T","Ŧ":"T","Ɐ":"A","Ꞁ":"L","Ɯ":"M","Ʌ":"V","Ꜩ":"TZ","Ú":"U","Ŭ":"U","Ǔ":"U","Û":"U","Ṷ":"U","Ü":"U","Ǘ":"U","Ǚ":"U","Ǜ":"U","Ǖ":"U","Ṳ":"U","Ụ":"U","Ű":"U","Ȕ":"U","Ù":"U","Ủ":"U","Ư":"U","Ứ":"U","Ự":"U","Ừ":"U","Ử":"U","Ữ":"U","Ȗ":"U","Ū":"U","Ṻ":"U","Ų":"U","Ů":"U","Ũ":"U","Ṹ":"U","Ṵ":"U","Ꝟ":"V","Ṿ":"V","Ʋ":"V","Ṽ":"V","Ꝡ":"VY","Ẃ":"W","Ŵ":"W","Ẅ":"W","Ẇ":"W","Ẉ":"W","Ẁ":"W","Ⱳ":"W","Ẍ":"X","Ẋ":"X","Ý":"Y","Ŷ":"Y","Ÿ":"Y","Ẏ":"Y","Ỵ":"Y","Ỳ":"Y","Ƴ":"Y","Ỷ":"Y","Ỿ":"Y","Ȳ":"Y","Ɏ":"Y","Ỹ":"Y","Ź":"Z","Ž":"Z","Ẑ":"Z","Ⱬ":"Z","Ż":"Z","Ẓ":"Z","Ȥ":"Z","Ẕ":"Z","Ƶ":"Z","Ĳ":"IJ","Œ":"OE","ᴀ":"A","ᴁ":"AE","ʙ":"B","ᴃ":"B","ᴄ":"C","ᴅ":"D","ᴇ":"E","ꜰ":"F","ɢ":"G","ʛ":"G","ʜ":"H","ɪ":"I","ʁ":"R","ᴊ":"J","ᴋ":"K","ʟ":"L","ᴌ":"L","ᴍ":"M","ɴ":"N","ᴏ":"O","ɶ":"OE","ᴐ":"O","ᴕ":"OU","ᴘ":"P","ʀ":"R","ᴎ":"N","ᴙ":"R","ꜱ":"S","ᴛ":"T","ⱻ":"E","ᴚ":"R","ᴜ":"U","ᴠ":"V","ᴡ":"W","ʏ":"Y","ᴢ":"Z","á":"a","ă":"a","ắ":"a","ặ":"a","ằ":"a","ẳ":"a","ẵ":"a","ǎ":"a","â":"a","ấ":"a","ậ":"a","ầ":"a","ẩ":"a","ẫ":"a","ä":"a","ǟ":"a","ȧ":"a","ǡ":"a","ạ":"a","ȁ":"a","à":"a","ả":"a","ȃ":"a","ā":"a","ą":"a","ᶏ":"a","ẚ":"a","å":"a","ǻ":"a","ḁ":"a","ⱥ":"a","ã":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ḃ":"b","ḅ":"b","ɓ":"b","ḇ":"b","ᵬ":"b","ᶀ":"b","ƀ":"b","ƃ":"b","ɵ":"o","ć":"c","č":"c","ç":"c","ḉ":"c","ĉ":"c","ɕ":"c","ċ":"c","ƈ":"c","ȼ":"c","ď":"d","ḑ":"d","ḓ":"d","ȡ":"d","ḋ":"d","ḍ":"d","ɗ":"d","ᶑ":"d","ḏ":"d","ᵭ":"d","ᶁ":"d","đ":"d","ɖ":"d","ƌ":"d","ı":"i","ȷ":"j","ɟ":"j","ʄ":"j","ǳ":"dz","ǆ":"dz","é":"e","ĕ":"e","ě":"e","ȩ":"e","ḝ":"e","ê":"e","ế":"e","ệ":"e","ề":"e","ể":"e","ễ":"e","ḙ":"e","ë":"e","ė":"e","ẹ":"e","ȅ":"e","è":"e","ẻ":"e","ȇ":"e","ē":"e","ḗ":"e","ḕ":"e","ⱸ":"e","ę":"e","ᶒ":"e","ɇ":"e","ẽ":"e","ḛ":"e","ꝫ":"et","ḟ":"f","ƒ":"f","ᵮ":"f","ᶂ":"f","ǵ":"g","ğ":"g","ǧ":"g","ģ":"g","ĝ":"g","ġ":"g","ɠ":"g","ḡ":"g","ᶃ":"g","ǥ":"g","ḫ":"h","ȟ":"h","ḩ":"h","ĥ":"h","ⱨ":"h","ḧ":"h","ḣ":"h","ḥ":"h","ɦ":"h","ẖ":"h","ħ":"h","ƕ":"hv","í":"i","ĭ":"i","ǐ":"i","î":"i","ï":"i","ḯ":"i","ị":"i","ȉ":"i","ì":"i","ỉ":"i","ȋ":"i","ī":"i","į":"i","ᶖ":"i","ɨ":"i","ĩ":"i","ḭ":"i","ꝺ":"d","ꝼ":"f","ᵹ":"g","ꞃ":"r","ꞅ":"s","ꞇ":"t","ꝭ":"is","ǰ":"j","ĵ":"j","ʝ":"j","ɉ":"j","ḱ":"k","ǩ":"k","ķ":"k","ⱪ":"k","ꝃ":"k","ḳ":"k","ƙ":"k","ḵ":"k","ᶄ":"k","ꝁ":"k","ꝅ":"k","ĺ":"l","ƚ":"l","ɬ":"l","ľ":"l","ļ":"l","ḽ":"l","ȴ":"l","ḷ":"l","ḹ":"l","ⱡ":"l","ꝉ":"l","ḻ":"l","ŀ":"l","ɫ":"l","ᶅ":"l","ɭ":"l","ł":"l","ǉ":"lj","ſ":"s","ẜ":"s","ẛ":"s","ẝ":"s","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ᵯ":"m","ᶆ":"m","ń":"n","ň":"n","ņ":"n","ṋ":"n","ȵ":"n","ṅ":"n","ṇ":"n","ǹ":"n","ɲ":"n","ṉ":"n","ƞ":"n","ᵰ":"n","ᶇ":"n","ɳ":"n","ñ":"n","ǌ":"nj","ó":"o","ŏ":"o","ǒ":"o","ô":"o","ố":"o","ộ":"o","ồ":"o","ổ":"o","ỗ":"o","ö":"o","ȫ":"o","ȯ":"o","ȱ":"o","ọ":"o","ő":"o","ȍ":"o","ò":"o","ỏ":"o","ơ":"o","ớ":"o","ợ":"o","ờ":"o","ở":"o","ỡ":"o","ȏ":"o","ꝋ":"o","ꝍ":"o","ⱺ":"o","ō":"o","ṓ":"o","ṑ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","õ":"o","ṍ":"o","ṏ":"o","ȭ":"o","ƣ":"oi","ꝏ":"oo","ɛ":"e","ᶓ":"e","ɔ":"o","ᶗ":"o","ȣ":"ou","ṕ":"p","ṗ":"p","ꝓ":"p","ƥ":"p","ᵱ":"p","ᶈ":"p","ꝕ":"p","ᵽ":"p","ꝑ":"p","ꝙ":"q","ʠ":"q","ɋ":"q","ꝗ":"q","ŕ":"r","ř":"r","ŗ":"r","ṙ":"r","ṛ":"r","ṝ":"r","ȑ":"r","ɾ":"r","ᵳ":"r","ȓ":"r","ṟ":"r","ɼ":"r","ᵲ":"r","ᶉ":"r","ɍ":"r","ɽ":"r","ↄ":"c","ꜿ":"c","ɘ":"e","ɿ":"r","ś":"s","ṥ":"s","š":"s","ṧ":"s","ş":"s","ŝ":"s","ș":"s","ṡ":"s","ṣ":"s","ṩ":"s","ʂ":"s","ᵴ":"s","ᶊ":"s","ȿ":"s","ɡ":"g","ᴑ":"o","ᴓ":"o","ᴝ":"u","ť":"t","ţ":"t","ṱ":"t","ț":"t","ȶ":"t","ẗ":"t","ⱦ":"t","ṫ":"t","ṭ":"t","ƭ":"t","ṯ":"t","ᵵ":"t","ƫ":"t","ʈ":"t","ŧ":"t","ᵺ":"th","ɐ":"a","ᴂ":"ae","ǝ":"e","ᵷ":"g","ɥ":"h","ʮ":"h","ʯ":"h","ᴉ":"i","ʞ":"k","ꞁ":"l","ɯ":"m","ɰ":"m","ᴔ":"oe","ɹ":"r","ɻ":"r","ɺ":"r","ⱹ":"r","ʇ":"t","ʌ":"v","ʍ":"w","ʎ":"y","ꜩ":"tz","ú":"u","ŭ":"u","ǔ":"u","û":"u","ṷ":"u","ü":"u","ǘ":"u","ǚ":"u","ǜ":"u","ǖ":"u","ṳ":"u","ụ":"u","ű":"u","ȕ":"u","ù":"u","ủ":"u","ư":"u","ứ":"u","ự":"u","ừ":"u","ử":"u","ữ":"u","ȗ":"u","ū":"u","ṻ":"u","ų":"u","ᶙ":"u","ů":"u","ũ":"u","ṹ":"u","ṵ":"u","ᵫ":"ue","ꝸ":"um","ⱴ":"v","ꝟ":"v","ṿ":"v","ʋ":"v","ᶌ":"v","ⱱ":"v","ṽ":"v","ꝡ":"vy","ẃ":"w","ŵ":"w","ẅ":"w","ẇ":"w","ẉ":"w","ẁ":"w","ⱳ":"w","ẘ":"w","ẍ":"x","ẋ":"x","ᶍ":"x","ý":"y","ŷ":"y","ÿ":"y","ẏ":"y","ỵ":"y","ỳ":"y","ƴ":"y","ỷ":"y","ỿ":"y","ȳ":"y","ẙ":"y","ɏ":"y","ỹ":"y","ź":"z","ž":"z","ẑ":"z","ʑ":"z","ⱬ":"z","ż":"z","ẓ":"z","ȥ":"z","ẕ":"z","ᵶ":"z","ᶎ":"z","ʐ":"z","ƶ":"z","ɀ":"z","ﬀ":"ff","ﬃ":"ffi","ﬄ":"ffl","ﬁ":"fi","ﬂ":"fl","ĳ":"ij","œ":"oe","ﬆ":"st","ₐ":"a","ₑ":"e","ᵢ":"i","ⱼ":"j","ₒ":"o","ᵣ":"r","ᵤ":"u","ᵥ":"v","ₓ":"x","Ё":"YO","Й":"I","Ц":"TS","У":"U","К":"K","Е":"E","Н":"N","Г":"G","Ш":"SH","Щ":"SCH","З":"Z","Х":"H","Ъ":"'","ё":"yo","й":"i","ц":"ts","у":"u","к":"k","е":"e","н":"n","г":"g","ш":"sh","щ":"sch","з":"z","х":"h","ъ":"'","Ф":"F","Ы":"I","В":"V","А":"a","П":"P","Р":"R","О":"O","Л":"L","Д":"D","Ж":"ZH","Э":"E","ф":"f","ы":"i","в":"v","а":"a","п":"p","р":"r","о":"o","л":"l","д":"d","ж":"zh","э":"e","Я":"Ya","Ч":"CH","С":"S","М":"M","И":"I","Т":"T","Ь":"'","Б":"B","Ю":"YU","я":"ya","ч":"ch","с":"s","м":"m","и":"i","т":"t","ь":"'","б":"b","ю":"yu"},n})},function(n,t,i){"use strict";var o=i(35),f=i(14),u=function(){function n(){}return n.buildMailToString=function(t){var i=t.to?"mailto:"+encodeURIComponent(t.to):"mailto:",r=n.buildMailToParametersString(t.subject,t.cc,t.bcc,t.body,i);return r&&(i+="?"+r),i},n.buildMailToParametersString=function(t,i,r,u,f){var e=[],o;return(t&&e.push(n.buildMailToParameter("subject",t)),i&&e.push(n.buildMailToParameter("cc",i)),r&&e.push(n.buildMailToParameter("bcc",r)),u)&&(o=n.getShortenBody(u,f+"?"+e.join("&")),o&&e.push(n.buildMailToParameter("body",o))),e.join("&")},n.getShortenBody=function(t,i){var u=t,f;return i.length<r.maxLength&&(f=r.maxLength-i.length-6,u=n.shortenString(t,f)),u},n.buildMailToParameter=function(n,t){return t?encodeURIComponent(n)+"="+encodeURIComponent(t):""},n.shortenString=function(n,t,i){var u,f,e;return void 0===i&&(i=!1),u=i?encodeURIComponent(r.shortenBodyIndicator):r.shortenBodyIndicator,t-=r.shortenBodyIndicator.length,f=n.length>t,e=n.substring(0,t),e+(f?u:"")},n.appendShortenBodyToMailToString=function(t,i){var r=n.getShortenBody(i,t);return t.indexOf("?")>=0?t+"&body="+r:t+"?body="+r},n.removeCurrentUserEmailFromString=function(n,t){return t&&n?f.filter(t.split(";"),function(t){return t.indexOf(n)==-1}).join(";"):t},n.buildReplyMailToFromResult=function(n,t){return new r({currentUserEmail:t,originalFrom:n.raw.from,to:n.raw.from,subject:n.raw.conversationsubject})},n.buildReplyAllMailToFromResult=function(n,t){return new r({currentUserEmail:t,originalFrom:n.raw.from,to:n.raw.from+";"+n.raw.to,subject:n.raw.conversationsubject,cc:n.raw.cc})},n.buildForwardMailToFromResult=function(n,t){return new r({currentUserEmail:t,originalFrom:n.raw.from,subject:n.raw.conversationsubject})},n.encodeMailToBody=function(n){var t=n.split("\n");return f.each(t,function(n,i){t[i]=encodeURIComponent(t[i])}),t.join(r.enter)},n}(),e,r;t.EmailActionsUtils=u;e=function(){function n(){this.currentUserEmail="";this.originalFrom="";this.to="";this.subject="";this.cc="";this.bcc="";this.body=""}return n}();t.DefaultMailToOptions=e;r=function(){function n(n){this.options=n;this.bodyHeader="";this.options=f.extend(new e,n);this.removeCurrentUserFromParameters();this.options.originalFrom&&(this.bodyHeader=this.options.bodyIsHTML?"<p><br/><br/><br/>"+o.l("From")+": "+this.options.originalFrom+"<hr><\/p>":"\n\n\n"+o.l("From")+": "+this.options.originalFrom+"\n_________________________________\n")}return n.prototype.removeCurrentUserFromParameters=function(){this.options.to=u.removeCurrentUserEmailFromString(this.options.currentUserEmail,this.options.to);this.options.cc=u.removeCurrentUserEmailFromString(this.options.currentUserEmail,this.options.cc);this.options.bcc=u.removeCurrentUserEmailFromString(this.options.currentUserEmail,this.options.bcc)},n.prototype.open=function(){this.ensureValueIsSet();window.location.href=this.value},n.prototype.ensureValueIsSet=function(){this.value?this.valueBodyIsSet()||this.setValueBody():this.setValue()},n.prototype.setValue=function(){this.value=u.buildMailToString(this.options);this.value&&!this.valueBodyIsSet()&&this.setValueBody()},n.prototype.setValueBody=function(){this.value=u.appendShortenBodyToMailToString(this.value,this.body)},n.prototype.setMailToBodyFromText=function(n){void 0===n&&(n="");this.body=n},n.prototype.valueBodyIsSet=function(){return this.value.indexOf("body=")>=0},n.prototype.bodyIsSet=function(){return!!this.body},n}();r.enter="%0D%0A";r.shortenBodyIndicator="\r\n\r\n...";r.maxLength=1e3;t.MailTo=r},function(n,t,i){"use strict";var r=i(13),f=i(35),u=i(14),e=function(){function n(){}return n.splitSemicolonSeparatedListOfEmailAddresses=function(n){var t=n.split(/\s*;\s*/);return u.filter(t,function(n){return r.Utils.exists(n)&&r.Utils.isNonEmptyString(r.Utils.trim(n))})},n.emailAddressesToHyperlinks=function(t,i,e,o,s){void 0===o&&(o=2);void 0===s&&(s=!1);t=u.filter(t,function(n){return r.Utils.exists(n)&&r.Utils.isNonEmptyString(r.Utils.trim(n))});var h=u.map(t,function(t){var l=n.parseEmail(t),u=l[1],o=l[0],h,a,c;return(r.Utils.exists(e)&&u==e&&(o=f.l("Me")),s)&&(h=o.split(" "),r.Utils.isNullOrUndefined(h[1])||(o=h[0]+" "+h[1].substring(0,1)+".")),a=u.indexOf("@")>=0?u.indexOf("@")+1:0,c=u.substr(a),r.Utils.exists(i)&&c!=i&&(o+=" ("+c+")"),'<a title="'+t.replace(/'/g,"&quot;")+'" href="mailto:'+encodeURI(u)+'">'+o+"<\/a>"}),c=h.length-o,l=c>0?n.buildEmailAddressesAndOthers(u.last(h,c)):"";return u.first(h,o).join(", ")+l},n.buildEmailAddressesAndOthers=function(n){return'<span class="coveo-emails-excess-collapsed coveo-active" onclick="Coveo.TemplateHelpers.getHelper(\'excessEmailToggle\')(this);"> '+f.l("AndOthers",n.length.toString(),n.length)+'<\/span><span class="coveo-emails-excess-expanded"> , '+n.join(" , ")+"<\/span>"},n.parseEmail=function(n){var t,i=n.match(/^\s*(.*)\s+<(.*)>$/);return null!=i?(t=i[1],/^'.*'|'.*'$/.test(t)&&(t=t.substr(1,t.length-2)),n=i[2]):(t=n,n=n),[t,n]},n}();t.EmailUtils=e},function(n,t,i){"use strict";var u=i(12),f=i(13),r=i(14),e=function(){function n(){}return n.getHash=function(t){void 0===t&&(t=window);u.Assert.exists(t);var i="#"+(t.location.href.split("#")[1]||"");return n.getAjaxcrawlableHash(i)},n.getValue=function(t,i){u.Assert.isNonEmptyString(t);u.Assert.exists(i);i=n.getAjaxcrawlableHash(i);var r=n.getRawValue(t,i);return void 0!=r&&(r=n.getValueDependingOnType(t,r)),r},n.encodeValues=function(t){var i=[];return r.each(t,function(t,u){var e="";f.Utils.isNonEmptyArray(t)?e=n.encodeArray(t):r.isObject(t)&&f.Utils.isNonEmptyArray(r.keys(t))?e=n.encodeObject(t):f.Utils.isNullOrUndefined(t)||(e=encodeURIComponent(t.toString()));""!=e&&i.push(u+"="+e)}),i.join("&")},n.getAjaxcrawlableHash=function(n){return void 0!=n[1]&&"!"==n[1]?n.substring(0,1)+n.substring(2):n},n.getRawValue=function(n,t){var f;u.Assert.exists(n);u.Assert.exists(t);u.Assert.check(0==t.indexOf("#")||""==t);for(var e=t.substr(1).split("&"),i=0,r=!0,o=void 0;r;)f=e[i].split("="),f[0]==n?(r=!1,o=f[1]):(i++,i>=e.length&&(i=void 0,r=!1));return o},n.getValueDependingOnType=function(t,i){var r=n.getValueType(t,i);return"object"==r?n.decodeObject(i):"array"==r?n.decodeArray(i):decodeURIComponent(i)},n.getValueType=function(t,i){return"q"==t?"other":n.isObject(i)?"object":n.isArray(i)?"array":"other"},n.isArrayStartNotEncoded=function(t){return t.substr(0,1)==n.DELIMITER.arrayStart},n.isArrayStartEncoded=function(t){return 0==t.indexOf(encodeURIComponent(n.DELIMITER.arrayStart))},n.isArrayEndNotEncoded=function(n){return n.substr(n.length-1)},n.isArrayEndEncoded=function(t){return t.indexOf(encodeURIComponent(n.DELIMITER.arrayEnd))==t.length-encodeURIComponent(n.DELIMITER.arrayEnd).length},n.isObjectStartNotEncoded=function(t){return t.substr(0,1)==n.DELIMITER.objectStart},n.isObjectStartEncoded=function(t){return 0==t.indexOf(encodeURIComponent(n.DELIMITER.objectStart))},n.isObjectEndNotEncoded=function(t){return t.substr(t.length-1)==n.DELIMITER.objectEnd},n.isObjectEndEncoded=function(t){return t.indexOf(encodeURIComponent(n.DELIMITER.objectEnd))==t.length-encodeURIComponent(n.DELIMITER.objectEnd).length},n.isObject=function(t){var i=n.isObjectStartNotEncoded(t)||n.isObjectStartEncoded(t),r=n.isObjectEndNotEncoded(t)||n.isObjectEndEncoded(t);return i&&r},n.isArray=function(t){var i=n.isArrayStartNotEncoded(t)||n.isArrayStartEncoded(t),r=n.isArrayEndNotEncoded(t)||n.isArrayEndEncoded(t);return i&&r},n.encodeArray=function(t){var i=r.map(t,function(n){return encodeURIComponent(n)});return n.DELIMITER.arrayStart+i.join(",")+n.DELIMITER.arrayEnd},n.encodeObject=function(t){var i=this,u=r.map(t,function(n,t){return'"'+encodeURIComponent(t)+'":'+i.encodeValue(n)});return n.DELIMITER.objectStart+u.join(" , ")+n.DELIMITER.objectEnd},n.encodeValue=function(t){return r.isArray(t)?n.encodeArray(t):r.isObject(t)?n.encodeObject(t):r.isNumber(t)||r.isBoolean(t)?encodeURIComponent(t.toString()):'"'+encodeURIComponent(t)+'"'},n.decodeObject=function(t){return n.isObjectStartEncoded(t)&&n.isObjectEndEncoded(t)&&(t=t.replace(/encodeURIComponent(HashUtils.Delimiter.objectStart)/,n.DELIMITER.objectStart),t=t.replace(encodeURIComponent(n.DELIMITER.objectEnd),n.DELIMITER.objectEnd)),JSON.parse(decodeURIComponent(t))},n.decodeArray=function(t){n.isArrayStartEncoded(t)&&n.isArrayEndEncoded(t)&&(t=t.replace(encodeURIComponent(n.DELIMITER.arrayStart),n.DELIMITER.arrayStart),t=t.replace(encodeURIComponent(n.DELIMITER.arrayEnd),n.DELIMITER.arrayEnd));t=t.substr(1);t=t.substr(0,t.length-1);var i=t.split(",");return r.map(i,function(n){return decodeURIComponent(n)})},n}();e.DELIMITER={objectStart:"{",objectEnd:"}",arrayStart:"[",arrayEnd:"]",objectStartRegExp:"^{",objectEndRegExp:"}+$",arrayStartRegExp:"^[",arrayEndRegExp:"]+$"};t.HashUtils=e},function(n,t,i){"use strict";var r=i(13),u=i(12),f=i(14),e=function(){function n(){}return n.replace=function(t,i,u){var e=new n,f,o,s;if(r.Utils.isNullOrEmptyString(t))return e;if(f=t.lastIndexOf(i),f==-1)return e.value=t,e;for(o=[];f>=0;)s={begin:f,size:i.length,replacementSize:u.length},o.push(s),t=t.slice(0,f)+u+t.slice(f+i.length),f=t.lastIndexOf(i);return e.holes=o,e.value=t,e},n.shortenPath=function(t,i){var u=t,o=new n,h,f,e,s,l,a,c;if(r.Utils.isNullOrEmptyString(u)||u.length<=i)return o.value=u,o;if(h=[],f=-1,f=r.Utils.stringStartsWith(u,"\\\\")?u.indexOf("\\",f+2):u.indexOf("\\"),f!==-1){for(e=0,s=u.indexOf("\\",f+1);s!==-1&&u.length-e+n.SHORTEN_END.length>i;)e=s-f-1,s=u.indexOf("\\",s+1);e>0&&(u=u.slice(0,f+1)+n.SHORTEN_END+u.slice(e),c={begin:f+1,size:e-n.SHORTEN_END.length,replacementSize:n.SHORTEN_END.length},h.push(c))}return u.length>i&&(l=u.length-i+n.SHORTEN_END.length,a=u.length-l,u=u.slice(0,a)+n.SHORTEN_END,c={begin:a,size:l,replacementSize:n.SHORTEN_END.length},h.push(c)),o.holes=h,o.value=u,o},n.shortenString=function(t,i,u){var e,o,f,s,h;return(void 0===i&&(i=200),e=t,u=r.Utils.toNotNullString(u),o=new n,r.Utils.isNullOrEmptyString(e)||i<=u.length)?(o.value=e,o):e.length<=i?(o.value=e,o):(f=e,(i-=u.length,f=f.slice(0,i)," "!==e.charAt(f.length))&&(s=f.lastIndexOf(" "),s!==-1&&f.length-s<n.WORD_SHORTER&&(f=f.slice(0,s))),h=[],h[0]={begin:f.length,size:e.length-f.length,replacementSize:u.length},f+=u,o.value=f,o.holes=h,o)},n.shortenUri=function(t,i){var e=new n,s,u,f,o,c,l,h;if(r.Utils.isNullOrEmptyString(t)||t.length<=i)return e.value=t,e;if(s=[],u=t.indexOf("//"),u!==-1&&(u=t.indexOf("/",u+2)),u!==-1){for(f=0,o=t.indexOf("/",u+1);o!==-1&&t.length-f+n.SHORTEN_END.length>i;)f=o-u-1,o=t.indexOf("/",o+1);f>0&&(t=t.slice(0,u+1)+n.SHORTEN_END+t.slice(u+1+f),h={begin:u+1,size:f,replacementSize:n.SHORTEN_END.length},s.push(h))}return t.length>i&&(c=t.length-i+n.SHORTEN_END.length,l=t.length-c,t=t.slice(0,l)+n.SHORTEN_END,h={begin:l,size:c,replacementSize:n.SHORTEN_END.length},s.push(h)),e.holes=s,e.value=t,e},n}(),o;e.SHORTEN_END="...";e.WORD_SHORTER=10;t.StringAndHoles=e;o=function(){function n(){}return n.highlightString=function(n,t,i,e){var b,p,k;if(u.Assert.isNotUndefined(t),u.Assert.isNotNull(t),u.Assert.isNonEmptyString(e),r.Utils.isNullOrEmptyString(n))return n;for(var y=0,d=n.length,h="",w=0;w<t.length;w++){var a=t[w],s=a.offset,o=s+a.length;if(null!==i){for(b=!1,p=0;p<i.length;p++){var c=i[p],l=c.begin,v=l+c.size;if(s<l&&o>=l&&o<v)o=l;else{if(s>=l&&o<v){b=!0;break}s>=l&&s<v&&o>=v?(s=l+c.replacementSize,o-=c.size-c.replacementSize):s<l&&o>=v?o-=c.size-c.replacementSize:s>=v&&(k=c.size-c.replacementSize,s-=k,o-=k)}}if(b||s===o)continue}if(o>d)break;h+=f.escape(n.slice(y,s));h+='<span class="'+e+'"';a.dataHighlightGroup&&(h+=' data-highlight-group="'+a.dataHighlightGroup.toString()+'"');a.dataHighlightGroupTerm&&(h+=' data-highlight-group-term="'+a.dataHighlightGroupTerm+'"');h+=">";h+=f.escape(n.slice(s,o));h+="<\/span>";y=o}return y!=d&&(h+=f.escape(n.slice(y))),h},n}();t.HighlightUtils=o},function(n,t,i){"use strict";var o=i(16),u=i(14),r=function(){function n(){}return n.buildAttributeString=function(n){var t=[];return u.each(n,function(n,i){void 0!=n&&t.push(i+"="+JSON.stringify(n.toString()))}),t.join(" ")},n}(),f,e;t.HTMLUtils=r;f=function(){function n(){}return n.buildAnchor=function(n,t){var i;return t&&t.text?(i=t.text,t.text=void 0):i=n,"<a href='"+n+"' "+r.buildAttributeString(t)+">"+i+"<\/a>"},n}();t.AnchorUtils=f;e=function(){function n(){}return n.buildImage=function(n,t){var i="<img ";return i+=n?"src='"+n+"' ":"",i+(r.buildAttributeString(t)+"/>")},n.selectImageFromResult=function(n){return document.querySelector("img[data-coveo-uri-hash="+n.raw.urihash+"]")},n.buildImageWithDirectSrcAttribute=function(t,i){var r=new Image,u=t.getViewAsDatastreamUri(i.uniqueId,"$Thumbnail$",{contentType:"image/png"});r.onload=function(){n.selectImageFromResult(i).setAttribute("src",u)};r.src=u},n.buildImageWithBase64SrcAttribute=function(t,i){t.getRawDataStream(i.uniqueId,"$Thumbnail$").then(function(t){var r=String.fromCharCode.apply(null,new Uint8Array(t));n.selectImageFromResult(i).setAttribute("src","data:image/png;base64, "+btoa(r))}).catch(function(){n.selectImageFromResult(i).remove()})},n.buildImageFromResult=function(t,i,r){r=r?r:{};var f=n.buildImage(void 0,u.extend(r,{"data-coveo-uri-hash":t.raw.urihash}));return i.isJsonp()||o.DeviceUtils.isIE8or9()?n.buildImageWithDirectSrcAttribute(i,t):n.buildImageWithBase64SrcAttribute(i,t),f},n}();t.ImageUtils=e},function(n,t,i){"use strict";var r,u=i(13),f=i(14),e;!function(n){n[n.BACKSPACE=8]="BACKSPACE";n[n.TAB=9]="TAB";n[n.ENTER=13]="ENTER";n[n.SHIFT=16]="SHIFT";n[n.CTRL=17]="CTRL";n[n.ALT=18]="ALT";n[n.ESCAPE=27]="ESCAPE";n[n.SPACEBAR=32]="SPACEBAR";n[n.PAGE_UP=33]="PAGE_UP";n[n.PAGE_DOWN=34]="PAGE_DOWN";n[n.HOME=36]="HOME";n[n.LEFT_ARROW=37]="LEFT_ARROW";n[n.UP_ARROW=38]="UP_ARROW";n[n.RIGHT_ARROW=39]="RIGHT_ARROW";n[n.DOWN_ARROW=40]="DOWN_ARROW";n[n.INSERT=45]="INSERT";n[n.DELETE=46]="DELETE"}(r=t.KEYBOARD||(t.KEYBOARD={}));e=function(){function n(){}return n.keysEqual=function(n,t){return u.Utils.isNullOrUndefined(n.keyCode)?!u.Utils.isNullOrUndefined(n.which)&&n.which==t:n.keyCode==t},n.isAllowedKeyForOmnibox=function(t){var i=t.keyCode;return n.isNumberKeyPushed(i)||32==i||13==i||n.isLetterKeyPushed(i)||i>95&&i<112||i>185&&i<193||i>218&&i<223||i==r.BACKSPACE||i==r.DELETE||n.isArrowKeyPushed(i)},n.isAllowedKeyForSearchAsYouType=function(t){return n.isAllowedKeyForOmnibox(t)&&!n.isArrowKeyPushed(t.keyCode)},n.isDeleteOrBackspace=function(t){return n.keysEqual(t,r.BACKSPACE)||n.keysEqual(t,r.DELETE)},n.isArrowKeyPushed=function(n){return n==r.LEFT_ARROW||n==r.UP_ARROW||n==r.RIGHT_ARROW||n==r.DOWN_ARROW},n.isNumberKeyPushed=function(n){return n>47&&n<58},n.isLetterKeyPushed=function(n){return n>64&&n<91},n.keypressAction=function(n,t){return function(i){for(var u,e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return i&&(u=i.charCode||i.keyCode,u&&(f.isArray(n)&&f.contains(n,u)?t(i):u===n&&t(i))),!1}},n}();t.KeyboardUtils=e},function(n,t){"use strict";var i=window.localStorage,r=function(){function n(n){this.id=n}return n.prototype.save=function(n){try{null!=i&&i.setItem(this.getLocalStorageKey(),JSON.stringify(n))}catch(n){}},n.prototype.load=function(){try{if(null==i)return null;var n=i.getItem(this.getLocalStorageKey());return n&&JSON.parse(n)}catch(n){return null}},n.prototype.remove=function(n){try{if(null!=i)if(void 0==n)i.removeItem(this.getLocalStorageKey());else{var t=this.load();delete t[n];this.save(t)}}catch(n){}},n.prototype.getLocalStorageKey=function(){return"coveo-"+this.id},n}();t.LocalStorageUtils=r},function(n,t){"use strict";var i,r;!function(n){n[n.WINDOWS=0]="WINDOWS";n[n.MACOSX=1]="MACOSX";n[n.UNIX=2]="UNIX";n[n.LINUX=3]="LINUX";n[n.UNKNOWN=4]="UNKNOWN"}(i=t.OS_NAME||(t.OS_NAME={}));r=function(){function n(){}return n.get=function(n){void 0===n&&(n=navigator);return n.appVersion.indexOf("Win")!=-1?i.WINDOWS:n.appVersion.indexOf("Mac")!=-1?i.MACOSX:n.appVersion.indexOf("X11")!=-1?i.UNIX:n.appVersion.indexOf("Linux")!=-1?i.LINUX:i.UNKNOWN},n}();t.OSUtils=r},function(n,t,i){"use strict";var r,f=i(59),u,e;!function(n){n[n.TOP=0]="TOP";n[n.MIDDLE=1]="MIDDLE";n[n.BOTTOM=2]="BOTTOM";n[n.INNERTOP=3]="INNERTOP";n[n.INNERBOTTOM=4]="INNERBOTTOM"}(r=t.VerticalAlignment||(t.VerticalAlignment={}));!function(n){n[n.LEFT=0]="LEFT";n[n.CENTER=1]="CENTER";n[n.RIGHT=2]="RIGHT";n[n.INNERLEFT=3]="INNERLEFT";n[n.INNERRIGHT=4]="INNERRIGHT"}(u=t.HorizontalAlignment||(t.HorizontalAlignment={}));e=function(){function n(){}return n.positionPopup=function(t,i,r,u,e,o){var l,s,h,c,a,v;void 0===o&&(o=0);t.style.position="absolute";e&&f.$$(e).append(t);u.verticalOffset=u.verticalOffset?u.verticalOffset:0;u.horizontalOffset=u.horizontalOffset?u.horizontalOffset:0;l=f.$$(i).offset();n.basicVerticalAlignment(l,t,i,u);n.basicHorizontalAlignment(l,t,i,u);n.finalAdjustement(f.$$(t).offset(),l,t,u);s=n.getBoundary(t);h=n.getBoundary(r);o<2&&(c=n.checkForOutOfBoundary(s,h),"ok"!=c.horizontal&&u.horizontalClip===!0&&(a=t.offsetWidth,s.left<h.left&&(a-=h.left-s.left),s.right>h.right&&(a-=s.right-h.right),t.style.width=a+"px",c.horizontal="ok"),("ok"!=c.vertical||"ok"!=c.horizontal)&&(v=n.alignInsideBoundary(u,c),n.positionPopup(t,i,r,v,e,o+1)))},n.finalAdjustement=function(n,t,i,r){var u=f.$$(i).position();i.style.top=u.top+r.verticalOffset-(n.top-t.top)+"px";i.style.left=u.left+r.horizontalOffset-(n.left-t.left)+"px"},n.basicVerticalAlignment=function(n,t,i,u){switch(u.vertical){case r.TOP:n.top-=t.offsetHeight;break;case r.BOTTOM:n.top+=i.offsetHeight;break;case r.MIDDLE:n.top-=t.offsetHeight/3;break;case r.INNERBOTTOM:n.top-=t.offsetHeight-i.offsetHeight}},n.basicHorizontalAlignment=function(t,i,r,f){switch(f.horizontal){case u.LEFT:t.left-=i.offsetWidth;break;case u.RIGHT:t.left+=r.offsetWidth;break;case u.CENTER:t.left+=n.offSetToAlignCenter(i,r);break;case u.INNERRIGHT:t.left-=i.offsetWidth-r.offsetWidth}},n.alignInsideBoundary=function(n,t){var i=n;return"left"==t.horizontal&&(i.horizontal=u.RIGHT),"right"==t.horizontal&&(i.horizontal=u.LEFT),"top"==t.vertical&&(i.vertical=r.BOTTOM),"bottom"==t.vertical&&(i.vertical=r.TOP),i},n.offSetToAlignCenter=function(n,t){return(t.offsetWidth-n.offsetWidth)/2},n.getBoundary=function(n){var i,t=f.$$(n).offset();return i="body"==n.tagName.toLowerCase()?Math.max(n.scrollHeight,n.offsetHeight):"html"==n.tagName.toLowerCase()?Math.max(n.clientHeight,n.scrollHeight,n.offsetHeight):n.offsetHeight,{top:t.top,left:t.left,right:t.left+n.offsetWidth,bottom:t.top+i}},n.checkForOutOfBoundary=function(n,t){var i={vertical:"ok",horizontal:"ok"};return n.top<t.top&&(i.vertical="top"),n.bottom>t.bottom&&(i.vertical="bottom"),n.left<t.left&&(i.horizontal="left"),n.right>t.right&&(i.horizontal="right"),i},n}();t.PopupUtils=e},function(n,t,i){"use strict";function e(n,t,i,u){var e=[],s=r.keys(t).sort(o);return r.each(s,function(i){var v=r.compact([i].concat(t[i]).sort(o)),a=l,s;a+=v.join("|")+")(?=(?:"+f+"|$)+)";s=h.StringUtils.getHighlights(n,new RegExp(a,u.regexFlags),i);void 0!=s&&c.Utils.isNonEmptyArray(s)&&e.push(s)}),r.each(i,function(t,i){var s=i.split(" "),o=l,a;r.each(s,function(n,i){o+="(?:"+[n].concat(t[n]).join("|")+")";i==s.length-1&&(o+="(?=");o+=f;i==s.length-1&&(o+=")");i!=s.length-1&&(o+="+")});o+=")";a=h.StringUtils.getHighlights(n,new RegExp(o,u.regexFlags),i);void 0!=a&&c.Utils.isNonEmptyArray(a)&&e.push(a)}),r.chain(e).flatten().compact().uniq(function(n){return n.offset}).sortBy(function(n){return n.offset}).map(function(n){var u=r.keys(t),f=r.keys(i),e=u.concat(f),o=r.indexOf(e,n.dataHighlightGroupTerm)+1;return r.extend(n,{dataHighlightGroup:o})}).value()}function o(n,t){return n.length-t.length}function v(n){var t=u.$$("div").el;return t.innerHTML=n,t}var y=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},p=i(34),s=i(67),h=i(62),c=i(13),u=i(59),r=i(14),f="[\\.\\-\\u2011\\s~=,.\\|\\/:'`’;_()!?]",l="("+f+"|^)(",a=function(n){function t(t,i,r){void 0===t&&(t="coveo-highlight");void 0===i&&(i=0);void 0===r&&(r="gi");var u=n.call(this)||this;return u.cssClass=t,u.shorten=i,u.regexFlags=r,u}return y(t,n),t}(p.Options),w=function(){function n(){}return n.highlightStreamHTML=function(t,i,f,o){var h=(new a).merge(o),c=v(t),l=u.$$(c).findAll("*");return l.length>0?(r.each(l,function(n){var t=u.$$(n).text();n.innerHTML=s.HighlightUtils.highlightString(t,e(t,i,f,h),[],h.cssClass)}),c.innerHTML):n.highlightStreamText(t,i,f,o)},n.highlightStreamText=function(n,t,i,r){var u=(new a).merge(r);return s.HighlightUtils.highlightString(n,e(n,t,i,u),[],u.cssClass)},n}();t.StreamHighlightUtils=w},function(n,t,i){"use strict";var h=i(75),r,u,f,e,o,s;t.QueryController=h.QueryController;r=i(91);t.FacetQueryController=r.FacetQueryController;u=i(94);t.FacetRangeQueryController=u.FacetRangeQueryController;f=i(95);t.FacetSliderQueryController=f.FacetSliderQueryController;e=i(96);t.HierarchicalFacetQueryController=e.HierarchicalFacetQueryController;o=i(97);t.HistoryController=o.HistoryController;s=i(99);t.LocalStorageHistoryController=s.LocalStorageHistoryController},function(n,t,i){"use strict";var v=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},y=i(76),e=i(78),p=i(70),o=i(12),w=i(80),u=i(48),s=i(21),h=i(32),r=i(59),c=i(13),b=i(4),k=i(77),d=i(23),g=i(81),f=i(14),l=function(){function n(){this.searchAsYouType=!1;this.closeModalBox=!0;this.cancel=!1;this.logInActionsHistory=!1}return n}(),a=function(n){function t(i,r,u,f){var e=n.call(this,i,t.ID)||this;return e.options=r,e.usageAnalytics=u,e.searchInterface=f,e.showingExecutingQueryAnimation=!1,e.localStorage=new p.LocalStorageUtils("lastQueryHash"),o.Assert.exists(i),o.Assert.exists(r),e.firstQuery=!0,e.historyStore=new g.history.HistoryStore,e}return v(t,n),t.prototype.setEndpoint=function(n){this.overrideEndpoint=n;this.logger.debug("Endpoint set",n)},t.prototype.getEndpoint=function(){var n=this.overrideEndpoint||this.options.endpoint;return new w.SearchEndpointWithDefaultCallOptions(n,this.getCallOptions())},t.prototype.getLastQuery=function(){return this.lastQuery||(new e.QueryBuilder).build()},t.prototype.getLastResults=function(){return this.lastQueryResults},t.prototype.executeQuery=function(n){var t=this,e,r,i,c,u,a;return(n=f.extend(new l,n),n.closeModalBox&&d.ModalBox.close(!0),this.logger.debug("Executing new query"),this.cancelAnyCurrentPendingQuery(),null!=n.beforeExecuteQuery&&n.beforeExecuteQuery(),n.ignoreWarningSearchEvent||this.usageAnalytics.warnAboutSearchEvent(),this.showExecutingQueryAnimation(),e={searchAsYouType:n.searchAsYouType,cancel:n.cancel,origin:n.origin},this.newQueryEvent(e),e.cancel)?void this.cancelQuery():(r=this.createQueryBuilder(n),r?(i=r.build(),n.logInActionsHistory&&this.logQueryInActionsHistory(i,n.isFirstQuery),c=this.getEndpoint(),u=this.currentPendingQuery=c.search(i),u.then(function(f){var l,a,v,e,c;return o.Assert.exists(f),l=t.firstQuery,(t.firstQuery&&(t.firstQuery=!1),u===t.currentPendingQuery)?(t.logger.debug("Query results received",i,f),a=t.searchInterface&&t.searchInterface.options&&t.searchInterface.options.enableHistory,l&&!a||!t.keepLastSearchUid(i,f)?(t.lastQueryHash=t.queryHash(i,f),t.lastSearchUid=f.searchUid):(f.searchUid=t.getLastSearchUid(),f._reusedSearchUid=!0,s.QueryUtils.setPropertyOnResults(f,"queryUid",t.getLastSearchUid())),t.lastQuery=i,t.lastQueryResults=f,t.currentError=null,v={queryBuilder:r,query:i,results:f,searchAsYouType:n.searchAsYouType},t.preprocessResultsEvent(v),e={queryBuilder:r,query:i,results:f,searchAsYouType:n.searchAsYouType,retryTheQuery:!1},0==f.results.length&&t.noResultEvent(e),e.retryTheQuery)?t.executeQuery():(t.lastQueryBuilder=r,t.currentPendingQuery=void 0,c={queryBuilder:r,query:i,results:f,searchAsYouType:n.searchAsYouType},t.querySuccessEvent(c),h.Defer.defer(function(){t.deferredQuerySuccessEvent(c);t.hideExecutingQueryAnimation()}),f):void 0}).catch(function(f){if(u===t.currentPendingQuery){t.logger.error("Query triggered an error",i,f);t.currentPendingQuery=void 0;var e={queryBuilder:r,endpoint:c,query:i,error:f,searchAsYouType:n.searchAsYouType};t.lastQuery=i;t.lastQueryResults=null;t.currentError=f;t.queryError(e);t.hideExecutingQueryAnimation()}}),a={queryBuilder:r,query:i,searchAsYouType:n.searchAsYouType,promise:u},this.duringQueryEvent(a),this.currentPendingQuery):void 0)},t.prototype.fetchMore=function(n){var t=this,i;if(void 0==this.currentPendingQuery){this.usageAnalytics.sendAllPendingEvents();i=new e.QueryBuilder;this.continueLastQueryBuilder(i,n);var o=i.build(),c=this.getEndpoint(),h=this.currentPendingQuery=c.search(o),l={queryBuilder:i,query:o,searchAsYouType:!1,promise:h};return r.$$(this.element).trigger(u.QueryEvents.duringFetchMoreQuery,l),this.lastQueryBuilder=i,this.lastQuery=o,h.then(function(n){var r,u;t.currentPendingQuery=void 0;null==t.lastQueryResults?t.lastQueryResults=n:f.forEach(n.results,function(n){t.lastQueryResults.results.push(n)});r={queryBuilder:i,query:o,results:n,searchAsYouType:!1};t.preprocessResultsEvent(r);s.QueryUtils.setIndexAndUidOnQueryResults(o,n,t.getLastSearchUid(),n.pipeline,n.splitTestRun);u={query:o,results:n,queryBuilder:i,searchAsYouType:!1};t.fetchMoreSuccessEvent(u)}),this.currentPendingQuery}},t.prototype.cancelQuery=function(){this.cancelAnyCurrentPendingQuery();this.hideExecutingQueryAnimation()},t.prototype.deferExecuteQuery=function(n){var t=this;this.showExecutingQueryAnimation();h.Defer.defer(function(){return t.executeQuery(n)})},t.prototype.ensureCreatedQueryBuilder=function(){this.createdOneQueryBuilder||this.createQueryBuilder(new l)},t.prototype.createQueryBuilder=function(n){var t,i,r,u;return(o.Assert.exists(n),this.createdOneQueryBuilder=!0,t=new e.QueryBuilder,t.language=String.locale,t.firstResult=t.firstResult||0,i={queryBuilder:t,searchAsYouType:n.searchAsYouType,cancel:n.cancel},this.buildingQueryEvent(i),r={queryBuilder:t,searchAsYouType:n.searchAsYouType,cancel:n.cancel},this.doneBuildingQueryEvent(r),i.cancel||r.cancel)?void this.cancelQuery():(u=this.getPipelineInUrl(),u&&(t.pipeline=u),t)},t.prototype.isStandaloneSearchbox=function(){return c.Utils.isNonEmptyString(this.options.searchPageUri)},t.prototype.saveLastQuery=function(){this.localStorage.save({expire:(new Date).getTime()+18e5,hash:this.lastQueryHash,uid:this.lastSearchUid})},t.prototype.getLastQueryHash=function(){return null!=this.lastQueryHash?this.lastQueryHash:(this.loadLastQueryHash(),this.lastQueryHash||this.queryHash((new e.QueryBuilder).build()))},t.prototype.getLastSearchUid=function(){return null!=this.lastSearchUid?this.lastSearchUid:(this.loadLastQueryHash(),this.lastSearchUid)},t.prototype.loadLastQueryHash=function(){var n=this.localStorage.load();null!=n&&(new Date).getTime()<=n.expire&&(this.lastQueryHash=n.hash,this.lastSearchUid=n.uid,this.localStorage.remove())},t.prototype.continueLastQueryBuilder=function(n,t){f.extend(n,this.lastQueryBuilder);n.firstResult=n.firstResult+n.numberOfResults;n.numberOfResults=t},t.prototype.getPipelineInUrl=function(){return s.QueryUtils.getUrlParameter("pipeline")},t.prototype.cancelAnyCurrentPendingQuery=function(){return!!c.Utils.exists(this.currentPendingQuery)&&(this.logger.debug("Cancelling current pending query"),b.Promise.reject(this.currentPendingQuery),this.currentPendingQuery=void 0,!0)},t.prototype.showExecutingQueryAnimation=function(){this.showingExecutingQueryAnimation||(r.$$(this.element).addClass("coveo-executing-query"),this.showingExecutingQueryAnimation=!0)},t.prototype.hideExecutingQueryAnimation=function(){this.showingExecutingQueryAnimation&&(r.$$(this.element).removeClass("coveo-executing-query"),this.showingExecutingQueryAnimation=!1)},t.prototype.keepLastSearchUid=function(n,t){return this.getLastQueryHash()==this.queryHash(n,t)},t.prototype.queryHash=function(n,t){var i=JSON.stringify(f.omit(n,"firstResult","groupBy","debug"));return null!=t&&(i+=t.pipeline),i},t.prototype.getCallOptions=function(){var n={options:{authentication:[]}};return r.$$(this.element).trigger(u.QueryEvents.buildingCallOptions,n),n.options},t.prototype.newQueryEvent=function(n){r.$$(this.element).trigger(u.QueryEvents.newQuery,n)},t.prototype.buildingQueryEvent=function(n){r.$$(this.element).trigger(u.QueryEvents.buildingQuery,n)},t.prototype.doneBuildingQueryEvent=function(n){r.$$(this.element).trigger(u.QueryEvents.doneBuildingQuery,n)},t.prototype.duringQueryEvent=function(n){r.$$(this.element).trigger(u.QueryEvents.duringQuery,n)},t.prototype.querySuccessEvent=function(n){r.$$(this.element).trigger(u.QueryEvents.querySuccess,n)},t.prototype.fetchMoreSuccessEvent=function(n){r.$$(this.element).trigger(u.QueryEvents.fetchMoreSuccess,n)},t.prototype.deferredQuerySuccessEvent=function(n){r.$$(this.element).trigger(u.QueryEvents.deferredQuerySuccess,n)},t.prototype.queryError=function(n){r.$$(this.element).trigger(u.QueryEvents.queryError,n)},t.prototype.preprocessResultsEvent=function(n){r.$$(this.element).trigger(u.QueryEvents.preprocessResults,n)},t.prototype.noResultEvent=function(n){r.$$(this.element).trigger(u.QueryEvents.noResults,n)},t.prototype.debugInfo=function(){var n=this,t={query:this.lastQuery};return null!=this.lastQueryResults&&(t.queryDuration=function(){return n.buildQueryDurationSection(n.lastQueryResults)},t.results=function(){return f.omit(n.lastQueryResults,"results")}),null!=this.currentError&&(t.error=function(){return n.currentError}),t},t.prototype.buildQueryDurationSection=function(n){var t=r.Dom.createElement("div",{className:"coveo-debug-queryDuration"}),i=r.Dom.createElement("div",{className:"coveo-debug-durations"}),u=k.BaseComponent.getComponentRef("Debug");return t.appendChild(i),f.forEach(u.durationKeys,function(u){var e=n[u],f,o,s;null!=e&&(i.appendChild(r.Dom.createElement("div",{className:"coveo-debug-duration",style:"width:"+e+"px","data-id":u})),f=r.Dom.createElement("div",{className:"coveo-debug-duration-legend","data-id":u}),t.appendChild(f),o=r.Dom.createElement("span",{className:"coveo-debug-duration-label"}),o.appendChild(document.createTextNode(u)),f.appendChild(o),s=r.Dom.createElement("span",{className:"coveo-debug-duration-value"}),s.appendChild(document.createTextNode(e)),f.appendChild(s))}),t},t.prototype.logQueryInActionsHistory=function(n){var t={name:"Query",value:n.q,time:JSON.stringify(new Date)};this.historyStore.addElement(t)},t}(y.RootComponent);a.ID="QueryController";t.QueryController=a},function(n,t,i){"use strict";var r=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},u=i(77),f=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.element=t,r.type=i,r}return r(t,n),t}(u.BaseComponent);t.RootComponent=f},function(n,t,i){"use strict";var r=i(12),u=i(59),f=i(11),e=function(){function n(t,i){this.element=t;this.type=i;this.disabled=!1;r.Assert.exists(t);r.Assert.isNonEmptyString(i);this.logger=new f.Logger(this);n.bindComponentToElement(t,this)}return n.prototype.debugInfo=function(){var n={};return n[this.constructor.ID]=this,n},n.prototype.disable=function(){this.disabled=!0},n.prototype.enable=function(){this.disabled=!1},n.bindComponentToElement=function(t,i){r.Assert.exists(t);r.Assert.exists(i);r.Assert.isNonEmptyString(i.type);t[n.computeCssClassNameForType(i.type)]=i;u.$$(t).addClass(n.computeCssClassNameForType(i.type));n.getBoundComponentsForElement(t).push(i)},n.computeCssClassName=function(t){return n.computeCssClassNameForType(t.ID)},n.computeCssClassNameForType=function(n){return r.Assert.isNonEmptyString(n),"Coveo"+n},n.computeSelectorForType=function(t){return r.Assert.isNonEmptyString(t),"."+n.computeCssClassNameForType(t)},n.getBoundComponentsForElement=function(n){return r.Assert.exists(n),null==n.CoveoBoundComponents&&(n.CoveoBoundComponents=[]),n.CoveoBoundComponents},n.getComponentRef=function(n){return Coveo[n]},n}();t.BaseComponent=e},function(n,t,i){"use strict";var r=i(79),f=i(21),u=i(14),e=function(){function n(){this.expression=new r.ExpressionBuilder;this.advancedExpression=new r.ExpressionBuilder;this.constantExpression=new r.ExpressionBuilder;this.longQueryExpression=new r.ExpressionBuilder;this.disjunctionExpression=new r.ExpressionBuilder;this.disableQuerySyntax=!1;this.firstResult=0;this.numberOfResults=10;this.requiredFields=[];this.includeRequiredFields=!1;this.enableDidYouMean=!1;this.enableDebug=!1;this.sortCriteria="relevancy";this.retrieveFirstSentences=!0;this.queryUid=f.QueryUtils.createGuid();this.queryFunctions=[];this.rankingFunctions=[];this.groupByRequests=[];this.enableDuplicateFiltering=!1}return n.prototype.build=function(){return{q:this.expression.build(),aq:this.advancedExpression.build(),cq:this.constantExpression.build(),lq:this.longQueryExpression.build(),dq:this.disjunctionExpression.build(),searchHub:this.searchHub,tab:this.tab,language:this.language,pipeline:this.pipeline,maximumAge:this.maximumAge,wildcards:this.enableWildcards,questionMark:this.enableQuestionMarks,lowercaseOperators:this.enableLowercaseOperators,partialMatch:this.enablePartialMatch,partialMatchKeywords:this.partialMatchKeywords,partialMatchThreshold:this.partialMatchThreshold,firstResult:this.firstResult,numberOfResults:this.numberOfResults,excerptLength:this.excerptLength,filterField:this.filterField,filterFieldRange:this.filterFieldRange,parentField:this.parentField,childField:this.childField,fieldsToInclude:this.computeFieldsToInclude(),fieldsToExclude:this.fieldsToExclude,enableDidYouMean:this.enableDidYouMean,sortCriteria:this.sortCriteria,sortField:this.sortField,queryFunctions:this.queryFunctions,rankingFunctions:this.rankingFunctions,groupBy:this.groupByRequests,retrieveFirstSentences:this.retrieveFirstSentences,timezone:this.timezone,disableQuerySyntax:this.disableQuerySyntax,enableDuplicateFiltering:this.enableDuplicateFiltering,enableCollaborativeRating:this.enableCollaborativeRating,debug:this.enableDebug,context:this.context,actionsHistory:this.actionsHistory,recommendation:this.recommendation}},n.prototype.computeCompleteExpression=function(){return this.computeCompleteExpressionParts().full},n.prototype.computeCompleteExpressionParts=function(){var n=r.ExpressionBuilder.merge(this.expression,this.advancedExpression);return{full:r.ExpressionBuilder.mergeUsingOr(r.ExpressionBuilder.merge(n,this.constantExpression),this.disjunctionExpression).build(),withoutConstant:r.ExpressionBuilder.mergeUsingOr(n,this.disjunctionExpression).build(),basic:r.ExpressionBuilder.mergeUsingOr(this.expression,this.disjunctionExpression).build(),advanced:r.ExpressionBuilder.mergeUsingOr(this.advancedExpression,this.disjunctionExpression).build(),constant:r.ExpressionBuilder.mergeUsingOr(this.constantExpression,this.disjunctionExpression).build()}},n.prototype.computeCompleteExpressionExcept=function(n){return this.computeCompleteExpressionPartsExcept(n).full},n.prototype.computeCompleteExpressionPartsExcept=function(n){var u=r.ExpressionBuilder.merge(this.expression,this.advancedExpression),t,i;return u.remove(n),t=new r.ExpressionBuilder,t.fromExpressionBuilder(this.expression),t.remove(n),i=new r.ExpressionBuilder,i.fromExpressionBuilder(this.advancedExpression),i.remove(n),{full:r.ExpressionBuilder.mergeUsingOr(r.ExpressionBuilder.merge(u,this.constantExpression),this.disjunctionExpression).build(),withoutConstant:r.ExpressionBuilder.mergeUsingOr(u,this.disjunctionExpression).build(),basic:r.ExpressionBuilder.mergeUsingOr(t,this.disjunctionExpression).build(),advanced:r.ExpressionBuilder.mergeUsingOr(i,this.disjunctionExpression).build(),constant:r.ExpressionBuilder.mergeUsingOr(this.constantExpression,this.disjunctionExpression).build()}},n.prototype.addFieldsToInclude=function(n){this.fieldsToInclude=u.uniq((this.fieldsToInclude||[]).concat(n))},n.prototype.addRequiredFields=function(n){this.requiredFields=u.uniq(this.requiredFields.concat(n))},n.prototype.addFieldsToExclude=function(n){this.fieldsToExclude=u.uniq((this.fieldsToInclude||[]).concat(n))},n.prototype.computeFieldsToInclude=function(){return this.includeRequiredFields||null!=this.fieldsToInclude?this.requiredFields.concat(this.fieldsToInclude||[]):null},n.prototype.addContextValue=function(n,t){null==this.context&&(this.context={});this.context[n]=t},n.prototype.addContext=function(n){null==this.context&&(this.context={});u.extend(this.context,n)},n}();t.QueryBuilder=e},function(n,t,i){"use strict";var r=i(12),f=i(21),u=i(14),e=function(){function n(){this.parts=[];this.wrapParts=!0}return n.prototype.add=function(n){r.Assert.isNonEmptyString(n);this.parts.push(n)},n.prototype.fromExpressionBuilder=function(n){this.parts=this.parts.concat(n.parts)},n.prototype.addFieldExpression=function(n,t,i){r.Assert.isNonEmptyString(n);r.Assert.stringStartsWith(n,"@");r.Assert.isNonEmptyString(t);r.Assert.isLargerOrEqualsThan(1,i.length);this.add(f.QueryUtils.buildFieldExpression(n,t,i))},n.prototype.addFieldNotEqualExpression=function(n,t){r.Assert.isNonEmptyString(n);r.Assert.stringStartsWith(n,"@");r.Assert.isLargerOrEqualsThan(1,t.length);this.add(f.QueryUtils.buildFieldNotEqualExpression(n,t))},n.prototype.remove=function(n){r.Assert.isNonEmptyString(n);var t=u.indexOf(this.parts,n);t!=-1&&this.parts.splice(u.indexOf(this.parts,n),1)},n.prototype.isEmpty=function(){return 0==this.parts.length},n.prototype.build=function(n){return void 0===n&&(n=" "),0==this.parts.length?void 0:1==this.parts.length?this.parts[0]:this.wrapParts?"("+this.parts.join(")"+n+"(")+")":this.parts.join(n)},n.merge=function(){for(var i,r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return i=new n,u.each(r,function(n){i.parts=i.parts.concat(n.parts)}),i},n.mergeUsingOr=function(){for(var i,r,e,f=[],t=0;t<arguments.length;t++)f[t]=arguments[t];return i=u.filter(f,function(n){return!n.isEmpty()}),r=new n,1==i.length?r.parts=[].concat(i[0].parts):i.length>1&&(e=u.map(i,function(n){return n.build()}),r.add("("+e.join(") OR (")+")")),r},n}();t.ExpressionBuilder=e},function(n,t,i){"use strict";var r=i(14),u=function(){function n(n,t){this.endpoint=n;this.callOptions=t;this.options=n.options}return n.prototype.getBaseUri=function(){return this.endpoint.getBaseUri()},n.prototype.getBaseAlertsUri=function(){return this.endpoint.getBaseAlertsUri()},n.prototype.getAuthenticationProviderUri=function(n,t,i){return this.endpoint.getAuthenticationProviderUri(n,t,i)},n.prototype.isJsonp=function(){return this.endpoint.isJsonp()},n.prototype.search=function(n,t){return this.endpoint.search(n,this.enrichCallOptions(t))},n.prototype.getExportToExcelLink=function(n,t,i){return this.endpoint.getExportToExcelLink(n,t,this.enrichCallOptions(i))},n.prototype.tagDocument=function(n){return this.endpoint.tagDocument(n,this.enrichCallOptions(n))},n.prototype.getRevealQuerySuggest=function(n,t){return this.endpoint.getRevealQuerySuggest(n,this.enrichCallOptions(t))},n.prototype.rateDocument=function(n,t){return this.endpoint.rateDocument(n,this.enrichCallOptions(t))},n.prototype.getRawDataStream=function(n,t,i){return this.endpoint.getRawDataStream(n,t,this.enrichCallOptions(i))},n.prototype.getDocument=function(n,t){return this.endpoint.getDocument(n,this.enrichCallOptions(t))},n.prototype.getDocumentText=function(n,t){return this.endpoint.getDocumentText(n,this.enrichCallOptions(t))},n.prototype.getDocumentHtml=function(n,t){return this.endpoint.getDocumentHtml(n,this.enrichCallOptions(t))},n.prototype.getViewAsHtmlUri=function(n,t){return this.endpoint.getViewAsHtmlUri(n,this.enrichCallOptions(t))},n.prototype.getViewAsDatastreamUri=function(n,t,i){return this.endpoint.getViewAsDatastreamUri(n,t,this.enrichCallOptions(i))},n.prototype.listFieldValues=function(n,t){return this.endpoint.listFieldValues(n,this.enrichCallOptions(t))},n.prototype.listFields=function(n){return this.endpoint.listFields(this.enrichCallOptions(n))},n.prototype.extensions=function(n){return this.endpoint.extensions(this.enrichCallOptions(n))},n.prototype.follow=function(n){return this.endpoint.follow(n)},n.prototype.listSubscriptions=function(n){return this.endpoint.listSubscriptions(n)},n.prototype.updateSubscription=function(n){return this.endpoint.updateSubscription(n)},n.prototype.deleteSubscription=function(n){return this.endpoint.deleteSubscription(n)},n.prototype.logError=function(n){return this.endpoint.logError(n)},n.prototype.enrichCallOptions=function(n){return r.extend({},n,this.callOptions)},n}();t.SearchEndpointWithDefaultCallOptions=u},function(n,t,i){"use strict";var o=i(82),r,u,f,e;t.analytics=o;r=i(87);t.SimpleAnalytics=r;u=i(83);t.history=u;f=i(90);t.donottrack=f;e=i(84);t.storage=e},function(n,t,i){"use strict";function r(n){return n.json().then(function(t){return t.raw=n,t})}var f=i(83),e=i(85),u;t.Version="v15";t.Endpoints={"default":"https://usageanalytics.coveo.com",production:"https://usageanalytics.coveo.com",dev:"https://usageanalyticsdev.coveo.com",staging:"https://usageanalyticsstaging.coveo.com"};u=function(){function n(n){if("undefined"==typeof n)throw new Error("You have to pass options to this constructor");this.endpoint=n.endpoint||t.Endpoints.default;this.token=n.token;this.version=n.version||t.Version}return n.prototype.sendEvent=function(n,t){return fetch(this.getRestEndpoint()+"/analytics/"+n,{method:"POST",headers:this.getHeaders(),mode:"cors",body:JSON.stringify(t),credentials:"include"})},n.prototype.sendSearchEvent=function(n){return this.sendEvent("search",n).then(r)},n.prototype.sendClickEvent=function(n){return this.sendEvent("click",n).then(r)},n.prototype.sendCustomEvent=function(n){return this.sendEvent("custom",n).then(r)},n.prototype.sendViewEvent=function(n){if(""===n.referrer&&delete n.referrer,e.hasDocumentLocation()){var t=new f.HistoryStore,i={name:"PageView",value:document.location.toString(),time:JSON.stringify(new Date),title:document.title};t.addElement(i)}return this.sendEvent("view",n).then(r)},n.prototype.getVisit=function(){return fetch(this.getRestEndpoint()+"/analytics/visit").then(r)},n.prototype.getHealth=function(){return fetch(this.getRestEndpoint()+"/analytics/monitoring/health").then(r)},n.prototype.getRestEndpoint=function(){return this.endpoint+"/rest/"+this.version},n.prototype.getHeaders=function(){var n={"Content-Type":"application/json"};return this.token&&(n.Authorization="Bearer "+this.token),n},n}();t.Client=u;Object.defineProperty(t,"__esModule",{value:!0});t.default=u},function(n,t,i){"use strict";var r=i(84),f=i(85),u;t.STORE_KEY="__coveo.analytics.history";t.MAX_NUMBER_OF_HISTORY_ELEMENTS=20;t.MIN_THRESHOLD_FOR_DUPLICATE_VALUE=6e4;t.MAX_VALUE_SIZE=75;u=function(){function n(n){this.store=n||r.getAvailableStorage();this.store instanceof r.CookieStorage||!f.hasCookieStorage()||(new r.CookieStorage).removeItem(t.STORE_KEY)}return n.prototype.addElement=function(n){n.internalTime=(new Date).getTime();this.cropQueryElement(n);var t=this.getHistory();null!=t?this.isValidEntry(n)&&this.setHistory([n].concat(t)):this.setHistory([n])},n.prototype.getHistory=function(){try{return JSON.parse(this.store.getItem(t.STORE_KEY))}catch(n){return[]}},n.prototype.setHistory=function(n){try{this.store.setItem(t.STORE_KEY,JSON.stringify(n.slice(0,t.MAX_NUMBER_OF_HISTORY_ELEMENTS)))}catch(n){}},n.prototype.clear=function(){try{this.store.removeItem(t.STORE_KEY)}catch(n){}},n.prototype.getMostRecentElement=function(){var n=this.getHistory(),t;return null!=n?(t=n.sort(function(n,t){return null==n.internalTime&&null==t.internalTime?0:null==n.internalTime&&null!=t.internalTime?1:null!=n.internalTime&&null==t.internalTime?-1:t.internalTime-n.internalTime}),t[0]):null},n.prototype.cropQueryElement=function(n){n.name&&"query"==n.name.toLowerCase()&&null!=n.value&&(n.value=n.value.slice(0,t.MAX_VALUE_SIZE))},n.prototype.isValidEntry=function(n){var i=this.getMostRecentElement();return!i||i.value!=n.value||n.internalTime-i.internalTime>t.MIN_THRESHOLD_FOR_DUPLICATE_VALUE},n}();t.HistoryStore=u;Object.defineProperty(t,"__esModule",{value:!0});t.default=u},function(n,t,i){"use strict";function o(){return t.preferredStorage?t.preferredStorage:r.hasLocalStorage()?localStorage:r.hasCookieStorage()?new f:r.hasSessionStorage()?sessionStorage:new e}var r=i(85),u=i(86),f,e;t.preferredStorage=null;t.getAvailableStorage=o;f=function(){function n(){}return n.prototype.getItem=function(n){return u.Cookie.get(n)},n.prototype.removeItem=function(n){u.Cookie.erase(n)},n.prototype.setItem=function(n,t){u.Cookie.set(n,t)},n}();t.CookieStorage=f;e=function(){function n(){}return n.prototype.getItem=function(){return null},n.prototype.removeItem=function(){},n.prototype.setItem=function(){},n}();t.NullStorage=e},function(n,t){"use strict";function r(){try{return"localStorage"in window&&null!==window.localStorage}catch(n){return!1}}function u(){try{return"sessionStorage"in window&&null!==window.sessionStorage}catch(n){return!1}}function f(){return navigator.cookieEnabled}function i(){return null!==document}function e(){return i()&&null!==document.location}t.hasLocalStorage=r;t.hasSessionStorage=u;t.hasCookieStorage=f;t.hasDocument=i;t.hasDocumentLocation=e},function(n,t){"use strict";var i=function(){function n(){}return n.set=function(t,i,r){var f,s,e,u,o;r?(e=new Date,e.setTime(e.getTime()+r),u="; expires="+e.toGMTString()):u="";o=location.hostname;o.indexOf(".")===-1?document.cookie=t+"="+i+u+"; path=/":(s=o.split("."),s.shift(),f="."+s.join("."),document.cookie=t+"="+i+u+"; path=/; domain="+f,null!=n.get(t)&&n.get(t)==i||(f="."+o,document.cookie=t+"="+i+u+"; path=/; domain="+f))},n.get=function(n){for(var t,r=n+"=",u=document.cookie.split(";"),i=0;i<u.length;i++)if(t=u[i],t=t.replace(/^\s+/,""),0==t.indexOf(r))return t.substring(r.length,t.length);return null},n.erase=function(t){n.set(t,"",-1)},n}();t.Cookie=i},function(n,t,i){"use strict";var f=i(82),o=i(88),r=i(89),e=function(){function n(){}return n.prototype.init=function(n,t){if("undefined"==typeof n)throw new Error("You must pass your token when you call 'init'");if("string"==typeof n)t=t||f.Endpoints.default,this.client=new f.Client({token:n,endpoint:t});else{if("object"!=typeof n||"undefined"==typeof n.sendEvent)throw new Error("You must pass either your token or a valid object when you call 'init'");this.client=n}},n.prototype.send=function(n,t){if("undefined"==typeof this.client)throw new Error("You must call init before sending an event");switch(t=o.default({},{hash:window.location.hash},t),n){case"pageview":return void this.client.sendViewEvent({location:window.location.toString(),referrer:document.referrer,language:document.documentElement.lang,title:document.title,contentIdKey:r.popFromObject(t,"contentIdKey"),contentIdValue:r.popFromObject(t,"contentIdValue"),contentType:r.popFromObject(t,"contentType"),customData:t});default:throw new Error("Event type: '"+n+"' not implemented");}},n.prototype.onLoad=function(n){if("undefined"==typeof n)throw new Error("You must pass a function when you call 'onLoad'");n()},n}(),u;t.SimpleAPI=e;u=new e;t.SimpleAnalytics=function(n){for(var r,i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];return r=u[n],r?r.apply(u,i):void 0};Object.defineProperty(t,"__esModule",{value:!0});t.default=t.SimpleAnalytics},function(n,t){"use strict";var u=Object.prototype.hasOwnProperty,i=Object.getOwnPropertySymbols,f=Object.prototype.propertyIsEnumerable,r=function(n){for(var r,e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];if(void 0===n||null===n)throw new TypeError("Cannot convert undefined or null to object");return r=Object(n),e.forEach(function(n){var t=Object(n),e,o;for(e in t)u.call(t,e)&&(r[e]=t[e]);i&&(o=i(t),o.forEach(function(n){f.call(t,n)&&(r[n]=t[n])}))}),r};t.ponyfill=r;t.assign="function"==typeof Object.assign?Object.assign:r;Object.defineProperty(t,"__esModule",{value:!0});t.default=t.assign},function(n,t){"use strict";function i(n,t){if(n){var i=n[t];return delete n[t],i}}t.popFromObject=i},function(n,t){"use strict";t.doNotTrack=[!0,"yes","1"].indexOf(navigator.doNotTrack||navigator.msDoNotTrack||window.doNotTrack);Object.defineProperty(t,"__esModule",{value:!0});t.default=t.doNotTrack},function(n,t,i){"use strict";var o=i(79),u=i(13),f=i(92),s=i(12),e=i(93),r=i(14),h=function(){function n(n){this.facet=n}return n.prototype.prepareForNewQuery=function(){this.lastGroupByRequestIndex=void 0;this.expressionToUseForFacetSearch=void 0;this.constantExpressionToUseForFacetSearch=void 0},n.prototype.computeOurFilterExpression=function(){var f=this,n=new o.ExpressionBuilder,t=this.facet.values.getSelected(),i;return t.length>0&&(this.facet.options.useAnd?r.each(t,function(t){n.addFieldExpression(f.facet.options.field,"==",[t.value])}):n.addFieldExpression(this.facet.options.field,"==",r.map(t,function(n){return n.value}))),i=this.facet.values.getExcluded(),i.length>0&&n.addFieldNotEqualExpression(this.facet.options.field,r.map(i,function(n){return n.value})),u.Utils.isNonEmptyString(this.facet.options.additionalFilter)&&n.add(this.facet.options.additionalFilter),n.build()},n.prototype.putGroupByIntoQueryBuilder=function(n){var i;s.Assert.exists(n);var f=this.createGroupByAllowedValues(),r=this.createBasicGroupByRequest(f),t=this.createGroupByQueryOverride(n);u.Utils.isNullOrUndefined(t)?(i=n.computeCompleteExpressionParts(),this.expressionToUseForFacetSearch=null==i.withoutConstant?"@uri":i.withoutConstant,this.basicExpressionToUseForFacetSearch=null==i.basic?"@uri":i.basic,this.advancedExpressionToUseForFacetSearch=i.advanced,this.constantExpressionToUseForFacetSearch=i.constant):(r.queryOverride=t.basic,r.advancedQueryOverride=t.advanced,r.constantQueryOverride=t.constant,this.expressionToUseForFacetSearch=t.withoutConstant,this.basicExpressionToUseForFacetSearch=t.basic,this.advancedExpressionToUseForFacetSearch=t.advanced,this.constantExpressionToUseForFacetSearch=t.constant);this.lastGroupByRequestIndex=n.groupByRequests.length;this.lastGroupByRequest=r;n.groupByRequests.push(r)},n.prototype.search=function(n,t){var i=this;return void 0===t&&(t=n.nbResults),new Promise(function(u,f){var s=function(r){var f=r.length;return r=i.checkForFacetSearchValuesToRemove(r,n.valueToSearch),e.FacetUtils.needAnotherFacetSearch(r.length,f,t,5)?(n.nbResults+=5,i.search(n,r.length)):void u(r)},o=i.facet.getEndpoint().search(n.getQuery());i.currentSearchPromise=o;o.then(function(t){if(i.currentSearchPromise==o){var u=[];t.groupByResults&&t.groupByResults[0]&&r.each(t.groupByResults[0].values,function(t){t.lookupValue?r.contains(n.alwaysExclude,t.lookupValue.toLowerCase())||u.push(t):r.contains(n.alwaysExclude,t.value.toLowerCase())||u.push(t)});s(r.first(u,n.nbResults))}else f()}).catch(function(n){f(n)})})},n.prototype.fetchMore=function(n){var t=new f.FacetSearchParameters(this.facet);return t.alwaysInclude=this.facet.options.allowedValues||r.pluck(this.facet.values.getAll(),"value"),t.nbResults=n,this.facet.getEndpoint().search(t.getQuery())},n.prototype.searchInFacetToUpdateDelta=function(n){var i=new f.FacetSearchParameters(this.facet),t=i.getQuery();return t.aq=this.computeOurFilterExpression(),r.each(n,function(n){n.waitingForDelta=!0}),t.groupBy=[this.createBasicGroupByRequest(r.map(n,function(n){return n.value}))],t.groupBy[0].completeFacetWithStandardValues=!1,this.facet.getEndpoint().search(t)},n.prototype.createGroupByAllowedValues=function(){return void 0!=this.facet.options.allowedValues?this.facet.options.allowedValues:void 0!=this.facet.options.customSort?this.getUnionWithCustomSortLowercase(this.facet.options.customSort,this.getAllowedValuesFromSelected()):r.map(this.getAllowedValuesFromSelected(),function(n){return n.value})},n.prototype.getUnionWithCustomSortLowercase=function(n,t){var i=r.map(n,function(n){return n.toLowerCase()}),u=r.chain(t).filter(function(n){return!r.contains(i,n.value.toLowerCase())}).map(function(n){return n.value}).value();return r.compact(n.concat(u))},n.prototype.getAllowedValuesFromSelected=function(){var n=[],t;if(this.facet.options.useAnd||!this.facet.keepDisplayedValuesNextTime){if(t=this.facet.values.getSelected(),0==t.length)return;n=this.facet.values.getSelected()}else n=this.facet.values.getAll();return n},n.prototype.createGroupByQueryOverride=function(n){var i=this.facet.options.additionalFilter?this.facet.options.additionalFilter:"",t=void 0;return this.facet.options.useAnd?u.Utils.isNonEmptyString(i)&&(t=n.computeCompleteExpressionParts(),u.Utils.isEmptyString(t.basic)&&(t.basic="@uri")):this.facet.values.hasSelectedOrExcludedValues()?(t=n.computeCompleteExpressionPartsExcept(this.computeOurFilterExpression()),u.Utils.isEmptyString(t.basic)&&(t.basic="@uri")):u.Utils.isNonEmptyString(i)&&(t=n.computeCompleteExpressionParts(),u.Utils.isEmptyString(t.basic)&&(t.basic="@uri")),t&&u.Utils.isNonEmptyString(i)&&(t.constant=t.constant?t.constant+" "+i:i),r.each(r.keys(t),function(n){(u.Utils.isEmptyString(t[n])||u.Utils.isNullOrUndefined(t[n]))&&delete t[n]}),0==r.keys(t).length&&(t=void 0),t},n.prototype.createBasicGroupByRequest=function(n,t){var r,f,i;return void 0===t&&(t=!0),r=this.facet.numberOfValues,null!=this.facet.options.customSort&&(f=this.getUnionWithCustomSortLowercase(this.facet.options.customSort,this.facet.values.getSelected().concat(this.facet.values.getExcluded())),r=Math.max(r,f.length)),i={field:this.facet.options.field,maximumNumberOfValues:r+(this.facet.options.enableMoreLess?1:0),sortCriteria:this.facet.options.sortCriteria,injectionDepth:this.facet.options.injectionDepth,completeFacetWithStandardValues:void 0==this.facet.options.allowedValues},this.facet.options.lookupField&&(i.lookupField=this.facet.options.lookupField),null!=n&&(i.allowedValues=n),t&&u.Utils.isNonEmptyString(this.facet.options.computedField)&&(i.computedFields=[{field:this.facet.options.computedField,operation:this.facet.options.computedFieldOperation}]),i},n.prototype.checkForFacetSearchValuesToRemove=function(n,t){var i=this,u=e.FacetUtils.getRegexToUseForFacetSearch(t,this.facet.options.facetSearchIgnoreAccents);return r.filter(n,function(n){var t=r.isEmpty(i.facet.options.allowedValues)||r.contains(i.facet.options.allowedValues,n.value),f=i.facet.getValueCaption(n);return t&&u.test(f)})},n}();t.FacetQueryController=h},function(n,t,i){"use strict";var e=i(13),u=i(93),o=i(78),f=i(59),r=i(14),s=function(){function n(n){this.facet=n;this.valueToSearch="";this.alwaysInclude=[];this.alwaysExclude=[];this.sortCriteria="occurrences";this.fetchMore=!1;this.nbResults=n.options.numberOfValuesInFacetSearch;this.ignoreAccents=n.options.facetSearchIgnoreAccents;this.searchEvenIfEmpty=n.searchInterface.isNewDesign()}return n.prototype.setValueToSearch=function(n){return this.valueToSearch=n,e.Utils.isNonEmptyString(n)&&(this.alwaysInclude=this.alwaysInclude.concat(u.FacetUtils.getValuesToUseForSearchInFacet(this.valueToSearch,this.facet))),this},n.prototype.excludeCurrentlyDisplayedValuesInSearch=function(n){var t=this;r.each(this.getCurrentlyShowedValueInSearch(n),function(n){var i=u.FacetUtils.getValuesToUseForSearchInFacet(n,t.facet);r.each(i,function(n){t.alwaysExclude.push(n)})});r.each(this.facet.getDisplayedFacetValues(),function(n){var i=u.FacetUtils.getValuesToUseForSearchInFacet(n.value,t.facet);r.each(i,function(n){t.alwaysExclude.push(n)})})},n.prototype.getGroupByRequest=function(){var t,i,n;return this.lowerCaseAll(),t=this.nbResults,this.facet.searchInterface.isNewDesign()&&(t+=this.alwaysExclude.length),i=[],this.valueToSearch&&(i=["*"+this.valueToSearch+"*"]),n={allowedValues:i.concat(this.alwaysInclude).concat(this.alwaysExclude),maximumNumberOfValues:t,completeFacetWithStandardValues:!this.facet.options.lookupField,field:this.facet.options.field,sortCriteria:this.facet.options.sortCriteria||this.sortCriteria,injectionDepth:this.facet.options.injectionDepth},this.facet.options.lookupField&&(n.lookupField=this.facet.options.lookupField),this.facet.options.computedField&&(n.computedFields=[{field:this.facet.options.computedField,operation:this.facet.options.computedFieldOperation}]),n},n.prototype.getQuery=function(){var n=r.clone(this.facet.queryController.getLastQuery());return n||(n=(new o.QueryBuilder).build()),n.q=this.facet.facetQueryController.basicExpressionToUseForFacetSearch,n.cq=this.facet.facetQueryController.constantExpressionToUseForFacetSearch,n.aq=this.facet.facetQueryController.advancedExpressionToUseForFacetSearch,n.enableDidYouMean=!1,n.firstResult=0,n.numberOfResults=0,n.fieldsToInclude=[],n.groupBy=[this.getGroupByRequest()],n},n.prototype.getCurrentlyShowedValueInSearch=function(n){return r.map(f.$$(n).findAll(".coveo-facet-value-caption"),function(n){return f.$$(n).text()})},n.prototype.lowerCaseAll=function(){this.alwaysExclude=r.chain(this.alwaysExclude).map(function(n){return n.toLowerCase()}).uniq().value();this.alwaysInclude=r.chain(this.alwaysInclude).map(function(n){return n.toLowerCase()}).uniq().value()},n}();t.FacetSearchParameters=s},function(n,t,i){"use strict";var h=i(62),u=i(21),e=i(61),o=i(58),s=i(13),f=i(59),r=i(14),c=function(){function n(){}return n.getRegexToUseForFacetSearch=function(n,t){return new RegExp(h.StringUtils.stringToRegex(n,t),"i")},n.getValuesToUseForSearchInFacet=function(n,t){var i=[n],f=this.getRegexToUseForFacetSearch(n,t.options.facetSearchIgnoreAccents);return t.options.valueCaption?(r.chain(t.options.valueCaption).pairs().filter(function(n){return f.test(n[1])}).each(function(n){i.push(n[0])}),(u.QueryUtils.isStratusAgnosticField(t.options.field,"@objecttype")||u.QueryUtils.isStratusAgnosticField(t.options.field,"@filetype"))&&r.each(e.FileTypes.getFileTypeCaptions(),function(n,r){r in t.options.valueCaption||!f.test(n)||i.push(r)})):u.QueryUtils.isStratusAgnosticField(t.options.field,"@objecttype")||u.QueryUtils.isStratusAgnosticField(t.options.field,"@filetype")?r.each(r.filter(r.pairs(e.FileTypes.getFileTypeCaptions()),function(n){return f.test(n[1])}),function(n){i.push(n[0])}):u.QueryUtils.isStratusAgnosticField(t.options.field,"@month")&&r.each(r.range(1,13),function(n){f.test(o.DateUtils.monthToString(n-1))&&i.push(("0"+n.toString()).substr(-2))}),i},n.buildFacetSearchPattern=function(n){return n=r.map(n,function(n){return s.Utils.escapeRegexCharacter(n)}),n[0]=".*"+n[0]+".*",n.join("|")},n.needAnotherFacetSearch=function(n,t,i,r){return n<t&&n<r&&n>i},n.addNoStateCssClassToFacetValues=function(n,t){if(0!=n.values.getSelected().length){var i=f.$$(t).findAll("li:not(.coveo-selected)");r.each(i,function(n){f.$$(n).addClass("coveo-no-state")})}},n.tryToGetTranslatedCaption=function(n,t){var i,r;if(u.QueryUtils.isStratusAgnosticField(n.toLowerCase(),"@filetype"))i=e.FileTypes.getFileTypeCaptions()[t.toLowerCase()];else if(u.QueryUtils.isStratusAgnosticField(n.toLowerCase(),"@month"))try{r=parseInt(t);i=o.DateUtils.monthToString(r-1)}catch(n){}return void 0!=i&&s.Utils.isNonEmptyString(i)?i:t},n.clipCaptionsToAvoidOverflowingTheirContainer=function(n,t){var i,r;if(!(n.getBindings&&n.getBindings().searchInterface&&n.getBindings().searchInterface.isNewDesign())&&(!(Coveo.HierarchicalFacet&&n instanceof Coveo.HierarchicalFacet)||t)){n.logger.trace("Clipping captions");f.$$(n.element).show();for(var e=n.element,o=f.$$(e).findAll(".coveo-facet-value-caption"),i=0;i<o.length;i++)""!=o[i].style.width&&(o[i].style.width="");for(var h=f.$$(e).findAll(".coveo-facet-value-label-wrapper"),s=[],i=0;i<h.length;i++){var u=h[i],c=f.$$(u).find(".coveo-facet-value-caption"),a=u.scrollWidth,v=u.clientWidth,y=c.scrollWidth,l=Math.max(0,a-v);l&&s.push({element:c,width:y,crop:l,label:u})}for(e.style.display="",i=0;i<s.length;i++)r=s[i],r.element.style.width=r.width-r.crop+"px",r.crop>0?r.label.setAttribute("title",f.$$(r.element).text()):r.label.setAttribute("title",null)}},n}();t.FacetUtils=c},function(n,t,i){"use strict";var r=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},u=i(91),f=i(13),e=function(n){function t(t){var i=n.call(this,t)||this;return i.facet=t,i}return r(t,n),t.prototype.createBasicGroupByRequest=function(t,i){void 0===i&&(i=!0);var r=n.prototype.createBasicGroupByRequest.call(this,null,i);return r.allowedValues=void 0,r=f.Utils.isNonEmptyArray(this.facet.options.ranges)?this.buildGroupByQueryForPredefinedRanges(r):this.buildGroupByQueryForAutomaticRanges(r)},t.prototype.createGroupByAllowedValues=function(){},t.prototype.buildGroupByQueryForAutomaticRanges=function(n){return n.generateAutomaticRanges=!0,n},t.prototype.buildGroupByQueryForPredefinedRanges=function(n){return n.rangeValues=this.facet.options.ranges,n.maximumNumberOfValues=this.facet.options.ranges.length,n},t}(u.FacetQueryController);t.FacetRangeQueryController=e},function(n,t,i){"use strict";var f=i(48),e=i(79),u=i(58),o=i(11),s=i(21),r=i(14),h=function(){function n(n){var t=this;this.facet=n;this.facet.bind.onRootElement(f.QueryEvents.querySuccess,function(n){return t.handleQuerySuccess(n)})}return n.prototype.prepareForNewQuery=function(){this.lastGroupByRequestIndex=void 0},n.prototype.putGroupByIntoQueryBuilder=function(n){this.facet.options.graph&&this.putGroupByForGraphIntoQueryBuilder(n);this.putGroupByForSliderIntoQueryBuilder(n)},n.prototype.createBasicGroupByRequest=function(n,t){void 0===t&&(t=!0);var i={field:this.facet.options.field,completeFacetWithStandardValues:!0};return i.allowedValues=void 0,i=this.facet.options.graph?this.buildGroupByQueryForSlider(i):this.buildGroupByQueryForAutomaticRanges(i)},n.prototype.computeOurFilterExpression=function(n){void 0===n&&(n=[this.facet.startOfSlider,this.facet.endOfSlider]);var t=new e.ExpressionBuilder;return void 0!=n[0]&&void 0!=n[1]&&(this.facet.options.excludeOuterBounds?this.addFilterExpressionWithOuterBoundsExcluded(n[0],n[1],t):this.addFilterExpressionWithOuterBoundsIncluded(n[0],n[1],t)),t.build()},n.prototype.handleQuerySuccess=function(n){var t=this,i,u;if(!this.isAValidRangeResponse(n))return i=new o.Logger(this),i.error("Cannot instantiate FacetSlider for this field : "+this.facet.options.field+". It needs to be configured as a numerical field in the index"),i.error("Disabling the FacetSlider",this.facet),void this.facet.disable();this.facet.options&&this.facet.options.graph&&void 0==this.rangeValuesForGraphToUse&&(this.rangeValuesForGraphToUse=[],u=n.results.groupByResults[this.graphGroupByQueriesIndex].values,r.each(u,function(n){var i=n.value.split("..");t.rangeValuesForGraphToUse.push({start:t.facet.options.dateField?t.getISOFormat(i[0].replace("@"," ")):parseInt(i[0],10),end:t.facet.options.dateField?t.getISOFormat(i[1].replace("@"," ")):parseInt(i[1],10)})}))},n.prototype.isAValidRangeResponse=function(n){if(void 0!=this.lastGroupByRequestIndex&&n.results.groupByResults[this.lastGroupByRequestIndex]){var t=n.results.groupByResults[this.lastGroupByRequestIndex].values[0];if(t&&!s.QueryUtils.isRangeString(t.value))return!1}return!0},n.prototype.addFilterExpressionWithOuterBoundsIncluded=function(n,t,i){n==this.facet.options.start&&t==this.facet.options.end||(this.facet.options.dateField&&(n=this.getFilterDateFormat(n),t=this.getFilterDateFormat(t)),i.addFieldExpression(this.facet.options.field,"==",[n+".."+t]))},n.prototype.addFilterExpressionWithOuterBoundsExcluded=function(n,t,i){var r=this.facet.options.start,u=this.facet.options.end,f=n,e=t;this.facet.options.dateField?(f=this.getFilterDateFormat(n),e=this.getFilterDateFormat(t),r=this.getFilterDateFormat(r),u=this.getFilterDateFormat(u)):(f+="",e+="",r+="",u+="");f!=r&&e==u?i.addFieldExpression(this.facet.options.field,">=",[f]):f==r&&e!=u?i.addFieldExpression(this.facet.options.field,"<=",[e]):this.addFilterExpressionWithOuterBoundsIncluded(n,t,i)},n.prototype.buildGroupByQueryForSlider=function(n){if(void 0!=this.facet.options.start&&void 0!=this.facet.options.end){var t=this.facet.options.start,i=this.facet.options.end;return(this.facet.options.dateField||this.facet.options.dateField)&&(t=this.getISOFormat(t),i=this.getISOFormat(i)),n.rangeValues=[{start:t,end:i,endInclusive:!0,label:"Slider"}],n}return this.buildGroupByQueryForAutomaticRanges(n)},n.prototype.buildGroupByQueryForAutomaticRanges=function(n){return n.generateAutomaticRanges=!0,n},n.prototype.putGroupByForGraphIntoQueryBuilder=function(n){var t,f,r,i,u;this.graphGroupByQueriesIndex=n.groupByRequests.length;t=this.createBasicGroupByRequest();t.rangeValues&&(f=t.rangeValues[0],t.rangeValues=this.createRangeValuesForGraph(f));r=this.computeOurFilterExpression(this.facet.getSliderBoundaryForQuery());void 0!=r?(i=n.computeCompleteExpressionPartsExcept(r),t.queryOverride=i.basic,t.advancedQueryOverride=i.advanced,t.constantQueryOverride=i.constant,void 0==t.queryOverride?t.queryOverride=this.facet.options.queryOverride||"@uri":t.queryOverride+=this.facet.options.queryOverride?" "+this.facet.options.queryOverride:""):null!=this.facet.options.queryOverride&&(u=n.computeCompleteExpression(),t.queryOverride=(null!=u?u+" ":"")+this.facet.options.queryOverride);t.sortCriteria="nosort";t.maximumNumberOfValues=this.facet.options.graph.steps;n.groupByRequests.push(t)},n.prototype.putGroupByForSliderIntoQueryBuilder=function(n){this.lastGroupByRequestIndex=n.groupByRequests.length;var t=this.createBasicGroupByRequest();t.maximumNumberOfValues=null!=this.facet.options.graph?this.facet.options.graph.steps||1:1;t.queryOverride=this.facet.options.queryOverride||"@uri";t.sortCriteria="nosort";t.generateAutomaticRanges=!0;t.rangeValues=void 0;n.groupByRequests.push(t)},n.prototype.createRangeValuesForGraph=function(n){return void 0==this.facet.options.graph.steps&&(this.facet.options.graph.steps=10),this.facet.options.dateField&&isNaN(this.facet.options.start)&&(this.facet.options.start=new Date(this.facet.options.start).getTime()),this.facet.options.dateField&&isNaN(this.facet.options.end)&&(this.facet.options.end=new Date(this.facet.options.end).getTime()),void 0!=this.rangeValuesForGraphToUse?this.usePrebuiltRange(n):this.buildRange(n)},n.prototype.usePrebuiltRange=function(n){return r.map(this.rangeValuesForGraphToUse,function(t){return{start:t.start,end:t.end,endInclusive:n.endInclusive,label:n.label}})},n.prototype.buildRange=function(n){var t=this,i=this.facet.options.start,u=(this.facet.options.end-this.facet.options.start)/this.facet.options.graph.steps;return r.map(r.range(0,this.facet.options.graph.steps,1),function(r){var f=i+r*u,e=i+(r+1)*u;return t.facet.options.dateField&&(f=t.getISOFormat(f),e=t.getISOFormat(e)),{endInclusive:n.endInclusive,label:n.label,start:f,end:e}})},n.prototype.getISOFormat=function(n){if(n){isNaN(n)||(n=Number(n));var t=new Date(n);return u.DateUtils.isValid(t)||(t=new Date(this.getBrowserCompatibleFormat(n)),u.DateUtils.isValid(t))?t.toISOString():void this.facet.logger.error("Cannot parse this date format.",n,new Date(n))}},n.prototype.getFilterDateFormat=function(n){if(n)return this.getISOFormat(n).replace("T","@").replace(".000Z","").replace(/-/g,"/")},n.prototype.getBrowserCompatibleFormat=function(n){return n.replace("@","T").replace(/\//g,"-")},n}();t.FacetSliderQueryController=h},function(n,t,i){"use strict";var u=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},f=i(91),e=i(93),r=i(14),o=function(n){function t(t){var i=n.call(this,t)||this;return i.facet=t,i}return u(t,n),t.prototype.search=function(n,t){var i=this,u;return void 0===t&&(t=n.nbResults),u=e.FacetUtils.getRegexToUseForFacetSearch(this.facet.facetSearch.getValueInInputForFacetSearch(),this.facet.options.facetSearchIgnoreAccents),new Promise(function(n){var t=r.chain(i.facet.getAllValueHierarchy()).toArray().filter(function(n){return null!=i.facet.getValueCaption(n.facetValue).match(u)}).first(i.facet.options.numberOfValuesInFacetSearch).value();n(r.map(t,function(n){return n.facetValue}))})},t.prototype.getAllowedValuesFromSelected=function(){return[]},t}(f.FacetQueryController);t.HierarchicalFacetQueryController=o},function(n,t,i){"use strict";var s=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},r=i(12),h=i(98),e=i(45),u=i(59),c=i(66),l=i(32),a=i(76),v=i(13),o=i(14),f=function(n){function t(i,f,o,s,l){void 0===l&&(l=c.HashUtils);var a=n.call(this,i,t.ID)||this;return a.windoh=f,a.model=o,a.queryController=s,a.hashUtils=l,a.ignoreNextHashChange=!1,a.initialHashChange=!1,a.willUpdateHash=!1,a.windoh=a.windoh||window,r.Assert.exists(a.model),r.Assert.exists(a.queryController),u.$$(a.element).on(e.InitializationEvents.restoreHistoryState,function(){a.logger.trace("Restore history state. Update model");a.updateModelFromHash()}),u.$$(a.element).on(a.model.getEventName(h.Model.eventTypes.all),function(){a.logger.trace("Query model changed. Update hash");a.updateHashFromModel()}),a.hashchange=function(){a.handleHashChange()},a.windoh.addEventListener("hashchange",a.hashchange),u.$$(a.element).on(e.InitializationEvents.nuke,function(){return a.handleNuke()}),a}return s(t,n),t.prototype.setHashValues=function(n){this.logger.trace("Update history hash");var t="#"+this.hashUtils.encodeValues(n);this.ignoreNextHashChange=this.windoh.location.hash!=t;this.logger.trace("ignoreNextHashChange",this.ignoreNextHashChange);this.logger.trace("initialHashChange",this.initialHashChange);this.logger.trace("from",this.windoh.location.hash,"to",t);this.initialHashChange?(this.initialHashChange=!1,this.windoh.location.replace(t),this.logger.trace("History hash modified",t)):this.ignoreNextHashChange&&(this.windoh.location.hash=t,this.logger.trace("History hash created",t))},t.prototype.handleNuke=function(){this.windoh.removeEventListener("hashchange",this.hashchange)},t.prototype.handleHashChange=function(){if(this.logger.trace("History hash changed"),this.ignoreNextHashChange)return this.logger.trace("History hash change ignored"),void(this.ignoreNextHashChange=!1);var n=this.updateModelFromHash();o.difference(n,t.attributesThatDoNotTriggerQuery).length>0&&this.queryController.executeQuery()},t.prototype.updateHashFromModel=function(){var n=this;this.logger.trace("Model -> history hash");this.willUpdateHash||(l.Defer.defer(function(){var t=n.model.getAttributes();n.setHashValues(t);n.logger.debug("Saving state to hash",t);n.willUpdateHash=!1}),this.willUpdateHash=!0)},t.prototype.updateModelFromHash=function(){var i=this,n,t;return this.logger.trace("History hash -> model"),n={},t=[],o.each(this.model.attributes,function(r,u){var f=i.getHashValue(u);n[u]=f;i.model.get(u)!=f&&t.push(u)}),this.initialHashChange=!0,this.model.setMultiple(n),t},t.prototype.getHashValue=function(n){r.Assert.isNonEmptyString(n);var t;try{t=this.hashUtils.getValue(n,this.hashUtils.getHash(this.windoh))}catch(t){this.logger.error("Could not parse parameter "+n+" from URI")}return v.Utils.isUndefined(t)&&(t=this.model.defaultAttributes[n]),t},t.prototype.debugInfo=function(){return{state:this.model.getAttributes()}},t}(a.RootComponent);f.ID="HistoryController";f.attributesThatDoNotTriggerQuery=["quickview"];t.HistoryController=f},function(n,t,i){"use strict";var o=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},f=i(59),s=i(12),u=i(13),h=i(77),r=i(14),e;t.MODEL_EVENTS={PREPROCESS:"preprocess",CHANGE_ONE:"change:",CHANGE:"change",RESET:"reset",ALL:"all"};e=function(n){function t(t,i,r){var f=n.call(this,t,i)||this;return f.eventNameSpace=i,f.defaultAttributes=u.Utils.extendDeep(f.defaultAttributes,r),f.attributes=r,f.logger.debug("Creating model"),f}return o(t,n),t.prototype.set=function(n,t,i){var r={};r[n]=t;this.setMultiple(r,i)},t.prototype.getAttributes=function(){var t=this,n={};return r.each(this.attributes,function(i,f){r.isObject(i)?u.Utils.objectEqual(i,t.defaultAttributes[f])||(n[f]=i):i!=t.defaultAttributes[f]&&(n[f]=i)}),n},t.prototype.setMultiple=function(n,t){var i=this,u=!1;this.preprocessEvent(n);r.each(n,function(n,r){t&&t.customAttribute||i.checkIfAttributeExists(r);n=i.parseToCorrectType(r,n);(t&&!t.validateType||i.typeIsValid(r,n))&&i.checkIfAttributeChanged(r,n)&&(i.attributes[r]=n,u=!0,null!=t&&t.silent||i.attributeHasChangedEvent(r))});!u||null!=t&&t.silent||(this.attributesHasChangedEvent(),this.anyEvent())},t.prototype.setNewDefault=function(n,t,i){i&&i.customAttribute||this.checkIfAttributeExists(n);this.defaultAttributes[n]=t},t.prototype.setDefault=function(n){this.set(n,this.defaultAttributes[n])},t.prototype.get=function(n){return void 0==n?this.attributes:this.attributes[n]},t.prototype.getDefault=function(n){return void 0==n?this.defaultAttributes:this.defaultAttributes[n]},t.prototype.reset=function(){this.setMultiple(this.defaultAttributes);this.modelWasResetEvent()},t.prototype.registerNewAttribute=function(n,t){this.defaultAttributes[n]=t;this.attributes[n]=t},t.prototype.getEventName=function(n){return this.eventNameSpace+":"+n},t.prototype.attributesHasChangedEvent=function(){f.$$(this.element).trigger(this.getEventName(t.eventTypes.change),this.createAttributesChangedArgument())},t.prototype.attributeHasChangedEvent=function(n){f.$$(this.element).trigger(this.getEventName(t.eventTypes.changeOne)+n,this.createAttributeChangedArgument(n))},t.prototype.preprocessEvent=function(n){f.$$(this.element).trigger(this.getEventName(t.eventTypes.preprocess),n)},t.prototype.modelWasResetEvent=function(){f.$$(this.element).trigger(this.getEventName(t.eventTypes.reset),this.createModelChangedArgument())},t.prototype.anyEvent=function(){f.$$(this.element).trigger(this.getEventName(t.eventTypes.all),this.createModelChangedArgument())},t.prototype.createAttributeChangedArgument=function(n){return{attribute:n,value:this.attributes[n]}},t.prototype.createAttributesChangedArgument=function(){return{attributes:this.attributes}},t.prototype.createModelChangedArgument=function(){return{model:this}},t.prototype.checkIfAttributeExists=function(n){s.Assert.check(r.has(this.attributes,n))},t.prototype.typeIsValid=function(n,t){return!(!u.Utils.isNullOrUndefined(this.attributes[n])&&!u.Utils.isUndefined(t))||(r.isNumber(this.attributes[n])?this.validateNumber(n,t):r.isBoolean(this.attributes[n])?this.validateBoolean(n,t):this.validateOther(n,t))},t.prototype.validateNumber=function(n,t){return!(!r.isNumber(t)||isNaN(t))||(this.logger.error("Non-matching type for "+n+". Expected number and got "+t),!1)},t.prototype.validateBoolean=function(n,t){return!(!r.isBoolean(t)&&void 0!==!u.Utils.parseBooleanIfNotUndefined(t))||(this.logger.error("Non matching type for "+n+". Expected boolean and got "+t),!1)},t.prototype.validateOther=function(n,t){return!(!u.Utils.isNullOrUndefined(this.defaultAttributes[n])&&typeof t!=typeof this.defaultAttributes[n])||(this.logger.error("Non-matching type for "+n+". Expected "+typeof this.defaultAttributes[n]+" and got "+t),!1)},t.prototype.parseToCorrectType=function(n,t){return r.isNumber(this.attributes[n])?parseInt(t,10):r.isBoolean(this.attributes[n])?r.isBoolean(t)?t:u.Utils.parseBooleanIfNotUndefined(t):t},t.prototype.checkIfAttributeChanged=function(n,t){var i=this.attributes[n];return r.isNumber(i)||r.isString(i)||r.isBoolean(i)?i!==t:r.isArray(i)?!u.Utils.arrayEqual(i,t):!r.isObject(i)||!u.Utils.objectEqual(i,t)},t.prototype.debugInfo=function(){return null},t}(h.BaseComponent);e.eventTypes={preprocess:"preprocess",changeOne:"change:",change:"change",reset:"reset",all:"all"};t.Model=e},function(n,t,i){"use strict";var o=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},s=i(70),h=i(98),c=i(11),r=i(12),l=i(45),a=i(76),u=i(59),f=i(14),e=function(n){function t(i,f,e,o){var a=n.call(this,i,t.ID)||this;return a.windoh=f,a.model=e,a.queryController=o,a.omit=[],f.localStorage?(a.storage=new s.LocalStorageUtils(t.ID),r.Assert.exists(a.model),r.Assert.exists(a.queryController),u.$$(a.element).on(l.InitializationEvents.restoreHistoryState,function(){return a.updateModelFromLocalStorage()}),u.$$(a.element).on(a.model.getEventName(h.Model.eventTypes.all),function(){return a.updateLocalStorageFromModel()})):new c.Logger(i).info("No local storage available in current browser. LocalStorageHistoryController cannot initialize itself",a),a}return o(t,n),t.prototype.withoutThoseAttribute=function(n){this.omit=n},t.prototype.updateLocalStorageFromModel=function(){var n=f.omit(this.model.getAttributes(),this.omit);this.setStorageValues(n);this.logger.debug("Saving state to localstorage",n)},t.prototype.updateModelFromLocalStorage=function(){var i=this,n={},t=this.storage.load();f.each(this.model.attributes,function(r,u){var f=t?t[u]:void 0;void 0==f&&(f=i.model.defaultAttributes[u]);n[u]=f});this.model.setMultiple(n)},t.prototype.setStorageValues=function(n){this.storage.save(n)},t}(a.RootComponent);e.ID="LocalStorageHistoryController";t.LocalStorageHistoryController=e},function(n,t,i){"use strict";var e=i(98),r,u,f;t.Model=e.Model;r=i(101);t.QueryStateModel=r.QueryStateModel;u=i(105);t.ComponentOptionsModel=u.ComponentOptionsModel;f=i(104);t.ComponentStateModel=f.ComponentStateModel},function(n,t,i){"use strict";function o(n,t){var u,i;if(f.Assert.exists(n),0==t.length||void 0==t[0])return n;if(1==t.length&&e.Utils.isNonEmptyString(t[0]))return n.get(t[0]);if(r.isObject(t[0]))return u=t[0],i=r.extend({customAttribute:!0},t[1]),n.setMultiple(u,i);if(t.length>1){var o=t[0],s=t[1],i=r.extend({customAttribute:!0},t[2]);return f.Assert.isNonEmptyString(o),n.set(o,s,i)}}var s=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},h=i(98),f=i(12),e=i(13),c=i(102),r=i(14),u;t.QUERY_STATE_ATTRIBUTES={Q:"q",FIRST:"first",T:"t",TG:"tg",SORT:"sort",LAYOUT:"layout",HD:"hd",HQ:"hq",QUICKVIEW:"quickview"};u=function(n){function t(i,u){var e=this,f=r.extend({},t.defaultAttributes,u);return n.call(this,i,t.ID,f)||this}return s(t,n),t.getFacetId=function(n,t){return void 0===t&&(t=!0),"f:"+n+(t?"":":not")},t.getFacetOperator=function(n){return"f:"+n+":operator"},t.getFacetLookupValue=function(n){return t.getFacetId(n)+":lookupvalues"},t.prototype.atLeastOneFacetIsActive=function(){return!r.isUndefined(r.find(this.attributes,function(n,t){return 0==t.indexOf("f:")&&e.Utils.isNonEmptyArray(n)}))},t.prototype.set=function(t,i,r){this.validate(t,i);n.prototype.set.call(this,t,i,r)},t.prototype.validate=function(n,i){n==t.attributesEnum.first&&(f.Assert.isNumber(i),f.Assert.isLargerOrEqualsThan(0,i))},t}(h.Model);u.ID="state";u.defaultAttributes={q:"",first:0,t:"",hd:"",hq:"",sort:"",layout:c.defaultLayout,tg:"",quickview:""};u.attributesEnum={q:"q",first:"first",t:"t",sort:"sort",layout:"layout",hd:"hd",hq:"hq",tg:"tg",quickview:"quickview"};t.QueryStateModel=u;t.setState=o},function(n,t,i){"use strict";var v=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},y=i(103),e=i(107),s=i(48),p=i(111),h=i(45),c=i(12),w=i(49),b=i(50),u=i(59),o=i(101),k=i(98),l=i(112),a=i(69),d=i(126),g=i(13),r=i(14),f;t.defaultLayout="list";f=function(n){function t(i,r,f){var c=n.call(this,i,t.ID,f)||this;return c.element=i,c.options=r,c.options=e.ComponentOptions.initComponentOptions(i,t,r),c.currentActiveLayouts={},c.bind.onQueryState(k.MODEL_EVENTS.CHANGE_ONE,o.QUERY_STATE_ATTRIBUTES.LAYOUT,c.handleQueryStateChanged.bind(c)),c.bind.onRootElement(s.QueryEvents.querySuccess,function(n){return c.handleQuerySuccess(n)}),c.bind.onRootElement(s.QueryEvents.queryError,function(n){return c.handleQueryError(n)}),c.resultLayoutSection=u.$$(c.element).closest(".coveo-result-layout-section"),c.bind.oneRootElement(h.InitializationEvents.afterComponentsInitialization,function(){return c.populate()}),c.bind.oneRootElement(h.InitializationEvents.afterInitialization,function(){return c.handleQueryStateChanged()}),d.ResponsiveResultLayout.init(c.root,c,c.options),c}return v(t,n),t.prototype.changeLayout=function(n){if(c.Assert.check(this.isLayoutDisplayedByButton(n),"Layout not available or invalid"),n!==this.currentLayout||""===this.getModelValue()){this.setModelValue(n);var t=this.queryController.getLastResults();this.setLayout(n,t);t?this.usageAnalytics.logCustomEvent(l.analyticsActionCauseList.resultsLayoutChange,{resultsLayoutChangeTo:n},this.element):(this.usageAnalytics.logSearchEvent(l.analyticsActionCauseList.resultsLayoutChange,{resultsLayoutChangeTo:n}),this.queryController.executeQuery())}},t.prototype.getCurrentLayout=function(){return this.currentLayout},t.prototype.disableLayouts=function(n){var u=this,t,i;g.Utils.isNonEmptyArray(n)&&(r.each(n,function(n){u.disableLayout(n)}),t=r.difference(r.keys(this.currentActiveLayouts),n),t&&t[0]?this.changeLayout(t[0]):(this.logger.error("Cannot disable the last valid layout ... Re-enabling the first one possible"),i=r.keys(this.currentActiveLayouts)[0],this.enableLayout(i),this.setLayout(i)))},t.prototype.enableLayouts=function(n){var t=this;r.each(n,function(n){t.enableLayout(n)})},t.prototype.disableLayout=function(n){this.isLayoutDisplayedByButton(n)&&this.hideButton(n)},t.prototype.enableLayout=function(n){this.isLayoutDisplayedByButton(n)&&(this.showButton(n),this.updateSelectorAppearance())},t.prototype.hideButton=function(n){if(this.isLayoutDisplayedByButton(n)){var t=this.currentActiveLayouts[n].button;u.$$(t.el).hide();t.visible=!1;this.updateSelectorAppearance()}},t.prototype.showButton=function(n){if(this.isLayoutDisplayedByButton(n)){var t=this.currentActiveLayouts[n].button;u.$$(t.el).show();t.visible=!0}},t.prototype.setLayout=function(n,t){this.isLayoutDisplayedByButton(n);this.currentLayout&&u.$$(this.currentActiveLayouts[this.currentLayout].button.el).removeClass("coveo-selected");u.$$(this.currentActiveLayouts[n].button.el).addClass("coveo-selected");this.currentLayout=n;u.$$(this.element).trigger(w.ResultListEvents.changeLayout,{layout:n,results:t})},t.prototype.handleQuerySuccess=function(n){0!==n.results.results.length&&this.shouldShowSelector()?this.show():this.hide()},t.prototype.handleQueryStateChanged=function(){var t=this.getModelValue(),n=r.find(r.keys(this.currentActiveLayouts),function(n){return n===t});void 0!==n?this.setLayout(n):this.setLayout(r.keys(this.currentActiveLayouts)[0])},t.prototype.handleQueryError=function(){this.hide()},t.prototype.updateSelectorAppearance=function(){this.shouldShowSelector()?this.show():this.hide()},t.prototype.populate=function(){var i=this,n={layouts:[]};u.$$(this.root).trigger(b.ResultLayoutEvents.populateResultLayout,n);r.each(n.layouts,function(n){return c.Assert.check(r.contains(t.validLayouts,n),"Invalid layout")});r.isEmpty(n.layouts)||(r.each(n.layouts,function(n){return i.addButton(n)}),this.shouldShowSelector()||this.hide())},t.prototype.addButton=function(n){var r=this,t=u.$$("span",{className:"coveo-result-layout-selector",tabindex:0},n),i;t.prepend(u.$$("span",{className:"coveo-icon coveo-sprites-"+n+"-layout"}).el);n===this.currentLayout&&t.addClass("coveo-selected");i=function(){return r.changeLayout(n)};t.on("click",i);t.on("keyup",a.KeyboardUtils.keypressAction(a.KEYBOARD.ENTER,i));u.$$(this.element).append(t.el);this.currentActiveLayouts[n]={button:{visible:!0,el:t.el},enabled:!0}},t.prototype.hide=function(){var n=this.resultLayoutSection||this.element;u.$$(n).addClass("coveo-result-layout-hidden")},t.prototype.show=function(){var n=this.resultLayoutSection||this.element;u.$$(n).removeClass("coveo-result-layout-hidden")},t.prototype.getModelValue=function(){return this.queryStateModel.get(o.QueryStateModel.attributesEnum.layout)},t.prototype.setModelValue=function(n){this.queryStateModel.set(o.QueryStateModel.attributesEnum.layout,n)},t.prototype.shouldShowSelector=function(){return r.keys(this.currentActiveLayouts).length>1&&r.filter(this.currentActiveLayouts,function(n){return n.button.visible}).length>1},t.prototype.isLayoutDisplayedByButton=function(n){return r.contains(r.keys(this.currentActiveLayouts),n)},t}(y.Component);f.ID="ResultLayout";f.validLayouts=["list","card","table"];f.options={mobileLayouts:e.ComponentOptions.buildListOption({defaultValue:["card","table"]}),tabletLayouts:e.ComponentOptions.buildListOption({defaultValue:["list","card","table"]}),desktopLayouts:e.ComponentOptions.buildListOption({defaultValue:["list","card","table"]})};t.ResultLayout=f;p.Initialization.registerAutoCreateComponent(f)},function(n,t,i){"use strict";var c=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},u=i(12),l=i(13),f=i(18),r=i(59),a=i(101),v=i(104),y=i(105),p=i(75),s=i(106),w=i(119),h=i(77),b=i(43),e=i(14),k=function(n){function t(t,i,r){void 0===r&&(r={});var u=n.call(this,t,i)||this;return u.element=t,u.type=i,u.bind=new o(u),u.root=r.root||u.resolveRoot(),u.queryStateModel=r.queryStateModel||u.resolveQueryStateModel(),u.componentStateModel=r.componentStateModel||u.resolveComponentStateModel(),u.queryController=r.queryController||u.resolveQueryController(),u.searchInterface=r.searchInterface||u.resolveSearchInterface(),u.usageAnalytics=r.usageAnalytics||u.resolveUA(),u.componentOptionsModel=r.componentOptionsModel||u.resolveComponentOptionsModel(),u.ensureDom=e.once(function(){return u.createDom()}),null!=u.searchInterface&&u.searchInterface.attachComponent(i,u),u.initDebugInfo(),u}return c(t,n),t.prototype.getBindings=function(){return{root:this.root,queryStateModel:this.queryStateModel,queryController:this.queryController,searchInterface:this.searchInterface,componentStateModel:this.componentStateModel,componentOptionsModel:this.componentOptionsModel,usageAnalytics:this.usageAnalytics}},t.prototype.createDom=function(){},t.prototype.resolveSearchInterface=function(){return t.resolveBinding(this.element,s.SearchInterface)},t.prototype.resolveRoot=function(){var n=t.resolveBinding(this.element,s.SearchInterface);if(n)return n.element},t.prototype.resolveQueryController=function(){return t.resolveBinding(this.element,p.QueryController)},t.prototype.resolveComponentStateModel=function(){return t.resolveBinding(this.element,v.ComponentStateModel)},t.prototype.resolveQueryStateModel=function(){return t.resolveBinding(this.element,a.QueryStateModel)},t.prototype.resolveComponentOptionsModel=function(){return t.resolveBinding(this.element,y.ComponentOptionsModel)},t.prototype.resolveUA=function(){var n=this.resolveSearchInterface();return n&&n.usageAnalytics?n.usageAnalytics:new w.NoopAnalyticsClient},t.prototype.resolveResult=function(){return t.getResult(this.element)},t.prototype.initDebugInfo=function(){var n=this;r.$$(this.element).on("dblclick",function(t){if(t.altKey){var i=n.debugInfo();null!=i&&r.$$(n.root).trigger(b.DebugEvents.showDebugPanel,n.debugInfo())}})},t.get=function(n,i,r){if(u.Assert.exists(n),e.isString(i))return n[t.computeCssClassNameForType(i)];if(l.Utils.exists(i))return u.Assert.exists(i.ID),n[t.computeCssClassNameForType(i.ID)];var f=h.BaseComponent.getBoundComponentsForElement(n);return r||u.Assert.check(f.length<=1,"More than one component is bound to this element. You need to specify the component type."),f[0]},t.getResult=function(n,t){void 0===t&&(t=!1);var i=r.$$(n).closest(".CoveoResult");return u.Assert.check(t||void 0!=i),i.CoveoResult},t.bindResultToElement=function(n,t){u.Assert.exists(n);u.Assert.exists(t);r.$$(n).addClass("CoveoResult");n.CoveoResult=t;var i=f.JQueryUtils.getJQuery();i&&i(n).data(t)},t.resolveBinding=function(n,i){var f,e,o;return u.Assert.exists(n),u.Assert.exists(i),u.Assert.exists(i.ID),r.$$(n).is("."+t.computeCssClassNameForType(i.ID))?f=n:(e=r.$$(n).findClass(t.computeCssClassNameForType(i.ID)),e&&0!=e.length?f=e:(o=r.$$(n).closest(t.computeCssClassNameForType(i.ID)),o&&(f=o))),f?f[t.computeCssClassNameForType(i.ID)]:void 0},t.pointElementsToDummyForm=function(n){var t=r.$$(n).is("input")?[n]:[];t=t.concat(r.$$(n).findAll("input"));e.each(e.compact(t),function(n){n.setAttribute("form","coveo-dummy-form")})},t}(h.BaseComponent),o;t.Component=k;o=function(){function n(n){this.owner=n;u.Assert.exists(n)}return n.prototype.on=function(n,t,i){var u,e;if(f.JQueryUtils.getJQuery()&&f.JQueryUtils.isInstanceOfJQuery(n)){u=n;u.on(t,this.wrapToCallIfEnabled(i))}else{e=n;r.$$(e).on(t,this.wrapToCallIfEnabled(i))}},n.prototype.one=function(n,t,i){var u,f;if(n instanceof HTMLElement){u=n;r.$$(u).one(t,this.wrapToCallIfEnabled(i))}else{f=n;f.one(t,this.wrapToCallIfEnabled(i))}},n.prototype.onRootElement=function(n,t){this.on(this.owner.root,n,t)},n.prototype.oneRootElement=function(n,t){this.one(this.owner.root,n,t)},n.prototype.onQueryState=function(n,t,i){this.onRootElement(this.getQueryStateEventName(n,t),i)},n.prototype.oneQueryState=function(n,t,i){this.oneRootElement(this.getQueryStateEventName(n,t),i)},n.prototype.trigger=function(n,t,i){this.wrapToCallIfEnabled(function(){var u,f;n instanceof HTMLElement?(u=n,r.$$(u).trigger(t,i)):(f=n,f.trigger(t,i))})(i)},n.prototype.wrapToCallIfEnabled=function(n){var t=this;return function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];if(!t.owner.disabled)return i&&i[0]instanceof CustomEvent?i[0].detail&&(i=[i[0].detail]):i&&f.JQueryUtils.isInstanceOfJqueryEvent(i[0])&&(i=void 0!=i[1]?[i[1]]:[]),n.apply(t.owner,i)}},n.prototype.getQueryStateEventName=function(n,t){return n&&t?this.owner.queryStateModel.getEventName(n+t):this.owner.queryStateModel.getEventName(n)},n}();t.ComponentEvents=o},function(n,t,i){"use strict";var u=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},f=i(98),r=function(n){function t(i){return n.call(this,i,t.ID,{})||this}return u(t,n),t.prototype.registerComponent=function(n,t){var i=this.attributes[n];void 0==i?this.attributes[n]=[t]:this.attributes[n].push(t)},t}(f.Model);r.ID="ComponentState";t.ComponentStateModel=r},function(n,t,i){"use strict";var u=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},f=i(98),e=i(14),r=function(n){function t(i,r){var f=this,u=e.extend({},t.defaultAttributes,r);return n.call(this,i,t.ID,u)||this}return u(t,n),t}(f.Model);r.ID="ComponentOptions";r.defaultAttributes={resultLink:void 0,searchHub:void 0};r.attributesEnum={resultLink:"resultLink",searchHub:"searchHub"};t.ComponentOptionsModel=r},function(n,t,i){"use strict";var v=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},a=i(9),u=i(107),k=i(16),r=i(59),d=i(60),y=i(12),f=i(101),g=i(104),nt=i(105),tt=i(75),p=i(98),h=i(48),it=i(54),rt=i(97),ut=i(99),ft=i(45),et=i(119),o=i(13),ot=i(76),s=i(77),st=i(120),ht=i(66),w=i(121),ct=i(122),lt=i(125),b=i(112),at=i(17),e=i(14),c=function(n){function t(i,e,o,s){var c,l,a;return void 0===s&&(s=window),c=n.call(this,i,t.ID)||this,c.element=i,c.options=e,c.analyticsOptions=o,c.isNewDesignAttribute=!1,k.DeviceUtils.isMobileDevice()&&r.$$(document.body).addClass("coveo-mobile-device"),w.attach&&w.attach(i),c.options=u.ComponentOptions.initComponentOptions(i,t,e),y.Assert.exists(i),y.Assert.exists(c.options),c.options.hideUntilFirstQuery&&c.showAndHideFirstQueryAnimation(),c.root=i,c.queryStateModel=new f.QueryStateModel(i),c.componentStateModel=new g.ComponentStateModel(i),c.componentOptionsModel=new nt.ComponentOptionsModel(i),c.usageAnalytics=c.initializeAnalytics(),c.queryController=new tt.QueryController(i,c.options,c.usageAnalytics,c),new lt.SentryLogger(c.queryController),l=c.queryStateModel.getEventName(p.Model.eventTypes.preprocess),r.$$(c.element).on(l,function(n,t){return c.handlePreprocessQueryStateModel(t)}),r.$$(c.element).on(h.QueryEvents.buildingQuery,function(n,t){return c.handleBuildingQuery(t)}),r.$$(c.element).on(h.QueryEvents.querySuccess,function(n,t){return c.handleQuerySuccess(t)}),r.$$(c.element).on(h.QueryEvents.queryError,function(n,t){return c.handleQueryError(t)}),c.options.enableHistory?c.options.useLocalStorageForHistory?new ut.LocalStorageHistoryController(i,s,c.queryStateModel,c.queryController):new rt.HistoryController(i,s,c.queryStateModel,c.queryController):r.$$(c.element).on(ft.InitializationEvents.restoreHistoryState,function(){return c.queryStateModel.setMultiple(c.queryStateModel.defaultAttributes)}),a=c.queryStateModel.getEventName(p.Model.eventTypes.changeOne+f.QueryStateModel.attributesEnum.quickview),r.$$(c.element).on(a,function(n,t){return c.handleQuickviewChanged(t)}),c.element.style.display=i.style.display||"block",c.setupDebugInfo(),c.isNewDesignAttribute="new"==c.root.getAttribute("data-design"),c.responsiveComponents=new at.ResponsiveComponents,c}return v(t,n),t.prototype.showWaitAnimation=function(){r.$$(this.options.firstLoadingAnimation).detach();r.$$(this.element).addClass("coveo-waiting-for-first-query");this.element.appendChild(this.options.firstLoadingAnimation)},t.prototype.hideWaitAnimation=function(){r.$$(this.options.firstLoadingAnimation).detach();r.$$(this.element).removeClass("coveo-waiting-for-first-query")},t.prototype.attachComponent=function(n,t){this.getComponents(n).push(t)},t.prototype.detachComponent=function(n,t){var i=this.getComponents(n),r=e.indexOf(i,t);r>-1&&i.splice(r,1)},t.prototype.getBindings=function(){return{root:this.root,queryStateModel:this.queryStateModel,queryController:this.queryController,searchInterface:this,componentStateModel:this.componentStateModel,componentOptionsModel:this.componentOptionsModel,usageAnalytics:this.usageAnalytics}},t.prototype.getComponents=function(n){return null==this.attachedComponents&&(this.attachedComponents={}),n in this.attachedComponents||(this.attachedComponents[n]=[]),this.attachedComponents[n]},t.prototype.isNewDesign=function(){return this.isNewDesignAttribute},t.prototype.initializeAnalytics=function(){var n=s.BaseComponent.getComponentRef("Analytics");return n?n.create(this.element,this.analyticsOptions):new et.NoopAnalyticsClient},t.prototype.setupDebugInfo=function(){var n=this;this.options.enableDebugInfo&&setTimeout(function(){return new st.Debug(n.element,n.queryController)})},t.prototype.showAndHideFirstQueryAnimation=function(){var n=this;this.showWaitAnimation();r.$$(this.element).one(h.QueryEvents.querySuccess,function(){e.defer(function(){return n.hideWaitAnimation()})});r.$$(this.element).one(h.QueryEvents.queryError,function(){e.defer(function(){return n.hideWaitAnimation()})})},t.prototype.handlePreprocessQueryStateModel=function(n){var r=this.queryStateModel.get(f.QueryStateModel.attributesEnum.tg),u=this.queryStateModel.get(f.QueryStateModel.attributesEnum.t),t=r,i=u;void 0!==n.tg&&(n.tg=this.getTabGroupId(n.tg),t!=n.tg&&(n.t=n.t||f.QueryStateModel.defaultAttributes.t,n.sort=n.sort||f.QueryStateModel.defaultAttributes.sort,t=n.tg));void 0!==n.t&&(n.t=this.getTabId(t,n.t),i!=n.t&&(n.sort=n.sort||f.QueryStateModel.defaultAttributes.sort,i=n.t));void 0!==n.sort&&(n.sort=this.getSort(i,n.sort));void 0!==n.quickview&&(n.quickview=this.getQuickview(n.quickview))},t.prototype.getTabGroupId=function(n){var i=s.BaseComponent.getComponentRef("TabGroup"),t;if(i){if(t=this.getComponents(i.ID),n!=f.QueryStateModel.defaultAttributes.tg&&e.any(t,function(t){return!t.disabled&&n==t.options.id}))return n;if(t.length>0)return t[0].options.id}return f.QueryStateModel.defaultAttributes.tg},t.prototype.getTabId=function(n,t){var o=s.BaseComponent.getComponentRef("Tab"),h=s.BaseComponent.getComponentRef("TabGroup"),i,c,r,u;if(o){if(i=this.getComponents(o.ID),h&&n!=f.QueryStateModel.defaultAttributes.tg)return(c=this.getComponents(h.ID),r=e.find(c,function(t){return n==t.options.id}),t!=f.QueryStateModel.defaultAttributes.t&&e.any(i,function(n){return t==n.options.id&&r.isElementIncludedInTabGroup(n.element)}))?t:(u=e.find(i,function(n){return r.isElementIncludedInTabGroup(n.element)}),null!=u?u.options.id:f.QueryStateModel.defaultAttributes.t);if(t!=f.QueryStateModel.defaultAttributes.t&&e.any(i,function(n){return t==n.options.id}))return t;if(i.length>0)return i[0].options.id}return f.QueryStateModel.defaultAttributes.t},t.prototype.getSort=function(n,t){var h=s.BaseComponent.getComponentRef("Sort"),i,r,o;if(h){if(i=this.getComponents(h.ID),r=s.BaseComponent.getComponentRef("Tab"),r&&n!=f.QueryStateModel.defaultAttributes.t){var l=this.getComponents(r.ID),u=e.find(l,function(t){return n==t.options.id}),c=u.options.sort;return t!=f.QueryStateModel.defaultAttributes.sort&&e.any(i,function(n){return u.isElementIncludedInTab(n.element)&&n.match(t)})?t:null!=c?c.toString():(o=e.find(i,function(n){return u.isElementIncludedInTab(n.element)}),null!=o?o.options.sortCriteria[0].toString():f.QueryStateModel.defaultAttributes.sort)}if(t!=f.QueryStateModel.defaultAttributes.sort&&e.any(i,function(n){return n.match(t)}))return t;if(i.length>0)return i[0].options.sortCriteria[0].toString()}return f.QueryStateModel.defaultAttributes.sort},t.prototype.getQuickview=function(n){var t=s.BaseComponent.getComponentRef("Quickview"),i;return t&&(i=this.getComponents(t.ID),e.any(i,function(t){return t.getHashId()==n}))?n:f.QueryStateModel.defaultAttributes.quickview},t.prototype.handleQuickviewChanged=function(n){var r=s.BaseComponent.getComponentRef("Quickview"),i,t;r&&(i=this.getComponents(r.ID),""!=n.value?(t=e.partition(i,function(t){return t.getHashId()==n.value}),0!=t[0].length&&(e.first(t[0]).open(),e.forEach(e.tail(t[0]),function(n){return n.close()})),e.forEach(t[1],function(n){return n.close()})):e.forEach(i,function(n){n.close()}))},t.prototype.handleBuildingQuery=function(n){this.options.enableDuplicateFiltering&&(n.queryBuilder.enableDuplicateFiltering=!0);o.Utils.isNullOrUndefined(this.options.pipeline)||(n.queryBuilder.pipeline=this.options.pipeline);o.Utils.isNullOrUndefined(this.options.maximumAge)||(n.queryBuilder.maximumAge=this.options.maximumAge);o.Utils.isNullOrUndefined(this.options.resultsPerPage)||(n.queryBuilder.numberOfResults=this.options.resultsPerPage);o.Utils.isNullOrUndefined(this.options.excerptLength)||(n.queryBuilder.excerptLength=this.options.excerptLength);o.Utils.isNonEmptyString(this.options.expression)&&n.queryBuilder.advancedExpression.add(this.options.expression);o.Utils.isNonEmptyString(this.options.filterField)&&(n.queryBuilder.filterField=this.options.filterField);o.Utils.isNonEmptyString(this.options.timezone)&&(n.queryBuilder.timezone=this.options.timezone);n.queryBuilder.enableCollaborativeRating=this.options.enableCollaborativeRating;n.queryBuilder.enableDuplicateFiltering=this.options.enableDuplicateFiltering},t.prototype.handleQuerySuccess=function(n){var i=0==n.results.results.length,t;this.toggleSectionState("coveo-no-results",i);t=r.$$(this.element).find(".coveo-results-header");t&&r.$$(t).removeClass("coveo-query-error")},t.prototype.handleQueryError=function(){this.toggleSectionState("coveo-no-results");var n=r.$$(this.element).find(".coveo-results-header");n&&r.$$(n).addClass("coveo-query-error")},t.prototype.toggleSectionState=function(n,t){var s=this;void 0===t&&(t=!0);var u=r.$$(this.element).find(".coveo-facet-column"),f=r.$$(this.element).find(".coveo-results-column"),o=r.$$(this.element).find(".coveo-results-header"),i=r.$$(this.element).findAll(".coveo-facet-search-results");u&&r.$$(u).toggleClass(n,t&&!this.queryStateModel.atLeastOneFacetIsActive());f&&r.$$(f).toggleClass(n,t&&!this.queryStateModel.atLeastOneFacetIsActive());o&&r.$$(o).toggleClass(n,t&&!this.queryStateModel.atLeastOneFacetIsActive());i&&i.length>0&&e.each(i,function(i){r.$$(i).toggleClass(n,t&&!s.queryStateModel.atLeastOneFacetIsActive())})},t}(ot.RootComponent),l;c.ID="SearchInterface";c.options={enableHistory:u.ComponentOptions.buildBooleanOption({defaultValue:!1}),enableAutomaticResponsiveMode:u.ComponentOptions.buildBooleanOption({defaultValue:!0}),useLocalStorageForHistory:u.ComponentOptions.buildBooleanOption({defaultValue:!1}),resultsPerPage:u.ComponentOptions.buildNumberOption({defaultValue:10,min:0}),excerptLength:u.ComponentOptions.buildNumberOption({defaultValue:200,min:0}),expression:u.ComponentOptions.buildStringOption({defaultValue:""}),filterField:u.ComponentOptions.buildFieldOption({defaultValue:""}),hideUntilFirstQuery:u.ComponentOptions.buildBooleanOption({defaultValue:!0}),firstLoadingAnimation:u.ComponentOptions.buildChildHtmlElementOption({childSelector:".coveo-first-loading-animation",defaultFunction:function(){return d.DomUtils.getBasicLoadingAnimation()}}),autoTriggerQuery:u.ComponentOptions.buildBooleanOption({defaultValue:!0}),endpoint:u.ComponentOptions.buildCustomOption(function(n){return null!=n&&n in a.SearchEndpoint.endpoints?a.SearchEndpoint.endpoints[n]:null},{defaultFunction:function(){return a.SearchEndpoint.endpoints.default}}),timezone:u.ComponentOptions.buildStringOption({defaultFunction:function(){return ct.determine().name()}}),enableDebugInfo:u.ComponentOptions.buildBooleanOption({defaultValue:!0}),enableCollaborativeRating:u.ComponentOptions.buildBooleanOption({defaultValue:!1}),enableDuplicateFiltering:u.ComponentOptions.buildBooleanOption({defaultValue:!1}),pipeline:u.ComponentOptions.buildStringOption(),maximumAge:u.ComponentOptions.buildNumberOption(),searchPageUri:u.ComponentOptions.buildStringOption()};c.SMALL_INTERFACE_CLASS_NAME="coveo-small-search-interface";t.SearchInterface=c;l=function(n){function t(i,f,e,o){void 0===o&&(o=window);var s=n.call(this,i,u.ComponentOptions.initComponentOptions(i,t,f),e,o)||this;return s.element=i,s.options=f,s.analyticsOptions=e,s._window=o,r.$$(s.root).on(h.QueryEvents.newQuery,function(n,t){return s.handleRedirect(n,t)}),s}return v(t,n),t.prototype.handleRedirect=function(n,t){var i={searchPageUri:this.options.searchPageUri,cancel:!1};r.$$(this.root).trigger(it.StandaloneSearchInterfaceEvents.beforeRedirect,i);i.cancel||(t.cancel=!0,this.searchboxIsEmpty()&&!this.options.redirectIfEmpty||this.redirectToSearchPage(i.searchPageUri))},t.prototype.redirectToSearchPage=function(n){var f=this,r=this.queryStateModel.getAttributes(),i=this.usageAnalytics.getCurrentEventCause(),u,t;null!=i&&(i==b.analyticsActionCauseList.searchboxSubmit.name&&(i=b.analyticsActionCauseList.searchFromLink.name),r.firstQueryCause=i);u=this.usageAnalytics.getCurrentEventMeta();null!=u&&(r.firstQueryMeta=u);t=document.createElement("a");t.href=n;setTimeout(function(){f._window.location.href=t.protocol+"//"+t.host+t.pathname+t.search+(t.hash?t.hash+"&":"#")+ht.HashUtils.encodeValues(r)},0)},t.prototype.searchboxIsEmpty=function(){return o.Utils.isEmptyString(this.queryStateModel.get(f.QueryStateModel.attributesEnum.q))},t}(c);l.ID="StandaloneSearchInterface";l.options={redirectIfEmpty:u.ComponentOptions.buildBooleanOption({defaultValue:!0})};t.StandaloneSearchInterface=l},function(n,t,i){"use strict";var r,e=i(12),l=i(11),o=i(59),a=i(108),v=i(118),s=i(114),h=i(117),u=i(13),y=i(35),f=i(14);!function(n){n[n.BOOLEAN=0]="BOOLEAN";n[n.NUMBER=1]="NUMBER";n[n.STRING=2]="STRING";n[n.LOCALIZED_STRING=3]="LOCALIZED_STRING";n[n.LIST=4]="LIST";n[n.SELECTOR=5]="SELECTOR";n[n.CHILD_HTML_ELEMENT=6]="CHILD_HTML_ELEMENT";n[n.TEMPLATE=7]="TEMPLATE";n[n.FIELD=8]="FIELD";n[n.FIELDS=9]="FIELDS";n[n.ICON=10]="ICON";n[n.COLOR=11]="COLOR";n[n.OBJECT=12]="OBJECT";n[n.QUERY=13]="QUERY";n[n.HELPER=14]="HELPER";n[n.LONG_STRING=15]="LONG_STRING";n[n.JSON=16]="JSON";n[n.JAVASCRIPT=17]="JAVASCRIPT";n[n.NONE=18]="NONE"}(r=t.ComponentOptionsType||(t.ComponentOptionsType={}));var p=/([A-Z])|\W+(\w)/g,w=/\s*,\s*/,c=/([a-zA-Z\-]+)\s*:\s*(([^,]|,\s*(?!([a-zA-Z\-]+)\s*:))+)/g,b=function(){function n(){}return n.buildBooleanOption=function(t){return n.buildOption(r.BOOLEAN,n.loadBooleanOption,t)},n.buildNumberOption=function(t){return n.buildOption(r.NUMBER,n.loadNumberOption,t)},n.buildStringOption=function(t){return n.buildOption(r.STRING,n.loadStringOption,t)},n.buildIconOption=function(t){return n.buildOption(r.ICON,n.loadStringOption,t)},n.buildColorOption=function(t){return n.buildOption(r.COLOR,n.loadStringOption,t)},n.buildHelperOption=function(t){return n.buildOption(r.HELPER,n.loadStringOption,t)},n.buildJsonOption=function(t){return n.buildOption(r.JSON,n.loadStringOption,t)},n.buildLocalizedStringOption=function(t){return n.buildOption(r.LOCALIZED_STRING,n.loadLocalizedStringOption,t)},n.buildFieldOption=function(t){return n.buildOption(r.FIELD,n.loadFieldOption,t)},n.buildFieldsOption=function(t){return n.buildOption(r.FIELDS,n.loadFieldsOption,t)},n.buildListOption=function(t){return n.buildOption(r.LIST,n.loadListOption,t)},n.buildSelectorOption=function(t){return n.buildOption(r.SELECTOR,n.loadSelectorOption,t)},n.buildChildHtmlElementOption=function(t){return n.buildOption(r.CHILD_HTML_ELEMENT,n.loadChildHtmlElementOption,t)},n.buildTemplateOption=function(t){return n.buildOption(r.TEMPLATE,n.loadTemplateOption,t)},n.buildCustomOption=function(t,i){var f=function(i,r,f){var e=n.loadStringOption(i,r,f);if(!u.Utils.isNullOrEmptyString(e))return t(e)};return n.buildOption(r.STRING,f,i)},n.buildCustomListOption=function(t,i){var u=function(i,r,u){var f=n.loadListOption(i,r,u);return t(f)};return n.buildOption(r.LIST,u,i)},n.buildObjectOption=function(t){var i=function(i,r){for(var e,o,s=f.keys(t.subOptions),c={},h={},u=0;u<s.length;u++)e=s[u],o=n.mergeCamelCase(r,e),c[o]=t.subOptions[e];n.initOptions(i,c,h);for(var l={},a=!1,u=0;u<s.length;u++)e=s[u],o=n.mergeCamelCase(r,e),null!=h[o]&&(l[e]=h[o],a=!0);return a?l:null};return n.buildOption(r.OBJECT,i,t)},n.buildOption=function(n,t,i){void 0===i&&(i={});var r=i;return r.type=n,r.load=t,r},n.attrNameFromName=function(t,i){return i&&i.attrName?i.attrName:t?"data-"+n.camelCaseToHyphen(t):t},n.camelCaseToHyphen=function(n){return n.replace(p,"-$1$2").toLowerCase()},n.mergeCamelCase=function(n,t){return n+t.substr(0,1).toUpperCase()+t.substr(1)},n.initComponentOptions=function(t,i,r){return n.initOptions(t,i.options,r,i.ID)},n.initOptions=function(n,t,i,e){var p=new l.Logger(this),a,b,c,v,o;for(null==i&&(i={}),a=f.keys(t),c=0;c<a.length;c++){var h=a[c],o=t[h],s=void 0,w=o.load;if(null!=w&&(s=w(n,h,o),s&&o.deprecated&&p.warn(e+"."+h+" : "+o.deprecated)),u.Utils.isNullOrUndefined(s)&&void 0!=i[h]&&(s=i[h]),null==s&&void 0==i[h]&&(null!=o.defaultValue?s=o.type==r.LIST?f.extend([],o.defaultValue):o.type==r.OBJECT?f.extend({},o.defaultValue):o.defaultValue:null!=o.defaultFunction&&(s=o.defaultFunction(n))),null!=s){if(o.validator&&(b=o.validator(s),!b)){p.warn(e+" ."+h+" has invalid value :  "+s);o.required&&p.error(e+" ."+h+" is required and has an invalid value : "+s+". ***THIS COMPONENT WILL NOT WORK***");delete i[h];continue}i[h]=o.type==r.OBJECT&&null!=i[h]?f.extend(i[h],s):o.type==r.LOCALIZED_STRING?y.l(s):s}}for(c=0;c<a.length;c++)v=a[c],o=t[v],o.postProcessing&&(i[v]=o.postProcessing(i[v],i));return i},n.loadStringOption=function(t,i,r){return t.getAttribute(n.attrNameFromName(i,r))||n.getAttributeFromAlias(t,r)},n.loadFieldOption=function(t,i,r){var f=n.loadStringOption(t,i,r);return e.Assert.check(!u.Utils.isNonEmptyString(f)||u.Utils.isCoveoField(f),f+" is not a valid field"),f},n.loadFieldsOption=function(t,i,r){var s=n.loadStringOption(t,i,r),o;return null==s?null:(o=s.split(w),f.each(o,function(n){e.Assert.check(u.Utils.isCoveoField(n),n+" is not a valid field")}),o)},n.loadLocalizedStringOption=function(t,i,r){var u=n.loadStringOption(t,i,r),h=String.locale||String.defaultLocale,e,o,a;if(null!=h&&null!=u){var l=h.toLowerCase().split("-"),v=f.map(l,function(n,t){return l.slice(0,t+1).join("-")}),s=u.match(c);if(null!=s)for(e=0;e<s.length;e++)if(o=c.exec(s[e]),null!=o&&(a=o[1].toLowerCase(),f.contains(v,a)))return o[2].replace(/^\s+|\s+$/g,"");return null!=u?u.toLocaleString():null}return u},n.loadNumberOption=function(t,i,r){var e=n.loadStringOption(t,i,r),f;return null==e?null:(f=r.float===!0?u.Utils.parseFloatIfNotUndefined(e):u.Utils.parseIntIfNotUndefined(e),null!=r.min&&r.min>f&&(f=r.min),null!=r.max&&r.max<f&&(f=r.max),f)},n.loadBooleanOption=function(t,i,r){return u.Utils.parseBooleanIfNotUndefined(n.loadStringOption(t,i,r))},n.loadListOption=function(t,i,r){var e=r.separator||/\s*,\s*/,f=n.loadStringOption(t,i,r);return u.Utils.isNonEmptyString(f)?f.split(e):null},n.loadEnumOption=function(t,i,r,u){var f=n.loadStringOption(t,i,r);return null!=f?u[f]:null},n.loadSelectorOption=function(t,i,r,f){void 0===f&&(f=document);var e=n.loadStringOption(t,i,r);return u.Utils.isNonEmptyString(e)?f.querySelector(e):null},n.loadChildHtmlElementOption=function(t,i,r,u){var f,s,o,e;return void 0===u&&(u=document),s=r.selectorAttr||n.attrNameFromName(i,r)+"-selector",o=t.getAttribute(s)||n.getAttributeFromAlias(t,r),(null!=o&&(f=u.body.querySelector(o)),null==f)&&(e=r.childSelector,null==e&&(e="."+i),f=n.loadChildHtmlElementFromSelector(t,e)),f},n.loadChildHtmlElementFromSelector=function(n,t){return e.Assert.isNonEmptyString(t),o.$$(n).is(t)?n:o.$$(n).find(t)},n.loadChildrenHtmlElementFromSelector=function(n,t){return e.Assert.isNonEmptyString(t),o.$$(n).findAll(t)},n.loadTemplateOption=function(t,i,r,u){var f,c,o,s,l,h,e;return void 0===u&&(u=document),c=r.selectorAttr||n.attrNameFromName(i,r)+"-selector",o=t.getAttribute(c)||n.getAttributeFromAlias(t,r),null!=o&&(s=u.querySelector(o),null!=s&&(f=n.createResultTemplateFromElement(s))),null==f&&(l=r.idAttr||n.attrNameFromName(i,r)+"-id",h=t.getAttribute(l)||n.getAttributeFromAlias(t,r),null!=h&&(f=n.loadResultTemplateFromId(h))),null==f&&(e=r.childSelector,null==e&&(e="."+i.replace(/([A-Z])/g,"-$1").toLowerCase()),f=n.loadChildrenResultTemplateFromSelector(t,e)),f},n.loadResultTemplateFromId=function(n){return u.Utils.isNonEmptyString(n)?a.TemplateCache.getTemplate(n):null},n.loadChildrenResultTemplateFromSelector=function(t,i){var r=n.loadChildrenHtmlElementFromSelector(t,i);return r.length>0?new v.TemplateList(f.compact(f.map(r,function(t){return n.createResultTemplateFromElement(t)}))):null},n.findParentScrolling=function(t,i){for(void 0===i&&(i=document);t!=i&&null!=t;){if(n.isElementScrollable(t))return"body"!==t.tagName.toLowerCase()?t:window;t=t.parentElement}return window},n.isElementScrollable=function(n){return"scroll"==o.$$(n).css("overflow-y")||"scroll"==n.style.overflowY},n.getAttributeFromAlias=function(t,i){if(i.alias)return t.getAttribute(n.attrNameFromName(i.alias))},n.createResultTemplateFromElement=function(n){e.Assert.exists(n);var t=n.getAttribute("type"),i="You must specify the type of template. Valid values are : "+s.UnderscoreTemplate.mimeTypes.toString()+" "+h.HtmlTemplate.mimeTypes.toString();return e.Assert.check(u.Utils.isNonEmptyString(t),i),f.indexOf(s.UnderscoreTemplate.mimeTypes,t.toLowerCase())!=-1?s.UnderscoreTemplate.create(n):f.indexOf(h.HtmlTemplate.mimeTypes,t.toLowerCase())!=-1?new h.HtmlTemplate(n):void e.Assert.fail("Cannot guess template type from attribute: "+t+". Valid values are "+i)},n}();t.ComponentOptions=b},function(n,t,i){"use strict";var o=i(109),u=i(12),e=i(114),s=i(117),r=i(14),f=function(){function n(){}return n.registerTemplate=function(t,i,f,e){void 0===f&&(f=!0);void 0===e&&(e=!1);u.Assert.isNonEmptyString(t);u.Assert.exists(i);i instanceof o.Template||(i=new o.Template(i));null==i.name&&(i.name=t);n.templates[t]=i;f&&!r.contains(n.templateNames,t)&&n.templateNames.push(t);e&&(n.defaultTemplates[t]=i)},n.unregisterTemplate=function(t){u.Assert.isNonEmptyString(t);void 0!=n.templates[t]&&delete n.templates[t];void 0!=n.defaultTemplates[t]&&delete n.defaultTemplates[t]},n.getTemplate=function(t){return n.templates[t]||n.scanAndRegisterTemplates(),u.Assert.exists(n.templates[t]),n.templates[t]},n.getTemplates=function(){return n.templates},n.getTemplateNames=function(){return n.templateNames},n.getDefaultTemplates=function(){return r.keys(n.defaultTemplates)},n.getDefaultTemplate=function(t){return u.Assert.exists(n.defaultTemplates[t]),n.defaultTemplates[t]},n.scanAndRegisterTemplates=function(){e.UnderscoreTemplate.isLibraryAvailable()&&n.scanAndRegisterUnderscoreTemplates();n.scanAndRegisterHtmlTemplates()},n.scanAndRegisterUnderscoreTemplates=function(){r.each(e.UnderscoreTemplate.mimeTypes,function(t){for(var u=document.querySelectorAll("script[id][type='"+t+"']"),i=u.length,f=new Array(i);i--;)f[i]=u.item(i);r.each(f,function(t){var i=new e.UnderscoreTemplate(t);n.registerTemplate(t.getAttribute("id"),i)})})},n.scanAndRegisterHtmlTemplates=function(){r.each(s.HtmlTemplate.mimeTypes,function(t){for(var u=document.querySelectorAll("script[id][type='"+t+"']"),i=u.length,f=new Array(i);i--;)f[i]=u.item(i);r.each(f,function(t){var i=new s.HtmlTemplate(t);n.registerTemplate(t.getAttribute("id"),i)})})},n}();f.templates={};f.templateNames=[];f.defaultTemplates={};t.TemplateCache=f;document.addEventListener("DOMContentLoaded",function(){f.scanAndRegisterTemplates()})},function(n,t,i){"use strict";var o=i(11),u=i(59),s=i(110),h=i(113),f=i(17),c=i(14),r=function(){function n(){this.currentLayout=null;this.checkCondition=!0;this.wrapInDiv=!0;this.responsiveComponents=new f.ResponsiveComponents}return n.prototype.get=function(){return{currentLayout:this.currentLayout,checkCondition:this.checkCondition,wrapInDiv:this.wrapInDiv,responsiveComponents:this.responsiveComponents}},n.prototype.merge=function(n){return n?c.extend(this.get(),n):this.get()},n}(),e;t.DefaultInstantiateTemplateOptions=r;e=function(){function n(n){this.dataToString=n;this.logger=new o.Logger(this)}return n.prototype.instantiateToString=function(n,t){if(void 0===t&&(t=new r),this.dataToString){if(t.checkCondition===!1)return this.dataToString(n);if(null==t.responsiveComponents&&(t.responsiveComponents=new f.ResponsiveComponents),this.mobile===!0&&!t.responsiveComponents.isSmallScreenWidth())return this.logger.trace("Template was skipped because it is optimized for small screen width",this),null;if(this.mobile===!1&&t.responsiveComponents.isSmallScreenWidth())return this.logger.trace("Template was skipped because it is not optimized for small screen width",this),null;if(this.tablet===!0&&!t.responsiveComponents.isMediumScreenWidth())return this.logger.trace("Template was skipped because it is optimized for medium screen width",this),null;if(this.tablet===!1&&t.responsiveComponents.isMediumScreenWidth())return this.logger.trace("Template was skipped because it is not optimized for medium screen width",this),null;if(this.desktop===!0&&!t.responsiveComponents.isLargeScreenWidth())return this.logger.trace("Template was skipped because it is optimized for large screen width",this),null;if(this.desktop===!1&&t.responsiveComponents.isLargeScreenWidth())return this.logger.trace("Template was skipped because it is not optimized for large screen width",this),null;if(null!=this.layout&&null!=t.currentLayout&&t.currentLayout!==this.layout)return this.logger.trace("Template was skipped because layout does not match",this,this.layout),null;if(this.logger.trace("Evaluating template ..."),null!=this.condition&&this.condition(n))return this.logger.trace("Template was loaded because condition was :",this.condition,n),this.dataToString(n);if(null!=this.conditionToParse&&s.TemplateConditionEvaluator.evaluateCondition(this.conditionToParse,n,t.responsiveComponents))return this.logger.trace("Template was loaded because condition was :",this.conditionToParse,n),this.dataToString(n);if(null!=this.fieldsToMatch&&h.TemplateFieldsEvaluator.evaluateFieldsToMatch(this.fieldsToMatch,n))return this.logger.trace("Template was loaded because condition was :",this.fieldsToMatch,n),this.dataToString(n);if(null==this.condition&&null==this.conditionToParse&&null==this.fieldsToMatch)return this.logger.trace("Template was loaded because there was *NO* condition",this.condition,n),this.dataToString(n)}return this.logger.trace("Template was skipped because it did not match any condition",this),null},n.prototype.instantiateToElement=function(n,t){var f,e,i;return(void 0===t&&(t={}),f=(new r).merge(t),e=this.instantiateToString(n,f),null!=e)?(i=u.$$("div",{},e).el,f.wrapInDiv||1!==i.children.length||(i=i.children.item(0)),this.layout&&u.$$(i).addClass("coveo-"+this.layout+"-layout"),this.logger.trace("Instantiated result template",n,i),i.template=this,i):null},n.prototype.toHtmlElement=function(){return null},n.prototype.getFields=function(){return this.fields||[]},n.prototype.getType=function(){return"Template"},n.prototype.setConditionWithFallback=function(n){try{this.condition=new Function("obj","with(obj||{}){return "+n+"}")}catch(t){this.conditionToParse=n}},n}();t.Template=e},function(n,t,i){"use strict";var u=i(62),f=i(111),e=i(77),o=i(17),r=i(14),s=function(){function n(){}return n.getFieldFromString=function(n){var t=r.map(u.StringUtils.match(n,/(?:(?!\b@)@([a-z0-9]+(?:\.[a-z0-9]+)*\b))|\braw.([a-z0-9]+)|\braw\['([^']+)'\]|\braw\["([^"]+)"\]/gi),function(n){return n[1]||n[2]||n[3]||n[4]||null});return r.each(f.Initialization.getListOfRegisteredComponents(),function(i){var r=f.Initialization.getRegisteredComponent(i).fields;null!=r&&n.indexOf(e.BaseComponent.computeCssClassNameForType(i))!=-1&&(t=t.concat(r))}),t},n.evaluateCondition=function(t,i,u){void 0===u&&(u=new o.ResponsiveComponents);var f=!0,e=n.getFieldFromString(t);return r.each(e,function(u){var e=n.evaluateMatchingFieldValues(u,t),o=0!=e.length||n.evaluateFieldShouldNotBeNull(u,t);o&&(f=f&&null!=i.raw[u]);f&&r.each(e,function(n){f=f&&i.raw[u].toLowerCase()==n.toLowerCase()})}),f&&n.evaluateShouldUseSmallScreen(t)&&(f=f&&u.isSmallScreenWidth()),f},n.evaluateMatchingFieldValues=function(n,t){var i=[],f=new RegExp("raw."+n+"\\s*=+\\s*[\"|']([a-zA-Z]+)[\"|']","gi"),e=new RegExp("raw[[\"|']"+n+"[\"|']]\\s*=+\\s*[\"|']([a-zA-Z]+)[\"|']","gi"),o=u.StringUtils.match(t,f).concat(u.StringUtils.match(t,e));return o.forEach(function(n){i=i.concat(n[1])}),r.unique(i)},n.evaluateFieldShouldNotBeNull=function(n,t){var i=new RegExp("raw."+n+"\\s*!=\\s*(?=null|undefined)","gi"),r=new RegExp("raw[[\"|']"+n+"[\"|']]\\s*!=\\s*(?=null|undefined)","gi");return null!=t.match(i)||null!=t.match(r)},n.evaluateShouldUseSmallScreen=function(n){return n.match(/Coveo\.DeviceUtils\.isSmallScreenWidth/gi)},n}();t.TemplateConditionEvaluator=s},function(n,t,i){"use strict";var a=i(11),u=i(103),f=i(13),r=i(12),o=i(59),s=i(45),h=i(106),v=i(75),c=i(66),p=i(101),w=i(104),b=i(105),y=i(112),k=i(18),e=i(14),l=function(){function n(){}return n.registerDefaultOptions=function(n,t){var i=n.CoveoDefaultOptions||{},r=f.Utils.extendDeep(i,t);n.CoveoDefaultOptions=r},n.resolveDefaultOptions=function(t,i){var r,u=t.CoveoDefaultOptions;return r=f.Utils.exists(u)?f.Utils.extendDeep(u,i):i,t.parentElement?n.resolveDefaultOptions(t.parentElement,r):r},n.registerAutoCreateComponent=function(t){r.Assert.exists(t);r.Assert.exists(t.ID);r.Assert.doesNotExists(n.autoCreateComponents[t.ID]);r.Assert.doesNotExists(n.namedMethods[t.ID]);n.autoCreateComponents[t.ID]=t},n.isComponentClassIdRegistered=function(t){return f.Utils.exists(n.autoCreateComponents[t])},n.getListOfRegisteredComponents=function(){return e.keys(n.autoCreateComponents)},n.getRegisteredComponent=function(t){return n.autoCreateComponents[t]},n.initializeFramework=function(t,i,f){var l,c,a;if(r.Assert.exists(t),l=u.Component.get(t,v.QueryController,!0),l)return void this.logger.error("This DOM element has already been initialized as a search interface, skipping initialization",t);i=n.resolveDefaultOptions(t,i);n.performInitFunctionsOption(i,s.InitializationEvents.beforeInitialization);o.$$(t).trigger(s.InitializationEvents.beforeInitialization);f(t,i);n.initExternalComponents(t,i);n.performInitFunctionsOption(i,s.InitializationEvents.afterComponentsInitialization);o.$$(t).trigger(s.InitializationEvents.afterComponentsInitialization);o.$$(t).trigger(s.InitializationEvents.restoreHistoryState);n.performInitFunctionsOption(i,s.InitializationEvents.afterInitialization);o.$$(t).trigger(s.InitializationEvents.afterInitialization);c=u.Component.get(t,h.SearchInterface);a=o.$$(t).findAll(".coveo-hide-until-loaded");e.each(a,function(n){o.$$(n).removeClass("coveo-hide-until-loaded");o.$$(n).addClass("coveo-show-after-loaded")});c.options.autoTriggerQuery&&(n.logFirstQueryCause(c),u.Component.get(t,v.QueryController).executeQuery({logInActionsHistory:Coveo.Recommendation&&c instanceof Coveo.Recommendation,isFirstQuery:!0}))},n.initSearchInterface=function(t,i){var r,u;void 0===i&&(i={});i=n.resolveDefaultOptions(t,i);r=new h.SearchInterface(t,i.SearchInterface,i.Analytics);r.options.originalOptionsObject=i;u={options:i,bindings:r.getBindings()};n.automaticallyCreateComponentsInside(t,u,["Recommendation"])},n.initStandaloneSearchInterface=function(t,i){var r,u;void 0===i&&(i={});i=n.resolveDefaultOptions(t,i);i.Querybox||(i.Querybox={});i.Omnibox||(i.Omnibox={});i.Searchbox||(i.Searchbox={});i.Querybox.triggerQueryOnClear&&i.Omnibox.triggerQueryOnClear&&i.Searchbox.triggerOnQueryClear||(i.Querybox.triggerQueryOnClear=!1,i.Omnibox.triggerQueryOnClear=!1,i.Searchbox.triggerQueryOnClear=!1);r=new h.StandaloneSearchInterface(t,i.StandaloneSearchInterface,i.Analytics);r.options.originalOptionsObject=i;u={options:i,bindings:r.getBindings()};n.automaticallyCreateComponentsInside(t,u)},n.initRecommendationInterface=function(t,i){var r,u,f;void 0===i&&(i={});i=n.resolveDefaultOptions(t,i);r=e.extend({},i.SearchInterface,i.Recommendation);r.mainSearchInterface&&(r.firstLoadingAnimation=o.$$("span").el);u=new window.Coveo.Recommendation(t,r,i.Analytics);u.options.originalOptionsObject=i;f={options:i,bindings:u.getBindings()};n.automaticallyCreateComponentsInside(t,f)},n.automaticallyCreateComponentsInside=function(t,i,f){var l,s,c;r.Assert.exists(t);l=[];s=[];e.each(f,function(n){var i=o.$$(t).find("."+u.Component.computeCssClassNameForType(n)),r;i&&(r=o.$$(i).findAll("*"),s=s.concat(r))});for(c in n.autoCreateComponents)if(!e.contains(f,c)){var a=n.autoCreateComponents[c],v=u.Component.computeCssClassName(a),h=o.$$(t).findAll("."+v);h=e.difference(h,s);o.$$(t).hasClass(v)&&!e.contains(s,t)&&h.push(t);0!=h.length&&l.push(n.createFunctionThatInitializesComponentOnElements(h,c,a,i))}e.each(l,function(n){return n()})},n.createComponentOfThisClassOnElement=function(t,i,u){var f;r.Assert.isNonEmptyString(t);r.Assert.exists(i);f=n.autoCreateComponents[t];r.Assert.exists(f);var s={},o={},h=void 0;return void 0!=u&&(e.each(u.bindings,function(n,t){s[t]=n}),o=u.options,h=u.result),n.logger.trace("Creating component of class "+t,i,o),new f(i,o,s,h)},n.registerNamedMethod=function(t,i){r.Assert.isNonEmptyString(t);r.Assert.doesNotExists(n.autoCreateComponents[t]);r.Assert.doesNotExists(n.namedMethods[t]);r.Assert.exists(i);n.namedMethods[t]=i},n.isNamedMethodRegistered=function(t){return f.Utils.exists(n.namedMethods[t])},n.monkeyPatchComponentMethod=function(n,t,i){var h,o,e,s;r.Assert.isNonEmptyString(n);r.Assert.exists(i);n.indexOf(".")>0&&(o=n.split("."),r.Assert.check(2==o.length,"Invalid method name, correct syntax is CoveoComponent.methodName."),h=o[0],n=o[1]);e=u.Component.get(t,h);r.Assert.exists(e);r.Assert.exists(e[n]);s="__"+n;f.Utils.exists(e[s])||(e[s]=e[n]);e[n]=i},n.initBoxInterface=function(t,i,f,e){var o,s,c,h,l;void 0===i&&(i={});void 0===f&&(f="Standard");void 0===e&&(e=!0);i=n.resolveDefaultOptions(t,i);o="Box";"Standard"!=f&&(o+="For"+f);s=u.Component.getComponentRef(o);s?(new a.Logger(t).info("Initializing box of type "+o),c=e?s.getInjection:function(){},h=new s(t,i[o],i.Analytics,c,i),h.options.originalOptionsObject=i,l={options:i,bindings:h.getBindings()},n.automaticallyCreateComponentsInside(t,l)):(new a.Logger(t).error("Trying to initialize box of type : "+o+" but not found in code (not compiled)!"),r.Assert.fail("Cannot initialize unknown type of box"))},n.dispatchNamedMethodCall=function(t,i,u){r.Assert.isNonEmptyString(t);r.Assert.exists(i);var f=n.namedMethods[t];return r.Assert.exists(f),n.logger.trace("Dispatching named method call of "+t,i,u),0!=u.length?f.apply(null,[i].concat(u)):f.apply(null,[i])},n.dispatchNamedMethodCallOrComponentCreation=function(t,i,u){return r.Assert.isNonEmptyString(t),r.Assert.exists(i),n.isNamedMethodRegistered(t)?n.dispatchNamedMethodCall(t,i,u):n.isComponentClassIdRegistered(t)?n.createComponentOfThisClassOnElement(t,i,u[0]):n.isThereASingleComponentBoundToThisElement(i)?n.dispatchMethodCallOnBoundComponent(t,i,u):void r.Assert.fail("No method or component named "+t+" are registered.")},n.isSearchFromLink=function(n){return f.Utils.isNonEmptyString(n.getBindings().queryStateModel.get("q"))},n.isThereASingleComponentBoundToThisElement=function(n){return r.Assert.exists(n),f.Utils.exists(u.Component.get(n))},n.dispatchMethodCallOnBoundComponent=function(n,t,i){var e,o;return r.Assert.isNonEmptyString(n),r.Assert.exists(t),e=u.Component.get(t),r.Assert.exists(e),o=e[n],f.Utils.exists(o)?o.apply(e,i):void r.Assert.fail("No method named "+n+" exist on component "+e.type)},n.logFirstQueryCause=function(t){var i=c.HashUtils.getValue("firstQueryCause",c.HashUtils.getHash()),r;null!=i?(r=c.HashUtils.getValue("firstQueryMeta",c.HashUtils.getHash())||{},t.usageAnalytics.logSearchEvent(y.analyticsActionCauseList[i],r)):n.isSearchFromLink(t)?t.usageAnalytics.logSearchEvent(y.analyticsActionCauseList.searchFromLink,{}):t.usageAnalytics.logSearchEvent(y.analyticsActionCauseList.interfaceLoad,{})},n.performInitFunctionsOption=function(t,i){f.Utils.exists(t)&&n.performFunctions(t[i])},n.performFunctions=function(n){f.Utils.exists(n)&&e.each(n,function(n){"function"==typeof n&&n()})},n.initExternalComponents=function(t,i){var s;if(i&&i.externalComponents){var o=u.Component.get(t,h.SearchInterface),c=u.Component.get(t,p.QueryStateModel),l=u.Component.get(t,w.ComponentStateModel),a=u.Component.get(t,v.QueryController),d=u.Component.get(t,b.ComponentOptionsModel),y=o.usageAnalytics;r.Assert.exists(o);r.Assert.exists(c);r.Assert.exists(a);r.Assert.exists(l);r.Assert.exists(y);s={options:i,bindings:{searchInterface:o,queryStateModel:c,queryController:a,usageAnalytics:y,componentStateModel:l,componentOptionsModel:d,root:t}};e.each(i.externalComponents,function(t){var i=t;f.Utils.isHtmlElement(i)?n.automaticallyCreateComponentsInside(i,s):k.JQueryUtils.isInstanceOfJQuery(i)&&n.automaticallyCreateComponentsInside(i.get(0),s)})}},n.createFunctionThatInitializesComponentOnElements=function(t,i,r,o){return function(){e.each(t,function(t){var s,h;if(null==u.Component.get(t,i)){if(s=void 0,f.Utils.exists(o.options)){var c=o.options[i],l=o.options[t.id],a=o.options.initOptions?o.options.initOptions[i]:{};s=f.Utils.extendDeep(l,a);s=f.Utils.extendDeep(c,s)}h=e.extend({},o,{options:s});n.createComponentOfThisClassOnElement(r.ID,t,h)}})}},n}();l.logger=new a.Logger("Initialization");l.autoCreateComponents={};l.namedMethods={};t.Initialization=l},function(n,t){"use strict";t.analyticsActionCauseList={interfaceLoad:{name:"interfaceLoad",type:"interface"},interfaceChange:{name:"interfaceChange",type:"interface",metaMap:{interfaceChangeTo:1}},contextRemove:{name:"contextRemove",type:"misc",metaMap:{contextName:1}},didyoumeanAutomatic:{name:"didyoumeanAutomatic",type:"misc"},didyoumeanClick:{name:"didyoumeanClick",type:"misc"},resultsSort:{name:"resultsSort",type:"misc",metaMap:{resultsSortBy:1}},searchboxSubmit:{name:"searchboxSubmit",type:"search box"},searchboxClear:{name:"searchboxClear",type:"search box"},searchboxAsYouType:{name:"searchboxAsYouType",type:"search box"},breadcrumbFacet:{name:"breadcrumbFacet",type:"breadcrumb",metaMap:{facetId:1,facetValue:2,facetTitle:3}},breadcrumbResetAll:{name:"breadcrumbResetAll",type:"breadcrumb"},documentTag:{name:"documentTag",type:"document",metaMap:{facetId:1,facetValue:2,facetTitle:3}},documentField:{name:"documentField",type:"document",metaMap:{facetId:1,facetValue:2,facetTitle:3}},documentQuickview:{name:"documentQuickview",type:"document",metaMap:{documentTitle:1,documentURL:2}},documentOpen:{name:"documentOpen",type:"document",metaMap:{documentTitle:1,documentURL:2}},omniboxFacetSelect:{name:"omniboxFacetSelect",type:"omnibox",metaMap:{facetId:1,facetValue:2,facetTitle:3}},omniboxFacetExclude:{name:"omniboxFacetExclude",type:"omnibox",metaMap:{facetId:1,facetValue:2,facetTitle:3}},omniboxFacetDeselect:{name:"omniboxFacetDeselect",type:"omnibox",metaMap:{facetId:1,facetValue:2,facetTitle:3}},omniboxFacetUnexclude:{name:"omniboxFacetUnexclude",type:"omnibox",metaMap:{faceId:1,facetValue:2,facetTitle:3}},omniboxAnalytics:{name:"omniboxAnalytics",type:"omnibox",metaMap:{partialQuery:1,suggestionRanking:2,partialQueries:3,suggestions:4}},omniboxFromLink:{name:"omniboxFromLink",type:"omnibox",metaMap:{partialQuery:1,suggestionRanking:2,partialQueries:3,suggestions:4}},omniboxField:{name:"omniboxField",type:"omnibox"},facetClearAll:{name:"facetClearAll",type:"facet",metaMap:{facetId:1}},facetSearch:{name:"facetSearch",type:"facet",metaMap:{facetId:1}},facetToggle:{name:"facetToggle",type:"facet",metaMap:{facetId:1,facetOperatorBefore:2,facetOperatorAfter:3}},facetRangeSlider:{name:"facetRangeSlider",type:"facet",metaMap:{facetId:1,facetRangeStart:2,facetRangeEnd:3}},facetRangeGraph:{name:"facetRangeGraph",type:"facet",metaMap:{facetId:1,facetRangeStart:2,facetRangeEnd:3}},facetSelect:{name:"facetSelect",type:"facet",metaMap:{facetId:1,facetValue:2,facetTitle:3}},facetSelectAll:{name:"facetSelectAll",type:"facet",metaMap:{facetId:1,facetValue:2,facetTitle:3}},facetDeselect:{name:"facetDeselect",type:"facet",metaMap:{facetId:1,facetValue:2,facetTitle:3}},facetExclude:{name:"facetExclude",type:"facet",metaMap:{facetId:1,facetValue:2,facetTitle:3}},facetUnexclude:{name:"facetUnexclude",type:"facet",metaMap:{facetId:1,facetValue:2,facetTitle:3}},errorBack:{name:"errorBack",type:"errors"},errorClearQuery:{name:"errorClearQuery",type:"errors"},errorRetry:{name:"errorRetry",type:"errors"},noResultsBack:{name:"noResultsBack",type:"noResults"},expandToFullUI:{name:"expandToFullUI",type:"interface"},caseCreationInputChange:{name:"inputChange",type:"caseCreation"},caseCreationSubmitButton:{name:"submitButton",type:"caseCreation"},caseCreationCancelButton:{name:"cancelButton",type:"caseCreation"},caseCreationUnloadPage:{name:"unloadPage",type:"caseCreation"},casecontextAdd:{name:"casecontextAdd",type:"casecontext",metaMap:{caseID:5}},casecontextRemove:{name:"casecontextRemove",type:"casecontext",metaMap:{caseID:5}},preferencesChange:{name:"preferencesChange",type:"preferences",metaMap:{preferenceName:1,preferenceType:2}},getUserHistory:{name:"getUserHistory",type:"userHistory"},userActionDocumentClick:{name:"userActionDocumentClick",type:"userHistory"},caseAttach:{name:"caseAttach",type:"case",metaMap:{documentTitle:1,resultUriHash:3,articleID:4,caseID:5}},caseDetach:{name:"caseDetach",type:"case",metaMap:{documentTitle:1,resultUriHash:3,articleID:4,caseID:5}},customfiltersChange:{name:"customfiltersChange",type:"customfilters",metaMap:{customFilterName:1,customFilterType:2,customFilterExpression:3}},pagerNumber:{name:"pagerNumber",type:"getMoreResults",metaMap:{pagerNumber:1}},pagerNext:{name:"pagerNext",type:"getMoreResults",metaMap:{pagerNumber:1}},pagerPrevious:{name:"pagerPrevious",type:"getMoreResults",metaMap:{pagerNumber:1}},pagerScrolling:{name:"pagerScrolling",type:"getMoreResults"},pagerResize:{name:"pagerResize",type:"getMoreResults"},searchFromLink:{name:"searchFromLink",type:"interface"},triggerNotify:{name:"notify",type:"queryPipelineTriggers"},triggerExecute:{name:"execute",type:"queryPipelineTriggers"},triggerQuery:{name:"query",type:"queryPipelineTriggers"},triggerRedirect:{name:"redirect",type:"queryPipelineTriggers"},queryError:{name:"query",type:"errors",metaMap:{query:1,aq:2,cq:3,dq:4,errorType:5,errorMessage:6}},exportToExcel:{name:"exportToExcel",type:"misc"},recommendation:{name:"recommendation",type:"recommendation"},recommendationInterfaceLoad:{name:"recommendationInterfaceLoad",type:"recommendation"},recommendationOpen:{name:"recommendationOpen",type:"recommendation"},advancedSearch:{name:"advancedSearch",type:"advancedSearch"},searchAlertsFollowDocument:{name:"followDocument",type:"searchAlerts"},searchAlertsFollowQuery:{name:"followQuery",type:"searchAlerts"},searchAlertsUpdateSubscription:{name:"updateSubscription",type:"searchAlerts"},searchAlertsDeleteSubscription:{name:"deleteSubscription",type:"searchAlerts"},searchAlertsUnfollowDocument:{name:"unfollowDocument",type:"searchAlerts"},searchAlertsUnfollowQuery:{name:"unfollowQuery",type:"searchAlerts"},resultsLayoutChange:{name:"changeResultsLayout",type:"resultsLayout"}}},function(n,t,i){"use strict";var r=i(14),u=function(){function n(){}return n.evaluateFieldsToMatch=function(n,t){var i=!0;return r.each(n,function(n){var u=!1;n.values?r.each(n.values,function(i){u||(u=t.raw[n.field]&&t.raw[n.field].toLowerCase()==i.toLowerCase())}):u=null!=t.raw[n.field];i=i&&u}),i},n}();t.TemplateFieldsEvaluator=u},function(n,t,i){"use strict";var o=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},s=i(109),f=i(12),h=i(13),c=i(11),e=i(115),l=i(116),r=i(14),u;r.templateSettings={evaluate:/(?:<%|{{)([\s\S]+?)(?:%>|}})/g,interpolate:/(?:<%|{{)=([\s\S]+?)(?:%>|}})/g,escape:/(?:<%|{{)-([\s\S]+?)(?:%>|}})/g};u=function(n){function t(i){var u=n.call(this)||this,o;u.element=i;f.Assert.exists(i);o=i.innerHTML;try{u.template=r.template(o)}catch(n){new c.Logger(u).error("Cannot instantiate underscore template. Might be caused by strict Content-Security-Policy. Will fallback on a default template...",n)}return u.templateFromAScriptTag=new e.TemplateFromAScriptTag(u,u.element),u.dataToString=function(n){var i=r.extend({},n,t.templateHelpers);return u.template?u.template(i):(new l.DefaultResultTemplate).getFallbackTemplate()},u}return o(t,n),t.prototype.toHtmlElement=function(){var n=this.templateFromAScriptTag.toHtmlElement();return n.setAttribute("type",r.first(t.mimeTypes)),n},t.prototype.getType=function(){return"UnderscoreTemplate"},t.prototype.getFields=function(){return this.fields},t.registerTemplateHelper=function(n,i){t.templateHelpers[n]=i},t.isLibraryAvailable=function(){return h.Utils.exists(window._)},t.fromString=function(n,i){var r=e.TemplateFromAScriptTag.fromString(n,i);return r.setAttribute("type",t.mimeTypes[0]),new t(r)},t.create=function(n){return f.Assert.exists(n),new t(n)},t}(s.Template);u.templateHelpers={};u.mimeTypes=["text/underscore","text/underscore-template","text/x-underscore","text/x-underscore-template"];t.UnderscoreTemplate=u},function(n,t,i){"use strict";var u=i(13),e=i(110),o=i(107),f=i(59),r=i(14),s=function(){function n(n,t){var i,f,s;this.template=n;this.scriptTag=t;i=t.getAttribute("data-condition");null!=i?(i=i.toString().replace(/&quot;/g,'"'),n.setConditionWithFallback(i)):(f=this.parseFieldsAttributes(),f&&u.Utils.isNonEmptyArray(f)&&(this.template.fieldsToMatch=f));this.template.layout=this.parseLayout();this.template.mobile=this.parseScreenSize("data-mobile");this.template.tablet=this.parseScreenSize("data-tablet");this.template.desktop=this.parseScreenSize("data-desktop");this.template.fields=e.TemplateConditionEvaluator.getFieldFromString(t.innerHTML+" "+i);s=o.ComponentOptions.loadFieldsOption(t,"fields",{includeInResults:!0});null!=s&&(this.template.fields=this.template.fields.concat(r.map(s,function(n){return n.substr(1)})));this.template.fields=this.template.fields.concat(r.map(this.template.fieldsToMatch,function(n){return n.field}))}return n.prototype.toHtmlElement=function(){var n=f.$$("script");return n.setAttribute("data-condition",f.$$(this.scriptTag).getAttribute("data-condition")),n.text(this.scriptTag.innerHTML),n.el},n.prototype.parseFieldsAttributes=function(){var n=this.scriptTag.dataset;return r.chain(n).map(function(n,t){var r=t.match(/field([a-z0-9]*)/i),i;if(r)return i=void 0,null!=n&&"null"!=n&&(i=n.split(",")),{field:r[1].toLowerCase(),values:i}}).compact().value()},n.prototype.parseScreenSize=function(n){return u.Utils.parseBooleanIfNotUndefined(this.scriptTag.getAttribute(n))},n.prototype.parseLayout=function(){return this.scriptTag.getAttribute("data-layout")},n.fromString=function(n,t){void 0===t&&(t={});var i=document.createElement("script");return i.text=n,null!=t.condition&&i.setAttribute("data-condition",t.condition),null!=t.layout?i.setAttribute("data-layout",t.layout):i.setAttribute("data-layout","list"),null!=t.mobile&&i.setAttribute("data-mobile",t.mobile.toString()),null!=t.tablet&&i.setAttribute("data-tablet",t.tablet.toString()),null!=t.desktop&&i.setAttribute("data-desktop",t.desktop.toString()),null!=t.fieldsToMatch&&r.each(t.fieldsToMatch,function(n){n.values?i.setAttribute("data-field-"+n.field.toLowerCase(),n.values.join(",")):i.setAttribute("data-field-"+n.field.toLowerCase(),null)}),i},n}();t.TemplateFromAScriptTag=s},function(n,t,i){"use strict";var o=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},e=i(109),s=i(114),u=i(108),h=i(12),f=i(59),r=i(14),c=function(n){function t(){return n.call(this)||this}return o(t,n),t.prototype.instantiateToString=function(n,t){var i,f,o,c;for(void 0===t&&(t={}),h.Assert.exists(n),i=(new e.DefaultInstantiateTemplateOptions).merge(t),n=r.extend({},n,s.UnderscoreTemplate.templateHelpers),f=r.chain(u.TemplateCache.getDefaultTemplates()).map(function(n){return u.TemplateCache.getTemplate(n)}).sortBy(function(n){return null==n.condition}).sortBy(function(n){return null==n.fieldsToMatch}).value(),i.responsiveComponents.isSmallScreenWidth()?(f=r.filter(f,function(n){return"card"==n.layout}),i.currentLayout="card",this.layout="card"):this.layout=i.currentLayout,o=0;o<f.length;o++)if(c=f[o].instantiateToString(n,i),null!=c)return c;return this.getFallbackTemplate()},t.prototype.getFields=function(){var n=r.map(u.TemplateCache.getDefaultTemplates(),function(n){return u.TemplateCache.getTemplate(n)});return r.flatten(r.map(n,function(n){return n.getFields()}))},t.prototype.getType=function(){return"DefaultResultTemplate"},t.prototype.getFallbackTemplate=function(){var t=f.$$("div",{className:"coveo-title"}),r=f.$$("a",{className:"CoveoResultLink"}),i,n;return t.append(r.el),i=f.$$("div",{className:"CoveoExcerpt"}),n=f.$$("div"),n.append(t.el),n.append(i.el),n.el.outerHTML},t}(e.Template);t.DefaultResultTemplate=c},function(n,t,i){"use strict";var f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},e=i(109),o=i(12),r=i(115),s=i(14),u=function(n){function t(t){var i=n.call(this,function(){return t.innerHTML})||this;return i.element=t,i.templateFromAScriptTag=new r.TemplateFromAScriptTag(i,i.element),i}return f(t,n),t.prototype.toHtmlElement=function(){var n=this.templateFromAScriptTag.toHtmlElement();return n.setAttribute("type",s.first(t.mimeTypes)),n},t.prototype.getType=function(){return"HtmlTemplate"},t.prototype.getFields=function(){return this.fields},t.create=function(n){return o.Assert.exists(n),new t(n)},t.fromString=function(n,i){var u=r.TemplateFromAScriptTag.fromString(n,i);return u.setAttribute("type",t.mimeTypes[0]),new t(u)},t}(e.Template);u.mimeTypes=["text/html","text/HTML"];t.HtmlTemplate=u},function(n,t,i){"use strict";var f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},r=i(109),u=i(116),e=i(14),o=function(n){function t(t){var i=n.call(this)||this;return i.templates=t,i}return f(t,n),t.prototype.instantiateToString=function(n,t){var e,i,f;for(void 0===t&&(t={}),e=(new r.DefaultInstantiateTemplateOptions).merge(t),i=0;i<this.templates.length;i++)if(f=this.templates[i].instantiateToString(n,e),null!=f)return f;return(new u.DefaultResultTemplate).instantiateToString(n,t)},t.prototype.instantiateToElement=function(n,t){var f,i,e;for(void 0===t&&(t={}),f=(new r.DefaultInstantiateTemplateOptions).merge(t),i=0;i<this.templates.length;i++)if(e=this.templates[i].instantiateToElement(n,f),null!=e)return e;return(new u.DefaultResultTemplate).instantiateToElement(n,f)},t.prototype.getFields=function(){return e.reduce(this.templates,function(n,t){return n.concat(t.getFields())},[])},t.prototype.getType=function(){return"TemplateList"},t}(r.Template);t.TemplateList=o},function(n,t,i){"use strict";var r=i(4),u=function(){function n(){this.isContextual=!1}return n.prototype.isActivated=function(){return!1},n.prototype.getCurrentEventCause=function(){return this.currentEventCause},n.prototype.getCurrentEventMeta=function(){return this.currentEventMeta},n.prototype.logSearchEvent=function(n,t){this.setNoopCauseAndMeta(n.name,t)},n.prototype.logSearchAsYouType=function(n,t){this.setNoopCauseAndMeta(n.name,t)},n.prototype.logClickEvent=function(n,t){this.setNoopCauseAndMeta(n.name,t)},n.prototype.logCustomEvent=function(n,t){this.setNoopCauseAndMeta(n.name,t)},n.prototype.getTopQueries=function(){return new r.Promise(function(n){n([])})},n.prototype.getCurrentVisitIdPromise=function(){return new r.Promise(function(n){n(null)})},n.prototype.getCurrentVisitId=function(){return null},n.prototype.sendAllPendingEvents=function(){},n.prototype.cancelAllPendingEvents=function(){},n.prototype.warnAboutSearchEvent=function(){},n.prototype.getPendingSearchEvent=function(){return null},n.prototype.setNoopCauseAndMeta=function(n,t){this.currentEventCause=n;this.currentEventMeta=t},n}();t.NoopAnalyticsClient=u},function(n,t,i){"use strict";var c=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},h=i(107),l=i(70),o=i(48),a=i(49),v=i(43),u=i(59),e=i(62),y=i(9),p=i(109),s=i(4),w=i(76),b=i(77),k=i(23),d=i(28),g=i(69),nt=i(45),r=i(14),f=function(n){function t(i,r,f,e){void 0===e&&(e=k.ModalBox);var s=n.call(this,i,t.ID)||this;return s.element=i,s.queryController=r,s.options=f,s.modalBox=e,s.debug=!1,s.highlightRecommendation=!1,s.options=h.ComponentOptions.initComponentOptions(i,t,f),u.$$(s.element).on(o.QueryEvents.buildingQuery,function(n,t){t.queryBuilder.enableDebug=s.debug||t.queryBuilder.enableDebug}),u.$$(s.element).on(a.ResultListEvents.newResultDisplayed,function(n,t){return s.handleNewResultDisplayed(t)}),u.$$(s.element).on(v.DebugEvents.showDebugPanel,function(n,t){s.handleShowDebugPanel(t)}),u.$$(s.element).on(nt.InitializationEvents.nuke,function(){s.unbindEscapeEvent()}),s.localStorageDebug=new l.LocalStorageUtils("DebugPanel"),s.collapsedSections=s.localStorageDebug.load()||[],s}return c(t,n),t.prototype.buildFieldsSection=function(n){return this.fetchFields().then(function(t){var i={};return r.each(n.raw,function(n,u){var f=t["@"+u];null==f&&u.match(/^sys/)&&(f=t["@"+u.substr(3)]);i["@"+u]=null==f?n:"Date"==f.fieldType?new Date(n):f.splitGroupByField&&r.isString(n)?n.split(/\s*;\s*/):n}),i})},t.prototype.parseRankingInfo=function(n){var s=this,t={},o;if(n){var i=/Document weights:\n((?:.)*?)\n+/g.exec(n),u=/Terms weights:\n((?:.|\n)*)\n+/g.exec(n),f=/Total weight: ([0-9]+)/g.exec(n);(i&&i[1]&&(t["Document weights"]=this.parseWeights(i[1])),f&&f[1]&&(t["Total weight"]=Number(f[1])),u&&u[1])&&(o=e.StringUtils.match(u[1],/((?:[^:]+: [0-9]+, [0-9]+; )+)\n((?:\w+: [0-9]+; )+)/g),t["Terms weights"]=r.object(r.map(o,function(n){var t=r.object(r.map(e.StringUtils.match(n[1],/([^:]+): ([0-9]+), ([0-9]+); /g),function(n){return[n[1],{Correlation:Number(n[2]),"TF-IDF":Number(n[3])}]})),i=s.parseWeights(n[2]);return[r.keys(t).join(", "),{terms:t,Weights:i}]})))}return t},t.prototype.buildStackPanel=function(n,i){var o=this,s=u.Dom.createElement("div",{className:"coveo-debug"}),f=r.pairs(r.keys(n)),e;return f=f.sort(function(n,i){var u=r.indexOf(t.customOrder,n[1]),f=r.indexOf(t.customOrder,i[1]);return u!=-1&&f!=-1?u-f:u!=-1?-1:f!=-1?1:n[0]-i[0]}),e={},r.forEach(f,function(t){var u=o.buildSection(t[1]),r=o.buildStackPanelSection(n[t[1]],i);u.container.appendChild(r.section);null!=r.json&&(e[t[1]]=r.json);s.appendChild(u.dom)}),{body:s,json:e}},t.prototype.debugInfo=function(){return null},t.prototype.showDebugPanel=function(n){var r=this,t=n(),o=this.modalBox.open(t.body,{title:"",className:"coveo-debug",titleClose:!0,overlayClose:!0,validation:function(){return r.unbindEscapeEvent(),!0}});this.bindEscapeEvent();var i=u.$$(o.wrapper).find(".coveo-title"),f=this.buildSearchBox(t.body),e=u.$$("a",{download:"debug.json",href:this.downloadHref(t.json)},"Download"),s=function(t){var i=n(t);return e.el.setAttribute("href",r.downloadHref(i.json)),i.body};i.appendChild(this.buildEnabledHighlightRecommendation());i.appendChild(this.buildEnableDebugCheckbox(t.body,f,s));i.appendChild(f);i.appendChild(e.el)},t.prototype.handleEscapeEvent=function(n){n.keyCode==g.KEYBOARD.ESCAPE&&this.modalBox&&this.modalBox.close()},t.prototype.bindEscapeEvent=function(){this.boundEscapeKey=this.handleEscapeEvent.bind(this);u.$$(document.body).on("keyup",this.boundEscapeKey)},t.prototype.unbindEscapeEvent=function(){this.boundEscapeKey&&u.$$(document.body).off("keyup",this.boundEscapeKey);this.boundEscapeKey=null},t.prototype.handleShowDebugPanel=function(n){var t=this;null==this.stackDebug&&(setTimeout(function(){var n=t.stackDebug;t.showDebugPanel(function(i){return t.buildStackPanel(n,i)});t.stackDebug=null}),this.stackDebug={});r.extend(this.stackDebug,n)},t.prototype.handleNewResultDisplayed=function(n){var t=this;null!=n.item&&(this.highlightRecommendation&&n.result.isRecommendation&&u.$$(n.item).addClass("coveo-is-recommendation"),u.$$(n.item).on("dblclick",function(i){t.handleResultDoubleClick(i,n)}))},t.prototype.handleResultDoubleClick=function(n,t){var u=this;if(n.altKey){var f=t.result.index,i=function(n){return null!=n?r.find(n.results,function(n){return n.index==f}):t.result},e=t.item.template,o={result:i,fields:function(n){return u.buildFieldsSection(i(n))},rankingInfo:function(n){return u.buildRankingInfoSection(i(n))},template:this.templateToJson(e)};this.handleShowDebugPanel(o)}},t.prototype.downloadHref=function(n){return"data:text/json;charset=utf-8,"+encodeURIComponent(JSON.stringify(n))},t.prototype.buildStackPanelSection=function(n,t){if(n instanceof HTMLElement)return{section:n};if(r.isFunction(n))return this.buildStackPanelSection(n(t),t);var i=this.toJson(n);return{section:this.buildProperty(i),json:i}},t.prototype.buildSearchBox=function(n){var f=this,r=u.Dom.createElement("div",{className:"coveo-debug-search"},"<input type='text'/>"),i,t;return r.onclick=function(n){n.stopPropagation()},i="",t=r.querySelector("input"),t.setAttribute("placeholder","Search in debug"),t.onkeyup=function(r){if(null==r||13==r.keyCode){var u=t.value.toLowerCase();i!=u&&(i=u,f.search(u,n))}},t.onchange=function(){var r=t.value.toLowerCase();i!=r&&(i=r,f.search(r,n))},r},t.prototype.search=function(n,t){var i=this;r.isEmpty(n)?(u.$$(t).findAll(".coveo-search-match, .coveo-search-submatch").forEach(function(n){u.$$(n).removeClass("coveo-search-match, coveo-search-submatch")}),u.$$(t).removeClass("coveo-searching")):(u.$$(t).addClass("coveo-searching-loading"),setTimeout(function(){var f=u.$$(t).findAll(".coveo-section .coveo-section-container > .coveo-property");r.each(f,function(t){i.findInProperty(t,n)});u.$$(t).addClass("coveo-searching");u.$$(t).removeClass("coveo-searching-loading")}))},t.prototype.findInProperty=function(n,t){var s=this,e=u.$$(n),i=n.label.indexOf(t)!=-1,o,f;return(i?this.highlightSearch(n.labelDom,t):this.removeHighlightSearch(n.labelDom),e.hasClass("coveo-property-object"))?(e.toggleClass("coveo-search-match",i),o=n.buildKeys(),f=!1,r.each(o,function(n){f=s.findInProperty(n,t)||f}),e.toggleClass("coveo-search-submatch",f),i||f):(n.values.indexOf(t)!=-1?(this.highlightSearch(n.valueDom,t),i=!0):this.removeHighlightSearch(n.valueDom),e.toggleClass("coveo-search-match",i),i)},t.prototype.buildEnableDebugCheckbox=function(n,t,i){var r=this,f=u.Dom.createElement("div",{className:"coveo-enabled-debug"},"<label>Enable query debug <input type='checkbox'/><\/label>"),e;u.$$(f).on("click",function(n){n.stopPropagation()});return e=u.$$(f).find("input"),this.debug&&e.setAttribute("checked","checked"),e.onchange=function(){r.debug=!r.debug;u.$$(r.element).one([o.QueryEvents.querySuccess,o.QueryEvents.queryError],function(t,r){u.$$(n).removeClass("coveo-debug-loading");u.$$(n).empty();u.$$(i(r.results)).children().forEach(function(t){n.appendChild(t)})});r.queryController.executeQuery({closeModalBox:!1});u.$$(n).addClass("coveo-debug-loading");var f=t.querySelector("input");f.value="";f.onkeyup(null)},f},t.prototype.buildEnabledHighlightRecommendation=function(){var n=this,t=u.Dom.createElement("div",{className:"coveo-enabled-highlight-recommendation"},"<label>Highlight recommendation <input type='checkbox'/><\/label>"),i;return t.onclick=function(n){n.stopPropagation()},i=u.$$(t).find("input"),this.highlightRecommendation&&i.setAttribute("checked","checked"),i.onchange=function(){n.highlightRecommendation=!n.highlightRecommendation;n.queryController.executeQuery({closeModalBox:!1})},t},t.prototype.buildSection=function(n){var t=this,i=u.Dom.createElement("div",{className:"coveo-section coveo-"+n+"-section"}),f=u.Dom.createElement("div",{className:"coveo-section-header"}),e;return u.$$(f).text(n),i.appendChild(f),e=u.Dom.createElement("div",{className:"coveo-section-container"}),i.appendChild(e),r.contains(this.collapsedSections,n)&&u.$$(i).addClass("coveo-debug-collapsed"),f.onclick=function(){u.$$(i).toggleClass("coveo-debug-collapsed");r.contains(t.collapsedSections,n)?t.collapsedSections=r.without(t.collapsedSections,n):t.collapsedSections.push(n);t.localStorageDebug.save(t.collapsedSections)},{dom:i,header:f,container:e}},t.prototype.fetchFields=function(){var n=this;return null==this.fields?this.queryController.getEndpoint().listFields().then(function(t){return n.fields={},t.forEach(function(t){n.fields[t.name]=t}),n.fields}):s.Promise.resolve(this.fields)},t.prototype.buildRankingInfoSection=function(n){return n.rankingInfo&&this.parseRankingInfo(n.rankingInfo)},t.prototype.parseWeights=function(n){var t=n.match(/(\w+(?:\s\w+)*): ([-0-9]+)/g);return r.object(r.map(t,function(n){var t=n.match(/^(\w+(?:\s\w+)*): ([-0-9]+)$/);return[t[1],Number(t[2])]}))},t.prototype.buildProperty=function(n,t){return n instanceof s.Promise?this.buildPromise(n,t):!r.isArray(n)&&!r.isObject(n)||r.isString(n)?this.buildBasicProperty(n,t):this.buildObjectProperty(n,t)},t.prototype.buildPromise=function(n,t){var r=this,i=document.createElement("div");return i.className="coveo-property coveo-property-promise",n.then(function(n){var f=r.buildProperty(n,t);u.$$(i).replaceWith(f)}),i},t.prototype.buildObjectProperty=function(n,t){var c=this,i=document.createElement("div"),f,e,o,s,u,h;return i.className="coveo-property coveo-property-object",f=document.createElement("div"),f.className="coveo-property-value",e=r.keys(n),r.isArray(n)||e.sort(),s=function(){return null==o&&(o=[],r.each(e,function(t){var i=c.buildProperty(n[t],t);null!=i&&(o.push(i),f.appendChild(i))})),o},(i.buildKeys=s,null!=t)?(u=document.createElement("div"),u.className="coveo-property-label",u.appendChild(document.createTextNode(t)),i.labelDom=u,i.appendChild(u),0!=e.length&&(i.className+=" coveo-collapsible",u.onclick=function(){s();var n=i.className.split(/\s+/);r.contains(n,"coveo-expanded")?n=r.without(n,"coveo-expanded"):n.push("coveo-expanded");i.className=n.join(" ")})):s(),0==e.length&&(h=r.without(i.className.split(/\s+/),"coveo-property-object"),h.push("coveo-property-basic"),i.className=h.join(" "),f.innerHTML=r.isArray(n)?"[]":"{}",i.values=""),i.label=null!=t?t.toLowerCase():"",i.appendChild(f),i},t.prototype.buildBasicProperty=function(n,t){var s=this,u=document.createElement("div"),e,o,f,i;return(u.className="coveo-property coveo-property-basic",null!=t)&&(e=document.createElement("div"),e.className="coveo-property-label",e.appendChild(document.createTextNode(t)),u.appendChild(e),u.labelDom=e),o=null!=n?n.toString():String(n),null!=n&&null!=n.ref&&(n=n.ref),f=document.createElement("div"),f.appendChild(document.createTextNode(o)),f.ondblclick=function(){s.selectElementText(f)},u.appendChild(f),u.valueDom=f,i=["coveo-property-value"],r.isString(n)&&i.push("coveo-property-value-string"),(r.isNull(n)||r.isUndefined(n))&&i.push("coveo-property-value-null"),r.isNumber(n)&&i.push("coveo-property-value-number"),r.isBoolean(n)&&i.push("coveo-property-value-boolean"),r.isDate(n)&&i.push("coveo-property-value-date"),r.isObject(n)&&i.push("coveo-property-value-object"),r.isArray(n)&&i.push("coveo-property-value-array"),f.className=i.join(" "),u.label=null!=t?t.toLowerCase():"",u.values=o.toLowerCase(),u},t.prototype.toJson=function(n,i,u){var e=this,f;return(void 0===i&&(i=0),void 0===u&&(u=[]),n instanceof b.BaseComponent||n instanceof y.SearchEndpoint)?this.componentToJson(n,i):n instanceof HTMLElement?this.htmlToJson(n):n instanceof p.Template?this.templateToJson(n):n instanceof s.Promise?n.then(function(n){return e.toJson(n,i,u)}):n==window?this.toJsonRef(n):r.isArray(n)||r.isObject(n)?r.contains(u,n)?this.toJsonRef(n,"< RECURSIVE >"):i>=t.maxDepth?this.toJsonRef(n):r.isArray(n)?r.map(n,function(t){return e.toJson(t,i+1,u.concat([n]))}):r.isDate(n)?this.toJsonRef(n,d.format(n,"F")):(f={},r.each(n,function(t,r){f[r]=e.toJson(t,i+1,u.concat([n]))}),f.ref,f):n},t.prototype.toJsonRef=function(n,t){return t=new String(t||n),t.ref=n,t},t.prototype.componentToJson=function(n,t){void 0===t&&(t=0);var i=r.keys(n.options);return i.length>0?this.toJson(n.options,t):this.toJsonRef(n.options,new String("No options"))},t.prototype.htmlToJson=function(n){if(null!=n)return{tagName:n.tagName,id:n.id,classList:n.className.split(/\s+/)}},t.prototype.templateToJson=function(n){if(null==n)return null;var t=n.element,i={type:n.getType()};return null!=t&&(i.id=t.id,i.condition=t.attributes["data-condition"],i.content=t.innerText),i},t.prototype.selectElementText=function(n){var t,i,r;window.getSelection&&document.createRange?(t=window.getSelection(),i=document.createRange(),i.selectNodeContents(n),t.removeAllRanges(),t.addRange(i)):"createTextRange"in document.body&&(r=document.body.createTextRange(),r.moveToElementText(n),r.select())},t.prototype.highlightSearch=function(n,t){if(null!=n){var i=n.innerText.split(new RegExp("(?="+e.StringUtils.regexEncode(t)+")","gi"));n.innerHTML="";i.forEach(function(i){var r,o=new RegExp("("+e.StringUtils.regexEncode(t)+")","i"),f=i.match(o);null!=f?(r=u.Dom.createElement("span",{className:"coveo-debug-highlight"}),r.appendChild(document.createTextNode(f[1])),n.appendChild(r),r=u.Dom.createElement("span"),r.appendChild(document.createTextNode(i.substr(f[1].length))),n.appendChild(r)):(r=u.Dom.createElement("span"),r.appendChild(document.createTextNode(i)),n.appendChild(r))})}},t.prototype.removeHighlightSearch=function(n){null!=n&&(n.innerHTML=n.innerText)},t}(w.RootComponent);f.ID="Debug";f.options={enableDebug:h.ComponentOptions.buildBooleanOption({defaultValue:!1})};f.customOrder=["error","queryDuration","result","fields","rankingInfo","template","query","results","state"];f.durationKeys=["indexDuration","proxyDuration","clientDuration","duration"];f.maxDepth=10;t.Debug=f},function(n,t,i){var r;!function(){"use strict";function u(n,t){function s(n,t){return function(){return n.apply(t,arguments)}}var o;if(t=t||{},this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=t.touchBoundary||10,this.layer=n,this.tapDelay=t.tapDelay||200,this.tapTimeout=t.tapTimeout||700,!u.notNeeded(n)){for(var r=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"],f=this,i=0,h=r.length;i<h;i++)f[r[i]]=s(f[r[i]],f);e&&(n.addEventListener("mouseover",this.onMouse,!0),n.addEventListener("mousedown",this.onMouse,!0),n.addEventListener("mouseup",this.onMouse,!0));n.addEventListener("click",this.onClick,!0);n.addEventListener("touchstart",this.onTouchStart,!1);n.addEventListener("touchmove",this.onTouchMove,!1);n.addEventListener("touchend",this.onTouchEnd,!1);n.addEventListener("touchcancel",this.onTouchCancel,!1);Event.prototype.stopImmediatePropagation||(n.removeEventListener=function(t,i,r){var u=Node.prototype.removeEventListener;"click"===t?u.call(n,t,i.hijacked||i,r):u.call(n,t,i,r)},n.addEventListener=function(t,i,r){var u=Node.prototype.addEventListener;"click"===t?u.call(n,t,i.hijacked||(i.hijacked=function(n){n.propagationStopped||i(n)}),r):u.call(n,t,i,r)});"function"==typeof n.onclick&&(o=n.onclick,n.addEventListener("click",function(n){o(n)},!1),n.onclick=null)}}var o=navigator.userAgent.indexOf("Windows Phone")>=0,e=navigator.userAgent.indexOf("Android")>0&&!o,f=/iP(ad|hone|od)/.test(navigator.userAgent)&&!o,s=f&&/OS 4_\d(_\d)?/.test(navigator.userAgent),h=f&&/OS [6-7]_\d/.test(navigator.userAgent),c=navigator.userAgent.indexOf("BB10")>0;u.prototype.needsClick=function(n){switch(n.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(n.disabled)return!0;break;case"input":if(f&&"file"===n.type||n.disabled)return!0;break;case"label":case"iframe":case"video":return!0}return/\bneedsclick\b/.test(n.className)};u.prototype.needsFocus=function(n){switch(n.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!e;case"input":switch(n.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!n.disabled&&!n.readOnly;default:return/\bneedsfocus\b/.test(n.className)}};u.prototype.sendClick=function(n,t){var r,i;document.activeElement&&document.activeElement!==n&&document.activeElement.blur();i=t.changedTouches[0];r=document.createEvent("MouseEvents");r.initMouseEvent(this.determineEventType(n),!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null);r.forwardedTouchEvent=!0;n.dispatchEvent(r)};u.prototype.determineEventType=function(n){return e&&"select"===n.tagName.toLowerCase()?"mousedown":"click"};u.prototype.focus=function(n){var t;f&&n.setSelectionRange&&0!==n.type.indexOf("date")&&"time"!==n.type&&"month"!==n.type?(t=n.value.length,n.setSelectionRange(t,t)):n.focus()};u.prototype.updateScrollParent=function(n){var i,t;if(i=n.fastClickScrollParent,!i||!i.contains(n)){t=n;do{if(t.scrollHeight>t.offsetHeight){i=t;n.fastClickScrollParent=t;break}t=t.parentElement}while(t)}i&&(i.fastClickLastScrollTop=i.scrollTop)};u.prototype.getTargetElementFromEventTarget=function(n){return n.nodeType===Node.TEXT_NODE?n.parentNode:n};u.prototype.onTouchStart=function(n){var i,t,r;if(n.targetTouches.length>1)return!0;if(i=this.getTargetElementFromEventTarget(n.target),t=n.targetTouches[0],f){if(r=window.getSelection(),r.rangeCount&&!r.isCollapsed)return!0;if(!s){if(t.identifier&&t.identifier===this.lastTouchIdentifier)return n.preventDefault(),!1;this.lastTouchIdentifier=t.identifier;this.updateScrollParent(i)}}return this.trackingClick=!0,this.trackingClickStart=n.timeStamp,this.targetElement=i,this.touchStartX=t.pageX,this.touchStartY=t.pageY,n.timeStamp-this.lastClickTime<this.tapDelay&&n.preventDefault(),!0};u.prototype.touchHasMoved=function(n){var t=n.changedTouches[0],i=this.touchBoundary;return Math.abs(t.pageX-this.touchStartX)>i||Math.abs(t.pageY-this.touchStartY)>i};u.prototype.onTouchMove=function(n){return!this.trackingClick||((this.targetElement!==this.getTargetElementFromEventTarget(n.target)||this.touchHasMoved(n))&&(this.trackingClick=!1,this.targetElement=null),!0)};u.prototype.findControl=function(n){return void 0!==n.control?n.control:n.htmlFor?document.getElementById(n.htmlFor):n.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")};u.prototype.onTouchEnd=function(n){var o,c,i,r,u,t=this.targetElement;if(!this.trackingClick)return!0;if(n.timeStamp-this.lastClickTime<this.tapDelay)return this.cancelNextClick=!0,!0;if(n.timeStamp-this.trackingClickStart>this.tapTimeout)return!0;if(this.cancelNextClick=!1,this.lastClickTime=n.timeStamp,c=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,h&&(u=n.changedTouches[0],t=document.elementFromPoint(u.pageX-window.pageXOffset,u.pageY-window.pageYOffset)||t,t.fastClickScrollParent=this.targetElement.fastClickScrollParent),i=t.tagName.toLowerCase(),"label"===i){if(o=this.findControl(t)){if(this.focus(t),e)return!1;t=o}}else if(this.needsFocus(t))return n.timeStamp-c>100||f&&window.top!==window&&"input"===i?(this.targetElement=null,!1):(this.focus(t),this.sendClick(t,n),f&&"select"===i||(this.targetElement=null,n.preventDefault()),!1);return!(!f||s||(r=t.fastClickScrollParent,!r||r.fastClickLastScrollTop===r.scrollTop))||(this.needsClick(t)||(n.preventDefault(),this.sendClick(t,n)),!1)};u.prototype.onTouchCancel=function(){this.trackingClick=!1;this.targetElement=null};u.prototype.onMouse=function(n){return!this.targetElement||!!n.forwardedTouchEvent||!n.cancelable||!(!this.needsClick(this.targetElement)||this.cancelNextClick)||(n.stopImmediatePropagation?n.stopImmediatePropagation():n.propagationStopped=!0,n.stopPropagation(),n.preventDefault(),!1)};u.prototype.onClick=function(n){var t;return this.trackingClick?(this.targetElement=null,this.trackingClick=!1,!0):"submit"===n.target.type&&0===n.detail||(t=this.onMouse(n),t||(this.targetElement=null),t)};u.prototype.destroy=function(){var n=this.layer;e&&(n.removeEventListener("mouseover",this.onMouse,!0),n.removeEventListener("mousedown",this.onMouse,!0),n.removeEventListener("mouseup",this.onMouse,!0));n.removeEventListener("click",this.onClick,!0);n.removeEventListener("touchstart",this.onTouchStart,!1);n.removeEventListener("touchmove",this.onTouchMove,!1);n.removeEventListener("touchend",this.onTouchEnd,!1);n.removeEventListener("touchcancel",this.onTouchCancel,!1)};u.notNeeded=function(n){var t,r,i,u;return"undefined"==typeof ontouchstart?!0:(r=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1])&&(!e||(t=document.querySelector("meta[name=viewport]"))&&(t.content.indexOf("user-scalable=no")!==-1||r>31&&document.documentElement.scrollWidth<=window.outerWidth))?!0:c&&(i=navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/),i[1]>=10&&i[2]>=3&&(t=document.querySelector("meta[name=viewport]")))&&(t.content.indexOf("user-scalable=no")!==-1||document.documentElement.scrollWidth<=window.outerWidth)?!0:"none"===n.style.msTouchAction||"manipulation"===n.style.touchAction||(u=+(/Firefox\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1],!!(u>=27&&(t=document.querySelector("meta[name=viewport]"),t&&(t.content.indexOf("user-scalable=no")!==-1||document.documentElement.scrollWidth<=window.outerWidth)))||"none"===n.style.touchAction||"manipulation"===n.style.touchAction)};u.attach=function(n,t){return new u(n,t)};r=function(){return u}.call(t,i,t,n);!(void 0!==r&&(n.exports=r))}()},function(n,t,i){var u,r;!function(f){var e=function(){"use strict";var t="s",n={DAY:864e5,HOUR:36e5,MINUTE:6e4,SECOND:1e3,BASELINE_YEAR:2014,MAX_SCORE:864e6,AMBIGUITIES:{"America/Denver":["America/Mazatlan"],"Europe/London":["Africa/Casablanca"],"America/Chicago":["America/Mexico_City"],"America/Asuncion":["America/Campo_Grande","America/Santiago"],"America/Montevideo":["America/Sao_Paulo","America/Santiago"],"Asia/Beirut":["Asia/Amman","Asia/Jerusalem","Europe/Helsinki","Asia/Damascus","Africa/Cairo","Asia/Gaza","Europe/Minsk"],"Pacific/Auckland":["Pacific/Fiji"],"America/Los_Angeles":["America/Santa_Isabel"],"America/New_York":["America/Havana"],"America/Halifax":["America/Goose_Bay"],"America/Godthab":["America/Miquelon"],"Asia/Dubai":["Asia/Yerevan"],"Asia/Jakarta":["Asia/Krasnoyarsk"],"Asia/Shanghai":["Asia/Irkutsk","Australia/Perth"],"Australia/Sydney":["Australia/Lord_Howe"],"Asia/Tokyo":["Asia/Yakutsk"],"Asia/Dhaka":["Asia/Omsk"],"Asia/Baku":["Asia/Yerevan"],"Australia/Brisbane":["Asia/Vladivostok"],"Pacific/Noumea":["Asia/Vladivostok"],"Pacific/Majuro":["Asia/Kamchatka","Pacific/Fiji"],"Pacific/Tongatapu":["Pacific/Apia"],"Asia/Baghdad":["Europe/Minsk","Europe/Moscow"],"Asia/Karachi":["Asia/Yekaterinburg"],"Africa/Johannesburg":["Asia/Gaza","Africa/Cairo"]}},i=function(n){var t=-n.getTimezoneOffset();return null!==t?t:0},u=function(){var r=i(new Date(n.BASELINE_YEAR,0,2)),u=i(new Date(n.BASELINE_YEAR,5,2)),f=r-u;return f<0?r+",1":f>0?u+",1,"+t:r+",0"},f=function(){var t,n;if("undefined"!=typeof Intl&&"undefined"!=typeof Intl.DateTimeFormat&&(t=Intl.DateTimeFormat(),"undefined"!=typeof t&&"undefined"!=typeof t.resolvedOptions))return n=t.resolvedOptions().timeZone,n&&(n.indexOf("/")>-1||"UTC"===n)?n:void 0},o=function(n){for(var f,t,s=new Date(n,0,1,0,0,1,0).getTime(),h=new Date(n,12,31,23,59,59).getTime(),i=s,u=new Date(i).getTimezoneOffset(),e=null,o=null;i<h-864e5;)f=new Date(i),t=f.getTimezoneOffset(),t!==u&&(t<u&&(e=f),t>u&&(o=f),u=t),i+=864e5;return!(!e||!o)&&{s:r(e).getTime(),e:r(o).getTime()}},r=function t(i,r,u){var o,h;"undefined"==typeof r&&(r=n.DAY,u=n.HOUR);for(var s=new Date(i.getTime()-r).getTime(),c=i.getTime()+r,l=new Date(s).getTimezoneOffset(),e=s,f=null;e<c-u;){if(o=new Date(e),h=o.getTimezoneOffset(),h!==l){f=o;break}e+=u}return r===n.DAY?t(f,n.HOUR,n.MINUTE):r===n.HOUR?t(f,n.MINUTE,n.SECOND):f},s=function(n,t,i,r){if("N/A"!==i)return i;if("Asia/Beirut"===t){if("Africa/Cairo"===r.name&&13983768e5===n[6].s&&14116788e5===n[6].e||"Asia/Jerusalem"===r.name&&13959648e5===n[6].s&&14118588e5===n[6].e)return 0}else if("America/Santiago"===t){if("America/Asuncion"===r.name&&14124816e5===n[6].s&&1397358e6===n[6].e||"America/Campo_Grande"===r.name&&14136912e5===n[6].s&&13925196e5===n[6].e)return 0}else if("America/Montevideo"===t){if("America/Sao_Paulo"===r.name&&14136876e5===n[6].s&&1392516e6===n[6].e)return 0}else if("Pacific/Auckland"===t&&"Pacific/Fiji"===r.name&&14142456e5===n[6].s&&13961016e5===n[6].e)return 0;return i},h=function(t,i){for(var a,c,u,f,v=function(r){for(var f=0,u=0;u<t.length;u++)if(r.rules[u]&&t[u]){if(!(t[u].s>=r.rules[u].s&&t[u].e<=r.rules[u].e)){f="N/A";break}if(f=0,f+=Math.abs(t[u].s-r.rules[u].s),f+=Math.abs(r.rules[u].e-t[u].e),f>n.MAX_SCORE){f="N/A";break}}return s(t,i,f,r)},o={},h=e.olson.dst_rules.zones,y=h.length,l=n.AMBIGUITIES[i],r=0;r<y;r++)a=h[r],c=v(h[r]),"N/A"!==c&&(o[a.name]=c);for(u in o)if(o.hasOwnProperty(u))for(f=0;f<l.length;f++)if(l[f]===u)return u;return i},c=function(n){var i=function(){for(var i,t=[],n=0;n<e.olson.dst_rules.years.length;n++)i=o(e.olson.dst_rules.years[n]),t.push(i);return t},r=function(n){for(var t=0;t<n.length;t++)if(n[t]!==!1)return!0;return!1},t=i(),u=r(t);return u?h(t,n):n},l=function(){var t=f();return t||(t=e.olson.timezones[u()],"undefined"!=typeof n.AMBIGUITIES[t]&&(t=c(t))),{name:function(){return t}}};return{determine:l}}();e.olson=e.olson||{};e.olson.timezones={"-720,0":"Etc/GMT+12","-660,0":"Pacific/Pago_Pago","-660,1,s":"Pacific/Apia","-600,1":"America/Adak","-600,0":"Pacific/Honolulu","-570,0":"Pacific/Marquesas","-540,0":"Pacific/Gambier","-540,1":"America/Anchorage","-480,1":"America/Los_Angeles","-480,0":"Pacific/Pitcairn","-420,0":"America/Phoenix","-420,1":"America/Denver","-360,0":"America/Guatemala","-360,1":"America/Chicago","-360,1,s":"Pacific/Easter","-300,0":"America/Bogota","-300,1":"America/New_York","-270,0":"America/Caracas","-240,1":"America/Halifax","-240,0":"America/Santo_Domingo","-240,1,s":"America/Asuncion","-210,1":"America/St_Johns","-180,1":"America/Godthab","-180,0":"America/Argentina/Buenos_Aires","-180,1,s":"America/Montevideo","-120,0":"America/Noronha","-120,1":"America/Noronha","-60,1":"Atlantic/Azores","-60,0":"Atlantic/Cape_Verde","0,0":"UTC","0,1":"Europe/London","60,1":"Europe/Berlin","60,0":"Africa/Lagos","60,1,s":"Africa/Windhoek","120,1":"Asia/Beirut","120,0":"Africa/Johannesburg","180,0":"Asia/Baghdad","180,1":"Europe/Moscow","210,1":"Asia/Tehran","240,0":"Asia/Dubai","240,1":"Asia/Baku","270,0":"Asia/Kabul","300,1":"Asia/Yekaterinburg","300,0":"Asia/Karachi","330,0":"Asia/Kolkata","345,0":"Asia/Kathmandu","360,0":"Asia/Dhaka","360,1":"Asia/Omsk","390,0":"Asia/Rangoon","420,1":"Asia/Krasnoyarsk","420,0":"Asia/Jakarta","480,0":"Asia/Shanghai","480,1":"Asia/Irkutsk","525,0":"Australia/Eucla","525,1,s":"Australia/Eucla","540,1":"Asia/Yakutsk","540,0":"Asia/Tokyo","570,0":"Australia/Darwin","570,1,s":"Australia/Adelaide","600,0":"Australia/Brisbane","600,1":"Asia/Vladivostok","600,1,s":"Australia/Sydney","630,1,s":"Australia/Lord_Howe","660,1":"Asia/Kamchatka","660,0":"Pacific/Noumea","690,0":"Pacific/Norfolk","720,1,s":"Pacific/Auckland","720,0":"Pacific/Majuro","765,1,s":"Pacific/Chatham","780,0":"Pacific/Tongatapu","780,1,s":"Pacific/Apia","840,0":"Pacific/Kiritimati"};e.olson.dst_rules={years:[2008,2009,2010,2011,2012,2013,2014],zones:[{name:"Africa/Cairo",rules:[{e:12199572e5,s:12090744e5},{e:1250802e6,s:1240524e6},{e:12858804e5,s:12840696e5},!1,!1,!1,{e:14116788e5,s:1406844e6}]},{name:"Africa/Casablanca",rules:[{e:12202236e5,s:12122784e5},{e:12508092e5,s:12438144e5},{e:1281222e6,s:12727584e5},{e:13120668e5,s:13017888e5},{e:13489704e5,s:1345428e6},{e:13828392e5,s:13761e8},{e:14142888e5,s:14069448e5}]},{name:"America/Asuncion",rules:[{e:12050316e5,s:12243888e5},{e:12364812e5,s:12558384e5},{e:12709548e5,s:12860784e5},{e:13024044e5,s:1317528e6},{e:1333854e6,s:13495824e5},{e:1364094e6,s:1381032e6},{e:13955436e5,s:14124816e5}]},{name:"America/Campo_Grande",rules:[{e:12032172e5,s:12243888e5},{e:12346668e5,s:12558384e5},{e:12667212e5,s:1287288e6},{e:12981708e5,s:13187376e5},{e:13302252e5,s:1350792e6},{e:136107e7,s:13822416e5},{e:13925196e5,s:14136912e5}]},{name:"America/Goose_Bay",rules:[{e:122559486e4,s:120503526e4},{e:125704446e4,s:123648486e4},{e:128909886e4,s:126853926e4},{e:13205556e5,s:129998886e4},{e:13520052e5,s:13314456e5},{e:13834548e5,s:13628952e5},{e:14149044e5,s:13943448e5}]},{name:"America/Havana",rules:[{e:12249972e5,s:12056436e5},{e:12564468e5,s:12364884e5},{e:12885012e5,s:12685428e5},{e:13211604e5,s:13005972e5},{e:13520052e5,s:13332564e5},{e:13834548e5,s:13628916e5},{e:14149044e5,s:13943412e5}]},{name:"America/Mazatlan",rules:[{e:1225008e6,s:12074724e5},{e:12564576e5,s:1238922e6},{e:1288512e6,s:12703716e5},{e:13199616e5,s:13018212e5},{e:13514112e5,s:13332708e5},{e:13828608e5,s:13653252e5},{e:14143104e5,s:13967748e5}]},{name:"America/Mexico_City",rules:[{e:12250044e5,s:12074688e5},{e:1256454e6,s:12389184e5},{e:12885084e5,s:1270368e6},{e:1319958e6,s:13018176e5},{e:13514076e5,s:13332672e5},{e:13828572e5,s:13653216e5},{e:14143068e5,s:13967712e5}]},{name:"America/Miquelon",rules:[{e:12255984e5,s:12050388e5},{e:1257048e6,s:12364884e5},{e:12891024e5,s:12685428e5},{e:1320552e6,s:12999924e5},{e:13520016e5,s:1331442e6},{e:13834512e5,s:13628916e5},{e:14149008e5,s:13943412e5}]},{name:"America/Santa_Isabel",rules:[{e:12250116e5,s:1207476e6},{e:12564612e5,s:12389256e5},{e:12885156e5,s:12703752e5},{e:13199652e5,s:13018248e5},{e:13514148e5,s:13332744e5},{e:13828644e5,s:13653288e5},{e:1414314e6,s:13967784e5}]},{name:"America/Santiago",rules:[{e:1206846e6,s:1223784e6},{e:1237086e6,s:12552336e5},{e:127035e7,s:12866832e5},{e:13048236e5,s:13138992e5},{e:13356684e5,s:13465584e5},{e:1367118e6,s:13786128e5},{e:13985676e5,s:14100624e5}]},{name:"America/Sao_Paulo",rules:[{e:12032136e5,s:12243852e5},{e:12346632e5,s:12558348e5},{e:12667176e5,s:12872844e5},{e:12981672e5,s:1318734e6},{e:13302216e5,s:13507884e5},{e:13610664e5,s:1382238e6},{e:1392516e6,s:14136876e5}]},{name:"Asia/Amman",rules:[{e:1225404e6,s:12066552e5},{e:12568536e5,s:12381048e5},{e:12883032e5,s:12695544e5},{e:13197528e5,s:13016088e5},!1,!1,{e:14147064e5,s:13959576e5}]},{name:"Asia/Damascus",rules:[{e:12254868e5,s:120726e7},{e:125685e7,s:12381048e5},{e:12882996e5,s:12701592e5},{e:13197492e5,s:13016088e5},{e:13511988e5,s:13330584e5},{e:13826484e5,s:1364508e6},{e:14147028e5,s:13959576e5}]},{name:"Asia/Dubai",rules:[!1,!1,!1,!1,!1,!1,!1]},{name:"Asia/Gaza",rules:[{e:12199572e5,s:12066552e5},{e:12520152e5,s:12381048e5},{e:1281474e6,s:126964086e4},{e:1312146e6,s:130160886e4},{e:13481784e5,s:13330584e5},{e:13802292e5,s:1364508e6},{e:1414098e6,s:13959576e5}]},{name:"Asia/Irkutsk",rules:[{e:12249576e5,s:12068136e5},{e:12564072e5,s:12382632e5},{e:12884616e5,s:12697128e5},!1,!1,!1,!1]},{name:"Asia/Jerusalem",rules:[{e:12231612e5,s:12066624e5},{e:1254006e6,s:1238112e6},{e:1284246e6,s:12695616e5},{e:131751e7,s:1301616e6},{e:13483548e5,s:13330656e5},{e:13828284e5,s:13645152e5},{e:1414278e6,s:13959648e5}]},{name:"Asia/Kamchatka",rules:[{e:12249432e5,s:12067992e5},{e:12563928e5,s:12382488e5},{e:12884508e5,s:12696984e5},!1,!1,!1,!1]},{name:"Asia/Krasnoyarsk",rules:[{e:12249612e5,s:12068172e5},{e:12564108e5,s:12382668e5},{e:12884652e5,s:12697164e5},!1,!1,!1,!1]},{name:"Asia/Omsk",rules:[{e:12249648e5,s:12068208e5},{e:12564144e5,s:12382704e5},{e:12884688e5,s:126972e7},!1,!1,!1,!1]},{name:"Asia/Vladivostok",rules:[{e:12249504e5,s:12068064e5},{e:12564e8,s:1238256e6},{e:12884544e5,s:12697056e5},!1,!1,!1,!1]},{name:"Asia/Yakutsk",rules:[{e:1224954e6,s:120681e7},{e:12564036e5,s:12382596e5},{e:1288458e6,s:12697092e5},!1,!1,!1,!1]},{name:"Asia/Yekaterinburg",rules:[{e:12249684e5,s:12068244e5},{e:1256418e6,s:1238274e6},{e:12884724e5,s:12697236e5},!1,!1,!1,!1]},{name:"Asia/Yerevan",rules:[{e:1224972e6,s:1206828e6},{e:12564216e5,s:12382776e5},{e:1288476e6,s:12697272e5},{e:13199256e5,s:13011768e5},!1,!1,!1]},{name:"Australia/Lord_Howe",rules:[{e:12074076e5,s:12231342e5},{e:12388572e5,s:12545838e5},{e:12703068e5,s:12860334e5},{e:13017564e5,s:1317483e6},{e:1333206e6,s:13495374e5},{e:13652604e5,s:1380987e6},{e:139671e7,s:14124366e5}]},{name:"Australia/Perth",rules:[{e:12068136e5,s:12249576e5},!1,!1,!1,!1,!1,!1]},{name:"Europe/Helsinki",rules:[{e:12249828e5,s:12068388e5},{e:12564324e5,s:12382884e5},{e:12884868e5,s:1269738e6},{e:13199364e5,s:13011876e5},{e:1351386e6,s:13326372e5},{e:13828356e5,s:13646916e5},{e:14142852e5,s:13961412e5}]},{name:"Europe/Minsk",rules:[{e:12249792e5,s:12068352e5},{e:12564288e5,s:12382848e5},{e:12884832e5,s:12697344e5},!1,!1,!1,!1]},{name:"Europe/Moscow",rules:[{e:12249756e5,s:12068316e5},{e:12564252e5,s:12382812e5},{e:12884796e5,s:12697308e5},!1,!1,!1,!1]},{name:"Pacific/Apia",rules:[!1,!1,!1,{e:13017528e5,s:13168728e5},{e:13332024e5,s:13489272e5},{e:13652568e5,s:13803768e5},{e:13967064e5,s:14118264e5}]},{name:"Pacific/Fiji",rules:[!1,!1,{e:12696984e5,s:12878424e5},{e:13271544e5,s:1319292e6},{e:1358604e6,s:13507416e5},{e:139005e7,s:1382796e6},{e:14215032e5,s:14148504e5}]},{name:"Europe/London",rules:[{e:12249828e5,s:12068388e5},{e:12564324e5,s:12382884e5},{e:12884868e5,s:1269738e6},{e:13199364e5,s:13011876e5},{e:1351386e6,s:13326372e5},{e:13828356e5,s:13646916e5},{e:14142852e5,s:13961412e5}]}]};"undefined"!=typeof n&&"undefined"!=typeof n.exports?n.exports=e:null!==i(123)&&null!=i(124)?(u=[],r=function(){return e}.apply(t,u),!(void 0!==r&&(n.exports=r))):"undefined"==typeof f?window.jstz=e:f.jstz=e}()},function(n){n.exports=function(){throw new Error("define cannot be used indirect");}},function(n,t){(function(t){n.exports=t}).call(t,{})},function(n,t,i){"use strict";var r=i(11),u=i(16),f=i(14),e=function(){function n(n,t){void 0===t&&(t=window);this.queryController=n;this.windoh=t;this.logger=new r.Logger(this);this.bindErrorHandler()}return n.prototype.bindErrorHandler=function(){var t=this,n=this.windoh.onerror;this.windoh.onerror=f.isFunction(n)?function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];n.apply(n,r);t.handleError.apply(t,r)}:this.handleError.bind(this)},n.prototype.handleError=function(n,t,i,r,f){if(t.toLowerCase().match(/coveo/)&&!this.windoh.location.host.toLowerCase().match(/localhost/)){var e={message:n,filename:t,line:i,column:r,error:f.toString(),errorStack:f.stack,device:u.DeviceUtils.getDeviceName()},o={level:"DEBUG",title:this.windoh.location.href,message:JSON.stringify(e)};this.queryController.getEndpoint().logError(o)}},n}();t.SentryLogger=e},function(n,t,i){"use strict";var o=i(127),u=i(59),f=i(103),r=i(102),s=i(11),h=i(106),e=i(14),c=function(){function n(n,t){this.coveoRoot=n;this.ID=t;this.searchInterface=f.Component.get(this.coveoRoot.el,h.SearchInterface,!1)}return n.init=function(t,i,e){if(!u.$$(t).find("."+f.Component.computeCssClassName(r.ResultLayout))){var h=new s.Logger("ResponsiveResultLayout");return void h.trace("No ResultLayout component found : Cannot instantiate ResponsiveResultLayout")}o.ResponsiveComponentsManager.register(n,u.$$(t),r.ResultLayout.ID,i,e)},n.prototype.registerComponent=function(n){return n instanceof r.ResultLayout&&(this.resultLayout=n,!0)},n.prototype.handleResizeEvent=function(){this.needSmallMode()?this.enableAndDisableLayout(this.resultLayout.options.mobileLayouts):this.needMediumMode()?this.enableAndDisableLayout(this.resultLayout.options.tabletLayouts):this.enableAndDisableLayout(this.resultLayout.options.desktopLayouts)},n.prototype.enableAndDisableLayout=function(n){var t=e.difference(r.ResultLayout.validLayouts,n),i=e.intersection(r.ResultLayout.validLayouts,n);this.resultLayout.disableLayouts(t);this.resultLayout.enableLayouts(i)},n.prototype.needSmallMode=function(){return this.coveoRoot.width()<=this.searchInterface.responsiveComponents.getSmallScreenWidth()},n.prototype.needMediumMode=function(){return this.coveoRoot.width()<=this.searchInterface.responsiveComponents.getMediumScreenWidth()},n}();t.ResponsiveResultLayout=c},function(n,t,i){"use strict";var f=i(59),o=i(45),s=i(103),e=i(106),c=i(13),l=i(128),a=i(48),h=i(11),r=i(14),u=function(){function n(t){var i=this;this.disabledComponents=[];this.responsiveComponents=[];this.coveoRoot=t;this.searchInterface=s.Component.get(this.coveoRoot.el,e.SearchInterface,!1);this.dropdownHeadersWrapper=f.$$("div",{className:n.DROPDOWN_HEADER_WRAPPER_CSS_CLASS});this.searchBoxElement=this.getSearchBoxElement();this.logger=new h.Logger(this);this.resizeListener=r.debounce(function(){0!=i.coveoRoot.width()?(i.addDropdownHeaderWrapperIfNeeded(),i.shouldSwitchToSmallMode()?i.coveoRoot.addClass("coveo-small-interface"):i.shouldSwitchToSmallMode()||i.coveoRoot.removeClass("coveo-small-interface"),r.each(i.responsiveComponents,function(n){n.handleResizeEvent()})):i.logger.warn("The width of the search interface is 0, cannot dispatch resize events to responsive components. This means that the tabs will not\n        automatically fit in the tab section. Also, the facet and recommendation component will not hide in a menu. Could the search\n        interface display property be none? Could its visibility property be set to hidden? Also, if either of these scenarios happen during\n        loading, it could be the cause of this issue.")},n.RESIZE_DEBOUNCE_DELAY);window.addEventListener("resize",this.resizeListener);this.bindNukeEvents()}return n.register=function(t,i,u,f,e){var s=this;i.on(o.InitializationEvents.afterInitialization,function(){var o,l;if(s.shouldEnableResponsiveMode(i)){if(o=r.find(s.componentManagers,function(n){return i.el==n.coveoRoot.el}),o||(o=new n(i),s.componentManagers.push(o)),!c.Utils.isNullOrUndefined(e.enableResponsiveMode)&&!e.enableResponsiveMode)return void o.disableComponent(u);s.componentInitializations.push({responsiveComponentsManager:o,arguments:[t,i,u,f,e]})}(s.remainingComponentInitializations--,0==s.remainingComponentInitializations)&&((s.instantiateResponsiveComponents(),0==i.width())?(l=new h.Logger("ResponsiveComponentsManager"),l.info("Search interface width is 0, cannot dispatch resize events to responsive components. Will try again after first\n          query success."),i.one(a.QueryEvents.querySuccess,function(){s.resizeAllComponentsManager()})):s.resizeAllComponentsManager())});this.remainingComponentInitializations++},n.shouldEnableResponsiveMode=function(n){var t=s.Component.get(n.el,e.SearchInterface,!0);return t instanceof e.SearchInterface&&t.options.enableAutomaticResponsiveMode&&t.isNewDesign()},n.instantiateResponsiveComponents=function(){r.each(this.componentInitializations,function(n){var t=n.responsiveComponentsManager;t.register.apply(t,n.arguments)})},n.resizeAllComponentsManager=function(){r.each(this.componentManagers,function(n){n.resizeListener()})},n.prototype.register=function(n,t,i,u,f){if(!this.isDisabled(i)&&!this.isActivated(i)){var e=new n(t,i,f);this.isTabs(i)?this.responsiveComponents.push(e):this.responsiveComponents.unshift(e);r.each(this.responsiveComponents,function(n){null!=n.registerComponent&&n.registerComponent(u)})}},n.prototype.disableComponent=function(n){this.disabledComponents.push(n)},n.prototype.isDisabled=function(n){return r.indexOf(this.disabledComponents,n)!=-1},n.prototype.shouldSwitchToSmallMode=function(){var n=this.needDropdownWrapper(),t=this.coveoRoot.width()<=this.searchInterface.responsiveComponents.getMediumScreenWidth();return n||t},n.prototype.needDropdownWrapper=function(){for(var t,n=0;n<this.responsiveComponents.length;n++)if(t=this.responsiveComponents[n],t.needDropdownWrapper&&t.needDropdownWrapper())return!0;return!1},n.prototype.addDropdownHeaderWrapperIfNeeded=function(){if(this.needDropdownWrapper()){var n=f.$$(this.coveoRoot).find(".coveo-tab-section");this.searchBoxElement?this.dropdownHeadersWrapper.insertAfter(this.searchBoxElement):n?this.dropdownHeadersWrapper.insertAfter(n):this.coveoRoot.prepend(this.dropdownHeadersWrapper.el)}},n.prototype.isTabs=function(n){return n==l.Tab.ID},n.prototype.isActivated=function(n){return void 0!=r.find(this.responsiveComponents,function(t){return t.ID==n})},n.prototype.getSearchBoxElement=function(){var n=this.coveoRoot.find(".coveo-search-section");return n?n:this.coveoRoot.find(".CoveoSearchbox")},n.prototype.bindNukeEvents=function(){var n=this;f.$$(this.coveoRoot).on(o.InitializationEvents.nuke,function(){window.removeEventListener("resize",n.resizeListener)})},n}();u.DROPDOWN_HEADER_WRAPPER_CSS_CLASS="coveo-dropdown-header-wrapper";u.RESIZE_DEBOUNCE_DELAY=200;u.componentManagers=[];u.remainingComponentInitializations=0;u.componentInitializations=[];t.ResponsiveComponentsManager=u},function(n,t,i){"use strict";var v=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},y=i(129),c=i(103),r=i(107),p=i(98),l=i(48),e=i(101),w=i(112),b=i(9),k=i(111),o=i(13),s=i(12),u=i(59),a=i(69),f=i(14),h=function(n){function t(i,u,f){var o=n.call(this,i,t.ID,f)||this,s;return o.element=i,o.options=u,o.isFirstQuery=!0,o.options=r.ComponentOptions.initComponentOptions(i,t,u),o.bind.onRootElement(l.QueryEvents.buildingQuery,function(n){return o.handleBuildingQuery(n)}),o.bind.onQueryState(p.MODEL_EVENTS.CHANGE_ONE,e.QUERY_STATE_ATTRIBUTES.T,function(n){return o.handleQueryStateChanged(n)}),s=function(){return o.handleClick()},o.bind.on(i,"click",s),o.bind.on(i,"keyup",a.KeyboardUtils.keypressAction(a.KEYBOARD.ENTER,s)),o.render(),y.ResponsiveTabs.init(o.root,o,o.options),o}return v(t,n),t.prototype.select=function(){if(!this.disabled){var n=this.queryStateModel.get(e.QUERY_STATE_ATTRIBUTES.LAYOUT);this.queryStateModel.setMultiple({t:this.options.id,sort:this.options.sort||e.QueryStateModel.defaultAttributes.sort,layout:this.options.layout||n||e.QueryStateModel.defaultAttributes.layout});this.usageAnalytics.logSearchEvent(w.analyticsActionCauseList.interfaceChange,{interfaceChangeTo:this.options.id});this.queryController.executeQuery()}},t.prototype.isElementIncludedInTab=function(n){s.Assert.exists(n);var t=this.splitListOfTabs(n.getAttribute("data-tab")),i=this.splitListOfTabs(n.getAttribute("data-tab-not"));return s.Assert.check(!(0!=t.length&&0!=i.length),"You cannot both explicitly include and exclude an element from tabs."),0!=t.length&&f.indexOf(t,this.options.id)!=-1||0!=i.length&&f.indexOf(i,this.options.id)==-1||0==t.length&&0==i.length},t.prototype.handleClick=function(){this.select()},t.prototype.render=function(){var r=this.options.icon,n,t,i;o.Utils.isNonEmptyString(r)&&(n=u.$$("span").el,u.$$(n).addClass(["coveo-icon",r]),this.element.insertBefore(n,this.element.firstChild));t=this.options.caption;o.Utils.isNonEmptyString(t)&&(i=document.createElement("p"),u.$$(i).text(t),this.element.appendChild(i));this.element.setAttribute("tabindex","0")},t.prototype.handleBuildingQuery=function(n){s.Assert.exists(n);this.isFirstQuery=!1;!this.disabled&&this.isSelected()&&(n.queryBuilder.tab=this.options.id,o.Utils.isNonEmptyString(this.options.expression)&&(this.options.constant?n.queryBuilder.constantExpression.add(this.options.expression):n.queryBuilder.advancedExpression.add(this.options.expression)),this.options.enableDuplicateFiltering&&(n.queryBuilder.enableDuplicateFiltering=!0),null!=this.options.pipeline&&(n.queryBuilder.pipeline=this.options.pipeline),null!=this.options.maximumAge&&(n.queryBuilder.maximumAge=this.options.maximumAge))},t.prototype.handleQueryStateChanged=function(n){s.Assert.exists(n);!this.disabled&&this.isSelected()?(u.$$(this.element).addClass("coveo-selected"),this.queryController.setEndpoint(this.options.endpoint),this.showAndHideAppropriateElements()):u.$$(this.element).removeClass("coveo-selected")},t.prototype.isSelected=function(){var n=this.queryStateModel.get(e.QueryStateModel.attributesEnum.t);return n==this.options.id},t.prototype.showAndHideAppropriateElements=function(){var n=this,t=[],i=[];f.each(u.$$(this.root).findAll("[data-tab],[data-tab-not]"),function(r){n.isElementIncludedInTab(r)?(n.toggleAllComponentsUnder(r,!0),t.push(r)):(n.toggleAllComponentsUnder(r,!1),i.push(r))});u.$$(this.root).one(l.QueryEvents.querySuccess,function(){f.each(t,function(n){return u.$$(n).removeClass("coveo-tab-disabled")});f.each(i,function(n){return u.$$(n).addClass("coveo-tab-disabled")})})},t.prototype.splitListOfTabs=function(n){return o.Utils.exists(n)?f.map(n.split(","),function(n){return o.Utils.trim(n)}):[]},t.prototype.toggleAllComponentsUnder=function(n,t){s.Assert.exists(n);var i=function(n){var i=c.Component.get(n,void 0,!0);i&&(t?i.enable():i.disable())};i(n);f.each(u.$$(n).findAll("*"),function(n){i(n)})},t.prototype.enable=function(){n.prototype.enable.call(this);this.element.style.display=""},t.prototype.disable=function(){n.prototype.disable.call(this);this.element.style.display="none"},t}(c.Component);h.ID="Tab";h.options={id:r.ComponentOptions.buildStringOption({required:!0}),caption:r.ComponentOptions.buildLocalizedStringOption({required:!0}),icon:r.ComponentOptions.buildIconOption(),expression:r.ComponentOptions.buildStringOption(),endpoint:r.ComponentOptions.buildCustomOption(function(n){return null!=n?b.SearchEndpoint.endpoints[n]:null}),sort:r.ComponentOptions.buildStringOption(),layout:r.ComponentOptions.buildStringOption(),constant:r.ComponentOptions.buildBooleanOption({defaultValue:!0}),enableDuplicateFiltering:r.ComponentOptions.buildBooleanOption({defaultValue:!1}),pipeline:r.ComponentOptions.buildStringOption(),maximumAge:r.ComponentOptions.buildNumberOption(),enableResponsiveMode:r.ComponentOptions.buildBooleanOption({defaultValue:!0}),dropdownHeaderLabel:r.ComponentOptions.buildLocalizedStringOption()};t.Tab=h;k.Initialization.registerAutoCreateComponent(h)},function(n,t,i){"use strict";var r=i(59),v=i(45),o=i(72),h=i(130),c=i(13),y=i(11),e=i(103),l=i(106),s=i(128),p=i(127),u=i(131),w=i(35),b=i(17),f=i(14),a=function(){function n(n,t){this.coveoRoot=n;this.ID=t;this.dropdownHeaderLabel=this.getDropdownHeaderLabel();this.searchInterface=e.Component.get(this.coveoRoot.el,l.SearchInterface,!1);this.searchBoxElement=this.getSearchBoxElement();this.dropdownContent=this.buildDropdownContent();this.dropdownHeader=this.buildDropdownHeader();this.bindDropdownContentEvents();this.bindDropdownHeaderEvents();this.tabSection=r.$$(this.coveoRoot.find(".coveo-tab-section"));this.manageTabSwapping();this.saveTabsPosition();this.bindNukeEvents()}return n.init=function(t,i,u){return this.logger=new y.Logger("ResponsiveTabs"),r.$$(t).find(".coveo-tab-section")?void p.ResponsiveComponentsManager.register(n,r.$$(t),s.Tab.ID,i,u):void this.logger.info("No element with class coveo-tab-section. Responsive tabs cannot be enabled.")},n.prototype.handleResizeEvent=function(){this.needSmallMode()&&!u.ResponsiveComponentsUtils.isSmallTabsActivated(this.coveoRoot)?this.changeToSmallMode():!this.needSmallMode()&&u.ResponsiveComponentsUtils.isSmallTabsActivated(this.coveoRoot)&&this.changeToLargeMode();var n=this.getTabsInTabSection();this.shouldAddTabsToDropdown()?this.addTabsToDropdown(n):this.shouldRemoveTabsFromDropdown()&&this.removeTabsFromDropdown(n);this.dropdownHeader.hasClass("coveo-dropdown-header-active")&&this.positionPopup()},n.prototype.needSmallMode=function(){var n=this.searchInterface?this.searchInterface.responsiveComponents.getMediumScreenWidth():(new b.ResponsiveComponents).getMediumScreenWidth();return this.coveoRoot.width()<=n||(u.ResponsiveComponentsUtils.isSmallTabsActivated(this.coveoRoot)?this.isLargeFormatOverflowing():this.isOverflowing(this.tabSection.el))},n.prototype.changeToSmallMode=function(){u.ResponsiveComponentsUtils.activateSmallTabs(this.coveoRoot)},n.prototype.changeToLargeMode=function(){this.emptyDropdown();this.cleanUpDropdown();u.ResponsiveComponentsUtils.deactivateSmallTabs(this.coveoRoot)},n.prototype.shouldAddTabsToDropdown=function(){return this.isOverflowing(this.tabSection.el)&&u.ResponsiveComponentsUtils.isSmallTabsActivated(this.coveoRoot)},n.prototype.addTabsToDropdown=function(n){var i,u,t;for(this.tabSection.find(".coveo-tab-dropdown-header")||(u=this.tabSection.find(".coveo-facet-dropdown-header"),u?this.dropdownHeader.insertBefore(u):this.tabSection.el.appendChild(this.dropdownHeader.el)),t=n.length-1;t>=0&&(i=n[t],r.$$(i).hasClass("coveo-selected")&&t>0&&(i=n[--t]),this.addToDropdown(i),this.isOverflowing(this.tabSection.el));t--);},n.prototype.shouldRemoveTabsFromDropdown=function(){return!this.isOverflowing(this.tabSection.el)&&u.ResponsiveComponentsUtils.isSmallTabsActivated(this.coveoRoot)&&!this.isDropdownEmpty()},n.prototype.removeTabsFromDropdown=function(n){var i,t,e=this.dropdownContent.findAll(".coveo-tab-dropdown"),u;for(n&&(i=n.pop());!this.isOverflowing(this.tabSection.el)&&!this.isDropdownEmpty();)t=e.shift(),this.removeFromDropdown(t),this.fromDropdownToTabSection(r.$$(t),i),i=f.clone(t);this.isOverflowing(this.tabSection.el)&&(u=this.getTabsInTabSection(),this.addToDropdown(u.pop()));this.isDropdownEmpty()&&this.cleanUpDropdown()},n.prototype.emptyDropdown=function(){var n;if(!this.isDropdownEmpty()){var u=this.dropdownContent.findAll(".coveo-tab-dropdown"),i=this.getTabsInTabSection(),t=void 0;for(i&&(t=i.pop());!this.isDropdownEmpty();)n=u.shift(),this.removeFromDropdown(n),r.$$(n).insertBefore(this.dropdownHeader.el),this.fromDropdownToTabSection(r.$$(n),t),t=f.clone(n)}},n.prototype.isLargeFormatOverflowing=function(){var n=r.$$(this.tabSection.el.cloneNode(!0)),t=n.find(".coveo-tab-dropdown-header"),i;return t&&n.el.removeChild(t),n.el.style.position="absolute",n.el.style.visibility="hidden",this.isDropdownEmpty()||f.each(this.dropdownContent.findAll(".CoveoTab"),function(t){n.el.appendChild(t.cloneNode(!0))}),n.insertBefore(this.tabSection.el),u.ResponsiveComponentsUtils.deactivateSmallTabs(this.coveoRoot),i=this.isOverflowing(n.el),u.ResponsiveComponentsUtils.activateSmallTabs(this.coveoRoot),n.detach(),i},n.prototype.isOverflowing=function(n){return n.clientWidth<n.scrollWidth},n.prototype.buildDropdownHeader=function(){var t=r.$$("a",{className:"coveo-dropdown-header coveo-tab-dropdown-header"}),n=r.$$("p");return n.text(this.dropdownHeaderLabel),n.el.appendChild(r.$$("span",{className:"coveo-sprites-more-tabs"}).el),t.el.appendChild(n.el),t},n.prototype.bindDropdownHeaderEvents=function(){var n=this;this.dropdownHeader.on("click",function(){n.dropdownHeader.hasClass("coveo-dropdown-header-active")?n.closeDropdown():(n.positionPopup(),n.dropdownHeader.addClass("coveo-dropdown-header-active"))})},n.prototype.buildDropdownContent=function(){var n=r.$$("div",{className:"coveo-tab-list-container "+l.SearchInterface.SMALL_INTERFACE_CLASS_NAME}),t=r.$$("ol",{className:"coveo-tab-list"});return n.el.appendChild(t.el),n},n.prototype.bindDropdownContentEvents=function(){var n=this;this.documentClickListener=function(t){if(c.Utils.isHtmlElement(t.target)){var i=r.$$(t.target);i.closest("coveo-tab-list-container")||i.closest("coveo-tab-dropdown-header")||i.closest("coveo-tab-dropdown")||n.closeDropdown()}};r.$$(document.documentElement).on("click",this.documentClickListener)},n.prototype.closeDropdown=function(){this.dropdownContent.detach();this.dropdownHeader.removeClass("coveo-dropdown-header-active")},n.prototype.addToDropdown=function(n){if(this.dropdownContent){r.$$(n).addClass("coveo-tab-dropdown");var i=this.dropdownContent.find("ol"),t=r.$$("li");t.el.appendChild(n);r.$$(i).prepend(t.el)}},n.prototype.removeFromDropdown=function(n){this.dropdownContent&&(r.$$(n).removeClass("coveo-tab-dropdown"),r.$$(n.parentElement).detach())},n.prototype.cleanUpDropdown=function(){this.dropdownHeader.removeClass("coveo-dropdown-header-active");this.dropdownHeader.detach();this.dropdownContent.detach()},n.prototype.isDropdownEmpty=function(){if(this.dropdownContent){var n=this.dropdownContent.findAll(".CoveoTab");return 0==n.length}return!1},n.prototype.manageTabSwapping=function(){var n=this;f.each(this.coveoRoot.findAll("."+e.Component.computeCssClassNameForType(this.ID)),function(t){var i=r.$$(t),u=function(t){var e=n.getTabsInTabSection(),f=e.pop(),o=f.previousSibling;"opacity"==t.propertyName&&("0"==i.el.style.opacity?(r.$$(f).addClass("coveo-tab-dropdown"),i.replaceWith(f),i.removeClass("coveo-tab-dropdown"),n.fromDropdownToTabSection(i,o),window.getComputedStyle(i.el).opacity,window.getComputedStyle(f).opacity,i.el.style.opacity=f.style.opacity="1"):"1"==i.el.style.opacity&&(n.closeDropdown(),h.EventsUtils.removePrefixedEvent(i.el,"TransitionEnd",u),n.handleResizeEvent()))};i.on("click",function(){if(i.hasClass("coveo-tab-dropdown")){var r=n.getTabsInTabSection(),t=r.pop();t&&(h.EventsUtils.addPrefixedEvent(i.el,"TransitionEnd",u),i.el.style.opacity=t.style.opacity="0")}})})},n.prototype.getSearchBoxElement=function(){var n=this.coveoRoot.find(".coveo-search-section");return n?n:this.coveoRoot.find(".CoveoSearchbox")},n.prototype.saveTabsPosition=function(){this.previousSibling=this.tabSection.el.previousSibling?r.$$(this.tabSection.el.previousSibling):null;this.parent=r.$$(this.tabSection.el.parentElement)},n.prototype.bindNukeEvents=function(){var n=this;r.$$(this.coveoRoot).on(v.InitializationEvents.nuke,function(){r.$$(document.documentElement).off("click",n.documentClickListener)})},n.prototype.positionPopup=function(){o.PopupUtils.positionPopup(this.dropdownContent.el,this.dropdownHeader.el,this.coveoRoot.el,{horizontal:o.HorizontalAlignment.INNERRIGHT,vertical:o.VerticalAlignment.BOTTOM},this.coveoRoot.el)},n.prototype.getTabsInTabSection=function(){var t=this,n=[];return f.each(this.tabSection.el.children,function(i){if(c.Utils.isHtmlElement(i)){var u=r.$$(i);!u.hasClass("coveo-tab-dropdown")&&u.hasClass(e.Component.computeCssClassNameForType(t.ID))&&n.push(u.el)}}),n},n.prototype.fromDropdownToTabSection=function(n,t){t?n.insertAfter(t):this.tabSection.prepend(n.el)},n.prototype.getDropdownHeaderLabel=function(){var t;return f.each(r.$$(this.coveoRoot.find(".coveo-tab-section")).findAll("."+e.Component.computeCssClassName(s.Tab)),function(n){var i=e.Component.get(n,s.Tab);!t&&i.options.dropdownHeaderLabel&&(t=i.options.dropdownHeaderLabel)}),t||(t=w.l(n.DROPDOWN_HEADER_LABEL_DEFAULT_VALUE)),t},n}();a.DROPDOWN_HEADER_LABEL_DEFAULT_VALUE="More";t.ResponsiveTabs=a},function(n,t,i){"use strict";var r=i(14),u=function(){function n(){}return n.addPrefixedEvent=function(n,t,i){r.each(this.prefixes,function(r){""==r&&(t=t.toLowerCase());n.addEventListener(r+t,i,!1)})},n.removePrefixedEvent=function(n,t,i){r.each(this.prefixes,function(r){""==r&&(t=t.toLowerCase());n.removeEventListener(r+t,i,!1)})},n}();u.prefixes=["webkit","moz","MS","o",""];t.EventsUtils=u},function(n,t){"use strict";var i=function(){function n(){}return n.shouldDrawFacetSlider=function(n){return!this.isSmallFacetActivated(n)&&!this.isSmallRecommendationActivated(n)},n.isSmallTabsActivated=function(n){return n.hasClass(this.smallTabsClassName)},n.isSmallFacetActivated=function(n){return n.hasClass(this.smallFacetClassName)},n.isSmallRecommendationActivated=function(n){return n.hasClass(this.smallRecommendationClassName)},n.activateSmallTabs=function(n){n.addClass(this.smallTabsClassName)},n.deactivateSmallTabs=function(n){n.removeClass(this.smallTabsClassName)},n.activateSmallFacet=function(n){n.addClass(this.smallFacetClassName)},n.deactivateSmallFacet=function(n){n.removeClass(this.smallFacetClassName)},n.activateSmallRecommendation=function(n){n.addClass(this.smallRecommendationClassName)},n.deactivateSmallRecommendation=function(n){n.removeClass(this.smallRecommendationClassName)},n}();i.smallTabsClassName="coveo-small-tabs";i.smallFacetClassName="coveo-small-facets";i.smallRecommendationClassName="coveo-small-recommendation";t.ResponsiveComponentsUtils=i},function(n,t,i){"use strict";function a(n){for(var i in n)t.hasOwnProperty(i)||(t[i]=n[i])}var r,u,f,e,o,s,h,c,l;a(i(133));r=i(107);t.ComponentOptions=r.ComponentOptions;t.ComponentOptionsType=r.ComponentOptionsType;u=i(103);t.Component=u.Component;f=i(77);t.BaseComponent=f.BaseComponent;e=i(76);t.RootComponent=e.RootComponent;o=i(78);t.QueryBuilder=o.QueryBuilder;s=i(79);t.ExpressionBuilder=s.ExpressionBuilder;h=i(111);t.Initialization=h.Initialization;c=i(111);t.CoveoJQuery=c.Initialization;l=i(176);t.initCoveoJQuery=l.initCoveoJQuery},function(n,t,i){"use strict";function h(n,t){void 0===t&&(t={});r.Initialization.initializeFramework(n,t,function(){r.Initialization.initSearchInterface(n,t)})}function c(n,t,i){void 0===i&&(i={});u.Assert.isNonEmptyString(t);var f={};f.searchPageUri=t;f.autoTriggerQuery=!1;f.hideUntilFirstQuery=!1;f.enableHistory=!1;i=o.extend({},i,{StandaloneSearchInterface:f});r.Initialization.initializeFramework(n,i,function(){r.Initialization.initStandaloneSearchInterface(n,i)})}function l(n,t,i,u){void 0===u&&(u={});var f={};f.mainSearchInterface=t;f.userContext=JSON.stringify(i);f.enableHistory=!1;u=o.extend({},u,{Recommendation:f});r.Initialization.initializeFramework(n,u,function(){r.Initialization.initRecommendationInterface(n,u)})}function a(n){u.Assert.exists(n);var t=f.Component.resolveBinding(n,ft.QueryController);return u.Assert.exists(t),t.executeQuery()}function s(n){for(var r,i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];return u.Assert.exists(n),r=f.Component.resolveBinding(n,it.QueryStateModel),it.setState(r,i)}function v(n,t,i){return u.Assert.exists(n),f.Component.get(n,t,i)}function y(n,t){return u.Assert.exists(n),f.Component.getResult(n,t)}function e(n){var t=ut(n);if(t)return t.client}function ut(n){var t=rt.$$(n).find("."+f.Component.computeCssClassName(et.Analytics));if(t)return f.Component.get(t)}function p(n,t,i){var r=e(n);r&&r.logCustomEvent(t,i,n)}function w(n,t,i){var r=e(n);r&&r.logSearchEvent(t,i)}function b(n,t,i){var r=e(n);r&&r.logSearchAsYouType(t,i)}function k(n,t,i,r){var u=e(n);u&&u.logClickEvent(t,i,r,n)}function d(n,t){void 0===t&&(t={});r.Initialization.registerDefaultOptions(n,t)}function g(n,t,i){r.Initialization.monkeyPatchComponentMethod(t,n,i)}function nt(n){for(var f,s,i,h,t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];i={};0==t.length?(f="Standard",s=!1):1==t.length?"string"==typeof t[0]?(f=t[0],s=!0):"object"==typeof t[0]?(f="Standard",s=!1,i=t[0]):u.Assert.fail("Invalid parameters to init a box"):2==t.length&&(f=t[0],i=t[1],s=!0);h={};h[f||"Container"]=o.extend({},i.SearchInterface,i[f]);i=o.extend({},i,h);r.Initialization.initializeFramework(n,i,function(){r.Initialization.initBoxInterface(n,i,f,s)})}function tt(n){rt.$$(n).trigger(ot.InitializationEvents.nuke)}var r=i(111),u=i(12),ft=i(75),it=i(101),et=i(134),ot=i(45),rt=i(59),f=i(103),o=i(14);t.init=h;r.Initialization.registerNamedMethod("init",function(n,t){void 0===t&&(t={});h(n,t)});t.initSearchbox=c;r.Initialization.registerNamedMethod("initSearchbox",function(n,t,i){void 0===i&&(i={});c(n,t,i)});t.initRecommendation=l;r.Initialization.registerNamedMethod("initRecommendation",function(n,t,i,r){void 0===i&&(i={});void 0===r&&(r={});l(n,t,i,r)});t.executeQuery=a;r.Initialization.registerNamedMethod("executeQuery",function(n){return a(n)});t.state=s;r.Initialization.registerNamedMethod("state",function(n){for(var i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];return 0!=i.length?s.apply(void 0,[n].concat(i)):s.apply(void 0,[n])});t.get=v;r.Initialization.registerNamedMethod("get",function(n,t,i){return v(n,t,i)});t.result=y;r.Initialization.registerNamedMethod("result",function(n,t){return y(n,t)});t.logCustomEvent=p;r.Initialization.registerNamedMethod("logCustomEvent",function(n,t,i){p(n,t,i)});t.logSearchEvent=w;r.Initialization.registerNamedMethod("logSearchEvent",function(n,t,i){w(n,t,i)});t.logSearchAsYouTypeEvent=b;r.Initialization.registerNamedMethod("logSearchAsYouTypeEvent",function(n,t,i){b(n,t,i)});t.logClickEvent=k;r.Initialization.registerNamedMethod("logClickEvent",function(n,t,i,r){k(n,t,i,r)});t.options=d;r.Initialization.registerNamedMethod("options",function(n,t){void 0===t&&(t={});d(n,t)});t.patch=g;r.Initialization.registerNamedMethod("patch",function(n,t,i){g(n,t,i)});t.initBox=nt;r.Initialization.registerNamedMethod("initBox",function(n){for(var i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];nt(n,i)});t.nuke=tt;r.Initialization.registerNamedMethod("nuke",function(n){tt(n)})},function(n,t,i){"use strict";var y=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},u=i(103),r=i(107),l=i(37),p=i(9),o=i(12),a=i(48),e=i(105),f=i(59),w=i(98),b=i(13),v=i(119),k=i(135),d=i(139),g=i(112),nt=i(106),s=i(140),tt=i(175),h=i(14),c=function(n){function t(i,s,h){var c,l,v;if(void 0===s&&(s={}),c=n.call(this,i,t.ID,h)||this,(c.element=i,c.options=s,c.bindings=h,c.options=r.ComponentOptions.initComponentOptions(i,t,s),c.retrieveInfoFromDefaultSearchEndpoint(),c.initializeAnalyticsClient(),o.Assert.exists(c.client),c.bind.onRootElement(a.QueryEvents.buildingQuery,function(n){return c.handleBuildingQuery(n)}),c.bind.onRootElement(a.QueryEvents.queryError,function(n){return c.handleQueryError(n)}),c.componentOptionsModel)||(l=f.$$(i).find("."+u.Component.computeCssClassName(e.ComponentOptionsModel)),l&&(c.componentOptionsModel=l[u.Component.computeCssClassName(e.ComponentOptionsModel)])),c.componentOptionsModel){c.componentOptionsModel.set(e.ComponentOptionsModel.attributesEnum.searchHub,c.options.searchHub);v=c.componentOptionsModel.getEventName(w.Model.eventTypes.changeOne+e.ComponentOptionsModel.attributesEnum.searchHub);c.bind.onRootElement(v,function(n){return c.handleSearchHubChanged(n)})}return c}return y(t,n),t.prototype.logSearchEvent=function(n,t){this.client.logSearchEvent(n,t)},t.prototype.logSearchAsYouType=function(n,t){this.client.logSearchAsYouType(n,t)},t.prototype.logCustomEvent=function(n,t,i){void 0===i&&(i=this.element);this.client.logCustomEvent(n,t,i)},t.prototype.logClickEvent=function(n,t,i,r){void 0===r&&(r=this.element);this.client.logClickEvent(n,t,i,r)},t.prototype.initializeAnalyticsEndpoint=function(){return new l.AnalyticsEndpoint({token:this.options.token,serviceUrl:this.options.endpoint,organization:this.options.organization})},t.prototype.initializeAnalyticsClient=function(){var t,n,i;b.Utils.isNonEmptyString(this.options.endpoint)?(t=this.initializeAnalyticsEndpoint(),n=void 0,this.root&&this.element&&(n=this.root.contains(this.element)?this.root:this.element),i=f.$$(this.root).hasClass(u.Component.computeCssClassName(s.Recommendation)),this.instantiateAnalyticsClient(t,n,i)):this.client=new v.NoopAnalyticsClient},t.prototype.instantiateAnalyticsClient=function(n,t,i){this.client=i?new tt.RecommendationAnalyticsClient(n,t,this.options.user,this.options.userDisplayName,this.options.anonymous,this.options.splitTestRunName,this.options.splitTestRunVersion,this.options.searchHub,this.options.sendToCloud,this.getBindings()):new k.LiveAnalyticsClient(n,t,this.options.user,this.options.userDisplayName,this.options.anonymous,this.options.splitTestRunName,this.options.splitTestRunVersion,this.options.searchHub,this.options.sendToCloud)},t.prototype.retrieveInfoFromDefaultSearchEndpoint=function(){var n=p.SearchEndpoint.endpoints.default;null==this.options.token&&n&&(this.options.token=n.options.accessToken);!this.options.organization&&n&&(this.options.organization=n.options.queryStringArguments.workgroup)},t.prototype.handleBuildingQuery=function(n){o.Assert.exists(n);n.queryBuilder.searchHub=this.options.searchHub},t.prototype.handleSearchHubChanged=function(n){this.options.searchHub=n.value},t.prototype.handleQueryError=function(n){o.Assert.exists(n);this.client.logCustomEvent(g.analyticsActionCauseList.queryError,{query:n.query.q,aq:n.query.aq,cq:n.query.cq,dq:n.query.dq,errorType:n.error.type,errorMessage:n.error.message},this.element)},t.create=function(n,i,r){var o=u.Component.computeSelectorForType(t.ID),e=[];return e=e.concat(f.$$(n).findAll(o)),u.Component.get(n,nt.SearchInterface)instanceof s.Recommendation||(e=this.ignoreElementsInsideRecommendationInterface(e)),e.push(f.$$(n).closest(u.Component.computeCssClassName(t))),f.$$(n).is(o)&&e.push(n),e=h.compact(e),1==e.length?t.getClient(e[0],i,r):e.length>1?new d.MultiAnalyticsClient(h.map(e,function(n){return t.getClient(n,i,r)})):new v.NoopAnalyticsClient},t.ignoreElementsInsideRecommendationInterface=function(n){return h.filter(n,function(n){return void 0===f.$$(n).closest(u.Component.computeCssClassName(s.Recommendation))})},t.getClient=function(n,i,r){var f=u.Component.get(n,t,!0);return f instanceof t?f.client:new t(n,i,r).client},t}(u.Component);c.ID="Analytics";c.options={user:r.ComponentOptions.buildStringOption(),userDisplayName:r.ComponentOptions.buildStringOption(),token:r.ComponentOptions.buildStringOption(),endpoint:r.ComponentOptions.buildStringOption({defaultValue:l.AnalyticsEndpoint.DEFAULT_ANALYTICS_URI}),anonymous:r.ComponentOptions.buildBooleanOption({defaultValue:!1}),searchHub:r.ComponentOptions.buildStringOption({defaultValue:"default"}),splitTestRunName:r.ComponentOptions.buildStringOption(),splitTestRunVersion:r.ComponentOptions.buildStringOption(),sendToCloud:r.ComponentOptions.buildBooleanOption({defaultValue:!0}),organization:r.ComponentOptions.buildStringOption()};t.Analytics=c},function(n,t,i){"use strict";var h=i(16),y=i(136),p=i(138),r=i(12),w=i(11),c=i(112),e=i(32),o=i(59),s=i(41),l=i(137),a=i(101),b=i(103),v=i(8),f=i(21),u=i(14),k=function(){function n(n,t,i,u,f,e,o,s,c){this.endpoint=n;this.rootElement=t;this.userId=i;this.userDisplayName=u;this.anonymous=f;this.splitTestRunName=e;this.splitTestRunVersion=o;this.originLevel1=s;this.sendToCloud=c;this.isContextual=!1;this.language=String.locale;this.device=h.DeviceUtils.getDeviceName();this.mobile=h.DeviceUtils.isMobileDevice();r.Assert.exists(n);r.Assert.exists(t);r.Assert.isNonEmptyString(this.language);r.Assert.isNonEmptyString(this.device);r.Assert.isNonEmptyString(this.originLevel1);this.logger=new w.Logger(this)}return n.prototype.isActivated=function(){return!0},n.prototype.getCurrentVisitId=function(){return this.endpoint.getCurrentVisitId()},n.prototype.getCurrentVisitIdPromise=function(){return this.endpoint.getCurrentVisitIdPromise()},n.prototype.getCurrentEventCause=function(){return null!=this.pendingSearchEvent?this.pendingSearchEvent.getEventCause():null!=this.pendingSearchAsYouTypeSearchEvent?this.pendingSearchAsYouTypeSearchEvent.getEventCause():null},n.prototype.getCurrentEventMeta=function(){return null!=this.pendingSearchEvent?this.pendingSearchEvent.getEventMeta():null!=this.pendingSearchAsYouTypeSearchEvent?this.pendingSearchAsYouTypeSearchEvent.getEventMeta():null},n.prototype.logSearchEvent=function(n,t){var i=this.buildMetaObject(t);this.pushSearchEvent(n,i)},n.prototype.logSearchAsYouType=function(n,t){var i=this.buildMetaObject(t);this.pushSearchAsYouTypeEvent(n,i)},n.prototype.logClickEvent=function(n,t,i,r){var u=this.buildMetaObject(t,i);this.pushClickEvent(n,u,i,r)},n.prototype.logCustomEvent=function(n,t,i){var r=this.buildMetaObject(t);this.pushCustomEvent(n,r,i)},n.prototype.getTopQueries=function(n){return this.endpoint.getTopQueries(n)},n.prototype.sendAllPendingEvents=function(){this.pendingSearchAsYouTypeSearchEvent&&this.pendingSearchAsYouTypeSearchEvent.sendRightNow()},n.prototype.cancelAllPendingEvents=function(){this.pendingSearchAsYouTypeSearchEvent&&(this.pendingSearchAsYouTypeSearchEvent.cancel(),this.pendingSearchAsYouTypeSearchEvent=null);this.pendingSearchEvent&&(this.pendingSearchEvent.cancel(),this.pendingSearchEvent=null)},n.prototype.getPendingSearchEvent=function(){return this.pendingSearchEvent?this.pendingSearchEvent:this.pendingSearchAsYouTypeSearchEvent?this.pendingSearchAsYouTypeSearchEvent:null},n.prototype.warnAboutSearchEvent=function(){u.isUndefined(this.pendingSearchEvent)&&u.isUndefined(this.pendingSearchAsYouTypeSearchEvent)&&(this.logger.warn("A search was triggered, but no analytics event was logged. If you wish to have consistent analytics data, consider logging a search event using the methods provided by the framework","https://developers.coveo.com/x/TwA5"),window.console&&console.trace&&console.trace())},n.prototype.pushCustomEvent=function(n,t,i){var r=this,u=this.buildCustomEvent(n,t,i);this.triggerChangeAnalyticsCustomData("CustomEvent",t,u);this.checkToSendAnyPendingSearchAsYouType(n);e.Defer.defer(function(){r.sendToCloud&&r.endpoint.sendCustomEvent(u);o.$$(r.rootElement).trigger(s.AnalyticsEvents.customEvent,{customEvent:l.APIAnalyticsBuilder.convertCustomEventToAPI(u)})})},n.prototype.pushSearchEvent=function(n,t){var f=this,i,u;(r.Assert.exists(n),this.pendingSearchEvent&&this.pendingSearchEvent.getEventCause()!==n.name&&(this.pendingSearchEvent.stopRecording(),this.pendingSearchEvent=null),this.checkToSendAnyPendingSearchAsYouType(n),this.pendingSearchEvent)||(i=this.buildSearchEvent(n,t),this.triggerChangeAnalyticsCustomData("SearchEvent",t,i),u=this.pendingSearchEvent=new y.PendingSearchEvent(this.rootElement,this.endpoint,i,this.sendToCloud),e.Defer.defer(function(){f.pendingSearchEvent=void 0;u.stopRecording()}))},n.prototype.checkToSendAnyPendingSearchAsYouType=function(n){this.eventIsNotRelatedToSearchbox(n.name)?this.sendAllPendingEvents():this.cancelAnyPendingSearchAsYouTypeEvent()},n.prototype.pushSearchAsYouTypeEvent=function(n,t){this.cancelAnyPendingSearchAsYouTypeEvent();var i=this.buildSearchEvent(n,t);this.triggerChangeAnalyticsCustomData("SearchEvent",t,i);this.pendingSearchAsYouTypeSearchEvent=new p.PendingSearchAsYouTypeSearchEvent(this.rootElement,this.endpoint,i,this.sendToCloud)},n.prototype.pushClickEvent=function(n,t,i,u){var h=this,f=this.buildClickEvent(n,t,i,u);this.checkToSendAnyPendingSearchAsYouType(n);this.triggerChangeAnalyticsCustomData("ClickEvent",t,f,{resultData:i});r.Assert.isNonEmptyString(f.searchQueryUid);r.Assert.isNonEmptyString(f.collectionName);r.Assert.isNonEmptyString(f.sourceName);r.Assert.isNumber(f.documentPosition);e.Defer.defer(function(){h.sendToCloud&&h.endpoint.sendDocumentViewEvent(f);o.$$(h.rootElement).trigger(s.AnalyticsEvents.documentViewEvent,{documentViewEvent:l.APIAnalyticsBuilder.convertDocumentViewToAPI(f)})})},n.prototype.buildAnalyticsEvent=function(n,t){return{actionCause:n.name,actionType:n.type,username:this.userId,userDisplayName:this.userDisplayName,anonymous:this.anonymous,device:this.device,mobile:this.mobile,language:this.language,responseTime:void 0,originLevel1:this.originLevel1,originLevel2:this.getOriginLevel2(this.rootElement),originLevel3:document.referrer,customData:u.keys(t).length>0?t:void 0,userAgent:navigator.userAgent}},n.prototype.buildSearchEvent=function(n,t){return this.merge(this.buildAnalyticsEvent(n,t),{searchQueryUid:void 0,pipeline:void 0,splitTestRunName:this.splitTestRunName,splitTestRunVersion:this.splitTestRunVersion,queryText:void 0,advancedQuery:void 0,results:void 0,resultsPerPage:void 0,pageNumber:void 0,didYouMean:void 0,facets:void 0,contextual:this.isContextual})},n.prototype.buildClickEvent=function(n,t,i,r){return this.merge(this.buildAnalyticsEvent(n,t),{searchQueryUid:i.queryUid,queryPipeline:i.pipeline,splitTestRunName:this.splitTestRunName||i.splitTestRun,splitTestRunVersion:this.splitTestRunVersion||(void 0!=i.splitTestRun?i.pipeline:void 0),documentUri:i.uri,documentUriHash:f.QueryUtils.getUriHash(i),documentUrl:i.clickUri,documentTitle:i.title,documentCategory:f.QueryUtils.getObjectType(i),originLevel2:this.getOriginLevel2(r),collectionName:f.QueryUtils.getCollection(i),sourceName:f.QueryUtils.getSource(i),documentPosition:i.index+1,responseTime:0,viewMethod:n.name,rankingModifier:i.rankingModifier})},n.prototype.buildCustomEvent=function(n,t,i){return this.merge(this.buildAnalyticsEvent(n,t),{eventType:n.type,eventValue:n.name,originLevel2:this.getOriginLevel2(i),responseTime:0})},n.prototype.getOriginLevel2=function(n){return this.resolveActiveTabFromElement(n)||"default"},n.prototype.buildMetaObject=function(n,t){var i=u.extend({},n),r;return(i.JSUIVersion=v.version.lib+";"+v.version.product,t)&&(r=f.QueryUtils.getUniqueId(t),i.contentIDKey=r.fieldUsed,i.contentIDValue=r.fieldValue),i},n.prototype.cancelAnyPendingSearchAsYouTypeEvent=function(){this.pendingSearchAsYouTypeSearchEvent&&(this.pendingSearchAsYouTypeSearchEvent.cancel(),this.pendingSearchAsYouTypeSearchEvent=void 0)},n.prototype.resolveActiveTabFromElement=function(n){r.Assert.exists(n);var t=this.resolveQueryStateModel(n);return t&&t.get(a.QueryStateModel.attributesEnum.t)},n.prototype.resolveQueryStateModel=function(n){return b.Component.resolveBinding(n,a.QueryStateModel)},n.prototype.eventIsNotRelatedToSearchbox=function(n){return n!==c.analyticsActionCauseList.searchboxSubmit.name&&n!==c.analyticsActionCauseList.searchboxClear.name},n.prototype.triggerChangeAnalyticsCustomData=function(n,t,i,r){var c,f,e,h;t.metaDataAsString={};t.metaDataAsNumber={};c={language:i.language,originLevel1:i.originLevel1,originLevel2:i.originLevel2,originLevel3:i.originLevel3,metaObject:t};f=u.extend({},{type:n,actionType:i.actionType,actionCause:i.actionCause},c,r);o.$$(this.rootElement).trigger(s.AnalyticsEvents.changeAnalyticsCustomData,f);i.language=f.language;i.originLevel1=f.originLevel1;i.originLevel2=f.originLevel2;i.originLevel3=f.originLevel3;i.customData=t;e=i.customData.metaDataAsString;u.keys(e).length>0&&(this.logger.warn("Using deprecated 'metaDataAsString' key to log custom analytics data. Custom meta should now be put at the root of the object."),u.extend(i.customData,e));delete i.customData.metaDataAsString;h=i.customData.metaDataAsNumber;u.keys(h).length>0&&(this.logger.warn("Using deprecated 'metaDataAsNumber' key to log custom analytics data. Custom meta should now be put at the root of the object."),u.extend(i.customData,h));delete i.customData.metaDataAsNumber},n.prototype.merge=function(n,t){return u.extend({},n,t)},n}();t.LiveAnalyticsClient=k},function(n,t,i){"use strict";var e=i(48),r=i(12),u=i(59),s=i(106),o=i(103),h=i(75),c=i(32),l=i(137),a=i(41),v=i(112),y=i(101),f=i(14),p=function(){function n(n,t,i,f){var o=this;this.root=n;this.endpoint=t;this.templateSearchEvent=i;this.sendToCloud=f;this.searchPromises=[];this.results=[];this.cancelled=!1;this.finished=!1;this.searchEvents=[];r.Assert.exists(n);r.Assert.exists(t);r.Assert.exists(i);this.handler=function(n,t){o.handleDuringQuery(n,t)};u.$$(n).on(e.QueryEvents.duringQuery,this.handler)}return n.prototype.getEventCause=function(){return this.templateSearchEvent.actionCause},n.prototype.getEventMeta=function(){return this.templateSearchEvent.customData},n.prototype.cancel=function(){this.stopRecording();this.cancelled=!0},n.prototype.handleDuringQuery=function(n,t){var i=this,u,e,c;r.Assert.check(!this.finished);r.Assert.check(!this.cancelled);this.searchPromises.push(t.promise);u=n.target;e=o.Component.get(u,s.SearchInterface);r.Assert.exists(e);c=o.Component.get(u,h.QueryController);r.Assert.exists(c);t.promise.then(function(n){if(r.Assert.exists(n),r.Assert.check(!i.finished),n._reusedSearchUid!==!0||i.templateSearchEvent.actionCause==v.analyticsActionCauseList.recommendation.name){var u=f.extend({},i.templateSearchEvent);return i.fillSearchEvent(u,e,t.query,n),i.searchEvents.push(u),i.results.push(n),n}}).finally(function(){var n=f.indexOf(i.searchPromises,t.promise);i.searchPromises.splice(n,1);0==i.searchPromises.length&&i.flush()})},n.prototype.stopRecording=function(){this.handler&&(u.$$(this.root).off(e.QueryEvents.duringQuery,this.handler),u.$$(this.root).off(e.QueryEvents.duringFetchMoreQuery,this.handler),this.handler=null)},n.prototype.flush=function(){var n=this;this.cancelled||(this.stopRecording(),this.finished=!0,r.Assert.check(this.searchEvents.length==this.results.length),c.Defer.defer(function(){n.sendToCloud&&n.endpoint.sendSearchEvents(n.searchEvents);var t=f.map(n.searchEvents,function(n){return l.APIAnalyticsBuilder.convertSearchEventToAPI(n)});u.$$(n.root).trigger(a.AnalyticsEvents.searchEvent,{searchEvents:t})}))},n.prototype.fillSearchEvent=function(n,t,i,u){r.Assert.exists(n);r.Assert.exists(t);r.Assert.exists(i);r.Assert.exists(u);var e=t.queryStateModel.get(y.QueryStateModel.attributesEnum.q);n.queryPipeline=u.pipeline;n.splitTestRunName=n.splitTestRunName||u.splitTestRun;n.splitTestRunVersion=n.splitTestRunVersion||(void 0!=u.splitTestRun?u.pipeline:void 0);n.originLevel2=n.originLevel2||t.queryStateModel.get("t")||"default";n.queryText=e||i.q||"";n.advancedQuery=i.aq||"";n.didYouMean=i.enableDidYouMean;n.numberOfResults=u.totalCount;n.responseTime=u.duration;n.pageNumber=i.firstResult/i.numberOfResults;n.resultsPerPage=i.numberOfResults;n.searchQueryUid=u.searchUid;n.queryPipeline=u.pipeline;void 0!=i.context&&f.each(i.context,function(t,i){n.customData["context_"+i]=t});void 0!=u.refinedKeywords&&0!=u.refinedKeywords.length&&(n.customData.refinedKeywords=u.refinedKeywords)},n}();t.PendingSearchEvent=p},function(n,t){"use strict";var i=function(){function n(){}return n.convertSearchEventToAPI=function(n){return{advancedQuery:n.advancedQuery,customMetadatas:n.customData,device:n.device,didYouMean:n.didYouMean,language:n.language,pageNumber:n.pageNumber,queryText:n.queryText,responseTime:n.responseTime,numberOfResults:n.numberOfResults,resultsPerPage:n.resultsPerPage,searchHub:n.originLevel1,searchInterface:n.originLevel2,searchQueryUid:n.searchQueryUid,type:n.actionType,actionCause:n.actionCause,queryPipeline:n.queryPipeline,splitTestRunName:n.splitTestRunName,splitTestRunVersion:n.splitTestRunVersion}},n.convertDocumentViewToAPI=function(n){return{collectionName:n.collectionName,device:n.device,documentPosition:n.documentPosition,title:n.documentTitle,documentUrl:n.documentUrl,documentUri:n.documentUri,documentUriHash:n.documentUriHash,language:n.language,responseTime:n.responseTime,searchHub:n.originLevel1,searchInterface:n.originLevel2,searchQueryUid:n.searchQueryUid,sourceName:n.sourceName,viewMethod:n.viewMethod,customMetadatas:n.customData,actionCause:n.actionCause,queryPipeline:n.queryPipeline,splitTestRunName:n.splitTestRunName,splitTestRunVersion:n.splitTestRunVersion}},n.convertCustomEventToAPI=function(n){return{actionCause:n.actionCause,actionType:n.actionType,device:n.device,language:n.language,responseTime:n.responseTime,searchHub:n.originLevel1,searchInterface:n.originLevel2,customMetadatas:n.customData}},n}();t.APIAnalyticsBuilder=i},function(n,t,i){"use strict";var u=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},f=i(136),e=i(59),o=i(45),r=i(14),s=function(n){function t(t,i,r,u){var f=n.call(this,t,i,r,u)||this;return f.root=t,f.endpoint=i,f.templateSearchEvent=r,f.sendToCloud=u,f.delayBeforeSending=5e3,f.armBatchDelay=50,f.beforeUnloadHandler=function(){f.onWindowUnload()},window.addEventListener("beforeunload",f.beforeUnloadHandler),e.$$(t).on(o.InitializationEvents.nuke,function(){return f.handleNuke()}),f}return u(t,n),t.prototype.handleDuringQuery=function(t,i){var u=this,f=r.clone(t);this.beforeResolve=new Promise(function(t){u.toSendRightNow=function(){u.isCancelledOrFinished()||(t(u),n.prototype.handleDuringQuery.call(u,f,i))};r.delay(function(){u.toSendRightNow()},u.delayBeforeSending)})},t.prototype.sendRightNow=function(){this.toSendRightNow&&this.toSendRightNow()},t.prototype.modifyCustomData=function(n,t){r.each(this.searchEvents,function(i){i.customData[n]=t});this.templateSearchEvent.customData||(this.templateSearchEvent.customData={});this.templateSearchEvent.customData[n]=t},t.prototype.modifyEventCause=function(n){r.each(this.searchEvents,function(t){t.actionCause=n.name;t.actionType=n.type});this.templateSearchEvent.actionCause=n.name;this.templateSearchEvent.actionType=n.type},t.prototype.stopRecording=function(){n.prototype.stopRecording.call(this);this.beforeUnloadHandler&&(window.removeEventListener("beforeunload",this.beforeUnloadHandler),this.beforeUnloadHandler=void 0)},t.prototype.handleNuke=function(){window.removeEventListener("beforeunload",this.beforeUnloadHandler)},t.prototype.onWindowUnload=function(){this.isCancelledOrFinished()||(this.armBatchDelay=0,this.sendRightNow())},t.prototype.isCancelledOrFinished=function(){return!!this.cancelled||!!this.finished&&(this.cancel(),!0)},t}(f.PendingSearchEvent);t.PendingSearchAsYouTypeSearchEvent=s},function(n,t,i){"use strict";var r=i(14),u=function(){function n(n){void 0===n&&(n=[]);this.analyticsClients=n;this.isContextual=!1}return n.prototype.isActivated=function(){return r.some(this.analyticsClients,function(n){return n.isActivated()})},n.prototype.getCurrentEventCause=function(){return r.find(r.map(this.analyticsClients,function(n){return n.getCurrentEventCause()}),function(n){return null!=n})},n.prototype.getCurrentEventMeta=function(){return r.find(r.map(this.analyticsClients,function(n){return n.getCurrentEventMeta()}),function(n){return null!=n})},n.prototype.logSearchEvent=function(n,t){r.each(this.analyticsClients,function(i){return i.logSearchEvent(n,t)})},n.prototype.logSearchAsYouType=function(n,t){r.each(this.analyticsClients,function(i){return i.logSearchEvent(n,t)})},n.prototype.logClickEvent=function(n,t,i,u){r.each(this.analyticsClients,function(r){return r.logClickEvent(n,t,i,u)})},n.prototype.logCustomEvent=function(n,t,i){r.each(this.analyticsClients,function(r){return r.logCustomEvent(n,t,i)})},n.prototype.getTopQueries=function(n){var t=this;return Promise.all(r.map(this.analyticsClients,function(t){return t.getTopQueries(n)})).then(function(i){return t.mergeTopQueries(i,n.pageSize)})},n.prototype.getCurrentVisitIdPromise=function(){return r.first(this.analyticsClients).getCurrentVisitIdPromise()},n.prototype.getCurrentVisitId=function(){return r.first(this.analyticsClients).getCurrentVisitId()},n.prototype.sendAllPendingEvents=function(){r.each(this.analyticsClients,function(n){return n.sendAllPendingEvents()})},n.prototype.warnAboutSearchEvent=function(){r.each(this.analyticsClients,function(n){return n.warnAboutSearchEvent()})},n.prototype.cancelAllPendingEvents=function(){r.each(this.analyticsClients,function(n){return n.cancelAllPendingEvents()})},n.prototype.getPendingSearchEvent=function(){return r.first(this.analyticsClients).getPendingSearchEvent()},n.prototype.mergeTopQueries=function(n,t){return void 0===t&&(t=5),r.chain(n).flatten().first(t).value()},n}();t.MultiAnalyticsClient=u},function(n,t,i){"use strict";var a=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},s=i(106),r=i(107),f=i(48),v=i(46),y=i(49),p=i(52),w=i(47),b=i(41),k=i(112),d=i(42),g=i(141),nt=i(101),h=i(98),tt=i(13),u=i(59),it=i(142),rt=i(81),c=i(133),l=i(45),e=i(14),o=function(n){function t(i,e,o,s){void 0===e&&(e={});void 0===o&&(o={});void 0===s&&(s=window);var h=n.call(this,i,r.ComponentOptions.initComponentOptions(i,t,e),o,s)||this;return h.element=i,h.options=e,h.analyticsOptions=o,h.options.id||h.generateDefaultId(),h.preventEventPropagation(),h.options.mainSearchInterface&&h.bindToMainSearchInterface(),u.$$(h.element).on(f.QueryEvents.buildingQuery,function(n,t){return h.handleRecommendationBuildingQuery(t)}),u.$$(h.element).on(f.QueryEvents.querySuccess,function(n,t){return h.handleRecommendationQuerySuccess(t)}),u.$$(h.element).on(f.QueryEvents.noResults,function(){return h.handleRecommendationNoResults()}),u.$$(h.element).on(f.QueryEvents.queryError,function(){return h.handleRecommendationQueryError()}),h.historyStore=new rt.history.HistoryStore,it.ResponsiveRecommendation.init(h.root,h,e),h}return a(t,n),t.prototype.getId=function(){return this.options.id},t.prototype.enable=function(){n.prototype.enable.call(this);this.show()},t.prototype.disable=function(){n.prototype.disable.call(this);this.hide()},t.prototype.hide=function(){this.displayStyle||(this.displayStyle=this.element.style.display);u.$$(this.element).hide()},t.prototype.show=function(){this.displayStyle||(this.displayStyle=this.element.style.display);this.element.style.display=this.displayStyle},t.prototype.bindToMainSearchInterface=function(){this.bindComponentOptionsModelToMainSearchInterface();this.bindQueryEventsToMainSearchInterface()},t.prototype.bindComponentOptionsModelToMainSearchInterface=function(){var n=this,t=c.get(this.options.mainSearchInterface,s.SearchInterface),r=null!=t,i=function(){var i=t.getBindings().componentOptionsModel;n.componentOptionsModel.setMultiple(i.getAttributes());u.$$(n.options.mainSearchInterface).on(n.componentOptionsModel.getEventName(h.MODEL_EVENTS.ALL),function(){n.componentOptionsModel.setMultiple(i.getAttributes())})};r?i():u.$$(this.options.mainSearchInterface).on(l.InitializationEvents.afterComponentsInitialization,function(){t=c.get(n.options.mainSearchInterface,s.SearchInterface);i()})},t.prototype.bindQueryEventsToMainSearchInterface=function(){var n=this;u.$$(this.options.mainSearchInterface).on(f.QueryEvents.querySuccess,function(t,i){n.mainInterfaceQuery=i;n.mainQuerySearchUID=i.results.searchUid;n.mainQueryPipeline=i.results.pipeline;n.usageAnalytics.logSearchEvent(k.analyticsActionCauseList.recommendation,{});n.queryController.executeQuery()})},t.prototype.handleRecommendationBuildingQuery=function(n){this.disabled||(this.modifyQueryForRecommendation(n),this.addRecommendationInfoInQuery(n))},t.prototype.handleRecommendationQuerySuccess=function(n){this.disabled||this.options.hideIfNoResults&&(0===n.results.totalCount?this.hide():this.show())},t.prototype.handleRecommendationNoResults=function(){this.disabled||this.options.hideIfNoResults&&this.hide()},t.prototype.handleRecommendationQueryError=function(){this.disabled||this.hide()},t.prototype.modifyQueryForRecommendation=function(n){this.mainInterfaceQuery&&tt.Utils.copyObjectAttributes(n.queryBuilder,this.mainInterfaceQuery.queryBuilder,this.options.optionsToUse)},t.prototype.addRecommendationInfoInQuery=function(n){e.isEmpty(this.options.userContext)||n.queryBuilder.addContext(JSON.parse(this.options.userContext));this.options.sendActionsHistory&&(n.queryBuilder.actionsHistory=this.getHistory());n.queryBuilder.recommendation=this.options.id},t.prototype.getHistory=function(){var n=this.historyStore.getHistory();return null==n&&(n=[]),JSON.stringify(n)},t.prototype.preventEventPropagation=function(){this.preventEventPropagationOn(f.QueryEvents);this.preventEventPropagationOn(v.OmniboxEvents);this.preventEventPropagationOn(y.ResultListEvents);this.preventEventPropagationOn(p.SettingsEvents);this.preventEventPropagationOn(w.PreferencesPanelEvents);this.preventEventPropagationOn(b.AnalyticsEvents);this.preventEventPropagationOn(d.BreadcrumbEvents);this.preventEventPropagationOn(g.QuickviewEvents);this.preventEventPropagationOn(l.InitializationEvents);this.preventEventPropagationOn(this.getAllModelEvents())},t.prototype.preventEventPropagationOn=function(n,t){void 0===t&&(t=function(n){return n});for(var i in n)u.$$(this.root).on(t(i),function(n){return n.stopPropagation()})},t.prototype.getAllModelEvents=function(){var t=this,n={};return e.each(e.values(h.Model.eventTypes),function(i){e.each(e.values(nt.QUERY_STATE_ATTRIBUTES),function(r){var u=t.getBindings().queryStateModel.getEventName(i+r);n[u]=u})}),n},t.prototype.generateDefaultId=function(){var n="Recommendation";1!==t.NEXT_ID&&(this.logger.warn("Generating another recommendation default id","Consider configuring a human friendly / meaningful id for this interface"),n=n+"_"+t.NEXT_ID);t.NEXT_ID++;this.options.id=n},t}(s.SearchInterface);o.ID="Recommendation";o.NEXT_ID=1;o.options={mainSearchInterface:r.ComponentOptions.buildSelectorOption(),userContext:r.ComponentOptions.buildJsonOption(),id:r.ComponentOptions.buildStringOption(),optionsToUse:r.ComponentOptions.buildListOption({defaultValue:["expression"]}),sendActionsHistory:r.ComponentOptions.buildBooleanOption({defaultValue:!0}),hideIfNoResults:r.ComponentOptions.buildBooleanOption({defaultValue:!0}),autoTriggerQuery:r.ComponentOptions.buildBooleanOption({postProcessing:function(n,t){return!t.mainSearchInterface&&n}}),enableResponsiveMode:r.ComponentOptions.buildBooleanOption({defaultValue:!0}),responsiveBreakpoint:r.ComponentOptions.buildNumberOption({defaultValue:1e3}),dropdownHeaderLabel:r.ComponentOptions.buildLocalizedStringOption({defaultValue:"Recommendations"})};t.Recommendation=o},function(n,t){"use strict";var i=function(){function n(){}return n}();i.quickviewLoaded="quickviewLoaded";i.openQuickview="openQuickview";t.QuickviewEvents=i},function(n,t,i){"use strict";var a=i(127),f=i(131),v=i(106),p=i(13),r=i(59),y=i(11),o=i(140),w=i(143),b=i(145),k=i(146),d=i(35),s=i(147),h=i(159),u=i(103),g=i(133),c=i(48),e=i(14),l=function(){function n(t,i,u,f){this.coveoRoot=t;this.ID=i;this.responsiveDropdown=f;this.recommendationRoot=this.getRecommendationRoot();this.dropdownHeaderLabel=u.dropdownHeaderLabel;this.breakpoint=this.defineResponsiveBreakpoint(u);this.logger=new y.Logger(this);this.dropdown=this.buildDropdown(f);this.facets=this.getFacets();this.facetSliders=this.getFacetSliders();this.registerOnOpenHandler();this.registerOnCloseHandler();this.registerQueryEvents();this.dropdownContainer=r.$$("div",{className:n.DROPDOWN_CONTAINER_CSS_CLASS_NAME})}return n.init=function(t,i,u){var e=new y.Logger("ResponsiveRecommendation"),f=this.findParentRootOfRecommendationComponent(t);return f?r.$$(f).find(".coveo-results-column")?void a.ResponsiveComponentsManager.register(n,r.$$(f),o.Recommendation.ID,i,u):void e.info("Cannot find element with class coveo-results-column. Disabling responsive mode for this component."):void e.info("Recommendation component has no parent interface. Disabling responsive mode for this component.")},n.findParentRootOfRecommendationComponent=function(n){var t=r.$$(n).parents(u.Component.computeCssClassName(v.SearchInterface));return t[0]?r.$$(t[0]):null},n.prototype.handleResizeEvent=function(){this.needSmallMode()&&!f.ResponsiveComponentsUtils.isSmallRecommendationActivated(this.coveoRoot)?this.changeToSmallMode():!this.needSmallMode()&&f.ResponsiveComponentsUtils.isSmallRecommendationActivated(this.coveoRoot)&&this.changeToLargeMode();this.dropdown.isOpened&&this.dropdown.dropdownContent.positionDropdown()},n.prototype.needDropdownWrapper=function(){return this.needSmallMode()},n.prototype.needSmallMode=function(){return this.coveoRoot.width()<=this.breakpoint},n.prototype.changeToSmallMode=function(){this.dropdown.close();r.$$(this.coveoRoot.find("."+a.ResponsiveComponentsManager.DROPDOWN_HEADER_WRAPPER_CSS_CLASS)).el.appendChild(this.dropdown.dropdownHeader.element.el);this.disableFacetPreservePosition();f.ResponsiveComponentsUtils.activateSmallRecommendation(this.coveoRoot);f.ResponsiveComponentsUtils.activateSmallRecommendation(this.recommendationRoot)},n.prototype.changeToLargeMode=function(){this.enableFacetPreservePosition();this.dropdown.cleanUp();f.ResponsiveComponentsUtils.deactivateSmallRecommendation(this.coveoRoot);f.ResponsiveComponentsUtils.deactivateSmallRecommendation(this.recommendationRoot)},n.prototype.buildDropdown=function(n){var i=this.buildDropdownContent(),r=this.buildDropdownHeader(),t=n?n:new k.ResponsiveDropdown(i,r,this.coveoRoot);return t.disablePopupBackground(),t},n.prototype.buildDropdownHeader=function(){var n=r.$$("a"),t=r.$$("p");return t.text(d.l(this.dropdownHeaderLabel)),n.el.appendChild(t.el),new b.ResponsiveDropdownHeader("recommendation",n)},n.prototype.buildDropdownContent=function(){var n,t=this.coveoRoot.find(".coveo-recommendation-column");return n=t?r.$$(t):r.$$(this.coveoRoot.find("."+u.Component.computeCssClassName(o.Recommendation))),new w.RecommendationDropdownContent("recommendation",n,this.coveoRoot)},n.prototype.defineResponsiveBreakpoint=function(t){return p.Utils.isNullOrUndefined(t.responsiveBreakpoint)?n.RESPONSIVE_BREAKPOINT:t.responsiveBreakpoint},n.prototype.getFacetSliders=function(){var n=[];return e.each(this.coveoRoot.findAll("."+u.Component.computeCssClassName(s.FacetSlider)),function(t){var i=u.Component.get(t,s.FacetSlider);i instanceof s.FacetSlider&&n.push(i)}),n},n.prototype.getFacets=function(){var n=[];return e.each(this.coveoRoot.findAll("."+u.Component.computeCssClassName(h.Facet)),function(t){var i=u.Component.get(t,h.Facet);i instanceof h.Facet&&n.push(i)}),n},n.prototype.dismissFacetSearches=function(){e.each(this.facets,function(n){n.facetSearch&&n.facetSearch.currentlyDisplayedResults&&n.facetSearch.completelyDismissSearch()})},n.prototype.enableFacetPreservePosition=function(){e.each(this.facets,function(n){return n.options.preservePosition=!0})},n.prototype.disableFacetPreservePosition=function(){e.each(this.facets,function(n){return n.options.preservePosition=!1})},n.prototype.drawFacetSliderGraphs=function(){e.each(this.facetSliders,function(n){return n.drawDelayedGraphData()})},n.prototype.registerOnOpenHandler=function(){this.dropdown.registerOnOpenHandler(this.drawFacetSliderGraphs,this)},n.prototype.registerOnCloseHandler=function(){this.dropdown.registerOnCloseHandler(this.dismissFacetSearches,this)},n.prototype.getRecommendationRoot=function(){return r.$$(this.coveoRoot.find("."+u.Component.computeCssClassName(o.Recommendation)))},n.prototype.registerQueryEvents=function(){var n=this,t=g.get(this.recommendationRoot.el,v.SearchInterface);t&&t.options.hideIfNoResults&&(this.coveoRoot.on(c.QueryEvents.querySuccess,function(t,i){return n.handleRecommnendationQuerySucess(i)}),this.coveoRoot.on(c.QueryEvents.noResults,function(){return n.handleRecommendationNoResults()}));this.coveoRoot.on(c.QueryEvents.queryError,function(){return n.handleRecommendationQueryError()})},n.prototype.handleRecommnendationQuerySucess=function(n){0===n.results.totalCount?(this.dropdown.close(),this.dropdown.dropdownHeader.hide()):this.dropdown.dropdownHeader.show()},n.prototype.handleRecommendationNoResults=function(){this.dropdown.close();this.dropdown.dropdownHeader.hide()},n.prototype.handleRecommendationQueryError=function(){this.dropdown.close();this.dropdown.dropdownHeader.hide()},n}();l.DROPDOWN_CONTAINER_CSS_CLASS_NAME="coveo-recommendation-dropdown-container";l.RESPONSIVE_BREAKPOINT=1e3;t.ResponsiveRecommendation=l},function(n,t,i){"use strict";var r=i(144),f=i(59),u=function(){function n(n,t,i){this.element=t;this.coveoRoot=i;this.cssClassName="coveo-"+n+"-dropdown-content";this.element.addClass(this.cssClassName);this.element.addClass(r.ResponsiveDropdownContent.DEFAULT_CSS_CLASS_NAME)}return n.prototype.positionDropdown=function(){this.element.el.style.display="";var t=this.coveoRoot.find(".coveo-results-column");f.$$(t).prepend(this.element.el);this.element.addClass(r.ResponsiveDropdownContent.DEFAULT_CSS_CLASS_NAME);this.element.addClass(this.cssClassName);window.getComputedStyle(this.element.el).maxHeight;this.element.addClass(n.OPENED_DROPDOWN_CSS_CLASS_NAME)},n.prototype.hideDropdown=function(){this.element.addClass(r.ResponsiveDropdownContent.DEFAULT_CSS_CLASS_NAME);this.element.addClass(this.cssClassName);this.element.removeClass(n.OPENED_DROPDOWN_CSS_CLASS_NAME)},n.prototype.cleanUp=function(){this.element.removeClass(this.cssClassName);this.element.removeClass(r.ResponsiveDropdownContent.DEFAULT_CSS_CLASS_NAME)},n}();u.OPENED_DROPDOWN_CSS_CLASS_NAME="coveo-open-dropdown-content";t.RecommendationDropdownContent=u},function(n,t,i){"use strict";var f=i(59),r=i(72),e=i(127),u=function(){function n(n,t,i,r,u){this.element=t;this.cssClassName="coveo-"+n+"-dropdown-content";this.coveoRoot=i;this.widthRatio=u;this.minWidth=r}return n.prototype.positionDropdown=function(){this.element.addClass(this.cssClassName);this.element.addClass(n.DEFAULT_CSS_CLASS_NAME);this.element.el.style.display="";var t=this.widthRatio*this.coveoRoot.width();t<=this.minWidth&&(t=this.minWidth);this.element.el.style.width=t.toString()+"px";r.PopupUtils.positionPopup(this.element.el,f.$$(this.coveoRoot.find("."+e.ResponsiveComponentsManager.DROPDOWN_HEADER_WRAPPER_CSS_CLASS)).el,this.coveoRoot.el,{horizontal:r.HorizontalAlignment.INNERRIGHT,vertical:r.VerticalAlignment.BOTTOM,verticalOffset:15},this.coveoRoot.el)},n.prototype.hideDropdown=function(){this.element.el.style.display="none";this.element.removeClass(this.cssClassName);this.element.removeClass(n.DEFAULT_CSS_CLASS_NAME)},n.prototype.cleanUp=function(){this.element.el.removeAttribute("style")},n}();u.DEFAULT_CSS_CLASS_NAME="coveo-dropdown-content";t.ResponsiveDropdownContent=u},function(n,t,i){"use strict";var u=i(59),r=function(){function n(t,i){this.element=i;this.element.addClass("coveo-"+t+"-dropdown-header");this.element.addClass(n.DEFAULT_CSS_CLASS_NAME)}return n.prototype.open=function(){this.element.addClass(n.ACTIVE_HEADER_CSS_CLASS_NAME)},n.prototype.close=function(){this.element.removeClass(n.ACTIVE_HEADER_CSS_CLASS_NAME)},n.prototype.cleanUp=function(){this.element.detach()},n.prototype.hide=function(){u.$$(this.element).addClass("coveo-hidden")},n.prototype.show=function(){u.$$(this.element).removeClass("coveo-hidden")},n}();r.DEFAULT_CSS_CLASS_NAME="coveo-dropdown-header";r.ACTIVE_HEADER_CSS_CLASS_NAME="coveo-dropdown-header-active";t.ResponsiveDropdownHeader=r},function(n,t,i){"use strict";var r=i(59),e=i(130),f=i(14),u=function(){function n(n,t,i){this.dropdownContent=n;this.dropdownHeader=t;this.coveoRoot=i;this.isOpened=!1;this.onOpenHandlers=[];this.onCloseHandlers=[];this.popupBackgroundIsEnabled=!0;this.popupBackground=this.buildPopupBackground();this.bindOnClickDropdownHeaderEvent();this.saveContentPosition()}return n.prototype.registerOnOpenHandler=function(n,t){this.onOpenHandlers.push({handler:n,context:t})},n.prototype.registerOnCloseHandler=function(n,t){this.onCloseHandlers.push({handler:n,context:t})},n.prototype.cleanUp=function(){this.close();this.dropdownHeader.cleanUp();this.dropdownContent.cleanUp();this.restoreContentPosition()},n.prototype.open=function(){this.isOpened=!0;this.dropdownHeader.open();this.dropdownContent.positionDropdown();f.each(this.onOpenHandlers,function(n){n.handler.apply(n.context)});this.showPopupBackground()},n.prototype.close=function(){this.isOpened=!1;f.each(this.onCloseHandlers,function(n){n.handler.apply(n.context)});this.dropdownHeader.close();this.dropdownContent.hideDropdown();this.hidePopupBackground()},n.prototype.disablePopupBackground=function(){this.popupBackgroundIsEnabled=!1},n.prototype.bindOnClickDropdownHeaderEvent=function(){var n=this;this.dropdownHeader.element.on("click",function(){n.isOpened?n.close():n.open()})},n.prototype.showPopupBackground=function(){this.popupBackgroundIsEnabled&&(this.coveoRoot.el.appendChild(this.popupBackground.el),window.getComputedStyle(this.popupBackground.el).opacity,this.popupBackground.el.style.opacity=n.TRANSPARENT_BACKGROUND_OPACITY)},n.prototype.hidePopupBackground=function(){this.popupBackgroundIsEnabled&&(window.getComputedStyle(this.popupBackground.el).opacity,this.popupBackground.el.style.opacity="0")},n.prototype.buildPopupBackground=function(){var i=this,t=r.$$("div",{className:n.DROPDOWN_BACKGROUND_CSS_CLASS_NAME});return e.EventsUtils.addPrefixedEvent(t.el,"TransitionEnd",function(){"0"==t.el.style.opacity&&t.detach()}),t.on("click",function(){return i.close()}),t},n.prototype.saveContentPosition=function(){var n=this.dropdownContent.element.el.previousSibling,t=this.dropdownContent.element.el.parentElement;this.previousSibling=n?r.$$(n):null;this.parent=r.$$(t)},n.prototype.restoreContentPosition=function(){this.previousSibling?this.dropdownContent.element.insertAfter(this.previousSibling.el):this.parent.prepend(this.dropdownContent.element.el)},n}();u.TRANSPARENT_BACKGROUND_OPACITY="0.9";u.DROPDOWN_BACKGROUND_CSS_CLASS_NAME="coveo-dropdown-background";t.ResponsiveDropdown=u},function(n,t,i){"use strict";var v=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},y=i(148),p=i(103),r=i(107),w=i(158),b=i(169),k=i(35),d=i(45),g=i(95),f=i(48),s=i(42),nt=i(98),u=i(59),h=i(112),tt=i(101),c=i(53),a=i(12),o=i(13),it=i(131),rt=i(111),ut=i(157),ft=i(51),l=i(14),e=function(n){function t(i,e,o,h){var c=n.call(this,i,t.ID,o)||this;return c.element=i,c.options=e,c.slider=h,c.isEmpty=!1,c.options=r.ComponentOptions.initComponentOptions(i,t,e),w.ResponsiveFacets.init(c.root,c,c.options),null==c.options.excludeOuterBounds&&(c.options.excludeOuterBounds=!1),c.options.start&&(c.options.start=c.options.dateField?new Date(c.options.start.replace(/-/g,"/")).getTime():Number(c.options.start)),c.options.end&&(c.options.end=c.options.dateField?new Date(c.options.end.replace(/-/g,"/")).getTime():Number(c.options.end)),c.hasAGraph()&&"undefined"==typeof ut&&(c.options.graph=void 0,c.logger.info("Cannot find the required dependencies d3.js. Cannot add graphic to your facet range",c)),c.facetQueryController=new g.FacetSliderQueryController(c),c.initQueryStateEvents(),c.bind.onRootElement(f.QueryEvents.newQuery,function(){return c.handleNewQuery()}),c.bind.onRootElement(f.QueryEvents.noResults,function(){return c.handleNoresults()}),c.bind.onRootElement(f.QueryEvents.deferredQuerySuccess,function(n){return c.handleDeferredQuerySuccess(n)}),c.bind.onRootElement(f.QueryEvents.buildingQuery,function(n){return c.handleBuildingQuery(n)}),c.bind.onRootElement(f.QueryEvents.doneBuildingQuery,function(n){return c.handleDoneBuildingQuery(n)}),c.bind.onRootElement(s.BreadcrumbEvents.populateBreadcrumb,function(n){return c.handlePopulateBreadcrumb(n)}),c.bind.onRootElement(ft.SearchAlertsEvents.searchAlertsPopulateMessage,function(n){return c.handlePopulateSearchAlerts(n)}),c.bind.onRootElement(s.BreadcrumbEvents.clearBreadcrumb,function(){return c.reset()}),c.onResize=l.debounce(function(){it.ResponsiveComponentsUtils.shouldDrawFacetSlider(u.$$(c.root))&&c.slider&&!c.isEmpty&&c.slider.drawGraph()},t.DEBOUNCED_RESIZE_DELAY),window.addEventListener("resize",c.onResize),c.bind.onRootElement("onPopupOpen",c.onResize),u.$$(c.root).on(d.InitializationEvents.nuke,c.handleNuke),c}return v(t,n),t.prototype.createDom=function(){this.facetHeader=new b.FacetHeader({field:this.options.field,facetElement:this.element,title:this.options.title,enableClearElement:!0,enableCollapseElement:!0,isNewDesign:this.getBindings().searchInterface.isNewDesign(),facetSlider:this});this.element.appendChild(this.facetHeader.build())},t.prototype.disable=function(){n.prototype.disable.call(this);u.$$(this.element).addClass("coveo-disabled-empty")},t.prototype.reset=function(){this.slider&&(this.slider.initializeState(),this.updateQueryState(),this.updateAppearanceDependingOnState())},t.prototype.getSelectedValues=function(){return void 0!=this.startOfSlider&&void 0!=this.endOfSlider?[this.startOfSlider,this.endOfSlider]:[void 0,void 0]},t.prototype.setSelectedValues=function(n){this.setupSliderIfNeeded(void 0);this.startOfSlider=n[0];this.endOfSlider=n[1];this.slider.setValues([this.startOfSlider,this.endOfSlider]);this.updateAppearanceDependingOnState()},t.prototype.isActive=function(){return!(isNaN(this.startOfSlider)||isNaN(this.endOfSlider)||isNaN(this.initialStartOfSlider)||isNaN(this.initialEndOfSlider)||this.startOfSlider==this.initialStartOfSlider&&this.endOfSlider==this.initialEndOfSlider)},t.prototype.getSliderBoundaryForQuery=function(){var n=!1;return this.slider?this.slider&&this.isActive()&&(n=!0):n=!0,n?this.generateBoundary():void 0},t.prototype.drawDelayedGraphData=function(){void 0==this.delayedGraphData||this.isEmpty||this.slider.drawGraph(this.delayedGraphData)},t.prototype.handleNoresults=function(){this.isEmpty=!0;this.updateAppearanceDependingOnState()},t.prototype.handleNewQuery=function(){this.isEmpty=!1},t.prototype.handleRangeQueryStateChanged=function(n){this.setupSliderIfNeeded(n);this.startOfSlider=void 0==n.value[0]?this.startOfSlider:n.value[0];this.endOfSlider=void 0==n.value[1]?this.endOfSlider:n.value[1];this.setSelectedValues([this.startOfSlider,this.endOfSlider])},t.prototype.handlePopulateBreadcrumb=function(n){var t=this,i=function(){t.isActive()&&n.breadcrumbs.push({element:t.buildBreadcrumbFacetSlider()})};this.slider?i():u.$$(this.root).one(f.QueryEvents.deferredQuerySuccess,function(){i();u.$$(t.root).trigger(s.BreadcrumbEvents.redrawBreadcrumb)})},t.prototype.handlePopulateSearchAlerts=function(n){this.isActive()&&n.text.push(u.$$(this.buildBreadcrumbFacetSlider()).text())},t.prototype.buildBreadcrumbFacetSlider=function(){var n=this,i=u.$$("div",{className:"coveo-facet-slider-breadcrumb"}).el,f=u.$$("span",{className:"coveo-facet-slider-breadcrumb-title"}),r,t,e;return f.text(this.options.title+": "),i.appendChild(f.el),r=u.$$("span",{className:"coveo-facet-slider-breadcrumb-values"}),i.appendChild(r.el),t=u.$$("span",{className:"coveo-facet-slider-breadcrumb-value"}),t.text(this.slider.getCaption()),r.el.appendChild(t.el),e=u.$$("span",{className:"coveo-facet-slider-breadcrumb-clear"}),t.el.appendChild(e.el),t.on("click",function(){n.reset();n.usageAnalytics.logSearchEvent(h.analyticsActionCauseList.facetClearAll,{facetId:n.options.id,facetTitle:n.options.title});n.queryController.executeQuery()}),i},t.prototype.initSlider=function(){this.buildSlider();this.slider.initializeState([this.startOfSlider,this.endOfSlider]);this.updateAppearanceDependingOnState()},t.prototype.initQueryStateEvents=function(){var n=this,t;this.rangeQueryStateAttribute=tt.QueryStateModel.getFacetId(this.options.id)+":range";this.queryStateModel.registerNewAttribute(this.rangeQueryStateAttribute,[void 0,void 0]);t=this.queryStateModel.getEventName(nt.Model.eventTypes.changeOne+this.rangeQueryStateAttribute);this.bind.onRootElement(t,function(t){n.slider?n.handleRangeQueryStateChanged(t):n.setRangeStateSliderStillNotCreated(t)})},t.prototype.setRangeStateSliderStillNotCreated=function(n){this.rangeFromUrlState=this.copyValues(n.value)},t.prototype.buildSlider=function(){var t=this,i=u.$$("div",{className:"coveo-facet-values coveo-slider-container"}).el,n;this.hasAGraph()&&u.$$(i).addClass("coveo-with-graph");n=u.$$("div").el;this.slider=this.slider?this.slider:new y.Slider(n,l.extend({},this.options,{dateField:this.options.dateField}),this.root);u.$$(n).on(c.SliderEvents.endSlide,function(n,i){t.handleEndSlide(i)});u.$$(n).on(c.SliderEvents.duringSlide,function(n,i){t.handleDuringSlide(i)});this.hasAGraph()&&u.$$(n).on(c.SliderEvents.graphValueSelected,function(n,i){t.handleGraphValueSelected(i)});i.appendChild(n);this.element.appendChild(i);this.updateAppearanceDependingOnState()},t.prototype.handleBuildingQuery=function(n){var i,t;a.Assert.exists(n);a.Assert.exists(n.queryBuilder);i=this.getSliderBoundaryForQuery();void 0!=i&&(this.facetQueryController.prepareForNewQuery(),t=this.facetQueryController.computeOurFilterExpression(i),o.Utils.isNonEmptyString(t)&&(this.logger.trace("Putting filter in query",t),n.queryBuilder.advancedExpression.add(t)))},t.prototype.handleDoneBuildingQuery=function(n){var t=n.queryBuilder;this.facetQueryController.putGroupByIntoQueryBuilder(t)},t.prototype.handleDeferredQuerySuccess=function(n){this.ensureDom();this.setupSliderIfNeeded(n);var t=n.results.groupByResults[this.facetQueryController.lastGroupByRequestIndex];void 0!=t&&void 0!=t.values[0]||(this.isEmpty=!0);this.updateAppearanceDependingOnState();this.hasAGraph()&&this.renderToSliderGraph(n)},t.prototype.handleEndSlide=function(n){var t=n.slider.getValues();this.startOfSlider=t[0];this.endOfSlider=t[1];this.updateQueryState(t)&&(this.updateAppearanceDependingOnState(),this.usageAnalytics.logSearchEvent(h.analyticsActionCauseList.facetRangeSlider,{facetId:this.options.id,facetRangeStart:this.startOfSlider.toString(),facetRangeEnd:this.endOfSlider.toString()}),this.queryController.executeQuery())},t.prototype.handleDuringSlide=function(n){var t=n.slider.getValues();this.startOfSlider=t[0];this.endOfSlider=t[1];this.slider.setValues([this.startOfSlider,this.endOfSlider]);this.updateAppearanceDependingOnState(!0)},t.prototype.handleGraphValueSelected=function(n){(this.options.rangeSlider&&this.startOfSlider!=n.start||this.endOfSlider!=n.end)&&(this.options.rangeSlider&&(this.startOfSlider=n.start),this.endOfSlider=n.end,this.slider.setValues([this.startOfSlider,this.endOfSlider]),this.updateQueryState(),this.usageAnalytics.logSearchEvent(h.analyticsActionCauseList.facetRangeGraph,{facetId:this.options.id,facetRangeStart:this.startOfSlider.toString(),facetRangeEnd:this.endOfSlider.toString()}),this.queryController.executeQuery())},t.prototype.updateQueryState=function(n,t){void 0===n&&(n=this.slider.getValues());void 0===t&&(t=!1);var i=this.copyValues(n),u=n[0]+0,f=n[1]+0,r=this.queryStateModel.get(this.rangeQueryStateAttribute);return(null==r||i[0]!=r[0]||i[1]!=r[1])&&(i[0]=u,i[1]=f,this.queryStateModel.set(this.rangeQueryStateAttribute,i,{silent:t}),!0)},t.prototype.copyValues=function(n){var t=[];return t[0]=Number(n[0])+0,t[1]=Number(n[1])+0,t},t.prototype.renderToSliderGraph=function(n){var t,i=this,r=n.results.groupByResults[this.facetQueryController.graphGroupByQueriesIndex],u=0;r&&(t=l.map(r.values,function(n){var t,r,f;return u+=n.numberOfResults,t=n.value.split("..")[0],r=n.value.split("..")[1],i.options.dateField?(t=new Date(t.split("@")[0]).getTime(),r=new Date(r.split("@")[0]).getTime()):(t=Number(t),r=Number(r)),f=n.numberOfResults,{start:t,y:f,end:r,isDate:i.options.dateField}}));0==u?(this.isEmpty=!0,this.updateAppearanceDependingOnState()):void 0==t||this.isDropdownHidden()?void 0!=t&&this.isDropdownHidden()&&(this.delayedGraphData=t):this.slider.drawGraph(t)},t.prototype.isDropdownHidden=function(){var n=this.root.querySelector(".coveo-facet-column"),t;return n?"none"==u.$$(n).css("display"):u.$$(this.root).hasClass("CoveoRecommendation")?(t=u.$$(this.root).parents(".coveo-recommendation-column")[0]||this.root,"none"==u.$$(t).css("display")):!1},t.prototype.generateBoundary=function(){if(this.slider){var n=this.generateBoundaryFromSlider();return void 0==n[0]&&void 0==n[1]?this.generateBoundaryFromState():n}return this.generateBoundaryFromState()},t.prototype.generateBoundaryFromSlider=function(){var n,t;return void 0!=this.startOfSlider&&(n=this.startOfSlider),void 0!=this.endOfSlider&&(t=this.endOfSlider),[n,t]},t.prototype.generateBoundaryFromState=function(){var n,t,r=this.queryStateModel.get(this.rangeQueryStateAttribute)[0],i;return void 0!=r&&(n=r),i=this.queryStateModel.get(this.rangeQueryStateAttribute)[1],void 0!=i&&(t=i),n!=this.queryStateModel.getDefault(this.rangeQueryStateAttribute)[0]||t!=this.queryStateModel.getDefault(this.rangeQueryStateAttribute)[1]?[n,t]:[void 0,void 0]},t.prototype.setupSliderIfNeeded=function(n){if(this.ensureDom(),o.Utils.isNullOrUndefined(this.slider)){this.alreadySetBoundary()||this.trySetSliderBoundaryFromOptions();this.alreadySetBoundary()||void 0==n||this.trySetSliderBoundaryFromQueryResult(n);this.trySetSliderBoundaryFromState();this.setupSliderStateVariables();var t=this.verifySetup();t?this.logger.warn("Unable to initialize slider with current values",this):(this.initSlider(),this.updateQueryState())}},t.prototype.verifySetup=function(){var n=0;return n+=void 0==this.initialStartOfSlider?1:0,n+=isNaN(this.initialStartOfSlider)?1:0,n+=void 0==this.initialEndOfSlider?1:0,n+(isNaN(this.initialEndOfSlider)?1:0)},t.prototype.setupSliderStateVariables=function(){isNaN(this.initialStartOfSlider)||isNaN(this.initialEndOfSlider)?this.logger.warn("Cannnot initialize slider with those values : start: "+this.initialStartOfSlider+" end: "+this.initialEndOfSlider):(this.initialStartOfSlider=Number(this.initialStartOfSlider),this.initialEndOfSlider=Number(this.initialEndOfSlider),this.startOfSlider=void 0!=this.startOfSlider?Number(this.startOfSlider):this.initialStartOfSlider,this.endOfSlider=void 0!=this.endOfSlider?Number(this.endOfSlider):this.initialEndOfSlider,this.options.start=this.initialStartOfSlider,this.options.end=this.initialEndOfSlider,this.queryStateModel.setNewDefault(this.rangeQueryStateAttribute,[this.initialStartOfSlider,this.initialEndOfSlider]))},t.prototype.alreadySetBoundary=function(){return void 0!=this.startOfSlider&&void 0!=this.endOfSlider},t.prototype.trySetSliderBoundaryFromOptions=function(){o.Utils.isNullOrUndefined(this.options.start)||this.setupInitialSliderStateStart(this.options.start);o.Utils.isNullOrUndefined(this.options.end)||this.setupInitialSliderStateEnd(this.options.end)},t.prototype.trySetSliderBoundaryFromState=function(){var n=this.rangeFromUrlState||this.queryStateModel.get(this.rangeQueryStateAttribute);n&&void 0!=n[0]&&void 0!=n[1]&&(n[0]=Number(n[0]),n[1]=Number(n[1]),this.setupInitialSliderStateStart(n[0]),this.setupInitialSliderStateEnd(n[1]),this.startOfSlider=n[0],this.endOfSlider=n[1])},t.prototype.trySetSliderBoundaryFromQueryResult=function(n){var t=n.results.groupByResults[this.facetQueryController.lastGroupByRequestIndex];t&&t.values.length>0&&(this.setupInitialSliderStateStart(t.values[0].value.split("..")[0]),this.setupInitialSliderStateEnd(t.values[t.values.length-1].value.split("..")[1]))},t.prototype.setupInitialSliderStateStart=function(n){void 0==this.initialStartOfSlider&&(this.initialStartOfSlider=n,this.options.dateField&&isNaN(n)&&(this.initialStartOfSlider=new Date(n.replace("@"," ")).getTime()))},t.prototype.setupInitialSliderStateEnd=function(n){void 0==this.initialEndOfSlider&&(this.initialEndOfSlider=n,this.options.dateField&&isNaN(n)&&(this.initialEndOfSlider=new Date(n.replace("@"," ")).getTime()))},t.prototype.hasAGraph=function(){return void 0!=this.options.graph},t.prototype.updateAppearanceDependingOnState=function(n){void 0===n&&(n=!1);!this.isEmpty||this.isActive()||n?(u.$$(this.element).removeClass("coveo-disabled-empty"),u.$$(this.facetHeader.eraserElement).toggle(this.isActive())):u.$$(this.element).addClass("coveo-disabled-empty");this.isActive()||n?u.$$(this.element).removeClass("coveo-disabled"):u.$$(this.element).addClass("coveo-disabled")},t.prototype.handleNuke=function(){window.removeEventListener("resize",this.onResize)},t}(p.Component);e.options={title:r.ComponentOptions.buildLocalizedStringOption({defaultValue:k.l("NoTitle")}),dateField:r.ComponentOptions.buildBooleanOption({defaultValue:!1}),field:r.ComponentOptions.buildFieldOption({groupByField:!0,required:!0}),id:r.ComponentOptions.buildStringOption({postProcessing:function(n,t){return n||t.field}}),dateFormat:r.ComponentOptions.buildStringOption(),queryOverride:r.ComponentOptions.buildStringOption(),start:r.ComponentOptions.buildStringOption(),end:r.ComponentOptions.buildStringOption(),excludeOuterBounds:r.ComponentOptions.buildBooleanOption({defaultValue:!1}),rounded:r.ComponentOptions.buildNumberOption({min:0}),steps:r.ComponentOptions.buildNumberOption({min:2}),rangeSlider:r.ComponentOptions.buildBooleanOption(),displayAsValue:r.ComponentOptions.buildObjectOption({subOptions:{enable:r.ComponentOptions.buildBooleanOption({defaultValue:!0}),unitSign:r.ComponentOptions.buildStringOption(),separator:r.ComponentOptions.buildStringOption({defaultValue:"-"})}}),displayAsPercent:r.ComponentOptions.buildObjectOption({subOptions:{enable:r.ComponentOptions.buildBooleanOption({defaultValue:!1}),separator:r.ComponentOptions.buildStringOption({defaultValue:"-"})}}),graph:r.ComponentOptions.buildObjectOption({subOptions:{steps:r.ComponentOptions.buildNumberOption({min:2}),animationDuration:r.ComponentOptions.buildNumberOption({min:0}),margin:r.ComponentOptions.buildObjectOption({subOptions:{top:r.ComponentOptions.buildNumberOption({min:0}),bottom:r.ComponentOptions.buildNumberOption({min:0}),left:r.ComponentOptions.buildNumberOption({min:0}),right:r.ComponentOptions.buildNumberOption({min:0})}})}}),getSteps:r.ComponentOptions.buildCustomOption(function(){return null}),valueCaption:r.ComponentOptions.buildCustomOption(function(){return null}),enableResponsiveMode:r.ComponentOptions.buildBooleanOption({defaultValue:!0}),dropdownHeaderLabel:r.ComponentOptions.buildLocalizedStringOption()};e.ID="FacetSlider";e.DEBOUNCED_RESIZE_DELAY=250;t.FacetSlider=e;rt.Initialization.registerAutoCreateComponent(e)},function(n,t,i){"use strict";var r=i(59),o=i(16),e=i(53),v=i(13),s=i(149),h=i(157),c=i(28),u=i(14),y=i(11),l,a,f;t.MAX_NUMBER_OF_STEPS=100;l=function(){function n(n,t,i){var o=this,e;(this.element=n,this.options=t,this.root=i,this.steps=[],this.options.dateField&&(this.options.start=new Date(this.options.start).getTime(),this.options.end=new Date(this.options.end).getTime()),void 0==this.options.rounded&&(this.options.rounded=0),(this.options.steps||this.options.getSteps)&&this.buildSteps(),this.options.graph&&(this.sliderGraph=new b(this)),this.sliderLine=new a(this),u.each(this.sliderLine.build(),function(n){o.element.appendChild(n)}),this.options.rangeSlider)?(this.sliderRange=new p(this),u.each(this.sliderRange.build(),function(n){o.element.appendChild(n)})):(this.sliderButton=new f(this,1),e=this.sliderButton.build(),r.$$(e).addClass("coveo-no-range-button"),this.element.appendChild(e),this.sliderLine.setActiveWidth(this.sliderButton));this.sliderCaption=new w(this);this.element.appendChild(this.sliderCaption.build())}return n.prototype.onMoving=function(){this.options.rangeSlider?(this.sliderRange.setBoundary(),this.sliderLine.setActiveWidth(this.sliderRange.firstButton,this.sliderRange.secondButton)):(this.setButtonBoundary(),this.sliderLine.setActiveWidth(this.sliderButton));this.options.graph&&this.sliderGraph.draw();this.displayCaption()},n.prototype.initializeState=function(n){void 0===n&&(n=[this.options.start,this.options.end]);this.currentValues=n;this.options.rangeSlider?(this.sliderRange.initializeSliderRangeState(n),this.sliderLine.setActiveWidth(this.sliderRange.firstButton,this.sliderRange.secondButton)):(void 0==n?this.sliderButton.toEnd():this.sliderButton.setValue(n[1]),this.setButtonBoundary(),this.sliderLine.setActiveWidth(this.sliderButton));this.displayCaption()},n.prototype.getPosition=function(){return this.options.rangeSlider?this.sliderRange.getPosition():[0,this.sliderButton.getPosition()]},n.prototype.getPercentPosition=function(){return this.options.rangeSlider?this.sliderRange.getPercentPosition():[0,this.sliderButton.getPercent()]},n.prototype.getValues=function(){return void 0!=this.currentValues?this.currentValues:this.options.rangeSlider?this.sliderRange.getValue():[this.options.start,this.sliderButton.getValue()]},n.prototype.getCaptionFromValue=function(n){return this.sliderCaption.getCaptionFromValues(n)},n.prototype.getCaption=function(){return this.sliderCaption.getCaption()},n.prototype.setValues=function(n){void 0!=n&&(n[0]=Math.max(n[0],this.options.start),n[1]=Math.min(n[1],this.options.end));this.currentValues=n;this.options.rangeSlider?(this.sliderRange.setValue(n),this.sliderLine.setActiveWidth(this.sliderRange.firstButton,this.sliderRange.secondButton)):(this.sliderButton.setValue(n[1]),this.sliderLine.setActiveWidth(this.sliderButton));this.displayCaption()},n.prototype.drawGraph=function(n){this.sliderGraph&&this.sliderGraph.draw(n)},n.prototype.setButtonBoundary=function(){this.sliderButton.leftBoundary=0;this.sliderButton.rightBoundary=this.element.clientWidth},n.prototype.displayCaption=function(){void 0!=this.options.valueCaption?this.sliderCaption.setFromString(this.options.valueCaption(this.getValues())):void 0!=this.options.percentCaption?this.sliderCaption.setFromString(this.options.percentCaption(this.getPercentPosition())):void 0!=this.options.displayAsPercent&&void 0!=this.options.displayAsPercent.separator&&this.options.displayAsPercent.enable?this.sliderCaption.setAsPercent():this.sliderCaption.setAsValue()},n.prototype.buildSteps=function(){var i,n,r;if(this.options.getSteps)this.steps=this.options.getSteps(this.options.start,this.options.end);else if(this.options.steps>t.MAX_NUMBER_OF_STEPS&&(new y.Logger(this).warn("Maximum number of steps for slider is "+t.MAX_NUMBER_OF_STEPS+" for performance reason"),this.options.steps=t.MAX_NUMBER_OF_STEPS),i=(this.options.end-this.options.start)/Math.max(1,this.options.steps),i>0)for(n=this.options.start,r=0;n<=this.options.end&&r<=t.MAX_NUMBER_OF_STEPS;)this.steps.push(n),n+=i,r++;else this.steps.push(this.options.start),this.steps.push(this.options.end)},n}();t.Slider=l;a=function(){function n(n){this.slider=n}return n.prototype.build=function(){return this.backGround=r.$$("div",{className:"coveo-slider-line coveo-background"}).el,this.activePart=r.$$("div",{className:"coveo-slider-line coveo-active"}).el,[this.backGround,this.activePart]},n.prototype.setActiveWidth=function(n,t){var i;this.slider.options.rangeSlider?(i=100*(t.getPercent()-n.getPercent()),this.activePart.style.width=i+"%",this.activePart.style.left=100*n.getPercent()+"%",this.activePart.style.right=100*t.getPercent()+"%"):(i=100*n.getPercent(),this.activePart.style.width=i+"%")},n}();f=function(){function n(n,t){this.slider=n;this.which=t;this.eventMouseDown=o.DeviceUtils.isMobileDevice()?"touchstart":"mousedown";this.eventMouseMove=o.DeviceUtils.isMobileDevice()?"touchmove":"mousemove";this.eventMouseUp=o.DeviceUtils.isMobileDevice()?"touchend":"mouseup"}return n.prototype.build=function(){return this.element=r.$$("div",{className:"coveo-slider-button"}).el,this.bindEvents(),this.element.CoveoSliderButton=this,this.element},n.prototype.toBeginning=function(){this.element.style.left="0%"},n.prototype.toEnd=function(){this.element.style.left="100%"},n.prototype.setValue=function(n){var t=this.fromValueToPercent(n);this.element.style.left=Math.round(100*t)+"%"},n.prototype.getPosition=function(){var n=this.element.style.left;return n.indexOf("%")!=-1?parseFloat(n)/100*this.slider.element.clientWidth:parseFloat(n)},n.prototype.getPercent=function(n){return void 0===n&&(n=this.getPosition()),0==this.slider.element.clientWidth?0:+(n/this.slider.element.clientWidth).toFixed(2)},n.prototype.getValue=function(){return this.getPercent()*(this.slider.options.end-this.slider.options.start)+this.slider.options.start},n.prototype.fromValueToPercent=function(n){return 1-(this.slider.options.end-n)/(this.slider.options.end-this.slider.options.start)},n.prototype.fromPositionToValue=function(n){var t=this.getPercent(n);return this.slider.options.start+t*(this.slider.options.end-this.slider.options.start)},n.prototype.fromValueToPosition=function(n){var t=this.fromValueToPercent(n);return this.slider.element.clientWidth*t},n.prototype.bindEvents=function(){var n=this,t;r.$$(this.element).on(this.eventMouseDown,function(t){n.handleStartSlide(t)});t=this.slider.options.document||document;t.addEventListener(this.eventMouseMove,function(t){"touchmove"==n.eventMouseMove&&n.isMouseDown&&t.preventDefault();n.handleMoving(t)});t.addEventListener(this.eventMouseUp,function(){n.handleEndSlide()})},n.prototype.getUserSelect=function(){return void 0!==document.body.style.msUserSelect?"msUserSelect":void 0!==document.body.style.webkitUserSelect?"webkitUserSelect":void 0!==document.body.style.MozUserSelect?"MozUserSelect":"userSelect"},n.prototype.handleStartSlide=function(n){var t=this.getMousePosition(n);this.isMouseDown=!0;this.startPositionX=t.x;this.lastElementLeft=parseInt(this.element.style.left,10)/100*this.slider.element.clientWidth;this.origUserSelect=document.body.style[this.getUserSelect()];this.origCursor=document.body.style.cursor;document.body.style[this.getUserSelect()]="none";document.body.style.cursor="pointer";r.$$(this.element).addClass("coveo-active");r.$$(this.element).trigger(e.SliderEvents.startSlide,{button:this,slider:this.slider});n.stopPropagation()},n.prototype.handleMoving=function(n){this.isMouseDown&&(this.slider.onMoving(),this.updatePosition(n),this.handleButtonNearEnd(),r.$$(this.element).trigger(e.SliderEvents.duringSlide,{button:this,slider:this.slider}))},n.prototype.handleEndSlide=function(){this.isMouseDown&&(document.body.style[this.getUserSelect()]=this.origUserSelect,document.body.style.cursor=this.origCursor,r.$$(this.element).removeClass("coveo-active"),r.$$(this.element).trigger(e.SliderEvents.endSlide,{button:this,slider:this.slider}));this.isMouseDown=!1},n.prototype.handleButtonNearEnd=function(){0==this.which&&(void 0==this.origZIndex&&(this.origZIndex=this.element.style.zIndex||"1"),this.element.style.zIndex=this.currentPos>90?this.origZIndex+1:this.origZIndex)},n.prototype.getMousePosition=function(n){var t=0,i=0;return n.touches&&n.touches[0]?(t=n.touches[0].pageX,i=n.touches[0].pageY):n.pageX&&n.pageY?(t=n.pageX,i=n.pageY):n.clientX&&n.clientY&&(t=n.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,i=n.clientY+document.body.scrollTop+document.documentElement.scrollTop),{x:t,y:i}},n.prototype.updatePosition=function(n){var u=this.getMousePosition(n),i=u.x-this.startPositionX,t,r;(this.currentPos=this.lastElementLeft+i,this.slider.options.steps||this.slider.options.getSteps)&&(t=this.snapToStep(i),this.currentPos=t.position,r=t.value);this.currentPos=Math.max(this.leftBoundary,this.currentPos);this.currentPos=Math.min(this.rightBoundary,this.currentPos);this.currentPos=100*this.getPercent(this.currentPos);this.currentPos=Math.min(this.currentPos,100);this.currentPos=Math.max(this.currentPos,0);this.element.style.left=Math.round(this.currentPos)+"%";this.slider.currentValues[this.which]=this.slider.options.steps||this.slider.options.getSteps?r:this.getValue()},n.prototype.snapToStep=function(){var n=this,i=u.map(this.slider.steps,function(t,i){return Math.abs(n.currentPos-n.fromValueToPosition(n.slider.steps[i]))}),r=u.map(this.slider.steps,function(t,i){return Math.abs(n.rightBoundary-n.fromValueToPosition(n.slider.steps[i]))}),f=u.map(this.slider.steps,function(t,i){return Math.abs(n.leftBoundary-n.fromValueToPosition(n.slider.steps[i]))}),e=u.min(i),o=u.min(r),s=u.min(f),t=this.slider.steps[u.indexOf(i,e)],h=this.slider.steps[u.indexOf(r,o)],c=this.slider.steps[u.indexOf(f,s)];return t=Math.min(t,h),t=Math.max(t,c),{position:this.fromValueToPosition(t),value:t}},n}();t.SliderButton=f;var p=function(){function n(n){this.slider=n;this.firstButton=new f(n,0);this.secondButton=new f(n,1)}return n.prototype.build=function(){var t=this.firstButton.build(),n=this.secondButton.build();return r.$$(n).addClass("coveo-range-button"),[t,n]},n.prototype.initializeSliderRangeState=function(n){void 0==n?(this.firstButton.toBeginning(),this.secondButton.toEnd()):(this.firstButton.setValue(n[0]),this.secondButton.setValue(n[1]));this.setBoundary()},n.prototype.setValue=function(n){this.firstButton.setValue(n[0]);this.secondButton.setValue(n[1])},n.prototype.setBoundary=function(){this.firstButton.leftBoundary=0;this.firstButton.rightBoundary=this.secondButton.getPosition();this.secondButton.leftBoundary=this.firstButton.getPosition();this.secondButton.rightBoundary=this.slider.element.clientWidth},n.prototype.getPosition=function(){return[this.firstButton.getPosition(),this.secondButton.getPosition()]},n.prototype.getPercentPosition=function(){return[this.firstButton.getPercent(),this.secondButton.getPercent()]},n.prototype.getValue=function(){return[this.firstButton.getValue(),this.secondButton.getValue()]},n}(),w=function(){function n(n){this.slider=n;this.separator="-";this.unitSign="";this.slider.options.displayAsPercent&&this.slider.options.displayAsPercent.enable?this.separator=void 0!=this.slider.options.displayAsPercent.separator?this.slider.options.displayAsPercent.separator:this.separator:this.slider.options.displayAsValue&&this.slider.options.displayAsValue.enable&&(this.separator=void 0!=this.slider.options.displayAsValue.separator?this.slider.options.displayAsValue.separator:this.separator,this.unitSign=void 0!=this.slider.options.displayAsValue.unitSign?this.slider.options.displayAsValue.unitSign:this.unitSign)}return n.prototype.build=function(){return this.caption=r.$$("div",{className:"coveo-slider-caption"}).el,this.caption},n.prototype.getCaption=function(){return r.$$(this.caption).text()},n.prototype.getCaptionFromValues=function(n){return this.getValueCaption(n)},n.prototype.getCaptionFromValuesAsPercent=function(n){return this.getValueCaption(n)},n.prototype.setAsValue=function(){r.$$(this.caption).text(this.getValueCaption())},n.prototype.setAsPercent=function(){var n=this.slider.getPercentPosition();r.$$(this.caption).text([(100*n[0]).toFixed(this.slider.options.rounded),"%",this.separator,(100*n[1]).toFixed(this.slider.options.rounded),"%"].join(" "))},n.prototype.setFromString=function(n){r.$$(this.caption).text(n)},n.prototype.getValueCaption=function(n){var t,i,r,u;return void 0===n&&(n=this.slider.getValues()),t=n[0],i=n[1],this.slider.options.dateField?(r=new Date(t),u=new Date(i),r.setHours(0,0,0,0),u.setHours(0,0,0,0),t=c.format(r,this.slider.options.dateFormat||"MMM dd, yyyy"),i=c.format(u,this.slider.options.dateFormat||"MMM dd, yyyy"),this.unitSign=""):(t=t.toFixed(this.slider.options.rounded),i=i.toFixed(this.slider.options.rounded)),[t,this.unitSign,this.separator,i,this.unitSign].join(" ")},n}(),b=function(){function n(n){this.slider=n;this.svg=h.select(n.element).append("svg").append("g");this.x=s.scaleBand();this.y=s.scaleLinear();this.slider.options.graph.margin=v.Utils.extendDeep({top:20,right:0,left:0,bottom:20},this.slider.options.graph.margin||{});this.slider.options.graph.animationDuration=this.slider.options.graph.animationDuration||500;this.tooltip=r.$$("div",{className:"coveo-slider-tooltip"}).el;this.tooltip.style.display="none";this.slider.element.appendChild(this.tooltip);this.slider.options.graph.steps=this.slider.options.graph.steps||10}return n.prototype.draw=function(n){var r,u;if(void 0===n&&(n=this.oldData),n){var f=this.slider.element.offsetWidth,e=this.slider.element.offsetHeight,i=f-this.slider.options.graph.margin.left-this.slider.options.graph.margin.right,t=e-this.slider.options.graph.margin.top-this.slider.options.graph.margin.bottom;!isNaN(i)&&i>=0&&!isNaN(t)&&t>=0&&(this.applyTransformOnSvg(i,t),this.setXAndYRange(i,t),this.setXAndYDomain(n),r=this.svg.selectAll(".coveo-bar").data(n),u=this.slider.getValues(),this.renderGraphBars(r,i,t,u),this.setGraphBarsTransition(r,t,u));this.oldData=n}},n.prototype.setXAndYRange=function(n,t){this.x.range([0,n]);this.x.padding(.2);this.y.range([t-this.slider.options.graph.margin.top,0])},n.prototype.setXAndYDomain=function(n){this.padGraphWithEmptyData(n);this.x.domain(u.map(n,function(n){return n.start}));this.y.domain([0,h.max(n,function(n){return n.y})])},n.prototype.padGraphWithEmptyData=function(n){var t=n[0].end-n[0].start;0!=t&&(this.padBeginningOfGraphWithEmptyData(n,t),this.padEndOfGraphWithEmptyData(n,t))},n.prototype.padBeginningOfGraphWithEmptyData=function(n,t){if(n[0].start>this.slider.options.start&&n[0].start>t)for(var u=n[0].start-this.slider.options.start,f=Math.round(u/t),i=n[0].start,r=f;r>0;r--)n.unshift({start:i-t,end:i,y:0}),i-=t},n.prototype.padEndOfGraphWithEmptyData=function(n,t){var i=n.length-1;if(n[i].end<this.slider.options.end)for(var f=this.slider.options.end-n[i].end,e=Math.round(f/t),r=n[i].end,u=0;u<e;u++)n.push({start:r,end:r+t,y:0}),r+=t},n.prototype.applyTransformOnSvg=function(n,t){var i=r.$$(this.slider.element).find("svg");i.setAttribute("width",n+"px");i.setAttribute("height",t+"px");this.svg.attr("transform","translate("+this.slider.options.graph.margin.left+","+this.slider.options.graph.margin.top+")")},n.prototype.renderGraphBars=function(n,t,i,r){n.enter().append("rect").attr("class",this.getFunctionForClass(r)).attr("width",this.x.bandwidth()).attr("height",this.getFunctionForHeight(i)).attr("x",this.getFunctionForX()).attr("y",this.getFunctionForY()).on("click",this.getFunctionForClick()).on("mouseover",this.getFunctionForMouseOver(i)).on("mouseout",this.getFunctionForMouseOut())},n.prototype.setGraphBarsTransition=function(n,t,i){n.transition().attr("x",this.getFunctionForX()).attr("width",this.x.bandwidth()).attr("class",this.getFunctionForClass(i)).transition().duration(this.slider.options.graph.animationDuration).attr("y",this.getFunctionForY()).attr("height",this.getFunctionForHeight(t))},n.prototype.getBarClass=function(n,t,i){return t.start>=n[0]&&t.end<=n[1]?"coveo-active":n[0]==this.slider.options.start&&0==i?"coveo-active":n[1]==this.slider.options.end&&i==this.slider.options.graph.steps-1?"coveo-active":""},n.prototype.setTooltip=function(n,t){var u=r.$$("span",{className:"coveo-caption"}),i;u.text(this.slider.getCaptionFromValue([n.start,n.end]));i=r.$$("span",{className:"coveo-count"});i.text(n.y.toString());r.$$(this.tooltip).empty();this.tooltip.appendChild(u.el);this.tooltip.appendChild(i.el);this.tooltip.style.display="block";this.tooltip.style.left=this.x(n.start)-.2*this.slider.options.graph.steps+"px";this.tooltip.style.top=this.y(n.y)-t+"px"},n.prototype.getFunctionForX=function(){var n=this;return function(t){return n.x(t.start)}},n.prototype.getFunctionForY=function(){var n=this;return function(t){return n.y(t.y)}},n.prototype.getFunctionForHeight=function(n){var t=this;return function(i){return n-t.y(i.y)}},n.prototype.getFunctionForClass=function(n){var t=this;return function(i,r){return"coveo-bar "+t.getBarClass(n,i,r)}},n.prototype.getFunctionForClick=function(){var n=this;return function(t){r.$$(n.slider.element).trigger(e.SliderEvents.graphValueSelected,{start:t.start,end:t.end,value:t.y})}},n.prototype.getFunctionForMouseOver=function(n){var t=this;return function(i){t.setTooltip(i,n)}},n.prototype.getFunctionForMouseOut=function(){var n=this;return function(){n.tooltip.style.display="none"}},n}()},function(n,t,i){!function(n,r){r(t,i(150),i(151),i(152),i(154),i(155),i(156),i(153))}(this,function(n,t,i,r,u,f,e,o){"use strict";function g(n){function t(t){var e=t+"",i=r.get(e);if(!i){if(f!==ft)return f;r.set(e,i=u.push(t))}return n[(i-1)%n.length]}var r=i.map(),u=[],f=ft;return n=null==n?[]:s.call(n),t.domain=function(n){if(!arguments.length)return u.slice();u=[];r=i.map();for(var f,e,o=-1,s=n.length;++o<s;)r.has(e=(f=n[o])+"")||r.set(e,u.push(f));return t},t.range=function(i){return arguments.length?(n=s.call(i),t):n.slice()},t.unknown=function(n){return arguments.length?(f=n,t):f},t.copy=function(){return g().domain(u).range(n).unknown(f)},t}function nt(){function i(){var i=h().length,a=r[1]<r[0],n=r[+a],y=r[1-a],v;return f=(y-n)/Math.max(1,i-u+2*o),e&&(f=Math.floor(f)),n+=(y-n-f*(i-u))*c,s=f*(1-u),e&&(n=Math.round(n),s=Math.round(s)),v=t.range(i).map(function(t){return n+f*t}),l(a?v.reverse():v)}var f,s,n=g().unknown(void 0),h=n.domain,l=n.range,r=[0,1],e=!1,u=0,o=0,c=.5;return delete n.unknown,n.domain=function(n){return arguments.length?(h(n),i()):h()},n.range=function(n){return arguments.length?(r=[+n[0],+n[1]],i()):r.slice()},n.rangeRound=function(n){return r=[+n[0],+n[1]],e=!0,i()},n.bandwidth=function(){return s},n.step=function(){return f},n.round=function(n){return arguments.length?(e=!!n,i()):e},n.padding=function(n){return arguments.length?(u=o=Math.max(0,Math.min(1,n)),i()):u},n.paddingInner=function(n){return arguments.length?(u=Math.max(0,Math.min(1,n)),i()):u},n.paddingOuter=function(n){return arguments.length?(o=Math.max(0,Math.min(1,n)),i()):o},n.align=function(n){return arguments.length?(c=Math.max(0,Math.min(1,n)),i()):c},n.copy=function(){return nt().domain(h()).range(r).round(e).paddingInner(u).paddingOuter(o).align(c)},i()}function st(n){var t=n.copy;return n.padding=n.paddingOuter,delete n.paddingInner,delete n.paddingOuter,n.copy=function(){return st(t())},n}function ri(){return st(nt().paddingInner(1))}function tt(n,t){return(t-=n=+n)?function(i){return(i-n)/t}:et(t)}function ui(n){return function(t,i){var r=n(t=+t,i=+i);return function(n){return n<=t?0:n>=i?1:r(n)}}}function fi(n){return function(t,i){var r=n(t=+t,i=+i);return function(n){return n<=0?t:n>=1?i:r(n)}}}function ei(n,t,i,r){var u=n[0],e=n[1],f=t[0],o=t[1];return e<u?(u=i(e,u),f=r(o,f)):(u=i(u,e),f=r(f,o)),function(n){return f(u(n))}}function oi(n,i,r,u){var e=Math.min(n.length,i.length)-1,o=new Array(e),s=new Array(e),f=-1;for(n[e]<n[0]&&(n=n.slice().reverse(),i=i.slice().reverse());++f<e;)o[f]=r(n[f],n[f+1]),s[f]=u(i[f],i[f+1]);return function(i){var r=t.bisect(n,i,1,e)-1;return s[r](o[r](i))}}function w(n,t){return t.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp())}function b(n,t){function u(){return c=Math.min(e.length,f.length)>2?oi:ei,l=a=null,i}function i(t){return(l||(l=c(e,f,h?ui(n):n,o)))(+t)}var c,l,a,e=ni,f=ni,o=r.interpolate,h=!1;return i.invert=function(n){return(a||(a=c(f,e,tt,h?fi(t):t)))(+n)},i.domain=function(n){return arguments.length?(e=ut.call(n,gt),u()):e.slice()},i.range=function(n){return arguments.length?(f=s.call(n),u()):f.slice()},i.rangeRound=function(n){return f=s.call(n),o=r.interpolateRound,u()},i.clamp=function(n){return arguments.length?(h=!!n,u()):h},i.interpolate=function(n){return arguments.length?(o=n,u()):o},u()}function l(n){var i=n.domain;return n.ticks=function(n){var r=i();return t.ticks(r[0],r[r.length-1],null==n?10:n)},n.tickFormat=function(n,t){return yi(i(),n,t)},n.nice=function(r){var f=i(),s=f.length-1,h=null==r?10:r,e=f[0],o=f[s],u=t.tickStep(e,o,h);return u&&(u=t.tickStep(Math.floor(e/u)*u,Math.ceil(o/u)*u,h),f[0]=Math.floor(e/u)*u,f[s]=Math.ceil(o/u)*u,i(f)),n},n}function ht(){var n=b(tt,r.interpolateNumber);return n.copy=function(){return w(n,ht())},l(n)}function ct(){function n(n){return+n}var t=[0,1];return n.invert=n,n.domain=n.range=function(i){return arguments.length?(t=ut.call(i,gt),n):t.slice()},n.copy=function(){return ct().domain(t)},l(n)}function si(n,t){return(t=Math.log(t/n))?function(i){return Math.log(i/n)/t}:et(t)}function hi(n,t){return n<0?function(i){return-Math.pow(-t,i)*Math.pow(-n,1-i)}:function(i){return Math.pow(t,i)*Math.pow(n,1-i)}}function ci(n){return isFinite(n)?+("1e"+n):n<0?0:n}function lt(n){return 10===n?ci:n===Math.E?Math.exp:function(t){return Math.pow(n,t)}}function at(n){return n===Math.E?Math.log:10===n&&Math.log10||2===n&&Math.log2||(n=Math.log(n),function(t){return Math.log(t)/n})}function vt(n){return function(t){return-n(-t)}}function yt(){function o(){return f=at(n),r=lt(n),e()[0]<0&&(f=vt(f),r=vt(r)),i}var i=b(si,hi).domain([1,10]),e=i.domain,n=10,f=at(10),r=lt(10);return i.base=function(t){return arguments.length?(n=+t,o()):n},i.domain=function(n){return arguments.length?(e(n),o()):e()},i.ticks=function(i){var p,y=e(),h=y[0],l=y[y.length-1];(p=l<h)&&(u=h,h=l,l=u);var v,o,s,u=f(h),c=f(l),w=null==i?10:+i,a=[];if(!(n%1)&&c-u<w){if(u=Math.round(u)-1,c=Math.round(c)+1,h>0){for(;u<c;++u)for(o=1,v=r(u);o<n;++o)if(s=v*o,!(s<h)){if(s>l)break;a.push(s)}}else for(;u<c;++u)for(o=n-1,v=r(u);o>=1;--o)if(s=v*o,!(s<h)){if(s>l)break;a.push(s)}}else a=t.ticks(u,c,Math.min(c-u,w)).map(r);return p?a.reverse():a},i.tickFormat=function(t,e){if(null==e&&(e=10===n?".0e":","),"function"!=typeof e&&(e=u.format(e)),t===1/0)return e;null==t&&(t=10);var o=Math.max(1,n*t/i.ticks().length);return function(t){var i=t/r(Math.round(f(t)));return i*n<n-.5&&(i*=n),i<=o?e(t):""}},i.nice=function(){return e(ti(e(),{floor:function(n){return r(Math.floor(f(n)))},ceil:function(n){return r(Math.ceil(f(n)))}}))},i.copy=function(){return w(i,yt().base(n))},i}function c(n,t){return n<0?-Math.pow(-n,t):Math.pow(n,t)}function it(){function r(t,i){return(i=c(i,n)-(t=c(t,n)))?function(r){return(c(r,n)-t)/i}:et(i)}function u(t,i){return i=c(i,n)-(t=c(t,n)),function(r){return c(t+i*r,1/n)}}var n=1,t=b(r,u),i=t.domain;return t.exponent=function(t){return arguments.length?(n=+t,i(i())):n},t.copy=function(){return w(t,it().exponent(n))},l(t)}function li(){return it().exponent(.5)}function pt(){function f(){var f=0,e=Math.max(1,u.length);for(r=new Array(e-1);++f<e;)r[f-1]=t.quantile(n,f/e);return i}function i(n){if(!isNaN(n=+n))return u[t.bisect(r,n)]}var n=[],u=[],r=[];return i.invertExtent=function(t){var i=u.indexOf(t);return i<0?[NaN,NaN]:[i>0?r[i-1]:n[0],i<r.length?r[i]:n[n.length-1]]},i.domain=function(i){if(!arguments.length)return n.slice();n=[];for(var r,u=0,e=i.length;u<e;++u)r=i[u],null==r||isNaN(r=+r)||n.push(r);return n.sort(t.ascending),f()},i.range=function(n){return arguments.length?(u=s.call(n),f()):u.slice()},i.quantiles=function(){return r.slice()},i.copy=function(){return pt().domain(n).range(u)},i}function wt(){function r(r){if(r<=r)return e[t.bisect(i,r,0,n)]}function o(){var t=-1;for(i=new Array(n);++t<n;)i[t]=((t+1)*f-(t-n)*u)/(n+1);return r}var u=0,f=1,n=1,i=[.5],e=[0,1];return r.domain=function(n){return arguments.length?(u=+n[0],f=+n[1],o()):[u,f]},r.range=function(t){return arguments.length?(n=(e=s.call(t)).length-1,o()):e.slice()},r.invertExtent=function(t){var r=e.indexOf(t);return r<0?[NaN,NaN]:r<1?[u,i[0]]:r>=n?[i[n-1],f]:[i[r-1],i[r]]},r.copy=function(){return wt().domain([u,f]).range(e)},l(r)}function bt(){function i(i){if(i<=i)return r[t.bisect(n,i,0,u)]}var n=[.5],r=[0,1],u=1;return i.domain=function(t){return arguments.length?(n=s.call(t),u=Math.min(n.length,r.length-1),i):n.slice()},i.range=function(t){return arguments.length?(r=s.call(t),u=Math.min(n.length,r.length-1),i):r.slice()},i.invertExtent=function(t){var i=r.indexOf(t);return[n[i-1],n[i]]},i.copy=function(){return bt().domain(n).range(r)},i}function ai(n){return new Date(n)}function vi(n){return n instanceof Date?+n:+new Date(+n)}function rt(n,i,u,f,e,o,s,h,c){function nt(t){return(s(t)<t?ft:o(t)<t?et:e(t)<t?st:f(t)<t?ht:i(t)<t?u(t)<t?ct:lt:n(t)<t?at:vt)(t)}function g(i,r,u,f){if(null==i&&(i=10),"number"==typeof i){var o=Math.abs(u-r)/i,e=t.bisector(function(n){return n[2]}).right(d,o);e===d.length?(f=t.tickStep(r/ot,u/ot,i),i=n):e?(e=d[o/d[e-1][2]<d[e][2]/o?e-1:e],f=e[1],i=e[0]):(f=t.tickStep(r,u,i),i=h)}return null==f?i:i.every(f)}var l=b(tt,r.interpolateNumber),it=l.invert,k=l.domain,ft=c(".%L"),et=c(":%S"),st=c("%I:%M"),ht=c("%I %p"),ct=c("%a %d"),lt=c("%b %d"),at=c("%B"),vt=c("%Y"),d=[[s,1,a],[s,5,5*a],[s,15,15*a],[s,30,30*a],[o,1,v],[o,5,5*v],[o,15,15*v],[o,30,30*v],[e,1,y],[e,3,3*y],[e,6,6*y],[e,12,12*y],[f,1,p],[f,2,2*p],[u,1,pi],[i,1,ii],[i,3,3*ii],[n,1,ot]];return l.invert=function(n){return new Date(it(n))},l.domain=function(n){return arguments.length?k(ut.call(n,vi)):k().map(ai)},l.ticks=function(n,t){var i,f=k(),r=f[0],u=f[f.length-1],e=u<r;return e&&(i=r,r=u,u=i),i=g(n,r,u,t),i=i?i.range(r,u+1):[],e?i.reverse():i},l.tickFormat=function(n,t){return null==t?nt:c(t)},l.nice=function(n,t){var i=k();return(n=g(n,i[0],i[i.length-1],t))?k(ti(i,n)):l},l.copy=function(){return w(l,rt(n,i,u,f,e,o,s,h,c))},l}function k(n){var t=n.length;return function(i){return n[Math.max(0,Math.min(t-1,Math.floor(i*t)))]}}function kt(n){function t(t){var f=(t-i)/(r-i);return n(u?Math.max(0,Math.min(1,f)):f)}var i=0,r=1,u=!1;return t.domain=function(n){return arguments.length?(i=+n[0],r=+n[1],t):[i,r]},t.clamp=function(n){return arguments.length?(u=!!n,t):u},t.interpolator=function(i){return arguments.length?(n=i,t):n},t.copy=function(){return kt(n).domain([i,r]).clamp(u)},l(t)}var dt=Array.prototype,ut=dt.map,s=dt.slice,ft={name:"implicit"},et=function(n){return function(){return n}},gt=function(n){return+n},ni=[0,1],yi=function(n,i,r){var f,e=n[0],o=n[n.length-1],s=t.tickStep(e,o,null==i?10:i),h;switch(r=u.formatSpecifier(null==r?",f":r),r.type){case"s":return h=Math.max(Math.abs(e),Math.abs(o)),null!=r.precision||isNaN(f=u.precisionPrefix(s,h))||(r.precision=f),u.formatPrefix(r,h);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(f=u.precisionRound(s,Math.max(Math.abs(e),Math.abs(o))))||(r.precision=f-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(f=u.precisionFixed(s))||(r.precision=f-2*("%"===r.type))}return u.format(r)},ti=function(n,t){n=n.slice();var i,r=0,u=n.length-1,f=n[r],e=n[u];return e<f&&(i=r,r=u,u=i,i=f,f=e,e=i),n[r]=t.floor(f),n[u]=t.ceil(e),n},a=1e3,v=60*a,y=60*v,p=24*y,pi=7*p,ii=30*p,ot=365*p,wi=function(){return rt(f.timeYear,f.timeMonth,f.timeWeek,f.timeDay,f.timeHour,f.timeMinute,f.timeSecond,f.timeMillisecond,e.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)])},bi=function(){return rt(f.utcYear,f.utcMonth,f.utcWeek,f.utcDay,f.utcHour,f.utcMinute,f.utcSecond,f.utcMillisecond,e.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])},h=function(n){return n.match(/.{6}/g).map(function(n){return"#"+n})},ki=h("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),di=h("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),gi=h("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),nr=h("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"),tr=r.interpolateCubehelixLong(o.cubehelix(300,.5,0),o.cubehelix(-240,.5,1)),ir=r.interpolateCubehelixLong(o.cubehelix(-100,.75,.35),o.cubehelix(80,1.5,.8)),rr=r.interpolateCubehelixLong(o.cubehelix(260,.75,.35),o.cubehelix(80,1.5,.8)),d=o.cubehelix(),ur=function(n){(n<0||n>1)&&(n-=Math.floor(n));var t=Math.abs(n-.5);return d.h=360*n-100,d.s=1.5-1.5*t,d.l=.8-.9*t,d+""},fr=k(h("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),er=k(h("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),or=k(h("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),sr=k(h("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));n.scaleBand=nt;n.scalePoint=ri;n.scaleIdentity=ct;n.scaleLinear=ht;n.scaleLog=yt;n.scaleOrdinal=g;n.scaleImplicit=ft;n.scalePow=it;n.scaleSqrt=li;n.scaleQuantile=pt;n.scaleQuantize=wt;n.scaleThreshold=bt;n.scaleTime=wi;n.scaleUtc=bi;n.schemeCategory10=ki;n.schemeCategory20b=di;n.schemeCategory20c=gi;n.schemeCategory20=nr;n.interpolateCubehelixDefault=tr;n.interpolateRainbow=ur;n.interpolateWarm=ir;n.interpolateCool=rr;n.interpolateViridis=fr;n.interpolateMagma=er;n.interpolateInferno=or;n.interpolatePlasma=sr;n.scaleSequential=kt;Object.defineProperty(n,"__esModule",{value:!0})})},function(n,t){!function(n,i){i(t)}(this,function(n){"use strict";function k(n){return function(t,r){return i(n(t),r)}}function e(n,t,i){var f=Math.abs(t-n)/Math.max(0,i),r=Math.pow(10,Math.floor(Math.log(f)/Math.LN10)),u=f/r;return u>=ut?r*=10:u>=ft?r*=5:u>=et&&(r*=2),t<n?-r:r}function d(n){return n.length}var i=function(n,t){return n<t?-1:n>t?1:n>=t?0:NaN},o=function(n){return 1===n.length&&(n=k(n)),{left:function(t,i,r,u){for(null==r&&(r=0),null==u&&(u=t.length);r<u;){var f=r+u>>>1;n(t[f],i)<0?r=f+1:u=f}return r},right:function(t,i,r,u){for(null==r&&(r=0),null==u&&(u=t.length);r<u;){var f=r+u>>>1;n(t[f],i)>0?u=f:r=f+1}return r}}},s=o(i),u=s.right,g=s.left,nt=function(n,t){return t<n?-1:t>n?1:t>=n?0:NaN},t=function(n){return null===n?NaN:+n},h=function(n,i){var r,u,h=n.length,f=0,s=0,e=-1,o=0;if(null==i)for(;++e<h;)isNaN(r=t(n[e]))||(u=r-f,f+=u/++o,s+=u*(r-f));else for(;++e<h;)isNaN(r=t(i(n[e],e,n)))||(u=r-f,f+=u/++o,s+=u*(r-f));if(o>1)return s/(o-1)},c=function(n,t){var i=h(n,t);return i?Math.sqrt(i):i},l=function(n,t){var u,i,f,r=-1,e=n.length;if(null==t){for(;++r<e;)if(null!=(i=n[r])&&i>=i){u=f=i;break}for(;++r<e;)null!=(i=n[r])&&(u>i&&(u=i),f<i&&(f=i))}else{for(;++r<e;)if(null!=(i=t(n[r],r,n))&&i>=i){u=f=i;break}for(;++r<e;)null!=(i=t(n[r],r,n))&&(u>i&&(u=i),f<i&&(f=i))}return[u,f]},a=Array.prototype,tt=a.slice,it=a.map,f=function(n){return function(){return n}},rt=function(n){return n},v=function(n,t,i){n=+n;t=+t;i=(r=arguments.length)<2?(t=n,n=0,1):r<3?1:+i;for(var u=-1,r=0|Math.max(0,Math.ceil((t-n)/i)),f=new Array(r);++u<r;)f[u]=n+u*i;return f},ut=Math.sqrt(50),ft=Math.sqrt(10),et=Math.sqrt(2),y=function(n,t,i){var r=e(n,t,i);return v(Math.ceil(n/r)*r,Math.floor(t/r)*r+r/2,r)},p=function(n){return Math.ceil(Math.log(n.length)/Math.LN2)+1},ot=function(){function n(n){for(var c,v=n.length,l=new Array(v),o,p,a,f=0;f<v;++f)l[f]=t(n[f],f,n);var w=i(l),s=w[0],h=w[1],e=r(l,s,h);for(Array.isArray(e)||(e=y(s,h,e)),o=e.length;e[0]<=s;)e.shift(),--o;for(;e[o-1]>=h;)e.pop(),--o;for(a=new Array(o+1),f=0;f<=o;++f)p=a[f]=[],p.x0=f>0?e[f-1]:s,p.x1=f<o?e[f]:h;for(f=0;f<v;++f)c=l[f],s<=c&&c<=h&&a[u(e,c,0,o)].push(n[f]);return a}var t=rt,i=l,r=p;return n.value=function(i){return arguments.length?(t="function"==typeof i?i:f(i),n):t},n.domain=function(t){return arguments.length?(i="function"==typeof t?t:f([t[0],t[1]]),n):i},n.thresholds=function(t){return arguments.length?(r="function"==typeof t?t:f(Array.isArray(t)?tt.call(t):t),n):r},n},r=function(n,i,r){if(null==r&&(r=t),u=n.length){if((i=+i)<=0||u<2)return+r(n[0],0,n);if(i>=1)return+r(n[u-1],u-1,n);var u,e=(u-1)*i,f=Math.floor(e),o=+r(n[f],f,n),s=+r(n[f+1],f+1,n);return o+(s-o)*(e-f)}},st=function(n,u,f){return n=it.call(n,t).sort(i),Math.ceil((f-u)/(2*(r(n,.75)-r(n,.25))*Math.pow(n.length,-1/3)))},ht=function(n,t,i){return Math.ceil((i-t)/(3.5*c(n)*Math.pow(n.length,-1/3)))},ct=function(n,t){var u,i,r=-1,f=n.length;if(null==t){for(;++r<f;)if(null!=(i=n[r])&&i>=i){u=i;break}for(;++r<f;)null!=(i=n[r])&&i>u&&(u=i)}else{for(;++r<f;)if(null!=(i=t(n[r],r,n))&&i>=i){u=i;break}for(;++r<f;)null!=(i=t(n[r],r,n))&&i>u&&(u=i)}return u},lt=function(n,i){var u,e=0,o=n.length,r=-1,f=o;if(null==i)for(;++r<o;)isNaN(u=t(n[r]))?--f:e+=u;else for(;++r<o;)isNaN(u=t(i(n[r],r,n)))?--f:e+=u;if(f)return e/f},at=function(n,u){var e,o=[],s=n.length,f=-1;if(null==u)for(;++f<s;)isNaN(e=t(n[f]))||o.push(e);else for(;++f<s;)isNaN(e=t(u(n[f],f,n)))||o.push(e);return r(o.sort(i),.5)},vt=function(n){for(var t,i,r,u=n.length,e=-1,f=0;++e<u;)f+=n[e].length;for(i=new Array(f);--u>=0;)for(r=n[u],t=r.length;--t>=0;)i[--f]=r[t];return i},w=function(n,t){var u,i,r=-1,f=n.length;if(null==t){for(;++r<f;)if(null!=(i=n[r])&&i>=i){u=i;break}for(;++r<f;)null!=(i=n[r])&&u>i&&(u=i)}else{for(;++r<f;)if(null!=(i=t(n[r],r,n))&&i>=i){u=i;break}for(;++r<f;)null!=(i=t(n[r],r,n))&&u>i&&(u=i)}return u},yt=function(n){for(var t=0,i=n.length-1,r=n[0],u=new Array(i<0?0:i);t<i;)u[t]=[r,r=n[++t]];return u},pt=function(n,t){for(var i=t.length,r=new Array(i);i--;)r[i]=n[t[i]];return r},wt=function(n,t){if(e=n.length){var e,o,u=0,f=0,r=n[f];for(t||(t=i);++u<e;)(t(o=n[u],r)<0||0!==t(r,r))&&(r=o,f=u);return 0===t(r,r)?f:void 0}},bt=function(n,t,i){for(var f,u,r=(null==i?n.length:i)-(t=null==t?0:+t);r;)u=Math.random()*r--|0,f=n[r+t],n[r+t]=n[u+t],n[u+t]=f;return n},kt=function(n,t){var r,u=0,f=n.length,i=-1;if(null==t)for(;++i<f;)(r=+n[i])&&(u+=r);else for(;++i<f;)(r=+t(n[i],i,n))&&(u+=r);return u},b=function(n){var r,t,e;if(!(r=n.length))return[];for(var i=-1,u=w(n,d),f=new Array(u);++i<u;)for(t=-1,e=f[i]=new Array(r);++t<r;)e[t]=n[t][i];return f},dt=function(){return b(arguments)};n.bisect=u;n.bisectRight=u;n.bisectLeft=g;n.ascending=i;n.bisector=o;n.descending=nt;n.deviation=c;n.extent=l;n.histogram=ot;n.thresholdFreedmanDiaconis=st;n.thresholdScott=ht;n.thresholdSturges=p;n.max=ct;n.mean=lt;n.median=at;n.merge=vt;n.min=w;n.pairs=yt;n.permute=pt;n.quantile=r;n.range=v;n.scan=wt;n.shuffle=bt;n.sum=kt;n.ticks=y;n.tickStep=e;n.transpose=b;n.variance=h;n.zip=dt;Object.defineProperty(n,"__esModule",{value:!0})})},function(n,t){!function(n,i){i(t)}(this,function(n){"use strict";function u(){}function r(n,t){var r=new u,o,i,f,e;if(n instanceof u)n.each(function(n,t){r.set(t,n)});else if(Array.isArray(n))if(i=-1,f=n.length,null==t)for(;++i<f;)r.set(i,n[i]);else for(;++i<f;)r.set(t(o=n[i],i,n),o);else if(n)for(e in n)r.set(e,n[e]);return r}function c(){return{}}function l(n,t,i){n[t]=i}function e(){return r()}function o(n,t,i){n.set(t,i)}function f(){}function s(n,t){var r=new f,i,u;if(n instanceof f)n.each(function(n){r.add(n)});else if(n)if(i=-1,u=n.length,null==t)for(;++i<u;)r.add(n[i]);else for(;++i<u;)r.add(t(n[i],i,n));return r}var t="$",h,i;u.prototype=r.prototype={constructor:u,has:function(n){return t+n in this},get:function(n){return this[t+n]},set:function(n,i){return this[t+n]=i,this},remove:function(n){var i=t+n;return i in this&&delete this[i]},clear:function(){for(var n in this)n[0]===t&&delete this[n]},keys:function(){var n=[];for(var i in this)i[0]===t&&n.push(i.slice(1));return n},values:function(){var n=[];for(var i in this)i[0]===t&&n.push(this[i]);return n},entries:function(){var i=[];for(var n in this)n[0]===t&&i.push({key:n.slice(1),value:this[n]});return i},size:function(){var n=0;for(var i in this)i[0]===t&&++n;return n},empty:function(){for(var n in this)if(n[0]===t)return!1;return!0},each:function(n){for(var i in this)i[0]===t&&n(this[i],i.slice(1),this)}};h=function(){function i(t,e,o,s){if(e>=n.length)return null!=u?u(t):null!=f?t.sort(f):t;for(var l,h,a,v=-1,p=t.length,w=n[e++],c=r(),y=o();++v<p;)(a=c.get(l=w(h=t[v])+""))?a.push(h):c.set(l,[h]);return c.each(function(n,t){s(y,t,i(n,e,o,s))}),y}function s(t,i){if(++i>n.length)return t;var r,f=h[i-1];return null!=u&&i>=n.length?r=t.entries():(r=[],t.each(function(n,t){r.push({key:t,values:s(n,i)})})),null!=f?r.sort(function(n,t){return f(n.key,t.key)}):r}var f,u,t,n=[],h=[];return t={object:function(n){return i(n,0,c,l)},map:function(n){return i(n,0,e,o)},entries:function(n){return s(i(n,0,e,o),0)},key:function(i){return n.push(i),t},sortKeys:function(i){return h[n.length-1]=i,t},sortValues:function(n){return f=n,t},rollup:function(n){return u=n,t}}};i=r.prototype;f.prototype=s.prototype={constructor:f,has:i.has,add:function(n){return n+="",this[t+n]=n,this},remove:i.remove,clear:i.clear,values:i.keys,size:i.size,empty:i.empty,each:i.each};var a=function(n){var t=[];for(var i in n)t.push(i);return t},v=function(n){var t=[];for(var i in n)t.push(n[i]);return t},y=function(n){var t=[];for(var i in n)t.push({key:i,value:n[i]});return t};n.nest=h;n.set=s;n.map=r;n.keys=a;n.values=v;n.entries=y;Object.defineProperty(n,"__esModule",{value:!0})})},function(n,t,i){!function(n,r){r(t,i(153))}(this,function(n,t){"use strict";function w(n,t,i,r,u){var f=n*n,e=f*n;return((1-3*n+3*f-e)*t+(4-6*f+3*e)*i+(1+3*n+3*f-3*e)*r+e*u)/6}function b(n,t){return function(i){return n+i*t}}function vt(n,t,i){return n=Math.pow(n,i),t=Math.pow(t,i)-n,i=1/i,function(r){return Math.pow(n+r*t,i)}}function s(n,t){var i=t-n;return i?b(n,i>180||i<-180?i-360*Math.round(i/360):i):o(isNaN(n)?t:n)}function yt(n){return 1==(n=+n)?i:function(t,i){return i-t?vt(t,i,n):o(isNaN(t)?i:t)}}function i(n,t){var i=t-n;return i?b(n,i):o(isNaN(n)?t:n)}function k(n){return function(i){for(var r,f=i.length,e=new Array(f),o=new Array(f),s=new Array(f),u=0;u<f;++u)r=t.rgb(i[u]),e[u]=r.r||0,o[u]=r.g||0,s[u]=r.b||0;return e=n(e),o=n(o),s=n(s),r.opacity=1,function(n){return r.r=e(n),r.g=o(n),r.b=s(n),r+""}}}function pt(n){return function(){return n}}function wt(n){return function(t){return n(t)+""}}function bt(n){return"none"===n?y:(u||(u=document.createElement("DIV"),h=document.documentElement,rt=document.defaultView),u.style.transform=n,n=rt.getComputedStyle(h.appendChild(u),null).getPropertyValue("transform"),h.removeChild(u),n=n.slice(7,-1).split(","),lt(+n[0],+n[1],+n[2],+n[3],+n[4],+n[5]))}function kt(n){return null==n?y:(e||(e=document.createElementNS("http://www.w3.org/2000/svg","g")),e.setAttribute("transform",n),(n=e.transform.baseVal.consolidate())?(n=n.matrix,lt(n.a,n.b,n.c,n.d,n.e,n.f)):y)}function d(n,t,i,u){function f(n){return n.length?n.pop()+" ":""}function e(n,u,f,e,o,s){if(n!==f||u!==e){var h=o.push("translate(",null,t,null,i);s.push({i:h-4,x:r(n,f)},{i:h-2,x:r(u,e)})}else(f||e)&&o.push("translate("+f+t+e+i)}function o(n,t,i,e){n!==t?(n-t>180?t+=360:t-n>180&&(n+=360),e.push({i:i.push(f(i)+"rotate(",null,u)-2,x:r(n,t)})):t&&i.push(f(i)+"rotate("+t+u)}function s(n,t,i,e){n!==t?e.push({i:i.push(f(i)+"skewX(",null,u)-2,x:r(n,t)}):t&&i.push(f(i)+"skewX("+t+u)}function h(n,t,i,u,e,o){if(n!==i||t!==u){var s=e.push(f(e)+"scale(",null,",",null,")");o.push({i:s-4,x:r(n,i)},{i:s-2,x:r(t,u)})}else 1===i&&1===u||e.push(f(e)+"scale("+i+","+u+")")}return function(t,i){var r=[],u=[];return t=n(t),i=n(i),e(t.translateX,t.translateY,i.translateX,i.translateY,r,u),o(t.rotate,i.rotate,r,u),s(t.skewX,i.skewX,r,u),h(t.scaleX,t.scaleY,i.scaleX,i.scaleY,r,u),t=i=null,function(n){for(var t,i=-1,f=u.length;++i<f;)r[(t=u[i]).i]=t.x(n);return r.join("")}}}function g(n){return((n=Math.exp(n))+1/n)/2}function dt(n){return((n=Math.exp(n))-1/n)/2}function gt(n){return((n=Math.exp(2*n))-1)/(n+1)}function nt(n){return function(r,u){var f=n((r=t.hsl(r)).h,(u=t.hsl(u)).h),e=i(r.s,u.s),o=i(r.l,u.l),s=i(r.opacity,u.opacity);return function(n){return r.h=f(n),r.s=e(n),r.l=o(n),r.opacity=s(n),r+""}}}function ni(n,r){var u=i((n=t.lab(n)).l,(r=t.lab(r)).l),f=i(n.a,r.a),e=i(n.b,r.b),o=i(n.opacity,r.opacity);return function(t){return n.l=u(t),n.a=f(t),n.b=e(t),n.opacity=o(t),n+""}}function tt(n){return function(r,u){var f=n((r=t.hcl(r)).h,(u=t.hcl(u)).h),e=i(r.c,u.c),o=i(r.l,u.l),s=i(r.opacity,u.opacity);return function(n){return r.h=f(n),r.c=e(n),r.l=o(n),r.opacity=s(n),r+""}}}function it(n){return function r(u){function f(r,f){var e=n((r=t.cubehelix(r)).h,(f=t.cubehelix(f)).h),o=i(r.s,f.s),s=i(r.l,f.l),h=i(r.opacity,f.opacity);return function(n){return r.h=e(n),r.s=o(n),r.l=s(Math.pow(n,u)),r.opacity=h(n),r+""}}return u=+u,f.gamma=r,f}(1)}var u,h,rt,e,ut=function(n){var t=n.length-1;return function(i){var r=i<=0?i=0:i>=1?(i=1,t-1):Math.floor(i*t),u=n[r],f=n[r+1],e=r>0?n[r-1]:2*u-f,o=r<t-1?n[r+2]:2*f-u;return w((i-r/t)*t,e,u,f,o)}},ft=function(n){var t=n.length;return function(i){var r=Math.floor(((i%=1)<0?++i:i)*t),u=n[(r+t-1)%t],f=n[r%t],e=n[(r+1)%t],o=n[(r+2)%t];return w((i-r/t)*t,u,f,e,o)}},o=function(n){return function(){return n}},c=function n(r){function f(n,r){var f=u((n=t.rgb(n)).r,(r=t.rgb(r)).r),e=u(n.g,r.g),o=u(n.b,r.b),s=i(n.opacity,r.opacity);return function(t){return n.r=f(t),n.g=e(t),n.b=o(t),n.opacity=s(t),n+""}}var u=yt(r);return f.gamma=n,f}(1),ti=k(ut),ii=k(ft),et=function(n,t){for(var r=t?t.length:0,f=n?Math.min(r,n.length):0,e=new Array(r),u=new Array(r),i=0;i<f;++i)e[i]=v(n[i],t[i]);for(;i<r;++i)u[i]=t[i];return function(n){for(i=0;i<f;++i)u[i]=e[i](n);return u}},ot=function(n,t){var i=new Date;return n=+n,t-=n,function(r){return i.setTime(n+t*r),i}},r=function(n,t){return n=+n,t-=n,function(i){return n+t*i}},st=function(n,t){var i,r={},u={};null!==n&&"object"==typeof n||(n={});null!==t&&"object"==typeof t||(t={});for(i in t)i in n?r[i]=v(n[i],t[i]):u[i]=t[i];return function(n){for(i in r)u[i]=r[i](n);return u}},l=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,a=new RegExp(l.source,"g"),ht=function(n,t){var h,e,f,o=l.lastIndex=a.lastIndex=0,u=-1,i=[],s=[];for(n+="",t+="";(h=l.exec(n))&&(e=a.exec(t));)(f=e.index)>o&&(f=t.slice(o,f),i[u]?i[u]+=f:i[++u]=f),(h=h[0])===(e=e[0])?i[u]?i[u]+=e:i[++u]=e:(i[++u]=null,s.push({i:u,x:r(h,e)})),o=a.lastIndex;return o<t.length&&(f=t.slice(o),i[u]?i[u]+=f:i[++u]=f),i.length<2?s[0]?wt(s[0].x):pt(t):(t=s.length,function(n){for(var u,r=0;r<t;++r)i[(u=s[r]).i]=u.x(n);return i.join("")})},v=function(n,i){var f,u=typeof i;return null==i||"boolean"===u?o(i):("number"===u?r:"string"===u?(f=t.color(i))?(i=f,c):ht:i instanceof t.color?c:i instanceof Date?ot:Array.isArray(i)?et:isNaN(i)?st:r)(n,i)},ri=function(n,t){return n=+n,t-=n,function(i){return Math.round(n+t*i)}},ct=180/Math.PI,y={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},lt=function(n,t,i,r,u,f){var o,s,e;return(o=Math.sqrt(n*n+t*t))&&(n/=o,t/=o),(e=n*i+t*r)&&(i-=n*e,r-=t*e),(s=Math.sqrt(i*i+r*r))&&(i/=s,r/=s,e/=s),n*r<t*i&&(n=-n,t=-t,e=-e,o=-o),{translateX:u,translateY:f,rotate:Math.atan2(t,n)*ct,skewX:Math.atan(e)*ct,scaleX:o,scaleY:s}},ui=d(bt,"px, ","px)","deg)"),fi=d(kt,", ",")",")"),f=Math.SQRT2,p=2,at=4,ei=1e-12,oi=function(n,t){var o,u,l=n[0],a=n[1],i=n[2],b=t[0],k=t[1],r=t[2],s=b-l,h=k-a,c=s*s+h*h;if(c<ei)u=Math.log(r/i)/f,o=function(n){return[l+n*s,a+n*h,i*Math.exp(f*n*u)]};else{var v=Math.sqrt(c),y=(r*r-i*i+at*c)/(2*i*p*v),w=(r*r-i*i-at*c)/(2*r*p*v),e=Math.log(Math.sqrt(y*y+1)-y),d=Math.log(Math.sqrt(w*w+1)-w);u=(d-e)/f;o=function(n){var t=n*u,r=g(e),o=i/(p*v)*(r*gt(f*t+e)-dt(e));return[l+o*s,a+o*h,i*r/g(f*t+e)]}}return o.duration=1e3*u,o},si=nt(s),hi=nt(i),ci=tt(s),li=tt(i),ai=it(s),vi=it(i),yi=function(n,t){for(var r=new Array(t),i=0;i<t;++i)r[i]=n(i/(t-1));return r};n.interpolate=v;n.interpolateArray=et;n.interpolateBasis=ut;n.interpolateBasisClosed=ft;n.interpolateDate=ot;n.interpolateNumber=r;n.interpolateObject=st;n.interpolateRound=ri;n.interpolateString=ht;n.interpolateTransformCss=ui;n.interpolateTransformSvg=fi;n.interpolateZoom=oi;n.interpolateRgb=c;n.interpolateRgbBasis=ti;n.interpolateRgbBasisClosed=ii;n.interpolateHsl=si;n.interpolateHslLong=hi;n.interpolateLab=ni;n.interpolateHcl=ci;n.interpolateHclLong=li;n.interpolateCubehelix=ai;n.interpolateCubehelixLong=vi;n.quantize=yi;Object.defineProperty(n,"__esModule",{value:!0})})},function(n,t){!function(n,i){i(t)}(this,function(n){"use strict";function v(n,t){var i=Object.create(n.prototype);for(var r in t)i[r]=t[r];return i}function f(){}function w(n){var i;return n=(n+"").trim().toLowerCase(),(i=hi.exec(n))?(i=parseInt(i[1],16),new t(i>>8&15|i>>4&240,i>>4&15|240&i,(15&i)<<4|15&i,1)):(i=ci.exec(n))?ot(parseInt(i[1],16)):(i=li.exec(n))?new t(i[1],i[2],i[3],1):(i=ai.exec(n))?new t(255*i[1]/100,255*i[2]/100,255*i[3]/100,1):(i=vi.exec(n))?st(i[1],i[2],i[3],i[4]):(i=yi.exec(n))?st(255*i[1]/100,255*i[2]/100,255*i[3]/100,i[4]):(i=pi.exec(n))?ct(i[1],i[2]/100,i[3]/100,1):(i=wi.exec(n))?ct(i[1],i[2]/100,i[3]/100,i[4]):pt.hasOwnProperty(n)?ot(pt[n]):"transparent"===n?new t(NaN,NaN,NaN,0):null}function ot(n){return new t(n>>16&255,n>>8&255,255&n,1)}function st(n,i,r,u){return u<=0&&(n=i=r=NaN),new t(n,i,r,u)}function d(n){return n instanceof f||(n=w(n)),n?(n=n.rgb(),new t(n.r,n.g,n.b,n.opacity)):new t}function ht(n,i,r,u){return 1===arguments.length?d(n):new t(n,i,r,null==u?1:u)}function t(n,t,i,r){this.r=+n;this.g=+t;this.b=+i;this.opacity=+r}function ct(n,t,r,u){return u<=0?n=t=r=NaN:r<=0||r>=1?n=t=NaN:t<=0&&(n=NaN),new i(n,t,r,u)}function ei(n){if(n instanceof i)return new i(n.h,n.s,n.l,n.opacity);if(n instanceof f||(n=w(n)),!n)return new i;if(n instanceof i)return n;n=n.rgb();var e=n.r/255,r=n.g/255,o=n.b/255,s=Math.min(e,r,o),u=Math.max(e,r,o),h=NaN,t=u-s,c=(u+s)/2;return t?(h=e===u?(r-o)/t+6*(r<o):r===u?(o-e)/t+2:(e-r)/t+4,t/=c<.5?u+s:2-u-s,h*=60):t=c>0&&c<1?0:h,new i(h,t,c,n.opacity)}function lt(n,t,r,u){return 1===arguments.length?ei(n):new i(n,t,r,null==u?1:u)}function i(n,t,i,r){this.h=+n;this.s=+t;this.l=+i;this.opacity=+r}function g(n,t,i){return 255*(n<60?t+(i-t)*n/60:n<180?i:n<240?t+(i-t)*(240-n)/60:t)}function nt(n){var i;if(n instanceof u)return new u(n.l,n.a,n.b,n.opacity);if(n instanceof e)return i=n.h*wt,new u(n.l,Math.cos(i)*n.c,Math.sin(i)*n.c,n.opacity);n instanceof t||(n=d(n));var r=ut(n.r),f=ut(n.g),o=ut(n.b),h=tt((.4124564*r+.3575761*f+.1804375*o)/kt),s=tt((.2126729*r+.7151522*f+.072175*o)/dt),c=tt((.0193339*r+.119192*f+.9503041*o)/gt);return new u(116*s-16,500*(h-s),200*(s-c),n.opacity)}function at(n,t,i,r){return 1===arguments.length?nt(n):new u(n,t,i,null==r?1:r)}function u(n,t,i,r){this.l=+n;this.a=+t;this.b=+i;this.opacity=+r}function tt(n){return n>bi?Math.pow(n,1/3):n/ti+ni}function it(n){return n>a?n*n*n:ti*(n-ni)}function rt(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function ut(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function oi(n){if(n instanceof e)return new e(n.h,n.c,n.l,n.opacity);n instanceof u||(n=nt(n));var t=Math.atan2(n.b,n.a)*bt;return new e(t<0?t+360:t,Math.sqrt(n.a*n.a+n.b*n.b),n.l,n.opacity)}function vt(n,t,i,r){return 1===arguments.length?oi(n):new e(n,t,i,null==r?1:r)}function e(n,t,i,r){this.h=+n;this.c=+t;this.l=+i;this.opacity=+r}function si(n){if(n instanceof o)return new o(n.h,n.s,n.l,n.opacity);n instanceof t||(n=d(n));var c=n.r/255,e=n.g/255,s=n.b/255,i=(fi*s+ri*c-ui*e)/(fi+ri-ui),r=s-i,u=(p*(e-i)-et*r)/k,h=Math.sqrt(u*u+r*r)/(p*i*(1-i)),f=h?Math.atan2(u,r)*bt-120:NaN;return new o(f<0?f+360:f,h,i,n.opacity)}function yt(n,t,i,r){return 1===arguments.length?si(n):new o(n,t,i,null==r?1:r)}function o(n,t,i,r){this.h=+n;this.s=+t;this.l=+i;this.opacity=+r}var h=function(n,t,i){n.prototype=t.prototype=i;i.constructor=n},s=.7,c=1/s,l="\\s*([+-]?\\d+)\\s*",y="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",r="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",hi=/^#([0-9a-f]{3})$/,ci=/^#([0-9a-f]{6})$/,li=new RegExp("^rgb\\("+[l,l,l]+"\\)$"),ai=new RegExp("^rgb\\("+[r,r,r]+"\\)$"),vi=new RegExp("^rgba\\("+[l,l,l,y]+"\\)$"),yi=new RegExp("^rgba\\("+[r,r,r,y]+"\\)$"),pi=new RegExp("^hsl\\("+[y,r,r]+"\\)$"),wi=new RegExp("^hsla\\("+[y,r,r,y]+"\\)$"),pt={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};h(f,w,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}});h(t,ht,v(f,{brighter:function(n){return n=null==n?c:Math.pow(c,n),new t(this.r*n,this.g*n,this.b*n,this.opacity)},darker:function(n){return n=null==n?s:Math.pow(s,n),new t(this.r*n,this.g*n,this.b*n,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var n=this.opacity;return n=isNaN(n)?1:Math.max(0,Math.min(1,n)),(1===n?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===n?")":", "+n+")")}}));h(i,lt,v(f,{brighter:function(n){return n=null==n?c:Math.pow(c,n),new i(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=null==n?s:Math.pow(s,n),new i(this.h,this.s,this.l*n,this.opacity)},rgb:function(){var n=this.h%360+360*(this.h<0),f=isNaN(n)||isNaN(this.s)?0:this.s,i=this.l,r=i+(i<.5?i:1-i)*f,u=2*i-r;return new t(g(n>=240?n-240:n+120,u,r),g(n,u,r),g(n<120?n+240:n-120,u,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var wt=Math.PI/180,bt=180/Math.PI,b=18,kt=.95047,dt=1,gt=1.08883,ni=4/29,a=6/29,ti=3*a*a,bi=a*a*a;h(u,at,v(f,{brighter:function(n){return new u(this.l+b*(null==n?1:n),this.a,this.b,this.opacity)},darker:function(n){return new u(this.l-b*(null==n?1:n),this.a,this.b,this.opacity)},rgb:function(){var n=(this.l+16)/116,i=isNaN(this.a)?n:n+this.a/500,r=isNaN(this.b)?n:n-this.b/200;return n=dt*it(n),i=kt*it(i),r=gt*it(r),new t(rt(3.2404542*i-1.5371385*n-.4985314*r),rt(-.969266*i+1.8760108*n+.041556*r),rt(.0556434*i-.2040259*n+1.0572252*r),this.opacity)}}));h(e,vt,v(f,{brighter:function(n){return new e(this.h,this.c,this.l+b*(null==n?1:n),this.opacity)},darker:function(n){return new e(this.h,this.c,this.l-b*(null==n?1:n),this.opacity)},rgb:function(){return nt(this).rgb()}}));var ii=-.14861,ft=1.78277,et=-.29227,k=-.90649,p=1.97294,ri=p*k,ui=p*ft,fi=ft*et-k*ii;h(o,yt,v(f,{brighter:function(n){return n=null==n?c:Math.pow(c,n),new o(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=null==n?s:Math.pow(s,n),new o(this.h,this.s,this.l*n,this.opacity)},rgb:function(){var u=isNaN(this.h)?0:(this.h+120)*wt,n=+this.l,i=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(u),f=Math.sin(u);return new t(255*(n+i*(ii*r+ft*f)),255*(n+i*(et*r+k*f)),255*(n+i*p*r),this.opacity)}}));n.color=w;n.rgb=ht;n.hsl=lt;n.lab=at;n.hcl=vt;n.cubehelix=yt;Object.defineProperty(n,"__esModule",{value:!0})})},function(n,t){!function(n,i){i(t)}(this,function(n){"use strict";function i(n,t){if((r=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0)return null;var r,i=n.slice(0,r);return[i.length>1?i[0]+i.slice(2):i,+n.slice(r+1)]}function t(n){return n=i(Math.abs(n)),n?n[1]:NaN}function a(n,t){return function(i,r){for(var f=i.length,o=[],s=0,u=n[0],e=0;f>0&&u>0&&(e+u+1>r&&(u=Math.max(1,r-e)),o.push(i.substring(f-=u,f+u)),!((e+=u+1)>r));)u=n[s=(s+1)%n.length];return o.reverse().join(t)}}function v(n,t){n=n.toPrecision(t);n:for(var u,f=n.length,r=1,i=-1;r<f;++r)switch(n[r]){case".":i=u=r;break;case"0":0===i&&(i=r);u=r;break;case"e":break n;default:i>0&&(i=0)}return i>0?n.slice(0,i)+n.slice(u+1):n}function y(n,t){var f=i(n,t);if(!f)return n+"";var u=f[0],o=f[1],r=o-(c=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,e=u.length;return r===e?u:r>e?u+new Array(r-e+1).join("0"):r>0?u.slice(0,r)+"."+u.slice(r):"0."+new Array(1-r).join("0")+i(n,Math.max(0,t+r-1))[0]}function e(n,t){var f=i(n,t),r,u;return f?(r=f[0],u=f[1],u<0?"0."+new Array(-u).join("0")+r:r.length>u+1?r.slice(0,u+1)+"."+r.slice(u+1):r+new Array(u-r.length+2).join("0")):n+""}function u(n){return new o(n)}function o(n){if(!(t=d.exec(n)))throw new Error("invalid format: "+n);var t,r=t[1]||" ",u=t[2]||">",o=t[3]||"-",s=t[4]||"",f=!!t[5],h=t[6]&&+t[6],e=!!t[7],c=t[8]&&+t[8].slice(1),i=t[9]||"";"n"===i?(e=!0,i="g"):l[i]||(i="");(f||"0"===r&&"="===u)&&(f=!0,r="0",u="=");this.fill=r;this.align=u;this.sign=o;this.symbol=s;this.zero=f;this.width=h;this.comma=e;this.precision=c;this.type=i}function p(n){return n}function s(n){function i(n){function v(n){var l,rt,e,v=d,u=g,tt,it,h;if("c"===t)u=w(n)+u,n="";else{if(n=+n,tt=(n<0||1/n<0)&&(n*=-1,!0),n=w(n,o),tt)for(l=-1,rt=n.length,tt=!1;++l<rt;)if(e=n.charCodeAt(l),48<e&&e<58||"x"===t&&96<e&&e<103||"X"===t&&64<e&&e<71){tt=!0;break}if(v=(tt?"("===i?i:"-":"-"===i||"("===i?"":i)+v,u=u+("s"===t?f[8+c/3]:"")+(tt&&"("===i?")":""),nt)for(l=-1,rt=n.length;++l<rt;)if(e=n.charCodeAt(l),48>e||e>57){u=(46===e?s+n.slice(l+1):n.slice(l))+u;n=n.slice(0,l);break}}p&&!y&&(n=r(n,1/0));it=v.length+n.length+u.length;h=it<a?new Array(a-it+1).join(b):"";switch(p&&y&&(n=r(h+n,h.length?a-u.length:1/0),h=""),k){case"<":return v+n+u+h;case"=":return v+h+n+u;case"^":return h.slice(0,it=h.length>>1)+v+n+u+h.slice(it)}return h+v+n+u}n=u(n);var b=n.fill,k=n.align,i=n.sign,h=n.symbol,y=n.zero,a=n.width,p=n.comma,o=n.precision,t=n.type,d="$"===h?e[0]:"#"===h&&/[boxX]/.test(t)?"0"+t.toLowerCase():"",g="$"===h?e[1]:/[%p]/.test(t)?"%":"",w=l[t],nt=!t||/[defgprs%]/.test(t);return o=null==o?t?6:12:/[gprs]/.test(t)?Math.max(1,Math.min(21,o)):Math.max(0,Math.min(20,o)),v.toString=function(){return n+""},v}function o(n,r){var o=i((n=u(n),n.type="f",n)),e=3*Math.max(-8,Math.min(8,Math.floor(t(r)/3))),s=Math.pow(10,-e),h=f[8+e/3];return function(n){return o(s*n)+h}}var r=n.grouping&&n.thousands?a(n.grouping,n.thousands):p,e=n.currency,s=n.decimal;return{format:i,formatPrefix:o}}function h(t){return r=s(t),n.format=r.format,n.formatPrefix=r.formatPrefix,r}function w(n){return Math.max(0,-t(Math.abs(n)))}function b(n,i){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(t(i)/3)))-t(Math.abs(n)))}function k(n,i){return n=Math.abs(n),i=Math.abs(i)-n,Math.max(0,t(i)-t(n))+1}var c,l={"":v,"%":function(n,t){return(100*n).toFixed(t)},b:function(n){return Math.round(n).toString(2)},c:function(n){return n+""},d:function(n){return Math.round(n).toString(10)},e:function(n,t){return n.toExponential(t)},f:function(n,t){return n.toFixed(t)},g:function(n,t){return n.toPrecision(t)},o:function(n){return Math.round(n).toString(8)},p:function(n,t){return e(100*n,t)},r:e,s:y,X:function(n){return Math.round(n).toString(16).toUpperCase()},x:function(n){return Math.round(n).toString(16)}},d=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i,r,f;o.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};f=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];h({decimal:".",thousands:",",grouping:[3],currency:["$",""]});n.formatDefaultLocale=h;n.formatLocale=s;n.formatSpecifier=u;n.precisionFixed=w;n.precisionPrefix=b;n.precisionRound=k;Object.defineProperty(n,"__esModule",{value:!0})})},function(n,t){!function(n,i){i(t)}(this,function(n){"use strict";function t(n,i,r,u){function f(t){return n(t=new Date(+t)),t}return f.floor=f,f.ceil=function(t){return n(t=new Date(t-1)),i(t,1),n(t),t},f.round=function(n){var t=f(n),i=f.ceil(n);return n-t<i-n?t:i},f.offset=function(n,t){return i(n=new Date(+n),null==t?1:Math.floor(t)),n},f.range=function(t,r,u){var e=[];if(t=f.ceil(t),u=null==u?1:Math.floor(u),!(t<r&&u>0))return e;do e.push(new Date(+t));while(i(t,u),n(t),t<r);return e},f.filter=function(r){return t(function(t){if(t>=t)for(;n(t),!r(t);)t.setTime(t-1)},function(n,t){if(n>=n)for(;--t>=0;)for(;i(n,1),!r(n););})},r&&(f.count=function(t,i){return s.setTime(+t),h.setTime(+i),n(s),n(h),Math.floor(r(s,h))},f.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?f.filter(u?function(t){return u(t)%n==0}:function(t){return f.count(0,t)%n==0}):f:null}),f}function u(n){return t(function(t){t.setDate(t.getDate()-(t.getDay()+7-n)%7);t.setHours(0,0,0,0)},function(n,t){n.setDate(n.getDate()+7*t)},function(n,t){return(t-n-(t.getTimezoneOffset()-n.getTimezoneOffset())*i)/b})}function f(n){return t(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-n)%7);t.setUTCHours(0,0,0,0)},function(n,t){n.setUTCDate(n.getUTCDate()+7*t)},function(n,t){return(t-n)/b})}var s=new Date,h=new Date,e=t(function(){},function(n,t){n.setTime(+n+t)},function(n,t){return t-n}),gt;e.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?t(function(t){t.setTime(Math.floor(t/n)*n)},function(t,i){t.setTime(+t+i*n)},function(t,i){return(i-t)/n}):e:null};var p=e.range,o=1e3,i=6e4,r=36e5,w=864e5,b=6048e5,c=t(function(n){n.setTime(Math.floor(n/o)*o)},function(n,t){n.setTime(+n+t*o)},function(n,t){return(t-n)/o},function(n){return n.getUTCSeconds()}),k=c.range,d=t(function(n){n.setTime(Math.floor(n/i)*i)},function(n,t){n.setTime(+n+t*i)},function(n,t){return(t-n)/i},function(n){return n.getMinutes()}),ni=d.range,g=t(function(n){var t=n.getTimezoneOffset()*i%r;t<0&&(t+=r);n.setTime(Math.floor((+n-t)/r)*r+t)},function(n,t){n.setTime(+n+t*r)},function(n,t){return(t-n)/r},function(n){return n.getHours()}),ti=g.range,nt=t(function(n){n.setHours(0,0,0,0)},function(n,t){n.setDate(n.getDate()+t)},function(n,t){return(t-n-(t.getTimezoneOffset()-n.getTimezoneOffset())*i)/w},function(n){return n.getDate()-1}),ii=nt.range,l=u(0),tt=u(1),it=u(2),rt=u(3),ut=u(4),ft=u(5),et=u(6),ot=l.range,ri=tt.range,ui=it.range,fi=rt.range,ei=ut.range,oi=ft.range,si=et.range,st=t(function(n){n.setDate(1);n.setHours(0,0,0,0)},function(n,t){n.setMonth(n.getMonth()+t)},function(n,t){return t.getMonth()-n.getMonth()+12*(t.getFullYear()-n.getFullYear())},function(n){return n.getMonth()}),hi=st.range,a=t(function(n){n.setMonth(0,1);n.setHours(0,0,0,0)},function(n,t){n.setFullYear(n.getFullYear()+t)},function(n,t){return t.getFullYear()-n.getFullYear()},function(n){return n.getFullYear()});a.every=function(n){return isFinite(n=Math.floor(n))&&n>0?t(function(t){t.setFullYear(Math.floor(t.getFullYear()/n)*n);t.setMonth(0,1);t.setHours(0,0,0,0)},function(t,i){t.setFullYear(t.getFullYear()+i*n)}):null};var ci=a.range,ht=t(function(n){n.setUTCSeconds(0,0)},function(n,t){n.setTime(+n+t*i)},function(n,t){return(t-n)/i},function(n){return n.getUTCMinutes()}),li=ht.range,ct=t(function(n){n.setUTCMinutes(0,0,0)},function(n,t){n.setTime(+n+t*r)},function(n,t){return(t-n)/r},function(n){return n.getUTCHours()}),ai=ct.range,lt=t(function(n){n.setUTCHours(0,0,0,0)},function(n,t){n.setUTCDate(n.getUTCDate()+t)},function(n,t){return(t-n)/w},function(n){return n.getUTCDate()-1}),vi=lt.range,v=f(0),at=f(1),vt=f(2),yt=f(3),pt=f(4),wt=f(5),bt=f(6),kt=v.range,yi=at.range,pi=vt.range,wi=yt.range,bi=pt.range,ki=wt.range,di=bt.range,dt=t(function(n){n.setUTCDate(1);n.setUTCHours(0,0,0,0)},function(n,t){n.setUTCMonth(n.getUTCMonth()+t)},function(n,t){return t.getUTCMonth()-n.getUTCMonth()+12*(t.getUTCFullYear()-n.getUTCFullYear())},function(n){return n.getUTCMonth()}),gi=dt.range,y=t(function(n){n.setUTCMonth(0,1);n.setUTCHours(0,0,0,0)},function(n,t){n.setUTCFullYear(n.getUTCFullYear()+t)},function(n,t){return t.getUTCFullYear()-n.getUTCFullYear()},function(n){return n.getUTCFullYear()});y.every=function(n){return isFinite(n=Math.floor(n))&&n>0?t(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/n)*n);t.setUTCMonth(0,1);t.setUTCHours(0,0,0,0)},function(t,i){t.setUTCFullYear(t.getUTCFullYear()+i*n)}):null};gt=y.range;n.timeInterval=t;n.timeMillisecond=e;n.timeMilliseconds=p;n.utcMillisecond=e;n.utcMilliseconds=p;n.timeSecond=c;n.timeSeconds=k;n.utcSecond=c;n.utcSeconds=k;n.timeMinute=d;n.timeMinutes=ni;n.timeHour=g;n.timeHours=ti;n.timeDay=nt;n.timeDays=ii;n.timeWeek=l;n.timeWeeks=ot;n.timeSunday=l;n.timeSundays=ot;n.timeMonday=tt;n.timeMondays=ri;n.timeTuesday=it;n.timeTuesdays=ui;n.timeWednesday=rt;n.timeWednesdays=fi;n.timeThursday=ut;n.timeThursdays=ei;n.timeFriday=ft;n.timeFridays=oi;n.timeSaturday=et;n.timeSaturdays=si;n.timeMonth=st;n.timeMonths=hi;n.timeYear=a;n.timeYears=ci;n.utcMinute=ht;n.utcMinutes=li;n.utcHour=ct;n.utcHours=ai;n.utcDay=lt;n.utcDays=vi;n.utcWeek=v;n.utcWeeks=kt;n.utcSunday=v;n.utcSundays=kt;n.utcMonday=at;n.utcMondays=yi;n.utcTuesday=vt;n.utcTuesdays=pi;n.utcWednesday=yt;n.utcWednesdays=wi;n.utcThursday=pt;n.utcThursdays=bi;n.utcFriday=wt;n.utcFridays=ki;n.utcSaturday=bt;n.utcSaturdays=di;n.utcMonth=dt;n.utcMonths=gi;n.utcYear=y;n.utcYears=gt;Object.defineProperty(n,"__esModule",{value:!0})})},function(n,t,i){!function(n,r){r(t,i(155))}(this,function(n,t){"use strict";function k(n){if(0<=n.y&&n.y<100){var t=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return t.setFullYear(n.y),t}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function o(n){if(0<=n.y&&n.y<100){var t=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return t.setUTCFullYear(n.y),t}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function s(n){return{y:n,m:0,d:1,H:0,M:0,S:0,L:0}}function h(n){function t(n,t){return function(i){var u,e,s,f=[],r=-1,o=0,h=n.length;for(i instanceof Date||(i=new Date(+i));++r<h;)37===n.charCodeAt(r)&&(f.push(n.slice(o,r)),null!=(e=w[u=n.charAt(++r)])?u=n.charAt(++r):e="e"===u?" ":"0",(s=t[u])&&(u=s(i,e)),f.push(u),o=r+1);return f.push(n.slice(o,r)),f.join("")}}function gi(n,t){return function(i){var r=s(1900),e=u(r,n,i+="",0),f;return e!=i.length?null:(("p"in r&&(r.H=r.H%12+12*r.p),"W"in r||"U"in r)&&("w"in r||(r.w="W"in r?1:0),f="Z"in r?o(s(r.y)).getUTCDay():t(s(r.y)).getDay(),r.m=0,r.d="W"in r?(r.w+6)%7+7*r.W-(f+5)%7:r.w+7*r.U-(f+6)%7),"Z"in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,o(r)):t(r))}}function u(n,t,i,r){for(var u,e,f=0,o=t.length,s=i.length;f<o;){if(r>=s)return-1;if(u=t.charCodeAt(f++),37===u){if(u=t.charAt(f++),e=ou[u in w?t.charAt(f++):u],!e||(r=e(n,i,r))<0)return-1}else if(u!=i.charCodeAt(r++))return-1}return r}function nr(n,t,i){var r=kr.exec(t.slice(i));return r?(n.p=dr[r[0].toLowerCase()],i+r[0].length):-1}function tr(n,t,i){var r=tu.exec(t.slice(i));return r?(n.w=iu[r[0].toLowerCase()],i+r[0].length):-1}function ir(n,t,i){var r=gr.exec(t.slice(i));return r?(n.w=nu[r[0].toLowerCase()],i+r[0].length):-1}function rr(n,t,i){var r=fu.exec(t.slice(i));return r?(n.m=eu[r[0].toLowerCase()],i+r[0].length):-1}function ur(n,t,i){var r=ru.exec(t.slice(i));return r?(n.m=uu[r[0].toLowerCase()],i+r[0].length):-1}function fr(n,t,i){return u(n,bi,t,i)}function er(n,t,i){return u(n,ki,t,i)}function or(n,t,i){return u(n,di,t,i)}function sr(n){return b[n.getDay()]}function hr(n){return p[n.getDay()]}function cr(n){return wi[n.getMonth()]}function lr(n){return d[n.getMonth()]}function ar(n){return h[+(n.getHours()>=12)]}function vr(n){return b[n.getUTCDay()]}function yr(n){return p[n.getUTCDay()]}function pr(n){return wi[n.getUTCMonth()]}function wr(n){return d[n.getUTCMonth()]}function br(n){return h[+(n.getUTCHours()>=12)]}var bi=n.dateTime,ki=n.date,di=n.time,h=n.periods,p=n.days,b=n.shortDays,d=n.months,wi=n.shortMonths,kr=f(h),dr=e(h),gr=f(p),nu=e(p),tu=f(b),iu=e(b),ru=f(d),uu=e(d),fu=f(wi),eu=e(wi),i={a:sr,A:hr,b:cr,B:lr,c:null,d:a,e:a,H:lt,I:at,j:vt,L:yt,m:pt,M:wt,p:ar,S:bt,U:kt,w:dt,W:gt,x:null,X:null,y:ni,Y:ti,Z:ii,"%":y},r={a:vr,A:yr,b:pr,B:wr,c:null,d:v,e:v,H:ri,I:ui,j:fi,L:ei,m:oi,M:si,p:br,S:hi,U:ci,w:li,W:ai,x:null,X:null,y:vi,Y:yi,Z:pi,"%":y},ou={a:tr,A:ir,b:rr,B:ur,c:fr,d:c,e:c,H:l,I:l,j:et,L:ht,m:ft,M:ot,p:nr,S:st,U:nt,w:g,W:tt,x:er,X:or,y:rt,Y:it,Z:ut,"%":ct};return i.x=t(ki,i),i.X=t(di,i),i.c=t(bi,i),r.x=t(ki,r),r.X=t(di,r),r.c=t(bi,r),{format:function(n){var r=t(n+="",i);return r.toString=function(){return n},r},parse:function(n){var t=gi(n+="",k);return t.toString=function(){return n},t},utcFormat:function(n){var i=t(n+="",r);return i.toString=function(){return n},i},utcParse:function(n){var t=gi(n,o);return t.toString=function(){return n},t}}}function i(n,t,i){var u=n<0?"-":"",r=(u?-n:n)+"",f=r.length;return u+(f<i?new Array(i-f+1).join(t)+r:r)}function d(n){return n.replace(di,"\\$&")}function f(n){return new RegExp("^(?:"+n.map(d).join("|")+")","i")}function e(n){for(var i={},t=-1,r=n.length;++t<r;)i[n[t].toLowerCase()]=t;return i}function g(n,t,i){var u=r.exec(t.slice(i,i+1));return u?(n.w=+u[0],i+u[0].length):-1}function nt(n,t,i){var u=r.exec(t.slice(i));return u?(n.U=+u[0],i+u[0].length):-1}function tt(n,t,i){var u=r.exec(t.slice(i));return u?(n.W=+u[0],i+u[0].length):-1}function it(n,t,i){var u=r.exec(t.slice(i,i+4));return u?(n.y=+u[0],i+u[0].length):-1}function rt(n,t,i){var u=r.exec(t.slice(i,i+2));return u?(n.y=+u[0]+(+u[0]>68?1900:2e3),i+u[0].length):-1}function ut(n,t,i){var r=/^(Z)|([+-]\d\d)(?:\:?(\d\d))?/.exec(t.slice(i,i+6));return r?(n.Z=r[1]?0:-(r[2]+(r[3]||"00")),i+r[0].length):-1}function ft(n,t,i){var u=r.exec(t.slice(i,i+2));return u?(n.m=u[0]-1,i+u[0].length):-1}function c(n,t,i){var u=r.exec(t.slice(i,i+2));return u?(n.d=+u[0],i+u[0].length):-1}function et(n,t,i){var u=r.exec(t.slice(i,i+3));return u?(n.m=0,n.d=+u[0],i+u[0].length):-1}function l(n,t,i){var u=r.exec(t.slice(i,i+2));return u?(n.H=+u[0],i+u[0].length):-1}function ot(n,t,i){var u=r.exec(t.slice(i,i+2));return u?(n.M=+u[0],i+u[0].length):-1}function st(n,t,i){var u=r.exec(t.slice(i,i+2));return u?(n.S=+u[0],i+u[0].length):-1}function ht(n,t,i){var u=r.exec(t.slice(i,i+3));return u?(n.L=+u[0],i+u[0].length):-1}function ct(n,t,i){var r=ki.exec(t.slice(i,i+1));return r?i+r[0].length:-1}function a(n,t){return i(n.getDate(),t,2)}function lt(n,t){return i(n.getHours(),t,2)}function at(n,t){return i(n.getHours()%12||12,t,2)}function vt(n,r){return i(1+t.timeDay.count(t.timeYear(n),n),r,3)}function yt(n,t){return i(n.getMilliseconds(),t,3)}function pt(n,t){return i(n.getMonth()+1,t,2)}function wt(n,t){return i(n.getMinutes(),t,2)}function bt(n,t){return i(n.getSeconds(),t,2)}function kt(n,r){return i(t.timeSunday.count(t.timeYear(n),n),r,2)}function dt(n){return n.getDay()}function gt(n,r){return i(t.timeMonday.count(t.timeYear(n),n),r,2)}function ni(n,t){return i(n.getFullYear()%100,t,2)}function ti(n,t){return i(n.getFullYear()%1e4,t,4)}function ii(n){var t=n.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+i(t/60|0,"0",2)+i(t%60,"0",2)}function v(n,t){return i(n.getUTCDate(),t,2)}function ri(n,t){return i(n.getUTCHours(),t,2)}function ui(n,t){return i(n.getUTCHours()%12||12,t,2)}function fi(n,r){return i(1+t.utcDay.count(t.utcYear(n),n),r,3)}function ei(n,t){return i(n.getUTCMilliseconds(),t,3)}function oi(n,t){return i(n.getUTCMonth()+1,t,2)}function si(n,t){return i(n.getUTCMinutes(),t,2)}function hi(n,t){return i(n.getUTCSeconds(),t,2)}function ci(n,r){return i(t.utcSunday.count(t.utcYear(n),n),r,2)}function li(n){return n.getUTCDay()}function ai(n,r){return i(t.utcMonday.count(t.utcYear(n),n),r,2)}function vi(n,t){return i(n.getUTCFullYear()%100,t,2)}function yi(n,t){return i(n.getUTCFullYear()%1e4,t,4)}function pi(){return"+0000"}function y(){return"%"}function p(t){return u=h(t),n.timeFormat=u.format,n.timeParse=u.parse,n.utcFormat=u.utcFormat,n.utcParse=u.utcParse,u}function wi(n){return n.toISOString()}function bi(n){var t=new Date(n);return isNaN(t)?null:t}var u,w={"-":"",_:" ",0:"0"},r=/^\s*\d+/,ki=/^%/,di=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;p({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var b="%Y-%m-%dT%H:%M:%S.%LZ",gi=Date.prototype.toISOString?wi:n.utcFormat(b),nr=+new Date("2000-01-01T00:00:00.000Z")?bi:n.utcParse(b);n.timeFormatDefaultLocale=p;n.timeFormatLocale=h;n.isoFormat=gi;n.isoParse=nr;Object.defineProperty(n,"__esModule",{value:!0})})},function(n,t){!function(n,i){i(t)}(this,function(n){"use strict";function bat(n){return function(t,i){return iu(n(t),i)}}function vr(n,t,i){var f=Math.abs(t-n)/Math.max(0,i),r=Math.pow(10,Math.floor(Math.log(f)/Math.LN10)),u=f/r;return u>=lfi?r*=10:u>=afi?r*=5:u>=vfi&&(r*=2),t<n?-r:r}function kat(n){return n.length}function dat(n,t,i){var r=n(i);return"translate("+(isFinite(r)?r:t(i))+",0)"}function gat(n,t,i){var r=n(i);return"translate(0,"+(isFinite(r)?r:t(i))+")"}function nvt(n){var t=n.bandwidth()/2;return n.round()&&(t=Math.round(t)),function(i){return n(i)+t}}function tvt(){return!this.__axis}function hs(n,t){function i(i){var a,ut=null==e?t.ticks?t.ticks.apply(t,f):t.domain():e,ft=null==o?t.tickFormat?t.tickFormat.apply(t,f):hft:o,tt=Math.max(r,0)+s,k=n===sc||n===rw?dat:gat,d=t.range(),it=d[0]+.5,rt=d[d.length-1]+.5,l=(t.bandwidth?nvt:hft)(t.copy()),y=i.selection?i.selection():i,v=y.selectAll(".domain").data([null]),h=y.selectAll(".tick").data(ut,t).order(),g=h.exit(),b=h.enter().append("g").attr("class","tick"),p=h.select("line"),w=h.select("text"),c=n===sc||n===io?-1:1,nt=n===io||n===hc?(a="x","y"):(a="y","x");v=v.merge(v.enter().insert("path",".tick").attr("class","domain").attr("stroke","#000"));h=h.merge(b);p=p.merge(b.append("line").attr("stroke","#000").attr(a+"2",c*r).attr(nt+"1",.5).attr(nt+"2",.5));w=w.merge(b.append("text").attr("fill","#000").attr(a,c*tt).attr(nt,.5).attr("dy",n===sc?"0em":n===rw?"0.71em":"0.32em"));i!==y&&(v=v.transition(i),h=h.transition(i),p=p.transition(i),w=w.transition(i),g=g.transition(i).attr("opacity",cft).attr("transform",function(n){return k(l,this.parentNode.__axis||l,n)}),b.attr("opacity",cft).attr("transform",function(n){return k(this.parentNode.__axis||l,l,n)}));g.remove();v.attr("d",n===io||n==hc?"M"+c*u+","+it+"H0.5V"+rt+"H"+c*u:"M"+it+","+c*u+"V0.5H"+rt+"V"+c*u);h.attr("opacity",1).attr("transform",function(n){return k(l,l,n)});p.attr(a+"2",c*r);w.attr(a,c*tt).text(ft);y.filter(tvt).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",n===hc?"start":n===io?"end":"middle");y.each(function(){this.__axis=l})}var f=[],e=null,o=null,r=6,u=6,s=3;return i.scale=function(n){return arguments.length?(t=n,i):t},i.ticks=function(){return f=iw.call(arguments),i},i.tickArguments=function(n){return arguments.length?(f=null==n?[]:iw.call(n),i):f.slice()},i.tickValues=function(n){return arguments.length?(e=null==n?null:iw.call(n),i):e&&e.slice()},i.tickFormat=function(n){return arguments.length?(o=n,i):o},i.tickSize=function(n){return arguments.length?(r=u=+n,i):r},i.tickSizeInner=function(n){return arguments.length?(r=+n,i):r},i.tickSizeOuter=function(n){return arguments.length?(u=+n,i):u},i.tickPadding=function(n){return arguments.length?(s=+n,i):s},i}function ivt(n){return hs(sc,n)}function rvt(n){return hs(hc,n)}function uvt(n){return hs(rw,n)}function fvt(n){return hs(io,n)}function ki(){for(var n,t=0,r=arguments.length,i={};t<r;++t){if(!(n=arguments[t]+"")||n in i)throw new Error("illegal type: "+n);i[n]=[]}return new cs(i)}function cs(n){this._=n}function evt(n,t){return n.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}function ovt(n,t){for(var r,i=0,u=n.length;i<u;++i)if((r=n[i]).name===t)return r.value}function gd(n,t,i){for(var r=0,u=n.length;r<u;++r)if(n[r].name===t){n[r]=fei;n=n.slice(0,r).concat(n.slice(r+1));break}return null!=i&&n.push({name:t,value:i}),n}function svt(n){return function(){var t=this.ownerDocument,i=this.namespaceURI;return i===uw&&t.documentElement.namespaceURI===uw?t.createElement(n):t.createElementNS(i,n)}}function hvt(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function ng(){return new uv}function uv(){this._="@"+(++eei).toString(36)}function cvt(n,t,i){return n=tg(n,t,i),function(t){var i=t.relatedTarget;i&&(i===this||8&i.compareDocumentPosition(this))||n.call(this,t)}}function tg(t,i,r){return function(u){var f=n.event;n.event=u;try{t.call(this,this.__data__,i,r)}finally{n.event=f}}}function lvt(n){return n.trim().split(/^|\s+/).map(function(n){var i="",t=n.indexOf(".");return t>=0&&(i=n.slice(t+1),n=n.slice(0,t)),{type:n,name:i}})}function avt(n){return function(){var i=this.__on;if(i){for(var t,r=0,u=-1,f=i.length;r<f;++r)t=i[r],n.type&&t.type!==n.type||t.name!==n.name?i[++u]=t:this.removeEventListener(t.type,t.listener,t.capture);++u?i.length=u:delete this.__on}}}function vvt(n,t,i){var r=sw.hasOwnProperty(n.type)?cvt:tg;return function(u,f,e){var o,s=this.__on,c=r(t,f,e),h,l;if(s)for(h=0,l=s.length;h<l;++h)if((o=s[h]).type===n.type&&o.name===n.name)return this.removeEventListener(o.type,o.listener,o.capture),this.addEventListener(o.type,o.listener=c,o.capture=i),void(o.value=t);this.addEventListener(n.type,c,i);o={type:n.type,name:n.name,value:t,listener:c,capture:i};s?s.push(o):this.__on=[o]}}function fe(t,i,r,u){var f=n.event;t.sourceEvent=n.event;n.event=t;try{return i.apply(r,u)}finally{n.event=f}}function yvt(){}function pvt(){return[]}function ls(n,t){this.ownerDocument=n.ownerDocument;this.namespaceURI=n.namespaceURI;this._next=null;this._parent=n;this.__data__=t}function wvt(n,t,i,r,u,f){for(var o,e=0,s=t.length,h=f.length;e<h;++e)(o=t[e])?(o.__data__=f[e],r[e]=o):i[e]=new ls(n,f[e]);for(;e<s;++e)(o=t[e])&&(u[e]=o)}function bvt(n,t,i,r,u,f,e){for(var s,h,c={},l=t.length,v=f.length,a=new Array(l),o=0;o<l;++o)(s=t[o])&&(a[o]=h=yft+e.call(s,s.__data__,o,t),h in c?u[o]=s:c[h]=s);for(o=0;o<v;++o)h=yft+e.call(n,f[o],o,f),(s=c[h])?(r[o]=s,s.__data__=f[o],c[h]=null):i[o]=new ls(n,f[o]);for(o=0;o<l;++o)(s=t[o])&&c[a[o]]===s&&(u[o]=s)}function kvt(n,t){return n<t?-1:n>t?1:n>=t?0:NaN}function dvt(n){return function(){this.removeAttribute(n)}}function gvt(n){return function(){this.removeAttributeNS(n.space,n.local)}}function nyt(n,t){return function(){this.setAttribute(n,t)}}function tyt(n,t){return function(){this.setAttributeNS(n.space,n.local,t)}}function iyt(n,t){return function(){var i=t.apply(this,arguments);null==i?this.removeAttribute(n):this.setAttribute(n,i)}}function ryt(n,t){return function(){var i=t.apply(this,arguments);null==i?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,i)}}function uyt(n){return function(){this.style.removeProperty(n)}}function fyt(n,t,i){return function(){this.style.setProperty(n,t,i)}}function eyt(n,t,i){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(n):this.style.setProperty(n,r,i)}}function oyt(n){return function(){delete this[n]}}function syt(n,t){return function(){this[n]=t}}function hyt(n,t){return function(){var i=t.apply(this,arguments);null==i?delete this[n]:this[n]=i}}function ig(n){return n.trim().split(/^|\s+/)}function fv(n){return n.classList||new rg(n)}function rg(n){this._node=n;this._names=ig(n.getAttribute("class")||"")}function ug(n,t){for(var r=fv(n),i=-1,u=t.length;++i<u;)r.add(t[i])}function fg(n,t){for(var r=fv(n),i=-1,u=t.length;++i<u;)r.remove(t[i])}function cyt(n){return function(){ug(this,n)}}function lyt(n){return function(){fg(this,n)}}function ayt(n,t){return function(){(t.apply(this,arguments)?ug:fg)(this,n)}}function vyt(){this.textContent=""}function yyt(n){return function(){this.textContent=n}}function pyt(n){return function(){var t=n.apply(this,arguments);this.textContent=null==t?"":t}}function wyt(){this.innerHTML=""}function byt(n){return function(){this.innerHTML=n}}function kyt(n){return function(){var t=n.apply(this,arguments);this.innerHTML=null==t?"":t}}function dyt(){this.nextSibling&&this.parentNode.appendChild(this)}function gyt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function npt(){return null}function tpt(){var n=this.parentNode;n&&n.removeChild(this)}function eg(n,t,i){var u=nf(n),r=u.CustomEvent;r?r=new r(t,i):(r=u.document.createEvent("Event"),i?(r.initEvent(t,i.bubbles,i.cancelable),r.detail=i.detail):r.initEvent(t,!1,!1));n.dispatchEvent(r)}function ipt(n,t){return function(){return eg(this,n,t)}}function rpt(n,t){return function(){return eg(this,n,t.apply(this,arguments))}}function ut(n,t){this._groups=n;this._parents=t}function yr(){return new ut([[document.documentElement]],aw)}function ev(){n.event.stopImmediatePropagation()}function as(n,t){var i=n.document.documentElement,r=ct(n).on("dragstart.drag",null);t&&(r.on("click.drag",tf,!0),setTimeout(function(){r.on("click.drag",null)},0));"onselectstart"in i?r.on("selectstart.drag",null):(i.style.MozUserSelect=i.__noselect,delete i.__noselect)}function ov(n,t,i,r,u,f,e,o,s,h){this.target=n;this.type=t;this.subject=i;this.identifier=r;this.active=u;this.x=f;this.y=e;this.dx=o;this.dy=s;this._=h}function upt(){return!n.event.button}function fpt(){return this.parentNode}function ept(t){return null==t?{x:n.event.x,y:n.event.y}:t}function ee(n,t){var i=Object.create(n.prototype);for(var r in t)i[r]=t[r];return i}function di(){}function gi(n){var t;return n=(n+"").trim().toLowerCase(),(t=doi.exec(n))?(t=parseInt(t[1],16),new k(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1)):(t=goi.exec(n))?og(parseInt(t[1],16)):(t=nsi.exec(n))?new k(t[1],t[2],t[3],1):(t=tsi.exec(n))?new k(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=isi.exec(n))?sg(t[1],t[2],t[3],t[4]):(t=rsi.exec(n))?sg(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=usi.exec(n))?hg(t[1],t[2]/100,t[3]/100,1):(t=fsi.exec(n))?hg(t[1],t[2]/100,t[3]/100,t[4]):pft.hasOwnProperty(n)?og(pft[n]):"transparent"===n?new k(NaN,NaN,NaN,0):null}function og(n){return new k(n>>16&255,n>>8&255,255&n,1)}function sg(n,t,i,r){return r<=0&&(n=t=i=NaN),new k(n,t,i,r)}function sv(n){return n instanceof di||(n=gi(n)),n?(n=n.rgb(),new k(n.r,n.g,n.b,n.opacity)):new k}function oe(n,t,i,r){return 1===arguments.length?sv(n):new k(n,t,i,null==r?1:r)}function k(n,t,i,r){this.r=+n;this.g=+t;this.b=+i;this.opacity=+r}function hg(n,t,i,r){return r<=0?n=t=i=NaN:i<=0||i>=1?n=t=NaN:t<=0&&(n=NaN),new ii(n,t,i,r)}function opt(n){if(n instanceof ii)return new ii(n.h,n.s,n.l,n.opacity);if(n instanceof di||(n=gi(n)),!n)return new ii;if(n instanceof ii)return n;n=n.rgb();var u=n.r/255,i=n.g/255,f=n.b/255,e=Math.min(u,i,f),r=Math.max(u,i,f),o=NaN,t=r-e,s=(r+e)/2;return t?(o=u===r?(i-f)/t+6*(i<f):i===r?(f-u)/t+2:(u-i)/t+4,t/=s<.5?r+e:2-r-e,o*=60):t=s>0&&s<1?0:o,new ii(o,t,s,n.opacity)}function vs(n,t,i,r){return 1===arguments.length?opt(n):new ii(n,t,i,null==r?1:r)}function ii(n,t,i,r){this.h=+n;this.s=+t;this.l=+i;this.opacity=+r}function hv(n,t,i){return 255*(n<60?t+(i-t)*n/60:n<180?i:n<240?t+(i-t)*(240-n)/60:t)}function cv(n){var t;if(n instanceof li)return new li(n.l,n.a,n.b,n.opacity);if(n instanceof nr)return t=n.h*wft,new li(n.l,Math.cos(t)*n.c,Math.sin(t)*n.c,n.opacity);n instanceof k||(n=sv(n));var i=yv(n.r),r=yv(n.g),u=yv(n.b),e=lv((.4124564*i+.3575761*r+.1804375*u)/kft),f=lv((.2126729*i+.7151522*r+.072175*u)/dft),o=lv((.0193339*i+.119192*r+.9503041*u)/gft);return new li(116*f-16,500*(e-f),200*(f-o),n.opacity)}function ys(n,t,i,r){return 1===arguments.length?cv(n):new li(n,t,i,null==r?1:r)}function li(n,t,i,r){this.l=+n;this.a=+t;this.b=+i;this.opacity=+r}function lv(n){return n>esi?Math.pow(n,1/3):n/tet+net}function av(n){return n>ef?n*n*n:tet*(n-net)}function vv(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function yv(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function spt(n){if(n instanceof nr)return new nr(n.h,n.c,n.l,n.opacity);n instanceof li||(n=cv(n));var t=Math.atan2(n.b,n.a)*bft;return new nr(t<0?t+360:t,Math.sqrt(n.a*n.a+n.b*n.b),n.l,n.opacity)}function ps(n,t,i,r){return 1===arguments.length?spt(n):new nr(n,t,i,null==r?1:r)}function nr(n,t,i,r){this.h=+n;this.c=+t;this.l=+i;this.opacity=+r}function hpt(n){if(n instanceof pr)return new pr(n.h,n.s,n.l,n.opacity);n instanceof k||(n=sv(n));var s=n.r/255,f=n.g/255,e=n.b/255,t=(fet*e+ret*s-uet*f)/(fet+ret-uet),i=e-t,r=(fo*(f-t)-pw*i)/pc,o=Math.sqrt(r*r+i*i)/(fo*t*(1-t)),u=o?Math.atan2(r,i)*bft-120:NaN;return new pr(u<0?u+360:u,o,t,n.opacity)}function dt(n,t,i,r){return 1===arguments.length?hpt(n):new pr(n,t,i,null==r?1:r)}function pr(n,t,i,r){this.h=+n;this.s=+t;this.l=+i;this.opacity=+r}function cg(n,t,i,r,u){var f=n*n,e=f*n;return((1-3*n+3*f-e)*t+(4-6*f+3*e)*i+(1+3*n+3*f-3*e)*r+e*u)/6}function lg(n,t){return function(i){return n+i*t}}function cpt(n,t,i){return n=Math.pow(n,i),t=Math.pow(t,i)-n,i=1/i,function(r){return Math.pow(n+r*t,i)}}function pv(n,t){var i=t-n;return i?lg(n,i>180||i<-180?i-360*Math.round(i/360):i):kc(isNaN(n)?t:n)}function lpt(n){return 1==(n=+n)?w:function(t,i){return i-t?cpt(t,i,n):kc(isNaN(t)?i:t)}}function w(n,t){var i=t-n;return i?lg(n,i):kc(isNaN(n)?t:n)}function ag(n){return function(t){for(var i,u=t.length,f=new Array(u),e=new Array(u),o=new Array(u),r=0;r<u;++r)i=oe(t[r]),f[r]=i.r||0,e[r]=i.g||0,o[r]=i.b||0;return f=n(f),e=n(e),o=n(o),i.opacity=1,function(n){return i.r=f(n),i.g=e(n),i.b=o(n),i+""}}}function apt(n){return function(){return n}}function vpt(n){return function(t){return n(t)+""}}function ypt(n){return"none"===n?gw:(eo||(eo=document.createElement("DIV"),ww=document.documentElement,eet=document.defaultView),eo.style.transform=n,n=eet.getComputedStyle(ww.appendChild(eo),null).getPropertyValue("transform"),ww.removeChild(eo),n=n.slice(7,-1).split(","),pet(+n[0],+n[1],+n[2],+n[3],+n[4],+n[5]))}function ppt(n){return null==n?gw:(wc||(wc=document.createElementNS("http://www.w3.org/2000/svg","g")),wc.setAttribute("transform",n),(n=wc.transform.baseVal.consolidate())?(n=n.matrix,pet(n.a,n.b,n.c,n.d,n.e,n.f)):gw)}function vg(n,t,i,r){function u(n){return n.length?n.pop()+" ":""}function f(n,r,u,f,e,o){if(n!==u||r!==f){var s=e.push("translate(",null,t,null,i);o.push({i:s-4,x:lt(n,u)},{i:s-2,x:lt(r,f)})}else(u||f)&&e.push("translate("+u+t+f+i)}function e(n,t,i,f){n!==t?(n-t>180?t+=360:t-n>180&&(n+=360),f.push({i:i.push(u(i)+"rotate(",null,r)-2,x:lt(n,t)})):t&&i.push(u(i)+"rotate("+t+r)}function o(n,t,i,f){n!==t?f.push({i:i.push(u(i)+"skewX(",null,r)-2,x:lt(n,t)}):t&&i.push(u(i)+"skewX("+t+r)}function s(n,t,i,r,f,e){if(n!==i||t!==r){var o=f.push(u(f)+"scale(",null,",",null,")");e.push({i:o-4,x:lt(n,i)},{i:o-2,x:lt(t,r)})}else 1===i&&1===r||f.push(u(f)+"scale("+i+","+r+")")}return function(t,i){var r=[],u=[];return t=n(t),i=n(i),f(t.translateX,t.translateY,i.translateX,i.translateY,r,u),e(t.rotate,i.rotate,r,u),o(t.skewX,i.skewX,r,u),s(t.scaleX,t.scaleY,i.scaleX,i.scaleY,r,u),t=i=null,function(n){for(var t,i=-1,f=u.length;++i<f;)r[(t=u[i]).i]=t.x(n);return r.join("")}}}function yg(n){return((n=Math.exp(n))+1/n)/2}function wpt(n){return((n=Math.exp(n))-1/n)/2}function bpt(n){return((n=Math.exp(2*n))-1)/(n+1)}function pg(n){return function(t,i){var r=n((t=vs(t)).h,(i=vs(i)).h),u=w(t.s,i.s),f=w(t.l,i.l),e=w(t.opacity,i.opacity);return function(n){return t.h=r(n),t.s=u(n),t.l=f(n),t.opacity=e(n),t+""}}}function kpt(n,t){var i=w((n=ys(n)).l,(t=ys(t)).l),r=w(n.a,t.a),u=w(n.b,t.b),f=w(n.opacity,t.opacity);return function(t){return n.l=i(t),n.a=r(t),n.b=u(t),n.opacity=f(t),n+""}}function wg(n){return function(t,i){var r=n((t=ps(t)).h,(i=ps(i)).h),u=w(t.c,i.c),f=w(t.l,i.l),e=w(t.opacity,i.opacity);return function(n){return t.h=r(n),t.c=u(n),t.l=f(n),t.opacity=e(n),t+""}}}function bg(n){return function t(i){function r(t,r){var u=n((t=dt(t)).h,(r=dt(r)).h),f=w(t.s,r.s),e=w(t.l,r.l),o=w(t.opacity,r.opacity);return function(n){return t.h=u(n),t.s=f(n),t.l=e(Math.pow(n,i)),t.opacity=o(n),t+""}}return i=+i,r.gamma=t,r}(1)}function yu(){return ur||(not(dpt),ur=ib.now()+tb)}function dpt(){ur=0}function se(){this._call=this._time=this._next=null}function ws(n,t,i){var r=new se;return r.restart(n,t,i),r}function kg(){yu();++of;for(var t,n=bc;n;)(t=ur-n._time)>=0&&n._call.call(null,t),n=n._next;--of}function dg(){ur=(gc=ib.now())+tb;of=lo=0;try{kg()}finally{of=0;nwt();ur=0}}function gpt(){var n=ib.now(),t=n-gc;t>get&&(tb-=t,gc=n)}function nwt(){for(var t,i,n=bc,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(i=n._next,n._next=null,n=t?t._next=i:bc=i);oo=t;wv(r)}function wv(n){if(!of){lo&&(lo=clearTimeout(lo));var t=n-ur;t>24?(n<1/0&&(lo=setTimeout(dg,t)),ao&&(ao=clearInterval(ao))):(ao||(gc=ur,ao=setInterval(gpt,get)),of=1,not(dg))}}function bv(n,t){var i=n.__transition;if(!i||!(i=i[t])||i.state>tot)throw new Error("too late");return i}function wr(n,t){var i=n.__transition;if(!i||!(i=i[t])||i.state>nl)throw new Error("too late");return i}function ai(n,t){var i=n.__transition;if(!i||!(i=i[t]))throw new Error("too late");return i}function twt(n,t,i){function s(n){i.state=ub;i.timer.restart(f,i.delay,i.time);i.delay<=n&&f(n-i.delay)}function f(s){var c,l,a,h;if(i.state!==ub)return e();for(c in r)if(h=r[c],h.name===i.name){if(h.state===fb)return rb(f);h.state===iot?(h.state=tl,h.timer.stop(),h.on.call("interrupt",n,n.__data__,h.index,h.group),delete r[c]):+c<t&&(h.state=tl,h.timer.stop(),delete r[c])}if(rb(function(){i.state===fb&&(i.state=iot,i.timer.restart(o,i.delay,i.time),o(s))}),i.state=nl,i.on.call("start",n,n.__data__,i.index,i.group),i.state===nl){for(i.state=fb,u=new Array(a=i.tween.length),c=0,l=-1;c<a;++c)(h=i.tween[c].value.call(n,n.__data__,i.index,i.group))&&(u[++l]=h);u.length=l+1}}function o(t){for(var f=t<i.duration?i.ease.call(null,t/i.duration):(i.timer.restart(e),i.state=eb,1),r=-1,o=u.length;++r<o;)u[r].call(null,f);i.state===eb&&(i.on.call("end",n,n.__data__,i.index,i.group),e())}function e(){i.state=tl;i.timer.stop();delete r[t];for(var u in r)return;delete n.__transition}var u,r=n.__transition;r[t]=i;i.timer=ws(s,0,i.time)}function iwt(n,t){var r,i;return function(){var f=wr(this,n),e=f.tween,u,o;if(e!==r)for(i=r=e,u=0,o=i.length;u<o;++u)if(i[u].name===t){i=i.slice();i.splice(u,1);break}f.tween=i}}function rwt(n,t,i){var u,r;if("function"!=typeof i)throw new Error;return function(){var e=wr(this,n),o=e.tween;if(o!==u){r=(u=o).slice();for(var s={name:t,value:i},f=0,h=r.length;f<h;++f)if(r[f].name===t){r[f]=s;break}f===h&&r.push(s)}e.tween=r}}function kv(n,t,i){var r=n._id;return n.each(function(){var n=wr(this,r);(n.value||(n.value={}))[t]=i.apply(this,arguments)}),function(n){return ai(n,r).value[t]}}function uwt(n){return function(){this.removeAttribute(n)}}function fwt(n){return function(){this.removeAttributeNS(n.space,n.local)}}function ewt(n,t,i){var r,u;return function(){var f=this.getAttribute(n);return f===i?null:f===r?u:u=t(r=f,i)}}function owt(n,t,i){var r,u;return function(){var f=this.getAttributeNS(n.space,n.local);return f===i?null:f===r?u:u=t(r=f,i)}}function swt(n,t,i){var r,u,f;return function(){var e,o=i(this);return null==o?void this.removeAttribute(n):(e=this.getAttribute(n),e===o?null:e===r&&o===u?f:f=t(r=e,u=o))}}function hwt(n,t,i){var r,u,f;return function(){var e,o=i(this);return null==o?void this.removeAttributeNS(n.space,n.local):(e=this.getAttributeNS(n.space,n.local),e===o?null:e===r&&o===u?f:f=t(r=e,u=o))}}function cwt(n,t){function i(){var i=this,r=t.apply(i,arguments);return r&&function(t){i.setAttributeNS(n.space,n.local,r(t))}}return i._value=t,i}function lwt(n,t){function i(){var i=this,r=t.apply(i,arguments);return r&&function(t){i.setAttribute(n,r(t))}}return i._value=t,i}function awt(n,t){return function(){bv(this,n).delay=+t.apply(this,arguments)}}function vwt(n,t){return t=+t,function(){bv(this,n).delay=t}}function ywt(n,t){return function(){wr(this,n).duration=+t.apply(this,arguments)}}function pwt(n,t){return t=+t,function(){wr(this,n).duration=t}}function wwt(n,t){if("function"!=typeof t)throw new Error;return function(){wr(this,n).ease=t}}function bwt(n){return(n+"").trim().split(/^|\s+/).every(function(n){var t=n.indexOf(".");return t>=0&&(n=n.slice(0,t)),!n||"start"===n})}function kwt(n,t,i){var r,u,f=bwt(t)?bv:wr;return function(){var e=f(this,n),o=e.on;o!==r&&(u=(r=o).copy()).on(t,i);e.on=u}}function dwt(n){return function(){var t=this.parentNode;for(var i in this.__transition)if(+i!==n)return;t&&t.removeChild(this)}}function gwt(n,t){var i,r,u;return function(){var o=nf(this).getComputedStyle(this,null),f=o.getPropertyValue(n),e=(this.style.removeProperty(n),o.getPropertyValue(n));return f===e?null:f===i&&e===r?u:u=t(i=f,r=e)}}function nbt(n){return function(){this.style.removeProperty(n)}}function tbt(n,t,i){var r,u;return function(){var f=nf(this).getComputedStyle(this,null).getPropertyValue(n);return f===i?null:f===r?u:u=t(r=f,i)}}function ibt(n,t,i){var r,u,f;return function(){var s=nf(this).getComputedStyle(this,null),o=s.getPropertyValue(n),e=i(this);return null==e&&(this.style.removeProperty(n),e=s.getPropertyValue(n)),o===e?null:o===r&&e===u?f:f=t(r=o,u=e)}}function rbt(n,t,i){function r(){var r=this,u=t.apply(r,arguments);return u&&function(t){r.style.setProperty(n,u(t),i)}}return r._value=t,r}function ubt(n){return function(){this.textContent=n}}function fbt(n){return function(){var t=n(this);this.textContent=null==t?"":t}}function ri(n,t,i,r){this._groups=n;this._parents=t;this._name=i;this._id=r}function gg(n){return yr().transition(n)}function nn(){return++bhi}function ebt(n){return+n}function obt(n){return n*n}function sbt(n){return n*(2-n)}function tn(n){return((n*=2)<=1?n*n:--n*(2-n)+1)/2}function hbt(n){return n*n*n}function cbt(n){return--n*n*n+1}function dv(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}function lbt(n){return 1-Math.cos(n*eot)}function abt(n){return Math.sin(n*eot)}function rn(n){return(1-Math.cos(fot*n))/2}function vbt(n){return Math.pow(2,10*n-10)}function ybt(n){return 1-Math.pow(2,-10*n)}function un(n){return((n*=2)<=1?Math.pow(2,10*n-10):2-Math.pow(2,10-10*n))/2}function pbt(n){return 1-Math.sqrt(1-n*n)}function wbt(n){return Math.sqrt(1- --n*n)}function fn(n){return((n*=2)<=1?1-Math.sqrt(1-n*n):Math.sqrt(1-(n-=2)*n)+1)/2}function bbt(n){return 1-he(1-n)}function he(n){return(n=+n)<sb?rl*n*n:n<nci?rl*(n-=ghi)*n+tci:n<rci?rl*(n-=ici)*n+uci:rl*(n-=fci)*n+eci}function kbt(n){return((n*=2)<=1?1-he(1-n):he(n-1)+1)/2}function dbt(n,t){for(var i;!(i=n.__transition)||!(i=i[t]);)if(!(n=n.parentNode))return ab.time=yu(),ab;return i}function en(){n.event.stopImmediatePropagation()}function ce(n){return{type:n}}function gbt(){return!n.event.button}function nkt(){var n=this.ownerSVGElement||this;return[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]}function gv(n){for(;!n.__brush;)if(!(n=n.parentNode))return;return n.__brush}function ny(n){return n[0][0]===n[1][0]||n[0][1]===n[1][1]}function tkt(n){var t=n.__brush;return t?t.dim.output(t.selection):null}function ikt(){return ty(fl)}function rkt(){return ty(el)}function ty(t){function i(n){var r=n.property("__brush",a).selectAll(".overlay").data([ce("overlay")]),i;r.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",yi.overlay).merge(r).each(function(){var n=gv(this).extent;ct(this).attr("x",n[0][0]).attr("y",n[0][1]).attr("width",n[1][0]-n[0][0]).attr("height",n[1][1]-n[0][1])});n.selectAll(".selection").data([ce("selection")]).enter().append("rect").attr("class","selection").attr("cursor",yi.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");i=n.selectAll(".handle").data(t.handles,function(n){return n.type});i.exit().remove();i.enter().append("rect").attr("class",function(n){return"handle handle--"+n.type}).attr("cursor",function(n){return yi[n.type]});n.each(u).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",l)}function u(){var t=ct(this),n=gv(this).selection;n?(t.selectAll(".selection").style("display",null).attr("x",n[0][0]).attr("y",n[0][1]).attr("width",n[1][0]-n[0][0]).attr("height",n[1][1]-n[0][1]),t.selectAll(".handle").style("display",null).attr("x",function(t){return"e"===t.type[t.type.length-1]?n[1][0]-r/2:n[0][0]-r/2}).attr("y",function(t){return"s"===t.type[0]?n[1][1]-r/2:n[0][1]-r/2}).attr("width",function(t){return"n"===t.type||"s"===t.type?n[1][0]-n[0][0]+r:r}).attr("height",function(t){return"e"===t.type||"w"===t.type?n[1][1]-n[0][1]+r:r})):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function f(n,t){return n.__brush.emitter||new c(n,t)}function c(n,t){this.that=n;this.args=t;this.state=n.__brush;this.active=0}function l(){function bt(){var n=rr(nt);!pt||at||vt||(Math.abs(n[0]-ht[0])>Math.abs(n[1]-ht[1])?vt=!0:at=!0);ht=n;dt=!0;ul();it()}function it(){var n;switch(o=ht[0]-st[0],s=ht[1]-st[1],g){case vb:case cot:i&&(o=Math.max(rt-c,Math.min(ft-a,o)),y=c+o,w=a+o);r&&(s=Math.max(ut-l,Math.min(et-v,s)),p=l+s,b=v+s);break;case cf:i<0?(o=Math.max(rt-c,Math.min(ft-c,o)),y=c+o,w=a):i>0&&(o=Math.max(rt-a,Math.min(ft-a,o)),y=c,w=a+o);r<0?(s=Math.max(ut-l,Math.min(et-l,s)),p=l+s,b=v):r>0&&(s=Math.max(ut-v,Math.min(et-v,s)),p=l,b=v+s);break;case lf:i&&(y=Math.max(rt,Math.min(ft,c-o*i)),w=Math.max(rt,Math.min(ft,a+o*i)));r&&(p=Math.max(ut,Math.min(et,l-s*r)),b=Math.max(ut,Math.min(et,v+s*r)))}w<y&&(i*=-1,n=c,c=a,a=n,n=y,y=w,w=n,d in lot&&ot.attr("cursor",yi[d=lot[d]]));b<p&&(r*=-1,n=l,l=v,v=n,n=p,p=b,b=n,d in aot&&ot.attr("cursor",yi[d=aot[d]]));tt.selection&&(k=tt.selection);at&&(y=k[0][0],w=k[1][0]);vt&&(p=k[0][1],b=k[1][1]);k[0][0]===y&&k[0][1]===p&&k[1][0]===w&&k[1][1]===b||(tt.selection=[[y,p],[w,b]],u.call(nt),wt.brush())}function kt(){if(en(),n.event.touches){if(n.event.touches.length)return;e&&clearTimeout(e);e=setTimeout(function(){e=null},500);lt.on("touchmove.brush touchend.brush touchcancel.brush",null)}else as(n.event.view,dt),gt.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);lt.attr("pointer-events","all");ot.attr("cursor",yi.overlay);tt.selection&&(k=tt.selection);ny(k)&&(tt.selection=null,u.call(nt));wt.end()}function ni(){switch(n.event.keyCode){case 16:pt=i&&r;break;case 18:g===cf&&(i&&(a=w-o*i,c=y+o*i),r&&(v=b-s*r,l=p+s*r),g=lf,it());break;case 32:g!==cf&&g!==lf||(i<0?a=w-o:i>0&&(c=y-o),r<0?v=b-s:r>0&&(l=p-s),g=vb,ot.attr("cursor",yi.selection),it());break;default:return}ul()}function ti(){switch(n.event.keyCode){case 16:pt&&(at=vt=pt=!1,it());break;case 18:g===lf&&(i<0?a=w:i>0&&(c=y),r<0?v=b:r>0&&(l=p),g=cf,it());break;case 32:g===vb&&(n.event.altKey?(i&&(a=w-o*i,c=y+o*i),r&&(v=b-s*r,l=p+s*r),g=lf):(i<0?a=w:i>0&&(c=y),r<0?v=b:r>0&&(l=p),g=cf),ot.attr("cursor",yi[d]),it());break;default:return}ul()}var lt,ot,gt;if(n.event.touches){if(n.event.changedTouches.length<n.event.touches.length)return ul()}else if(e)return;if(h.apply(this,arguments)){var c,y,l,p,a,w,v,b,o,s,dt,at,vt,nt=this,d=n.event.target.__data__.type,g="selection"===(n.event.metaKey?d="overlay":d)?cot:n.event.altKey?lf:cf,i=t===el?null:wci[d],r=t===fl?null:bci[d],tt=gv(nt),yt=tt.extent,k=tt.selection,rt=yt[0][0],ut=yt[0][1],ft=yt[1][0],et=yt[1][1],pt=i&&r&&n.event.shiftKey,st=rr(nt),ht=st,wt=f(nt,arguments).beforestart();if("overlay"===d?tt.selection=k=[[c=t===el?rt:st[0],l=t===fl?ut:st[1]],[a=t===el?ft:c,v=t===fl?et:l]]:(c=k[0][0],l=k[0][1],a=k[1][0],v=k[1][1]),y=c,p=l,w=a,b=v,lt=ct(nt).attr("pointer-events","none"),ot=lt.selectAll(".overlay").attr("cursor",yi[d]),n.event.touches)lt.on("touchmove.brush",bt,!0).on("touchend.brush touchcancel.brush",kt,!0);else gt=ct(n.event.view).on("keydown.brush",ni,!0).on("keyup.brush",ti,!0).on("mousemove.brush",bt,!0).on("mouseup.brush",kt,!0),vc(n.event.view);en();fu(nt);u.call(nt);wt.start()}}function a(){var n=this.__brush||{selection:null};return n.extent=s.apply(this,arguments),n.dim=t,n}var e,s=nkt,h=gbt,o=ki(i,"start","brush","end"),r=6;return i.move=function(n,i){n.selection?n.on("start.brush",function(){f(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){f(this,arguments).end()}).tween("brush",function(){function o(t){r.selection=1===t&&ny(e)?null:c(t);u.call(n);h.brush()}var n=this,r=n.__brush,h=f(n,arguments),s=r.selection,e=t.input("function"==typeof i?i.apply(this,arguments):i,r.extent),c=ho(s,e);return s&&e?o:o(1)}):n.each(function(){var n=this,e=arguments,o=n.__brush,r=t.input("function"==typeof i?i.apply(n,e):i,o.extent),s=f(n,e).beforestart();fu(n);o.selection=null==r||ny(r)?null:r;u.call(n);s.start().brush().end()})},c.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting&&(this.starting=!1,this.emit("start")),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(n){fe(new yci(i,n,t.output(this.state.selection)),o.apply,o,[n,this.that,this.args])}},i.extent=function(n){return arguments.length?(s="function"==typeof n?n:hot([[+n[0][0],+n[0][1]],[+n[1][0],+n[1][1]]]),i):s},i.filter=function(n){return arguments.length?(h="function"==typeof n?n:hot(!!n),i):h},i.handleSize=function(n){return arguments.length?(r=+n,i):r},i.on=function(){var n=o.on.apply(o,arguments);return n===o?i:n},i}function ukt(n){return function(t,i){return n(t.source.value+t.target.value,i.source.value+i.target.value)}}function iy(){this._x0=this._y0=this._x1=this._y1=null;this._=""}function br(){return new iy}function fkt(n){return n.source}function ekt(n){return n.target}function okt(n){return n.radius}function skt(n){return n.startAngle}function hkt(n){return n.endAngle}function bs(){}function ui(n,t){var r=new bs,e,i,u,f;if(n instanceof bs)n.each(function(n,t){r.set(t,n)});else if(Array.isArray(n))if(i=-1,u=n.length,null==t)for(;++i<u;)r.set(i,n[i]);else for(;++i<u;)r.set(t(e=n[i],i,n),e);else if(n)for(f in n)r.set(f,n[f]);return r}function ckt(){return{}}function lkt(n,t,i){n[t]=i}function on(){return ui()}function sn(n,t,i){n.set(t,i)}function ks(){}function hn(n,t){var r=new ks,i,u;if(n instanceof ks)n.each(function(n){r.add(n)});else if(n)if(i=-1,u=n.length,null==t)for(;++i<u;)r.add(n[i]);else for(;++i<u;)r.add(t(n[i],i,n));return r}function cn(n){return new Function("d","return {"+n.map(function(n,t){return JSON.stringify(n)+": d["+t+"]"}).join(",")+"}")}function akt(n,t){var i=cn(n);return function(r,u){return t(i(r),u,n)}}function vkt(n){var t=Object.create(null),i=[];return n.forEach(function(n){for(var r in n)r in t||i.push(t[r]=r)}),i}function ln(n,t,i,r){if(isNaN(t)||isNaN(i))return n;var u,e,o,w,b,c,l,s,k,f=n._root,h={data:r},a=n._x0,v=n._y0,y=n._x1,p=n._y1;if(!f)return n._root=h,n;for(;f.length;)if((c=t>=(e=(a+y)/2))?a=e:y=e,(l=i>=(o=(v+p)/2))?v=o:p=o,u=f,!(f=f[s=l<<1|c]))return u[s]=h,n;if(w=+n._x.call(null,f.data),b=+n._y.call(null,f.data),t===w&&i===b)return h.next=f,u?u[s]=h:n._root=h,n;do u=u?u[s]=new Array(4):n._root=new Array(4),(c=t>=(e=(a+y)/2))?a=e:y=e,(l=i>=(o=(v+p)/2))?v=o:p=o;while((s=l<<1|c)==(k=(b>=o)<<1|w>=e));return u[k]=f,u[s]=h,n}function ykt(n){for(var h,i,r,s=n.length,c=new Array(s),l=new Array(s),u=1/0,f=1/0,e=-(1/0),o=-(1/0),t=0;t<s;++t)isNaN(i=+this._x.call(null,h=n[t]))||isNaN(r=+this._y.call(null,h))||(c[t]=i,l[t]=r,i<u&&(u=i),i>e&&(e=i),r<f&&(f=r),r>o&&(o=r));for(e<u&&(u=this._x0,e=this._x1),o<f&&(f=this._y0,o=this._y1),this.cover(u,f).cover(e,o),t=0;t<s;++t)ln(this,c[t],l[t],n[t]);return this}function pkt(n){for(var t=0,i=n.length;t<i;++t)this.remove(n[t]);return this}function wkt(n){return n[0]}function bkt(n){return n[1]}function ds(n,t,i){var r=new ry(null==t?wkt:t,null==i?bkt:i,NaN,NaN,NaN,NaN);return null==n?r:r.addAll(n)}function ry(n,t,i,r,u,f){this._x=n;this._y=t;this._x0=i;this._y0=r;this._x1=u;this._y1=f;this._root=void 0}function an(n){for(var t={data:n.data},i=t;n=n.next;)i=i.next={data:n.data};return t}function kkt(n){return n.x+n.vx}function dkt(n){return n.y+n.vy}function gkt(n){return n.index}function vn(n,t){var i=n.get(t);if(!i)throw new Error("missing: "+t);return i}function ndt(n){return n.x}function tdt(n){return n.y}function yn(n){if(!(t=vai.exec(n)))throw new Error("invalid format: "+n);var t,r=t[1]||" ",u=t[2]||">",o=t[3]||"-",s=t[4]||"",f=!!t[5],h=t[6]&&+t[6],e=!!t[7],c=t[8]&&+t[8].slice(1),i=t[9]||"";"n"===i?(e=!0,i="g"):rst[i]||(i="");(f||"0"===r&&"="===u)&&(f=!0,r="0",u="=");this.fill=r;this.align=u;this.sign=o;this.symbol=s;this.zero=f;this.width=h;this.comma=e;this.precision=c;this.type=i}function idt(n){return n}function pn(t){return al=db(t),n.format=al.format,n.formatPrefix=al.formatPrefix,al}function gs(){this.reset()}function wn(n,t,i){var r=n.s=t+i,u=r-t,f=r-u;n.t=t-f+(i-u)}function uy(n){return n>1?0:n<-1?e:Math.acos(n)}function yt(n){return n>1?y:n<-1?-y:Math.asin(n)}function bn(n){return(n=t(n/2))*n}function l(){}function nh(n,t){n&&wst.hasOwnProperty(n.type)&&wst[n.type](n,t)}function fy(n,t,i){var r,u=-1,f=n.length-i;for(t.lineStart();++u<f;)r=n[u],t.point(r[0],r[1],r[2]);t.lineEnd()}function kn(n,t){var i=-1,r=n.length;for(t.polygonStart();++i<r;)fy(n[i],t,1);t.polygonEnd()}function rdt(){si.point=fdt}function udt(){dn(ost,sst)}function fdt(n,r){si.point=dn;ost=n;sst=r;n*=u;r*=u;gb=n;nk=i(r=r/2+na);tk=t(r)}function dn(n,r){n*=u;r*=u;r=r/2+na;var f=n-gb,e=f>=0?1:-1,o=e*f,s=i(r),h=t(r),c=tk*h,l=nk*s+c*i(o),a=c*e*t(o);ra.add(tt(a,l));gb=n;nk=s;tk=h}function th(n){return[tt(n[1],n[0]),yt(n[2])]}function kr(n){var r=n[0],u=n[1],f=i(u);return[f*i(r),f*t(r),t(u)]}function ih(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]}function pu(n,t){return[n[1]*t[2]-n[2]*t[1],n[2]*t[0]-n[0]*t[2],n[0]*t[1]-n[1]*t[0]]}function ey(n,t){n[0]+=t[0];n[1]+=t[1];n[2]+=t[2]}function rh(n,t){return[n[0]*t,n[1]*t,n[2]*t]}function uh(n){var t=b(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=t;n[1]/=t;n[2]/=t}function fh(n,t){su.push(or=[a=n,v=n]);t<ni&&(ni=t);t>ei&&(ei=t)}function gn(n,t){var l=kr([n*u,t*u]);if(yf){var s=pu(yf,l),p=[s[1],-s[0],0],i=pu(p,s);uh(i);i=th(i);var r,y=n-ou,e=y>0?1:-1,f=i[0]*c*e,h=o(y)>180;h^(e*ou<f&&f<e*n)?(r=i[1]*c,r>ei&&(ei=r)):(f=(f+360)%360-180,h^(e*ou<f&&f<e*n)?(r=-i[1]*c,r<ni&&(ni=r)):(t<ni&&(ni=t),t>ei&&(ei=t)));h?n<ou?ht(a,n)>ht(a,v)&&(v=n):ht(n,v)>ht(a,v)&&(a=n):v>=a?(n<a&&(a=n),n>v&&(v=n)):n>ou?ht(a,n)>ht(a,v)&&(v=n):ht(n,v)>ht(a,v)&&(a=n)}else fh(n,t);yf=l;ou=n}function ntt(){pi.point=gn}function ttt(){or[0]=a;or[1]=v;pi.point=fh;yf=null}function itt(n,t){if(yf){var i=n-ou;po.add(o(i)>180?i+(i>0?360:-360):i)}else hst=n,cst=t;si.point(n,t);gn(n,t)}function edt(){si.lineStart()}function odt(){itt(hst,cst);si.lineEnd();o(po)>r&&(a=-(v=180));or[0]=a;or[1]=v;yf=null}function ht(n,t){return(t-=n)<0?t+360:t}function sdt(n,t){return n[0]-t[0]}function rtt(n,t){return n[0]<=n[1]?n[0]<=t&&t<=n[1]:t<n[0]||n[1]<t}function oy(n,r){n*=u;r*=u;var f=i(r);le(f*i(n),f*t(n),t(r))}function le(n,t,i){++vo;yl+=(n-yl)/vo;pl+=(t-pl)/vo;wl+=(i-wl)/vo}function utt(){ti.point=hdt}function hdt(n,r){n*=u;r*=u;var f=i(r);d=f*i(n);g=f*t(n);nt=t(r);ti.point=cdt;le(d,g,nt)}function cdt(n,r){n*=u;r*=u;var h=i(r),e=h*i(n),o=h*t(n),s=t(r),f=tt(b((f=g*s-nt*o)*f+(f=nt*e-d*s)*f+(f=d*o-g*e)*f),d*e+g*o+nt*s);vl+=f;bl+=f*(d+(d=e));kl+=f*(g+(g=o));dl+=f*(nt+(nt=s));le(d,g,nt)}function ftt(){ti.point=oy}function ldt(){ti.point=vdt}function adt(){ett(lst,ast);ti.point=oy}function vdt(n,r){lst=n;ast=r;n*=u;r*=u;ti.point=ett;var f=i(r);d=f*i(n);g=f*t(n);nt=t(r);le(d,g,nt)}function ett(n,r){n*=u;r*=u;var y=i(r),f=y*i(n),e=y*t(n),o=t(r),h=g*o-nt*e,c=nt*f-d*o,l=d*e-g*f,a=b(h*h+c*c+l*l),p=d*f+g*e+nt*o,v=a&&-uy(p)/a,s=tt(a,p);ik+=v*h;rk+=v*c;uk+=v*l;vl+=s;bl+=s*(d+(d=f));kl+=s*(g+(g=e));dl+=s*(nt+(nt=o));le(d,g,nt)}function sy(n,t){return[n>e?n-st:n<-e?n+st:n,t]}function hy(n,t,i){return(n%=st)?t||i?bst(stt(n),htt(t,i)):stt(n):t||i?htt(t,i):sy}function ott(n){return function(t,i){return t+=n,[t>e?t-st:t<-e?t+st:t,i]}}function stt(n){var t=ott(n);return t.invert=ott(-n),t}function htt(n,r){function s(n,r){var s=i(r),h=i(n)*s,c=t(n)*s,l=t(r),a=l*u+h*f;return[tt(c*e-a*o,h*u-l*f),yt(a*e+c*o)]}var u=i(n),f=t(n),e=i(r),o=t(r);return s.invert=function(n,r){var s=i(r),h=i(n)*s,c=t(n)*s,l=t(r),a=l*e-c*o;return[tt(c*e+l*o,h*u+a*f),yt(a*u-h*f)]},s}function ctt(n,r,u,f,e,o){var c,s;if(u){var h=i(r),l=t(r),a=f*u;for(null==e?(e=r+f*st,o=r-a/2):(e=ltt(h,e),o=ltt(h,o),(f>0?e<o:e>o)&&(e+=f*st)),s=e;f>0?s>o:s<o;s-=a)c=th([h,-l*i(s),-l*t(s)]),n.point(c[0],c[1])}}function ltt(n,t){t=kr(t);t[0]-=n;uh(t);var i=uy(-t[1]);return((-t[2]<0?-i:i)+st-r)%st}function eh(n,t,i,r){this.x=n;this.z=t;this.o=i;this.e=r;this.v=!1;this.n=this.p=null}function att(n){if(r=n.length){for(var r,t,u=0,i=n[0];++u<r;)i.n=t=n[u],t.p=i,i=t;i.n=t=n[0];t.p=i}}function cy(n,t,i,u){function e(r,f){return n<=r&&r<=i&&t<=f&&f<=u}function s(r,e,o,s){var c=0,l=0;if(null==r||(c=f(r,o))!==(l=f(e,o))||h(r,e)<0^o>0){do s.point(0===c||3===c?n:i,c>1?u:t);while((c=(c+o+4)%4)!==l)}else s.point(e[0],e[1])}function f(u,f){return o(u[0]-n)<r?f>0?0:3:o(u[0]-i)<r?f>0?2:1:o(u[1]-t)<r?f>0?1:0:f>0?3:2}function c(n,t){return h(n.x,t.x)}function h(n,t){var i=f(n,1),r=f(t,1);return i!==r?i-r:0===i?t[1]-n[1]:1===i?n[0]-t[0]:2===i?n[1]-t[1]:t[0]-n[0]}return function(r){function d(n,t){e(n,t)&&f.point(n,t)}function rt(){for(var o=0,s=0,a=h.length;s<a;++s)for(var r,t,c=h[s],l=1,v=c.length,f=c[0],e=f[0],i=f[1];l<v;++l)r=e,t=i,f=c[l],e=f[0],i=f[1],t<=u?i>u&&(e-r)*(u-t)>(i-t)*(n-r)&&++o:i<=u&&(e-r)*(u-t)<(i-t)*(n-r)&&--o;return o}function ut(){f=b;o=[];h=[];y=!0}function ft(){var n=rt(),t=y&&n,i=(o=tw(o)).length;(t||i)&&(r.polygonStart(),t&&(r.lineStart(),s(null,null,1,r),r.lineEnd()),i&&iht(o,c,n,s,r),r.polygonEnd());f=r;o=h=p=null}function et(){k.point=g;h&&h.push(p=[]);w=!0;l=!1;a=v=NaN}function ot(){o&&(g(nt,tt),it&&l&&b.rejoin(),o.push(b.result()));k.point=d;l&&f.lineEnd()}function g(r,o){var s=e(r,o),c,b;(h&&p.push([r,o]),w)?(nt=r,tt=o,it=s,w=!1,s&&(f.lineStart(),f.point(r,o))):s&&l?f.point(r,o):(c=[a=Math.max(sa,Math.min(wo,a)),v=Math.max(sa,Math.min(wo,v))],b=[r=Math.max(sa,Math.min(wo,r)),o=Math.max(sa,Math.min(wo,o))],dai(c,b,n,t,i,u)?(l||(f.lineStart(),f.point(c[0],c[1])),f.point(b[0],b[1]),s||f.lineEnd(),y=!1):s&&(f.lineStart(),f.point(r,o),y=!1));a=r;v=o;l=s}var o,h,p,nt,tt,it,a,v,l,w,y,f=r,b=tht(),k={point:d,lineStart:et,lineEnd:ot,polygonStart:ut,polygonEnd:ft};return k}}function ydt(){bf.point=wdt;bf.lineEnd=pdt}function pdt(){bf.point=bf.lineEnd=l}function wdt(n,r){n*=u;r*=u;ok=n;fa=t(r);ea=i(r);bf.point=bdt}function bdt(n,r){n*=u;r*=u;var e=t(r),f=i(r),s=o(n-ok),h=i(s),a=t(s),c=f*a,l=ea*e-fa*f*h,v=fa*e+ea*f*h;ck.add(tt(b(c*c+l*l),v));ok=n;fa=e;ea=f}function vtt(n,t,i){var u=gt(n,t-r,i).concat(t);return function(n){return u.map(function(t){return[n,t]})}}function ytt(n,t,i){var u=gt(n,t-r,i).concat(t);return function(n){return u.map(function(t){return[t,n]})}}function ptt(){function n(){return{type:"MultiLineString",coordinates:k()}}function k(){return gt(ta(i/a)*a,t,a).map(w).concat(gt(ta(f/v)*v,u,v).map(b)).concat(gt(ta(s/l)*l,e,l).filter(function(n){return o(n%a)>r}).map(d)).concat(gt(ta(c/p)*p,h,p).filter(function(n){return o(n%v)>r}).map(g))}var e,s,t,i,h,c,u,f,d,g,w,b,l=10,p=l,a=90,v=360,y=2.5;return n.lines=function(){return k().map(function(n){return{type:"LineString",coordinates:n}})},n.outline=function(){return{type:"Polygon",coordinates:[w(i).concat(b(u).slice(1),w(t).reverse().slice(1),b(f).reverse().slice(1))]}},n.extent=function(t){return arguments.length?n.extentMajor(t).extentMinor(t):n.extentMinor()},n.extentMajor=function(r){return arguments.length?(i=+r[0][0],t=+r[1][0],f=+r[0][1],u=+r[1][1],i>t&&(r=i,i=t,t=r),f>u&&(r=f,f=u,u=r),n.precision(y)):[[i,f],[t,u]]},n.extentMinor=function(t){return arguments.length?(s=+t[0][0],e=+t[1][0],c=+t[0][1],h=+t[1][1],s>e&&(t=s,s=e,e=t),c>h&&(t=c,c=h,h=t),n.precision(y)):[[s,c],[e,h]]},n.step=function(t){return arguments.length?n.stepMajor(t).stepMinor(t):n.stepMinor()},n.stepMajor=function(t){return arguments.length?(a=+t[0],v=+t[1],n):[a,v]},n.stepMinor=function(t){return arguments.length?(l=+t[0],p=+t[1],n):[l,p]},n.precision=function(r){return arguments.length?(y=+r,d=vtt(c,h,90),g=ytt(s,e,y),w=vtt(f,u,90),b=ytt(i,t,y),n):y},n.extentMajor([[-180,-90+r],[180,90-r]]).extentMinor([[-180,-80-r],[180,80+r]])}function kdt(){return ptt()()}function ddt(){wi.point=gdt}function gdt(n,t){wi.point=wtt;kst=sk=n;dst=hk=t}function wtt(n,t){vk.add(hk*n-sk*t);sk=n;hk=t}function ngt(){wtt(kst,dst)}function tgt(n,t){n<kf&&(kf=n);n>bo&&(bo=n);t<ha&&(ha=t);t>ca&&(ca=t)}function dr(n,t){yk+=n;pk+=t;++ko}function btt(){pt.point=igt}function igt(n,t){pt.point=rgt;dr(hi=n,ci=t)}function rgt(n,t){var r=n-hi,u=t-ci,i=b(r*r+u*u);aa+=i*(hi+n)/2;va+=i*(ci+t)/2;df+=i;dr(hi=n,ci=t)}function ktt(){pt.point=dr}function ugt(){pt.point=egt}function fgt(){dtt(gst,nht)}function egt(n,t){pt.point=dtt;dr(gst=hi=n,nht=ci=t)}function dtt(n,t){var r=n-hi,u=t-ci,i=b(r*r+u*u);aa+=i*(hi+n)/2;va+=i*(ci+t)/2;df+=i;i=ci*n-hi*t;wk+=i*(hi+n);bk+=i*(ci+t);go+=3*i;dr(hi=n,ci=t)}function gtt(n){this._context=n}function nit(){this._string=[]}function tit(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}function ogt(n){return n.length>1}function sgt(n,t){return((n=n.x)[0]<0?n[1]-y-r:y-n[1])-((t=t.x)[0]<0?t[1]-y-r:y-t[1])}function hgt(n){var f,i=NaN,t=NaN,u=NaN;return{lineStart:function(){n.lineStart();f=1},point:function(s,h){var c=s>0?e:-e,l=o(s-i);o(l-e)<r?(n.point(i,t=(t+h)/2>0?y:-y),n.point(u,t),n.lineEnd(),n.lineStart(),n.point(c,t),n.point(s,t),f=0):u!==c&&l>=e&&(o(i-u)<r&&(i-=u*r),o(s-c)<r&&(s-=c*r),t=cgt(i,t,s,h),n.point(u,t),n.lineEnd(),n.lineStart(),n.point(c,t),f=0);n.point(i=s,t=h);u=c},lineEnd:function(){n.lineEnd();i=t=NaN},clean:function(){return 2-f}}}function cgt(n,u,f,e){var s,h,c=t(n-f);return o(c)>r?pf((t(u)*(h=i(e))*t(f)-t(e)*(s=i(u))*t(n))/(s*h*c)):(u+e)/2}function lgt(n,t,i,u){var f,s;null==n?(f=i*y,u.point(-e,f),u.point(0,f),u.point(e,f),u.point(e,0),u.point(e,-f),u.point(0,-f),u.point(-e,-f),u.point(-e,0),u.point(-e,f)):o(n[0]-t[0])>r?(s=n[0]<t[0]?e:-e,f=i*s/2,u.point(-s,f),u.point(0,f),u.point(s,f)):u.point(t[0],t[1])}function oh(n){return function(t){var i=new ly;for(var r in n)i[r]=n[r];return i.stream=t,i}}function ly(){}function sh(n,t,i){var e=t[1][0]-t[0][0],o=t[1][1]-t[0][1],u=n.clipExtent&&n.clipExtent();n.scale(150).translate([0,0]);null!=u&&n.clipExtent(null);oi(i,n.stream(la));var r=la.result(),f=Math.min(e/(r[1][0]-r[0][0]),o/(r[1][1]-r[0][1])),s=+t[0][0]+(e-f*(r[1][0]+r[0][0]))/2,h=+t[0][1]+(o-f*(r[1][1]+r[0][1]))/2;return null!=u&&n.clipExtent(u),n.scale(150*f).translate([s,h])}function ay(n,t,i){return sh(n,[[0,0],t],i)}function agt(n){return oh({point:function(t,i){t=n(t,i);this.stream.point(t[0],t[1])}})}function vgt(n,t){function i(u,f,e,s,h,c,l,a,v,y,p,w,k,d){var rt=l-u,ut=a-f,ot=rt*rt+ut*ut;if(ot>4*t&&k--){var nt=s+y,it=h+p,g=c+w,st=b(nt*nt+it*it+g*g),pt=yt(g/=st),ht=o(o(g)-1)<r||o(e-v)<r?(e+v)/2:tt(it,nt),ct=n(ht,pt),ft=ct[0],et=ct[1],lt=ft-u,at=et-f,vt=ut*lt-rt*at;(vt*vt/ot>t||o((rt*lt+ut*at)/ot-.5)>.3||s*y+h*p+c*w<ovi)&&(i(u,f,e,s,h,c,ft,et,ht,nt/=st,it/=st,g,k,d),d.point(ft,et),i(ft,et,ht,nt,it,g,l,a,v,y,p,w,k,d))}}return function(t){function v(i,r){i=n(i,r);t.point(i[0],i[1])}function h(){u=NaN;r.point=c;t.lineStart()}function c(r,h){var c=kr([r,h]),l=n(r,h);i(u,f,a,e,o,s,u=l[0],f=l[1],a=r,e=c[0],o=c[1],s=c[2],eht,t);t.point(u,f)}function l(){r.point=v;t.lineEnd()}function g(){h();r.point=nt;r.lineEnd=tt}function nt(n,t){c(y=n,t);p=u;w=f;b=e;k=o;d=s;r.point=c}function tt(){i(u,f,a,e,o,s,p,w,y,b,k,d,eht,t);r.lineEnd=l;l()}var y,p,w,b,k,d,a,u,f,e,o,s,r={point:v,lineStart:h,lineEnd:l,polygonStart:function(){t.polygonStart();r.lineStart=g},polygonEnd:function(){t.polygonEnd();r.lineStart=h}};return r}}function tr(n){return vy(function(){return n})()}function vy(n){function t(n){return n=a(n[0]*u,n[1]*u),[n[0]*i+o,s-n[1]*i]}function lt(n){return n=a.invert((n[0]-o)/i,(s-n[1])/i),n&&[n[0]*c,n[1]*c]}function et(n,t){return n=f(n,t),[n[0]*i+o,s-n[1]*i]}function r(){a=bst(ot=hy(tt,it,rt),f);var n=f(g,nt);return o=k-n[0]*i,s=d+n[1]*i,e()}function e(){return h=w=null,t}var f,o,s,ot,a,v,y,p,h,w,i=150,k=480,d=250,g=0,nt=0,tt=0,it=0,rt=0,ut=null,st=fht,l=null,ht=hu,ft=.5,ct=oht(et,ft);return t.stream=function(n){return h&&w===n?h:h=svi(st(ot,ct(ht(w=n))))},t.clipAngle=function(n){return arguments.length?(st=+n?fvi(ut=n*u,6*u):(ut=null,fht),e()):ut*c},t.clipExtent=function(n){return arguments.length?(ht=null==n?(l=v=y=p=null,hu):cy(l=+n[0][0],v=+n[0][1],y=+n[1][0],p=+n[1][1]),e()):null==l?null:[[l,v],[y,p]]},t.scale=function(n){return arguments.length?(i=+n,r()):i},t.translate=function(n){return arguments.length?(k=+n[0],d=+n[1],r()):[k,d]},t.center=function(n){return arguments.length?(g=n[0]%360*u,nt=n[1]%360*u,r()):[g*c,nt*c]},t.rotate=function(n){return arguments.length?(tt=n[0]%360*u,it=n[1]%360*u,rt=n.length>2?n[2]%360*u:0,r()):[tt*c,it*c,rt*c]},t.precision=function(n){return arguments.length?(ct=oht(et,ft=n*n),e()):b(ft)},t.fitExtent=function(n,i){return sh(t,n,i)},t.fitSize=function(n,i){return ay(t,n,i)},function(){return f=n.apply(this,arguments),t.invert=f.invert&&lt,r()}}function yy(n){var t=0,i=e/3,r=vy(n),f=r(t,i);return f.parallels=function(n){return arguments.length?r(t=n[0]*u,i=n[1]*u):[t*c,i*c]},f}function ygt(n){function u(n,i){return[n*r,t(i)/r]}var r=i(n);return u.invert=function(n,t){return[n/r,yt(t*r)]},u}function iit(n,u){function c(n,r){var u=b(e-2*f*t(r))/f;return[u*t(n*=f),h-u*i(n)]}var s=t(n),f=(s+t(u))/2,e,h;return o(f)<r?ygt(n):(e=1+s*(2*f-s),h=b(e)/f,c.invert=function(n,t){var i=h-t;return[tt(n,o(i))/f*yo(i),yt((e-(n*n+i*i)*f*f)/(2*f))]},c)}function pgt(n){var t=n.length;return{point:function(i,r){for(var u=-1;++u<t;)n[u].point(i,r)},sphere:function(){for(var i=-1;++i<t;)n[i].sphere()},lineStart:function(){for(var i=-1;++i<t;)n[i].lineStart()},lineEnd:function(){for(var i=-1;++i<t;)n[i].lineEnd()},polygonStart:function(){for(var i=-1;++i<t;)n[i].polygonStart()},polygonEnd:function(){for(var i=-1;++i<t;)n[i].polygonEnd()}}}function rit(n){return function(r,u){var o=i(r),f=i(u),e=n(o*f);return[e*f*t(r),e*t(u)]}}function ae(n){return function(r,u){var f=b(r*r+u*u),e=n(f),o=t(e),s=i(e);return[tt(r*o,f*s),yt(f&&u*o/f)]}}function hh(n,t){return[n,ia(ek((y+t)/2))]}function uit(n){var i,t=tr(n),r=t.scale,u=t.translate,f=t.clipExtent;return t.scale=function(n){return arguments.length?(r(n),i&&t.clipExtent(null),t):r()},t.translate=function(n){return arguments.length?(u(n),i&&t.clipExtent(null),t):u()},t.clipExtent=function(n){if(!arguments.length)return i?null:f();if(i=null==n){var o=e*r(),s=u();n=[[s[0]-o,s[1]-o],[s[0]+o,s[1]+o]]}return f(n),t},t.clipExtent(null)}function ch(n){return ek((y+n)/2)}function fit(n,u){function s(n,u){e>0?u<-y+r&&(u=-y+r):u>y-r&&(u=y-r);var o=e/fk(ch(u),f);return[o*t(f*n),e-o*i(f*n)]}var h=i(n),f=n===u?t(n):ia(h/i(u))/ia(ch(u)/ch(n)),e=h*fk(ch(n),f)/f;return f?(s.invert=function(n,t){var i=e-t,r=yo(f)*b(n*n+i*i);return[tt(n,o(i))/f*yo(i),2*pf(fk(e/r,1/f))-y]},s):hh}function ve(n,t){return[n,t]}function eit(n,u){function s(n,r){var u=e-r,o=f*n;return[u*t(o),e-u*i(o)]}var h=i(n),f=n===u?t(n):(h-i(u))/(u-n),e=h/f+n;return o(f)<r?ve:(s.invert=function(n,t){var i=e-t;return[tt(n,o(i))/f*yo(i),e-yo(f)*b(n*n+i*i)]},s)}function py(n,r){var u=i(r),f=i(n)*u;return[u*t(n)/f,t(r)/f]}function lh(n,t,i,r){return 1===n&&1===t&&0===i&&0===r?hu:oh({point:function(u,f){this.stream.point(u*n+i,f*t+r)}})}function wy(n,r){return[i(r)*t(n),t(r)]}function by(n,r){var u=i(r),f=1+i(n)*u;return[u*t(n)/f,t(r)/f]}function ky(n,t){return[ia(ek((y+t)/2)),-n]}function wgt(n,t){return n.parent===t.parent?1:2}function bgt(n){return n.reduce(kgt,0)/n.length}function kgt(n,t){return n+t.x}function dgt(n){return 1+n.reduce(ggt,0)}function ggt(n,t){return Math.max(n,t.y)}function nnt(n){for(var t;t=n.children;)n=t[0];return n}function tnt(n){for(var t;t=n.children;)n=t[t.length-1];return n}function int(n){var t=0,i=n.children,r=i&&i.length;if(r)for(;--r>=0;)t+=i[r].value;else t=1;n.value=t}function rnt(n,t){if(n===t)return n;var i=n.ancestors(),r=t.ancestors(),u=null;for(n=i.pop(),t=r.pop();n===t;)u=n,n=i.pop(),t=r.pop();return u}function dy(n,t){var i,u,f,r,e,o=new wu(n),h=+n.value&&(o.value=n.value),s=[o];for(null==t&&(t=fnt);i=s.pop();)if(h&&(i.value=+i.data.value),(f=t(i.data))&&(e=f.length))for(i.children=new Array(e),r=e-1;r>=0;--r)s.push(u=i.children[r]=new wu(f[r])),u.parent=i,u.depth=i.depth+1;return o.eachBefore(oit)}function unt(){return dy(this).eachBefore(ent)}function fnt(n){return n.children}function ent(n){n.data=n.data.data}function oit(n){var t=0;do n.height=t;while((n=n.parent)&&n.height<++t)}function wu(n){this.data=n;this.depth=this.height=0;this.parent=null}function ont(n){this._=n;this.next=null}function snt(n,t){var i=t.x-n.x,r=t.y-n.y,u=n.r-t.r;return u*u+1e-6>i*i+r*r}function sit(n,t){var r,f,e,u=null,i=n.head;switch(t.length){case 1:r=hnt(t[0]);break;case 2:r=cnt(t[0],t[1]);break;case 3:r=lnt(t[0],t[1],t[2])}for(;i;)e=i._,f=i.next,r&&snt(r,e)?u=i:(u?(n.tail=u,u.next=null):n.head=n.tail=null,t.push(e),r=sit(n,t),t.pop(),n.head?(i.next=n.head,n.head=i):(i.next=null,n.head=n.tail=i),u=n.tail,u.next=f),i=f;return n.tail=u,r}function hnt(n){return{x:n.x,y:n.y,r:n.r}}function cnt(n,t){var f=n.x,e=n.y,o=n.r,s=t.x,h=t.y,c=t.r,i=s-f,r=h-e,l=c-o,u=Math.sqrt(i*i+r*r);return{x:(f+s+i/u*l)/2,y:(e+h+r/u*l)/2,r:(u+o+c)/2}}function lnt(n,t,i){var u=n.x,f=n.y,r=n.r,l=t.x,a=t.y,v=t.r,y=i.x,p=i.y,w=i.r,b=2*(u-l),k=2*(f-a),it=2*(v-r),rt=u*u+f*f-r*r-l*l-a*a+v*v,d=2*(u-y),g=2*(f-p),ut=2*(w-r),ft=u*u+f*f-r*r-y*y-p*p+w*w,e=d*k-b*g,o=(k*ft-g*rt)/e-u,s=(g*it-k*ut)/e,h=(d*rt-b*ft)/e-f,c=(b*ut-d*it)/e,et=s*s+c*c-1,nt=2*(o*s+h*c+r),ot=o*o+h*h-r*r,tt=(-nt-Math.sqrt(nt*nt-4*et*ot))/(2*et);return{x:o+s*tt+u,y:h+c*tt+f,r:tt}}function hit(n,t,i){var s=n.x,h=n.y,u=t.r+i.r,r=n.r+i.r,e=t.x-s,o=t.y-h,f=e*e+o*o,c,l;f?(c=.5+((r*=r)-(u*=u))/(2*f),l=Math.sqrt(Math.max(0,2*u*(r+f)-(r-=f)*r-u*u))/(2*f),i.x=s+c*e+l*o,i.y=h+c*o-l*e):(i.x=s+r,i.y=h)}function cit(n,t){var i=t.x-n.x,r=t.y-n.y,u=n.r+t.r;return u*u-1e-6>i*i+r*r}function lit(n,t){for(var i=n._.r;n!==t;)i+=2*(n=n.next)._.r;return i-t._.r}function ait(n,t,i){var r=n.x-t,u=n.y-i;return r*r+u*u}function ah(n){this._=n;this.next=null;this.previous=null}function vit(n){var t,i,r,h;if(!(h=n.length))return 0;if(t=n[0],t.x=0,t.y=0,!(h>1))return t.r;if(i=n[1],t.x=-i.r,i.x=t.r,i.y=0,!(h>2))return t.r+i.r;hit(i,t,r=n[2]);var y,p,u,f,e,c,l,s=t.r*t.r,a=i.r*i.r,o=r.r*r.r,v=s+a+o,w=s*t.x+a*i.x+o*r.x,b=s*t.y+a*i.y+o*r.y;t=new ah(t);i=new ah(i);r=new ah(r);t.next=r.previous=i;i.next=t.previous=r;r.next=i.previous=t;n:for(u=3;u<h;++u){hit(t._,i._,r=n[u]);r=new ah(r);f=i.next;e=t.previous;c=i._.r;l=t._.r;do if(c<=l){if(cit(f._,r._)){c+t._.r+i._.r>lit(f,i)?t=f:i=f;t.next=i;i.previous=t;--u;continue n}c+=f._.r;f=f.next}else{if(cit(e._,r._)){lit(t,e)>l+t._.r+i._.r?t=e:i=e;t.next=i;i.previous=t;--u;continue n}l+=e._.r;e=e.previous}while(f!==e.next);for(r.previous=t,r.next=i,t.next=i.previous=i=r,v+=o=r._.r*r._.r,w+=o*r._.x,b+=o*r._.y,s=ait(t._,y=w/v,p=b/v);(r=r.next)!==i;)(o=ait(r._,y,p))<s&&(t=r,s=o);i=t.next}for(t=[i._],r=i;(r=r.next)!==i;)t.push(r._);for(r=dht(t),u=0;u<h;++u)t=n[u],t.x-=r.x,t.y-=r.y;return r.r}function ant(n){return null==n?null:vh(n)}function vh(n){if("function"!=typeof n)throw new Error;return n}function gr(){return 0}function vnt(n){return Math.sqrt(n.value)}function yit(n){return function(t){t.children||(t.r=Math.max(0,+n(t)||0))}}function gy(n,t){return function(i){if(u=i.children){var u,r,e,o=u.length,f=n(i)*t||0;if(f)for(r=0;r<o;++r)u[r].r+=f;if(e=vit(u),f)for(r=0;r<o;++r)u[r].r-=f;i.r=e+f}}}function pit(n){return function(t){var i=t.parent;t.r*=n;i&&(t.x=i.x+n*t.x,t.y=i.y+n*t.y)}}function ynt(n){return n.id}function pnt(n){return n.parentId}function wnt(n,t){return n.parent===t.parent?1:2}function np(n){var t=n.children;return t?t[0]:n.t}function tp(n){var t=n.children;return t?t[t.length-1]:n.t}function bnt(n,t,i){var r=i/(t.i-n.i);t.c-=r;t.s+=i;n.c+=r;t.z+=i;t.m+=i}function knt(n){for(var t,i=0,f=0,r=n.children,u=r.length;--u>=0;)t=r[u],t.z+=i,t.m+=i,i+=t.s+(f+=t.c)}function dnt(n,t,i){return n.a.parent===t.parent?n.a:i}function yh(n,t){this._=n;this.parent=null;this.children=null;this.A=null;this.a=this;this.z=0;this.m=0;this.c=0;this.s=0;this.t=null;this.i=t}function gnt(n){for(var i,f,u,t,e,r=new yh(n,0),o=[r];i=o.pop();)if(u=i._.children)for(i.children=new Array(e=u.length),t=e-1;t>=0;--t)o.push(f=i.children[t]=new yh(u[t],t)),f.parent=i;return(r.parent=new yh(null,0)).children=[r],r}function wit(n,t,i,r,u,f){for(var p,s,l,a,e,v,y,b,k,d,h,tt=[],w=t.children,g=0,o=0,nt=w.length,c=t.value;g<nt;){l=u-i;a=f-r;do e=w[o++].value;while(!e&&o<nt);for(v=y=e,d=Math.max(a/l,l/a)/(c*n),h=e*e*d,k=Math.max(y/h,h/v);o<nt;++o){if(e+=s=w[o].value,s<v&&(v=s),s>y&&(y=s),h=e*e*d,b=Math.max(y/h,h/v),b>k){e-=s;break}k=b}tt.push(p={value:e,dice:l<a,children:w.slice(g,o)});p.dice?ns(p,i,r,u,c?r+=a*e/c:f):wa(p,i,r,c?i+=l*e/c:u,f);c-=e;g=o}return tt}function nti(n,t){return n[0]-t[0]||n[1]-t[1]}function bit(n){for(var u=n.length,i=[0,1],t=2,r=2;r<u;++r){for(;t>1&&pyi(n[i[t-2]],n[i[t-1]],n[r])<=0;)--t;i[t++]=r}return i.slice(0,t)}function ip(n){if(!(n>=1))throw new Error;this._size=n;this._call=this._error=null;this._tasks=[];this._data=[];this._waiting=this._active=this._ended=this._start=0}function kit(n){if(!n._start)try{tti(n)}catch(t){if(n._tasks[n._ended+n._active-1])rp(n,t);else if(!n._data)throw t;}}function tti(n){for(;n._start=n._waiting&&n._active<n._size;){var i=n._ended+n._active,t=n._tasks[i],r=t.length-1,u=t[r];t[r]=iti(n,i);--n._waiting;++n._active;t=u.apply(null,t);n._tasks[i]&&(n._tasks[i]=t||gyi)}}function iti(n,t){return function(i,r){n._tasks[t]&&(--n._active,++n._ended,n._tasks[t]=null,null==n._error&&(null!=i?rp(n,i):(n._data[t]=r,n._waiting?kit(n):ph(n))))}}function rp(n,t){var i,r=n._tasks.length;for(n._error=t,n._data=void 0,n._waiting=NaN;--r>=0;)if((i=n._tasks[r])&&(n._tasks[r]=null,i.abort))try{i.abort()}catch(n){}n._active=NaN;ph(n)}function ph(n){if(!n._active&&n._call){var t=n._data;n._data=void 0;n._call(n._error,t)}}function dit(n){return new ip(arguments.length?+n:1/0)}function rti(n){return function(t,i){n(null==t?i:null)}}function uti(n){var t=n.responseType;return t&&"text"!==t?n.response:n.responseText}function fti(n,t){return function(i){return n(i.responseText,t)}}function up(n){function t(t){var e=t+"",f=i.get(e);if(!f){if(u!==td)return u;i.set(e,f=r.push(t))}return n[(f-1)%n.length]}var i=ui(),r=[],u=td;return n=null==n?[]:sr.call(n),t.domain=function(n){if(!arguments.length)return r.slice();r=[];i=ui();for(var u,f,e=-1,o=n.length;++e<o;)i.has(f=(u=n[e])+"")||i.set(f,r.push(u));return t},t.range=function(i){return arguments.length?(n=sr.call(i),t):n.slice()},t.unknown=function(n){return arguments.length?(u=n,t):u},t.copy=function(){return up().domain(r).range(n).unknown(u)},t}function fp(){function t(){var t=s().length,l=i[1]<i[0],n=i[+l],v=i[1-l],a;return u=(v-n)/Math.max(1,t-r+2*e),f&&(u=Math.floor(u)),n+=(v-n-u*(t-r))*h,o=u*(1-r),f&&(n=Math.round(n),o=Math.round(o)),a=gt(t).map(function(t){return n+u*t}),c(l?a.reverse():a)}var u,o,n=up().unknown(void 0),s=n.domain,c=n.range,i=[0,1],f=!1,r=0,e=0,h=.5;return delete n.unknown,n.domain=function(n){return arguments.length?(s(n),t()):s()},n.range=function(n){return arguments.length?(i=[+n[0],+n[1]],t()):i.slice()},n.rangeRound=function(n){return i=[+n[0],+n[1]],f=!0,t()},n.bandwidth=function(){return o},n.step=function(){return u},n.round=function(n){return arguments.length?(f=!!n,t()):f},n.padding=function(n){return arguments.length?(r=e=Math.max(0,Math.min(1,n)),t()):r},n.paddingInner=function(n){return arguments.length?(r=Math.max(0,Math.min(1,n)),t()):r},n.paddingOuter=function(n){return arguments.length?(e=Math.max(0,Math.min(1,n)),t()):e},n.align=function(n){return arguments.length?(h=Math.max(0,Math.min(1,n)),t()):h},n.copy=function(){return fp().domain(s()).range(i).round(f).paddingInner(r).paddingOuter(e).align(h)},t()}function git(n){var t=n.copy;return n.padding=n.paddingOuter,delete n.paddingInner,delete n.paddingOuter,n.copy=function(){return git(t())},n}function eti(){return git(fp().paddingInner(1))}function ep(n,t){return(t-=n=+n)?function(i){return(i-n)/t}:id(t)}function oti(n){return function(t,i){var r=n(t=+t,i=+i);return function(n){return n<=t?0:n>=i?1:r(n)}}}function sti(n){return function(t,i){var r=n(t=+t,i=+i);return function(n){return n<=0?t:n>=1?i:r(n)}}}function hti(n,t,i,r){var u=n[0],e=n[1],f=t[0],o=t[1];return e<u?(u=i(e,u),f=r(o,f)):(u=i(u,e),f=r(f,o)),function(n){return f(u(n))}}function cti(n,t,i,r){var f=Math.min(n.length,t.length)-1,e=new Array(f),o=new Array(f),u=-1;for(n[f]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());++u<f;)e[u]=i(n[u],n[u+1]),o[u]=r(t[u],t[u+1]);return function(t){var i=ru(n,t,1,f)-1;return o[i](e[i](t))}}function wh(n,t){return t.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp())}function bh(n,t){function r(){return s=Math.min(f.length,u.length)>2?cti:hti,h=c=null,i}function i(t){return(h||(h=s(f,u,o?oti(n):n,e)))(+t)}var s,h,c,f=hct,u=hct,e=ho,o=!1;return i.invert=function(n){return(c||(c=s(u,f,ep,o?sti(t):t)))(+n)},i.domain=function(n){return arguments.length?(f=nd.call(n,sct),r()):f.slice()},i.range=function(n){return arguments.length?(u=sr.call(n),r()):u.slice()},i.rangeRound=function(n){return u=sr.call(n),e=vet,r()},i.clamp=function(n){return arguments.length?(o=!!n,r()):o},i.interpolate=function(n){return arguments.length?(e=n,r()):e},r()}function ye(n){var t=n.domain;return n.ticks=function(n){var i=t();return oc(i[0],i[i.length-1],null==n?10:n)},n.tickFormat=function(n,i){return cpi(t(),n,i)},n.nice=function(i){var u=t(),o=u.length-1,s=null==i?10:i,f=u[0],e=u[o],r=vr(f,e,s);return r&&(r=vr(Math.floor(f/r)*r,Math.ceil(e/r)*r,s),u[0]=Math.floor(f/r)*r,u[o]=Math.ceil(e/r)*r,t(u)),n},n}function nrt(){var n=bh(ep,lt);return n.copy=function(){return wh(n,nrt())},ye(n)}function trt(){function n(n){return+n}var t=[0,1];return n.invert=n,n.domain=n.range=function(i){return arguments.length?(t=nd.call(i,sct),n):t.slice()},n.copy=function(){return trt().domain(t)},ye(n)}function lti(n,t){return(t=Math.log(t/n))?function(i){return Math.log(i/n)/t}:id(t)}function ati(n,t){return n<0?function(i){return-Math.pow(-t,i)*Math.pow(-n,1-i)}:function(i){return Math.pow(t,i)*Math.pow(n,1-i)}}function vti(n){return isFinite(n)?+("1e"+n):n<0?0:n}function irt(n){return 10===n?vti:n===Math.E?Math.exp:function(t){return Math.pow(n,t)}}function rrt(n){return n===Math.E?Math.log:10===n&&Math.log10||2===n&&Math.log2||(n=Math.log(n),function(t){return Math.log(t)/n})}function urt(n){return function(t){return-n(-t)}}function frt(){function e(){return u=rrt(t),r=irt(t),f()[0]<0&&(u=urt(u),r=urt(r)),i}var i=bh(lti,ati).domain([1,10]),f=i.domain,t=10,u=rrt(10),r=irt(10);return i.base=function(n){return arguments.length?(t=+n,e()):t},i.domain=function(n){return arguments.length?(f(n),e()):f()},i.ticks=function(n){var y,v=f(),s=v[0],c=v[v.length-1];(y=c<s)&&(i=s,s=c,c=i);var a,e,o,i=u(s),h=u(c),p=null==n?10:+n,l=[];if(!(t%1)&&h-i<p){if(i=Math.round(i)-1,h=Math.round(h)+1,s>0){for(;i<h;++i)for(e=1,a=r(i);e<t;++e)if(o=a*e,!(o<s)){if(o>c)break;l.push(o)}}else for(;i<h;++i)for(e=t-1,a=r(i);e>=1;--e)if(o=a*e,!(o<s)){if(o>c)break;l.push(o)}}else l=oc(i,h,Math.min(h-i,p)).map(r);return y?l.reverse():l},i.tickFormat=function(f,e){if(null==e&&(e=10===t?".0e":","),"function"!=typeof e&&(e=n.format(e)),f===1/0)return e;null==f&&(f=10);var o=Math.max(1,t*f/i.ticks().length);return function(n){var i=n/r(Math.round(u(n)));return i*t<t-.5&&(i*=t),i<=o?e(n):""}},i.nice=function(){return f(cct(f(),{floor:function(n){return r(Math.floor(u(n)))},ceil:function(n){return r(Math.ceil(u(n)))}}))},i.copy=function(){return wh(i,frt().base(t))},i}function bu(n,t){return n<0?-Math.pow(-n,t):Math.pow(n,t)}function op(){function r(t,i){return(i=bu(i,n)-(t=bu(t,n)))?function(r){return(bu(r,n)-t)/i}:id(i)}function u(t,i){return i=bu(i,n)-(t=bu(t,n)),function(r){return bu(t+i*r,1/n)}}var n=1,t=bh(r,u),i=t.domain;return t.exponent=function(t){return arguments.length?(n=+t,i(i())):n},t.copy=function(){return wh(t,op().exponent(n))},ye(t)}function yti(){return op().exponent(.5)}function ert(){function u(){var u=0,f=Math.max(1,r.length);for(i=new Array(f-1);++u<f;)i[u-1]=to(n,u/f);return t}function t(n){if(!isNaN(n=+n))return r[ru(i,n)]}var n=[],r=[],i=[];return t.invertExtent=function(t){var u=r.indexOf(t);return u<0?[NaN,NaN]:[u>0?i[u-1]:n[0],u<i.length?i[u]:n[n.length-1]]},t.domain=function(t){if(!arguments.length)return n.slice();n=[];for(var i,r=0,f=t.length;r<f;++r)i=t[r],null==i||isNaN(i=+i)||n.push(i);return n.sort(iu),u()},t.range=function(n){return arguments.length?(r=sr.call(n),u()):r.slice()},t.quantiles=function(){return i.slice()},t.copy=function(){return ert().domain(n).range(r)},t}function ort(){function i(i){if(i<=i)return f[ru(t,i,0,n)]}function e(){var f=-1;for(t=new Array(n);++f<n;)t[f]=((f+1)*u-(f-n)*r)/(n+1);return i}var r=0,u=1,n=1,t=[.5],f=[0,1];return i.domain=function(n){return arguments.length?(r=+n[0],u=+n[1],e()):[r,u]},i.range=function(t){return arguments.length?(n=(f=sr.call(t)).length-1,e()):f.slice()},i.invertExtent=function(i){var e=f.indexOf(i);return e<0?[NaN,NaN]:e<1?[r,t[0]]:e>=n?[t[n-1],u]:[t[e-1],t[e]]},i.copy=function(){return ort().domain([r,u]).range(f)},ye(i)}function srt(){function t(t){if(t<=t)return i[ru(n,t,0,r)]}var n=[.5],i=[0,1],r=1;return t.domain=function(u){return arguments.length?(n=sr.call(u),r=Math.min(n.length,i.length-1),t):n.slice()},t.range=function(u){return arguments.length?(i=sr.call(u),r=Math.min(n.length,i.length-1),t):i.slice()},t.invertExtent=function(t){var r=i.indexOf(t);return[n[r-1],n[r]]},t.copy=function(){return srt().domain(n).range(i)},t}function p(n,t,i,r){function u(t){return n(t=new Date(+t)),t}return u.floor=u,u.ceil=function(i){return n(i=new Date(i-1)),t(i,1),n(i),i},u.round=function(n){var t=u(n),i=u.ceil(n);return n-t<i-n?t:i},u.offset=function(n,i){return t(n=new Date(+n),null==i?1:Math.floor(i)),n},u.range=function(i,r,f){var e=[];if(i=u.ceil(i),f=null==f?1:Math.floor(f),!(i<r&&f>0))return e;do e.push(new Date(+i));while(t(i,f),n(i),i<r);return e},u.filter=function(i){return p(function(t){if(t>=t)for(;n(t),!i(t);)t.setTime(t-1)},function(n,r){if(n>=n)for(;--r>=0;)for(;t(n,1),!i(n););})},i&&(u.count=function(t,r){return rd.setTime(+t),ud.setTime(+r),n(rd),n(ud),Math.floor(i(rd,ud))},u.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?u.filter(r?function(t){return r(t)%n==0}:function(t){return u.count(0,t)%n==0}):u:null}),u}function nu(n){return p(function(t){t.setDate(t.getDate()-(t.getDay()+7-n)%7);t.setHours(0,0,0,0)},function(n,t){n.setDate(n.getDate()+7*t)},function(n,t){return(t-n-(t.getTimezoneOffset()-n.getTimezoneOffset())*bi)/vct})}function tu(n){return p(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-n)%7);t.setUTCHours(0,0,0,0)},function(n,t){n.setUTCDate(n.getUTCDate()+7*t)},function(n,t){return(t-n)/vct})}function pti(n){if(0<=n.y&&n.y<100){var t=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return t.setFullYear(n.y),t}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function sp(n){if(0<=n.y&&n.y<100){var t=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return t.setUTCFullYear(n.y),t}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function hp(n){return{y:n,m:0,d:1,H:0,M:0,S:0,L:0}}function hrt(n){function t(n,t){return function(i){var u,e,s,f=[],r=-1,o=0,h=n.length;for(i instanceof Date||(i=new Date(+i));++r<h;)37===n.charCodeAt(r)&&(f.push(n.slice(o,r)),null!=(e=elt[u=n.charAt(++r)])?u=n.charAt(++r):e="e"===u?" ":"0",(s=t[u])&&(u=s(i,e)),f.push(u),o=r+1);return f.push(n.slice(o,r)),f.join("")}}function v(n,t){return function(i){var r=hp(1900),e=u(r,n,i+="",0),f;return e!=i.length?null:(("p"in r&&(r.H=r.H%12+12*r.p),"W"in r||"U"in r)&&("w"in r||(r.w="W"in r?1:0),f="Z"in r?sp(hp(r.y)).getUTCDay():t(hp(r.y)).getDay(),r.m=0,r.d="W"in r?(r.w+6)%7+7*r.W-(f+5)%7:r.w+7*r.U-(f+6)%7),"Z"in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,sp(r)):t(r))}}function u(n,t,i,r){for(var u,e,f=0,o=t.length,s=i.length;f<o;){if(r>=s)return-1;if(u=t.charCodeAt(f++),37===u){if(u=t.charAt(f++),e=ni[u in elt?t.charAt(f++):u],!e||(r=e(n,i,r))<0)return-1}else if(u!=i.charCodeAt(r++))return-1}return r}function y(n,t,i){var r=lt.exec(t.slice(i));return r?(n.p=at[r[0].toLowerCase()],i+r[0].length):-1}function p(n,t,i){var r=pt.exec(t.slice(i));return r?(n.w=wt[r[0].toLowerCase()],i+r[0].length):-1}function w(n,t,i){var r=vt.exec(t.slice(i));return r?(n.w=yt[r[0].toLowerCase()],i+r[0].length):-1}function b(n,t,i){var r=dt.exec(t.slice(i));return r?(n.m=gt[r[0].toLowerCase()],i+r[0].length):-1}function k(n,t,i){var r=bt.exec(t.slice(i));return r?(n.m=kt[r[0].toLowerCase()],i+r[0].length):-1}function d(n,t,i){return u(n,c,t,i)}function g(n,t,i){return u(n,l,t,i)}function nt(n,t,i){return u(n,a,t,i)}function tt(n){return o[n.getDay()]}function it(n){return e[n.getDay()]}function rt(n){return h[n.getMonth()]}function ut(n){return s[n.getMonth()]}function ft(n){return f[+(n.getHours()>=12)]}function et(n){return o[n.getUTCDay()]}function ot(n){return e[n.getUTCDay()]}function st(n){return h[n.getUTCMonth()]}function ht(n){return s[n.getUTCMonth()]}function ct(n){return f[+(n.getUTCHours()>=12)]}var c=n.dateTime,l=n.date,a=n.time,f=n.periods,e=n.days,o=n.shortDays,s=n.months,h=n.shortMonths,lt=pe(f),at=we(f),vt=pe(e),yt=we(e),pt=pe(o),wt=we(o),bt=pe(s),kt=we(s),dt=pe(h),gt=we(h),i={a:tt,A:it,b:rt,B:ut,c:null,d:art,e:art,H:sii,I:hii,j:cii,L:lii,m:aii,M:vii,p:ft,S:yii,U:pii,w:wii,W:bii,x:null,X:null,y:kii,Y:dii,Z:gii,"%":yrt},r={a:et,A:ot,b:st,B:ht,c:null,d:vrt,e:vrt,H:nri,I:tri,j:iri,L:rri,m:uri,M:fri,p:ct,S:eri,U:ori,w:sri,W:hri,x:null,X:null,y:cri,Y:lri,Z:ari,"%":yrt},ni={a:p,A:w,b:b,B:k,c:d,d:crt,e:crt,H:lrt,I:lrt,j:rii,L:eii,m:iii,M:uii,p:y,S:fii,U:kti,w:bti,W:dti,x:g,X:nt,y:nii,Y:gti,Z:tii,"%":oii};return i.x=t(l,i),i.X=t(a,i),i.c=t(c,i),r.x=t(l,r),r.X=t(a,r),r.c=t(c,r),{format:function(n){var r=t(n+="",i);return r.toString=function(){return n},r},parse:function(n){var t=v(n+="",pti);return t.toString=function(){return n},t},utcFormat:function(n){var i=t(n+="",r);return i.toString=function(){return n},i},utcParse:function(n){var t=v(n,sp);return t.toString=function(){return n},t}}}function h(n,t,i){var u=n<0?"-":"",r=(u?-n:n)+"",f=r.length;return u+(f<i?new Array(i-f+1).join(t)+r:r)}function wti(n){return n.replace(vwi,"\\$&")}function pe(n){return new RegExp("^(?:"+n.map(wti).join("|")+")","i")}function we(n){for(var i={},t=-1,r=n.length;++t<r;)i[n[t].toLowerCase()]=t;return i}function bti(n,t,i){var r=wt.exec(t.slice(i,i+1));return r?(n.w=+r[0],i+r[0].length):-1}function kti(n,t,i){var r=wt.exec(t.slice(i));return r?(n.U=+r[0],i+r[0].length):-1}function dti(n,t,i){var r=wt.exec(t.slice(i));return r?(n.W=+r[0],i+r[0].length):-1}function gti(n,t,i){var r=wt.exec(t.slice(i,i+4));return r?(n.y=+r[0],i+r[0].length):-1}function nii(n,t,i){var r=wt.exec(t.slice(i,i+2));return r?(n.y=+r[0]+(+r[0]>68?1900:2e3),i+r[0].length):-1}function tii(n,t,i){var r=/^(Z)|([+-]\d\d)(?:\:?(\d\d))?/.exec(t.slice(i,i+6));return r?(n.Z=r[1]?0:-(r[2]+(r[3]||"00")),i+r[0].length):-1}function iii(n,t,i){var r=wt.exec(t.slice(i,i+2));return r?(n.m=r[0]-1,i+r[0].length):-1}function crt(n,t,i){var r=wt.exec(t.slice(i,i+2));return r?(n.d=+r[0],i+r[0].length):-1}function rii(n,t,i){var r=wt.exec(t.slice(i,i+3));return r?(n.m=0,n.d=+r[0],i+r[0].length):-1}function lrt(n,t,i){var r=wt.exec(t.slice(i,i+2));return r?(n.H=+r[0],i+r[0].length):-1}function uii(n,t,i){var r=wt.exec(t.slice(i,i+2));return r?(n.M=+r[0],i+r[0].length):-1}function fii(n,t,i){var r=wt.exec(t.slice(i,i+2));return r?(n.S=+r[0],i+r[0].length):-1}function eii(n,t,i){var r=wt.exec(t.slice(i,i+3));return r?(n.L=+r[0],i+r[0].length):-1}function oii(n,t,i){var r=awi.exec(t.slice(i,i+1));return r?i+r[0].length:-1}function art(n,t){return h(n.getDate(),t,2)}function sii(n,t){return h(n.getHours(),t,2)}function hii(n,t){return h(n.getHours()%12||12,t,2)}function cii(n,t){return h(1+da.count(lu(n),n),t,3)}function lii(n,t){return h(n.getMilliseconds(),t,3)}function aii(n,t){return h(n.getMonth()+1,t,2)}function vii(n,t){return h(n.getMinutes(),t,2)}function yii(n,t){return h(n.getSeconds(),t,2)}function pii(n,t){return h(is.count(lu(n),n),t,2)}function wii(n){return n.getDay()}function bii(n,t){return h(od.count(lu(n),n),t,2)}function kii(n,t){return h(n.getFullYear()%100,t,2)}function dii(n,t){return h(n.getFullYear()%1e4,t,4)}function gii(n){var t=n.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+h(t/60|0,"0",2)+h(t%60,"0",2)}function vrt(n,t){return h(n.getUTCDate(),t,2)}function nri(n,t){return h(n.getUTCHours(),t,2)}function tri(n,t){return h(n.getUTCHours()%12||12,t,2)}function iri(n,t){return h(1+ga.count(au(n),n),t,3)}function rri(n,t){return h(n.getUTCMilliseconds(),t,3)}function uri(n,t){return h(n.getUTCMonth()+1,t,2)}function fri(n,t){return h(n.getUTCMinutes(),t,2)}function eri(n,t){return h(n.getUTCSeconds(),t,2)}function ori(n,t){return h(rs.count(au(n),n),t,2)}function sri(n){return n.getUTCDay()}function hri(n,t){return h(ld.count(au(n),n),t,2)}function cri(n,t){return h(n.getUTCFullYear()%100,t,2)}function lri(n,t){return h(n.getUTCFullYear()%1e4,t,4)}function ari(){return"+0000"}function yrt(){return"%"}function prt(t){return ne=hrt(t),n.timeFormat=ne.format,n.timeParse=ne.parse,n.utcFormat=ne.utcFormat,n.utcParse=ne.utcParse,ne}function vri(n){return n.toISOString()}function yri(n){var t=new Date(n);return isNaN(t)?null:t}function pri(n){return new Date(n)}function wri(n){return n instanceof Date?+n:+new Date(+n)}function cp(n,t,i,r,u,f,e,o,s){function v(o){return(e(o)<o?p:f(o)<o?w:u(o)<o?b:r(o)<o?k:t(o)<o?i(o)<o?d:g:n(o)<o?nt:tt)(o)}function a(t,i,r,u){if(null==t&&(t=10),"number"==typeof t){var e=Math.abs(r-i)/t,f=gp(function(n){return n[2]}).right(l,e);f===l.length?(u=vr(i/vd,r/vd,t),t=n):f?(f=l[e/l[f-1][2]<l[f][2]/e?f-1:f],u=f[1],t=f[0]):(u=vr(i,r,t),t=o)}return null==u?t:t.every(u)}var h=bh(ep,lt),y=h.invert,c=h.domain,p=s(".%L"),w=s(":%S"),b=s("%I:%M"),k=s("%I %p"),d=s("%a %d"),g=s("%b %d"),nt=s("%B"),tt=s("%Y"),l=[[e,1,us],[e,5,5*us],[e,15,15*us],[e,30,30*us],[f,1,fs],[f,5,5*fs],[f,15,15*fs],[f,30,30*fs],[u,1,es],[u,3,3*es],[u,6,6*es],[u,12,12*es],[r,1,os],[r,2,2*os],[i,1,wwi],[t,1,slt],[t,3,3*slt],[n,1,vd]];return h.invert=function(n){return new Date(y(n))},h.domain=function(n){return arguments.length?c(nd.call(n,wri)):c().map(pri)},h.ticks=function(n,t){var i,f=c(),r=f[0],u=f[f.length-1],e=u<r;return e&&(i=r,r=u,u=i),i=a(n,r,u,t),i=i?i.range(r,u+1):[],e?i.reverse():i},h.tickFormat=function(n,t){return null==t?v:s(t)},h.nice=function(n,t){var i=c();return(n=a(n,i[0],i[i.length-1],t))?c(cct(i,n)):h},h.copy=function(){return wh(h,cp(n,t,i,r,u,f,e,o,s))},h}function kh(n){var t=n.length;return function(i){return n[Math.max(0,Math.min(t-1,Math.floor(i*t)))]}}function wrt(n){function t(t){var f=(t-i)/(r-i);return n(u?Math.max(0,Math.min(1,f)):f)}var i=0,r=1,u=!1;return t.domain=function(n){return arguments.length?(i=+n[0],r=+n[1],t):[i,r]},t.clamp=function(n){return arguments.length?(u=!!n,t):u},t.interpolator=function(i){return arguments.length?(n=i,t):n},t.copy=function(){return wrt(n).domain([i,r]).clamp(u)},ye(t)}function bri(n){return n.innerRadius}function kri(n){return n.outerRadius}function dri(n){return n.startAngle}function gri(n){return n.endAngle}function nui(n){return n&&n.padAngle}function brt(n){return n>=1?tv:n<=-1?-tv:Math.asin(n)}function tui(n,t,i,r,u,f,e,o){var s=i-n,h=r-t,c=e-u,l=o-f,a=(c*(t-f)-l*(n-u))/(l*s-c*h);return[n+a*s,t+a*h]}function dh(n,t,i,r,u,f,e){var p=n-i,w=t-r,it=(e?f:-f)/Math.sqrt(p*p+w*w),b=it*w,k=-it*p,d=n+b,g=t+k,nt=i+b,tt=r+k,rt=(d+nt)/2,ut=(g+tt)/2,s=nt-d,o=tt-g,c=s*s+o*o,l=u-f,h=d*tt-nt*g,a=(o<0?-1:1)*Math.sqrt(Math.max(0,l*l*c-h*h)),v=(h*o-s*a)/c,y=(-h*s-o*a)/c,ft=(h*o+s*a)/c,et=(-h*s+o*a)/c,ot=v-rt,st=y-ut,ht=ft-rt,ct=et-ut;return ot*ot+st*st>ht*ht+ct*ct&&(v=ft,y=et),{cx:v,cy:y,x01:-b,y01:-k,x11:v*(u/l-1),y11:y*(u/l-1)}}function krt(n){this._context=n}function drt(n){return n[0]}function grt(n){return n[1]}function nut(n){this._curve=n}function lp(n){function t(t){return new nut(n(t))}return t._curve=n,t}function be(n){var t=n.curve;return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n.curve=function(n){return arguments.length?t(lp(n)):t()._curve},n}function gh(n,t,i){n._context.bezierCurveTo((2*n._x0+n._x1)/3,(2*n._y0+n._y1)/3,(n._x0+2*n._x1)/3,(n._y0+2*n._y1)/3,(n._x0+4*n._x1+t)/6,(n._y0+4*n._y1+i)/6)}function nc(n){this._context=n}function tut(n){this._context=n}function iut(n){this._context=n}function rut(n,t){this._basis=new nc(n);this._beta=t}function tc(n,t,i){n._context.bezierCurveTo(n._x1+n._k*(n._x2-n._x0),n._y1+n._k*(n._y2-n._y0),n._x2+n._k*(n._x1-t),n._y2+n._k*(n._y1-i),n._x2,n._y2)}function ap(n,t){this._context=n;this._k=(1-t)/6}function vp(n,t){this._context=n;this._k=(1-t)/6}function yp(n,t){this._context=n;this._k=(1-t)/6}function pp(n,t,i){var r=n._x1,u=n._y1,f=n._x2,e=n._y2,o,s,h,c;n._l01_a>it&&(o=2*n._l01_2a+3*n._l01_a*n._l12_a+n._l12_2a,s=3*n._l01_a*(n._l01_a+n._l12_a),r=(r*o-n._x0*n._l12_2a+n._x2*n._l01_2a)/s,u=(u*o-n._y0*n._l12_2a+n._y2*n._l01_2a)/s);n._l23_a>it&&(h=2*n._l23_2a+3*n._l23_a*n._l12_a+n._l12_2a,c=3*n._l23_a*(n._l23_a+n._l12_a),f=(f*h+n._x1*n._l23_2a-t*n._l12_2a)/c,e=(e*h+n._y1*n._l23_2a-i*n._l12_2a)/c);n._context.bezierCurveTo(r,u,f,e,n._x2,n._y2)}function uut(n,t){this._context=n;this._alpha=t}function fut(n,t){this._context=n;this._alpha=t}function eut(n,t){this._context=n;this._alpha=t}function out(n){this._context=n}function sut(n){return n<0?-1:1}function hut(n,t,i){var r=n._x1-n._x0,u=t-n._x1,f=(n._y1-n._y0)/(r||u<0&&-0),e=(i-n._y1)/(u||r<0&&-0),o=(f*u+e*r)/(r+u);return(sut(f)+sut(e))*Math.min(Math.abs(f),Math.abs(e),.5*Math.abs(o))||0}function cut(n,t){var i=n._x1-n._x0;return i?(3*(n._y1-n._y0)/i-t)/2:t}function wp(n,t,i){var f=n._x0,o=n._y0,u=n._x1,e=n._y1,r=(u-f)/3;n._context.bezierCurveTo(f+r,o+r*t,u-r,e-r*i,u,e)}function ic(n){this._context=n}function lut(n){this._context=new aut(n)}function aut(n){this._context=n}function iui(n){return new ic(n)}function rui(n){return new lut(n)}function vut(n){this._context=n}function yut(n){var t,e,i=n.length-1,r=new Array(i),u=new Array(i),f=new Array(i);for(r[0]=0,u[0]=2,f[0]=n[0]+2*n[1],t=1;t<i-1;++t)r[t]=1,u[t]=4,f[t]=4*n[t]+2*n[t+1];for(r[i-1]=2,u[i-1]=7,f[i-1]=8*n[i-1]+n[i],t=1;t<i;++t)e=r[t]/u[t-1],u[t]-=e,f[t]-=e*f[t-1];for(r[i-1]=f[i-1]/u[i-1],t=i-2;t>=0;--t)r[t]=(f[t]-r[t+1])/u[t];for(u[i-1]=(n[i]+r[i-1])/2,t=0;t<i-1;++t)u[t]=2*n[t+1]-r[t+1];return[r,u]}function rc(n,t){this._context=n;this._t=t}function uui(n){return new rc(n,0)}function fui(n){return new rc(n,1)}function eui(n,t){return n[t]}function put(n){for(var t,i=0,r=-1,u=n.length;++r<u;)(t=+n[r][1])&&(i+=t);return i}function oui(n){return n[0]}function sui(n){return n[1]}function uc(){this._=null}function fc(n){n.U=n.C=n.L=n.R=n.P=n.N=null}function ke(n,t){var i=t,r=t.R,u=i.U;u?u.L===i?u.L=r:u.R=r:n._=r;r.U=u;i.U=r;i.R=r.L;i.R&&(i.R.U=i);r.L=i}function de(n,t){var i=t,r=t.L,u=i.U;u?u.L===i?u.L=r:u.R=r:n._=r;r.U=u;i.U=r;i.L=r.R;i.L&&(i.L.U=i);r.R=i}function wut(n){for(;n.L;)n=n.L;return n}function ge(n,t,i,r){var u=[null,null],f=rt.push(u)-1;return u.left=n,u.right=t,i&&ec(u,n,t,i),r&&ec(u,t,n,r),vt[n.index].halfedges.push(f),vt[t.index].halfedges.push(f),u}function no(n,t,i){var r=[t,i];return r.left=n,r}function ec(n,t,i,r){n[0]||n[1]?n.left===i?n[1]=r:n[0]=r:(n[0]=r,n.left=t,n.right=i)}function hui(n,t,i,r,u){var f,a=n[0],v=n[1],c=a[0],l=a[1],y=v[0],p=v[1],e=0,o=1,s=y-c,h=p-l;if(f=t-c,s||!(f>0)){if(f/=s,s<0){if(f<e)return;f<o&&(o=f)}else if(s>0){if(f>o)return;f>e&&(e=f)}if(f=r-c,s||!(f<0)){if(f/=s,s<0){if(f>o)return;f>e&&(e=f)}else if(s>0){if(f<e)return;f<o&&(o=f)}if(f=i-l,h||!(f>0)){if(f/=h,h<0){if(f<e)return;f<o&&(o=f)}else if(h>0){if(f>o)return;f>e&&(e=f)}if(f=u-l,h||!(f<0)){if(f/=h,h<0){if(f>o)return;f>e&&(e=f)}else if(h>0){if(f<e)return;f<o&&(o=f)}return!(e>0||o<1)||(e>0&&(n[0]=[c+e*s,l+e*h]),o<1&&(n[1]=[c+o*s,l+o*h]),!0)}}}}}function cui(n,t,i,r,u){var s=n[1];if(s)return!0;var e,o,f=n[0],y=n.left,p=n.right,c=y[0],l=y[1],a=p[0],v=p[1],h=(c+a)/2,w=(l+v)/2;if(v===l){if(h<t||h>=r)return;if(c>a){if(f){if(f[1]>=u)return}else f=[h,i];s=[h,u]}else{if(f){if(f[1]<i)return}else f=[h,u];s=[h,i]}}else if(e=(c-a)/(v-l),o=w-e*h,e<-1||e>1)if(c>a){if(f){if(f[1]>=u)return}else f=[(i-o)/e,i];s=[(u-o)/e,u]}else{if(f){if(f[1]<i)return}else f=[(u-o)/e,u];s=[(i-o)/e,i]}else if(l<v){if(f){if(f[0]>=r)return}else f=[t,e*t+o];s=[r,e*r+o]}else{if(f){if(f[0]<t)return}else f=[r,e*r+o];s=[t,e*t+o]}return n[0]=f,n[1]=s,!0}function lui(n,t,i,r){for(var u,f=rt.length;f--;)cui(u=rt[f],n,t,i,r)&&hui(u,n,t,i,r)&&(Math.abs(u[0][0]-u[1][0])>s||Math.abs(u[0][1]-u[1][1])>s)||delete rt[f]}function aui(n){return vt[n.index]={site:n,halfedges:[]}}function vui(n,t){var u=n.site,i=t.left,r=t.right;return u===r&&(r=i,i=u),r?Math.atan2(r[1]-i[1],r[0]-i[0]):(u===i?(i=t[1],r=t[0]):(i=t[0],r=t[1]),Math.atan2(i[0]-r[0],r[1]-i[1]))}function but(n,t){return t[+(t.left!==n.site)]}function yui(n,t){return t[+(t.left===n.site)]}function pui(){for(var e,r,n,t,f,i,u=0,o=vt.length;u<o;++u)if((e=vt[u])&&(t=(r=e.halfedges).length)){for(f=new Array(t),i=new Array(t),n=0;n<t;++n)f[n]=n,i[n]=vui(e,rt[r[n]]);for(f.sort(function(n,t){return i[t]-i[n]}),n=0;n<t;++n)i[n]=r[f[n]];for(n=0;n<t;++n)r[n]=i[n]}}function wui(n,t,i,r){for(var f,e,o,h,p,b,l,a,w,v,y,k=vt.length,c=!0,d,g,nt,tt,u=0;u<k;++u)if(f=vt[u]){for(e=f.site,h=f.halfedges,o=h.length;o--;)rt[h[o]]||h.splice(o,1);for(o=0,p=h.length;o<p;)w=yui(f,rt[h[o]]),v=w[0],y=w[1],b=but(f,rt[h[++o%p]]),l=b[0],a=b[1],(Math.abs(v-l)>s||Math.abs(y-a)>s)&&(h.splice(o,0,rt.push(no(e,w,Math.abs(v-n)<s&&r-y>s?[n,Math.abs(l-n)<s?a:r]:Math.abs(y-r)<s&&i-v>s?[Math.abs(a-r)<s?l:i,r]:Math.abs(v-i)<s&&y-t>s?[i,Math.abs(l-i)<s?a:t]:Math.abs(y-t)<s&&v-n>s?[Math.abs(a-t)<s?l:n,t]:null))-1),++p);p&&(c=!1)}if(c){for(tt=1/0,u=0,c=null;u<k;++u)(f=vt[u])&&(e=f.site,d=e[0]-n,g=e[1]-t,nt=d*d+g*g,nt<tt&&(tt=nt,c=f));if(c){var it=[n,t],ut=[n,r],ft=[i,r],et=[i,t];c.halfedges.push(rt.push(no(e=c.site,it,ut))-1,rt.push(no(e,ut,ft))-1,rt.push(no(e,ft,et))-1,rt.push(no(e,et,it))-1)}}for(u=0;u<k;++u)(f=vt[u])&&(f.halfedges.length||delete vt[u])}function bui(){fc(this);this.x=this.y=this.arc=this.site=this.cy=null}function ku(n){var w=n.P,b=n.N,r,t;if(w&&b){var s=w.site,h=n.site,c=b.site;if(s!==c){var l=h[0],a=h[1],u=s[0]-l,f=s[1]-a,e=c[0]-l,o=c[1]-a,v=2*(u*o-f*e);if(!(v>=-cki)){var k=u*u+f*f,d=e*e+o*o,y=(o*k-f*d)/v,p=(u*d-e*k)/v,i=vat.pop()||new bui;for(i.arc=n,i.site=h,i.x=y+l,i.y=(i.cy=p+a)+Math.sqrt(y*y+p*p),n.circle=i,r=null,t=ss._;t;)if(i.y<t.y||i.y===t.y&&i.x<=t.x){if(!t.L){r=t.P;break}t=t.L}else{if(!t.R){r=t;break}t=t.R}ss.insert(r,i);r||(kd=i)}}}}function du(n){var t=n.circle;t&&(t.P||(kd=t.N),ss.remove(t),vat.push(t),fc(t),n.circle=null)}function kui(){fc(this);this.edge=this.site=this.circle=null}function kut(n){var t=yat.pop()||new kui;return t.site=n,t}function bp(n){du(n);re.remove(n);yat.push(n);fc(n)}function dui(n){var l=n.circle,f=l.x,e=l.cy,a=[f,e],o=n.P,h=n.N,r=[n],i,t,u,c;for(bp(n),i=o;i.circle&&Math.abs(f-i.circle.x)<s&&Math.abs(e-i.circle.cy)<s;)o=i.P,r.unshift(i),bp(i),i=o;for(r.unshift(i),du(i),t=h;t.circle&&Math.abs(f-t.circle.x)<s&&Math.abs(e-t.circle.cy)<s;)h=t.N,r.push(t),bp(t),t=h;for(r.push(t),du(t),c=r.length,u=1;u<c;++u)t=r[u],i=r[u-1],ec(t.edge,i.site,t.site,a);i=r[0];t=r[c-1];t.edge=ge(i.site,t.site,null,a);ku(i);ku(t)}function gui(n){for(var u,t,i,a,v,b=n[0],k=n[1],r=re._;r;)if(a=dut(r,k)-b,a>s)r=r.L;else{if(v=b-nfi(r,k),!(v>s)){a>-s?(t=r.P,i=r):v>-s?(t=r,i=r.N):t=i=r;break}if(!r.R){t=r;break}r=r.R}if(aui(n),u=kut(n),re.insert(t,u),t||i){if(t===i)return du(t),i=kut(t.site),re.insert(u,i),u.edge=i.edge=ge(t.site,u.site),ku(t),void ku(i);if(!i)return void(u.edge=ge(t.site,u.site));du(t);du(i);var f=t.site,y=f[0],p=f[1],e=n[0]-y,o=n[1]-p,h=i.site,c=h[0]-y,l=h[1]-p,d=2*(e*l-o*c),g=e*e+o*o,nt=c*c+l*l,w=[(l*g-o*nt)/d+y,(e*nt-c*g)/d+p];ec(i.edge,f,h,w);u.edge=ge(f,n,null,w);i.edge=ge(n,h,null,w);ku(t);ku(i)}}function dut(n,t){var i=n.site,u=i[0],l=i[1],f=l-t,e;if(!f)return u;if(e=n.P,!e)return-(1/0);i=e.site;var o=i[0],a=i[1],r=a-t;if(!r)return o;var s=o-u,h=1/f-1/r,c=s/r;return h?(-c+Math.sqrt(c*c-2*h*(s*s/(-2*r)-a+r/2+l-f/2)))/h+u:(u+o)/2}function nfi(n,t){var r=n.N,i;return r?dut(r,t):(i=n.site,i[1]===t?i[0]:1/0)}function tfi(n,t,i){return(n[0]-i[0])*(t[1]-n[1])-(n[0]-t[0])*(i[1]-n[1])}function ifi(n,t){return t[1]-n[1]||t[0]-n[0]}function kp(n,t){var u,f,r,i=n.sort(ifi).pop();for(rt=[],vt=new Array(n.length),re=new uc,ss=new uc;;)if(r=kd,i&&(!r||i[1]<r.y||i[1]===r.y&&i[0]<r.x))i[0]===u&&i[1]===f||(gui(i),u=i[0],f=i[1]),i=n.pop();else{if(!r)break;dui(r.arc)}if(pui(),t){var e=+t[0][0],o=+t[0][1],s=+t[1][0],h=+t[1][1];lui(e,o,s,h);wui(e,o,s,h)}this.edges=rt;this.cells=vt;re=ss=rt=vt=null}function rfi(n,t,i){this.target=n;this.type=t;this.transform=i}function vi(n,t,i){this.k=n;this.x=t;this.y=i}function gut(n){return n.__zoom||rv}function dp(){n.event.stopImmediatePropagation()}function ufi(){return!n.event.button}function ffi(){var t,i,n=this;return n instanceof SVGElement?(n=n.ownerSVGElement||n,t=n.width.baseVal.value,i=n.height.baseVal.value):(t=n.clientWidth,i=n.clientHeight),[[0,0],[t,i]]}function nft(){return this.__zoom||rv}var iu=function(n,t){return n<t?-1:n>t?1:n>=t?0:NaN},gp=function(n){return 1===n.length&&(n=bat(n)),{left:function(t,i,r,u){for(null==r&&(r=0),null==u&&(u=t.length);r<u;){var f=r+u>>>1;n(t[f],i)<0?r=f+1:u=f}return r},right:function(t,i,r,u){for(null==r&&(r=0),null==u&&(u=t.length);r<u;){var f=r+u>>>1;n(t[f],i)>0?u=f:r=f+1}return r}}},tft=gp(iu),ru=tft.right,efi=tft.left,ofi=function(n,t){return t<n?-1:t>n?1:t>=n?0:NaN},ir=function(n){return null===n?NaN:+n},ift=function(n,t){var i,r,s=n.length,u=0,o=0,f=-1,e=0;if(null==t)for(;++f<s;)isNaN(i=ir(n[f]))||(r=i-u,u+=r/++e,o+=r*(i-u));else for(;++f<s;)isNaN(i=ir(t(n[f],f,n)))||(r=i-u,u+=r/++e,o+=r*(i-u));if(e>1)return o/(e-1)},rft=function(n,t){var i=ift(n,t);return i?Math.sqrt(i):i},uft=function(n,t){var u,i,f,r=-1,e=n.length;if(null==t){for(;++r<e;)if(null!=(i=n[r])&&i>=i){u=f=i;break}for(;++r<e;)null!=(i=n[r])&&(u>i&&(u=i),f<i&&(f=i))}else{for(;++r<e;)if(null!=(i=t(n[r],r,n))&&i>=i){u=f=i;break}for(;++r<e;)null!=(i=t(n[r],r,n))&&(u>i&&(u=i),f<i&&(f=i))}return[u,f]},fft=Array.prototype,sfi=fft.slice,hfi=fft.map,nw=function(n){return function(){return n}},cfi=function(n){return n},gt=function(n,t,i){n=+n;t=+t;i=(r=arguments.length)<2?(t=n,n=0,1):r<3?1:+i;for(var u=-1,r=0|Math.max(0,Math.ceil((t-n)/i)),f=new Array(r);++u<r;)f[u]=n+u*i;return f},lfi=Math.sqrt(50),afi=Math.sqrt(10),vfi=Math.sqrt(2),oc=function(n,t,i){var r=vr(n,t,i);return gt(Math.ceil(n/r)*r,Math.floor(t/r)*r+r/2,r)},eft=function(n){return Math.ceil(Math.log(n.length)/Math.LN2)+1},yfi=function(){function n(n){for(var h,a=n.length,c=new Array(a),e,v,l,u=0;u<a;++u)c[u]=t(n[u],u,n);var y=i(c),o=y[0],s=y[1],f=r(c,o,s);for(Array.isArray(f)||(f=oc(o,s,f)),e=f.length;f[0]<=o;)f.shift(),--e;for(;f[e-1]>=s;)f.pop(),--e;for(l=new Array(e+1),u=0;u<=e;++u)v=l[u]=[],v.x0=u>0?f[u-1]:o,v.x1=u<e?f[u]:s;for(u=0;u<a;++u)h=c[u],o<=h&&h<=s&&l[ru(f,h,0,e)].push(n[u]);return l}var t=cfi,i=uft,r=eft;return n.value=function(i){return arguments.length?(t="function"==typeof i?i:nw(i),n):t},n.domain=function(t){return arguments.length?(i="function"==typeof t?t:nw([t[0],t[1]]),n):i},n.thresholds=function(t){return arguments.length?(r="function"==typeof t?t:nw(Array.isArray(t)?sfi.call(t):t),n):r},n},to=function(n,t,i){if(null==i&&(i=ir),r=n.length){if((t=+t)<=0||r<2)return+i(n[0],0,n);if(t>=1)return+i(n[r-1],r-1,n);var r,f=(r-1)*t,u=Math.floor(f),e=+i(n[u],u,n),o=+i(n[u+1],u+1,n);return e+(o-e)*(f-u)}},pfi=function(n,t,i){return n=hfi.call(n,ir).sort(iu),Math.ceil((i-t)/(2*(to(n,.75)-to(n,.25))*Math.pow(n.length,-1/3)))},wfi=function(n,t,i){return Math.ceil((i-t)/(3.5*rft(n)*Math.pow(n.length,-1/3)))},bfi=function(n,t){var u,i,r=-1,f=n.length;if(null==t){for(;++r<f;)if(null!=(i=n[r])&&i>=i){u=i;break}for(;++r<f;)null!=(i=n[r])&&i>u&&(u=i)}else{for(;++r<f;)if(null!=(i=t(n[r],r,n))&&i>=i){u=i;break}for(;++r<f;)null!=(i=t(n[r],r,n))&&i>u&&(u=i)}return u},kfi=function(n,t){var r,f=0,e=n.length,i=-1,u=e;if(null==t)for(;++i<e;)isNaN(r=ir(n[i]))?--u:f+=r;else for(;++i<e;)isNaN(r=ir(t(n[i],i,n)))?--u:f+=r;if(u)return f/u},dfi=function(n,t){var r,u=[],f=n.length,i=-1;if(null==t)for(;++i<f;)isNaN(r=ir(n[i]))||u.push(r);else for(;++i<f;)isNaN(r=ir(t(n[i],i,n)))||u.push(r);return to(u.sort(iu),.5)},tw=function(n){for(var t,i,r,u=n.length,e=-1,f=0;++e<u;)f+=n[e].length;for(i=new Array(f);--u>=0;)for(r=n[u],t=r.length;--t>=0;)i[--f]=r[t];return i},oft=function(n,t){var u,i,r=-1,f=n.length;if(null==t){for(;++r<f;)if(null!=(i=n[r])&&i>=i){u=i;break}for(;++r<f;)null!=(i=n[r])&&u>i&&(u=i)}else{for(;++r<f;)if(null!=(i=t(n[r],r,n))&&i>=i){u=i;break}for(;++r<f;)null!=(i=t(n[r],r,n))&&u>i&&(u=i)}return u},gfi=function(n){for(var t=0,i=n.length-1,r=n[0],u=new Array(i<0?0:i);t<i;)u[t]=[r,r=n[++t]];return u},nei=function(n,t){for(var i=t.length,r=new Array(i);i--;)r[i]=n[t[i]];return r},tei=function(n,t){if(f=n.length){var f,e,r=0,u=0,i=n[u];for(t||(t=iu);++r<f;)(t(e=n[r],i)<0||0!==t(i,i))&&(i=e,u=r);return 0===t(i,i)?u:void 0}},iei=function(n,t,i){for(var f,u,r=(null==i?n.length:i)-(t=null==t?0:+t);r;)u=Math.random()*r--|0,f=n[r+t],n[r+t]=n[u+t],n[u+t]=f;return n},rei=function(n,t){var r,u=0,f=n.length,i=-1;if(null==t)for(;++i<f;)(r=+n[i])&&(u+=r);else for(;++i<f;)(r=+t(n[i],i,n))&&(u+=r);return u},sft=function(n){var r,t,e;if(!(r=n.length))return[];for(var i=-1,u=oft(n,kat),f=new Array(u);++i<u;)for(t=-1,e=f[i]=new Array(r);++t<r;)e[t]=n[t][i];return f},uei=function(){return sft(arguments)},iw=Array.prototype.slice,hft=function(n){return n},sc=1,hc=2,rw=3,io=4,cft=1e-6,fei={value:function(){}},ow,gu,lft,cc,sw,aft,kot,at,dot,fr,al,kb,db,hht,pa,cht,lht,aht,vht,yht,pht,wht,bht,kht,dlt,glt,nat,tat,iat,rat,uat,fat,eat,oat,sat,hat,pat,dd,rv,ue,wat;cs.prototype=ki.prototype={constructor:cs,on:function(n,t){var i,r=this._,f=evt(n+"",r),u=-1,e=f.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++u<e;)if(i=(n=f[u]).type)r[i]=gd(r[i],n.name,t);else if(null==t)for(i in r)r[i]=gd(r[i],n.name,null);return this}for(;++u<e;)if((i=(n=f[u]).type)&&(i=ovt(r[i],n.name)))return i},copy:function(){var n={},t=this._;for(var i in t)n[i]=t[i].slice();return new cs(n)},call:function(n,t){if((r=arguments.length-2)>0)for(var r,u,f=new Array(r),i=0;i<r;++i)f[i]=arguments[i+2];if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(u=this._[n],i=0,r=u.length;i<r;++i)u[i].value.apply(t,f)},apply:function(n,t,i){if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(var u=this._[n],r=0,f=u.length;r<f;++r)u[r].value.apply(t,i)}};var uw="http://www.w3.org/1999/xhtml",fw={svg:"http://www.w3.org/2000/svg",xhtml:uw,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},ro=function(n){var t=n+="",i=t.indexOf(":");return i>=0&&"xmlns"!==(t=n.slice(0,i))&&(n=n.slice(i+1)),fw.hasOwnProperty(t)?{space:fw[t],local:n}:n},ew=function(n){var t=ro(n);return(t.local?hvt:svt)(t)},eei=0;uv.prototype=ng.prototype={constructor:uv,get:function(n){for(var t=this._;!(t in n);)if(!(n=n.parentNode))return;return n[t]},set:function(n,t){return n[this._]=t},remove:function(n){return this._ in n&&delete n[this._]},toString:function(){return this._}};ow=function(n){return function(){return this.matches(n)}};"undefined"!=typeof document&&(gu=document.documentElement,gu.matches||(lft=gu.webkitMatchesSelector||gu.msMatchesSelector||gu.mozMatchesSelector||gu.oMatchesSelector,ow=function(n){return function(){return lft.call(this,n)}}));cc=ow;sw={};(n.event=null,"undefined"!=typeof document)&&(aft=document.documentElement,"onmouseenter"in aft||(sw={mouseenter:"mouseover",mouseleave:"mouseout"}));var oei=function(n,t,i){var r,s,o=lvt(n+""),h=o.length,u,f,e,c;if(!(arguments.length<2)){for(u=t?vvt:avt,null==i&&(i=!1),r=0;r<h;++r)this.each(u(o[r],t,i));return this}if(u=this.node().__on,u)for(e=0,c=u.length;e<c;++e)for(r=0,f=u[e];r<h;++r)if((s=o[r]).type===f.type&&s.name===f.name)return f.value},hw=function(){for(var i,t=n.event;i=t.sourceEvent;)t=i;return t},cw=function(n,t){var u=n.ownerSVGElement||n,i,r;return u.createSVGPoint?(i=u.createSVGPoint(),i.x=t.clientX,i.y=t.clientY,i=i.matrixTransform(n.getScreenCTM().inverse()),[i.x,i.y]):(r=n.getBoundingClientRect(),[t.clientX-r.left-n.clientLeft,t.clientY-r.top-n.clientTop])},rr=function(n){var t=hw();return t.changedTouches&&(t=t.changedTouches[0]),cw(n,t)},lc=function(n){return null==n?yvt:function(){return this.querySelector(n)}},sei=function(n){"function"!=typeof n&&(n=lc(n));for(var e=this._groups,o=e.length,s=new Array(o),r=0;r<o;++r)for(var t,u,f=e[r],h=f.length,c=s[r]=new Array(h),i=0;i<h;++i)(t=f[i])&&(u=n.call(t,t.__data__,i,f))&&("__data__"in t&&(u.__data__=t.__data__),c[i]=u);return new ut(s,this._parents)},lw=function(n){return null==n?pvt:function(){return this.querySelectorAll(n)}},hei=function(n){"function"!=typeof n&&(n=lw(n));for(var f=this._groups,s=f.length,e=[],o=[],r=0;r<s;++r)for(var t,u=f[r],h=u.length,i=0;i<h;++i)(t=u[i])&&(e.push(n.call(t,t.__data__,i,u)),o.push(t));return new ut(e,o)},cei=function(n){"function"!=typeof n&&(n=cc(n));for(var f=this._groups,e=f.length,o=new Array(e),t=0;t<e;++t)for(var i,u=f[t],s=u.length,h=o[t]=[],r=0;r<s;++r)(i=u[r])&&n.call(i,i.__data__,r,u)&&h.push(i);return new ut(o,this._parents)},vft=function(n){return new Array(n.length)},lei=function(){return new ut(this._enter||this._groups.map(vft),this._parents)};ls.prototype={constructor:ls,appendChild:function(n){return this._parent.insertBefore(n,this._next)},insertBefore:function(n,t){return this._parent.insertBefore(n,t)},querySelector:function(n){return this._parent.querySelector(n)},querySelectorAll:function(n){return this._parent.querySelectorAll(n)}};var aei=function(n){return function(){return n}},yft="$",vei=function(n,t){var b,k,u,e;if(!n)return f=new Array(this.size()),i=-1,this.each(function(n){f[++i]=n}),f;var d=t?bvt:wvt,c=this._parents,l=this._groups;"function"!=typeof n&&(n=aei(n));for(var o=l.length,r=new Array(o),a=new Array(o),v=new Array(o),i=0;i<o;++i){var s=c[i],y=l[i],g=y.length,f=n.call(s,s&&s.__data__,i,c),h=f.length,p=a[i]=new Array(h),w=r[i]=new Array(h),nt=v[i]=new Array(g);for(d(s,y,p,w,nt,f,t),u=0,e=0;u<h;++u)if(b=p[u]){for(u>=e&&(e=u+1);!(k=w[e])&&++e<h;);b._next=k||null}}return r=new ut(r,c),r._enter=a,r._exit=v,r},yei=function(){return new ut(this._exit||this._groups.map(vft),this._parents)},pei=function(n){for(var r=this._groups,e=n._groups,u=r.length,c=e.length,l=Math.min(u,c),f=new Array(u),t=0;t<l;++t)for(var o,s=r[t],a=e[t],h=s.length,v=f[t]=new Array(h),i=0;i<h;++i)(o=s[i]||a[i])&&(v[i]=o);for(;t<u;++t)f[t]=r[t];return new ut(f,this._parents)},wei=function(){for(var u=this._groups,f=-1,e=u.length;++f<e;)for(var t,i=u[f],r=i.length-1,n=i[r];--r>=0;)(t=i[r])&&(n&&n!==t.nextSibling&&n.parentNode.insertBefore(t,n),n=t);return this},bei=function(n){function c(t,i){return t&&i?n(t.__data__,i.__data__):!t-!i}n||(n=kvt);for(var r=this._groups,u=r.length,f=new Array(u),t=0;t<u;++t){for(var e,o=r[t],s=o.length,h=f[t]=new Array(s),i=0;i<s;++i)(e=o[i])&&(h[i]=e);h.sort(c)}return new ut(f,this._parents).order()},kei=function(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this},dei=function(){var n=new Array(this.size()),t=-1;return this.each(function(){n[++t]=this}),n},gei=function(){for(var i,r=this._groups,n=0,f=r.length;n<f;++n)for(var u=r[n],t=0,e=u.length;t<e;++t)if(i=u[t],i)return i;return null},noi=function(){var n=0;return this.each(function(){++n}),n},toi=function(){return!this.node()},ioi=function(n){for(var f=this._groups,i=0,e=f.length;i<e;++i)for(var r,u=f[i],t=0,o=u.length;t<o;++t)(r=u[t])&&n.call(r,r.__data__,t,u);return this},roi=function(n,t){var i=ro(n),r;return arguments.length<2?(r=this.node(),i.local?r.getAttributeNS(i.space,i.local):r.getAttribute(i)):this.each((null==t?i.local?gvt:dvt:"function"==typeof t?i.local?ryt:iyt:i.local?tyt:nyt)(i,t))},nf=function(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView},uoi=function(n,t,i){var r;return arguments.length>1?this.each((null==t?uyt:"function"==typeof t?eyt:fyt)(n,t,null==i?"":i)):nf(r=this.node()).getComputedStyle(r,null).getPropertyValue(n)},foi=function(n,t){return arguments.length>1?this.each((null==t?oyt:"function"==typeof t?hyt:syt)(n,t)):this.node()[n]};rg.prototype={add:function(n){var t=this._names.indexOf(n);t<0&&(this._names.push(n),this._node.setAttribute("class",this._names.join(" ")))},remove:function(n){var t=this._names.indexOf(n);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(n){return this._names.indexOf(n)>=0}};var eoi=function(n,t){var i=ig(n+"");if(arguments.length<2){for(var u=fv(this.node()),r=-1,f=i.length;++r<f;)if(!u.contains(i[r]))return!1;return!0}return this.each(("function"==typeof t?ayt:t?cyt:lyt)(i,t))},ooi=function(n){return arguments.length?this.each(null==n?vyt:("function"==typeof n?pyt:yyt)(n)):this.node().textContent},soi=function(n){return arguments.length?this.each(null==n?wyt:("function"==typeof n?kyt:byt)(n)):this.node().innerHTML},hoi=function(){return this.each(dyt)},coi=function(){return this.each(gyt)},loi=function(n){var t="function"==typeof n?n:ew(n);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},aoi=function(n,t){var i="function"==typeof n?n:ew(n),r=null==t?npt:"function"==typeof t?t:lc(t);return this.select(function(){return this.insertBefore(i.apply(this,arguments),r.apply(this,arguments)||null)})},voi=function(){return this.each(tpt)},yoi=function(n){return arguments.length?this.property("__data__",n):this.node().__data__},poi=function(n,t){return this.each(("function"==typeof t?rpt:ipt)(n,t))},aw=[null];ut.prototype=yr.prototype={constructor:ut,select:sei,selectAll:hei,filter:cei,data:vei,enter:lei,exit:yei,merge:pei,order:wei,sort:bei,call:kei,nodes:dei,node:gei,size:noi,empty:toi,each:ioi,attr:roi,style:uoi,property:foi,classed:eoi,text:ooi,html:soi,raise:hoi,lower:coi,append:loi,insert:aoi,remove:voi,datum:yoi,on:oei,dispatch:poi};var ct=function(n){return"string"==typeof n?new ut([[document.querySelector(n)]],[document.documentElement]):new ut([[n]],aw)},woi=function(n){return"string"==typeof n?new ut([document.querySelectorAll(n)],[document.documentElement]):new ut([null==n?[]:n],aw)},ac=function(n,t,i){arguments.length<3&&(i=t,t=hw().changedTouches);for(var u,r=0,f=t?t.length:0;r<f;++r)if((u=t[r]).identifier===i)return cw(n,u);return null},boi=function(n,t){null==t&&(t=hw().touches);for(var i=0,r=t?t.length:0,u=new Array(r);i<r;++i)u[i]=cw(n,t[i]);return u},tf=function(){n.event.preventDefault();n.event.stopImmediatePropagation()},vc=function(n){var t=n.document.documentElement,i=ct(n).on("dragstart.drag",tf,!0);"onselectstart"in t?i.on("selectstart.drag",tf,!0):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")},vw=function(n){return function(){return n}};ov.prototype.on=function(){var n=this._.on.apply(this._,arguments);return n===this._?this:n};var koi=function(){function t(n){n.on("mousedown.drag",l).on("touchstart.drag",y).on("touchmove.drag",p).on("touchend.drag touchcancel.drag",w).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function l(){if(!r&&u.apply(this,arguments)){var t=c("mouse",f.apply(this,arguments),rr,this,arguments);t&&(ct(n.event.view).on("mousemove.drag",a,!0).on("mouseup.drag",v,!0),vc(n.event.view),ev(),s=!1,t("start"))}}function a(){tf();s=!0;i.mouse("drag")}function v(){ct(n.event.view).on("mousemove.drag mouseup.drag",null);as(n.event.view,s);tf();i.mouse("end")}function y(){if(u.apply(this,arguments))for(var i,r=n.event.changedTouches,e=f.apply(this,arguments),o=r.length,t=0;t<o;++t)(i=c(r[t].identifier,e,ac,this,arguments))&&(ev(),i("start"))}function p(){for(var r,u=n.event.changedTouches,f=u.length,t=0;t<f;++t)(r=i[u[t].identifier])&&(tf(),r("drag"))}function w(){var t,u,f=n.event.changedTouches,e=f.length;for(r&&clearTimeout(r),r=setTimeout(function(){r=null},500),t=0;t<e;++t)(u=i[f[t].identifier])&&(ev(),u("end"))}function c(r,u,f,s,c){var a,y,p,l=f(u,r),v=e.copy();if(fe(new ov(t,"beforestart",a,r,o,l[0],l[1],0,0,v),function(){return null!=(n.event.subject=a=h.apply(s,c))&&(y=a.x-l[0]||0,p=a.y-l[1]||0,!0)}))return function n(e){var h,w=l;switch(e){case"start":i[r]=n;h=o++;break;case"end":delete i[r];--o;case"drag":l=f(u,r);h=o}fe(new ov(t,e,a,r,h,l[0]+y,l[1]+p,l[0]-w[0],l[1]-w[1],v),v.apply,v,[e,s,c])}}var s,r,u=upt,f=fpt,h=ept,i={},e=ki("start","drag","end"),o=0;return t.filter=function(n){return arguments.length?(u="function"==typeof n?n:vw(!!n),t):u},t.container=function(n){return arguments.length?(f="function"==typeof n?n:vw(n),t):f},t.subject=function(n){return arguments.length?(h="function"==typeof n?n:vw(n),t):h},t.on=function(){var n=e.on.apply(e,arguments);return n===e?t:n},t},rf=function(n,t,i){n.prototype=t.prototype=i;i.constructor=n},uu=.7,uf=1/uu,ff="\\s*([+-]?\\d+)\\s*",uo="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",fi="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",doi=/^#([0-9a-f]{3})$/,goi=/^#([0-9a-f]{6})$/,nsi=new RegExp("^rgb\\("+[ff,ff,ff]+"\\)$"),tsi=new RegExp("^rgb\\("+[fi,fi,fi]+"\\)$"),isi=new RegExp("^rgba\\("+[ff,ff,ff,uo]+"\\)$"),rsi=new RegExp("^rgba\\("+[fi,fi,fi,uo]+"\\)$"),usi=new RegExp("^hsl\\("+[uo,fi,fi]+"\\)$"),fsi=new RegExp("^hsla\\("+[uo,fi,fi,uo]+"\\)$"),pft={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};rf(di,gi,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}});rf(k,oe,ee(di,{brighter:function(n){return n=null==n?uf:Math.pow(uf,n),new k(this.r*n,this.g*n,this.b*n,this.opacity)},darker:function(n){return n=null==n?uu:Math.pow(uu,n),new k(this.r*n,this.g*n,this.b*n,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var n=this.opacity;return n=isNaN(n)?1:Math.max(0,Math.min(1,n)),(1===n?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===n?")":", "+n+")")}}));rf(ii,vs,ee(di,{brighter:function(n){return n=null==n?uf:Math.pow(uf,n),new ii(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=null==n?uu:Math.pow(uu,n),new ii(this.h,this.s,this.l*n,this.opacity)},rgb:function(){var n=this.h%360+360*(this.h<0),u=isNaN(n)||isNaN(this.s)?0:this.s,t=this.l,i=t+(t<.5?t:1-t)*u,r=2*t-i;return new k(hv(n>=240?n-240:n+120,r,i),hv(n,r,i),hv(n<120?n+240:n-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var wft=Math.PI/180,bft=180/Math.PI,yc=18,kft=.95047,dft=1,gft=1.08883,net=4/29,ef=6/29,tet=3*ef*ef,esi=ef*ef*ef;rf(li,ys,ee(di,{brighter:function(n){return new li(this.l+yc*(null==n?1:n),this.a,this.b,this.opacity)},darker:function(n){return new li(this.l-yc*(null==n?1:n),this.a,this.b,this.opacity)},rgb:function(){var n=(this.l+16)/116,t=isNaN(this.a)?n:n+this.a/500,i=isNaN(this.b)?n:n-this.b/200;return n=dft*av(n),t=kft*av(t),i=gft*av(i),new k(vv(3.2404542*t-1.5371385*n-.4985314*i),vv(-.969266*t+1.8760108*n+.041556*i),vv(.0556434*t-.2040259*n+1.0572252*i),this.opacity)}}));rf(nr,ps,ee(di,{brighter:function(n){return new nr(this.h,this.c,this.l+yc*(null==n?1:n),this.opacity)},darker:function(n){return new nr(this.h,this.c,this.l-yc*(null==n?1:n),this.opacity)},rgb:function(){return cv(this).rgb()}}));var iet=-.14861,yw=1.78277,pw=-.29227,pc=-.90649,fo=1.97294,ret=fo*pc,uet=fo*yw,fet=yw*pw-pc*iet;rf(pr,dt,ee(di,{brighter:function(n){return n=null==n?uf:Math.pow(uf,n),new pr(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=null==n?uu:Math.pow(uu,n),new pr(this.h,this.s,this.l*n,this.opacity)},rgb:function(){var r=isNaN(this.h)?0:(this.h+120)*wft,n=+this.l,t=isNaN(this.s)?0:this.s*n*(1-n),i=Math.cos(r),u=Math.sin(r);return new k(255*(n+t*(iet*i+yw*u)),255*(n+t*(pw*i+pc*u)),255*(n+t*fo*i),this.opacity)}}));var eo,ww,eet,wc,bc,oo,oet=function(n){var t=n.length-1;return function(i){var r=i<=0?i=0:i>=1?(i=1,t-1):Math.floor(i*t),u=n[r],f=n[r+1],e=r>0?n[r-1]:2*u-f,o=r<t-1?n[r+2]:2*f-u;return cg((i-r/t)*t,e,u,f,o)}},set=function(n){var t=n.length;return function(i){var r=Math.floor(((i%=1)<0?++i:i)*t),u=n[(r+t-1)%t],f=n[r%t],e=n[(r+1)%t],o=n[(r+2)%t];return cg((i-r/t)*t,u,f,e,o)}},kc=function(n){return function(){return n}},so=function n(t){function r(n,t){var r=i((n=oe(n)).r,(t=oe(t)).r),u=i(n.g,t.g),f=i(n.b,t.b),e=w(n.opacity,t.opacity);return function(t){return n.r=r(t),n.g=u(t),n.b=f(t),n.opacity=e(t),n+""}}var i=lpt(t);return r.gamma=n,r}(1),osi=ag(oet),ssi=ag(set),het=function(n,t){for(var r=t?t.length:0,f=n?Math.min(r,n.length):0,e=new Array(r),u=new Array(r),i=0;i<f;++i)e[i]=ho(n[i],t[i]);for(;i<r;++i)u[i]=t[i];return function(n){for(i=0;i<f;++i)u[i]=e[i](n);return u}},cet=function(n,t){var i=new Date;return n=+n,t-=n,function(r){return i.setTime(n+t*r),i}},lt=function(n,t){return n=+n,t-=n,function(i){return n+t*i}},aet=function(n,t){var i,r={},u={};null!==n&&"object"==typeof n||(n={});null!==t&&"object"==typeof t||(t={});for(i in t)i in n?r[i]=ho(n[i],t[i]):u[i]=t[i];return function(n){for(i in r)u[i]=r[i](n);return u}},bw=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,kw=new RegExp(bw.source,"g"),dw=function(n,t){var s,f,u,e=bw.lastIndex=kw.lastIndex=0,r=-1,i=[],o=[];for(n+="",t+="";(s=bw.exec(n))&&(f=kw.exec(t));)(u=f.index)>e&&(u=t.slice(e,u),i[r]?i[r]+=u:i[++r]=u),(s=s[0])===(f=f[0])?i[r]?i[r]+=f:i[++r]=f:(i[++r]=null,o.push({i:r,x:lt(s,f)})),e=kw.lastIndex;return e<t.length&&(u=t.slice(e),i[r]?i[r]+=u:i[++r]=u),i.length<2?o[0]?vpt(o[0].x):apt(t):(t=o.length,function(n){for(var u,r=0;r<t;++r)i[(u=o[r]).i]=u.x(n);return i.join("")})},ho=function(n,t){var r,i=typeof t;return null==t||"boolean"===i?kc(t):("number"===i?lt:"string"===i?(r=gi(t))?(t=r,so):dw:t instanceof gi?so:t instanceof Date?cet:Array.isArray(t)?het:isNaN(t)?aet:lt)(n,t)},vet=function(n,t){return n=+n,t-=n,function(i){return Math.round(n+t*i)}},yet=180/Math.PI,gw={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},pet=function(n,t,i,r,u,f){var o,s,e;return(o=Math.sqrt(n*n+t*t))&&(n/=o,t/=o),(e=n*i+t*r)&&(i-=n*e,r-=t*e),(s=Math.sqrt(i*i+r*r))&&(i/=s,r/=s,e/=s),n*r<t*i&&(n=-n,t=-t,e=-e,o=-o),{translateX:u,translateY:f,rotate:Math.atan2(t,n)*yet,skewX:Math.atan(e)*yet,scaleX:o,scaleY:s}},wet=vg(ypt,"px, ","px)","deg)"),bet=vg(ppt,", ",")",")"),co=Math.SQRT2,nb=2,ket=4,hsi=1e-12,det=function(n,t){var e,u,c=n[0],l=n[1],i=n[2],p=t[0],w=t[1],r=t[2],o=p-c,s=w-l,h=o*o+s*s;if(h<hsi)u=Math.log(r/i)/co,e=function(n){return[c+n*o,l+n*s,i*Math.exp(co*n*u)]};else{var a=Math.sqrt(h),v=(r*r-i*i+ket*h)/(2*i*nb*a),y=(r*r-i*i-ket*h)/(2*r*nb*a),f=Math.log(Math.sqrt(v*v+1)-v),b=Math.log(Math.sqrt(y*y+1)-y);u=(b-f)/co;e=function(n){var t=n*u,r=yg(f),e=i/(nb*a)*(r*bpt(co*t+f)-wpt(f));return[c+e*o,l+e*s,i*r/yg(co*t+f)]}}return e.duration=1e3*u,e},csi=pg(pv),lsi=pg(w),asi=wg(pv),vsi=wg(w),ysi=bg(pv),dc=bg(w),psi=function(n,t){for(var r=new Array(t),i=0;i<t;++i)r[i]=n(i/(t-1));return r},of=0,lo=0,ao=0,get=1e3,gc=0,ur=0,tb=0,ib="object"==typeof performance&&performance.now?performance:Date,not="function"==typeof requestAnimationFrame?requestAnimationFrame:function(n){setTimeout(n,17)};se.prototype=ws.prototype={constructor:se,restart:function(n,t,i){if("function"!=typeof n)throw new TypeError("callback is not a function");i=(null==i?yu():+i)+(null==t?0:+t);this._next||oo===this||(oo?oo._next=this:bc=this,oo=this);this._call=n;this._time=i;wv()},stop:function(){this._call&&(this._call=null,this._time=1/0,wv())}};var rb=function(n,t,i){var r=new se;return t=null==t?0:+t,r.restart(function(i){r.stop();n(i+t)},t,i),r},wsi=function(n,t,i){var r=new se,u=t;return null==t?(r.restart(n,t,i),r):(t=+t,i=null==i?yu():+i,r.restart(function f(e){e+=u;r.restart(f,u+=t,i);n(e)},t,i),r)},bsi=ki("start","end","interrupt"),ksi=[],tot=0,ub=1,nl=2,fb=3,iot=4,eb=5,tl=6,il=function(n,t,i,r,u,f){var e=n.__transition;if(e){if(i in e)return}else n.__transition={};twt(n,i,{name:t,index:r,group:u,on:bsi,tween:ksi,time:f.time,delay:f.delay,duration:f.duration,ease:f.ease,timer:null,state:tot})},fu=function(n,t){var i,f,u,r=n.__transition,e=!0;if(r){t=null==t?null:t+"";for(u in r)(i=r[u]).name===t?(f=i.state>nl&&i.state<eb,i.state=tl,i.timer.stop(),f&&i.on.call("interrupt",n,n.__data__,i.index,i.group),delete r[u]):e=!1;e&&delete n.__transition}},dsi=function(n){return this.each(function(){fu(this,n)})},gsi=function(n,t){var r=this._id;if(n+="",arguments.length<2){for(var u,f=ai(this.node(),r).tween,i=0,e=f.length;i<e;++i)if((u=f[i]).name===n)return u.value;return null}return this.each((null==t?iwt:rwt)(r,n,t))},rot=function(n,t){var i;return("number"==typeof t?lt:t instanceof gi?so:(i=gi(t))?(t=i,so):dw)(n,t)},nhi=function(n,t){var i=ro(n),r="transform"===i?bet:rot;return this.attrTween(n,"function"==typeof t?(i.local?hwt:swt)(i,r,kv(this,"attr."+n,t)):null==t?(i.local?fwt:uwt)(i):(i.local?owt:ewt)(i,r,t))},thi=function(n,t){var i="attr."+n,r;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==t)return this.tween(i,null);if("function"!=typeof t)throw new Error;return r=ro(n),this.tween(i,(r.local?cwt:lwt)(r,t))},ihi=function(n){var t=this._id;return arguments.length?this.each(("function"==typeof n?awt:vwt)(t,n)):ai(this.node(),t).delay},rhi=function(n){var t=this._id;return arguments.length?this.each(("function"==typeof n?ywt:pwt)(t,n)):ai(this.node(),t).duration},uhi=function(n){var t=this._id;return arguments.length?this.each(wwt(t,n)):ai(this.node(),t).ease},fhi=function(n){"function"!=typeof n&&(n=cc(n));for(var f=this._groups,e=f.length,o=new Array(e),t=0;t<e;++t)for(var i,u=f[t],s=u.length,h=o[t]=[],r=0;r<s;++r)(i=u[r])&&n.call(i,i.__data__,r,u)&&h.push(i);return new ri(o,this._parents,this._name,this._id)},ehi=function(n){if(n._id!==this._id)throw new Error;for(var r=this._groups,e=n._groups,u=r.length,c=e.length,l=Math.min(u,c),f=new Array(u),t=0;t<l;++t)for(var o,s=r[t],a=e[t],h=s.length,v=f[t]=new Array(h),i=0;i<h;++i)(o=s[i]||a[i])&&(v[i]=o);for(;t<u;++t)f[t]=r[t];return new ri(f,this._parents,this._name,this._id)},ohi=function(n,t){var i=this._id;return arguments.length<2?ai(this.node(),i).on.on(n):this.each(kwt(i,n,t))},shi=function(){return this.on("end.remove",dwt(this._id))},hhi=function(n){var s=this._name,u=this._id;"function"!=typeof n&&(n=lc(n));for(var h=this._groups,c=h.length,l=new Array(c),r=0;r<c;++r)for(var i,f,e=h[r],a=e.length,o=l[r]=new Array(a),t=0;t<a;++t)(i=e[t])&&(f=n.call(i,i.__data__,t,e))&&("__data__"in i&&(f.__data__=i.__data__),o[t]=f,il(o[t],s,u,t,o,ai(i,u)));return new ri(l,this._parents,s,u)},chi=function(n){var s=this._name,f=this._id;"function"!=typeof n&&(n=lw(n));for(var h=this._groups,v=h.length,c=[],l=[],e=0;e<v;++e)for(var t,o=h[e],y=o.length,i=0;i<y;++i)if(t=o[i]){for(var a,r=n.call(t,t.__data__,i,o),p=ai(t,f),u=0,w=r.length;u<w;++u)(a=r[u])&&il(a,s,f,u,r,p);c.push(r);l.push(t)}return new ri(c,l,s,f)},lhi=yr.prototype.constructor,ahi=function(){return new lhi(this._groups,this._parents)},vhi=function(n,t,i){var r="transform"==(n+="")?wet:rot;return null==t?this.styleTween(n,gwt(n,r)).on("end.style."+n,nbt(n)):this.styleTween(n,"function"==typeof t?ibt(n,r,kv(this,"style."+n,t)):tbt(n,r,t),i)},yhi=function(n,t,i){var r="style."+(n+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw new Error;return this.tween(r,rbt(n,t,null==i?"":i))},phi=function(n){return this.tween("text","function"==typeof n?fbt(kv(this,"text",n)):ubt(null==n?"":n+""))},whi=function(){for(var n,e=this._name,s=this._id,o=nn(),i=this._groups,h=i.length,r=0;r<h;++r)for(var u,f=i[r],c=f.length,t=0;t<c;++t)(u=f[t])&&(n=ai(u,s),il(u,e,o,t,f,{time:n.time+n.delay+n.duration,delay:0,duration:n.duration,ease:n.ease}));return new ri(i,this._parents,e,o)},bhi=0,sf=yr.prototype;ri.prototype=gg.prototype={constructor:ri,select:hhi,selectAll:chi,filter:fhi,merge:ehi,selection:ahi,transition:whi,call:sf.call,nodes:sf.nodes,node:sf.node,size:sf.size,empty:sf.empty,each:sf.each,on:ohi,attr:nhi,attrTween:thi,style:vhi,styleTween:yhi,text:phi,remove:shi,tween:gsi,delay:ihi,duration:rhi,ease:uhi};var ob=3,khi=function n(t){function i(n){return Math.pow(n,t)}return t=+t,i.exponent=n,i}(ob),dhi=function n(t){function i(n){return 1-Math.pow(1-n,t)}return t=+t,i.exponent=n,i}(ob),uot=function n(t){function i(n){return((n*=2)<=1?Math.pow(n,t):2-Math.pow(2-n,t))/2}return t=+t,i.exponent=n,i}(ob),fot=Math.PI,eot=fot/2,sb=4/11,ghi=6/11,nci=8/11,tci=.75,ici=9/11,rci=10/11,uci=.9375,fci=21/22,eci=63/64,rl=1/sb/sb,hb=1.70158,oci=function n(t){function i(n){return n*n*((t+1)*n-t)}return t=+t,i.overshoot=n,i}(hb),sci=function n(t){function i(n){return--n*n*((t+1)*n+t)+1}return t=+t,i.overshoot=n,i}(hb),oot=function n(t){function i(n){return((n*=2)<1?n*n*((t+1)*n-t):(n-=2)*n*((t+1)*n+t)+2)/2}return t=+t,i.overshoot=n,i}(hb),hf=2*Math.PI,cb=1,lb=.3,hci=function n(t,i){function r(n){return t*Math.pow(2,10*--n)*Math.sin((u-n)/i)}var u=Math.asin(1/(t=Math.max(1,t)))*(i/=hf);return r.amplitude=function(t){return n(t,i*hf)},r.period=function(i){return n(t,i)},r}(cb,lb),sot=function n(t,i){function r(n){return 1-t*Math.pow(2,-10*(n=+n))*Math.sin((n+u)/i)}var u=Math.asin(1/(t=Math.max(1,t)))*(i/=hf);return r.amplitude=function(t){return n(t,i*hf)},r.period=function(i){return n(t,i)},r}(cb,lb),cci=function n(t,i){function r(n){return((n=2*n-1)<0?t*Math.pow(2,10*n)*Math.sin((u-n)/i):2-t*Math.pow(2,-10*n)*Math.sin((u+n)/i))/2}var u=Math.asin(1/(t=Math.max(1,t)))*(i/=hf);return r.amplitude=function(t){return n(t,i*hf)},r.period=function(i){return n(t,i)},r}(cb,lb),ab={time:null,delay:0,duration:250,ease:dv},lci=function(n){var t,o;n instanceof ri?(t=n._id,n=n._name):(t=nn(),(o=ab).time=yu(),n=null==n?null:n+"");for(var r=this._groups,s=r.length,u=0;u<s;++u)for(var f,e=r[u],h=e.length,i=0;i<h;++i)(f=e[i])&&il(f,n,t,i,e,o||dbt(f,t));return new ri(r,this._parents,n,t)};yr.prototype.interrupt=dsi;yr.prototype.transition=lci;var aci=[null],vci=function(n,t){var u,i,r=n.__transition;if(r){t=null==t?null:t+"";for(i in r)if((u=r[i]).state>ub&&u.name===t)return new ri([[n]],aci,t,+i)}return null},hot=function(n){return function(){return n}},yci=function(n,t,i){this.target=n;this.type=t;this.selection=i},ul=function(){n.event.preventDefault();n.event.stopImmediatePropagation()},cot={name:"drag"},vb={name:"space"},cf={name:"handle"},lf={name:"center"},fl={name:"x",handles:["e","w"].map(ce),input:function(n,t){return n&&[[n[0],t[0][1]],[n[1],t[1][1]]]},output:function(n){return n&&[n[0][0],n[1][0]]}},el={name:"y",handles:["n","s"].map(ce),input:function(n,t){return n&&[[t[0][0],n[0]],[t[1][0],n[1]]]},output:function(n){return n&&[n[0][1],n[1][1]]}},pci={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(ce),input:function(n){return n},output:function(n){return n}},yi={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},lot={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},aot={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},wci={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},bci={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1},kci=function(){return ty(pci)},vot=Math.cos,yot=Math.sin,pot=Math.PI,ol=pot/2,wot=2*pot,bot=Math.max,dci=function(){function n(n){for(var o,k,d,s,f=n.length,v=[],g=gt(f),p=[],y=[],tt=y.groups=new Array(f),w=new Array(f*f),l,a,c=0,e=-1;++e<f;){for(o=0,s=-1;++s<f;)o+=n[e][s];v.push(o);p.push(gt(f));c+=o}for(r&&g.sort(function(n,t){return r(v[n],v[t])}),u&&p.forEach(function(t,i){t.sort(function(t,r){return u(n[i][t],n[i][r])})}),c=bot(0,wot-i*f)/c,d=c?i:wot/f,o=0,e=-1;++e<f;){for(k=o,s=-1;++s<f;){var h=g[e],b=p[h][s],nt=n[h][b],it=o,rt=o+=nt*c;w[b*f+h]={index:h,subindex:b,startAngle:it,endAngle:rt,value:nt}}tt[h]={index:h,startAngle:k,endAngle:o,value:v[h]};o+=d}for(e=-1;++e<f;)for(s=e-1;++s<f;)l=w[s*f+e],a=w[e*f+s],(l.value||a.value)&&y.push(l.value<a.value?{source:a,target:l}:{source:l,target:a});return t?y.sort(t):y}var i=0,r=null,u=null,t=null;return n.padAngle=function(t){return arguments.length?(i=bot(0,t),n):i},n.sortGroups=function(t){return arguments.length?(r=t,n):r},n.sortSubgroups=function(t){return arguments.length?(u=t,n):u},n.sortChords=function(i){return arguments.length?(null==i?t=null:(t=ukt(i))._=i,n):t&&t._},n},gci=Array.prototype.slice,yb=function(n){return function(){return n}},pb=Math.PI,wb=2*pb,af=1e-6,nli=wb-af;iy.prototype=br.prototype={constructor:iy,moveTo:function(n,t){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(n,t){this._+="L"+(this._x1=+n)+","+(this._y1=+t)},quadraticCurveTo:function(n,t,i,r){this._+="Q"+ +n+","+ +t+","+(this._x1=+i)+","+(this._y1=+r)},bezierCurveTo:function(n,t,i,r,u,f){this._+="C"+ +n+","+ +t+","+ +i+","+ +r+","+(this._x1=+u)+","+(this._y1=+f)},arcTo:function(n,t,i,r,u){n=+n;t=+t;i=+i;r=+r;u=+u;var v=this._x1,y=this._y1,o=i-n,s=r-t,f=v-n,e=y-t,h=f*f+e*e;if(u<0)throw new Error("negative radius: "+u);if(null===this._x1)this._+="M"+(this._x1=n)+","+(this._y1=t);else if(h>af)if(Math.abs(e*o-s*f)>af&&u){var c=i-v,l=r-y,p=o*o+s*s,g=c*c+l*l,w=Math.sqrt(p),b=Math.sqrt(h),k=u*Math.tan((pb-Math.acos((p+h-g)/(2*w*b)))/2),a=k/b,d=k/w;Math.abs(a-1)>af&&(this._+="L"+(n+a*f)+","+(t+a*e));this._+="A"+u+","+u+",0,0,"+ +(e*c>f*l)+","+(this._x1=n+d*o)+","+(this._y1=t+d*s)}else this._+="L"+(this._x1=n)+","+(this._y1=t)},arc:function(n,t,i,r,u,f){n=+n;t=+t;i=+i;var c=i*Math.cos(r),l=i*Math.sin(r),o=n+c,s=t+l,h=1^f,e=f?r-u:u-r;if(i<0)throw new Error("negative radius: "+i);null===this._x1?this._+="M"+o+","+s:(Math.abs(this._x1-o)>af||Math.abs(this._y1-s)>af)&&(this._+="L"+o+","+s);i&&(e>nli?this._+="A"+i+","+i+",0,1,"+h+","+(n-c)+","+(t-l)+"A"+i+","+i+",0,1,"+h+","+(this._x1=o)+","+(this._y1=s):(e<0&&(e=e%wb+wb),this._+="A"+i+","+i+",0,"+ +(e>=pb)+","+h+","+(this._x1=n+i*Math.cos(u))+","+(this._y1=t+i*Math.sin(u))))},rect:function(n,t,i,r){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+t)+"h"+ +i+"v"+ +r+"h"+-i+"Z"},toString:function(){return this._}};kot=function(){function n(){var h,n=gci.call(arguments),w=f.apply(this,n),b=e.apply(this,n),c=+i.apply(this,(n[0]=w,n)),o=r.apply(this,n)-ol,a=u.apply(this,n)-ol,v=c*vot(o),y=c*yot(o),l=+i.apply(this,(n[0]=b,n)),s=r.apply(this,n)-ol,p=u.apply(this,n)-ol;if(t||(t=h=br()),t.moveTo(v,y),t.arc(0,0,c,o,a),o===s&&a===p||(t.quadraticCurveTo(0,0,l*vot(s),l*yot(s)),t.arc(0,0,l,s,p)),t.quadraticCurveTo(0,0,v,y),t.closePath(),h)return t=null,h+""||null}var f=fkt,e=ekt,i=okt,r=skt,u=hkt,t=null;return n.radius=function(t){return arguments.length?(i="function"==typeof t?t:yb(+t),n):i},n.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:yb(+t),n):r},n.endAngle=function(t){return arguments.length?(u="function"==typeof t?t:yb(+t),n):u},n.source=function(t){return arguments.length?(f=t,n):f},n.target=function(t){return arguments.length?(e=t,n):e},n.context=function(i){return arguments.length?(t=null==i?null:i,n):t},n};at="$";bs.prototype=ui.prototype={constructor:bs,has:function(n){return at+n in this},get:function(n){return this[at+n]},set:function(n,t){return this[at+n]=t,this},remove:function(n){var t=at+n;return t in this&&delete this[t]},clear:function(){for(var n in this)n[0]===at&&delete this[n]},keys:function(){var n=[];for(var t in this)t[0]===at&&n.push(t.slice(1));return n},values:function(){var n=[];for(var t in this)t[0]===at&&n.push(this[t]);return n},entries:function(){var t=[];for(var n in this)n[0]===at&&t.push({key:n.slice(1),value:this[n]});return t},size:function(){var n=0;for(var t in this)t[0]===at&&++n;return n},empty:function(){for(var n in this)if(n[0]===at)return!1;return!0},each:function(n){for(var t in this)t[0]===at&&n(this[t],t.slice(1),this)}};dot=function(){function i(t,f,e,o){if(f>=n.length)return null!=r?r(t):null!=u?t.sort(u):t;for(var c,s,l,a=-1,y=t.length,p=n[f++],h=ui(),v=e();++a<y;)(l=h.get(c=p(s=t[a])+""))?l.push(s):h.set(c,[s]);return h.each(function(n,t){o(v,t,i(n,f,e,o))}),v}function f(t,i){if(++i>n.length)return t;var u,o=e[i-1];return null!=r&&i>=n.length?u=t.entries():(u=[],t.each(function(n,t){u.push({key:t,values:f(n,i)})})),null!=o?u.sort(function(n,t){return o(n.key,t.key)}):u}var u,r,t,n=[],e=[];return t={object:function(n){return i(n,0,ckt,lkt)},map:function(n){return i(n,0,on,sn)},entries:function(n){return f(i(n,0,on,sn),0)},key:function(i){return n.push(i),t},sortKeys:function(i){return e[n.length-1]=i,t},sortValues:function(n){return u=n,t},rollup:function(n){return r=n,t}}};fr=ui.prototype;ks.prototype=hn.prototype={constructor:ks,has:fr.has,add:function(n){return n+="",this[at+n]=n,this},remove:fr.remove,clear:fr.clear,values:fr.keys,size:fr.size,empty:fr.empty,each:fr.each};var tli=function(n){var t=[];for(var i in n)t.push(i);return t},ili=function(n){var t=[];for(var i in n)t.push(n[i]);return t},rli=function(n){var t=[];for(var i in n)t.push({key:i,value:n[i]});return t},bb=function(n){function r(n,t){var r,u,f=i(n,function(n,i){return r?r(n,i-1):(u=n,void(r=t?akt(n,t):cn(n)))});return f.columns=u,f}function i(n,t){function h(){var u,f,t,h;if(i>=o)return e;if(r)return r=!1,c;if(f=i,34===n.charCodeAt(f)){for(t=f;t++<o;)if(34===n.charCodeAt(t)){if(34!==n.charCodeAt(t+1))break;++t}return i=t+2,u=n.charCodeAt(t+1),13===u?(r=!0,10===n.charCodeAt(t+2)&&++i):10===u&&(r=!0),n.slice(f+1,t).replace(/""/g,'"')}for(;i<o;){if(h=1,u=n.charCodeAt(i++),10===u)r=!0;else if(13===u)r=!0,10===n.charCodeAt(i)&&(++i,++h);else if(u!==s)continue;return n.slice(f,i-h)}return n.slice(f)}for(var f,u,r,c={},e={},l=[],o=n.length,i=0,a=0;(u=h())!==e;){for(f=[];u!==c&&u!==e;)f.push(u),u=h();t&&null==(f=t(f,a++))||l.push(f)}return l}function u(i,r){return null==r&&(r=vkt(i)),[r.map(t).join(n)].concat(i.map(function(i){return r.map(function(n){return t(i[n])}).join(n)})).join("\n")}function f(n){return n.map(e).join("\n")}function e(i){return i.map(t).join(n)}function t(n){return null==n?"":o.test(n+="")?'"'+n.replace(/\"/g,'""')+'"':n}var o=new RegExp('["'+n+"\n]"),s=n.charCodeAt(0);return{parse:r,parseRows:i,format:u,formatRows:f}},sl=bb(","),got=sl.parse,uli=sl.parseRows,fli=sl.format,eli=sl.formatRows,hl=bb("\t"),nst=hl.parse,oli=hl.parseRows,sli=hl.format,hli=hl.formatRows,cli=function(n,t){function i(){for(var u,f=r.length,e=0,o=0,i=0;i<f;++i)u=r[i],e+=u.x,o+=u.y;for(e=e/f-n,o=o/f-t,i=0;i<f;++i)u=r[i],u.x-=e,u.y-=o}var r;return null==n&&(n=0),null==t&&(t=0),i.initialize=function(n){r=n},i.x=function(t){return arguments.length?(n=+t,i):n},i.y=function(n){return arguments.length?(t=+n,i):t},i},ft=function(n){return function(){return n}},er=function(){return 1e-6*(Math.random()-.5)},lli=function(n){var t=+this._x.call(null,n),i=+this._y.call(null,n);return ln(this.cover(t,i),t,i,n)},ali=function(n,t){var u,h,i,s;if(isNaN(n=+n)||isNaN(t=+t))return this;var r=this._x0,e=this._y0,f=this._x1,o=this._y1;if(isNaN(r))f=(r=Math.floor(n))+1,o=(e=Math.floor(t))+1;else{if(!(r>n||n>f||e>t||t>o))return this;i=f-r;s=this._root;switch(h=(t<(e+o)/2)<<1|n<(r+f)/2){case 0:do u=new Array(4),u[h]=s,s=u;while(i*=2,f=r+i,o=e+i,n>f||t>o);break;case 1:do u=new Array(4),u[h]=s,s=u;while(i*=2,r=f-i,o=e+i,r>n||t>o);break;case 2:do u=new Array(4),u[h]=s,s=u;while(i*=2,f=r+i,e=o-i,n>f||e>t);break;case 3:do u=new Array(4),u[h]=s,s=u;while(i*=2,r=f-i,e=o-i,r>n||e>t)}this._root&&this._root.length&&(this._root=s)}return this._x0=r,this._y0=e,this._x1=f,this._y1=o,this},vli=function(){var n=[];return this.visit(function(t){if(!t.length)do n.push(t.data);while(t=t.next)}),n},yli=function(n){return arguments.length?this.cover(+n[0][0],+n[0][1]).cover(+n[1][0],+n[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},et=function(n,t,i,r,u){this.node=n;this.x0=t;this.y0=i;this.x1=r;this.y1=u},pli=function(n,t,i){var k,h,c,l,a,f,b,v=this._x0,y=this._y0,p=this._x1,w=this._y1,r=[],u=this._root,e,o,s;for(u&&r.push(new et(u,v,y,p,w)),null==i?i=1/0:(v=n-i,y=t-i,p=n+i,w=t+i,i*=i);f=r.pop();)if(!(!(u=f.node)||(h=f.x0)>p||(c=f.y0)>w||(l=f.x1)<v||(a=f.y1)<y))if(u.length)e=(h+l)/2,o=(c+a)/2,r.push(new et(u[3],e,o,l,a),new et(u[2],h,o,e,a),new et(u[1],e,c,l,o),new et(u[0],h,c,e,o)),(b=(t>=o)<<1|n>=e)&&(f=r[r.length-1],r[r.length-1]=r[r.length-1-b],r[r.length-1-b]=f);else{var d=n-+this._x.call(null,u.data),g=t-+this._y.call(null,u.data),nt=d*d+g*g;nt<i&&(s=Math.sqrt(i=nt),v=n-s,y=t-s,p=n+s,w=t+s,k=u.data)}return k},wli=function(n){if(isNaN(h=+this._x.call(null,n))||isNaN(c=+this._y.call(null,n)))return this;var i,e,f,u,h,c,o,s,l,a,r,v,t=this._root,y=this._x0,p=this._y0,w=this._x1,b=this._y1;if(!t)return this;if(t.length)for(;;){if((l=h>=(o=(y+w)/2))?y=o:w=o,(a=c>=(s=(p+b)/2))?p=s:b=s,i=t,!(t=t[r=a<<1|l]))return this;if(!t.length)break;(i[r+1&3]||i[r+2&3]||i[r+3&3])&&(e=i,v=r)}for(;t.data!==n;)if(f=t,!(t=t.next))return this;return(u=t.next)&&delete t.next,f?(u?f.next=u:delete f.next,this):i?(u?i[r]=u:delete i[r],(t=i[0]||i[1]||i[2]||i[3])&&t===(i[3]||i[2]||i[1]||i[0])&&!t.length&&(e?e[v]=t:this._root=t),this):(this._root=u,this)},bli=function(){return this._root},kli=function(){var n=0;return this.visit(function(t){if(!t.length)do++n;while(t=t.next)}),n},dli=function(n){var r,t,o,s,h,c,u=[],i=this._root,f,e;for(i&&u.push(new et(i,this._x0,this._y0,this._x1,this._y1));r=u.pop();)!n(i=r.node,o=r.x0,s=r.y0,h=r.x1,c=r.y1)&&i.length&&(f=(o+h)/2,e=(s+c)/2,(t=i[3])&&u.push(new et(t,f,e,h,c)),(t=i[2])&&u.push(new et(t,o,e,f,c)),(t=i[1])&&u.push(new et(t,f,s,h,e)),(t=i[0])&&u.push(new et(t,o,s,f,e)));return this},gli=function(n){var t,r=[],l=[],u;for(this._root&&r.push(new et(this._root,this._x0,this._y0,this._x1,this._y1));t=r.pop();){if(u=t.node,u.length){var i,o=t.x0,s=t.y0,h=t.x1,c=t.y1,f=(o+h)/2,e=(s+c)/2;(i=u[0])&&r.push(new et(i,o,s,f,e));(i=u[1])&&r.push(new et(i,f,s,h,e));(i=u[2])&&r.push(new et(i,o,e,f,c));(i=u[3])&&r.push(new et(i,f,e,h,c))}l.push(t)}for(;t=l.pop();)n(t.node,t.x0,t.y0,t.x1,t.y1);return this},nai=function(n){return arguments.length?(this._x=n,this):this._x},tai=function(n){return arguments.length?(this._y=n,this):this._y},ot=ds.prototype=ry.prototype;ot.copy=function(){var u,r,i=new ry(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root,t;if(!n)return i;if(!n.length)return i._root=an(n),i;for(u=[{source:n,target:i._root=new Array(4)}];n=u.pop();)for(t=0;t<4;++t)(r=n.source[t])&&(r.length?u.push({source:r,target:n.target[t]=new Array(4)}):n.target[t]=an(r));return i};ot.add=lli;ot.addAll=ykt;ot.cover=ali;ot.data=vli;ot.extent=yli;ot.find=pli;ot.remove=wli;ot.removeAll=pkt;ot.root=bli;ot.size=kli;ot.visit=dli;ot.visitAfter=gli;ot.x=nai;ot.y=tai;var tst,iai=function(n){function t(){function v(t,i,r,f,o){var v=t.data,w=t.r,c=h+w;if(!v)return i>e+c||f<e-c||r>s+c||o<s-c;if(v.index>n.index){var y=e-v.x-v.vx,p=s-v.y-v.vy,a=y*y+p*p;a<c*c&&(0===y&&(y=er(),a+=y*y),0===p&&(p=er(),a+=p*p),a=(c-(a=Math.sqrt(a)))/a*u,n.vx+=(y*=a)*(c=(w*=w)/(l+w)),n.vy+=(p*=a)*c,v.vx-=y*(c=1-c),v.vy-=p*c)}}for(var t,c,n,e,s,h,l,y=i.length,a=0;a<f;++a)for(c=ds(i,kkt,dkt).visitAfter(o),t=0;t<y;++t)n=i[t],h=r[n.index],l=h*h,e=n.x+n.vx,s=n.y+n.vy,c.visit(v)}function o(n){if(n.data)return n.r=r[n.data.index];for(var t=n.r=0;t<4;++t)n[t]&&n[t].r>n.r&&(n.r=n[t].r)}function e(){if(i){var t,u,f=i.length;for(r=new Array(f),t=0;t<f;++t)u=i[t],r[u.index]=+n(u,t,i)}}var i,r,u=1,f=1;return"function"!=typeof n&&(n=ft(null==n?1:+n)),t.initialize=function(n){i=n;e()},t.iterations=function(n){return arguments.length?(f=+n,t):f},t.strength=function(n){return arguments.length?(u=+n,t):u},t.radius=function(i){return arguments.length?(n="function"==typeof i?i:ft(+i),e(),t):n},t},rai=function(n){function y(n){return 1/Math.min(i[n.source.index],i[n.target.index])}function t(t){for(var y,i,r,s,h,l,a,o,v=0,p=n.length;v<c;++v)for(o=0;o<p;++o)y=n[o],i=y.source,r=y.target,s=r.x+r.vx-i.x-i.vx||er(),h=r.y+r.vy-i.y-i.vy||er(),l=Math.sqrt(s*s+h*h),l=(l-f[o])/l*t*u[o],s*=l,h*=l,r.vx-=s*(a=e[o]),r.vy-=h*a,i.vx+=s*(a=1-a),i.vy+=h*a}function l(){if(r){var s,t,l=r.length,h=n.length,c=ui(r,o);for(s=0,i=new Array(l);s<h;++s)t=n[s],t.index=s,"object"!=typeof t.source&&(t.source=vn(c,t.source)),"object"!=typeof t.target&&(t.target=vn(c,t.target)),i[t.source.index]=(i[t.source.index]||0)+1,i[t.target.index]=(i[t.target.index]||0)+1;for(s=0,e=new Array(h);s<h;++s)t=n[s],e[s]=i[t.source.index]/(i[t.source.index]+i[t.target.index]);u=new Array(h);a();f=new Array(h);v()}}function a(){if(r)for(var t=0,i=n.length;t<i;++t)u[t]=+s(n[t],t,n)}function v(){if(r)for(var t=0,i=n.length;t<i;++t)f[t]=+h(n[t],t,n)}var u,f,r,i,e,o=gkt,s=y,h=ft(30),c=1;return null==n&&(n=[]),t.initialize=function(n){r=n;l()},t.links=function(i){return arguments.length?(n=i,l(),t):n},t.id=function(n){return arguments.length?(o=n,t):o},t.iterations=function(n){return arguments.length?(c=+n,t):c},t.strength=function(n){return arguments.length?(s="function"==typeof n?n:ft(+n),a(),t):s},t.distance=function(n){return arguments.length?(h="function"==typeof n?n:ft(+n),v(),t):h},t},uai=10,fai=Math.PI*(3-Math.sqrt(5)),eai=function(n){function c(){l();e.call("tick",t);i<u&&(h.stop(),e.call("end",t))}function l(){var u,t,e=n.length;for(i+=(s-i)*o,r.each(function(n){n(i)}),u=0;u<e;++u)t=n[u],null==t.fx?t.x+=t.vx*=f:(t.x=t.fx,t.vx=0),null==t.fy?t.y+=t.vy*=f:(t.y=t.fy,t.vy=0)}function a(){for(var t,r,u,i=0,f=n.length;i<f;++i)(t=n[i],t.index=i,isNaN(t.x)||isNaN(t.y))&&(r=uai*Math.sqrt(i),u=i*fai,t.x=r*Math.cos(u),t.y=r*Math.sin(u)),(isNaN(t.vx)||isNaN(t.vy))&&(t.vx=t.vy=0)}function v(t){return t.initialize&&t.initialize(n),t}var t,i=1,u=.001,o=1-Math.pow(u,1/300),s=0,f=.6,r=ui(),h=ws(c),e=ki("tick","end");return null==n&&(n=[]),a(),t={tick:l,restart:function(){return h.restart(c),t},stop:function(){return h.stop(),t},nodes:function(i){return arguments.length?(n=i,a(),r.each(v),t):n},alpha:function(n){return arguments.length?(i=+n,t):i},alphaMin:function(n){return arguments.length?(u=+n,t):u},alphaDecay:function(n){return arguments.length?(o=+n,t):+o},alphaTarget:function(n){return arguments.length?(s=+n,t):s},velocityDecay:function(n){return arguments.length?(f=1-n,t):1-f},force:function(n,i){return arguments.length>1?(null==i?r.remove(n):r.set(n,v(i)),t):r.get(n)},find:function(t,i,r){var e,o,s,u,h,f=0,c=n.length;for(null==r?r=1/0:r*=r,f=0;f<c;++f)u=n[f],e=t-u.x,o=i-u.y,s=e*e+o*o,s<r&&(h=u,r=s);return h},on:function(n,i){return arguments.length>1?(e.on(n,i),t):e.on(n)}}},oai=function(){function n(n){var r,f=i.length,e=ds(i,ndt,tdt).visitAfter(c);for(u=n,r=0;r<f;++r)t=i[r],e.visit(l)}function h(){if(i){var n,t,r=i.length;for(f=new Array(r),n=0;n<r;++n)t=i[n],f[t.index]=+o(t,n,i)}}function c(n){var t,r,e,o,u,i=0;if(n.length){for(e=o=u=0;u<4;++u)(t=n[u])&&(r=t.value)&&(i+=r,e+=r*t.x,o+=r*t.y);n.x=e/i;n.y=o/i}else{t=n;t.x=t.data.x;t.y=t.data.y;do i+=f[t.data.index];while(t=t.next)}n.value=i}function l(n,i,o,h){if(!n.value)return!0;var l=n.x-t.x,a=n.y-t.y,v=h-i,c=l*l+a*a;if(v*v/s<c)return c<e&&(0===l&&(l=er(),c+=l*l),0===a&&(a=er(),c+=a*a),c<r&&(c=Math.sqrt(r*c)),t.vx+=l*n.value*u/c,t.vy+=a*n.value*u/c),!0;if(!(n.length||c>=e)){(n.data!==t||n.next)&&(0===l&&(l=er(),c+=l*l),0===a&&(a=er(),c+=a*a),c<r&&(c=Math.sqrt(r*c)));do n.data!==t&&(v=f[n.data.index]*u/c,t.vx+=l*v,t.vy+=a*v);while(n=n.next)}}var i,t,u,f,o=ft(-30),r=1,e=1/0,s=.81;return n.initialize=function(n){i=n;h()},n.strength=function(t){return arguments.length?(o="function"==typeof t?t:ft(+t),h(),n):o},n.distanceMin=function(t){return arguments.length?(r=t*t,n):Math.sqrt(r)},n.distanceMax=function(t){return arguments.length?(e=t*t,n):Math.sqrt(e)},n.theta=function(t){return arguments.length?(s=t*t,n):Math.sqrt(s)},n},sai=function(n){function i(n){for(var r,i=0,e=t.length;i<e;++i)r=t[i],r.vx+=(f[i]-r.x)*u[i]*n}function r(){if(t){var i,r=t.length;for(u=new Array(r),f=new Array(r),i=0;i<r;++i)u[i]=isNaN(f[i]=+n(t[i],i,t))?0:+e(t[i],i,t)}}var t,u,f,e=ft(.1);return"function"!=typeof n&&(n=ft(null==n?0:+n)),i.initialize=function(n){t=n;r()},i.strength=function(n){return arguments.length?(e="function"==typeof n?n:ft(+n),r(),i):e},i.x=function(t){return arguments.length?(n="function"==typeof t?t:ft(+t),r(),i):n},i},hai=function(n){function i(n){for(var r,i=0,e=t.length;i<e;++i)r=t[i],r.vy+=(f[i]-r.y)*u[i]*n}function r(){if(t){var i,r=t.length;for(u=new Array(r),f=new Array(r),i=0;i<r;++i)u[i]=isNaN(f[i]=+n(t[i],i,t))?0:+e(t[i],i,t)}}var t,u,f,e=ft(.1);return"function"!=typeof n&&(n=ft(null==n?0:+n)),i.initialize=function(n){t=n;r()},i.strength=function(n){return arguments.length?(e="function"==typeof n?n:ft(+n),r(),i):e},i.y=function(t){return arguments.length?(n="function"==typeof t?t:ft(+t),r(),i):n},i},cl=function(n,t){if((r=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0)return null;var r,i=n.slice(0,r);return[i.length>1?i[0]+i.slice(2):i,+n.slice(r+1)]},vf=function(n){return n=cl(Math.abs(n)),n?n[1]:NaN},cai=function(n,t){return function(i,r){for(var f=i.length,o=[],s=0,u=n[0],e=0;f>0&&u>0&&(e+u+1>r&&(u=Math.max(1,r-e)),o.push(i.substring(f-=u,f+u)),!((e+=u+1)>r));)u=n[s=(s+1)%n.length];return o.reverse().join(t)}},lai=function(n,t){n=n.toPrecision(t);n:for(var u,f=n.length,r=1,i=-1;r<f;++r)switch(n[r]){case".":i=u=r;break;case"0":0===i&&(i=r);u=r;break;case"e":break n;default:i>0&&(i=0)}return i>0?n.slice(0,i)+n.slice(u+1):n},aai=function(n,t){var u=cl(n,t);if(!u)return n+"";var r=u[0],e=u[1],i=e-(tst=3*Math.max(-8,Math.min(8,Math.floor(e/3))))+1,f=r.length;return i===f?r:i>f?r+new Array(i-f+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+cl(n,Math.max(0,t+i-1))[0]},ist=function(n,t){var u=cl(n,t),i,r;return u?(i=u[0],r=u[1],r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")):n+""},rst={"":lai,"%":function(n,t){return(100*n).toFixed(t)},b:function(n){return Math.round(n).toString(2)},c:function(n){return n+""},d:function(n){return Math.round(n).toString(10)},e:function(n,t){return n.toExponential(t)},f:function(n,t){return n.toFixed(t)},g:function(n,t){return n.toPrecision(t)},o:function(n){return Math.round(n).toString(8)},p:function(n,t){return ist(100*n,t)},r:ist,s:aai,X:function(n){return Math.round(n).toString(16).toUpperCase()},x:function(n){return Math.round(n).toString(16)}},vai=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i,ll=function(n){return new yn(n)};yn.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};kb=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];db=function(n){function t(n){function h(n){var k,tt,o,d=p,r=w,g,nt,h;if("c"===t)r=a(n)+r,n="";else{if(n=+n,g=(n<0||1/n<0)&&(n*=-1,!0),n=a(n,e),g)for(k=-1,tt=n.length,g=!1;++k<tt;)if(o=n.charCodeAt(k),48<o&&o<58||"x"===t&&96<o&&o<103||"X"===t&&64<o&&o<71){g=!0;break}if(d=(g?"("===u?u:"-":"-"===u||"("===u?"":u)+d,r=r+("s"===t?kb[8+tst/3]:"")+(g&&"("===u?")":""),b)for(k=-1,tt=n.length;++k<tt;)if(o=n.charCodeAt(k),48>o||o>57){r=(46===o?f+n.slice(k+1):n.slice(k))+r;n=n.slice(0,k);break}}l&&!c&&(n=i(n,1/0));nt=d.length+n.length+r.length;h=nt<s?new Array(s-nt+1).join(v):"";switch(l&&c&&(n=i(h+n,h.length?s-r.length:1/0),h=""),y){case"<":return d+n+r+h;case"=":return d+h+n+r;case"^":return h.slice(0,nt=h.length>>1)+d+n+r+h.slice(nt)}return h+d+n+r}n=ll(n);var v=n.fill,y=n.align,u=n.sign,o=n.symbol,c=n.zero,s=n.width,l=n.comma,e=n.precision,t=n.type,p="$"===o?r[0]:"#"===o&&/[boxX]/.test(t)?"0"+t.toLowerCase():"",w="$"===o?r[1]:/[%p]/.test(t)?"%":"",a=rst[t],b=!t||/[defgprs%]/.test(t);return e=null==e?t?6:12:/[gprs]/.test(t)?Math.max(1,Math.min(21,e)):Math.max(0,Math.min(20,e)),h.toString=function(){return n+""},h}function u(n,i){var u=t((n=ll(n),n.type="f",n)),r=3*Math.max(-8,Math.min(8,Math.floor(vf(i)/3))),f=Math.pow(10,-r),e=kb[8+r/3];return function(n){return u(f*n)+e}}var i=n.grouping&&n.thousands?cai(n.grouping,n.thousands):idt,r=n.currency,f=n.decimal;return{format:t,formatPrefix:u}};pn({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var ust=function(n){return Math.max(0,-vf(Math.abs(n)))},fst=function(n,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(vf(t)/3)))-vf(Math.abs(n)))},est=function(n,t){return n=Math.abs(n),t=Math.abs(t)-n,Math.max(0,vf(t)-vf(n))+1},eu=function(){return new gs};gs.prototype={constructor:gs,reset:function(){this.s=this.t=0},add:function(n){wn(gl,n,this.t);wn(this,gl.s,this.s);this.s?this.t+=gl.t:this.s=gl.t},valueOf:function(){return this.s}};var ost,sst,gb,nk,tk,a,ni,v,ei,ou,hst,cst,yf,su,or,vo,vl,yl,pl,wl,bl,kl,dl,ik,rk,uk,lst,ast,d,g,nt,gl=new gs,r=1e-6,vst=1e-12,e=Math.PI,y=e/2,na=e/4,st=2*e,c=180/e,u=e/180,o=Math.abs,pf=Math.atan,tt=Math.atan2,i=Math.cos,ta=Math.ceil,yst=Math.exp,ia=Math.log,fk=Math.pow,t=Math.sin,yo=Math.sign||function(n){return n>0?1:n<0?-1:0},b=Math.sqrt,ek=Math.tan,pst={Feature:function(n,t){nh(n.geometry,t)},FeatureCollection:function(n,t){for(var i=n.features,r=-1,u=i.length;++r<u;)nh(i[r].geometry,t)}},wst={Sphere:function(n,t){t.sphere()},Point:function(n,t){n=n.coordinates;t.point(n[0],n[1],n[2])},MultiPoint:function(n,t){for(var i=n.coordinates,r=-1,u=i.length;++r<u;)n=i[r],t.point(n[0],n[1],n[2])},LineString:function(n,t){fy(n.coordinates,t,0)},MultiLineString:function(n,t){for(var i=n.coordinates,r=-1,u=i.length;++r<u;)fy(i[r],t,0)},Polygon:function(n,t){kn(n.coordinates,t)},MultiPolygon:function(n,t){for(var i=n.coordinates,r=-1,u=i.length;++r<u;)kn(i[r],t)},GeometryCollection:function(n,t){for(var i=n.geometries,r=-1,u=i.length;++r<u;)nh(i[r],t)}},oi=function(n,t){n&&pst.hasOwnProperty(n.type)?pst[n.type](n,t):nh(n,t)},ra=eu(),ua=eu(),si={point:l,lineStart:l,lineEnd:l,polygonStart:function(){ra.reset();si.lineStart=rdt;si.lineEnd=udt},polygonEnd:function(){var n=+ra;ua.add(n<0?st+n:n);this.lineStart=this.lineEnd=this.point=l},sphere:function(){ua.add(st)}},yai=function(n){return ua.reset(),oi(n,si),2*ua},po=eu(),pi={point:fh,lineStart:ntt,lineEnd:ttt,polygonStart:function(){pi.point=itt;pi.lineStart=edt;pi.lineEnd=odt;po.reset();si.polygonStart()},polygonEnd:function(){si.polygonEnd();pi.point=fh;pi.lineStart=ntt;pi.lineEnd=ttt;ra<0?(a=-(v=180),ni=-(ei=90)):po>r?ei=90:po<-r&&(ni=-90);or[0]=a;or[1]=v}},pai=function(n){var r,u,t,i,f,e,o;if(ei=v=-(a=ni=1/0),su=[],oi(n,pi),u=su.length){for(su.sort(sdt),r=1,t=su[0],f=[t];r<u;++r)i=su[r],rtt(t,i[0])||rtt(t,i[1])?(ht(t[0],i[1])>ht(t[0],t[1])&&(t[1]=i[1]),ht(i[0],t[1])>ht(t[0],t[1])&&(t[0]=i[0])):f.push(t=i);for(e=-(1/0),u=f.length-1,r=0,t=f[u];r<=u;t=i,++r)i=f[r],(o=ht(t[1],i[0]))>e&&(e=o,a=i[0],v=t[1])}return su=or=null,a===1/0||ni===1/0?[[NaN,NaN],[NaN,NaN]]:[[a,ni],[v,ei]]},ti={sphere:l,point:oy,lineStart:utt,lineEnd:ftt,polygonStart:function(){ti.lineStart=ldt;ti.lineEnd=adt},polygonEnd:function(){ti.lineStart=utt;ti.lineEnd=ftt}},wai=function(n){vo=vl=yl=pl=wl=bl=kl=dl=ik=rk=uk=0;oi(n,ti);var t=ik,i=rk,u=uk,f=t*t+i*i+u*u;return f<vst&&(t=bl,i=kl,u=dl,vl<r&&(t=yl,i=pl,u=wl),f=t*t+i*i+u*u,f<vst)?[NaN,NaN]:[tt(i,t)*c,yt(u/b(f))*c]},wf=function(n){return function(){return n}},bst=function(n,t){function i(i,r){return i=n(i,r),t(i[0],i[1])}return n.invert&&t.invert&&(i.invert=function(i,r){return i=t.invert(i,r),i&&n.invert(i[0],i[1])}),i};sy.invert=sy;var ok,fa,ea,kst,dst,sk,hk,gst,nht,hi,ci,bai=function(n){function t(t){return t=n(t[0]*u,t[1]*u),t[0]*=c,t[1]*=c,t}return n=hy(n[0]*u,n[1]*u,n.length>2?n[2]*u:0),t.invert=function(t){return t=n.invert(t[0]*u,t[1]*u),t[0]*=c,t[1]*=c,t},t},kai=function(){function o(n,r){t.push(n=i(n,r));n[0]*=c;n[1]*=c}function n(){var n=r.apply(this,arguments),o=f.apply(this,arguments)*u,h=e.apply(this,arguments)*u;return t=[],i=hy(-n[0]*u,-n[1]*u,0).invert,ctt(s,o,h,1),n={type:"Polygon",coordinates:[t]},t=i=null,n}var t,i,r=wf([0,0]),f=wf(90),e=wf(6),s={point:o};return n.center=function(t){return arguments.length?(r="function"==typeof t?t:wf([+t[0],+t[1]]),n):r},n.radius=function(t){return arguments.length?(f="function"==typeof t?t:wf(+t),n):f},n.precision=function(t){return arguments.length?(e="function"==typeof t?t:wf(+t),n):e},n},tht=function(){var t,n=[];return{point:function(n,i){t.push([n,i])},lineStart:function(){n.push(t=[])},lineEnd:l,rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))},result:function(){var i=n;return n=[],t=null,i}}},dai=function(n,t,i,r,u,f){var e,l=n[0],a=n[1],v=t[0],y=t[1],o=0,s=1,h=v-l,c=y-a;if(e=i-l,h||!(e>0)){if(e/=h,h<0){if(e<o)return;e<s&&(s=e)}else if(h>0){if(e>s)return;e>o&&(o=e)}if(e=u-l,h||!(e<0)){if(e/=h,h<0){if(e>s)return;e>o&&(o=e)}else if(h>0){if(e<o)return;e<s&&(s=e)}if(e=r-a,c||!(e>0)){if(e/=c,c<0){if(e<o)return;e<s&&(s=e)}else if(c>0){if(e>s)return;e>o&&(o=e)}if(e=f-a,c||!(e<0)){if(e/=c,c<0){if(e>s)return;e>o&&(o=e)}else if(c>0){if(e<o)return;e<s&&(s=e)}return o>0&&(n[0]=l+o*h,n[1]=a+o*c),s<1&&(t[0]=l+s*h,t[1]=a+s*c),!0}}}}},oa=function(n,t){return o(n[0]-t[0])<r&&o(n[1]-t[1])<r},iht=function(n,t,i,r,u){var e,l,h=[],s=[],o,a,v,f,c;if(n.forEach(function(n){if(!((r=n.length-1)<=0)){var r,t,i=n[0],f=n[r];if(oa(i,f)){for(u.lineStart(),e=0;e<r;++e)u.point((i=n[e])[0],i[1]);return void u.lineEnd()}h.push(t=new eh(i,n,null,!0));s.push(t.o=new eh(i,null,t,!1));h.push(t=new eh(f,n,null,!1));s.push(t.o=new eh(f,null,t,!0))}}),h.length){for(s.sort(t),att(h),att(s),e=0,l=s.length;e<l;++e)s[e].e=i=!i;for(v=h[0];;){for(f=v,c=!0;f.v;)if((f=f.n)===v)return;o=f.z;u.lineStart();do{if(f.v=f.o.v=!0,f.e){if(c)for(e=0,l=o.length;e<l;++e)u.point((a=o[e])[0],a[1]);else r(f.x,f.n.x,1,u);f=f.n}else{if(c)for(o=f.p.z,e=o.length-1;e>=0;--e)u.point((a=o[e])[0],a[1]);else r(f.x,f.p.x,-1,u);f=f.p}f=f.o;o=f.z;c=!c}while(!f.v);u.lineEnd()}}},wo=1e9,sa=-wo,gai=function(){var n,t,e,i=0,r=0,u=960,f=500;return e={stream:function(e){return n&&t===e?n:n=cy(i,r,u,f)(t=e)},extent:function(o){return arguments.length?(i=+o[0][0],r=+o[0][1],u=+o[1][0],f=+o[1][1],n=t=null,e):[[i,r],[u,f]]}}},ck=eu(),bf={sphere:l,point:l,lineStart:ydt,lineEnd:l,polygonStart:l,polygonEnd:l},rht=function(n){return ck.reset(),oi(n,bf),+ck},lk=[null,null],nvi={type:"LineString",coordinates:lk},tvi=function(n,t){return lk[0]=n,lk[1]=t,rht(nvi)},ivi=function(n,r){var e=n[0]*u,o=n[1]*u,s=r[0]*u,h=r[1]*u,l=i(o),p=t(o),a=i(h),w=t(h),k=l*i(e),d=l*t(e),g=a*i(s),nt=a*t(s),f=2*yt(b(bn(h-o)+l*a*bn(s-e))),v=t(f),y=f?function(n){var i=t(n*=f)/v,r=t(f-n)/v,u=r*k+i*g,e=r*d+i*nt,o=r*p+i*w;return[tt(e,u)*c,tt(o,b(u*u+e*e))*c]}:function(){return[e*c,o*c]};return y.distance=f,y},hu=function(n){return n},ak=eu(),vk=eu(),wi={point:l,lineStart:l,lineEnd:l,polygonStart:function(){wi.lineStart=ddt;wi.lineEnd=ngt},polygonEnd:function(){wi.lineStart=wi.lineEnd=wi.point=l;ak.add(o(vk));vk.reset()},result:function(){var n=ak/2;return ak.reset(),n}},kf=1/0,ha=kf,bo=-kf,ca=bo,la={point:tgt,lineStart:l,lineEnd:l,polygonStart:l,polygonEnd:l,result:function(){var n=[[kf,ha],[bo,ca]];return bo=ca=-(ha=kf=1/0),n}},yk=0,pk=0,ko=0,aa=0,va=0,df=0,wk=0,bk=0,go=0,pt={point:dr,lineStart:btt,lineEnd:ktt,polygonStart:function(){pt.lineStart=ugt;pt.lineEnd=fgt},polygonEnd:function(){pt.point=dr;pt.lineStart=btt;pt.lineEnd=ktt},result:function(){var n=go?[wk/go,bk/go]:df?[aa/df,va/df]:ko?[yk/ko,pk/ko]:[NaN,NaN];return yk=pk=ko=aa=va=df=wk=bk=go=0,n}};gtt.prototype={_radius:4.5,pointRadius:function(n){return this._radius=n,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath();this._point=NaN},point:function(n,t){switch(this._point){case 0:this._context.moveTo(n,t);this._point=1;break;case 1:this._context.lineTo(n,t);break;default:this._context.moveTo(n+this._radius,t);this._context.arc(n,t,this._radius,0,st)}},result:l};nit.prototype={_circle:tit(4.5),pointRadius:function(n){return this._circle=tit(n),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z");this._point=NaN},point:function(n,t){switch(this._point){case 0:this._string.push("M",n,",",t);this._point=1;break;case 1:this._string.push("L",n,",",t);break;default:this._string.push("M",n,",",t,this._circle)}},result:function(){if(this._string.length){var n=this._string.join("");return this._string=[],n}}};var rvi=function(n,t){function i(n){return n&&("function"==typeof u&&r.pointRadius(+u.apply(this,arguments)),oi(n,f(r))),r.result()}var f,r,u=4.5;return i.area=function(n){return oi(n,f(wi)),wi.result()},i.bounds=function(n){return oi(n,f(la)),la.result()},i.centroid=function(n){return oi(n,f(pt)),pt.result()},i.projection=function(t){return arguments.length?(f=null==t?(n=null,hu):(n=t).stream,i):n},i.context=function(n){return arguments.length?(r=null==n?(t=null,new nit):new gtt(t=n),"function"!=typeof u&&r.pointRadius(u),i):t},i.pointRadius=function(n){return arguments.length?(u="function"==typeof n?n:(r.pointRadius(+n),+n),i):u},i.projection(n).context(t)},kk=eu(),uvi=function(n,u){var s=u[0],rt=u[1],pt=[t(s),-i(s),0],v=0,ut=0,h,ft,o,nt,it;for(kk.reset(),h=0,ft=n.length;h<ft;++h)if(p=(y=n[h]).length)for(var y,p,c=y[p-1],w=c[0],et=c[1]/2+na,ot=t(et),ht=i(et),b=0;b<p;++b,w=k,ot=lt,ht=at,c=l){var l=y[b],k=l[0],ct=l[1]/2+na,lt=t(ct),at=i(ct),f=k-w,d=f>=0?1:-1,g=d*f,a=g>e,vt=ot*lt;(kk.add(tt(vt*d*t(g),ht*at+vt*i(g))),v+=a?f+d*st:f,a^w>=s^k>=s)&&(o=pu(kr(c),kr(l)),uh(o),nt=pu(pt,o),uh(nt),it=(a^f>=0?-1:1)*yt(nt[2]),(rt>it||rt===it&&(o[0]||o[1]))&&(ut+=a^f>=0?1:-1))}return(v<-r||v<r&&kk<-r)^1&ut},uht=function(n,t,i,r){return function(u,f){function a(t,i){var r=u(t,i);n(t=r[0],i=r[1])&&f.point(t,i)}function k(n,t){var i=u(n,t);v.point(i[0],i[1])}function y(){e.point=k;v.lineStart()}function p(){e.point=a;v.lineEnd()}function w(n,t){h.push([n,t]);var i=u(n,t);l.point(i[0],i[1])}function d(){l.lineStart();h=[]}function g(){w(h[0][0],h[0][1]);l.lineEnd();var t,r,i,u,e=l.clean(),n=b.result(),a=n.length;if(h.pop(),c.push(h),h=null,a)if(1&e){if(i=n[0],(r=i.length-1)>0){for(o||(f.polygonStart(),o=!0),f.lineStart(),t=0;t<r;++t)f.point((u=i[t])[0],u[1]);f.lineEnd()}}else a>1&&2&e&&n.push(n.pop().concat(n.shift())),s.push(n.filter(ogt))}var c,s,h,v=t(f),nt=u.invert(r[0],r[1]),b=tht(),l=t(b),o=!1,e={point:a,lineStart:y,lineEnd:p,polygonStart:function(){e.point=w;e.lineStart=d;e.lineEnd=g;s=[];c=[]},polygonEnd:function(){e.point=a;e.lineStart=y;e.lineEnd=p;s=tw(s);var n=uvi(c,nt);s.length?(o||(f.polygonStart(),o=!0),iht(s,sgt,n,i,f)):n&&(o||(f.polygonStart(),o=!0),f.lineStart(),i(null,null,1,f),f.lineEnd());o&&(f.polygonEnd(),o=!1);s=c=null},sphere:function(){f.polygonStart();f.lineStart();i(null,null,1,f);f.lineEnd();f.polygonEnd()}};return e}},fht=uht(function(){return!0},hgt,lgt,[-e,-y]),fvi=function(n,t){function l(i,r,u,f){ctt(f,n,t,u,i,r)}function h(n,t){return i(n)*i(t)>u}function a(n){var t,l,i,o,u;return{lineStart:function(){o=i=!1;u=1},point:function(a,y){var w,p=[a,y],b=h(a,y),d=f?b?0:c(a,y):b?c(a+(a<0?e:-e),y):0,k;(!t&&(o=i=b)&&n.lineStart(),b!==i&&(w=s(t,p),(oa(t,w)||oa(p,w))&&(p[0]+=r,p[1]+=r,b=h(p[0],p[1]))),b!==i)?(u=0,b?(n.lineStart(),w=s(p,t),n.point(w[0],w[1])):(w=s(t,p),n.point(w[0],w[1]),n.lineEnd()),t=w):v&&t&&f^b&&(d&l||!(k=s(p,t,!0))||(u=0,f?(n.lineStart(),n.point(k[0][0],k[0][1]),n.point(k[1][0],k[1][1]),n.lineEnd()):(n.point(k[1][0],k[1][1]),n.lineEnd(),n.lineStart(),n.point(k[0][0],k[0][1]))));!b||t&&oa(t,p)||n.point(p[0],p[1]);t=p;i=b;l=d},lineEnd:function(){i&&n.lineEnd();t=null},clean:function(){return u|(o&&i)<<1}}}function s(n,t,i){var ot=kr(n),st=kr(t),ut=[1,0,0],a=pu(ot,st),ft=ih(a,a),k=a[0],d=ft-k*k,nt,f,rt;if(!d)return!i&&n;var ht=u*ft/d,ct=-u*k/d,lt=pu(ut,a),s=rh(ut,ht),at=rh(a,ct);ey(s,at);var v=lt,p=ih(s,v),g=ih(v,v),et=p*p-g*(ih(s,s)-1);if(!(et<0)){if(nt=b(et),f=rh(v,(-p-nt)/g),ey(f,s),f=th(f),!i)return f;var w,h=n[0],y=t[0],c=n[1],l=t[1];y<h&&(w=h,h=y,y=w);var tt=y-h,it=o(tt-e)<r,vt=it||tt<r;if(!it&&l<c&&(w=c,c=l,l=w),vt?it?c+l>0^f[1]<(o(f[0]-h)<r?c:l):c<=f[1]&&f[1]<=l:tt>e^(h<=f[0]&&f[0]<=y))return rt=rh(v,(-p+nt)/g),ey(rt,s),[f,th(rt)]}}function c(t,i){var u=f?n:e-n,r=0;return t<-u?r|=1:t>u&&(r|=2),i<-u?r|=4:i>u&&(r|=8),r}var u=i(n),f=u>0,v=o(u)>r;return uht(h,a,l,f?[0,-n]:[-e,n-e])},evi=function(n){return{stream:oh(n)}};ly.prototype={constructor:ly,point:function(n,t){this.stream.point(n,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var eht=16,ovi=i(30*u),oht=function(n,t){return+t?vgt(n,t):agt(n)},svi=oh({point:function(n,t){this.stream.point(n*u,t*u)}}),ya=function(){return yy(iit).scale(155.424).center([0,33.6442])},sht=function(){return ya().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])},hvi=function(){function n(n){var t=n[0],r=n[1];return i=null,c.point(t,r),i||(l.point(t,r),i)||(a.point(t,r),i)}function h(){return e=o=null,n}var e,o,c,l,a,i,t=sht(),u=ya().rotate([154,0]).center([-2,58.5]).parallels([55,65]),f=ya().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s={point:function(n,t){i=[n,t]}};return n.invert=function(n){var e=t.scale(),o=t.translate(),i=(n[0]-o[0])/e,r=(n[1]-o[1])/e;return(r>=.12&&r<.234&&i>=-.425&&i<-.214?u:r>=.166&&r<.234&&i>=-.214&&i<-.115?f:t).invert(n)},n.stream=function(n){return e&&o===n?e:e=pgt([t.stream(o=n),u.stream(n),f.stream(n)])},n.precision=function(n){return arguments.length?(t.precision(n),u.precision(n),f.precision(n),h()):t.precision()},n.scale=function(i){return arguments.length?(t.scale(i),u.scale(.35*i),f.scale(i),n.translate(t.translate())):t.scale()},n.translate=function(n){if(!arguments.length)return t.translate();var i=t.scale(),e=+n[0],o=+n[1];return c=t.translate(n).clipExtent([[e-.455*i,o-.238*i],[e+.455*i,o+.238*i]]).stream(s),l=u.translate([e-.307*i,o+.201*i]).clipExtent([[e-.425*i+r,o+.12*i+r],[e-.214*i-r,o+.234*i-r]]).stream(s),a=f.translate([e-.205*i,o+.212*i]).clipExtent([[e-.214*i+r,o+.166*i+r],[e-.115*i-r,o+.234*i-r]]).stream(s),h()},n.fitExtent=function(t,i){return sh(n,t,i)},n.fitSize=function(t,i){return ay(n,t,i)},n.scale(1070)},dk=rit(function(n){return b(2/(1+n))});dk.invert=ae(function(n){return 2*yt(n/2)});hht=function(){return tr(dk).scale(124.75).clipAngle(179.999)};pa=rit(function(n){return(n=uy(n))&&n/t(n)});pa.invert=ae(function(n){return n});cht=function(){return tr(pa).scale(79.4188).clipAngle(179.999)};hh.invert=function(n,t){return[n,2*pf(yst(t))-y]};lht=function(){return uit(hh).scale(961/st)};aht=function(){return yy(fit).scale(109.5).parallels([30,30])};ve.invert=ve;vht=function(){return tr(ve).scale(152.63)};yht=function(){return yy(eit).scale(131.154).center([0,13.9389])};py.invert=ae(pf);pht=function(){return tr(py).scale(144.049).clipAngle(60)};wht=function(){function t(){return o=v=null,s}var c,l,a,o,v,s,n=1,i=0,r=0,u=1,f=1,e=hu,h=null,y=hu;return s={stream:function(n){return o&&v===n?o:o=e(y(v=n))},clipExtent:function(n){return arguments.length?(y=null==n?(h=c=l=a=null,hu):cy(h=+n[0][0],c=+n[0][1],l=+n[1][0],a=+n[1][1]),t()):null==h?null:[[h,c],[l,a]]},scale:function(o){return arguments.length?(e=lh((n=+o)*u,n*f,i,r),t()):n},translate:function(o){return arguments.length?(e=lh(n*u,n*f,i=+o[0],r=+o[1]),t()):[i,r]},reflectX:function(o){return arguments.length?(e=lh(n*(u=o?-1:1),n*f,i,r),t()):u<0},reflectY:function(o){return arguments.length?(e=lh(n*u,n*(f=o?-1:1),i,r),t()):f<0},fitExtent:function(n,t){return sh(s,n,t)},fitSize:function(n,t){return ay(s,n,t)}}};wy.invert=ae(yt);bht=function(){return tr(wy).scale(249.5).clipAngle(90+r)};by.invert=ae(function(n){return 2*pf(n)});kht=function(){return tr(by).scale(250).clipAngle(142)};ky.invert=function(n,t){return[-t,2*pf(yst(n))-y]};var cvi=function(){var n=uit(ky),i=n.center,t=n.rotate;return n.center=function(n){return arguments.length?i([-n[1],n[0]]):(n=i(),[n[1],-n[0]])},n.rotate=function(n){return arguments.length?t([n[0],n[1],n.length>2?n[2]+90:90]):(n=t(),[n[0],n[1],n[2]-90])},t([0,0,90]).scale(159.155)},lvi=function(){function n(n){var f,h=0;n.eachAfter(function(n){var t=n.children;t?(n.x=bgt(t),n.y=dgt(t)):(n.x=f?h+=r(n,f):0,n.y=0,f=n)});var e=nnt(n),o=tnt(n),s=e.x-r(e,o)/2,c=o.x+r(o,e)/2;return n.eachAfter(u?function(r){r.x=(r.x-n.x)*t;r.y=(n.y-r.y)*i}:function(r){r.x=(r.x-s)/(c-s)*t;r.y=(1-(n.y?r.y/n.y:1))*i})}var r=wgt,t=1,i=1,u=!1;return n.separation=function(t){return arguments.length?(r=t,n):r},n.size=function(r){return arguments.length?(u=!1,t=+r[0],i=+r[1],n):u?null:[t,i]},n.nodeSize=function(r){return arguments.length?(u=!0,t=+r[0],i=+r[1],n):u?[t,i]:null},n},avi=function(){return this.eachAfter(int)},vvi=function(n){var f,u,t,e,i=this,r=[i];do for(f=r.reverse(),r=[];i=f.pop();)if(n(i),u=i.children)for(t=0,e=u.length;t<e;++t)r.push(u[t]);while(r.length);return this},yvi=function(n){for(var r,t,i=this,u=[i];i=u.pop();)if(n(i),r=i.children)for(t=r.length-1;t>=0;--t)u.push(r[t]);return this},pvi=function(n){for(var r,i,u,t=this,f=[t],e=[];t=f.pop();)if(e.push(t),r=t.children)for(i=0,u=r.length;i<u;++i)f.push(r[i]);for(;t=e.pop();)n(t);return this},wvi=function(n){return this.eachAfter(function(t){for(var r=+n(t.data)||0,i=t.children,u=i&&i.length;--u>=0;)r+=i[u].value;t.value=r})},bvi=function(n){return this.eachBefore(function(t){t.children&&t.children.sort(n)})},kvi=function(n){for(var u,t=this,r=rnt(t,n),i=[t];t!==r;)t=t.parent,i.push(t);for(u=i.length;n!==r;)i.splice(u,0,n),n=n.parent;return i},dvi=function(){for(var n=this,t=[n];n=n.parent;)t.push(n);return t},gvi=function(){var n=[];return this.each(function(t){n.push(t)}),n},nyi=function(){var n=[];return this.eachBefore(function(t){t.children||n.push(t)}),n},tyi=function(){var n=this,t=[];return n.each(function(i){i!==n&&t.push({source:i.parent,target:i})}),t};wu.prototype=dy.prototype={constructor:wu,count:avi,each:vvi,eachAfter:pvi,eachBefore:yvi,sum:wvi,sort:bvi,path:kvi,ancestors:dvi,descendants:gvi,leaves:nyi,links:tyi,copy:unt};var iyi=function(n){for(var u,f,i=(n=n.slice()).length,r=null,t=r;i;)u=new ont(n[i-1]),t=t?t.next=u:r=u,n[f]=n[--i];return{head:r,tail:t}},dht=function(n){return sit(iyi(n),[])},ryi=function(n){return vit(n),n},gf=function(n){return function(){return n}},uyi=function(){function n(n){return n.x=t/2,n.y=i/2,r?n.eachBefore(yit(r)).eachAfter(gy(u,.5)).eachBefore(pit(1)):n.eachBefore(yit(vnt)).eachAfter(gy(gr,1)).eachAfter(gy(u,n.r/Math.min(t,i))).eachBefore(pit(Math.min(t,i)/(2*n.r))),n}var r=null,t=1,i=1,u=gr;return n.radius=function(t){return arguments.length?(r=ant(t),n):r},n.size=function(r){return arguments.length?(t=+r[0],i=+r[1],n):[t,i]},n.padding=function(t){return arguments.length?(u="function"==typeof t?t:gf(+t),n):u},n},ght=function(n){n.x0=Math.round(n.x0);n.y0=Math.round(n.y0);n.x1=Math.round(n.x1);n.y1=Math.round(n.y1)},ns=function(n,t,i,r,u){for(var f,e=n.children,o=-1,s=e.length,h=n.value&&(r-t)/n.value;++o<s;)f=e[o],f.y0=i,f.y1=u,f.x0=t,f.x1=t+=f.value*h},fyi=function(){function n(n){var e=n.height+1;return n.x0=n.y0=t,n.x1=r,n.y1=i/e,n.eachBefore(f(i,e)),u&&n.eachBefore(ght),n}function f(n,i){return function(r){r.children&&ns(r,r.x0,n*(r.depth+1)/i,r.x1,n*(r.depth+2)/i);var u=r.x0,f=r.y0,e=r.x1-t,o=r.y1-t;e<u&&(u=e=(u+e)/2);o<f&&(f=o=(f+o)/2);r.x0=u;r.y0=f;r.x1=e;r.y1=o}}var r=1,i=1,t=0,u=!1;return n.round=function(t){return arguments.length?(u=!!t,n):u},n.size=function(t){return arguments.length?(r=+t[0],i=+t[1],n):[r,i]},n.padding=function(i){return arguments.length?(t=+i,n):t},n},nct="$",eyi={depth:-1},tct={},oyi=function(){function n(n){for(var h,e,o,f,u,c,s=n.length,a=new Array(s),l={},r=0;r<s;++r)h=n[r],f=a[r]=new wu(h),null!=(u=t(h,r,n))&&(u+="")&&(c=nct+(f.id=u),l[c]=c in l?tct:f);for(r=0;r<s;++r)if(f=a[r],u=i(n[r],r,n),null!=u&&(u+="")){if(o=l[nct+u],!o)throw new Error("missing: "+u);if(o===tct)throw new Error("ambiguous: "+u);o.children?o.children.push(f):o.children=[f];f.parent=o}else{if(e)throw new Error("multiple roots");e=f}if(!e)throw new Error("no root");if(e.parent=eyi,e.eachBefore(function(n){n.depth=n.parent.depth+1;--s}).eachBefore(oit),e.parent=null,s>0)throw new Error("cycle");return e}var t=ynt,i=pnt;return n.id=function(i){return arguments.length?(t=vh(i),n):t},n.parentId=function(t){return arguments.length?(i=vh(t),n):i},n};yh.prototype=Object.create(wu.prototype);var syi=function(){function n(n){var c=gnt(n);if(c.eachAfter(f),c.parent.m=-c.z,c.eachBefore(e),u)n.eachBefore(s);else{var o=n,h=n,l=n;n.eachBefore(function(n){n.x<o.x&&(o=n);n.x>h.x&&(h=n);n.depth>l.depth&&(l=n)});var a=o===h?1:t(o,h)/2,v=a-o.x,y=i/(h.x+a+v),p=r/(l.depth||1);n.eachBefore(function(n){n.x=(n.x+v)*y;n.y=n.depth*p})}return n}function f(n){var r=n.children,f=n.parent.children,i=n.i?f[n.i-1]:null,u;r?(knt(n),u=(r[0].z+r[r.length-1].z)/2,i?(n.z=i.z+t(n._,i._),n.m=n.z-u):n.z=u):i&&(n.z=i.z+t(n._,i._));n.parent.A=o(n,i,n.parent.A||f[0])}function e(n){n._.x=n.z+n.parent.m;n.m+=n.parent.m}function o(n,i,r){if(i){for(var s,u=n,e=n,f=i,o=u.parent.children[0],h=u.m,c=e.m,l=f.m,a=o.m;f=tp(f),u=np(u),f&&u;)o=np(o),e=tp(e),e.a=n,s=f.z+l-u.z-h+t(f._,u._),s>0&&(bnt(dnt(f,n,r),n,s),h+=s,c+=s),l+=f.m,h+=u.m,a+=o.m,c+=e.m;f&&!tp(e)&&(e.t=f,e.m+=l-c);u&&!np(o)&&(o.t=u,o.m+=h-a,r=n)}return r}function s(n){n.x*=i;n.y=n.depth*r}var t=wnt,i=1,r=1,u=null;return n.separation=function(i){return arguments.length?(t=i,n):t},n.size=function(t){return arguments.length?(u=!1,i=+t[0],r=+t[1],n):u?null:[i,r]},n.nodeSize=function(t){return arguments.length?(u=!0,i=+t[0],r=+t[1],n):u?[i,r]:null},n},wa=function(n,t,i,r,u){for(var f,e=n.children,o=-1,s=e.length,h=n.value&&(u-i)/n.value;++o<s;)f=e[o],f.x0=t,f.x1=r,f.y0=i,f.y1=i+=f.value*h},ict=(1+Math.sqrt(5))/2,rct=function n(t){function i(n,i,r,u,f){wit(t,n,i,r,u,f)}return i.ratio=function(t){return n((t=+t)>1?t:1)},i}(ict),hyi=function(){function n(n){return n.x0=n.y0=0,n.x1=r,n.y1=u,n.eachBefore(l),f=[0],i&&n.eachBefore(ght),n}function l(n){var i=f[n.depth],r=n.x0+i,u=n.y0+i,l=n.x1-i,a=n.y1-i;l<r&&(r=l=(r+l)/2);a<u&&(u=a=(u+a)/2);n.x0=r;n.y0=u;n.x1=l;n.y1=a;n.children&&(i=f[n.depth+1]=e(n)/2,r+=c(n)-i,u+=o(n)-i,l-=s(n)-i,a-=h(n)-i,l<r&&(r=l=(r+l)/2),a<u&&(u=a=(u+a)/2),t(n,r,u,l,a))}var t=rct,i=!1,r=1,u=1,f=[0],e=gr,o=gr,s=gr,h=gr,c=gr;return n.round=function(t){return arguments.length?(i=!!t,n):i},n.size=function(t){return arguments.length?(r=+t[0],u=+t[1],n):[r,u]},n.tile=function(i){return arguments.length?(t=vh(i),n):t},n.padding=function(t){return arguments.length?n.paddingInner(t).paddingOuter(t):n.paddingInner()},n.paddingInner=function(t){return arguments.length?(e="function"==typeof t?t:gf(+t),n):e},n.paddingOuter=function(t){return arguments.length?n.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):n.paddingTop()},n.paddingTop=function(t){return arguments.length?(o="function"==typeof t?t:gf(+t),n):o},n.paddingRight=function(t){return arguments.length?(s="function"==typeof t?t:gf(+t),n):s},n.paddingBottom=function(t){return arguments.length?(h="function"==typeof t?t:gf(+t),n):h},n.paddingLeft=function(t){return arguments.length?(c="function"==typeof t?t:gf(+t),n):c},n},cyi=function(n,t,i,r,u){function f(n,t,i,r,u,e,h){var a,y,l,v,w,b;if(n>=t-1)return a=s[n],a.x0=r,a.y0=u,a.x1=e,a.y1=h,void 0;for(var k=o[n],d=i/2+k,c=n+1,p=t-1;c<p;)y=c+p>>>1,o[y]<d?c=y+1:p=y;l=o[c]-k;v=i-l;h-u>e-r?(w=(u*v+h*l)/i,f(n,c,l,r,u,e,w),f(c,t,v,r,w,e,h)):(b=(r*v+e*l)/i,f(n,c,l,r,u,b,h),f(c,t,v,b,u,e,h))}var e,c,s=n.children,h=s.length,o=new Array(h+1);for(o[0]=c=e=0;e<h;++e)o[e+1]=c+=s[e].value;f(0,h,n.value,t,i,r,u)},lyi=function(n,t,i,r,u){(1&n.depth?wa:ns)(n,t,i,r,u)},ayi=function n(t){function i(n,i,r,u,f){if((o=n._squarify)&&o.ratio===t)for(var o,e,h,s,l,a=-1,v=o.length,c=n.value;++a<v;){for(e=o[a],h=e.children,s=e.value=0,l=h.length;s<l;++s)e.value+=h[s].value;e.dice?ns(e,i,r,u,r+=(f-r)*e.value/c):wa(e,i,r,i+=(u-i)*e.value/c,f);c-=e.value}else n._squarify=o=wit(t,n,i,r,u,f),o.ratio=t}return i.ratio=function(t){return n((t=+t)>1?t:1)},i}(ict),vyi=function(n){for(var i,r=-1,u=n.length,t=n[u-1],f=0;++r<u;)i=t,t=n[r],f+=i[1]*t[0]-i[0]*t[1];return f/2},yyi=function(n){for(var i,u,f=-1,e=n.length,o=0,s=0,t=n[e-1],r=0;++f<e;)i=t,t=n[f],r+=u=i[0]*t[1]-t[0]*i[1],o+=(i[0]+t[0])*u,s+=(i[1]+t[1])*u;return r*=3,[o/r,s/r]},pyi=function(n,t,i){return(t[0]-n[0])*(i[1]-n[1])-(t[1]-n[1])*(i[0]-n[0])},wyi=function(n){var t,r,i,e;if((r=n.length)<3)return null;for(i=new Array(r),e=new Array(r),t=0;t<r;++t)i[t]=[+n[t][0],+n[t][1],t];for(i.sort(nti),t=0;t<r;++t)e[t]=[i[t][0],-i[t][1]];var u=bit(i),f=bit(e),s=f[0]===u[0],h=f[f.length-1]===u[u.length-1],o=[];for(t=u.length-1;t>=0;--t)o.push(n[i[u[t]][2]]);for(t=+s;t<f.length-h;++t)o.push(n[i[f[t]][2]]);return o},byi=function(n,t){for(var u,i,h=n.length,r=n[h-1],l=t[0],f=t[1],c=r[0],e=r[1],o=!1,s=0;s<h;++s)r=n[s],u=r[0],i=r[1],i>f!=e>f&&l<(c-u)*(f-i)/(e-i)+u&&(o=!o),c=u,e=i;return o},kyi=function(n){for(var i,r,e=-1,o=n.length,t=n[o-1],u=t[0],f=t[1],s=0;++e<o;)i=u,r=f,t=n[e],u=t[0],f=t[1],i-=u,r-=f,s+=Math.sqrt(i*i+r*r);return s},dyi=[].slice,gyi={};ip.prototype=dit.prototype={constructor:ip,defer:function(n){if("function"!=typeof n||this._call)throw new Error;if(null!=this._error)return this;var t=dyi.call(arguments,1);return t.push(n),++this._waiting,this._tasks.push(t),kit(this),this},abort:function(){return null==this._error&&rp(this,new Error("abort")),this},await:function(n){if("function"!=typeof n||this._call)throw new Error;return this._call=function(t,i){n.apply(null,[t].concat(i))},ph(this),this},awaitAll:function(n){if("function"!=typeof n||this._call)throw new Error;return this._call=n,ph(this),this}};var npi=function(n,t){return n=null==n?0:+n,t=null==t?1:+t,1===arguments.length?(t=n,n=0):t-=n,function(){return Math.random()*t+n}},uct=function(n,t){var i,r;return n=null==n?0:+n,t=null==t?1:+t,function(){var u;if(null!=i)u=i,i=null;else do i=2*Math.random()-1,u=2*Math.random()-1,r=i*i+u*u;while(!r||r>1);return n+t*u*Math.sqrt(-2*Math.log(r)/r)}},tpi=function(){var n=uct.apply(this,arguments);return function(){return Math.exp(n())}},fct=function(n){return function(){for(var t=0,i=0;i<n;++i)t+=Math.random();return t}},ipi=function(n){var t=fct(n);return function(){return t()/n}},rpi=function(n){return function(){return-Math.log(1-Math.random())/n}},gk=function(n,t){function a(n){var f,t=i.status;if(!t&&uti(i)||t>=200&&t<300||304===t){if(h)try{f=h.call(r,i)}catch(n){return void u.call("error",r,n)}else f=i;u.call("load",r,f)}else u.call("error",r,n)}var r,f,h,o,u=ki("beforesend","progress","load","error"),e=ui(),i=new XMLHttpRequest,c=null,l=null,s=0;if("undefined"==typeof XDomainRequest||"withCredentials"in i||!/^(http(s)?:)?\/\//.test(n)||(i=new XDomainRequest),"onload"in i?i.onload=i.onerror=i.ontimeout=a:i.onreadystatechange=function(n){i.readyState>3&&a(n)},i.onprogress=function(n){u.call("progress",r,n)},r={header:function(n,t){return n=(n+"").toLowerCase(),arguments.length<2?e.get(n):(null==t?e.remove(n):e.set(n,t+""),r)},mimeType:function(n){return arguments.length?(f=null==n?null:n+"",r):f},responseType:function(n){return arguments.length?(o=n,r):o},timeout:function(n){return arguments.length?(s=+n,r):s},user:function(n){return arguments.length<1?c:(c=null==n?null:n+"",r)},password:function(n){return arguments.length<1?l:(l=null==n?null:n+"",r)},response:function(n){return h=n,r},get:function(n,t){return r.send("GET",n,t)},post:function(n,t){return r.send("POST",n,t)},send:function(t,h,a){return i.open(t,n,!0,c,l),null==f||e.has("accept")||e.set("accept",f+",*/*"),i.setRequestHeader&&e.each(function(n,t){i.setRequestHeader(t,n)}),null!=f&&i.overrideMimeType&&i.overrideMimeType(f),null!=o&&(i.responseType=o),s>0&&(i.timeout=s),null==a&&"function"==typeof h&&(a=h,h=null),null!=a&&1===a.length&&(a=rti(a)),null!=a&&r.on("error",a).on("load",function(n){a(null,n)}),u.call("beforesend",r,i),i.send(null==h?null:h),r},abort:function(){return i.abort(),r},on:function(){var n=u.on.apply(u,arguments);return n===u?r:n}},null!=t){if("function"!=typeof t)throw new Error("invalid callback: "+t);return r.get(t)}return r},ba=function(n,t){return function(i,r){var u=gk(i).mimeType(n).response(t);if(null!=r){if("function"!=typeof r)throw new Error("invalid callback: "+r);return u.get(r)}return u}},upi=ba("text/html",function(n){return document.createRange().createContextualFragment(n.responseText)}),fpi=ba("application/json",function(n){return JSON.parse(n.responseText)}),epi=ba("text/plain",function(n){return n.responseText}),opi=ba("application/xml",function(n){var t=n.responseXML;if(!t)throw new Error("parse error");return t}),ect=function(n,t){return function(i,r,u){arguments.length<3&&(u=r,r=null);var f=gk(i).mimeType(n);return f.row=function(n){return arguments.length?f.response(fti(t,r=n)):r},f.row(r),u?f.get(u):f}},spi=ect("text/csv",got),hpi=ect("text/tab-separated-values",nst),oct=Array.prototype,nd=oct.map,sr=oct.slice,td={name:"implicit"},id=function(n){return function(){return n}},sct=function(n){return+n},hct=[0,1],cpi=function(t,i,r){var u,f=t[0],e=t[t.length-1],o=vr(f,e,null==i?10:i),s;switch(r=ll(null==r?",f":r),r.type){case"s":return s=Math.max(Math.abs(f),Math.abs(e)),null!=r.precision||isNaN(u=fst(o,s))||(r.precision=u),n.formatPrefix(r,s);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(u=est(o,Math.max(Math.abs(f),Math.abs(e))))||(r.precision=u-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(u=ust(o))||(r.precision=u-2*("%"===r.type))}return n.format(r)},cct=function(n,t){n=n.slice();var i,r=0,u=n.length-1,f=n[r],e=n[u];return e<f&&(i=r,r=u,u=i,i=f,f=e,e=i),n[r]=t.floor(f),n[u]=t.ceil(e),n},rd=new Date,ud=new Date,cu=p(function(){},function(n,t){n.setTime(+n+t)},function(n,t){return t-n});cu.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?p(function(t){t.setTime(Math.floor(t/n)*n)},function(t,i){t.setTime(+t+i*n)},function(t,i){return(i-t)/n}):cu:null};var lct=cu.range,ka=1e3,bi=6e4,hr=36e5,act=864e5,vct=6048e5,ts=p(function(n){n.setTime(Math.floor(n/ka)*ka)},function(n,t){n.setTime(+n+t*ka)},function(n,t){return(t-n)/ka},function(n){return n.getUTCSeconds()}),yct=ts.range,fd=p(function(n){n.setTime(Math.floor(n/bi)*bi)},function(n,t){n.setTime(+n+t*bi)},function(n,t){return(t-n)/bi},function(n){return n.getMinutes()}),lpi=fd.range,ed=p(function(n){var t=n.getTimezoneOffset()*bi%hr;t<0&&(t+=hr);n.setTime(Math.floor((+n-t)/hr)*hr+t)},function(n,t){n.setTime(+n+t*hr)},function(n,t){return(t-n)/hr},function(n){return n.getHours()}),api=ed.range,da=p(function(n){n.setHours(0,0,0,0)},function(n,t){n.setDate(n.getDate()+t)},function(n,t){return(t-n-(t.getTimezoneOffset()-n.getTimezoneOffset())*bi)/act},function(n){return n.getDate()-1}),vpi=da.range,is=nu(0),od=nu(1),pct=nu(2),wct=nu(3),bct=nu(4),kct=nu(5),dct=nu(6),gct=is.range,ypi=od.range,ppi=pct.range,wpi=wct.range,bpi=bct.range,kpi=kct.range,dpi=dct.range,sd=p(function(n){n.setDate(1);n.setHours(0,0,0,0)},function(n,t){n.setMonth(n.getMonth()+t)},function(n,t){return t.getMonth()-n.getMonth()+12*(t.getFullYear()-n.getFullYear())},function(n){return n.getMonth()}),gpi=sd.range,lu=p(function(n){n.setMonth(0,1);n.setHours(0,0,0,0)},function(n,t){n.setFullYear(n.getFullYear()+t)},function(n,t){return t.getFullYear()-n.getFullYear()},function(n){return n.getFullYear()});lu.every=function(n){return isFinite(n=Math.floor(n))&&n>0?p(function(t){t.setFullYear(Math.floor(t.getFullYear()/n)*n);t.setMonth(0,1);t.setHours(0,0,0,0)},function(t,i){t.setFullYear(t.getFullYear()+i*n)}):null};var nwi=lu.range,hd=p(function(n){n.setUTCSeconds(0,0)},function(n,t){n.setTime(+n+t*bi)},function(n,t){return(t-n)/bi},function(n){return n.getUTCMinutes()}),twi=hd.range,cd=p(function(n){n.setUTCMinutes(0,0,0)},function(n,t){n.setTime(+n+t*hr)},function(n,t){return(t-n)/hr},function(n){return n.getUTCHours()}),iwi=cd.range,ga=p(function(n){n.setUTCHours(0,0,0,0)},function(n,t){n.setUTCDate(n.getUTCDate()+t)},function(n,t){return(t-n)/act},function(n){return n.getUTCDate()-1}),rwi=ga.range,rs=tu(0),ld=tu(1),nlt=tu(2),tlt=tu(3),ilt=tu(4),rlt=tu(5),ult=tu(6),flt=rs.range,uwi=ld.range,fwi=nlt.range,ewi=tlt.range,owi=ilt.range,swi=rlt.range,hwi=ult.range,ad=p(function(n){n.setUTCDate(1);n.setUTCHours(0,0,0,0)},function(n,t){n.setUTCMonth(n.getUTCMonth()+t)},function(n,t){return t.getUTCMonth()-n.getUTCMonth()+12*(t.getUTCFullYear()-n.getUTCFullYear())},function(n){return n.getUTCMonth()}),cwi=ad.range,au=p(function(n){n.setUTCMonth(0,1);n.setUTCHours(0,0,0,0)},function(n,t){n.setUTCFullYear(n.getUTCFullYear()+t)},function(n,t){return t.getUTCFullYear()-n.getUTCFullYear()},function(n){return n.getUTCFullYear()});au.every=function(n){return isFinite(n=Math.floor(n))&&n>0?p(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/n)*n);t.setUTCMonth(0,1);t.setUTCHours(0,0,0,0)},function(t,i){t.setUTCFullYear(t.getUTCFullYear()+i*n)}):null};var ne,lwi=au.range,elt={"-":"",_:" ",0:"0"},wt=/^\s*\d+/,awi=/^%/,vwi=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;prt({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var olt="%Y-%m-%dT%H:%M:%S.%LZ",ywi=Date.prototype.toISOString?vri:n.utcFormat(olt),pwi=+new Date("2000-01-01T00:00:00.000Z")?yri:n.utcParse(olt),us=1e3,fs=60*us,es=60*fs,os=24*es,wwi=7*os,slt=30*os,vd=365*os,bwi=function(){return cp(lu,sd,is,da,ed,fd,ts,cu,n.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)])},kwi=function(){return cp(au,ad,rs,ga,cd,hd,ts,cu,n.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])},cr=function(n){return n.match(/.{6}/g).map(function(n){return"#"+n})},dwi=cr("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),gwi=cr("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),nbi=cr("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),tbi=cr("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"),ibi=dc(dt(300,.5,0),dt(-240,.5,1)),rbi=dc(dt(-100,.75,.35),dt(80,1.5,.8)),ubi=dc(dt(260,.75,.35),dt(80,1.5,.8)),nv=dt(),fbi=function(n){(n<0||n>1)&&(n-=Math.floor(n));var t=Math.abs(n-.5);return nv.h=360*n-100,nv.s=1.5-1.5*t,nv.l=.8-.9*t,nv+""},ebi=kh(cr("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),obi=kh(cr("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),sbi=kh(cr("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),hbi=kh(cr("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),f=function(n){return function(){return n}},it=1e-12,vu=Math.PI,tv=vu/2,lr=2*vu,cbi=function(){function t(){var vt,ii,c=+i.apply(this,arguments),l=+r.apply(this,arguments),v=e.apply(this,arguments)-tv,y=o.apply(this,arguments)-tv,ht=Math.abs(y-v),a=y>v,ft,et;if(n||(n=vt=br()),l<c&&(ii=l,l=c,c=ii),l>it)if(ht>lr-it)n.moveTo(l*Math.cos(v),l*Math.sin(v)),n.arc(0,0,l,v,y,!a),c>it&&(n.moveTo(c*Math.cos(y),c*Math.sin(y)),n.arc(0,0,c,y,v,a));else{var t,f,nt=v,tt=y,rt=v,ut=y,ct=ht,yt=ht,pt=h.apply(this,arguments)/2,wt=pt>it&&(u?+u.apply(this,arguments):Math.sqrt(c*c+l*l)),k=Math.min(Math.abs(l-c)/2,+s.apply(this,arguments)),p=k,w=k;wt>it&&(ft=brt(wt/c*Math.sin(pt)),et=brt(wt/l*Math.sin(pt)),(ct-=2*ft)>it?(ft*=a?1:-1,rt+=ft,ut-=ft):(ct=0,rt=ut=(v+y)/2),(yt-=2*et)>it?(et*=a?1:-1,nt+=et,tt-=et):(yt=0,nt=tt=(v+y)/2));var d=l*Math.cos(nt),g=l*Math.sin(nt),ot=c*Math.cos(ut),st=c*Math.sin(ut);if(k>it){var lt=l*Math.cos(tt),at=l*Math.sin(tt),bt=c*Math.cos(rt),kt=c*Math.sin(rt);if(ht<vu){var b=ct>it?tui(d,g,bt,kt,lt,at,ot,st):[ot,st],dt=d-b[0],gt=g-b[1],ni=lt-b[0],ti=at-b[1],ri=1/Math.sin(Math.acos((dt*ni+gt*ti)/(Math.sqrt(dt*dt+gt*gt)*Math.sqrt(ni*ni+ti*ti)))/2),ui=Math.sqrt(b[0]*b[0]+b[1]*b[1]);p=Math.min(k,(c-ui)/(ri-1));w=Math.min(k,(l-ui)/(ri+1))}}yt>it?w>it?(t=dh(bt,kt,d,g,l,w,a),f=dh(lt,at,ot,st,l,w,a),n.moveTo(t.cx+t.x01,t.cy+t.y01),w<k?n.arc(t.cx,t.cy,w,Math.atan2(t.y01,t.x01),Math.atan2(f.y01,f.x01),!a):(n.arc(t.cx,t.cy,w,Math.atan2(t.y01,t.x01),Math.atan2(t.y11,t.x11),!a),n.arc(0,0,l,Math.atan2(t.cy+t.y11,t.cx+t.x11),Math.atan2(f.cy+f.y11,f.cx+f.x11),!a),n.arc(f.cx,f.cy,w,Math.atan2(f.y11,f.x11),Math.atan2(f.y01,f.x01),!a))):(n.moveTo(d,g),n.arc(0,0,l,nt,tt,!a)):n.moveTo(d,g);c>it&&ct>it?p>it?(t=dh(ot,st,lt,at,c,-p,a),f=dh(d,g,bt,kt,c,-p,a),n.lineTo(t.cx+t.x01,t.cy+t.y01),p<k?n.arc(t.cx,t.cy,p,Math.atan2(t.y01,t.x01),Math.atan2(f.y01,f.x01),!a):(n.arc(t.cx,t.cy,p,Math.atan2(t.y01,t.x01),Math.atan2(t.y11,t.x11),!a),n.arc(0,0,c,Math.atan2(t.cy+t.y11,t.cx+t.x11),Math.atan2(f.cy+f.y11,f.cx+f.x11),a),n.arc(f.cx,f.cy,p,Math.atan2(f.y11,f.x11),Math.atan2(f.y01,f.x01),!a))):n.arc(0,0,c,ut,rt,a):n.lineTo(ot,st)}else n.moveTo(0,0);if(n.closePath(),vt)return n=null,vt+""||null}var i=bri,r=kri,s=f(0),u=null,e=dri,o=gri,h=nui,n=null;return t.centroid=function(){var n=(+i.apply(this,arguments)+ +r.apply(this,arguments))/2,t=(+e.apply(this,arguments)+ +o.apply(this,arguments))/2-vu/2;return[Math.cos(t)*n,Math.sin(t)*n]},t.innerRadius=function(n){return arguments.length?(i="function"==typeof n?n:f(+n),t):i},t.outerRadius=function(n){return arguments.length?(r="function"==typeof n?n:f(+n),t):r},t.cornerRadius=function(n){return arguments.length?(s="function"==typeof n?n:f(+n),t):s},t.padRadius=function(n){return arguments.length?(u=null==n?null:"function"==typeof n?n:f(+n),t):u},t.startAngle=function(n){return arguments.length?(e="function"==typeof n?n:f(+n),t):e},t.endAngle=function(n){return arguments.length?(o="function"==typeof n?n:f(+n),t):o},t.padAngle=function(n){return arguments.length?(h="function"==typeof n?n:f(+n),t):h},t.context=function(i){return arguments.length?(n=null==i?null:i,t):n},t};krt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath();this._line=1-this._line},point:function(n,t){switch(n=+n,t=+t,this._point){case 0:this._point=1;this._line?this._context.lineTo(n,t):this._context.moveTo(n,t);break;case 1:this._point=2;default:this._context.lineTo(n,t)}}};var iv=function(n){return new krt(n)},yd=function(){function n(n){var f,h,c,l=n.length,s=!1;for(null==i&&(t=r(c=br())),f=0;f<=l;++f)!(f<l&&o(h=n[f],f,n))===s&&((s=!s)?t.lineStart():t.lineEnd()),s&&t.point(+u(h,f,n),+e(h,f,n));if(c)return t=null,c+""||null}var u=drt,e=grt,o=f(!0),i=null,r=iv,t=null;return n.x=function(t){return arguments.length?(u="function"==typeof t?t:f(+t),n):u},n.y=function(t){return arguments.length?(e="function"==typeof t?t:f(+t),n):e},n.defined=function(t){return arguments.length?(o="function"==typeof t?t:f(!!t),n):o},n.curve=function(u){return arguments.length?(r=u,null!=i&&(t=r(i)),n):r},n.context=function(u){return arguments.length?(null==u?i=t=null:t=r(i=u),n):i},n},hlt=function(){function n(n){var f,b,c,l,y,a=n.length,v=!1,p=new Array(a),w=new Array(a);for(null==u&&(t=s(y=br())),f=0;f<=a;++f){if(!(f<a&&h(l=n[f],f,n))===v)if(v=!v)b=f,t.areaStart(),t.lineStart();else{for(t.lineEnd(),t.lineStart(),c=f-1;c>=b;--c)t.point(p[c],w[c]);t.lineEnd();t.areaEnd()}v&&(p[f]=+i(l,f,n),w[f]=+r(l,f,n),t.point(e?+e(l,f,n):p[f],o?+o(l,f,n):w[f]))}if(y)return t=null,y+""||null}function c(){return yd().defined(h).curve(s).context(u)}var i=drt,e=null,r=f(0),o=grt,h=f(!0),u=null,s=iv,t=null;return n.x=function(t){return arguments.length?(i="function"==typeof t?t:f(+t),e=null,n):i},n.x0=function(t){return arguments.length?(i="function"==typeof t?t:f(+t),n):i},n.x1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:f(+t),n):e},n.y=function(t){return arguments.length?(r="function"==typeof t?t:f(+t),o=null,n):r},n.y0=function(t){return arguments.length?(r="function"==typeof t?t:f(+t),n):r},n.y1=function(t){return arguments.length?(o=null==t?null:"function"==typeof t?t:f(+t),n):o},n.lineX0=n.lineY0=function(){return c().x(i).y(r)},n.lineY1=function(){return c().x(i).y(o)},n.lineX1=function(){return c().x(e).y(r)},n.defined=function(t){return arguments.length?(h="function"==typeof t?t:f(!!t),n):h},n.curve=function(i){return arguments.length?(s=i,null!=u&&(t=s(u)),n):s},n.context=function(i){return arguments.length?(null==i?u=t=null:t=s(u=i),n):u},n},lbi=function(n,t){return t<n?-1:t>n?1:t>=n?0:NaN},abi=function(n){return n},vbi=function(){function n(n){for(var l,b,y,s,h=n.length,p=0,a=new Array(h),c=new Array(h),v=+u.apply(this,arguments),w=Math.min(lr,Math.max(-lr,e.apply(this,arguments)-v)),k=Math.min(Math.abs(w)/h,o.apply(this,arguments)),d=k*(w<0?-1:1),f=0;f<h;++f)(s=c[a[f]=f]=+r(n[f],f,n))>0&&(p+=s);for(null!=t?a.sort(function(n,i){return t(c[n],c[i])}):null!=i&&a.sort(function(t,r){return i(n[t],n[r])}),f=0,b=p?(w-h*d)/p:0;f<h;++f,v=y)l=a[f],s=c[l],y=v+(s>0?s*b:0)+d,c[l]={data:n[l],index:f,value:s,startAngle:v,endAngle:y,padAngle:k};return c}var r=abi,t=lbi,i=null,u=f(0),e=f(lr),o=f(0);return n.value=function(t){return arguments.length?(r="function"==typeof t?t:f(+t),n):r},n.sortValues=function(r){return arguments.length?(t=r,i=null,n):t},n.sort=function(r){return arguments.length?(i=r,t=null,n):i},n.startAngle=function(t){return arguments.length?(u="function"==typeof t?t:f(+t),n):u},n.endAngle=function(t){return arguments.length?(e="function"==typeof t?t:f(+t),n):e},n.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:f(+t),n):o},n},clt=lp(iv);nut.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(n,t){this._curve.point(t*Math.sin(n),t*-Math.cos(n))}};var ybi=function(){return be(yd().curve(clt))},pbi=function(){var n=hlt().curve(clt),t=n.curve,i=n.lineX0,r=n.lineX1,u=n.lineY0,f=n.lineY1;return n.angle=n.x,delete n.x,n.startAngle=n.x0,delete n.x0,n.endAngle=n.x1,delete n.x1,n.radius=n.y,delete n.y,n.innerRadius=n.y0,delete n.y0,n.outerRadius=n.y1,delete n.y1,n.lineStartAngle=function(){return be(i())},delete n.lineX0,n.lineEndAngle=function(){return be(r())},delete n.lineX1,n.lineInnerRadius=function(){return be(u())},delete n.lineY0,n.lineOuterRadius=function(){return be(f())},delete n.lineY1,n.curve=function(n){return arguments.length?t(lp(n)):t()._curve},n},pd={draw:function(n,t){var i=Math.sqrt(t/vu);n.moveTo(i,0);n.arc(0,0,i,0,lr)}},llt={draw:function(n,t){var i=Math.sqrt(t/5)/2;n.moveTo(-3*i,-i);n.lineTo(-i,-i);n.lineTo(-i,-3*i);n.lineTo(i,-3*i);n.lineTo(i,-i);n.lineTo(3*i,-i);n.lineTo(3*i,i);n.lineTo(i,i);n.lineTo(i,3*i);n.lineTo(-i,3*i);n.lineTo(-i,i);n.lineTo(-3*i,i);n.closePath()}},alt=Math.sqrt(1/3),wbi=2*alt,vlt={draw:function(n,t){var i=Math.sqrt(t/wbi),r=i*alt;n.moveTo(0,-i);n.lineTo(r,0);n.lineTo(0,i);n.lineTo(-r,0);n.closePath()}},bbi=.89081309152928523,ylt=Math.sin(vu/10)/Math.sin(7*vu/10),kbi=Math.sin(lr/10)*ylt,dbi=-Math.cos(lr/10)*ylt,plt={draw:function(n,t){var i=Math.sqrt(t*bbi),u=kbi*i,f=dbi*i,r;for(n.moveTo(0,-i),n.lineTo(u,f),r=1;r<5;++r){var s=lr*r/5,e=Math.cos(s),o=Math.sin(s);n.lineTo(o*i,-e*i);n.lineTo(e*u-o*f,o*u+e*f)}n.closePath()}},wlt={draw:function(n,t){var i=Math.sqrt(t),r=-i/2;n.rect(r,r,i,i)}},wd=Math.sqrt(3),blt={draw:function(n,t){var i=-Math.sqrt(t/(3*wd));n.moveTo(0,2*i);n.lineTo(-wd*i,-i);n.lineTo(wd*i,-i);n.closePath()}},bt=-.5,kt=Math.sqrt(3)/2,bd=1/Math.sqrt(12),gbi=3*(bd/2+1),klt={draw:function(n,t){var s=Math.sqrt(t/gbi),i=s/2,f=s*bd,r=i,u=s*bd+s,e=-r,o=u;n.moveTo(i,f);n.lineTo(r,u);n.lineTo(e,o);n.lineTo(bt*i-kt*f,kt*i+bt*f);n.lineTo(bt*r-kt*u,kt*r+bt*u);n.lineTo(bt*e-kt*o,kt*e+bt*o);n.lineTo(bt*i+kt*f,bt*f-kt*i);n.lineTo(bt*r+kt*u,bt*u-kt*r);n.lineTo(bt*e+kt*o,bt*o-kt*e);n.closePath()}},nki=[pd,llt,vlt,wlt,plt,blt,klt],tki=function(){function n(){var n;if(t||(t=n=br()),i.apply(this,arguments).draw(t,+r.apply(this,arguments)),n)return t=null,n+""||null}var i=f(pd),r=f(64),t=null;return n.type=function(t){return arguments.length?(i="function"==typeof t?t:f(t),n):i},n.size=function(t){return arguments.length?(r="function"==typeof t?t:f(+t),n):r},n.context=function(i){return arguments.length?(t=null==i?null:i,n):t},n},ar=function(){};nc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN;this._point=0},lineEnd:function(){switch(this._point){case 3:gh(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath();this._line=1-this._line},point:function(n,t){switch(n=+n,t=+t,this._point){case 0:this._point=1;this._line?this._context.lineTo(n,t):this._context.moveTo(n,t);break;case 1:this._point=2;break;case 2:this._point=3;this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:gh(this,n,t)}this._x0=this._x1;this._x1=n;this._y0=this._y1;this._y1=t}};dlt=function(n){return new nc(n)};tut.prototype={areaStart:ar,areaEnd:ar,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN;this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2);this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3);this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3);this._context.closePath();break;case 3:this.point(this._x2,this._y2);this.point(this._x3,this._y3);this.point(this._x4,this._y4)}},point:function(n,t){switch(n=+n,t=+t,this._point){case 0:this._point=1;this._x2=n;this._y2=t;break;case 1:this._point=2;this._x3=n;this._y3=t;break;case 2:this._point=3;this._x4=n;this._y4=t;this._context.moveTo((this._x0+4*this._x1+n)/6,(this._y0+4*this._y1+t)/6);break;default:gh(this,n,t)}this._x0=this._x1;this._x1=n;this._y0=this._y1;this._y1=t}};glt=function(n){return new tut(n)};iut.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN;this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath();this._line=1-this._line},point:function(n,t){switch(n=+n,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+n)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(i,r):this._context.moveTo(i,r);break;case 3:this._point=4;default:gh(this,n,t)}this._x0=this._x1;this._x1=n;this._y0=this._y1;this._y1=t}};nat=function(n){return new iut(n)};rut.prototype={lineStart:function(){this._x=[];this._y=[];this._basis.lineStart()},lineEnd:function(){var t=this._x,r=this._y,n=t.length-1;if(n>0)for(var u,f=t[0],e=r[0],o=t[n]-f,s=r[n]-e,i=-1;++i<=n;)u=i/n,this._basis.point(this._beta*t[i]+(1-this._beta)*(f+u*o),this._beta*r[i]+(1-this._beta)*(e+u*s));this._x=this._y=null;this._basis.lineEnd()},point:function(n,t){this._x.push(+n);this._y.push(+t)}};tat=function n(t){function i(n){return 1===t?new nc(n):new rut(n,t)}return i.beta=function(t){return n(+t)},i}(.85);ap.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:tc(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath();this._line=1-this._line},point:function(n,t){switch(n=+n,t=+t,this._point){case 0:this._point=1;this._line?this._context.lineTo(n,t):this._context.moveTo(n,t);break;case 1:this._point=2;this._x1=n;this._y1=t;break;case 2:this._point=3;default:tc(this,n,t)}this._x0=this._x1;this._x1=this._x2;this._x2=n;this._y0=this._y1;this._y1=this._y2;this._y2=t}};iat=function n(t){function i(n){return new ap(n,t)}return i.tension=function(t){return n(+t)},i}(0);vp.prototype={areaStart:ar,areaEnd:ar,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN;this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3);this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3);this._context.closePath();break;case 3:this.point(this._x3,this._y3);this.point(this._x4,this._y4);this.point(this._x5,this._y5)}},point:function(n,t){switch(n=+n,t=+t,this._point){case 0:this._point=1;this._x3=n;this._y3=t;break;case 1:this._point=2;this._context.moveTo(this._x4=n,this._y4=t);break;case 2:this._point=3;this._x5=n;this._y5=t;break;default:tc(this,n,t)}this._x0=this._x1;this._x1=this._x2;this._x2=n;this._y0=this._y1;this._y1=this._y2;this._y2=t}};rat=function n(t){function i(n){return new vp(n,t)}return i.tension=function(t){return n(+t)},i}(0);yp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath();this._line=1-this._line},point:function(n,t){switch(n=+n,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:tc(this,n,t)}this._x0=this._x1;this._x1=this._x2;this._x2=n;this._y0=this._y1;this._y1=this._y2;this._y2=t}};uat=function n(t){function i(n){return new yp(n,t)}return i.tension=function(t){return n(+t)},i}(0);uut.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath();this._line=1-this._line},point:function(n,t){if(n=+n,t=+t,this._point){var i=this._x2-n,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(n,t):this._context.moveTo(n,t);break;case 1:this._point=2;break;case 2:this._point=3;default:pp(this,n,t)}this._l01_a=this._l12_a;this._l12_a=this._l23_a;this._l01_2a=this._l12_2a;this._l12_2a=this._l23_2a;this._x0=this._x1;this._x1=this._x2;this._x2=n;this._y0=this._y1;this._y1=this._y2;this._y2=t}};fat=function n(t){function i(n){return t?new uut(n,t):new ap(n,0)}return i.alpha=function(t){return n(+t)},i}(.5);fut.prototype={areaStart:ar,areaEnd:ar,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN;this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3);this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3);this._context.closePath();break;case 3:this.point(this._x3,this._y3);this.point(this._x4,this._y4);this.point(this._x5,this._y5)}},point:function(n,t){if(n=+n,t=+t,this._point){var i=this._x2-n,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1;this._x3=n;this._y3=t;break;case 1:this._point=2;this._context.moveTo(this._x4=n,this._y4=t);break;case 2:this._point=3;this._x5=n;this._y5=t;break;default:pp(this,n,t)}this._l01_a=this._l12_a;this._l12_a=this._l23_a;this._l01_2a=this._l12_2a;this._l12_2a=this._l23_2a;this._x0=this._x1;this._x1=this._x2;this._x2=n;this._y0=this._y1;this._y1=this._y2;this._y2=t}};eat=function n(t){function i(n){return t?new fut(n,t):new vp(n,0)}return i.alpha=function(t){return n(+t)},i}(.5);eut.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath();this._line=1-this._line},point:function(n,t){if(n=+n,t=+t,this._point){var i=this._x2-n,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:pp(this,n,t)}this._l01_a=this._l12_a;this._l12_a=this._l23_a;this._l01_2a=this._l12_2a;this._l12_2a=this._l23_2a;this._x0=this._x1;this._x1=this._x2;this._x2=n;this._y0=this._y1;this._y1=this._y2;this._y2=t}};oat=function n(t){function i(n){return t?new eut(n,t):new yp(n,0)}return i.alpha=function(t){return n(+t)},i}(.5);out.prototype={areaStart:ar,areaEnd:ar,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(n,t){n=+n;t=+t;this._point?this._context.lineTo(n,t):(this._point=1,this._context.moveTo(n,t))}};sat=function(n){return new out(n)};ic.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN;this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:wp(this,this._t0,cut(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath();this._line=1-this._line},point:function(n,t){var i=NaN;if(n=+n,t=+t,n!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(n,t):this._context.moveTo(n,t);break;case 1:this._point=2;break;case 2:this._point=3;wp(this,cut(this,i=hut(this,n,t)),i);break;default:wp(this,this._t0,i=hut(this,n,t))}this._x0=this._x1;this._x1=n;this._y0=this._y1;this._y1=t;this._t0=i}}};(lut.prototype=Object.create(ic.prototype)).point=function(n,t){ic.prototype.point.call(this,t,n)};aut.prototype={moveTo:function(n,t){this._context.moveTo(t,n)},closePath:function(){this._context.closePath()},lineTo:function(n,t){this._context.lineTo(t,n)},bezierCurveTo:function(n,t,i,r,u,f){this._context.bezierCurveTo(t,n,r,i,f,u)}};vut.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[];this._y=[]},lineEnd:function(){var n=this._x,t=this._y,r=n.length;if(r)if(this._line?this._context.lineTo(n[0],t[0]):this._context.moveTo(n[0],t[0]),2===r)this._context.lineTo(n[1],t[1]);else for(var f=yut(n),e=yut(t),i=0,u=1;u<r;++i,++u)this._context.bezierCurveTo(f[0][i],e[0][i],f[1][i],e[1][i],n[u],t[u]);(this._line||0!==this._line&&1===r)&&this._context.closePath();this._line=1-this._line;this._x=this._y=null},point:function(n,t){this._x.push(+n);this._y.push(+t)}};hat=function(n){return new vut(n)};rc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN;this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y);(this._line||0!==this._line&&1===this._point)&&this._context.closePath();this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(n,t){switch(n=+n,t=+t,this._point){case 0:this._point=1;this._line?this._context.lineTo(n,t):this._context.moveTo(n,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(n,t);else{var i=this._x*(1-this._t)+n*this._t;this._context.lineTo(i,this._y);this._context.lineTo(i,t)}}this._x=n;this._y=t}};var iki=function(n){return new rc(n,.5)},cat=Array.prototype.slice,te=function(n,t){var i;if((e=n.length)>1)for(var u,e,f=1,r=n[t[0]],o=r.length;f<e;++f)for(u=r,r=n[t[f]],i=0;i<o;++i)r[i][1]+=r[i][0]=isNaN(u[i][1])?u[i][0]:u[i][1]},ie=function(n){for(var t=n.length,i=new Array(t);--t>=0;)i[t]=t;return i},rki=function(){function n(n){for(var s,c=t.apply(this,arguments),l=n.length,h=c.length,o=new Array(h),f=0;f<h;++f){for(var a,v=c[f],y=o[f]=new Array(l),e=0;e<l;++e)y[e]=a=[0,+u(n[e],v,e,n)],a.data=n[e];y.key=v}for(f=0,s=i(o);f<h;++f)o[s[f]].index=f;return r(o,s),o}var t=f([]),i=ie,r=te,u=eui;return n.keys=function(i){return arguments.length?(t="function"==typeof i?i:f(cat.call(i)),n):t},n.value=function(t){return arguments.length?(u="function"==typeof t?t:f(+t),n):u},n.order=function(t){return arguments.length?(i=null==t?ie:"function"==typeof t?t:f(cat.call(t)),n):i},n.offset=function(t){return arguments.length?(r=null==t?te:t,n):r},n},uki=function(n,t){if((f=n.length)>0){for(var i,f,r,u=0,e=n[0].length;u<e;++u){for(r=i=0;i<f;++i)r+=n[i][u][1]||0;if(r)for(i=0;i<f;++i)n[i][u][1]/=r}te(n,t)}},fki=function(n,t){var r,f;if((e=n.length)>0){for(var e,i=0,u=n[t[0]],o=u.length;i<o;++i){for(r=0,f=0;r<e;++r)f+=n[r][i][1]||0;u[i][1]+=u[i][0]=-f/2}te(n,t)}},eki=function(n,t){var r,h,c,u,i;if((c=n.length)>0&&(h=(r=n[t[0]]).length)>0){for(u=0,i=1;i<h;++i){for(var f=0,e=0,l=0;f<c;++f){for(var a=n[t[f]],o=a[i][1]||0,p=a[i-1][1]||0,v=(o-p)/2,s=0;s<f;++s){var y=n[t[s]],w=y[i][1]||0,b=y[i-1][1]||0;v+=w-b}e+=o;l+=v*o}r[i-1][1]+=r[i-1][0]=u;e&&(u-=l/e)}r[i-1][1]+=r[i-1][0]=u;te(n,t)}},lat=function(n){var t=n.map(put);return ie(n).sort(function(n,i){return t[n]-t[i]})},oki=function(n){return lat(n).reverse()},ski=function(n){for(var t,s=n.length,r=n.map(put),h=ie(n).sort(function(n,t){return r[t]-r[n]}),u=0,f=0,e=[],o=[],i=0;i<s;++i)t=h[i],u<f?(u+=r[t],e.push(t)):(f+=r[t],o.push(t));return o.reverse().concat(e)},hki=function(n){return ie(n).reverse()},aat=function(n){return function(){return n}};uc.prototype={constructor:uc,insert:function(n,t){var i,r,u;if(n){if(t.P=n,t.N=n.N,n.N&&(n.N.P=t),n.N=t,n.R){for(n=n.R;n.L;)n=n.L;n.L=t}else n.R=t;i=n}else this._?(n=wut(this._),t.P=null,t.N=n,n.P=n.L=t,i=n):(t.P=t.N=null,this._=t,i=null);for(t.L=t.R=null,t.U=i,t.C=!0,n=t;i&&i.C;)r=i.U,i===r.L?(u=r.R,u&&u.C?(i.C=u.C=!1,r.C=!0,n=r):(n===i.R&&(ke(this,i),n=i,i=n.U),i.C=!1,r.C=!0,de(this,r))):(u=r.L,u&&u.C?(i.C=u.C=!1,r.C=!0,n=r):(n===i.L&&(de(this,i),n=i,i=n.U),i.C=!1,r.C=!0,ke(this,r))),i=n.U;this._.C=!1},remove:function(n){n.N&&(n.N.P=n.P);n.P&&(n.P.N=n.N);n.N=n.P=null;var t,r,e,i=n.U,f=n.L,u=n.R;if(r=f?u?wut(u):f:u,i?i.L===n?i.L=r:i.R=r:this._=r,f&&u?(e=r.C,r.C=n.C,r.L=f,f.U=r,r!==u?(i=r.U,r.U=n.U,n=r.R,i.L=n,r.R=u,u.U=r):(r.U=i,i=r,n=r.R)):(e=n.C,n=r),n&&(n.U=i),!e){if(n&&n.C)return void(n.C=!1);do{if(n===this._)break;if(n===i.L){if(t=i.R,t.C&&(t.C=!1,i.C=!0,ke(this,i),t=i.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,de(this,t),t=i.R);t.C=i.C;i.C=t.R.C=!1;ke(this,i);n=this._;break}}else if(t=i.L,t.C&&(t.C=!1,i.C=!0,de(this,i),t=i.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,ke(this,t),t=i.L);t.C=i.C;i.C=t.L.C=!1;de(this,i);n=this._;break}t.C=!0;n=i;i=i.U}while(!n.C);n&&(n.C=!1)}}};var kd,re,vt,ss,rt,vat=[],yat=[],s=1e-6,cki=1e-12;kp.prototype={constructor:kp,polygons:function(){var n=this.edges;return this.cells.map(function(t){var i=t.halfedges.map(function(i){return but(t,n[i])});return i.data=t.site.data,i})},triangles:function(){var n=[],t=this.edges;return this.cells.forEach(function(i,r){if(h=(s=i.halfedges).length)for(var s,h,e,o=i.site,c=-1,u=t[s[h-1]],f=u.left===o?u.right:u.left;++c<h;)e=f,u=t[s[c]],f=u.left===o?u.right:u.left,e&&f&&r<e.index&&r<f.index&&tfi(o,e,f)<0&&n.push([o.data,e.data,f.data])}),n},links:function(){return this.edges.filter(function(n){return n.right}).map(function(n){return{source:n.left.data,target:n.right.data}})},find:function(n,t,i){for(var o,r,u=this,f=u._found||0,c=u.cells.length;!(r=u.cells[f]);)if(++f>=c)return null;var s=n-r.site[0],h=t-r.site[1],e=s*s+h*h;do r=u.cells[o=f],f=null,r.halfedges.forEach(function(i){var s=u.edges[i],o=s.left;if(o!==r.site&&o||(o=s.right)){var h=n-o[0],c=t-o[1],l=h*h+c*c;l<e&&(e=l,f=o.index)}});while(null!==f);return u._found=o,null==i||e<=i*i?r.site:null}};pat=function(){function n(n){return new kp(n.map(function(t,u){var f=[Math.round(i(t,u,n)/s)*s,Math.round(r(t,u,n)/s)*s];return f.index=u,f.data=t,f}),t)}var i=oui,r=sui,t=null;return n.polygons=function(t){return n(t).polygons()},n.links=function(t){return n(t).links()},n.triangles=function(t){return n(t).triangles()},n.x=function(t){return arguments.length?(i="function"==typeof t?t:aat(+t),n):i},n.y=function(t){return arguments.length?(r="function"==typeof t?t:aat(+t),n):r},n.extent=function(i){return arguments.length?(t=null==i?null:[[+i[0][0],+i[0][1]],[+i[1][0],+i[1][1]]],n):t&&[[t[0][0],t[0][1]],[t[1][0],t[1][1]]]},n.size=function(i){return arguments.length?(t=null==i?null:[[0,0],[+i[0],+i[1]]],n):t&&[t[1][0]-t[0][0],t[1][1]-t[0][1]]},n};dd=function(n){return function(){return n}};vi.prototype={constructor:vi,scale:function(n){return 1===n?this:new vi(this.k*n,this.x,this.y)},translate:function(n,t){return 0===n&0===t?this:new vi(this.k,this.x+this.k*n,this.y+this.k*t)},apply:function(n){return[n[0]*this.k+this.x,n[1]*this.k+this.y]},applyX:function(n){return n*this.k+this.x},applyY:function(n){return n*this.k+this.y},invert:function(n){return[(n[0]-this.x)/this.k,(n[1]-this.y)/this.k]},invertX:function(n){return(n-this.x)/this.k},invertY:function(n){return(n-this.y)/this.k},rescaleX:function(n){return n.copy().domain(n.range().map(this.invertX,this).map(n.invert,n))},rescaleY:function(n){return n.copy().domain(n.range().map(this.invertY,this).map(n.invert,n))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};rv=new vi(1,0,0);gut.prototype=vi.prototype;ue=function(){n.event.preventDefault();n.event.stopImmediatePropagation()};wat=function(){function t(n){n.on("wheel.zoom",rt).on("mousedown.zoom",ut).on("dblclick.zoom",ft).on("touchstart.zoom",et).on("touchmove.zoom",ot).on("touchend.zoom touchcancel.zoom",st).style("-webkit-tap-highlight-color","rgba(0,0,0,0)").property("__zoom",nft)}function l(n,t){return t=Math.max(a,Math.min(o,t)),t===n.k?n:new vi(t,n.x,n.y)}function s(n,t,i){var r=t[0]-i[0]*n.k,u=t[1]-i[1]*n.k;return r===n.x&&u===n.y?n:new vi(n.k,r,u)}function f(n,t){var i=n.invertX(t[0][0])-v,r=n.invertX(t[1][0])-y,u=n.invertY(t[0][1])-b,f=n.invertY(t[1][1])-k;return n.translate(r>i?(i+r)/2:Math.min(0,i)||Math.max(0,r),f>u?(u+f)/2:Math.min(0,u)||Math.max(0,f))}function g(n){return[(+n[0][0]+ +n[1][0])/2,(+n[0][1]+ +n[1][1])/2]}function nt(n,t,r){n.on("start.zoom",function(){i(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){i(this,arguments).end()}).tween("zoom",function(){var f=this,o=arguments,l=i(f,o),n=u.apply(f,o),e=r||g(n),s=Math.max(n[1][0]-n[0][0],n[1][1]-n[0][1]),c=f.__zoom,h="function"==typeof t?t.apply(f,o):t,a=d(c.invert(e).concat(s/c.k),h.invert(e).concat(s/h.k));return function(n){if(1===n)n=h;else{var t=a(n),i=s/t[2];n=new vi(i,e[0]-t[0]*i,e[1]-t[1]*i)}l.zoom(null,n)}})}function i(n,t){for(var r,i=0,u=w.length;i<u;++i)if((r=w[i]).that===n)return r;return new tt(n,t)}function tt(n,t){this.that=n;this.args=t;this.index=-1;this.active=0;this.extent=u.apply(n,t)}function rt(){function c(){t.wheel=null;t.end()}if(e.apply(this,arguments)){var t=i(this,arguments),r=this.__zoom,h=Math.max(a,Math.min(o,r.k*Math.pow(2,-n.event.deltaY*(n.event.deltaMode?120:1)/500))),u=rr(this);if(t.wheel)t.mouse[0][0]===u[0]&&t.mouse[0][1]===u[1]||(t.mouse[1]=r.invert(t.mouse[0]=u)),clearTimeout(t.wheel);else{if(r.k===h)return;t.mouse=[u,r.invert(u)];fu(this);t.start()}ue();t.wheel=setTimeout(c,ht);t.zoom("mouse",f(s(l(r,h),t.mouse[0],t.mouse[1]),t.extent))}}function ut(){function u(){ue();t.moved=!0;t.zoom("mouse",f(s(t.that.__zoom,t.mouse[0]=rr(t.that),t.mouse[1]),t.extent))}function o(){c.on("mousemove.zoom mouseup.zoom",null);as(n.event.view,t.moved);ue();t.end()}if(!h&&e.apply(this,arguments)){var t=i(this,arguments),c=ct(n.event.view).on("mousemove.zoom",u,!0).on("mouseup.zoom",o,!0),r=rr(this);vc(n.event.view);dp();t.mouse=[r,this.__zoom.invert(r)];fu(this);t.start()}}function ft(){if(e.apply(this,arguments)){var i=this.__zoom,r=rr(this),h=i.invert(r),c=i.k*(n.event.shiftKey?.5:2),o=f(s(l(i,c),r,h),u.apply(this,arguments));ue();p>0?ct(this).transition().duration(p).call(nt,o,r):ct(this).call(t.transform,o)}}function et(){if(e.apply(this,arguments)){var h,f,o,t,u=i(this,arguments),s=n.event.changedTouches,c=s.length;for(dp(),f=0;f<c;++f)o=s[f],t=ac(this,s,o.identifier),t=[t,this.__zoom.invert(t),o.identifier],u.touch0?u.touch1||(u.touch1=t):(u.touch0=t,h=!0);return r&&(r=clearTimeout(r),!u.touch1)?(u.end(),t=ct(this).on("dblclick.zoom"),void(t&&t.apply(this,arguments))):void(h&&(r=setTimeout(function(){r=null},it),fu(this),u.start()))}}function ot(){var c,u,e,w,t=i(this,arguments),b=n.event.changedTouches,k=b.length;for(ue(),r&&(r=clearTimeout(r)),c=0;c<k;++c)u=b[c],e=ac(this,b,u.identifier),t.touch0&&t.touch0[2]===u.identifier?t.touch0[0]=e:t.touch1&&t.touch1[2]===u.identifier&&(t.touch1[0]=e);if(u=t.that.__zoom,t.touch1){var a=t.touch0[0],v=t.touch0[1],y=t.touch1[0],p=t.touch1[1],o=(o=y[0]-a[0])*o+(o=y[1]-a[1])*o,h=(h=p[0]-v[0])*h+(h=p[1]-v[1])*h;u=l(u,Math.sqrt(o/h));e=[(a[0]+y[0])/2,(a[1]+y[1])/2];w=[(v[0]+p[0])/2,(v[1]+p[1])/2]}else{if(!t.touch0)return;e=t.touch0[0];w=t.touch0[1]}t.zoom("touch",f(s(u,e,w),t.extent))}function st(){var r,u,t=i(this,arguments),f=n.event.changedTouches,e=f.length;for(dp(),h&&clearTimeout(h),h=setTimeout(function(){h=null},it),r=0;r<e;++r)u=f[r],t.touch0&&t.touch0[2]===u.identifier?delete t.touch0:t.touch1&&t.touch1[2]===u.identifier&&delete t.touch1;t.touch1&&!t.touch0&&(t.touch0=t.touch1,delete t.touch1);t.touch0||t.end()}var r,h,e=ufi,u=ffi,a=0,o=1/0,v=-o,y=o,b=v,k=y,p=250,d=det,w=[],c=ki("start","zoom","end"),it=500,ht=150;return t.transform=function(n,t){var r=n.selection?n.selection():n;r.property("__zoom",nft);n!==r?nt(n,t):r.interrupt().each(function(){i(this,arguments).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()})},t.scaleBy=function(n,i){t.scaleTo(n,function(){var n=this.__zoom.k,t="function"==typeof i?i.apply(this,arguments):i;return n*t})},t.scaleTo=function(n,i){t.transform(n,function(){var n=u.apply(this,arguments),t=this.__zoom,r=g(n),e=t.invert(r),o="function"==typeof i?i.apply(this,arguments):i;return f(s(l(t,o),r,e),n)})},t.translateBy=function(n,i,r){t.transform(n,function(){return f(this.__zoom.translate("function"==typeof i?i.apply(this,arguments):i,"function"==typeof r?r.apply(this,arguments):r),u.apply(this,arguments))})},tt.prototype={start:function(){return 1==++this.active&&(this.index=w.push(this)-1,this.emit("start")),this},zoom:function(n,t){return this.mouse&&"mouse"!==n&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==n&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==n&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(w.splice(this.index,1),this.index=-1,this.emit("end")),this},emit:function(n){fe(new rfi(t,n,this.that.__zoom),c.apply,c,[n,this.that,this.args])}},t.filter=function(n){return arguments.length?(e="function"==typeof n?n:dd(!!n),t):e},t.extent=function(n){return arguments.length?(u="function"==typeof n?n:dd([[+n[0][0],+n[0][1]],[+n[1][0],+n[1][1]]]),t):u},t.scaleExtent=function(n){return arguments.length?(a=+n[0],o=+n[1],t):[a,o]},t.translateExtent=function(n){return arguments.length?(v=+n[0][0],y=+n[1][0],b=+n[0][1],k=+n[1][1],t):[[v,b],[y,k]]},t.duration=function(n){return arguments.length?(p=+n,t):p},t.interpolate=function(n){return arguments.length?(d=n,t):d},t.on=function(){var n=c.on.apply(c,arguments);return n===c?t:n},t};n.version="4.5.0";n.bisect=ru;n.bisectRight=ru;n.bisectLeft=efi;n.ascending=iu;n.bisector=gp;n.descending=ofi;n.deviation=rft;n.extent=uft;n.histogram=yfi;n.thresholdFreedmanDiaconis=pfi;n.thresholdScott=wfi;n.thresholdSturges=eft;n.max=bfi;n.mean=kfi;n.median=dfi;n.merge=tw;n.min=oft;n.pairs=gfi;n.permute=nei;n.quantile=to;n.range=gt;n.scan=tei;n.shuffle=iei;n.sum=rei;n.ticks=oc;n.tickStep=vr;n.transpose=sft;n.variance=ift;n.zip=uei;n.axisTop=ivt;n.axisRight=rvt;n.axisBottom=uvt;n.axisLeft=fvt;n.brush=kci;n.brushX=ikt;n.brushY=rkt;n.brushSelection=tkt;n.chord=dci;n.ribbon=kot;n.nest=dot;n.set=hn;n.map=ui;n.keys=tli;n.values=ili;n.entries=rli;n.color=gi;n.rgb=oe;n.hsl=vs;n.lab=ys;n.hcl=ps;n.cubehelix=dt;n.dispatch=ki;n.drag=koi;n.dragDisable=vc;n.dragEnable=as;n.dsvFormat=bb;n.csvParse=got;n.csvParseRows=uli;n.csvFormat=fli;n.csvFormatRows=eli;n.tsvParse=nst;n.tsvParseRows=oli;n.tsvFormat=sli;n.tsvFormatRows=hli;n.easeLinear=ebt;n.easeQuad=tn;n.easeQuadIn=obt;n.easeQuadOut=sbt;n.easeQuadInOut=tn;n.easeCubic=dv;n.easeCubicIn=hbt;n.easeCubicOut=cbt;n.easeCubicInOut=dv;n.easePoly=uot;n.easePolyIn=khi;n.easePolyOut=dhi;n.easePolyInOut=uot;n.easeSin=rn;n.easeSinIn=lbt;n.easeSinOut=abt;n.easeSinInOut=rn;n.easeExp=un;n.easeExpIn=vbt;n.easeExpOut=ybt;n.easeExpInOut=un;n.easeCircle=fn;n.easeCircleIn=pbt;n.easeCircleOut=wbt;n.easeCircleInOut=fn;n.easeBounce=he;n.easeBounceIn=bbt;n.easeBounceOut=he;n.easeBounceInOut=kbt;n.easeBack=oot;n.easeBackIn=oci;n.easeBackOut=sci;n.easeBackInOut=oot;n.easeElastic=sot;n.easeElasticIn=hci;n.easeElasticOut=sot;n.easeElasticInOut=cci;n.forceCenter=cli;n.forceCollide=iai;n.forceLink=rai;n.forceManyBody=oai;n.forceSimulation=eai;n.forceX=sai;n.forceY=hai;n.formatDefaultLocale=pn;n.formatLocale=db;n.formatSpecifier=ll;n.precisionFixed=ust;n.precisionPrefix=fst;n.precisionRound=est;n.geoArea=yai;n.geoBounds=pai;n.geoCentroid=wai;n.geoCircle=kai;n.geoClipExtent=gai;n.geoDistance=tvi;n.geoGraticule=ptt;n.geoGraticule10=kdt;n.geoInterpolate=ivi;n.geoLength=rht;n.geoPath=rvi;n.geoAlbers=sht;n.geoAlbersUsa=hvi;n.geoAzimuthalEqualArea=hht;n.geoAzimuthalEqualAreaRaw=dk;n.geoAzimuthalEquidistant=cht;n.geoAzimuthalEquidistantRaw=pa;n.geoConicConformal=aht;n.geoConicConformalRaw=fit;n.geoConicEqualArea=ya;n.geoConicEqualAreaRaw=iit;n.geoConicEquidistant=yht;n.geoConicEquidistantRaw=eit;n.geoEquirectangular=vht;n.geoEquirectangularRaw=ve;n.geoGnomonic=pht;n.geoGnomonicRaw=py;n.geoIdentity=wht;n.geoProjection=tr;n.geoProjectionMutator=vy;n.geoMercator=lht;n.geoMercatorRaw=hh;n.geoOrthographic=bht;n.geoOrthographicRaw=wy;n.geoStereographic=kht;n.geoStereographicRaw=by;n.geoTransverseMercator=cvi;n.geoTransverseMercatorRaw=ky;n.geoRotation=bai;n.geoStream=oi;n.geoTransform=evi;n.cluster=lvi;n.hierarchy=dy;n.pack=uyi;n.packSiblings=ryi;n.packEnclose=dht;n.partition=fyi;n.stratify=oyi;n.tree=syi;n.treemap=hyi;n.treemapBinary=cyi;n.treemapDice=ns;n.treemapSlice=wa;n.treemapSliceDice=lyi;n.treemapSquarify=rct;n.treemapResquarify=ayi;n.interpolate=ho;n.interpolateArray=het;n.interpolateBasis=oet;n.interpolateBasisClosed=set;n.interpolateDate=cet;n.interpolateNumber=lt;n.interpolateObject=aet;n.interpolateRound=vet;n.interpolateString=dw;n.interpolateTransformCss=wet;n.interpolateTransformSvg=bet;n.interpolateZoom=det;n.interpolateRgb=so;n.interpolateRgbBasis=osi;n.interpolateRgbBasisClosed=ssi;n.interpolateHsl=csi;n.interpolateHslLong=lsi;n.interpolateLab=kpt;n.interpolateHcl=asi;n.interpolateHclLong=vsi;n.interpolateCubehelix=ysi;n.interpolateCubehelixLong=dc;n.quantize=psi;n.path=br;n.polygonArea=vyi;n.polygonCentroid=yyi;n.polygonHull=wyi;n.polygonContains=byi;n.polygonLength=kyi;n.quadtree=ds;n.queue=dit;n.randomUniform=npi;n.randomNormal=uct;n.randomLogNormal=tpi;n.randomBates=ipi;n.randomIrwinHall=fct;n.randomExponential=rpi;n.request=gk;n.html=upi;n.json=fpi;n.text=epi;n.xml=opi;n.csv=spi;n.tsv=hpi;n.scaleBand=fp;n.scalePoint=eti;n.scaleIdentity=trt;n.scaleLinear=nrt;n.scaleLog=frt;n.scaleOrdinal=up;n.scaleImplicit=td;n.scalePow=op;n.scaleSqrt=yti;n.scaleQuantile=ert;n.scaleQuantize=ort;n.scaleThreshold=srt;n.scaleTime=bwi;n.scaleUtc=kwi;n.schemeCategory10=dwi;n.schemeCategory20b=gwi;n.schemeCategory20c=nbi;n.schemeCategory20=tbi;n.interpolateCubehelixDefault=ibi;n.interpolateRainbow=fbi;n.interpolateWarm=rbi;n.interpolateCool=ubi;n.interpolateViridis=ebi;n.interpolateMagma=obi;n.interpolateInferno=sbi;n.interpolatePlasma=hbi;n.scaleSequential=wrt;n.creator=ew;n.local=ng;n.matcher=cc;n.mouse=rr;n.namespace=ro;n.namespaces=fw;n.select=ct;n.selectAll=woi;n.selection=yr;n.selector=lc;n.selectorAll=lw;n.touch=ac;n.touches=boi;n.window=nf;n.customEvent=fe;n.arc=cbi;n.area=hlt;n.line=yd;n.pie=vbi;n.radialArea=pbi;n.radialLine=ybi;n.symbol=tki;n.symbols=nki;n.symbolCircle=pd;n.symbolCross=llt;n.symbolDiamond=vlt;n.symbolSquare=wlt;n.symbolStar=plt;n.symbolTriangle=blt;n.symbolWye=klt;n.curveBasisClosed=glt;n.curveBasisOpen=nat;n.curveBasis=dlt;n.curveBundle=tat;n.curveCardinalClosed=rat;n.curveCardinalOpen=uat;n.curveCardinal=iat;n.curveCatmullRomClosed=eat;n.curveCatmullRomOpen=oat;n.curveCatmullRom=fat;n.curveLinearClosed=sat;n.curveLinear=iv;n.curveMonotoneX=iui;n.curveMonotoneY=rui;n.curveNatural=hat;n.curveStep=iki;n.curveStepAfter=fui;n.curveStepBefore=uui;n.stack=rki;n.stackOffsetExpand=uki;n.stackOffsetNone=te;n.stackOffsetSilhouette=fki;n.stackOffsetWiggle=eki;n.stackOrderAscending=lat;n.stackOrderDescending=oki;n.stackOrderInsideOut=ski;n.stackOrderNone=ie;n.stackOrderReverse=hki;n.timeInterval=p;n.timeMillisecond=cu;n.timeMilliseconds=lct;n.utcMillisecond=cu;n.utcMilliseconds=lct;n.timeSecond=ts;n.timeSeconds=yct;n.utcSecond=ts;n.utcSeconds=yct;n.timeMinute=fd;n.timeMinutes=lpi;n.timeHour=ed;n.timeHours=api;n.timeDay=da;n.timeDays=vpi;n.timeWeek=is;n.timeWeeks=gct;n.timeSunday=is;n.timeSundays=gct;n.timeMonday=od;n.timeMondays=ypi;n.timeTuesday=pct;n.timeTuesdays=ppi;n.timeWednesday=wct;n.timeWednesdays=wpi;n.timeThursday=bct;n.timeThursdays=bpi;n.timeFriday=kct;n.timeFridays=kpi;n.timeSaturday=dct;n.timeSaturdays=dpi;n.timeMonth=sd;n.timeMonths=gpi;n.timeYear=lu;n.timeYears=nwi;n.utcMinute=hd;n.utcMinutes=twi;n.utcHour=cd;n.utcHours=iwi;n.utcDay=ga;n.utcDays=rwi;n.utcWeek=rs;n.utcWeeks=flt;n.utcSunday=rs;n.utcSundays=flt;n.utcMonday=ld;n.utcMondays=uwi;n.utcTuesday=nlt;n.utcTuesdays=fwi;n.utcWednesday=tlt;n.utcWednesdays=ewi;n.utcThursday=ilt;n.utcThursdays=owi;n.utcFriday=rlt;n.utcFridays=swi;n.utcSaturday=ult;n.utcSaturdays=hwi;n.utcMonth=ad;n.utcMonths=cwi;n.utcYear=au;n.utcYears=lwi;n.timeFormatDefaultLocale=prt;n.timeFormatLocale=hrt;n.isoFormat=ywi;n.isoParse=pwi;n.now=yu;n.timer=ws;n.timerFlush=kg;n.timeout=rb;n.interval=wsi;n.transition=gg;n.active=vci;n.interrupt=fu;n.voronoi=pat;n.zoom=wat;n.zoomTransform=gut;n.zoomIdentity=rv;Object.defineProperty(n,"__esModule",{value:!0})})},function(n,t,i){"use strict";var r=i(59),l=i(127),s=i(131),f=i(103),a=i(11),v=i(35),y=i(13),e=i(159),h=i(147),p=i(146),w=i(144),b=i(145),c=i(48),k=i(106),d=i(17),u=i(14),o=function(){function n(n,t,i,r){this.coveoRoot=n;this.ID=t;this.facets=[];this.facetSliders=[];this.preservePositionOriginalValues=[];this.dropdownHeaderLabel=this.getDropdownHeaderLabel();this.dropdown=this.buildDropdown(r);this.searchInterface=f.Component.get(this.coveoRoot.el,k.SearchInterface,!1);this.bindDropdownContentEvents();this.registerOnOpenHandler();this.registerOnCloseHandler();this.registerQueryEvents();this.logger=new a.Logger(this);this.breakpoint=y.Utils.isNullOrUndefined(i.responsiveBreakpoint)?this.searchInterface?this.searchInterface.responsiveComponents.getMediumScreenWidth():(new d.ResponsiveComponents).getMediumScreenWidth():i.responsiveBreakpoint}return n.init=function(t,i,u){if(!r.$$(t).find(".coveo-facet-column")){var f=new a.Logger("ResponsiveFacets");return void f.info("No element with class coveo-facet-column. Responsive facets cannot be enabled")}l.ResponsiveComponentsManager.register(n,r.$$(t),e.Facet.ID,i,u)},n.prototype.registerComponent=function(n){return n instanceof e.Facet?(this.facets.push(n),this.preservePositionOriginalValues.push(n.options.preservePosition),!0):n instanceof h.FacetSlider&&(this.facetSliders.push(n),!1)},n.prototype.needDropdownWrapper=function(){return this.needSmallMode()},n.prototype.handleResizeEvent=function(){this.needSmallMode()&&!s.ResponsiveComponentsUtils.isSmallFacetActivated(this.coveoRoot)?this.changeToSmallMode():!this.needSmallMode()&&s.ResponsiveComponentsUtils.isSmallFacetActivated(this.coveoRoot)&&this.changeToLargeMode();this.dropdown.isOpened&&this.dropdown.dropdownContent.positionDropdown()},n.prototype.dismissFacetSearches=function(){u.each(this.facets,function(n){n.facetSearch&&n.facetSearch.currentlyDisplayedResults&&n.facetSearch.completelyDismissSearch()})},n.prototype.drawFacetSliderGraphs=function(){u.each(this.facetSliders,function(n){return n.drawDelayedGraphData()})},n.prototype.needSmallMode=function(){return this.coveoRoot.width()<=this.breakpoint},n.prototype.changeToSmallMode=function(){this.dropdown.close();this.disableFacetPreservePosition();r.$$(this.coveoRoot.find("."+l.ResponsiveComponentsManager.DROPDOWN_HEADER_WRAPPER_CSS_CLASS)).append(this.dropdown.dropdownHeader.element.el);s.ResponsiveComponentsUtils.activateSmallFacet(this.coveoRoot)},n.prototype.changeToLargeMode=function(){this.restoreFacetPreservePositionValue();this.dropdown.cleanUp();s.ResponsiveComponentsUtils.deactivateSmallFacet(this.coveoRoot)},n.prototype.buildDropdown=function(n){var t=this.buildDropdownContent(),i=this.buildDropdownHeader();return n?n:new p.ResponsiveDropdown(t,i,this.coveoRoot)},n.prototype.buildDropdownContent=function(){var t=r.$$(this.coveoRoot.find(".coveo-facet-column")),i=r.$$("div",{className:"coveo-facet-header-filter-by-container",style:"display: none"}),u=r.$$("div",{className:"coveo-facet-header-filter-by"});return u.text(v.l("Filter by:")),i.append(u.el),t.prepend(i.el),new w.ResponsiveDropdownContent("facet",t,this.coveoRoot,n.DROPDOWN_MIN_WIDTH,n.DROPDOWN_WIDTH_RATIO)},n.prototype.buildDropdownHeader=function(){var n=r.$$("a"),t=r.$$("p");return t.text(this.dropdownHeaderLabel),n.el.appendChild(t.el),new b.ResponsiveDropdownHeader("facet",n)},n.prototype.registerOnOpenHandler=function(){this.dropdown.registerOnOpenHandler(this.drawFacetSliderGraphs,this)},n.prototype.registerOnCloseHandler=function(){this.dropdown.registerOnCloseHandler(this.dismissFacetSearches,this)},n.prototype.registerQueryEvents=function(){var n=this;this.coveoRoot.on(c.QueryEvents.noResults,function(){return n.handleNoResults()});this.coveoRoot.on(c.QueryEvents.querySuccess,function(t,i){return n.handleQuerySuccess(i)});this.coveoRoot.on(c.QueryEvents.queryError,function(){return n.handleQueryError()})},n.prototype.bindDropdownContentEvents=function(){var t=this;this.dropdown.dropdownContent.element.on("scroll",u.debounce(function(){u.each(t.facets,function(n){var i=n.facetSearch;i&&i.currentlyDisplayedResults&&!t.isFacetSearchScrolledIntoView(i.search)?n.facetSearch.positionSearchResults(t.dropdown.dropdownContent.element.el):i&&n.facetSearch.currentlyDisplayedResults&&n.facetSearch.positionSearchResults()})},n.DEBOUNCE_SCROLL_WAIT))},n.prototype.restoreFacetPreservePositionValue=function(){var n=this;u.each(this.facets,function(t,i){return t.options.preservePosition=n.preservePositionOriginalValues[i]})},n.prototype.disableFacetPreservePosition=function(){u.each(this.facets,function(n){return n.options.preservePosition=!1})},n.prototype.isFacetSearchScrolledIntoView=function(n){var i=n.getBoundingClientRect().top,r=n.getBoundingClientRect().bottom,t=this.dropdown.dropdownContent.element.el.getBoundingClientRect().top,u=this.dropdown.dropdownContent.element.el.getBoundingClientRect().bottom;return t=t>=0?t:0,i>=t&&r<=u},n.prototype.getDropdownHeaderLabel=function(){var t,i="."+f.Component.computeCssClassName(e.Facet)+", ."+f.Component.computeCssClassName(h.FacetSlider);return u.each(r.$$(this.coveoRoot.find(".coveo-facet-column")).findAll(i),function(n){var i;i=r.$$(n).hasClass(f.Component.computeCssClassName(e.Facet))?f.Component.get(n,e.Facet):f.Component.get(n,h.FacetSlider);!t&&i.options.dropdownHeaderLabel&&(t=i.options.dropdownHeaderLabel)}),t||(t=v.l(n.DROPDOWN_HEADER_LABEL_DEFAULT_VALUE)),t},n.prototype.handleNoResults=function(){this.dropdown.dropdownHeader.hide()},n.prototype.handleQueryError=function(){this.dropdown.dropdownHeader.hide()},n.prototype.handleQuerySuccess=function(n){0===n.results.totalCount?this.dropdown.dropdownHeader.hide():this.dropdown.dropdownHeader.show()},n}();o.DEBOUNCE_SCROLL_WAIT=250;o.DROPDOWN_MIN_WIDTH=280;o.DROPDOWN_WIDTH_RATIO=.35;o.DROPDOWN_HEADER_LABEL_DEFAULT_VALUE="Filters";t.ResponsiveFacets=o},function(n,t,i){"use strict";var nt=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},tt=i(103),s=i(160),u=i(107),y=i(16),l=i(35),it=i(91),rt=i(161),ut=i(166),ft=i(167),et=i(168),ot=i(169),p=i(93),st=i(45),h=i(48),e=i(12),r=i(59),ht=i(112),o=i(13),w=i(170),b=i(171),ct=i(162),lt=i(172),at=i(32),c=i(101),vt=i(98),yt=i(46),k=i(173),d=i(174),pt=i(164),wt=i(92),bt=i(111),g=i(42),kt=i(158),v=i(69),dt=i(165),gt=i(51),f=i(14),a=function(n){function t(i,r,e,o){void 0===o&&(o=t.ID);var c=n.call(this,i,o,e)||this;return c.element=i,c.options=r,c.keepDisplayedValuesNextTime=!1,c.values=new s.FacetValues,c.currentPage=0,c.firstQuery=!0,c.canFetchMore=!0,c.showingWaitAnimation=!1,c.listenToQueryStateChange=!0,c.options=u.ComponentOptions.initComponentOptions(i,t,r),null!=c.options.valueCaption&&(c.options.availableSorts=f.filter(c.options.availableSorts,function(n){return!/^alpha.*$/.test(n)})),kt.ResponsiveFacets.init(c.root,c,c.options),c.omniboxZIndex=t.omniboxIndex,t.omniboxIndex--,c.checkForComputedFieldAndSort(),c.checkForValueCaptionType(),c.checkForCustomSort(),c.initFacetQueryController(),c.initQueryEvents(),c.initQueryStateEvents(),c.initComponentStateEvents(),c.initOmniboxEvents(),c.initBreadCrumbEvents(),c.initSearchAlertEvents(),c.updateNumberOfValues(),c.resize=function(){c.disabled||p.FacetUtils.clipCaptionsToAvoidOverflowingTheirContainer(c)},window.addEventListener("resize",f.debounce(c.resize,200)),c.bind.onRootElement(st.InitializationEvents.nuke,function(){return c.handleNuke()}),c.bind.oneRootElement(h.QueryEvents.querySuccess,function(){c.firstQuery=!1}),c}return nt(t,n),t.prototype.createDom=function(){var n=this,t;if(this.initBottomAndTopSpacer(),this.buildFacetContent(),this.updateAppearanceDependingOnState(),this.facetSettings&&this.options.enableSettingsFacetState){t=f.once(function(){n.facetSettings.loadSavedState.apply(n.facetSettings)});this.bind.onRootElement(h.QueryEvents.newQuery,t)}},t.prototype.selectValue=function(n){e.Assert.exists(n);this.ensureDom();this.logger.info("Selecting facet value",this.facetValuesList.select(n));this.facetValueHasChanged()},t.prototype.selectMultipleValues=function(n){var t=this;e.Assert.exists(n);this.ensureDom();f.each(n,function(n){t.logger.info("Selecting facet value",t.facetValuesList.select(n))});this.facetValueHasChanged()},t.prototype.deselectValue=function(n){e.Assert.exists(n);this.ensureDom();this.logger.info("Deselecting facet value",this.facetValuesList.unselect(n));this.facetValueHasChanged()},t.prototype.deselectMultipleValues=function(n){var t=this;e.Assert.exists(n);this.ensureDom();f.each(n,function(n){t.logger.info("Deselecting facet value",t.facetValuesList.unselect(n))});this.facetValueHasChanged()},t.prototype.excludeValue=function(n){e.Assert.exists(n);this.ensureDom();this.logger.info("Excluding facet value",this.facetValuesList.exclude(n));this.facetValueHasChanged()},t.prototype.excludeMultipleValues=function(n){var t=this;e.Assert.exists(n);this.ensureDom();f.each(n,function(n){t.logger.info("Excluding facet value",t.facetValuesList.exclude(n))});this.facetValueHasChanged()},t.prototype.unexcludeValue=function(n){e.Assert.exists(n);this.ensureDom();this.logger.info("Unexcluding facet value",this.facetValuesList.unExclude(n));this.facetValueHasChanged()},t.prototype.unexcludeMultipleValues=function(n){var t=this;e.Assert.exists(n);this.ensureDom();f.each(n,function(n){t.logger.info("Unexcluding facet value",t.facetValuesList.unExclude(n))});this.facetValueHasChanged()},t.prototype.toggleSelectValue=function(n){e.Assert.exists(n);this.ensureDom();this.logger.info("Toggle select facet value",this.facetValuesList.toggleSelect(n));this.facetValueHasChanged()},t.prototype.toggleExcludeValue=function(n){e.Assert.exists(n);this.ensureDom();this.logger.info("Toggle exclude facet value",this.facetValuesList.toggleExclude(n));this.facetValueHasChanged()},t.prototype.getDisplayedValues=function(){return f.pluck(this.getDisplayedFacetValues(),"value")},t.prototype.getDisplayedFacetValues=function(){this.ensureDom();var n=this.facetValuesList.getAllCurrentlyDisplayed();return f.map(n,function(n){return n.facetValue})},t.prototype.getSelectedValues=function(){return this.ensureDom(),f.map(this.values.getSelected(),function(n){return n.value})},t.prototype.getExcludedValues=function(){return this.ensureDom(),f.map(this.values.getExcluded(),function(n){return n.value})},t.prototype.reset=function(){this.ensureDom();this.values.reset();this.rebuildValueElements();this.updateAppearanceDependingOnState();this.updateQueryStateModel()},t.prototype.switchToAnd=function(){this.ensureDom();this.logger.info("Switching to AND");this.facetHeader.switchToAnd()},t.prototype.switchToOr=function(){this.ensureDom();this.logger.info("Switching to OR");this.facetHeader.switchToOr()},t.prototype.getEndpoint=function(){return this.queryController.getEndpoint()},t.prototype.updateSort=function(n){this.ensureDom();this.options.sortCriteria!=n&&(this.options.sortCriteria=n,this.triggerNewQuery())},t.prototype.unfadeInactiveValuesInMainList=function(){r.$$(this.element).removeClass("coveo-facet-fade")},t.prototype.fadeInactiveValuesInMainList=function(){r.$$(this.element).addClass("coveo-facet-fade")},t.prototype.showWaitingAnimation=function(){this.ensureDom();this.showingWaitAnimation||(this.searchInterface.isNewDesign()?r.$$(this.headerElement).find(".coveo-facet-header-wait-animation").style.visibility="visible":(r.$$(this.headerElement).find(".coveo-icon").style.display="none",r.$$(this.headerElement).find(".coveo-facet-header-wait-animation").style.display=""),this.showingWaitAnimation=!0)},t.prototype.hideWaitingAnimation=function(){this.ensureDom();this.showingWaitAnimation&&(r.$$(this.headerElement).find(".coveo-icon").style.display="",this.searchInterface.isNewDesign()?r.$$(this.headerElement).find(".coveo-facet-header-wait-animation").style.visibility="hidden":r.$$(this.headerElement).find(".coveo-facet-header-wait-animation").style.display="none",this.showingWaitAnimation=!1)},t.prototype.processFacetSearchAllResultsSelected=function(n){var t=this,r=[],i;f.each(n,function(n){t.ensureFacetValueIsInList(n);r.push(n.value)});i=this.values.getSelected().concat(this.values.getExcluded());this.numberOfValues=i.length+f.difference(i,n).length;this.numberOfValues=Math.max(this.numberOfValues,this.options.numberOfValues);this.currentPage=Math.floor((this.numberOfValues-this.options.numberOfValues)/this.options.pageSize);this.updateQueryStateModel();this.triggerNewQuery(function(){return t.usageAnalytics.logSearchEvent(ht.analyticsActionCauseList.facetSelectAll,{facetId:t.options.id,facetTitle:t.options.title})})},t.prototype.pinFacetPosition=function(){this.options.preservePosition&&(this.pinnedViewportPosition=this.element.getBoundingClientRect().top)},t.prototype.getValueCaption=function(n){e.Assert.exists(n);var t=n.lookupValue||n.value,i=t;return i=p.FacetUtils.tryToGetTranslatedCaption(this.options.field,t),o.Utils.exists(this.options.valueCaption)&&("object"==typeof this.options.valueCaption&&(i=this.options.valueCaption[t]||i),"function"==typeof this.options.valueCaption&&(this.values.get(t),i=this.options.valueCaption.call(this,this.facetValuesList.get(t).facetValue))),i},t.prototype.showMore=function(){this.currentPage++;this.updateNumberOfValues();this.nbAvailableValues>=this.numberOfValues||!this.canFetchMore?this.rebuildValueElements():this.triggerMoreQuery()},t.prototype.showLess=function(){r.$$(this.lessElement).removeClass("coveo-active");this.currentPage=0;this.updateNumberOfValues();r.$$(this.moreElement).addClass("coveo-active");this.values.sortValuesDependingOnStatus(this.numberOfValues);this.rebuildValueElements()},t.prototype.collapse=function(){this.ensureDom();this.facetHeader&&this.facetHeader.collapseFacet()},t.prototype.expand=function(){this.ensureDom();this.facetHeader&&this.facetHeader.expandFacet()},t.prototype.triggerNewQuery=function(n){n?this.queryController.executeQuery({beforeExecuteQuery:n}):this.queryController.executeQuery({ignoreWarningSearchEvent:!0});this.showWaitingAnimation()},t.prototype.handleDeferredQuerySuccess=function(n){e.Assert.exists(n);this.unfadeInactiveValuesInMainList();this.hideWaitingAnimation();this.updateVisibilityBasedOnDependsOn();var t=n.results.groupByResults[this.facetQueryController.lastGroupByRequestIndex];this.facetQueryController.lastGroupByResult=t;t||(this.keepDisplayedValuesNextTime=!1);this.processNewGroupByResults(t)},t.prototype.handlePopulateBreadcrumb=function(n){if(e.Assert.exists(n),this.values.hasSelectedOrExcludedValues()){var t=new b.BreadcrumbValueList(this,this.values.getSelected().concat(this.values.getExcluded()),w.BreadcrumbValueElement).build();n.breadcrumbs.push({element:t})}},t.prototype.handlePopulateSearchAlerts=function(n){this.values.hasSelectedOrExcludedValues()&&n.text.push(new b.BreadcrumbValueList(this,this.values.getSelected().concat(this.values.getExcluded()),w.BreadcrumbValueElement).buildAsString())},t.prototype.initFacetQueryController=function(){this.facetQueryController=new it.FacetQueryController(this)},t.prototype.initFacetValuesList=function(){this.facetValuesList=new et.FacetValuesList(this,ct.FacetValueElement);this.element.appendChild(this.facetValuesList.build())},t.prototype.initFacetSearch=function(){this.facetSearch=new rt.FacetSearch(this,lt.FacetSearchValuesList,this.root);this.element.appendChild(this.facetSearch.build())},t.prototype.facetValueHasChanged=function(){var n=this;this.updateQueryStateModel();this.rebuildValueElements();at.Defer.defer(function(){n.updateAppearanceDependingOnState()})},t.prototype.updateAppearanceDependingOnState=function(){r.$$(this.element).toggleClass("coveo-active",this.values.hasSelectedOrExcludedValues());r.$$(this.element).toggleClass("coveo-facet-empty",!this.isAnyValueCurrentlyDisplayed());this.searchInterface.isNewDesign()?r.$$(this.facetHeader.eraserElement).toggleClass("coveo-facet-header-eraser-visible",this.values.hasSelectedOrExcludedValues()):r.$$(this.facetHeader.eraserElement).toggle(this.values.hasSelectedOrExcludedValues())},t.prototype.initQueryEvents=function(){var n=this;this.bind.onRootElement(h.QueryEvents.duringQuery,function(){return n.handleDuringQuery()});this.bind.onRootElement(h.QueryEvents.buildingQuery,function(t){return n.handleBuildingQuery(t)});this.bind.onRootElement(h.QueryEvents.doneBuildingQuery,function(t){return n.handleDoneBuildingQuery(t)});this.bind.onRootElement(h.QueryEvents.deferredQuerySuccess,function(t){return n.handleDeferredQuerySuccess(t)})},t.prototype.initQueryStateEvents=function(){var n=this;this.includedAttributeId=c.QueryStateModel.getFacetId(this.options.id);this.excludedAttributeId=c.QueryStateModel.getFacetId(this.options.id,!1);this.operatorAttributeId=c.QueryStateModel.getFacetOperator(this.options.id);this.lookupValueAttributeId=c.QueryStateModel.getFacetLookupValue(this.options.id);this.queryStateModel.registerNewAttribute(this.includedAttributeId,[]);this.queryStateModel.registerNewAttribute(this.excludedAttributeId,[]);this.queryStateModel.registerNewAttribute(this.operatorAttributeId,"");this.queryStateModel.registerNewAttribute(this.lookupValueAttributeId,{});this.bind.onQueryState(vt.MODEL_EVENTS.CHANGE,void 0,function(t){return n.handleQueryStateChanged(t)})},t.prototype.initComponentStateEvents=function(){this.componentStateId=c.QueryStateModel.getFacetId(this.options.id);this.componentStateModel.registerComponent(this.componentStateId,this)},t.prototype.initOmniboxEvents=function(){var n=this;this.options.includeInOmnibox&&this.bind.onRootElement(yt.OmniboxEvents.populateOmnibox,function(t){return n.handlePopulateOmnibox(t)})},t.prototype.initBreadCrumbEvents=function(){var n=this;this.options.includeInBreadcrumb&&(this.bind.onRootElement(g.BreadcrumbEvents.populateBreadcrumb,function(t){return n.handlePopulateBreadcrumb(t)}),this.bind.onRootElement(g.BreadcrumbEvents.clearBreadcrumb,function(){return n.handleClearBreadcrumb()}))},t.prototype.initSearchAlertEvents=function(){var n=this;this.bind.onRootElement(gt.SearchAlertsEvents.searchAlertsPopulateMessage,function(t){return n.handlePopulateSearchAlerts(t)})},t.prototype.handleOmniboxWithStaticValue=function(n){var t=this,i=new RegExp("^"+n.completeQueryExpression.regex.source,"i"),r=f.first(f.filter(this.getDisplayedValues(),function(n){var r=t.getValueCaption(t.facetValuesList.get(n).facetValue);return i.test(r)}),this.options.numberOfValuesInOmnibox),u=f.map(r,function(n){return t.facetValuesList.get(n).facetValue}),e=new d.OmniboxValuesList(this,u,n,k.OmniboxValueElement).build();n.rows.push({element:e,zIndex:this.omniboxZIndex})},t.prototype.processNewGroupByResults=function(n){this.logger.trace("Displaying group by results",n);void 0!=n&&void 0!=n.values&&(this.nbAvailableValues=n.values.length);var t=new s.FacetValues(n);this.updateValues(t);this.canFetchMore=this.numberOfValues<this.nbAvailableValues;this.values.hasSelectedOrExcludedValues()&&!this.options.useAnd&&this.options.isMultiValueField?this.triggerUpdateDeltaQuery(f.filter(this.values.getAll(),function(n){return!n.selected&&!n.excluded})):this.values.getSelected().length>0&&!this.options.useAnd&&this.values.updateDeltaWithFilteredFacetValues(new s.FacetValues);this.values.hasSelectedOrExcludedValues()&&!this.options.useAnd&&this.options.isMultiValueField||(this.rebuildValueElements(),this.updateAppearanceDependingOnState(),this.ensurePinnedFacetHasntMoved());this.keepDisplayedValuesNextTime=!1},t.prototype.updateQueryStateModel=function(){this.listenToQueryStateChange=!1;this.updateExcludedQueryStateModel();this.updateIncludedQueryStateModel();this.facetHeader.updateOperatorQueryStateModel();this.updateLookupValueQueryStateModel();this.listenToQueryStateChange=!0},t.prototype.rebuildValueElements=function(){this.updateNumberOfValues();this.facetValuesList.rebuild(this.numberOfValues);this.searchInterface.isNewDesign()?this.shouldRenderMoreLess()?(this.updateMoreLess(),this.shouldRenderFacetSearch()&&this.updateSearchInNewDesign(this.nbAvailableValues>this.numberOfValues)):this.shouldRenderFacetSearch()&&this.updateSearchInNewDesign():this.shouldRenderMoreLess()&&this.updateMoreLess()},t.prototype.updateSearchInNewDesign=function(n){var u=this,i,t;(void 0===n&&(n=!0),this.searchInterface.isNewDesign()&&n)&&(i=new pt.ValueElementRenderer(this,s.FacetValue.create(l.l("Search"))),t=i.build().withNo([i.excludeIcon,i.icon]),r.$$(t.listItem).addClass("coveo-facet-search-button"),t.stylishCheckbox.removeAttribute("tabindex"),y.DeviceUtils.isMobileDevice()&&r.$$(t.label).on("click",function(n){t.checkbox.getAttribute("checked")?t.checkbox.removeAttribute("checked"):t.checkbox.setAttribute("checked","checked");r.$$(t.checkbox).trigger("change");n.stopPropagation();n.preventDefault()}),r.$$(t.checkbox).on("change",function(){r.$$(u.element).addClass("coveo-facet-searching");u.facetSearch.focus()}),this.facetValuesList.valueContainer.appendChild(t.listItem))},t.prototype.updateMoreLess=function(n,t){void 0===n&&(n=this.getMinimumNumberOfValuesToDisplay()<this.numberOfValues);void 0===t&&(t=this.nbAvailableValues>this.numberOfValues);n?r.$$(this.lessElement).addClass("coveo-active"):r.$$(this.lessElement).removeClass("coveo-active");t?r.$$(this.moreElement).addClass("coveo-active"):r.$$(this.moreElement).removeClass("coveo-active");n||t?r.$$(this.footerElement).removeClass("coveo-facet-empty"):r.$$(this.footerElement).addClass("coveo-facet-empty")},t.prototype.handleClickMore=function(){this.showMore()},t.prototype.handleClickLess=function(){this.showLess()},t.prototype.handleNuke=function(){window.removeEventListener("resize",this.resize)},t.prototype.checkForComputedFieldAndSort=function(){this.options.sortCriteria.toLowerCase().indexOf("computedfield")!=-1&&o.Utils.isNullOrUndefined(this.options.computedField)&&this.logger.warn("Sort criteria is specified as ComputedField, but the facet uses no computed field. Facet will always be empty !",this)},t.prototype.checkForValueCaptionType=function(){this.options.valueCaption&&"function"==typeof this.options.valueCaption&&(this.options.enableFacetSearch=!1,this.options.includeInOmnibox=!1,this.logger.warn("Using a function as valueCaption is now deprecated. Use a json key value pair instead. Facet search and omnibox has been disabled for this facet",this))},t.prototype.checkForCustomSort=function(){void 0==this.options.customSort||f.contains(this.options.availableSorts,"custom")||this.options.availableSorts.unshift("custom");"custom"==this.options.availableSorts[0]&&(this.options.sortCriteria="nosort")},t.prototype.initBottomAndTopSpacer=function(){var n=this,t=r.$$(this.options.paddingContainer).find(".coveo-bottomSpace"),i=r.$$(this.options.paddingContainer).find(".coveo-topSpace");this.options.preservePosition&&(r.$$(this.options.paddingContainer).on("mouseleave",function(){return n.unpinFacetPosition()}),this.pinnedTopSpace=i,this.pinnedBottomSpace=t,this.pinnedTopSpace||(this.pinnedTopSpace=document.createElement("div"),r.$$(this.pinnedTopSpace).addClass("coveo-topSpace"),r.$$(this.pinnedTopSpace).insertBefore(this.options.paddingContainer.firstChild)),this.pinnedBottomSpace||(this.pinnedBottomSpace=document.createElement("div"),r.$$(this.pinnedBottomSpace).addClass("coveo-bottomSpace"),this.options.paddingContainer.appendChild(this.pinnedBottomSpace)))},t.prototype.updateIncludedQueryStateModel=function(){var n={included:this.getSelectedValues(),title:this.includedAttributeId};this.queryStateModel.set(this.includedAttributeId,n.included)},t.prototype.updateExcludedQueryStateModel=function(){var n={title:this.excludedAttributeId,excluded:this.getExcludedValues()};this.queryStateModel.set(this.excludedAttributeId,n.excluded)},t.prototype.updateLookupValueQueryStateModel=function(){if(this.options.lookupField){var n={};f.each(this.values.getSelected().concat(this.values.getExcluded()),function(t){n[t.value]=t.lookupValue});this.queryStateModel.set(this.lookupValueAttributeId,n)}},t.prototype.handleQueryStateChangedOperator=function(n){"and"==n?this.switchToAnd():"or"==n&&this.switchToOr()},t.prototype.handleQueryStateChangedIncluded=function(n){var t=f.difference(this.getSelectedValues(),n);o.Utils.isNonEmptyArray(t)&&this.deselectMultipleValues(t);o.Utils.arrayEqual(this.getSelectedValues(),n,!1)||this.selectMultipleValues(n)},t.prototype.handleQueryStateChangedExcluded=function(n){var t=f.difference(this.getExcludedValues(),n);o.Utils.isNonEmptyArray(t)&&this.unexcludeMultipleValues(t);o.Utils.arrayEqual(this.getExcludedValues(),n,!1)||this.excludeMultipleValues(n)},t.prototype.handleLookupvalueChanged=function(n){var t=this;f.each(n,function(n,i){t.facetValuesList.get(decodeURIComponent(i)).facetValue.lookupValue=decodeURIComponent(n)})},t.prototype.handleQueryStateChanged=function(n){e.Assert.exists(n);this.ensureDom();var t=n.attributes,i=t[this.includedAttributeId],r=t[this.excludedAttributeId],u=t[this.operatorAttributeId],f=t[this.lookupValueAttributeId];this.listenToQueryStateChange&&(o.Utils.isNullOrEmptyString(u)||this.handleQueryStateChangedOperator(u),o.Utils.isNullOrUndefined(i)||this.handleQueryStateChangedIncluded(i),o.Utils.isNullOrUndefined(r)||this.handleQueryStateChangedExcluded(r),o.Utils.isNullOrUndefined(f)||this.handleLookupvalueChanged(f))},t.prototype.handlePopulateOmnibox=function(n){e.Assert.exists(n);e.Assert.exists(n.completeQueryExpression);this.queryController.ensureCreatedQueryBuilder();this.canFetchMore?this.handleOmniboxWithSearchInFacet(n):this.handleOmniboxWithStaticValue(n)},t.prototype.handleOmniboxWithSearchInFacet=function(n){var t=this,i=new RegExp("^"+n.completeQueryExpression.regex.source,"i"),r=new Promise(function(r){var u=new wt.FacetSearchParameters(t);u.setValueToSearch(n.completeQueryExpression.word);u.nbResults=t.options.numberOfValuesInOmnibox;t.facetQueryController.search(u).then(function(u){var e=f.map(f.filter(u,function(n){return i.test(n.lookupValue)}),function(n){return t.values.get(n.lookupValue)||s.FacetValue.create(n)}),o=new d.OmniboxValuesList(t,e,n,k.OmniboxValueElement).build();r({element:o,zIndex:t.omniboxZIndex})}).catch(function(){r({element:void 0})})});n.rows.push({deferred:r})},t.prototype.handleDuringQuery=function(){this.ensureDom();this.keepDisplayedValuesNextTime||this.fadeInactiveValuesInMainList(this.options.facetSearchDelay)},t.prototype.handleBuildingQuery=function(n){if(e.Assert.exists(n),e.Assert.exists(n.queryBuilder),this.facetQueryController.prepareForNewQuery(),this.values.hasSelectedOrExcludedValues()){var t=this.facetQueryController.computeOurFilterExpression();this.logger.trace("Putting filter in query",t);n.queryBuilder.advancedExpression.add(t)}},t.prototype.handleDoneBuildingQuery=function(n){e.Assert.exists(n);e.Assert.exists(n.queryBuilder);var t=n.queryBuilder;this.facetQueryController.putGroupByIntoQueryBuilder(t)},t.prototype.handleClearBreadcrumb=function(){this.reset()},t.prototype.updateValues=function(n){e.Assert.exists(n);this.keepDisplayedValuesNextTime?this.values.updateCountsFromNewValues(n):(n.importActiveValuesFromOtherList(this.values),n.sortValuesDependingOnStatus(this.numberOfValues),this.values=n);this.updateNumberOfValues()},t.prototype.ensureFacetValueIsInList=function(n){e.Assert.exists(n);this.values.contains(n.value)||this.values.add(n)},t.prototype.isAnyValueCurrentlyDisplayed=function(){return!this.values.isEmpty()},t.prototype.buildFacetContent=function(){this.headerElement=this.buildHeader();this.element.appendChild(this.headerElement);this.initFacetValuesList();this.shouldRenderFacetSearch()&&this.initFacetSearch();this.shouldRenderMoreLess()&&(this.moreElement=this.buildMore(),this.lessElement=this.buildLess());this.footerElement=this.buildFooter();this.element.appendChild(this.footerElement);this.searchInterface.isNewDesign()&&this.lessElement&&this.moreElement?(this.footerElement.appendChild(this.lessElement),this.footerElement.appendChild(this.moreElement)):this.moreElement&&this.lessElement&&(this.footerElement.appendChild(this.moreElement),this.footerElement.appendChild(this.lessElement))},t.prototype.buildHeader=function(){var n=this.options.headerIcon,t;return this.searchInterface.isNewDesign()&&this.options.headerIcon==this.options.field&&(n=void 0),this.facetHeader=new ot.FacetHeader({facetElement:this.element,title:this.options.title,icon:n,field:this.options.field,enableClearElement:!0,enableCollapseElement:this.options.enableCollapse,facet:this,settingsKlass:this.options.enableSettings?ut.FacetSettings:void 0,sortKlass:ft.FacetSort,availableSorts:this.options.availableSorts,isNewDesign:this.getBindings().searchInterface.isNewDesign()}),t=this.facetHeader.build(),this.facetSettings=this.facetHeader.settings,this.facetSort=this.facetHeader.sort,t},t.prototype.unpinFacetPosition=function(){this.shouldFacetUnpin()&&this.options.preservePosition&&(r.$$(this.pinnedTopSpace).addClass("coveo-with-animation"),r.$$(this.pinnedBottomSpace).addClass("coveo-with-animation"),this.pinnedTopSpace.style.height="0px",this.pinnedBottomSpace.style.height="0px",this.unpinnedViewportPosition=void 0)},t.prototype.isFacetPinned=function(){return o.Utils.exists(this.pinnedViewportPosition)},t.prototype.shouldFacetUnpin=function(){return o.Utils.exists(this.unpinnedViewportPosition)},t.prototype.ensurePinnedFacetHasntMoved=function(){var i=this;if(this.isFacetPinned()){e.Assert.exists(this.pinnedViewportPosition);r.$$(this.pinnedTopSpace).removeClass("coveo-with-animation");r.$$(this.pinnedBottomSpace).removeClass("coveo-with-animation");this.pinnedTopSpace.style.height="0px";this.pinnedBottomSpace.style.height="0px";var u=this.options.scrollContainer==document.body?window:this.options.scrollContainer,t=this.element.getBoundingClientRect().top,n=t-this.pinnedViewportPosition,o=function(){u instanceof Window?window.scrollTo(0,window.scrollY+n):u.scrollTop=u.scrollTop+n};o();t=this.element.getBoundingClientRect().top;n=t-this.pinnedViewportPosition;n<0?this.pinnedTopSpace.style.height=n*-1+"px":f.defer(function(){for(var r=0,u=0;n>0&&u++<100;)r+=100,i.pinnedBottomSpace.style.height=r+"px",t=i.element.getBoundingClientRect().top,n=t-i.pinnedViewportPosition,o()});this.unpinnedViewportPosition=this.pinnedViewportPosition;this.pinnedViewportPosition=null}},t.prototype.buildFooter=function(){return r.$$("div",{className:"coveo-facet-footer"}).el},t.prototype.buildMore=function(){var n,i=this,t;return n=this.searchInterface.isNewDesign()?r.$$("div",{className:"coveo-facet-more",tabindex:0},r.$$("span",{className:"coveo-icon"})).el:r.$$("a",{className:"coveo-facet-more"},l.l("More")).el,t=function(){return i.handleClickMore()},r.$$(n).on("click",t),r.$$(n).on("keyup",v.KeyboardUtils.keypressAction(v.KEYBOARD.ENTER,t)),n},t.prototype.buildLess=function(){var n,i=this,t;return n=this.searchInterface.isNewDesign()?r.$$("div",{className:"coveo-facet-less",tabindex:0},r.$$("span",{className:"coveo-icon"})).el:r.$$("a",{className:"coveo-facet-less"},l.l("Less")).el,t=function(){return i.handleClickLess()},r.$$(n).on("click",t),r.$$(n).on("keyup",v.KeyboardUtils.keypressAction(v.KEYBOARD.ENTER,t)),n},t.prototype.triggerMoreQuery=function(){var n=this;this.logger.info("Triggering new facet more query");this.showWaitingAnimation();this.facetQueryController.fetchMore(this.numberOfValues+1).then(function(t){var i=new s.FacetValues(t.groupByResults[0]);i.importActiveValuesFromOtherList(n.values);i.sortValuesDependingOnStatus(n.numberOfValues);n.values=i;n.nbAvailableValues=n.values.size();n.updateNumberOfValues();n.canFetchMore=n.numberOfValues<n.nbAvailableValues;n.values.hasSelectedOrExcludedValues()&&!n.options.useAnd&&n.options.isMultiValueField?n.triggerUpdateDeltaQuery(f.filter(n.values.getAll(),function(n){return!n.selected&&!n.excluded})):(n.values.hasSelectedOrExcludedValues()&&!n.options.useAnd?(n.values.updateDeltaWithFilteredFacetValues(new s.FacetValues),n.hideWaitingAnimation()):n.hideWaitingAnimation(),n.rebuildValueElements())}).catch(function(){return n.hideWaitingAnimation()})},t.prototype.triggerUpdateDeltaQuery=function(n){var t=this;this.showWaitingAnimation();this.facetQueryController.searchInFacetToUpdateDelta(n).then(function(n){var i=new s.FacetValues;f.each(n.groupByResults,function(n){f.each(n.values,function(n){i.contains(n.value)||i.add(s.FacetValue.createFromGroupByValue(n))})});t.values.updateDeltaWithFilteredFacetValues(i);t.rebuildValueElements();t.hideWaitingAnimation()})},t.prototype.updateNumberOfValues=function(){this.currentPage<=0?(this.currentPage=0,this.numberOfValues=0):this.numberOfValues=this.options.numberOfValues+this.currentPage*this.options.pageSize;this.numberOfValues=Math.max(this.numberOfValues,this.getMinimumNumberOfValuesToDisplay())},t.prototype.getMinimumNumberOfValuesToDisplay=function(){var t=this.values.getExcluded().length+this.values.getSelected().length,n;return null!=this.options.customSort&&null!=this.facetSort&&this.options.customSort.length>0&&(n=-1,new dt.FacetValuesOrder(this,this.facetSort).reorderValues(this.values.getAll()).forEach(function(t,i){t.selected&&(n=i)}),t=n+1),Math.max(t,this.options.numberOfValues)},t.prototype.updateVisibilityBasedOnDependsOn=function(){o.Utils.isNonEmptyString(this.options.dependsOn)&&r.$$(this.element).toggleClass("coveo-facet-dependent",!this.doesParentFacetHasSelectedValue()&&!this.values.hasSelectedOrExcludedValues())},t.prototype.doesParentFacetHasSelectedValue=function(){var t=c.QueryStateModel.getFacetId(this.options.dependsOn),n=this.queryStateModel.get(t);return null!=n&&0!=n.length},t.prototype.shouldRenderFacetSearch=function(){return this.options.enableFacetSearch},t.prototype.shouldRenderMoreLess=function(){return this.options.enableMoreLess},t.prototype.debugInfo=function(){var n={};return n[this.constructor.ID]={component:this,groupByRequest:this.facetQueryController.lastGroupByRequest,groupByResult:this.facetQueryController.lastGroupByResult},n},t}(tt.Component);a.ID="Facet";a.omniboxIndex=50;a.options={title:u.ComponentOptions.buildLocalizedStringOption({defaultValue:l.l("NoTitle"),section:"Identification",priority:10}),field:u.ComponentOptions.buildFieldOption({required:!0,groupByField:!0,section:"Identification"}),headerIcon:u.ComponentOptions.buildIconOption({deprecated:"This option is exposed for legacy reason, and the recommendation is to not use this option."}),id:u.ComponentOptions.buildStringOption({postProcessing:function(n,t){return n||t.field}}),isMultiValueField:u.ComponentOptions.buildBooleanOption({defaultValue:!1}),lookupField:u.ComponentOptions.buildFieldOption({deprecated:"This option is exposed for legacy reason, and the recommendation is to not use this option."}),enableSettings:u.ComponentOptions.buildBooleanOption({defaultValue:!0,section:"SettingsMenu",priority:9}),enableSettingsFacetState:u.ComponentOptions.buildBooleanOption({defaultValue:!1,depend:"enableSettings"}),availableSorts:u.ComponentOptions.buildListOption({defaultValue:["occurrences","score","alphaAscending","alphaDescending"],values:["Occurrences","Score","AlphaAscending","AlphaDescending","ComputedFieldAscending","ComputedFieldDescending","ChiSquare","NoSort"],depend:"enableSettings"}),sortCriteria:u.ComponentOptions.buildStringOption({postProcessing:function(n,t){return n||(t.availableSorts.length>0?t.availableSorts[0]:"occurrences")}}),customSort:u.ComponentOptions.buildListOption({section:"Identification"}),numberOfValues:u.ComponentOptions.buildNumberOption({defaultValue:5,min:0,section:"Identification"}),injectionDepth:u.ComponentOptions.buildNumberOption({defaultValue:1e3,min:0}),showIcon:u.ComponentOptions.buildBooleanOption({defaultValue:!1,deprecated:"This option is exposed for legacy reason, and the recommendation is to not use this option."}),useAnd:u.ComponentOptions.buildBooleanOption({defaultValue:!1}),enableTogglingOperator:u.ComponentOptions.buildBooleanOption({defaultValue:!1,alias:"allowTogglingOperator"}),enableFacetSearch:u.ComponentOptions.buildBooleanOption({defaultValue:!0,section:"FacetSearch",priority:8}),facetSearchDelay:u.ComponentOptions.buildNumberOption({defaultValue:100,min:0,depend:"enableFacetSearch"}),facetSearchIgnoreAccents:u.ComponentOptions.buildBooleanOption({defaultValue:!1,depend:"enableFacetSearch"}),numberOfValuesInFacetSearch:u.ComponentOptions.buildNumberOption({defaultValue:15,min:1}),includeInBreadcrumb:u.ComponentOptions.buildBooleanOption({defaultValue:!0}),numberOfValuesInBreadcrumb:u.ComponentOptions.buildNumberOption({defaultFunction:function(){return y.DeviceUtils.isMobileDevice()?3:5},min:0,depend:"includeInBreadcrumb"}),includeInOmnibox:u.ComponentOptions.buildBooleanOption({defaultValue:!1,deprecated:"This option is exposed for legacy reason, and the recommendation is to not use this option."}),numberOfValuesInOmnibox:u.ComponentOptions.buildNumberOption({defaultFunction:function(){return y.DeviceUtils.isMobileDevice()?3:5},min:0,depend:"includeInOmnibox",deprecated:"This option is exposed for legacy reason, and the recommendation is to not use this option."}),computedField:u.ComponentOptions.buildFieldOption({section:"ComputedField",priority:7}),computedFieldOperation:u.ComponentOptions.buildStringOption({defaultValue:"sum",section:"ComputedField"}),computedFieldFormat:u.ComponentOptions.buildStringOption({defaultValue:"c0",section:"ComputedField"}),computedFieldCaption:u.ComponentOptions.buildLocalizedStringOption({defaultValue:l.l("ComputedField"),section:"ComputedField"}),preservePosition:u.ComponentOptions.buildBooleanOption({defaultValue:!0}),paddingContainer:u.ComponentOptions.buildSelectorOption({defaultFunction:function(n){return n.parentElement}}),scrollContainer:u.ComponentOptions.buildSelectorOption({defaultFunction:function(){return document.body}}),enableMoreLess:u.ComponentOptions.buildBooleanOption({defaultValue:!0}),pageSize:u.ComponentOptions.buildNumberOption({defaultValue:10,min:1,depend:"enableMoreLess"}),enableCollapse:u.ComponentOptions.buildBooleanOption({defaultValue:!0,depend:"enableSettings"}),allowedValues:u.ComponentOptions.buildListOption(),additionalFilter:u.ComponentOptions.buildStringOption(),dependsOn:u.ComponentOptions.buildStringOption(),valueCaption:u.ComponentOptions.buildCustomOption(function(){return null}),enableResponsiveMode:u.ComponentOptions.buildBooleanOption({defaultValue:!0}),responsiveBreakpoint:u.ComponentOptions.buildNumberOption({defaultValue:800}),dropdownHeaderLabel:u.ComponentOptions.buildLocalizedStringOption()};t.Facet=a;bt.Initialization.registerAutoCreateComponent(a)},function(n,t,i){"use strict";var r=i(12),f=i(13),e=i(28),u=i(14),o=function(){function n(){this.selected=!1;this.excluded=!1;this.waitingForDelta=!1}return n.prototype.reset=function(){this.selected=!1;this.excluded=!1},n.prototype.updateCountsFromNewValue=function(n){r.Assert.exists(n);this.occurrences=n.occurrences;this.delta=n.delta;this.computedField=n.computedField},n.prototype.cloneWithZeroOccurrences=function(){return this.occurrences=0,this.computedField=void 0,this.delta=void 0,this},n.prototype.cloneWithDelta=function(n,t){r.Assert.isLargerOrEqualsThan(0,n);var i=this.cloneWithZeroOccurrences();return i.delta=t,i.occurrences=n,i},n.prototype.getFormattedCount=function(){var n=void 0;return f.Utils.exists(this.delta)&&this.delta>0?n="+"+e.format(this.delta,"n0"):this.occurrences>0&&(n=e.format(this.occurrences,"n0")),n},n.prototype.getFormattedComputedField=function(n){if(0!=this.computedField)return e.format(this.computedField,n)},n.create=function(t){if(u.isString(t))return n.createFromValue(t);if(u.isObject(t))return"computedFieldResults"in t?n.createFromGroupByValue(t):n.createFromFieldValue(t);throw new Error("Can't create value from "+t);},n.createFromValue=function(t){r.Assert.isNonEmptyString(t);var i=new n;return i.value=t,i.lookupValue=t,i},n.createFromGroupByValue=function(t){r.Assert.exists(t);r.Assert.exists(t);var i=new n;return i.value=t.value,i.lookupValue=f.Utils.exists(t.lookupValue)?t.lookupValue:t.value,i.occurrences=t.numberOfResults,i.computedField=f.Utils.isNonEmptyArray(t.computedFieldResults)?t.computedFieldResults[0]:void 0,i.score=t.score,i},n.createFromFieldValue=function(t){r.Assert.exists(t);var i=new n;return i.value=t.value,i.lookupValue=t.lookupValue,i.occurrences=t.numberOfResults,i},n}(),s;t.FacetValue=o;s=function(){function n(n){this.values=f.Utils.exists(n)?u.map(n.values,function(n){return o.createFromGroupByValue(n)}):[]}return n.prototype.add=function(n){r.Assert.exists(n);r.Assert.check(!this.contains(n.value));this.values.push(n)},n.prototype.remove=function(n){r.Assert.isNonEmptyString(n);n=n;this.values=u.filter(this.values,function(t){return t.value!=n})},n.prototype.size=function(){return this.values.length},n.prototype.isEmpty=function(){return 0==this.values.length},n.prototype.at=function(n){return r.Assert.isLargerOrEqualsThan(0,n),r.Assert.isSmallerThan(this.values.length,n),this.values[n]},n.prototype.get=function(n){return u.find(this.values,function(t){return t.value.toLowerCase()==n.toLowerCase()})},n.prototype.contains=function(n){return f.Utils.exists(this.get(n))},n.prototype.getAll=function(){return this.values},n.prototype.getSelected=function(){return u.filter(this.values,function(n){return n.selected})},n.prototype.getExcluded=function(){return u.filter(this.values,function(n){return n.excluded})},n.prototype.hasSelectedOrExcludedValues=function(){return 0!=this.getSelected().length||0!=this.getExcluded().length},n.prototype.reset=function(){u.each(this.values,function(n){return n.reset()})},n.prototype.importActiveValuesFromOtherList=function(n){var t=this;r.Assert.exists(n);u.each(n.getSelected(),function(n){var i=t.get(n.value);f.Utils.exists(i)?i.selected=!0:t.values.push(n.cloneWithZeroOccurrences())});u.each(n.getExcluded(),function(n){var r=t.get(n.value),u,i;f.Utils.exists(r)?r.excluded=!0:0!=n.occurrences?(u=n.occurrences,i=n.cloneWithZeroOccurrences(),i.occurrences=u,t.values.push(i)):t.values.push(n.cloneWithZeroOccurrences())})},n.prototype.updateCountsFromNewValues=function(n){r.Assert.exists(n);this.values=u.map(this.values,function(t){var i=n.get(t.value);return f.Utils.exists(i)?(t.updateCountsFromNewValue(i),t):t.cloneWithZeroOccurrences()})},n.prototype.updateDeltaWithFilteredFacetValues=function(n){r.Assert.exists(n);u.each(this.values,function(t){var i=n.get(t.value);t.waitingForDelta=!1;f.Utils.exists(i)?t.delta=t.occurrences-i.occurrences>0?t.occurrences-i.occurrences:null:t.selected||t.excluded||(t.delta=t.occurrences)})},n.prototype.mergeWithUnfilteredFacetValues=function(n){var e=this,t,i;r.Assert.exists(n);t=[];u.each(n.values,function(n){var i=e.get(n.value);f.Utils.exists(i)?i.occurrences==n.occurrences?t.push(i):t.push(n.cloneWithDelta(n.occurrences,n.occurrences-i.occurrences)):t.push(n.cloneWithDelta(n.occurrences,n.occurrences))});i=0;u.each(this.values,function(r){var e=n.get(r.value),u;if(f.Utils.exists(e)){for(u=0;u<t.length;u++)if(t[u].value==r.value){i=u+1;break}}else(r.selected||r.excluded)&&(t.splice(i,0,r),i++)});this.values=t},n.prototype.sortValuesDependingOnStatus=function(n){if(this.values=u.sortBy(this.values,function(n){return n.selected?1:n.excluded?3:2}),null!=n&&n<this.values.length){var t=this.getExcluded().length,i=this.values.splice(this.values.length-t,t);Array.prototype.splice.apply(this.values,[n-t,0].concat(i))}},n}();t.FacetValues=s},function(n,t,i){"use strict";var y=i(159),r=i(59),o=i(13),p=i(45),w=i(16),c=i(130),l=i(92),b=i(112),k=i(103),d=i(60),f=i(72),e=i(35),s=i(12),h=i(69),g=i(93),a=i(160),nt=i(62),tt=i(162),v=i(23),it=i(106),rt=i(131),ut=i(165),u=i(14),ft=function(){function n(n,t,i){var f=this;this.facet=n;this.facetSearchValuesListKlass=t;this.root=i;this.showingFacetSearchWaitAnimation=!1;this.moreValuesToFetch=!0;this.searchBarIsAnimating=!1;this.searchResults=document.createElement("ul");r.$$(this.searchResults).addClass("coveo-facet-search-results");this.onResize=u.debounce(function(){f.facet instanceof y.Facet&&f.facet.searchInterface instanceof it.SearchInterface&&f.shouldPositionSearchResults()&&f.positionSearchResults()},250);this.onDocumentClick=function(n){f.handleClickElsewhere(n)};window.addEventListener("resize",function(){return f.onResize()});document.addEventListener("click",function(n){return f.onDocumentClick(n)});r.$$(n.root).on(p.InitializationEvents.nuke,function(){return f.handleNuke()})}return n.prototype.isMobileDevice=function(){return w.DeviceUtils.isMobileDevice()&&!this.facet.searchInterface.isNewDesign()},n.prototype.build=function(){return this.isMobileDevice()?this.buildSearchMobile():this.buildBaseSearch()},n.prototype.positionSearchResults=function(n){var i,t;(void 0===n&&(n=this.search),null!=this.searchResults)&&(this.isMobileDevice()||(this.searchResults.style.display="block",this.searchResults.style.width=this.facet.element.clientWidth-40+"px"),"none"==r.$$(this.searchResults).css("display")&&(this.searchResults.style.display=""),i=r.$$(this.search),"none"==i.css("display")||this.searchBarIsAnimating?("none"==r.$$(this.searchResults).css("display")&&(this.searchResults.style.display=""),t=this,c.EventsUtils.addPrefixedEvent(this.search,"AnimationEnd",function(){f.PopupUtils.positionPopup(t.searchResults,n,t.root,{horizontal:f.HorizontalAlignment.CENTER,vertical:f.VerticalAlignment.BOTTOM});c.EventsUtils.removePrefixedEvent(t.search,"AnimationEnd",this)})):f.PopupUtils.positionPopup(this.searchResults,n,this.root,{horizontal:f.HorizontalAlignment.CENTER,vertical:f.VerticalAlignment.BOTTOM}))},n.prototype.completelyDismissSearch=function(){this.cancelAnyPendingSearchOperation();this.facet.unfadeInactiveValuesInMainList();r.$$(this.searchResults).empty();this.moreValuesToFetch=!0;r.$$(this.search).removeClass("coveo-facet-search-no-results");r.$$(this.facet.element).removeClass("coveo-facet-searching");this.hideSearchResultsElement();this.input.value="";r.$$(this.clear).hide();this.currentlyDisplayedResults=void 0},n.prototype.triggerNewFacetSearch=function(n){var t=this;this.cancelAnyPendingSearchOperation();this.showFacetSearchWaitingAnimation();this.facet.logger.info("Triggering new facet search");this.facetSearchPromise=this.facet.facetQueryController.search(n);this.facetSearchPromise&&this.facetSearchPromise.then(function(i){t.facet.usageAnalytics.logCustomEvent(b.analyticsActionCauseList.facetSearch,{facetId:t.facet.options.id,facetTitle:t.facet.options.title},t.facet.root);t.facet.logger.debug("Received field values",i);t.processNewFacetSearchResults(i,n);t.hideFacetSearchWaitingAnimation();t.facetSearchPromise=void 0}).catch(function(n){return o.Utils.exists(n)&&(t.facet.logger.error("Error while retrieving facet values",n),t.hideFacetSearchWaitingAnimation()),t.facetSearchPromise=void 0,null})},n.prototype.focus=function(){this.input.focus();this.handleFacetSearchFocus()},n.prototype.shouldPositionSearchResults=function(){return!this.isMobileDevice()&&!rt.ResponsiveComponentsUtils.isSmallFacetActivated(r.$$(this.root))&&r.$$(this.facet.element).hasClass("coveo-facet-searching")},n.prototype.buildBaseSearch=function(){var n=this;return this.search=document.createElement("div"),r.$$(this.search).addClass("coveo-facet-search"),this.magnifier=document.createElement("div"),r.$$(this.magnifier).addClass("coveo-facet-search-magnifier"),this.search.appendChild(this.magnifier),this.wait=document.createElement("div"),r.$$(this.wait).addClass("coveo-facet-search-wait-animation"),this.search.appendChild(this.wait),this.hideFacetSearchWaitingAnimation(),this.clear=document.createElement("div"),r.$$(this.clear).addClass("coveo-facet-search-clear"),this.clear.setAttribute("title",e.l("Clear",e.l("Search"))),this.clear.style.display="none",this.search.appendChild(this.clear),this.clearIcon=document.createElement("span"),r.$$(this.clearIcon).addClass("coveo-icon"),this.clear.appendChild(this.clearIcon),this.middle=document.createElement("div"),r.$$(this.middle).addClass("coveo-facet-search-middle"),this.search.appendChild(this.middle),this.input=document.createElement("input"),this.input.setAttribute("type","text"),this.input.setAttribute("autocapitalize","off"),this.input.setAttribute("autocorrect","off"),this.input.setAttribute("placeholder",this.facet.searchInterface.isNewDesign()?"":e.l("SearchIn",this.facet.options.title)),r.$$(this.input).addClass("coveo-facet-search-input"),k.Component.pointElementsToDummyForm(this.input),this.middle.appendChild(this.input),r.$$(this.input).on("keyup",function(t){return n.handleFacetSearchKeyUp(t)}),r.$$(this.clear).on("click",function(){return n.handleFacetSearchClear()}),r.$$(this.input).on("focus",function(){return n.handleFacetSearchFocus()}),this.detectSearchBarAnimation(),this.root.appendChild(this.searchResults),this.searchResults.style.display="none",this.search},n.prototype.buildSearchMobile=function(){var n=this,t=document.createElement("div");return r.$$(t).addClass("coveo-facet-search-button-mobile"),r.$$(t).text(e.l("Search")),this.search=this.buildBaseSearch(),r.$$(t).on("click",function(){var t=document.createElement("div");t.appendChild(n.search);v.ModalBox.open(t,{title:d.DomUtils.getPopUpCloseButton(e.l("Close"),e.l("SearchIn",n.facet.options.title)),validation:function(){return n.completelyDismissSearch(),!0},className:"coveo-mobile-facet-search",titleClose:!0});n.input.value="";n.input.focus()}),t},n.prototype.handleFacetSearchKeyUp=function(n){s.Assert.exists(n);var t=""==this.input.value;this.showOrHideClearElement(t);this.isMobileDevice()?this.startNewSearchTimeout(this.buildParamsForNormalSearch()):this.handleKeyboardNavigation(n,t)},n.prototype.handleNuke=function(){window.removeEventListener("resize",this.onResize);document.removeEventListener("click",this.onDocumentClick)},n.prototype.handleFacetSearchFocus=function(){this.isMobileDevice()||(this.facet.searchInterface.isNewDesign()?this.startNewSearchTimeout(this.buildParamsForExcludingCurrentlyDisplayedValues()):this.startNewSearchTimeout(this.buildParamsForNormalSearch()))},n.prototype.handleClickElsewhere=function(n){this.currentlyDisplayedResults&&!this.isMobileDevice()&&this.search!=n.target&&this.searchResults!=n.target&&this.completelyDismissSearch()},n.prototype.handleFacetSearchClear=function(){this.input.value="";r.$$(this.clear).hide();this.completelyDismissSearch()},n.prototype.showOrHideClearElement=function(n){n?(r.$$(this.clear).hide(),r.$$(this.search).removeClass("coveo-facet-search-no-results")):r.$$(this.clear).show()},n.prototype.handleKeyboardNavigation=function(n,t){switch(n.which){case h.KEYBOARD.ENTER:this.keyboardNavigationEnterPressed(n,t);break;case h.KEYBOARD.DELETE:this.keyboardNavigationDeletePressed(n);break;case h.KEYBOARD.ESCAPE:this.completelyDismissSearch();break;case h.KEYBOARD.DOWN_ARROW:this.moveCurrentResultDown();break;case h.KEYBOARD.UP_ARROW:this.moveCurrentResultUp();break;default:this.moreValuesToFetch=!0;this.highlightCurrentQueryWithinSearchResults();this.startNewSearchTimeout(this.buildParamsForNormalSearch())}},n.prototype.keyboardNavigationEnterPressed=function(n,t){n.shiftKey?this.triggerNewFacetSearch(this.buildParamsForNormalSearch()):"none"!=this.searchResults.style.display?(this.performSelectActionOnCurrentSearchResult(),this.completelyDismissSearch()):r.$$(this.search).is(".coveo-facet-search-no-results")&&!t&&this.selectAllValuesMatchingSearch()},n.prototype.keyboardNavigationDeletePressed=function(n){n.shiftKey&&(this.performExcludeActionOnCurrentSearchResult(),this.completelyDismissSearch(),this.input.value="")},n.prototype.startNewSearchTimeout=function(n){var t=this;this.cancelAnyPendingSearchOperation();this.facetSearchTimeout=setTimeout(function(){var i=t.getValueInInputForFacetSearch();""==i?n.searchEvenIfEmpty?t.triggerNewFacetSearch(n):t.completelyDismissSearch():t.triggerNewFacetSearch(n)},this.facet.options.facetSearchDelay)},n.prototype.cancelAnyPendingSearchOperation=function(){o.Utils.exists(this.facetSearchTimeout)&&(clearTimeout(this.facetSearchTimeout),this.facetSearchTimeout=void 0);o.Utils.exists(this.facetSearchPromise)&&(Promise.reject(this.facetSearchPromise).catch(function(){}),this.facetSearchPromise=void 0);this.hideFacetSearchWaitingAnimation()},n.prototype.processNewFacetSearchResults=function(n,t){s.Assert.exists(n);n=new ut.FacetValuesOrder(this.facet,this.facet.facetSort).reorderValues(n);n.length>0?(r.$$(this.search).removeClass("coveo-facet-search-no-results"),this.facet.fadeInactiveValuesInMainList(this.facet.options.facetSearchDelay),this.rebuildSearchResults(n,t),t.fetchMore||this.showSearchResultsElement(),this.highlightCurrentQueryWithinSearchResults(),g.FacetUtils.clipCaptionsToAvoidOverflowingTheirContainer(this.facet,!0),this.makeFirstSearchResultTheCurrentOne()):t.fetchMore?this.moreValuesToFetch=!1:(this.hideSearchResultsElement(),r.$$(this.search).addClass("coveo-facet-search-no-results"))},n.prototype.rebuildSearchResults=function(n,t){var f=this,i,e,h;s.Assert.exists(n);t.fetchMore||r.$$(this.searchResults).empty();i=document.createElement("li");o.Utils.isNonEmptyString(t.valueToSearch)&&(r.$$(i).addClass(["coveo-facet-selectable","coveo-facet-search-selectable","coveo-facet-search-select-all"]),r.$$(i).text("SelectAll"),r.$$(i).on("click",function(){return f.selectAllValuesMatchingSearch()}),this.isMobileDevice()||this.searchResults.appendChild(i));e=u.map(n,function(n){return a.FacetValue.create(n)});(u.each(new this.facetSearchValuesListKlass(this.facet,tt.FacetValueElement).build(e),function(n){f.searchResults.appendChild(n)}),this.currentlyDisplayedResults=this.currentlyDisplayedResults?this.currentlyDisplayedResults.concat(u.pluck(e,"value")):u.pluck(e,"value"),this.isMobileDevice())&&(h=document.createElement("span"),r.$$(h).addClass("coveo-mobile-facet-search-select-all"),i.appendChild(h),this.searchResults.appendChild(i));u.each(r.$$(this.searchResults).findAll(".coveo-facet-selectable"),function(n){r.$$(n).addClass("coveo-facet-search-selectable");f.setupFacetSearchResultsEvents(n)});this.facet.searchInterface.isNewDesign()&&r.$$(this.searchResults).on("scroll",function(){return f.handleFacetSearchResultsScroll()})},n.prototype.setupFacetSearchResultsEvents=function(n){var u=this,i,t;r.$$(n).on("mousemove",function(){u.makeCurrentResult(n)});i=!1;t=!1;r.$$(n).on("mousedown",function(){return t=!1});r.$$(n).on("mousemove",function(){return t=!0});r.$$(n).on("touchmove",function(){return i=!0});r.$$(n).on("mouseup touchend",function(){i||t||setTimeout(function(){u.completelyDismissSearch()},0);i=!1;t=!1})},n.prototype.handleFacetSearchResultsScroll=function(){if(!this.facetSearchPromise&&""==this.getValueInInputForFacetSearch()&&this.moreValuesToFetch){var n=this.searchResults.clientHeight,t=this.searchResults.scrollHeight,i=this.searchResults.scrollTop+n;t-i<n/2&&this.triggerNewFacetSearch(this.buildParamsForFetchingMore())}},n.prototype.buildParamsForNormalSearch=function(){var n=new l.FacetSearchParameters(this.facet);return n.setValueToSearch(this.getValueInInputForFacetSearch()),n.fetchMore=!1,n},n.prototype.buildParamsForFetchingMore=function(){var n=this.buildParamsForExcludingCurrentlyDisplayedValues();return n.fetchMore=!0,n},n.prototype.buildParamsForExcludingCurrentlyDisplayedValues=function(){var n=new l.FacetSearchParameters(this.facet);return n.excludeCurrentlyDisplayedValuesInSearch(this.searchResults),n.setValueToSearch(this.getValueInInputForFacetSearch()),n},n.prototype.showSearchResultsElement=function(){this.positionSearchResults()},n.prototype.hideSearchResultsElement=function(){this.searchResults.style.display="none"},n.prototype.highlightCurrentQueryWithinSearchResults=function(){var n=this,t=r.$$(this.searchResults).findAll(".coveo-facet-value-caption");u.each(t,function(t){var i=n.getValueInInputForFacetSearch(),u=new RegExp("("+nt.StringUtils.wildcardsToRegex(i,n.facet.options.facetSearchIgnoreAccents)+")","ig"),f=r.$$(t).text(),e=f.replace(u,'<span class="coveo-highlight">$1<\/span>');t.innerHTML=e})},n.prototype.makeFirstSearchResultTheCurrentOne=function(){this.makeCurrentResult(this.getSelectables()[0])},n.prototype.makeCurrentResult=function(n){u.each(this.getSelectables(),function(n){r.$$(n).removeClass("coveo-current")});r.$$(n).addClass("coveo-current")},n.prototype.moveCurrentResultDown=function(){var f=r.$$(this.searchResults).find(".coveo-current"),i,n,t;u.each(this.getSelectables(),function(n){r.$$(n).removeClass("coveo-current")});n=this.getSelectables();t=u.indexOf(n,f);i=t<n.length-1?r.$$(n[t+1]):r.$$(n[0]);this.highlightAndShowCurrentResultWithKeyboard(i)},n.prototype.moveCurrentResultUp=function(){var f=r.$$(this.searchResults).find(".coveo-current"),i,n,t;u.each(r.$$(this.searchResults).findAll(".coveo-facet-selectable"),function(n){r.$$(n).removeClass("coveo-current")});n=this.getSelectables();t=u.indexOf(n,f);i=t>0?r.$$(n[t-1]):r.$$(n[n.length-1]);this.highlightAndShowCurrentResultWithKeyboard(i)},n.prototype.highlightAndShowCurrentResultWithKeyboard=function(n){n.addClass("coveo-current");this.searchResults.scrollTop=n.el.offsetTop},n.prototype.getSelectables=function(n){return void 0===n&&(n=this.searchResults),r.$$(n).findAll(".coveo-facet-selectable")},n.prototype.performSelectActionOnCurrentSearchResult=function(){var t=r.$$(this.searchResults).find(".coveo-current"),n;s.Assert.check(void 0!=t);n=r.$$(t).find('input[type="checkbox"]');void 0!=n?(n.checked=!0,r.$$(n).trigger("change")):t.click()},n.prototype.performExcludeActionOnCurrentSearchResult=function(){var t=r.$$(this.searchResults).find(".coveo-current"),i,n;s.Assert.check(null!=t);i=r.$$(t).find(".coveo-facet-value-caption");n=this.facet.facetValuesList.get(r.$$(i).text());this.facet.toggleExcludeValue(n.facetValue);n.triggerOnExcludeQuery()},n.prototype.getValueInInputForFacetSearch=function(){return this.input.value},n.prototype.selectAllValuesMatchingSearch=function(){var t=this,n;this.facet.showWaitingAnimation();n=new l.FacetSearchParameters(this.facet);n.nbResults=1e3;n.setValueToSearch(this.getValueInInputForFacetSearch());this.facet.facetQueryController.search(n).then(function(n){t.completelyDismissSearch();v.ModalBox.close(!0);var i=u.map(n,function(n){var i=t.facet.values.get(n.value);return o.Utils.exists(i)||(i=a.FacetValue.create(n)),i.selected=!0,i.excluded=!1,i});t.facet.processFacetSearchAllResultsSelected(i)});this.completelyDismissSearch()},n.prototype.showFacetSearchWaitingAnimation=function(){r.$$(this.magnifier).hide();r.$$(this.wait).show();this.showingFacetSearchWaitAnimation=!0},n.prototype.hideFacetSearchWaitingAnimation=function(){r.$$(this.magnifier).show();r.$$(this.wait).hide();this.showingFacetSearchWaitAnimation=!1},n.prototype.detectSearchBarAnimation=function(){var n=this;c.EventsUtils.addPrefixedEvent(this.search,"AnimationStart",function(t){"grow"==t.animationName&&(n.searchBarIsAnimating=!0)});c.EventsUtils.addPrefixedEvent(this.search,"AnimationEnd",function(t){"grow"==t.animationName&&(n.searchBarIsAnimating=!1)})},n}();t.FacetSearch=ft},function(n,t,i){"use strict";var r=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},u=i(48),f=i(59),e=i(163),o=function(n){function t(t,i,r){var e=n.call(this,t,i)||this;return e.facet=t,e.facetValue=i,e.keepDisplayedValueNextTime=r,e.firstQuery=!0,f.$$(t.root).one(u.QueryEvents.querySuccess,function(){e.firstQuery=!1}),e}return r(t,n),t.prototype.bindEvent=function(){n.prototype.bindEvent.call(this,{displayNextTime:this.keepDisplayedValueNextTime,pinFacet:this.facet.options.preservePosition})},t}(e.ValueElement);t.FacetValueElement=o},function(n,t,i){"use strict";var e=i(164),o=i(13),r=i(112),f=i(59),s=i(16),h=i(32),c=i(23),u=i(69),l=function(){function n(n,t,i,r){this.facet=n;this.facetValue=t;this.onSelect=i;this.onExclude=r}return n.prototype.build=function(){return this.renderer=new e.ValueElementRenderer(this.facet,this.facetValue).build(),this.bindEvent({displayNextTime:!0,pinFacet:this.facet.options.preservePosition}),this},n.prototype.bindEvent=function(n){this.isOmnibox=o.Utils.isNullOrUndefined(n.omniboxObject)?!1:!0;this.handleEventForCheckboxChange(n);this.facetValue.excluded?this.handleEventForExcludedValueElement(n):this.handleEventForValueElement(n)},n.prototype.select=function(){this.facetValue.selected=!0;this.facetValue.excluded=!1;this.renderer.setCssClassOnListValueElement()},n.prototype.unselect=function(){this.facetValue.selected=!1;this.facetValue.excluded=!1;this.renderer.setCssClassOnListValueElement()},n.prototype.exclude=function(){var n=this,t;this.facetValue.selected=!1;this.facetValue.excluded=!0;this.renderer.setCssClassOnListValueElement();t=this.facetValue.excluded?this.isOmnibox?r.analyticsActionCauseList.omniboxFacetUnexclude:r.analyticsActionCauseList.facetUnexclude:this.isOmnibox?r.analyticsActionCauseList.omniboxFacetExclude:r.analyticsActionCauseList.facetExclude;this.onExclude?this.facet.triggerNewQuery(function(){return n.onExclude(n,t)}):this.facet.triggerNewQuery(function(){return n.facet.usageAnalytics.logSearchEvent(t,n.getAnalyticsFacetMeta())})},n.prototype.unexclude=function(){this.facetValue.selected=!1;this.facetValue.excluded=!1;this.renderer.setCssClassOnListValueElement()},n.prototype.triggerOnExcludeQuery=function(){var t,n=this;t=this.facetValue.excluded?this.isOmnibox?r.analyticsActionCauseList.omniboxFacetUnexclude:r.analyticsActionCauseList.facetUnexclude:this.isOmnibox?r.analyticsActionCauseList.omniboxFacetExclude:r.analyticsActionCauseList.facetExclude;this.onExclude?this.facet.triggerNewQuery(function(){return n.onExclude(n,t)}):this.facet.triggerNewQuery(function(){return n.facet.usageAnalytics.logSearchEvent(t,n.getAnalyticsFacetMeta())})},n.prototype.handleSelectValue=function(n){var t=this,i;this.facet.keepDisplayedValuesNextTime=n.displayNextTime&&!this.facet.options.useAnd;this.facetValue.excluded?(i=this.isOmnibox?r.analyticsActionCauseList.omniboxFacetUnexclude:r.analyticsActionCauseList.facetUnexclude,this.facet.unexcludeValue(this.facetValue)):(i=this.facetValue.selected?this.isOmnibox?r.analyticsActionCauseList.omniboxFacetDeselect:r.analyticsActionCauseList.facetDeselect:this.isOmnibox?r.analyticsActionCauseList.omniboxFacetSelect:r.analyticsActionCauseList.facetSelect,this.facet.toggleSelectValue(this.facetValue));this.onSelect?this.facet.triggerNewQuery(function(){return t.onSelect(t,i)}):this.facet.triggerNewQuery(function(){return t.facet.usageAnalytics.logSearchEvent(i,t.getAnalyticsFacetMeta())})},n.prototype.handleExcludeClick=function(n){this.facet.keepDisplayedValuesNextTime=n.displayNextTime&&!this.facet.options.useAnd;this.facet.toggleExcludeValue(this.facetValue);this.triggerOnExcludeQuery()},n.prototype.handleEventForExcludedValueElement=function(n){var t=this,i=function(){return n.pinFacet&&t.facet.pinFacetPosition(),n.omniboxObject&&t.omniboxCloseEvent(n.omniboxObject),t.handleSelectValue(n),!1};f.$$(this.renderer.label).on("click",function(n){n.stopPropagation();i(n)});f.$$(this.renderer.stylishCheckbox).on("keydown",u.KeyboardUtils.keypressAction([u.KEYBOARD.SPACEBAR,u.KEYBOARD.ENTER],i))},n.prototype.handleEventForValueElement=function(n){var t=this,r=function(i){return n.omniboxObject&&t.omniboxCloseEvent(n.omniboxObject),i.stopPropagation(),i.preventDefault(),t.handleExcludeClick(n),!1},i;f.$$(this.renderer.excludeIcon).on("click",r);f.$$(this.renderer.excludeIcon).on("keydown",u.KeyboardUtils.keypressAction([u.KEYBOARD.SPACEBAR,u.KEYBOARD.ENTER],r));i=function(i){return n.pinFacet&&t.facet.pinFacetPosition(),i.preventDefault(),f.$$(t.renderer.checkbox).trigger("change"),!1};f.$$(this.renderer.label).on("click",i);f.$$(this.renderer.stylishCheckbox).on("keydown",u.KeyboardUtils.keypressAction([u.KEYBOARD.SPACEBAR,u.KEYBOARD.ENTER],i))},n.prototype.handleEventForCheckboxChange=function(n){var t=this;f.$$(this.renderer.checkbox).on("change",function(){n.omniboxObject&&t.omniboxCloseEvent(n.omniboxObject);t.handleSelectValue(n);s.DeviceUtils.isMobileDevice()&&!t.facet.searchInterface.isNewDesign()&&t.facet.options.enableFacetSearch&&h.Defer.defer(function(){c.ModalBox.close(!0);t.facet.facetSearch.completelyDismissSearch()})})},n.prototype.omniboxCloseEvent=function(n){n.closeOmnibox();n.clear()},n.prototype.getAnalyticsFacetMeta=function(){return{facetId:this.facet.options.id,facetValue:this.facetValue.value,facetTitle:this.facet.options.title}},n}();t.ValueElement=l},function(n,t,i){"use strict";var r=i(59),u=i(13),e=i(35),o=i(103),f=i(14),s=function(){function n(n,t){this.facet=n;this.facetValue=t}return n.prototype.withNo=function(n){return f.isArray(n)?f.each(n,function(n){n&&r.$$(n).detach()}):n&&r.$$(n).detach(),this},n.prototype.build=function(){var t=this,n;return this.listItem=r.$$("li",{className:"coveo-facet-value coveo-facet-selectable"}).el,this.listItem.setAttribute("data-value",this.facetValue.value),this.facet.searchInterface.isNewDesign()||(this.excludeIcon=this.buildExcludeIcon(),this.listItem.appendChild(this.excludeIcon)),this.label=r.$$("label",{className:"coveo-facet-value-label"}).el,this.listItem.appendChild(this.label),this.facet.searchInterface.isNewDesign()&&(this.excludeIcon=this.buildExcludeIcon(),this.listItem.appendChild(this.excludeIcon),r.$$(this.excludeIcon).on("mouseover",function(){r.$$(t.listItem).addClass("coveo-facet-value-will-exclude")}),r.$$(this.excludeIcon).on("mouseout",function(){r.$$(t.listItem).removeClass("coveo-facet-value-will-exclude")})),u.Utils.exists(this.facetValue.computedField)&&(this.computedField=this.buildValueComputedField(),this.computedField&&this.label.appendChild(this.computedField),r.$$(this.label).addClass("coveo-with-computed-field")),n=r.$$("div",{className:"coveo-facet-value-label-wrapper"}).el,this.label.appendChild(n),this.checkbox=this.buildValueCheckbox(),n.appendChild(this.checkbox),this.stylishCheckbox=this.buildValueStylishCheckbox(),n.appendChild(this.stylishCheckbox),this.facet.options.showIcon&&!this.facet.searchInterface.isNewDesign()&&(this.icon=this.buildValueIcon(),n.appendChild(this.icon)),this.facet.searchInterface.isNewDesign()?(this.valueCount=this.buildValueCount(),this.valueCount&&n.appendChild(this.valueCount),this.valueCaption=this.buildValueCaption(),n.appendChild(this.valueCaption)):(this.valueCaption=this.buildValueCaption(),n.appendChild(this.valueCaption),this.valueCount=this.buildValueCount(),this.valueCount&&n.appendChild(this.valueCount)),this.setCssClassOnListValueElement(),this},n.prototype.setCssClassOnListValueElement=function(){r.$$(this.listItem).toggleClass("coveo-selected",this.facetValue.selected);r.$$(this.listItem).toggleClass("coveo-excluded",this.facetValue.excluded)},n.prototype.buildExcludeIcon=function(){var n=r.$$("div",{title:e.l("Exclude",this.facet.getValueCaption(this.facetValue)),className:"coveo-facet-value-exclude",tabindex:0}).el;return this.addFocusAndBlurEventListeners(n),this.facet.searchInterface.isNewDesign()&&n.appendChild(r.$$("span",{className:"coveo-icon"}).el),u.Utils.exists(this.facetValue.computedField)&&r.$$(n).addClass("coveo-facet-value-exclude-with-computed-field"),n},n.prototype.buildValueComputedField=function(){var t=this.facetValue.getFormattedComputedField(this.facet.options.computedFieldFormat),n;if(u.Utils.isNonEmptyString(t))return n=r.$$("span",{className:"coveo-facet-value-computed-field"}).el,r.$$(n).text(t),n},n.prototype.buildValueCheckbox=function(){var n=r.$$("input",{type:"checkbox"}).el;return this.facetValue.selected?n.setAttribute("checked","checked"):n.removeAttribute("checked"),this.facetValue.excluded?n.setAttribute("disabled","disabled"):n.removeAttribute("disabled"),o.Component.pointElementsToDummyForm(n),n},n.prototype.buildValueStylishCheckbox=function(){var n=r.$$("div",{className:"coveo-facet-value-checkbox",tabindex:0},r.$$("span")).el;return this.addFocusAndBlurEventListeners(n),n},n.prototype.buildValueIcon=function(){var n=this.getValueIcon();return u.Utils.exists(n)?r.$$("img",{className:"coveo-facet-value-icon coveo-icon",src:this.getValueIcon()}).el:this.buildValueIconFromSprite()},n.prototype.getValueIcon=function(){if(u.Utils.exists(this.facet.options.valueIcon))return this.facet.options.valueIcon(this.facetValue)},n.prototype.buildValueIconFromSprite=function(){return r.$$("div",{className:"coveo-facet-value-icon coveo-icon "+this.facet.options.field.substr(1)+" "+this.facetValue.value}).el},n.prototype.buildValueCaption=function(){var n=this.facet.getValueCaption(this.facetValue),t=r.$$("span",{className:"coveo-facet-value-caption",title:n}).el;return r.$$(t).text(n),t},n.prototype.buildValueCount=function(){var t=this.facetValue.getFormattedCount(),n;if(u.Utils.isNonEmptyString(t))return n=r.$$("span",{className:"coveo-facet-value-count"}).el,r.$$(n).text(t),n},n.prototype.addFocusAndBlurEventListeners=function(n){var t=this;r.$$(n).on("focus",function(){return r.$$(t.listItem).addClass("coveo-focused")});r.$$(n).on("blur",function(){return r.$$(t.listItem).removeClass("coveo-focused")})},n}();t.ValueElementRenderer=s},function(n,t,i){"use strict";var u=i(62),r=i(14),f=function(){function n(n,t){this.facet=n;this.facetSort=t}return n.prototype.reorderValues=function(n){if(this.facetSort){if("custom"==this.facetSort.activeSort.name&&void 0!=this.facet.options.customSort)return this.reorderValuesWithCustomOrder(n);if(this.facetSort.activeSort.name.indexOf("alpha")!=-1)return this.reorderValuesWithCustomCaption(n)}return n},n.prototype.reorderValuesWithCustomOrder=function(n){var i=r.map(this.facet.options.customSort,function(n){return n.toLowerCase()}),f=r.map(n,function(n,t){var f=r.findIndex(i,function(t){return u.StringUtils.equalsCaseInsensitive(t,n.value)||null!=n.lookupValue&&u.StringUtils.equalsCaseInsensitive(t,n.lookupValue)});return f==-1&&(f=t+i.length),{facetValue:n,index:f}}),t=r.sortBy(f,"index");return t="ascending"==this.facetSort.customSortDirection?t:t.reverse(),r.pluck(t,"facetValue")},n.prototype.reorderValuesWithCustomCaption=function(n){var i=this,t=r.sortBy(n,function(n){return i.facet.getValueCaption(n).toLowerCase()});return this.facetSort.activeSort.name.indexOf("descending")!=-1&&(t=t.reverse()),t},n}();t.FacetValuesOrder=f},function(n,t,i){"use strict";var h=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},c=i(167),r=i(59),l=i(70),f=i(13),e=i(35),s=i(101),a=i(112),v=i(16),o=i(72),u=i(14),y=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.sorts=t,r.facet=i,r.customSortDirectionChange=!1,r.enabledSortsIgnoreRenderBecauseOfPairs=[],r.filterDuplicateForRendering(),r}return h(t,n),t.prototype.build=function(){var n=this,t;return this.settingsButton=r.$$("div",{className:"coveo-facet-header-settings",title:e.l("Settings")}).el,this.settingsIcon=r.$$("span",{className:"coveo-icon"}).el,this.settingsButton.appendChild(this.settingsIcon),this.settingsPopup=r.$$("div",{className:"coveo-facet-settings-popup"}).el,f.Utils.isNonEmptyArray(this.enabledSorts)&&(this.sortSection=this.buildSortSection(),this.enabledSortsAllowDirection()&&(this.directionSection=this.buildDirectionSection())),this.facet.options.enableSettingsFacetState&&(this.saveStateSection=this.buildSaveStateSection(),this.clearStateSection=this.buildClearStateSection()),this.facet.options.enableCollapse&&(this.hideSection=this.buildHideSection(),this.showSection=this.buildShowSection()),t=function(){n.appendIfNotUndefined(n.saveStateSection);n.appendIfNotUndefined(n.clearStateSection);n.appendIfNotUndefined(n.hideSection);n.appendIfNotUndefined(n.showSection)},this.handleMouseEventOnButton(this.sortSection),f.Utils.isNonEmptyArray(this.enabledSorts)?(this.settingsPopup.appendChild(this.sortSection.element),u.each(this.directionSection,function(t){n.appendIfNotUndefined(t)}),t()):t(),this.settingsButton},t.prototype.loadSavedState=function(){var n;if(this.facetStateLocalStorage){var t=this.facetStateLocalStorage.load(),i=this.facet.queryStateModel.get(this.includedStateAttribute),r=this.facet.queryStateModel.get(this.excludedStateAttribute),u=this.facet.queryStateModel.get(this.operatorStateAttribute);!f.Utils.isNullOrUndefined(t)&&f.Utils.isEmptyArray(i)&&f.Utils.isEmptyArray(r)&&!f.Utils.isNonEmptyString(u)&&(n={},n[this.includedStateAttribute]=t.included,n[this.excludedStateAttribute]=t.excluded,n[this.operatorStateAttribute]=t.operator,this.facet.queryStateModel.setMultiple(n),this.loadedFromSettings=n)}else this.facet.logger.info("Facet state local storage not enabled : See Facet.options.enableSettingsFacetState")},t.prototype.saveState=function(){this.facetStateLocalStorage?this.facetStateLocalStorage.save({included:this.facet.queryStateModel.get(this.includedStateAttribute),excluded:this.facet.queryStateModel.get(this.excludedStateAttribute),operator:this.facet.queryStateModel.get(this.operatorStateAttribute)}):this.facet.logger.info("Facet state local storage not enabled : See Facet.options.enableSettingsFacetState")},t.prototype.close=function(){r.$$(this.settingsPopup).detach()},t.prototype.open=function(){var n=this;o.PopupUtils.positionPopup(this.settingsPopup,this.settingsButton,this.facet.root,this.getPopupAlignment(),this.facet.root);this.hideSection&&this.showSection&&(r.$$(this.hideSection).toggle(!r.$$(this.facet.element).hasClass("coveo-facet-collapsed")),r.$$(this.showSection).toggle(r.$$(this.facet.element).hasClass("coveo-facet-collapsed")));this.facet.options.enableSettingsFacetState&&r.$$(this.clearStateSection).toggle(!f.Utils.isNullOrUndefined(this.facetStateLocalStorage.load()));u.each(this.enabledSorts,function(t,i){f.Utils.isNullOrUndefined(n.sortSection.sortItems[i])||(n.activeSort.name==t.name.toLowerCase()||n.activeSort.relatedSort==t.name.toLowerCase()?n.selectItem(n.sortSection.sortItems[i]):n.unselectItem(n.sortSection.sortItems[i]))})},t.prototype.buildSortSection=function(){var t=this.buildSection("coveo-facet-settings-section-sort"),o=this.buildIcon(),i=this.buildItems(),n,f;return this.facet.searchInterface.isNewDesign()&&(n=document.createElement("div"),r.$$(n).addClass("coveo-facet-settings-section-sort-title"),r.$$(n).text(e.l("SortBy")+" :"),i.appendChild(n)),f=this.buildSortSectionItems(),u.each(f,function(n){i.appendChild(n)}),t.appendChild(o),t.appendChild(i),{element:t,sortItems:f}},t.prototype.buildSortSectionItems=function(){var n=this,t=u.map(this.enabledSorts,function(t){if(!u.contains(n.enabledSortsIgnoreRenderBecauseOfPairs,t)){var i=n.buildItem(e.l(t.label),t.description);return r.$$(i).on("click",function(i){return n.handleClickSortButton(i,t)}),i}});return u.compact(t)},t.prototype.closePopupAndUpdateSort=function(){this.close();"custom"!=this.activeSort.name?this.facet.updateSort(this.activeSort.name):(this.facet.updateSort("nosort"),this.customSortDirectionChange&&(this.customSortDirectionChange=!1,this.facet.queryController.executeQuery()))},t.prototype.enabledSortsAllowDirection=function(){return u.some(this.enabledSorts,function(n){return n.directionToggle})},t.prototype.buildDirectionSection=function(){var u=this,f;if(this.facet.searchInterface.isNewDesign()){var n=this.buildAscendingOrDescendingSection("Ascending"),c=this.buildIcon(),l=this.buildIcon(),s=this.buildItems(),e=this.buildAscendingOrDescending("Ascending");s.appendChild(e);n.appendChild(c);n.appendChild(s);r.$$(n).on("click",function(n){return u.handleDirectionClick(n,"ascending")});var t=this.buildAscendingOrDescendingSection("Descending"),h=this.buildItems(),f=this.buildAscendingOrDescending("Descending");return h.appendChild(f),t.appendChild(l),t.appendChild(h),r.$$(t).on("click",function(n){return u.handleDirectionClick(n,"descending")}),this.activeSort.directionToggle?this.selectItem(this.getItems(n)[0]):(r.$$(n).addClass("coveo-facet-settings-disabled"),r.$$(t).addClass("coveo-facet-settings-disabled")),[n,t]}var i=this.buildSection("coveo-facet-settings-section-direction"),a=this.buildIcon(),o=this.buildItems(),e=this.buildAscendingOrDescending("Ascending");r.$$(e).on("click",function(n){return u.handleDirectionClick(n,"ascending")});return f=this.buildAscendingOrDescending("Descending"),r.$$(f).on("click",function(n){return u.handleDirectionClick(n,"descending")}),o.appendChild(e),o.appendChild(f),i.appendChild(a),i.appendChild(o),this.activeSort.directionToggle?this.selectItem(this.getCurrentDirectionItem([i])):r.$$(i).addClass("coveo-facet-settings-disabled"),[i]},t.prototype.buildSaveStateSection=function(){var f=this,t=this.buildSection("coveo-facet-settings-section-save-state"),o=this.buildIcon(),i=this.buildItems(),n;return this.facetStateLocalStorage=new l.LocalStorageUtils("facet-state-"+this.facet.options.id),this.includedStateAttribute=s.QueryStateModel.getFacetId(this.facet.options.id),this.excludedStateAttribute=s.QueryStateModel.getFacetId(this.facet.options.id,!1),this.operatorStateAttribute=s.QueryStateModel.getFacetOperator(this.facet.options.id),n=document.createElement("div"),r.$$(n).addClass("coveo-facet-settings-item"),n.setAttribute("title",u.escape(e.l("SaveFacetState"))),r.$$(n).text(u.escape(e.l("SaveFacetState"))),i.appendChild(n),t.appendChild(o),t.appendChild(i),r.$$(t).on("click",function(){return f.handleSaveStateClick()}),t},t.prototype.buildClearStateSection=function(){var i=this,n=this.buildSection("coveo-facet-settings-section-clear-state"),u=this.buildIcon(),t=this.buildItems(),f=this.buildItem(e.l("ClearFacetState"));return t.appendChild(f),n.appendChild(u),n.appendChild(t),r.$$(n).on("click",function(){return i.handleClearStateClick()}),n},t.prototype.buildHideSection=function(){var t=this,n=this.buildSection("coveo-facet-settings-section-hide"),u=this.buildIcon(),i=this.buildItems(),f=this.buildItem(e.l("Collapse"));return i.appendChild(f),n.appendChild(u),n.appendChild(i),r.$$(n).on("click",function(){t.facet.facetHeader.collapseFacet();t.close()}),n},t.prototype.buildShowSection=function(){var t=this,n=this.buildSection("coveo-facet-settings-section-show"),u=this.buildIcon(),i=this.buildItems(),f=this.buildItem(e.l("Expand"));return i.appendChild(f),n.appendChild(u),n.appendChild(i),r.$$(n).on("click",function(){t.facet.facetHeader.expandFacet();t.close()}),n},t.prototype.buildIcon=function(){var t,n;return this.facet.searchInterface.isNewDesign()?(n=document.createElement("div"),r.$$(n).addClass("coveo-icon-container"),t=document.createElement("div"),r.$$(t).addClass("coveo-icon"),n.appendChild(t),n):(n=document.createElement("div"),r.$$(n).addClass("coveo-icon"),n)},t.prototype.buildAscendingOrDescending=function(n){var t=this.buildItem(e.l(n));return t.setAttribute("data-direction",n.toLowerCase()),t},t.prototype.buildAscendingOrDescendingSection=function(n){return this.buildSection("coveo-facet-settings-section-direction-"+n.toLowerCase())},t.prototype.buildItem=function(n,t){return void 0===t&&(t=n),r.$$("div",{className:"coveo-facet-settings-item",title:u.escape(t)},u.escape(n)).el},t.prototype.buildItems=function(){var n=document.createElement("div");return r.$$(n).addClass("coveo-facet-settings-items"),n},t.prototype.buildSection=function(n){var t=document.createElement("div");return r.$$(t).addClass(["coveo-facet-settings-section",n]),t},t.prototype.handleClickSettingsButtons=function(){f.Utils.isNullOrUndefined(this.settingsPopup.parentElement)?this.open():this.close()},t.prototype.handleClickSortButton=function(n,i){this.activeSort!=i&&this.activeSort.relatedSort!=i.name&&(this.activeSort=i,i.directionToggle&&u.contains(this.enabledSorts,t.availableSorts[this.activeSort.relatedSort])?this.activateDirectionSection():this.disableDirectionSection(),this.selectItem(n.target),this.closePopupAndUpdateSort())},t.prototype.handleDirectionClick=function(n,i){var f=this;r.$$(n.target.parentElement.parentElement).hasClass("coveo-facet-settings-disabled")||this.activeSort.name.indexOf(i)!=-1||(this.activeSort=t.availableSorts[this.activeSort.relatedSort],u.each(this.directionSection,function(n){f.unselectSection(n)}),this.selectItem(n.target),"custom"==this.activeSort.name&&this.customSortDirection!=i&&(this.customSortDirection=i,this.customSortDirectionChange=!0),this.closePopupAndUpdateSort())},t.prototype.handleSaveStateClick=function(){this.saveState();this.close()},t.prototype.handleClearStateClick=function(){var n=this;this.facetStateLocalStorage.remove();this.facet.reset();this.close();this.facet.triggerNewQuery(function(){return n.facet.usageAnalytics.logSearchEvent(a.analyticsActionCauseList.facetClearAll,{facetId:n.facet.options.id,facetTitle:n.facet.options.title})})},t.prototype.handleMouseEventOnButton=function(n){var u,f=this,t,i;r.$$(this.settingsButton).on("click",function(t){return f.handleClickSettingsButtons(t,n)});t=function(){u=setTimeout(function(){f.close()},300)};i=function(){clearTimeout(u)};r.$$(this.settingsIcon).on("mouseleave",t);r.$$(this.settingsPopup).on("mouseleave",t);r.$$(this.settingsIcon).on("mouseenter",i);r.$$(this.settingsPopup).on("mouseenter",i)},t.prototype.getCurrentDirectionItem=function(n){var i=this,t;return void 0===n&&(n=this.directionSection),u.each(n,function(n){t||(t=u.find(i.getItems(n),function(n){return i.activeSort.name.indexOf(n.getAttribute("data-direction"))!=-1}))}),t||(t=n[0]),t},t.prototype.activateDirectionSection=function(){var n=this;u.each(this.directionSection,function(t){r.$$(t).removeClass("coveo-facet-settings-disabled");n.unselectSection(t)});this.selectItem(this.getCurrentDirectionItem())},t.prototype.disableDirectionSection=function(){var n=this;u.each(this.directionSection,function(t){r.$$(t).addClass("coveo-facet-settings-disabled");n.unselectSection(t)})},t.prototype.getItems=function(n){return r.$$(n).findAll(".coveo-facet-settings-item")},t.prototype.unselectSection=function(n){u.each(this.getItems(n),function(n){r.$$(n).removeClass("coveo-selected")})},t.prototype.selectItem=function(n){r.$$(n).addClass("coveo-selected")},t.prototype.unselectItem=function(n){r.$$(n).removeClass("coveo-selected")},t.prototype.getPopupAlignment=function(){var n=v.DeviceUtils.isMobileDevice()?o.HorizontalAlignment.CENTER:o.HorizontalAlignment.INNERLEFT,t=o.VerticalAlignment.BOTTOM;return{horizontal:n,vertical:t}},t.prototype.filterDuplicateForRendering=function(){var n=this;u.each(this.enabledSorts,function(t,i){if(null!=t.relatedSort)for(var r=i+1;r<n.enabledSorts.length;r++)if(n.enabledSorts[r].name==t.relatedSort){n.enabledSortsIgnoreRenderBecauseOfPairs.push(n.enabledSorts[r]);break}})},t.prototype.appendIfNotUndefined=function(n){f.Utils.isNullOrUndefined(n)||this.settingsPopup.appendChild(n)},t}(c.FacetSort);t.FacetSettings=y},function(n,t,i){"use strict";var r=i(35),e=i(166),o=i(13),u=i(14),f=function(){function n(n,t){var i=this;this.facet=t;this.enabledSorts=[];this.customSortDirection="ascending";u.each(n,function(n){var t=e.FacetSettings.availableSorts[n.toLowerCase()];void 0!=t&&i.enabledSorts.push(t)});this.removeEnabledSortsBasedOnFacetType();o.Utils.isNonEmptyArray(this.enabledSorts)&&(void 0!=this.facet.options.sortCriteria&&(this.activeSort=u.find(this.enabledSorts,function(n){return n.name==i.facet.options.sortCriteria})),this.activeSort||(this.activeSort=this.enabledSorts[0]))}return n.prototype.removeEnabledSortsBasedOnFacetType=function(){if(Coveo.FacetRange&&this.facet instanceof Coveo.FacetRange){var n=this.facet;n.options.slider&&(this.enabledSorts=[])}},n}();f.availableSorts={score:{label:r.l("Score"),directionToggle:!1,description:r.l("ScoreDescription"),name:"score"},occurrences:{label:r.l("Occurrences"),directionToggle:!1,description:r.l("OccurrencesDescription"),name:"occurrences"},alphaascending:{label:r.l("Label"),directionToggle:!0,description:r.l("LabelDescription"),name:"alphaascending",relatedSort:"alphadescending"},alphadescending:{label:r.l("Label"),directionToggle:!0,description:r.l("LabelDescription"),name:"alphadescending",relatedSort:"alphaascending"},computedfieldascending:{label:r.l("Value"),directionToggle:!0,description:r.l("ValueDescription"),name:"computedfieldascending",relatedSort:"computedfielddescending"},computedfielddescending:{label:r.l("Value"),directionToggle:!0,description:r.l("ValueDescription"),name:"computedfielddescending",relatedSort:"computedfieldascending"},chisquare:{label:r.l("RelativeFrequency"),directionToggle:!1,description:r.l("RelativeFrequencyDescription"),name:"chisquare"},custom:{label:r.l("Custom"),directionToggle:!0,description:r.l("CustomDescription"),name:"custom",relatedSort:"custom"}};t.FacetSort=f},function(n,t,i){"use strict";var o=i(162),f=i(59),r=i(160),s=i(13),e=i(93),h=i(165),u=i(14),c=function(){function n(n,t){this.facet=n;this.facetValueElementKlass=t;this.valueList={};this.currentlyDisplayed=[]}return n.prototype.build=function(){return this.valueContainer=document.createElement("ul"),f.$$(this.valueContainer).addClass("coveo-facet-values"),this.valueContainer},n.prototype.getAllCurrentlyDisplayed=function(){return this.currentlyDisplayed},n.prototype.getAll=function(){return u.toArray(this.valueList)},n.prototype.getAllFacetValue=function(){return u.map(this.getAll(),function(n){return n.facetValue})},n.prototype.get=function(n){var t;return n instanceof r.FacetValue?t=n.value:(n=s.Utils.anyTypeToString(n),t=n),this.ensureFacetValueIsInList(n),this.valueList[t.toLowerCase()]},n.prototype.select=function(n){var t=this.get(n);return t.select(),t},n.prototype.unselect=function(n){var t=this.get(n);return t.unselect(),t},n.prototype.exclude=function(n){var t=this.get(n);return t.exclude(),t},n.prototype.unExclude=function(n){var t=this.get(n);return t.unexclude(),t},n.prototype.toggleSelect=function(n){var t=this.get(n);return t.facetValue.selected?t.unselect():t.select(),t},n.prototype.toggleExclude=function(n){var t=this.get(n);return t.facetValue.excluded?t.unexclude():t.exclude(),t},n.prototype.rebuild=function(n){var t=this;f.$$(this.valueContainer).empty();this.currentlyDisplayed=[];var o=this.getValuesToBuildWith(),i=n,r=document.createDocumentFragment();u.each(o,function(n,u){var f,e;t.facetValueShouldBeRemoved(n)?(t.facet.values.remove(n.value),i+=1):u<i&&(f=new t.facetValueElementKlass(t.facet,n,!0),t.valueList[n.value.toLowerCase()]=f,e=f.build().renderer.listItem,r.appendChild(e),t.currentlyDisplayed.push(f))});this.valueContainer.appendChild(r);e.FacetUtils.addNoStateCssClassToFacetValues(this.facet,this.valueContainer);e.FacetUtils.clipCaptionsToAvoidOverflowingTheirContainer(this.facet)},n.prototype.getValuesToBuildWith=function(){return this.facet.facetSort?new h.FacetValuesOrder(this.facet,this.facet.facetSort).reorderValues(this.facet.values.getAll()):this.facet.values.getAll()},n.prototype.facetValueShouldBeRemoved=function(n){return!(0!=n.occurrences||0!=n.delta&&void 0!=n.delta||n.selected||n.excluded||this.facet.keepDisplayedValuesNextTime)},n.prototype.ensureFacetValueIsInList=function(n){var t,u,i;n instanceof r.FacetValue?(t=this.facet.values.get(n.value),null==t&&(this.facet.values.add(n),t=n)):(t=this.facet.values.get(n),null==t&&(t=r.FacetValue.createFromValue(n),this.facet.values.add(t)));u=t.value.toLowerCase();i=this.valueList[u];void 0==i?(i=this.valueList[u]=new o.FacetValueElement(this.facet,t,!0),i.build()):i.facetValue=t},n}();t.FacetValuesList=c},function(n,t,i){"use strict";var r=i(59),e=i(93),u=i(35),f=i(112),o=function(){function n(n){this.options=n;this.element=document.createElement("div");r.$$(this.element).addClass("coveo-facet-header")}return n.prototype.build=function(){return this.options.isNewDesign?this.buildNewDesign():this.buildOldDesign()},n.prototype.switchToAnd=function(){this.options.facet&&(this.options.facet.options.useAnd=!0,this.rebuildOperatorToggle(),this.updateOperatorQueryStateModel())},n.prototype.switchToOr=function(){this.options.facet&&(this.options.facet.options.useAnd=!1,this.rebuildOperatorToggle(),this.updateOperatorQueryStateModel())},n.prototype.collapseFacet=function(){this.collapseElement&&this.expandElement&&(r.$$(this.collapseElement).hide(),r.$$(this.expandElement).show());r.$$(this.options.facetElement).addClass("coveo-facet-collapsed")},n.prototype.expandFacet=function(){this.collapseElement&&this.expandElement&&(r.$$(this.expandElement).hide(),r.$$(this.collapseElement).show());r.$$(this.options.facetElement).removeClass("coveo-facet-collapsed");this.options.facet&&e.FacetUtils.clipCaptionsToAvoidOverflowingTheirContainer(this.options.facet)},n.prototype.updateOperatorQueryStateModel=function(){if(this.options.facet&&this.options.facet.options.enableTogglingOperator){var n="";0==this.options.facet.getSelectedValues().length&&0==this.options.facet.getExcludedValues().length||(n=this.options.facet.options.useAnd?"and":"or");this.options.facet.queryStateModel.set(this.options.facet.operatorAttributeId,n)}},n.prototype.buildNewDesign=function(){var t=r.$$("div",{className:"coveo-facet-header-title-section"}),n;return void 0!=this.options.icon&&(this.iconElement=this.buildIcon(),t.append(this.iconElement)),t.append(this.buildTitle()),this.waitElement=this.buildWaitAnimation(),t.append(this.waitElement),this.element.appendChild(t.el),n=r.$$("div",{className:"coveo-facet-header-settings-section"}),this.eraserElement=this.buildEraser(),n.append(this.eraserElement),this.options.facet&&(this.operatorElement=this.buildOperatorToggle(),n.append(this.operatorElement),r.$$(this.operatorElement).toggle(this.options.facet.options.enableTogglingOperator)),this.options.settingsKlass?(this.sort=this.settings=new this.options.settingsKlass(this.options.availableSorts,this.options.facet),n.append(this.settings.build())):this.options.sortKlass&&(this.sort=new this.options.sortKlass(this.options.availableSorts,this.options.facet)),this.element.appendChild(n.el),this.element},n.prototype.buildOldDesign=function(){return this.element.appendChild(this.buildIcon()),this.element.appendChild(this.buildWaitAnimation()),this.options.settingsKlass?(this.sort=this.settings=new this.options.settingsKlass(this.options.availableSorts,this.options.facet),this.element.appendChild(this.settings.build())):this.options.sortKlass&&(this.sort=new this.options.sortKlass(this.options.availableSorts,this.options.facet)),this.options.enableCollapseElement&&(this.collapseElement=this.buildCollapse(),this.element.appendChild(this.collapseElement),this.expandElement=this.buildExpand(),this.element.appendChild(this.expandElement)),this.options.facet&&(this.operatorElement=this.buildOperatorToggle(),this.element.appendChild(this.operatorElement),r.$$(this.operatorElement).toggle(this.options.facet.options.enableTogglingOperator)),this.eraserElement=this.buildEraser(),this.element.appendChild(this.eraserElement),this.element.appendChild(this.buildTitle()),this.element},n.prototype.rebuildOperatorToggle=function(){var n=this.buildOperatorToggle();this.operatorElement&&r.$$(this.operatorElement).replaceWith(n);this.operatorElement=n},n.prototype.buildIcon=function(){var n;return n=this.options.icon?"coveo-icon-custom "+this.options.icon:"coveo-icon "+this.options.field.substr(1),this.iconElement=document.createElement("div"),r.$$(this.iconElement).addClass(n),this.iconElement},n.prototype.buildWaitAnimation=function(){return this.waitElement=document.createElement("div"),r.$$(this.waitElement).addClass("coveo-facet-header-wait-animation"),this.options.isNewDesign?this.waitElement.style.visibility="hidden":r.$$(this.waitElement).hide(),this.waitElement},n.prototype.buildCollapse=function(){var i=this,t=document.createElement("span"),n;return r.$$(t).addClass("coveo-icon"),n=document.createElement("div"),n.setAttribute("title",u.l("Collapse")),r.$$(n).addClass("coveo-facet-header-collapse"),n.appendChild(t),r.$$(n).on("click",function(){return i.collapseFacet()}),n},n.prototype.buildExpand=function(){var i=this,t=document.createElement("span"),n;return r.$$(t).addClass("coveo-icon"),n=document.createElement("div"),n.setAttribute("title",u.l("Expand")),r.$$(n).hide(),r.$$(n).addClass("coveo-facet-header-expand"),n.appendChild(t),r.$$(n).on("click",function(){return i.expandFacet()}),n},n.prototype.buildOperatorToggle=function(){var i=this,t=document.createElement("span"),n;return r.$$(t).addClass(["coveo-"+(this.options.facet.options.useAnd?"and":"or"),"coveo-icon"]),n=document.createElement("div"),n.setAttribute("title",u.l("SwitchTo",this.options.facet.options.useAnd?u.l("Or"):u.l("And"))),r.$$(n).addClass("coveo-facet-header-operator"),n.appendChild(t),r.$$(n).on("click",function(){return i.handleOperatorClick()}),n},n.prototype.handleOperatorClick=function(){var n=this,t,i;(this.options.facet.options.useAnd?this.options.facet.switchToOr():this.options.facet.switchToAnd(),0!=this.options.facet.getSelectedValues().length)&&(t=this.options.facet.options.useAnd?"AND":"OR",i=this.options.facet.options.useAnd?"OR":"AND",this.options.facet.triggerNewQuery(function(){return n.options.facet.usageAnalytics.logSearchEvent(f.analyticsActionCauseList.facetToggle,{facetId:n.options.facet.options.id,facetOperatorBefore:i,facetOperatorAfter:t,facetTitle:n.options.title})}))},n.prototype.buildTitle=function(){var n=r.$$("div",{title:this.options.title,className:"coveo-facet-header-title"});return n.text(this.options.title),n.el},n.prototype.buildEraser=function(){var t=this,i=document.createElement("span"),n;return r.$$(i).addClass("coveo-icon"),n=document.createElement("div"),n.setAttribute("title",u.l("Clear",this.options.title)),n.appendChild(i),r.$$(n).addClass("coveo-facet-header-eraser"),r.$$(n).on("click",function(){var n=t.options.facet||t.options.facetSlider;n.reset();n.usageAnalytics.logSearchEvent(f.analyticsActionCauseList.facetClearAll,{facetId:n.options.id,facetTitle:n.options.title});n.queryController.executeQuery()}),n},n}();t.FacetHeader=o},function(n,t,i){"use strict";var u=i(12),f=i(16),e=i(112),r=i(59),o=i(14),s=function(){function n(n,t){this.facet=n;this.facetValue=t}return n.prototype.build=function(n){var t=this,i,o,h,s;return void 0===n&&(n=!0),u.Assert.exists(this.facetValue),i=f.DeviceUtils.isMobileDevice()?r.$$("div"):r.$$("span"),i.addClass("coveo-facet-breadcrumb-value"),i.toggleClass("coveo-selected",this.facetValue.selected),i.toggleClass("coveo-excluded",this.facetValue.excluded),i.el.setAttribute("title",this.getBreadcrumbTooltip()),o=r.$$("span",{className:"coveo-facet-breadcrumb-caption"}),o.text(this.facet.getValueCaption(this.facetValue)),i.el.appendChild(o.el),h=r.$$("span",{className:"coveo-facet-breadcrumb-clear"}),i.el.appendChild(h.el),s=!1,i.on("click",function(){s||(s=!0,t.facetValue.excluded?t.facet.unexcludeValue(t.facetValue.value):t.facet.deselectValue(t.facetValue.value),t.facet.triggerNewQuery(function(){return t.facet.usageAnalytics.logSearchEvent(e.analyticsActionCauseList.breadcrumbFacet,{facetId:t.facet.options.id,facetValue:t.facetValue.value,facetTitle:t.facet.options.title})}))}),i},n.prototype.getBreadcrumbTooltip=function(){var n=[this.facet.getValueCaption(this.facetValue),this.facetValue.getFormattedCount(),this.facetValue.getFormattedComputedField(this.facet.options.computedFieldFormat)];return o.compact(n).join(" ")},n}();t.BreadcrumbValueElement=s},function(n,t,i){"use strict";var f=i(16),s=i(12),e=i(35),r=i(59),o=i(28),u=i(14),h=function(){function n(n,t,i){this.facet=n;this.facetValues=t;this.breadcrumbValueElementKlass=i;this.setExpandedAndCollapsed();this.elem=r.$$("div",{className:"coveo-facet-breadcrumb"}).el;var u=r.$$("span");u.addClass("coveo-facet-breadcrumb-title");u.text(this.facet.options.title+":");this.elem.appendChild(u.el);this.valueContainer=r.$$("span",{className:"coveo-facet-breadcrumb-values"}).el;this.elem.appendChild(this.valueContainer)}return n.prototype.build=function(){return this.buildExpanded(),0!=this.collapsed.length&&this.buildCollapsed(),this.elem},n.prototype.buildAsString=function(){return this.build(),this.elem?this.facet.options.title+": "+u.map(r.$$(this.elem).findAll(".coveo-facet-breadcrumb-value"),function(n){return r.$$(n).text()}).join(", "):""},n.prototype.buildExpanded=function(){var n=this;u.each(this.expanded,function(t,i){var u,e;0==i||f.DeviceUtils.isMobileDevice()||n.facet.searchInterface.isNewDesign()||(u=r.$$("span",{className:"coveo-facet-breadcrumb-separator"}),u.text(", "),n.valueContainer.appendChild(u.el));e=new n.breadcrumbValueElementKlass(n.facet,t).build();n.valueContainer.appendChild(e.el)})},n.prototype.buildCollapsed=function(){var t=this,i=u.filter(this.collapsed,function(n){return n.selected}).length,h=u.filter(this.collapsed,function(n){return n.excluded}).length,n,c,l,y,a,p,v,w;s.Assert.check(i+h==this.collapsed.length);n=r.$$("div",{className:"coveo-facet-breadcrumb-value"});f.DeviceUtils.isMobileDevice()||this.facet.searchInterface.isNewDesign()||(c=r.$$("span",{className:"coveo-separator"}),c.text(", "),n.el.appendChild(c.el));i>0&&(l=r.$$("span",{className:"coveo-facet-breadcrumb-multi-count"}),l.text(e.l("NMore",o.format(i,"n0"))),n.el.appendChild(l.el),y=r.$$("div",{className:"coveo-selected coveo-facet-breadcrumb-multi-icon"}),n.el.appendChild(y.el));h>0&&(a=r.$$("span",{className:"coveo-facet-breadcrumb-multi-count"}),a.text(e.l("NMore",o.format(h,"n0"))),n.el.appendChild(a.el),p=r.$$("div",{className:"coveo-excluded coveo-facet-breadcrumb-multi-icon"}),n.el.appendChild(p.el));v=u.map(this.collapsed,function(n){return new t.breadcrumbValueElementKlass(t.facet,n)});w=u.map(v,function(n){return n.getBreadcrumbTooltip()});n.el.setAttribute("title",w.join("\n"));n.on("click",function(){var i=[];u.forEach(v,function(n){if(!f.DeviceUtils.isMobileDevice()&&!t.facet.searchInterface.isNewDesign()){var u=r.$$("span",{className:"coveo-facet-breadcrumb-separator"});u.text(", ");i.push(u.el)}i.push(n.build(!1).el)});u.each(i,function(t){r.$$(t).insertBefore(n.el)});n.detach()});this.valueContainer.appendChild(n.el)},n.prototype.setExpandedAndCollapsed=function(){this.facetValues.length>this.facet.options.numberOfValuesInBreadcrumb?(this.collapsed=u.rest(this.facetValues,this.facet.options.numberOfValuesInBreadcrumb-1),this.expanded=u.first(this.facetValues,this.facet.options.numberOfValuesInBreadcrumb-1)):(this.collapsed=[],this.expanded=this.facetValues)},n}();t.BreadcrumbValueList=h},function(n,t,i){"use strict";var r=i(14),u=function(){function n(n,t){this.facet=n;this.facetValueElementKlass=t}return n.prototype.build=function(n){var t=this,i=r.map(n,function(n){return r.find(t.facet.values.getAll(),function(t){return t.value==n.value})||n});return r.map(i,function(n){return new t.facetValueElementKlass(t.facet,n,t.facet.keepDisplayedValuesNextTime).build().renderer.listItem})},n}();t.FacetSearchValuesList=u},function(n,t,i){"use strict";var r=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},u=i(163),f=function(n){function t(t,i,r,u,f){var e=n.call(this,t,i,u,f)||this;return e.facet=t,e.facetValue=i,e.eventArg=r,e}return r(t,n),t.prototype.bindEvent=function(){n.prototype.bindEvent.call(this,{displayNextTime:!1,pinFacet:!1,omniboxObject:this.eventArg})},t}(u.ValueElement);t.OmniboxValueElement=f},function(n,t,i){"use strict";var r=i(59),f=i(13),e=i(93),u=i(14),o=function(){function n(n,t,i,r){this.facet=n;this.facetValues=t;this.omniboxObject=i;this.omniboxValueElementKlass=r}return n.prototype.build=function(){var n=this,t=[];return u.each(this.facetValues,function(i){t.push(n.buildOmniboxForOneRow(i,n.omniboxObject))}),this.buildFinalOmniboxElement(t)},n.prototype.buildOmniboxForOneRow=function(n,t){var f=this,e=function(n,t){return f.logAnalyticsEvent(n,t)},o=function(n,t){return f.logAnalyticsEvent(n,t)},s=new this.omniboxValueElementKlass(this.facet,n,t,e,o),u=s.build().renderer.listItem,h=t.completeQueryExpression.regex,c=t.completeQueryExpression.word,l=r.$$(u).find(".coveo-facet-value-caption"),i;return l.innerHTML=this.highlightOmniboxMatch(this.facet.getValueCaption(n),h,c),i=r.$$("div",{className:"coveo-omnibox-selectable coveo-facet-value coveo-omnibox-facet-value"}).el,i.appendChild(u),r.$$(i).on("keyboardSelect",function(){var n=r.$$(u).find("input[type=checkbox]");r.$$(n).trigger("change")}),i["no-text-suggestion"]=!0,i},n.prototype.buildFinalOmniboxElement=function(n){var i=this.buildOmniboxHeader(),t;if(!f.Utils.isEmptyArray(n))return t=r.$$("div",{className:"coveo-omnibox-facet-value"}).el,t.appendChild(i),u.each(n,function(n){t.appendChild(n)}),e.FacetUtils.addNoStateCssClassToFacetValues(this.facet,t),t},n.prototype.buildOmniboxHeader=function(){var t=this.facet.options.title,n=r.$$("div",{className:"coveo-omnibox-facet-header"}).el,i;return this.facet.searchInterface.isNewDesign()?(r.$$(n).text(t),n):(i=r.$$("span",{className:"coveo-icon "+this.facet.options.field.substr(1)}).el,n.appendChild(i),r.$$(n).text(t),n)},n.prototype.highlightOmniboxMatch=function(n,t,i){var r=n.search(t),u=r+i.length;return n.slice(0,r)+'<span class="coveo-highlight">'+n.slice(r,u)+"<\/span>"+n.slice(u)},n.prototype.logAnalyticsEvent=function(n,t){var i=u.pluck(this.facetValues,"value");n.facet.usageAnalytics.logSearchEvent(t,{query:this.omniboxObject.completeQueryExpression.word,facetId:n.facet.options.id,facetTitle:n.facet.options.title,facetValue:n.facetValue.value,suggestions:i.join(";"),suggestionRanking:u.indexOf(i,n.facetValue.value)})},n}();t.OmniboxValuesList=o},function(n,t,i){"use strict";var u=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},f=i(135),r=i(112),e=i(103),o=i(106),s=function(n){function t(t,i,r,u,f,e,o,s,h,c){var l=n.call(this,t,i,r,u,f,e,o,s,h)||this;return l.endpoint=t,l.rootElement=i,l.userId=r,l.userDisplayName=u,l.anonymous=f,l.splitTestRunName=e,l.splitTestRunVersion=o,l.originLevel1=s,l.sendToCloud=h,l.bindings=c,l.recommendation=l.bindings.searchInterface,l}return u(t,n),t.prototype.logSearchEvent=function(t,i){t==r.analyticsActionCauseList.interfaceLoad&&(t=r.analyticsActionCauseList.recommendationInterfaceLoad);n.prototype.logSearchEvent.call(this,t,i)},t.prototype.logClickEvent=function(t,i,u,f){if(t==r.analyticsActionCauseList.documentOpen&&(t=r.analyticsActionCauseList.recommendationOpen),n.prototype.logClickEvent.call(this,t,i,u,f),this.recommendation.mainQuerySearchUID&&null!=this.recommendation.mainQueryPipeline){var s=e.Component.get(this.recommendation.options.mainSearchInterface,o.SearchInterface);u.queryUid=this.recommendation.mainQuerySearchUID;u.pipeline=this.recommendation.mainQueryPipeline;s.usageAnalytics.logClickEvent(t,i,u,f)}},t.prototype.getOriginLevel2=function(){return this.recommendation.getId()},t}(f.LiveAnalyticsClient);t.RecommendationAnalyticsClient=s},function(n,t,i){"use strict";function r(){return!!u()&&(t.jQueryInstance=s(),void 0==window.Coveo&&(window.Coveo={}),void 0==window.Coveo.$&&(window.Coveo.$=t.jQueryInstance),t.jQueryInstance.fn.coveo=function(){for(var i,n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return this.each(function(t,r){var u,e;h.isString(n[0])?(e=n[0],u=f.Initialization.dispatchNamedMethodCallOrComponentCreation(e,r,n.slice(1))):u=f.Initialization.dispatchNamedMethodCall("get",r,n);i=i||u}),i},!0)}function u(){return o()||e()}function e(){return void 0!=window.Coveo&&void 0!=window.Coveo.$}function o(){return void 0!=window.$&&void 0!=window.$.fn&&void 0!=window.$.fn.jquery}function s(){return window.$?window.$:window.Coveo.$}var f=i(111),h=i(14);r()||document.addEventListener("DOMContentLoaded",function(){r()});t.initCoveoJQuery=r;t.jQueryIsDefined=u},function(n,t,i){"use strict";var e=i(178),r,u,f;t.TemplateHelpers=e.TemplateHelpers;r=i(108);t.TemplateCache=r.TemplateCache;u=i(117);t.HtmlTemplate=u.HtmlTemplate;f=i(114);t.UnderscoreTemplate=f.UnderscoreTemplate},function(n,t,i){"use strict";var r=i(12),f=i(114),e=i(13),u=function(){function n(){}return n.registerFieldHelper=function(t,i){n.fieldHelpers.push(t);n.registerTemplateHelper(t,i)},n.registerTemplateHelper=function(t,i){r.Assert.isNonEmptyString(t);r.Assert.exists(i);n.registerTemplateHelperInUnderscore(t,i);n.helpers[t]=i},n.getHelper=function(t){return e.Utils.getCaseInsensitiveProperty(n.helpers,t)},n.getHelpers=function(){return n.helpers},n.registerTemplateHelperInUnderscore=function(n,t){r.Assert.isNonEmptyString(n);r.Assert.exists(t);f.UnderscoreTemplate.registerTemplateHelper(n,t)},n}();u.helpers={};u.fieldHelpers=[];t.TemplateHelpers=u},function(n,t,i){"use strict";function h(){return ut.ResultList.resultCurrentlyBeingRendered||ot.Quickview.resultCurrentlyBeingRendered}function y(){var n=h();if(n)return n.termsToHighlight}function p(){var n=h();if(n)return n.phrasesToHighlight}function w(n,t){return u.Utils.isNonEmptyArray(f.keys(n))||u.Utils.isNonEmptyArray(f.keys(t))}var r=i(178),s=i(67),e=i(58),d=i(57),l=i(68),g=i(180),u=i(13),c=i(62),nt=i(15),a=i(65),tt=i(21),b=i(16),it=i(108),o=i(59),rt=i(9),ut=i(184),k=i(73),ft=i(93),et=i(28),ot=i(181),f=i(14),st=function(){function n(){}return n.exportAllHelpersGlobally=function(n){f.each(r.TemplateHelpers.getHelpers(),function(t,i){void 0==n[i]&&(n[i]=t)})},n}(),v;t.CoreHelpers=st;r.TemplateHelpers.registerFieldHelper("javascriptEncode",function(n){if(u.Utils.exists(n))return c.StringUtils.javascriptEncode(n)});r.TemplateHelpers.registerTemplateHelper("shorten",function(n,t,i,r){var f=s.StringAndHoles.shortenString(n,t,"...");return u.Utils.exists(i)?s.HighlightUtils.highlightString(f.value,i,f.holes,r||"highlight"):f.value});r.TemplateHelpers.registerTemplateHelper("shortenPath",function(n,t,i,r){var f=s.StringAndHoles.shortenPath(n,t);return u.Utils.exists(i)?s.HighlightUtils.highlightString(f.value,i,f.holes,r||"highlight"):f.value});r.TemplateHelpers.registerTemplateHelper("shortenUri",function(n,t,i,r){var f=s.StringAndHoles.shortenUri(n,t);return u.Utils.exists(i)?s.HighlightUtils.highlightString(f.value,i,f.holes,r||"highlight"):f.value});r.TemplateHelpers.registerTemplateHelper("highlight",function(n,t,i){if(u.Utils.exists(n))return u.Utils.exists(t)?s.HighlightUtils.highlightString(n,t,null,i||"highlight"):n});r.TemplateHelpers.registerTemplateHelper("highlightStreamText",function(n,t,i,r){return void 0===t&&(t=y()),void 0===i&&(i=p()),u.Utils.exists(n)&&u.Utils.exists(t)&&u.Utils.exists(i)?w(t,i)?k.StreamHighlightUtils.highlightStreamText(n,t,i,r):n:void 0});r.TemplateHelpers.registerTemplateHelper("highlightStreamHTML",function(n,t,i,r){return void 0===t&&(t=y()),void 0===i&&(i=p()),u.Utils.exists(n)&&u.Utils.exists(t)&&u.Utils.exists(i)?w(t,i)?k.StreamHighlightUtils.highlightStreamHTML(n,t,i,r):n:void 0});r.TemplateHelpers.registerFieldHelper("number",function(n,t){var i=Number(n);if(u.Utils.exists(n))return f.isString(t)?c.StringUtils.htmlEncode(et.format(i,t)):c.StringUtils.htmlEncode(i.toString())});r.TemplateHelpers.registerFieldHelper("date",function(n,t){return e.DateUtils.dateToString(e.DateUtils.convertFromJsonDateIfNeeded(n),t)});r.TemplateHelpers.registerFieldHelper("time",function(n,t){return e.DateUtils.timeToString(e.DateUtils.convertFromJsonDateIfNeeded(n),t)});r.TemplateHelpers.registerFieldHelper("dateTime",function(n,t){return e.DateUtils.dateTimeToString(e.DateUtils.convertFromJsonDateIfNeeded(n),t)});r.TemplateHelpers.registerFieldHelper("emailDateTime",function(n,t){var i={},r;return i.includeTimeIfThisWeek=!0,r=f.extend(t,i),n?e.DateUtils.dateTimeToString(e.DateUtils.convertFromJsonDateIfNeeded(n),r):void 0});r.TemplateHelpers.registerFieldHelper("currency",function(n,t){return d.CurrencyUtils.currencyToString(n,t)});r.TemplateHelpers.registerFieldHelper("timeSpan",function(n,t){return void 0===t&&(t={isMilliseconds:!1}),new nt.TimeSpan(n,t.isMilliseconds).getHHMMSS()});r.TemplateHelpers.registerFieldHelper("email",function(n){for(var e,o,i,r,s,t=[],u=1;u<arguments.length;u++)t[u-1]=arguments[u];return(f.isObject(t[0])?(e=t[0].companyDomain,o=t[0].me,i=t[0].lengthLimit,r=t[0].truncateName):(e=t[0],o=t[1],i=t[2],r=t[3]),void 0==i&&(i=2),void 0==r&&(r=!1),f.isString(n))?(s=a.EmailUtils.splitSemicolonSeparatedListOfEmailAddresses(n),a.EmailUtils.emailAddressesToHyperlinks(s,e,o,i,r)):f.isArray(n)?a.EmailUtils.emailAddressesToHyperlinks(n,e,o,i,r):void 0});r.TemplateHelpers.registerTemplateHelper("excessEmailToggle",function(n){o.$$(n).removeClass("coveo-active");o.$$(n).hasClass("coveo-emails-excess-collapsed")?f.each(o.$$(n).siblings(".coveo-emails-excess-expanded"),function(n){o.$$(n).addClass("coveo-active")}):o.$$(n).hasClass("coveo-hide-expanded")&&(o.$$(n.parentElement).addClass("coveo-inactive"),f.each(o.$$(n.parentElement).siblings(".coveo-emails-excess-collapsed"),function(n){o.$$(n).addClass("coveo-active")}))});r.TemplateHelpers.registerFieldHelper("anchor",function(n,t){return l.AnchorUtils.buildAnchor(n,t)});r.TemplateHelpers.registerFieldHelper("image",function(n,t){return l.ImageUtils.buildImage(n,t)});r.TemplateHelpers.registerTemplateHelper("thumbnail",function(n,t,i){if(void 0===n&&(n=h()),void 0===t&&(t="default"),tt.QueryUtils.hasThumbnail(n))return l.ImageUtils.buildImageFromResult(n,rt.SearchEndpoint.endpoints[t],i)});r.TemplateHelpers.registerTemplateHelper("fromFileTypeToIcon",function(n,t){return void 0===n&&(n=h()),void 0===t&&(t={}),g.Icon.createIcon(n,t).outerHTML});r.TemplateHelpers.registerTemplateHelper("attrEncode",function(n){return(""+n).replace(/&/g,"&amp;").replace(/'/g,"&apos;").replace(/'/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")});r.TemplateHelpers.registerTemplateHelper("loadTemplates",function(n,t){void 0===t&&(t=!0);var i,e="",o=h(),u=!1,s=n;return f.each(n,function(n,t){"default"==n&&(i=t)}),void 0!=i&&(s=f.omit(n,i)),f.each(s,function(n,i){u&&t||(u=u||n,e+=r.TemplateHelpers.getHelper("loadTemplate")(i,n,o))}),u||void 0==i||(e+=r.TemplateHelpers.getHelper("loadTemplate")(i,!0,o)),e});v=["B","KB","MB","GB","TB","PB","EB"];r.TemplateHelpers.registerFieldHelper("size",function(n,t){for(var i=parseInt(n,10),u=null!=t&&null!=t.precision?t.precision:2,r=null!=t&&null!=t.base?t.base:0;i>1024&&r+1<v.length;)i/=1024,r++;return i=Math.floor(i*Math.pow(10,u))/Math.pow(10,u),i+" "+v[r]});r.TemplateHelpers.registerFieldHelper("translatedCaption",function(n){return ft.FacetUtils.tryToGetTranslatedCaption("@filetype",n)});r.TemplateHelpers.registerTemplateHelper("loadTemplate",function(n,t,i){return void 0===t&&(t=!0),u.Utils.isNullOrUndefined(i)&&(i=h()),t?it.TemplateCache.getTemplate(n).instantiateToString(i,{checkCondition:!1}):""});r.TemplateHelpers.registerTemplateHelper("encodeCarriageReturn",function(n){if(!u.Utils.isNullOrUndefined(n))return c.StringUtils.encodeCarriageReturn(n)});r.TemplateHelpers.registerTemplateHelper("isMobileDevice",function(){return b.DeviceUtils.isMobileDevice()?b.DeviceUtils.getDeviceName():null})},function(n,t,i){"use strict";var o=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},e=i(103),u=i(107),s=i(12),h=i(21),c=i(111),l=i(13),a=i(61),v=i(181),r=i(59),f=function(n){function t(i,f,o,c){var a=n.call(this,i,t.ID,o)||this,y;return a.element=i,a.options=f,a.result=c,a.options=u.ComponentOptions.initComponentOptions(i,t,f),a.result=a.result||a.resolveResult(),s.Assert.exists(a.result),y=r.$$(a.element).find("."+e.Component.computeCssClassNameForType(v.Quickview.ID)),!l.Utils.isNullOrUndefined(y)&&h.QueryUtils.hasHTMLVersion(a.result)&&(r.$$(a.element).addClass("coveo-with-quickview"),r.$$(a.element).on("click",function(){var n=e.Component.get(y);n.open()})),t.createIcon(a.result,a.options,i,o),a}return o(t,n),t.createIcon=function(n,i,u,f){void 0===i&&(i={});void 0===u&&(u=r.$$("div").el);var e=a.FileTypes.get(n);return!f&&n.searchInterface&&(f=n.searchInterface.getBindings()),e=t.preprocessIconInfo(i,e),r.$$(u).toggleClass("coveo-small",i.small===!0),void 0!=i.value&&(i.small===!0&&i.value.indexOf("-small")==-1&&(e.icon+="-small"),i.small===!1&&i.value.indexOf("-small")!=-1&&(e.icon=e.icon.replace("-small",""))),r.$$(u).addClass(e.icon),u.setAttribute("title",e.caption),t.shouldDisplayLabel(i,f)&&(u.appendChild(r.$$("span",{className:"coveo-icon-caption-overlay"},e.caption).el),r.$$(u).addClass("coveo-icon-with-caption-overlay"),r.$$(u).setAttribute("data-with-label","true")),u},t.shouldDisplayLabel=function(n,t){return t&&t.searchInterface.isNewDesign()&&n.withLabel!==!1},t.preprocessIconInfo=function(n,t){return null!=n.labelValue&&(t.caption=n.labelValue),null!=n.value&&(t.icon="coveo-icon "+n.value),null==t.caption&&(t.caption=""),null==t.icon&&(t.icon="coveo-icon coveo-sprites-custom"),t},t}(e.Component);f.ID="Icon";f.options={value:u.ComponentOptions.buildIconOption(),small:u.ComponentOptions.buildBooleanOption(),withLabel:u.ComponentOptions.buildBooleanOption(),labelValue:u.ComponentOptions.buildLocalizedStringOption()};f.fields=["objecttype","filetype"];t.Icon=f;c.Initialization.registerAutoCreateComponent(f)},function(n,t,i){"use strict";var a=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},e=i(103),u=i(107),c=i(60),v=i(16),r=i(59),y=i(182),p=i(49),w=i(62),s=i(183),l=i(101),b=i(141),o=i(111),h=i(69),k=i(23),f=function(n){function t(i,f,e,o,s){var h,c,a,l;return void 0===s&&(s=k.ModalBox),h=n.call(this,i,t.ID,e)||this,(h.element=i,h.options=f,h.bindings=e,h.result=o,h.ModalBox=s,h.bindedHandleEscapeEvent=h.handleEscapeEvent.bind(h),h.options=u.ComponentOptions.initComponentOptions(i,t,f),null==h.options.contentTemplate&&(h.options.contentTemplate=new y.DefaultQuickviewTemplate),/^\s*$/.test(h.element.innerHTML))&&(c=r.$$("div"),(c.addClass("coveo-icon-for-quickview"),h.searchInterface.isNewDesign())?(a=r.$$("div",{className:"coveo-caption-for-quickview",tabindex:0},"Quickview".toLocaleString()).el,l=r.$$("div"),l.append(c.el),l.append(a),r.$$(h.element).append(l.el)):(c.text("Quickview".toLocaleString()),r.$$(h.element).append(c.el))),h.bindClick(o),h.bindings.resultElement&&h.bind.on(h.bindings.resultElement,p.ResultListEvents.openQuickview,function(){return h.open()}),h}return a(t,n),t.prototype.open=function(){if(null==this.modalbox){t.resultCurrentlyBeingRendered=this.result;r.$$(document.activeElement).trigger("blur");var n=this.prepareOpenQuickviewObject();this.createModalBox(n);this.bindQuickviewEvents(n);this.animateAndOpen();this.queryStateModel.set(l.QueryStateModel.attributesEnum.quickview,this.getHashId());t.resultCurrentlyBeingRendered=null}},t.prototype.close=function(){null!=this.modalbox&&(this.modalbox.close(),this.modalbox=null,r.$$(document.body).off("keyup",this.bindedHandleEscapeEvent))},t.prototype.getHashId=function(){return this.result.queryUid+"."+this.result.index+"."+w.StringUtils.hashCode(this.result.uniqueId)},t.prototype.bindClick=function(n){var i=this,t;"undefined"==typeof n.hasHtmlVersion||n.hasHtmlVersion||this.options.alwaysShow?(t=function(){return i.open()},r.$$(this.element).on("click",t),this.bind.on(this.element,"keyup",h.KeyboardUtils.keypressAction(h.KEYBOARD.ENTER,t))):this.element.style.display="none"},t.prototype.bindQuickviewEvents=function(n){var t=this,i=r.$$(this.modalbox.wrapper).find(".coveo-quickview-close-button");r.$$(i).on("click",function(){t.closeQuickview();t.close()});r.$$(this.modalbox.overlay).on("click",function(){t.closeQuickview()});r.$$(this.modalbox.content).on(b.QuickviewEvents.quickviewLoaded,function(){r.$$(n.loadingAnimation).remove();t.bindIFrameEscape()});this.bindEscape()},t.prototype.animateAndOpen=function(){var f=this,i=this.modalbox.wrapper.style.animationDuration,n=r.$$(this.modalbox.modalBox).find("."+e.Component.computeCssClassName(s.QuickviewDocument)),t,u;n&&(i?(t=/^(.+)(ms|s)$/.exec(i),u=Number(t[1])*("s"==t[2]?1e3:1),setTimeout(function(){null!=f.modalbox&&o.Initialization.dispatchNamedMethodCallOrComponentCreation("open",n,null)},u)):o.Initialization.dispatchNamedMethodCallOrComponentCreation("open",n,null))},t.prototype.createModalBox=function(n){var t=r.$$("div");t.append(n.content.el);this.modalbox=this.ModalBox.open(t.el,{title:c.DomUtils.getQuickviewHeader(this.result,{showDate:this.options.showDate,title:this.options.title},this.bindings).el.outerHTML,className:"coveo-quick-view",validation:function(){return!0},body:this.element.ownerDocument.body});this.setQuickviewSize()},t.prototype.prepareOpenQuickviewObject=function(){var n=this.options.loadingAnimation;return{loadingAnimation:n,content:this.prepareQuickviewContent(n)}},t.prototype.prepareQuickviewContent=function(n){var t=r.$$(this.options.contentTemplate.instantiateToElement(this.result)),i=this.searchInterface.options,u={options:i,bindings:this.getBindings(),result:this.result};return o.Initialization.automaticallyCreateComponentsInside(t.el,u),void 0!=t.find("."+e.Component.computeCssClassName(s.QuickviewDocument))&&this.options.enableLoadingAnimation&&t.prepend(n),t},t.prototype.bindEscape=function(){r.$$(document.body).on("keyup",this.bindedHandleEscapeEvent)},t.prototype.bindIFrameEscape=function(){var n=r.$$(this.modalbox.content).find("."+e.Component.computeCssClassName(s.QuickviewDocument)),t;n=r.$$(n).find("iframe");t=n.contentWindow.document.body;r.$$(t).on("keyup",this.bindedHandleEscapeEvent)},t.prototype.closeQuickview=function(){this.queryStateModel.set(l.QueryStateModel.attributesEnum.quickview,"")},t.prototype.setQuickviewSize=function(){var n=r.$$(r.$$(this.modalbox.modalBox).find(".coveo-wrapper"));n.el.style.width=this.options.size;n.el.style.height=this.options.size;n.el.style.maxWidth=this.options.size;n.el.style.maxHeight=this.options.size},t.prototype.handleEscapeEvent=function(n){n.keyCode==h.KEYBOARD.ESCAPE&&(this.closeQuickview(),this.close())},t}(e.Component);f.ID="Quickview";f.fields=["urihash","collection","source","author"];f.options={alwaysShow:u.ComponentOptions.buildBooleanOption({defaultValue:!1}),title:u.ComponentOptions.buildStringOption(),showDate:u.ComponentOptions.buildBooleanOption({defaultValue:!0}),enableLoadingAnimation:u.ComponentOptions.buildBooleanOption({defaultValue:!0}),contentTemplate:u.ComponentOptions.buildTemplateOption({selectorAttr:"data-template-selector",idAttr:"data-template-id"}),loadingAnimation:u.ComponentOptions.buildOption(u.ComponentOptionsType.NONE,function(n){var e=n.getAttribute("data-loading-animation-selector"),t,i,f;return null!=e&&(t=r.$$(document.documentElement).find(e),null!=t)?(r.$$(t).detach(),t):(i=n.getAttribute("data-loading-animation-template-id"),null!=i&&(f=u.ComponentOptions.loadResultTemplateFromId(i),f))?f.instantiateToElement(void 0,{checkCondition:!1}):c.DomUtils.getBasicLoadingAnimation()}),size:u.ComponentOptions.buildStringOption({defaultValue:v.DeviceUtils.isMobileDevice()?"100%":"95%"})};f.resultCurrentlyBeingRendered=null;t.Quickview=f;o.Initialization.registerAutoCreateComponent(f)},function(n,t,i){"use strict";var r=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},u=i(109),f=function(n){function t(){return n.call(this)||this}return r(t,n),t.prototype.instantiateToString=function(){return'<div class="coveo-quick-view-full-height"><div class="CoveoQuickviewDocument"><\/div><\/div>'},t}(u.Template);t.DefaultQuickviewTemplate=f},function(n,t,i){"use strict";var c=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},l=i(103),o=i(107),a=i(112),v=i(12),r=i(59),s=i(141),y=i(16),p=i(13),h=i(56),w=i(111),b=i(35),u=i(14),f="CoveoHighlight",e=function(n){function t(i,r,u,f){var e=n.call(this,i,t.ID,u)||this;return e.element=i,e.options=r,e.result=f,e.options=o.ComponentOptions.initComponentOptions(i,t,r),e.result=f||e.resolveResult(),e.termsToHighlightWereModified=!1,v.Assert.exists(e.result),e}return c(t,n),t.prototype.createDom=function(){var n=r.$$("div");n.addClass("coveo-quickview-document");this.element.appendChild(n.el);this.header=this.buildHeader();this.iframe=this.buildIFrame();n.append(this.header.el);n.append(this.iframe.el)},t.prototype.open=function(){var t=this,i,f,n,o,h;this.ensureDom();i=r.$$(this.element).getAttribute("href");void 0!=i&&""!=i||(i=this.result.clickUri);this.usageAnalytics.logClickEvent(a.analyticsActionCauseList.documentQuickview,{author:this.result.raw.author,documentURL:i,documentTitle:this.result.title},this.result,this.queryController.element);f=(new Date).getTime();n=this.iframe.find("iframe");n.src="about:blank";var c=this.queryController.getEndpoint(),l=u.keys(this.result.termsToHighlight),e={termsToHighlight:l};r.$$(this.element).trigger(s.QuickviewEvents.openQuickview,e);this.checkIfTermsToHighlightWereModified(e.termsToHighlight);o=u.extend({},this.getBindings().queryController.getLastQuery());this.termsToHighlightWereModified&&this.handleTermsToHighlight(e.termsToHighlight,o);h={queryObject:o,requestedOutputSize:this.options.maximumDocumentSize};c.getDocumentHtml(this.result.uniqueId,h).then(function(i){null!=n.contentDocument&&(t.renderHTMLDocument(n,i),t.triggerQuickviewLoaded(f))}).catch(function(i){null!=n.contentDocument&&(0!=i.status?(t.renderErrorReport(n,i.status),t.triggerQuickviewLoaded(f)):(n.onload=function(){t.triggerQuickviewLoaded(f)},n.src=c.getViewAsHtmlUri(t.result.uniqueId,h)))})},t.prototype.renderHTMLDocument=function(n,t){var i=this;n.onload=function(){var u,t;(i.computeHighlights(n.contentWindow),i.isNewQuickviewDocument(n.contentWindow))&&(u=r.$$(i.element).closest(".coveo-body"),u.style.padding="0",t=r.$$(i.element).find(".coveo-quickview-header"),t.style.paddingTop="10",t.style.paddingLeft="10");""==r.$$(i.element).find(".coveo-quickview-header").innerHTML&&(r.$$(i.element).find(".coveo-quickview-header").style.display="none")};this.writeToIFrame(n,t);this.wrapPreElementsInIframe(n)},t.prototype.renderErrorReport=function(n,t){var i="",r;i=400==t?"NoQuickview":"OopsError";r="<html><body style='font-family: Arimo, 'Helvetica Neue', Helvetica, Arial, sans-serif; -webkit-text-size-adjust: none;' >"+b.l(i)+" <\/body><\/html>";this.writeToIFrame(n,r)},t.prototype.writeToIFrame=function(n,t){var i=t;"object"==typeof t&&(i=t.getElementsByTagName("html")[0].outerHTML);n.contentWindow.document.open();n.contentWindow.document.write(i);n.contentWindow.document.close()},t.prototype.wrapPreElementsInIframe=function(n){var t,i,u;try{t=document.createElement("style");t.type="text/css";i="html pre { white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word; }";i+="body, html { font-family: Arimo, 'Helvetica Neue', Helvetica, Arial, sans-serif; -webkit-text-size-adjust: none; }";y.DeviceUtils.isIos()&&(i+="body, html { height: 1px !important; min-height: 100%; width: 1px !important; min-width: 100%; overflow: scroll; }",r.$$(n).setAttribute("scrolling","no"),i+="body, html {margin: auto}",n.parentElement.style.margin="0 0 5px 5px");"styleSheet"in t?t.styleSheet.cssText=i:t.appendChild(document.createTextNode(i));u=n.contentWindow.document.head;u.appendChild(t)}catch(n){}},t.prototype.triggerQuickviewLoaded=function(n){var t=(new Date).getTime(),i={duration:t-n};r.$$(this.element).trigger(s.QuickviewEvents.quickviewLoaded,i)},t.prototype.computeHighlights=function(n){var t=this,i,e,o;return r.$$(this.header).empty(),this.keywordsState=[],i={},e=0,u.each(r.$$(n.document.body).findAll('[id^="'+f+'"]'),function(n){var u=t.getHighlightIdParts(n),o,s;if(u){var h=u[1],f=parseInt(u[2],10),c=parseInt(u[3],10),r=i[h];(null==r&&1==c?i[h]=r={text:t.getHighlightInnerText(n),count:1,index:parseInt(h,10),termsCount:"coveotaggedword"==n.nodeName.toLowerCase()?0:1,element:n,occurence:f}:r&&(r.occurence==f&&("coveotaggedword"==n.nodeName.toLowerCase()?r.text+=t.getHighlightInnerText(n):r.termsCount<c&&(r.text+=t.getHighlightInnerText(n),r.termsCount+=1)),r.count=Math.max(r.count,f),e+=1),r&&r.occurence==f&&"span"==n.nodeName.toLowerCase())&&(o=t.getHightlightEmbeddedWordIdParts(n),s=o?i[o[1]]:null,s&&s.occurence==parseInt(o[2],10)&&(s.text+=n.childNodes[0].nodeValue||""))}}),0==e&&(this.header.el.style.minHeight="0"),o=[],u.each(i,function(i){i.text=t.resolveOriginalTermFromHighlight(i.text);var u={word:i,color:i.element.style.backgroundColor,currentIndex:0,index:i.index};t.keywordsState.push(u);r.$$(t.header).append(t.buildWordButton(u,n));o.push(i.text)}),o},t.prototype.getHighlightIdParts=function(n){var t=n.id.substr(f.length+1).match(/^([0-9]+)\.([0-9]+)\.([0-9]+)$/);return t&&t.length>3?t:null},t.prototype.getHighlightInnerText=function(n){return"coveotaggedword"==n.nodeName.toLowerCase()?n.childNodes.length>=1?n.childNodes.item(0).textContent||"":"":n.textContent||""},t.prototype.getHightlightEmbeddedWordIdParts=function(n){var t=n.getElementsByTagName("coveotaggedword")[0];return t?this.getHighlightIdParts(t):null},t.prototype.resolveOriginalTermFromHighlight=function(n){var i=this,t=n;return this.result.termsToHighlight&&(t=u.find(u.keys(this.result.termsToHighlight),function(t){return t.toLowerCase()==n.toLowerCase()||void 0!=u.find(i.result.termsToHighlight[t],function(t){return t.toLowerCase()==n.toLowerCase()})})||t),t},t.prototype.buildWordButton=function(n,t){var o=this,i=r.$$("span"),f,e,s,u,h;return i.addClass("coveo-term-for-quickview"),f=r.$$("span"),f.addClass("coveo-term-for-quickview-name"),f.setHtml(n.word.text),f.on("click",function(){o.navigate(n,!1,t)}),i.append(f.el),e=r.$$("span"),e.addClass("coveo-term-for-quickview-up-arrow"),s=r.$$("span"),s.addClass("coveo-term-for-quickview-up-arrow-icon"),e.append(s.el),e.on("click",function(){o.navigate(n,!0,t)}),i.append(e.el),u=r.$$("span"),u.addClass("coveo-term-for-quickview-down-arrow"),h=r.$$("span"),h.addClass("coveo-term-for-quickview-down-arrow-icon"),u.append(h.el),u.on("click",function(){o.navigate(n,!1,t)}),i.append(u.el),i.el.style.backgroundColor=n.color,i.el.style.borderColor=this.getSaturatedColor(n.color),u.el.style.borderColor=this.getSaturatedColor(n.color),i.el},t.prototype.navigate=function(n,t,i){var o,u=n.currentIndex,c,s,e,l,h;o=t?u<=1?n.word.count:u-1:u==n.word.count?1:u+1;c=this.getScrollingElement(i);s=r.$$(c).find('[id^="'+f+":"+n.word.index+"."+u+'"]');s&&(s.style.border="");e=r.$$(i.document.body).find('[id^="'+f+":"+n.word.index+"."+o+'"]');(e.style.border="1px dotted #333",n.currentIndex=o,this.isNewQuickviewDocument(i))&&(l=r.$$(e).closest(".pc"),r.$$(l).addClass("opened"));e.scrollIntoView();h=this.iframe.closest(".coveo-body");h.scrollLeft=0;h.scrollTop=0},t.prototype.buildHeader=function(){var n=r.$$("div");return n.addClass("coveo-quickview-header"),n},t.prototype.buildIFrame=function(){var t=r.$$("iframe"),n;return t.setAttribute("sandbox","allow-same-origin"),n=r.$$("div"),n.addClass("coveo-iframeWrapper"),n.el.appendChild(t.el),n},t.prototype.getScrollingElement=function(n){var t;return this.isNewQuickviewDocument(n)&&(t=r.$$(n.document.body).find("#page-container")),t||(t=r.$$(n.document.body).el),t},t.prototype.isNewQuickviewDocument=function(n){var t=r.$$(n.document.head).find("meta[name='generator']");return t&&"pdf2htmlEX"==t.getAttribute("content")},t.prototype.handleTermsToHighlight=function(n,t){var f=this,r,i;for(r in this.result.termsToHighlight)delete this.result.termsToHighlight[r];i="";u.each(n,function(n){i+=n+" ";f.result.termsToHighlight[n]=new Array(n)});i=i.substring(0,i.length-1);t.q=i},t.prototype.checkIfTermsToHighlightWereModified=function(n){p.Utils.arrayEqual(n,u.keys(this.result.termsToHighlight))||(this.termsToHighlightWereModified=!0)},t.prototype.getSaturatedColor=function(n){var r=parseInt(n.substring(4,7)),u=parseInt(n.substring(9,12)),f=parseInt(n.substring(14,17)),t=h.ColorUtils.rgbToHsv(r,u,f),i;return t[1]*=2,t[1]>1&&(t[1]=1),i=h.ColorUtils.hsvToRgb(t[0],t[1],t[2]),"rgb("+i[0].toString()+", "+i[1].toString()+", "+i[2].toString()+")"},t}(l.Component);e.ID="QuickviewDocument";e.options={maximumDocumentSize:o.ComponentOptions.buildNumberOption({defaultValue:0,min:0})};t.QuickviewDocument=e;w.Initialization.registerAutoCreateComponent(e)},function(n,t,i){"use strict";var w=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},l=i(116),h=i(103),u=i(107),e=i(12),o=i(48),b=i(98),k=i(101),a=i(21),r=i(59),d=i(112),v=i(111),y=i(32),g=i(16),c=i(49),nt=i(50),tt=i(13),p=i(60),it=i(140),rt=i(185),ut=i(118),ft=i(186),f=i(14),s=function(n){function t(i,f,s,h){void 0===h&&(h=t.ID);var l=n.call(this,i,h,s)||this;return l.element=i,l.options=f,l.bindings=s,l.currentlyDisplayedResults=[],l.reachedTheEndOfResults=!1,l.options=u.ComponentOptions.initComponentOptions(i,t,f),e.Assert.exists(i),e.Assert.exists(l.options),e.Assert.exists(l.options.resultContainer),e.Assert.exists(l.options.resultTemplate),e.Assert.exists(l.options.waitAnimationContainer),e.Assert.exists(l.options.infiniteScrollContainer),l.showOrHideElementsDependingOnState(!1,!1),l.bind.onRootElement(o.QueryEvents.newQuery,function(){return l.handleNewQuery()}),l.bind.onRootElement(o.QueryEvents.buildingQuery,function(n){return l.handleBuildingQuery(n)}),l.bind.onRootElement(o.QueryEvents.querySuccess,function(n){return l.handleQuerySuccess(n)}),l.bind.onRootElement(o.QueryEvents.duringQuery,function(){return l.handleDuringQuery()}),l.bind.onRootElement(o.QueryEvents.queryError,function(){return l.handleQueryError()}),r.$$(l.root).on(c.ResultListEvents.changeLayout,function(n,t){return l.handleChangeLayout(t)}),l.options.enableInfiniteScroll&&(l.handlePageChanged(),l.bind.on(l.options.infiniteScrollContainer,"scroll",function(){return l.handleScrollOfResultList()})),l.bind.onQueryState(b.MODEL_EVENTS.CHANGE_ONE,k.QUERY_STATE_ATTRIBUTES.FIRST,function(){return l.handlePageChanged()}),r.$$(l.options.resultContainer).addClass("coveo-result-list-container"),l.searchInterface.isNewDesign()&&(l.setupTemplatesVersusLayouts(),r.$$(l.root).on(nt.ResultLayoutEvents.populateResultLayout,function(n,t){return t.layouts.push(l.options.layout)})),l}return w(t,n),t.getDefaultTemplate=function(n){var t=h.Component.get(n);return t.searchInterface instanceof it.Recommendation?new rt.DefaultRecommendationTemplate:new l.DefaultResultTemplate},t.prototype.setupTemplatesVersusLayouts=function(){var n=this,t="coveo-"+this.options.layout+"-layout-container";r.$$(this.options.resultContainer).addClass(t);this.options.resultTemplate instanceof ut.TemplateList?f.each(this.options.resultTemplate.templates,function(t){t.layout||(t.layout=n.options.layout)}):this.options.resultTemplate instanceof l.DefaultResultTemplate&&"list"==this.options.layout&&ft.ResponsiveDefaultResultTemplate.init(this.root,this,this.options)},t.prototype.renderResults=function(n,t){var i=this;void 0===t&&(t=!1);t||(this.options.resultContainer.innerHTML="");f.each(n,function(n){i.options.resultContainer.appendChild(n);i.triggerNewResultDisplayed(h.Component.getResult(n),n)});"card"==this.options.layout&&f.times(3,function(){return i.options.resultContainer.appendChild(r.$$("div").el)});this.triggerNewResultsDisplayed()},t.prototype.buildResults=function(n){var r=this,i=[];return f.each(n.results,function(n){var t=r.buildResult(n);null!=t&&i.push(t)}),t.resultCurrentlyBeingRendered=null,i},t.prototype.buildResult=function(n){e.Assert.exists(n);a.QueryUtils.setStateObjectOnQueryResult(this.queryStateModel.get(),n);a.QueryUtils.setSearchInterfaceObjectOnQueryResult(this.searchInterface,n);t.resultCurrentlyBeingRendered=n;var i=this.options.resultTemplate.instantiateToElement(n,{wrapInDiv:!0,checkCondition:!0,currentLayout:this.options.layout,responsiveComponents:this.searchInterface.responsiveComponents});return null!=i&&(h.Component.bindResultToElement(i,n),r.$$(i).addClass("")),this.autoCreateComponentsInsideResult(i,n),i},t.prototype.displayMoreResults=function(n){var t=this;return e.Assert.isLargerOrEqualsThan(1,n),this.isCurrentlyFetchingMoreResults()?void this.logger.warn("Ignoring request to display more results since we're already doing so"):this.hasPotentiallyMoreResultsToDisplay()?(this.options.enableInfiniteScrollWaitingAnimation&&this.showWaitingAnimationForInfiniteScrolling(),this.fetchingMoreResults=this.queryController.fetchMore(n),this.fetchingMoreResults.then(function(i){e.Assert.exists(i);t.usageAnalytics.logCustomEvent(d.analyticsActionCauseList.pagerScrolling,{},t.element);var r=i.results;t.reachedTheEndOfResults=n>i.results.length;t.renderResults(t.buildResults(i),!0);f.each(r,function(n){t.currentlyDisplayedResults.push(n)});t.triggerNewResultsDisplayed()}),void this.fetchingMoreResults.then(function(){t.hideWaitingAnimationForInfiniteScrolling();t.fetchingMoreResults=void 0;y.Defer.defer(function(){return t.handleScrollOfResultList()})})):void this.logger.warn("Ignoring request to display more results since we know there aren't more to display")},t.prototype.getDisplayedResults=function(){return this.currentlyDisplayedResults},t.prototype.getDisplayedResultsElements=function(){return r.$$(this.options.resultContainer).findAll(".CoveoResult")},t.prototype.enable=function(){n.prototype.enable.call(this);r.$$(this.element).removeClass("coveo-hidden")},t.prototype.disable=function(){n.prototype.disable.call(this);r.$$(this.element).addClass("coveo-hidden")},t.prototype.autoCreateComponentsInsideResult=function(n,t){e.Assert.exists(n);var i=this.searchInterface.options.originalOptionsObject,r=f.extend({},this.getBindings(),{resultElement:n}),u={options:i,bindings:r,result:t};v.Initialization.automaticallyCreateComponentsInside(n,u)},t.prototype.triggerNewResultDisplayed=function(n,t){var i={result:n,item:t};r.$$(this.element).trigger(c.ResultListEvents.newResultDisplayed,i)},t.prototype.triggerNewResultsDisplayed=function(){r.$$(this.element).trigger(c.ResultListEvents.newResultsDisplayed,{})},t.prototype.handleDuringQuery=function(){this.logger.trace("Emptying the result container");this.cancelFetchingMoreResultsIfNeeded();this.showWaitingAnimation();this.showOrHideElementsDependingOnState(!1,!1)},t.prototype.handleQueryError=function(){this.hideWaitingAnimation();r.$$(this.options.resultContainer).empty();this.currentlyDisplayedResults=[]},t.prototype.handleQuerySuccess=function(n){e.Assert.exists(n);e.Assert.exists(n.results);var i=n.results;this.logger.trace("Received query results from new query",i);this.hideWaitingAnimation();t.resultCurrentlyBeingRendered=void 0;this.currentlyDisplayedResults=[];this.renderResults(this.buildResults(n.results));this.currentlyDisplayedResults=i.results;this.reachedTheEndOfResults=!1;this.showOrHideElementsDependingOnState(!0,0!=this.currentlyDisplayedResults.length);g.DeviceUtils.isMobileDevice()&&void 0!=this.options.mobileScrollContainer&&(this.options.mobileScrollContainer.scrollTop=0);this.options.enableInfiniteScroll&&i.results.length==n.queryBuilder.numberOfResults&&(this.scrollBackToTop(),this.handleScrollOfResultList())},t.prototype.handleScrollOfResultList=function(){!this.isCurrentlyFetchingMoreResults()&&this.options.enableInfiniteScroll&&this.isScrollingOfResultListAlmostAtTheBottom()&&this.hasPotentiallyMoreResultsToDisplay()&&this.displayMoreResults(this.options.infiniteScrollPageSize)},t.prototype.handlePageChanged=function(){var n=this;this.bind.onRootElement(o.QueryEvents.deferredQuerySuccess,function(){setTimeout(function(){n.scrollBackToTop()},0)})},t.prototype.scrollBackToTop=function(){var n,t;this.options.infiniteScrollContainer instanceof Window?(n=this.options.infiniteScrollContainer,n.scrollTo(0,0)):(t=this.options.infiniteScrollContainer,t.scrollTop=0)},t.prototype.handleNewQuery=function(){r.$$(this.element).removeClass("coveo-hidden");t.resultCurrentlyBeingRendered=void 0},t.prototype.handleBuildingQuery=function(n){null!=this.options.fieldsToInclude&&n.queryBuilder.addFieldsToInclude(f.map(this.options.fieldsToInclude,function(n){return n.substr(1)}));this.options.autoSelectFieldsToInclude&&(n.queryBuilder.addRequiredFields(this.getAutoSelectedFieldsToInclude()),n.queryBuilder.includeRequiredFields=!0)},t.prototype.handleChangeLayout=function(n){var t=this;n.layout===this.options.layout?(this.enable(),this.options.resultTemplate.layout=this.options.layout,n.results&&y.Defer.defer(function(){t.renderResults(t.buildResults(n.results))})):this.disable()},t.prototype.getAutoSelectedFieldsToInclude=function(){return f.chain(this.options.resultTemplate.getFields()).concat(this.getMinimalFieldsToInclude()).compact().unique().value()},t.prototype.isCurrentlyFetchingMoreResults=function(){return tt.Utils.exists(this.fetchingMoreResults)},t.prototype.getMinimalFieldsToInclude=function(){return["author","language","urihash","objecttype","collection","source","language","uniqueid"]},t.prototype.isScrollingOfResultListAlmostAtTheBottom=function(){var n;try{n=this.options.infiniteScrollContainer instanceof Window}catch(t){n=!1}return n?this.isScrollAtBottomForWindowElement():this.isScrollAtBottomForHtmlElement()},t.prototype.isScrollAtBottomForWindowElement=function(){var n=new r.Win(window),t=n.height(),i=n.scrollY(),u=new r.Doc(document).height();return u-(t+i)<t/2},t.prototype.isScrollAtBottomForHtmlElement=function(){var n=this.options.infiniteScrollContainer,t=n.clientHeight,i=n.scrollHeight,r=n.scrollTop+t;return i-r<t/2},t.prototype.hasPotentiallyMoreResultsToDisplay=function(){return this.currentlyDisplayedResults.length>0&&!this.reachedTheEndOfResults},t.prototype.cancelFetchingMoreResultsIfNeeded=function(){this.isCurrentlyFetchingMoreResults()&&(this.logger.trace("Cancelling fetching more results"),Promise.reject(this.fetchingMoreResults),this.fetchingMoreResults=void 0)},t.prototype.showOrHideElementsDependingOnState=function(n,t){var i=r.$$(this.element).findAll(".coveo-show-if-query"),u=r.$$(this.element).findAll(".coveo-show-if-no-query"),e=r.$$(this.element).findAll(".coveo-show-if-results"),o=r.$$(this.element).findAll(".coveo-show-if-no-results");f.each(i,function(t){r.$$(t).toggle(n)});f.each(u,function(t){r.$$(t).toggle(!n)});f.each(e,function(i){r.$$(i).toggle(n&&t)});f.each(o,function(i){r.$$(i).toggle(n&&!t)})},t.prototype.showWaitingAnimation=function(){switch(this.options.waitAnimation.toLowerCase()){case"fade":r.$$(this.options.waitAnimationContainer).addClass("coveo-fade-out");break;case"spinner":f.each(this.options.resultContainer.children,function(n){r.$$(n).hide()});void 0==r.$$(this.options.waitAnimationContainer).find(".coveo-wait-animation")&&this.options.waitAnimationContainer.appendChild(p.DomUtils.getBasicLoadingAnimation())}},t.prototype.hideWaitingAnimation=function(){switch(this.options.waitAnimation.toLowerCase()){case"fade":r.$$(this.options.waitAnimationContainer).removeClass("coveo-fade-out");break;case"spinner":var n=r.$$(this.options.waitAnimationContainer).find(".coveo-loading-spinner");n&&r.$$(n).detach()}},t.prototype.showWaitingAnimationForInfiniteScrolling=function(){this.options.waitAnimationContainer.appendChild(p.DomUtils.getLoadingSpinner())},t.prototype.hideWaitingAnimationForInfiniteScrolling=function(){var n=r.$$(this.options.waitAnimationContainer).find(".coveo-loading-spinner");n&&r.$$(n).detach()},t}(h.Component);s.ID="ResultList";s.options={resultContainer:u.ComponentOptions.buildChildHtmlElementOption({defaultFunction:function(n){var t=document.createElement("div");return n.appendChild(t),t}}),resultTemplate:u.ComponentOptions.buildTemplateOption({defaultFunction:s.getDefaultTemplate}),waitAnimation:u.ComponentOptions.buildStringOption({defaultValue:"none"}),waitAnimationContainer:u.ComponentOptions.buildChildHtmlElementOption({postProcessing:function(n,t){return n||t.resultContainer}}),enableInfiniteScroll:u.ComponentOptions.buildBooleanOption({defaultValue:!1}),infiniteScrollPageSize:u.ComponentOptions.buildNumberOption({defaultValue:10,min:1,depend:"enableInfiniteScroll"}),infiniteScrollContainer:u.ComponentOptions.buildChildHtmlElementOption({depend:"enableInfiniteScroll",defaultFunction:function(n){return u.ComponentOptions.findParentScrolling(n)}}),enableInfiniteScrollWaitingAnimation:u.ComponentOptions.buildBooleanOption({depend:"enableInfiniteScroll",defaultValue:!0}),mobileScrollContainer:u.ComponentOptions.buildSelectorOption({defaultFunction:function(){return document.querySelector(".coveo-results-column")}}),fieldsToInclude:u.ComponentOptions.buildFieldsOption({includeInResults:!0}),autoSelectFieldsToInclude:u.ComponentOptions.buildBooleanOption({defaultValue:!1}),layout:u.ComponentOptions.buildStringOption({defaultValue:"list",required:!0})};s.resultCurrentlyBeingRendered=null;t.ResultList=s;v.Initialization.registerAutoCreateComponent(s)},function(n,t,i){"use strict";var r=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},u=i(109),f=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return r(t,n),t.prototype.instantiateToString=function(){return'<div class="coveo-result-frame">\n        <div class="coveo-result-row">\n          <div class="coveo-result-cell" style="width:40px;text-align:center;vertical-align:middle;">\n            <span class="CoveoIcon" data-small="true">\n            <\/span>\n          <\/div>\n          <div class="coveo-result-cell" style="padding:0 0 3px 5px;vertical-align:middle">\n            <div class="coveo-result-row">\n              <div class="coveo-result-cell" style="font-size:10pt;">\n                <a class="CoveoResultLink" style="display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">\n                <\/a>\n              <\/div>\n            <\/div>\n          <\/div>\n        <\/div>\n      <\/div>'},t.prototype.instantiateToElement=function(n){var t=document.createElement("div");return t.innerHTML=this.instantiateToString(n),t},t}(u.Template);t.DefaultRecommendationTemplate=f},function(n,t,i){"use strict";var e=i(127),o=i(106),u=i(184),r=i(59),f=i(103),s=i(11),h=function(){function n(n,t){this.coveoRoot=n;this.ID=t;this.searchInterface=f.Component.get(this.coveoRoot.el,o.SearchInterface,!1);this.currentMode="large"}return n.init=function(t,i,o){if(!r.$$(t).find("."+f.Component.computeCssClassName(u.ResultList))){var h=new s.Logger("ResponsiveDefaultResultTemplate");return void h.trace("No ResultLayout component found : Cannot instantiate ResponsiveResultLayout")}e.ResponsiveComponentsManager.register(n,r.$$(t),u.ResultList.ID,i,o)},n.prototype.registerComponent=function(n){return n instanceof u.ResultList&&(this.resultList=n,!0)},n.prototype.handleResizeEvent=function(){var n=this.resultList.queryController.getLastResults();this.needSmallMode()?(r.$$(this.resultList.options.resultContainer).addClass("coveo-card-layout-container"),r.$$(this.resultList.options.resultContainer).removeClass("coveo-list-layout-container"),"small"!=this.currentMode&&(n&&this.resultList.renderResults(this.resultList.buildResults(n)),this.currentMode="small")):(r.$$(this.resultList.options.resultContainer).removeClass("coveo-card-layout-container"),r.$$(this.resultList.options.resultContainer).addClass("coveo-list-layout-container"),"large"!=this.currentMode&&(n&&this.resultList.renderResults(this.resultList.buildResults(n)),this.currentMode="large"))},n.prototype.needSmallMode=function(){return this.coveoRoot.width()<=this.searchInterface.responsiveComponents.getSmallScreenWidth()},n}();t.ResponsiveDefaultResultTemplate=h},function(n,t,i){"use strict";var o=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},s=i(103),r=i(107),e=i(48),h=i(111),u=i(59),c=i(28),l=i(14),f=function(n){function t(i,f,o){var s=n.call(this,i,t.ID,o)||this;return s.element=i,s.options=f,s.options=r.ComponentOptions.initComponentOptions(i,t,f),s.bind.onRootElement(e.QueryEvents.buildingQuery,function(n){return s.handleBuildingQuery(n)}),s.bind.onRootElement(e.QueryEvents.querySuccess,function(n){return s.handleQuerySuccess(n)}),u.$$(s.element).hide(),s}return o(t,n),t.prototype.handleBuildingQuery=function(n){var t={field:this.options.field,maximumNumberOfValues:0,computedFields:[{field:this.options.field,operation:this.options.operation}]};this.index=n.queryBuilder.groupByRequests.length;n.queryBuilder.groupByRequests.push(t)},t.prototype.handleQuerySuccess=function(n){if(l.isNumber(this.index)&&0!=n.results.groupByResults.length){var t=n.results.groupByResults[this.index],i=t.globalComputedFieldResults[0];u.$$(this.element).text(c.format(i,this.options.format));u.$$(this.element).show()}else u.$$(this.element).hide()},t}(s.Component);f.ID="Aggregate";f.options={field:r.ComponentOptions.buildFieldOption({required:!0}),operation:r.ComponentOptions.buildStringOption({defaultValue:"sum"}),format:r.ComponentOptions.buildStringOption({defaultValue:"c0"})};t.Aggregate=f;h.Initialization.registerAutoCreateComponent(f)},function(n,t,i){"use strict";var s=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},h=i(111),c=i(103),r=i(107),l=i(48),a=i(98),o=i(101),v=i(54),f=i(112),y=i(59),e=i(12),p=i(189),u=function(n){function t(i,u,e){var s=n.call(this,i,t.ID,e)||this;return s.element=i,s.options=u,s.bindings=e,i instanceof HTMLInputElement&&s.logger.error("Querybox cannot be used on an HTMLInputElement"),s.options=r.ComponentOptions.initComponentOptions(i,t,u),s.magicBox=Coveo.MagicBox.create(i,new Coveo.MagicBox.Grammar("Query",{Query:"[Term*][Spaces?]",Term:"[Spaces?][Word]",Spaces:/ +/,Word:/[^ ]+/}),{inline:!0}),s.bind.onRootElement(l.QueryEvents.buildingQuery,function(n){return s.handleBuildingQuery(n)}),s.bind.onRootElement(v.StandaloneSearchInterfaceEvents.beforeRedirect,function(){return s.updateQueryState()}),s.bind.onQueryState(a.MODEL_EVENTS.CHANGE_ONE,o.QUERY_STATE_ATTRIBUTES.Q,function(n){return s.handleQueryStateChanged(n)}),s.options.enableSearchAsYouType&&(y.$$(s.element).addClass("coveo-search-as-you-type"),s.magicBox.onchange=function(){s.searchAsYouType()}),s.magicBox.onsubmit=function(){s.submit()},s.magicBox.onblur=function(){s.updateQueryState()},s.magicBox.onclear=function(){s.updateQueryState();s.options.triggerQueryOnClear&&(s.usageAnalytics.logSearchEvent(f.analyticsActionCauseList.searchboxClear,{}),s.triggerNewQuery(!1))},s.options.autoFocus&&s.magicBox.focus(),s}return s(t,n),t.prototype.submit=function(){this.magicBox.clearSuggestion();this.updateQueryState();this.usageAnalytics.logSearchEvent(f.analyticsActionCauseList.searchboxSubmit,{});this.triggerNewQuery(!1)},t.prototype.setText=function(n){this.magicBox.setText(n);this.updateQueryState()},t.prototype.clear=function(){this.magicBox.clear()},t.prototype.getText=function(){return this.magicBox.getText()},t.prototype.getResult=function(){return this.magicBox.getResult()},t.prototype.getDisplayedResult=function(){return this.magicBox.getDisplayedResult()},t.prototype.getCursor=function(){return this.magicBox.getCursor()},t.prototype.resultAtCursor=function(n){return this.magicBox.resultAtCursor(n)},t.prototype.handleBuildingQuery=function(n){e.Assert.exists(n);e.Assert.exists(n.queryBuilder);this.updateQueryState();this.lastQuery=this.magicBox.getText();new p.QueryboxQueryParameters(this.options).addParameters(n.queryBuilder,this.lastQuery)},t.prototype.triggerNewQuery=function(n){clearTimeout(this.searchAsYouTypeTimeout);var t=this.magicBox.getText();this.lastQuery!=t&&null!=t&&(this.lastQuery=t,this.queryController.executeQuery({searchAsYouType:n,logInActionsHistory:!0}))},t.prototype.updateQueryState=function(){this.queryStateModel.set(o.QueryStateModel.attributesEnum.q,this.magicBox.getText())},t.prototype.handleQueryStateChanged=function(n){e.Assert.exists(n);var t=n.value;t!=this.magicBox.getText()&&this.magicBox.setText(t)},t.prototype.searchAsYouType=function(){var n=this;clearTimeout(this.searchAsYouTypeTimeout);this.searchAsYouTypeTimeout=setTimeout(function(){n.usageAnalytics.logSearchAsYouType(f.analyticsActionCauseList.searchboxAsYouType,{});n.triggerNewQuery(!0)},this.options.searchAsYouTypeDelay)},t}(c.Component);u.ID="Querybox";u.options={enableSearchAsYouType:r.ComponentOptions.buildBooleanOption({defaultValue:!1}),searchAsYouTypeDelay:r.ComponentOptions.buildNumberOption({defaultValue:500,min:0}),enableQuerySyntax:r.ComponentOptions.buildBooleanOption({defaultValue:!0}),enableWildcards:r.ComponentOptions.buildBooleanOption({defaultValue:!1}),enableQuestionMarks:r.ComponentOptions.buildBooleanOption({defaultValue:!1}),enableLowercaseOperators:r.ComponentOptions.buildBooleanOption({defaultValue:!1}),enablePartialMatch:r.ComponentOptions.buildBooleanOption({defaultValue:!1}),partialMatchKeywords:r.ComponentOptions.buildNumberOption({defaultValue:5,min:1}),partialMatchThreshold:r.ComponentOptions.buildStringOption({defaultValue:"50%"}),triggerQueryOnClear:r.ComponentOptions.buildBooleanOption({defaultValue:!0}),autoFocus:r.ComponentOptions.buildBooleanOption({defaultValue:!0})};t.Querybox=u;h.Initialization.registerAutoCreateComponent(u)},function(n,t,i){"use strict";var r=i(14),u=function(){function n(n){this.options=n}return n.prototype.addParameters=function(n,t){this.options.enableWildcards&&(n.enableWildcards=!0);this.options.enableQuestionMarks&&(n.enableQuestionMarks=!0);this.options.enableLowercaseOperators&&(n.enableLowercaseOperators=!0);r.isEmpty(t)||(n.disableQuerySyntax=!this.options.enableQuerySyntax,n.expression.add(t),this.options.enablePartialMatch&&(n.enablePartialMatch=this.options.enablePartialMatch,this.options.partialMatchKeywords&&(n.partialMatchKeywords=this.options.partialMatchKeywords),this.options.partialMatchThreshold&&(n.partialMatchThreshold=this.options.partialMatchThreshold)))},n}();t.QueryboxQueryParameters=u},function(n,t,i){"use strict";var u=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},f=i(103),e=i(13),o=i(59),s=i(35),h=i(112),c=i(111),r=function(n){function t(i,r,u){var f=n.call(this,i,t.ID,u)||this;return f.element=i,f.options=r,f.bind.on(i,"click",function(){return f.handleClick()}),""==e.Utils.trim(o.$$(f.element).text())&&(i.innerHTML="<span class='coveo-icon'>"+s.l("Search")+"<\/span>"),f}return u(t,n),t.prototype.click=function(){this.handleClick()},t.prototype.handleClick=function(){this.logger.debug("Performing query following button click");this.usageAnalytics.logSearchEvent(h.analyticsActionCauseList.searchboxSubmit,{});this.queryController.executeQuery()},t}(f.Component);r.ID="SearchButton";r.options={};t.SearchButton=r;c.Initialization.registerAutoCreateComponent(r)},function(n,t,i){"use strict";var s=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},h=i(103),u=i(192),f=i(107),c=i(190),e=i(188),l=i(59),a=i(111),o=i(14),r=function(n){function t(i,r,o){var s=n.call(this,i,t.ID,o)||this,a,h;return(s.element=i,s.options=r,s.options=f.ComponentOptions.initComponentOptions(i,t,r),s.options.inline&&l.$$(i).addClass("coveo-inline"),s.options.addSearchButton)&&(a=document.createElement("a"),s.element.appendChild(a),s.searchButton=new c.SearchButton(a,void 0,o)),h=document.createElement("div"),s.element.appendChild(h),s.searchbox=s.options.enableOmnibox?new u.Omnibox(h,s.options,o):new e.Querybox(h,s.options,o),s}return s(t,n),t}(h.Component);r.ID="Searchbox";r.parent=u.Omnibox;r.options={addSearchButton:f.ComponentOptions.buildBooleanOption({defaultValue:!0}),enableOmnibox:f.ComponentOptions.buildBooleanOption({defaultValue:!1})};t.Searchbox=r;r.options=o.extend({},r.options,u.Omnibox.options,e.Querybox.options);o.each(r.options,function(n,t){t in u.Omnibox.options&&!(t in e.Querybox.options)&&(r.options[t]=o.extend({depend:"enableOmnibox"},n))});a.Initialization.registerAutoCreateComponent(r)},function(n,t,i){"use strict";var y=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},p=i(103),u=i(107),h=i(48),w=i(54),b=i(98),k=i(101),f=i(112),l=i(46),o=i(59),c=i(12),d=i(101),g=i(111),nt=i(188),tt=i(193),it=i(194),rt=i(195),ut=i(196),ft=i(189),a=i(138),v=i(13),s=i(23),et=i(106),r=i(14),ot=.8,e=function(n){function t(i,f,e){var o=n.call(this,i,t.ID,e)||this,c;return o.element=i,o.options=f,o.partialQueries=[],o.lastSuggestions=[],o.movedOnce=!1,o.skipRevealAutoSuggest=!1,o.options=u.ComponentOptions.initComponentOptions(i,t,f),o.options.enableQuerySyntax?(c=s.MagicBox.Grammars.Expressions(s.MagicBox.Grammars.Complete),o.options.enableFieldAddon&&new tt.FieldAddon(o),null!=o.options.fieldAlias&&(o.options.listOfFields=o.options.listOfFields||[],o.options.listOfFields=o.options.listOfFields.concat(r.keys(o.options.fieldAlias))),o.options.enableQueryExtensionAddon&&new it.QueryExtensionAddon(o)):c={start:"Any",expressions:{Any:/.*/}},o.options.enableRevealQuerySuggestAddon&&new rt.RevealQuerySuggestAddon(o),new ut.OldOmniboxAddon(o),null!=o.options.grammar&&(c=o.options.grammar(c)),o.magicBox=s.MagicBox.create(i,new s.MagicBox.Grammar(c.start,c.expressions),{inline:o.options.inline,selectableSuggestionClass:"coveo-omnibox-selectable",selectedSuggestionClass:"coveo-omnibox-selected",suggestionTimeout:o.options.omniboxTimeout}),o.bind.onRootElement(h.QueryEvents.buildingQuery,function(n){return o.handleBuildingQuery(n)}),o.bind.onRootElement(w.StandaloneSearchInterfaceEvents.beforeRedirect,function(){return o.handleBeforeRedirect()}),o.bind.onRootElement(h.QueryEvents.querySuccess,function(){return o.handleQuerySuccess()}),o.bind.onQueryState(b.MODEL_EVENTS.CHANGE_ONE,k.QUERY_STATE_ATTRIBUTES.Q,function(n){return o.handleQueryStateChanged(n)}),o.isRevealAutoSuggestion()&&o.bind.onRootElement(h.QueryEvents.duringQuery,function(n){return o.handleDuringQuery(n)}),o.setupMagicBox(),o}return y(t,n),t.prototype.submit=function(){var n=this;this.magicBox.clearSuggestion();this.updateQueryState();this.triggerNewQuery(!1,function(){n.usageAnalytics.logSearchEvent(f.analyticsActionCauseList.searchboxSubmit,{})})},t.prototype.getText=function(){return this.magicBox.getText()},t.prototype.setText=function(n){this.magicBox.setText(n);this.updateQueryState()},t.prototype.clear=function(){this.magicBox.clear()},t.prototype.getInput=function(){return this.magicBox.element.querySelector("input")},t.prototype.getResult=function(){return this.magicBox.getResult()},t.prototype.getDisplayedResult=function(){return this.magicBox.getDisplayedResult()},t.prototype.getCursor=function(){return this.magicBox.getCursor()},t.prototype.resultAtCursor=function(n){return this.magicBox.resultAtCursor(n)},t.prototype.setupMagicBox=function(){var n=this;this.magicBox.onmove=function(){n.isRevealAutoSuggestion()&&(n.modifyEventTo=n.getOmniboxAnalyticsEventCause());n.movedOnce=!0};this.magicBox.onfocus=function(){n.isRevealAutoSuggestion()&&(n.skipRevealAutoSuggest=!0)};this.magicBox.onsuggestions=function(t){v.Utils.isEmptyString(n.getText())&&(n.partialQueries=[]);n.movedOnce=!1;n.lastSuggestions=t;n.isRevealAutoSuggestion()&&!n.skipRevealAutoSuggest&&n.searchAsYouType()};this.options.enableSearchAsYouType&&o.$$(this.element).addClass("coveo-magicbox-search-as-you-type");this.magicBox.onchange=function(){n.skipRevealAutoSuggest=!1;var t=n.getText();void 0!=t&&""!=t?n.isRevealAutoSuggestion()?n.movedOnce&&n.searchAsYouType(!0):n.options.enableSearchAsYouType&&n.searchAsYouType(!0):n.clear()};this.options.placeholder&&(this.magicBox.element.querySelector("input").placeholder=this.options.placeholder);this.magicBox.onsubmit=function(){n.magicBox.clearSuggestion();n.updateQueryState();n.triggerNewQuery(!1,function(){n.usageAnalytics.logSearchEvent(f.analyticsActionCauseList.searchboxSubmit,{})});n.magicBox.blur()};this.magicBox.onselect=function(t){var i=r.indexOf(n.lastSuggestions,t),u=r.compact(r.map(n.lastSuggestions,function(n){return n.text}));n.magicBox.clearSuggestion();n.updateQueryState();n.isRevealAutoSuggestion()?n.isRevealAutoSuggestion()&&n.movedOnce?n.handleRevealAutoSuggestionWithKeyboard(i,u):n.isRevealAutoSuggestion()&&!n.movedOnce&&n.handleRevealAutoSuggestionsWithMouse(i,u):(n.usageAnalytics.cancelAllPendingEvents(),n.triggerNewQuery(!1,function(){n.usageAnalytics.logSearchEvent(n.getOmniboxAnalyticsEventCause(),n.buildCustomDataForPartialQueries(i,u))}));n.isRevealAutoSuggestion()&&(n.partialQueries=[])};this.magicBox.onblur=function(){n.options.enableSearchAsYouType&&!n.options.inline?n.setText(n.lastQuery):n.updateQueryState();n.isRevealAutoSuggestion()&&n.usageAnalytics.sendAllPendingEvents()};this.magicBox.onclear=function(){n.updateQueryState();n.options.triggerQueryOnClear&&n.triggerNewQuery(!1,function(){n.usageAnalytics.logSearchEvent(f.analyticsActionCauseList.searchboxClear,{})})};this.options.autoFocus&&this.magicBox.focus();this.magicBox.ontabpress=function(){n.handleTabPress()};this.magicBox.getSuggestions=function(){return n.handleSuggestions()}},t.prototype.handleRevealAutoSuggestionWithKeyboard=function(n,t){var i=this;this.searchAsYouTypeTimeout?(this.usageAnalytics.cancelAllPendingEvents(),clearTimeout(this.searchAsYouTypeTimeout),this.searchAsYouTypeTimeout=void 0,this.triggerNewQuery(!1,function(){i.usageAnalytics.logSearchEvent(i.getOmniboxAnalyticsEventCause(),i.buildCustomDataForPartialQueries(n,t))})):(this.modifyEventTo=this.getOmniboxAnalyticsEventCause(),this.modifyCustomDataOnPending(n,t),this.usageAnalytics.sendAllPendingEvents())},t.prototype.handleRevealAutoSuggestionsWithMouse=function(n,t){var i=this;this.searchAsYouTypeTimeout||0!=n?(this.clearSearchAsYouType(),this.usageAnalytics.cancelAllPendingEvents(),this.triggerNewQuery(!1,function(){i.usageAnalytics.logSearchEvent(i.getOmniboxAnalyticsEventCause(),i.buildCustomDataForPartialQueries(n,t))})):(this.modifyEventTo=this.getOmniboxAnalyticsEventCause(),this.modifyCustomDataOnPending(n,t),this.usageAnalytics.sendAllPendingEvents())},t.prototype.modifyCustomDataOnPending=function(n,t){var u=this.usageAnalytics.getPendingSearchEvent(),i;u instanceof a.PendingSearchAsYouTypeSearchEvent&&(i=this.buildCustomDataForPartialQueries(n,t),r.each(r.keys(i),function(n){u.modifyCustomData(n,i[n])}))},t.prototype.buildCustomDataForPartialQueries=function(n,t){return{partialQueries:this.cleanCustomData(this.partialQueries),suggestionRanking:n,suggestions:this.cleanCustomData(t),partialQuery:r.last(this.partialQueries)}},t.prototype.cleanCustomData=function(n,t){var i,u;return void 0===t&&(t=256),n=r.compact(r.filter(n,function(n,t,i){return 0===t||n!==i[t-1]})),n=r.map(n,function(n){return n.replace(/;/g,"")}),i=[],r.reduceRight(n,function(n,r){var u=n+r.length;return u<=t&&i.push(r),u},0),n=i.reverse(),u=n.join(";"),u.length>=256?this.cleanCustomData(n,t-10):n.join(";")},t.prototype.handleSuggestions=function(){var t={suggestions:[],omnibox:this},n;return this.bind.trigger(this.element,l.OmniboxEvents.populateOmniboxSuggestions,t),n=this.getText(),v.Utils.isNullOrEmptyString(n)||this.partialQueries.push(n),r.compact(t.suggestions)},t.prototype.handleBeforeRedirect=function(){this.updateQueryState()},t.prototype.handleBuildingQuery=function(n){var i=this,u,t,f,e,o;c.Assert.exists(n);c.Assert.exists(n.queryBuilder);this.updateQueryState();this.lastQuery=this.getQuery(n.searchAsYouType);u=this.lastQuery==this.magicBox.getDisplayedResult().input?this.magicBox.getDisplayedResult().clone():this.magicBox.grammar.parse(this.lastQuery).clean();t={result:u};this.options.enableQuerySyntax&&(f=t.result.findAll("FieldValueNotQuoted"),(r.each(f,function(n){return n.value='"'+n.value.replace(/"|\u00A0/g," ")+'"'}),this.options.fieldAlias)&&(e=t.result.findAll(function(n){return"FieldName"==n.expression.id&&n.isSuccess()}),r.each(e,function(n){var t=r.find(r.keys(i.options.fieldAlias),function(t){return t.toLowerCase()==n.value.toLowerCase()});null!=t&&(n.value=i.options.fieldAlias[t])})));this.bind.trigger(this.element,l.OmniboxEvents.omniboxPreprocessResultForQuery,t);o=t.result.toString();new ft.QueryboxQueryParameters(this.options).addParameters(n.queryBuilder,o)},t.prototype.handleTabPress=function(){this.options.enableRevealQuerySuggestAddon?this.handleTabPressForRevealSuggestions():this.handleTabPressForOldOmniboxAddon()},t.prototype.handleTabPressForRevealSuggestions=function(){if(!this.options.enableSearchAsYouType){var n=r.compact(r.map(this.lastSuggestions,function(n){return n.text}));this.usageAnalytics.logCustomEvent(this.getOmniboxAnalyticsEventCause(),this.buildCustomDataForPartialQueries(0,n),this.element)}},t.prototype.handleTabPressForOldOmniboxAddon=function(){if(this.lastSuggestions&&this.lastSuggestions[0]&&this.lastSuggestions[0].dom){var n=o.$$(this.lastSuggestions[0].dom).find(".coveo-omnibox-selected"),t=o.$$(this.lastSuggestions[0].dom).find(".coveo-omnibox-selectable");n?o.$$(n).trigger("tabSelect"):t&&o.$$(t).trigger("tabSelect")}},t.prototype.triggerNewQuery=function(n,t){clearTimeout(this.searchAsYouTypeTimeout);var i=this.getQuery(n);this.shouldExecuteQuery(n)&&(this.lastQuery=i,t(),this.queryController.executeQuery({searchAsYouType:n,logInActionsHistory:!0}))},t.prototype.getQuery=function(n){var t,i;return n&&(t=this.magicBox.getWordCompletion(),null==t&&null!=this.lastSuggestions&&this.lastSuggestions.length>0)&&(i=r.find(this.lastSuggestions,function(n){return null!=n.text}),null!=i&&(t=i.text)),t||this.magicBox.getText()},t.prototype.updateQueryState=function(){this.queryStateModel.set(d.QueryStateModel.attributesEnum.q,this.magicBox.getText())},t.prototype.handleQueryStateChanged=function(n){c.Assert.exists(n);var t=n.value;t!=this.magicBox.getText()&&this.magicBox.setText(t)},t.prototype.handleQuerySuccess=function(){this.isRevealAutoSuggestion()||(this.partialQueries=[])},t.prototype.handleDuringQuery=function(n){var t=this;n.promise.then(function(){var i=t.usageAnalytics.getPendingSearchEvent();i instanceof a.PendingSearchAsYouTypeSearchEvent&&i.beforeResolve.then(function(i){n.promise.then(function(){t.modifyEventTo&&(i.modifyEventCause(t.modifyEventTo),t.modifyEventTo=null)})})})},t.prototype.searchAsYouType=function(n){var t=this;void 0===n&&(n=!1);this.clearSearchAsYouType();this.shouldExecuteQuery(!0)&&(this.searchAsYouTypeTimeout=setTimeout(function(){if(t.suggestionShouldTriggerQuery()||n){var i=r.map(t.lastSuggestions,function(n){return n.text}),u=r.indexOf(i,t.magicBox.getWordCompletion());t.triggerNewQuery(!0,function(){t.usageAnalytics.logSearchAsYouType(f.analyticsActionCauseList.searchboxAsYouType,t.buildCustomDataForPartialQueries(u,i))});t.clearSearchAsYouType()}},this.options.searchAsYouTypeDelay))},t.prototype.isRevealAutoSuggestion=function(){return this.options.enableSearchAsYouType&&this.options.enableRevealQuerySuggestAddon},t.prototype.shouldExecuteQuery=function(n){var t=this.getQuery(n);return this.lastQuery!=t&&null!=t},t.prototype.suggestionShouldTriggerQuery=function(n){if(void 0===n&&(n=this.lastSuggestions),this.shouldExecuteQuery(!0)&&n&&n[0]){var t=n[0];if(t&&void 0!=t.executableConfidence)return t.executableConfidence>=ot;if(t.text&&0==t.text.indexOf(this.magicBox.getText()))return!0}return!1},t.prototype.clearSearchAsYouType=function(){clearTimeout(this.searchAsYouTypeTimeout);this.searchAsYouTypeTimeout=void 0},t.prototype.getOmniboxAnalyticsEventCause=function(){return this.searchInterface instanceof et.StandaloneSearchInterface?f.analyticsActionCauseList.omniboxFromLink:f.analyticsActionCauseList.omniboxAnalytics},t}(p.Component);e.ID="Omnibox";e.options={inline:u.ComponentOptions.buildBooleanOption({defaultValue:!1}),enableSearchAsYouType:u.ComponentOptions.buildBooleanOption({defaultValue:!1}),searchAsYouTypeDelay:u.ComponentOptions.buildNumberOption({defaultValue:2e3,min:0,depend:"enableSearchAsYouType"}),enableFieldAddon:u.ComponentOptions.buildBooleanOption({defaultValue:!1,depend:"enableQuerySyntax"}),enableSimpleFieldAddon:u.ComponentOptions.buildBooleanOption({defaultValue:!1,depend:"enableFieldAddon"}),listOfFields:u.ComponentOptions.buildFieldsOption({depend:"enableFieldAddon"}),enableRevealQuerySuggestAddon:u.ComponentOptions.buildBooleanOption({defaultValue:!1,alias:"enableTopQueryAddon"}),enableQueryExtensionAddon:u.ComponentOptions.buildBooleanOption({defaultValue:!1,depend:"enableQuerySyntax"}),placeholder:u.ComponentOptions.buildLocalizedStringOption(),omniboxTimeout:u.ComponentOptions.buildNumberOption({defaultValue:2e3,min:0})};t.Omnibox=e;e.options=r.extend({},e.options,nt.Querybox.options);g.Initialization.registerAutoCreateComponent(e)},function(n,t,i){"use strict";var f=i(46),e=i(23),r=i(14),u=function(){function n(n){var t=this;this.omnibox=n;this.cache={};this.omnibox.bind.on(this.omnibox.element,f.OmniboxEvents.populateOmniboxSuggestions,function(n){n.suggestions.push(t.getSuggestion())})}return n.prototype.getSuggestion=function(){var r=this,n=this.getHash(),i,t;return null==n?null:(i=this.hashToString(n),null!=this.cache[i])?this.hashValueToSuggestion(n,this.cache[i]):("FieldName"==n.type&&(t=this.fieldNames(n.current)),"FieldValue"==n.type&&(t=this.fieldValues(n.field,n.current)),"SimpleFieldName"==n.type&&(t=this.simpleFieldNames(n.current)),this.cache[i]=t,t.catch(function(){delete r.cache[i]}),this.hashValueToSuggestion(n,t))},n.prototype.getHash=function(){var n=r.last(this.omnibox.resultAtCursor("FieldName")),t,o,i,u;if(null!=n){n=n.findParent("Field")||n;var s=n.toString(),f=n.before(),e=n.after();return{type:"FieldName",current:s,before:f,after:e}}if(t=r.last(this.omnibox.resultAtCursor("FieldValue")),t&&(o=t.findParent("FieldQuery")||this.omnibox.options.enableSimpleFieldAddon&&t.findParent("FieldSimpleQuery"),o)){i=o.find("FieldName").toString();this.omnibox.options.fieldAlias&&i in this.omnibox.options.fieldAlias&&(i=this.omnibox.options.fieldAlias[i]);var h=t.toString(),f=t.before(),e=t.after();return{type:"FieldValue",field:i,current:h,before:f,after:e}}if(this.omnibox.options.enableSimpleFieldAddon&&(u=r.last(this.omnibox.resultAtCursor("Word")),null!=u)){var s=u.toString(),f=u.before(),e=u.after();return{type:"SimpleFieldName",current:s,before:f,after:e}}},n.prototype.hashToString=function(n){return null==n?null:n.type+n.current+(n.field||"")},n.prototype.hashValueToSuggestion=function(t,i){return i.then(function(i){return r.map(i,function(r,u){return{text:t.before+(0==t.current.toLowerCase().indexOf(r.toLowerCase())?t.current+r.substr(t.current.length):r)+t.after,html:e.MagicBox.Utils.highlightText(r,t.current,!0),index:n.INDEX-u/i.length}})})},n.prototype.getFields=function(){var n=this;return null==this.fields&&(this.fields=new Promise(function(t,i){if(null!=n.omnibox.options.listOfFields)t(n.omnibox.options.listOfFields);else{var u=n.omnibox.queryController.getEndpoint().listFields();u.then(function(n){var i=r.chain(n).filter(function(n){return n.includeInQuery&&n.groupByField}).map(function(n){return n.name.substr(1)}).value();t(i)}).catch(function(){i()})}})),this.fields},n.prototype.fieldNames=function(n){var t=n.length>0&&"@"==n[0],i=t?n.substr(1):n,u=i.toLowerCase();return this.getFields().then(function(i){var f=r.chain(i).map(function(n){return{index:n.toLowerCase().indexOf(u),field:t?n:"@"+n}}).filter(function(t){return t.index!=-1&&t.field.length>n.length}).sortBy("index").map(function(n){return n.field}).value();return r.first(f,5)})},n.prototype.fieldValues=function(n,t){return this.omnibox.queryController.getEndpoint().listFieldValues({pattern:".*"+t+".*",patternType:"RegularExpression",sortCriteria:"occurrences",field:"@"+n,maximumNumberOfValues:5}).then(function(n){return r.chain(n).map(function(n){return{index:n.value.toLowerCase().indexOf(t),value:n.value}}).filter(function(n){return n.value.length>t.length}).sortBy("index").map(function(n){return n.value.replace(/ /g," ")}).value()})},n.prototype.simpleFieldNames=function(n){var t=n,i=t.toLowerCase();return this.getFields().then(function(t){var u=r.chain(t).map(function(n){return{index:n.toLowerCase().indexOf(i),field:n+":"}}).filter(function(t){return t.index!=-1&&t.field.length>n.length}).sortBy("index").map(function(n){return n.field}).value();return r.first(u,5)})},n}();u.INDEX=64;t.FieldAddon=u},function(n,t,i){"use strict";var f=i(46),e=i(23),r=i(14),u=function(){function n(n){var t=this;this.omnibox=n;this.cache={};this.omnibox.bind.on(this.omnibox.element,f.OmniboxEvents.populateOmniboxSuggestions,function(n){n.suggestions.push(t.getSuggestion())})}return n.prototype.getSuggestion=function(){var r=this,n=this.getHash(this.omnibox.magicBox),t,i;return null==n?null:(t=this.hashToString(n),null!=this.cache[t])?this.hashValueToSuggestion(n,this.cache[t]):(i="QueryExtensionName"==n.type?this.names(n.current):this.attributeNames(n.name,n.current,n.used),this.cache[t]=i,i.catch(function(){delete r.cache[t]}),this.hashValueToSuggestion(n,i))},n.prototype.getHash=function(n){var i=r.last(n.resultAtCursor("QueryExtension")),u,t,f,e;if(null!=i){if(u=i.findAll("QueryExtensionArgument"),t=r.last(n.resultAtCursor("QueryExtensionName")),null!=t)return{type:"QueryExtensionName",current:t.toString(),before:t.before(),after:t.after()};if(t=r.last(n.resultAtCursor("QueryExtensionArgumentName")),null!=t)return f=r.chain(u).map(function(n){var t=n.find("QueryExtensionArgumentName");return t&&t.toString()}).compact().value(),e=i.find("QueryExtensionName").toString(),{type:"QueryExtensionArgumentName",current:t.toString(),before:t.before(),after:t.after(),name:e,used:f}}return null},n.prototype.hashToString=function(n){return null==n?null:[n.type,n.current,n.name||"",n.used?n.used.join():""].join()},n.prototype.hashValueToSuggestion=function(t,i){return i.then(function(i){return r.map(i,function(r,u){return{html:e.MagicBox.Utils.highlightText(r,t.current,!0),text:t.before+r+t.after,index:n.INDEX-u/i.length}})})},n.prototype.getExtensions=function(){return null==this.extensions&&(this.extensions=this.omnibox.queryController.getEndpoint().extensions()),this.extensions},n.prototype.names=function(n){var t=n.toLowerCase();return this.getExtensions().then(function(n){var i=r.chain(n).map(function(n){return{index:n.name.toLowerCase().indexOf(t),extension:n.name}}).filter(function(n){return n.index!=-1&&n.extension.length>t.length}).sortBy("index").pluck("extension").value();return r.first(i,5)})},n.prototype.attributeNames=function(n,t,i){return this.getExtensions().then(function(u){var f=r.find(u,function(t){return t.name==n});return null==f?[]:r.filter(r.difference(f.argumentNames,i),function(n){return 0==n.indexOf(t)})})},n.prototype.hash=function(){},n}();u.INDEX=62;t.QueryExtensionAddon=u},function(n,t,i){"use strict";var u=i(59),e=i(105),o=i(46),s=i(62),r=i(14),f=function(){function n(n){var t=this;this.omnibox=n;this.cache={};u.$$(this.omnibox.element).on(o.OmniboxEvents.populateOmniboxSuggestions,function(n,i){i.suggestions.push(t.getSuggestion())})}return n.suggestiontHtml=function(n){return n.highlighted.replace(/\[(.*?)\]|\{(.*?)\}|\((.*?)\)/g,function(n,t,i,r){var f="",e;return i&&(f="coveo-omnibox-hightlight"),r&&(f="coveo-omnibox-hightlight2"),e=f?u.$$("span",{className:f}):u.$$("span"),e.text(t||i||r),e.el.outerHTML})},n.isPartialMatch=function(n){var t=s.StringUtils.match(n.highlighted,/\[(.*?)\]|\{(.*?)\}|\((.*?)\)/g),i=r.find(t,function(n){return null!=n[1]});return null==i||r.every(r.last(t,r.indexOf(t,i)-t.length),function(n){return null!=n[1]})},n.prototype.getSuggestion=function(){var i=this,n=this.omnibox.magicBox.getText(),t;return 0==n.length?null:null!=this.cache[n]?this.cache[n]:(t=this.getRevealQuerySuggest(n),this.cache[n]=t,t.catch(function(){delete i.cache[n]}),this.cache[n])},n.prototype.getRevealQuerySuggest=function(t){var i={q:t},u=String.locale,f=this.omnibox.getBindings().componentOptionsModel.get(e.ComponentOptionsModel.attributesEnum.searchHub),o=this.omnibox.getBindings().searchInterface.options.pipeline,h=this.omnibox.options.enableSearchAsYouType,s=this.omnibox.getBindings().queryController.getLastQuery().context;return u&&(i.language=u),f&&(i.searchHub=f),o&&(i.pipeline=o),s&&(i.context=s),i.enableWordCompletion=h,this.omnibox.queryController.getEndpoint().getRevealQuerySuggest(i).then(function(t){var i=t.completions;return r.map(i,function(t,r){return{html:n.suggestiontHtml(t),text:t.expression,index:n.INDEX-r/i.length,partial:n.isPartialMatch(t),executableConfidence:t.executableConfidence}})})},n}();f.INDEX=60;t.RevealQuerySuggestAddon=f},function(n,t,i){"use strict";var f=i(46),e=i(59),r=i(13),u=i(14),o=function(){function n(n){var t=this;this.omnibox=n;this.omnibox.bind.on(this.omnibox.element,f.OmniboxEvents.populateOmniboxSuggestions,function(n){u.each(t.getSuggestion(),function(t){n.suggestions.push(t)})})}return n.prototype.getSuggestion=function(){var n=this.omnibox.magicBox.getText(),t;return 0==n.length?null:this.lastQuery==n?this.lastSuggestions:(this.lastQuery=n,t=this.buildPopulateOmniboxEventArgs(),e.$$(this.omnibox.root).trigger(f.OmniboxEvents.populateOmnibox,t),this.lastSuggestions=this.rowsToSuggestions(t.rows))},n.prototype.getCurrentQueryExpression=function(){var r=this.omnibox.getCursor(),t=this.omnibox.getText(),u=t.length,n=r,i=r;for(" "==t[n]&&n--;n>0&&" "!=t[n];)n--;for(;i<u&&" "!=t[i];)i++;return t.substring(n,i)},n.prototype.getRegexToSearch=function(n){return null==n&&(n=this.omnibox.getText()),new RegExp(r.Utils.escapeRegexCharacter(n),"i")},n.prototype.getQueryExpressionBreakDown=function(){var t=this,n=[],i=this.omnibox.getText().split(" ");return u.each(i,function(i){n.push({word:i,regex:t.getRegexToSearch(i)})}),n},n.prototype.replace=function(n,t){this.omnibox.setText(this.omnibox.getText().replace(n,t))},n.prototype.clearCurrentExpression=function(){this.replace(this.getCurrentQueryExpression(),"")},n.prototype.insertAt=function(n,t){var i=this.omnibox.getText(),r=[i.slice(0,n),t,i.slice(n)].join("");this.omnibox.setText(r)},n.prototype.replaceCurrentExpression=function(n){this.replace(this.getCurrentQueryExpression(),n)},n.prototype.buildPopulateOmniboxEventArgs=function(){var n=this,t=this.getCurrentQueryExpression();return{rows:[],completeQueryExpression:{word:this.omnibox.getText(),regex:this.getRegexToSearch()},currentQueryExpression:{word:t,regex:this.getRegexToSearch(t)},allQueryExpressions:this.getQueryExpressionBreakDown(),cursorPosition:this.omnibox.getCursor(),clear:function(){n.omnibox.clear()},clearCurrentExpression:function(){n.clearCurrentExpression()},replace:function(t,i){n.replace(t,i)},replaceCurrentExpression:function(t){n.replaceCurrentExpression(t)},insertAt:function(t,i){n.insertAt(t,i)},closeOmnibox:function(){n.omnibox.magicBox.blur()}}},n.prototype.rowsToSuggestions=function(n){return u.map(n,function(n){return r.Utils.isNullOrUndefined(n.element)?r.Utils.isNullOrUndefined(n.deferred)?null:new Promise(function(t){n.deferred.then(function(n){t(null!=n.element?[{dom:n.element,index:n.zIndex}]:null)})}):new Promise(function(t){t([{dom:n.element,index:n.zIndex}])})})},n}();t.OldOmniboxAddon=o},function(n,t,i){"use strict";var s=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},h=i(103),c=i(107),l=i(45),f=i(42),a=i(112),r=i(59),e=i(35),v=i(111),y=i(48),o=i(69),p=i(14),u=function(n){function t(i,r,u){var e=n.call(this,i,t.ID,u)||this;return e.element=i,e.options=r,e.options=c.ComponentOptions.initComponentOptions(i,t,r),e.bind.oneRootElement(l.InitializationEvents.afterInitialization,function(){return e.handleAfterInitialization()}),e.bind.onRootElement(f.BreadcrumbEvents.redrawBreadcrumb,function(){return e.redrawBreadcrumb()}),e.element.style.display="none",e}return s(t,n),t.prototype.getBreadcrumbs=function(){var n={breadcrumbs:[]};return this.bind.trigger(this.root,f.BreadcrumbEvents.populateBreadcrumb,n),this.logger.debug("Retrieved breadcrumbs",n.breadcrumbs),this.lastBreadcrumbs=n.breadcrumbs,n.breadcrumbs},t.prototype.clearBreadcrumbs=function(){this.bind.trigger(this.root,f.BreadcrumbEvents.clearBreadcrumb,{});this.logger.debug("Clearing breadcrumbs");this.usageAnalytics.logSearchEvent(a.analyticsActionCauseList.breadcrumbResetAll,{});this.queryController.executeQuery()},t.prototype.drawBreadcrumb=function(n){var h=this,i,t,s,u,f;r.$$(this.element).empty();this.element.style.display=0!=n.length?"":"none";i=document.createElement("div");r.$$(i).addClass("coveo-breadcrumb-items");this.element.appendChild(i);p.each(n,function(n){var t=n.element;r.$$(t).addClass("coveo-breadcrumb-item");i.appendChild(t)});t=r.$$("div",{className:"coveo-breadcrumb-clear-all",title:e.l("ClearAllFilters"),tabindex:0}).el;s=r.$$("div",{className:"coveo-icon coveo-breadcrumb-icon-clear-all"}).el;(t.appendChild(s),this.searchInterface.isNewDesign())?(u=document.createElement("div"),r.$$(u).text(e.l("Clear","")),t.appendChild(u),this.element.appendChild(t)):this.element.insertBefore(t,this.element.firstChild);f=function(){return h.clearBreadcrumbs()};this.bind.on(t,"click",f);this.bind.on(t,"keyup",o.KeyboardUtils.keypressAction(o.KEYBOARD.ENTER,f))},t.prototype.redrawBreadcrumb=function(){this.lastBreadcrumbs?this.drawBreadcrumb(this.lastBreadcrumbs):this.drawBreadcrumb(this.getBreadcrumbs())},t.prototype.handleDeferredQuerySuccess=function(){this.drawBreadcrumb(this.getBreadcrumbs())},t.prototype.handleAfterInitialization=function(){var n=this;this.bind.onRootElement(y.QueryEvents.deferredQuerySuccess,function(){return n.handleDeferredQuerySuccess()})},t}(h.Component);u.ID="Breadcrumb";u.options={};t.Breadcrumb=u;v.Initialization.registerAutoCreateComponent(u)},function(n,t,i){"use strict";var s=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},f=i(159),u=i(107),h=i(13),c=i(178),e=i(58),l=i(94),a=i(111),o=i(28),r=function(n){function t(i,r,f){var e=n.call(this,i,u.ComponentOptions.initComponentOptions(i,t,r),f,t.ID)||this;return e.element=i,e.options.enableFacetSearch=!1,e.options.enableSettings=!1,e.options.includeInOmnibox=!1,e.options.enableMoreLess=!1,e}return s(t,n),t.prototype.getValueCaption=function(t){var u=n.prototype.getValueCaption.call(this,t),i,r,f,s;return h.Utils.exists(this.options.valueCaption)&&"string"==typeof this.options.valueCaption&&(i=/^(.*)\.\.(.*)$/.exec(t.value),null!=i&&(r=c.TemplateHelpers.getHelper(this.options.valueCaption),null!=r?u=r.call(this,i[1])+" - "+r.call(this,i[2]):(f=i[1].match(/^[\+\-]?[0-9]+(\.[0-9]+)?$/)?Number(i[1]):e.DateUtils.convertFromJsonDateIfNeeded(i[1]),s=i[2].match(/^[\+\-]?[0-9]+(\.[0-9]+)?$/)?Number(i[2]):e.DateUtils.convertFromJsonDateIfNeeded(i[2]),u=o.format(f,this.options.valueCaption)+" - "+o.format(s,this.options.valueCaption)))),u},t.prototype.initFacetQueryController=function(){this.facetQueryController=new l.FacetRangeQueryController(this)},t.prototype.processNewGroupByResults=function(t){var i=this;null!=t&&(null!=this.options.ranges||this.keepDisplayedValuesNextTime&&!this.values.hasSelectedOrExcludedValues()||(this.keepDisplayedValuesNextTime=!1,t.values.sort(function(n,t){var r=n.value.split(".."),u=t.value.split("..");return i.options.dateField?Date.parse(r[0])-Date.parse(u[0]):Number(r[0])-Number(u[0])})));n.prototype.processNewGroupByResults.call(this,t)},t}(f.Facet);r.ID="FacetRange";r.parent=f.Facet;r.options={dateField:u.ComponentOptions.buildBooleanOption({defaultValue:!1}),ranges:u.ComponentOptions.buildCustomOption(function(){return null})};t.FacetRange=r;a.Initialization.registerAutoCreateComponent(r)},function(n,t,i){"use strict";var l=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},a=i(103),e=i(107),v=i(16),u=i(48),y=i(98),p=i(101),w=i(101),s=i(112),b=i(111),f=i(12),h=i(35),r=i(59),c=i(69),o=function(n){function t(i,f,o){var s=n.call(this,i,t.ID,o)||this;return s.element=i,s.options=f,s.listenToQueryStateChange=!0,s.ignoreNextQuerySuccess=!1,s.needToReset=!0,s.options=e.ComponentOptions.initComponentOptions(i,t,f),s.currentPage=1,null==s.options.maxNumberOfPages&&(s.options.maxNumberOfPages=1e3/(s.queryController.options.resultsPerPage>0?s.queryController.options.resultsPerPage:10)),s.bind.onRootElement(u.QueryEvents.newQuery,function(n){return s.handleNewQuery(n)}),s.bind.onRootElement(u.QueryEvents.buildingQuery,function(n){return s.handleBuildingQuery(n)}),s.bind.onRootElement(u.QueryEvents.querySuccess,function(n){return s.handleQuerySuccess(n)}),s.bind.onRootElement(u.QueryEvents.queryError,function(){return s.handleQueryError()}),s.bind.onRootElement(u.QueryEvents.noResults,function(n){return s.handleNoResults(n)}),s.bind.onQueryState(y.MODEL_EVENTS.CHANGE_ONE,w.QUERY_STATE_ATTRIBUTES.FIRST,function(n){return s.handleQueryStateModelChanged(n)}),s.list=document.createElement("ul"),r.$$(s.list).addClass("coveo-pager-list"),i.appendChild(s.list),s}return l(t,n),t.prototype.setPage=function(n,t){void 0===t&&(t=s.analyticsActionCauseList.pagerNumber);f.Assert.exists(n);this.currentPage=Math.max(Math.min(n,1e3),1);this.updateQueryStateModel(this.getFirstResultNumber(this.currentPage));this.usageAnalytics.logCustomEvent(t,{pagerNumber:this.currentPage},this.element);this.queryController.executeQuery({ignoreWarningSearchEvent:!0,keepLastSearchUid:!0,origin:this})},t.prototype.previousPage=function(){this.setPage(this.currentPage-1,s.analyticsActionCauseList.pagerPrevious)},t.prototype.nextPage=function(){this.setPage(this.currentPage+1,s.analyticsActionCauseList.pagerNext)},t.prototype.handleNewQuery=function(n){var i=n&&n.origin&&n.origin.type==t.ID;this.needToReset&&!i&&(this.currentPage=1,this.updateQueryStateModel(this.getFirstResultNumber(this.currentPage)));this.needToReset=!0},t.prototype.updateQueryStateModel=function(n){this.listenToQueryStateChange=!1;this.queryStateModel.set(p.QueryStateModel.attributesEnum.first,n);this.listenToQueryStateChange=!0},t.prototype.handleQueryError=function(){this.reset()},t.prototype.handleQuerySuccess=function(n){var o=this;if(this.reset(),this.ignoreNextQuerySuccess)this.ignoreNextQuerySuccess=!1;else{f.Assert.isNotUndefined(n);var s=n.query.firstResult,h=n.results.totalCountFiltered,t=this.computePagerBoundary(s,h);if(this.currentPage=t.currentPage,t.end-t.start>0){for(var u,l=function(){u=document.createElement("a");r.$$(u).addClass(["coveo-pager-list-item-text","coveo-pager-anchor"]);r.$$(u).text(i.toString(10));var n=r.$$("li",{className:"coveo-pager-list-item",tabindex:0}).el;i==e.currentPage&&r.$$(n).addClass("coveo-active"),function(t){var i=function(){return o.handleClickPage(t)};r.$$(n).on("click",i);r.$$(n).on("keyup",c.KeyboardUtils.keypressAction(c.KEYBOARD.ENTER,i))}(i);n.appendChild(u);e.list.appendChild(n)},e=this,i=t.start;i<=t.end;i++)l();this.options.enableNavigationButton&&t.lastResultPage>1&&this.renderNavigationButton(t,this.list)}}},t.prototype.handleNoResults=function(n){var t=this.computePagerBoundary(n.results.totalCountFiltered,n.results.totalCount).lastResultPage;this.currentPage>t&&(this.ignoreNextQuerySuccess=!0,this.setPage(t))},t.prototype.reset=function(){r.$$(this.list).empty()},t.prototype.handleBuildingQuery=function(n){f.Assert.exists(n);var t=this.getQueryEventArgs();n.queryBuilder.firstResult=t.first;n.queryBuilder.numberOfResults=t.count},t.prototype.computePagerBoundary=function(n,t){var f=this.queryController.options.resultsPerPage,e=Math.floor(n/f)+1,r=Math.min(Math.ceil(t/f),this.options.maxNumberOfPages),o,i,u;return r=Math.max(r,1),o=Math.floor(this.options.numberOfPages/2),i=e-o,i=Math.max(i,1),u=i+this.options.numberOfPages-1,u=Math.min(u,r),{start:i,end:u,lastResultPage:r,currentPage:e}},t.prototype.renderNavigationButton=function(n){var e=this,i,u,t,f;this.currentPage>1&&(i=document.createElement("li"),r.$$(i).addClass(["coveo-pager-previous","coveo-pager-anchor","coveo-pager-list-item"]),t=document.createElement("a"),f=document.createElement("span"),t.appendChild(f),t.setAttribute("title",h.l("Previous")),i.appendChild(t),r.$$(i).on("click",function(){return e.handleClickPrevious()}),this.list.insertBefore(i,this.list.firstChild));this.currentPage<n.lastResultPage&&(u=document.createElement("li"),r.$$(u).addClass(["coveo-pager-next","coveo-pager-anchor","coveo-pager-list-item"]),t=document.createElement("a"),f=document.createElement("span"),t.appendChild(f),t.setAttribute("title",h.l("Next")),u.appendChild(t),r.$$(u).on("click",function(){return e.handleClickNext()}),this.list.appendChild(u))},t.prototype.handleQueryStateModelChanged=function(n){if(this.listenToQueryStateChange){f.Assert.exists(n);this.needToReset=!1;var t=n.value;this.currentPage=this.fromFirstResultsToPageNumber(t)}},t.prototype.handleClickPage=function(n){f.Assert.exists(n);this.setPage(n)},t.prototype.handleClickPrevious=function(){this.previousPage()},t.prototype.handleClickNext=function(){this.nextPage()},t.prototype.fromFirstResultsToPageNumber=function(n){return n/this.queryController.options.resultsPerPage+1},t.prototype.getFirstResultNumber=function(n){return void 0===n&&(n=this.currentPage),(n-1)*this.queryController.options.resultsPerPage},t.prototype.getQueryEventArgs=function(){return{count:this.queryController.options.resultsPerPage,first:this.getFirstResultNumber()}},t}(a.Component);o.ID="Pager";o.options={numberOfPages:e.ComponentOptions.buildNumberOption({defaultFunction:function(){return v.DeviceUtils.isMobileDevice()?3:5},min:1}),enableNavigationButton:e.ComponentOptions.buildBooleanOption({defaultValue:!0}),maxNumberOfPages:e.ComponentOptions.buildNumberOption({defaultValue:void 0})};t.Pager=o;b.Initialization.registerAutoCreateComponent(o)},function(n,t,i){"use strict";var h=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},c=i(103),f=i(107),l=i(111),e=i(48),a=i(112),o=i(12),r=i(59),s=i(69),v=i(16),y=i(14),u=function(n){function t(i,r,u){var o=n.call(this,i,t.ID,u)||this;return o.element=i,o.options=r,o.options=f.ComponentOptions.initComponentOptions(i,t,r),o.currentResultsPerPage=o.getInitialChoice(),o.queryController.options.resultsPerPage=o.currentResultsPerPage,o.bind.onRootElement(e.QueryEvents.querySuccess,function(n){return o.handleQuerySuccess(n)}),o.bind.onRootElement(e.QueryEvents.queryError,function(){return o.handleQueryError()}),o.bind.onRootElement(e.QueryEvents.noResults,function(){return o.handleNoResults()}),o.initComponent(i),o}return h(t,n),t.prototype.setResultsPerPage=function(n,t){void 0===t&&(t=a.analyticsActionCauseList.pagerResize);o.Assert.exists(n);o.Assert.check(this.options.choicesDisplayed.indexOf(n)!=-1,"The specified number of results is not available in the options.");this.currentResultsPerPage=n;this.queryController.options.resultsPerPage=this.currentResultsPerPage;this.usageAnalytics.logCustomEvent(t,{currentResultsPerPage:this.currentResultsPerPage},this.element);this.queryController.executeQuery({ignoreWarningSearchEvent:!0,keepLastSearchUid:!0,origin:this})},t.prototype.getInitialChoice=function(){var n=this.options.choicesDisplayed[0];return void 0!==this.options.initialChoice&&(this.options.choicesDisplayed.indexOf(this.options.initialChoice)>-1?n=this.options.initialChoice:this.logger.warn("The initial number of results is not within the choices displayed. Consider setting a value that can be selected. The first choice will be selected instead.")),n},t.prototype.initComponent=function(n){this.span=r.$$("span",{className:"coveo-results-per-page-text"},"Results per page").el;n.appendChild(this.span);this.list=r.$$("ul",{className:"coveo-results-per-page-list"}).el;n.appendChild(this.list)},t.prototype.render=function(){var u=this;r.$$(this.span).removeClass("coveo-results-per-page-no-results");for(var t=this.options.choicesDisplayed,f=function(){var f=r.$$("li",{className:"coveo-results-per-page-list-item",tabindex:0});t[n]==i.currentResultsPerPage&&f.addClass("coveo-active"),function(n){var i=function(){return u.handleClickPage(t[n])};f.on("click",i);f.on("keyup",s.KeyboardUtils.keypressAction(s.KEYBOARD.ENTER,i))}(n);f.el.appendChild(r.$$("a",{className:"coveo-results-per-page-list-item-text"},t[n].toString()).el);i.list.appendChild(f.el)},i=this,n=0;n<t.length;n++)f()},t.prototype.handleQueryError=function(){this.reset()},t.prototype.handleNoResults=function(){this.reset()},t.prototype.handleQuerySuccess=function(n){0!=n.results.results.length&&(this.reset(),this.render())},t.prototype.handleClickPage=function(n){o.Assert.exists(n);this.setResultsPerPage(n)},t.prototype.reset=function(){r.$$(this.span).addClass("coveo-results-per-page-no-results");r.$$(this.list).empty()},t}(c.Component);u.ID="ResultsPerPage";u.options={choicesDisplayed:f.ComponentOptions.buildCustomListOption(function(n){var t=y.map(n,function(n){return parseInt(n,10)});return 0==t.length?null:t},{defaultFunction:function(){return v.DeviceUtils.isMobileDevice()?[10,25,50]:[10,25,50,100]}}),initialChoice:f.ComponentOptions.buildNumberOption()};t.ResultsPerPage=u;l.Initialization.registerAutoCreateComponent(u)},function(n,t,i){"use strict";var u=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},f=i(103),e=i(107),o=i(12),s=i(67),h=i(111),r=function(n){function t(i,r,u,f){var h=n.call(this,i,t.ID,u)||this;return h.element=i,h.options=r,h.bindings=u,h.result=f,h.options=e.ComponentOptions.initComponentOptions(i,t,r),h.result=h.result||h.resolveResult(),o.Assert.exists(h.result),h.element.innerHTML=s.HighlightUtils.highlightString(h.result.excerpt,h.result.excerptHighlights,null,"coveo-highlight"),h}return u(t,n),t}(f.Component);r.ID="Excerpt";t.Excerpt=r;h.Initialization.registerAutoCreateComponent(r)},function(n,t,i){"use strict";var c=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},l=i(103),u=i(107),a=i(105),v=i(112),y=i(49),p=i(67),w=i(16),f=i(71),b=i(111),k=i(21),s=i(12),o=i(13),d=i(32),r=i(59),g=i(73),h=i(14),e=function(n){function t(i,f,e,o,c){var l=n.call(this,i,t.ID,e)||this,y;return(l.element=i,l.options=f,l.bindings=e,l.result=o,l.os=c,l.logOpenDocument=h.debounce(function(){l.queryController.saveLastQuery();var n=r.$$(l.element).getAttribute("href");void 0!=n&&""!=n||(n=l.result.clickUri);l.usageAnalytics.logClickEvent(v.analyticsActionCauseList.documentOpen,{documentURL:n,documentTitle:l.result.title,author:l.result.raw.author},l.result,l.root);d.Defer.flush()},1500,!0),l.options=u.ComponentOptions.initComponentOptions(i,t,f),l.options=h.extend({},l.options,l.componentOptionsModel.get(a.ComponentOptionsModel.attributesEnum.resultLink)),l.result=o||l.resolveResult(),null==l.options.openQuickview&&(l.options.openQuickview="ExchangeCrawler"==o.raw.connectortype&&w.DeviceUtils.isMobileDevice()),l.element.setAttribute("tabindex","0"),s.Assert.exists(l.componentOptionsModel),s.Assert.exists(l.result),l.quickviewShouldBeOpened()||(r.$$(i).on("contextmenu",function(){l.logOpenDocument()}),r.$$(i).on("click",function(){l.logOpenDocument()})),/^\s*$/.test(l.element.innerHTML))&&(l.options.titleTemplate?(y=l.parseStringTemplate(l.options.titleTemplate),l.element.innerHTML=y?g.StreamHighlightUtils.highlightStreamText(y,l.result.termsToHighlight,l.result.phrasesToHighlight):l.result.clickUri):l.element.innerHTML=l.result.title?p.HighlightUtils.highlightString(l.result.title,l.result.titleHighlights,null,"coveo-highlight"):l.result.clickUri),l.bindEventToOpen(),l}return c(t,n),t.prototype.bindEventToOpen=function(){return this.bindOnClickIfNotUndefined()||this.bindOpenQuickviewIfNotUndefined()||this.setHrefIfNotAlready()||this.openLinkThatIsNotAnAnchor()},t.prototype.bindOnClickIfNotUndefined=function(){var n=this;return void 0!=this.options.onClick&&(r.$$(this.element).on("click",function(t){n.options.onClick.call(n,t,n.result)}),!0)},t.prototype.bindOpenQuickviewIfNotUndefined=function(){var n=this;return!!this.quickviewShouldBeOpened()&&(r.$$(this.element).on("click",function(t){t.preventDefault();r.$$(n.bindings.resultElement).trigger(y.ResultListEvents.openQuickview)}),!0)},t.prototype.openLinkThatIsNotAnAnchor=function(){var n=this;return!this.elementIsAnAnchor()&&(r.$$(this.element).on("click",function(){n.options.alwaysOpenInNewWindow?n.options.openInOutlook?n.openLinkInOutlook():n.openLinkInNewWindow():n.openLink()}),!0)},t.prototype.openLink=function(){window.location.href=this.getResultUri()},t.prototype.openLinkInNewWindow=function(){window.open(this.getResultUri(),"_blank")},t.prototype.openLinkInOutlook=function(){this.hasOutlookField()&&this.openLink()},t.prototype.setHrefIfNotAlready=function(){return!(!this.elementIsAnAnchor()||o.Utils.isNonEmptyString(r.$$(this.element).getAttribute("href")))&&(r.$$(this.element).setAttribute("href",this.getResultUri()),!this.options.alwaysOpenInNewWindow||this.options.openInOutlook&&this.hasOutlookField()||r.$$(this.element).setAttribute("target","_blank"),!0)},t.prototype.getResultUri=function(){return this.options.hrefTemplate?this.parseStringTemplate(this.options.hrefTemplate):(void 0==this.options.field&&this.options.openInOutlook&&this.setField(),void 0!=this.options.field?o.Utils.getFieldValue(this.result,this.options.field):this.result.clickUri)},t.prototype.elementIsAnAnchor=function(){return"A"==this.element.tagName},t.prototype.setField=function(){var n=o.Utils.exists(this.os)?this.os:f.OSUtils.get();n==f.OS_NAME.MACOSX&&this.hasOutlookField()?this.options.field="@outlookformacuri":n==f.OS_NAME.WINDOWS&&this.hasOutlookField()&&(this.options.field="@outlookuri")},t.prototype.hasOutlookField=function(){var n=o.Utils.exists(this.os)?this.os:f.OSUtils.get();return n==f.OS_NAME.MACOSX&&void 0!=this.result.raw.outlookformacuri||n==f.OS_NAME.WINDOWS&&void 0!=this.result.raw.outlookuri},t.prototype.isUriThatMustBeOpenedInQuickview=function(){return 0==this.result.clickUri.toLowerCase().indexOf("ldap://")},t.prototype.quickviewShouldBeOpened=function(){return(this.options.openQuickview||this.isUriThatMustBeOpenedInQuickview())&&k.QueryUtils.hasHTMLVersion(this.result)},t.prototype.parseStringTemplate=function(n){var t=this;return n?n.replace(/\$\{(.*?)\}/g,function(n){var r=n.substring(2,n.length-1),i=t.readFromObject(t.result,r);return i||(i=t.readFromObject(window,r)),i||t.logger.warn(r+" used in the ResultLink template is undefined for this result: "+t.result.title),i||n}):""},t.prototype.readFromObject=function(n,t){if(n&&t.indexOf(".")!==-1){var i=t.substring(t.indexOf(".")+1);return t=t.substring(0,t.indexOf(".")),this.readFromObject(n[t],i)}if(n)return n[t]},t}(l.Component);e.ID="ResultLink";e.options={field:u.ComponentOptions.buildFieldOption(),openInOutlook:u.ComponentOptions.buildBooleanOption({defaultValue:!1}),openQuickview:u.ComponentOptions.buildBooleanOption({defaultValue:!1}),alwaysOpenInNewWindow:u.ComponentOptions.buildBooleanOption({defaultValue:!1}),hrefTemplate:u.ComponentOptions.buildStringOption(),titleTemplate:u.ComponentOptions.buildStringOption(),onClick:u.ComponentOptions.buildCustomOption(function(){return null})};e.fields=["outlookformacuri","outlookuri","connectortype","urihash","collection","source","author"];t.ResultLink=e;b.Initialization.registerAutoCreateComponent(e)},function(n,t,i){"use strict";var s=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},o=i(103),e=i(107),f=i(202),h=i(21),c=i(16),l=i(111),u=i(59),a=i(204),v=i(133),y=i(14),r=function(n){function t(i,r,o,s){var c=n.call(this,i,t.ID,o)||this,l;return(c.element=i,c.options=r,c.bindings=o,c.result=s,c.options=e.ComponentOptions.initOptions(i,t.options,r),"img"!=c.element.tagName.toLowerCase()?(c.img=u.$$("img").el,c.element.appendChild(c.img)):c.img=c.element,c.options.clickable)&&("img"!=c.element.tagName.toLowerCase()?new f.ResultLink(c.element,c.options,c.bindings,c.result):(l=u.$$("a"),u.$$(c.element).replaceWith(l.el),u.$$(l).append(c.element),new f.ResultLink(l.el,c.options,c.bindings,c.result))),c.img.setAttribute("src","data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),h.QueryUtils.hasThumbnail(s)?c.buildThumbnailImage():c.setEmptyThumbnailClass(),c}return s(t,n),t.prototype.buildThumbnailImage=function(){var n=this.bindings.queryController.getEndpoint();n.isJsonp()||c.DeviceUtils.isIE8or9()?this.buildImageWithDirectSrcAttribute(n):this.buildImageWithBase64SrcAttribute(n)},t.prototype.buildImageWithDirectSrcAttribute=function(n){var t=n.getViewAsDatastreamUri(this.result.uniqueId,"$Thumbnail$",{contentType:"image/png"});this.img.setAttribute("src",t);this.resizeContainingFieldTable()},t.prototype.buildImageWithBase64SrcAttribute=function(n){var t=this;n.getRawDataStream(this.result.uniqueId,"$Thumbnail$").then(function(n){var i=String.fromCharCode.apply(null,new Uint8Array(n));t.img.setAttribute("src","data:image/png;base64, "+btoa(i));t.resizeContainingFieldTable()}).catch(function(){t.setEmptyThumbnailClass()})},t.prototype.resizeContainingFieldTable=function(){var n=u.$$(this.element).closest(o.Component.computeCssClassName(a.FieldTable)),t;null!=n&&(t=v.get(n),t.updateToggleHeight())},t.prototype.setEmptyThumbnailClass=function(){u.$$(this.img).addClass(this.options.noThumbnailClass)},t}(o.Component);r.ID="Thumbnail";r.options={noThumbnailClass:e.ComponentOptions.buildStringOption({defaultValue:"coveo-no-thumbnail"}),clickable:e.ComponentOptions.buildBooleanOption({defaultValue:!1})};r.parent=f.ResultLink;r.fields=["outlookformacuri","outlookuri","connectortype","urihash","collection","source"];t.Thumbnail=r;r.options=y.extend({},f.ResultLink.options,r.options);l.Initialization.registerAutoCreateComponent(r)},function(n,t,i){"use strict";var o=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},c=i(103),u=i(107),l=i(21),a=i(111),s=i(205),r=i(59),h=i(69),v=i(14),e=function(n){function t(i,e,o,s){var h=n.call(this,i,f.ID,o)||this,c;return h.element=i,h.options=e,h.result=s,h.options=u.ComponentOptions.initComponentOptions(i,t,e),c=r.$$(h.element).findAll("tr[data-field]"),v.each(c,function(n){new f(n,{},o,s)}),null==r.$$(h.element).find("tr")&&r.$$(i).detach(),h.isTogglable()?(h.toggleContainer=r.$$("div",{className:"coveo-field-table-toggle-container"}).el,h.buildToggle(),r.$$(h.toggleContainer).insertBefore(h.element),h.toggleContainer.appendChild(h.element)):h.isExpanded=!0,h}return o(t,n),t.prototype.toggle=function(n){void 0===n&&(n=!1);this.isTogglable()&&(this.isExpanded=!this.isExpanded,this.isExpanded?this.expand(n):this.minimize(n))},t.prototype.expand=function(n){void 0===n&&(n=!1);this.isTogglable()&&(this.isExpanded=!0,this.toggleCaption.textContent=this.options.expandedTitle,r.$$(this.toggleIcon).addClass("coveo-opened"),r.$$(this.toggleButtonInsideTable).addClass("coveo-opened"),n?this.slideToggle(!0):this.slideToggle(!0,!1))},t.prototype.minimize=function(n){void 0===n&&(n=!1);this.isTogglable()&&(this.isExpanded=!1,this.toggleCaption.textContent=this.options.minimizedTitle,r.$$(this.toggleIcon).removeClass("coveo-opened"),r.$$(this.toggleButtonInsideTable).removeClass("coveo-opened"),n?this.slideToggle(!1):this.slideToggle(!1,!1))},t.prototype.updateToggleHeight=function(){this.updateToggleContainerHeight();this.isExpanded?this.expand():this.minimize()},t.prototype.isTogglable=function(){return!(!this.searchInterface.isNewDesign()||!this.options.allowMinimization)||(this.searchInterface.isNewDesign()||this.logger.trace("Cannot open or close the field table with older design",this),!1)},t.prototype.buildToggle=function(){var t=this,n;this.toggleIcon=r.$$("span",{className:"coveo-field-table-toggle-icon"}).el;this.toggleCaption=r.$$("span",{className:"coveo-field-table-toggle-caption",tabindex:0}).el;this.toggleButton=r.$$("div",{className:"coveo-field-table-toggle"}).el;this.toggleButton.appendChild(this.toggleCaption);this.toggleButton.appendChild(this.toggleIcon);r.$$(this.toggleButton).insertBefore(this.element);this.toggleButtonInsideTable=r.$$("span",{className:"coveo-field-table-toggle-icon-up coveo-field-table-toggle"}).el;this.element.appendChild(this.toggleButtonInsideTable);this.isExpanded=this.options.minimizedByDefault===!0?!1:this.options.minimizedByDefault===!1?!0:!l.QueryUtils.hasExcerpt(this.result);setTimeout(function(){t.updateToggleHeight()});n=function(){return t.toggle(!0)};r.$$(this.toggleButton).on("click",n);r.$$(this.toggleButtonInsideTable).on("click",n);r.$$(this.toggleButton).on("keyup",h.KeyboardUtils.keypressAction(h.KEYBOARD.ENTER,n))},t.prototype.slideToggle=function(n,t){void 0===n&&(n=!0);void 0===t&&(t=!0);t||r.$$(this.toggleContainer).addClass("coveo-no-transition");n?(this.toggleContainer.style.display="block",this.toggleContainer.style.height=this.toggleContainerHeight+"px"):(this.toggleContainer.style.height=this.toggleContainerHeight+"px",this.toggleContainer.style.height="0");t||(this.toggleContainer.offsetHeight,r.$$(this.toggleContainer).removeClass("coveo-no-transition"))},t.prototype.updateToggleContainerHeight=function(){this.toggleContainerHeight=this.toggleContainer.scrollHeight},t}(c.Component),f;e.ID="FieldTable";e.options={allowMinimization:u.ComponentOptions.buildBooleanOption({defaultValue:!0}),expandedTitle:u.ComponentOptions.buildLocalizedStringOption({defaultValue:"Details",depend:"allowMinimization"}),minimizedTitle:u.ComponentOptions.buildLocalizedStringOption({defaultValue:"Details",depend:"allowMinimization"}),minimizedByDefault:u.ComponentOptions.buildBooleanOption({depend:"allowMinimization"})};t.FieldTable=e;a.Initialization.registerAutoCreateComponent(e);f=function(n){function t(i,f,e,o){var s=n.call(this,i,f,e,o,t.ID)||this,h;return s.element=i,s.options=f,s.result=o,s.options=u.ComponentOptions.initComponentOptions(i,t,f),h=r.$$("th").el,h.appendChild(document.createTextNode(s.options.caption.toLocaleString())),s.element.insertBefore(h,s.getValueContainer()),s}return o(t,n),t.prototype.getValueContainer=function(){return null==this.valueContainer&&(this.valueContainer=document.createElement("td"),this.element.appendChild(this.valueContainer)),this.valueContainer},t}(s.FieldValue);f.ID="ValueRow";f.options={caption:u.ComponentOptions.buildStringOption({postProcessing:function(n,t){return n||t.field.substr(1)}})};f.parent=s.FieldValue},function(n,t,i){"use strict";function u(n,t){return null==t&&(t={}),t.helpers=n,t}var c=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},l=i(103),r=i(107),a=i(111),v=i(178),y=i(12),s=i(58),p=i(101),w=i(112),h=i(13),o=i(59),f=i(14),e=function(n){function t(i,u,e,o,s){var h,c,l;return void 0===s&&(s=t.ID),h=n.call(this,i,s,e)||this,h.element=i,h.options=u,h.result=o,h.options=r.ComponentOptions.initOptions(i,t.simpleOptions,u),null!=h.options.helper&&(h.options=r.ComponentOptions.initOptions(i,t.helperOptions,h.options)),h.result=h.result||h.resolveResult(),y.Assert.exists(h.result),c=h.getValue(),null==c?null!=h.element.parentElement&&h.element.parentElement.removeChild(h.element):(l=void 0,f.isArray(c)?l=c:h.options.splitValues?f.isString(c)&&(l=f.map(c.split(h.options.separator),function(n){return n.trim()})):(c=c.toString(),l=[c]),h.appendValuesToDom(l),null!=h.options.textCaption&&h.prependTextCaptionToDom()),h}return c(t,n),t.prototype.getValue=function(){var n=h.Utils.getFieldValue(this.result,this.options.field);return!f.isArray(n)&&f.isObject(n)&&(n=null),n},t.prototype.renderOneValue=function(n){var t=o.$$("span").el,i=n,r;return this.options.helper&&(i=v.TemplateHelpers.getHelper(this.options.helper).call(this,n,this.getHelperOptions()),r=this.getFullDate(n,this.options.helper),r&&t.setAttribute("title",r)),this.options.htmlValue?t.innerHTML=i:t.appendChild(document.createTextNode(i)),this.bindEventOnValue(t,n),t},t.prototype.getValueContainer=function(){return this.element},t.prototype.getHelperOptions=function(){var inlineOptions=r.ComponentOptions.loadStringOption(this.element,"helperOptions",{});return h.Utils.isNonEmptyString(inlineOptions)?f.extend({},this.options.helperOptions,eval("("+inlineOptions+")")):this.options.helperOptions},t.prototype.getFullDate=function(n,t){var i={useLongDateFormat:!0,useTodayYesterdayAndTomorrow:!1,useWeekdayIfThisWeek:!1,omitYearIfCurrentOne:!1};return"date"==t?s.DateUtils.dateToString(new Date(parseInt(n)),i):"dateTime"==t||"emailDateTime"==t?s.DateUtils.dateTimeToString(new Date(parseInt(n)),i):""},t.prototype.appendValuesToDom=function(n){var t=this;f.each(n,function(i,r){void 0!=i&&(t.getValueContainer().appendChild(t.renderOneValue(i)),r!==n.length-1&&t.getValueContainer().appendChild(document.createTextNode(t.options.displaySeparator)))})},t.prototype.renderTextCaption=function(){var n=o.$$("span",{className:"coveo-field-caption"},f.escape(this.options.textCaption));return n.el},t.prototype.prependTextCaptionToDom=function(){var n=this.getValueContainer();o.$$(n).prepend(this.renderTextCaption());o.$$(n).addClass("coveo-with-label")},t.prototype.bindEventOnValue=function(n,t){var r=this,e=p.QueryStateModel.getFacetId(this.options.facet),i=f.filter(this.componentStateModel.get(e),function(n){return!n.disabled}),s=i.length>0,u;s&&(u=f.find(i,function(n){var i=n.values.get(t);return i&&i.selected}),o.$$(n).on("click",function(){null!=u?f.each(i,function(n){return n.deselectValue(t)}):f.each(i,function(n){return n.selectValue(t)});r.queryController.deferExecuteQuery({beforeExecuteQuery:function(){return r.usageAnalytics.logSearchEvent(w.analyticsActionCauseList.documentField,{facetId:r.options.facet,facetValue:t.toLowerCase()})}})}),u&&o.$$(n).addClass("coveo-selected"),o.$$(n).addClass("coveo-clickable"))},t}(l.Component);e.ID="FieldValue";e.options={field:r.ComponentOptions.buildFieldOption({defaultValue:"@field",required:!0}),facet:r.ComponentOptions.buildStringOption({postProcessing:function(n,t){return n||t.field}}),htmlValue:r.ComponentOptions.buildBooleanOption({defaultValue:!1}),splitValues:r.ComponentOptions.buildBooleanOption({defaultValue:!1}),separator:r.ComponentOptions.buildStringOption({depend:"splitValues",defaultValue:";"}),displaySeparator:r.ComponentOptions.buildStringOption({depend:"splitValues",defaultValue:", "}),helper:r.ComponentOptions.buildHelperOption(),helperOptions:r.ComponentOptions.buildObjectOption({subOptions:{text:r.ComponentOptions.buildStringOption(u(["anchor"])),target:r.ComponentOptions.buildStringOption(u(["anchor"])),"class":r.ComponentOptions.buildStringOption(u(["anchor"])),decimals:r.ComponentOptions.buildNumberOption(u(["currency"],{min:0})),symbol:r.ComponentOptions.buildStringOption(u(["currency"])),useTodayYesterdayAndTomorrow:r.ComponentOptions.buildBooleanOption(u(["date","dateTime","emailDateTime","time"],{defaultValue:!0})),useWeekdayIfThisWeek:r.ComponentOptions.buildBooleanOption(u(["date","dateTime","emailDateTime","time"],{defaultValue:!0})),omitYearIfCurrentOne:r.ComponentOptions.buildBooleanOption(u(["date","dateTime","emailDateTime","time"],{defaultValue:!0})),useLongDateFormat:r.ComponentOptions.buildBooleanOption(u(["date","dateTime","emailDateTime","time"],{defaultValue:!1})),includeTimeIfToday:r.ComponentOptions.buildBooleanOption(u(["date","dateTime","emailDateTime","time"],{defaultValue:!0})),includeTimeIfThisWeek:r.ComponentOptions.buildBooleanOption(u(["date","dateTime","emailDateTime","time"],{defaultValue:!0})),alwaysIncludeTime:r.ComponentOptions.buildBooleanOption(u(["date","dateTime","emailDateTime","time"],{defaultValue:!1})),predefinedFormat:r.ComponentOptions.buildStringOption(u(["date","dateTime","emailDateTime","time"])),companyDomain:r.ComponentOptions.buildStringOption(u(["email"])),lengthLimit:r.ComponentOptions.buildNumberOption(u(["email"],{min:1})),truncateName:r.ComponentOptions.buildBooleanOption(u(["email"])),alt:r.ComponentOptions.buildStringOption(u(["image"])),height:r.ComponentOptions.buildStringOption(u(["image"])),width:r.ComponentOptions.buildStringOption(u(["image"])),presision:r.ComponentOptions.buildNumberOption(u(["size"],{min:0,defaultValue:2})),base:r.ComponentOptions.buildNumberOption(u(["size"],{min:0,defaultValue:0})),isMilliseconds:r.ComponentOptions.buildBooleanOption(u(["timeSpan"]))}}),textCaption:r.ComponentOptions.buildLocalizedStringOption()};e.simpleOptions=f.omit(e.options,"helperOptions");e.helperOptions={helperOptions:e.options.helperOptions};t.FieldValue=e;a.Initialization.registerAutoCreateComponent(e)},function(n,t,i){"use strict";var e=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},o=i(103),s=i(107),f=i(67),h=i(111),c=i(112),l=i(13),r=i(59),u=function(n){function t(i,r,u,f){var e=n.call(this,i,t.ID,u)||this,o;return e.element=i,e.options=r,e.result=f,e.options=s.ComponentOptions.initComponentOptions(i,t,r),o=f.raw.parents,o?e.renderParentsXml(i,o):e.renderUri(i,f),e}return e(t,n),t.prototype.renderParentsXml=function(n,t){for(var s,h,c,r,a,o,b=l.Utils.parseXml(t),y=b.getElementsByTagName("parent"),u=[],f=[],i=0;i<y.length;i++)i>0&&(s=this.buildSeperator(),f.push(s),n.appendChild(s)),h=y.item(i),c=this.buildHtmlToken(h.getAttribute("name"),h.getAttribute("uri")),u.push(c),n.appendChild(c);if(u.length>1){r=this.buildEllipsis();n.insertBefore(r,f[0]);a=this.buildSeperator();n.insertBefore(a,r);for(var e=0,v=[],i=0;i<u.length;i++)v[i]=u[i].offsetWidth,e+=v[i];var p=f[0].offsetWidth,k=r.offsetWidth,w=n.offsetWidth;if(w<=e){for(e+=k+p,o=[],i=1;i<u.length&&w<=e;)n.removeChild(u[i]),n.removeChild(f[i-1]),i>1&&o.push(f[i-1]),o.push(u[i]),e-=v[i]+p,i++;r.onclick=function(){for(var t=0;t<o.length;t++)n.insertBefore(o[t],r);n.removeChild(r)}}else n.removeChild(r),n.removeChild(a)}},t.prototype.renderUri=function(n,t){var u,e,i;this.uri=t.clickUri;u=t.printableUri.indexOf("\\")==-1?f.StringAndHoles.shortenUri(t.printableUri,r.$$(n).width()/7):f.StringAndHoles.shortenPath(t.printableUri,r.$$(n).width()/7);e=f.HighlightUtils.highlightString(u.value,t.printableUriHighlights,u.holes,"coveo-highlight");i=r.$$("a");i.setAttribute("title",t.printableUri);i.addClass("coveo-printable-uri");i.setHtml(e);i.setAttribute("href",t.clickUri);this.bindLogOpenDocument(i.el);n.appendChild(i.el)},t.prototype.buildSeperator=function(){var n=document.createElement("span");return n.innerText=">",n.className="coveo-printable-uri-separator",n},t.prototype.buildEllipsis=function(){var n=document.createElement("span");return n.innerText="...",n.className="coveo-printable-uri",n},t.prototype.buildHtmlToken=function(n,t){var r=n.charAt(0).toUpperCase()+n.slice(1),i=document.createElement("a");return this.bindLogOpenDocument(i),i.href=t,this.uri=t,i.className="coveo-printable-uri",i.appendChild(document.createTextNode(r)),i},t.prototype.bindLogOpenDocument=function(n){var t=this;r.$$(n).on(["mousedown","touchend"],function(n){var i=r.$$(n.srcElement).getAttribute("href"),u=r.$$(n.srcElement).text();t.usageAnalytics.logClickEvent(c.analyticsActionCauseList.documentOpen,{documentURL:i,documentTitle:u,author:t.result.raw.author},t.result,t.root)})},t}(o.Component);u.ID="PrintableUri";u.options={};u.fields=["parents","author"];t.PrintableUri=u;h.Initialization.registerAutoCreateComponent(u)},function(n,t,i){"use strict";var v=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},y=i(103),c=i(107),u=i(12),f=i(48),r=i(59),s=i(101),p=i(111),e=i(62),l=i(13),a=i(112),h=i(35),w=i(14),o=function(n){function t(i,e,o){var s=n.call(this,i,t.ID,o)||this;return s.element=i,s.options=e,s.bindings=o,s.options=c.ComponentOptions.initComponentOptions(i,t,e),u.Assert.exists(i),u.Assert.exists(s.options),s.hideNext=!0,s.correctedTerm=null,s.bind.onRootElement(f.QueryEvents.buildingQuery,s.handlePrepareQueryBuilder),s.bind.onRootElement(f.QueryEvents.querySuccess,s.handleProcessNewQueryResults),s.bind.onRootElement(f.QueryEvents.noResults,s.handleNoResults),s.bind.onRootElement(f.QueryEvents.newQuery,s.handleNewQuery),r.$$(s.element).hide(),s}return v(t,n),t.prototype.doQueryWithCorrectedTerm=function(){var n=this;u.Assert.exists(this.correctedTerm);this.queryStateModel.set(s.QueryStateModel.attributesEnum.q,this.correctedTerm);this.queryController.deferExecuteQuery({beforeExecuteQuery:function(){return n.usageAnalytics.logSearchEvent(a.analyticsActionCauseList.didyoumeanClick,{})}})},t.prototype.handleNewQuery=function(){this.hideNext?(r.$$(this.element).empty(),r.$$(this.element).hide(),this.correctedTerm=null):this.hideNext=!0},t.prototype.handlePrepareQueryBuilder=function(n){u.Assert.exists(n);n.queryBuilder.enableDidYouMean=!0},t.prototype.handleNoResults=function(n){var u,f,t,i;l.Utils.isNonEmptyArray(n.results.queryCorrections)&&!n.searchAsYouType&&this.options.enableAutoCorrection&&(u=this.queryStateModel.get(s.QueryStateModel.attributesEnum.q),this.correctedTerm=n.results.queryCorrections[0].correctedQuery,f=this.buildCorrectedSentence(n.results.queryCorrections[0]),this.queryStateModel.set(s.QueryStateModel.attributesEnum.q,n.results.queryCorrections[0].correctedQuery),n.retryTheQuery=!0,this.hideNext=!1,t=r.$$("div",{className:"coveo-did-you-mean-no-results-for"}).el,t.innerHTML=h.l("noResultFor",'<span class="coveo-highlight coveo-did-you-mean-highlight">'+e.StringUtils.htmlEncode(u)+"<\/span>"),this.element.appendChild(t),i=r.$$("div",{className:"coveo-did-you-mean-automatic-correct"}).el,i.innerHTML=h.l("autoCorrectedQueryTo",'<span class="coveo-highlight">'+f+"<\/span>"),this.element.appendChild(i),r.$$(this.element).show(),this.usageAnalytics.logSearchEvent(a.analyticsActionCauseList.didyoumeanAutomatic,{}))},t.prototype.handleProcessNewQueryResults=function(n){var o=this,t,e,i,f;u.Assert.exists(n);u.Assert.exists(n.results);t=n.results;(this.logger.trace("Received query results from new query",t),l.Utils.isNonEmptyArray(t.queryCorrections))&&(e=this.buildCorrectedSentence(t.queryCorrections[0]),this.correctedTerm=t.queryCorrections[0].correctedQuery,i=r.$$("div",{className:"coveo-did-you-mean-suggestion"},h.l("didYouMean","")).el,this.element.appendChild(i),f=r.$$("a",{},e).el,i.appendChild(f),r.$$(f).on("click",function(){o.doQueryWithCorrectedTerm()}),r.$$(this.element).show())},t.prototype.buildCorrectedSentence=function(n){var t=[],r="<span class='coveo-did-you-mean-word-correction'>",u="<\/span>",i=0;return w.each(n.wordCorrections,function(f){t.push(e.StringUtils.htmlEncode(n.correctedQuery.slice(i,f.offset)));i=f.offset;t.push(r);t.push(e.StringUtils.htmlEncode(n.correctedQuery.slice(i,f.length+i)));t.push(u);i=f.offset+f.length}),t.push(e.StringUtils.htmlEncode(n.correctedQuery.slice(i))),t.join("")},t}(y.Component);o.ID="DidYouMean";o.options={enableAutoCorrection:c.ComponentOptions.buildBooleanOption({defaultValue:!0})};t.DidYouMean=o;p.Initialization.registerAutoCreateComponent(o)},function(n,t,i){"use strict";var c=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},l=i(103),o=i(107),r=i(59),s=i(48),f=i(112),u=i(35),h=i(12),a=i(111),e=function(n){function t(i,u,f){var e=n.call(this,i,t.ID,f)||this,c,h;return e.element=i,e.options=u,e.options=o.ComponentOptions.initComponentOptions(i,t,u),c=r.$$("div",{className:"coveo-error-report-title"},"<h3><\/h3><h4><\/h4>"),e.element.appendChild(c.el),h=r.$$("div",{className:"coveo-error-report-options"}),h.el.appendChild(e.buildPrevious()),h.el.appendChild(e.buildReset()),h.el.appendChild(e.buildRetry()),e.message=r.$$("div",{className:"coveo-error-report-message"}),e.element.appendChild(h.el),e.element.appendChild(e.message.el),r.$$(e.element).hide(),e.bind.onRootElement(s.QueryEvents.newQuery,function(){return e.handleNewQuery()}),e.bind.onRootElement(s.QueryEvents.queryError,function(n){return e.handleQueryError(n)}),e}return c(t,n),t.prototype.back=function(){this.usageAnalytics.logCustomEvent(f.analyticsActionCauseList.errorBack,{},this.root);this.usageAnalytics.logSearchEvent(f.analyticsActionCauseList.errorBack,{});history.back()},t.prototype.reset=function(){this.queryStateModel.reset();this.usageAnalytics.logSearchEvent(f.analyticsActionCauseList.errorClearQuery,{});this.usageAnalytics.logCustomEvent(f.analyticsActionCauseList.errorClearQuery,{},this.root);this.queryController.executeQuery()},t.prototype.retry=function(){this.usageAnalytics.logSearchEvent(f.analyticsActionCauseList.errorRetry,{});this.usageAnalytics.logCustomEvent(f.analyticsActionCauseList.errorRetry,{},this.root);this.queryController.executeQuery()},t.prototype.setErrorTitle=function(){var n={h3:u.l("OopsError"),h4:u.l("ProblemPersists")},t=r.$$(this.element).find("h3"),i=r.$$(this.element).find("h4");t&&i&&(r.$$(t).text(n.h3),r.$$(i).text(n.h4))},t.prototype.buildPrevious=function(){var t=this,n=r.$$("span",{className:"coveo-error-report-previous"},u.l("GoBack"));return n.on("click",function(){return t.back()}),n.el},t.prototype.buildReset=function(){var t=this,n=r.$$("span",{className:"coveo-error-report-clear"},u.l("Reset"));return n.on("click",function(){return t.reset()}),n.el},t.prototype.buildRetry=function(){var t=this,n=r.$$("span",{className:"coveo-error-report-retry"},u.l("Retry"));return n.on("click",function(){return t.retry()}),n.el},t.prototype.handleNewQuery=function(){r.$$(this.element).hide();null!=this.closePopup&&this.closePopup()},t.prototype.handleQueryError=function(n){var i=this,t;(h.Assert.exists(n),h.Assert.exists(n.error),n.error.isMissingAuthentication)||((this.message.empty(),this.setErrorTitle(),this.options.showDetailedError)&&(t=r.$$("span",{className:"coveo-error-report-more-info"},u.l("MoreInfo")),t.on("click",function(){t.empty();i.message.el.appendChild(i.buildErrorInfo(n.error))}),this.message.el.appendChild(t.el)),r.$$(this.element).show())},t.prototype.buildErrorInfo=function(n){var t=r.$$("div",{className:"coveo-error-info"}),f=r.$$("textarea",void 0,JSON.stringify(n,null,2)),i;return t.el.appendChild(f.el),i=r.$$("div",{className:"coveo-error-info-label"},u.l("CopyPasteToSupport")),t.el.appendChild(i.el),t.el},t}(l.Component);e.ID="ErrorReport";e.options={showDetailedError:o.ComponentOptions.buildBooleanOption({defaultValue:!0})};t.ErrorReport=e;a.Initialization.registerAutoCreateComponent(e)},function(n,t,i){"use strict";var e=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},o=i(103),u=i(107),s=i(52),h=i(112),c=i(111),f=i(35),l=i(14),r=function(n){function t(i,r,e,o){var h=n.call(this,i,t.ID,e)||this;return h.element=i,h.options=r,h.bindings=e,h._window=o,h._window=h._window||window,h.options=u.ComponentOptions.initComponentOptions(i,t,r),h.bind.onRootElement(s.SettingsEvents.settingsPopulateMenu,function(n){n.menuData.push({text:f.l("ExportToExcel"),className:"coveo-export-to-excel",tooltip:f.l("ExportToExcelDescription"),onOpen:function(){return h.download()}})}),h}return e(t,n),t.prototype.download=function(){var n=this.queryController.getLastQuery(),t;n&&(n=l.omit(n,"numberOfResults"),this.options.fieldsToInclude&&(n.fieldsToInclude=this.options.fieldsToInclude),this.logger.debug("Performing query following 'Export to Excel' click"),t=this.queryController.getEndpoint(),this.usageAnalytics.logCustomEvent(h.analyticsActionCauseList.exportToExcel,{},this.element),this._window.location.replace(t.getExportToExcelLink(n,this.options.numberOfResults)))},t.create=function(n,i,r){return new t(n,i,r)},t}(o.Component);r.ID="ExportToExcel";r.options={numberOfResults:u.ComponentOptions.buildNumberOption({defaultValue:100,min:1}),fieldsToInclude:u.ComponentOptions.buildFieldsOption()};t.ExportToExcel=r;c.Initialization.registerAutoCreateComponent(r)},function(n,t,i){"use strict";var h=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},c=i(103),l=i(211),r=i(107),u=i(13),e=i(12),s=i(48),a=i(111),v=i(59),y=i(78),f=i(14),o=function(n){function t(i,f,o){var h=n.call(this,i,t.ID,o)||this;return h.element=i,h.options=f,h.options=r.ComponentOptions.initComponentOptions(i,t,f),e.Assert.check(u.Utils.isCoveoField(h.options.field),h.options.field+" is not a valid field"),e.Assert.exists(h.options.maximumExpandedResults),h.bind.onRootElement(s.QueryEvents.buildingQuery,h.handleBuildingQuery),h.bind.onRootElement(s.QueryEvents.preprocessResults,h.handlepreprocessResults),h}return h(t,n),t.foldWithParent=function(n){var i={score:Number.NEGATIVE_INFINITY,children:[],result:{raw:!1}},r;return f.each(n,function(n,r){var u=t.findUniqueId(i.children,n.uniqueId),e,o;if(null==n.parentResult||n.parentResult.uniqueId==n.uniqueId)null==u&&(u={result:n,score:r,children:[]},i.children.push(u),u.parent=i);else for(null!=u?(u.score=Math.min(r,u.score),u.parent.children=f.without(u.parent.children,u)):u={result:n,score:r,children:[]},e=t.findUniqueId(i.children,n.parentResult.uniqueId),null==e&&(e={result:n.parentResult,score:Number.POSITIVE_INFINITY,children:[]},i.children.push(e),e.parent=i),e.children.push(u),u.parent=e,o=e;null!=o&&u.score<o.score;)o.score=u.score,o=o.parent}),r=t.resultNodeToQueryResult(i),f.each(r.attachments,function(n){return n.parentResult=null}),r.attachments},t.defaultGetResult=function(n){var i=n.childResults||[],r;return i.unshift(n),n.childResults=[],i=t.foldWithParent(i),r=i.shift(),r.childResults=i,r},t.defaultGetMoreResults=function(n){return t.foldWithParent(n)},t.resultNodeToQueryResult=function(n){var i=n.result;return i.attachments=f.map(f.sortBy(n.children,"score"),t.resultNodeToQueryResult),i.parentResult=null!=n.parent?n.parent.result:null,i},t.findUniqueId=function(n,i){for(var u,r=0;r<n.length;r++){if(n[r].result.uniqueId==i)return n[r];if(u=t.findUniqueId(n[r].children,i),null!=u)return u}return null},t.prototype.handleBuildingQuery=function(n){e.Assert.exists(n);this.disabled||(n.queryBuilder.childField=this.options.childField,n.queryBuilder.parentField=this.options.parentField,n.queryBuilder.filterField=this.options.field,n.queryBuilder.filterFieldRange=this.options.range,n.queryBuilder.requiredFields.push(this.options.field),null!=this.options.childField&&n.queryBuilder.requiredFields.push(this.options.childField),null!=this.options.parentField&&n.queryBuilder.requiredFields.push(this.options.parentField))},t.prototype.handlepreprocessResults=function(n){e.Assert.exists(n);e.Assert.check(!n.results._folded,"Two folding component are active at the same time for the same tab. Can't process result !");n.results._folded=!0;var i=n.results,r=this.options.getResult||t.defaultGetResult;i.results=f.map(i.results,r);this.addLoadMoreHandler(i.results,n.query)},t.prototype.addLoadMoreHandler=function(n,t){var i=this;return f.map(n,function(n){return i.options.enableExpand&&!u.Utils.isNullOrUndefined(u.Utils.getFieldValue(n,i.options.field))&&(n.moreResults=function(){return i.moreResults(n,t)}),n})},t.prototype.moreResults=function(n,t){var o=this,i=f.clone(t),r=new y.QueryBuilder,e;return i.numberOfResults=this.options.maximumExpandedResults,e=u.Utils.getFieldValue(n,this.options.field),u.Utils.isNonEmptyString(e)&&(r.advancedExpression.addFieldExpression(this.options.field,"=",[e]),i.aq=r.build().aq),u.Utils.isNonEmptyString(t.q)&&(i.q="("+t.q+") OR @uri"),u.Utils.isNonEmptyString(this.options.expandExpression)&&(i.cq=this.options.expandExpression),null!=this.options.parentField&&(i.parentField=this.options.parentField),null!=this.options.childField&&(i.childField=this.options.childField),i.filterField=null,i.filterFieldRange=null,this.options.rearrange?(this.options.rearrange.putInQueryBuilder(r),i.sortCriteria=r.sortCriteria,i.sortField=r.sortField):(i.sortCriteria=t.sortCriteria,i.sortField=t.sortField),this.queryController.getEndpoint().search(i).then(function(n){return o.handlePreprocessMoreResults(n),n.results})},t.prototype.handlePreprocessMoreResults=function(n){var i=this.options.getMoreResults||t.defaultGetMoreResults;n.results=i(n.results);v.$$(this.element).trigger(s.QueryEvents.preprocessMoreResults,{results:n})},t}(c.Component);o.ID="Folding";o.options={field:r.ComponentOptions.buildFieldOption({required:!0}),childField:r.ComponentOptions.buildFieldOption({defaultValue:"@topparentid"}),parentField:r.ComponentOptions.buildFieldOption({defaultValue:"@containsattachment"}),range:r.ComponentOptions.buildNumberOption({defaultValue:2,min:0}),rearrange:r.ComponentOptions.buildCustomOption(function(n){return u.Utils.isNonEmptyString(n)?l.SortCriteria.parse(n):null}),enableExpand:r.ComponentOptions.buildBooleanOption({defaultValue:!0}),expandExpression:r.ComponentOptions.buildStringOption({depend:"enableExpand"}),maximumExpandedResults:r.ComponentOptions.buildNumberOption({defaultValue:100,min:1,depend:"enableExpand"}),getResult:r.ComponentOptions.buildCustomOption(function(){return null}),getMoreResults:r.ComponentOptions.buildCustomOption(function(){return null})};t.Folding=o;a.Initialization.registerAutoCreateComponent(o)},function(n,t,i){"use strict";var r=i(12),e=i(13),f=i(14),u=function(){function n(t,i){void 0===i&&(i="");this.sort=t;this.direction=i;r.Assert.isNonEmptyString(t);r.Assert.check(f.contains(n.validSorts,t)||n.sortIsField(t));n.sortNeedsDirection(t)?r.Assert.check(f.contains(n.validDirections,i)):r.Assert.check(""==i)}return n.parse=function(t){r.Assert.isNonEmptyString(t);var i=t.match(/\S+/g);return new n(i[0],i[1])},n.prototype.putInQueryBuilder=function(t){r.Assert.exists(t);n.sortIsField(this.sort)?(t.sortCriteria="field"+this.direction,t.sortField=this.sort):t.sortCriteria=""!=this.direction?this.sort+this.direction:this.sort},n.prototype.getValueFromResult=function(t){return r.Assert.exists(t),n.sortIsField(this.sort)?e.Utils.getFieldValue(t,this.sort):"date"==this.sort?t.raw.date:void r.Assert.fail("Cannot retrieve value: "+this.sort)},n.prototype.toString=function(){return e.Utils.isNonEmptyString(this.direction)?this.sort+" "+this.direction:this.sort},n.prototype.equals=function(n){return r.Assert.exists(n),n.sort==this.sort&&n.direction==this.direction},n.sortIsField=function(n){return"@"==n.charAt(0)},n.sortNeedsDirection=function(t){return f.contains(n.sortsNeedingDirection,t)||n.sortIsField(t)},n}();u.validSorts=["relevancy","date","qre"];u.sortsNeedingDirection=["date"];u.validDirections=["ascending","descending"];t.SortCriteria=u},function(n,t,i){"use strict";var h=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},c=i(103),o=i(107),l=i(35),a=i(48),s=i(42),v=i(112),u=i(101),r=i(59),y=i(13),p=i(111),w=i(12),f=i(14),e=function(n){function t(i,r,u){var f=n.call(this,i,t.ID,u)||this;return f.element=i,f.options=r,f.options=o.ComponentOptions.initComponentOptions(i,t,r),f.bind.onRootElement(a.QueryEvents.buildingQuery,function(n){return f.handleBuildingQuery(n)}),f.bind.onRootElement(s.BreadcrumbEvents.populateBreadcrumb,function(n){return f.handlePopulateBreadcrumb(n)}),f.bind.onRootElement(s.BreadcrumbEvents.clearBreadcrumb,function(){return f.setStateEmpty()}),f}return h(t,n),t.prototype.clear=function(){this.setStateEmpty();var n=this.getDescription();this.usageAnalytics.logSearchEvent(v.analyticsActionCauseList.contextRemove,{contextName:n});this.queryController.executeQuery()},t.prototype.setStateEmpty=function(){this.queryStateModel.set(u.QUERY_STATE_ATTRIBUTES.HD,"");this.queryStateModel.set(u.QUERY_STATE_ATTRIBUTES.HQ,"")},t.prototype.handleBuildingQuery=function(n){w.Assert.exists(n);var t=this.queryStateModel.get(u.QUERY_STATE_ATTRIBUTES.HQ);y.Utils.isNonEmptyString(t)&&n.queryBuilder.advancedExpression.add(t)},t.prototype.handlePopulateBreadcrumb=function(n){var c=this,h=this.getDescription(),t,i,e,o,s;f.isEmpty(h)||f.isEmpty(this.queryStateModel.get(u.QUERY_STATE_ATTRIBUTES.HQ))||(t=document.createElement("div"),r.$$(t).addClass("coveo-hidden-query-breadcrumb"),i=document.createElement("span"),r.$$(i).addClass("coveo-hidden-query-breadcrumb-title"),r.$$(i).text(this.options.title),t.appendChild(i),e=document.createElement("span"),r.$$(e).addClass("coveo-hidden-query-breadcrumb-values"),t.appendChild(e),o=document.createElement("span"),r.$$(o).addClass("coveo-hidden-query-breadcrumb-value"),r.$$(o).text(h),e.appendChild(o),s=document.createElement("span"),r.$$(s).addClass("coveo-hidden-query-breadcrumb-clear"),t.appendChild(s),r.$$(t).on("click",function(){return c.clear()}),n.breadcrumbs.push({element:t}))},t.prototype.getDescription=function(){var n=this.queryStateModel.get(u.QueryStateModel.attributesEnum.hd);return f.isEmpty(n)&&(n=this.queryStateModel.get(u.QueryStateModel.attributesEnum.hq)),f.isEmpty(n)||n.length>this.options.maximumDescriptionLength&&(n=n.slice(0,this.options.maximumDescriptionLength)+" ..."),n},t}(c.Component);e.ID="HiddenQuery";e.options={maximumDescriptionLength:o.ComponentOptions.buildNumberOption({min:0,defaultValue:100}),title:o.ComponentOptions.buildLocalizedStringOption({defaultValue:l.l("AdditionalFilters")+": "})};t.HiddenQuery=e;p.Initialization.registerAutoCreateComponent(e)},function(n,t,i){"use strict";var l=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},o=i(160),s=i(159),f=i(107),a=i(214),v=i(96),h=i(13),u=i(59),y=i(32),p=i(215),w=i(217),c=i(218),b=i(12),k=i(220),d=i(222),g=i(111),r=i(14),e=function(n){function t(i,r,u){var e=n.call(this,i,r,u,t.ID)||this;return e.element=i,e.bindings=u,e.shouldReshuffleFacetValuesClientSide=!1,e.firstPlacement=!0,e.correctLevels=[],e.options=f.ComponentOptions.initComponentOptions(i,t,e.options),e.numberOfValuesToShow=e.originalNumberOfValuesToShow=e.options.numberOfValues||5,e.numberOfValues=Math.max(e.options.numberOfValues,1e4),e.options.injectionDepth=Math.max(e.options.injectionDepth,1e4),e.logger.info("Hierarchy facet : Set number of values very high in order to build hierarchy",e.numberOfValues,e),e.logger.info("Hierarchy facet : Set injection depth very high in order to build hierarchy",e.options.injectionDepth),e}return l(t,n),t.prototype.selectValue=function(t,i){void 0===i&&(i=!this.options.useAnd);this.ensureDom();this.ensureValueHierarchyExists([t]);var r=this.getValueFromHierarchy(t);i&&this.selectChilds(r,r.childs);this.flagParentForSelection(r);n.prototype.selectValue.call(this,t)},t.prototype.selectMultipleValues=function(t,i){var u=this;void 0===i&&(i=!this.options.useAnd);this.ensureDom();this.ensureValueHierarchyExists(t);r.each(t,function(n){var t=u.getValueFromHierarchy(n);u.flagParentForSelection(t);i&&r.each(t.childs,function(n){u.selectValue(n.facetValue)})});n.prototype.selectMultipleValues.call(this,t)},t.prototype.deselectValue=function(t,i){var o=this,u,f,e;void 0===i&&(i=!0);this.ensureDom();this.ensureValueHierarchyExists([t]);u=this.getValueFromHierarchy(t);i&&(f=void 0!=u.childs,f&&(e=r.filter(u.childs,function(n){var t=o.getFacetValueFromHierarchy(n.facetValue);return t.selected||t.excluded}),u.hasChildSelected=!1,e.length==u.childs.length&&this.deselectChilds(u,u.childs)));this.deselectParent(u.parent);this.unflagParentForSelection(u);n.prototype.deselectValue.call(this,t)},t.prototype.excludeValue=function(t,i){void 0===i&&(i=!this.options.useAnd);this.ensureDom();this.ensureValueHierarchyExists([t]);var r=this.getValueFromHierarchy(t);i?this.excludeChilds(r.childs):(this.deselectChilds(r,r.childs),this.close(r));this.flagParentForSelection(r);n.prototype.excludeValue.call(this,t)},t.prototype.unexcludeValue=function(t,i){void 0===i&&(i=!this.options.useAnd);this.ensureDom();this.ensureValueHierarchyExists([t]);var r=this.getValueFromHierarchy(t);i&&this.unexcludeChilds(r.childs);this.unflagParentForSelection(r);n.prototype.unexcludeValue.call(this,t)},t.prototype.deselectMultipleValues=function(t,i){var u=this;void 0===i&&(i=!this.options.useAnd);this.ensureDom();this.ensureValueHierarchyExists(t);r.each(t,function(n){var t=u.getValueFromHierarchy(n);t.hasChildSelected=!1;u.unflagParentForSelection(t);i&&r.each(t.childs,function(n){var t=u.getValueFromHierarchy(n.facetValue);t.hasChildSelected=!1;u.deselectValue(n.facetValue)})});n.prototype.deselectMultipleValues.call(this,t)},t.prototype.toggleSelectValue=function(n){this.ensureDom();this.ensureValueHierarchyExists([n]);0==this.getFacetValueFromHierarchy(n).selected?this.selectValue(n):this.deselectValue(n)},t.prototype.toggleExcludeValue=function(n){this.ensureDom();this.ensureValueHierarchyExists([n]);0==this.getFacetValueFromHierarchy(n).excluded?this.excludeValue(n):this.unexcludeValue(n)},t.prototype.getValueCaption=function(n){var i=this.getSelf(n),t=i;return h.Utils.exists(this.options.valueCaption)&&("object"==typeof this.options.valueCaption&&(t=this.options.valueCaption[i]||t),"function"==typeof this.options.valueCaption&&(t=this.options.valueCaption.call(this,n))),t},t.prototype.getDisplayedValues=function(){var n=this,t=r.filter(this.values.getAll(),function(t){var r=n.getValueFromHierarchy(t),i;return r?(i=n.getElementFromFacetValueList(t),!u.$$(i).hasClass("coveo-inactive")):!1});return r.pluck(t,"value")},t.prototype.updateSort=function(t){this.firstPlacement=!0;n.prototype.updateSort.call(this,t)},t.prototype.open=function(n){var t;t=r.isString(n)?this.getValueHierarchy(n):n instanceof o.FacetValue?this.getValueHierarchy(n.value):n;void 0!=t&&(u.$$(this.getElementFromFacetValueList(t.facetValue.value)).addClass("coveo-open"),this.showChilds(t.childs),void 0!=t.parent&&this.open(this.getValueHierarchy(t.facetValue.value).parent),this.getValueHierarchy(t.facetValue.value).keepOpened=!0)},t.prototype.close=function(n){var t,i=this;t=r.isString(n)?this.getValueHierarchy(n):n instanceof o.FacetValue?this.getValueHierarchy(n.value):n;void 0!=t&&(u.$$(this.getElementFromFacetValueList(t.facetValue)).removeClass("coveo-open"),this.hideChilds(t.childs),r.each(t.childs,function(n){i.close(i.getValueHierarchy(n.facetValue.value))}),this.getValueHierarchy(t.facetValue.value).keepOpened=!1)},t.prototype.reset=function(){var t=this;r.each(this.getAllValueHierarchy(),function(n){n.hasChildSelected=!1;n.allChildShouldBeSelected=!1});r.each(this.getAllValueHierarchy(),function(n){t.close(n)});n.prototype.reset.call(this)},t.prototype.processFacetSearchAllResultsSelected=function(n){this.selectMultipleValues(n);this.triggerNewQuery()},t.prototype.triggerUpdateDeltaQuery=function(t){this.shouldReshuffleFacetValuesClientSide=this.keepDisplayedValuesNextTime;n.prototype.triggerUpdateDeltaQuery.call(this,t)},t.prototype.updateSearchInNewDesign=function(t){void 0===t&&(t=!0);n.prototype.updateSearchInNewDesign.call(this,!0)},t.prototype.facetValueHasChanged=function(){var n=this;this.updateQueryStateModel();y.Defer.defer(function(){n.updateAppearanceDependingOnState()})},t.prototype.initFacetQueryController=function(){this.facetQueryController=new v.HierarchicalFacetQueryController(this)},t.prototype.initFacetSearch=function(){this.facetSearch=new w.HierarchicalFacetSearch(this,p.HierarchicalFacetSearchValuesList,this.root);this.element.appendChild(this.facetSearch.build())},t.prototype.handleDeferredQuerySuccess=function(t){this.updateAppearanceDependingOnState();n.prototype.handleDeferredQuerySuccess.call(this,t)},t.prototype.handlePopulateSearchAlerts=function(n){this.values.hasSelectedOrExcludedValues()&&n.text.push(new c.HierarchicalBreadcrumbValuesList(this,this.values.getSelected().concat(this.values.getExcluded()),this.getAllValueHierarchy()).buildAsString())},t.prototype.handlePopulateBreadcrumb=function(n){if(b.Assert.exists(n),this.values.hasSelectedOrExcludedValues()){var t=new c.HierarchicalBreadcrumbValuesList(this,this.values.getSelected().concat(this.values.getExcluded()),this.getAllValueHierarchy()).build();n.breadcrumbs.push({element:t})}},t.prototype.handleOmniboxWithStaticValue=function(n){var t=this,i=n.completeQueryExpression.regex,u=r.first(r.filter(this.getAllValueHierarchy(),function(n){return i.test(t.getValueCaption(n.facetValue))}),this.options.numberOfValuesInOmnibox),f=r.compact(r.map(u,function(n){var i=t.getFromFacetValueList(n.facetValue);if(i)return i.facetValue})),e=new k.OmniboxHierarchicalValuesList(this,f,n).build();n.rows.push({element:e,zIndex:this.omniboxZIndex})},t.prototype.rebuildValueElements=function(){this.shouldReshuffleFacetValuesClientSide=this.shouldReshuffleFacetValuesClientSide||this.keepDisplayedValuesNextTime;this.numberOfValues=Math.max(this.numberOfValues,1e4);this.processHierarchy();this.setValueListContent();n.prototype.rebuildValueElements.call(this);this.buildParentChildRelationship();this.checkForOrphans();this.checkForNewUnselectedChild();this.crop();this.shouldReshuffleFacetValuesClientSide=!1},t.prototype.initFacetValuesList=function(){this.facetValuesList=new a.HierarchicalFacetValuesList(this,d.HierarchicalFacetValueElement);this.element.appendChild(this.facetValuesList.build())},t.prototype.updateMoreLess=function(){var t=this.numberOfValuesToShow<this.topLevelHierarchy.length,i=this.numberOfValuesToShow>this.originalNumberOfValuesToShow;n.prototype.updateMoreLess.call(this,i,t)},t.prototype.handleClickMore=function(){this.numberOfValuesToShow+=this.originalNumberOfValuesToShow;this.numberOfValuesToShow=Math.min(this.numberOfValuesToShow,this.values.size());this.crop();this.updateMoreLess()},t.prototype.handleClickLess=function(){this.numberOfValuesToShow=this.originalNumberOfValuesToShow;this.crop();this.updateMoreLess()},t.prototype.updateNumberOfValues=function(){this.numberOfValues=Math.max(this.numberOfValues,1e4)},t.prototype.ensureValueHierarchyExists=function(n){var i=this,t;n[0]&&"string"==typeof n[0]&&(n=r.map(n,function(n){return o.FacetValue.createFromValue(n)}));t=!1;r.each(n,function(n){void 0==i.getValueHierarchy(n.value)&&(t=!0)});t&&this.processHierarchy(n)},t.prototype.crop=function(){var t=this,n=r.partition(this.topLevelHierarchy,function(n){return n.facetValue.selected||n.facetValue.excluded||n.hasChildSelected}),i=this.numberOfValuesToShow-n[0].length;r.each(r.last(n[1],n[1].length-i),function(n){t.hideFacetValue(n);t.hideChilds(n.childs)});r.each(r.first(n[1],i),function(n){t.showFacetValue(n)})},t.prototype.placeChildsUnderTheirParent=function(n,t){var i=this,f=n.childs,e;f&&(e=this.facetValuesList.sortFacetValues(r.pluck(f,"facetValue")).reverse(),r.each(e,function(n){var r=i.getValueFromHierarchy(n),f;r&&(f=i.getElementFromFacetValueList(n),u.$$(f).insertAfter(t),r.childs&&0!=r.childs.length&&i.placeChildsUnderTheirParent(r,f))}));n.keepOpened?(this.open(n),this.showChilds(n.childs)):this.hideChilds(n.childs)},t.prototype.addCssClassToParentAndChilds=function(n,t){var r=this,i;u.$$(t).addClass("coveo-has-childs");n.hasChildSelected&&u.$$(t).addClass("coveo-has-childs-selected");i=u.$$("div",{className:"coveo-has-childs-toggle"}).el;u.$$(i).on("click",function(){u.$$(t).hasClass("coveo-open")?r.close(n):r.open(n)});u.$$(t).prepend(i)},t.prototype.buildParentChildRelationship=function(){var n=this,t=document.createDocumentFragment(),i;t.appendChild(this.facetValuesList.valueContainer);i=r.map(this.facetValuesList.sortFacetValues(),function(t){return n.getValueFromHierarchy(t)});r.each(i,function(t){var i=n.getElementFromFacetValueList(t.facetValue);h.Utils.isNonEmptyArray(t.childs)?(n.placeChildsUnderTheirParent(t,i),n.addCssClassToParentAndChilds(t,i)):u.$$(i).addClass("coveo-no-childs");i.style.marginLeft=n.options.marginByLevel*(t.level-n.options.levelStart)+"px"});u.$$(t).insertAfter(this.headerElement)},t.prototype.setValueListContent=function(){var n=this;this.facetValuesList.hierarchyFacetValues=r.map(this.correctLevels,function(t){return n.values.contains(t.facetValue.value)||(t.facetValue.occurrences=0,n.values.add(t.facetValue)),t.facetValue})},t.prototype.createHierarchy=function(n){var t=this,i=r.map(n,function(n){var i=t.getParent(n),r=n.lookupValue||n.value;return{facetValue:n,level:t.getLevel(n),parent:i,self:r}});return this.setInHierarchy(i),r.each(this.getAllValueHierarchy(),function(n){n.facetValue.selected&&t.flagParentForSelection(n)}),i},t.prototype.processHierarchy=function(n){var t=this;void 0===n&&(n=this.values.getAll());r.each(this.getAllValueHierarchy(),function(n){void 0==t.values.get(n.facetValue.value)&&t.deleteValueHierarchy(t.getLookupOrValue(n.facetValue))});this.createHierarchy(n)},t.prototype.setInHierarchy=function(n){var t=this;this.correctLevels=r.filter(n,function(n){var i=void 0==t.options.levelStart||n.level>=t.options.levelStart,r=void 0==t.options.levelEnd||n.level<t.options.levelEnd;return i&&r});r.each(this.correctLevels,function(n){var e=r.map(r.filter(t.correctLevels,function(t){return null!=t.parent&&t.parent.toLowerCase()==n.self.toLowerCase()}),function(n){return{facetValue:n.facetValue,level:n.level,keepOpened:!1,hasChildSelected:!1,allChildShouldBeSelected:!1}}),f=null!=n.parent?r.find(t.correctLevels,function(t){return t.self.toLowerCase()==n.parent.toLowerCase()}):null,i=t.getValueHierarchy(n.facetValue.value),u;i&&i.childs.length!=e.length&&(i.childs=e);f&&(u=t.getValueHierarchy(f.facetValue.value));t.setValueHierarchy(n.facetValue.value,{childs:e,parent:void 0==f?void 0:{facetValue:f.facetValue,level:f.level,keepOpened:!!u&&u.keepOpened,hasChildSelected:!!u&&u.hasChildSelected,originalPosition:u?u.originalPosition:void 0,allChildShouldBeSelected:!!u&&u.allChildShouldBeSelected},facetValue:n.facetValue,level:n.level,keepOpened:!!i&&i.keepOpened,hasChildSelected:!!i&&i.hasChildSelected,originalPosition:i?i.originalPosition:void 0,allChildShouldBeSelected:!!i&&i.allChildShouldBeSelected})});this.topLevelHierarchy=r.chain(this.values.getAll()).filter(function(n){var i=t.getValueFromHierarchy(n);return!!i&&i.level==(t.options.levelStart||0)}).map(function(n){return t.getValueFromHierarchy(n)}).value()},t.prototype.getParent=function(n){var t=this.getLookupOrValue(n).lastIndexOf(this.options.delimitingCharacter);if(t!=-1)return this.getLookupOrValue(n).substring(0,t)},t.prototype.getSelf=function(n){var t=this.getParent(n),i;return void 0==t?this.getLookupOrValue(n):(i=this.getLookupOrValue(n).indexOf(t),this.getLookupOrValue(n).substring(i+t.length+1))},t.prototype.showFacetValue=function(n){u.$$(this.getElementFromFacetValueList(n.facetValue.value)).removeClass("coveo-inactive")},t.prototype.hideFacetValue=function(n){u.$$(this.getElementFromFacetValueList(n.facetValue.value)).addClass("coveo-inactive")},t.prototype.hideChilds=function(n){var t=this;r.each(n,function(n){t.hideFacetValue(n)})},t.prototype.showChilds=function(n){var t=this;r.each(n,function(n){t.showFacetValue(n)})},t.prototype.selectChilds=function(n,t){this.flagParentForSelection(n);n.allChildShouldBeSelected=!0;this.selectMultipleValues(r.map(t,function(n){return n.facetValue}))},t.prototype.deselectChilds=function(n,t){n.hasChildSelected=!1;n.allChildShouldBeSelected=!1;this.deselectMultipleValues(r.map(t,function(n){return n.facetValue}))},t.prototype.excludeChilds=function(n){this.excludeMultipleValues(r.map(n,function(n){return n.facetValue}))},t.prototype.unexcludeChilds=function(n){this.unexcludeMultipleValues(r.map(n,function(n){return n.facetValue}))},t.prototype.selectParent=function(n){void 0!=n&&(this.selectValue(n.facetValue),n.parent&&this.selectParent(this.getValueHierarchy(n.parent.facetValue.value)))},t.prototype.deselectParent=function(n){void 0!=n&&this.deselectValue(n.facetValue,!1)},t.prototype.flagParentForSelection=function(n){for(var t,u,i=n.parent,f=n;i;)t=this.getValueHierarchy(i.facetValue.value),t.hasChildSelected=!0,u=r.find(t.childs,function(n){return n.facetValue.value.toLowerCase()==f.facetValue.value.toLowerCase()}),u&&this.getValueHierarchy(u.facetValue.value).hasChildSelected&&(u.hasChildSelected=!0),i=t.parent,f=t},t.prototype.unflagParentForSelection=function(n){for(var t,f,u=this,i=n.parent;i;)t=this.getValueHierarchy(i.facetValue.value),f=r.filter(t.childs,function(t){var i=u.getValueHierarchy(t.facetValue.value);if(void 0!=i)return i.facetValue.value!=n.facetValue.value&&(i.facetValue.selected||i.facetValue.excluded||i.hasChildSelected)}),0==f.length&&(t.hasChildSelected=!1),t.allChildShouldBeSelected=!1,i=t.parent},t.prototype.getValueFromHierarchy=function(n){var t=n instanceof o.FacetValue?n.value:n;return this.getValueHierarchy(t)},t.prototype.getFacetValueFromHierarchy=function(n){return this.getValueFromHierarchy(n).facetValue},t.prototype.getLookupOrValue=function(n){return n.lookupValue||n.value},t.prototype.getElementFromFacetValueList=function(n){var t=this.getFromFacetValueList(n);return t?t.renderer.listItem:u.$$("div").el},t.prototype.getFromFacetValueList=function(n){var t=this.getValueFromHierarchy(n);if(void 0!=t)return this.facetValuesList.get(n)},t.prototype.getLevel=function(n){return n.value.split(this.options.delimitingCharacter).length-1},t.prototype.getAllValueHierarchy=function(){return null==this.valueHierarchy&&(this.valueHierarchy={}),this.valueHierarchy},t.prototype.deleteValueHierarchy=function(n){null!=this.valueHierarchy&&delete this.valueHierarchy[n.toLowerCase()]},t.prototype.getValueHierarchy=function(n){if(null!=this.valueHierarchy)return this.valueHierarchy[n.toLowerCase()]},t.prototype.setValueHierarchy=function(n,t){null==this.valueHierarchy&&(this.valueHierarchy={});this.valueHierarchy[n.toLowerCase()]=t},t.prototype.checkForOrphans=function(){var n=this;r.each(this.valueHierarchy,function(t){n.getLevel(t.facetValue)!=n.options.levelStart&&void 0==n.getValueHierarchy(n.getParent(t.facetValue))&&(n.logger.error("Orphan value found in HierarchicalFacet : "+t.facetValue.value,"Needed : "+n.getParent(t.facetValue)+" but not found"),n.logger.warn("Removing incoherent facet value : "+t.facetValue.value),n.hideFacetValue(t))})},t.prototype.checkForNewUnselectedChild=function(){var n=this;r.each(this.valueHierarchy,function(t){if(t.allChildShouldBeSelected){var i=r.find(t.childs,function(n){return 1!=n.facetValue.selected});i&&(n.selectValue(t.facetValue,!0),n.logger.info("Re-executing query with new facet values returned by index"),n.queryController.deferExecuteQuery())}})},t}(s.Facet);e.ID="HierarchicalFacet";e.options={delimitingCharacter:f.ComponentOptions.buildStringOption({defaultValue:"|"}),levelStart:f.ComponentOptions.buildNumberOption({defaultValue:0,min:0}),levelEnd:f.ComponentOptions.buildNumberOption({min:0}),marginByLevel:f.ComponentOptions.buildNumberOption({defaultValue:10,min:0})};e.parent=s.Facet;t.HierarchicalFacet=e;g.Initialization.registerAutoCreateComponent(e)},function(n,t,i){"use strict";var u=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},f=i(168),r=i(14),e=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.facet=t,r.facetValueElementKlass=i,r}return u(t,n),t.prototype.sortFacetValues=function(n){var t=this,i,u;return(void 0===n&&(n=this.hierarchyFacetValues),!this.facet.shouldReshuffleFacetValuesClientSide)?(i=r.map(n,function(n,t){return{hierarchy:n,idx:t}}),0!=this.facet.options.levelStart&&this.facet.options.sortCriteria&&this.facet.options.sortCriteria.toLowerCase().indexOf("alpha")!=-1&&(u=this.facet.options.sortCriteria.toLowerCase().indexOf("descending")!=-1,i=i.sort(function(n,i){var e=null!=r.find(t.facet.topLevelHierarchy,function(t){return t.facetValue.value.toLowerCase()==n.hierarchy.value.toLowerCase()}),o=null!=r.find(t.facet.topLevelHierarchy,function(t){return t.facetValue.value.toLowerCase()==n.hierarchy.value.toLowerCase()});if(e&&o){var s=t.facet.getValueCaption(n.hierarchy),h=t.facet.getValueCaption(i.hierarchy),f=s.localeCompare(h);return u?-1*f:f}return n.idx-i.idx})),i=i.sort(function(n,i){if(n.hierarchy.selected===i.hierarchy.selected){var r=t.facet.getValueFromHierarchy(n.hierarchy),u=t.facet.getValueFromHierarchy(i.hierarchy);return r.hasChildSelected===u.hasChildSelected?n.idx-i.idx:r.hasChildSelected?-1:1}return n.hierarchy.selected?-1:1}),r.pluck(i,"hierarchy")):n},t.prototype.getValuesToBuildWith=function(){return this.facet.shouldReshuffleFacetValuesClientSide?this.hierarchyFacetValues:this.sortFacetValues()},t}(f.FacetValuesList);t.HierarchicalFacetValuesList=e},function(n,t,i){"use strict";var r=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},u=i(172),f=i(216),e=function(n){function t(t){var i=n.call(this,t,f.HierarchicalFacetSearchValueElement)||this;return i.facet=t,i}return r(t,n),t}(u.FacetSearchValuesList);t.HierarchicalFacetSearchValuesList=e},function(n,t,i){"use strict";var r=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},u=i(162),f=function(n){function t(t,i,r){var u=n.call(this,t,i,r)||this;return u.facet=t,u.facetValue=i,u.keepDisplayedValueNextTime=r,u}return r(t,n),t.prototype._handleSelectValue=function(t){this.facet.open(this.facetValue);n.prototype.handleSelectValue.call(this,t)},t.prototype._handleExcludeClick=function(t){this.facet.open(this.facetValue);n.prototype.handleExcludeClick.call(this,t)},t}(u.FacetValueElement);t.HierarchicalFacetSearchValueElement=f},function(n,t,i){"use strict";var u=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},f=i(161),e=i(92),o=i(160),s=i(13),h=i(23),r=i(14),c=function(n){function t(t,i,r){var u=n.call(this,t,i,r)||this;return u.facet=t,u.facetSearchValuesListKlass=i,u}return u(t,n),t.prototype.buildParamsForExcludingCurrentlyDisplayedValues=function(){var t=n.prototype.buildParamsForExcludingCurrentlyDisplayedValues.call(this);return t.alwaysExclude=this.facet.getDisplayedValues(),this.facet.facetSearch.currentlyDisplayedResults&&(t.alwaysExclude=t.alwaysExclude.concat(this.facet.facetSearch.currentlyDisplayedResults)),t},t.prototype.selectAllValuesMatchingSearch=function(){var t=this,n;this.facet.showWaitingAnimation();n=new e.FacetSearchParameters(this.facet);n.nbResults=this.facet.numberOfValues;n.alwaysInclude=this.facet.getDisplayedValues();n.setValueToSearch(this.getValueInInputForFacetSearch());this.facet.facetQueryController.search(n).then(function(n){t.completelyDismissSearch();h.ModalBox.close(!0);var i=t.getFacetValues(n);t.facet.processFacetSearchAllResultsSelected(i)});this.completelyDismissSearch()},t.prototype.getFacetValues=function(n){var t=this,i=[];return r.each(n,function(n){var r=t.facet.getValueFromHierarchy(n.value);i.push(t.createFacetValuesFromHierarchy(r))}),r.flatten(i)},t.prototype.createFacetValuesFromHierarchy=function(n){var u=this,i=[],f=n.facetValue.value,t=this.facet.values.get(f),e;return s.Utils.exists(t)||(t=o.FacetValue.create(f)),t.selected=!0,t.excluded=!1,i.push(t),e=n.childs,r.each(e,function(n){var t=u.facet.getValueFromHierarchy(n.facetValue.value);i.push(u.createFacetValuesFromHierarchy(t))}),i},t}(f.FacetSearch);t.HierarchicalFacetSearch=c},function(n,t,i){"use strict";var f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},e=i(171),o=i(219),r=i(59),u=i(14),s=function(n){function t(t,i,r){var u=n.call(this,t,i,o.HierarchicalBreadcrumbValueElement)||this;return u.facet=t,u.facetValues=i,u.valueHierarchy=r,u}return f(t,n),t.prototype.buildAsString=function(){return(this.build(),this.elem)?this.facet.options.title+": "+u.map(r.$$(this.elem).findAll(".coveo-facet-breadcrumb-value"),function(n){return u.each(r.$$(n).findAll(".coveo-hierarchical-breadcrumb-separator"),function(n){r.$$(n).text("▸")}),r.$$(n).text()}).join(", "):""},t}(e.BreadcrumbValueList);t.HierarchicalBreadcrumbValuesList=s},function(n,t,i){"use strict";var u=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},f=i(170),r=i(14),e=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.facet=t,r.facetValue=i,r}return u(t,n),t.prototype.build=function(){var i=n.prototype.build.call(this),u,t;return i.addClass("coveo-hierarchical-facet-value"),u=i.find(".coveo-facet-breadcrumb-caption"),t=this.facetValue.value.split(this.facet.options.delimitingCharacter),t=r.map(t,function(n){return r.escape(n)}),u.innerHTML=t.join("<span class='coveo-hierarchical-breadcrumb-separator'><\/span>"),i},t}(f.BreadcrumbValueElement);t.HierarchicalBreadcrumbValueElement=e},function(n,t,i){"use strict";var r=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},u=i(174),f=i(221),e=function(n){function t(t,i,r){var u=n.call(this,t,i,r,f.OmniboxHierarchicalValueElement)||this;return u.facet=t,u.facetValues=i,u.omniboxObject=r,u}return r(t,n),t}(u.OmniboxValuesList);t.OmniboxHierarchicalValuesList=e},function(n,t,i){"use strict";var r=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},u=i(173),f=function(n){function t(t,i,r){var u=n.call(this,t,i,r)||this;return u.facet=t,u.facetValue=i,u.eventArg=r,u}return r(t,n),t.prototype._handleSelectValue=function(t){this.facet.open(this.facetValue);n.prototype.handleSelectValue.call(this,t)},t.prototype._handleExcludeClick=function(t){this.facet.open(this.facetValue);n.prototype.handleExcludeClick.call(this,t)},t}(u.OmniboxValueElement);t.OmniboxHierarchicalValueElement=f},function(n,t,i){"use strict";var r=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},u=i(162),f=function(n){function t(t,i,r){var u=n.call(this,t,i,r)||this;return u.facet=t,u.facetValue=i,u.keepDisplayedValueNextTime=r,u}return r(t,n),t}(u.FacetValueElement);t.HierarchicalFacetValueElement=f},function(n,t,i){"use strict";var l=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},a=i(103),r=i(107),v=i(224),y=i(225),u=i(59),o=i(48),s=i(101),p=i(13),h=i(111),c=i(21),w=i(28),f=i(14),e=function(n){function t(i,u,f){var e=n.call(this,i,t.ID,f)||this;return e.element=i,e.options=u,e.groupByIndex=[],e.rowId="",e.columnId="",e.selectedRowValue=void 0,e.selectedColumnValue=void 0,e.numberOfRows=0,e.numberOfColumns=0,e.options=r.ComponentOptions.initComponentOptions(i,t,u),e.options.previewTemplate||(e.options.previewTemplate=new y.DefaultMatrixResultPreviewTemplate(e.options.computedField,e.options.computedFieldFormat)),e.options.previewSortField||(e.options.previewSortField=e.options.computedField),e.options.columnFieldValues.length!=e.options.columnLabels.length&&(e.options.columnLabels=e.options.columnFieldValues),e.buildMatrix(),null==e.options.rowField?e.logger.error("'rowField' option is required in the Matrix component"):null==e.options.columnField?e.logger.error("'columnField' option is required in the Matrix component"):null==e.options.computedField?e.logger.error("'computedField' option is required in the Matrix component"):(e.bindEvents(),e.initQueryState()),e}return l(t,n),t.prototype.selectCell=function(n,t){var i,r;0!==n&&n!==this.numberOfRows-1&&(i=this.getRowValue(n));0!==t&&t!==this.numberOfColumns-1&&(r=this.getColumnValue(t));i&&this.isRowFacetPresent()?this.queryStateModel.set(this.rowId,[i]):(this.selectedRowValue=i,this.queryStateModel.set(this.rowId,[]));r&&this.isColumnFacetPresent()?this.queryStateModel.set(this.columnId,[r]):(this.selectedColumnValue=r,this.queryStateModel.set(this.columnId,[]))},t.prototype.getSelectedColumnValue=function(){return this.selectedColumnValue},t.prototype.getSelectedRowValue=function(){return this.selectedRowValue},t.prototype.getCellElement=function(n,t){return this.data[n][t].getHTML()},t.prototype.getCellValue=function(n,t){var i=this.getCellElement(n,t);return u.$$(i).text()},t.prototype.drawMatrix=function(){var o=this,s=u.$$("div",{className:"coveo-matrix-row matrix-header-row"}),t,n,i,r,e;for(this.drawRow(s.el,0),t=this.options.enableColumnTotals?this.numberOfRows-1:this.numberOfRows,n=1;n<t;n++)i=u.$$("div",{className:"coveo-matrix-row"}).el,this.drawRow(i,n);this.options.enableColumnTotals&&(r=u.$$("div",{className:"coveo-matrix-row matrix-total-row"}).el,this.drawRow(r,this.numberOfRows-1));""!==this.options.cellFontSize&&(e=u.$$(this.element).findAll(".coveo-matrix-cell"),f.each(e,function(n){n.style.fontSize=o.options.cellFontSize}))},t.prototype.bindEvents=function(){var n=this;this.bind.onRootElement(o.QueryEvents.buildingQuery,function(t){return n.handleBuildingQuery(t)});this.bind.onRootElement(o.QueryEvents.doneBuildingQuery,function(t){return n.handleDoneBuildingQuery(t)});this.bind.onRootElement(o.QueryEvents.deferredQuerySuccess,function(t){return n.handleDeferredQuerySuccess(t)})},t.prototype.initQueryState=function(){this.rowId=s.QueryStateModel.getFacetId(this.options.rowField);this.columnId=s.QueryStateModel.getFacetId(this.options.columnField);this.queryStateModel.registerNewAttribute(this.rowId,[]);this.queryStateModel.registerNewAttribute(this.columnId,[])},t.prototype.buildMatrix=function(){this.buildTitle();this.buildBody();this.data=[];this.addHeaderRow()},t.prototype.buildTitle=function(){var n=this.options.title?this.options.title:"",t=u.$$("div",{className:"coveo-matrix-title"},n).el;this.element.appendChild(t)},t.prototype.buildBody=function(){var n=u.$$("div",{className:"coveo-matrix"}).el;this.element.appendChild(n)},t.prototype.handleBuildingQuery=function(n){this.areFacetsPresent()||(this.selectedRowValue&&!this.isRowFacetPresent()&&n.queryBuilder.advancedExpression.addFieldExpression(this.options.rowField,"=",[this.selectedRowValue]),this.selectedColumnValue&&!this.isColumnFacetPresent()&&n.queryBuilder.advancedExpression.addFieldExpression(this.options.columnField,"=",[this.selectedColumnValue]))},t.prototype.handleDoneBuildingQuery=function(n){this.groupByIndex=[];this.addMainGroubByRequest(n.queryBuilder);this.addColumnsGroupByRequests(n.queryBuilder)},t.prototype.handleDeferredQuerySuccess=function(n){this.reset();this.parseResults(n.results);this.addTotals();this.drawMatrix();this.formatCells();this.selectedRowValue=void 0;this.selectedColumnValue=void 0},t.prototype.addMainGroubByRequest=function(n){var t={field:this.options.rowField,sortCriteria:this.options.sortCriteria,computedFields:this.getComputedFields(),maximumNumberOfValues:this.options.maximumNumberOfRows};this.groupByIndex.push(n.groupByRequests.length);n.groupByRequests.push(t)},t.prototype.addColumnsGroupByRequests=function(n){for(var i,t=0;t<this.options.columnFieldValues.length;t++)i={field:this.options.rowField,sortCriteria:this.options.sortCriteria,computedFields:this.getComputedFields(),queryOverride:"("+this.buildExpression(n)+")("+this.options.columnField+"='"+this.options.columnFieldValues[t]+"')",maximumNumberOfValues:this.options.maximumNumberOfValuesInGroupBy},this.groupByIndex.push(n.groupByRequests.length),n.groupByRequests.push(i)},t.prototype.buildExpression=function(n){var i=n.expression.build(),r=n.advancedExpression.build(),u=n.constantExpression.build(),t="";return i&&(t+=" "+i),r&&(t+=" "+r),u&&(t+=" "+u),t},t.prototype.getComputedFields=function(){return[{field:this.options.computedField,operation:this.options.computedFieldOperation}]},t.prototype.getCellResult=function(n,t,i){for(var f=this.getRowValue(t),e=this.getColumnValue(i),u=0,r=0;r<n.values.length;r++)if(n.values[r].value===f){u=n.values[r].computedFieldResults[0];break}return this.isAColumnSelected()&&!this.isColumnSelected(e)&&(u=0),u},t.prototype.addTotals=function(){this.options.enableRowTotals&&this.addRowTotals();this.options.enableColumnTotals&&this.addColumnTotals()},t.prototype.addRowTotals=function(){var t=this,n,i;for(this.addColumn(),this.setValue("Total",0,this.numberOfColumns-1),n=1;n<this.numberOfRows;n++)i=this.computeRowTotal(n),this.setValue(i,n,this.numberOfColumns-1);"computedfielddescending"==this.options.sortCriteria.toLowerCase()&&this.data.sort(function(n,i){return i[t.numberOfColumns-1].getValue()-n[t.numberOfColumns-1].getValue()});"computedfieldascending"==this.options.sortCriteria.toLowerCase()&&this.data.sort(function(n,i){return n[t.numberOfColumns-1].getValue()-i[t.numberOfColumns-1].getValue()})},t.prototype.addColumnTotals=function(){var n,t;for(this.addRow(),this.setValue("Total",this.numberOfRows-1,0),n=1;n<this.numberOfColumns;n++)t=this.computeColumnTotal(n),this.setValue(t,this.numberOfRows-1,n)},t.prototype.computeRowTotal=function(n){for(var i=0,t=1;t<this.numberOfColumns-1;t++)i+=parseInt(this.getCellValue(n,t));return i},t.prototype.computeColumnTotal=function(n){for(var i=0,t=1;t<this.numberOfRows-1;t++)i+=parseInt(this.getCellValue(t,n));return i},t.prototype.formatCells=function(){for(var t,i,n=1;n<this.numberOfRows;n++)for(t=1;t<this.numberOfColumns;t++)i=this.getCellValue(n,t),i=w.format(parseInt(i),this.options.computedFieldFormat),this.setValue(i,n,t)},t.prototype.addHeaderRow=function(){this.addRow();this.addColumn();this.setValue(this.options.columnHeader,0,0);for(var n=0;n<this.options.columnLabels.length;n++)this.addColumn(),this.setValue(this.options.columnLabels[n],0,n+1)},t.prototype.addRow=function(){this.data.push([]);for(var n=0;n<this.numberOfColumns;n++)this.addCellToRow(this.numberOfRows,n);this.numberOfRows++},t.prototype.addColumn=function(){for(var n=0;n<this.numberOfRows;n++)this.addCellToRow(n,this.numberOfColumns);this.numberOfColumns++},t.prototype.addCellToRow=function(n,t){var i=u.$$("div",{className:"coveo-matrix-cell"});0==t&&i.addClass("matrix-first-column");this.data[n].push(new v.Cell(0,i.el))},t.prototype.setValue=function(n,t,i){var r=this.getCellElement(t,i);p.Utils.isNullOrUndefined(n)||u.$$(r).text(n.toString());this.isCellSelected(this.getRowValue(t),this.getColumnValue(i))&&u.$$(r).addClass("coveo-matrix-selected");this.isAColumnSelected()&&!this.isColumnSelected(this.getColumnValue(i))&&0!=i&&0!=t&&u.$$(r).addClass("coveo-matrix-unimportant");this.data[t][i].setValue(n)},t.prototype.handleClick=function(n,t){this.selectCell(n,t);this.queryController.executeQuery()},t.prototype.getRowValue=function(n){return this.data[n][0].getValue()},t.prototype.getColumnValue=function(n){return this.options.columnFieldValues[n-1]},t.prototype.isAColumnSelected=function(){var n=this.queryStateModel.get(this.columnId)||[];return 0!==n.length||void 0!=this.selectedColumnValue},t.prototype.isColumnSelected=function(n){if(this.isAColumnSelected()&&n)for(var i=this.queryStateModel.attributes[this.columnId]||[],t=0;t<i.length;t++)if(i[t].toLowerCase()===n.toLowerCase())return!0;return this.selectedColumnValue==n},t.prototype.isARowSelected=function(){var n=this.queryStateModel.get(this.rowId)||[];return 0!==n.length||void 0!==this.selectedRowValue},t.prototype.isRowSelected=function(n){if(this.isARowSelected()&&n)for(var i=this.queryStateModel.get(this.rowId)||[],t=0;t<i.length;t++)if(i[t].toLowerCase()===n.toLowerCase())return!0;return this.selectedRowValue==n},t.prototype.isCellSelected=function(n,t){return this.isAColumnSelected()&&this.isARowSelected()?this.isRowSelected(n)&&this.isColumnSelected(t):!!this.isAColumnSelected()&&this.isColumnSelected(t)},t.prototype.areFacetsPresent=function(){return this.isRowFacetPresent()&&this.isColumnFacetPresent()},t.prototype.isRowFacetPresent=function(){var n=this.componentStateModel.get(this.rowId);return n&&!n[0].disabled},t.prototype.isColumnFacetPresent=function(){var n=this.componentStateModel.get(this.columnId);return n&&!n[0].disabled},t.prototype.reset=function(){u.$$(this.element).empty();this.numberOfRows=0;this.numberOfColumns=0;this.data=[];this.buildMatrix()},t.prototype.parseResults=function(n){var r,u,t,i,f,e;if(n){if(r=n.groupByResults[this.groupByIndex[0]],r)for(t=0;t<r.values.length;t++)u=r.values[t].value,this.addRow(),this.setValue(u,t+1,0);for(t=1;t<this.numberOfRows;t++)for(i=1;i<this.numberOfColumns;i++)f=n.groupByResults[this.groupByIndex[i]],e=this.getCellResult(f,t,i),this.setValue(e,t,i)}},t.prototype.drawRow=function(n,t){for(var i=this,e=u.$$(this.element).find(".coveo-matrix"),o=function(r){var e=f.data[t][r].getHTML();u.$$(e).on("click",function(){var n=function(n){i.handleClick(t,n)};n(r)});f.options.enableHoverPreview&&!function(n){u.$$(e).on("mouseover",function(){return i.handleHoverIn(t,n)});u.$$(e).on("mouseout",function(){return i.handleHoverOut(t,n)})}(r);n.appendChild(e)},f=this,r=0;r<this.numberOfColumns;r++)o(r);e.appendChild(n)},t.prototype.handleHoverIn=function(n,t){var i=this;this.isHoverWorkingOnRow(n)&&this.isHoverWorkingOnColumn(t)&&(this.previewTimeout=setTimeout(function(){i.displayResultsPreview(n,t)},this.options.previewDelay))},t.prototype.handleHoverOut=function(n,t){clearTimeout(this.previewTimeout);var i=this.data[n][t];i.removePreview()},t.prototype.displayResultsPreview=function(n,t){var i=this,u=this.createPreviewQuery(n,t),e=this.data[n][t],r;e.addPreview(this.options.previewMinWidth,this.options.previewMaxWidth);r=this.queryController.getEndpoint();r.search(u).then(function(r){if(i.isDataAvailable(n,t)){var e=i.data[n][t],o=f.map(r.results,function(n){return i.instantiateTemplate(n)}),u="";f.each(o,function(n){u+=n.outerHTML});e.updatePreview(u)}})},t.prototype.instantiateTemplate=function(n){var t=this.options.previewTemplate.instantiateToElement(n,{checkCondition:!1,responsiveComponents:this.searchInterface.responsiveComponents}),i={options:this.options,bindings:this.getBindings(),result:n};return h.Initialization.automaticallyCreateComponentsInside(t,i),t},t.prototype.createPreviewQuery=function(n,t){var e="("+c.QueryUtils.buildFieldExpression(this.options.rowField,"=",[this.getRowValue(n)])+")",o="("+c.QueryUtils.buildFieldExpression(this.options.columnField,"=",[this.getColumnValue(t)])+")",i=this.queryController.getLastQuery(),r,u;return i.aq=e,i.aq+=o,i.sortCriteria=this.options.previewSortCriteria,i.sortField=this.options.previewSortField,r=this.options.computedField.slice(1),u=f.find(i.fieldsToInclude,function(n){return n==r}),!u&&i.fieldsToInclude&&i.fieldsToInclude.push(r),i},t.prototype.isHoverWorkingOnRow=function(n){return this.options.enableColumnTotals?0!==n&&n!==this.numberOfRows-1:0!==n},t.prototype.isHoverWorkingOnColumn=function(n){return this.options.enableRowTotals?0!==n&&n!==this.numberOfColumns-1:0!==n},t.prototype.isDataAvailable=function(n,t){return void 0!==this.data[n]&&void 0!==this.data[n][t]},t}(a.Component);e.ID="Matrix";e.options={title:r.ComponentOptions.buildStringOption(),rowField:r.ComponentOptions.buildFieldOption({required:!0}),columnField:r.ComponentOptions.buildFieldOption({required:!0}),sortCriteria:r.ComponentOptions.buildStringOption({defaultValue:"ComputedFieldDescending"}),maximumNumberOfRows:r.ComponentOptions.buildNumberOption({defaultValue:10,min:0}),enableRowTotals:r.ComponentOptions.buildBooleanOption({defaultValue:!0}),columnFieldValues:r.ComponentOptions.buildListOption({defaultValue:[]}),columnLabels:r.ComponentOptions.buildListOption({defaultValue:[]}),columnHeader:r.ComponentOptions.buildStringOption(),maximumNumberOfValuesInGroupBy:r.ComponentOptions.buildNumberOption({defaultValue:100,min:0}),enableColumnTotals:r.ComponentOptions.buildBooleanOption({defaultValue:!0}),computedField:r.ComponentOptions.buildFieldOption({required:!0}),computedFieldOperation:r.ComponentOptions.buildStringOption({defaultValue:"sum"}),computedFieldFormat:r.ComponentOptions.buildStringOption({defaultValue:"c0"}),cellFontSize:r.ComponentOptions.buildStringOption({defaultValue:""}),enableHoverPreview:r.ComponentOptions.buildBooleanOption({defaultValue:!0}),previewSortCriteria:r.ComponentOptions.buildStringOption({defaultValue:"FieldDescending"}),previewSortField:r.ComponentOptions.buildFieldOption(),previewMaxWidth:r.ComponentOptions.buildStringOption({defaultValue:"500px"}),previewMinWidth:r.ComponentOptions.buildStringOption({defaultValue:"0"}),previewDelay:r.ComponentOptions.buildNumberOption({defaultValue:500}),previewTemplate:r.ComponentOptions.buildTemplateOption()};t.Matrix=e;h.Initialization.registerAutoCreateComponent(e)},function(n,t,i){"use strict";var r=i(59),u=i(14),f=function(){function n(n,t){void 0===n&&(n=0);this.previewActive=!1;this.element=t;this.value=n}return n.prototype.getValue=function(){return this.value},n.prototype.getHTML=function(){return this.element},n.prototype.setValue=function(n){this.value=n},n.prototype.setHTML=function(n){this.element=n},n.prototype.addPreview=function(n,t){var i,f;this.previewActive=!0;i=r.$$("div",{className:"matrix-results-preview-container"});i.el.style.minWidth=n;i.el.style.maxWidth=t;i.on("click",function(n){n.stopPropagation()});this.element.appendChild(i.el);f=r.$$(this.element).findAll(".matrix-results-preview-container");u.each(f,function(n){r.$$(n).hide()})},n.prototype.removePreview=function(){this.previewActive=!1;var n=r.$$(this.element).find(".matrix-results-preview-container");n&&r.$$(n).detach()},n.prototype.updatePreview=function(n){if(this.previewActive){var t=r.$$(this.element).find(".matrix-results-preview-container");t.innerHTML+=n;r.$$(t).show()}},n}();t.Cell=f},function(n,t,i){"use strict";var r=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},u=i(109),f=i(59),e=i(28),o=function(n){function t(t,i){var r=n.call(this)||this;return r.computedField=t,r.format=i,r}return r(t,n),t.prototype.instantiateToString=function(n){return"<div class='coveo-result-frame'><div class='coveo-result-row'><div class='coveo-result-cell' style='width: 40px; padding-right:5px;vertical-align: middle'><a class='CoveoIcon' data-small='true'><\/a><\/div><div class='coveo-result-cell' style='font-size:13px;vertical-align: middle'><a class='CoveoResultLink'><\/a><\/div><div class='coveo-result-cell' style='width:80px; text-align:right; font-size:13px; padding-right: 5px;vertical-align: middle'>"+e.format(parseInt(n.raw[this.computedField.slice(1)]),this.format)+"<\/div><\/div><\/div>"},t.prototype.instantiateToElement=function(n){return f.$$("div",void 0,this.instantiateToString(n)).el},t}(u.Template);t.DefaultMatrixResultPreviewTemplate=o},function(n,t,i){"use strict";var h=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},o=i(103),f=i(107),c=i(202),s=i(111),l=i(60),r=i(59),a=i(23),e=i(14),u=function(n){function t(i,u,h,l){var a=n.call(this,i,t.ID,h)||this,p,y,v,w;a.element=i;a.options=u;a.bindings=h;a.result=l;a.options=f.ComponentOptions.initComponentOptions(i,t,u);p=r.$$("a");p.addClass(o.Component.computeCssClassName(c.ResultLink));y=r.$$("div");y.addClass("coveo-youtube-thumbnail-container");p.append(y.el);v=r.$$("img");v.el.style.width=a.options.width;v.el.style.height=a.options.height;v.setAttribute("src",l.raw.ytthumbnailurl);v.addClass("coveo-youtube-thumbnail-img");y.append(v.el);w=r.$$("span");w.addClass("coveo-youtube-thumbnail-play-button");y.append(w.el);r.$$(a.element).append(p.el);a.options.embed&&(a.options=e.extend(a.options,{onClick:function(){return a.handleOnClick()}}));var b=a.searchInterface.options.originalOptionsObject,k=e.extend({},a.getBindings(),{resultElement:i}),d={options:e.extend({},{initOptions:{ResultLink:u}},b),bindings:k,result:l};return s.Initialization.automaticallyCreateComponentsInside(i,d),a}return h(t,n),t.prototype.handleOnClick=function(){var i=this,n=r.$$("iframe"),t=r.$$("div");n.setAttribute("src","https://www.youtube.com/embed/"+this.extractVideoId()+"?autoplay=1");n.setAttribute("allowfullscreen","allowfullscreen");n.setAttribute("webkitallowfullscreen","webkitallowfullscreen");n.setAttribute("width","100%");n.setAttribute("height","100%");t.append(n.el);this.modalbox=a.ModalBox.open(t.el,{overlayClose:!0,title:l.DomUtils.getQuickviewHeader(this.result,{showDate:!0,title:this.result.title},this.bindings).el.outerHTML,className:"coveo-quick-view coveo-youtube-player",validation:function(){return!0},body:this.element.ownerDocument.body});r.$$(r.$$(this.modalbox.wrapper).find(".coveo-quickview-close-button")).on("click",function(){i.modalbox.close()})},t.prototype.extractVideoId=function(){return this.result.clickUri.split("watch?v=")[1]},t}(o.Component);u.ID="YouTubeThumbnail";u.options={width:f.ComponentOptions.buildStringOption({defaultValue:"200px"}),height:f.ComponentOptions.buildStringOption({defaultValue:"112px"}),embed:f.ComponentOptions.buildBooleanOption({defaultValue:!0})};u.fields=["ytthumbnailurl"];t.YouTubeThumbnail=u;s.Initialization.registerAutoCreateComponent(u)},function(n,t,i){"use strict";var c=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},l=i(103),r=i(107),a=i(228),f=i(13),e=i(21),o=i(111),v=i(12),s=i(59),h=i(14),u=function(n){function t(i,u,e,o,s){void 0===s&&(s=0);var h=n.call(this,i,t.ID,e)||this;return h.element=i,h.options=u,h.bindings=e,h.attachmentLevel=s,h.options=r.ComponentOptions.initComponentOptions(i,t,u),h.attachments=o.attachments,f.Utils.isNonEmptyArray(h.attachments)&&h.renderAttachments(),h}return c(t,n),t.prototype.renderAttachments=function(){var n=this;h.each(this.attachments,function(i){var r,u;e.QueryUtils.setStateObjectOnQueryResult(n.queryStateModel.get(),i);e.QueryUtils.setSearchInterfaceObjectOnQueryResult(n.searchInterface,i);r=n.attachmentLevel>0?n.options.subResultTemplate.instantiateToElement(i):n.options.resultTemplate.instantiateToElement(i);(n.autoCreateComponentsInsideResult(r,h.extend({},i,{attachments:[]})),s.$$(r).addClass("coveo-result-attachments-container"),n.element.appendChild(r),n.attachmentHasSubAttachment(i)&&n.attachmentLevel<n.options.maximumAttachmentLevel)&&(u=s.$$("div").el,r.appendChild(u),new t(u,n.options,n.bindings,i,n.attachmentLevel+1))})},t.prototype.attachmentHasSubAttachment=function(n){return!!f.Utils.isNonEmptyArray(n.attachments)||!!f.Utils.isNonEmptyArray(n.childResults)&&(n.attachments=n.childResults,!0)},t.prototype.autoCreateComponentsInsideResult=function(n,i){v.Assert.exists(n);var r=this.searchInterface.options,u={options:r,bindings:this.getBindings(),result:i};o.Initialization.automaticallyCreateComponentsInside(n,u,[t.ID])},t}(l.Component);u.ID="ResultAttachments";u.options={resultTemplate:r.ComponentOptions.buildTemplateOption({defaultFunction:function(){return new a.DefaultResultAttachmentTemplate}}),subResultTemplate:r.ComponentOptions.buildTemplateOption({postProcessing:function(n,t){return null!=n?n:t.resultTemplate}}),maximumAttachmentLevel:r.ComponentOptions.buildNumberOption({defaultValue:5,min:0})};t.ResultAttachments=u;o.Initialization.registerAutoCreateComponent(u)},function(n,t,i){"use strict";var r=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},u=i(109),f=function(n){function t(){return n.call(this)||this}return r(t,n),t.prototype.instantiateToString=function(){return'<div><span class="CoveoIcon"><\/span> <a class="CoveoResultLink"><\/a> <span class="CoveoQuickview"><\/span><\/div>'},t}(u.Template);t.DefaultResultAttachmentTemplate=f},function(n,t,i){"use strict";var c=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},l=i(103),u=i(107),a=i(230),v=i(13),s=i(21),h=i(111),f=i(12),r=i(59),o=i(35),y=i(14),e=function(n){function t(i,e,o,s){var h=n.call(this,i,t.ID,o)||this;return h.element=i,h.options=e,h.result=s,h.showingMoreResults=!1,h.options=u.ComponentOptions.initComponentOptions(h.element,t,e),f.Assert.exists(s),h.buildElements(),h.displayThoseResults(h.result.childResults),h.updateElementVisibility(),r.$$(h.element.parentElement).hasClass("CoveoCardOverlay")&&h.bindOverlayEvents(),0!=h.result.childResults.length||h.result.moreResults||r.$$(h.element).hide(),h}return c(t,n),t.prototype.showMoreResults=function(){var n=this;f.Assert.exists(this.result.moreResults);this.cancelAnyPendingShowMore();this.moreResultsPromise=this.result.moreResults();this.waitAnimation=r.$$("div",{className:"coveo-loading-spinner"}).el;this.results.appendChild(this.waitAnimation);this.updateElementVisibility();this.moreResultsPromise.then(function(t){return n.childResults=t,n.showingMoreResults=!0,n.displayThoseResults(t),n.updateElementVisibility(t.length),t}).finally(function(){n.moreResultsPromise=void 0;r.$$(n.waitAnimation).detach();n.waitAnimation=void 0})},t.prototype.showLessResults=function(){this.cancelAnyPendingShowMore();this.showingMoreResults=!1;this.displayThoseResults(this.result.childResults);this.updateElementVisibility();this.scrollToResultElement()},t.prototype.buildElements=function(){this.buildHeader();this.buildResults();this.buildFooter()},t.prototype.buildHeader=function(){var n=r.$$("div",{className:"coveo-folding-header"}).el;this.element.appendChild(n);void 0!=this.options.normalCaption&&void 0!=this.options.expandedCaption&&(this.normalCaption=r.$$("div",{className:"coveo-folding-normal-caption"},this.options.normalCaption).el,n.appendChild(this.normalCaption),this.expandedCaption=r.$$("div",{className:"coveo-folding-expanded-caption"},this.options.expandedCaption).el,n.appendChild(this.expandedCaption));this.oneResultCaption=r.$$("div",{className:"coveo-folding-oneresult-caption"},this.options.oneResultCaption).el;n.appendChild(this.oneResultCaption)},t.prototype.buildResults=function(){this.results=r.$$("div",{className:"coveo-folding-results"}).el;this.element.appendChild(this.results)},t.prototype.buildFooter=function(){var t=this,n=r.$$("div",{className:"coveo-folding-footer"}).el;if(this.element.parentElement.appendChild(n),this.result.moreResults){this.showMore=r.$$("div",{className:"coveo-folding-footer-section-for-less"}).el;r.$$(this.showMore).on("click",function(){return t.showMoreResults()});n.appendChild(this.showMore);this.showLess=r.$$("div",{className:"coveo-folding-footer-section-for-more"}).el;r.$$(this.showLess).on("click",function(){return t.showLessResults()});n.appendChild(this.showLess);var i=r.$$("div",{className:"coveo-more"},r.$$("span",{className:"coveo-folding-footer-icon"}).el).el,u=r.$$("div",{className:"coveo-less"},r.$$("span",{className:"coveo-folding-footer-icon"}).el).el,f=r.$$("a",{className:"coveo-folding-show-more"},this.options.moreCaption).el,e=r.$$("a",{className:"coveo-folding-show-less"},this.options.lessCaption).el;this.showMore.appendChild(f);this.showLess.appendChild(e);this.showMore.appendChild(i);this.showLess.appendChild(u)}},t.prototype.updateElementVisibility=function(n){var t,i;this.normalCaption&&r.$$(this.normalCaption).toggle(!this.showingMoreResults&&this.result.childResults.length>0);this.expandedCaption&&r.$$(this.expandedCaption).toggle(this.showingMoreResults);r.$$(this.oneResultCaption).toggleClass("coveo-hidden",!(n&&1==n));this.showMore&&(r.$$(this.showMore).toggle(!this.showingMoreResults&&!v.Utils.exists(this.moreResultsPromise)),r.$$(this.showLess).toggle(this.showingMoreResults));t=r.$$(this.element).find(".coveo-show-if-normal");t&&r.$$(t).toggle(!this.showingMoreResults);i=r.$$(this.element).find(".coveo-show-if-expanded");i&&r.$$(i).toggle(this.showingMoreResults)},t.prototype.scrollToResultElement=function(){var n=r.$$(this.element).closest("CoveoResult");window.scrollTo(0,window.scrollY+n.getBoundingClientRect().top)},t.prototype.displayThoseResults=function(n){var t=this;r.$$(this.results).empty();y.each(n,function(n){t.renderChildResult(n)})},t.prototype.renderChildResult=function(n){s.QueryUtils.setStateObjectOnQueryResult(this.queryStateModel.get(),n);s.QueryUtils.setSearchInterfaceObjectOnQueryResult(this.searchInterface,n);var t=this.options.resultTemplate.instantiateToElement(n,{wrapInDiv:!1,checkCondition:!1,responsiveComponents:this.searchInterface.responsiveComponents});r.$$(t).addClass("coveo-result-folding-child-result");this.results.appendChild(t);r.$$(t).toggleClass("coveo-normal-child-result",!this.showingMoreResults);r.$$(t).toggleClass("coveo-expanded-child-result",this.showingMoreResults);this.autoCreateComponentsInsideResult(t,n)},t.prototype.autoCreateComponentsInsideResult=function(n,t){f.Assert.exists(n);var i=this.searchInterface.options,r={options:i,bindings:this.getBindings(),result:t};h.Initialization.automaticallyCreateComponentsInside(n,r)},t.prototype.cancelAnyPendingShowMore=function(){this.moreResultsPromise&&(this.moreResultsPromise=void 0);f.Assert.doesNotExists(this.moreResultsPromise);f.Assert.doesNotExists(this.waitAnimation)},t.prototype.bindOverlayEvents=function(){var n=this;this.bind.one(this.element.parentElement,"openCardOverlay",function(){n.result.moreResults&&n.showMoreResults()})},t}(l.Component);e.ID="ResultFolding";e.options={resultTemplate:u.ComponentOptions.buildTemplateOption({defaultFunction:function(){return new a.DefaultFoldingTemplate}}),normalCaption:u.ComponentOptions.buildLocalizedStringOption(),expandedCaption:u.ComponentOptions.buildLocalizedStringOption(),moreCaption:u.ComponentOptions.buildLocalizedStringOption({postProcessing:function(n){return n||o.l("ShowMore")}}),lessCaption:u.ComponentOptions.buildLocalizedStringOption({postProcessing:function(n){return n||o.l("ShowLess")}}),oneResultCaption:u.ComponentOptions.buildLocalizedStringOption({postProcessing:function(n){return n||o.l("DisplayingTheOnlyMessage")}})};t.ResultFolding=e;h.Initialization.registerAutoCreateComponent(e)},function(n,t,i){"use strict";var r=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},u=i(109),f=function(n){function t(){return n.call(this)||this}return r(t,n),t.prototype.instantiateToString=function(){return'<div class="coveo-child-result"><span class="CoveoIcon"><\/span> <a class="CoveoResultLink"><\/a> <span class="CoveoQuickview"><\/span><\/div>'},t.prototype.getType=function(){return"DefaultFoldingTemplate"},t}(u.Template);t.DefaultFoldingTemplate=f},function(n,t,i){"use strict";var s=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},e=i(107),h=i(111),o=i(205),c=i(62),l=i(12),f=i(59),u=i(14),r=function(n){function t(i,r,f,o){var s=n.call(this,i,e.ComponentOptions.initComponentOptions(i,t,r),f,o,t.ID)||this;return s.options=r,u.isString(s.options.colors)&&(s.options.colors=t.parseColors(s.options.colors)),null==s.options.colors.values&&(s.options.colors.values={}),s}return s(t,n),t.parseColors=function(n){if(n){if(t.colorsRegex.test(n)){var i={values:{}},r=c.StringUtils.match(n,t.colorRegex);return u.each(r,function(n){var t=n[1],r=n[2];null!=t?i.values[t.replace(/\\(:|;)/g,"$1")]={icon:r}:i.icon=r}),i}try{return JSON.parse(n)}catch(t){l.Assert.fail("Invalid colors for badge '"+n+"'")}}return{}},t.prototype.getColor=function(n){void 0===n&&(n="");var t=u.find(u.keys(this.options.colors.values),function(t){return n.toLowerCase()==t.toLowerCase()}),i=t?this.options.colors.values[t]:{};return{icon:i.icon||this.options.colors.icon,text:i.text||this.options.colors.text}},t.prototype.renderOneValue=function(t){var i=n.prototype.renderOneValue.call(this,t),r,u,e;return f.$$(i).addClass("coveo-value"),r=this.getColor(t),this.searchInterface.isNewDesign()?(u=f.$$("span",{className:"coveo-badge-icon"}).el,null!=r.icon&&(u.style.color=r.icon)):null!=r.icon&&(i.style.background=r.icon),e=f.$$("span",{className:"coveo-badge-label"},i.innerHTML).el,null!=r.text&&(e.style.color=r.text),f.$$(i).empty(),this.searchInterface.isNewDesign()&&i.appendChild(u),i.appendChild(e),i},t.prototype.prependTextCaptionToDom=function(){},t}(o.FieldValue);r.ID="Badge";r.options={colors:e.ComponentOptions.buildCustomOption(function(n){return r.parseColors(n)},{defaultValue:{values:{}}}),textCaption:e.ComponentOptions.buildLocalizedStringOption()};r.parent=o.FieldValue;r.colorRegex=/(?:\s*((?:[^:;]|\\[;:])*)\s*:\s*)?(\w+|#[A-Fa-f0-9]{6}|#[A-Fa-f0-9]{3})/g;r.colorsRegex=new RegExp("^(\\s*"+r.colorRegex.source+"\\s*;)*(\\s*"+r.colorRegex.source+")?\\s*$");t.Badge=r;r.options=u.omit(r.options,"textCaption");h.Initialization.registerAutoCreateComponent(r)},function(n,t,i){"use strict";var f,e=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},o=i(103),s=i(107),u=i(59),h=i(111),c=i(13),r;!function(n){n[n.Undefined=0]="Undefined";n[n.Lowest=1]="Lowest";n[n.Low=2]="Low";n[n.Average=3]="Average";n[n.Good=4]="Good";n[n.Best=5]="Best"}(f=t.RatingValues||(t.RatingValues={}));r=function(n){function t(i,r,u,f){var e=n.call(this,i,t.ID,u)||this;return e.element=i,e.options=r,e.bindings=u,e.result=f,e.options=s.ComponentOptions.initComponentOptions(i,t,r),c.Utils.isNullOrUndefined(f.rating)||e.renderComponent(i,f.rating),e}return e(t,n),t.prototype.renderComponent=function(n,t){for(var i=1;i<=5;i++)this.renderStar(n,i<=t,i)},t.prototype.renderStar=function(n,t,i){var r,f=this,o=u.$$(n).find('a[rating-value="'+i+'"]'),e;null==o?(r=u.$$("a"),n.appendChild(r.el),this.bindings.searchInterface.options.enableCollaborativeRating&&(r.on("click",function(n){var t=n.currentTarget;f.rateDocument(parseInt(t.getAttribute("rating-value")))}),r.on("mouseover",function(t){var i=t.currentTarget;f.renderComponent(n,parseInt(i.getAttribute("rating-value")))}),r.on("mouseout",function(){f.renderComponent(n,f.result.rating)})),r.el.setAttribute("rating-value",i.toString())):r=u.$$(o);e="";e=this.searchInterface.isNewDesign()?"coveo-sprites-":"coveo-sprites-common-";r.toggleClass(e+"star_placeholder",!t);r.toggleClass(e+"star_active",t)},t.prototype.rateDocument=function(n){var t=this,i={rating:f[n],uniqueId:this.result.uniqueId};this.queryController.getEndpoint().rateDocument(i).then(function(){t.result.rating=n;t.renderComponent(t.element,n)}).catch(function(){t.logger.error("An error occurred while rating the document")})},t}(o.Component);r.ID="ResultRating";t.ResultRating=r;h.Initialization.registerAutoCreateComponent(r)},function(n,t,i){"use strict";var o=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},s=i(103),h=i(107),c=i(52),f=i(47),l=i(111),e=i(35),r=i(59),u=function(n){function t(i,r,u){var f=n.call(this,i,t.ID,u)||this;return f.element=i,f.options=r,f.options=h.ComponentOptions.initComponentOptions(i,t,r),f.buildCloseButton(),f.buildTitle(),f.bind.onRootElement(c.SettingsEvents.settingsPopulateMenu,function(n){n.menuData.push({className:"coveo-preferences-panel",text:e.l("Preferences"),onOpen:function(){return f.open()},onClose:function(){return f.close()}})}),f}return o(t,n),t.prototype.open=function(){r.$$(this.element).addClass("coveo-active")},t.prototype.close=function(){r.$$(this.element).removeClass("coveo-active");r.$$(this.element).trigger(f.PreferencesPanelEvents.exitPreferencesWithoutSave)},t.prototype.save=function(){r.$$(this.element).trigger(f.PreferencesPanelEvents.savePreferences);this.queryController.executeQuery()},t.prototype.buildCloseButton=function(){var t=this,n=r.$$("div",{className:"coveo-preferences-panel-close"},r.$$("span",{className:"coveo-icon"}).el);n.on("click",function(){t.close()});r.$$(this.element).prepend(n.el)},t.prototype.buildTitle=function(){var n=r.$$("div",{className:"coveo-preferences-panel-title"},e.l("Preferences")).el;r.$$(this.element).prepend(n)},t}(s.Component);u.ID="PreferencesPanel";u.options={};t.PreferencesPanel=u;l.Initialization.registerAutoCreateComponent(u)},function(n,t,i){"use strict";var y=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},e=i(103),o=i(107),p=i(70),w=i(69),b=i(233),s=i(235),k=i(45),a=i(47),d=i(98),g=i(48),l=i(101),v=i(42),nt=i(112),tt=i(111),f=i(35),h=i(13),r=i(59),u=i(14),c=function(n){function t(i,u,f){var s=n.call(this,i,t.ID,f)||this;return s.element=i,s.options=u,s.bindings=f,s.options=o.ComponentOptions.initComponentOptions(i,t,u),s.preferencePanel=r.$$(s.element).closest(e.Component.computeCssClassName(b.PreferencesPanel)),s.preferencePanelLocalStorage=new p.LocalStorageUtils(t.ID),s.mergeLocalPreferencesWithStaticPreferences(),s.bindPreferencePanelEvent(),s.bindBreadcrumbEvent(),s.bindQueryEvent(),s.bind.oneRootElement(k.InitializationEvents.afterComponentsInitialization,function(){return s.createDom()}),s.bind.oneQueryState(d.MODEL_EVENTS.CHANGE_ONE,l.QUERY_STATE_ATTRIBUTES.T,function(){return s.fromPreferencesToCheckboxInput()}),s}return y(t,n),t.prototype.createDom=function(){this.buildTitle();this.buildCheckboxesInput();this.options.showAdvancedFilters&&this.buildAdvancedFilters()},t.prototype.save=function(){this.fromCheckboxInputToPreferences();var n=u.omit(this.preferences,"tab");this.logger.info("Saving preferences",n);this.preferencePanelLocalStorage.save(n)},t.prototype.exitWithoutSave=function(){this.fromPreferencesToCheckboxInput()},t.prototype.bindPreferencePanelEvent=function(){var n=this;this.bind.on(this.preferencePanel,a.PreferencesPanelEvents.savePreferences,function(){return n.save()});this.bind.on(this.preferencePanel,a.PreferencesPanelEvents.exitPreferencesWithoutSave,function(){return n.exitWithoutSave()})},t.prototype.bindBreadcrumbEvent=function(){var n=this;this.options.includeInBreadcrumb&&(this.bind.onRootElement(v.BreadcrumbEvents.populateBreadcrumb,function(t){return n.handlePopulateBreadcrumb(t)}),this.bind.onRootElement(v.BreadcrumbEvents.clearBreadcrumb,function(){return n.handleClearBreadcrumb()}))},t.prototype.bindQueryEvent=function(){var n=this;this.bind.onRootElement(g.QueryEvents.buildingQuery,function(t){return n.handleBuildingQuery(t)})},t.prototype.handleBuildingQuery=function(n){u.each(this.getActiveFilters(),function(t){n.queryBuilder.advancedExpression.add(t.expression)})},t.prototype.handlePopulateBreadcrumb=function(n){var e=this.getActiveFilters(),i,o,u,t,s;if(h.Utils.isNonEmptyArray(e)){for(i=r.$$("div",{className:"coveo-results-filter-preferences-breadcrumb"}),o=r.$$("span",{className:"coveo-title"}),o.text(f.l("FiltersInYourPreferences")+":"),i.el.appendChild(o.el),u=r.$$("span",{className:"coveo-values"}),i.el.appendChild(u.el),t=0;t<e.length;t++)0!=t&&(s=r.$$("span",{className:"coveo-separator"}),s.text(", "),u.el.appendChild(s.el)),u.el.appendChild(this.buildBreadcrumb(e[t]));n.breadcrumbs.push({element:i.el})}},t.prototype.handleClearBreadcrumb=function(){u.each(this.getActiveFilters(),function(n){n.selected=!1});this.fromPreferencesToCheckboxInput()},t.prototype.buildTitle=function(){this.element.appendChild(r.$$("div",{className:"coveo-title"},f.l("ResultsFilteringExpression")).el)},t.prototype.buildAdvancedFilters=function(){var i=this,t,n;this.advancedFilters=r.$$("div",{className:"coveo-advanced-filters"},f.l("Create")).el;this.buildAdvancedFilterInput();this.buildAdvancedFilterFormValidate();this.advancedFiltersBuilder=r.$$("div",{className:"coveo-advanced-filters-builder"}).el;this.advancedFiltersBuilder.appendChild(this.advancedFilterFormValidate);r.$$(this.advancedFilters).on("click",function(){return i.openAdvancedFilterSectionOrSaveFilters()});t=r.$$("a",{href:"http://www.coveo.com/go?dest=adminhelp70&lcid=9&context=10006",className:"coveo-online-help"},"?");n=r.$$(this.element).find(".coveo-title");t.insertAfter(n);r.$$(this.advancedFilters).insertAfter(n);this.element.appendChild(this.advancedFiltersBuilder)},t.prototype.buildAdvancedFilterInput=function(){this.advancedFiltersTextInputCaption=new s.PreferencesPanelTextAreaInput([{label:f.l("Caption"),placeholder:f.l("EnterExpressionName"),otherAttribute:"required"}],t.ID+"-advanced-caption");this.advancedFiltersTextInputExpression=new s.PreferencesPanelTextAreaInput([{label:f.l("Expression"),placeholder:f.l("EnterExpressionToFilterWith"),otherAttribute:"required"}],t.ID+"-advanced-expression");this.advancedFiltersTabSelect=new s.PreferencePanelMultiSelectInput({label:f.l("Tab"),placeholder:f.l("SelectTab")},this.getAllTabs(),t.ID+"-multiselect")},t.prototype.buildAdvancedFilterFormValidate=function(){var n=this,f,e,o;this.advancedFilterFormValidate=r.$$("form").el;var t=r.$$("input",{type:"submit"}),s=r.$$("span",{className:"coveo-save"}),h=r.$$("span",{className:"coveo-close"}),i=r.$$("div",{className:"coveo-choice-container coveo-close-and-save"});i.el.appendChild(s.el);i.el.appendChild(h.el);f=this.advancedFiltersTextInputCaption.build();r.$$(f).addClass("coveo-caption");e=this.advancedFiltersTabSelect.build();r.$$(e).addClass("coveo-tab");o=this.advancedFiltersTextInputExpression.build();r.$$(o).addClass("coveo-expression");u.each([f,e,o,i.el,t.el],function(t){n.advancedFilterFormValidate.appendChild(t)});s.on("click",function(){t.el.click()});h.on("click",function(){return r.$$(n.advancedFiltersBuilder).toggleClass("coveo-active")});r.$$(r.$$(this.advancedFilterFormValidate).find("textarea")).on("keyup",function(n){n.keyCode==w.KEYBOARD.ENTER&&t.trigger("click")});r.$$(this.advancedFilterFormValidate).on("submit",function(t){return n.validateAndSaveAdvancedFilter(t)})},t.prototype.getAllTabs=function(){var n=e.Component.getComponentRef("Tab"),t;if(n)return t=r.$$(this.root).findAll("."+e.Component.computeCssClassName(n)),u.map(t,function(n){var t=e.Component.get(n);return t.options.id})},t.prototype.getPreferencesBoxInputToBuild=function(){return u.map(this.preferences,function(n){return{label:n.caption,tab:n.tab,expression:n.expression}})},t.prototype.buildCheckboxesInput=function(){var n=this,i;void 0!=this.preferenceContainer&&this.preferenceContainer.remove();i=this.getPreferencesBoxInputToBuild();h.Utils.isNonEmptyArray(i)&&(this.preferencePanelCheckboxInput=new s.PreferencesPanelCheckboxInput(i,t.ID),this.preferenceContainer=r.$$("div",{className:"coveo-choices-container"}).el,this.preferenceContainer.appendChild(this.preferencePanelCheckboxInput.build()),u.each(r.$$(this.preferenceContainer).findAll(".coveo-choice-container"),function(n){n.appendChild(r.$$("div",{className:"coveo-section coveo-section-edit-delete"}).el)}),r.$$(this.element).append(this.preferenceContainer),this.buildEditAdvancedFilter(),this.buildDeleteAdvancedFilter(),this.fromPreferencesToCheckboxInput(),u.each(r.$$(this.preferenceContainer).findAll("input"),function(t){r.$$(t).on("change",function(t){n.save();var r=t.target,i=n.preferences[r.value];n.fromFilterToAnalyticsEvent(i,i.selected?"selected":"unselected");n.queryController.executeQuery()})}))},t.prototype.buildDeleteAdvancedFilter=function(){var n=this;u.each(this.preferences,function(t){if(t.custom){var i=r.$$("span",{className:"coveo-delete"},r.$$("span",{className:"coveo-icon"}).el).el,u=n.getFilterElementByCaption(t.caption),f=r.$$(r.$$(u).closest("coveo-section").parentElement).find(".coveo-section-edit-delete");f.appendChild(i);r.$$(i).on("click",function(){return n.confirmDelete(t,u)})}})},t.prototype.buildEditAdvancedFilter=function(){var n=this;u.each(this.preferences,function(t){if(t.custom){var i=r.$$("span",{className:"coveo-edit"},r.$$("span",{className:"coveo-icon"})),u=n.getFilterElementByCaption(t.caption),f=r.$$(r.$$(u).closest("coveo-section").parentElement).find(".coveo-section-edit-delete");f.appendChild(i.el);i.on("click",function(){return n.editElement(t,u)})}})},t.prototype.buildBreadcrumb=function(n){var i=this,t=r.$$("span",{className:"coveo-value"}),u=r.$$("span",{className:"coveo-caption"}),f;return u.text(n.caption),t.el.appendChild(u.el),f=r.$$("span",{className:"coveo-clear"}),t.el.appendChild(f.el),t.on("click",function(){n.selected=!1;i.fromFilterToAnalyticsEvent(n,"cleared from breadcrumb");i.fromPreferencesToCheckboxInput();i.queryController.executeQuery()}),t.el},t.prototype.confirmDelete=function(n,t){if(confirm(f.l("AreYouSureDeleteFilter",n.caption,n.expression))){var i=n.selected;this.deleteFilterPreference(n,t);i&&(this.fromFilterToAnalyticsEvent(n,"deleted"),this.queryController.executeQuery())}},t.prototype.editElement=function(n,t){var i=this.preferences[n.caption].caption,r=this.preferences[n.caption].tab,u=this.preferences[n.caption].expression;this.deleteFilterPreference(n,t);this.openAdvancedFilterSectionOrSaveFilters();this.populateEditSection({tab:r,caption:i,expression:u})},t.prototype.populateEditSection=function(n){void 0===n&&(n={tab:[""],caption:"",expression:""});this.advancedFiltersTextInputCaption.setValue(f.l("Caption"),n.caption);this.advancedFiltersTextInputExpression.setValue(f.l("Expression"),n.expression);this.advancedFiltersTabSelect.setValues(n.tab)},t.prototype.deleteFilterPreference=function(n,t){this.preferencePanelLocalStorage.remove(n.caption);delete this.preferences[n.caption];r.$$(r.$$(t).closest(".coveo-choice-container")).detach()},t.prototype.openAdvancedFilterSectionOrSaveFilters=function(){r.$$(this.advancedFiltersBuilder).hasClass("coveo-active")?r.$$(r.$$(this.advancedFilterFormValidate).find("input[type=submit]")).trigger("click"):(this.populateEditSection(),r.$$(this.advancedFiltersBuilder).toggleClass("coveo-active"))},t.prototype.validateAndSaveAdvancedFilter=function(n){n.preventDefault();r.$$(this.advancedFiltersBuilder).removeClass("coveo-active");var t=this.advancedFiltersTextInputCaption.getValues()[0],i=this.advancedFiltersTextInputExpression.getValues()[0],u=this.advancedFiltersTabSelect.getValues();this.preferences[t]={caption:t,custom:!0,expression:i,tab:u,selected:!0};this.buildCheckboxesInput();this.save();this.queryStateModel.set(l.QueryStateModel.attributesEnum.t,this.getActiveTab());this.advancedFiltersTextInputCaption.reset();this.advancedFiltersTextInputExpression.reset();this.advancedFiltersTabSelect.reset();this.element.appendChild(this.advancedFiltersBuilder);this.fromFilterToAnalyticsEvent(this.preferences[t],"saved");this.queryController.executeQuery()},t.prototype.fromPreferencesToCheckboxInput=function(){var n=this;u.each(this.getActiveFilters(),function(t){n.preferencePanelCheckboxInput.select(t.caption)});u.each(this.getInactiveFilters(),function(t){n.preferencePanelCheckboxInput.unselect(t.caption)});u.each(this.getDormantFilters(),function(t){n.preferencePanelCheckboxInput.select(t.caption)})},t.prototype.fromCheckboxInputToPreferences=function(){var n=this.preferencePanelCheckboxInput.getSelecteds();u.each(this.preferences,function(t){t.selected=u.contains(n,t.caption)?!0:!1})},t.prototype.getDormantFilters=function(){var n=this,t=this.getActiveTab();return u.filter(this.preferences,function(i){return i.selected&&!n.filterIsInActiveTab(i,t)})},t.prototype.getActiveFilters=function(){var n=this,t=this.getActiveTab();return u.filter(this.preferences,function(i){return i.selected&&n.filterIsInActiveTab(i,t)})},t.prototype.getInactiveFilters=function(){var n=this,t=this.getActiveTab();return u.filter(this.preferences,function(i){return!i.selected||!n.filterIsInActiveTab(i,t)})},t.prototype.getActiveTab=function(){return this.queryStateModel.get(l.QueryStateModel.attributesEnum.t)},t.prototype.filterIsInActiveTab=function(n,t){return n.tab=u.compact(n.tab),u.contains(n.tab,t)||h.Utils.isEmptyArray(n.tab)},t.prototype.getFilterElementByCaption=function(n){return r.$$(this.preferenceContainer).find("input[value='"+n+"']").parentElement},t.prototype.fromResultsFilterOptionToResultsPreferenceInterface=function(){var n={};return u.each(this.options.filters,function(t,i){n[i]={expression:t.expression,tab:t.tab,selected:!!t.selected&&t.selected,custom:!1,caption:i}}),n},t.prototype.mergeLocalPreferencesWithStaticPreferences=function(){var n=this.fromResultsFilterOptionToResultsPreferenceInterface(),i=this.preferencePanelLocalStorage.load(),r=u.filter(i,function(t){var i=t.custom,r=u.find(n,function(n){return n.caption==t.caption});return i||void 0!=r}),t={};u.each(r,function(n){t[n.caption]={expression:n.expression,tab:n.tab,selected:n.selected,custom:n.custom,caption:n.caption}});this.preferences=h.Utils.extendDeep(n,t)},t.prototype.fromFilterToAnalyticsEvent=function(n,t){this.usageAnalytics.logSearchEvent(nt.analyticsActionCauseList.customfiltersChange,{customFilterName:n.caption,customFilterExpression:n.expression,customFilterType:t})},t}(e.Component);c.ID="ResultsFiltersPreferences";c.options={includeInBreadcrumb:o.ComponentOptions.buildBooleanOption({defaultValue:!0}),showAdvancedFilters:o.ComponentOptions.buildBooleanOption({defaultValue:!0}),filters:o.ComponentOptions.buildJsonOption()};t.ResultsFiltersPreferences=c;tt.Initialization.registerAutoCreateComponent(c)},function(n,t,i){"use strict";var e=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},r=i(59),f=i(12),c=i(13),u=i(14),o=function(){function n(n,t,i){this.boxInputToBuild=n;this.nameOfInput=t;this.type=i;this.inputs={}}return n.prototype.build=function(){var n=this;return u.reduce(u.map(this.boxInputToBuild,function(t){var i=r.$$("div",{className:"coveo-choice-container"}),u=r.$$("div",{className:"coveo-section coveo-section-input"}),s=r.$$("input",{className:"coveo-"+t.label,id:"coveo-"+t.label,type:n.type,name:n.nameOfInput,value:t.label}),h,f,e,o;return t.otherAttribute&&s.setAttribute(t.otherAttribute,t.otherAttribute),h=r.$$("span",{className:"coveo-input-icon"}),f=r.$$("label",{className:"coveo-preferences-panel-item-label","for":"coveo-"+t.label}),f.text(t.label),u.append(s.el),u.append(h.el),u.append(f.el),e=r.$$("div",{className:"coveo-section coveo-section-tab"}),t.tab&&e.text(t.tab.join(" ")),o=r.$$("div",{className:"coveo-section coveo-section-expression"}),o.text(t.expression),i.append(u.el),i.append(e.el),i.append(o.el),n.inputs[t.label]=r.$$("div",void 0,i).el,n.inputs[t.label]}),function(n,t){return n.appendChild(t),n},r.$$("div").el)},n.prototype.select=function(n){f.Assert.exists(this.inputs[n]);var t=r.$$(this.inputs[n]).find("input");t.checked=!0;r.$$(r.$$(this.inputs[n]).find(".coveo-input-icon")).addClass("coveo-selected")},n.prototype.unselect=function(n){f.Assert.exists(this.inputs[n]);var t=r.$$(this.inputs[n]).find("input");t.checked=!1;r.$$(r.$$(this.inputs[n]).find(".coveo-input-icon")).removeClass("coveo-selected")},n.prototype.getSelected=function(){var n=u.find(this.inputs,function(n){var t=r.$$(n).find("input");return t.checked});return r.$$(n).find("input").value},n.prototype.getSelecteds=function(){var n=u.filter(this.inputs,function(n){var t=r.$$(n).find("input");return t.checked});return u.map(n,function(n){return r.$$(n).find("input").value})},n}(),l,a,s,h,v;t.PreferencesPanelBoxInput=o;l=function(n){function t(t,i){var r=n.call(this,t,i,"radio")||this;return r.radioElementToBuild=t,r.name=i,r}return e(t,n),t}(o);t.PreferencesPanelRadioInput=l;a=function(n){function t(t,i){var r=n.call(this,t,i,"checkbox")||this;return r.checkboxElementToBuild=t,r.name=i,r}return e(t,n),t.prototype.build=function(){var t=n.prototype.build.call(this),i=r.$$(t).findAll(".coveo-input-icon");return u.each(i,function(n){var t=r.$$(n.parentElement).find("input");r.$$(t).on("change",function(){var i=t.checked;r.$$(n).toggleClass("coveo-selected",i)});r.$$(n).on("click",function(){t.checked=!t.checked;r.$$(t).trigger("change")})}),t},t}(o);t.PreferencesPanelCheckboxInput=a;s=function(){function n(n,t){this.textElementToBuild=n;this.name=t;this.inputs={}}return n.prototype.build=function(){var n=this;return u.reduce(u.map(this.textElementToBuild,function(t){var i=r.$$("div",{className:"coveo-choice-container"}),u=r.$$("input",{className:"coveo-"+t.label,id:"coveo-"+t.label,type:"text",name:n.name,placeholder:t.placeholder||t.label});return t.otherAttribute&&u.setAttribute(t.otherAttribute,t.otherAttribute),i.append(u.el),n.inputs[t.label]=r.$$("div",void 0,i).el,n.inputs[t.label]}),function(n,t){return n.appendChild(t),n},r.$$("div").el)},n.prototype.getValues=function(){var n=this;return u.map(this.inputs,function(t,i){return n.getInput(i).value})},n.prototype.setValue=function(n,t){f.Assert.exists(this.inputs[n]);this.getInput(n).value=t},n.prototype.reset=function(){u.each(this.inputs,function(n){var t=r.$$(n).find("input");t||(t=r.$$(n).find("textarea"));t.value=""})},n.prototype.getInput=function(n){f.Assert.exists(this.inputs[n]);var t=r.$$(this.inputs[n]).find("input");return t||(t=r.$$(this.inputs[n]).find("textarea")),t},n}();t.PreferencesPanelTextInput=s;h=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return e(t,n),t.prototype.build=function(){var n=this;return u.reduce(u.map(this.textElementToBuild,function(t){var i=r.$$("div",{className:"coveo-choice-container"}),u=r.$$("textarea",{className:"coveo-"+t.label,name:"coveo-"+t.label,placeholder:t.placeholder||t.label});return t.otherAttribute&&u.setAttribute(t.otherAttribute,t.otherAttribute),i.append(u.el),n.inputs[t.label]=r.$$("div",void 0,i).el,n.inputs[t.label]}),function(n,t){return n.appendChild(t),n},r.$$("div").el)},t}(s);t.PreferencesPanelTextAreaInput=h;v=function(){function n(n,t,i){this.toBuild=n;this.options=t;this.name=i;this.textInput=new h([{label:n.label,otherAttribute:"readonly"}],i)}return n.prototype.build=function(){var n=this,t;return this.select=r.$$("select").el,this.select.setAttribute("multiple","multiple"),u.each(this.options,function(t){var i=r.$$("option",void 0,t).el;n.select.appendChild(i)}),r.$$(this.select).on("change",function(){var t=u.chain(n.select.options).filter(function(n){return n.selected}).map(function(n){return n.value}).value();c.Utils.isNullOrUndefined(t)||c.Utils.isEmptyArray(t)?n.reset():n.textInput.setValue(n.toBuild.label,t.join(","))}),t=this.textInput.build(),t.appendChild(this.select),t},n.prototype.getValues=function(){return this.textInput.getValues()[0].split(",")},n.prototype.setValues=function(n){this.textInput.setValue(this.toBuild.label,n.join(","))},n.prototype.reset=function(){this.textInput.setValue(this.toBuild.label,"")},n}();t.PreferencePanelMultiSelectInput=v},function(n,t,i){"use strict";var s=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},h=i(103),c=i(107),f=i(48),l=i(12),e=i(59),r=i(35),a=i(111),o=i(28),u=function(n){function t(i,r,u){var o=n.call(this,i,t.ID,u)||this;return o.element=i,o.options=r,o.options=c.ComponentOptions.initComponentOptions(i,t,r),o.bind.onRootElement(f.QueryEvents.querySuccess,function(n){return o.handleQuerySuccess(n)}),o.bind.onRootElement(f.QueryEvents.queryError,function(){return e.$$(o.element).hide()}),o.element.style.display="none",o.textContainer=e.$$("span").el,o.element.appendChild(o.textContainer),o}return s(t,n),t.prototype.handleQuerySuccess=function(n){if(!this.disabled&&n.results.results.length>0){l.Assert.exists(n);var t=[r.l("Duration",this.formatQueryDuration(n.results.duration)),r.l("IndexDuration",this.formatQueryDuration(n.results.indexDuration)),r.l("ProxyDuration",this.formatQueryDuration(n.results.proxyDuration)),r.l("ClientDuration",this.formatQueryDuration(n.results.clientDuration))].join("\n");this.textContainer.textContent=this.formatQueryDuration(n.results.duration);this.element.setAttribute("title",t);this.element.style.display="inline"}else this.element.style.display="none"},t.prototype.formatQueryDuration=function(n){if(void 0==n)return r.l("Unavailable");var t=Math.max(n/1e3,.01);return"en"===String.locale?r.l("Seconds",o.format(t,"n2"),t,!0):r.l("Seconds",o.format(t,"n2"),t)},t}(h.Component);u.ID="QueryDuration";u.options={};t.QueryDuration=u;a.Initialization.registerAutoCreateComponent(u)},function(n,t,i){"use strict";var c=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},l=i(103),e=i(107),s=i(48),r=i(59),a=i(12),u=i(35),h=i(112),v=i(111),y=i(101),o=i(28),p=i(238),w=i(14),f=function(n){function t(i,u,f){var o=n.call(this,i,t.ID,f)||this;return o.element=i,o.options=u,o.options=e.ComponentOptions.initComponentOptions(i,t,u),o.bind.onRootElement(s.QueryEvents.querySuccess,function(n){return o.handleQuerySuccess(n)}),o.bind.onRootElement(s.QueryEvents.queryError,function(){return o.hide()}),o.hide(),o.textContainer=r.$$("span").el,o.element.appendChild(o.textContainer),o}return c(t,n),t.prototype.hide=function(){r.$$(this.element).addClass("coveo-hidden")},t.prototype.show=function(){r.$$(this.element).removeClass("coveo-hidden")},t.prototype.handleQuerySuccess=function(n){var t;if(a.Assert.exists(n),r.$$(this.textContainer).empty(),this.show(),!this.options.onlyDisplaySearchTips&&n.results.results.length>0){var i=o.format(n.query.firstResult+1,"n0"),f=o.format(n.query.firstResult+n.results.results.length,"n0"),e=o.format(n.results.totalCountFiltered,"n0"),s=r.$$("span",{className:"coveo-highlight"},i).el,h=r.$$("span",{className:"coveo-highlight"},f).el,c=r.$$("span",{className:"coveo-highlight"},e).el;this.textContainer.innerHTML=u.l("ShowingResultsOf",s.outerHTML,h.outerHTML,c.outerHTML,n.results.results.length)}null!=n.results.exception&&null!=n.results.exception.code?(t=("QueryException"+n.results.exception.code).toLocaleString(),this.textContainer.innerHTML=u.l("QueryException",t)):0==n.results.results.length?this.displayInfoOnNoResults():this.lastKnownGoodState=this.queryStateModel.getAttributes()},t.prototype.displayInfoOnNoResults=function(){var t,n=this,l=w.escape(this.queryStateModel.get(y.QueryStateModel.attributesEnum.q)),f,e,i,o,s,c;""!=l&&(t=r.$$("div",{className:"coveo-query-summary-no-results-string"},u.l("noResultFor",r.$$("span",{className:"coveo-highlight"},l).el.outerHTML)));f=r.$$("div",{className:"coveo-query-summary-cancel-last"},u.l("CancelLastAction"));f.on("click",function(){n.usageAnalytics.logCustomEvent(h.analyticsActionCauseList.noResultsBack,{},n.root);n.usageAnalytics.logSearchEvent(h.analyticsActionCauseList.noResultsBack,{});n.lastKnownGoodState?(n.queryStateModel.reset(),n.queryStateModel.setMultiple(n.lastKnownGoodState),r.$$(n.root).trigger(p.QuerySummaryEvents.cancelLastAction),n.queryController.executeQuery()):history.back()});e=r.$$("div",{className:"coveo-query-summary-search-tips-info"});e.text(u.l("SearchTips"));i=r.$$("ul");o=r.$$("li");o.text(u.l("CheckSpelling"));s=r.$$("li");(s.text(u.l("TryUsingFewerKeywords")),i.el.appendChild(o.el),i.el.appendChild(s.el),this.queryStateModel.atLeastOneFacetIsActive())&&(c=r.$$("li"),c.text(u.l("SelectFewerFilters")),i.el.appendChild(c.el));this.options.enableSearchTips?(t&&this.textContainer.appendChild(t.el),this.textContainer.appendChild(f.el),this.textContainer.appendChild(e.el),this.textContainer.appendChild(i.el)):(t&&this.textContainer.appendChild(t.el),this.textContainer.appendChild(f.el))},t}(l.Component);f.ID="QuerySummary";f.options={enableSearchTips:e.ComponentOptions.buildBooleanOption({defaultValue:!0}),onlyDisplaySearchTips:e.ComponentOptions.buildBooleanOption({defaultValue:!1})};t.QuerySummary=f;v.Initialization.registerAutoCreateComponent(f)},function(n,t){"use strict";var i=function(){function n(){}return n}();i.cancelLastAction="cancelLastAction";t.QuerySummaryEvents=i},function(n,t,i){"use strict";var s=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},h=i(103),o=i(107),c=i(45),r=i(59),e=i(72),l=i(52),a=i(111),u=i(14),f=function(n){function t(i,r,u){var f=n.call(this,i,t.ID,u)||this;return f.element=i,f.options=r,f.isOpened=!1,f.options=o.ComponentOptions.initComponentOptions(i,t,r),f.bind.onRootElement(c.InitializationEvents.afterInitialization,function(){return f.init()}),f}return s(t,n),t.prototype.open=function(){var n=this;this.isOpened=!0;null!=this.menu&&r.$$(this.menu).detach();this.menu=this.buildMenu();r.$$(this.menu).on("mouseleave",function(){return n.mouseleave()});r.$$(this.menu).on("mouseenter",function(){return n.mouseenter()});e.PopupUtils.positionPopup(this.menu,this.element,this.root,this.getPopupPositioning(),this.root)},t.prototype.close=function(){this.isOpened=!1;null!=this.menu&&(r.$$(this.menu).detach(),this.menu=null)},t.prototype.init=function(){var n=this,i,t,f;this.searchInterface.isNewDesign()?(i=r.$$("span",{className:"coveo-settings-square"}).el,t=r.$$("span",{className:"coveo-settings-squares"}).el,u.times(3,function(){return t.appendChild(i.cloneNode())}),this.element.appendChild(t)):(f=r.$$("span",{className:"coveo-settings-icon"}).el,this.element.appendChild(f));r.$$(this.element).on("click",function(){n.isOpened?n.close():n.open()});r.$$(this.element).on("mouseleave",function(){return n.mouseleave()});r.$$(this.element).on("mouseenter",function(){return n.mouseenter()})},t.prototype.buildMenu=function(){var i=this,t=r.$$("div",{className:"coveo-settings-advanced-menu"}).el,n={settings:this,menuData:[]};return r.$$(this.root).trigger(l.SettingsEvents.settingsPopulateMenu,n),u.each(n.menuData,function(f){var e=r.$$("div",{className:"coveo-settings-item "+f.className,title:u.escape(f.tooltip||"")}).el;e.appendChild(r.$$("div",{className:"coveo-icon"}).el);e.appendChild(r.$$("div",{className:"coveo-settings-text"},u.escape(f.text)).el);r.$$(e).on("click",function(){i.close();u.each(n.menuData,function(n){n.onClose&&n.onClose()});f.onOpen()});t.appendChild(e)}),t},t.prototype.mouseleave=function(){var n=this;clearTimeout(this.closeTimeout);this.closeTimeout=setTimeout(function(){n.close()},this.options.menuDelay)},t.prototype.mouseenter=function(){clearTimeout(this.closeTimeout)},t.prototype.getPopupPositioning=function(){return{horizontal:e.HorizontalAlignment.INNERRIGHT,vertical:e.VerticalAlignment.BOTTOM,verticalOffset:8}},t}(h.Component);f.ID="Settings";f.options={menuDelay:o.ComponentOptions.buildNumberOption({defaultValue:300,min:0})};t.Settings=f;a.Initialization.registerAutoCreateComponent(f)},function(n,t,i){"use strict";var s=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},o=i(103),h=i(48),c=i(52),e=i(12),r=i(59),u=i(35),l=i(13),a=i(111),f=function(n){function t(i,r,f){var e=n.call(this,i,t.ID,f)||this;return e.element=i,e.options=r,e.dialogBoxContent=e.buildContent(),i.appendChild(e.dialogBoxContent),e.bind.onRootElement(h.QueryEvents.querySuccess,function(n){return e.handleProcessNewQueryResults(n)}),e.bind.onRootElement(c.SettingsEvents.settingsPopulateMenu,function(n){n.menuData.push({className:"coveo-share-query",text:u.l("ShareQuery"),onOpen:function(){return e.open()},onClose:function(){return e.close()}})}),e}return s(t,n),t.prototype.open=function(){r.$$(this.element).addClass("coveo-share-query-opened")},t.prototype.close=function(){r.$$(this.element).removeClass("coveo-share-query-opened")},t.prototype.getLinkToThisQuery=function(){return this.linkToThisQuery.value},t.prototype.setLinkToThisQuery=function(n){this.linkToThisQuery.value=n},t.prototype.getCompleteQuery=function(){return this.completeQuery.value},t.prototype.setCompleteQuery=function(n){this.completeQuery.value=n},t.prototype.handleProcessNewQueryResults=function(n){e.Assert.exists(n);e.Assert.exists(n.results);var t=n.query;this.linkToThisQuery.value=window.location.href;this.completeQuery.value=l.Utils.trim(this.outputIfNotNull(t.q)+" "+this.outputIfNotNull(t.aq)+" "+this.outputIfNotNull(t.cq));this.logger.trace("Received query results from new query",t)},t.prototype.outputIfNotNull=function(n){return n?"("+n+")":""},t.prototype.buildContent=function(){var f=this,n=r.$$("div",{className:"coveo-share-query-summary-info"}).el,t,i;return n.appendChild(r.$$("span",{className:"coveo-query-summary-info-title"},u.l("ShareQuery")).el),t=r.$$("div",{className:"coveo-share-query-summary-info-close"}).el,t.appendChild(r.$$("span").el),r.$$(t).on("click",function(){return f.close()}),n.appendChild(t),i=r.$$("div",{className:"coveo-share-query-summary-info-boxes"}).el,this.linkToThisQuery=r.$$("input",{type:"text",className:"coveo-share-query-summary-info-input"}).el,r.$$(this.linkToThisQuery).on("click",function(){return f.linkToThisQuery.select()}),this.completeQuery=r.$$("input").el,this.completeQuery.setAttribute("type","text"),r.$$(this.completeQuery).addClass("coveo-share-query-summary-info-input"),i.appendChild(this.buildTextBoxWithLabel(u.l("Link")+":",this.linkToThisQuery)),i.appendChild(this.buildTextBoxWithLabel(u.l("CompleteQuery")+":",this.completeQuery)),n.appendChild(i),o.Component.pointElementsToDummyForm(n),n},t.prototype.buildTextBoxWithLabel=function(n,t){var u=r.$$("span",{className:"coveo-share-query-summary-info-label"}),i;return u.text(n),i=r.$$("div").el,i.appendChild(u.el),i.appendChild(t),i},t.create=function(n,i,r){return e.Assert.exists(n),new t(n,i,r)},t}(o.Component);f.ID="ShareQuery";f.options={};t.ShareQuery=f;a.Initialization.registerAutoCreateComponent(f)},function(n,t,i){"use strict";var v=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},y=i(103),l=i(211),s=i(107),h=i(12),e=i(13),r=i(59),p=i(98),u=i(101),c=i(48),w=i(111),b=i(112),a=i(69),f=i(14),o=function(n){function t(i,f,o){var l=n.call(this,i,t.ID,o)||this,v;return l.element=i,l.options=f,l.options=s.ComponentOptions.initComponentOptions(i,t,f),h.Assert.isLargerOrEqualsThan(1,l.options.sortCriteria.length),l.bind.onQueryState(p.MODEL_EVENTS.CHANGE_ONE,u.QUERY_STATE_ATTRIBUTES.SORT,function(n){return l.handleQueryStateChanged(n)}),l.bind.onRootElement(c.QueryEvents.querySuccess,function(n){return l.handleQuerySuccess(n)}),l.bind.onRootElement(c.QueryEvents.buildingQuery,function(n){return l.handleBuildingQuery(n)}),l.bind.onRootElement(c.QueryEvents.queryError,function(n){return l.handleQueryError(n)}),v=function(){return l.handleClick()},l.bind.on(l.element,"click",v),l.bind.on(l.element,"keyup",a.KeyboardUtils.keypressAction(a.KEYBOARD.ENTER,v)),l.element.setAttribute("tabindex","0"),e.Utils.isNonEmptyString(l.options.caption)&&r.$$(l.element).text(l.options.caption),l.isToggle()&&(l.element.innerHTML+='<span class="coveo-icon" />'),l.updateAppearance(),l}return v(t,n),t.prototype.select=function(n){if(n)this.currentCriteria=f.find(this.options.sortCriteria,function(t){return t.direction==n});else if(e.Utils.exists(this.currentCriteria)){var t=f.indexOf(this.options.sortCriteria,this.currentCriteria);h.Assert.check(t>=0);this.currentCriteria=this.options.sortCriteria[(t+1)%this.options.sortCriteria.length]}else this.currentCriteria=this.options.sortCriteria[0];this.queryStateModel.set(u.QueryStateModel.attributesEnum.sort,this.currentCriteria.toString())},t.prototype.enable=function(){r.$$(this.element).removeClass("coveo-tab-disabled");this.update();n.prototype.enable.call(this)},t.prototype.disable=function(){r.$$(this.element).addClass("coveo-tab-disabled");n.prototype.disable.call(this)},t.prototype.getCurrentCriteria=function(){return this.currentCriteria},t.prototype.match=function(n){return f.any(this.options.sortCriteria,function(t){return n==t.toString()})},t.prototype.handleQueryStateChanged=function(){this.update()},t.prototype.update=function(){var n=this.queryStateModel.get(u.QueryStateModel.attributesEnum.sort),t;e.Utils.isNonEmptyString(n)?(t=l.SortCriteria.parse(n),this.currentCriteria=f.find(this.options.sortCriteria,function(n){return t.equals(n)})):this.currentCriteria=null;this.updateAppearance()},t.prototype.handleBuildingQuery=function(n){h.Assert.exists(n);var t=this.queryStateModel.get(u.QueryStateModel.attributesEnum.sort);(t==u.QueryStateModel.defaultAttributes.sort||this.isSelected())&&this.currentCriteria&&this.currentCriteria.putInQueryBuilder(n.queryBuilder)},t.prototype.handleQuerySuccess=function(n){0==n.results.results.length?r.$$(this.element).addClass("coveo-sort-hidden"):r.$$(this.element).removeClass("coveo-sort-hidden")},t.prototype.handleQueryError=function(){r.$$(this.element).addClass("coveo-sort-hidden")},t.prototype.handleClick=function(){var n=this,t=this.currentCriteria;this.select();t!=this.currentCriteria&&this.queryController.deferExecuteQuery({beforeExecuteQuery:function(){return n.usageAnalytics.logSearchEvent(b.analyticsActionCauseList.resultsSort,{resultsSortBy:n.currentCriteria.sort+n.currentCriteria.direction})}})},t.prototype.isToggle=function(){return this.options.sortCriteria.length>1},t.prototype.isSelected=function(){return e.Utils.exists(this.currentCriteria)},t.prototype.updateAppearance=function(){if(r.$$(this.element).toggleClass("coveo-selected",this.isSelected()),this.isToggle()){var n=this.currentCriteria?this.currentCriteria.direction:this.options.sortCriteria[0].direction;r.$$(this.element).toggleClass("coveo-ascending","ascending"==n)}},t}(y.Component);o.ID="Sort";o.options={sortCriteria:s.ComponentOptions.buildCustomListOption(function(n){return f.map(n,function(n){return"string"==typeof n?l.SortCriteria.parse(n):n})},{required:!0}),caption:s.ComponentOptions.buildLocalizedStringOption({required:!0})};t.Sort=o;w.Initialization.registerAutoCreateComponent(o)},function(n,t,i){"use strict";var s=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},h=i(103),c=i(107),u=i(12),l=i(48),f=i(59),e=i(112),a=i(101),v=i(111),r=i(14),o=function(n){function t(i,r,f,e){var o=n.call(this,i,t.ID,f)||this;return o.element=i,o.options=r,o.bindings=f,o._window=e,o._window=o._window||window,o.options=c.ComponentOptions.initComponentOptions(i,t,r),u.Assert.exists(i),u.Assert.exists(o.options),o.notifications=[],o.bind.onRootElement(l.QueryEvents.querySuccess,o.handleProcessNewQueryResults),o}return s(t,n),t.prototype.handleProcessNewQueryResults=function(n){var t=this,i;return u.Assert.exists(n),u.Assert.exists(n.results),f.$$(this.element).empty(),this.notifications.length=0,i=!1,void 0===n.results.triggers?void f.$$(this.element).toggleClass("coveo-visible",i):(this.executeTriggers(n.results.triggers,"notify",function(n){t.usageAnalytics.logCustomEvent(e.analyticsActionCauseList.triggerNotify,{notification:n.content},t.element);t.notifications.push(n.content);t.element.appendChild(f.$$("div",{className:"coveo-trigger-notify"},n.content).el);i=!0}),this.executeTriggers(n.results.triggers,"redirect",function(n){t.usageAnalytics.logCustomEvent(e.analyticsActionCauseList.triggerRedirect,{redirectedTo:n.content},t.element);t._window.location.replace(n.content)},!0),this.executeTriggers(n.results.triggers,"query",function(n){t.queryStateModel.set(a.QueryStateModel.attributesEnum.q,n.content);t.queryController.executeQuery({beforeExecuteQuery:function(){t.usageAnalytics.logCustomEvent(e.analyticsActionCauseList.triggerQuery,{query:n.content},t.element)}})},!0),this.executeTriggers(n.results.triggers,"execute",function(i){var u,f;try{u=t._window[""+i.content.name];"function"==typeof u?(f=r.object(r.map(i.content.params,function(n,t){return["param"+(t+1),n]})),f.element=t.element,t.usageAnalytics.logCustomEvent(e.analyticsActionCauseList.triggerExecute,{executed:i.content.name},t.element),u.apply(t._window,[f])):t.logger.error("A trigger tried to call the function '"+i.content.name+"', which doesn't exist.",t,n.query,i)}catch(u){t.logger.error("A trigger called the function '"+i.content.name+"', which threw an error.",t,n.query,i)}}),void f.$$(this.element).toggleClass("coveo-visible",i))},t.prototype.executeTriggers=function(n,t,i,u){void 0===u&&(u=!1);var f=r.filter(n,function(n){return n.type==t}),e=r.take(f,u?1:Number.MAX_VALUE);r.each(e,i)},t}(h.Component);o.ID="Triggers";o.options={};t.Triggers=o;v.Initialization.registerAutoCreateComponent(o)},function(n,t,i){"use strict";var u=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},f=i(103),e=i(107),o=i(13),s=i(48),h=i(111),c=i(59),l=i(14),r=function(n){function t(i,r,u){var f=n.call(this,i,t.ID,u)||this;if(f.element=i,f.options=r,f.options=e.ComponentOptions.initComponentOptions(i,t,r),"script"===f.element.tagName.toLowerCase()){try{f.content=o.Utils.decodeHTMLEntities(c.$$(f.element).text())}catch(n){return f}l.isUndefined(f.content)||""==f.content||f.bind.onRootElement(s.QueryEvents.buildingQuery,f.handleBuildingQuery)}return f}return u(t,n),t.prototype.handleBuildingQuery=function(n){n.queryBuilder.advancedExpression.add(this.content)},t}(f.Component);r.ID="RecommendationQuery";r.options={};t.RecommendationQuery=r;h.Initialization.registerAutoCreateComponent(r)},function(n,t,i){"use strict";var h=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},f=i(103),u=i(107),e=i(12),o=i(111),s=i(59),c=i(14),r=function(n){function t(i,r,f,o){var s=n.call(this,i,t.ID,f)||this,h;return(s.element=i,s.options=r,s.bindings=f,s.result=o,s.options=u.ComponentOptions.initComponentOptions(i,t,r),s.result=s.result||s.resolveResult(),e.Assert.exists(s.result),null!=s.options.condition)?(h=new Function("obj","with(obj||{}){return "+s.options.condition+"}"),h(s.result)&&s.initialize()):s.initialize(),s}return h(t,n),t.prototype.initialize=function(){var n=this;if(null!=this.options.template){var i=this.searchInterface.options,r={options:i,bindings:this.bindings,result:this.result},u=s.$$(this.element).parents(f.Component.computeCssClassName(t));c.each(u,function(t){var i=t.cloneNode(),r;s.$$(i).empty();r=i.outerHTML;e.Assert.check(r.indexOf(n.element.outerHTML)===-1,"TemplateLoader cannot load a template into itself.")});this.element.innerHTML=this.options.template.instantiateToString(this.result,{checkCondition:!1,responsiveComponents:this.bindings?this.bindings.searchInterface.responsiveComponents:null});o.Initialization.automaticallyCreateComponentsInside(this.element,r)}},t}(f.Component);r.ID="TemplateLoader";r.options={template:u.ComponentOptions.buildTemplateOption(),condition:u.ComponentOptions.buildStringOption()};t.TemplateLoader=r;o.Initialization.registerAutoCreateComponent(r)},function(n,t,i){"use strict";var f=i(60),r=i(59),u=i(14),e=function(){function n(n,t,i){this.structure=n;this.onSelect=t;this.onTabPress=i}return n.prototype.buildOmniboxElement=function(n,t){var i,f,e;return 0!=n.length&&((i=r.$$("div").el,this.structure.header)&&(f=this.buildElementHeader(),i.appendChild(f)),e=this.buildRowElements(n,t),u.each(e,function(n){i.appendChild(n)})),i},n.prototype.buildElementHeader=function(){return r.$$("div",void 0,this.structure.header.template({headerTitle:this.structure.header.title})).el},n.prototype.buildRowElements=function(n,t){var i=this,e=[];return u.each(n,function(n){var u=r.$$("div",void 0,i.structure.row({rawValue:n.value,data:f.DomUtils.highlightElement(n.value,t.completeQueryExpression.word)})).el;r.$$(u).on("click",function(){i.onSelect.call(i,n.value,t)});r.$$(u).on("keyboardSelect",function(){i.onSelect.call(i,n.value,t)});r.$$(u).on("tabSelect",function(){i.onTabPress.call(i,n.value,t)});e.push(u)}),e},n}();t.SuggestionForOmnibox=e},function(n,t,i){"use strict";var h=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},c=i(245),f=i(107),l=i(103),a=i(12),v=i(46),y=i(48),p=i(35),o=i(101),s=i(112),w=i(111),u=i(59),b=i(106),r=i(14),e=function(n){function t(i,e,o){var s=n.call(this,i,t.ID,o)||this,h,l,a;return s.options=e,s.partialQueries=[],s.lastSuggestions=[],s.resultsToBuildWith=[],s.options&&"omniboxSuggestionOptions"in s.options&&(s.options=r.extend(s.options,s.options.omniboxSuggestionOptions)),s.options=f.ComponentOptions.initComponentOptions(i,t,s.options),h=function(n){var t=u.$$("div",{className:"magic-box-suggestion coveo-omnibox-selectable coveo-top-analytics-suggestion-row"});return n.data&&(t.el.innerHTML=n.data),t.el.outerHTML},s.options.onSelect=s.options.onSelect||s.onRowSelection,s.searchInterface.isNewDesign()?l={row:h}:(a=function(){var n=u.$$("div",{className:"coveo-top-analytics-suggestion-header"}),i=u.$$("span",{className:"coveo-icon-top-analytics"}),t=u.$$("span",{className:"coveo-caption"});return s.options.headerTitle&&t.text(s.options.headerTitle),n.append(i.el),n.append(t.el),n.el.outerHTML},l={header:{template:a,title:s.options.headerTitle},row:h}),s.suggestionForOmnibox=new c.SuggestionForOmnibox(l,function(n,t){s.options.onSelect.call(s,n,t)},function(n,t){s.onRowTab.call(s,n,t)}),s.bind.onRootElement(v.OmniboxEvents.populateOmnibox,function(n){return s.handlePopulateOmnibox(n)}),s.bind.onRootElement(y.QueryEvents.querySuccess,function(){return s.partialQueries=[]}),s}return h(t,n),t.prototype.selectSuggestion=function(n){if(this.currentlyDisplayedSuggestions)if(isNaN(n))this.currentlyDisplayedSuggestions[n]&&u.$$(this.currentlyDisplayedSuggestions[n].element).trigger("click");else{var t=r.findWhere(this.currentlyDisplayedSuggestions,{pos:n});t&&u.$$(t.element).trigger("click")}},t.prototype.handlePopulateOmnibox=function(n){var t=this,i;a.Assert.exists(n);i=new Promise(function(i){var f=t.usageAnalytics.getTopQueries({pageSize:t.options.numberOfSuggestions,queryText:n.completeQueryExpression.word});f.then(function(f){t.resultsToBuildWith=r.map(f,function(n){return{value:n}});t.lastSuggestions=f;r.isEmpty(t.resultsToBuildWith)||""==n.completeQueryExpression.word||t.partialQueries.push(n.completeQueryExpression.word);var e=t.suggestionForOmnibox.buildOmniboxElement(t.resultsToBuildWith,n);t.currentlyDisplayedSuggestions={};e&&r.map(u.$$(e).findAll(".coveo-omnibox-selectable"),function(n,i){t.currentlyDisplayedSuggestions[u.$$(n).text()]={element:n,pos:i}});i({element:e,zIndex:t.options.omniboxZIndex})});f.catch(function(){i({element:void 0})})});n.rows.push({deferred:i})},t.prototype.onRowSelection=function(n,t){t.clear();t.closeOmnibox();this.queryStateModel.set(o.QueryStateModel.attributesEnum.q,n);this.usageAnalytics.logSearchEvent(this.getOmniboxAnalyticsEventCause(),{partialQueries:this.cleanCustomData(this.partialQueries),suggestionRanking:r.indexOf(r.pluck(this.resultsToBuildWith,"value"),n),suggestions:this.cleanCustomData(this.lastSuggestions),partialQuery:t.completeQueryExpression.word});this.queryController.executeQuery()},t.prototype.onRowTab=function(n,t){t.clear();t.closeOmnibox();this.queryStateModel.set(o.QueryStateModel.attributesEnum.q,""+n);this.usageAnalytics.logCustomEvent(this.getOmniboxAnalyticsEventCause(),{partialQueries:this.cleanCustomData(this.partialQueries),suggestionRanking:r.indexOf(r.pluck(this.resultsToBuildWith,"value"),n),suggestions:this.cleanCustomData(this.lastSuggestions),partialQuery:t.completeQueryExpression.word},this.element)},t.prototype.cleanCustomData=function(n,t){var i,u;return void 0===t&&(t=256),n=r.compact(r.filter(n,function(n,t,i){return 0===t||n!==i[t-1]})),n=r.map(n,function(n){return n.replace(/;/g,"")}),i=[],r.reduceRight(n,function(n,r){var u=n+r.length;return u<=t&&i.push(r),u},0),n=i.reverse(),u=n.join(";"),u.length>=256?this.cleanCustomData(n,t-10):n.join(";")},t.prototype.getOmniboxAnalyticsEventCause=function(){return this.searchInterface instanceof b.StandaloneSearchInterface?s.analyticsActionCauseList.omniboxFromLink:s.analyticsActionCauseList.omniboxAnalytics},t}(l.Component);e.ID="AnalyticsSuggestions";e.options={omniboxZIndex:f.ComponentOptions.buildNumberOption({defaultValue:52,min:0}),headerTitle:f.ComponentOptions.buildLocalizedStringOption({defaultValue:p.l("SuggestedQueries")}),numberOfSuggestions:f.ComponentOptions.buildNumberOption({defaultValue:5,min:1})};t.AnalyticsSuggestions=e;w.Initialization.registerAutoCreateComponent(e)},function(n,t,i){"use strict";var c=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},l=i(245),a=i(103),u=i(107),o=i(12),v=i(13),y=i(46),s=i(101),p=i(111),h=i(112),w=i(35),r=i(59),e=i(14),f=function(n){function t(i,f,s){var h=n.call(this,i,t.ID,s)||this,c,a,p;return h.options=f,h.options&&"omniboxSuggestionOptions"in h.options&&(h.options=e.extend(h.options,h.options.omniboxSuggestionOptions)),h.options=u.ComponentOptions.initComponentOptions(i,t,f),o.Assert.check(v.Utils.isCoveoField(h.options.field),h.options.field+" is not a valid field"),h.options.onSelect=h.options.onSelect||h.onRowSelection,a=function(n){var t=r.$$("div",{className:"magic-box-suggestion coveo-omnibox-selectable coveo-top-field-suggestion-row"});return n.data&&(t.el.innerHTML=n.data),t.el.outerHTML},h.searchInterface.isNewDesign()?c={row:a}:(p=function(){var n=r.$$("div",{className:"coveo-top-field-suggestion-header"}),i=r.$$("span",{className:"coveo-icon-top-field"}),t=r.$$("span",{className:"coveo-caption"});return h.options.headerTitle&&t.text(h.options.headerTitle),n.append(i.el),n.append(t.el),n.el.outerHTML},c={header:{template:p,title:h.options.headerTitle},row:a}),h.suggestionForOmnibox=new l.SuggestionForOmnibox(c,function(n,t){h.options.onSelect.call(h,n,t)},function(n,t){h.onRowTab(n,t)}),h.bind.onRootElement(y.OmniboxEvents.populateOmnibox,function(n){return h.handlePopulateOmnibox(n)}),h}return c(t,n),t.prototype.selectSuggestion=function(n){if(this.currentlyDisplayedSuggestions)if(isNaN(n))this.currentlyDisplayedSuggestions[n]&&r.$$(this.currentlyDisplayedSuggestions[n].element).trigger("click");else{var t=e.findWhere(this.currentlyDisplayedSuggestions,{pos:n});t&&r.$$(t.element).trigger("click")}},t.prototype.handlePopulateOmnibox=function(n){var t=this,i,u;o.Assert.exists(n);i=n.completeQueryExpression.word;u=new Promise(function(u){t.queryController.getEndpoint().listFieldValues(t.buildListFieldValueRequest(i)).then(function(i){var f=t.suggestionForOmnibox.buildOmniboxElement(i,n);t.currentlyDisplayedSuggestions={};f?(e.map(r.$$(f).findAll(".coveo-omnibox-selectable"),function(n,i){t.currentlyDisplayedSuggestions[r.$$(n).text()]={element:n,pos:i}}),u({element:f,zIndex:t.options.omniboxZIndex})):u({element:void 0})}).catch(function(){u({element:void 0})})});n.rows.push({deferred:u})},t.prototype.onRowSelection=function(n,t){t.clear();t.closeOmnibox();this.queryStateModel.set(s.QueryStateModel.attributesEnum.q,n);this.usageAnalytics.logSearchEvent(h.analyticsActionCauseList.omniboxField,{});this.queryController.executeQuery()},t.prototype.onRowTab=function(n,t){t.clear();t.closeOmnibox();this.queryStateModel.set(s.QueryStateModel.attributesEnum.q,""+n);this.usageAnalytics.logCustomEvent(h.analyticsActionCauseList.omniboxField,{},this.element)},t.prototype.buildListFieldValueRequest=function(n){return{field:this.options.field,ignoreAccents:!0,sortCriteria:"occurrences",maximumNumberOfValues:this.options.numberOfSuggestions,patternType:"Wildcards",pattern:"*"+n+"*",queryOverride:this.options.queryOverride}},t}(a.Component);f.ID="FieldSuggestions";f.options={field:u.ComponentOptions.buildFieldOption({required:!0}),queryOverride:u.ComponentOptions.buildStringOption({defaultValue:""}),omniboxZIndex:u.ComponentOptions.buildNumberOption({defaultValue:51,min:0}),headerTitle:u.ComponentOptions.buildLocalizedStringOption({defaultValue:w.l("SuggestedResults")}),numberOfSuggestions:u.ComponentOptions.buildNumberOption({defaultValue:5,min:1}),onSelect:u.ComponentOptions.buildCustomOption(function(){return null})};t.FieldSuggestions=f;p.Initialization.registerAutoCreateComponent(f)},function(n,t,i){"use strict";var h=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},c=i(103),u=i(107),l=i(12),s=i(48),a=i(45),v=i(52),y=i(60),r=i(59),p=i(111),o=i(35),f=i(23),w=i(14),e=function(n){function t(i,r,f,e){void 0===r&&(r={});var h=n.call(this,i,t.ID,f)||this;return h.element=i,h.options=r,h._window=e,h.options=u.ComponentOptions.initComponentOptions(i,t,r),l.Assert.exists(h.options.name),h.handlers=[],h._window=h._window||window,h.redirectCount=0,h.bind.onRootElement(s.QueryEvents.buildingCallOptions,h.handleBuildingCallOptions),h.bind.onRootElement(s.QueryEvents.queryError,h.handleQueryError),h.bind.onRootElement(a.InitializationEvents.nuke,h.handleNuke),h.bind.onRootElement(v.SettingsEvents.settingsPopulateMenu,function(n){n.menuData.push({text:o.l("Reauthenticate",h.options.caption),className:"coveo-authentication-provider",onOpen:function(){return h.authenticateWithProvider()}})}),h}return h(t,n),t.prototype.handleBuildingCallOptions=function(n){n.options.authentication.push(this.options.name)},t.prototype.handleQueryError=function(n){var t=n.error;t.isMissingAuthentication&&t.provider===this.options.name&&this.redirectCount<2&&this.redirectCount!==-1?(++this.redirectCount,this.authenticateWithProvider()):(this.logger.error("The AuthenticationProvider is in a redirect loop. This may be due to a back-end configuration problem."),this.redirectCount=-1)},t.prototype.authenticateWithProvider=function(){this.options.useIFrame?this.authenticateWithIFrame():this.redirectToAuthenticationProvider()},t.prototype.redirectToAuthenticationProvider=function(){this.logger.info("Redirecting to authentication provider "+this.options.name);this._window.location.href=this.getAuthenticationProviderUriForRedirect()},t.prototype.authenticateWithIFrame=function(){var i,n,t;this.logger.info("Using iframe to retrieve authentication for provider "+this.options.name);n=r.$$("iframe",{src:this.getAuthenticationProviderUriForIFrame()}).el;i=this.options.showIFrame?this.createPopupForVisibleIFrame(n):this.createPopupForWaitMessage(n);t=this.createHandler(i,n);r.$$(this._window).one("message",t);this.handlers.push(t)},t.prototype.createHandler=function(n,t){var i=this;return function(){n.close();r.$$(t).detach();i.logger.info("Got authentication for provider "+i.options.name+"; retrying query.");i.queryController.executeQuery()}},t.prototype.handleNuke=function(){var n=this;w.each(this.handlers,function(t){return r.$$(n._window).off("message",t)})},t.prototype.createPopupForWaitMessage=function(n){var t=r.$$("div",{className:"coveo-waiting-for-authentication-popup"},y.DomUtils.getBasicLoadingAnimation()).el;return r.$$(n).hide(),document.body.appendChild(n),f.ModalBox.open(t,{title:o.l("Authenticating",this.options.caption)}),f.ModalBox},t.prototype.createPopupForVisibleIFrame=function(n){r.$$(n).addClass("coveo-authentication-iframe");var t=r.$$("div",{},n).el;return f.ModalBox.open(t,{title:o.l("Authenticating",this.options.caption),className:"coveo-authentication-popup"}),f.ModalBox},t.prototype.getAuthenticationProviderUriForRedirect=function(){return this.queryController.getEndpoint().getAuthenticationProviderUri(this.options.name,this._window.location.href,void 0)},t.prototype.getAuthenticationProviderUriForIFrame=function(){return this.queryController.getEndpoint().getAuthenticationProviderUri(this.options.name,void 0,"success")},t}(c.Component);e.ID="AuthenticationProvider";e.options={name:u.ComponentOptions.buildStringOption(),caption:u.ComponentOptions.buildStringOption({postProcessing:function(n,t){return n||t.name}}),useIFrame:u.ComponentOptions.buildBooleanOption({defaultValue:!1,attrName:"data-use-iframe"}),showIFrame:u.ComponentOptions.buildBooleanOption({defaultValue:!0,attrName:"data-show-iframe",depend:"useIFrame"})};t.AuthenticationProvider=e;p.Initialization.registerAutoCreateComponent(e)},function(n,t,i){"use strict";var l=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},a=i(103),o=i(107),h=i(12),c=i(13),v=i(111),y=i(62),s=i(35),f=i(69),p=i(101),r=i(59),w=i(112),u=i(14),e=function(n){function t(i,f,e,s){var l=n.call(this,i,t.ID,e)||this,a;return(l.element=i,l.options=f,l.result=s,l.options=o.ComponentOptions.initComponentOptions(i,t,f),l.result=s||l.resolveResult(),h.Assert.exists(l.componentOptionsModel),h.Assert.exists(l.result),!l.options.field)?(l.logger.error("You must specify a field to the ResultTagging component"),l):(a=c.Utils.getFieldValue(l.result,l.options.field),a?(l.tags=a.split(";"),l.tags=u.map(l.tags,function(n){return n.trim()})):l.tags=[],l.tagZone=r.$$("div",{className:"coveo-result-tagging-tag-zone"}).el,i.appendChild(l.tagZone),i.appendChild(l.buildTagIcon()),l.autoCompleteZone=r.$$("div",{className:"coveo-result-tagging-auto-complete-zone"}).el,i.appendChild(l.autoCompleteZone),l.autoCompleteZone.appendChild(l.buildTextBox()),l.autoCompleteZone.appendChild(l.buildAddIcon()),l.autoCompleteZone.appendChild(l.buildClearIcon()),l.buildExistingTags(),l)}return l(t,n),t.prototype.buildExistingTags=function(){var n=this;this.tags&&u.each(this.tags,function(t){n.tagZone.appendChild(n.buildTagValue(t))})},t.prototype.buildTagIcon=function(){var f=this,n=r.$$("div",{className:"coveo-result-tagging-add-tag"}),i=r.$$("span",{className:"coveo-result-tagging-add-tag-text"}),t;return i.text(s.l("EnterTag")),t=r.$$("span",{className:"coveo-result-tagging-add-tag-icon"}),t.on("click",function(){u.defer(function(){f.focusOnTextBox()},20)}),n.el.appendChild(t.el),n.append(i.el),n.setAttribute("title",s.l("EnterTag")),n.el},t.prototype.focusOnTextBox=function(){this.textBox.focus()},t.prototype.buildTagValue=function(n){var u=this,t=r.$$("div",{className:"coveo-result-tagging-coveo-tag"}),i;return t.el.appendChild(this.buildShortenedTagWithTitle(n)),i=r.$$("span",{className:"coveo-result-tagging-delete-icon"}),t.el.appendChild(i.el),i.on("click",function(){u.doRemoveTag(t.el,n.toLowerCase())}),t.el},t.prototype.buildShortenedTagWithTitle=function(n){var i=y.StringUtils.removeMiddle(n,16,"..."),t=r.$$("a",{title:n,href:"javascript:void(0);"});return t.text(i),this.bindFacetEventOnValue(t.el,n),t.el},t.prototype.buildTextBox=function(){var n=this;return this.textBox=r.$$("input",{type:"text",className:"coveo-add-tag-textbox",placeholder:s.l("EnterTag")}).el,this.autoCompletePopup=r.$$("div",{className:t.autoCompleteClass}).el,this.autoCompleteZone.appendChild(this.autoCompletePopup),this.manageAutocompleteAutoHide(),r.$$(this.textBox).on("keyup",function(t){t.keyCode==f.KEYBOARD.UP_ARROW||t.keyCode==f.KEYBOARD.DOWN_ARROW||t.keyCode==f.KEYBOARD.ENTER?n.manageUpDownEnter(t.keyCode):f.KeyboardUtils.isArrowKeyPushed(t.keyCode)||n.populateSuggestions();r.$$(n.element).removeClass("coveo-error")}),r.$$(this.textBox).on("click",function(){n.populateSuggestions()}),this.textBox},t.prototype.buildAddIcon=function(){var i=this,n=r.$$("div",{className:"coveo-result-tagging-add-tag-tick-icon"}),t=r.$$("span");return t.on("click",function(){i.doAddTag()}),n.el.appendChild(t.el),n.el},t.prototype.buildClearIcon=function(){var i=this,n=r.$$("div",{className:"coveo-result-tagging-clear-icon"}),t=r.$$("span");return t.on("click",function(){i.textBox.value=""}),n.el.appendChild(t.el),n.el},t.prototype.bindFacetEventOnValue=function(n,t){var i=this,e=p.QueryStateModel.getFacetId(this.options.field),f=this.queryStateModel.get(e),o=this.componentStateModel.get(e),s=u.filter(o,function(n){return!n.disabled}).length>0;null!=f&&s&&(r.$$(n).on("click",function(){u.contains(f,t)?i.queryStateModel.set(e,u.without(f,t)):i.queryStateModel.set(e,u.union(f,[t]));i.queryController.deferExecuteQuery({beforeExecuteQuery:function(){return i.usageAnalytics.logSearchEvent(w.analyticsActionCauseList.documentTag,{facetId:i.options.field,facetValue:t})}})}),u.contains(f,t)&&r.$$(n).addClass("coveo-selected"),r.$$(n).addClass("coveo-clickable"))},t.prototype.clearPopup=function(){r.$$(this.autoCompletePopup).hide();r.$$(this.autoCompletePopup).empty()},t.prototype.showPopup=function(){r.$$(this.autoCompletePopup).show()},t.prototype.populateSuggestions=function(){var n=this,t=this.queryController.getEndpoint(),i=this.textBox.value,r={field:this.options.field,ignoreAccents:!0,sortCriteria:"occurences",maximumNumberOfValues:this.options.suggestBoxSize,queryOverride:"@uri",pattern:this.buildRegEx(i),patternType:"RegularExpression"};t.listFieldValues(r).then(function(t){n.clearPopup();u.each(t,function(t){n.autoCompletePopup.appendChild(n.buildSelectableValue(t.lookupValue))});n.showPopup();n.autoCompletePopup.style.width=n.textBox.offsetWidth+" px"})},t.prototype.manageAutocompleteAutoHide=function(){var i,n=this;r.$$(this.textBox).on("mouseover",function(){clearTimeout(i)});r.$$(this.autoCompletePopup).on("mouseout",function(u){r.$$(u.target).hasClass(t.autoCompleteClass)&&(i=setTimeout(function(){n.clearPopup()},n.options.autoCompleteTimer))});r.$$(this.autoCompletePopup).on("mouseenter",function(){clearTimeout(i)});r.$$(this.element).on("mouseenter",function(){n.clearPopup();r.$$(n.element).addClass("coveo-opened")});r.$$(r.$$(this.element).closest(".CoveoResult")).on("mouseleave",function(){n.clearPopup();""==n.textBox.value&&r.$$(n.element).removeClass("coveo-opened")});r.$$(r.$$(this.element).closest(".CoveoResult")).on("focusout",function(t){""!=n.textBox.value&&r.$$(t.target).closest(".CoveoResult")!=r.$$(n.element).closest(".CoveoResult")&&r.$$(n.element).addClass("coveo-error")});r.$$(r.$$(this.element).closest(".CoveoResult")).on("focusin",function(){r.$$(n.element).removeClass("coveo-error")})},t.prototype.buildRegEx=function(n){var t=this;return"(?=.*"+n+")"+u.map(this.tags,function(n){return t.buildTermToExclude(n)}).join("")+".*"},t.prototype.buildTermToExclude=function(n){return"(?!^"+n+"$)"},t.prototype.manageUpDownEnter=function(n){var i=r.$$(this.element).findAll(".coveo-selectable"),t,u;if(n==f.KEYBOARD.ENTER)return void this.doAddTag();i.length>0&&(t=this.computeNextIndex(n,i),t=Math.max(0,t),t=Math.min(i.length-1,t),u=r.$$(i[t]),u.addClass("coveo-selected"),this.textBox.value=u.text())},t.prototype.computeNextIndex=function(n,t){var i=0;return u.each(t,function(t,u){r.$$(t).hasClass("coveo-selected")&&(n==f.KEYBOARD.UP_ARROW?i=u-1:n==f.KEYBOARD.DOWN_ARROW&&(i=u+1),r.$$(t).removeClass("coveo-selected"))}),i},t.prototype.buildSelectableValue=function(n){var i=this,t=r.$$("div",{className:"coveo-selectable"});return t.el.appendChild(this.buildShortenedTagWithTitle(n)),t.on("click",function(){i.doAddTagWithValue(n)}),t.el},t.prototype.doRemoveTag=function(n,t){var i=this,f={fieldName:this.options.field,fieldValue:t,doAdd:!1,uniqueId:this.result.uniqueId};this.queryController.getEndpoint().tagDocument(f).then(function(){i.tags.splice(u.indexOf(i.tags,t),1);r.$$(n).detach()})},t.prototype.doAddTagWithValue=function(n){var t=this;u.each(n.split(","),function(n){t.doAddSingleTagValue(n)})},t.prototype.doAddSingleTagValue=function(n){var t=this,i;if(this.clearPopup(),u.indexOf(this.tags,n)>-1)return void r.$$(this.element).addClass("coveo-error");this.tags.push(n);i={fieldName:this.options.field,fieldValue:n,doAdd:!0,uniqueId:this.result.uniqueId};this.queryController.getEndpoint().tagDocument(i).then(function(){t.tagZone.appendChild(t.buildTagValue(n));t.textBox.value="";r.$$(t.element).removeClass("coveo-error")}).catch(function(){t.tags=u.without(t.tags,u.findWhere(t.tags,n))})},t.prototype.doAddTag=function(){var n=c.Utils.trim(this.textBox.value.toLowerCase());this.doAddTagWithValue(n)},t}(a.Component);e.ID="ResultTagging";e.autoCompleteClass="coveo-result-tagging-auto-complete";e.options={field:o.ComponentOptions.buildFieldOption({match:function(n){return"Tag"==n.type},required:!0}),suggestBoxSize:o.ComponentOptions.buildNumberOption({defaultValue:5,min:0}),autoCompleteTimer:o.ComponentOptions.buildNumberOption({defaultValue:2e3,min:0})};e.AUTO_COMPLETE_CLASS="coveo-result-tagging-auto-complete";t.ResultTagging=e;v.Initialization.registerAutoCreateComponent(e)},function(n,t,i){"use strict";var a=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},h=i(103),u=i(107),v=i(105),y=i(70),p=i(233),w=i(235),c=i(47),l=i(112),b=i(111),o=i(12),r=i(35),f=i(59),s=i(14),e=function(n){function t(i,r,e){var s=n.call(this,i,t.ID,e)||this;return s.element=i,s.options=r,s.bindings=e,s.options=u.ComponentOptions.initComponentOptions(i,t,r),s.preferencesPanel=f.$$(s.element).closest(h.Component.computeCssClassName(p.PreferencesPanel)),s.preferencePanelLocalStorage=new y.LocalStorageUtils(t.ID),o.Assert.exists(s.componentOptionsModel),o.Assert.exists(window.localStorage),o.Assert.exists(s.preferencesPanel),s.preferences=s.preferencePanelLocalStorage.load()||{},u.ComponentOptions.initComponentOptions(s.element,t,s.preferences),s.updateComponentOptionsModel(),s.bind.on(s.preferencesPanel,c.PreferencesPanelEvents.savePreferences,function(){return s.save()}),s.bind.on(s.preferencesPanel,c.PreferencesPanelEvents.exitPreferencesWithoutSave,function(){return s.exitWithoutSave()}),s.buildTitle(),s.buildCheckboxesInput(),s}return a(t,n),t.prototype.save=function(){this.fromCheckboxInputToPreferences();this.logger.info("Saving preferences",this.preferences);this.preferencePanelLocalStorage.save(this.preferences);this.updateComponentOptionsModel()},t.prototype.exitWithoutSave=function(){this.fromPreferencesToCheckboxInput()},t.prototype.updateComponentOptionsModel=function(){this.componentOptionsModel.set(v.ComponentOptionsModel.attributesEnum.resultLink,this.preferences)},t.prototype.buildTitle=function(){var n=f.$$("div",{className:"coveo-title"},r.l("LinkOpeningSettings"));this.element.appendChild(n.el)},t.prototype.buildCheckboxesInput=function(){var i=this,u=[],n,e;this.options.enableOpenInOutlook&&u.push({label:r.l("OpenInOutlookWhenPossible")});this.options.enableOpenInNewWindow&&u.push({label:r.l("AlwaysOpenInNewWindow")});this.preferencePanelCheckboxInput=new w.PreferencesPanelCheckboxInput(u,t.ID);n=f.$$("div",{className:"coveo-choices-container"});n.el.appendChild(this.preferencePanelCheckboxInput.build());e=n.findAll("input");s.each(e,function(n){f.$$(n).on("change",function(n){i.fromPreferenceChangeEventToUsageAnalyticsLog(n);i.save();i.queryController.executeQuery()})});this.element.appendChild(n.el);this.fromPreferencesToCheckboxInput()},t.prototype.fromCheckboxInputToPreferences=function(){var n=this.preferencePanelCheckboxInput.getSelecteds();this.preferences={openInOutlook:!1,alwaysOpenInNewWindow:!1};s.contains(n,r.l("OpenInOutlookWhenPossible"))&&(this.preferences.openInOutlook=!0);s.contains(n,r.l("AlwaysOpenInNewWindow"))&&(this.preferences.alwaysOpenInNewWindow=!0)},t.prototype.fromPreferencesToCheckboxInput=function(){this.preferences.openInOutlook&&this.preferencePanelCheckboxInput.select(r.l("OpenInOutlookWhenPossible"));this.preferences.alwaysOpenInNewWindow&&this.preferencePanelCheckboxInput.select(r.l("AlwaysOpenInNewWindow"))},t.prototype.fromPreferenceChangeEventToUsageAnalyticsLog=function(n){var t=n.target.checked?"selected":"unselected",i=n.target.value;this.usageAnalytics.logCustomEvent(l.analyticsActionCauseList.preferencesChange,{preferenceName:i,preferenceType:t},this.element);this.usageAnalytics.logSearchEvent(l.analyticsActionCauseList.preferencesChange,{preferenceName:i,preferenceType:t})},t}(h.Component);e.ID="ResultsPreferences";e.options={enableOpenInOutlook:u.ComponentOptions.buildBooleanOption({defaultValue:!1}),enableOpenInNewWindow:u.ComponentOptions.buildBooleanOption({defaultValue:!0})};t.ResultsPreferences=e;b.Initialization.registerAutoCreateComponent(e)},function(n,t,i){"use strict";var e=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},o=i(103),s=i(107),h=i(13),c=i(48),u=i(59),l=i(111),f=i(14),r=function(n){function t(i,r,f){var e=n.call(this,i,t.ID,f)||this;if(e.element=i,e.options=r,e.bindings=f,e.options=s.ComponentOptions.initComponentOptions(i,t,r),"script"==e.element.tagName.toLowerCase())try{e.content=JSON.parse(h.Utils.decodeHTMLEntities(u.$$(e.element).text()))}catch(n){try{e.content=JSON.parse(u.$$(e.element).text())}catch(n){return e}}return e.bind.onRootElement(c.QueryEvents.buildingQuery,function(n){return e.handleBuildingQuery(n)}),e}return e(t,n),t.prototype.getContextKeys=function(){return this.content?f.keys(this.content):[]},t.prototype.getContextValue=function(n){return this.content[n].replace(/\{\!([^\}]+)\}/g,function(n,i){return null!=Coveo.context&&i in Coveo.context?Coveo.context[i]:i==t.CURRENT_URL?window.location.href:""})},t.prototype.handleBuildingQuery=function(n){var t=this,i=this.getContextKeys();f.each(i,function(i){n.queryBuilder.addContextValue(i,t.getContextValue(i))})},t}(o.Component);r.ID="PipelineContext";r.CURRENT_URL="CurrentUrl";t.PipelineContext=r;l.Initialization.registerAutoCreateComponent(r)},function(n,t,i){"use strict";var s=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},h=i(103),r=i(59),c=i(35),l=i(184),a=i(46),u=i(107),v=i(48),e=i(112),y=i(12),p=i(13),w=i(111),o=i(14),f=function(n){function t(i,r,f){var e=n.call(this,i,r,f,t.ID)||this;return e.element=i,e.options=r,e.bindings=f,e.options=u.ComponentOptions.initComponentOptions(i,t,r),e.setupOptions(),e.bind.onRootElement(a.OmniboxEvents.populateOmnibox,function(n){return e.handlePopulateOmnibox(n)}),e.bind.onRootElement(v.QueryEvents.buildingQuery,function(n){return e.handleQueryOverride(n)}),e}return s(t,n),t.prototype.buildResults=function(n){var t=this;return o.map(n.results,function(n){var i=t.buildResult(n);return r.$$(i).addClass("coveo-omnibox-selectable"),r.$$(i).on("keyboardSelect",function(){t.options.onSelect.call(t,n,i,t.lastOmniboxRequest.omniboxObject)}),t.autoCreateComponentsInsideResult(i,n),i})},t.prototype.renderResults=function(n,t){var u=this,i;(void 0===t&&(t=!1),this.lastOmniboxRequest)&&(i=r.$$("div").el,i.appendChild(r.$$("div",{className:"coveo-omnibox-result-list-header"},r.$$("span",{className:"coveo-icon-omnibox-result-list"}).el,r.$$("span",{className:"coveo-caption"},this.options.headerTitle||c.l("SuggestedResults")).el).el),o.each(n,function(n){i.appendChild(n);u.triggerNewResultDisplayed(h.Component.getResult(n),n)}),this.triggerNewResultsDisplayed(),this.lastOmniboxRequest.resolve({element:i,zIndex:this.options.omniboxZIndex}))},t.prototype.setupOptions=function(){this.logger.info("Disabling infinite scroll for OmniboxResultList",this);this.options.enableInfiniteScroll=!1;this.options.onSelect=this.options.onSelect||this.onRowSelection},t.prototype.handlePopulateOmnibox=function(n){var t=this,i=new Promise(function(i){t.queryController.executeQuery({beforeExecuteQuery:function(){return t.usageAnalytics.logSearchAsYouType(e.analyticsActionCauseList.searchboxSubmit,{})},searchAsYouType:!0});t.lastOmniboxRequest={omniboxObject:n,resolve:i}});n.rows.push({deferred:i})},t.prototype.handleQueryOverride=function(n){y.Assert.exists(n);p.Utils.isNonEmptyString(this.options.queryOverride)&&n.queryBuilder.constantExpression.add(this.options.queryOverride)},t.prototype.onRowSelection=function(n){this.usageAnalytics.logClickEvent(e.analyticsActionCauseList.documentOpen,{author:n.raw.author},n,this.root);window.location.href=n.clickUri},t}(l.ResultList);f.ID="OmniboxResultList";f.options={omniboxZIndex:u.ComponentOptions.buildNumberOption({defaultValue:51,min:16}),headerTitle:u.ComponentOptions.buildStringOption(),queryOverride:u.ComponentOptions.buildStringOption(),onSelect:u.ComponentOptions.buildCustomOption(function(){return null})};t.OmniboxResultList=f;w.Initialization.registerAutoCreateComponent(f)},function(n,t,i){"use strict";var h=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},f=i(103),e=i(107),c=i(98),o=i(101),l=i(13),s=i(128),a=i(12),v=i(111),r=i(59),y=i(14),u=function(n){function t(i,u,f){var s=n.call(this,i,t.ID,f)||this,l,h;return s.element=i,s.options=u,s.options=e.ComponentOptions.initComponentOptions(i,t,u),l=s.queryStateModel.getEventName(c.Model.eventTypes.changeOne+o.QueryStateModel.attributesEnum.t),(s.bind.onRootElement(l,s.handleTabChange),s.options.tabSectionToOpen)&&(h=r.$$(s.root).find(s.options.tabSectionToOpen),r.$$(h).addClass("coveo-targeted-by-current-tab"),r.$$(s.element).addClass("coveo-targeting-tab-section"),s.bind.on(s.element,"click",function(){var t=r.$$(s.root).find(".coveo-glass"),n;t&&(n=r.$$(t),n.toggleClass("coveo-active-glass"),n.toggleClass("coveo-active-glass-for-current-tab"));r.$$(s.element).toggleClass("coveo-opening-tab-section");r.$$(h).toggleClass("coveo-opened-by-current-tab");r.$$(s.element).hasClass("coveo-opening-tab-section")?(h.style.zIndex="1001",s.element.style.zIndex="1001"):(h.style.zIndex=void 0,s.element.style.zIndex=void 0)})),s}return h(t,n),t.prototype.handleTabChange=function(){var u=this,t=this.queryStateModel.get(o.QueryStateModel.attributesEnum.t),n,i;l.Utils.isNonEmptyString(t)?(n=!1,i=r.$$(this.root).findAll(f.Component.computeSelectorForType(s.Tab.ID)),y.each(i,function(i){var r=f.Component.get(i,s.Tab);r.options.id==t&&(u.element.innerHTML=r.element.innerHTML,n=!0)}),a.Assert.check(n,"Cannot find the currently active tab")):r.$$(this.element).hide()},t}(f.Component);u.ID="CurrentTab";u.options={tabSectionToOpen:e.ComponentOptions.buildStringOption()};t.CurrentTab=u;v.Initialization.registerAutoCreateComponent(u)},function(n,t,i){"use strict";var h=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},o=i(184),e=i(107),s=i(44),c=i(49),l=i(111),a=i(45),r=i(59),u=i(14),f=function(n){function t(i,r,u,f){void 0===f&&(f=o.ResultList.ID);var s=n.call(this,i,r,u,t.ID)||this;return s.element=i,s.options=r,s.columnResultsArray=[],s.imagesInCurrentRow=[],s.resultIndex=0,s.lastRowHeight=0,s.options=e.ComponentOptions.initComponentOptions(i,t,r),s.lastRowHeight=s.options.heightThreshold,s.bind.onRootElement(c.ResultListEvents.newResultsDisplayed,s.handleProcessNewResultsDisplayed),s.bind.onRootElement(a.InitializationEvents.nuke,s.handleNuke),s.bindWindowResizeEvent(),s}return h(t,n),t.prototype.getResultsElement=function(){return r.$$(this.element).findAll(".CoveoResult")},t.prototype.getResultsElementImages=function(){return r.$$(this.element).findAll(".CoveoResult img")},t.prototype.getResultsContainerDiv=function(){return r.$$(this.element).find("div")},t.prototype.bindWindowResizeEvent=function(){window.addEventListener("resize",this.resize)},t.prototype.handleNuke=function(){window.removeEventListener("resize",this.resize)},t.prototype.resize=function(){var n;clearTimeout(n);n=setTimeout(this.retrieveLayoutMethod(),250)},t.prototype.handleProcessNewResultsDisplayed=function(){this.disabled?r.$$(this.element).hide():r.$$(this.element).show();this.onImageProxy(this.retrieveLayoutMethod())},t.prototype.addTransitionAllToElement=function(n){u.defer(function(){u.each(n,function(n){r.$$(n).addClass("coveo-transition-all")})})},t.prototype.retrieveLayoutMethod=function(){var n=this;if(!this.disabled){if(this.options.layoutType.toLowerCase()==t.columnLayoutTypeStr)return function(){return n.setupColumns()};if(this.options.layoutType.toLowerCase()==t.rowLayoutTypeStr)return function(){return n.setupRows()}}return function(){}},t.prototype.onImageProxy=function(n){u.each(this.getResultsElement(),function(n){0==r.$$(n).findAll("img").length&&r.$$(n).detach()});var t=this.getResultsElementImages(),i=0,f=function(f){r.$$(f).height()>0?(null==r.$$(f).getAttribute("width")&&null==r.$$(f).getAttribute("height")&&(r.$$(f).setAttribute("height",r.$$(f).height().toString()),r.$$(f).setAttribute("width",r.$$(f).width().toString())),i++,i==t.length&&n()):(r.$$(f.parentElement).detach(),t=u.filter(t,function(n){return!n.isEqualNode(f)}),i==t.length&&n())};u.each(t,function(n){n.src&&n.complete||r.$$(n).height()>0?f(n):r.$$(n).one("load",function(){return f(n)})})},t.prototype.getHorizontalMargin=function(n){var t=r.$$(n);return parseInt(t.css("margin-left"))+parseInt(t.css("margin-right"))},t.prototype.getVerticalMargin=function(n){var t=r.$$(n);return parseInt(t.css("margin-top"))+parseInt(t.css("margin-bottom"))},t.prototype.setupColumns=function(){var u=r.$$(this.getResultsContainerDiv()).width(),f=this.getResultsElement(),i=this.options.columnWidth,n=this.getHorizontalMargin(f[0]),e=Math.floor(u/(i+n)),t;for(this.columnResultsArray=[],t=0;t<e;t++)this.columnResultsArray.push(n);this.positionColumns(i,n);r.$$(this.element).trigger(s.ImageResultListEvents.imageResultsLayoutComplete,{});this.options.enableInfiniteScroll&&this.adjustNumberOfResults()},t.prototype.positionColumns=function(n,t){var i=this,r=this.getResultsElement();u.each(r,function(r){var f=u.min(i.columnResultsArray),e=i.columnResultsArray.indexOf(f),o=t+e*(n+t);r.style.left=o+"px";r.style.top=f+"px";r.style.width=n+"px";i.columnResultsArray[e]=f+r.offsetHeight+t});this.setResultsContainerHeight(u.max(this.columnResultsArray));this.addTransitionAllToElement(r)},t.prototype.setResultsContainerHeight=function(n){r.$$(this.element).setAttribute("height",Math.ceil(n).toString())},t.prototype.setupRows=function(){var n=this.getResultsElement(),u=r.$$(this.element).width(),t,i;for(this.resultIndex=0,t=0;this.resultIndex<n.length;)this.imagesInCurrentRow=[],i=this.getCurrentRowHeight(n,u),this.setCurrentRowImagesDimensions(n,i,t),t+=i;this.setResultsContainerHeight(t);r.$$(this.element).trigger(s.ImageResultListEvents.imageResultsLayoutComplete,{});this.addTransitionAllToElement(n);this.options.enableInfiniteScroll&&this.adjustNumberOfResults()},t.prototype.getCurrentRowHeight=function(n,t){for(var r,u=0,i=null;this.resultIndex<n.length&&(null==i||i>=this.options.heightThreshold);)r=this.getImageDimensionsFromResult(n[this.resultIndex]),null!=r&&(u+=r.width/r.height,i=t/u),this.imagesInCurrentRow.push(this.resultIndex),this.resultIndex++;return i>this.options.heightThreshold&&(i=this.lastRowHeight),this.lastRowHeight=i,i},t.prototype.getImageDimensionsFromResult=function(n){var t=r.$$(n).find("img"),i=parseInt(t.getAttribute("height")),u=parseInt(t.getAttribute("width"));return{height:i,width:u}},t.prototype.setCurrentRowImagesDimensions=function(n,t,i){var f=this,e=0;u.each(this.imagesInCurrentRow,function(u){var o=r.$$(n[u]).find("img"),h=parseInt(o.getAttribute("width")),c=parseInt(o.getAttribute("height")),s=h*t/c,l=f.getHorizontalMargin(o),a=f.getVerticalMargin(o);o.setAttribute("height",Math.round(t-a).toString());o.setAttribute("width",Math.round(s-l).toString());o.setAttribute("left",Math.round(e).toString());o.setAttribute("top",Math.round(i).toString());e+=s})},t.prototype.adjustNumberOfResults=function(){var t=Number(r.$$(this.element).getAttribute("data-height"));0==u.isNumber(t)&&(t=r.$$(this.element).height());t<r.$$(this.options.infiniteScrollContainer).height()&&n.prototype.hasPotentiallyMoreResultsToDisplay.call(this)&&n.prototype.displayMoreResults.call(this,this.options.infiniteScrollPageSize)},t}(o.ResultList);f.ID="ImageResultList";f.rowLayoutTypeStr="row";f.columnLayoutTypeStr="column";f.options={layoutType:e.ComponentOptions.buildStringOption({defaultValue:"row",postProcessing:function(n){return n.toLowerCase()}}),heightThreshold:e.ComponentOptions.buildNumberOption({defaultValue:250,min:16}),columnWidth:e.ComponentOptions.buildNumberOption({defaultValue:225,min:16})};t.ImageResultList=f;l.Initialization.registerAutoCreateComponent(f)},function(n,t,i){"use strict";function u(){void 0==window.Coveo&&(window.Coveo={});void 0==window.Coveo._&&(window.Coveo._=r,t.underscoreInstance=window.Coveo._)}var r=i(14);t.underscoreInstance=r;u();window._=r},function(n,t,i){"use strict";var h=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},c=i(103),e=i(107),l=i(48),s=i(40),a=i(52),v=i(111),u=i(35),r=i(59),y=i(257),p=i(112),w=i(238),f=i(14),o=function(n){function t(i,r,u){var f=n.call(this,i,t.ID,u)||this;return f.element=i,f.options=r,f.inputs=[],f.inputFactory=new y.AdvancedSearchInputFactory(f.queryController.getEndpoint()),f.externalSections=[],f.options=e.ComponentOptions.initComponentOptions(i,t,r),f.bindEvents(),f.buildComponent(),f}return h(t,n),t.prototype.executeAdvancedSearch=function(){this.usageAnalytics.logSearchEvent(p.analyticsActionCauseList.advancedSearch,{});this.queryController.executeQuery()},t.prototype.reset=function(){f.each(this.inputs,function(n){n.reset()})},t.prototype.buildComponent=function(){this.buildTitle();this.buildCloseButton();this.buildContent();r.$$(this.element).hide()},t.prototype.buildTitle=function(){var n=r.$$("div",{className:"coveo-advanced-search-panel-title"},u.l("AdvancedSearch")).el;r.$$(this.element).append(n)},t.prototype.buildCloseButton=function(){var t=this,n=r.$$("div",{className:"coveo-advanced-search-panel-close"},r.$$("span",{className:"coveo-icon"}).el);n.on("click",function(){return t.close()});r.$$(this.element).append(n.el)},t.prototype.buildContent=function(){var t=this,i=r.$$("div"),n=[];this.options.includeKeywords&&n.push(this.getKeywordsSection());this.options.includeDate&&n.push(this.getDateSection());this.options.includeDocument&&n.push(this.getDocumentSection());this.externalSections=[];r.$$(this.root).trigger(s.AdvancedSearchEvents.buildingAdvancedSearch,{sections:this.externalSections,executeQuery:function(n){return t.queryController.executeQuery(n)}});f.each(this.externalSections,function(n){i.append(t.buildExternalSection(n))});f.each(n,function(n){i.append(t.buildInternalSection(n))});r.$$(this.element).append(i.el)},t.prototype.open=function(){r.$$(this.element).show()},t.prototype.close=function(){r.$$(this.element).hide()},t.prototype.getKeywordsSection=function(){var t=u.l("Keywords"),n=[];return n.push(this.inputFactory.createAllKeywordsInput()),n.push(this.inputFactory.createExactKeywordsInput()),n.push(this.inputFactory.createAnyKeywordsInput()),n.push(this.inputFactory.createNoneKeywordsInput()),{name:t,inputs:n}},t.prototype.getDateSection=function(){var t=u.l("Date"),n=[];return n.push(this.inputFactory.createAnytimeDateInput()),n.push(this.inputFactory.createInTheLastDateInput()),n.push(this.inputFactory.createBetweenDateInput()),{name:t,inputs:n}},t.prototype.getDocumentSection=function(){var t=u.l("Document"),n=[];return n.push(this.inputFactory.createSimpleFieldInput(u.l("FileType"),"@filetype")),n.push(this.inputFactory.createSimpleFieldInput(u.l("Language"),"@language")),n.push(this.inputFactory.createSizeInput()),n.push(this.inputFactory.createAdvancedFieldInput(u.l("Title"),"@title")),n.push(this.inputFactory.createAdvancedFieldInput(u.l("Author"),"@author")),{name:t,inputs:n}},t.prototype.buildExternalSection=function(n){var t=this.buildSectionTitle(n);return this.inputs=f.union(this.inputs,n.inputs),t.appendChild(n.content),t},t.prototype.buildInternalSection=function(n){var u=this,i=this.buildSectionTitle(n),t=[];return f.each(n.inputs,function(n){t.push(u.buildDefaultInput(n))}),this.inputs=f.union(this.inputs,t),f.each(t,function(n){r.$$(i).append(n.build())}),i},t.prototype.buildSectionTitle=function(n){var t=r.$$("div",{className:"coveo-advanced-search-section"}),i=r.$$("div",{className:"coveo-advanced-search-section-title"});return i.text(n.name),t.append(i.el),t.el},t.prototype.buildDefaultInput=function(n){return this.isPrebuiltInput(n)?this.inputFactory.create(n.name,n.parameters):n},t.prototype.isPrebuiltInput=function(n){return void 0!==n.name},t.prototype.bindEvents=function(){var n=this;this.bind.onRootElement(a.SettingsEvents.settingsPopulateMenu,function(t){t.menuData.push({text:u.l("AdvancedSearch"),className:"coveo-advanced-search",onOpen:function(){return n.open()},onClose:function(){return n.close()}})});this.bind.onRootElement(l.QueryEvents.buildingQuery,function(t){f.each(n.externalSections,function(n){n.updateQuery&&n.updateQuery(n.inputs,t.queryBuilder)});f.each(n.inputs,function(n){n.updateQuery&&n.updateQuery(t.queryBuilder)})});this.bind.onRootElement(s.AdvancedSearchEvents.executeAdvancedSearch,function(){n.executeAdvancedSearch()});this.bind.onRootElement(w.QuerySummaryEvents.cancelLastAction,function(){n.reset()})},t}(c.Component);o.ID="AdvancedSearch";o.options={includeKeywords:e.ComponentOptions.buildBooleanOption({defaultValue:!0}),includeDate:e.ComponentOptions.buildBooleanOption({defaultValue:!0}),includeDocument:e.ComponentOptions.buildBooleanOption({defaultValue:!0})};t.AdvancedSearch=o;v.Initialization.registerAutoCreateComponent(o)},function(n,t,i){"use strict";var r=i(258),u=i(261),f=i(262),e=i(263),o=i(264),s=i(267),h=i(270),c=i(384),l=i(386),a=i(387),v=function(){function n(n){this.endpoint=n}return n.prototype.create=function(n,t){switch(n){case"keywords_all":return this.createAllKeywordsInput();case"keywords_exact":return this.createExactKeywordsInput();case"keywords_any":return this.createAnyKeywordsInput();case"keywords_none":return this.createNoneKeywordsInput();case"date_any":return this.createAnytimeDateInput();case"date_last":return this.createInTheLastDateInput();case"date_between":return this.createBetweenDateInput();case"document_field":return this.createSimpleFieldInput(t.name,t.field);case"document_advanced_field":return this.createAdvancedFieldInput(t.name,t.field);case"document_size":return this.createSizeInput();default:return null}},n.prototype.createAllKeywordsInput=function(){return new r.AllKeywordsInput},n.prototype.createExactKeywordsInput=function(){return new u.ExactKeywordsInput},n.prototype.createAnyKeywordsInput=function(){return new f.AnyKeywordsInput},n.prototype.createNoneKeywordsInput=function(){return new e.NoneKeywordsInput},n.prototype.createAnytimeDateInput=function(){return new o.AnytimeDateInput},n.prototype.createInTheLastDateInput=function(){return new s.InTheLastDateInput},n.prototype.createBetweenDateInput=function(){return new h.BetweenDateInput},n.prototype.createSimpleFieldInput=function(n,t){return new c.SimpleFieldInput(n,t,this.endpoint)},n.prototype.createAdvancedFieldInput=function(n,t){return new l.AdvancedFieldInput(n,t)},n.prototype.createSizeInput=function(){return new a.SizeInput},n}();t.AdvancedSearchInputFactory=v},function(n,t,i){"use strict";var r=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},u=i(259),f=i(35),e=function(n){function t(){return n.call(this,f.l("AllTheseWords"))||this}return r(t,n),t}(u.KeywordsInput);t.AllKeywordsInput=e},function(n,t,i){"use strict";var r=i(260),u=i(40),f=i(59),e=function(){function n(n){this.inputName=n}return n.prototype.reset=function(){this.clear()},n.prototype.build=function(){return this.input=new r.TextInput(this.onChange.bind(this),this.inputName),this.input.getElement()},n.prototype.setValue=function(n){this.input.setValue(n)},n.prototype.getValue=function(){return this.input.getValue()},n.prototype.clear=function(){this.input.setValue("")},n.prototype.updateQuery=function(n){var t=this.getValue();t&&n.advancedExpression.add(t)},n.prototype.onChange=function(){this.input&&f.$$(this.input.getElement()).trigger(u.AdvancedSearchEvents.executeAdvancedSearch)},n}();t.KeywordsInput=e},function(n,t,i){"use strict";var r=i(59),u=i(69),f=function(){function n(n,t){void 0===n&&(n=function(){});this.onChange=n;this.name=t;this.lastQueryText="";this.buildContent()}return n.prototype.getElement=function(){return this.element},n.prototype.getValue=function(){return r.$$(this.element).find("input").value},n.prototype.setValue=function(n){r.$$(this.element).find("input").value=n},n.prototype.reset=function(){r.$$(this.element).find("input").value=""},n.prototype.build=function(){return this.element},n.prototype.buildContent=function(){var f=this,n=r.$$("div",{className:"coveo-input"}),t=r.$$("input",{type:"text"}),i;(t.on(["keydown","blur"],function(n){"blur"!=n.type&&n.keyCode!=u.KEYBOARD.ENTER||f.triggerChange()}),t.el.required=!0,n.append(t.el),this.name)&&(i=r.$$("label"),i.text(this.name),n.append(i.el));this.element=n.el},n.prototype.getInput=function(){return r.$$(this.element).find("input")},n.prototype.triggerChange=function(){this.lastQueryText!=this.getInput().value&&(this.onChange(),this.lastQueryText=this.getInput().value)},n}();t.TextInput=f},function(n,t,i){"use strict";var r=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},u=i(259),f=i(35),e=function(n){function t(){return n.call(this,f.l("ExactPhrase"))||this}return r(t,n),t.prototype.getValue=function(){var t=n.prototype.getValue.call(this);return t?'"'+t+'"':""},t}(u.KeywordsInput);t.ExactKeywordsInput=e},function(n,t,i){"use strict";var r=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},u=i(259),f=i(35),e=i(14),o=function(n){function t(){return n.call(this,f.l("AnyOfTheseWords"))||this}return r(t,n),t.prototype.getValue=function(){var i=n.prototype.getValue.call(this),r=i.split(" "),t="";return e.each(r,function(n){t+=n+" OR "}),t=t.substr(0,t.length-4)},t}(u.KeywordsInput);t.AnyKeywordsInput=o},function(n,t,i){"use strict";var r=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},u=i(259),f=i(35),e=i(14),o=function(n){function t(){return n.call(this,f.l("NoneOfTheseWords"))||this}return r(t,n),t.prototype.getValue=function(){var i=n.prototype.getValue.call(this),t="",r;return i&&(r=i.split(" "),e.each(r,function(n){t+=" NOT "+n}),t=t.substr(1)),t},t}(u.KeywordsInput);t.NoneKeywordsInput=o},function(n,t,i){"use strict";var u=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},f=i(265),e=i(35),r=i(59),o=i(40),s=function(n){function t(){return n.call(this,e.l("Anytime"))||this}return u(t,n),t.prototype.build=function(){var i=this,t;return n.prototype.build.call(this),t=this.getRadio(),t.checked=!0,r.$$(t).on("change",function(){r.$$(i.element).trigger(o.AdvancedSearchEvents.executeAdvancedSearch)}),this.element},t}(f.DateInput);t.AnytimeDateInput=s},function(n,t,i){"use strict";var f=i(40),r=i(59),e=i(266),u=i(14),o=function(){function n(n){this.inputName=n;this.buildContent()}return n.prototype.reset=function(){this.radio.reset()},n.prototype.build=function(){return this.element},n.prototype.getElement=function(){return this.element},n.prototype.getValue=function(){return""},n.prototype.isSelected=function(){return this.getRadio().checked},n.prototype.updateQuery=function(n){var t=this.getValue();t&&n.advancedExpression.add(this.getValue())},n.prototype.getRadio=function(){return r.$$(this.element).find("input")},n.prototype.buildContent=function(){var n=this;this.radio=new e.RadioButton(function(){n.deactivateAllInputs();n.activateSelectedInput()},this.inputName);this.element=this.radio.getElement();r.$$(this.element).addClass("coveo-advanced-search-date-input-section");r.$$(this.radio.getRadio()).addClass("coveo-advanced-search-date");r.$$(this.radio.getLabel()).addClass("coveo-advanced-search-label")},n.prototype.deactivateAllInputs=function(){var n=r.$$(this.element.parentElement).findAll("fieldset");u.each(n,function(n){n.disabled=!0})},n.prototype.activateSelectedInput=function(){var n=r.$$(this.element).findAll("fieldset");u.each(n,function(n){n.disabled=!1})},n.prototype.onChange=function(){this.element&&r.$$(this.element).trigger(f.AdvancedSearchEvents.executeAdvancedSearch)},n}();t.DateInput=o},function(n,t,i){"use strict";var r=i(59),u=function(){function n(n,t){void 0===n&&(n=function(){});this.onChange=n;this.label=t;this.buildContent()}return n.prototype.reset=function(){this.element.checked=!1},n.prototype.build=function(){return this.element},n.prototype.getElement=function(){return this.element},n.prototype.getValue=function(){return""},n.prototype.isSelected=function(){return this.getRadio().checked},n.prototype.getRadio=function(){return r.$$(this.element).find("input")},n.prototype.getLabel=function(){return r.$$(this.element).find("label")},n.prototype.buildContent=function(){var f=this,t=r.$$("div",{className:"coveo-advanced-search-radio-section"}),n=r.$$("div",{className:"coveo-radio"}),i=r.$$("input",{type:"radio",name:"coveo-advanced-search-radio-input",id:this.label}),u=r.$$("label",{className:"coveo-advanced-search-radio-input-label","for":this.label});u.text(this.label);i.on("change",function(){f.onChange()});n.append(i.el);n.append(u.el);t.append(n.el);this.element=t.el},n}();t.RadioButton=u},function(n,t,i){"use strict";var r=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},u=i(265),f=i(59),e=i(35),o=i(268),s=i(269),h=i(58),c=function(n){function t(){return n.call(this,e.l("InTheLast"))||this}return r(t,n),t.prototype.reset=function(){this.dropdown.reset();this.spinner.reset()},t.prototype.build=function(){n.prototype.build.call(this);var t=f.$$("fieldset",{className:"coveo-advanced-search-date-input"});return t.el.disabled=!0,this.spinner=new s.NumericSpinner(this.onChange.bind(this)),t.append(this.spinner.getElement()),this.dropdown=new o.Dropdown(this.onChange.bind(this),["days","months"]),this.dropdown.setId("coveo-advanced-search-in-the-last-select"),t.append(this.dropdown.getElement()),this.element.appendChild(t.el),this.element},t.prototype.getValue=function(){var i=new Date,n=this.spinner.getIntValue(),r=this.dropdown.getValue().toLowerCase(),t=new Date;return"months"==r?t.setMonth(i.getMonth()-n):t.setDate(i.getDate()-n),this.isSelected()&&n?"@date>="+h.DateUtils.dateForQuery(t):""},t}(u.DateInput);t.InTheLastDateInput=c},function(n,t,i){"use strict";var r=i(59),f=i(35),u=i(14),e=function(){function n(n,t,i,r){void 0===n&&(n=function(){});void 0===i&&(i=f.l);this.onChange=n;this.listOfValues=t;this.getDisplayValue=i;this.label=r;this.options=[];this.buildContent();this.select(0,!1);this.bindEvents()}return n.prototype.reset=function(){this.select(0,!1)},n.prototype.setId=function(n){r.$$(this.element).setAttribute("id",n)},n.prototype.open=function(){r.$$(this.element).addClass("coveo-open")},n.prototype.close=function(){r.$$(this.element).removeClass("coveo-open")},n.prototype.getElement=function(){return this.element},n.prototype.getValue=function(){return r.$$(this.element).find(".coveo-dropdown-selected-value").getAttribute("data-value")},n.prototype.select=function(n,t){void 0===t&&(t=!0);this.selectOption(this.options[n],t)},n.prototype.build=function(){return this.element},n.prototype.buildContent=function(){var t=r.$$("div",{className:"coveo-dropdown"}),n=r.$$("button",{className:"coveo-button coveo-dropdown-toggle",type:"button"});n.setAttribute("data-toggle","coveo-dropdown");this.selected=r.$$("span",{className:"coveo-dropdown-selected-value"});n.append(this.selected.el);n.append(r.$$("span",{className:"coveo-dropdown-toggle-arrow"}).el);t.append(n.el);t.append(this.buildDropdownMenu());this.element=t.el},n.prototype.selectValue=function(n){var t=this;u.each(this.options,function(i){r.$$(i).getAttribute("data-value")==n&&t.selectOption(i)})},n.prototype.selectOption=function(n,t){var u,i;void 0===t&&(t=!0);this.selectedIcon.detach();u=r.$$(n).find("span");r.$$(u).prepend(this.selectedIcon.el);i=r.$$(n).getAttribute("data-value");this.selected.setAttribute("data-value",i);this.selected.text(this.getDisplayValue(i));this.close();t&&this.onChange()},n.prototype.buildDropdownMenu=function(){var t=this,n=r.$$("ul",{className:"coveo-dropdown-menu"});return this.selectedIcon=r.$$("span",{className:"coveo-selected-icon coveo-sprites-facet-search-checkbox-hook-active"}),u.each(this.listOfValues,function(i){n.append(t.buildOption(i))}),n.el},n.prototype.buildOption=function(n){var u=this,t=r.$$("li"),i;return t.setAttribute("data-value",n),i=r.$$("span"),i.text(this.getDisplayValue(n)),t.append(i.el),t.on("click",function(){u.selectOption(t.el)}),this.options.push(t.el),t.el},n.prototype.bindEvents=function(){var n=this,t=r.$$(this.element).find("button");r.$$(this.element).on("mouseleave",function(t){setTimeout(function(){var i;i=t.currentTarget?t.currentTarget:t.target;i==n.element&&r.$$(n.element).hasClass("coveo-open")&&n.close()},300)});r.$$(t).on("click",function(){r.$$(n.element).hasClass("coveo-open")?n.close():n.open()})},n}();t.Dropdown=e},function(n,t,i){"use strict";var r=i(59),u=function(){function n(n,t,i){void 0===n&&(n=function(){});void 0===t&&(t=0);this.onChange=n;this.min=t;this.max=i;this.buildContent();this.bindEvents()}return n.prototype.reset=function(){this.getSpinnerInput().value=""},n.prototype.getElement=function(){return this.element},n.prototype.getIntValue=function(){return this.getSpinnerInput().value?parseInt(this.getSpinnerInput().value,10):this.min},n.prototype.getFloatValue=function(){return this.getSpinnerInput().value?parseFloat(this.getSpinnerInput().value):this.min},n.prototype.setValue=function(n){this.max&&n>this.max&&(n=this.max);n<this.min&&(n=this.min);this.getSpinnerInput().value=n.toString();this.onChange()},n.prototype.build=function(){return this.element},n.prototype.buildContent=function(){var n=r.$$("div",{className:"coveo-numeric-spinner"}),i=r.$$("input",{className:"coveo-advanced-search-number-input",type:"text"}),t=r.$$("span",{className:"coveo-add-on"});t.el.innerHTML='<div class="coveo-spinner-up">\n                              <i class="coveo-sprites-arrow-up"><\/i>\n                          <\/div>\n                          <div class="coveo-spinner-down">\n                              <i class="coveo-sprites-arrow-down"><\/i>\n                          <\/div>';n.append(i.el);n.append(t.el);this.element=n.el},n.prototype.bindEvents=function(){var n=this,u=r.$$(this.element).find(".coveo-spinner-up"),i,t;r.$$(u).on("click",function(){n.setValue(n.getFloatValue()+1)});i=r.$$(this.element).find(".coveo-spinner-down");r.$$(i).on("click",function(){n.setValue(n.getFloatValue()-1)});t=r.$$(this.element).find("input");r.$$(t).on("input",function(){t.value.match(/[0-9]*/)&&n.onChange()})},n.prototype.getSpinnerInput=function(){return r.$$(this.element).find(".coveo-advanced-search-number-input")},n}();t.NumericSpinner=u},function(n,t,i){"use strict";var e=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},o=i(265),r=i(271),u=i(35),f=i(59),s=function(n){function t(){var t=n.call(this,u.l("Between"))||this;return t.firstDatePicker=new r.DatePicker(t.onChange.bind(t)),t.secondDatePicker=new r.DatePicker(t.onChange.bind(t)),t}return e(t,n),t.prototype.reset=function(){this.firstDatePicker.reset();this.secondDatePicker.reset()},t.prototype.build=function(){n.prototype.build.call(this);var t=f.$$("fieldset",{className:"coveo-advanced-search-date-input"});return t.el.disabled=!0,t.append(this.firstDatePicker.getElement()),t.append(this.buildAnd()),t.append(this.secondDatePicker.getElement()),this.element.appendChild(t.el),this.element},t.prototype.getValue=function(){var t=this.firstDatePicker.getValue(),i=this.secondDatePicker.getValue(),n="";return t&&(n+="(@date>="+t+")"),i&&(n+="(@date<="+i+")"),this.isSelected()?n:""},t.prototype.buildAnd=function(){var n=f.$$("div",{className:"coveo-advanced-search-and"});return n.text(u.l("And").toLowerCase()),n.el},t}(o.DateInput);t.BetweenDateInput=s},function(n,t,i){"use strict";var r=i(59),u=i(58),f=i(272),e=function(){function n(n){void 0===n&&(n=function(){});this.onChange=n;this.wasReset=!1;this.buildContent()}return n.prototype.reset=function(){this.picker.setDate(void 0);this.wasReset=!0},n.prototype.getElement=function(){return this.element},n.prototype.getValue=function(){if(this.wasReset)return"";var n=this.picker.getDate();return n?u.DateUtils.dateForQuery(this.picker.getDate()):""},n.prototype.setValue=function(n){this.picker.setDate(n);this.wasReset=!1},n.prototype.build=function(){return this.element},n.prototype.buildContent=function(){this.element=r.$$("input",{className:"coveo-button"}).el;this.element.readOnly=!0;this.picker=new f({field:this.element,onSelect:this.onChange})},n}();t.DatePicker=e},function(n,t,i){!function(t,r){"use strict";var u;try{u=i(273)}catch(n){}n.exports=r(u)}(this,function(n){"use strict";var o="function"==typeof n,l=!!window.addEventListener,t=window.document,a=window.setTimeout,u=function(n,t,i,r){l?n.addEventListener(t,i,!!r):n.attachEvent("on"+t,i)},e=function(n,t,i,r){l?n.removeEventListener(t,i,!!r):n.detachEvent("on"+t,i)},y=function(n,i,r){var u;t.createEvent?(u=t.createEvent("HTMLEvents"),u.initEvent(i,!0,!1),u=s(u,r),n.dispatchEvent(u)):t.createEventObject&&(u=t.createEventObject(),u=s(u,r),n.fireEvent("on"+i,u))},d=function(n){return n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")},i=function(n,t){return(" "+n.className+" ").indexOf(" "+t+" ")!==-1},g=function(n,t){i(n,t)||(n.className=""===n.className?t:n.className+" "+t)},nt=function(n,t){n.className=d((" "+n.className+" ").replace(" "+t+" "," "))},v=function(n){return/Array/.test(Object.prototype.toString.call(n))},r=function(n){return/Date/.test(Object.prototype.toString.call(n))&&!isNaN(n.getTime())},tt=function(n){var t=n.getDay();return 0===t||6===t},it=function(n){return n%4==0&&n%100!=0||n%400==0},p=function(n,t){return[31,it(n)?29:28,31,30,31,30,31,31,30,31,30,31][t]},h=function(n){r(n)&&n.setHours(0,0,0,0)},c=function(n,t){return n.getTime()===t.getTime()},s=function(n,t,i){var u,f;for(u in t)f=void 0!==n[u],f&&"object"==typeof t[u]&&null!==t[u]&&void 0===t[u].nodeName?r(t[u])?i&&(n[u]=new Date(t[u].getTime())):v(t[u])?i&&(n[u]=t[u].slice(0)):n[u]=s({},t[u],i):!i&&f||(n[u]=t[u]);return n},w=function(n){return n.month<0&&(n.year-=Math.ceil(Math.abs(n.month)/12),n.month+=12),n.month>11&&(n.year+=Math.floor(Math.abs(n.month)/12),n.month-=12),n},f={field:null,bound:void 0,position:"bottom left",reposition:!0,format:"YYYY-MM-DD",defaultDate:null,setDefaultDate:!1,firstDay:0,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,onSelect:null,onOpen:null,onClose:null,onDraw:null},b=function(n,t,i){for(t+=n.firstDay;t>=7;)t-=7;return i?n.i18n.weekdaysShort[t]:n.i18n.weekdays[t]},rt=function(n){var t=[],i="false";if(n.isEmpty){if(!n.showDaysInNextAndPreviousMonths)return'<td class="is-empty"><\/td>';t.push("is-outside-current-month")}return n.isDisabled&&t.push("is-disabled"),n.isToday&&t.push("is-today"),n.isSelected&&(t.push("is-selected"),i="true"),n.isInRange&&t.push("is-inrange"),n.isStartRange&&t.push("is-startrange"),n.isEndRange&&t.push("is-endrange"),'<td data-day="'+n.day+'" class="'+t.join(" ")+'" aria-selected="'+i+'"><button class="pika-button pika-day" type="button" data-pika-year="'+n.year+'" data-pika-month="'+n.month+'" data-pika-day="'+n.day+'">'+n.day+"<\/button><\/td>"},ut=function(n,t,i){var r=new Date(i,0,1),u=Math.ceil(((new Date(i,t,n)-r)/864e5+r.getDay()+1)/7);return'<td class="pika-week">'+u+"<\/td>"},ft=function(n,t){return"<tr>"+(t?n.reverse():n).join("")+"<\/tr>"},et=function(n){return"<tbody>"+n.join("")+"<\/tbody>"},ot=function(n){var t,i=[];for(n.showWeekNumber&&i.push("<th><\/th>"),t=0;t<7;t++)i.push('<th scope="col"><abbr title="'+b(n,t)+'">'+b(n,t,!0)+"<\/abbr><\/th>");return"<thead><tr>"+(n.isRTL?i.reverse():i).join("")+"<\/tr><\/thead>"},st=function(n,t,i,r,u,f){for(var c,l,a,e=n._o,y=i===e.minYear,p=i===e.maxYear,h='<div id="'+f+'" class="pika-title" role="heading" aria-live="assertive">',w=!0,b=!0,s=[],o=0;o<12;o++)s.push('<option value="'+(i===u?o-t:12+o-t)+'"'+(o===r?' selected="selected"':"")+(y&&o<e.minMonth||p&&o>e.maxMonth?'disabled="disabled"':"")+">"+e.i18n.months[o]+"<\/option>");for(l='<div class="pika-label">'+e.i18n.months[r]+'<select class="pika-select pika-select-month" tabindex="-1">'+s.join("")+"<\/select><\/div>",v(e.yearRange)?(o=e.yearRange[0],c=e.yearRange[1]+1):(o=i-e.yearRange,c=1+i+e.yearRange),s=[];o<c&&o<=e.maxYear;o++)o>=e.minYear&&s.push('<option value="'+o+'"'+(o===i?' selected="selected"':"")+">"+o+"<\/option>");return a='<div class="pika-label">'+i+e.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+s.join("")+"<\/select><\/div>",h+=e.showMonthAfterYear?a+l:l+a,y&&(0===r||e.minMonth>=r)&&(w=!1),p&&(11===r||e.maxMonth<=r)&&(b=!1),0===t&&(h+='<button class="pika-prev'+(w?"":" is-disabled")+'" type="button">'+e.i18n.previousMonth+"<\/button>"),t===n._o.numberOfMonths-1&&(h+='<button class="pika-next'+(b?"":" is-disabled")+'" type="button">'+e.i18n.nextMonth+"<\/button>"),h+"<\/div>"},ht=function(n,t,i){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+i+'">'+ot(n)+et(t)+"<\/table>"},k=function(f){var e=this,s=e.config(f),h;e._onMouseDown=function(n){if(e._v){n=n||window.event;var t=n.target||n.srcElement;if(t)if(i(t,"is-disabled")||(!i(t,"pika-button")||i(t,"is-empty")||i(t.parentNode,"is-disabled")?i(t,"pika-prev")?e.prevMonth():i(t,"pika-next")&&e.nextMonth():(e.setDate(new Date(t.getAttribute("data-pika-year"),t.getAttribute("data-pika-month"),t.getAttribute("data-pika-day"))),s.bound&&a(function(){e.hide();s.field&&s.field.blur()},100))),i(t,"pika-select"))e._c=!0;else{if(!n.preventDefault)return n.returnValue=!1,!1;n.preventDefault()}}};e._onChange=function(n){n=n||window.event;var t=n.target||n.srcElement;t&&(i(t,"pika-select-month")?e.gotoMonth(t.value):i(t,"pika-select-year")&&e.gotoYear(t.value))};e._onKeyChange=function(n){if(n=n||window.event,e.isVisible())switch(n.keyCode){case 13:case 27:s.field.blur();break;case 37:n.preventDefault();e.adjustDate("subtract",1);break;case 38:e.adjustDate("subtract",7);break;case 39:e.adjustDate("add",1);break;case 40:e.adjustDate("add",7)}};e._onInputChange=function(t){var i;t.firedBy!==e&&(o?(i=n(s.field.value,s.format,s.formatStrict),i=i&&i.isValid()?i.toDate():null):i=new Date(Date.parse(s.field.value)),r(i)&&e.setDate(i),e._v||e.show())};e._onInputFocus=function(){e.show()};e._onInputClick=function(){e.show()};e._onInputBlur=function(){var n=t.activeElement;do if(i(n,"pika-single"))return;while(n=n.parentNode);e._c||(e._b=a(function(){e.hide()},50));e._c=!1};e._onClick=function(n){n=n||window.event;var t=n.target||n.srcElement,r=t;if(t){!l&&i(t,"pika-select")&&(t.onchange||(t.setAttribute("onchange","return;"),u(t,"change",e._onChange)));do if(i(r,"pika-single")||r===s.trigger)return;while(r=r.parentNode);e._v&&t!==s.trigger&&r!==s.trigger&&e.hide()}};e.el=t.createElement("div");e.el.className="pika-single"+(s.isRTL?" is-rtl":"")+(s.theme?" "+s.theme:"");u(e.el,"mousedown",e._onMouseDown,!0);u(e.el,"touchend",e._onMouseDown,!0);u(e.el,"change",e._onChange);u(t,"keydown",e._onKeyChange);s.field&&(s.container?s.container.appendChild(e.el):s.bound?t.body.appendChild(e.el):s.field.parentNode.insertBefore(e.el,s.field.nextSibling),u(s.field,"change",e._onInputChange),s.defaultDate||(s.defaultDate=o&&s.field.value?n(s.field.value,s.format).toDate():new Date(Date.parse(s.field.value)),s.setDefaultDate=!0));h=s.defaultDate;r(h)?s.setDefaultDate?e.setDate(h,!0):e.gotoDate(h):e.gotoDate(new Date);s.bound?(this.hide(),e.el.className+=" is-bound",u(s.trigger,"click",e._onInputClick),u(s.trigger,"focus",e._onInputFocus),u(s.trigger,"blur",e._onInputBlur)):this.show()};return k.prototype={config:function(n){var t,i,u;return this._o||(this._o=s({},f,!0)),t=s(this._o,n,!0),t.isRTL=!!t.isRTL,t.field=t.field&&t.field.nodeName?t.field:null,t.theme="string"==typeof t.theme&&t.theme?t.theme:null,t.bound=!!(void 0!==t.bound?t.field&&t.bound:t.field),t.trigger=t.trigger&&t.trigger.nodeName?t.trigger:t.field,t.disableWeekends=!!t.disableWeekends,t.disableDayFn="function"==typeof t.disableDayFn?t.disableDayFn:null,i=parseInt(t.numberOfMonths,10)||1,(t.numberOfMonths=i>4?4:i,r(t.minDate)||(t.minDate=!1),r(t.maxDate)||(t.maxDate=!1),t.minDate&&t.maxDate&&t.maxDate<t.minDate&&(t.maxDate=t.minDate=!1),t.minDate&&this.setMinDate(t.minDate),t.maxDate&&this.setMaxDate(t.maxDate),v(t.yearRange))?(u=(new Date).getFullYear()-10,t.yearRange[0]=parseInt(t.yearRange[0],10)||u,t.yearRange[1]=parseInt(t.yearRange[1],10)||u):(t.yearRange=Math.abs(parseInt(t.yearRange,10))||f.yearRange,t.yearRange>100&&(t.yearRange=100)),t},toString:function(t){return r(this._d)?o?n(this._d).format(t||this._o.format):this._d.toDateString():""},getMoment:function(){return o?n(this._d):null},setMoment:function(t,i){o&&n.isMoment(t)&&this.setDate(t.toDate(),i)},getDate:function(){return r(this._d)?new Date(this._d.getTime()):new Date},setDate:function(n,t){if(!n)return this._d=null,this._o.field&&(this._o.field.value="",y(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof n&&(n=new Date(Date.parse(n))),r(n)){var i=this._o.minDate,u=this._o.maxDate;r(i)&&n<i?n=i:r(u)&&n>u&&(n=u);this._d=new Date(n.getTime());h(this._d);this.gotoDate(this._d);this._o.field&&(this._o.field.value=this.toString(),y(this._o.field,"change",{firedBy:this}));t||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(n){var i=!0;if(r(n)){if(this.calendars){var f=new Date(this.calendars[0].year,this.calendars[0].month,1),t=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),u=n.getTime();t.setMonth(t.getMonth()+1);t.setDate(t.getDate()-1);i=u<f.getTime()||t.getTime()<u}i&&(this.calendars=[{month:n.getMonth(),year:n.getFullYear()}],"right"===this._o.mainCalendar&&(this.calendars[0].month+=1-this._o.numberOfMonths));this.adjustCalendars()}},adjustDate:function(t,i){var r,u=this.getDate(),f=864e5*parseInt(i);"add"===t?r=new Date(u.valueOf()+f):"subtract"===t&&(r=new Date(u.valueOf()-f));o&&("add"===t?r=n(u).add(i,"days").toDate():"subtract"===t&&(r=n(u).subtract(i,"days").toDate()));this.setDate(r)},adjustCalendars:function(){this.calendars[0]=w(this.calendars[0]);for(var n=1;n<this._o.numberOfMonths;n++)this.calendars[n]=w({month:this.calendars[0].month+n,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(n){isNaN(n)||(this.calendars[0].month=parseInt(n,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++;this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--;this.adjustCalendars()},gotoYear:function(n){isNaN(n)||(this.calendars[0].year=parseInt(n,10),this.adjustCalendars())},setMinDate:function(n){n instanceof Date?(h(n),this._o.minDate=n,this._o.minYear=n.getFullYear(),this._o.minMonth=n.getMonth()):(this._o.minDate=f.minDate,this._o.minYear=f.minYear,this._o.minMonth=f.minMonth,this._o.startRange=f.startRange);this.draw()},setMaxDate:function(n){n instanceof Date?(h(n),this._o.maxDate=n,this._o.maxYear=n.getFullYear(),this._o.maxMonth=n.getMonth()):(this._o.maxDate=f.maxDate,this._o.maxYear=f.maxYear,this._o.maxMonth=f.maxMonth,this._o.endRange=f.endRange);this.draw()},setStartRange:function(n){this._o.startRange=n},setEndRange:function(n){this._o.endRange=n},draw:function(n){var i;if(this._v||n){var r,t=this._o,e=t.minYear,o=t.maxYear,u=t.minMonth,f=t.maxMonth,s="";for(this._y<=e&&(this._y=e,!isNaN(u)&&this._m<u&&(this._m=u)),this._y>=o&&(this._y=o,!isNaN(f)&&this._m>f&&(this._m=f)),r="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2),i=0;i<t.numberOfMonths;i++)s+='<div class="pika-lendar">'+st(this,i,this.calendars[i].year,this.calendars[i].month,this.calendars[0].year,r)+this.render(this.calendars[i].year,this.calendars[i].month,r)+"<\/div>";this.el.innerHTML=s;t.bound&&"hidden"!==t.field.type&&a(function(){t.trigger.focus()},1);"function"==typeof this._o.onDraw&&this._o.onDraw(this);t.bound&&t.field.setAttribute("aria-label","Use the arrow keys to pick a date")}},adjustPosition:function(){var n,i,f,e,s,h,c,r,u,o;if(!this._o.container){if(this.el.style.position="absolute",n=this._o.trigger,i=n,f=this.el.offsetWidth,e=this.el.offsetHeight,s=window.innerWidth||t.documentElement.clientWidth,h=window.innerHeight||t.documentElement.clientHeight,c=window.pageYOffset||t.body.scrollTop||t.documentElement.scrollTop,"function"==typeof n.getBoundingClientRect)o=n.getBoundingClientRect(),r=o.left+window.pageXOffset,u=o.bottom+window.pageYOffset;else for(r=i.offsetLeft,u=i.offsetTop+i.offsetHeight;i=i.offsetParent;)r+=i.offsetLeft,u+=i.offsetTop;(this._o.reposition&&r+f>s||this._o.position.indexOf("right")>-1&&r-f+n.offsetWidth>0)&&(r=r-f+n.offsetWidth);(this._o.reposition&&u+e>h+c||this._o.position.indexOf("top")>-1&&u-e-n.offsetHeight>0)&&(u=u-e-n.offsetHeight);this.el.style.left=r+"px";this.el.style.top=u+"px"}},render:function(n,t,i){var u=this._o,d=new Date,a=p(n,t),f=new Date(n,t,1).getDay(),g=[],s=[],o,w,ot;h(d);u.firstDay>0&&(f-=u.firstDay,f<0&&(f+=7));for(var nt=0===t?11:t-1,st=11===t?0:t+1,it=0===t?n-1:n,ct=11===t?n+1:n,lt=p(it,nt),v=a+f,y=v;y>7;)y-=7;for(v+=7-y,o=0,w=0;o<v;o++){var e=new Date(n,t,1+(o-f)),at=!!r(this._d)&&c(e,this._d),vt=c(e,d),et=o<f||o>=a+f,l=1+(o-f),b=t,k=n,yt=u.startRange&&c(u.startRange,e),pt=u.endRange&&c(u.endRange,e),wt=u.startRange&&u.endRange&&u.startRange<e&&e<u.endRange,bt=u.minDate&&e<u.minDate||u.maxDate&&e>u.maxDate||u.disableWeekends&&tt(e)||u.disableDayFn&&u.disableDayFn(e);et&&(o<f?(l=lt+l,b=nt,k=it):(l-=a,b=st,k=ct));ot={day:l,month:b,year:k,isSelected:at,isToday:vt,isDisabled:bt,isEmpty:et,isStartRange:yt,isEndRange:pt,isInRange:wt,showDaysInNextAndPreviousMonths:u.showDaysInNextAndPreviousMonths};s.push(rt(ot));7==++w&&(u.showWeekNumber&&s.unshift(ut(o-f,t,n)),g.push(ft(s,u.isRTL)),s=[],w=0)}return ht(u,g,i)},isVisible:function(){return this._v},show:function(){this.isVisible()||(nt(this.el,"is-hidden"),this._v=!0,this.draw(),this._o.bound&&(u(t,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var n=this._v;n!==!1&&(this._o.bound&&e(t,"click",this._onClick),this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto",g(this.el,"is-hidden"),this._v=!1,void 0!==n&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){this.hide();e(this.el,"mousedown",this._onMouseDown,!0);e(this.el,"touchend",this._onMouseDown,!0);e(this.el,"change",this._onChange);this._o.field&&(e(this._o.field,"change",this._onInputChange),this._o.bound&&(e(this._o.trigger,"click",this._onInputClick),e(this._o.trigger,"focus",this._onInputFocus),e(this._o.trigger,"blur",this._onInputBlur)));this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},k})},function(n,t,i){(function(n){!function(t,i){n.exports=i()}(this,function(){"use strict";function r(){return we.apply(null,arguments)}function bo(n){we=n}function at(n){return n instanceof Array||"[object Array]"===Object.prototype.toString.call(n)}function bi(n){return null!=n&&"[object Object]"===Object.prototype.toString.call(n)}function ko(n){for(var t in n)return!1;return!0}function ni(n){return"number"==typeof n||"[object Number]"===Object.prototype.toString.call(n)}function ki(n){return n instanceof Date||"[object Date]"===Object.prototype.toString.call(n)}function uf(n,t){for(var r=[],i=0;i<n.length;++i)r.push(t(n[i],i));return r}function v(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function vt(n,t){for(var i in t)v(t,i)&&(n[i]=t[i]);return v(t,"toString")&&(n.toString=t.toString),v(t,"valueOf")&&(n.valueOf=t.valueOf),n}function ft(n,t,i,r){return te(n,t,i,r,!0).utc()}function go(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null}}function e(n){return null==n._pf&&(n._pf=go()),n._pf}function yr(n){if(null==n._isValid){var t=e(n),r=uy.call(t.parsedDateParts,function(n){return null!=n}),i=!isNaN(n._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(n._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(n))return i;n._isValid=i}return n._isValid}function di(n){var t=ft(NaN);return null!=n?vt(e(t),n):e(t).userInvalidated=!0,t}function d(n){return void 0===n}function pr(n,t){var u,i,r;if(d(t._isAMomentObject)||(n._isAMomentObject=t._isAMomentObject),d(t._i)||(n._i=t._i),d(t._f)||(n._f=t._f),d(t._l)||(n._l=t._l),d(t._strict)||(n._strict=t._strict),d(t._tzm)||(n._tzm=t._tzm),d(t._isUTC)||(n._isUTC=t._isUTC),d(t._offset)||(n._offset=t._offset),d(t._pf)||(n._pf=e(t)),d(t._locale)||(n._locale=t._locale),au.length>0)for(u in au)i=au[u],r=t[i],d(r)||(n[i]=r);return n}function ci(n){pr(this,n);this._d=new Date(null!=n._d?n._d.getTime():NaN);this.isValid()||(this._d=new Date(NaN));vu===!1&&(vu=!0,r.updateOffset(this),vu=!1)}function yt(n){return n instanceof ci||null!=n&&null!=n._isAMomentObject}function g(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function o(n){var t=+n,i=0;return 0!==t&&isFinite(t)&&(i=g(t)),i}function ff(n,t,i){for(var f=Math.min(n.length,t.length),e=Math.abs(n.length-t.length),u=0,r=0;r<f;r++)(i&&n[r]!==t[r]||!i&&o(n[r])!==o(t[r]))&&u++;return u+e}function ef(n){r.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+n)}function nt(n,t){var i=!0;return vt(function(){var u,e,f,o;if(null!=r.deprecationHandler&&r.deprecationHandler(null,n),i){for(e=[],f=0;f<arguments.length;f++){if(u="","object"==typeof arguments[f]){u+="\n["+f+"] ";for(o in arguments[0])u+=o+": "+arguments[0][o]+", ";u=u.slice(0,-2)}else u=arguments[f];e.push(u)}ef(n+"\nArguments: "+Array.prototype.slice.call(e).join("")+"\n"+(new Error).stack);i=!1}return t.apply(this,arguments)},t)}function of(n,t){null!=r.deprecationHandler&&r.deprecationHandler(n,t);ke[n]||(ef(t),ke[n]=!0)}function ot(n){return n instanceof Function||"[object Function]"===Object.prototype.toString.call(n)}function ns(n){var t;for(var i in n)t=n[i],ot(t)?this[i]=t:this["_"+i]=t;this._config=n;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function sf(n,t){var i,r=vt({},n);for(i in t)v(t,i)&&(bi(n[i])&&bi(t[i])?(r[i]={},vt(r[i],n[i]),vt(r[i],t[i])):null!=t[i]?r[i]=t[i]:delete r[i]);for(i in n)v(n,i)&&!v(t,i)&&bi(n[i])&&(r[i]=vt({},r[i]));return r}function wr(n){null!=n&&this.set(n)}function ts(n,t,i){var r=this._calendar[n]||this._calendar.sameElse;return ot(r)?r.call(t,i):r}function is(n){var t=this._longDateFormat[n],i=this._longDateFormat[n.toUpperCase()];return t||!i?t:(this._longDateFormat[n]=i.replace(/MMMM|MM|DD|dddd/g,function(n){return n.slice(1)}),this._longDateFormat[n])}function rs(){return this._invalidDate}function us(n){return this._ordinal.replace("%d",n)}function fs(n,t,i,r){var u=this._relativeTime[i];return ot(u)?u(n,t,i,r):u.replace(/%d/i,n)}function es(n,t){var i=this._relativeTime[n>0?"future":"past"];return ot(i)?i(t):i.replace(/%s/i,t)}function b(n,t){var i=n.toLowerCase();yi[i]=yi[i+"s"]=yi[t]=n}function tt(n){if("string"==typeof n)return yi[n]||yi[n.toLowerCase()]}function br(n){var i,t,r={};for(t in n)v(n,t)&&(i=tt(t),i&&(r[i]=n[t]));return r}function k(n,t){no[n]=t}function os(n){var t=[];for(var i in n)t.push({unit:i,priority:no[i]});return t.sort(function(n,t){return n.priority-t.priority}),t}function ei(n,t){return function(i){return null!=i?(hf(this,n,i),r.updateOffset(this,t),this):gi(this,n)}}function gi(n,t){return n.isValid()?n._d["get"+(n._isUTC?"UTC":"")+t]():NaN}function hf(n,t,i){n.isValid()&&n._d["set"+(n._isUTC?"UTC":"")+t](i)}function ss(n){return n=tt(n),ot(this[n])?this[n]():this}function hs(n,t){if("object"==typeof n){n=br(n);for(var r=os(n),i=0;i<r.length;i++)this[r[i].unit](n[r[i].unit])}else if(n=tt(n),ot(this[n]))return this[n](t);return this}function st(n,t,i){var r=""+Math.abs(n),u=t-r.length,f=n>=0;return(f?i?"+":"":"-")+Math.pow(10,Math.max(0,u)).toString().substr(1)+r}function f(n,t,i,r){var u=r;"string"==typeof r&&(u=function(){return this[r]()});n&&(hi[n]=u);t&&(hi[t[0]]=function(){return st(u.apply(this,arguments),t[1],t[2])});i&&(hi[i]=function(){return this.localeData().ordinal(u.apply(this,arguments),n)})}function cs(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function ls(n){for(var t=n.match(to),i=0,r=t.length;i<r;i++)t[i]=hi[t[i]]?hi[t[i]]:cs(t[i]);return function(i){for(var f="",u=0;u<r;u++)f+=t[u]instanceof Function?t[u].call(i,n):t[u];return f}}function kr(n,t){return n.isValid()?(t=cf(t,n.localeData()),yu[t]=yu[t]||ls(t),yu[t](n)):n.localeData().invalidDate()}function cf(n,t){function r(n){return t.longDateFormat(n)||n}var i=5;for(er.lastIndex=0;i>=0&&er.test(n);)n=n.replace(er,r),er.lastIndex=0,i-=1;return n}function u(n,t,i){bu[n]=ot(t)?t:function(n){return n&&i?i:t}}function as(n,t){return v(bu,n)?bu[n](t._strict,t._locale):new RegExp(vs(n))}function vs(n){return ti(n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,t,i,r,u){return t||i||r||u}))}function ti(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function c(n,t){var i,r=t;for("string"==typeof n&&(n=[n]),ni(t)&&(r=function(n,i){i[t]=o(n)}),i=0;i<n.length;i++)ku[n[i]]=r}function li(n,t){c(n,function(n,i,r,u){r._w=r._w||{};t(n,r._w,r,u)})}function ys(n,t,i){null!=t&&v(ku,n)&&ku[n](t,i._a,i,n)}function dr(n,t){return new Date(Date.UTC(n,t+1,0)).getUTCDate()}function ps(n,t){return n?at(this._months)?this._months[n.month()]:this._months[(this._months.isFormat||eo).test(t)?"format":"standalone"][n.month()]:this._months}function ws(n,t){return n?at(this._monthsShort)?this._monthsShort[n.month()]:this._monthsShort[eo.test(t)?"format":"standalone"][n.month()]:this._monthsShort}function bs(n,t,i){var u,r,e,f=n.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],u=0;u<12;++u)e=ft([2e3,u]),this._shortMonthsParse[u]=this.monthsShort(e,"").toLocaleLowerCase(),this._longMonthsParse[u]=this.months(e,"").toLocaleLowerCase();return i?"MMM"===t?(r=p.call(this._shortMonthsParse,f),r!==-1?r:null):(r=p.call(this._longMonthsParse,f),r!==-1?r:null):"MMM"===t?(r=p.call(this._shortMonthsParse,f),r!==-1?r:(r=p.call(this._longMonthsParse,f),r!==-1?r:null)):(r=p.call(this._longMonthsParse,f),r!==-1?r:(r=p.call(this._shortMonthsParse,f),r!==-1?r:null))}function ks(n,t,i){var r,u,f;if(this._monthsParseExact)return bs.call(this,n,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++)if((u=ft([2e3,r]),i&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(u,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(u,"").replace(".","")+"$","i")),i||this._monthsParse[r]||(f="^"+this.months(u,"")+"|^"+this.monthsShort(u,""),this._monthsParse[r]=new RegExp(f.replace(".",""),"i")),i&&"MMMM"===t&&this._longMonthsParse[r].test(n))||i&&"MMM"===t&&this._shortMonthsParse[r].test(n)||!i&&this._monthsParse[r].test(n))return r}function lf(n,t){var i;if(!n.isValid())return n;if("string"==typeof t)if(/^\d+$/.test(t))t=o(t);else if(t=n.localeData().monthsParse(t),!ni(t))return n;return i=Math.min(n.date(),dr(n.year(),t)),n._d["set"+(n._isUTC?"UTC":"")+"Month"](t,i),n}function af(n){return null!=n?(lf(this,n),r.updateOffset(this,!0),this):gi(this,"Month")}function ds(){return dr(this.year(),this.month())}function gs(n){return this._monthsParseExact?(v(this,"_monthsRegex")||vf.call(this),n?this._monthsShortStrictRegex:this._monthsShortRegex):(v(this,"_monthsShortRegex")||(this._monthsShortRegex=ly),this._monthsShortStrictRegex&&n?this._monthsShortStrictRegex:this._monthsShortRegex)}function nh(n){return this._monthsParseExact?(v(this,"_monthsRegex")||vf.call(this),n?this._monthsStrictRegex:this._monthsRegex):(v(this,"_monthsRegex")||(this._monthsRegex=ay),this._monthsStrictRegex&&n?this._monthsStrictRegex:this._monthsRegex)}function vf(){function f(n,t){return t.length-n.length}for(var i,r=[],u=[],t=[],n=0;n<12;n++)i=ft([2e3,n]),r.push(this.monthsShort(i,"")),u.push(this.months(i,"")),t.push(this.months(i,"")),t.push(this.monthsShort(i,""));for(r.sort(f),u.sort(f),t.sort(f),n=0;n<12;n++)r[n]=ti(r[n]),u[n]=ti(u[n]);for(n=0;n<24;n++)t[n]=ti(t[n]);this._monthsRegex=new RegExp("^("+t.join("|")+")","i");this._monthsShortRegex=this._monthsRegex;this._monthsStrictRegex=new RegExp("^("+u.join("|")+")","i");this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function ai(n){return yf(n)?366:365}function yf(n){return n%4==0&&n%100!=0||n%400==0}function th(){return yf(this.year())}function ih(n,t,i,r,u,f,e){var o=new Date(n,t,i,r,u,f,e);return n<100&&n>=0&&isFinite(o.getFullYear())&&o.setFullYear(n),o}function nr(n){var t=new Date(Date.UTC.apply(null,arguments));return n<100&&n>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(n),t}function tr(n,t,i){var r=7+t-i,u=(7+nr(n,0,r).getUTCDay()-t)%7;return-u+r-1}function pf(n,t,i,r,u){var f,o,s=(7+i-r)%7,h=tr(n,r,u),e=1+7*(t-1)+s+h;return e<=0?(f=n-1,o=ai(f)+e):e>ai(n)?(f=n+1,o=e-ai(n)):(f=n,o=e),{year:f,dayOfYear:o}}function vi(n,t,i){var f,r,e=tr(n.year(),t,i),u=Math.floor((n.dayOfYear()-e-1)/7)+1;return u<1?(r=n.year()-1,f=u+ii(r,t,i)):u>ii(n.year(),t,i)?(f=u-ii(n.year(),t,i),r=n.year()+1):(r=n.year(),f=u),{week:f,year:r}}function ii(n,t,i){var r=tr(n,t,i),u=tr(n+1,t,i);return(ai(n)-r+u)/7}function rh(n){return vi(n,this._week.dow,this._week.doy).week}function uh(){return this._week.dow}function fh(){return this._week.doy}function eh(n){var t=this.localeData().week(this);return null==n?t:this.add(7*(n-t),"d")}function oh(n){var t=vi(this,1,4).week;return null==n?t:this.add(7*(n-t),"d")}function sh(n,t){return"string"!=typeof n?n:isNaN(n)?(n=t.weekdaysParse(n),"number"==typeof n?n:null):parseInt(n,10)}function hh(n,t){return"string"==typeof n?t.weekdaysParse(n)%7||7:isNaN(n)?null:n}function ch(n,t){return n?at(this._weekdays)?this._weekdays[n.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][n.day()]:this._weekdays}function lh(n){return n?this._weekdaysShort[n.day()]:this._weekdaysShort}function ah(n){return n?this._weekdaysMin[n.day()]:this._weekdaysMin}function vh(n,t,i){var f,r,e,u=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],f=0;f<7;++f)e=ft([2e3,1]).day(f),this._minWeekdaysParse[f]=this.weekdaysMin(e,"").toLocaleLowerCase(),this._shortWeekdaysParse[f]=this.weekdaysShort(e,"").toLocaleLowerCase(),this._weekdaysParse[f]=this.weekdays(e,"").toLocaleLowerCase();return i?"dddd"===t?(r=p.call(this._weekdaysParse,u),r!==-1?r:null):"ddd"===t?(r=p.call(this._shortWeekdaysParse,u),r!==-1?r:null):(r=p.call(this._minWeekdaysParse,u),r!==-1?r:null):"dddd"===t?(r=p.call(this._weekdaysParse,u),r!==-1?r:(r=p.call(this._shortWeekdaysParse,u),r!==-1?r:(r=p.call(this._minWeekdaysParse,u),r!==-1?r:null))):"ddd"===t?(r=p.call(this._shortWeekdaysParse,u),r!==-1?r:(r=p.call(this._weekdaysParse,u),r!==-1?r:(r=p.call(this._minWeekdaysParse,u),r!==-1?r:null))):(r=p.call(this._minWeekdaysParse,u),r!==-1?r:(r=p.call(this._weekdaysParse,u),r!==-1?r:(r=p.call(this._shortWeekdaysParse,u),r!==-1?r:null)))}function yh(n,t,i){var r,u,f;if(this._weekdaysParseExact)return vh.call(this,n,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++)if((u=ft([2e3,1]).day(r),i&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(u,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(u,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(u,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(f="^"+this.weekdays(u,"")+"|^"+this.weekdaysShort(u,"")+"|^"+this.weekdaysMin(u,""),this._weekdaysParse[r]=new RegExp(f.replace(".",""),"i")),i&&"dddd"===t&&this._fullWeekdaysParse[r].test(n))||i&&"ddd"===t&&this._shortWeekdaysParse[r].test(n)||i&&"dd"===t&&this._minWeekdaysParse[r].test(n)||!i&&this._weekdaysParse[r].test(n))return r}function ph(n){if(!this.isValid())return null!=n?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=n?(n=sh(n,this.localeData()),this.add(n-t,"d")):t}function wh(n){if(!this.isValid())return null!=n?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==n?t:this.add(n-t,"d")}function bh(n){if(!this.isValid())return null!=n?this:NaN;if(null!=n){var t=hh(n,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function kh(n){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||gr.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(v(this,"_weekdaysRegex")||(this._weekdaysRegex=wy),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)}function dh(n){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||gr.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(v(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=by),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function gh(n){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||gr.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(v(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ky),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function gr(){function u(n,t){return t.length-n.length}for(var f,e,o,s,h=[],i=[],r=[],t=[],n=0;n<7;n++)f=ft([2e3,1]).day(n),e=this.weekdaysMin(f,""),o=this.weekdaysShort(f,""),s=this.weekdays(f,""),h.push(e),i.push(o),r.push(s),t.push(e),t.push(o),t.push(s);for(h.sort(u),i.sort(u),r.sort(u),t.sort(u),n=0;n<7;n++)i[n]=ti(i[n]),r[n]=ti(r[n]),t[n]=ti(t[n]);this._weekdaysRegex=new RegExp("^("+t.join("|")+")","i");this._weekdaysShortRegex=this._weekdaysRegex;this._weekdaysMinRegex=this._weekdaysRegex;this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i");this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i");this._weekdaysMinStrictRegex=new RegExp("^("+h.join("|")+")","i")}function nu(){return this.hours()%12||12}function nc(){return this.hours()||24}function wf(n,t){f(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function bf(n,t){return t._meridiemParse}function tc(n){return"p"===(n+"").toLowerCase().charAt(0)}function ic(n,t,i){return n>11?i?"pm":"PM":i?"am":"AM"}function kf(n){return n?n.toLowerCase().replace("_","-"):n}function rc(n){for(var i,t,f,r,u=0;u<n.length;){for(r=kf(n[u]).split("-"),i=r.length,t=kf(n[u+1]),t=t?t.split("-"):null;i>0;){if(f=df(r.slice(0,i).join("-")))return f;if(t&&t.length>=i&&ff(r,t,!0)>=i-1)break;i--}u++}return null}function df(t){var r=null;if(!y[t]&&"undefined"!=typeof n&&n&&n.exports)try{r=ar._abbr;i(275)("./"+t);oi(r)}catch(n){}return y[t]}function oi(n,t){var i;return n&&(i=d(t)?pt(n):tu(n,t),i&&(ar=i)),ar._abbr}function tu(n,t){if(null!==t){var i=so;if(t.abbr=n,null!=y[n])of("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=y[n]._config;else if(null!=t.parentLocale){if(null==y[t.parentLocale])return wi[t.parentLocale]||(wi[t.parentLocale]=[]),wi[t.parentLocale].push({name:n,config:t}),null;i=y[t.parentLocale]._config}return y[n]=new wr(sf(i,t)),wi[n]&&wi[n].forEach(function(n){tu(n.name,n.config)}),oi(n),y[n]}return delete y[n],null}function uc(n,t){if(null!=t){var i,r=so;null!=y[n]&&(r=y[n]._config);t=sf(r,t);i=new wr(t);i.parentLocale=y[n];y[n]=i;oi(n)}else null!=y[n]&&(null!=y[n].parentLocale?y[n]=y[n].parentLocale:null!=y[n]&&delete y[n]);return y[n]}function pt(n){var t;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return ar;if(!at(n)){if(t=df(n))return t;n=[n]}return rc(n)}function fc(){return fy(y)}function iu(n){var i,t=n._a;return t&&e(n).overflow===-2&&(i=t[ht]<0||t[ht]>11?ht:t[et]<1||t[et]>dr(t[rt],t[ht])?et:t[w]<0||t[w]>24||24===t[w]&&(0!==t[ut]||0!==t[ct]||0!==t[fi])?w:t[ut]<0||t[ut]>59?ut:t[ct]<0||t[ct]>59?ct:t[fi]<0||t[fi]>999?fi:-1,e(n)._overflowDayOfYear&&(i<rt||i>et)&&(i=et),e(n)._overflowWeeks&&i===-1&&(i=oy),e(n)._overflowWeekday&&i===-1&&(i=sy),e(n).overflow=i),n}function gf(n){var t,r,o,f,u,s,h=n._i,i=gy.exec(h)||np.exec(h);if(i){for(e(n).iso=!0,t=0,r=vr.length;t<r;t++)if(vr[t][1].exec(i[1])){f=vr[t][0];o=vr[t][2]!==!1;break}if(null==f)return void(n._isValid=!1);if(i[3]){for(t=0,r=gu.length;t<r;t++)if(gu[t][1].exec(i[3])){u=(i[2]||" ")+gu[t][0];break}if(null==u)return void(n._isValid=!1)}if(!o&&null!=u)return void(n._isValid=!1);if(i[4]){if(!tp.exec(i[4]))return void(n._isValid=!1);s="Z"}n._f=f+(u||"")+(s||"");uu(n)}else n._isValid=!1}function ec(n){var t=ip.exec(n._i);return null!==t?void(n._d=new Date(+t[1])):(gf(n),void(n._isValid===!1&&(delete n._isValid,r.createFromInputFallback(n))))}function si(n,t,i){return null!=n?n:null!=t?t:i}function oc(n){var t=new Date(r.now());return n._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function ru(n){var t,i,r,u,f=[];if(!n._d){for(r=oc(n),n._w&&null==n._a[et]&&null==n._a[ht]&&sc(n),n._dayOfYear&&(u=si(n._a[rt],r[rt]),n._dayOfYear>ai(u)&&(e(n)._overflowDayOfYear=!0),i=nr(u,0,n._dayOfYear),n._a[ht]=i.getUTCMonth(),n._a[et]=i.getUTCDate()),t=0;t<3&&null==n._a[t];++t)n._a[t]=f[t]=r[t];for(;t<7;t++)n._a[t]=f[t]=null==n._a[t]?2===t?1:0:n._a[t];24===n._a[w]&&0===n._a[ut]&&0===n._a[ct]&&0===n._a[fi]&&(n._nextDay=!0,n._a[w]=0);n._d=(n._useUTC?nr:ih).apply(null,f);null!=n._tzm&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm);n._nextDay&&(n._a[w]=24)}}function sc(n){var t,o,u,i,r,f,h,s,c;(t=n._w,null!=t.GG||null!=t.W||null!=t.E)?(r=1,f=4,o=si(t.GG,n._a[rt],vi(l(),1,4).year),u=si(t.W,1),i=si(t.E,1),(i<1||i>7)&&(s=!0)):(r=n._locale._week.dow,f=n._locale._week.doy,c=vi(l(),r,f),o=si(t.gg,n._a[rt],c.year),u=si(t.w,c.week),null!=t.d?(i=t.d,(i<0||i>6)&&(s=!0)):null!=t.e?(i=t.e+r,(t.e<0||t.e>6)&&(s=!0)):i=r);u<1||u>ii(o,r,f)?e(n)._overflowWeeks=!0:null!=s?e(n)._overflowWeekday=!0:(h=pf(o,u,i,r,f),n._a[rt]=h.year,n._dayOfYear=h.dayOfYear)}function uu(n){if(n._f===r.ISO_8601)return void gf(n);n._a=[];e(n).empty=!0;for(var t,u,s,i=""+n._i,c=i.length,h=0,o=cf(n._f,n._locale).match(to)||[],f=0;f<o.length;f++)u=o[f],t=(i.match(as(u,n))||[])[0],t&&(s=i.substr(0,i.indexOf(t)),s.length>0&&e(n).unusedInput.push(s),i=i.slice(i.indexOf(t)+t.length),h+=t.length),hi[u]?(t?e(n).empty=!1:e(n).unusedTokens.push(u),ys(u,t,n)):n._strict&&!t&&e(n).unusedTokens.push(u);e(n).charsLeftOver=c-h;i.length>0&&e(n).unusedInput.push(i);n._a[w]<=12&&e(n).bigHour===!0&&n._a[w]>0&&(e(n).bigHour=void 0);e(n).parsedDateParts=n._a.slice(0);e(n).meridiem=n._meridiem;n._a[w]=hc(n._locale,n._a[w],n._meridiem);ru(n);iu(n)}function hc(n,t,i){var r;return null==i?t:null!=n.meridiemHour?n.meridiemHour(t,i):null!=n.isPM?(r=n.isPM(i),r&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function cc(n){var t,f,u,r,i;if(0===n._f.length)return e(n).invalidFormat=!0,void(n._d=new Date(NaN));for(r=0;r<n._f.length;r++)i=0,t=pr({},n),null!=n._useUTC&&(t._useUTC=n._useUTC),t._f=n._f[r],uu(t),yr(t)&&(i+=e(t).charsLeftOver,i+=10*e(t).unusedTokens.length,e(t).score=i,(null==u||i<u)&&(u=i,f=t));vt(n,f||t)}function lc(n){if(!n._d){var t=br(n._i);n._a=uf([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)});ru(n)}}function ac(n){var t=new ci(iu(ne(n)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function ne(n){var t=n._i,i=n._f;return n._locale=n._locale||pt(n._l),null===t||void 0===i&&""===t?di({nullInput:!0}):("string"==typeof t&&(n._i=t=n._locale.preparse(t)),yt(t)?new ci(iu(t)):(ki(t)?n._d=t:at(i)?cc(n):i?uu(n):vc(n),yr(n)||(n._d=null),n))}function vc(n){var t=n._i;void 0===t?n._d=new Date(r.now()):ki(t)?n._d=new Date(t.valueOf()):"string"==typeof t?ec(n):at(t)?(n._a=uf(t.slice(0),function(n){return parseInt(n,10)}),ru(n)):"object"==typeof t?lc(n):ni(t)?n._d=new Date(t):r.createFromInputFallback(n)}function te(n,t,i,r,u){var f={};return i!==!0&&i!==!1||(r=i,i=void 0),(bi(n)&&ko(n)||at(n)&&0===n.length)&&(n=void 0),f._isAMomentObject=!0,f._useUTC=f._isUTC=u,f._l=i,f._i=n,f._f=t,f._strict=r,ac(f)}function l(n,t,i,r){return te(n,t,i,r,!1)}function ie(n,t){var r,i;if(1===t.length&&at(t[0])&&(t=t[0]),!t.length)return l();for(r=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][n](r)||(r=t[i]);return r}function yc(){var n=[].slice.call(arguments,0);return ie("isBefore",n)}function pc(){var n=[].slice.call(arguments,0);return ie("isAfter",n)}function ir(n){var t=br(n),i=t.year||0,r=t.quarter||0,u=t.month||0,f=t.week||0,e=t.day||0,o=t.hour||0,s=t.minute||0,h=t.second||0,c=t.millisecond||0;this._milliseconds=+c+1e3*h+6e4*s+36e5*o;this._days=+e+7*f;this._months=+u+3*r+12*i;this._data={};this._locale=pt();this._bubble()}function fu(n){return n instanceof ir}function eu(n){return n<0?Math.round(-1*n)*-1:Math.round(n)}function re(n,t){f(n,0,0,function(){var n=this.utcOffset(),i="+";return n<0&&(n=-n,i="-"),i+st(~~(n/60),2)+t+st(~~n%60,2)})}function ou(n,t){var i=(t||"").match(n);if(null===i)return null;var f=i[i.length-1]||[],r=(f+"").match(ho)||["-",0,0],u=+(60*r[1])+o(r[2]);return 0===u?0:"+"===r[0]?u:-u}function su(n,t){var i,u;return t._isUTC?(i=t.clone(),u=(yt(n)||ki(n)?n.valueOf():l(n).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+u),r.updateOffset(i,!1),i):l(n).local()}function hu(n){return 15*-Math.round(n._d.getTimezoneOffset()/15)}function wc(n,t){var i,u=this._offset||0;if(!this.isValid())return null!=n?this:NaN;if(null!=n){if("string"==typeof n){if(n=ou(lr,n),null===n)return this}else Math.abs(n)<16&&(n*=60);return!this._isUTC&&t&&(i=hu(this)),this._offset=n,this._isUTC=!0,null!=i&&this.add(i,"m"),u!==n&&(!t||this._changeInProgress?oe(this,wt(n-u,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?u:hu(this)}function bc(n,t){return null!=n?("string"!=typeof n&&(n=-n),this.utcOffset(n,t),this):-this.utcOffset()}function kc(n){return this.utcOffset(0,n)}function dc(n){return this._isUTC&&(this.utcOffset(0,n),this._isUTC=!1,n&&this.subtract(hu(this),"m")),this}function gc(){if(null!=this._tzm)this.utcOffset(this._tzm);else if("string"==typeof this._i){var n=ou(ey,this._i);null!=n?this.utcOffset(n):this.utcOffset(0,!0)}return this}function nl(n){return!!this.isValid()&&(n=n?l(n).utcOffset():0,(this.utcOffset()-n)%60==0)}function tl(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function il(){var n,t;return d(this._isDSTShifted)?(n={},(pr(n,this),n=ne(n),n._a)?(t=n._isUTC?ft(n._a):l(n._a),this._isDSTShifted=this.isValid()&&ff(n._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted):this._isDSTShifted}function rl(){return!!this.isValid()&&!this._isUTC}function ul(){return!!this.isValid()&&this._isUTC}function ue(){return!!this.isValid()&&this._isUTC&&0===this._offset}function wt(n,t){var u,f,e,i=n,r=null;return fu(n)?i={ms:n._milliseconds,d:n._days,M:n._months}:ni(n)?(i={},t?i[t]=n:i.milliseconds=n):(r=co.exec(n))?(u="-"===r[1]?-1:1,i={y:0,d:o(r[et])*u,h:o(r[w])*u,m:o(r[ut])*u,s:o(r[ct])*u,ms:o(eu(1e3*r[fi]))*u}):(r=lo.exec(n))?(u="-"===r[1]?-1:1,i={y:ri(r[2],u),M:ri(r[3],u),w:ri(r[4],u),d:ri(r[5],u),h:ri(r[6],u),m:ri(r[7],u),s:ri(r[8],u)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(e=fl(l(i.from),l(i.to)),i={},i.ms=e.milliseconds,i.M=e.months),f=new ir(i),fu(n)&&v(n,"_locale")&&(f._locale=n._locale),f}function ri(n,t){var i=n&&parseFloat(n.replace(",","."));return(isNaN(i)?0:i)*t}function fe(n,t){var i={milliseconds:0,months:0};return i.months=t.month()-n.month()+12*(t.year()-n.year()),n.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+n.clone().add(i.months,"M"),i}function fl(n,t){var i;return n.isValid()&&t.isValid()?(t=su(t,n),n.isBefore(t)?i=fe(n,t):(i=fe(t,n),i.milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function ee(n,t){return function(i,r){var u,f;return null===r||isNaN(+r)||(of(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),f=i,i=r,r=f),i="string"==typeof i?+i:i,u=wt(i,r),oe(this,u,n),this}}function oe(n,t,i,u){var o=t._milliseconds,f=eu(t._days),e=eu(t._months);n.isValid()&&(u=null==u||u,o&&n._d.setTime(n._d.valueOf()+o*i),f&&hf(n,"Date",gi(n,"Date")+f*i),e&&lf(n,gi(n,"Month")+e*i),u&&r.updateOffset(n,f||e))}function el(n,t){var i=n.diff(t,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"}function ol(n,t){var u=n||l(),f=su(u,this).startOf("day"),i=r.calendarFormat(this,f)||"sameElse",e=t&&(ot(t[i])?t[i].call(this,u):t[i]);return this.format(e||this.localeData().calendar(i,this,l(u)))}function sl(){return new ci(this)}function hl(n,t){var i=yt(n)?n:l(n);return!(!this.isValid()||!i.isValid())&&(t=tt(d(t)?"millisecond":t),"millisecond"===t?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(t).valueOf())}function cl(n,t){var i=yt(n)?n:l(n);return!(!this.isValid()||!i.isValid())&&(t=tt(d(t)?"millisecond":t),"millisecond"===t?this.valueOf()<i.valueOf():this.clone().endOf(t).valueOf()<i.valueOf())}function ll(n,t,i,r){return r=r||"()",("("===r[0]?this.isAfter(n,i):!this.isBefore(n,i))&&(")"===r[1]?this.isBefore(t,i):!this.isAfter(t,i))}function al(n,t){var i,r=yt(n)?n:l(n);return!(!this.isValid()||!r.isValid())&&(t=tt(t||"millisecond"),"millisecond"===t?this.valueOf()===r.valueOf():(i=r.valueOf(),this.clone().startOf(t).valueOf()<=i&&i<=this.clone().endOf(t).valueOf()))}function vl(n,t){return this.isSame(n,t)||this.isAfter(n,t)}function yl(n,t){return this.isSame(n,t)||this.isBefore(n,t)}function pl(n,t,i){var f,e,r,u;return this.isValid()?(f=su(n,this),f.isValid()?(e=6e4*(f.utcOffset()-this.utcOffset()),t=tt(t),"year"===t||"month"===t||"quarter"===t?(u=wl(this,f),"quarter"===t?u/=3:"year"===t&&(u/=12)):(r=this-f,u="second"===t?r/1e3:"minute"===t?r/6e4:"hour"===t?r/36e5:"day"===t?(r-e)/864e5:"week"===t?(r-e)/6048e5:r),i?u:g(u)):NaN):NaN}function wl(n,t){var r,f,u=12*(t.year()-n.year())+(t.month()-n.month()),i=n.clone().add(u,"months");return t-i<0?(r=n.clone().add(u-1,"months"),f=(t-i)/(i-r)):(r=n.clone().add(u+1,"months"),f=(t-i)/(r-i)),-(u+f)||0}function bl(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function kl(){var n=this.clone().utc();return 0<n.year()&&n.year()<=9999?ot(Date.prototype.toISOString)?this.toDate().toISOString():kr(n,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):kr(n,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function dl(){var n,t;if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";n="moment";t="";this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var i="["+n+'("]',r=0<this.year()&&this.year()<=9999?"YYYY":"YYYYYY",u=t+'[")]';return this.format(i+r+"-MM-DD[T]HH:mm:ss.SSS"+u)}function gl(n){n||(n=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=kr(this,n);return this.localeData().postformat(t)}function na(n,t){return this.isValid()&&(yt(n)&&n.isValid()||l(n).isValid())?wt({to:this,from:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ta(n){return this.from(l(),n)}function ia(n,t){return this.isValid()&&(yt(n)&&n.isValid()||l(n).isValid())?wt({from:this,to:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ra(n){return this.to(l(),n)}function se(n){var t;return void 0===n?this._locale._abbr:(t=pt(n),null!=t&&(this._locale=t),this)}function he(){return this._locale}function ua(n){switch(n=tt(n)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===n&&this.weekday(0),"isoWeek"===n&&this.isoWeekday(1),"quarter"===n&&this.month(3*Math.floor(this.month()/3)),this}function fa(n){return n=tt(n),void 0===n||"millisecond"===n?this:("date"===n&&(n="day"),this.startOf(n).add(1,"isoWeek"===n?"week":n).subtract(1,"ms"))}function ea(){return this._d.valueOf()-6e4*(this._offset||0)}function oa(){return Math.floor(this.valueOf()/1e3)}function sa(){return new Date(this.valueOf())}function ha(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function ca(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}}function la(){return this.isValid()?this.toISOString():null}function aa(){return yr(this)}function va(){return vt({},e(this))}function ya(){return e(this).overflow}function pa(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function rr(n,t){f(0,[n,n.length],0,t)}function wa(n){return ce.call(this,n,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function ba(n){return ce.call(this,n,this.isoWeek(),this.isoWeekday(),1,4)}function ka(){return ii(this.year(),1,4)}function da(){var n=this.localeData()._week;return ii(this.year(),n.dow,n.doy)}function ce(n,t,i,r,u){var f;return null==n?vi(this,r,u).year:(f=ii(n,r,u),t>f&&(t=f),ga.call(this,n,t,i,r,u))}function ga(n,t,i,r,u){var e=pf(n,t,i,r,u),f=nr(e.year,0,e.dayOfYear);return this.year(f.getUTCFullYear()),this.month(f.getUTCMonth()),this.date(f.getUTCDate()),this}function nv(n){return null==n?Math.ceil((this.month()+1)/3):this.month(3*(n-1)+this.month()%3)}function tv(n){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==n?t:this.add(n-t,"d")}function iv(n,t){t[fi]=o(1e3*("0."+n))}function rv(){return this._isUTC?"UTC":""}function uv(){return this._isUTC?"Coordinated Universal Time":""}function fv(n){return l(1e3*n)}function ev(){return l.apply(null,arguments).parseZone()}function le(n){return n}function ur(n,t,i,r){var u=pt(),f=ft().set(r,t);return u[i](f,n)}function ae(n,t,i){if(ni(n)&&(t=n,n=void 0),n=n||"",null!=t)return ur(n,t,i,"month");for(var u=[],r=0;r<12;r++)u[r]=ur(n,r,i,"month");return u}function cu(n,t,i,r){var o,f,u,e;if("boolean"==typeof n?(ni(t)&&(i=t,t=void 0),t=t||""):(t=n,i=t,n=!1,ni(t)&&(i=t,t=void 0),t=t||""),o=pt(),f=n?o._week.dow:0,null!=i)return ur(t,(i+f)%7,r,"day");for(e=[],u=0;u<7;u++)e[u]=ur(t,(u+f)%7,r,"day");return e}function ov(n,t){return ae(n,t,"months")}function sv(n,t){return ae(n,t,"monthsShort")}function hv(n,t,i){return cu(n,t,i,"weekdays")}function cv(n,t,i){return cu(n,t,i,"weekdaysShort")}function lv(n,t,i){return cu(n,t,i,"weekdaysMin")}function av(){var n=this._data;return this._milliseconds=lt(this._milliseconds),this._days=lt(this._days),this._months=lt(this._months),n.milliseconds=lt(n.milliseconds),n.seconds=lt(n.seconds),n.minutes=lt(n.minutes),n.hours=lt(n.hours),n.months=lt(n.months),n.years=lt(n.years),this}function ve(n,t,i,r){var u=wt(t,i);return n._milliseconds+=r*u._milliseconds,n._days+=r*u._days,n._months+=r*u._months,n._bubble()}function vv(n,t){return ve(this,n,t,1)}function yv(n,t){return ve(this,n,t,-1)}function ye(n){return n<0?Math.floor(n):Math.ceil(n)}function pv(){var u,f,e,s,o,r=this._milliseconds,n=this._days,t=this._months,i=this._data;return r>=0&&n>=0&&t>=0||r<=0&&n<=0&&t<=0||(r+=864e5*ye(lu(t)+n),n=0,t=0),i.milliseconds=r%1e3,u=g(r/1e3),i.seconds=u%60,f=g(u/60),i.minutes=f%60,e=g(f/60),i.hours=e%24,n+=g(e/24),o=g(pe(n)),t+=o,n-=ye(lu(o)),s=g(t/12),t%=12,i.days=n,i.months=t,i.years=s,this}function pe(n){return 4800*n/146097}function lu(n){return 146097*n/4800}function wv(n){var t,r,i=this._milliseconds;if(n=tt(n),"month"===n||"year"===n)return t=this._days+i/864e5,r=this._months+pe(t),"month"===n?r:r/12;switch(t=this._days+Math.round(lu(this._months)),n){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+n);}}function bv(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*o(this._months/12)}function bt(n){return function(){return this.as(n)}}function kv(n){return n=tt(n),this[n+"s"]()}function ui(n){return function(){return this._data[n]}}function dv(){return g(this.days()/7)}function gv(n,t,i,r,u){return u.relativeTime(t||1,!!i,n,r)}function ny(n,t,i){var r=wt(n).abs(),h=dt(r.as("s")),f=dt(r.as("m")),e=dt(r.as("h")),o=dt(r.as("d")),s=dt(r.as("M")),c=dt(r.as("y")),u=h<gt.s&&["s",h]||f<=1&&["m"]||f<gt.m&&["mm",f]||e<=1&&["h"]||e<gt.h&&["hh",e]||o<=1&&["d"]||o<gt.d&&["dd",o]||s<=1&&["M"]||s<gt.M&&["MM",s]||c<=1&&["y"]||["yy",c];return u[2]=t,u[3]=+n>0,u[4]=i,gv.apply(null,u)}function ty(n){return void 0===n?dt:"function"==typeof n&&(dt=n,!0)}function iy(n,t){return void 0!==gt[n]&&(void 0===t?gt[n]:(gt[n]=t,!0))}function ry(n){var t=this.localeData(),i=ny(this,!n,t);return n&&(i=t.pastFuture(+this,i)),t.postformat(i)}function fr(){var n,e,o,t=rf(this._milliseconds)/1e3,a=rf(this._days),i=rf(this._months);n=g(t/60);e=g(n/60);t%=60;n%=60;o=g(i/12);i%=12;var s=o,h=i,c=a,r=e,u=n,f=t,l=this.asSeconds();return l?(l<0?"-":"")+"P"+(s?s+"Y":"")+(h?h+"M":"")+(c?c+"D":"")+(r||u||f?"T":"")+(r?r+"H":"")+(u?u+"M":"")+(f?f+"S":""):"P0D"}var we,be,de,p,du,oo,ho,co,lo,ao,vo,nf,tf,yo,po,kt,wo,t,h;be=Array.prototype.some?Array.prototype.some:function(n){for(var i=Object(this),r=i.length>>>0,t=0;t<r;t++)if(t in i&&n.call(this,i[t],t,i))return!0;return!1};var uy=be,au=r.momentProperties=[],vu=!1,ke={};r.suppressDeprecationWarnings=!1;r.deprecationHandler=null;de=Object.keys?Object.keys:function(n){var t,i=[];for(t in n)v(n,t)&&i.push(t);return i};var ge,fy=de,yi={},no={},to=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,er=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,yu={},hi={},io=/\d/,it=/\d\d/,ro=/\d{3}/,pu=/\d{4}/,or=/[+-]?\d{6}/,a=/\d\d?/,uo=/\d\d\d\d?/,fo=/\d\d\d\d\d\d?/,sr=/\d{1,3}/,wu=/\d{1,4}/,hr=/[+-]?\d{1,6}/,cr=/[+-]?\d+/,ey=/Z|[+-]\d\d:?\d\d/gi,lr=/Z|[+-]\d\d(?::?\d\d)?/gi,pi=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,bu={},ku={},rt=0,ht=1,et=2,w=3,ut=4,ct=5,fi=6,oy=7,sy=8;ge=Array.prototype.indexOf?Array.prototype.indexOf:function(n){for(var t=0;t<this.length;++t)if(this[t]===n)return t;return-1};p=ge;f("M",["MM",2],"Mo",function(){return this.month()+1});f("MMM",0,0,function(n){return this.localeData().monthsShort(this,n)});f("MMMM",0,0,function(n){return this.localeData().months(this,n)});b("month","M");k("month",8);u("M",a);u("MM",a,it);u("MMM",function(n,t){return t.monthsShortRegex(n)});u("MMMM",function(n,t){return t.monthsRegex(n)});c(["M","MM"],function(n,t){t[ht]=o(n)-1});c(["MMM","MMMM"],function(n,t,i,r){var u=i._locale.monthsParse(n,r,i._strict);null!=u?t[ht]=u:e(i).invalidMonth=n});var eo=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,hy="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),cy="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ly=pi,ay=pi;f("Y",0,0,function(){var n=this.year();return n<=9999?""+n:"+"+n});f(0,["YY",2],0,function(){return this.year()%100});f(0,["YYYY",4],0,"year");f(0,["YYYYY",5],0,"year");f(0,["YYYYYY",6,!0],0,"year");b("year","y");k("year",1);u("Y",cr);u("YY",a,it);u("YYYY",wu,pu);u("YYYYY",hr,or);u("YYYYYY",hr,or);c(["YYYYY","YYYYYY"],rt);c("YYYY",function(n,t){t[rt]=2===n.length?r.parseTwoDigitYear(n):o(n)});c("YY",function(n,t){t[rt]=r.parseTwoDigitYear(n)});c("Y",function(n,t){t[rt]=parseInt(n,10)});r.parseTwoDigitYear=function(n){return o(n)+(o(n)>68?1900:2e3)};du=ei("FullYear",!0);f("w",["ww",2],"wo","week");f("W",["WW",2],"Wo","isoWeek");b("week","w");b("isoWeek","W");k("week",5);k("isoWeek",5);u("w",a);u("ww",a,it);u("W",a);u("WW",a,it);li(["w","ww","W","WW"],function(n,t,i,r){t[r.substr(0,1)]=o(n)});oo={dow:0,doy:6};f("d",0,"do","day");f("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)});f("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)});f("dddd",0,0,function(n){return this.localeData().weekdays(this,n)});f("e",0,0,"weekday");f("E",0,0,"isoWeekday");b("day","d");b("weekday","e");b("isoWeekday","E");k("day",11);k("weekday",11);k("isoWeekday",11);u("d",a);u("e",a);u("E",a);u("dd",function(n,t){return t.weekdaysMinRegex(n)});u("ddd",function(n,t){return t.weekdaysShortRegex(n)});u("dddd",function(n,t){return t.weekdaysRegex(n)});li(["dd","ddd","dddd"],function(n,t,i,r){var u=i._locale.weekdaysParse(n,r,i._strict);null!=u?t.d=u:e(i).invalidWeekday=n});li(["d","e","E"],function(n,t,i,r){t[r]=o(n)});var vy="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),yy="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),py="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),wy=pi,by=pi,ky=pi;f("H",["HH",2],0,"hour");f("h",["hh",2],0,nu);f("k",["kk",2],0,nc);f("hmm",0,0,function(){return""+nu.apply(this)+st(this.minutes(),2)});f("hmmss",0,0,function(){return""+nu.apply(this)+st(this.minutes(),2)+st(this.seconds(),2)});f("Hmm",0,0,function(){return""+this.hours()+st(this.minutes(),2)});f("Hmmss",0,0,function(){return""+this.hours()+st(this.minutes(),2)+st(this.seconds(),2)});wf("a",!0);wf("A",!1);b("hour","h");k("hour",13);u("a",bf);u("A",bf);u("H",a);u("h",a);u("HH",a,it);u("hh",a,it);u("hmm",uo);u("hmmss",fo);u("Hmm",uo);u("Hmmss",fo);c(["H","HH"],w);c(["a","A"],function(n,t,i){i._isPm=i._locale.isPM(n);i._meridiem=n});c(["h","hh"],function(n,t,i){t[w]=o(n);e(i).bigHour=!0});c("hmm",function(n,t,i){var r=n.length-2;t[w]=o(n.substr(0,r));t[ut]=o(n.substr(r));e(i).bigHour=!0});c("hmmss",function(n,t,i){var r=n.length-4,u=n.length-2;t[w]=o(n.substr(0,r));t[ut]=o(n.substr(r,2));t[ct]=o(n.substr(u));e(i).bigHour=!0});c("Hmm",function(n,t){var i=n.length-2;t[w]=o(n.substr(0,i));t[ut]=o(n.substr(i))});c("Hmmss",function(n,t){var i=n.length-4,r=n.length-2;t[w]=o(n.substr(0,i));t[ut]=o(n.substr(i,2));t[ct]=o(n.substr(r))});var ar,dy=ei("Hours",!0),so={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{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"},invalidDate:"Invalid date",ordinal:"%d",ordinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:hy,monthsShort:cy,week:oo,weekdays:vy,weekdaysMin:py,weekdaysShort:yy,meridiemParse:/[ap]\.?m?\.?/i},y={},wi={},gy=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,np=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,tp=/Z|[+-]\d\d(?::?\d\d)?/,vr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],gu=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ip=/^\/?Date\((\-?\d+)/i;r.createFromInputFallback=nt("value provided is not in a recognized ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(n){n._d=new Date(n._i+(n._useUTC?" UTC":""))});r.ISO_8601=function(){};var rp=nt("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=l.apply(null,arguments);return this.isValid()&&n.isValid()?n<this?this:n:di()}),up=nt("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=l.apply(null,arguments);return this.isValid()&&n.isValid()?n>this?this:n:di()}),fp=function(){return Date.now?Date.now():+new Date};for(re("Z",":"),re("ZZ",""),u("Z",lr),u("ZZ",lr),c(["Z","ZZ"],function(n,t,i){i._useUTC=!0;i._tzm=ou(lr,n)}),ho=/([\+\-]|\d\d)/gi,r.updateOffset=function(){},co=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,lo=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/,wt.fn=ir.prototype,ao=ee(1,"add"),vo=ee(-1,"subtract"),r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]",nf=nt("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return void 0===n?this.localeData():this.locale(n)}),f(0,["gg",2],0,function(){return this.weekYear()%100}),f(0,["GG",2],0,function(){return this.isoWeekYear()%100}),rr("gggg","weekYear"),rr("ggggg","weekYear"),rr("GGGG","isoWeekYear"),rr("GGGGG","isoWeekYear"),b("weekYear","gg"),b("isoWeekYear","GG"),k("weekYear",1),k("isoWeekYear",1),u("G",cr),u("g",cr),u("GG",a,it),u("gg",a,it),u("GGGG",wu,pu),u("gggg",wu,pu),u("GGGGG",hr,or),u("ggggg",hr,or),li(["gggg","ggggg","GGGG","GGGGG"],function(n,t,i,r){t[r.substr(0,2)]=o(n)}),li(["gg","GG"],function(n,t,i,u){t[u]=r.parseTwoDigitYear(n)}),f("Q",0,"Qo","quarter"),b("quarter","Q"),k("quarter",7),u("Q",io),c("Q",function(n,t){t[ht]=3*(o(n)-1)}),f("D",["DD",2],"Do","date"),b("date","D"),k("date",9),u("D",a),u("DD",a,it),u("Do",function(n,t){return n?t._ordinalParse:t._ordinalParseLenient}),c(["D","DD"],et),c("Do",function(n,t){t[et]=o(n.match(a)[0],10)}),tf=ei("Date",!0),f("DDD",["DDDD",3],"DDDo","dayOfYear"),b("dayOfYear","DDD"),k("dayOfYear",4),u("DDD",sr),u("DDDD",ro),c(["DDD","DDDD"],function(n,t,i){i._dayOfYear=o(n)}),f("m",["mm",2],0,"minute"),b("minute","m"),k("minute",14),u("m",a),u("mm",a,it),c(["m","mm"],ut),yo=ei("Minutes",!1),f("s",["ss",2],0,"second"),b("second","s"),k("second",15),u("s",a),u("ss",a,it),c(["s","ss"],ct),po=ei("Seconds",!1),f("S",0,0,function(){return~~(this.millisecond()/100)}),f(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),f(0,["SSS",3],0,"millisecond"),f(0,["SSSS",4],0,function(){return 10*this.millisecond()}),f(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),f(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),f(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),f(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),f(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),b("millisecond","ms"),k("millisecond",16),u("S",sr,io),u("SS",sr,it),u("SSS",sr,ro),kt="SSSS";kt.length<=9;kt+="S")u(kt,/\d+/);for(kt="S";kt.length<=9;kt+="S")c(kt,iv);wo=ei("Milliseconds",!1);f("z",0,0,"zoneAbbr");f("zz",0,0,"zoneName");t=ci.prototype;t.add=ao;t.calendar=ol;t.clone=sl;t.diff=pl;t.endOf=fa;t.format=gl;t.from=na;t.fromNow=ta;t.to=ia;t.toNow=ra;t.get=ss;t.invalidAt=ya;t.isAfter=hl;t.isBefore=cl;t.isBetween=ll;t.isSame=al;t.isSameOrAfter=vl;t.isSameOrBefore=yl;t.isValid=aa;t.lang=nf;t.locale=se;t.localeData=he;t.max=up;t.min=rp;t.parsingFlags=va;t.set=hs;t.startOf=ua;t.subtract=vo;t.toArray=ha;t.toObject=ca;t.toDate=sa;t.toISOString=kl;t.inspect=dl;t.toJSON=la;t.toString=bl;t.unix=oa;t.valueOf=ea;t.creationData=pa;t.year=du;t.isLeapYear=th;t.weekYear=wa;t.isoWeekYear=ba;t.quarter=t.quarters=nv;t.month=af;t.daysInMonth=ds;t.week=t.weeks=eh;t.isoWeek=t.isoWeeks=oh;t.weeksInYear=da;t.isoWeeksInYear=ka;t.date=tf;t.day=t.days=ph;t.weekday=wh;t.isoWeekday=bh;t.dayOfYear=tv;t.hour=t.hours=dy;t.minute=t.minutes=yo;t.second=t.seconds=po;t.millisecond=t.milliseconds=wo;t.utcOffset=wc;t.utc=kc;t.local=dc;t.parseZone=gc;t.hasAlignedHourOffset=nl;t.isDST=tl;t.isLocal=rl;t.isUtcOffset=ul;t.isUtc=ue;t.isUTC=ue;t.zoneAbbr=rv;t.zoneName=uv;t.dates=nt("dates accessor is deprecated. Use date instead.",tf);t.months=nt("months accessor is deprecated. Use month instead",af);t.years=nt("years accessor is deprecated. Use year instead",du);t.zone=nt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",bc);t.isDSTShifted=nt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",il);h=wr.prototype;h.calendar=ts;h.longDateFormat=is;h.invalidDate=rs;h.ordinal=us;h.preparse=le;h.postformat=le;h.relativeTime=fs;h.pastFuture=es;h.set=ns;h.months=ps;h.monthsShort=ws;h.monthsParse=ks;h.monthsRegex=nh;h.monthsShortRegex=gs;h.week=rh;h.firstDayOfYear=fh;h.firstDayOfWeek=uh;h.weekdays=ch;h.weekdaysMin=ah;h.weekdaysShort=lh;h.weekdaysParse=yh;h.weekdaysRegex=kh;h.weekdaysShortRegex=dh;h.weekdaysMinRegex=gh;h.isPM=tc;h.meridiem=ic;oi("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var t=n%10,i=1===o(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return n+i}});r.lang=nt("moment.lang is deprecated. Use moment.locale instead.",oi);r.langData=nt("moment.langData is deprecated. Use moment.localeData instead.",pt);var lt=Math.abs,ep=bt("ms"),op=bt("s"),sp=bt("m"),hp=bt("h"),cp=bt("d"),lp=bt("w"),ap=bt("M"),vp=bt("y"),yp=ui("milliseconds"),pp=ui("seconds"),wp=ui("minutes"),bp=ui("hours"),kp=ui("days"),dp=ui("months"),gp=ui("years"),dt=Math.round,gt={s:45,m:45,h:22,d:26,M:11},rf=Math.abs,s=ir.prototype;return s.abs=av,s.add=vv,s.subtract=yv,s.as=wv,s.asMilliseconds=ep,s.asSeconds=op,s.asMinutes=sp,s.asHours=hp,s.asDays=cp,s.asWeeks=lp,s.asMonths=ap,s.asYears=vp,s.valueOf=bv,s._bubble=pv,s.get=kv,s.milliseconds=yp,s.seconds=pp,s.minutes=wp,s.hours=bp,s.days=kp,s.weeks=dv,s.months=dp,s.years=gp,s.humanize=ry,s.toISOString=fr,s.toString=fr,s.toJSON=fr,s.locale=se,s.localeData=he,s.toIsoString=nt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",fr),s.lang=nf,f("X",0,0,"unix"),f("x",0,0,"valueOf"),u("x",cr),u("X",/[+-]?\d+(\.\d{1,3})?/),c("X",function(n,t,i){i._d=new Date(1e3*parseFloat(n,10))}),c("x",function(n,t,i){i._d=new Date(o(n))}),r.version="2.17.1",bo(l),r.fn=t,r.min=yc,r.max=pc,r.now=fp,r.utc=ft,r.unix=fv,r.months=ov,r.isDate=ki,r.locale=oi,r.invalid=di,r.duration=wt,r.isMoment=yt,r.weekdays=hv,r.parseZone=ev,r.localeData=pt,r.isDuration=fu,r.monthsShort=sv,r.weekdaysMin=lv,r.defineLocale=tu,r.updateLocale=uc,r.locales=fc,r.weekdaysShort=cv,r.normalizeUnits=tt,r.relativeTimeRounding=ty,r.relativeTimeThreshold=iy,r.calendarFormat=el,r.prototype=t,r})}).call(t,i(274)(n))},function(n){n.exports=function(n){return n.webpackPolyfill||(n.deprecate=function(){},n.paths=[],n.children=[],n.webpackPolyfill=1),n}},function(n,t,i){function r(n){return i(u(n))}function u(n){return f[n]||function(){throw new Error("Cannot find module '"+n+"'.");}()}var f={"./af":276,"./af.js":276,"./ar":277,"./ar-dz":278,"./ar-dz.js":278,"./ar-ly":279,"./ar-ly.js":279,"./ar-ma":280,"./ar-ma.js":280,"./ar-sa":281,"./ar-sa.js":281,"./ar-tn":282,"./ar-tn.js":282,"./ar.js":277,"./az":283,"./az.js":283,"./be":284,"./be.js":284,"./bg":285,"./bg.js":285,"./bn":286,"./bn.js":286,"./bo":287,"./bo.js":287,"./br":288,"./br.js":288,"./bs":289,"./bs.js":289,"./ca":290,"./ca.js":290,"./cs":291,"./cs.js":291,"./cv":292,"./cv.js":292,"./cy":293,"./cy.js":293,"./da":294,"./da.js":294,"./de":295,"./de-at":296,"./de-at.js":296,"./de.js":295,"./dv":297,"./dv.js":297,"./el":298,"./el.js":298,"./en-au":299,"./en-au.js":299,"./en-ca":300,"./en-ca.js":300,"./en-gb":301,"./en-gb.js":301,"./en-ie":302,"./en-ie.js":302,"./en-nz":303,"./en-nz.js":303,"./eo":304,"./eo.js":304,"./es":305,"./es-do":306,"./es-do.js":306,"./es.js":305,"./et":307,"./et.js":307,"./eu":308,"./eu.js":308,"./fa":309,"./fa.js":309,"./fi":310,"./fi.js":310,"./fo":311,"./fo.js":311,"./fr":312,"./fr-ca":313,"./fr-ca.js":313,"./fr-ch":314,"./fr-ch.js":314,"./fr.js":312,"./fy":315,"./fy.js":315,"./gd":316,"./gd.js":316,"./gl":317,"./gl.js":317,"./he":318,"./he.js":318,"./hi":319,"./hi.js":319,"./hr":320,"./hr.js":320,"./hu":321,"./hu.js":321,"./hy-am":322,"./hy-am.js":322,"./id":323,"./id.js":323,"./is":324,"./is.js":324,"./it":325,"./it.js":325,"./ja":326,"./ja.js":326,"./jv":327,"./jv.js":327,"./ka":328,"./ka.js":328,"./kk":329,"./kk.js":329,"./km":330,"./km.js":330,"./ko":331,"./ko.js":331,"./ky":332,"./ky.js":332,"./lb":333,"./lb.js":333,"./lo":334,"./lo.js":334,"./lt":335,"./lt.js":335,"./lv":336,"./lv.js":336,"./me":337,"./me.js":337,"./mi":338,"./mi.js":338,"./mk":339,"./mk.js":339,"./ml":340,"./ml.js":340,"./mr":341,"./mr.js":341,"./ms":342,"./ms-my":343,"./ms-my.js":343,"./ms.js":342,"./my":344,"./my.js":344,"./nb":345,"./nb.js":345,"./ne":346,"./ne.js":346,"./nl":347,"./nl-be":348,"./nl-be.js":348,"./nl.js":347,"./nn":349,"./nn.js":349,"./pa-in":350,"./pa-in.js":350,"./pl":351,"./pl.js":351,"./pt":352,"./pt-br":353,"./pt-br.js":353,"./pt.js":352,"./ro":354,"./ro.js":354,"./ru":355,"./ru.js":355,"./se":356,"./se.js":356,"./si":357,"./si.js":357,"./sk":358,"./sk.js":358,"./sl":359,"./sl.js":359,"./sq":360,"./sq.js":360,"./sr":361,"./sr-cyrl":362,"./sr-cyrl.js":362,"./sr.js":361,"./ss":363,"./ss.js":363,"./sv":364,"./sv.js":364,"./sw":365,"./sw.js":365,"./ta":366,"./ta.js":366,"./te":367,"./te.js":367,"./tet":368,"./tet.js":368,"./th":369,"./th.js":369,"./tl-ph":370,"./tl-ph.js":370,"./tlh":371,"./tlh.js":371,"./tr":372,"./tr.js":372,"./tzl":373,"./tzl.js":373,"./tzm":374,"./tzm-latn":375,"./tzm-latn.js":375,"./tzm.js":374,"./uk":376,"./uk.js":376,"./uz":377,"./uz.js":377,"./vi":378,"./vi.js":378,"./x-pseudo":379,"./x-pseudo.js":379,"./yo":380,"./yo.js":380,"./zh-cn":381,"./zh-cn.js":381,"./zh-hk":382,"./zh-hk.js":382,"./zh-tw":383,"./zh-tw.js":383};r.keys=function(){return Object.keys(f)};r.resolve=u;n.exports=r;r.id=275},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(n){return/^nm$/i.test(n)},meridiem:function(n,t,i){return n<12?i?"vm":"VM":i?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(n){return n+(1===n||8===n||n>=20?"ste":"de")},week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";var u={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},f={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},i=function(n){return 0===n?0:1===n?1:2===n?2:n%100>=3&&n%100<=10?3:n%100>=11?4:5},e={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},t=function(n){return function(t,r){var f=i(t),u=e[n][i(t)];return 2===f&&(u=u[r?0:1]),u.replace(/%d/i,t)}},r=["كانون الثاني يناير","شباط فبراير","آذار مارس","نيسان أبريل","أيار مايو","حزيران يونيو","تموز يوليو","آب أغسطس","أيلول سبتمبر","تشرين الأول أكتوبر","تشرين الثاني نوفمبر","كانون الأول ديسمبر"];return n.defineLocale("ar",{months:r,monthsShort:r,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(n){return"م"===n},meridiem:function(n){return n<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:t("s"),m:t("m"),mm:t("m"),h:t("h"),hh:t("h"),d:t("d"),dd:t("d"),M:t("M"),MM:t("M"),y:t("y"),yy:t("y")},preparse:function(n){return n.replace(/\u200f/g,"").replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(n){return f[n]}).replace(/،/g,",")},postformat:function(n){return n.replace(/\d/g,function(n){return u[n]}).replace(/,/g,"،")},week:{dow:6,doy:12}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("ar-dz",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"أح_إث_ثلا_أر_خم_جم_سب".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";var u={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},i=function(n){return 0===n?0:1===n?1:2===n?2:n%100>=3&&n%100<=10?3:n%100>=11?4:5},f={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},t=function(n){return function(t,r){var e=i(t),u=f[n][i(t)];return 2===e&&(u=u[r?0:1]),u.replace(/%d/i,t)}},r=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];return n.defineLocale("ar-ly",{months:r,monthsShort:r,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(n){return"م"===n},meridiem:function(n){return n<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:t("s"),m:t("m"),mm:t("m"),h:t("h"),hh:t("h"),d:t("d"),dd:t("d"),M:t("M"),MM:t("M"),y:t("y"),yy:t("y")},preparse:function(n){return n.replace(/\u200f/g,"").replace(/،/g,",")},postformat:function(n){return n.replace(/\d/g,function(n){return u[n]}).replace(/,/g,"،")},week:{dow:6,doy:12}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},i={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};return n.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(n){return"م"===n},meridiem:function(n){return n<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(n){return n.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(n){return i[n]}).replace(/،/g,",")},postformat:function(n){return n.replace(/\d/g,function(n){return t[n]}).replace(/,/g,"،")},week:{dow:0,doy:6}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};return n.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(n){return/^(gündüz|axşam)$/.test(n)},meridiem:function(n){return n<4?"gecə":n<12?"səhər":n<17?"gündüz":"axşam"},ordinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(n){if(0===n)return n+"-ıncı";var i=n%10,r=n%100-i,u=n>=100?100:null;return n+(t[i]||t[r]||t[u])},week:{dow:1,doy:7}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";function i(n,t){var i=n.split("_");return t%10==1&&t%100!=11?i[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?i[1]:i[2]}function t(n,t,r){var u={mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return"m"===r?t?"хвіліна":"хвіліну":"h"===r?t?"гадзіна":"гадзіну":n+" "+i(u[r],+n)}return n.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:t,mm:t,h:t,hh:t,d:"дзень",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(n){return/^(дня|вечара)$/.test(n)},meridiem:function(n){return n<4?"ночы":n<12?"раніцы":n<17?"дня":"вечара"},ordinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(n,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return n%10!=2&&n%10!=3||n%100==12||n%100==13?n+"-ы":n+"-і";case"D":return n+"-га";default:return n}},week:{dow:1,doy:7}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},ordinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(n){var t=n%10,i=n%100;return 0===n?n+"-ев":0===i?n+"-ен":i>10&&i<20?n+"-ти":1===t?n+"-ви":2===t?n+"-ри":7===t||8===t?n+"-ми":n+"-ти"},week:{dow:1,doy:7}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},i={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};return n.defineLocale("bn",{months:"জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(n){return n.replace(/[১২৩৪৫৬৭৮৯০]/g,function(n){return i[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return t[n]})},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(n,t){return 12===n&&(n=0),"রাত"===t&&n>=4||"দুপুর"===t&&n<5||"বিকাল"===t?n+12:n},meridiem:function(n){return n<4?"রাত":n<10?"সকাল":n<17?"দুপুর":n<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},i={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};return n.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(n){return n.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,function(n){return i[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return t[n]})},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(n,t){return 12===n&&(n=0),"མཚན་མོ"===t&&n>=4||"ཉིན་གུང"===t&&n<5||"དགོང་དག"===t?n+12:n},meridiem:function(n){return n<4?"མཚན་མོ":n<10?"ཞོགས་ཀས":n<17?"ཉིན་གུང":n<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";function t(n,t,i){return n+" "+u({mm:"munutenn",MM:"miz",dd:"devezh"}[i],n)}function r(n){switch(i(n)){case 1:case 3:case 4:case 5:case 9:return n+" bloaz";default:return n+" vloaz"}}function i(n){return n>9?i(n%10):n}function u(n,t){return 2===t?f(n):n}function f(n){var t={m:"v",b:"v",d:"z"};return void 0===t[n.charAt(0)]?n:t[n.charAt(0)]+n.substring(1)}return n.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:r},ordinalParse:/\d{1,2}(añ|vet)/,ordinal:function(n){var t=1===n?"añ":"vet";return n+t},week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";function t(n,t,i){var r=n+" ";switch(i){case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+(1===n?"minuta":2===n||3===n||4===n?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return r+(1===n?"sat":2===n||3===n||4===n?"sata":"sati");case"dd":return r+(1===n?"dan":"dana");case"MM":return r+(1===n?"mjesec":2===n||3===n||4===n?"mjeseca":"mjeseci");case"yy":return r+(1===n?"godina":2===n||3===n||4===n?"godine":"godina")}}return n.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("ca",{months:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),monthsShort:"gen._febr._mar._abr._mai._jun._jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"Dg_Dl_Dt_Dc_Dj_Dv_Ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd D MMMM YYYY H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},ordinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(n,t){var i=1===n?"r":2===n?"n":3===n?"r":4===n?"t":"è";return"w"!==t&&"W"!==t||(i="a"),n+i},week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";function i(n){return n>1&&n<5&&1!=~~(n/10)}function t(n,t,r,u){var f=n+" ";switch(r){case"s":return t||u?"pár sekund":"pár sekundami";case"m":return t?"minuta":u?"minutu":"minutou";case"mm":return t||u?f+(i(n)?"minuty":"minut"):f+"minutami";case"h":return t?"hodina":u?"hodinu":"hodinou";case"hh":return t||u?f+(i(n)?"hodiny":"hodin"):f+"hodinami";case"d":return t||u?"den":"dnem";case"dd":return t||u?f+(i(n)?"dny":"dní"):f+"dny";case"M":return t||u?"měsíc":"měsícem";case"MM":return t||u?f+(i(n)?"měsíce":"měsíců"):f+"měsíci";case"y":return t||u?"rok":"rokem";case"yy":return t||u?f+(i(n)?"roky":"let"):f+"lety"}}var r="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),u="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_");return n.defineLocale("cs",{months:r,monthsShort:u,monthsParse:function(n,t){for(var r=[],i=0;i<12;i++)r[i]=new RegExp("^"+n[i]+"$|^"+t[i]+"$","i");return r}(r,u),shortMonthsParse:function(n){for(var i=[],t=0;t<12;t++)i[t]=new RegExp("^"+n[t]+"$","i");return i}(u),longMonthsParse:function(n){for(var i=[],t=0;t<12;t++)i[t]=new RegExp("^"+n[t]+"$","i");return i}(r),weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(n){var t=/сехет$/i.exec(n)?"рен":/ҫул$/i.exec(n)?"тан":"ран";return n+t},past:"%s каялла",s:"пӗр-ик ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},ordinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},ordinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(n){var t=n,i="";return t>20?i=40===t||50===t||60===t||80===t||100===t?"fed":"ain":t>0&&(i=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][t]),n+i},week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY HH:mm"},calendar:{sameDay:"[I dag kl.] LT",nextDay:"[I morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[I går kl.] LT",lastWeek:"[sidste] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";function t(n,t,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[n+" Tage",n+" Tagen"],M:["ein Monat","einem Monat"],MM:[n+" Monate",n+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[n+" Jahre",n+" Jahren"]};return t?r[i][0]:r[i][1]}return n.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";function t(n,t,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[n+" Tage",n+" Tagen"],M:["ein Monat","einem Monat"],MM:[n+" Monate",n+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[n+" Jahre",n+" Jahren"]};return t?r[i][0]:r[i][1]}return n.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],i=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];return n.defineLocale("dv",{months:t,monthsShort:t,weekdays:i,weekdaysShort:i,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(n){return"މފ"===n},meridiem:function(n){return n<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(n){return n.replace(/،/g,",")},postformat:function(n){return n.replace(/,/g,"،")},week:{dow:7,doy:12}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";function t(n){return n instanceof Function||"[object Function]"===Object.prototype.toString.call(n)}return n.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(n,t){return/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[n.month()]:this._monthsNominativeEl[n.month()]},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(n,t,i){return n>11?i?"μμ":"ΜΜ":i?"πμ":"ΠΜ"},isPM:function(n){return"μ"===(n+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(n,i){var r=this._calendarEl[n],u=i&&i.hours();return t(r)&&(r=r.apply(i)),r.replace("{}",u%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},ordinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var t=n%10,i=1==~~(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return n+i},week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var t=n%10,i=1==~~(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return n+i}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var t=n%10,i=1==~~(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return n+i},week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var t=n%10,i=1==~~(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return n+i},week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var t=n%10,i=1==~~(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return n+i},week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"Dimanĉo_Lundo_Mardo_Merkredo_Ĵaŭdo_Vendredo_Sabato".split("_"),weekdaysShort:"Dim_Lun_Mard_Merk_Ĵaŭ_Ven_Sab".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Ĵa_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-an de] MMMM, YYYY",LLL:"D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-an de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(n){return"p"===n.charAt(0).toLowerCase()},meridiem:function(n,t,i){return n>11?i?"p.t.m.":"P.T.M.":i?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"je %s",past:"antaŭ %s",s:"sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},ordinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_");return n.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(n,r){return/-MMM-/.test(r)?i[n.month()]:t[n.month()]},monthsParseExact:!0,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_");return n.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(n,r){return/-MMM-/.test(r)?i[n.month()]:t[n.month()]},monthsParseExact:!0,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";function t(n,t,i,r){var u={s:["mõne sekundi","mõni sekund","paar sekundit"],m:["ühe minuti","üks minut"],mm:[n+" minuti",n+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[n+" tunni",n+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[n+" kuu",n+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[n+" aasta",n+" aastat"]};return t?u[i][2]?u[i][2]:u[i][1]:r?u[i][0]:u[i][1]}return n.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},i={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};return n.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(n){return/بعد از ظهر/.test(n)},meridiem:function(n){return n<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چندین ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(n){return n.replace(/[۰-۹]/g,function(n){return i[n]}).replace(/،/g,",")},postformat:function(n){return n.replace(/\d/g,function(n){return t[n]}).replace(/,/g,"،")},ordinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";function t(n,t,i,u){var f="";switch(i){case"s":return u?"muutaman sekunnin":"muutama sekunti";case"m":return u?"minuutin":"minuutti";case"mm":f=u?"minuutin":"minuuttia";break;case"h":return u?"tunnin":"tunti";case"hh":f=u?"tunnin":"tuntia";break;case"d":return u?"päivän":"päivä";case"dd":f=u?"päivän":"päivää";break;case"M":return u?"kuukauden":"kuukausi";case"MM":f=u?"kuukauden":"kuukautta";break;case"y":return u?"vuoden":"vuosi";case"yy":f=u?"vuoden":"vuotta"}return r(n,u)+" "+f}function r(n,t){return n<10?t?u[n]:i[n]:n}var i="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),u=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",i[7],i[8],i[9]];return n.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",m:"ein minutt",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaði",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|)/,ordinal:function(n){return n+(1===n?"er":"")},week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|e)/,ordinal:function(n){return n+(1===n?"er":"e")}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|e)/,ordinal:function(n){return n+(1===n?"er":"e")},week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),i="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");return n.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(n,r){return/-MMM-/.test(r)?i[n.month()]:t[n.month()]},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(n){return n+(1===n||8===n||n>=20?"ste":"de")},week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},ordinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(n){var t=1===n?"d":n%10==2?"na":"mh";return n+t},week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(n){return 0===n.indexOf("un")?"n"+n:"en "+n},past:"hai %s",s:"uns segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(n){return 2===n?"שעתיים":n+" שעות"},d:"יום",dd:function(n){return 2===n?"יומיים":n+" ימים"},M:"חודש",MM:function(n){return 2===n?"חודשיים":n+" חודשים"},y:"שנה",yy:function(n){return 2===n?"שנתיים":n%10==0&&10!==n?n+" שנה":n+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(n){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(n)},meridiem:function(n,t,i){return n<5?"לפנות בוקר":n<10?"בבוקר":n<12?i?'לפנה"צ':"לפני הצהריים":n<18?i?'אחה"צ':"אחרי הצהריים":"בערב"}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},i={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};return n.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(n){return n.replace(/[१२३४५६७८९०]/g,function(n){return i[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return t[n]})},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(n,t){return 12===n&&(n=0),"रात"===t?n<4?n:n+12:"सुबह"===t?n:"दोपहर"===t?n>=10?n:n+12:"शाम"===t?n+12:void 0},meridiem:function(n){return n<4?"रात":n<10?"सुबह":n<17?"दोपहर":n<20?"शाम":"रात"},week:{dow:0,doy:6}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";function t(n,t,i){var r=n+" ";switch(i){case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+(1===n?"minuta":2===n||3===n||4===n?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return r+(1===n?"sat":2===n||3===n||4===n?"sata":"sati");case"dd":return r+(1===n?"dan":"dana");case"MM":return r+(1===n?"mjesec":2===n||3===n||4===n?"mjeseca":"mjeseci");case"yy":return r+(1===n?"godina":2===n||3===n||4===n?"godine":"godina")}}return n.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";function t(n,t,i,r){var u=n;switch(i){case"s":return r||t?"néhány másodperc":"néhány másodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return u+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" óra":" órája");case"hh":return u+(r||t?" óra":" órája");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return u+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" hónap":" hónapja");case"MM":return u+(r||t?" hónap":" hónapja");case"y":return"egy"+(r||t?" év":" éve");case"yy":return u+(r||t?" év":" éve")}return""}function i(n){return(n?"":"[múlt] ")+"["+r[this.day()]+"] LT[-kor]"}var r="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");return n.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(n){return"u"===n.charAt(1).toLowerCase()},meridiem:function(n,t,i){return n<12?i===!0?"de":"DE":i===!0?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return i.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return i.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(n){return/^(ցերեկվա|երեկոյան)$/.test(n)},meridiem:function(n){return n<4?"գիշերվա":n<12?"առավոտվա":n<17?"ցերեկվա":"երեկոյան"},ordinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(n,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===n?n+"-ին":n+"-րդ";default:return n}},week:{dow:1,doy:7}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(n,t){return 12===n&&(n=0),"pagi"===t?n:"siang"===t?n>=11?n:n+12:"sore"===t||"malam"===t?n+12:void 0},meridiem:function(n){return n<11?"pagi":n<15?"siang":n<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";function i(n){return n%100==11||n%10!=1}function t(n,t,r,u){var f=n+" ";switch(r){case"s":return t||u?"nokkrar sekúndur":"nokkrum sekúndum";case"m":return t?"mínúta":"mínútu";case"mm":return i(n)?f+(t||u?"mínútur":"mínútum"):t?f+"mínúta":f+"mínútu";case"hh":return i(n)?f+(t||u?"klukkustundir":"klukkustundum"):f+"klukkustund";case"d":return t?"dagur":u?"dag":"degi";case"dd":return i(n)?t?f+"dagar":f+(u?"daga":"dögum"):t?f+"dagur":f+(u?"dag":"degi");case"M":return t?"mánuður":u?"mánuð":"mánuði";case"MM":return i(n)?t?f+"mánuðir":f+(u?"mánuði":"mánuðum"):t?f+"mánuður":f+(u?"mánuð":"mánuði");case"y":return t||u?"ár":"ári";case"yy":return i(n)?f+(t||u?"ár":"árum"):f+(t||u?"ár":"ári")}}return n.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:t,m:t,mm:t,h:"klukkustund",hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato".split("_"),weekdaysShort:"Dom_Lun_Mar_Mer_Gio_Ven_Sab".split("_"),weekdaysMin:"Do_Lu_Ma_Me_Gi_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(n){return(/^[0-9].+$/.test(n)?"tra":"in")+" "+n},past:"%s fa",s:"alcuni secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"Ah時m分",LTS:"Ah時m分s秒",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah時m分",LLLL:"YYYY年M月D日Ah時m分 dddd"},meridiemParse:/午前|午後/i,isPM:function(n){return"午後"===n},meridiem:function(n){return n<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:"[来週]dddd LT",lastDay:"[昨日] LT",lastWeek:"[前週]dddd LT",sameElse:"L"},ordinalParse:/\d{1,2}日/,ordinal:function(n,t){switch(t){case"d":case"D":case"DDD":return n+"日";default:return n}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(n,t){return 12===n&&(n=0),"enjing"===t?n:"siyang"===t?n>=11?n:n+12:"sonten"===t||"ndalu"===t?n+12:void 0},meridiem:function(n){return n<11?"enjing":n<15?"siyang":n<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("ka",{months:{standalone:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),format:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(n){return/(წამი|წუთი|საათი|წელი)/.test(n)?n.replace(/ი$/,"ში"):n+"ში"},past:function(n){return/(წამი|წუთი|საათი|დღე|თვე)/.test(n)?n.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(n)?n.replace(/წელი$/,"წლის წინ"):void 0},s:"რამდენიმე წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},ordinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(n){return 0===n?n:1===n?n+"-ლი":n<20||n<=100&&n%20==0||n%100==0?"მე-"+n:n+"-ე"},week:{dow:1,doy:7}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};return n.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},ordinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(n){var i=n%10,r=n>=100?100:null;return n+(t[n]||t[i]||t[r])},week:{dow:1,doy:7}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysMin:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h시 m분",LTS:"A h시 m분 s초",L:"YYYY.MM.DD",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h시 m분",LLLL:"YYYY년 MMMM D일 dddd A h시 m분"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"일분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},ordinalParse:/\d{1,2}일/,ordinal:"%d일",meridiemParse:/오전|오후/,isPM:function(n){return"오후"===n},meridiem:function(n){return n<12?"오전":"오후"}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};return n.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кече саат] LT",lastWeek:"[Өткен аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},ordinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(n){var i=n%10,r=n>=100?100:null;return n+(t[n]||t[i]||t[r])},week:{dow:1,doy:7}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";function t(n,t,i){var r={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?r[i][0]:r[i][1]}function r(n){var t=n.substr(0,n.indexOf(" "));return i(t)?"a "+n:"an "+n}function u(n){var t=n.substr(0,n.indexOf(" "));return i(t)?"viru "+n:"virun "+n}function i(n){if(n=parseInt(n,10),isNaN(n))return!1;if(n<0)return!0;if(n<10)return 4<=n&&n<=7;if(n<100){var t=n%10,r=n/10;return i(0===t?r:t)}if(n<1e4){for(;n>=10;)n/=10;return i(n)}return n/=1e3,i(n)}return n.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:r,past:u,s:"e puer Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(n){return"ຕອນແລງ"===n},meridiem:function(n){return n<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},ordinalParse:/(ທີ່)\d{1,2}/,ordinal:function(n){return"ທີ່"+n}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";function f(n,t,i,r){return t?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"}function i(n,i,r,u){return i?t(r)[0]:u?t(r)[1]:t(r)[2]}function u(n){return n%10==0||n>10&&n<20}function t(n){return e[n].split("_")}function r(n,r,f,e){var o=n+" ";return 1===n?o+i(n,r,f[0],e):r?o+(u(n)?t(f)[1]:t(f)[0]):e?o+t(f)[1]:o+(u(n)?t(f)[1]:t(f)[2])}var e={m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};return n.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:f,m:i,mm:r,h:i,hh:r,d:i,dd:r,M:i,MM:r,y:i,yy:r},ordinalParse:/\d{1,2}-oji/,ordinal:function(n){return n+"-oji"},week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";function r(n,t,i){return i?t%10==1&&t%100!=11?n[2]:n[3]:t%10==1&&t%100!=11?n[0]:n[1]}function t(n,t,i){return n+" "+r(u[i],n,t)}function i(n,t,i){return r(u[i],n,t)}function f(n,t){return t?"dažas sekundes":"dažām sekundēm"}var u={m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};return n.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:f,m:i,mm:t,h:i,hh:t,d:i,dd:t,M:i,MM:t,y:i,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";var t={words:{m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(n,t){return 1===n?t[0]:n>=2&&n<=4?t[1]:t[2]},translate:function(n,i,r){var u=t.words[r];return 1===r.length?i?u[0]:u[1]:n+" "+t.correctGrammaticalCase(n,u)}};return n.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},ordinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(n){var t=n%10,i=n%100;return 0===n?n+"-ев":0===i?n+"-ен":i>10&&i<20?n+"-ти":1===t?n+"-ви":2===t?n+"-ри":7===t||8===t?n+"-ми":n+"-ти"},week:{dow:1,doy:7}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(n,t){return 12===n&&(n=0),"രാത്രി"===t&&n>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?n+12:n},meridiem:function(n){return n<4?"രാത്രി":n<12?"രാവിലെ":n<17?"ഉച്ച കഴിഞ്ഞ്":n<20?"വൈകുന്നേരം":"രാത്രി"}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";function t(n,t,i){var r="";if(t)switch(i){case"s":r="काही सेकंद";break;case"m":r="एक मिनिट";break;case"mm":r="%d मिनिटे";break;case"h":r="एक तास";break;case"hh":r="%d तास";break;case"d":r="एक दिवस";break;case"dd":r="%d दिवस";break;case"M":r="एक महिना";break;case"MM":r="%d महिने";break;case"y":r="एक वर्ष";break;case"yy":r="%d वर्षे"}else switch(i){case"s":r="काही सेकंदां";break;case"m":r="एका मिनिटा";break;case"mm":r="%d मिनिटां";break;case"h":r="एका तासा";break;case"hh":r="%d तासां";break;case"d":r="एका दिवसा";break;case"dd":r="%d दिवसां";break;case"M":r="एका महिन्या";break;case"MM":r="%d महिन्यां";break;case"y":r="एका वर्षा";break;case"yy":r="%d वर्षां"}return r.replace(/%d/i,n)}var i={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},r={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};return n.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},preparse:function(n){return n.replace(/[१२३४५६७८९०]/g,function(n){return r[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return i[n]})},meridiemParse:/रात्री|सकाळी|दुपारी|सायंकाळी/,meridiemHour:function(n,t){return 12===n&&(n=0),"रात्री"===t?n<4?n:n+12:"सकाळी"===t?n:"दुपारी"===t?n>=10?n:n+12:"सायंकाळी"===t?n+12:void 0},meridiem:function(n){return n<4?"रात्री":n<10?"सकाळी":n<17?"दुपारी":n<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(n,t){return 12===n&&(n=0),"pagi"===t?n:"tengahari"===t?n>=11?n:n+12:"petang"===t||"malam"===t?n+12:void 0},meridiem:function(n){return n<11?"pagi":n<15?"tengahari":n<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(n,t){return 12===n&&(n=0),"pagi"===t?n:"tengahari"===t?n>=11?n:n+12:"petang"===t||"malam"===t?n+12:void 0},meridiem:function(n){return n<11?"pagi":n<15?"tengahari":n<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},i={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};return n.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(n){return n.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,function(n){return i[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return t[n]})},week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},i={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};return n.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(n){return n.replace(/[१२३४५६७८९०]/g,function(n){return i[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return t[n]})},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(n,t){return 12===n&&(n=0),"राति"===t?n<4?n:n+12:"बिहान"===t?n:"दिउँसो"===t?n>=10?n:n+12:"साँझ"===t?n+12:void 0},meridiem:function(n){return n<3?"राति":n<12?"बिहान":n<16?"दिउँसो":n<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";var r="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),u="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),t=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;return n.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(n,t){return/-MMM-/.test(t)?u[n.month()]:r[n.month()]},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:t,longMonthsParse:t,shortMonthsParse:t,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"Zo_Ma_Di_Wo_Do_Vr_Za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(n){return n+(1===n||8===n||n>=20?"ste":"de")},week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";var r="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),u="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),t=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;return n.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(n,t){return/-MMM-/.test(t)?u[n.month()]:r[n.month()]},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:t,longMonthsParse:t,shortMonthsParse:t,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"Zo_Ma_Di_Wo_Do_Vr_Za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(n){return n+(1===n||8===n||n>=20?"ste":"de")},week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},i={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};return n.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(n){return n.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,function(n){return i[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return t[n]})},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(n,t){return 12===n&&(n=0),"ਰਾਤ"===t?n<4?n:n+12:"ਸਵੇਰ"===t?n:"ਦੁਪਹਿਰ"===t?n>=10?n:n+12:"ਸ਼ਾਮ"===t?n+12:void 0},meridiem:function(n){return n<4?"ਰਾਤ":n<10?"ਸਵੇਰ":n<17?"ਦੁਪਹਿਰ":n<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";function i(n){return n%10<5&&n%10>1&&~~(n/10)%10!=1}function t(n,t,r){var u=n+" ";switch(r){case"m":return t?"minuta":"minutę";case"mm":return u+(i(n)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return u+(i(n)?"godziny":"godzin");case"MM":return u+(i(n)?"miesiące":"miesięcy");case"yy":return u+(i(n)?"lata":"lat")}}var r="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),u="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");return n.defineLocale("pl",{months:function(n,t){return""===t?"("+u[n.month()]+"|"+r[n.month()]+")":/D MMMM/.test(t)?u[n.month()]:r[n.month()]},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:"[W] dddd [o] LT",lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:t,mm:t,h:t,hh:t,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:t,y:"rok",yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("pt",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Dom_2ª_3ª_4ª_5ª_6ª_Sáb".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("pt-br",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Dom_2ª_3ª_4ª_5ª_6ª_Sáb".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"%s atrás",s:"poucos segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº"})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";function t(n,t,i){var r=" ";return(n%100>=20||n>=100&&n%100==0)&&(r=" de "),n+r+{mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[i]}return n.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";function r(n,t){var i=n.split("_");return t%10==1&&t%100!=11?i[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?i[1]:i[2]}function t(n,t,i){var u={mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return"m"===i?t?"минута":"минуту":n+" "+r(u[i],+n)}var i=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];return n.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:i,longMonthsParse:i,shortMonthsParse:i,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сегодня в] LT",nextDay:"[Завтра в] LT",lastDay:"[Вчера в] LT",nextWeek:function(n){if(n.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В следующее] dddd [в] LT";case 1:case 2:case 4:return"[В следующий] dddd [в] LT";case 3:case 5:case 6:return"[В следующую] dddd [в] LT"}},lastWeek:function(n){if(n.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:t,mm:t,h:"час",hh:t,d:"день",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(n){return/^(дня|вечера)$/.test(n)},meridiem:function(n){return n<4?"ночи":n<12?"утра":n<17?"дня":"вечера"},ordinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(n,t){switch(t){case"M":case"d":case"DDD":return n+"-й";case"D":return n+"-го";case"w":case"W":return n+"-я";default:return n}},week:{dow:1,doy:7}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},ordinalParse:/\d{1,2} වැනි/,ordinal:function(n){return n+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(n){return"ප.ව."===n||"පස් වරු"===n},meridiem:function(n,t,i){return n>11?i?"ප.ව.":"පස් වරු":i?"පෙ.ව.":"පෙර වරු"}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";function i(n){return n>1&&n<5}function t(n,t,r,u){var f=n+" ";switch(r){case"s":return t||u?"pár sekúnd":"pár sekundami";case"m":return t?"minúta":u?"minútu":"minútou";case"mm":return t||u?f+(i(n)?"minúty":"minút"):f+"minútami";case"h":return t?"hodina":u?"hodinu":"hodinou";case"hh":return t||u?f+(i(n)?"hodiny":"hodín"):f+"hodinami";case"d":return t||u?"deň":"dňom";case"dd":return t||u?f+(i(n)?"dni":"dní"):f+"dňami";case"M":return t||u?"mesiac":"mesiacom";case"MM":return t||u?f+(i(n)?"mesiace":"mesiacov"):f+"mesiacmi";case"y":return t||u?"rok":"rokom";case"yy":return t||u?f+(i(n)?"roky":"rokov"):f+"rokmi"}}var r="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),u="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");return n.defineLocale("sk",{months:r,monthsShort:u,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";function t(n,t,i,r){var u=n+" ";switch(i){case"s":return t||r?"nekaj sekund":"nekaj sekundami";case"m":return t?"ena minuta":"eno minuto";case"mm":return u+(1===n?t?"minuta":"minuto":2===n?t||r?"minuti":"minutama":n<5?t||r?"minute":"minutami":t||r?"minut":"minutami");case"h":return t?"ena ura":"eno uro";case"hh":return u+(1===n?t?"ura":"uro":2===n?t||r?"uri":"urama":n<5?t||r?"ure":"urami":t||r?"ur":"urami");case"d":return t||r?"en dan":"enim dnem";case"dd":return u+(1===n?t||r?"dan":"dnem":2===n?t||r?"dni":"dnevoma":t||r?"dni":"dnevi");case"M":return t||r?"en mesec":"enim mesecem";case"MM":return u+(1===n?t||r?"mesec":"mesecem":2===n?t||r?"meseca":"mesecema":n<5?t||r?"mesece":"meseci":t||r?"mesecev":"meseci");case"y":return t||r?"eno leto":"enim letom";case"yy":return u+(1===n?t||r?"leto":"letom":2===n?t||r?"leti":"letoma":n<5?t||r?"leta":"leti":t||r?"let":"leti")}}return n.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(n){return"M"===n.charAt(0)},meridiem:function(n){return n<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";var t={words:{m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(n,t){return 1===n?t[0]:n>=2&&n<=4?t[1]:t[2]},translate:function(n,i,r){var u=t.words[r];return 1===r.length?i?u[0]:u[1]:n+" "+t.correctGrammaticalCase(n,u)}};return n.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";var t={words:{m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(n,t){return 1===n?t[0]:n>=2&&n<=4?t[1]:t[2]},translate:function(n,i,r){var u=t.words[r];return 1===r.length?i?u[0]:u[1]:n+" "+t.correctGrammaticalCase(n,u)}};return n.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"дан",dd:t.translate,M:"месец",MM:t.translate,y:"годину",yy:t.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(n){return n<11?"ekuseni":n<15?"emini":n<19?"entsambama":"ebusuku"},meridiemHour:function(n,t){return 12===n&&(n=0),"ekuseni"===t?n:"emini"===t?n>=11?n:n+12:"entsambama"===t||"ebusuku"===t?0===n?0:n+12:void 0},ordinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},ordinalParse:/\d{1,2}(e|a)/,ordinal:function(n){var t=n%10,i=1==~~(n%100/10)?"e":1===t?"a":2===t?"a":"e";return n+i},week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},i={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};return n.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},ordinalParse:/\d{1,2}வது/,ordinal:function(n){return n+"வது"},preparse:function(n){return n.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,function(n){return i[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return t[n]})},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(n){return n<2?" யாமம்":n<6?" வைகறை":n<10?" காலை":n<14?" நண்பகல்":n<18?" எற்பாடு":n<22?" மாலை":" யாமம்"},meridiemHour:function(n,t){return 12===n&&(n=0),"யாமம்"===t?n<2?n:n+12:"வைகறை"===t||"காலை"===t?n:"நண்பகல்"===t&&n>=10?n:n+12},week:{dow:0,doy:6}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},ordinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(n,t){return 12===n&&(n=0),"రాత్రి"===t?n<4?n:n+12:"ఉదయం"===t?n:"మధ్యాహ్నం"===t?n>=10?n:n+12:"సాయంత్రం"===t?n+12:void 0},meridiem:function(n){return n<4?"రాత్రి":n<10?"ఉదయం":n<17?"మధ్యాహ్నం":n<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juniu_Juliu_Augustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Aug_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sexta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sext_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Sex_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"minutu balun",m:"minutu ida",mm:"minutus %d",h:"horas ida",hh:"horas %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var t=n%10,i=1==~~(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return n+i},week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY/MM/DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(n){return"หลังเที่ยง"===n},meridiem:function(n){return n<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},ordinalParse:/\d{1,2}/,ordinal:function(n){return n},week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";function r(n){var t=n;return n.indexOf("jaj")!==-1?t.slice(0,-3)+"leS":n.indexOf("jar")!==-1?t.slice(0,-3)+"waQ":n.indexOf("DIS")!==-1?t.slice(0,-3)+"nem":t+" pIq"}function u(n){var t=n;return n.indexOf("jaj")!==-1?t.slice(0,-3)+"Hu’":n.indexOf("jar")!==-1?t.slice(0,-3)+"wen":n.indexOf("DIS")!==-1?t.slice(0,-3)+"ben":t+" ret"}function t(n,t,i){var r=f(n);switch(i){case"mm":return r+" tup";case"hh":return r+" rep";case"dd":return r+" jaj";case"MM":return r+" jar";case"yy":return r+" DIS"}}function f(n){var r=Math.floor(n%1e3/100),u=Math.floor(n%100/10),f=n%10,t="";return r>0&&(t+=i[r]+"vatlh"),u>0&&(t+=(""!==t?" ":"")+i[u]+"maH"),f>0&&(t+=(""!==t?" ":"")+i[f]),""===t?"pagh":t}var i="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");return n.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:r,past:u,s:"puS lup",m:"wa’ tup",mm:t,h:"wa’ rep",hh:t,d:"wa’ jaj",dd:t,M:"wa’ jar",MM:t,y:"wa’ DIS",yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};return n.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[haftaya] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen hafta] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinalParse:/\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,ordinal:function(n){if(0===n)return n+"'ıncı";var i=n%10,r=n%100-i,u=n>=100?100:null;return n+(t[i]||t[r]||t[u])},week:{dow:1,doy:7}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";function t(n,t,i,r){var u={s:["viensas secunds","'iensas secunds"],m:["'n míut","'iens míut"],mm:[n+" míuts",""+n+" míuts"],h:["'n þora","'iensa þora"],hh:[n+" þoras",""+n+" þoras"],d:["'n ziua","'iensa ziua"],dd:[n+" ziuas",""+n+" ziuas"],M:["'n mes","'iens mes"],MM:[n+" mesen",""+n+" mesen"],y:["'n ar","'iens ar"],yy:[n+" ars",""+n+" ars"]};return r?u[i][0]:t?u[i][0]:u[i][1]}return n.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(n){return"d'o"===n.toLowerCase()},meridiem:function(n,t,i){return n>11?i?"d'o":"D'O":i?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";function r(n,t){var i=n.split("_");return t%10==1&&t%100!=11?i[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?i[1]:i[2]}function t(n,t,i){var u={mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};return"m"===i?t?"хвилина":"хвилину":"h"===i?t?"година":"годину":n+" "+r(u[i],+n)}function u(n,t){var i={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")},r=/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative";return i[r][n.day()]}function i(n){return function(){return n+"о"+(11===this.hours()?"б":"")+"] LT"}}return n.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:u,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:i("[Сьогодні "),nextDay:i("[Завтра "),lastDay:i("[Вчора "),nextWeek:i("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return i("[Минулої] dddd [").call(this);case 1:case 2:case 4:return i("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",m:t,mm:t,h:"годину",hh:t,d:"день",dd:t,M:"місяць",MM:t,y:"рік",yy:t},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(n){return/^(дня|вечора)$/.test(n)},meridiem:function(n){return n<4?"ночі":n<12?"ранку":n<17?"дня":"вечора"},ordinalParse:/\d{1,2}-(й|го)/,ordinal:function(n,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return n+"-й";case"D":return n+"-го";default:return n}},week:{dow:1,doy:7}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(n){return/^ch$/i.test(n)},meridiem:function(n,t,i){return n<12?i?"sa":"SA":i?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},ordinalParse:/\d{1,2}/,ordinal:function(n){return n},week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var t=n%10,i=1==~~(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return n+i},week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},ordinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah点mm分",LTS:"Ah点m分s秒",L:"YYYY-MM-DD",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日Ah点mm分",LLLL:"YYYY年MMMD日ddddAh点mm分",l:"YYYY-MM-DD",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日Ah点mm分",llll:"YYYY年MMMD日ddddAh点mm分"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(n,t){return 12===n&&(n=0),"凌晨"===t||"早上"===t||"上午"===t?n:"下午"===t||"晚上"===t?n+12:n>=11?n:n+12},meridiem:function(n,t){var i=100*n+t;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:function(){return 0===this.minutes()?"[今天]Ah[点整]":"[今天]LT"},nextDay:function(){return 0===this.minutes()?"[明天]Ah[点整]":"[明天]LT"},lastDay:function(){return 0===this.minutes()?"[昨天]Ah[点整]":"[昨天]LT"},nextWeek:function(){var i,t;return i=n().startOf("week"),t=this.diff(i,"days")>=7?"[下]":"[本]",0===this.minutes()?t+"dddAh点整":t+"dddAh点mm"},lastWeek:function(){var i,t;return i=n().startOf("week"),t=this.unix()<i.unix()?"[上]":"[本]",0===this.minutes()?t+"dddAh点整":t+"dddAh点mm"},sameElse:"LL"},ordinalParse:/\d{1,2}(日|月|周)/,ordinal:function(n,t){switch(t){case"d":case"D":case"DDD":return n+"日";case"M":return n+"月";case"w":case"W":return n+"周";default:return n}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah點mm分",LTS:"Ah點m分s秒",L:"YYYY年MMMD日",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日Ah點mm分",LLLL:"YYYY年MMMD日ddddAh點mm分",l:"YYYY年MMMD日",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日Ah點mm分",llll:"YYYY年MMMD日ddddAh點mm分"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(n,t){return 12===n&&(n=0),"凌晨"===t||"早上"===t||"上午"===t?n:"中午"===t?n>=11?n:n+12:"下午"===t||"晚上"===t?n+12:void 0},meridiem:function(n,t){var i=100*n+t;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},ordinalParse:/\d{1,2}(日|月|週)/,ordinal:function(n,t){switch(t){case"d":case"D":case"DDD":return n+"日";case"M":return n+"月";case"w":case"W":return n+"週";default:return n}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})})},function(n,t,i){!function(n,t){t(i(273))}(this,function(n){"use strict";return n.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah點mm分",LTS:"Ah點m分s秒",L:"YYYY年MMMD日",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日Ah點mm分",LLLL:"YYYY年MMMD日ddddAh點mm分",l:"YYYY年MMMD日",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日Ah點mm分",llll:"YYYY年MMMD日ddddAh點mm分"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(n,t){return 12===n&&(n=0),"凌晨"===t||"早上"===t||"上午"===t?n:"中午"===t?n>=11?n:n+12:"下午"===t||"晚上"===t?n+12:void 0},meridiem:function(n,t){var i=100*n+t;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},ordinalParse:/\d{1,2}(日|月|週)/,ordinal:function(n,t){switch(t){case"d":case"D":case"DDD":return n+"日";case"M":return n+"月";case"w":case"W":return n+"週";default:return n}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})})},function(n,t,i){"use strict";var r=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},u=i(268),f=i(93),e=i(385),o=i(59),s=i(14),h=i(78),c=function(n){function t(t,i,r){var u=n.call(this,t)||this;return u.inputName=t,u.fieldName=i,u.endpoint=r,u}return r(t,n),t.prototype.reset=function(){this.dropDown.reset()},t.prototype.build=function(){var i=this,t=o.$$(n.prototype.build.call(this));return this.buildFieldSelect().then(function(){t.append(i.dropDown.getElement())}),this.element=t.el,this.element},t.prototype.getValue=function(){var n=this.dropDown?this.dropDown.getValue():"",t=new h.QueryBuilder;return n?(t.advancedExpression.addFieldExpression(this.fieldName,"==",[n]),t.build().aq):""},t.prototype.buildFieldSelect=function(){var n=this;return this.endpoint.listFieldValues({field:this.fieldName}).then(function(t){var i=[""];s.each(t,function(n){i.push(n.value)});n.dropDown=new u.Dropdown(n.onChange.bind(n),i,function(t){return f.FacetUtils.tryToGetTranslatedCaption(n.fieldName,t)})})},t}(e.DocumentInput);t.SimpleFieldInput=c},function(n,t,i){"use strict";var r=i(59),u=i(40),f=function(){function n(n){this.inputName=n}return n.prototype.reset=function(){},n.prototype.build=function(){var n=r.$$("div",{className:"coveo-advanced-search-document-input-section"}),t=r.$$("span",{className:"coveo-advanced-search-label"});return t.text(this.inputName),n.append(t.el),this.element=n.el,this.element},n.prototype.getValue=function(){return""},n.prototype.updateQuery=function(n){var t=this.getValue();t&&n.advancedExpression.add(this.getValue())},n.prototype.onChange=function(){this.element&&r.$$(this.element).trigger(u.AdvancedSearchEvents.executeAdvancedSearch)},n}();t.DocumentInput=f},function(n,t,i){"use strict";var r=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},u=i(268),f=i(260),e=i(59),o=i(385),s=i(78),h=function(n){function t(t,i){var r=n.call(this,t)||this;return r.inputName=t,r.fieldName=i,r}return r(t,n),t.prototype.reset=function(){this.mode.reset();this.input.reset()},t.prototype.build=function(){var t=e.$$(n.prototype.build.call(this));return this.mode=new u.Dropdown(this.onChange.bind(this),["Contains","DoesNotContain","Matches"]),t.append(this.mode.getElement()),this.input=new f.TextInput(this.onChange.bind(this),""),t.append(this.input.getElement()),this.element=t.el,this.element},t.prototype.getValue=function(){var t=this.input.getValue(),n=new s.QueryBuilder;if(t)switch(this.mode.getValue()){case"Contains":return n.advancedExpression.addFieldExpression(this.fieldName,"=",[t]),n.build().aq;case"DoesNotContain":return n.advancedExpression.addFieldExpression(this.fieldName,"<>",[t]),n.build().aq;default:return n.advancedExpression.addFieldExpression(this.fieldName,"==",[t]),n.build().aq}return""},t}(o.DocumentInput);t.AdvancedFieldInput=h},function(n,t,i){"use strict";var e=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},u=i(268),o=i(269),f=i(59),s=i(385),h=i(78),r=function(n){function t(){return n.call(this,"Size")||this}return e(t,n),t.prototype.reset=function(){this.modeSelect.reset();this.sizeInput.reset()},t.prototype.build=function(){var r=f.$$(n.prototype.build.call(this)),i=f.$$("div",{className:"coveo-size-input-mode-section"});return this.modeSelect=new u.Dropdown(this.onChange.bind(this),t.modes),this.modeSelect.setId("coveo-size-input-mode"),i.append(this.modeSelect.getElement()),this.sizeInput=new o.NumericSpinner(this.onChange.bind(this)),i.append(this.sizeInput.getElement()),this.sizeSelect=new u.Dropdown(this.onChange.bind(this),t.sizes),this.sizeSelect.setId("coveo-size-input-select"),i.append(this.sizeSelect.getElement()),r.append(i.el),this.element=r.el,this.element},t.prototype.getValue=function(){var t=this.getSizeInBytes(),n=new h.QueryBuilder;if(t)switch(this.modeSelect.getValue()){case"AtLeast":return n.advancedExpression.addFieldExpression("@size",">=",[this.getSizeInBytes().toString()]),n.build().aq;default:return n.advancedExpression.addFieldExpression("@size","<=",[this.getSizeInBytes().toString()]),n.build().aq}return""},t.prototype.getSizeInBytes=function(){var n=this.sizeInput.getFloatValue();switch(this.sizeSelect.getValue()){case"KB":return 1024*n;case"MB":return n*Math.pow(1024,2);default:return n}},t}(s.DocumentInput);r.modes=["AtLeast","AtMost"];r.sizes=["KB","MB","Bytes"];t.SizeInput=r},function(n,t,i){"use strict";var a=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},v=i(103),o=i(107),y=i(12),r=i(51),s=i(389),p=i(111),h=i(35),u=i(59),c=i(112),f=i(21),l=i(14),e=function(n){function t(i,f,e,s){var h=n.call(this,i,t.ID,e)||this;return h.element=i,h.options=f,h.bindings=e,h.result=s,h.options=o.ComponentOptions.initComponentOptions(i,t,f),y.Assert.exists(h.result),h.container=u.$$(h.element),h.text=u.$$("span"),h.container.append(h.text.el),h.container.on("click",function(){return h.toggleFollow()}),h.bind.onRootElement(r.SearchAlertsEvents.searchAlertsDeleted,function(n){return h.handleSubscriptionDeleted(n)}),h.bind.onRootElement(r.SearchAlertsEvents.searchAlertsCreated,function(n){return h.handleSubscriptionCreated(n)}),h.container.addClass("coveo-follow-item-loading"),h.updateIsFollowed(),h}return a(t,n),t.prototype.setFollowed=function(n){this.container.removeClass("coveo-follow-item-loading");this.subscription=n;this.container.addClass("coveo-follow-item-followed");this.text.text(h.l("SearchAlerts_unFollowing"))},t.prototype.setNotFollowed=function(){this.container.removeClass("coveo-follow-item-loading");this.subscription=t.buildFollowRequest(this.getId(),this.result.title,this.options);this.container.removeClass("coveo-follow-item-followed");this.text.text(h.l("SearchAlerts_follow"))},t.prototype.toggleFollow=function(){var n=this;this.container.hasClass("coveo-follow-item-loading")||(this.container.removeClass("coveo-follow-item-followed"),this.container.addClass("coveo-follow-item-loading"),this.subscription.id?(this.logAnalyticsEvent(c.analyticsActionCauseList.searchAlertsUnfollowDocument),this.queryController.getEndpoint().deleteSubscription(this.subscription).then(function(){var t={subscription:n.subscription,dom:n.element};u.$$(n.root).trigger(r.SearchAlertsEvents.searchAlertsDeleted,t)}).catch(function(){n.container.removeClass("coveo-follow-item-loading");var t={dom:n.element};u.$$(n.root).trigger(r.SearchAlertsEvents.searchAlertsFail,t)})):(this.logAnalyticsEvent(c.analyticsActionCauseList.searchAlertsFollowDocument),this.queryController.getEndpoint().follow(this.subscription).then(function(t){var i={subscription:t,dom:n.element};u.$$(n.root).trigger(r.SearchAlertsEvents.searchAlertsCreated,i)}).catch(function(){n.container.removeClass("coveo-follow-item-loading");var t={dom:n.element};u.$$(n.root).trigger(r.SearchAlertsEvents.searchAlertsFail,t)})))},t.prototype.getText=function(){return this.text.text()},t.prototype.updateIsFollowed=function(){var n=this;this.queryController.getEndpoint().listSubscriptions().then(function(t){if(l.isArray(t)){var i=l.find(t,function(t){var i=t.typeConfig;return i&&null!=i.id&&i.id==n.getId()});null!=i?n.setFollowed(i):n.setNotFollowed()}else n.remove()}).catch(function(){n.remove()})},t.prototype.handleSubscriptionDeleted=function(n){if(n.subscription&&n.subscription.type==s.SUBSCRIPTION_TYPE.followDocument){var t=n.subscription.typeConfig;t.id==this.getId()&&this.setNotFollowed()}},t.prototype.handleSubscriptionCreated=function(n){if(n.subscription&&n.subscription.type==s.SUBSCRIPTION_TYPE.followDocument){var t=n.subscription.typeConfig;t.id==this.getId()&&this.setFollowed(n.subscription)}},t.prototype.remove=function(){this.element.parentElement&&this.element.parentElement.removeChild(this.element)},t.prototype.getId=function(){return this.result.raw.sysurihash||this.result.raw.urihash},t.buildFollowRequest=function(n,t,i){var r={id:n,title:t};return i.modifiedDateField&&(r.modifiedDateField=i.modifiedDateField),i.watchedFields&&(r.watchedFields=i.watchedFields),{type:s.SUBSCRIPTION_TYPE.followDocument,typeConfig:r,name:t}},t.prototype.logAnalyticsEvent=function(n){this.usageAnalytics.logCustomEvent(n,{author:f.QueryUtils.getAuthor(this.result),documentLanguage:f.QueryUtils.getLanguage(this.result),documentSource:f.QueryUtils.getSource(this.result),documentTitle:this.result.title,contentIDValue:f.QueryUtils.getUniqueId(this.result).fieldValue,contentIDKey:f.QueryUtils.getUniqueId(this.result).fieldUsed},this.element)},t}(v.Component);e.ID="FollowItem";e.fields=["urihash"];e.options={watchedFields:o.ComponentOptions.buildFieldsOption(),modifiedDateField:o.ComponentOptions.buildStringOption()};t.FollowItem=e;p.Initialization.registerAutoCreateComponent(e)},function(n,t){"use strict";t.SUBSCRIPTION_TYPE={followQuery:"followQuery",followDocument:"followDocument"}},function(n,t,i){"use strict";var a=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},v=i(103),e=i(107),y=i(391),l=i(52),p=i(48),w=i(12),b=i(188),k=i(192),h=i(51),o=i(389),d=i(111),r=i(35),u=i(59),g=i(23),s=i(112),f=i(14),c=function(n){function t(i,u,f){var o=n.call(this,i,t.ID,f)||this,s;return o.element=i,o.options=u,o.options=e.ComponentOptions.initComponentOptions(i,t,u),o.options.enableMessage&&(o.message=new y.SearchAlertsMessage(i,{closeDelay:o.options.messageCloseDelay},o.getBindings())),o.queryController.getEndpoint().options.isGuestUser||o.bind.onRootElement(l.SettingsEvents.settingsPopulateMenu,function(n){o.options.enableManagePanel&&n.menuData.push({text:r.l("SearchAlerts_Panel"),className:"coveo-subscriptions-panel",onOpen:function(){return o.openPanel()},onClose:function(){return o.close()}})}),s=!1,o.bind.onRootElement(p.QueryEvents.querySuccess,function(){s||(s=!0,o.queryController.getEndpoint().listSubscriptions().then(function(){o.bind.onRootElement(l.SettingsEvents.settingsPopulateMenu,function(n){o.options.enableFollowQuery&&n.menuData.push({text:r.l("SearchAlerts_followQuery"),className:"coveo-follow-query",tooltip:r.l("FollowQueryDescription"),onOpen:function(){return o.followQuery()},onClose:function(){}})})}).catch(function(n){if(503!=n.status)throw n;}))}),o}return a(t,n),t.prototype.followQuery=function(){var n=this,i=this.queryController.createQueryBuilder({}),t=this.buildFollowQueryRequest(i.build(),this.options);this.usageAnalytics.logCustomEvent(s.analyticsActionCauseList.searchAlertsFollowQuery,{subscription:t.name},this.element);this.queryController.getEndpoint().follow(t).then(function(t){if(t){var i={subscription:t,dom:n.findQueryBoxDom()};u.$$(n.root).trigger(h.SearchAlertsEvents.searchAlertsCreated,i)}else n.triggerSearchAlertsFail()}).catch(function(){n.triggerSearchAlertsFail()})},t.prototype.openPanel=function(){var t=this,i=u.$$("div"),e=u.$$("div",{className:"coveo-subscriptions-panel-close"},u.$$("span",{className:"coveo-icon"})),o=u.$$("div",{className:"coveo-subscriptions-panel-title"},r.l("SearchAlerts_Panel")),n;return i.append(e.el),i.append(o.el),n=u.$$("div"),n.el.innerHTML="\n      <table class='coveo-subscriptions-panel-content' cellspacing='0'>\n        <thead>\n          <tr>\n            <th class='coveo-subscriptions-panel-content-type'>"+r.l("SearchAlerts_Type")+"<\/th>\n            <th>"+r.l("SearchAlerts_Content")+"<\/th>\n            <th>"+r.l("SearchAlerts_Frequency")+"<\/th>\n            <th class='coveo-subscriptions-panel-content-actions'>"+r.l("SearchAlerts_Actions")+"<\/th>\n          <\/tr>\n        <\/thead>\n        <tbody class='coveo-subscriptions-panel-spacer'>\n          <tr>\n            <td colsspan='3'><\/td>\n          <\/tr>\n        <\/tbody>\n        <tbody class='coveo-subscriptions-panel-subscriptions'>\n          <tr class='coveo-subscriptions-panel-no-subscriptions'>\n            <td colsspan='3'>"+r.l("SearchAlerts_PanelNoSearchAlerts")+"<\/td>\n          <\/tr>\n        <\/tbody>\n      <\/table>",this.queryController.getEndpoint().listSubscriptions().then(function(i){f.each(i,function(i){t.addSearchAlert(i,n)})}).catch(function(){n.el.innerHTML="<div class='coveo-subscriptions-panel-fail'>"+r.l("SearchAlerts_Fail")+"<\/div>"}).finally(function(){t.modal=g.ModalBox.open(n.el,{titleClose:!1,overlayClose:!0,title:i.el.outerHTML,className:"coveo-subscriptions-panel"});u.$$(u.$$(t.modal.modalBox).find(".coveo-subscriptions-panel-close")).on("click",function(){t.close()})})},t.prototype.handleSearchAlertsFail=function(){this.close();null!=this.modal&&(this.modal.content.innerHTML="<div class='coveo-subscriptions-panel-fail'>"+r.l("SearchAlerts_Fail")+"<\/div>")},t.prototype.close=function(){this.modal&&(this.modal.close(),this.modal=null)},t.prototype.addSearchAlert=function(n,t){var c,i=this,y=[{value:"monthly",label:r.l("Monthly")},{value:"daily",label:r.l("Daily")},{value:"monday",label:r.l("Monday")},{value:"tuesday",label:r.l("Tuesday")},{value:"wednesday",label:r.l("Wednesday")},{value:"thursday",label:r.l("Thursday")},{value:"friday",label:r.l("Friday")},{value:"saturday",label:r.l("Saturday")},{value:"sunday",label:r.l("Sunday")}],l,e,v,a;n.name?c=f.escape(n.name):n.type==o.SUBSCRIPTION_TYPE.followQuery?(l=n.typeConfig,c=f.escape(l.query.q)||r.l("EmptyQuery")):(l=n.typeConfig,c=f.escape(l.title||l.id));e=u.$$("tr");e.addClass("coveo-subscriptions-panel-subscription");e.el.innerHTML="\n      <td class='coveo-subscriptions-panel-content-type'>"+r.l("SearchAlerts_Type_"+n.type)+"<\/td>\n      <td>\n        <div class='coveo-subscriptions-panel-context' title='"+c+"'>\n          "+c+"\n        <\/div>\n      <\/td>\n      <td>\n        <div class='coveo-subscriptions-panel-frequency'>\n          <select>\n            "+f.map(y,function(n){return"<option value='"+n.value+"'>"+n.label+"<\/option>"})+"\n          <\/select>\n        <\/div>\n      <\/td>\n      <td class='coveo-subscriptions-panel-content-actions'>\n        <div class='coveo-subscriptions-panel-action coveo-subscriptions-panel-action-unfollow'>"+r.l("SearchAlerts_unFollowing")+"<\/div>\n        <div class='coveo-subscriptions-panel-action coveo-subscriptions-panel-action-follow'>"+r.l("SearchAlerts_follow")+"<\/div>\n      <\/td>";v=t.find(".coveo-subscriptions-panel-no-subscriptions");e.insertBefore(v);a=e.find(".coveo-subscriptions-panel-frequency select");a.value=n.frequency;u.$$(a).on("change",function(){n.frequency=a.value;i.usageAnalytics.logCustomEvent(s.analyticsActionCauseList.searchAlertsUpdateSubscription,{subscription:n.name,frequency:n.frequency},i.element);i.updateAndSyncSearchAlert(n)});u.$$(e.find(".coveo-subscriptions-panel-action-unfollow")).on("click",function(){e.addClass("coveo-subscription-unfollowed");i.queryController.getEndpoint().deleteSubscription(n).then(function(){n.type==o.SUBSCRIPTION_TYPE.followDocument?i.logAnalyticsEvent(s.analyticsActionCauseList.searchAlertsUnfollowDocument,n):n.type==o.SUBSCRIPTION_TYPE.followQuery&&i.logAnalyticsEvent(s.analyticsActionCauseList.searchAlertsUnfollowQuery,n);delete n.id;var t={subscription:n};u.$$(i.root).trigger(h.SearchAlertsEvents.searchAlertsDeleted,t)}).catch(function(){i.handleSearchAlertsFail()})});u.$$(e.find(".coveo-subscriptions-panel-action-follow")).on("click",function(){e.removeClass("coveo-subscription-unfollowed");i.queryController.getEndpoint().follow(n).then(function(t){n.type==o.SUBSCRIPTION_TYPE.followDocument?i.logAnalyticsEvent(s.analyticsActionCauseList.searchAlertsFollowDocument,n):n.type==o.SUBSCRIPTION_TYPE.followQuery&&i.logAnalyticsEvent(s.analyticsActionCauseList.searchAlertsFollowQuery,n);n.id=t.id;var r={subscription:n};u.$$(i.root).trigger(h.SearchAlertsEvents.searchAlertsCreated,r)}).catch(function(){i.handleSearchAlertsFail()})})},t.prototype.updateAndSyncSearchAlert=function(n){var t=this;this.queryController.getEndpoint().updateSubscription(n).then(function(t){return f.extend(n,t)}).catch(function(){t.handleSearchAlertsFail()})},t.prototype.triggerSearchAlertsFail=function(){var n={dom:this.findQueryBoxDom()};u.$$(this.root).trigger(h.SearchAlertsEvents.searchAlertsFail,n)},t.prototype.findQueryBoxDom=function(){var t,i=this.searchInterface.getComponents(b.Querybox.ID),n;return i&&i.length>0?t=f.first(i).element:(n=this.searchInterface.getComponents(k.Omnibox.ID),n&&n.length>0&&(t=f.first(n).element)),t},t.prototype.buildFollowQueryRequest=function(n,t){var i={query:n};return t.modifiedDateField&&(i.modifiedDateField=t.modifiedDateField),{type:o.SUBSCRIPTION_TYPE.followQuery,typeConfig:i,name:this.message.getFollowQueryMessage(n.q)}},t.prototype.logAnalyticsEvent=function(n,t){this.usageAnalytics.logCustomEvent(n,{subscription:t.name},this.element)},t.create=function(n,i,r){return w.Assert.exists(n),new t(n,i,r)},t}(v.Component);c.ID="SearchAlerts";c.options={enableManagePanel:e.ComponentOptions.buildBooleanOption({defaultValue:!0}),enableFollowQuery:e.ComponentOptions.buildBooleanOption({defaultValue:!0}),modifiedDateField:e.ComponentOptions.buildFieldOption(),enableMessage:e.ComponentOptions.buildBooleanOption({defaultValue:!0}),messageCloseDelay:e.ComponentOptions.buildNumberOption({defaultValue:3e3,min:0,depend:"enableMessage"})};t.SearchAlerts=c;d.Initialization.registerAutoCreateComponent(c)},function(n,t,i){"use strict";var h=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},c=i(103),l=i(107),e=i(51),a=i(48),v=i(389),o=i(72),f=i(35),r=i(59),u=i(14),s=function(n){function t(i,r,u){var f=n.call(this,i,t.ID,u)||this;return f.element=i,f.options=r,f.bindings=u,f.bind.onRootElement(e.SearchAlertsEvents.searchAlertsCreated,function(n){return f.handleSubscriptionCreated(n)}),f.bind.oneRootElement(e.SearchAlertsEvents.searchAlertsFail,function(n){return f.handleSearchAlertsFail(n)}),f.bind.oneRootElement(e.SearchAlertsEvents.searchAlertsDeleted,function(){return f.close()}),f.bind.oneRootElement(a.QueryEvents.newQuery,function(){return f.close()}),f}return h(t,n),t.prototype.getCssClass=function(){return"coveo-subscriptions-messages"},t.prototype.getFollowQueryMessage=function(n,t){var i,h,o,s;return void 0===t&&(t=!1),i={text:[]},h=function(){return u.map(i.text,function(n){return""+(t?"<li>":"(")+u.escape(n)+(t?"<\/li>":")")}).join(" ")},r.$$(this.root).trigger(e.SearchAlertsEvents.searchAlertsPopulateMessage,i),s=""+(t?"<ul>":"")+h()+(t?"<\/ul>":""),n&&0!=i.text.length&&(o=u.escape(n)+" "+s),n&&0==i.text.length&&(o=""+u.escape(n)),n||0==i.text.length||(o=""+s),n||0!=i.text.length||(o=t?f.l("EmptyQuery"):u.unescape(f.l("EmptyQuery"))),o},t.prototype.showMessage=function(n,t,i){var u=this,f;this.message=r.$$("div");this.message.el.innerHTML="\n      <div class='coveo-subscriptions-messages-message'>\n        <div class='coveo-subscriptions-messages-info-close'><\/div>\n        <div class='coveo-subscriptions-messages-content' title='"+t+"'>"+t+"<\/div>\n      <\/div>";this.message.toggleClass("coveo-subscriptions-messages-error",i);f=this.message.find(".coveo-subscriptions-messages-info-close");r.$$(f).on("click",function(){return u.close()});o.PopupUtils.positionPopup(this.message.el,n.el,this.root,{horizontal:o.HorizontalAlignment.INNERLEFT,vertical:o.VerticalAlignment.BOTTOM,verticalOffset:12,horizontalClip:!0},this.root);this.startCloseDelay();this.message.on("mouseleave",function(){u.startCloseDelay()});this.message.on("mouseenter",function(){u.stopCloseDelay()})},t.prototype.handleSubscriptionCreated=function(n){var t;(this.close(),null!=n.dom)&&(n.subscription.type==v.SUBSCRIPTION_TYPE.followQuery?(t=n.subscription.typeConfig,this.showMessage(r.$$(n.dom),f.l("SubscriptionsMessageFollowQuery",this.getFollowQueryMessage(t.query.q,!0)),!1)):(t=n.subscription.typeConfig,this.showMessage(r.$$(n.dom),f.l("SubscriptionsMessageFollow",u.escape(t.title)),!1)))},t.prototype.handleSearchAlertsFail=function(n){this.close();null!=n.dom&&this.showMessage(r.$$(n.dom),f.l("SearchAlerts_Fail"),!0)},t.prototype.startCloseDelay=function(){var n=this;clearTimeout(this.closeTimeout);this.closeTimeout=setTimeout(function(){n.close()},this.options.closeDelay)},t.prototype.stopCloseDelay=function(){clearTimeout(this.closeTimeout)},t.prototype.close=function(){null!=this.message&&(clearTimeout(this.closeTimeout),this.message.remove(),this.message=null)},t}(c.Component);s.ID="SubscriptionsMessages";s.options={closeDelay:l.ComponentOptions.buildNumberOption({defaultValue:3e3,min:0})};t.SearchAlertsMessage=s},function(n,t,i){"use strict";var f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},r=i(107),e=i(103),o=i(111),s=i(59),u=function(n){function t(i,u,f){var e=n.call(this,i,t.ID,f)||this;return e.element=i,e.options=u,e.options=r.ComponentOptions.initComponentOptions(i,t,u),s.$$(e.element).text(e.options.value),e.element.style.fontSize=e.options.size,e.element.style.fontStyle=e.options.style,e.element.style.color=e.options.color,e.element.style.fontWeight=e.options.weight,e.element.style.textAlign=e.options.textAlign,e.element.style.marginTop=e.options.marginTop,e.element.style.marginBottom=e.options.marginBottom,e.element.style.marginRight=e.options.marginRight,e.element.style.marginLeft=e.options.marginLeft,e.element.style.paddingTop=e.options.paddingTop,e.element.style.paddingBottom=e.options.paddingBottom,e.element.style.paddingLeft=e.options.paddingLeft,e.element.style.paddingRight=e.options.paddingRight,e}return f(t,n),t}(e.Component);u.ID="Text";u.options={value:r.ComponentOptions.buildLocalizedStringOption(),size:r.ComponentOptions.buildStringOption(),style:r.ComponentOptions.buildStringOption(),color:r.ComponentOptions.buildStringOption(),weight:r.ComponentOptions.buildStringOption(),textAlign:r.ComponentOptions.buildStringOption(),marginTop:r.ComponentOptions.buildStringOption(),marginBottom:r.ComponentOptions.buildStringOption(),marginLeft:r.ComponentOptions.buildStringOption(),marginRight:r.ComponentOptions.buildStringOption(),paddingTop:r.ComponentOptions.buildStringOption(),paddingBottom:r.ComponentOptions.buildStringOption(),paddingLeft:r.ComponentOptions.buildStringOption(),paddingRight:r.ComponentOptions.buildStringOption()};t.Text=u;o.Initialization.registerAutoCreateComponent(u)},function(n,t,i){"use strict";var f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},r=i(210),e=i(111),u=function(n){function t(t,i,u){var f=n.call(this,t,i,u)||this;return f.element=t,f.options=i,f.options.getMoreResults=function(n){return r.Folding.foldWithParent(n)[0].attachments},f.options.getResult=function(n){var t=r.Folding.defaultGetResult(n);return t.childResults=t.attachments,t.attachments=[],t},f}return f(t,n),t}(r.Folding);u.ID="FoldingForThread";t.FoldingForThread=u;e.Initialization.registerAutoCreateComponent(u)},function(n,t,i){"use strict";var s=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},h=i(111),f=i(107),c=i(103),o=i(13),r=i(59),e=i(35),l=i(395),u=function(n){function t(i,u,e,s){var h=n.call(this,i,t.ID,e)||this,a,l;if(h.element=i,h.options=u,h.bindings=e,h.result=s,h.options=f.ComponentOptions.initComponentOptions(i,t,u),!o.Utils.isNullOrUndefined(s.raw.sflikedby)&&!o.Utils.isNullOrUndefined(s.raw.sflikedbyid)){var v=s.raw.sflikedby.split(";"),y=s.raw.sflikedbyid.split(";"),c=r.$$("div",{className:"coveo-chatter-result-box-row"});r.$$(i).append(c.el);a=r.$$("div",{className:"coveo-sprites-common-thumbup_inactive coveo-chatter-result-box-icon"});c.append(a.el);l=r.$$("div",{className:"coveo-chatter-result-likes"});c.append(l.el);h.renderLikesList(l.el,s,v,y,h.options.nbLikesToRender)}return h}return s(t,n),t.prototype.renderLikesList=function(n,t,i,u,f){for(var c,h,l,a=this,s=r.$$("div"),o=0;o<u.length-1&&(0==f||o<f);o++)s.append(this.renderLikeLink(t,i[o],u[o])),(0==f||o<f-1)&&o<u.length-2?s.append(r.$$("span",{},", ").el):o<u.length-1&&s.append(r.$$("span",{}," "+e.l("And").toLowerCase()+" ").el);0==f||u.length<=f?s.append(this.renderLikeLink(t,i[u.length-1],u[u.length-1])):(c=u.length-f,h=r.$$("a"),h.text(" "+e.l("Others",c.toString(),c)),h.on("click",function(f){f.preventDefault();r.$$(n).empty();a.renderLikesList(n,t,i,u,0)}),s.append(h.el));u.length>0&&(l=r.$$("span"),l.el.innerHTML=e.l("LikesThis",s.el.innerHTML,u.length),r.$$(n).append(l.el))},t.prototype.renderLikeLink=function(n,t,i){var u=r.$$("a",{href:l.ChatterUtils.buildURI(n.clickUri,n.raw.sffeeditemid,i)});return u.text(t),u.el},t}(c.Component);u.ID="ChatterLikedBy";u.options={nbLikesToRender:f.ComponentOptions.buildNumberOption({defaultValue:2,min:0}),openInPrimaryTab:f.ComponentOptions.buildBooleanOption({defaultValue:!1}),openInSubTab:f.ComponentOptions.buildBooleanOption({defaultValue:!0})};u.fields=["sflikedby","sflikedbyid","clickableuri","sffeeditemid"];t.ChatterLikedBy=u;h.Initialization.registerAutoCreateComponent(u)},function(n,t){"use strict";var i=function(){function n(){}return n.buildURI=function(n,t,i){return n.replace(t,i)},n.bindClickEventToElement=function(n){return n},n}();t.ChatterUtils=i},function(n,t,i){"use strict";var e=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},o=i(103),f=i(13),s=i(395),h=i(35),c=i(111),r=i(59),u=function(n){function t(i,u,e,o){var c=n.call(this,i,t.ID,e)||this,l,v,a;return(c.element=i,c.options=u,c.bindings=e,c.result=o,f.Utils.isNullOrUndefined(o.raw.sfcontentversionid))||(l=r.$$("div",{className:"coveo-chatter-result-box-row"}),r.$$(i).append(l.el),v=r.$$("div",{className:"coveo-sprites-common-system coveo-chatter-result-box-icon"}),l.append(v.el),a=r.$$("a",{href:s.ChatterUtils.buildURI(o.clickUri,o.raw.sffeeditemid,o.raw.sfcontentversionid)}),l.append(a.el),f.Utils.isNullOrUndefined(o.raw.sfcontentfilename)?a.text(h.l("ShowAttachment")):a.text(o.raw.sfcontentfilename)),c}return e(t,n),t}(o.Component);u.ID="ChatterPostAttachment";u.fields=["sfcontentversionid","sffeeditemid","sfcontentfilename"];t.ChatterPostAttachment=u;c.Initialization.registerAutoCreateComponent(u)},function(n,t,i){"use strict";var h=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},c=i(103),u=i(107),s=i(395),l=i(111),e=i(35),o=i(13),r=i(59),f=function(n){function t(i,f,s,h){var c=n.call(this,i,t.ID,s)||this,l,a,v,y;return(c.element=i,c.options=f,c.bindings=s,c.result=h,c.options=u.ComponentOptions.initComponentOptions(i,t,f),null!=h.raw.sfcreatedby)&&(l=r.$$("span"),(l.text((c.options.useFromInstead?e.l("From"):e.l("PostedBy"))+" "),r.$$(i).append(l.el),r.$$(i).append(c.renderLink(h.raw.sfcreatedby,h.raw.sfcreatedbyid)),!c.options.enablePostedOn||o.Utils.isNullOrUndefined(h.raw.sfparentname)||o.Utils.isNullOrUndefined(h.raw.sfparentid))||(o.Utils.isNullOrUndefined(h.raw.sfuserid)||h.raw.sfuserid==h.raw.sfinsertedbyid?o.Utils.isNullOrUndefined(h.raw.sfuserid)&&(a=r.$$("span"),a.text(" "+e.l("On").toLowerCase()+" "),r.$$(i).append(a.el),r.$$(i).append(c.renderLink(h.raw.sfparentname,h.raw.sfparentid))):(v=r.$$("span"),y=" "+e.l("OnFeed",c.renderLink(h.raw.sfparentname,h.raw.sfparentid).outerHTML),v.el.innerHTML=y,r.$$(i).append(v.el)))),c}return h(t,n),t.prototype.renderLink=function(n,t){var i=r.$$("a",{href:s.ChatterUtils.buildURI(this.result.clickUri,this.result.raw.sffeeditemid,t)});return i.text(n),s.ChatterUtils.bindClickEventToElement(i.el,this.options.openInPrimaryTab,this.options.openInSubTab)},t}(c.Component);f.ID="ChatterPostedBy";f.options={enablePostedOn:u.ComponentOptions.buildBooleanOption({defaultValue:!0}),useFromInstead:u.ComponentOptions.buildBooleanOption({defaultValue:!1}),openInPrimaryTab:u.ComponentOptions.buildBooleanOption({defaultValue:!1}),openInSubTab:u.ComponentOptions.buildBooleanOption({defaultValue:!0})};f.fields=["sfcreatedby","sfcreatedbyid","sffeeditemid","sfuserid","sfinsertedbyid","sfparentid","sfparentname"];t.ChatterPostedBy=f;l.Initialization.registerAutoCreateComponent(f)},function(n,t,i){"use strict";var f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},e=i(103),o=i(13),s=i(111),r=i(59),u=function(n){function t(i,u,f,e){var s=n.call(this,i,t.ID,f)||this,h,a,v;if(s.element=i,s.options=u,s.bindings=f,s.result=e,!o.Utils.isNullOrUndefined(e.raw.coveochatterfeedtopics)){var c=r.$$("div",{className:"coveo-chatter-result-box-row"}),l=e.raw.coveochatterfeedtopics.split(";"),y=r.$$("div",{className:"coveo-sprites-common-tagging_tag coveo-chatter-result-box-icon"});for(c.append(y.el),h=0;h<l.length;h++)a=r.$$("span"),(a.text(l[h]),c.append(a.el),h<l.length-1)&&(v=r.$$("span"),v.text(", "),c.append(v.el));r.$$(i).append(c.el)}return s}return f(t,n),t}(e.Component);u.ID="ChatterTopic";u.fields=["coveochatterfeedtopics"];t.ChatterTopic=u;s.Initialization.registerAutoCreateComponent(u)},function(n,t,i){"use strict";var e=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},o=i(103),s=i(107),h=i(111),u=i(59),f=i(48),r=function(n){function t(i,r,e){var o=n.call(this,i,t.ID,e)||this,h;return o.element=i,o.options=r,o.options=s.ComponentOptions.initComponentOptions(i,t,r),h=u.$$("a",{className:"coveo-powered-by coveo-footer-logo",href:"http://www.coveo.com/"}),o.element.appendChild(h.el),o.bind.onRootElement(f.QueryEvents.noResults,function(){return o.hide()}),o.bind.onRootElement(f.QueryEvents.querySuccess,function(n){n.results.results.length>0?o.show():o.hide()}),o.bind.onRootElement(f.QueryEvents.queryError,function(){return o.hide()}),o}return e(t,n),t.prototype.hide=function(){u.$$(this.element).addClass("coveo-hidden")},t.prototype.show=function(){u.$$(this.element).removeClass("coveo-hidden")},t}(o.Component);r.ID="Logo";r.options={};t.Logo=r;h.Initialization.registerAutoCreateComponent(r)},function(n,t,i){"use strict";var o=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},s=i(103),r=i(107),f=i(111),e=i(14),u=function(n){function t(i,u,o,s,h){var c=n.call(this,i,t.ID,o)||this,l,a;c.element=i;c.options=u;c.result=s;c._window=h;c.options=r.ComponentOptions.initComponentOptions(i,t,u);c._window=c._window||window;l="";c.options.overlayColor&&(l+="linear-gradient("+c.options.overlayColor+", "+(c.options.overlayGradient?"rgba(0,0,0,0)":c.options.overlayColor)+"), ");a=c.options.imageUrl||s.raw[c.options.imageField];l+="url('"+a+"') center center";c.element.style.background=l;c.element.style.backgroundSize="cover";var v=c.searchInterface.options.originalOptionsObject,y=e.extend({},c.getBindings(),{resultElement:i}),p={options:e.extend({},{initOptions:{ResultLink:u}},v),bindings:y,result:s};return f.Initialization.automaticallyCreateComponentsInside(c.element,p),c}return o(t,n),t}(s.Component);u.ID="Backdrop";u.options={imageUrl:r.ComponentOptions.buildStringOption(),imageField:r.ComponentOptions.buildStringOption(),overlayColor:r.ComponentOptions.buildColorOption(),overlayGradient:r.ComponentOptions.buildBooleanOption({defaultValue:!1,depend:"overlayColor"})};t.Backdrop=u;f.Initialization.registerAutoCreateComponent(u)},function(n,t,i){"use strict";var s=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},h=i(103),e=i(107),c=i(111),o=i(402),r=i(59),l=i(12),u=i(69),f=function(n){function t(i,u,f){var o=n.call(this,i,t.ID,f)||this;return o.element=i,o.options=u,o.options=e.ComponentOptions.initComponentOptions(i,t,u),o.parentCard=r.$$(o.element).closest(".CoveoResult"),l.Assert.exists(o.parentCard),o.createOverlay(),o.createButton(o.element),o.closeOverlay(),o}return s(t,n),t.prototype.toggleOverlay=function(n){void 0!==n?n?this.openOverlay():this.closeOverlay():r.$$(this.overlay).hasClass("coveo-opened")?this.closeOverlay():this.openOverlay()},t.prototype.openOverlay=function(){r.$$(this.overlay).removeClass("coveo-hidden-for-tab-nav");r.$$(this.overlay).addClass("coveo-opened");this.bind.trigger(this.element,o.CardOverlayEvents.openCardOverlay)},t.prototype.closeOverlay=function(){r.$$(this.overlay).addClass("coveo-hidden-for-tab-nav");r.$$(this.overlay).removeClass("coveo-opened");this.bind.trigger(this.element,o.CardOverlayEvents.closeCardOverlay)},t.prototype.createOverlay=function(){var f=this,t,i,n;for(this.overlay=r.$$("div",{className:"coveo-card-overlay"}).el,t=r.$$("div",{className:"coveo-card-overlay-header"}).el,this.createButton(t),this.overlay.appendChild(t),i=r.$$("div",{className:"coveo-card-overlay-body"}).el;this.element.childNodes.length>0;)i.appendChild(this.element.firstChild);this.overlay.appendChild(i);n=r.$$("div",{className:"coveo-card-overlay-footer",tabindex:"0"},r.$$("span",{className:"coveo-icon coveo-sprites-arrow-down"}));n.on("click",function(){return f.toggleOverlay(!1)});this.bind.on(n.el,"keyup",u.KeyboardUtils.keypressAction(u.KEYBOARD.ENTER,function(){return f.toggleOverlay(!1)}));this.overlay.appendChild(n.el);this.parentCard.appendChild(this.overlay)},t.prototype.createButton=function(n){var t=this;this.options.icon&&n.appendChild(r.$$("span",{className:"coveo-icon "+this.options.icon}).el);n.appendChild(r.$$("span",{className:"coveo-label"},this.options.title).el);n.setAttribute("tabindex","0");r.$$(n).on("click",function(){return t.toggleOverlay()});this.bind.on(n,"keyup",u.KeyboardUtils.keypressAction(u.KEYBOARD.ENTER,function(){return t.toggleOverlay()}))},t}(h.Component);f.ID="CardOverlay";f.options={title:e.ComponentOptions.buildStringOption({required:!0}),icon:e.ComponentOptions.buildIconOption()};t.CardOverlay=f;c.Initialization.registerAutoCreateComponent(f)},function(n,t){"use strict";var i=function(){function n(){}return n}();i.openCardOverlay="openCardOverlay";i.closeCardOverlay="closeCardOverlay";t.CardOverlayEvents=i},function(n,t,i){"use strict";var s=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},h=i(103),f=i(107),c=i(111),l=i(12),r=i(59),o=i(69),e=i(14),u=function(n){function t(i,u,o,s){var h=n.call(this,i,t.ID,o)||this;return h.element=i,h.options=u,h.result=s,h.removedTabIndexElements=[],h.options=f.ComponentOptions.initComponentOptions(i,t,u),h.parentResult=r.$$(h.element).closest("CoveoResult"),l.Assert.check(void 0!==h.parentResult,"ActionBar needs to be a child of a Result"),h.options.hidden?(r.$$(h.parentResult).addClass("coveo-clickable"),h.appendArrow(),h.bindEvents(),e.forEach(r.$$(h.element).findAll("*"),function(n){n.hasAttribute("tabindex")&&"0"==n.getAttribute("tabindex")&&(h.removedTabIndexElements.push(n),n.removeAttribute("tabindex"))})):(h.element.style.transition="none",h.element.style.transform="none"),h}return s(t,n),t.prototype.show=function(){r.$$(this.element).addClass("coveo-opened");e.forEach(this.removedTabIndexElements,function(n){n.setAttribute("tabindex","0")})},t.prototype.hide=function(){r.$$(this.element).removeClass("coveo-opened");e.forEach(this.removedTabIndexElements,function(n){n.removeAttribute("tabindex")})},t.prototype.bindEvents=function(){var n=this;r.$$(this.parentResult).on("click",function(){return n.show()});r.$$(this.parentResult).on("mouseleave",function(){return n.hide()});this.options.openOnMouseOver&&r.$$(this.arrowContainer).on("mouseenter",function(){return n.show()})},t.prototype.appendArrow=function(){var n=this;this.arrowContainer=r.$$("div",{className:"coveo-card-action-bar-arrow-container",tabindex:0}).el;this.bind.on(this.arrowContainer,"keyup",o.KeyboardUtils.keypressAction(o.KEYBOARD.ENTER,function(){return n.show()}));this.arrowContainer.appendChild(r.$$("span",{className:"coveo-icon coveo-sprites-arrow-up"}).el);this.parentResult.appendChild(this.arrowContainer)},t}(h.Component);u.ID="CardActionBar";u.options={hidden:f.ComponentOptions.buildBooleanOption({defaultValue:!0}),openOnMouseOver:f.ComponentOptions.buildBooleanOption({defaultValue:!0,depend:"hidden"})};t.CardActionBar=u;c.Initialization.registerAutoCreateComponent(u)},function(n,t,i){"use strict";function u(n){if(void 0==window.Coveo?window.Coveo=n:r.each(r.keys(n),function(t){window.Coveo[t]=n[t]}),f.CoreHelpers.exportAllHelpersGlobally(window.Coveo),void 0==window.__extends){var t=function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)};window.__extends=t}}var f=i(179),r=i(14);t.swapVar=u}])})