
/*! For license information please see ipe.bundle.js.LICENSE.txt */
var CoveoInProduct;(()=>{var e={621:(e,t,n)=>{var i;!function(r){var o=/^\s+/,s=/\s+$/,a=0,c=r.round,l=r.min,u=r.max,d=r.random;function f(e,t){if(t=t||{},(e=e?e:"")instanceof f)return e;if(!(this instanceof f))return new f(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,i=null,a=null,c=null,d=!1,f=!1;if("string"==typeof e)e=function(e){e=e.replace(o,"").replace(s,"").toLowerCase();var t,n=!1;if(j[e])e=j[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=q.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=q.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=q.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=q.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=q.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=q.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=q.hex8.exec(e))return{r:L(t[1]),g:L(t[2]),b:L(t[3]),a:M(t[4]),format:n?"name":"hex8"};if(t=q.hex6.exec(e))return{r:L(t[1]),g:L(t[2]),b:L(t[3]),format:n?"name":"hex"};if(t=q.hex4.exec(e))return{r:L(t[1]+""+t[1]),g:L(t[2]+""+t[2]),b:L(t[3]+""+t[3]),a:M(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=q.hex3.exec(e))return{r:L(t[1]+""+t[1]),g:L(t[2]+""+t[2]),b:L(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e);if("object"==typeof e){if(W(e.r)&&W(e.g)&&W(e.b))p=e.r,h=e.g,g=e.b,t={r:255*T(p,255),g:255*T(h,255),b:255*T(g,255)},d=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb";else if(W(e.h)&&W(e.s)&&W(e.v))i=$(e.s),a=$(e.v),t=function(e,t,n){e=6*T(e,360),t=T(t,100),n=T(n,100);var i=r.floor(e),o=e-i,s=n*(1-t),a=n*(1-o*t),c=n*(1-(1-o)*t),l=i%6;return{r:255*[n,a,s,s,c,n][l],g:255*[c,n,n,a,s,s][l],b:255*[s,s,c,n,n,a][l]}}(e.h,i,a),d=!0,f="hsv";else if(W(e.h)&&W(e.s)&&W(e.l))i=$(e.s),c=$(e.l),t=function(e,t,n){var i,r,o;function s(e,t,n){if(n<0)n+=1;if(n>1)n-=1;if(n<1/6)return e+6*(t-e)*n;if(n<.5)return t;if(n<2/3)return e+(t-e)*(2/3-n)*6;else return e}if(e=T(e,360),t=T(t,100),n=T(n,100),0===t)i=r=o=n;else{var a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;i=s(c,a,e+1/3),r=s(c,a,e),o=s(c,a,e-1/3)}return{r:255*i,g:255*r,b:255*o}}(e.h,i,c),d=!0,f="hsl";if(e.hasOwnProperty("a"))n=e.a}var p,h,g;return n=P(n),{ok:d,format:e.format||f,r:l(255,u(t.r,0)),g:l(255,u(t.g,0)),b:l(255,u(t.b,0)),a:n}}(e);if(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);if(this._g<1)this._g=c(this._g);if(this._b<1)this._b=c(this._b);this._ok=n.ok,this._tc_id=a++}function p(e,t,n){e=T(e,255),t=T(t,255),n=T(n,255);var i,r,o=u(e,t,n),s=l(e,t,n),a=(o+s)/2;if(o==s)i=r=0;else{var c=o-s;switch(r=a>.5?c/(2-o-s):c/(o+s),o){case e:i=(t-n)/c+(t<n?6:0);break;case t:i=(n-e)/c+2;break;case n:i=(e-t)/c+4;break}i/=6}return{h:i,s:r,l:a}}function h(e,t,n){e=T(e,255),t=T(t,255),n=T(n,255);var i,r,o=u(e,t,n),s=l(e,t,n),a=o,c=o-s;if(r=0===o?0:c/o,o==s)i=0;else{switch(o){case e:i=(t-n)/c+(t<n?6:0);break;case t:i=(n-e)/c+2;break;case n:i=(e-t)/c+4;break}i/=6}return{h:i,s:r,v:a}}function g(e,t,n,i){var r=[F(c(e).toString(16)),F(c(t).toString(16)),F(c(n).toString(16))];if(i&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1))return r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0);else return r.join("")}function m(e,t,n,i){return[F(V(i)),F(c(e).toString(16)),F(c(t).toString(16)),F(c(n).toString(16))].join("")}function v(e,t){t=0===t?0:t||10;var n=f(e).toHsl();return n.s-=t/100,n.s=H(n.s),f(n)}function b(e,t){t=0===t?0:t||10;var n=f(e).toHsl();return n.s+=t/100,n.s=H(n.s),f(n)}function y(e){return f(e).desaturate(100)}function w(e,t){t=0===t?0:t||10;var n=f(e).toHsl();return n.l+=t/100,n.l=H(n.l),f(n)}function x(e,t){t=0===t?0:t||10;var n=f(e).toRgb();return n.r=u(0,l(255,n.r-c(-t/100*255))),n.g=u(0,l(255,n.g-c(-t/100*255))),n.b=u(0,l(255,n.b-c(-t/100*255))),f(n)}function S(e,t){t=0===t?0:t||10;var n=f(e).toHsl();return n.l-=t/100,n.l=H(n.l),f(n)}function k(e,t){var n=f(e).toHsl(),i=(n.h+t)%360;return n.h=i<0?360+i:i,f(n)}function O(e){var t=f(e).toHsl();return t.h=(t.h+180)%360,f(t)}function I(e){var t=f(e).toHsl(),n=t.h;return[f(e),f({h:(n+120)%360,s:t.s,l:t.l}),f({h:(n+240)%360,s:t.s,l:t.l})]}function A(e){var t=f(e).toHsl(),n=t.h;return[f(e),f({h:(n+90)%360,s:t.s,l:t.l}),f({h:(n+180)%360,s:t.s,l:t.l}),f({h:(n+270)%360,s:t.s,l:t.l})]}function E(e){var t=f(e).toHsl(),n=t.h;return[f(e),f({h:(n+72)%360,s:t.s,l:t.l}),f({h:(n+216)%360,s:t.s,l:t.l})]}function C(e,t,n){t=t||6,n=n||30;var i=f(e).toHsl(),r=360/n,o=[f(e)];for(i.h=(i.h-(r*t>>1)+720)%360;--t;)i.h=(i.h+r)%360,o.push(f(i));return o}function _(e,t){t=t||6;for(var n=f(e).toHsv(),i=n.h,r=n.s,o=n.v,s=[],a=1/t;t--;)s.push(f({h:i,s:r,v:o})),o=(o+a)%1;return s}f.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,i,o,s,a=this.toRgb();if(e=a.r/255,t=a.g/255,n=a.b/255,e<=.03928)i=e/12.92;else i=r.pow((e+.055)/1.055,2.4);if(t<=.03928)o=t/12.92;else o=r.pow((t+.055)/1.055,2.4);if(n<=.03928)s=n/12.92;else s=r.pow((n+.055)/1.055,2.4);return.2126*i+.7152*o+.0722*s},setAlpha:function(e){return this._a=P(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),i=c(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+i+"%)":"hsva("+t+", "+n+"%, "+i+"%, "+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),i=c(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+i+"%)":"hsla("+t+", "+n+"%, "+i+"%, "+this._roundA+")"},toHex:function(e){return g(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,i,r){var o=[F(c(e).toString(16)),F(c(t).toString(16)),F(c(n).toString(16)),F(V(i))];if(r&&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*T(this._r,255))+"%",g:c(100*T(this._g,255))+"%",b:c(100*T(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+c(100*T(this._r,255))+"%, "+c(100*T(this._g,255))+"%, "+c(100*T(this._b,255))+"%)":"rgba("+c(100*T(this._r,255))+"%, "+c(100*T(this._g,255))+"%, "+c(100*T(this._b,255))+"%, "+this._roundA+")"},toName:function(){if(0===this._a)return"transparent";if(this._a<1)return!1;else return R[g(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var t="#"+m(this._r,this._g,this._b,this._a),n=t,i=this._gradientType?"GradientType = 1, ":"";if(e){var r=f(e);n="#"+m(r._r,r._g,r._b,r._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,i=this._a<1&&this._a>=0;if(!t&&i&&("hex"===e||"hex6"===e||"hex3"===e||"hex4"===e||"hex8"===e||"name"===e))if("name"===e&&0===this._a)return this.toName();else return this.toRgbString();if("rgb"===e)n=this.toRgbString();if("prgb"===e)n=this.toPercentageRgbString();if("hex"===e||"hex6"===e)n=this.toHexString();if("hex3"===e)n=this.toHexString(!0);if("hex4"===e)n=this.toHex8String(!0);if("hex8"===e)n=this.toHex8String();if("name"===e)n=this.toName();if("hsl"===e)n=this.toHslString();if("hsv"===e)n=this.toHsvString();return n||this.toHexString()},clone:function(){return f(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(w,arguments)},brighten:function(){return this._applyModification(x,arguments)},darken:function(){return this._applyModification(S,arguments)},desaturate:function(){return this._applyModification(v,arguments)},saturate:function(){return this._applyModification(b,arguments)},greyscale:function(){return this._applyModification(y,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(C,arguments)},complement:function(){return this._applyCombination(O,arguments)},monochromatic:function(){return this._applyCombination(_,arguments)},splitcomplement:function(){return this._applyCombination(E,arguments)},triad:function(){return this._applyCombination(I,arguments)},tetrad:function(){return this._applyCombination(A,arguments)}},f.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var i in e)if(e.hasOwnProperty(i))if("a"===i)n[i]=e[i];else n[i]=$(e[i]);e=n}return f(e,t)},f.equals=function(e,t){if(!e||!t)return!1;else return f(e).toRgbString()==f(t).toRgbString()},f.random=function(){return f.fromRatio({r:d(),g:d(),b:d()})},f.mix=function(e,t,n){n=0===n?0:n||50;var i=f(e).toRgb(),r=f(t).toRgb(),o=n/100;return f({r:(r.r-i.r)*o+i.r,g:(r.g-i.g)*o+i.g,b:(r.b-i.b)*o+i.b,a:(r.a-i.a)*o+i.a})},f.readability=function(e,t){var n=f(e),i=f(t);return(r.max(n.getLuminance(),i.getLuminance())+.05)/(r.min(n.getLuminance(),i.getLuminance())+.05)},f.isReadable=function(e,t,n){var i,r,o=f.readability(e,t);switch(r=!1,(i=function(e){var t,n;if(t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t)t="AA";if("small"!==n&&"large"!==n)n="small";return{level:t,size:n}}(n)).level+i.size){case"AAsmall":case"AAAlarge":r=o>=4.5;break;case"AAlarge":r=o>=3;break;case"AAAsmall":r=o>=7;break}return r},f.mostReadable=function(e,t,n){var i,r,o,s,a=null,c=0;r=(n=n||{}).includeFallbackColors,o=n.level,s=n.size;for(var l=0;l<t.length;l++)if((i=f.readability(e,t[l]))>c)c=i,a=f(t[l]);if(f.isReadable(e,a,{level:o,size:s})||!r)return a;else return n.includeFallbackColors=!1,f.mostReadable(e,["#fff","#000"],n)};var j=f.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"},R=f.hexNames=function(e){var t={};for(var n in e)if(e.hasOwnProperty(n))t[e[n]]=n;return t}(j);function P(e){if(e=parseFloat(e),isNaN(e)||e<0||e>1)e=1;return e}function T(e,t){if(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);if(e=l(t,u(0,parseFloat(e))),n)e=parseInt(e*t,10)/100;if(r.abs(e-t)<1e-6)return 1;else return e%t/parseFloat(t)}function H(e){return l(1,u(0,e))}function L(e){return parseInt(e,16)}function F(e){return 1==e.length?"0"+e:""+e}function $(e){if(e<=1)e=100*e+"%";return e}function V(e){return r.round(255*parseFloat(e)).toString(16)}function M(e){return L(e)/255}var D,U,N,q=(U="[\\s|\\(]+("+(D="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+D+")[,|\\s]+("+D+")\\s*\\)?",N="[\\s|\\(]+("+D+")[,|\\s]+("+D+")[,|\\s]+("+D+")[,|\\s]+("+D+")\\s*\\)?",{CSS_UNIT:new RegExp(D),rgb:new RegExp("rgb"+U),rgba:new RegExp("rgba"+N),hsl:new RegExp("hsl"+U),hsla:new RegExp("hsla"+N),hsv:new RegExp("hsv"+U),hsva:new RegExp("hsva"+N),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 W(e){return!!q.CSS_UNIT.exec(e)}if(e.exports)e.exports=f;else if(1)void 0===(i=function(){return f}.call(t,n,t,e))||(e.exports=i)}(Math)}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={exports:{}};return e[i](o,o.exports,n),o.exports}n.d=(e,t)=>{for(var i in t)if(n.o(t,i)&&!n.o(e,i))Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{if("undefined"!=typeof Symbol&&Symbol.toStringTag)Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{"use strict";n.r(i),n.d(i,{customRenewAccessToken:()=>In,executeQuery:()=>wn,executeRecommendationQuery:()=>xn,hide:()=>En,onClose:()=>kn,onOpen:()=>Sn,setContext:()=>bn,setContextValue:()=>yn,setRenewAccessTokenFunction:()=>An,show:()=>Cn,usingDefaultRenewFunc:()=>On});const e=".coveo-custom-ipx-target",t="eyJhbGciOiJIUzI1NiJ9.eyJzZWFyY2hIdWIiOiJJbkJ1bmRsZVNlYXJjaCIsInY4Ijp0cnVlLCJvcmdhbml6YXRpb24iOiJwaW5naWRlbnRpdHlwcm9kdWN0aW9uYnVjNTdxbnEiLCJ1c2VySWRzIjpbeyJwcm92aWRlciI6IkVtYWlsIFNlY3VyaXR5IFByb3ZpZGVyIiwibmFtZSI6ImFub255bW91c0Bjb3Zlby5jb20iLCJ0eXBlIjoiVXNlciJ9XSwicm9sZXMiOlsicXVlcnlFeGVjdXRvciJdLCJ1c2VyRGlzcGxheU5hbWUiOiJBbm9ueW1vdXMiLCJleHAiOjE2NjE1MjE0NTIsImlhdCI6MTY2MTQzNTA1Mn0.3_8HA5qOkRPSC9fKiD1KUQrwYC7QpvNhK32Tivx5tsM",r="https://search.cloud.coveo.com/pages/pingidentityproductionbuc57qnq/inappwidget/ee62382d-2250-4d3e-8423-d47b4d7e1d8d",o="<style></style>",s="",a="",c=".btn.mod-primary",l="	font-size: 24px;	font-family: Lato,Arial,Helvetica,sans-serif;		bottom: 10px;	right: 50px;	",u=".btn.mod-primary:hover",d=".btn.mod-primary:focus",f="btn mod-primary",p="Bundle Search",h="<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://analytics.cloud.coveo.com/rest/ua",m="ee62382d-2250-4d3e-8423-d47b4d7e1d8d",v="#f58020",b="#fff";class y{constructor(){this.value=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}}var w=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{c(i.next(e))}catch(e){o(e)}}function a(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))};class x{constructor(){this.ready=new y}start(){this.ready.resolve(!0)}clear(){this.ready=new y}publish(e){return w(this,void 0,void 0,(function*(){if(yield this.ready.value,this.pub)this.pub.postMessage(e,this.pub.originToPublishTo)}))}subscribe(e,t){return w(this,void 0,void 0,(function*(){if(yield this.ready.value,this.sub)this.sub.addEventListener("message",(n=>{var i,r,o,s;const a=n.origin||(null===(r=null===(i=null==n?void 0:n.target)||void 0===i?void 0:i.location)||void 0===r?void 0:r.origin)||"";if(""!==a)if("*"===(null===(o=this.sub)||void 0===o?void 0:o.originToListenFrom)||-1!==(null===(s=this.sub)||void 0===s?void 0:s.originToListenFrom.indexOf(a)))if(n.data.key==e)t(n)}))}))}}class S{constructor(e=new x){this.bus=e,this.publishInitialization(),this.publishHref(),this.publishVisitorId()}init(e){const t={postMessage:e.postMessage.bind(e),originToPublishTo:r},n={addEventListener:window.addEventListener.bind(window),originToListenFrom:r};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");if(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 k=new S,O=new y;class I extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),this.applyStyles(),this.iframe=this.buildIFrame(),this.messages=new S,this.iframe.onload=()=>this.onIframeLoad(),this.shadowRoot.append(this.iframe)}onIframeLoad(){this.messages.init(this.iframe.contentWindow),O.resolve(this)}applyStyles(){this.style.width="100%"}buildIFrame(){const e=document.createElement("iframe");return e.setAttribute("src",r+"?access_token="+t),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.style.borderRadius="8px",e}}class A extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),this.page=new I,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;if(e>this.desiredHeight||e<this.desiredHeight)t=this.desiredHeight;else t=e;if(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",this.style.borderRadius="8px"}}function E(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t?t.defaultView||window:window}return e}function C(e){return e instanceof E(e).Element||e instanceof Element}function _(e){return e instanceof E(e).HTMLElement||e instanceof HTMLElement}function j(e){if("undefined"==typeof ShadowRoot)return!1;else return e instanceof E(e).ShadowRoot||e instanceof ShadowRoot}var R=Math.max,P=Math.min,T=Math.round;function H(){var e=navigator.userAgentData;if(null!=e&&e.brands)return e.brands.map((function(e){return e.brand+"/"+e.version})).join(" ");else return navigator.userAgent}function L(){return!/^((?!chrome|android).)*safari/i.test(H())}function F(e,t,n){if(void 0===t)t=!1;if(void 0===n)n=!1;var i=e.getBoundingClientRect(),r=1,o=1;if(t&&_(e))r=e.offsetWidth>0?T(i.width)/e.offsetWidth||1:1,o=e.offsetHeight>0?T(i.height)/e.offsetHeight||1:1;var s=(C(e)?E(e):window).visualViewport,a=!L()&&n,c=(i.left+(a&&s?s.offsetLeft:0))/r,l=(i.top+(a&&s?s.offsetTop:0))/o,u=i.width/r,d=i.height/o;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function $(e){var t=E(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function V(e){return e?(e.nodeName||"").toLowerCase():null}function M(e){return((C(e)?e.ownerDocument:e.document)||window.document).documentElement}function D(e){return F(M(e)).left+$(e).scrollLeft}function U(e){return E(e).getComputedStyle(e)}function N(e){var t=U(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function q(e,t,n){if(void 0===n)n=!1;var i=_(t),r=_(t)&&function(e){var t=e.getBoundingClientRect(),n=T(t.width)/e.offsetWidth||1,i=T(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),o=M(t),s=F(e,r,n),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};if(i||!i&&!n){if("body"!==V(t)||N(o))a=function(e){if(e===E(e)||!_(e))return $(e);else return{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop};var t}(t);if(_(t))(c=F(t,!0)).x+=t.clientLeft,c.y+=t.clientTop;else if(o)c.x=D(o)}return{x:s.left+a.scrollLeft-c.x,y:s.top+a.scrollTop-c.y,width:s.width,height:s.height}}function W(e){var t=F(e),n=e.offsetWidth,i=e.offsetHeight;if(Math.abs(t.width-n)<=1)n=t.width;if(Math.abs(t.height-i)<=1)i=t.height;return{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function B(e){if("html"===V(e))return e;else return e.assignedSlot||e.parentNode||(j(e)?e.host:null)||M(e)}function Q(e){if(["html","body","#document"].indexOf(V(e))>=0)return e.ownerDocument.body;if(_(e)&&N(e))return e;else return Q(B(e))}function z(e,t){var n;if(void 0===t)t=[];var i=Q(e),r=i===(null==(n=e.ownerDocument)?void 0:n.body),o=E(i),s=r?[o].concat(o.visualViewport||[],N(i)?i:[]):i,a=t.concat(s);return r?a:a.concat(z(B(s)))}function J(e){return["table","td","th"].indexOf(V(e))>=0}function G(e){if(!_(e)||"fixed"===U(e).position)return null;else return e.offsetParent}function Y(e){for(var t=E(e),n=G(e);n&&J(n)&&"static"===U(n).position;)n=G(n);if(n&&("html"===V(n)||"body"===V(n)&&"static"===U(n).position))return t;else return n||function(e){var t=/firefox/i.test(H());if(/Trident/i.test(H())&&_(e))if("fixed"===U(e).position)return null;var n=B(e);if(j(n))n=n.host;for(;_(n)&&["html","body"].indexOf(V(n))<0;){var i=U(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;else n=n.parentNode}return null}(e)||t}var K="top",X="bottom",Z="right",ee="left",te="auto",ne=[K,X,Z,ee],ie="start",re="end",oe="viewport",se="popper",ae=ne.reduce((function(e,t){return e.concat([t+"-"+ie,t+"-"+re])}),[]),ce=[].concat(ne,[te]).reduce((function(e,t){return e.concat([t,t+"-"+ie,t+"-"+re])}),[]),le=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function ue(e){var t=new Map,n=new Set,i=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var i=t.get(e);if(i)r(i)}})),i.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){if(!n.has(e.name))r(e)})),i}var de={placement:"bottom",modifiers:[],strategy:"absolute"};function fe(){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 pe(e){if(void 0===e)e={};var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,r=t.defaultOptions,o=void 0===r?de:r;return function(e,t,n){if(void 0===n)n=o;var r,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},de,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],l=!1,u={state:a,setOptions:function(n){var r="function"==typeof n?n(a.options):n;d(),a.options=Object.assign({},o,a.options,r),a.scrollParents={reference:C(e)?z(e):e.contextElement?z(e.contextElement):[],popper:z(t)};var s=function(e){var t=ue(e);return le.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(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]}))}([].concat(i,a.options.modifiers)));if(a.orderedModifiers=s.filter((function(e){return e.enabled})),0);return a.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,r=e.effect;if("function"==typeof r){var o=r({state:a,name:t,instance:u,options:i}),s=function(){};c.push(o||s)}})),u.update()},forceUpdate:function(){if(!l){var e=a.elements,t=e.reference,n=e.popper;if(fe(t,n)){a.rects={reference:q(t,Y(n),"fixed"===a.options.strategy),popper:W(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var i=0;i<a.orderedModifiers.length;i++){if(0);if(!0!==a.reset){var r=a.orderedModifiers[i],o=r.fn,s=r.options,c=void 0===s?{}:s,d=r.name;if("function"==typeof o)a=o({state:a,options:c,name:d,instance:u})||a}else a.reset=!1,i=-1}}else if(0);}},update:(r=function(){return new Promise((function(e){u.forceUpdate(),e(a)}))},function(){if(!s)s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(r())}))}));return s}),destroy:function(){d(),l=!0}};if(!fe(e,t)){if(0);return u}function d(){c.forEach((function(e){return e()})),c=[]}return u.setOptions(n).then((function(e){if(!l&&n.onFirstUpdate)n.onFirstUpdate(e)})),u}}var he={passive:!0};function ge(e){return e.split("-")[0]}function me(e){return e.split("-")[1]}function ve(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function be(e){var t,n=e.reference,i=e.element,r=e.placement,o=r?ge(r):null,s=r?me(r):null,a=n.x+n.width/2-i.width/2,c=n.y+n.height/2-i.height/2;switch(o){case K:t={x:a,y:n.y-i.height};break;case X:t={x:a,y:n.y+n.height};break;case Z:t={x:n.x+n.width,y:c};break;case ee:t={x:n.x-i.width,y:c};break;default:t={x:n.x,y:n.y}}var l=o?ve(o):null;if(null!=l){var u="y"===l?"height":"width";switch(s){case ie:t[l]=t[l]-(n[u]/2-i[u]/2);break;case re:t[l]=t[l]+(n[u]/2-i[u]/2);break;default:}}return t}var ye={top:"auto",right:"auto",bottom:"auto",left:"auto"};function we(e){var t,n=e.popper,i=e.popperRect,r=e.placement,o=e.variation,s=e.offsets,a=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=s.x,p=void 0===f?0:f,h=s.y,g=void 0===h?0:h,m="function"==typeof u?u({x:p,y:g}):{x:p,y:g};p=m.x,g=m.y;var v=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),y=ee,w=K,x=window;if(l){var S=Y(n),k="clientHeight",O="clientWidth";if(S===E(n))if("static"!==U(S=M(n)).position&&"absolute"===a)k="scrollHeight",O="scrollWidth";if(r===K||(r===ee||r===Z)&&o===re){w=X,g-=(d&&S===x&&x.visualViewport?x.visualViewport.height:S[k])-i.height,g*=c?1:-1}if(r===ee||(r===K||r===X)&&o===re){y=Z,p-=(d&&S===x&&x.visualViewport?x.visualViewport.width:S[O])-i.width,p*=c?1:-1}}var I=Object.assign({position:a},l&&ye),A=!0===u?function(e){var t=e.x,n=e.y,i=window.devicePixelRatio||1;return{x:T(t*i)/i||0,y:T(n*i)/i||0}}({x:p,y:g}):{x:p,y:g};if(p=A.x,g=A.y,c){var C;return Object.assign({},I,((C={})[w]=b?"0":"",C[y]=v?"0":"",C.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",C))}return Object.assign({},I,((t={})[w]=b?g+"px":"",t[y]=v?p+"px":"",t.transform="",t))}const xe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.offset,o=void 0===r?[0,0]:r,s=ce.reduce((function(e,n){return e[n]=function(e,t,n){var i=ge(e),r=[ee,K].indexOf(i)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*r,[ee,Z].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(n,t.rects,o),e}),{}),a=s[t.placement],c=a.x,l=a.y;if(null!=t.modifiersData.popperOffsets)t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l;t.modifiersData[i]=s}};var Se={left:"right",right:"left",bottom:"top",top:"bottom"};function ke(e){return e.replace(/left|right|bottom|top/g,(function(e){return Se[e]}))}var Oe={start:"end",end:"start"};function Ie(e){return e.replace(/start|end/g,(function(e){return Oe[e]}))}function Ae(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;else if(n&&j(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Ee(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ce(e,t,n){return t===oe?Ee(function(e,t){var n=E(e),i=M(e),r=n.visualViewport,o=i.clientWidth,s=i.clientHeight,a=0,c=0;if(r){o=r.width,s=r.height;var l=L();if(l||!l&&"fixed"===t)a=r.offsetLeft,c=r.offsetTop}return{width:o,height:s,x:a+D(e),y:c}}(e,n)):C(t)?function(e,t){var n=F(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Ee(function(e){var t,n=M(e),i=$(e),r=null==(t=e.ownerDocument)?void 0:t.body,o=R(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=R(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-i.scrollLeft+D(e),c=-i.scrollTop;if("rtl"===U(r||n).direction)a+=R(n.clientWidth,r?r.clientWidth:0)-o;return{width:o,height:s,x:a,y:c}}(M(e)))}function _e(e,t,n,i){var r="clippingParents"===t?function(e){var t=z(B(e)),n=["absolute","fixed"].indexOf(U(e).position)>=0&&_(e)?Y(e):e;if(!C(n))return[];else return t.filter((function(e){return C(e)&&Ae(e,n)&&"body"!==V(e)}))}(e):[].concat(t),o=[].concat(r,[n]),s=o[0],a=o.reduce((function(t,n){var r=Ce(e,n,i);return t.top=R(r.top,t.top),t.right=P(r.right,t.right),t.bottom=P(r.bottom,t.bottom),t.left=R(r.left,t.left),t}),Ce(e,s,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function je(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Re(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Pe(e,t){if(void 0===t)t={};var n=t,i=n.placement,r=void 0===i?e.placement:i,o=n.strategy,s=void 0===o?e.strategy:o,a=n.boundary,c=void 0===a?"clippingParents":a,l=n.rootBoundary,u=void 0===l?oe:l,d=n.elementContext,f=void 0===d?se:d,p=n.altBoundary,h=void 0===p?!1:p,g=n.padding,m=void 0===g?0:g,v=je("number"!=typeof m?m:Re(m,ne)),b=f===se?"reference":se,y=e.rects.popper,w=e.elements[h?b:f],x=_e(C(w)?w:w.contextElement||M(e.elements.popper),c,u,s),S=F(e.elements.reference),k=be({reference:S,element:y,strategy:"absolute",placement:r}),O=Ee(Object.assign({},y,k)),I=f===se?O:S,A={top:x.top-I.top+v.top,bottom:I.bottom-x.bottom+v.bottom,left:x.left-I.left+v.left,right:I.right-x.right+v.right},E=e.modifiersData.offset;if(f===se&&E){var _=E[r];Object.keys(A).forEach((function(e){var t=[Z,X].indexOf(e)>=0?1:-1,n=[K,X].indexOf(e)>=0?"y":"x";A[e]+=_[n]*t}))}return A}function Te(e,t,n){return R(e,P(t,n))}const He={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.mainAxis,o=void 0===r?!0:r,s=n.altAxis,a=void 0===s?!1:s,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f?!0:f,h=n.tetherOffset,g=void 0===h?0:h,m=Pe(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),v=ge(t.placement),b=me(t.placement),y=!b,w=ve(v),x="x"===w?"y":"x",S=t.modifiersData.popperOffsets,k=t.rects.reference,O=t.rects.popper,I="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,A="number"==typeof I?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,C={x:0,y:0};if(S){if(o){var _,j="y"===w?K:ee,T="y"===w?X:Z,H="y"===w?"height":"width",L=S[w],F=L+m[j],$=L-m[T],V=p?-O[H]/2:0,M=b===ie?k[H]:O[H],D=b===ie?-O[H]:-k[H],U=t.elements.arrow,N=p&&U?W(U):{width:0,height:0},q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=q[j],Q=q[T],z=Te(0,k[H],N[H]),J=y?k[H]/2-V-z-B-A.mainAxis:M-z-B-A.mainAxis,G=y?-k[H]/2+V+z+Q+A.mainAxis:D+z+Q+A.mainAxis,te=t.elements.arrow&&Y(t.elements.arrow),ne=te?"y"===w?te.clientTop||0:te.clientLeft||0:0,re=null!=(_=null==E?void 0:E[w])?_:0,oe=L+G-re,se=Te(p?P(F,L+J-re-ne):F,L,p?R($,oe):$);S[w]=se,C[w]=se-L}if(a){var ae,ce="x"===w?K:ee,le="x"===w?X:Z,ue=S[x],de="y"===x?"height":"width",fe=ue+m[ce],pe=ue-m[le],he=-1!==[K,ee].indexOf(v),be=null!=(ae=null==E?void 0:E[x])?ae:0,ye=he?fe:ue-k[de]-O[de]-be+A.altAxis,we=he?ue+k[de]+O[de]-be-A.altAxis:pe,xe=p&&he?function(e,t,n){var i=Te(e,t,n);return i>n?n:i}(ye,ue,we):Te(p?ye:fe,ue,p?we:pe);S[x]=xe,C[x]=xe-ue}t.modifiersData[i]=C}},requiresIfExists:["offset"]};const Le={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,r=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=ge(n.placement),c=ve(a),l=[ee,Z].indexOf(a)>=0?"height":"width";if(o&&s){var u=function(e,t){return je("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Re(e,ne))}(r.padding,n),d=W(o),f="y"===c?K:ee,p="y"===c?X:Z,h=n.rects.reference[l]+n.rects.reference[c]-s[c]-n.rects.popper[l],g=s[c]-n.rects.reference[c],m=Y(o),v=m?"y"===c?m.clientHeight||0:m.clientWidth||0:0,b=h/2-g/2,y=u[f],w=v-d[l]-u[p],x=v/2-d[l]/2+b,S=Te(y,x,w),k=c;n.modifiersData[i]=((t={})[k]=S,t.centerOffset=S-x,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;if(null!=i){if("string"==typeof i)if(!(i=t.elements.popper.querySelector(i)))return;if(0);if(Ae(t.elements.popper,i))t.elements.arrow=i;else if(0);}},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Fe(e,t,n){if(void 0===n)n={x:0,y:0};return{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 $e(e){return[K,Z,X,ee].some((function(t){return e[t]>=0}))}var Ve,Me=pe({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,r=i.scroll,o=void 0===r?!0:r,s=i.resize,a=void 0===s?!0:s,c=E(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);if(o)l.forEach((function(e){e.addEventListener("scroll",n.update,he)}));if(a)c.addEventListener("resize",n.update,he);return function(){if(o)l.forEach((function(e){e.removeEventListener("scroll",n.update,he)}));if(a)c.removeEventListener("resize",n.update,he)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=be({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,r=void 0===i?!0:i,o=n.adaptive,s=void 0===o?!0:o,a=n.roundOffsets,c=void 0===a?!0:a;if(0);var l={placement:ge(t.placement),variation:me(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};if(null!=t.modifiersData.popperOffsets)t.styles.popper=Object.assign({},t.styles.popper,we(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})));if(null!=t.modifiersData.arrow)t.styles.arrow=Object.assign({},t.styles.arrow,we(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})));t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{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]||{},i=t.attributes[e]||{},r=t.elements[e];if(_(r)&&V(r))Object.assign(r.style,n),Object.keys(i).forEach((function(e){var t=i[e];if(!1===t)r.removeAttribute(e);else r.setAttribute(e,!0===t?"":t)}))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};if(Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow)Object.assign(t.elements.arrow.style,n.arrow);return function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],r=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});if(_(i)&&V(i))Object.assign(i.style,o),Object.keys(r).forEach((function(e){i.removeAttribute(e)}))}))}},requires:["computeStyles"]},xe,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var r=n.mainAxis,o=void 0===r?!0:r,s=n.altAxis,a=void 0===s?!0:s,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p?!0:p,g=n.allowedAutoPlacements,m=t.options.placement,v=ge(m),b=c||(v===m||!h?[ke(m)]:function(e){if(ge(e)===te)return[];var t=ke(e);return[Ie(e),t,Ie(t)]}(m)),y=[m].concat(b).reduce((function(e,n){return e.concat(ge(n)===te?function(e,t){if(void 0===t)t={};var n=t,i=n.placement,r=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,l=void 0===c?ce:c,u=me(i),d=u?a?ae:ae.filter((function(e){return me(e)===u})):ne,f=d.filter((function(e){return l.indexOf(e)>=0}));if(0===f.length)if(f=d,0);var p=f.reduce((function(t,n){return t[n]=Pe(e,{placement:n,boundary:r,rootBoundary:o,padding:s})[ge(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:h,allowedAutoPlacements:g}):n)}),[]),w=t.rects.reference,x=t.rects.popper,S=new Map,k=!0,O=y[0],I=0;I<y.length;I++){var A=y[I],E=ge(A),C=me(A)===ie,_=[K,X].indexOf(E)>=0,j=_?"width":"height",R=Pe(t,{placement:A,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),P=_?C?Z:ee:C?X:K;if(w[j]>x[j])P=ke(P);var T=ke(P),H=[];if(o)H.push(R[E]<=0);if(a)H.push(R[P]<=0,R[T]<=0);if(H.every((function(e){return e}))){O=A,k=!1;break}S.set(A,H)}if(k)for(var L=function(e){var t=y.find((function(t){var n=S.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return O=t,"break"},F=h?3:1;F>0;F--){if("break"===L(F))break}if(t.placement!==O)t.modifiersData[i]._skip=!0,t.placement=O,t.reset=!0}},requiresIfExists:["offset"],data:{_skip:!1}},He,Le,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,s=Pe(t,{elementContext:"reference"}),a=Pe(t,{altBoundary:!0}),c=Fe(s,i),l=Fe(a,r,o),u=$e(c),d=$e(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),De=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{c(i.next(e))}catch(e){o(e)}}function a(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))};class Ue{constructor(e){this.modal=e,this.animateModal(),this.animateOpacityOnIframe()}animateModal(){this.modal.style.transitionProperty="opacity,margin",this.modal.style.transitionDuration="0.5s",this.modal.style.transitionTimingFunction="ease-in",this.modal.style.opacity="1";switch(this.modal.getAttribute("data-popper-placement")){case"bottom":this.modal.style.marginTop="16px";break;case"top":this.modal.style.marginBottom="16px"}}animateOpacityOnIframe(){return De(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 O.value,this.modal.page.iframe.style.opacity="1"}))}}class Ne{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(){if(!this.popUp)this.createAndAppendPopUp(),this.positionPopUp();else this.popUp.style.visibility="visible",this.popUp.style.pointerEvents="initial",this.popUp.popper.forceUpdate();this.props.onOpen()}close(){this.popUp.style.visibility="hidden",this.popUp.style.pointerEvents="none",this.props.onClose()}createAndAppendPopUp(){this.popUp=new A,document.body.append(this.popUp)}positionPopUp(){if(!this.popUp)return;const e=Me(this.props.button,this.popUp,{modifiers:[{name:"preventOverflow",options:{padding:{top:this.margin,right:50,bottom:this.margin,left:this.margin}}}],onFirstUpdate:()=>{this.popUp&&new Ue(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"}(Ve||(Ve={}));const qe=n(621);class We 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`${Ve.CoveoInAppWidgetLoader}-hidden`}initManager(){const e=this.shadowRoot.querySelector("button");if(e)this.manager=new Ne({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 a){const t=document.createElement("script");t.src=e,this.shadowRoot.appendChild(t)}}template(){const e=document.createElement("template");return e.innerHTML=`\n    ${o}\n    \n    <style>\n\n    ${this.buttonStyling}\n    ${this.svgIconStyling}\n    ${this.hostStyling}\n    ${this.svgAnimationStyling}\n    ${this.buttonTextStyling}\n\n    </style>\n    \n    <button class="${f}" part="button">\n        <span class="icon" part="button-icon">\n            ${this.svgClose}\n            ${this.svgOpen}\n        </span>\n        <span class="buttonText" part="button-text">\n            ${p}\n        </span>\n    </button>\n    `,e}get svgClose(){var e;const t=document.createElement("div");return t.innerHTML=h,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(){k.publishOpen(),this.button.classList.add("btn-open")}onClose(){k.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 qe(this.mainColor).analogous()[1].toRgbString()}get textColor(){return qe(b||"rgb(255,255,255)").toRgbString()}get buttonStyling(){return` ${c} {\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: 44px;\n            width: 150px;\n            padding: 10px;\n            margin: 0;\n            vertical-align: middle;\n    \n            box-sizing: border-box;\n            display: flex;\n            align-items: center;\n            justify-content: center;\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        ${c}: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        ${u}: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: 8px;\n            width: 1.2em;\n            height: 1.2em;\n            vertical-align: -0.5em;\n            position: relative;\n        }\n        `}get hostStyling(){return`\n        :host(${Ve.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        "}get buttonTextStyling(){return"\n            .buttonText {\n                overflow: hidden;\n                max-width: 107px;\n            }\n        "}}class Be{constructor(){this.findTargetElementUsingInterval()}findTargetElementUsingInterval(){this.findTargetAndPopulate(),window.setInterval((()=>this.findTargetAndPopulate()),200)}findTargetAndPopulate(){const e=this.findTargetElement();e&&this.onTargetElementFound(e)}findTargetElement(){const t=e;try{return document.querySelector(t)}catch(e){return console.error(`${t} is not a valid CSS selector. Cannot retrieve target element.`),null}}onTargetElementFound(e){if(this.pageIsNotChildOfElement(e))this.appendPageToElement(e),this.publishOpenAndCloseEvents(e)}publishOpenAndCloseEvents(e){let t=!0;this.observeElementAndItsAncestors(e,(()=>{const n=this.isElementVisible(e);if(n&&!t)k.publishOpen();if(!n&&t)k.publishClose();t=n}))}pageIsNotChildOfElement(e){return!e.querySelector(Ve.Page)}appendPageToElement(e){const t=new I;e.append(t)}observeElementAndItsAncestors(e,t){if(new MutationObserver((()=>t())).observe(e,{attributes:!0}),null!==e.parentElement)this.observeElementAndItsAncestors(e.parentElement,t)}isElementVisible(e){const t=getComputedStyle(e);if("body"===e.tagName.toLowerCase())return!0;if("none"===t.display)return!1;if(!("absolute"!==t.position&&"fixed"!==t.position||"hidden"!==t.visibility&&"0"!==t.opacity))return!1;if(0===e.clientWidth&&0===e.clientHeight)return!1;if(null===e.parentElement)return!1;else return this.isElementVisible(e.parentElement)}}function Qe(e,t){var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0)n[i]=e[i];if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)if(t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r]))n[i[r]]=e[i[r]]}return n}function ze(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{c(i.next(e))}catch(e){o(e)}}function a(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))}var Je;function Ge(){return"undefined"!=typeof navigator}function Ye(){return"undefined"!=typeof document}function Ke(){try{return"undefined"!=typeof localStorage}catch(e){return!1}}function Xe(){return Ge()&&navigator.cookieEnabled}function Ze(){return"undefined"!=typeof crypto&&void 0!==crypto.getRandomValues}!function(e){e.search="search",e.click="click",e.custom="custom",e.view="view",e.collect="collect"}(Je||(Je={}));const et=[Je.click,Je.custom,Je.search,Je.view],tt=(e,t)=>-1!==et.indexOf(e)?Object.assign({language:Ye()?document.documentElement.lang:"unknown",userAgent:Ge()?navigator.userAgent:"unknown"},t):t;class nt{static set(e,t,n){var i,r,o,s;if(n)(r=new Date).setTime(r.getTime()+n),o="; expires="+r.toGMTString();else o="";if(-1===(s=location.hostname).indexOf("."))document.cookie=e+"="+t+o+"; path=/";else if((i=s.split(".")).shift(),it({name:e,value:t,expires:o,domain:"."+i.join(".")}),null==nt.get(e)||nt.get(e)!=t)it({name:e,value:t,expires:o,domain:"."+s})}static get(e){for(var t=e+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){var r=n[i];if(0==(r=r.replace(/^\s+/,"")).indexOf(t))return r.substring(t.length,r.length)}return null}static erase(e){nt.set(e,"",-1)}}function it(e){const{name:t,value:n,expires:i,domain:r}=e;document.cookie=`${t}=${n}${i}; path=/; domain=${r}; SameSite=Lax`}function rt(){if(Ke())return localStorage;if(Xe())return new ot;if(function(){try{return"undefined"!=typeof sessionStorage}catch(e){return!1}}())return sessionStorage;else return new at}class ot{getItem(e){return nt.get(`${ot.prefix}${e}`)}removeItem(e){nt.erase(`${ot.prefix}${e}`)}setItem(e,t){nt.set(`${ot.prefix}${e}`,t)}}ot.prefix="coveo_";class st{constructor(){this.cookieStorage=new ot}getItem(e){return localStorage.getItem(e)||this.cookieStorage.getItem(e)}removeItem(e){this.cookieStorage.removeItem(e),localStorage.removeItem(e)}setItem(e,t){localStorage.setItem(e,t),this.cookieStorage.setItem(e,t)}}class at{getItem(e){return null}removeItem(e){}setItem(e,t){}}const ct="__coveo.analytics.history";class lt{constructor(e){this.store=e||rt()}addElement(e){e.internalTime=(new Date).getTime(),e=this.cropQueryElement(this.stripEmptyQuery(e));let t=this.getHistoryWithInternalTime();if(null!=t){if(this.isValidEntry(e))this.setHistory([e].concat(t))}else this.setHistory([e])}addElementAsync(e){return ze(this,void 0,void 0,(function*(){e.internalTime=(new Date).getTime(),e=this.cropQueryElement(this.stripEmptyQuery(e));let t=yield this.getHistoryWithInternalTimeAsync();if(null!=t){if(this.isValidEntry(e))this.setHistory([e].concat(t))}else this.setHistory([e])}))}getHistory(){const e=this.getHistoryWithInternalTime();return this.stripEmptyQueries(this.stripInternalTime(e))}getHistoryAsync(){return ze(this,void 0,void 0,(function*(){const e=yield this.getHistoryWithInternalTimeAsync();return this.stripEmptyQueries(this.stripInternalTime(e))}))}getHistoryWithInternalTime(){try{const e=this.store.getItem(ct);if(e&&"string"==typeof e)return JSON.parse(e);else return[]}catch(e){return[]}}getHistoryWithInternalTimeAsync(){return ze(this,void 0,void 0,(function*(){try{const e=yield this.store.getItem(ct);if(e)return JSON.parse(e);else return[]}catch(e){return[]}}))}setHistory(e){try{this.store.setItem(ct,JSON.stringify(e.slice(0,20)))}catch(e){}}clear(){try{this.store.removeItem(ct)}catch(e){}}getMostRecentElement(){let e=this.getHistoryWithInternalTime();if(null!=e){return e.sort(((e,t)=>(t.internalTime||0)-(e.internalTime||0)))[0]}return null}cropQueryElement(e){if(e.name&&e.value&&"query"===e.name.toLowerCase())e.value=e.value.slice(0,75);return e}isValidEntry(e){let t=this.getMostRecentElement();if(t&&t.value==e.value)return(e.internalTime||0)-(t.internalTime||0)>6e4;else return!0}stripInternalTime(e){return e.map((e=>{const{name:t,time:n,value:i}=e;return{name:t,time:n,value:i}}))}stripEmptyQuery(e){const{name:t,time:n,value:i}=e;if(t&&"string"==typeof i&&"query"===t.toLowerCase()&&""===i.trim())return{name:t,time:n};else return e}stripEmptyQueries(e){return e.map((e=>this.stripEmptyQuery(e)))}}const ut=(e,t)=>ze(void 0,void 0,void 0,(function*(){if(e===Je.view)return yield dt(t.contentIdValue),Object.assign({location:window.location.toString(),referrer:document.referrer,title:document.title},t);else return t})),dt=e=>ze(void 0,void 0,void 0,(function*(){const t=new lt,n={name:"PageView",value:e,time:JSON.stringify(new Date)};yield t.addElementAsync(n)})),ft=e=>{if(e)return(Number(e)^pt(new Uint8Array(1))[0]%16>>Number(e)/4).toString(16);else return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,ft)},pt=e=>{if(Ze())return crypto.getRandomValues(e);for(var t=0,n=0;t<e.length;t++){if(0==(3&t))n=4294967296*Math.random();e[t]=n>>>((3&t)<<3)&255}return e},ht=Object.keys,gt={id:"svc_ticket_id",subject:"svc_ticket_subject",description:"svc_ticket_description",category:"svc_ticket_category",productId:"svc_ticket_product_id",custom:"svc_ticket_custom"},mt=[...ht(gt).map((e=>gt[e]))].join("|"),vt=new RegExp(`^(${mt}$)`),bt=[e=>vt.test(e)],yt={id:"id",name:"nm",brand:"br",category:"ca",variant:"va",price:"pr",quantity:"qt",coupon:"cc",position:"ps",group:"group"},wt={id:"id",name:"nm",brand:"br",category:"ca",variant:"va",position:"ps",price:"pr",group:"group"},xt={action:"pa",list:"pal",listSource:"pls"},St={id:"ti",revenue:"tr",tax:"tt",shipping:"ts",coupon:"tcc",affiliation:"ta",step:"cos",option:"col"},kt={id:"quoteId",affiliation:"quoteAffiliation"},Ot={id:"reviewId",rating:"reviewRating",comment:"reviewComment"},It={add:xt,bookmark_add:xt,bookmark_remove:xt,click:xt,checkout:xt,checkout_option:xt,detail:xt,impression:xt,remove:xt,refund:Object.assign(Object.assign({},xt),St),purchase:Object.assign(Object.assign({},xt),St),quickview:xt,quote:Object.assign(Object.assign({},xt),kt),review:Object.assign(Object.assign({},xt),Ot)},At=ht(yt).map((e=>yt[e])),Et=ht(wt).map((e=>wt[e])),Ct=ht(xt).map((e=>xt[e])),_t=ht(St).map((e=>St[e])),jt=ht(Ot).map((e=>Ot[e])),Rt=ht(kt).map((e=>kt[e])),Pt=[...At,"custom"].join("|"),Tt=[...Et,"custom"].join("|"),Ht=new RegExp(`^(pr[0-9]+)(${Pt})$`),Lt=new RegExp(`^((il[0-9]+pi[0-9]+)(${Tt}))|(il[0-9]+nm)$`),Ft=new RegExp(`^(${Ct.join("|")})$`),$t=new RegExp(`^(${_t.join("|")})$`),Vt=new RegExp("^(pr[0-9]+)custom$"),Mt=new RegExp("^(il[0-9]+pi[0-9]+)custom$"),Dt=new RegExp(`^(${["loyaltyCardId","loyaltyTier","thirdPartyPersona","companyName","favoriteStore","storeName","userIndustry","userRole","userDepartment","businessUnit",...jt,...Rt].join("|")})$`),Ut=[e=>Lt.test(e),e=>Ht.test(e),e=>Ft.test(e),e=>$t.test(e),e=>Dt.test(e)],Nt=[Vt,Mt],qt=Object.assign(Object.assign(Object.assign(Object.assign({},{anonymizeIp:"aip"}),{eventCategory:"ec",eventAction:"ea",eventLabel:"el",eventValue:"ev",page:"dp",visitorId:"cid",clientId:"cid",userId:"uid",currencyCode:"cu"}),{hitType:"t",pageViewId:"pid",encoding:"de",location:"dl",referrer:"dr",screenColor:"sd",screenResolution:"sr",title:"dt",userAgent:"ua",language:"ul",eventId:"z",time:"tm"}),["contentId","contentIdKey","contentType","searchHub","tab","searchUid","permanentId","contentLocale"].reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:t})),{})),Wt=Object.assign(Object.assign({},qt),{svcAction:"svc_action",svcActionData:"svc_action_data"}),Bt=ht(Wt).map((e=>Wt[e])),Qt=e=>-1!==Bt.indexOf(e),zt=e=>"custom"===e,Jt=e=>{let t;return[...Nt].every((n=>{var i;return t=null===(i=n.exec(e))||void 0===i?void 0:i[1],!Boolean(t)})),t},Gt=(e,t)=>ht(t).reduce(((n,i)=>Object.assign(Object.assign({},n),{[`${e}${i}`]:t[i]})),{});class Yt{constructor(e){this.opts=e}sendEvent(e,t){return ze(this,void 0,void 0,(function*(){if(!navigator.sendBeacon)throw new Error('navigator.sendBeacon is not supported in this browser. Consider adding a polyfill like "sendbeacon-polyfill".');const{baseUrl:n,preprocessRequest:i}=this.opts,r=this.encodeForEventType(e,t),o=yield this.getQueryParamsForEventType(e),s={url:`${n}/analytics/${e}?${o}`,body:new Blob([r],{type:"application/x-www-form-urlencoded"})},{url:a,body:c}=Object.assign(Object.assign({},s),i?yield i(s,"analyticsBeacon"):{});console.log(`Sending beacon for "${e}" with: `,JSON.stringify(t)),navigator.sendBeacon(a,c)}))}deleteHttpCookieVisitorId(){return Promise.resolve()}encodeForEventType(e,t){return this.isEventTypeLegacy(e)?this.encodeForLegacyType(e,t):this.encodeForFormUrlEncoded(Object.assign({access_token:this.opts.token},t))}getQueryParamsForEventType(e){return ze(this,void 0,void 0,(function*(){const{token:t,visitorIdProvider:n}=this.opts,i=yield n.getCurrentVisitorId();return[t&&this.isEventTypeLegacy(e)?`access_token=${t}`:"",i?`visitorId=${i}`:"","discardVisitInfo=true"].filter((e=>!!e)).join("&")}))}isEventTypeLegacy(e){return-1!==[Je.click,Je.custom,Je.search,Je.view].indexOf(e)}encodeForLegacyType(e,t){return`${e}Event=${encodeURIComponent(JSON.stringify(t))}`}encodeForFormUrlEncoded(e){return Object.keys(e).filter((t=>!!e[t])).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(this.encodeValue(e[t]))}`)).join("&")}encodeValue(e){return"number"==typeof e||"string"==typeof e||"boolean"==typeof e?e:JSON.stringify(e)}}const Kt=window.fetch;class Xt{constructor(e){this.opts=e}sendEvent(e,t){return ze(this,void 0,void 0,(function*(){const{baseUrl:n,visitorIdProvider:i,preprocessRequest:r}=this.opts,o=this.shouldAppendVisitorId(e)?yield this.getVisitorIdParam():"",s={url:`${n}/analytics/${e}${o}`,credentials:"include",mode:"cors",headers:this.getHeaders(),method:"POST",body:JSON.stringify(t)},a=Object.assign(Object.assign({},s),r?yield r(s,"analyticsFetch"):{}),{url:c}=a,l=Qe(a,["url"]),u=yield Kt(c,l);if(u.ok){const e=yield u.json();if(e.visitorId)i.setCurrentVisitorId(e.visitorId);return e}else{try{u.json()}catch(e){}throw console.error(`An error has occured when sending the "${e}" event.`,u,t),new Error(`An error has occurred when sending the "${e}" event. Check the console logs for more details.`)}}))}deleteHttpCookieVisitorId(){return ze(this,void 0,void 0,(function*(){const{baseUrl:e}=this.opts,t=`${e}/analytics/visit`;yield Kt(t,{headers:this.getHeaders(),method:"DELETE"})}))}shouldAppendVisitorId(e){return-1!==[Je.click,Je.custom,Je.search,Je.view].indexOf(e)}getVisitorIdParam(){return ze(this,void 0,void 0,(function*(){const{visitorIdProvider:e}=this.opts,t=yield e.getCurrentVisitorId();return t?`?visitor=${t}`:""}))}getHeaders(){const{token:e}=this.opts;return Object.assign(Object.assign({},e?{Authorization:`Bearer ${e}`}:{}),{"Content-Type":"application/json"})}}class Zt{constructor(e,t){if(Ke()&&Xe())this.storage=new st;else if(Ke())this.storage=localStorage;else console.warn("BrowserRuntime detected no valid storage available.",this),this.storage=new at;this.client=new Xt(e),this.beaconClient=new Yt(e),window.addEventListener("beforeunload",(()=>{const e=t();for(let{eventType:t,payload:n}of e)this.beaconClient.sendEvent(t,n)}))}}class en{constructor(e,t){this.storage=t||new at,this.client=new Xt(e)}}const tn=["1",1,"yes",!0];function nn(){return Ge()&&[navigator.globalPrivacyControl,navigator.doNotTrack,navigator.msDoNotTrack,window.doNotTrack].some((e=>-1!==tn.indexOf(e)))}const rn="https://analytics.cloud.coveo.com/rest/ua";class on{constructor(e){if(!e)throw new Error("You have to pass options to this constructor");this.options=Object.assign(Object.assign({},this.defaultOptions),e),this.visitorId="",this.bufferedRequests=[],this.beforeSendHooks=[ut,tt].concat(this.options.beforeSendHooks),this.afterSendHooks=this.options.afterSendHooks,this.eventTypeMapping={};const t={baseUrl:this.baseUrl,token:this.options.token,visitorIdProvider:this,preprocessRequest:this.options.preprocessRequest};if(this.runtime=this.options.runtimeEnvironment||this.initRuntime(t),nn())this.clear(),this.runtime.storage=new at}get defaultOptions(){return{endpoint:rn,token:"",version:"v15",beforeSendHooks:[],afterSendHooks:[]}}initRuntime(e){if("undefined"!=typeof window&&Ye())return new Zt(e,(()=>{const e=[...this.bufferedRequests];return this.bufferedRequests=[],e}));else if("undefined"!=typeof navigator&&"ReactNative"==navigator.product)console.warn("\n        We've detected you're using React Native but have not provided the corresponding runtime, \n        for an optimal experience please install @react-native-async-storage/async-storage and instantiate \n        your analytics client as follows:\n        \n        import {ReactNativeRuntime} from 'coveo.analytics/src/react-native';\n        \n        const analytics = new CoveoAnalyticsClient({\n            ...your options,\n            runtimeEnvironment: new ReactNativeRuntime({\n                baseUrl: '...',\n            });\n        })\n    ");return new en(e)}get storage(){return this.runtime.storage}determineVisitorId(){return ze(this,void 0,void 0,(function*(){try{return(yield this.storage.getItem("visitorId"))||ft()}catch(e){return console.log("Could not get visitor ID from the current runtime environment storage. Using a random ID instead.",e),ft()}}))}getCurrentVisitorId(){return ze(this,void 0,void 0,(function*(){if(!this.visitorId){const e=yield this.determineVisitorId();yield this.setCurrentVisitorId(e)}return this.visitorId}))}setCurrentVisitorId(e){return ze(this,void 0,void 0,(function*(){this.visitorId=e,yield this.storage.setItem("visitorId",e)}))}getParameters(e,...t){return ze(this,void 0,void 0,(function*(){return yield this.resolveParameters(e,...t)}))}getPayload(e,...t){return ze(this,void 0,void 0,(function*(){const n=yield this.resolveParameters(e,...t);return yield this.resolvePayloadForParameters(e,n)}))}get currentVisitorId(){if("string"!=typeof(this.visitorId||this.storage.getItem("visitorId")))this.setCurrentVisitorId(ft());return this.visitorId}set currentVisitorId(e){this.visitorId=e,this.storage.setItem("visitorId",e)}resolveParameters(e,...t){return ze(this,void 0,void 0,(function*(){const{variableLengthArgumentsNames:n=[],addVisitorIdParameter:i=!1,usesMeasurementProtocol:r=!1,addClientIdParameter:o=!1}=this.eventTypeMapping[e]||{},s=yield[e=>n.length>0?this.parseVariableArgumentsPayload(n,e):e[0],e=>ze(this,void 0,void 0,(function*(){return Object.assign(Object.assign({},e),{visitorId:i?yield this.getCurrentVisitorId():""})})),e=>ze(this,void 0,void 0,(function*(){if(o)return Object.assign(Object.assign({},e),{clientId:yield this.getCurrentVisitorId()});else return e})),e=>r?this.ensureAnonymousUserWhenUsingApiKey(e):e,t=>this.beforeSendHooks.reduce(((t,n)=>ze(this,void 0,void 0,(function*(){const i=yield t;return yield n(e,i)}))),t)].reduce(((e,t)=>ze(this,void 0,void 0,(function*(){const n=yield e;return yield t(n)}))),Promise.resolve(t));return s}))}resolvePayloadForParameters(e,t){return ze(this,void 0,void 0,(function*(){const{usesMeasurementProtocol:n=!1}=this.eventTypeMapping[e]||{};return yield[t=>this.removeEmptyPayloadValues(t,e),e=>this.validateParams(e),e=>n?(e=>{const t=!!e.action&&It[e.action]||{};return ht(e).reduce(((n,i)=>{const r=t[i]||Wt[i]||i;return Object.assign(Object.assign({},n),{[r]:e[i]})}),{})})(e):e,e=>n?this.removeUnknownParameters(e):e,e=>n?this.processCustomParameters(e):e].reduce(((e,t)=>ze(this,void 0,void 0,(function*(){const n=yield e;return yield t(n)}))),Promise.resolve(t))}))}sendEvent(e,...t){return ze(this,void 0,void 0,(function*(){const{newEventType:n=e}=this.eventTypeMapping[e]||{},i=yield this.resolveParameters(e,...t),r=yield this.resolvePayloadForParameters(e,i);return this.bufferedRequests.push({eventType:n,payload:r}),yield Promise.all(this.afterSendHooks.map((t=>t(e,i)))),yield this.deferExecution(),yield this.sendFromBufferWithFetch()}))}deferExecution(){return new Promise((e=>setTimeout(e,0)))}sendFromBufferWithFetch(){return ze(this,void 0,void 0,(function*(){const e=this.bufferedRequests.shift();if(e){const{eventType:t,payload:n}=e;return this.runtime.client.sendEvent(t,n)}}))}clear(){this.storage.removeItem("visitorId");(new lt).clear()}deleteHttpOnlyVisitorId(){this.runtime.client.deleteHttpCookieVisitorId()}sendSearchEvent(e){return ze(this,void 0,void 0,(function*(){return this.sendEvent(Je.search,e)}))}sendClickEvent(e){return ze(this,void 0,void 0,(function*(){return this.sendEvent(Je.click,e)}))}sendCustomEvent(e){return ze(this,void 0,void 0,(function*(){return this.sendEvent(Je.custom,e)}))}sendViewEvent(e){return ze(this,void 0,void 0,(function*(){return this.sendEvent(Je.view,e)}))}getVisit(){return ze(this,void 0,void 0,(function*(){const e=yield fetch(`${this.baseUrl}/analytics/visit`),t=yield e.json();return this.visitorId=t.visitorId,t}))}getHealth(){return ze(this,void 0,void 0,(function*(){const e=yield fetch(`${this.baseUrl}/analytics/monitoring/health`);return yield e.json()}))}registerBeforeSendEventHook(e){this.beforeSendHooks.push(e)}registerAfterSendEventHook(e){this.afterSendHooks.push(e)}addEventTypeMapping(e,t){this.eventTypeMapping[e]=t}parseVariableArgumentsPayload(e,t){const n={};for(let i=0,r=t.length;i<r;i++){const r=t[i];if("string"==typeof r)n[e[i]]=r;else if("object"==typeof r)return Object.assign(Object.assign({},n),r)}return n}isKeyAllowedEmpty(e,t){return-1!==({[Je.search]:["queryText"]}[e]||[]).indexOf(t)}removeEmptyPayloadValues(e,t){return Object.keys(e).filter((n=>{return this.isKeyAllowedEmpty(t,n)||null!=(i=e[n])&&""!==i;var i})).reduce(((t,n)=>Object.assign(Object.assign({},t),{[n]:e[n]})),{})}removeUnknownParameters(e){return Object.keys(e).filter((e=>{if((e=>[...Ut,...bt,Qt,zt].some((t=>t(e))))(e))return!0;else console.log(e,"is not processed by coveoua")})).reduce(((t,n)=>Object.assign(Object.assign({},t),{[n]:e[n]})),{})}processCustomParameters(e){const{custom:t}=e,n=Qe(e,["custom"]),i=this.lowercaseKeys(t),r=ht(o=n).reduce(((e,t)=>{const n=Jt(t);if(n)return Object.assign(Object.assign({},e),Gt(n,o[t]));else return Object.assign(Object.assign({},e),{[t]:o[t]})}),{});var o;return Object.assign(Object.assign({},i),r)}lowercaseKeys(e){return Object.keys(e||{}).reduce(((t,n)=>Object.assign(Object.assign({},t),{[n.toLowerCase()]:e[n]})),{})}validateParams(e){const{anonymizeIp:t}=e,n=Qe(e,["anonymizeIp"]);if(void 0!==t)if(-1==["0","false","undefined","null","{}","[]",""].indexOf(`${t}`.toLowerCase()))n.anonymizeIp=1;return n}ensureAnonymousUserWhenUsingApiKey(e){const{userId:t}=e,n=Qe(e,["userId"]);if((null==(i=this.options.token)?void 0:i.startsWith("xx"))&&!t)return n.userId="anonymous",n;else return e;var i}get baseUrl(){const{version:e,endpoint:t}=this.options,n=-1!==t.indexOf(".cloud.coveo.com");return`${t}${n?"":"/rest"}/${e}`}}var sn,an;!function(e){e.contextChanged="contextChanged",e.expandToFullUI="expandToFullUI"}(sn||(sn={})),function(e){e.interfaceLoad="interfaceLoad",e.interfaceChange="interfaceChange",e.didyoumeanAutomatic="didyoumeanAutomatic",e.didyoumeanClick="didyoumeanClick",e.resultsSort="resultsSort",e.searchboxSubmit="searchboxSubmit",e.searchboxClear="searchboxClear",e.searchboxAsYouType="searchboxAsYouType",e.breadcrumbFacet="breadcrumbFacet",e.breadcrumbResetAll="breadcrumbResetAll",e.documentQuickview="documentQuickview",e.documentOpen="documentOpen",e.omniboxAnalytics="omniboxAnalytics",e.omniboxFromLink="omniboxFromLink",e.searchFromLink="searchFromLink",e.triggerNotify="notify",e.triggerExecute="execute",e.triggerQuery="query",e.triggerRedirect="redirect",e.pagerResize="pagerResize",e.pagerNumber="pagerNumber",e.pagerNext="pagerNext",e.pagerPrevious="pagerPrevious",e.pagerScrolling="pagerScrolling",e.staticFilterClearAll="staticFilterClearAll",e.staticFilterSelect="staticFilterSelect",e.staticFilterDeselect="staticFilterDeselect",e.facetClearAll="facetClearAll",e.facetSearch="facetSearch",e.facetSelect="facetSelect",e.facetSelectAll="facetSelectAll",e.facetDeselect="facetDeselect",e.facetExclude="facetExclude",e.facetUnexclude="facetUnexclude",e.facetUpdateSort="facetUpdateSort",e.facetShowMore="showMoreFacetResults",e.facetShowLess="showLessFacetResults",e.queryError="query",e.queryErrorBack="errorBack",e.queryErrorClear="errorClearQuery",e.queryErrorRetry="errorRetry",e.recommendation="recommendation",e.recommendationInterfaceLoad="recommendationInterfaceLoad",e.recommendationOpen="recommendationOpen",e.likeSmartSnippet="likeSmartSnippet",e.dislikeSmartSnippet="dislikeSmartSnippet",e.expandSmartSnippet="expandSmartSnippet",e.collapseSmartSnippet="collapseSmartSnippet",e.openSmartSnippetFeedbackModal="openSmartSnippetFeedbackModal",e.closeSmartSnippetFeedbackModal="closeSmartSnippetFeedbackModal",e.sendSmartSnippetReason="sendSmartSnippetReason",e.expandSmartSnippetSuggestion="expandSmartSnippetSuggestion",e.collapseSmartSnippetSuggestion="collapseSmartSnippetSuggestion",e.showMoreSmartSnippetSuggestion="showMoreSmartSnippetSuggestion",e.showLessSmartSnippetSuggestion="showLessSmartSnippetSuggestion",e.openSmartSnippetSource="openSmartSnippetSource",e.openSmartSnippetSuggestionSource="openSmartSnippetSuggestionSource",e.recentQueryClick="recentQueriesClick",e.clearRecentQueries="clearRecentQueries",e.recentResultClick="recentResultClick",e.clearRecentResults="clearRecentResults",e.noResultsBack="noResultsBack",e.showMoreFoldedResults="showMoreFoldedResults",e.showLessFoldedResults="showLessFoldedResults"}(an||(an={}));an.triggerNotify,an.triggerExecute,an.triggerQuery,an.triggerRedirect,an.queryError,an.queryErrorBack,an.queryErrorClear,an.queryErrorRetry,an.pagerNext,an.pagerPrevious,an.pagerNumber,an.pagerResize,an.pagerScrolling,an.facetSearch,an.facetShowLess,an.facetShowMore,an.recommendation,an.likeSmartSnippet,an.dislikeSmartSnippet,an.expandSmartSnippet,an.collapseSmartSnippet,an.openSmartSnippetFeedbackModal,an.closeSmartSnippetFeedbackModal,an.sendSmartSnippetReason,an.expandSmartSnippetSuggestion,an.collapseSmartSnippetSuggestion,an.showMoreSmartSnippetSuggestion,an.showLessSmartSnippetSuggestion,an.clearRecentQueries,an.recentResultClick,an.clearRecentResults,an.showLessFoldedResults,sn.expandToFullUI;const cn=e=>`${e.protocol}//${e.hostname}${0===e.pathname.indexOf("/")?e.pathname:`/${e.pathname}`}${e.search}`,ln={pageview:"pageview",event:"event"};const un=Object.assign({},ln),dn=Object.keys(un).map((e=>un[e]));class fn extends class{constructor({client:e,uuidGenerator:t=ft}){this.actionData={},this.client=e,this.uuidGenerator=t,this.pageViewId=t(),this.nextPageViewId=this.pageViewId,this.currentLocation=cn(window.location),this.lastReferrer=document.referrer,this.addHooks()}setAction(e,t){this.action=e,this.actionData=t}clearData(){this.clearPluginData(),this.action=void 0,this.actionData={}}getLocationInformation(e,t){return Object.assign({hitType:e},this.getNextValues(e,t))}updateLocationInformation(e,t){this.updateLocationForNextPageView(e,t)}getDefaultContextInformation(e){const t={title:document.title,encoding:document.characterSet},n={screenResolution:`${screen.width}x${screen.height}`,screenColor:`${screen.colorDepth}-bit`},i={language:navigator.language,userAgent:navigator.userAgent},r={time:Date.now().toString(),eventId:this.uuidGenerator()};return Object.assign(Object.assign(Object.assign(Object.assign({},r),n),i),t)}updateLocationForNextPageView(e,t){const{pageViewId:n,referrer:i,location:r}=this.getNextValues(e,t);if(this.lastReferrer=i,this.pageViewId=n,this.currentLocation=r,e===ln.pageview)this.nextPageViewId=this.uuidGenerator(),this.hasSentFirstPageView=!0}getNextValues(e,t){return{pageViewId:e===ln.pageview?this.nextPageViewId:this.pageViewId,referrer:e===ln.pageview&&this.hasSentFirstPageView?this.currentLocation:this.lastReferrer,location:e===ln.pageview?this.getCurrentLocationFromPayload(t):this.currentLocation}}getCurrentLocationFromPayload(e){if(e.page){const t=e=>e.replace(/^\/?(.*)$/,"/$1");return`${(e=>e.split("/").slice(0,3).join("/"))(this.currentLocation)}${t(e.page)}`}else return cn(window.location)}}{constructor({client:e,uuidGenerator:t=ft}){super({client:e,uuidGenerator:t}),this.ticket={}}addHooks(){this.addHooksForEvent(),this.addHooksForPageView(),this.addHooksForSVCEvents()}setTicket(e){this.ticket=e}clearPluginData(){this.ticket={}}addHooksForSVCEvents(){this.client.registerBeforeSendEventHook(((e,...[t])=>-1!==dn.indexOf(e)?this.addSVCDataToPayload(e,t):t)),this.client.registerAfterSendEventHook(((e,...[t])=>{if(-1!==dn.indexOf(e))this.updateLocationInformation(e,t);return t}))}addHooksForPageView(){this.client.addEventTypeMapping(un.pageview,{newEventType:Je.collect,variableLengthArgumentsNames:["page"],addVisitorIdParameter:!0,usesMeasurementProtocol:!0})}addHooksForEvent(){this.client.addEventTypeMapping(un.event,{newEventType:Je.collect,variableLengthArgumentsNames:["eventCategory","eventAction","eventLabel","eventValue"],addVisitorIdParameter:!0,usesMeasurementProtocol:!0})}addSVCDataToPayload(e,t){var n;const i=Object.assign(Object.assign(Object.assign(Object.assign({},this.getLocationInformation(e,t)),this.getDefaultContextInformation(e)),this.action?{svcAction:this.action}:{}),Object.keys(null!==(n=this.actionData)&&void 0!==n?n:{}).length>0?{svcActionData:this.actionData}:{}),r=this.getTicketPayload();return this.clearData(),Object.assign(Object.assign(Object.assign({},r),i),t)}getTicketPayload(){return e=this.ticket,ht(e).filter((t=>void 0!==e[t])).reduce(((t,n)=>{const i=gt[n]||n;return Object.assign(Object.assign({},t),{[i]:e[n]})}),{});var e}}var pn,hn,gn;fn.Id="svc",function(e){e.click="click",e.flowStart="flowStart"}(pn||(pn={})),function(e){e.enterInterface="ticket_create_start",e.fieldUpdate="ticket_field_update",e.fieldSuggestionClick="ticket_classification_click",e.suggestionClick="suggestion_click",e.suggestionRate="suggestion_rate",e.nextCaseStep="ticket_next_stage",e.caseCancelled="ticket_cancel",e.caseSolved="ticket_cancel",e.caseCreated="ticket_create"}(hn||(hn={})),function(e){e.quit="Quit",e.solved="Solved"}(gn||(gn={}));function mn(e){const t=`IPX is no longer injecting a "${e}" global. If you would like to use it, please load the following script before IPX:\n\n<script type="text/javascript" src="https://static.cloud.coveo.com/coveo.analytics.js/2/coveoua.js"><\/script>`;if(!(e in window))Object.defineProperty(window,e,{get:()=>console.warn(t)})}mn("coveoua"),mn("coveoanalytics");var vn=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{c(i.next(e))}catch(e){o(e)}}function a(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))};window.customElements.define(Ve.Page,I),window.customElements.define(Ve.PageModal,A),window.customElements.define(Ve.CoveoInAppWidgetLoader,We),new class{constructor(){this.trackPageView(),this.initExperience()}trackPageView(){new on({token:t,endpoint:g}).sendCustomEvent({eventType:"appNavigation",eventValue:"pageView",originLevel2:"default",originLevel3:document.location.href,language:navigator.language,customData:{IPX:!0,IPX_ID:m,referrer:document.location.href}})}initExperience(){e?this.createEmbeddedSearchPage():this.createButton()}createEmbeddedSearchPage(){new Be}createButton(){const e=document.createElement(Ve.CoveoInAppWidgetLoader);document.body.appendChild(e)}},O.value.then((e=>{k.init(e.iframe.contentWindow),k.subscribeToCustomTokenHasExpired((()=>vn(void 0,void 0,void 0,(function*(){try{const e=yield In();k.publishNewCustomToken(e)}catch(e){k.publishNewCustomToken(""),console.error("Failed to renew the access token. Please check your renew access token function",e)}}))))}));const bn=e=>k.publishContext(e),yn=(e,t)=>k.publishContextValue(e,t),wn=e=>k.publishExecuteQuery(e),xn=e=>k.publishExecuteRecommendationQuery(e),Sn=()=>k.publishOpen(),kn=()=>k.publishClose();var On=!0,In=()=>Promise.resolve("");const An=e=>{if(In=e,On)k.customRenewFunctionIsAvailable(),On=!1},En=()=>{const e=document.querySelector(Ve.CoveoInAppWidgetLoader);e&&e.hide()},Cn=()=>{const e=document.querySelector(Ve.CoveoInAppWidgetLoader);e&&e.show()}})(),CoveoInProduct=i})();
