
var CoveoInProduct=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=28)}([function(e,t,n){"use strict";n.d(t,"m",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"k",(function(){return o})),n.d(t,"f",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"l",(function(){return u})),n.d(t,"e",(function(){return l})),n.d(t,"d",(function(){return f})),n.d(t,"o",(function(){return d})),n.d(t,"i",(function(){return p})),n.d(t,"j",(function(){return h})),n.d(t,"n",(function(){return b})),n.d(t,"h",(function(){return g})),n.d(t,"g",(function(){return m}));var r="top",i="bottom",o="right",a="left",s="auto",c=[r,i,o,a],u="start",l="end",f="clippingParents",d="viewport",p="popper",h="reference",b=c.reduce((function(e,t){return e.concat([t+"-"+u,t+"-"+l])}),[]),g=[].concat(c,[s]).reduce((function(e,t){return e.concat([t,t+"-"+u,t+"-"+l])}),[]),m=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"]},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n(3);function i(e){return e instanceof Object(r.a)(e).Element||e instanceof Element}function o(e){return e instanceof Object(r.a)(e).HTMLElement||e instanceof HTMLElement}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));class r{constructor(){this.value=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}const i=(e,t)=>{const n=new r;return e.addEventListener(t,e=>n.resolve(e)),n.value}},function(e,t,n){"use strict";function r(e){if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t?t.defaultView:window}return e}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";function r(e){return e.split("-")[0]}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return e?(e.nodeName||"").toLowerCase():null}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(1);function i(e){return(Object(r.a)(e)?e.ownerDocument:e.document).documentElement}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(3);function i(e){return Object(r.a)(e).getComputedStyle(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(3),i=n(6),o=n(8),a=n(1);function s(e){return["table","td","th"].indexOf(Object(i.a)(e))>=0}function c(e){var t;return!Object(a.b)(e)||!(t=e.offsetParent)||void 0!==window.InstallTrigger&&"fixed"===Object(o.a)(t).position?null:t}function u(e){for(var t=Object(r.a)(e),n=c(e);n&&s(n);)n=c(n);return n&&"body"===Object(i.a)(n)&&"static"===Object(o.a)(n).position?t:n||t}},function(e,t,n){"use strict";function r(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(3);function i(e){var t=Object(r.a)(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}},function(e,t,n){"use strict";function r(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(2),i=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};class o{constructor(){this.ready=new r.b}start(){this.ready.resolve(!0)}clear(){this.ready=new r.b}publish(e){return i(this,void 0,void 0,(function*(){yield this.ready.value,this.pub&&this.pub.postMessage(e,this.pub.originToPublishTo)}))}subscribe(e,t){return i(this,void 0,void 0,(function*(){yield this.ready.value,this.sub&&this.sub.addEventListener("message",n=>{var r,i;const o=n.origin||(null===(i=null===(r=null==n?void 0:n.target)||void 0===r?void 0:r.location)||void 0===i?void 0:i.origin)||"";""!==o&&("*"!==this.sub.originToListenFrom&&-1===this.sub.originToListenFrom.indexOf(o)||n.data.key==e&&t(n))})}))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(6);function i(e){return"html"===Object(r.a)(e)?e:e.parentNode||e.host||document.ownerDocument||document.documentElement}var o=n(8),a=n(1);var s=n(3);function c(e,t){void 0===t&&(t=[]);var n=function e(t){if(["html","body","#document"].indexOf(Object(r.a)(t))>=0)return t.ownerDocument.body;if(Object(a.b)(t)){var n=Object(o.a)(t),s=n.overflow,c=n.overflowX,u=n.overflowY;if(/auto|scroll|overlay|hidden/.test(s+u+c))return t}return e(i(t))}(e),u="body"===Object(r.a)(n),l=u?Object(s.a)(n):n,f=t.concat(l);return u?f:f.concat(c(i(l)))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(10),i=n(7),o=n(11);function a(e){return Object(r.a)(Object(i.a)(e)).left+Object(o.a)(e).scrollLeft}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(10),i=n(11),o=n(3),a=n(1);var s=n(6),c=n(15),u=n(7);function l(e,t,n){var l;void 0===n&&(n=!1);var f,d,p=Object(r.a)(e),h={scrollLeft:0,scrollTop:0},b={x:0,y:0};return n||("body"!==Object(s.a)(t)&&(h=(f=t)!==Object(o.a)(f)&&Object(a.b)(f)?{scrollLeft:(d=f).scrollLeft,scrollTop:d.scrollTop}:Object(i.a)(f)),Object(a.b)(t)?((b=Object(r.a)(t)).x+=t.clientLeft,b.y+=t.clientTop):(l=Object(u.a)(t))&&(b.x=Object(c.a)(l))),{x:p.left+h.scrollLeft-b.x,y:p.top+h.scrollTop-b.y,width:p.width,height:p.height}}},function(e,t,n){"use strict";n.d(t,"popperGenerator",(function(){return p}));var r=n(16),i=n(12),o=n(14),a=n(9),s=n(19),c=n(21),u=n(20),l=n(1),f={placement:"bottom",modifiers:[],strategy:"absolute"};function d(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function p(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,p=void 0===n?[]:n,h=t.defaultOptions,b=void 0===h?f:h;return function(e,t,n){void 0===n&&(n=b);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},f,{},b),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},g=[],m=!1,v={state:h,setOptions:function(n){y(),h.options=Object.assign({},b,{},h.options,{},n),h.scrollParents={reference:Object(l.a)(e)?Object(o.a)(e):[],popper:Object(o.a)(t)};var r=Object(s.a)(Object(u.a)([].concat(p,h.options.modifiers)));return h.orderedModifiers=r.filter((function(e){return e.enabled})),h.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var o=i({state:h,name:t,instance:v,options:r});g.push(o||function(){})}})),v.update()},forceUpdate:function(){if(!m){var e=h.elements,t=e.reference,n=e.popper;if(d(t,n)){h.rects={reference:Object(r.a)(t,Object(a.a)(n),"fixed"===h.options.strategy),popper:Object(i.a)(n)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach((function(e){return h.modifiersData[e.name]=Object.assign({},e.data)}));for(var o=0;o<h.orderedModifiers.length;o++)if(!0!==h.reset){var s=h.orderedModifiers[o],c=s.fn,u=s.options,l=void 0===u?{}:u,f=s.name;"function"==typeof c&&(h=c({state:h,options:l,name:f,instance:v})||h)}else h.reset=!1,o=-1}}},update:Object(c.a)((function(){return new Promise((function(e){v.forceUpdate(),e(h)}))})),destroy:function(){y(),m=!0}};if(!d(e,t))return v;function y(){g.forEach((function(e){return e()})),g=[]}return v.setOptions(n).then((function(e){!m&&n.onFirstUpdate&&n.onFirstUpdate(e)})),v}}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0);function i(e){var t=new Map,n=new Set,r=[];return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||function e(i){n.add(i.name),[].concat(i.requires||[],i.requiresIfExists||[]).forEach((function(r){if(!n.has(r)){var i=t.get(r);i&&e(i)}})),r.push(i)}(e)})),r}function o(e){var t=i(e);return r.g.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}},function(e,t,n){"use strict";function r(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,{},t,{options:Object.assign({},n.options,{},t.options),data:Object.assign({},n.data,{},t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}n.d(t,"a",(function(){return r}))},,,,,,,function(e,t,n){e.exports=n(31)},function(e,t,n){var r;!function(i){var o=/^\s+/,a=/\s+$/,s=0,c=i.round,u=i.min,l=i.max,f=i.random;function d(e,t){if(t=t||{},(e=e||"")instanceof d)return e;if(!(this instanceof d))return new d(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,s=null,c=null,f=!1,d=!1;"string"==typeof e&&(e=function(e){e=e.replace(o,"").replace(a,"").toLowerCase();var t,n=!1;if(H[e])e=H[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=B.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=B.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=B.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=B.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=B.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=B.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=B.hex8.exec(e))return{r:I(t[1]),g:I(t[2]),b:I(t[3]),a:$(t[4]),format:n?"name":"hex8"};if(t=B.hex6.exec(e))return{r:I(t[1]),g:I(t[2]),b:I(t[3]),format:n?"name":"hex"};if(t=B.hex4.exec(e))return{r:I(t[1]+""+t[1]),g:I(t[2]+""+t[2]),b:I(t[3]+""+t[3]),a:$(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=B.hex3.exec(e))return{r:I(t[1]+""+t[1]),g:I(t[2]+""+t[2]),b:I(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(N(e.r)&&N(e.g)&&N(e.b)?(p=e.r,h=e.g,b=e.b,t={r:255*M(p,255),g:255*M(h,255),b:255*M(b,255)},f=!0,d="%"===String(e.r).substr(-1)?"prgb":"rgb"):N(e.h)&&N(e.s)&&N(e.v)?(r=F(e.s),s=F(e.v),t=function(e,t,n){e=6*M(e,360),t=M(t,100),n=M(n,100);var r=i.floor(e),o=e-r,a=n*(1-t),s=n*(1-o*t),c=n*(1-(1-o)*t),u=r%6;return{r:255*[n,s,a,a,c,n][u],g:255*[c,n,n,s,a,a][u],b:255*[a,a,c,n,n,s][u]}}(e.h,r,s),f=!0,d="hsv"):N(e.h)&&N(e.s)&&N(e.l)&&(r=F(e.s),c=F(e.l),t=function(e,t,n){var r,i,o;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=M(e,360),t=M(t,100),n=M(n,100),0===t)r=i=o=n;else{var s=n<.5?n*(1+t):n+t-n*t,c=2*n-s;r=a(c,s,e+1/3),i=a(c,s,e),o=a(c,s,e-1/3)}return{r:255*r,g:255*i,b:255*o}}(e.h,r,c),f=!0,d="hsl"),e.hasOwnProperty("a")&&(n=e.a));var p,h,b;return n=L(n),{ok:f,format:e.format||d,r:u(255,l(t.r,0)),g:u(255,l(t.g,0)),b:u(255,l(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=c(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=c(this._r)),this._g<1&&(this._g=c(this._g)),this._b<1&&(this._b=c(this._b)),this._ok=n.ok,this._tc_id=s++}function p(e,t,n){e=M(e,255),t=M(t,255),n=M(n,255);var r,i,o=l(e,t,n),a=u(e,t,n),s=(o+a)/2;if(o==a)r=i=0;else{var c=o-a;switch(i=s>.5?c/(2-o-a):c/(o+a),o){case e:r=(t-n)/c+(t<n?6:0);break;case t:r=(n-e)/c+2;break;case n:r=(e-t)/c+4}r/=6}return{h:r,s:i,l:s}}function h(e,t,n){e=M(e,255),t=M(t,255),n=M(n,255);var r,i,o=l(e,t,n),a=u(e,t,n),s=o,c=o-a;if(i=0===o?0:c/o,o==a)r=0;else{switch(o){case e:r=(t-n)/c+(t<n?6:0);break;case t:r=(n-e)/c+2;break;case n:r=(e-t)/c+4}r/=6}return{h:r,s:i,v:s}}function b(e,t,n,r){var i=[P(c(e).toString(16)),P(c(t).toString(16)),P(c(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function g(e,t,n,r){return[P(D(r)),P(c(e).toString(16)),P(c(t).toString(16)),P(c(n).toString(16))].join("")}function m(e,t){t=0===t?0:t||10;var n=d(e).toHsl();return n.s-=t/100,n.s=R(n.s),d(n)}function v(e,t){t=0===t?0:t||10;var n=d(e).toHsl();return n.s+=t/100,n.s=R(n.s),d(n)}function y(e){return d(e).desaturate(100)}function x(e,t){t=0===t?0:t||10;var n=d(e).toHsl();return n.l+=t/100,n.l=R(n.l),d(n)}function w(e,t){t=0===t?0:t||10;var n=d(e).toRgb();return n.r=l(0,u(255,n.r-c(-t/100*255))),n.g=l(0,u(255,n.g-c(-t/100*255))),n.b=l(0,u(255,n.b-c(-t/100*255))),d(n)}function O(e,t){t=0===t?0:t||10;var n=d(e).toHsl();return n.l-=t/100,n.l=R(n.l),d(n)}function j(e,t){var n=d(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,d(n)}function _(e){var t=d(e).toHsl();return t.h=(t.h+180)%360,d(t)}function k(e){var t=d(e).toHsl(),n=t.h;return[d(e),d({h:(n+120)%360,s:t.s,l:t.l}),d({h:(n+240)%360,s:t.s,l:t.l})]}function A(e){var t=d(e).toHsl(),n=t.h;return[d(e),d({h:(n+90)%360,s:t.s,l:t.l}),d({h:(n+180)%360,s:t.s,l:t.l}),d({h:(n+270)%360,s:t.s,l:t.l})]}function C(e){var t=d(e).toHsl(),n=t.h;return[d(e),d({h:(n+72)%360,s:t.s,l:t.l}),d({h:(n+216)%360,s:t.s,l:t.l})]}function S(e,t,n){t=t||6,n=n||30;var r=d(e).toHsl(),i=360/n,o=[d(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(d(r));return o}function E(e,t){t=t||6;for(var n=d(e).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(d({h:r,s:i,v:o})),o=(o+s)%1;return a}d.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:i.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:i.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:i.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=L(e),this._roundA=c(100*this._a)/100,this},toHsv:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=h(this._r,this._g,this._b),t=c(360*e.h),n=c(100*e.s),r=c(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=p(this._r,this._g,this._b),t=c(360*e.h),n=c(100*e.s),r=c(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return b(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,i){var o=[P(c(e).toString(16)),P(c(t).toString(16)),P(c(n).toString(16)),P(D(r))];if(i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:c(this._r),g:c(this._g),b:c(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+c(this._r)+", "+c(this._g)+", "+c(this._b)+")":"rgba("+c(this._r)+", "+c(this._g)+", "+c(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:c(100*M(this._r,255))+"%",g:c(100*M(this._g,255))+"%",b:c(100*M(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+c(100*M(this._r,255))+"%, "+c(100*M(this._g,255))+"%, "+c(100*M(this._b,255))+"%)":"rgba("+c(100*M(this._r,255))+"%, "+c(100*M(this._g,255))+"%, "+c(100*M(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(T[b(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+g(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var i=d(e);n="#"+g(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return d(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(x,arguments)},brighten:function(){return this._applyModification(w,arguments)},darken:function(){return this._applyModification(O,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(y,arguments)},spin:function(){return this._applyModification(j,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(_,arguments)},monochromatic:function(){return this._applyCombination(E,arguments)},splitcomplement:function(){return this._applyCombination(C,arguments)},triad:function(){return this._applyCombination(k,arguments)},tetrad:function(){return this._applyCombination(A,arguments)}},d.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:F(e[r]));e=n}return d(e,t)},d.equals=function(e,t){return!(!e||!t)&&d(e).toRgbString()==d(t).toRgbString()},d.random=function(){return d.fromRatio({r:f(),g:f(),b:f()})},d.mix=function(e,t,n){n=0===n?0:n||50;var r=d(e).toRgb(),i=d(t).toRgb(),o=n/100;return d({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},d.readability=function(e,t){var n=d(e),r=d(t);return(i.max(n.getLuminance(),r.getLuminance())+.05)/(i.min(n.getLuminance(),r.getLuminance())+.05)},d.isReadable=function(e,t,n){var r,i,o=d.readability(e,t);switch(i=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":i=o>=4.5;break;case"AAlarge":i=o>=3;break;case"AAAsmall":i=o>=7}return i},d.mostReadable=function(e,t,n){var r,i,o,a,s=null,c=0;i=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var u=0;u<t.length;u++)(r=d.readability(e,t[u]))>c&&(c=r,s=d(t[u]));return d.isReadable(e,s,{level:o,size:a})||!i?s:(n.includeFallbackColors=!1,d.mostReadable(e,["#fff","#000"],n))};var H=d.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},T=d.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(H);function L(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function M(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=u(t,l(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),i.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function R(e){return u(1,l(0,e))}function I(e){return parseInt(e,16)}function P(e){return 1==e.length?"0"+e:""+e}function F(e){return e<=1&&(e=100*e+"%"),e}function D(e){return i.round(255*parseFloat(e)).toString(16)}function $(e){return I(e)/255}var U,q,W,B=(q="[\\s|\\(]+("+(U="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+U+")[,|\\s]+("+U+")\\s*\\)?",W="[\\s|\\(]+("+U+")[,|\\s]+("+U+")[,|\\s]+("+U+")[,|\\s]+("+U+")\\s*\\)?",{CSS_UNIT:new RegExp(U),rgb:new RegExp("rgb"+q),rgba:new RegExp("rgba"+W),hsl:new RegExp("hsl"+q),hsla:new RegExp("hsla"+W),hsv:new RegExp("hsv"+q),hsva:new RegExp("hsva"+W),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function N(e){return!!B.CSS_UNIT.exec(e)}e.exports?e.exports=d:void 0===(r=function(){return d}.call(t,n,t,e))||(e.exports=r)}(Math)},,function(e,t,n){"use strict";n.r(t),n.d(t,"setContext",(function(){return ke})),n.d(t,"setContextValue",(function(){return Ae})),n.d(t,"executeQuery",(function(){return Ce})),n.d(t,"executeRecommendationQuery",(function(){return Se})),n.d(t,"onOpen",(function(){return Ee})),n.d(t,"onClose",(function(){return He})),n.d(t,"usingDefaultRenewFunc",(function(){return Te})),n.d(t,"customRenewAccessToken",(function(){return Le})),n.d(t,"setRenewAccessTokenFunction",(function(){return Me})),n.d(t,"hide",(function(){return Re})),n.d(t,"show",(function(){return Ie}));const r=".coveo-custom-ipx-target",i="eyJhbGciOiJIUzI1NiJ9.eyJzZWFyY2hIdWIiOiJJbkJ1bmRsZVNlYXJjaCIsInY4Ijp0cnVlLCJvcmdhbml6YXRpb24iOiJwaW5naWRlbnRpdHlwcm9kdWN0aW9uYnVjNTdxbnEiLCJ1c2VySWRzIjpbeyJwcm92aWRlciI6IkVtYWlsIFNlY3VyaXR5IFByb3ZpZGVyIiwibmFtZSI6ImFub255bW91c0Bjb3Zlby5jb20iLCJ0eXBlIjoiVXNlciJ9XSwicm9sZXMiOlsicXVlcnlFeGVjdXRvciJdLCJ1c2VyRGlzcGxheU5hbWUiOiJBbm9ueW1vdXMiLCJleHAiOjE2MTU5Njg5NDMsImlhdCI6MTYxNTg4MjU0M30.LBjCKBfj3RRwlSMs4kR_oH_rL-baKI3nmuEiZlv2OuQ",o="https://search.cloud.coveo.com/pages/pingidentityproductionbuc57qnq/inappwidget/ee62382d-2250-4d3e-8423-d47b4d7e1d8d",a="<style></style>",s="",c="",u=".btn.mod-primary",l="	font-size: 24px;	font-family: Lato,Arial,Helvetica,sans-serif;		bottom: 10px;	right: 50px;	",f=".btn.mod-primary:hover",d=".btn.mod-primary:focus",p="btn mod-primary",h="Bundle Search",b="<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"white\" viewBox=\"0 0 22 22\">                 <g>                         <path d=\"m1,11c0,5.52 4.48,10 10,10s10,-4.48 10,-10s-4.48,-10 -10,-10s-10,4.48 -10,10z\" fill=\"transparent\"></path>                         <path d=\"m11,22c-6.07,0 -11,-4.935 -11,-11s4.935,-11 11,-11s11,4.935 11,11s-4.935,11 -11,11m0,-20c-4.962,0 -9,4.04 -9,9s4.04,9 9,9s9,-4.04 9,-9s-4.04,-9 -9,-9\"></path>                         <path d=\"m10,17l2,0l0,-2l-2,0l0,2m1,-12.344c-2.21,0 -4,1.79 -4,4l2,0c0,-1.1 0.9,-2 2,-2s2,0.9 2,2c0,2 -3,1.75 -3,5l2,0c0,-2.25 3,-2.5 3,-5c0,-2.21 -1.79,-4 -4,-4\"></path>                 </g>        </svg>",g="https://usageanalytics.coveo.com",m="ee62382d-2250-4d3e-8423-d47b4d7e1d8d",v="#f58020",y="#fff";var x=n(13);class w{constructor(e=new x.a){this.bus=e,this.publishInitialization(),this.publishHref(),this.publishVisitorId()}init(e){const t={postMessage:e.postMessage.bind(e),originToPublishTo:o},n={addEventListener:window.addEventListener.bind(window),originToListenFrom:o};this.bus.sub=n,this.bus.pub=t,this.bus.start()}publishOpen(){this.bus.publish({key:"open"})}publishClose(){this.bus.publish({key:"close"})}publishExecuteQuery(e){this.bus.publish({key:"executeQuery",payload:{options:e}})}publishExecuteRecommendationQuery(e){this.bus.publish({key:"executeRecommendationQuery",payload:{options:e}})}publishContext(e){this.bus.publish({key:"context",payload:{context:e}})}publishContextValue(e,t){this.bus.publish({key:"contextValue",payload:{contextKey:e,contextValue:t}})}publishInitialization(){this.bus.publish({key:"init",payload:{origin:location.origin}})}publishHref(){this.bus.publish({key:"href",payload:{href:document.location.href}})}publishVisitorId(){const e=localStorage.getItem("visitorId");e&&this.bus.publish({key:"visitorId",payload:{visitorId:e}})}subscribeToCustomTokenHasExpired(e){this.bus.subscribe("customTokenHasExpired",()=>{e()})}publishNewCustomToken(e){this.bus.publish({key:"newAccessToken",payload:{token:e}})}customRenewFunctionIsAvailable(){this.bus.publish({key:"customRenewFunctionIsAvailable"})}subscribeToHeightChanged(e){this.bus.subscribe("heightChanged",t=>{e(t.data.payload.currentHeight)})}}const O=new w;const j=new(n(2).b);class _ extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),this.applyStyles(),this.iframe=this.buildIFrame(),this.messages=new w,this.iframe.onload=()=>this.onIframeLoad(),this.shadowRoot.append(this.iframe)}onIframeLoad(){this.messages.init(this.iframe.contentWindow),j.resolve(this)}applyStyles(){this.style.width="100%"}buildIFrame(){const e=document.createElement("iframe");return e.setAttribute("src",o+"?access_token="+i),e.setAttribute("sandbox","allow-scripts allow-same-origin allow-top-navigation allow-popups allow-popups-to-escape-sandbox"),e.style.height="100%",e.style.width="100%",e.style.borderStyle="none",e}}class k extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),this.page=new _,this.attachPage(),this.applyStyles()}connectedCallback(){this.observeDomChangeInFrame()}set popper(e){this.popperReference=e}get popper(){return this.popperReference}attachPage(){this.shadowRoot.append(this.page)}observeDomChangeInFrame(){this.page.messages.subscribeToHeightChanged(e=>this.adjustModalHeight(e))}adjustModalHeight(e){let t;t=e>this.desiredHeight||e<this.desiredHeight?this.desiredHeight:e,this.style.height=`${t}px`,this.popperReference&&this.popperReference.update()}get desiredHeight(){return Math.min(720,document.documentElement.clientHeight)}applyStyles(){this.style.display="flex",this.style.zIndex="999999",this.style.backgroundColor="white",this.style.boxShadow="0 0 7px rgba(0,0,0,.5)",this.style.height=`${this.desiredHeight}px`,this.style.maxHeight="80vh",this.style.width="80vw",this.style.maxWidth="500px",this.style.opacity="0"}}var A=n(17),C=n(3),S={passive:!0};var E={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,c=Object(C.a)(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach((function(e){e.addEventListener("scroll",n.update,S)})),s&&c.addEventListener("resize",n.update,S),function(){o&&u.forEach((function(e){e.removeEventListener("scroll",n.update,S)})),s&&c.removeEventListener("resize",n.update,S)}},data:{}},H=n(5);function T(e){return e.split("-")[1]}function L(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}var M=n(0);function R(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?Object(H.a)(i):null,a=i?T(i):null,s=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(o){case M.m:t={x:s,y:n.y-r.height};break;case M.c:t={x:s,y:n.y+n.height};break;case M.k:t={x:n.x+n.width,y:c};break;case M.f:t={x:n.x-r.width,y:c};break;default:t={x:n.x,y:n.y}}var u=o?L(o):null;if(null!=u){var l="y"===u?"height":"width";switch(a){case M.l:t[u]=Math.floor(t[u])-Math.floor(n[l]/2-r[l]/2);break;case M.e:t[u]=Math.floor(t[u])+Math.ceil(n[l]/2-r[l]/2)}}return t}var I={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=R({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},P=n(9),F=n(7),D={top:"auto",right:"auto",bottom:"auto",left:"auto"};function $(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.offsets,a=e.position,s=e.gpuAcceleration,c=e.adaptive,u=function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:Math.round(t*r)/r||0,y:Math.round(n*r)/r||0}}(o),l=u.x,f=u.y,d=o.hasOwnProperty("x"),p=o.hasOwnProperty("y"),h=M.f,b=M.m,g=window;if(c){var m=Object(P.a)(n);m===Object(C.a)(n)&&(m=Object(F.a)(n)),i===M.m&&(b=M.c,f-=m.clientHeight-r.height,f*=s?1:-1),i===M.f&&(h=M.k,l-=m.clientWidth-r.width,l*=s?1:-1)}var v,y=Object.assign({position:a},c&&D);return s?Object.assign({},y,((v={})[b]=p?"0":"",v[h]=d?"0":"",v.transform=(g.devicePixelRatio||1)<2?"translate("+l+"px, "+f+"px)":"translate3d("+l+"px, "+f+"px, 0)",v)):Object.assign({},y,((t={})[b]=p?f+"px":"",t[h]=d?l+"px":"",t.transform="",t))}var U={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s={placement:Object(H.a)(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i};t.styles.popper=Object.assign({},t.styles.popper,{},$(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a}))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,{},$(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},q=n(6),W=n(1);var B={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];Object(W.b)(i)&&Object(q.a)(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:"absolute",left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Object(W.b)(r)&&Object(q.a)(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};var N={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=M.h.reduce((function(e,n){return e[n]=function(e,t,n){var r=Object(H.a)(e),i=[M.f,M.m].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[M.f,M.k].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e}),{}),s=a[t.placement],c=s.x,u=s.y;t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u,t.modifiersData[r]=a}},z={left:"right",right:"left",bottom:"top",top:"bottom"};function V(e){return e.replace(/left|right|bottom|top/g,(function(e){return z[e]}))}var Q={start:"end",end:"start"};function G(e){return e.replace(/start|end/g,(function(e){return Q[e]}))}var J=n(10);var Y=n(16),X=n(11);var K=n(14),Z=n(8);function ee(e){return parseFloat(e)||0}var te=n(15);function ne(e){var t=Object(C.a)(e),n=function(e){var t=Object(W.b)(e)?Object(Z.a)(e):{};return{top:ee(t.borderTopWidth),right:ee(t.borderRightWidth),bottom:ee(t.borderBottomWidth),left:ee(t.borderLeftWidth)}}(e),r="html"===Object(q.a)(e),i=Object(te.a)(e),o=e.clientWidth+n.right,a=e.clientHeight+n.bottom;return r&&t.innerHeight-e.clientHeight>50&&(a=t.innerHeight-n.bottom),{top:r?0:e.clientTop,right:e.clientLeft>n.left?n.right:r?t.innerWidth-o-i:e.offsetWidth-o,bottom:r?t.innerHeight-a:e.offsetHeight-a,left:r?i:e.clientLeft}}function re(e,t){var n=Boolean(t.getRootNode&&t.getRootNode().host);if(e.contains(t))return!0;if(n){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ie(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function oe(e,t){return t===M.o?ie(function(e){var t=Object(C.a)(e);return{width:t.innerWidth,height:t.innerHeight,x:0,y:0}}(e)):Object(W.b)(t)?Object(J.a)(t):ie(function(e){var t=Object(C.a)(e),n=Object(X.a)(e),r=Object(Y.a)(Object(F.a)(e),t);return r.height=Math.max(r.height,t.innerHeight),r.width=Math.max(r.width,t.innerWidth),r.x=-n.scrollLeft,r.y=-n.scrollTop,r}(Object(F.a)(e)))}function ae(e,t,n){var r="clippingParents"===t?function(e){var t=Object(K.a)(e),n=["absolute","fixed"].indexOf(Object(Z.a)(e).position)>=0&&Object(W.b)(e)?Object(P.a)(e):e;return Object(W.a)(n)?t.filter((function(e){return Object(W.a)(e)&&re(e,n)})):[]}(e):[].concat(t),i=[].concat(r,[n]),o=i[0],a=i.reduce((function(t,n){var r=oe(e,n),i=ne(Object(W.b)(n)?n:Object(F.a)(e));return t.top=Math.max(r.top+i.top,t.top),t.right=Math.min(r.right-i.right,t.right),t.bottom=Math.min(r.bottom-i.bottom,t.bottom),t.left=Math.max(r.left+i.left,t.left),t}),oe(e,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function se(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},{},e)}function ce(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function ue(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.boundary,a=void 0===o?M.d:o,s=n.rootBoundary,c=void 0===s?M.o:s,u=n.elementContext,l=void 0===u?M.i:u,f=n.altBoundary,d=void 0!==f&&f,p=n.padding,h=void 0===p?0:p,b=se("number"!=typeof h?h:ce(h,M.b)),g=l===M.i?M.j:M.i,m=e.elements.reference,v=e.rects.popper,y=e.elements[d?g:l],x=ae(Object(W.a)(y)?y:Object(F.a)(e.elements.popper),a,c),w=Object(J.a)(m),O=R({reference:w,element:v,strategy:"absolute",placement:i}),j=ie(Object.assign({},v,{},O)),_=l===M.i?j:w,k={top:x.top-_.top+b.top,bottom:_.bottom-x.bottom+b.bottom,left:x.left-_.left+b.left,right:_.right-x.right+b.right},A=e.modifiersData.offset;if(l===M.i&&A){var C=A[i];Object.keys(k).forEach((function(e){var t=[M.k,M.c].indexOf(e)>=0?1:-1,n=[M.m,M.c].indexOf(e)>=0?"y":"x";k[e]+=C[n]*t}))}return k}var le={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.fallbackPlacements,o=n.padding,a=n.boundary,s=n.rootBoundary,c=n.altBoundary,u=n.flipVariations,l=void 0===u||u,f=t.options.placement,d=Object(H.a)(f),p=i||(d===f||!l?[V(f)]:function(e){if(Object(H.a)(e)===M.a)return[];var t=V(e);return[G(e),t,G(t)]}(f)),h=[f].concat(p).reduce((function(e,n){return e.concat(Object(H.a)(n)===M.a?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,c=T(r),u=(c?s?M.n:M.n.filter((function(e){return T(e)===c})):M.b).reduce((function(t,n){return t[n]=ue(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[Object(H.a)(n)],t}),{});return Object.keys(u).sort((function(e,t){return u[e]-u[t]}))}(t,{placement:n,boundary:a,rootBoundary:s,padding:o,flipVariations:l}):n)}),[]),b=t.rects.reference,g=t.rects.popper,m=new Map,v=!0,y=h[0],x=0;x<h.length;x++){var w=h[x],O=Object(H.a)(w),j=T(w)===M.l,_=[M.m,M.c].indexOf(O)>=0,k=_?"width":"height",A=ue(t,{placement:w,boundary:a,rootBoundary:s,altBoundary:c,padding:o}),C=_?j?M.k:M.f:j?M.c:M.m;b[k]>g[k]&&(C=V(C));var S=V(C),E=[A[O]<=0,A[C]<=0,A[S]<=0];if(E.every((function(e){return e}))){y=w,v=!1;break}m.set(w,E)}if(v)for(var L=function(e){var t=h.find((function(t){var n=m.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return y=t,"break"},R=l?3:1;R>0;R--){if("break"===L(R))break}t.placement!==y&&(t.modifiersData[r]._skip=!0,t.placement=y,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function fe(e,t,n){return Math.max(e,Math.min(t,n))}var de=n(12);function pe(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function he(e){return[M.m,M.k,M.c,M.f].some((function(t){return e[t]>=0}))}var be,ge=[E,I,U,B,N,le,{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,c=n.boundary,u=n.rootBoundary,l=n.altBoundary,f=n.padding,d=n.tether,p=void 0===d||d,h=n.tetherOffset,b=void 0===h?0:h,g=ue(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:l}),m=Object(H.a)(t.placement),v=T(t.placement),y=!v,x=L(m),w="x"===x?"y":"x",O=t.modifiersData.popperOffsets,j=t.rects.reference,_=t.rects.popper,k="function"==typeof b?b(Object.assign({},t.rects,{placement:t.placement})):b,A={x:0,y:0};if(o){var C="y"===x?M.m:M.f,S="y"===x?M.c:M.k,E="y"===x?"height":"width",R=O[x],I=O[x]+g[C],F=O[x]-g[S],D=p?-_[E]/2:0,$=v===M.l?j[E]:_[E],U=v===M.l?-_[E]:-j[E],q=t.elements.arrow,W=p&&q?Object(de.a)(q):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},N=B[C],z=B[S],V=fe(0,j[E],W[E]),Q=y?j[E]/2-D-V-N-k:$-V-N-k,G=y?-j[E]/2+D+V+z+k:U+V+z+k,J=t.elements.arrow&&Object(P.a)(t.elements.arrow),Y=J?"y"===x?J.clientTop||0:J.clientLeft||0:0,X=t.modifiersData.offset?t.modifiersData.offset[t.placement][x]:0,K=O[x]+Q-X-Y,Z=O[x]+G-X,ee=fe(p?Math.min(I,K):I,R,p?Math.max(F,Z):F);O[x]=ee,A[x]=ee-R}if(s){var te="x"===x?M.m:M.f,ne="x"===x?M.c:M.k,re=O[w],ie=fe(re+g[te],re,re-g[ne]);t.modifiersData.popperOffsets[w]=ie,A[w]=ie-re}t.modifiersData[r]=A},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=n.elements.arrow,o=n.modifiersData.popperOffsets,a=Object(H.a)(n.placement),s=L(a),c=[M.f,M.k].indexOf(a)>=0?"height":"width";if(i){var u=n.modifiersData[r+"#persistent"].padding,l=Object(de.a)(i),f="y"===s?M.m:M.f,d="y"===s?M.c:M.k,p=n.rects.reference[c]+n.rects.reference[s]-o[s]-n.rects.popper[c],h=o[s]-n.rects.reference[s],b=n.elements.arrow&&Object(P.a)(n.elements.arrow),g=p/2-h/2-(b?"y"===s?b.clientLeft||0:b.clientTop||0:0),m=fe(u[f],n.rects.popper[c]/2-l[c]/2+g,n.rects.popper[c]-l[c]-u[d]),v=s;n.modifiersData[r]=((t={})[v]=m,t)}},effect:function(e){var t=e.state,n=e.options,r=e.name,i=n.element,o=void 0===i?"[data-popper-arrow]":i,a=n.padding,s=void 0===a?0:a;("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&re(t.elements.popper,o)&&(t.elements.arrow=o,t.modifiersData[r+"#persistent"]={padding:se("number"!=typeof s?s:ce(s,M.b))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=ue(t,{elementContext:"reference"}),s=ue(t,{altBoundary:!0}),c=pe(a,r),u=pe(s,i,o),l=he(c),f=he(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:l,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":f})}}],me=Object(A.popperGenerator)({defaultModifiers:ge}),ve=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};class ye{constructor(e){this.modal=e,this.animateModal(),this.animateOpacityOnIframe()}animateModal(){switch(this.modal.style.transitionProperty="opacity,margin",this.modal.style.transitionDuration="0.5s",this.modal.style.transitionTimingFunction="ease-in",this.modal.style.opacity="1",this.modal.getAttribute("data-popper-placement")){case"bottom":this.modal.style.marginTop="16px";break;case"top":this.modal.style.marginBottom="16px"}}animateOpacityOnIframe(){return ve(this,void 0,void 0,(function*(){this.modal.page.iframe.style.transitionProperty="opacity",this.modal.page.iframe.style.transitionDuration="0.5s",this.modal.page.iframe.style.transitionTimingFunction="ease-in",this.modal.page.iframe.style.opacity="0",yield j.value,this.modal.page.iframe.style.opacity="1"}))}}class xe{constructor(e){this.props=e,this.isOpen=!1,this.addClickHandler()}addClickHandler(){this.props.button.addEventListener("click",()=>this.onClick())}onClick(){this.isOpen?this.close():this.open(),this.isOpen=!this.isOpen}open(){this.popUp?(this.popUp.style.visibility="visible",this.popUp.style.pointerEvents="initial",this.popUp.popper.forceUpdate()):(this.createAndAppendPopUp(),this.positionPopUp()),this.props.onOpen()}close(){this.popUp.style.visibility="hidden",this.popUp.style.pointerEvents="none",this.props.onClose()}createAndAppendPopUp(){this.popUp=new k,document.body.append(this.popUp)}positionPopUp(){if(!this.popUp)return;const e=me(this.props.button,this.popUp,{modifiers:[{name:"preventOverflow",options:{padding:this.margin}}],onFirstUpdate:()=>{this.popUp&&new ye(this.popUp)}});this.popUp.popper=e}get margin(){return 16}}!function(e){e.Page="coveo-page",e.PageModal="coveo-page-modal",e.CoveoInAppWidgetFrameAnimation="coveo-in-app-widget-frame-animation",e.CoveoInAppWidgetLoader="coveo-in-app-widget-loader"}(be||(be={}));const we=n(29);class Oe extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),this.shadowRoot.append(this.template().content.cloneNode(!0)),this.executeAdditionalInlineJavaScript(),this.executeAdditionalHeaderJavaScript()}connectedCallback(){!this.manager&&this.initManager()}show(){this.classList.remove(this.hiddenClass)}hide(){this.classList.add(this.hiddenClass)}get hiddenClass(){return`${be.CoveoInAppWidgetLoader}-hidden`}initManager(){const e=this.shadowRoot.querySelector("button");e&&(this.manager=new xe({button:e,onOpen:()=>this.onOpen(),onClose:()=>this.onClose()}))}executeAdditionalInlineJavaScript(){for(const e of s){const t=document.createElement("script"),n=document.createTextNode(e);t.appendChild(n),this.shadowRoot.appendChild(t)}}executeAdditionalHeaderJavaScript(){for(const e of c){const t=document.createElement("script");t.src=e,this.shadowRoot.appendChild(t)}}template(){const e=document.createElement("template");return e.innerHTML=`\n    ${a}\n    \n    <style>\n\n    ${this.buttonStyling}\n    ${this.svgIconStyling}\n    ${this.hostStyling}\n    ${this.svgAnimationStyling}\n\n    </style>\n    \n    <button class="${p}">\n        <span class="icon mod-2x">\n            ${this.svgClose}\n            ${this.svgOpen}\n        </span>\n        ${h}\n    </button>\n    `,e}get svgClose(){var e;const t=document.createElement("div");return t.innerHTML=b,null===(e=t.querySelector("svg"))||void 0===e||e.setAttribute("fill",this.textColor),`\n    <img class='svg-close' src='data:image/svg+xml;utf8,${t.innerHTML}' >\n    `}get svgOpen(){return'\n    <svg class=\'svg-open\' viewBox="0 0 22 22">\n        <path d="M.818 2.232L2.232.818l19.02 19.02-1.413 1.415z"></path>\n        <path d="M.818 19.768L19.838.748l1.415 1.413L2.232 21.182z"></path>\n    </svg>\n    '}onOpen(){O.publishOpen(),this.button.classList.add("btn-open")}onClose(){O.publishClose(),this.button.classList.remove("btn-open")}linearGradient(e,t){return`linear-gradient(315deg, ${e} 0%, ${t} 74%);`}get button(){return this.shadowRoot.querySelector("button")}get mainColor(){return v||"rgb(253, 175, 34)"}get analogousColor(){return we(this.mainColor).analogous()[1].toRgbString()}get textColor(){return we(y||"rgb(255,255,255)").toRgbString()}get buttonStyling(){return` ${u} {\n            ${l}\n            \n            overflow: hidden;\n            position: fixed;\n    \n            user-select: none;\n            cursor: pointer;\n            border: none;\n            border-radius: 4px;\n            height: auto;\n            padding: 10px 20px;\n            margin: 0;\n            vertical-align: middle;\n    \n            box-sizing: border-box;\n            display: inline-block;\n            font-family: "Lato", Arial, Helvetica, sans-serif;\n            font-weight: 700;\n            line-height: 15px;\n            text-decoration: none;\n            text-overflow: ellipsis;\n            text-transform: uppercase;\n            white-space: nowrap;\n    \n            color: ${this.textColor};\n            background-color: ${this.mainColor};\n            background-image: ${this.linearGradient(this.analogousColor,this.mainColor)};\n        }\n\n        ${u}:before {\n            position: absolute;\n            content: "";\n            top: 0;\n            right: 0;\n            bottom: 0;\n            left: 0;\n            z-index: -1;\n            transition: opacity 0.5s linear;\n            opacity: 0;\n            background-image: ${this.linearGradient(this.mainColor,this.analogousColor)};\n        }\n\n        ${f}:before {\n            opacity: 1;\n        }\n    \n        ${d} {\n            outline: none;\n        }\n        `}get svgIconStyling(){return`\n        .icon {\n            fill: ${this.textColor};\n            padding: 0;\n            font-size: 100%;\n            display: inline-block;\n    \n            margin-right: 5px;\n            width: 2em;\n            height: 2em;\n            vertical-align: -0.5em;\n            position: relative;\n        }`}get hostStyling(){return`\n        :host(${be.CoveoInAppWidgetLoader}) {\n            z-index: 999999;\n            position: relative;\n          }\n      \n          :host(.${this.hiddenClass}) {\n              display: none;\n          }\n        `}get svgAnimationStyling(){return"\n        .svg-open, .svg-close {\n            transition: transform 500ms;\n            position: absolute;\n            left: 0;\n        }\n    \n        .svg-close {\n            transform: translateY(0);\n        }\n    \n        .btn-open .svg-close {\n            transform: translateY(50px);\n        }\n    \n        .svg-open {\n            transform: translateY(-50px);\n        }\n    \n        .btn-open .svg-open {\n            transform: translateY(0);\n        }\n    \n        "}}class je{constructor(){this.findTargetElementUsingInterval()}findTargetElementUsingInterval(){this.findTargetAndPopulate(),window.setInterval(()=>this.findTargetAndPopulate(),200)}findTargetAndPopulate(){const e=this.findTargetElement();e&&this.onTargetElementFound(e)}findTargetElement(){const e=r;try{return document.querySelector(e)}catch(t){return console.error(`${e} is not a valid CSS selector. Cannot retrieve target element.`),null}}onTargetElementFound(e){this.pageIsNotChildOfElement(e)&&(this.appendPageToElement(e),this.publishOpenAndCloseEvents(e))}publishOpenAndCloseEvents(e){let t=!0;this.observeElementAndItsAncestors(e,()=>{const n=this.isElementVisible(e);n&&!t&&O.publishOpen(),!n&&t&&O.publishClose(),t=n})}pageIsNotChildOfElement(e){return!e.querySelector(be.Page)}appendPageToElement(e){const t=new _;e.append(t)}observeElementAndItsAncestors(e,t){new MutationObserver(()=>t()).observe(e,{attributes:!0}),null!==e.parentElement&&this.observeElementAndItsAncestors(e.parentElement,t)}isElementVisible(e){const t=getComputedStyle(e);return"body"===e.tagName.toLowerCase()||"none"!==t.display&&(("absolute"!==t.position&&"fixed"!==t.position||"hidden"!==t.visibility&&"0"!==t.opacity)&&((0!==e.clientWidth||0!==e.clientHeight)&&(null!==e.parentElement&&this.isElementVisible(e.parentElement))))}}var _e=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};window.customElements.define(be.Page,_),window.customElements.define(be.PageModal,k),window.customElements.define(be.CoveoInAppWidgetLoader,Oe),new class{constructor(){this.trackPageView(),this.initExperience()}trackPageView(){const e=document.createElement("script");e.setAttribute("async","true"),e.onload=()=>{coveoua("init",i,g),coveoua("send","custom",{eventType:"appNavigation",eventValue:"pageView",originLevel2:"default",originLevel3:document.location.href,language:navigator.language,custom:{IPX:!0,IPX_ID:m,referrer:document.location.href}})},e.src="https://static.cloud.coveo.com/coveo.analytics.js/2.16/coveoua.js",document.body.append(e)}initExperience(){r?this.createEmbeddedSearchPage():this.createButton()}createEmbeddedSearchPage(){new je}createButton(){const e=document.createElement(be.CoveoInAppWidgetLoader);document.body.appendChild(e)}},j.value.then(e=>{O.init(e.iframe.contentWindow),O.subscribeToCustomTokenHasExpired(()=>_e(void 0,void 0,void 0,(function*(){try{const e=yield Le();O.publishNewCustomToken(e)}catch(e){O.publishNewCustomToken(""),console.error("Failed to renew the access token. Please check your renew access token function",e)}})))});const ke=e=>O.publishContext(e),Ae=(e,t)=>O.publishContextValue(e,t),Ce=e=>O.publishExecuteQuery(e),Se=e=>O.publishExecuteRecommendationQuery(e),Ee=()=>O.publishOpen(),He=()=>O.publishClose();var Te=!0,Le=()=>Promise.resolve("");const Me=e=>{Le=e,Te&&(O.customRenewFunctionIsAvailable(),Te=!1)},Re=()=>{const e=document.querySelector(be.CoveoInAppWidgetLoader);e&&e.hide()},Ie=()=>{const e=document.querySelector(be.CoveoInAppWidgetLoader);e&&e.show()}}]);
